lastlight-evals 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dashboard/dist/assets/index-D5AO7YF_.js +274 -0
- package/dashboard/dist/assets/index-DllAFtF8.css +1 -0
- package/dashboard/dist/index.html +20 -3
- package/dist/mechanism.test.js +54 -2
- package/dist/mechanism.test.js.map +1 -1
- package/dist/run-instance.js +56 -2
- package/dist/run-instance.js.map +1 -1
- package/dist/run.js +15 -0
- package/dist/run.js.map +1 -1
- package/dist/seed.js +56 -0
- package/dist/seed.js.map +1 -1
- package/package.json +2 -2
- package/dashboard/dist/assets/index-DbWEwzO3.css +0 -1
- package/dashboard/dist/assets/index-GvQi4Peq.js +0 -264
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
var j0=Object.defineProperty;var Yd=e=>{throw TypeError(e)};var R0=(e,t,n)=>t in e?j0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ce=(e,t,n)=>R0(e,typeof t!="symbol"?t+"":t,n),Bl=(e,t,n)=>t.has(e)||Yd("Cannot "+n);var _=(e,t,n)=>(Bl(e,t,"read from private field"),n?n.call(e):t.get(e)),U=(e,t,n)=>t.has(e)?Yd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(Bl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),W=(e,t,n)=>(Bl(e,t,"access private method"),n);var Di=(e,t,n,r)=>({set _(s){M(e,t,s,n)},get _(){return _(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cm={exports:{}},rl={},jm={exports:{}},Y={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var mi=Symbol.for("react.element"),L0=Symbol.for("react.portal"),D0=Symbol.for("react.fragment"),O0=Symbol.for("react.strict_mode"),P0=Symbol.for("react.profiler"),M0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),$0=Symbol.for("react.forward_ref"),F0=Symbol.for("react.suspense"),z0=Symbol.for("react.memo"),q0=Symbol.for("react.lazy"),Xd=Symbol.iterator;function U0(e){return e===null||typeof e!="object"?null:(e=Xd&&e[Xd]||e["@@iterator"],typeof e=="function"?e:null)}var Rm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lm=Object.assign,Dm={};function eo(e,t,n){this.props=e,this.context=t,this.refs=Dm,this.updater=n||Rm}eo.prototype.isReactComponent={};eo.prototype.setState=function(e,t){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,t,"setState")};eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Om(){}Om.prototype=eo.prototype;function sf(e,t,n){this.props=e,this.context=t,this.refs=Dm,this.updater=n||Rm}var of=sf.prototype=new Om;of.constructor=sf;Lm(of,eo.prototype);of.isPureReactComponent=!0;var Zd=Array.isArray,Pm=Object.prototype.hasOwnProperty,af={current:null},Mm={key:!0,ref:!0,__self:!0,__source:!0};function Im(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Pm.call(t,r)&&!Mm.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:mi,type:e,key:o,ref:i,props:s,_owner:af.current}}function H0(e,t){return{$$typeof:mi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function lf(e){return typeof e=="object"&&e!==null&&e.$$typeof===mi}function B0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Jd=/\/+/g;function Gl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?B0(""+e.key):t.toString(36)}function la(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case mi:case L0:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+Gl(i,0):r,Zd(s)?(n="",e!=null&&(n=e.replace(Jd,"$&/")+"/"),la(s,t,n,"",function(u){return u})):s!=null&&(lf(s)&&(s=H0(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Jd,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Zd(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Gl(o,a);i+=la(o,t,n,l,s)}else if(l=U0(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Gl(o,a++),i+=la(o,t,n,l,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Oi(e,t,n){if(e==null)return e;var r=[],s=0;return la(e,r,"","",function(o){return t.call(n,o,s++)}),r}function G0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var st={current:null},ca={transition:null},V0={ReactCurrentDispatcher:st,ReactCurrentBatchConfig:ca,ReactCurrentOwner:af};function $m(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:Oi,forEach:function(e,t,n){Oi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Oi(e,function(){t++}),t},toArray:function(e){return Oi(e,function(t){return t})||[]},only:function(e){if(!lf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=eo;Y.Fragment=D0;Y.Profiler=P0;Y.PureComponent=sf;Y.StrictMode=O0;Y.Suspense=F0;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V0;Y.act=$m;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Lm({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=af.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Pm.call(t,l)&&!Mm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:mi,type:e.type,key:s,ref:o,props:r,_owner:i}};Y.createContext=function(e){return e={$$typeof:I0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:M0,_context:e},e.Consumer=e};Y.createElement=Im;Y.createFactory=function(e){var t=Im.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:$0,render:e}};Y.isValidElement=lf;Y.lazy=function(e){return{$$typeof:q0,_payload:{_status:-1,_result:e},_init:G0}};Y.memo=function(e,t){return{$$typeof:z0,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=ca.transition;ca.transition={};try{e()}finally{ca.transition=t}};Y.unstable_act=$m;Y.useCallback=function(e,t){return st.current.useCallback(e,t)};Y.useContext=function(e){return st.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return st.current.useDeferredValue(e)};Y.useEffect=function(e,t){return st.current.useEffect(e,t)};Y.useId=function(){return st.current.useId()};Y.useImperativeHandle=function(e,t,n){return st.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return st.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return st.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return st.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return st.current.useReducer(e,t,n)};Y.useRef=function(e){return st.current.useRef(e)};Y.useState=function(e){return st.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return st.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return st.current.useTransition()};Y.version="18.3.1";jm.exports=Y;var I=jm.exports;const Q0=rf(I);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var W0=I,K0=Symbol.for("react.element"),Y0=Symbol.for("react.fragment"),X0=Object.prototype.hasOwnProperty,Z0=W0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,J0={key:!0,ref:!0,__self:!0,__source:!0};function Fm(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)X0.call(t,r)&&!J0.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:K0,type:e,key:o,ref:i,props:s,_owner:Z0.current}}rl.Fragment=Y0;rl.jsx=Fm;rl.jsxs=Fm;Cm.exports=rl;var c=Cm.exports,zm={exports:{}},Nt={},qm={exports:{}},Um={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(L,z){var G=L.length;L.push(z);e:for(;0<G;){var q=G-1>>>1,K=L[q];if(0<s(K,z))L[q]=z,L[G]=K,G=q;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],G=L.pop();if(G!==z){L[0]=G;e:for(var q=0,K=L.length,Kt=K>>>1;q<Kt;){var _e=2*(q+1)-1,ht=L[_e],Ie=_e+1,mt=L[Ie];if(0>s(ht,G))Ie<K&&0>s(mt,ht)?(L[q]=mt,L[Ie]=G,q=Ie):(L[q]=ht,L[_e]=G,q=_e);else if(Ie<K&&0>s(mt,G))L[q]=mt,L[Ie]=G,q=Ie;else break e}}return z}function s(L,z){var G=L.sortIndex-z.sortIndex;return G!==0?G:L.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,f=null,p=3,y=!1,k=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(L){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=L)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function v(L){if(x=!1,m(L),!k)if(n(l)!==null)k=!0,Ge(w);else{var z=n(u);z!==null&&Ve(v,z.startTime-L)}}function w(L,z){k=!1,x&&(x=!1,g(A),A=-1),y=!0;var G=p;try{for(m(z),f=n(l);f!==null&&(!(f.expirationTime>z)||L&&!D());){var q=f.callback;if(typeof q=="function"){f.callback=null,p=f.priorityLevel;var K=q(f.expirationTime<=z);z=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),m(z)}else r(l);f=n(l)}if(f!==null)var Kt=!0;else{var _e=n(u);_e!==null&&Ve(v,_e.startTime-z),Kt=!1}return Kt}finally{f=null,p=G,y=!1}}var S=!1,N=null,A=-1,j=5,E=-1;function D(){return!(e.unstable_now()-E<j)}function H(){if(N!==null){var L=e.unstable_now();E=L;var z=!0;try{z=N(!0,L)}finally{z?V():(S=!1,N=null)}}else S=!1}var V;if(typeof h=="function")V=function(){h(H)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,se=B.port2;B.port1.onmessage=H,V=function(){se.postMessage(null)}}else V=function(){T(H,0)};function Ge(L){N=L,S||(S=!0,V())}function Ve(L,z){A=T(function(){L(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){k||y||(k=!0,Ge(w))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(L){switch(p){case 1:case 2:case 3:var z=3;break;default:z=p}var G=p;p=z;try{return L()}finally{p=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var G=p;p=L;try{return z()}finally{p=G}},e.unstable_scheduleCallback=function(L,z,G){var q=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?q+G:q):G=q,L){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=G+K,L={id:d++,callback:z,priorityLevel:L,startTime:G,expirationTime:K,sortIndex:-1},G>q?(L.sortIndex=G,t(u,L),n(l)===null&&L===n(u)&&(x?(g(A),A=-1):x=!0,Ve(v,G-q))):(L.sortIndex=K,t(l,L),k||y||(k=!0,Ge(w))),L},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(L){var z=p;return function(){var G=p;p=z;try{return L.apply(this,arguments)}finally{p=G}}}})(Um);qm.exports=Um;var ex=qm.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var tx=I,Tt=ex;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Hm=new Set,zo={};function Wr(e,t){Gs(e,t),Gs(e+"Capture",t)}function Gs(e,t){for(zo[e]=t,e=0;e<t.length;e++)Hm.add(t[e])}var Tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=Object.prototype.hasOwnProperty,nx=/^[: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]*$/,ep={},tp={};function rx(e){return Dc.call(tp,e)?!0:Dc.call(ep,e)?!1:nx.test(e)?tp[e]=!0:(ep[e]=!0,!1)}function sx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ox(e,t,n,r){if(t===null||typeof t>"u"||sx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ot(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new ot(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){He[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var cf=/[\-:]([a-z])/g;function uf(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-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(cf,uf);He[t]=new ot(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(cf,uf);He[t]=new ot(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(cf,uf);He[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function ff(e,t,n,r){var s=He.hasOwnProperty(t)?He[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ox(t,n,s,r)&&(n=null),r||s===null?rx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Rn=tx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pi=Symbol.for("react.element"),hs=Symbol.for("react.portal"),ms=Symbol.for("react.fragment"),df=Symbol.for("react.strict_mode"),Oc=Symbol.for("react.profiler"),Bm=Symbol.for("react.provider"),Gm=Symbol.for("react.context"),pf=Symbol.for("react.forward_ref"),Pc=Symbol.for("react.suspense"),Mc=Symbol.for("react.suspense_list"),hf=Symbol.for("react.memo"),Fn=Symbol.for("react.lazy"),Vm=Symbol.for("react.offscreen"),np=Symbol.iterator;function lo(e){return e===null||typeof e!="object"?null:(e=np&&e[np]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,Vl;function So(e){if(Vl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vl=t&&t[1]||""}return`
|
|
34
|
-
`+Vl+e}var Ql=!1;function Wl(e,t){if(!e||Ql)return"";Ql=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
|
|
35
|
-
`),o=r.stack.split(`
|
|
36
|
-
`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=`
|
|
37
|
-
`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Ql=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?So(e):""}function ix(e){switch(e.tag){case 5:return So(e.type);case 16:return So("Lazy");case 13:return So("Suspense");case 19:return So("SuspenseList");case 0:case 2:case 15:return e=Wl(e.type,!1),e;case 11:return e=Wl(e.type.render,!1),e;case 1:return e=Wl(e.type,!0),e;default:return""}}function Ic(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 ms:return"Fragment";case hs:return"Portal";case Oc:return"Profiler";case df:return"StrictMode";case Pc:return"Suspense";case Mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gm:return(e.displayName||"Context")+".Consumer";case Bm:return(e._context.displayName||"Context")+".Provider";case pf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hf:return t=e.displayName||null,t!==null?t:Ic(e.type)||"Memo";case Fn:t=e._payload,e=e._init;try{return Ic(e(t))}catch{}}return null}function ax(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ic(t);case 8:return t===df?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function dr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lx(e){var t=Qm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=lx(e))}function Wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _a(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 $c(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Km(e,t){t=t.checked,t!=null&&ff(e,"checked",t,!1)}function Fc(e,t){Km(e,t);var n=dr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&zc(e,t.type,dr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function zc(e,t,n){(t!=="number"||_a(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Eo=Array.isArray;function Ts(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function qc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function op(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Eo(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:dr(n)}}function Ym(e,t){var n=dr(t.value),r=dr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ip(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Uc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ii,Zm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ii=Ii||document.createElement("div"),Ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cx=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(e){cx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function Jm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Co.hasOwnProperty(e)&&Co[e]?(""+t).trim():t+"px"}function eg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Jm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var ux=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hc(e,t){if(t){if(ux[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gc=null;function mf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vc=null,Ns=null,As=null;function ap(e){if(e=vi(e)){if(typeof Vc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ll(t),Vc(e.stateNode,e.type,t))}}function tg(e){Ns?As?As.push(e):As=[e]:Ns=e}function ng(){if(Ns){var e=Ns,t=As;if(As=Ns=null,ap(e),t)for(e=0;e<t.length;e++)ap(t[e])}}function rg(e,t){return e(t)}function sg(){}var Kl=!1;function og(e,t,n){if(Kl)return e(t,n);Kl=!0;try{return rg(e,t,n)}finally{Kl=!1,(Ns!==null||As!==null)&&(sg(),ng())}}function Uo(e,t){var n=e.stateNode;if(n===null)return null;var r=ll(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var Qc=!1;if(Tn)try{var co={};Object.defineProperty(co,"passive",{get:function(){Qc=!0}}),window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{Qc=!1}function fx(e,t,n,r,s,o,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var jo=!1,Ta=null,Na=!1,Wc=null,dx={onError:function(e){jo=!0,Ta=e}};function px(e,t,n,r,s,o,i,a,l){jo=!1,Ta=null,fx.apply(dx,arguments)}function hx(e,t,n,r,s,o,i,a,l){if(px.apply(this,arguments),jo){if(jo){var u=Ta;jo=!1,Ta=null}else throw Error(R(198));Na||(Na=!0,Wc=u)}}function Kr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ig(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function lp(e){if(Kr(e)!==e)throw Error(R(188))}function mx(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return lp(s),e;if(o===r)return lp(s),t;o=o.sibling}throw Error(R(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function ag(e){return e=mx(e),e!==null?lg(e):null}function lg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=lg(e);if(t!==null)return t;e=e.sibling}return null}var cg=Tt.unstable_scheduleCallback,cp=Tt.unstable_cancelCallback,gx=Tt.unstable_shouldYield,yx=Tt.unstable_requestPaint,Se=Tt.unstable_now,vx=Tt.unstable_getCurrentPriorityLevel,gf=Tt.unstable_ImmediatePriority,ug=Tt.unstable_UserBlockingPriority,Aa=Tt.unstable_NormalPriority,xx=Tt.unstable_LowPriority,fg=Tt.unstable_IdlePriority,sl=null,cn=null;function bx(e){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(sl,e,void 0,(e.current.flags&128)===128)}catch{}}var Gt=Math.clz32?Math.clz32:Sx,wx=Math.log,kx=Math.LN2;function Sx(e){return e>>>=0,e===0?32:31-(wx(e)/kx|0)|0}var $i=64,Fi=4194304;function _o(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=_o(a):(o&=i,o!==0&&(r=_o(o)))}else i=n&~s,i!==0?r=_o(i):o!==0&&(r=_o(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Gt(t),s=1<<n,r|=e[n],t&=~s;return r}function Ex(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _x(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Gt(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=Ex(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Kc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dg(){var e=$i;return $i<<=1,!($i&4194240)&&($i=64),e}function Yl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gt(t),e[t]=n}function Tx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Gt(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function yf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Gt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ie=0;function pg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hg,vf,mg,gg,yg,Yc=!1,zi=[],tr=null,nr=null,rr=null,Ho=new Map,Bo=new Map,qn=[],Nx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function up(e,t){switch(e){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":Ho.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bo.delete(t.pointerId)}}function uo(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=vi(t),t!==null&&vf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Ax(e,t,n,r,s){switch(t){case"focusin":return tr=uo(tr,e,t,n,r,s),!0;case"dragenter":return nr=uo(nr,e,t,n,r,s),!0;case"mouseover":return rr=uo(rr,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Ho.set(o,uo(Ho.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Bo.set(o,uo(Bo.get(o)||null,e,t,n,r,s)),!0}return!1}function vg(e){var t=Tr(e.target);if(t!==null){var n=Kr(t);if(n!==null){if(t=n.tag,t===13){if(t=ig(n),t!==null){e.blockedOn=t,yg(e.priority,function(){mg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ua(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Gc=r,n.target.dispatchEvent(r),Gc=null}else return t=vi(n),t!==null&&vf(t),e.blockedOn=n,!1;t.shift()}return!0}function fp(e,t,n){ua(e)&&n.delete(t)}function Cx(){Yc=!1,tr!==null&&ua(tr)&&(tr=null),nr!==null&&ua(nr)&&(nr=null),rr!==null&&ua(rr)&&(rr=null),Ho.forEach(fp),Bo.forEach(fp)}function fo(e,t){e.blockedOn===t&&(e.blockedOn=null,Yc||(Yc=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,Cx)))}function Go(e){function t(s){return fo(s,e)}if(0<zi.length){fo(zi[0],e);for(var n=1;n<zi.length;n++){var r=zi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tr!==null&&fo(tr,e),nr!==null&&fo(nr,e),rr!==null&&fo(rr,e),Ho.forEach(t),Bo.forEach(t),n=0;n<qn.length;n++)r=qn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)vg(n),n.blockedOn===null&&qn.shift()}var Cs=Rn.ReactCurrentBatchConfig,ja=!0;function jx(e,t,n,r){var s=ie,o=Cs.transition;Cs.transition=null;try{ie=1,xf(e,t,n,r)}finally{ie=s,Cs.transition=o}}function Rx(e,t,n,r){var s=ie,o=Cs.transition;Cs.transition=null;try{ie=4,xf(e,t,n,r)}finally{ie=s,Cs.transition=o}}function xf(e,t,n,r){if(ja){var s=Xc(e,t,n,r);if(s===null)ic(e,t,r,Ra,n),up(e,r);else if(Ax(s,e,t,n,r))r.stopPropagation();else if(up(e,r),t&4&&-1<Nx.indexOf(e)){for(;s!==null;){var o=vi(s);if(o!==null&&hg(o),o=Xc(e,t,n,r),o===null&&ic(e,t,r,Ra,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else ic(e,t,r,null,n)}}var Ra=null;function Xc(e,t,n,r){if(Ra=null,e=mf(r),e=Tr(e),e!==null)if(t=Kr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ig(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ra=e,null}function xg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(vx()){case gf:return 1;case ug:return 4;case Aa:case xx:return 16;case fg:return 536870912;default:return 16}default:return 16}}var Jn=null,bf=null,fa=null;function bg(){if(fa)return fa;var e,t=bf,n=t.length,r,s="value"in Jn?Jn.value:Jn.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return fa=s.slice(e,1<r?1-r:void 0)}function da(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function qi(){return!0}function dp(){return!1}function At(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?qi:dp,this.isPropagationStopped=dp,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qi)},persist:function(){},isPersistent:qi}),t}var to={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wf=At(to),yi=ve({},to,{view:0,detail:0}),Lx=At(yi),Xl,Zl,po,ol=ve({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==po&&(po&&e.type==="mousemove"?(Xl=e.screenX-po.screenX,Zl=e.screenY-po.screenY):Zl=Xl=0,po=e),Xl)},movementY:function(e){return"movementY"in e?e.movementY:Zl}}),pp=At(ol),Dx=ve({},ol,{dataTransfer:0}),Ox=At(Dx),Px=ve({},yi,{relatedTarget:0}),Jl=At(Px),Mx=ve({},to,{animationName:0,elapsedTime:0,pseudoElement:0}),Ix=At(Mx),$x=ve({},to,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fx=At($x),zx=ve({},to,{data:0}),hp=At(zx),qx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ux={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Hx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hx[e])?!!t[e]:!1}function kf(){return Bx}var Gx=ve({},yi,{key:function(e){if(e.key){var t=qx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=da(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ux[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kf,charCode:function(e){return e.type==="keypress"?da(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?da(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vx=At(Gx),Qx=ve({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mp=At(Qx),Wx=ve({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kf}),Kx=At(Wx),Yx=ve({},to,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xx=At(Yx),Zx=ve({},ol,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Jx=At(Zx),e1=[9,13,27,32],Sf=Tn&&"CompositionEvent"in window,Ro=null;Tn&&"documentMode"in document&&(Ro=document.documentMode);var t1=Tn&&"TextEvent"in window&&!Ro,wg=Tn&&(!Sf||Ro&&8<Ro&&11>=Ro),gp=" ",yp=!1;function kg(e,t){switch(e){case"keyup":return e1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gs=!1;function n1(e,t){switch(e){case"compositionend":return Sg(t);case"keypress":return t.which!==32?null:(yp=!0,gp);case"textInput":return e=t.data,e===gp&&yp?null:e;default:return null}}function r1(e,t){if(gs)return e==="compositionend"||!Sf&&kg(e,t)?(e=bg(),fa=bf=Jn=null,gs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wg&&t.locale!=="ko"?null:t.data;default:return null}}var s1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!s1[e.type]:t==="textarea"}function Eg(e,t,n,r){tg(r),t=La(t,"onChange"),0<t.length&&(n=new wf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Lo=null,Vo=null;function o1(e){Pg(e,0)}function il(e){var t=xs(e);if(Wm(t))return e}function i1(e,t){if(e==="change")return t}var _g=!1;if(Tn){var ec;if(Tn){var tc="oninput"in document;if(!tc){var xp=document.createElement("div");xp.setAttribute("oninput","return;"),tc=typeof xp.oninput=="function"}ec=tc}else ec=!1;_g=ec&&(!document.documentMode||9<document.documentMode)}function bp(){Lo&&(Lo.detachEvent("onpropertychange",Tg),Vo=Lo=null)}function Tg(e){if(e.propertyName==="value"&&il(Vo)){var t=[];Eg(t,Vo,e,mf(e)),og(o1,t)}}function a1(e,t,n){e==="focusin"?(bp(),Lo=t,Vo=n,Lo.attachEvent("onpropertychange",Tg)):e==="focusout"&&bp()}function l1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return il(Vo)}function c1(e,t){if(e==="click")return il(t)}function u1(e,t){if(e==="input"||e==="change")return il(t)}function f1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:f1;function Qo(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Dc.call(t,s)||!Qt(e[s],t[s]))return!1}return!0}function wp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kp(e,t){var n=wp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wp(n)}}function Ng(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ng(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ag(){for(var e=window,t=_a();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_a(e.document)}return t}function Ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function d1(e){var t=Ag(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ng(n.ownerDocument.documentElement,n)){if(r!==null&&Ef(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=kp(n,o);var i=kp(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var p1=Tn&&"documentMode"in document&&11>=document.documentMode,ys=null,Zc=null,Do=null,Jc=!1;function Sp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jc||ys==null||ys!==_a(r)||(r=ys,"selectionStart"in r&&Ef(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Do&&Qo(Do,r)||(Do=r,r=La(Zc,"onSelect"),0<r.length&&(t=new wf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ys)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vs={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionend:Ui("Transition","TransitionEnd")},nc={},Cg={};Tn&&(Cg=document.createElement("div").style,"AnimationEvent"in window||(delete vs.animationend.animation,delete vs.animationiteration.animation,delete vs.animationstart.animation),"TransitionEvent"in window||delete vs.transitionend.transition);function al(e){if(nc[e])return nc[e];if(!vs[e])return e;var t=vs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cg)return nc[e]=t[n];return e}var jg=al("animationend"),Rg=al("animationiteration"),Lg=al("animationstart"),Dg=al("transitionend"),Og=new Map,Ep="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function hr(e,t){Og.set(e,t),Wr(t,[e])}for(var rc=0;rc<Ep.length;rc++){var sc=Ep[rc],h1=sc.toLowerCase(),m1=sc[0].toUpperCase()+sc.slice(1);hr(h1,"on"+m1)}hr(jg,"onAnimationEnd");hr(Rg,"onAnimationIteration");hr(Lg,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(Dg,"onTransitionEnd");Gs("onMouseEnter",["mouseout","mouseover"]);Gs("onMouseLeave",["mouseout","mouseover"]);Gs("onPointerEnter",["pointerout","pointerover"]);Gs("onPointerLeave",["pointerout","pointerover"]);Wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),g1=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function _p(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hx(r,t,void 0,e),e.currentTarget=null}function Pg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;_p(s,a,u),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;_p(s,a,u),o=l}}}if(Na)throw e=Wc,Na=!1,Wc=null,e}function ue(e,t){var n=t[su];n===void 0&&(n=t[su]=new Set);var r=e+"__bubble";n.has(r)||(Mg(t,e,2,!1),n.add(r))}function oc(e,t,n){var r=0;t&&(r|=4),Mg(n,e,r,t)}var Hi="_reactListening"+Math.random().toString(36).slice(2);function Wo(e){if(!e[Hi]){e[Hi]=!0,Hm.forEach(function(n){n!=="selectionchange"&&(g1.has(n)||oc(n,!1,e),oc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hi]||(t[Hi]=!0,oc("selectionchange",!1,t))}}function Mg(e,t,n,r){switch(xg(t)){case 1:var s=jx;break;case 4:s=Rx;break;default:s=xf}n=s.bind(null,t,n,e),s=void 0,!Qc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ic(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=Tr(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}og(function(){var u=o,d=mf(n),f=[];e:{var p=Og.get(e);if(p!==void 0){var y=wf,k=e;switch(e){case"keypress":if(da(n)===0)break e;case"keydown":case"keyup":y=Vx;break;case"focusin":k="focus",y=Jl;break;case"focusout":k="blur",y=Jl;break;case"beforeblur":case"afterblur":y=Jl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Ox;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Kx;break;case jg:case Rg:case Lg:y=Ix;break;case Dg:y=Xx;break;case"scroll":y=Lx;break;case"wheel":y=Jx;break;case"copy":case"cut":case"paste":y=Fx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=mp}var x=(t&4)!==0,T=!x&&e==="scroll",g=x?p!==null?p+"Capture":null:p;x=[];for(var h=u,m;h!==null;){m=h;var v=m.stateNode;if(m.tag===5&&v!==null&&(m=v,g!==null&&(v=Uo(h,g),v!=null&&x.push(Ko(h,v,m)))),T)break;h=h.return}0<x.length&&(p=new y(p,k,null,n,d),f.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==Gc&&(k=n.relatedTarget||n.fromElement)&&(Tr(k)||k[Nn]))break e;if((y||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,y?(k=n.relatedTarget||n.toElement,y=u,k=k?Tr(k):null,k!==null&&(T=Kr(k),k!==T||k.tag!==5&&k.tag!==6)&&(k=null)):(y=null,k=u),y!==k)){if(x=pp,v="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(x=mp,v="onPointerLeave",g="onPointerEnter",h="pointer"),T=y==null?p:xs(y),m=k==null?p:xs(k),p=new x(v,h+"leave",y,n,d),p.target=T,p.relatedTarget=m,v=null,Tr(d)===u&&(x=new x(g,h+"enter",k,n,d),x.target=m,x.relatedTarget=T,v=x),T=v,y&&k)t:{for(x=y,g=k,h=0,m=x;m;m=os(m))h++;for(m=0,v=g;v;v=os(v))m++;for(;0<h-m;)x=os(x),h--;for(;0<m-h;)g=os(g),m--;for(;h--;){if(x===g||g!==null&&x===g.alternate)break t;x=os(x),g=os(g)}x=null}else x=null;y!==null&&Tp(f,p,y,x,!1),k!==null&&T!==null&&Tp(f,T,k,x,!0)}}e:{if(p=u?xs(u):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var w=i1;else if(vp(p))if(_g)w=u1;else{w=l1;var S=a1}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(w=c1);if(w&&(w=w(e,u))){Eg(f,w,n,d);break e}S&&S(e,p,u),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&zc(p,"number",p.value)}switch(S=u?xs(u):window,e){case"focusin":(vp(S)||S.contentEditable==="true")&&(ys=S,Zc=u,Do=null);break;case"focusout":Do=Zc=ys=null;break;case"mousedown":Jc=!0;break;case"contextmenu":case"mouseup":case"dragend":Jc=!1,Sp(f,n,d);break;case"selectionchange":if(p1)break;case"keydown":case"keyup":Sp(f,n,d)}var N;if(Sf)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else gs?kg(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(wg&&n.locale!=="ko"&&(gs||A!=="onCompositionStart"?A==="onCompositionEnd"&&gs&&(N=bg()):(Jn=d,bf="value"in Jn?Jn.value:Jn.textContent,gs=!0)),S=La(u,A),0<S.length&&(A=new hp(A,e,null,n,d),f.push({event:A,listeners:S}),N?A.data=N:(N=Sg(n),N!==null&&(A.data=N)))),(N=t1?n1(e,n):r1(e,n))&&(u=La(u,"onBeforeInput"),0<u.length&&(d=new hp("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=N))}Pg(f,t)})}function Ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function La(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Uo(e,n),o!=null&&r.unshift(Ko(e,o,s)),o=Uo(e,t),o!=null&&r.push(Ko(e,o,s))),e=e.return}return r}function os(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Tp(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Uo(n,o),l!=null&&i.unshift(Ko(n,l,a))):s||(l=Uo(n,o),l!=null&&i.push(Ko(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var y1=/\r\n?/g,v1=/\u0000|\uFFFD/g;function Np(e){return(typeof e=="string"?e:""+e).replace(y1,`
|
|
38
|
-
`).replace(v1,"")}function Bi(e,t,n){if(t=Np(t),Np(e)!==t&&n)throw Error(R(425))}function Da(){}var eu=null,tu=null;function nu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ru=typeof setTimeout=="function"?setTimeout:void 0,x1=typeof clearTimeout=="function"?clearTimeout:void 0,Ap=typeof Promise=="function"?Promise:void 0,b1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ap<"u"?function(e){return Ap.resolve(null).then(e).catch(w1)}:ru;function w1(e){setTimeout(function(){throw e})}function ac(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Go(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Go(t)}function sr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Cp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var no=Math.random().toString(36).slice(2),on="__reactFiber$"+no,Yo="__reactProps$"+no,Nn="__reactContainer$"+no,su="__reactEvents$"+no,k1="__reactListeners$"+no,S1="__reactHandles$"+no;function Tr(e){var t=e[on];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[on]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cp(e);e!==null;){if(n=e[on])return n;e=Cp(e)}return t}e=n,n=e.parentNode}return null}function vi(e){return e=e[on]||e[Nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ll(e){return e[Yo]||null}var ou=[],bs=-1;function mr(e){return{current:e}}function pe(e){0>bs||(e.current=ou[bs],ou[bs]=null,bs--)}function le(e,t){bs++,ou[bs]=e.current,e.current=t}var pr={},Ze=mr(pr),ft=mr(!1),qr=pr;function Vs(e,t){var n=e.type.contextTypes;if(!n)return pr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function dt(e){return e=e.childContextTypes,e!=null}function Oa(){pe(ft),pe(Ze)}function jp(e,t,n){if(Ze.current!==pr)throw Error(R(168));le(Ze,t),le(ft,n)}function Ig(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(R(108,ax(e)||"Unknown",s));return ve({},n,r)}function Pa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pr,qr=Ze.current,le(Ze,e),le(ft,ft.current),!0}function Rp(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Ig(e,t,qr),r.__reactInternalMemoizedMergedChildContext=e,pe(ft),pe(Ze),le(Ze,e)):pe(ft),le(ft,n)}var vn=null,cl=!1,lc=!1;function $g(e){vn===null?vn=[e]:vn.push(e)}function E1(e){cl=!0,$g(e)}function gr(){if(!lc&&vn!==null){lc=!0;var e=0,t=ie;try{var n=vn;for(ie=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vn=null,cl=!1}catch(s){throw vn!==null&&(vn=vn.slice(e+1)),cg(gf,gr),s}finally{ie=t,lc=!1}}return null}var ws=[],ks=0,Ma=null,Ia=0,Rt=[],Lt=0,Ur=null,wn=1,kn="";function wr(e,t){ws[ks++]=Ia,ws[ks++]=Ma,Ma=e,Ia=t}function Fg(e,t,n){Rt[Lt++]=wn,Rt[Lt++]=kn,Rt[Lt++]=Ur,Ur=e;var r=wn;e=kn;var s=32-Gt(r)-1;r&=~(1<<s),n+=1;var o=32-Gt(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,wn=1<<32-Gt(t)+s|n<<s|r,kn=o+e}else wn=1<<o|n<<s|r,kn=e}function _f(e){e.return!==null&&(wr(e,1),Fg(e,1,0))}function Tf(e){for(;e===Ma;)Ma=ws[--ks],ws[ks]=null,Ia=ws[--ks],ws[ks]=null;for(;e===Ur;)Ur=Rt[--Lt],Rt[Lt]=null,kn=Rt[--Lt],Rt[Lt]=null,wn=Rt[--Lt],Rt[Lt]=null}var Et=null,kt=null,me=!1,Bt=null;function zg(e,t){var n=Dt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Lp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Et=e,kt=sr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Et=e,kt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ur!==null?{id:wn,overflow:kn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Et=e,kt=null,!0):!1;default:return!1}}function iu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function au(e){if(me){var t=kt;if(t){var n=t;if(!Lp(e,t)){if(iu(e))throw Error(R(418));t=sr(n.nextSibling);var r=Et;t&&Lp(e,t)?zg(r,n):(e.flags=e.flags&-4097|2,me=!1,Et=e)}}else{if(iu(e))throw Error(R(418));e.flags=e.flags&-4097|2,me=!1,Et=e}}}function Dp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Et=e}function Gi(e){if(e!==Et)return!1;if(!me)return Dp(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nu(e.type,e.memoizedProps)),t&&(t=kt)){if(iu(e))throw qg(),Error(R(418));for(;t;)zg(e,t),t=sr(t.nextSibling)}if(Dp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){kt=sr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}kt=null}}else kt=Et?sr(e.stateNode.nextSibling):null;return!0}function qg(){for(var e=kt;e;)e=sr(e.nextSibling)}function Qs(){kt=Et=null,me=!1}function Nf(e){Bt===null?Bt=[e]:Bt.push(e)}var _1=Rn.ReactCurrentBatchConfig;function ho(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function Vi(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Op(e){var t=e._init;return t(e._payload)}function Ug(e){function t(g,h){if(e){var m=g.deletions;m===null?(g.deletions=[h],g.flags|=16):m.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function s(g,h){return g=lr(g,h),g.index=0,g.sibling=null,g}function o(g,h,m){return g.index=m,e?(m=g.alternate,m!==null?(m=m.index,m<h?(g.flags|=2,h):m):(g.flags|=2,h)):(g.flags|=1048576,h)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,h,m,v){return h===null||h.tag!==6?(h=mc(m,g.mode,v),h.return=g,h):(h=s(h,m),h.return=g,h)}function l(g,h,m,v){var w=m.type;return w===ms?d(g,h,m.props.children,v,m.key):h!==null&&(h.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Fn&&Op(w)===h.type)?(v=s(h,m.props),v.ref=ho(g,h,m),v.return=g,v):(v=xa(m.type,m.key,m.props,null,g.mode,v),v.ref=ho(g,h,m),v.return=g,v)}function u(g,h,m,v){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=gc(m,g.mode,v),h.return=g,h):(h=s(h,m.children||[]),h.return=g,h)}function d(g,h,m,v,w){return h===null||h.tag!==7?(h=zr(m,g.mode,v,w),h.return=g,h):(h=s(h,m),h.return=g,h)}function f(g,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=mc(""+h,g.mode,m),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Pi:return m=xa(h.type,h.key,h.props,null,g.mode,m),m.ref=ho(g,null,h),m.return=g,m;case hs:return h=gc(h,g.mode,m),h.return=g,h;case Fn:var v=h._init;return f(g,v(h._payload),m)}if(Eo(h)||lo(h))return h=zr(h,g.mode,m,null),h.return=g,h;Vi(g,h)}return null}function p(g,h,m,v){var w=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return w!==null?null:a(g,h,""+m,v);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Pi:return m.key===w?l(g,h,m,v):null;case hs:return m.key===w?u(g,h,m,v):null;case Fn:return w=m._init,p(g,h,w(m._payload),v)}if(Eo(m)||lo(m))return w!==null?null:d(g,h,m,v,null);Vi(g,m)}return null}function y(g,h,m,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return g=g.get(m)||null,a(h,g,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Pi:return g=g.get(v.key===null?m:v.key)||null,l(h,g,v,w);case hs:return g=g.get(v.key===null?m:v.key)||null,u(h,g,v,w);case Fn:var S=v._init;return y(g,h,m,S(v._payload),w)}if(Eo(v)||lo(v))return g=g.get(m)||null,d(h,g,v,w,null);Vi(h,v)}return null}function k(g,h,m,v){for(var w=null,S=null,N=h,A=h=0,j=null;N!==null&&A<m.length;A++){N.index>A?(j=N,N=null):j=N.sibling;var E=p(g,N,m[A],v);if(E===null){N===null&&(N=j);break}e&&N&&E.alternate===null&&t(g,N),h=o(E,h,A),S===null?w=E:S.sibling=E,S=E,N=j}if(A===m.length)return n(g,N),me&&wr(g,A),w;if(N===null){for(;A<m.length;A++)N=f(g,m[A],v),N!==null&&(h=o(N,h,A),S===null?w=N:S.sibling=N,S=N);return me&&wr(g,A),w}for(N=r(g,N);A<m.length;A++)j=y(N,g,A,m[A],v),j!==null&&(e&&j.alternate!==null&&N.delete(j.key===null?A:j.key),h=o(j,h,A),S===null?w=j:S.sibling=j,S=j);return e&&N.forEach(function(D){return t(g,D)}),me&&wr(g,A),w}function x(g,h,m,v){var w=lo(m);if(typeof w!="function")throw Error(R(150));if(m=w.call(m),m==null)throw Error(R(151));for(var S=w=null,N=h,A=h=0,j=null,E=m.next();N!==null&&!E.done;A++,E=m.next()){N.index>A?(j=N,N=null):j=N.sibling;var D=p(g,N,E.value,v);if(D===null){N===null&&(N=j);break}e&&N&&D.alternate===null&&t(g,N),h=o(D,h,A),S===null?w=D:S.sibling=D,S=D,N=j}if(E.done)return n(g,N),me&&wr(g,A),w;if(N===null){for(;!E.done;A++,E=m.next())E=f(g,E.value,v),E!==null&&(h=o(E,h,A),S===null?w=E:S.sibling=E,S=E);return me&&wr(g,A),w}for(N=r(g,N);!E.done;A++,E=m.next())E=y(N,g,A,E.value,v),E!==null&&(e&&E.alternate!==null&&N.delete(E.key===null?A:E.key),h=o(E,h,A),S===null?w=E:S.sibling=E,S=E);return e&&N.forEach(function(H){return t(g,H)}),me&&wr(g,A),w}function T(g,h,m,v){if(typeof m=="object"&&m!==null&&m.type===ms&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Pi:e:{for(var w=m.key,S=h;S!==null;){if(S.key===w){if(w=m.type,w===ms){if(S.tag===7){n(g,S.sibling),h=s(S,m.props.children),h.return=g,g=h;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Fn&&Op(w)===S.type){n(g,S.sibling),h=s(S,m.props),h.ref=ho(g,S,m),h.return=g,g=h;break e}n(g,S);break}else t(g,S);S=S.sibling}m.type===ms?(h=zr(m.props.children,g.mode,v,m.key),h.return=g,g=h):(v=xa(m.type,m.key,m.props,null,g.mode,v),v.ref=ho(g,h,m),v.return=g,g=v)}return i(g);case hs:e:{for(S=m.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(g,h.sibling),h=s(h,m.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=gc(m,g.mode,v),h.return=g,g=h}return i(g);case Fn:return S=m._init,T(g,h,S(m._payload),v)}if(Eo(m))return k(g,h,m,v);if(lo(m))return x(g,h,m,v);Vi(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(g,h.sibling),h=s(h,m),h.return=g,g=h):(n(g,h),h=mc(m,g.mode,v),h.return=g,g=h),i(g)):n(g,h)}return T}var Ws=Ug(!0),Hg=Ug(!1),$a=mr(null),Fa=null,Ss=null,Af=null;function Cf(){Af=Ss=Fa=null}function jf(e){var t=$a.current;pe($a),e._currentValue=t}function lu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function js(e,t){Fa=e,Af=Ss=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function Pt(e){var t=e._currentValue;if(Af!==e)if(e={context:e,memoizedValue:t,next:null},Ss===null){if(Fa===null)throw Error(R(308));Ss=e,Fa.dependencies={lanes:0,firstContext:e}}else Ss=Ss.next=e;return t}var Nr=null;function Rf(e){Nr===null?Nr=[e]:Nr.push(e)}function Bg(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Rf(t)):(n.next=s.next,s.next=n),t.interleaved=n,An(e,r)}function An(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zn=!1;function Lf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function or(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,An(e,n)}return s=r.interleaved,s===null?(t.next=t,Rf(r)):(t.next=s.next,s.next=t),r.interleaved=t,An(e,n)}function pa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yf(e,n)}}function Pp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function za(e,t,n,r){var s=e.updateQueue;zn=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,d=u=l=null,a=o;do{var p=a.lane,y=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var k=e,x=a;switch(p=t,y=n,x.tag){case 1:if(k=x.payload,typeof k=="function"){f=k.call(y,f,p);break e}f=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=x.payload,p=typeof k=="function"?k.call(y,f,p):k,p==null)break e;f=ve({},f,p);break e;case 2:zn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else y={eventTime:y,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=y,l=f):d=d.next=y,i|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Br|=i,e.lanes=i,e.memoizedState=f}}function Mp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(R(191,s));s.call(r)}}}var xi={},un=mr(xi),Xo=mr(xi),Zo=mr(xi);function Ar(e){if(e===xi)throw Error(R(174));return e}function Df(e,t){switch(le(Zo,t),le(Xo,e),le(un,xi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Uc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Uc(t,e)}pe(un),le(un,t)}function Ks(){pe(un),pe(Xo),pe(Zo)}function Vg(e){Ar(Zo.current);var t=Ar(un.current),n=Uc(t,e.type);t!==n&&(le(Xo,e),le(un,n))}function Of(e){Xo.current===e&&(pe(un),pe(Xo))}var ge=mr(0);function qa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cc=[];function Pf(){for(var e=0;e<cc.length;e++)cc[e]._workInProgressVersionPrimary=null;cc.length=0}var ha=Rn.ReactCurrentDispatcher,uc=Rn.ReactCurrentBatchConfig,Hr=0,ye=null,Ce=null,Pe=null,Ua=!1,Oo=!1,Jo=0,T1=0;function Qe(){throw Error(R(321))}function Mf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qt(e[n],t[n]))return!1;return!0}function If(e,t,n,r,s,o){if(Hr=o,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ha.current=e===null||e.memoizedState===null?j1:R1,e=n(r,s),Oo){o=0;do{if(Oo=!1,Jo=0,25<=o)throw Error(R(301));o+=1,Pe=Ce=null,t.updateQueue=null,ha.current=L1,e=n(r,s)}while(Oo)}if(ha.current=Ha,t=Ce!==null&&Ce.next!==null,Hr=0,Pe=Ce=ye=null,Ua=!1,t)throw Error(R(300));return e}function $f(){var e=Jo!==0;return Jo=0,e}function tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?ye.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Mt(){if(Ce===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Pe===null?ye.memoizedState:Pe.next;if(t!==null)Pe=t,Ce=e;else{if(e===null)throw Error(R(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Pe===null?ye.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function ei(e,t){return typeof t=="function"?t(e):t}function fc(e){var t=Mt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=Ce,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,l=null,u=o;do{var d=u.lane;if((Hr&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,ye.lanes|=d,Br|=d}u=u.next}while(u!==null&&u!==o);l===null?i=r:l.next=a,Qt(r,t.memoizedState)||(ut=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,ye.lanes|=o,Br|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function dc(e){var t=Mt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Qt(o,t.memoizedState)||(ut=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Qg(){}function Wg(e,t){var n=ye,r=Mt(),s=t(),o=!Qt(r.memoizedState,s);if(o&&(r.memoizedState=s,ut=!0),r=r.queue,Ff(Xg.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,ti(9,Yg.bind(null,n,r,s,t),void 0,null),Me===null)throw Error(R(349));Hr&30||Kg(n,t,s)}return s}function Kg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yg(e,t,n,r){t.value=n,t.getSnapshot=r,Zg(t)&&Jg(e)}function Xg(e,t,n){return n(function(){Zg(t)&&Jg(e)})}function Zg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qt(e,n)}catch{return!0}}function Jg(e){var t=An(e,1);t!==null&&Vt(t,e,1,-1)}function Ip(e){var t=tn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e},t.queue=e,e=e.dispatch=C1.bind(null,ye,e),[t.memoizedState,e]}function ti(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ey(){return Mt().memoizedState}function ma(e,t,n,r){var s=tn();ye.flags|=e,s.memoizedState=ti(1|t,n,void 0,r===void 0?null:r)}function ul(e,t,n,r){var s=Mt();r=r===void 0?null:r;var o=void 0;if(Ce!==null){var i=Ce.memoizedState;if(o=i.destroy,r!==null&&Mf(r,i.deps)){s.memoizedState=ti(t,n,o,r);return}}ye.flags|=e,s.memoizedState=ti(1|t,n,o,r)}function $p(e,t){return ma(8390656,8,e,t)}function Ff(e,t){return ul(2048,8,e,t)}function ty(e,t){return ul(4,2,e,t)}function ny(e,t){return ul(4,4,e,t)}function ry(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sy(e,t,n){return n=n!=null?n.concat([e]):null,ul(4,4,ry.bind(null,t,e),n)}function zf(){}function oy(e,t){var n=Mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iy(e,t){var n=Mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ay(e,t,n){return Hr&21?(Qt(n,t)||(n=dg(),ye.lanes|=n,Br|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n)}function N1(e,t){var n=ie;ie=n!==0&&4>n?n:4,e(!0);var r=uc.transition;uc.transition={};try{e(!1),t()}finally{ie=n,uc.transition=r}}function ly(){return Mt().memoizedState}function A1(e,t,n){var r=ar(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cy(e))uy(t,n);else if(n=Bg(e,t,n,r),n!==null){var s=rt();Vt(n,e,r,s),fy(n,t,r)}}function C1(e,t,n){var r=ar(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cy(e))uy(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,Qt(a,i)){var l=t.interleaved;l===null?(s.next=s,Rf(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Bg(e,t,s,r),n!==null&&(s=rt(),Vt(n,e,r,s),fy(n,t,r))}}function cy(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function uy(e,t){Oo=Ua=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yf(e,n)}}var Ha={readContext:Pt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},j1={readContext:Pt,useCallback:function(e,t){return tn().memoizedState=[e,t===void 0?null:t],e},useContext:Pt,useEffect:$p,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ma(4194308,4,ry.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=tn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=A1.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=tn();return e={current:e},t.memoizedState=e},useState:Ip,useDebugValue:zf,useDeferredValue:function(e){return tn().memoizedState=e},useTransition:function(){var e=Ip(!1),t=e[0];return e=N1.bind(null,e[1]),tn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,s=tn();if(me){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Me===null)throw Error(R(349));Hr&30||Kg(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,$p(Xg.bind(null,r,o,e),[e]),r.flags|=2048,ti(9,Yg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=tn(),t=Me.identifierPrefix;if(me){var n=kn,r=wn;n=(r&~(1<<32-Gt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=T1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},R1={readContext:Pt,useCallback:oy,useContext:Pt,useEffect:Ff,useImperativeHandle:sy,useInsertionEffect:ty,useLayoutEffect:ny,useMemo:iy,useReducer:fc,useRef:ey,useState:function(){return fc(ei)},useDebugValue:zf,useDeferredValue:function(e){var t=Mt();return ay(t,Ce.memoizedState,e)},useTransition:function(){var e=fc(ei)[0],t=Mt().memoizedState;return[e,t]},useMutableSource:Qg,useSyncExternalStore:Wg,useId:ly,unstable_isNewReconciler:!1},L1={readContext:Pt,useCallback:oy,useContext:Pt,useEffect:Ff,useImperativeHandle:sy,useInsertionEffect:ty,useLayoutEffect:ny,useMemo:iy,useReducer:dc,useRef:ey,useState:function(){return dc(ei)},useDebugValue:zf,useDeferredValue:function(e){var t=Mt();return Ce===null?t.memoizedState=e:ay(t,Ce.memoizedState,e)},useTransition:function(){var e=dc(ei)[0],t=Mt().memoizedState;return[e,t]},useMutableSource:Qg,useSyncExternalStore:Wg,useId:ly,unstable_isNewReconciler:!1};function qt(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function cu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fl={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),s=ar(e),o=Sn(r,s);o.payload=t,n!=null&&(o.callback=n),t=or(e,o,s),t!==null&&(Vt(t,e,s,r),pa(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),s=ar(e),o=Sn(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=or(e,o,s),t!==null&&(Vt(t,e,s,r),pa(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=ar(e),s=Sn(n,r);s.tag=2,t!=null&&(s.callback=t),t=or(e,s,r),t!==null&&(Vt(t,e,r,n),pa(t,e,r))}};function Fp(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Qo(n,r)||!Qo(s,o):!0}function dy(e,t,n){var r=!1,s=pr,o=t.contextType;return typeof o=="object"&&o!==null?o=Pt(o):(s=dt(t)?qr:Ze.current,r=t.contextTypes,o=(r=r!=null)?Vs(e,s):pr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function zp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&fl.enqueueReplaceState(t,t.state,null)}function uu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Lf(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Pt(o):(o=dt(t)?qr:Ze.current,s.context=Vs(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(cu(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&fl.enqueueReplaceState(s,s.state,null),za(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ys(e,t){try{var n="",r=t;do n+=ix(r),r=r.return;while(r);var s=n}catch(o){s=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:s,digest:null}}function pc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function fu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var D1=typeof WeakMap=="function"?WeakMap:Map;function py(e,t,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ga||(Ga=!0,wu=r),fu(e,t)},n}function hy(e,t,n){n=Sn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){fu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){fu(e,t),typeof r!="function"&&(ir===null?ir=new Set([this]):ir.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function qp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new D1;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Q1.bind(null,e,t,n),t.then(e,e))}function Up(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Hp(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Sn(-1,1),t.tag=2,or(n,t,1))),n.lanes|=1),e)}var O1=Rn.ReactCurrentOwner,ut=!1;function nt(e,t,n,r){t.child=e===null?Hg(t,null,n,r):Ws(t,e.child,n,r)}function Bp(e,t,n,r,s){n=n.render;var o=t.ref;return js(t,s),r=If(e,t,n,r,o,s),n=$f(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Cn(e,t,s)):(me&&n&&_f(t),t.flags|=1,nt(e,t,r,s),t.child)}function Gp(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Wf(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,my(e,t,o,r,s)):(e=xa(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Qo,n(i,r)&&e.ref===t.ref)return Cn(e,t,s)}return t.flags|=1,e=lr(o,r),e.ref=t.ref,e.return=t,t.child=e}function my(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(Qo(o,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,Cn(e,t,s)}return du(e,t,n,r,s)}function gy(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(_s,yt),yt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(_s,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,le(_s,yt),yt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,le(_s,yt),yt|=r;return nt(e,t,s,n),t.child}function yy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function du(e,t,n,r,s){var o=dt(n)?qr:Ze.current;return o=Vs(t,o),js(t,s),n=If(e,t,n,r,o,s),r=$f(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Cn(e,t,s)):(me&&r&&_f(t),t.flags|=1,nt(e,t,n,s),t.child)}function Vp(e,t,n,r,s){if(dt(n)){var o=!0;Pa(t)}else o=!1;if(js(t,s),t.stateNode===null)ga(e,t),dy(t,n,r),uu(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Pt(u):(u=dt(n)?qr:Ze.current,u=Vs(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&zp(t,i,r,u),zn=!1;var p=t.memoizedState;i.state=p,za(t,r,i,s),l=t.memoizedState,a!==r||p!==l||ft.current||zn?(typeof d=="function"&&(cu(t,n,d,r),l=t.memoizedState),(a=zn||Fp(t,n,a,r,p,l,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Gg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:qt(t.type,a),i.props=u,f=t.pendingProps,p=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Pt(l):(l=dt(n)?qr:Ze.current,l=Vs(t,l));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||p!==l)&&zp(t,i,r,l),zn=!1,p=t.memoizedState,i.state=p,za(t,r,i,s);var k=t.memoizedState;a!==f||p!==k||ft.current||zn?(typeof y=="function"&&(cu(t,n,y,r),k=t.memoizedState),(u=zn||Fp(t,n,u,r,p,k,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,k,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,k,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),i.props=r,i.state=k,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return pu(e,t,n,r,o,s)}function pu(e,t,n,r,s,o){yy(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&Rp(t,n,!1),Cn(e,t,o);r=t.stateNode,O1.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ws(t,e.child,null,o),t.child=Ws(t,null,a,o)):nt(e,t,a,o),t.memoizedState=r.state,s&&Rp(t,n,!0),t.child}function vy(e){var t=e.stateNode;t.pendingContext?jp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jp(e,t.context,!1),Df(e,t.containerInfo)}function Qp(e,t,n,r,s){return Qs(),Nf(s),t.flags|=256,nt(e,t,n,r),t.child}var hu={dehydrated:null,treeContext:null,retryLane:0};function mu(e){return{baseLanes:e,cachePool:null,transitions:null}}function xy(e,t,n){var r=t.pendingProps,s=ge.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),le(ge,s&1),e===null)return au(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=hl(i,r,0,null),e=zr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=mu(n),t.memoizedState=hu,e):qf(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return P1(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=lr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=lr(a,o):(o=zr(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?mu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=hu,r}return o=e.child,e=o.sibling,r=lr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function qf(e,t){return t=hl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qi(e,t,n,r){return r!==null&&Nf(r),Ws(t,e.child,null,n),e=qf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P1(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=pc(Error(R(422))),Qi(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=hl({mode:"visible",children:r.children},s,0,null),o=zr(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ws(t,e.child,null,i),t.child.memoizedState=mu(i),t.memoizedState=hu,o);if(!(t.mode&1))return Qi(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(R(419)),r=pc(o,r,void 0),Qi(e,t,i,r)}if(a=(i&e.childLanes)!==0,ut||a){if(r=Me,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,An(e,s),Vt(r,e,s,-1))}return Qf(),r=pc(Error(R(421))),Qi(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=W1.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,kt=sr(s.nextSibling),Et=t,me=!0,Bt=null,e!==null&&(Rt[Lt++]=wn,Rt[Lt++]=kn,Rt[Lt++]=Ur,wn=e.id,kn=e.overflow,Ur=t),t=qf(t,r.children),t.flags|=4096,t)}function Wp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lu(e.return,t,n)}function hc(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function by(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(nt(e,t,r.children,n),r=ge.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wp(e,n,t);else if(e.tag===19)Wp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(ge,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&qa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),hc(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&qa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}hc(t,!0,n,null,o);break;case"together":hc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ga(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Br|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function M1(e,t,n){switch(t.tag){case 3:vy(t),Qs();break;case 5:Vg(t);break;case 1:dt(t.type)&&Pa(t);break;case 4:Df(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;le($a,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?xy(e,t,n):(le(ge,ge.current&1),e=Cn(e,t,n),e!==null?e.sibling:null);le(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return by(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),le(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,gy(e,t,n)}return Cn(e,t,n)}var wy,gu,ky,Sy;wy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};gu=function(){};ky=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Ar(un.current);var o=null;switch(n){case"input":s=$c(e,s),r=$c(e,r),o=[];break;case"select":s=ve({},s,{value:void 0}),r=ve({},r,{value:void 0}),o=[];break;case"textarea":s=qc(e,s),r=qc(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Da)}Hc(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ue("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Sy=function(e,t,n,r){n!==r&&(t.flags|=4)};function mo(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function I1(e,t,n){var r=t.pendingProps;switch(Tf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return dt(t.type)&&Oa(),We(t),null;case 3:return r=t.stateNode,Ks(),pe(ft),pe(Ze),Pf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(Eu(Bt),Bt=null))),gu(e,t),We(t),null;case 5:Of(t);var s=Ar(Zo.current);if(n=t.type,e!==null&&t.stateNode!=null)ky(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return We(t),null}if(e=Ar(un.current),Gi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[on]=t,r[Yo]=o,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(s=0;s<To.length;s++)ue(To[s],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":rp(r,o),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ue("invalid",r);break;case"textarea":op(r,o),ue("invalid",r)}Hc(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Bi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Bi(r.textContent,a,e),s=["children",""+a]):zo.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&ue("scroll",r)}switch(n){case"input":Mi(r),sp(r,o,!0);break;case"textarea":Mi(r),ip(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Da)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[on]=t,e[Yo]=r,wy(e,t,!1,!1),t.stateNode=e;e:{switch(i=Bc(n,r),n){case"dialog":ue("cancel",e),ue("close",e),s=r;break;case"iframe":case"object":case"embed":ue("load",e),s=r;break;case"video":case"audio":for(s=0;s<To.length;s++)ue(To[s],e);s=r;break;case"source":ue("error",e),s=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),s=r;break;case"details":ue("toggle",e),s=r;break;case"input":rp(e,r),s=$c(e,r),ue("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ve({},r,{value:void 0}),ue("invalid",e);break;case"textarea":op(e,r),s=qc(e,r),ue("invalid",e);break;default:s=r}Hc(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?eg(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Zm(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&qo(e,l):typeof l=="number"&&qo(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(zo.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ue("scroll",e):l!=null&&ff(e,o,l,i))}switch(n){case"input":Mi(e),sp(e,r,!1);break;case"textarea":Mi(e),ip(e);break;case"option":r.value!=null&&e.setAttribute("value",""+dr(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ts(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ts(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Da)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return We(t),null;case 6:if(e&&t.stateNode!=null)Sy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=Ar(Zo.current),Ar(un.current),Gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[on]=t,(o=r.nodeValue!==n)&&(e=Et,e!==null))switch(e.tag){case 3:Bi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[on]=t,t.stateNode=r}return We(t),null;case 13:if(pe(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&kt!==null&&t.mode&1&&!(t.flags&128))qg(),Qs(),t.flags|=98560,o=!1;else if(o=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(R(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[on]=t}else Qs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),o=!1}else Bt!==null&&(Eu(Bt),Bt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?je===0&&(je=3):Qf())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Ks(),gu(e,t),e===null&&Wo(t.stateNode.containerInfo),We(t),null;case 10:return jf(t.type._context),We(t),null;case 17:return dt(t.type)&&Oa(),We(t),null;case 19:if(pe(ge),o=t.memoizedState,o===null)return We(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)mo(o,!1);else{if(je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=qa(e),i!==null){for(t.flags|=128,mo(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(ge,ge.current&1|2),t.child}e=e.sibling}o.tail!==null&&Se()>Xs&&(t.flags|=128,r=!0,mo(o,!1),t.lanes=4194304)}else{if(!r)if(e=qa(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!me)return We(t),null}else 2*Se()-o.renderingStartTime>Xs&&n!==1073741824&&(t.flags|=128,r=!0,mo(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Se(),t.sibling=null,n=ge.current,le(ge,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Vf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function $1(e,t){switch(Tf(t),t.tag){case 1:return dt(t.type)&&Oa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ks(),pe(ft),pe(Ze),Pf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Of(t),null;case 13:if(pe(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Qs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ge),null;case 4:return Ks(),null;case 10:return jf(t.type._context),null;case 22:case 23:return Vf(),null;case 24:return null;default:return null}}var Wi=!1,Xe=!1,F1=typeof WeakSet=="function"?WeakSet:Set,$=null;function Es(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function yu(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Kp=!1;function z1(e,t){if(eu=ja,e=Ag(),Ef(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var y;f!==n||s!==0&&f.nodeType!==3||(a=i+s),f!==o||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++u===s&&(a=i),p===o&&++d===r&&(l=i),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(tu={focusedElem:e,selectionRange:n},ja=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var x=k.memoizedProps,T=k.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:qt(t.type,x),T);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(v){ke(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return k=Kp,Kp=!1,k}function Po(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&yu(t,n,o)}s=s.next}while(s!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ey(e){var t=e.alternate;t!==null&&(e.alternate=null,Ey(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[on],delete t[Yo],delete t[su],delete t[k1],delete t[S1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _y(e){return e.tag===5||e.tag===3||e.tag===4}function Yp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_y(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Da));else if(r!==4&&(e=e.child,e!==null))for(xu(e,t,n),e=e.sibling;e!==null;)xu(e,t,n),e=e.sibling}function bu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}var Fe=null,Ht=!1;function Mn(e,t,n){for(n=n.child;n!==null;)Ty(e,t,n),n=n.sibling}function Ty(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(sl,n)}catch{}switch(n.tag){case 5:Xe||Es(n,t);case 6:var r=Fe,s=Ht;Fe=null,Mn(e,t,n),Fe=r,Ht=s,Fe!==null&&(Ht?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Ht?(e=Fe,n=n.stateNode,e.nodeType===8?ac(e.parentNode,n):e.nodeType===1&&ac(e,n),Go(e)):ac(Fe,n.stateNode));break;case 4:r=Fe,s=Ht,Fe=n.stateNode.containerInfo,Ht=!0,Mn(e,t,n),Fe=r,Ht=s;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&yu(n,t,i),s=s.next}while(s!==r)}Mn(e,t,n);break;case 1:if(!Xe&&(Es(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}Mn(e,t,n);break;case 21:Mn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Mn(e,t,n),Xe=r):Mn(e,t,n);break;default:Mn(e,t,n)}}function Xp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new F1),t.forEach(function(r){var s=K1.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Fe=a.stateNode,Ht=!1;break e;case 3:Fe=a.stateNode.containerInfo,Ht=!0;break e;case 4:Fe=a.stateNode.containerInfo,Ht=!0;break e}a=a.return}if(Fe===null)throw Error(R(160));Ty(o,i,s),Fe=null,Ht=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){ke(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ny(t,e),t=t.sibling}function Ny(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(zt(t,e),Zt(e),r&4){try{Po(3,e,e.return),dl(3,e)}catch(x){ke(e,e.return,x)}try{Po(5,e,e.return)}catch(x){ke(e,e.return,x)}}break;case 1:zt(t,e),Zt(e),r&512&&n!==null&&Es(n,n.return);break;case 5:if(zt(t,e),Zt(e),r&512&&n!==null&&Es(n,n.return),e.flags&32){var s=e.stateNode;try{qo(s,"")}catch(x){ke(e,e.return,x)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Km(s,o),Bc(a,i);var u=Bc(a,o);for(i=0;i<l.length;i+=2){var d=l[i],f=l[i+1];d==="style"?eg(s,f):d==="dangerouslySetInnerHTML"?Zm(s,f):d==="children"?qo(s,f):ff(s,d,f,u)}switch(a){case"input":Fc(s,o);break;case"textarea":Ym(s,o);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Ts(s,!!o.multiple,y,!1):p!==!!o.multiple&&(o.defaultValue!=null?Ts(s,!!o.multiple,o.defaultValue,!0):Ts(s,!!o.multiple,o.multiple?[]:"",!1))}s[Yo]=o}catch(x){ke(e,e.return,x)}}break;case 6:if(zt(t,e),Zt(e),r&4){if(e.stateNode===null)throw Error(R(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(x){ke(e,e.return,x)}}break;case 3:if(zt(t,e),Zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Go(t.containerInfo)}catch(x){ke(e,e.return,x)}break;case 4:zt(t,e),Zt(e);break;case 13:zt(t,e),Zt(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Bf=Se())),r&4&&Xp(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(u=Xe)||d,zt(t,e),Xe=u):zt(t,e),Zt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for($=e,d=e.child;d!==null;){for(f=$=d;$!==null;){switch(p=$,y=p.child,p.tag){case 0:case 11:case 14:case 15:Po(4,p,p.return);break;case 1:Es(p,p.return);var k=p.stateNode;if(typeof k.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(x){ke(r,n,x)}}break;case 5:Es(p,p.return);break;case 22:if(p.memoizedState!==null){Jp(f);continue}}y!==null?(y.return=p,$=y):Jp(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Jm("display",i))}catch(x){ke(e,e.return,x)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){ke(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:zt(t,e),Zt(e),r&4&&Xp(e);break;case 21:break;default:zt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_y(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(qo(s,""),r.flags&=-33);var o=Yp(e);bu(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Yp(e);xu(e,a,i);break;default:throw Error(R(161))}}catch(l){ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function q1(e,t,n){$=e,Ay(e)}function Ay(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var s=$,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Wi;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Xe;a=Wi;var u=Xe;if(Wi=i,(Xe=l)&&!u)for($=s;$!==null;)i=$,l=i.child,i.tag===22&&i.memoizedState!==null?eh(s):l!==null?(l.return=i,$=l):eh(s);for(;o!==null;)$=o,Ay(o),o=o.sibling;$=s,Wi=a,Xe=u}Zp(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,$=o):Zp(e)}}function Zp(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||dl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Mp(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mp(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Go(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Xe||t.flags&512&&vu(t)}catch(p){ke(t,t.return,p)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Jp(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function eh(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{dl(4,t)}catch(l){ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){ke(t,s,l)}}var o=t.return;try{vu(t)}catch(l){ke(t,o,l)}break;case 5:var i=t.return;try{vu(t)}catch(l){ke(t,i,l)}}}catch(l){ke(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var U1=Math.ceil,Ba=Rn.ReactCurrentDispatcher,Uf=Rn.ReactCurrentOwner,Ot=Rn.ReactCurrentBatchConfig,ee=0,Me=null,Ne=null,Ue=0,yt=0,_s=mr(0),je=0,ni=null,Br=0,pl=0,Hf=0,Mo=null,ct=null,Bf=0,Xs=1/0,yn=null,Ga=!1,wu=null,ir=null,Ki=!1,er=null,Va=0,Io=0,ku=null,ya=-1,va=0;function rt(){return ee&6?Se():ya!==-1?ya:ya=Se()}function ar(e){return e.mode&1?ee&2&&Ue!==0?Ue&-Ue:_1.transition!==null?(va===0&&(va=dg()),va):(e=ie,e!==0||(e=window.event,e=e===void 0?16:xg(e.type)),e):1}function Vt(e,t,n,r){if(50<Io)throw Io=0,ku=null,Error(R(185));gi(e,n,r),(!(ee&2)||e!==Me)&&(e===Me&&(!(ee&2)&&(pl|=n),je===4&&Un(e,Ue)),pt(e,r),n===1&&ee===0&&!(t.mode&1)&&(Xs=Se()+500,cl&&gr()))}function pt(e,t){var n=e.callbackNode;_x(e,t);var r=Ca(e,e===Me?Ue:0);if(r===0)n!==null&&cp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&cp(n),t===1)e.tag===0?E1(th.bind(null,e)):$g(th.bind(null,e)),b1(function(){!(ee&6)&&gr()}),n=null;else{switch(pg(r)){case 1:n=gf;break;case 4:n=ug;break;case 16:n=Aa;break;case 536870912:n=fg;break;default:n=Aa}n=My(n,Cy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Cy(e,t){if(ya=-1,va=0,ee&6)throw Error(R(327));var n=e.callbackNode;if(Rs()&&e.callbackNode!==n)return null;var r=Ca(e,e===Me?Ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Qa(e,r);else{t=r;var s=ee;ee|=2;var o=Ry();(Me!==e||Ue!==t)&&(yn=null,Xs=Se()+500,Fr(e,t));do try{G1();break}catch(a){jy(e,a)}while(!0);Cf(),Ba.current=o,ee=s,Ne!==null?t=0:(Me=null,Ue=0,t=je)}if(t!==0){if(t===2&&(s=Kc(e),s!==0&&(r=s,t=Su(e,s))),t===1)throw n=ni,Fr(e,0),Un(e,r),pt(e,Se()),n;if(t===6)Un(e,r);else{if(s=e.current.alternate,!(r&30)&&!H1(s)&&(t=Qa(e,r),t===2&&(o=Kc(e),o!==0&&(r=o,t=Su(e,o))),t===1))throw n=ni,Fr(e,0),Un(e,r),pt(e,Se()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:kr(e,ct,yn);break;case 3:if(Un(e,r),(r&130023424)===r&&(t=Bf+500-Se(),10<t)){if(Ca(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=ru(kr.bind(null,e,ct,yn),t);break}kr(e,ct,yn);break;case 4:if(Un(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-Gt(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*U1(r/1960))-r,10<r){e.timeoutHandle=ru(kr.bind(null,e,ct,yn),r);break}kr(e,ct,yn);break;case 5:kr(e,ct,yn);break;default:throw Error(R(329))}}}return pt(e,Se()),e.callbackNode===n?Cy.bind(null,e):null}function Su(e,t){var n=Mo;return e.current.memoizedState.isDehydrated&&(Fr(e,t).flags|=256),e=Qa(e,t),e!==2&&(t=ct,ct=n,t!==null&&Eu(t)),e}function Eu(e){ct===null?ct=e:ct.push.apply(ct,e)}function H1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!Qt(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Un(e,t){for(t&=~Hf,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Gt(t),r=1<<n;e[n]=-1,t&=~r}}function th(e){if(ee&6)throw Error(R(327));Rs();var t=Ca(e,0);if(!(t&1))return pt(e,Se()),null;var n=Qa(e,t);if(e.tag!==0&&n===2){var r=Kc(e);r!==0&&(t=r,n=Su(e,r))}if(n===1)throw n=ni,Fr(e,0),Un(e,t),pt(e,Se()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kr(e,ct,yn),pt(e,Se()),null}function Gf(e,t){var n=ee;ee|=1;try{return e(t)}finally{ee=n,ee===0&&(Xs=Se()+500,cl&&gr())}}function Gr(e){er!==null&&er.tag===0&&!(ee&6)&&Rs();var t=ee;ee|=1;var n=Ot.transition,r=ie;try{if(Ot.transition=null,ie=1,e)return e()}finally{ie=r,Ot.transition=n,ee=t,!(ee&6)&&gr()}}function Vf(){yt=_s.current,pe(_s)}function Fr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,x1(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(Tf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oa();break;case 3:Ks(),pe(ft),pe(Ze),Pf();break;case 5:Of(r);break;case 4:Ks();break;case 13:pe(ge);break;case 19:pe(ge);break;case 10:jf(r.type._context);break;case 22:case 23:Vf()}n=n.return}if(Me=e,Ne=e=lr(e.current,null),Ue=yt=t,je=0,ni=null,Hf=pl=Br=0,ct=Mo=null,Nr!==null){for(t=0;t<Nr.length;t++)if(n=Nr[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}Nr=null}return e}function jy(e,t){do{var n=Ne;try{if(Cf(),ha.current=Ha,Ua){for(var r=ye.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ua=!1}if(Hr=0,Pe=Ce=ye=null,Oo=!1,Jo=0,Uf.current=null,n===null||n.return===null){je=1,ni=t,Ne=null;break}e:{var o=e,i=n.return,a=n,l=t;if(t=Ue,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=Up(i);if(y!==null){y.flags&=-257,Hp(y,i,a,o,t),y.mode&1&&qp(o,u,t),t=y,l=u;var k=t.updateQueue;if(k===null){var x=new Set;x.add(l),t.updateQueue=x}else k.add(l);break e}else{if(!(t&1)){qp(o,u,t),Qf();break e}l=Error(R(426))}}else if(me&&a.mode&1){var T=Up(i);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Hp(T,i,a,o,t),Nf(Ys(l,a));break e}}o=l=Ys(l,a),je!==4&&(je=2),Mo===null?Mo=[o]:Mo.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=py(o,l,t);Pp(o,g);break e;case 1:a=l;var h=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ir===null||!ir.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=hy(o,a,t);Pp(o,v);break e}}o=o.return}while(o!==null)}Dy(n)}catch(w){t=w,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function Ry(){var e=Ba.current;return Ba.current=Ha,e===null?Ha:e}function Qf(){(je===0||je===3||je===2)&&(je=4),Me===null||!(Br&268435455)&&!(pl&268435455)||Un(Me,Ue)}function Qa(e,t){var n=ee;ee|=2;var r=Ry();(Me!==e||Ue!==t)&&(yn=null,Fr(e,t));do try{B1();break}catch(s){jy(e,s)}while(!0);if(Cf(),ee=n,Ba.current=r,Ne!==null)throw Error(R(261));return Me=null,Ue=0,je}function B1(){for(;Ne!==null;)Ly(Ne)}function G1(){for(;Ne!==null&&!gx();)Ly(Ne)}function Ly(e){var t=Py(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Dy(e):Ne=t,Uf.current=null}function Dy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$1(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,Ne=null;return}}else if(n=I1(n,t,yt),n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);je===0&&(je=5)}function kr(e,t,n){var r=ie,s=Ot.transition;try{Ot.transition=null,ie=1,V1(e,t,n,r)}finally{Ot.transition=s,ie=r}return null}function V1(e,t,n,r){do Rs();while(er!==null);if(ee&6)throw Error(R(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Tx(e,o),e===Me&&(Ne=Me=null,Ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ki||(Ki=!0,My(Aa,function(){return Rs(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ot.transition,Ot.transition=null;var i=ie;ie=1;var a=ee;ee|=4,Uf.current=null,z1(e,n),Ny(n,e),d1(tu),ja=!!eu,tu=eu=null,e.current=n,q1(n),yx(),ee=a,ie=i,Ot.transition=o}else e.current=n;if(Ki&&(Ki=!1,er=e,Va=s),o=e.pendingLanes,o===0&&(ir=null),bx(n.stateNode),pt(e,Se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Ga)throw Ga=!1,e=wu,wu=null,e;return Va&1&&e.tag!==0&&Rs(),o=e.pendingLanes,o&1?e===ku?Io++:(Io=0,ku=e):Io=0,gr(),null}function Rs(){if(er!==null){var e=pg(Va),t=Ot.transition,n=ie;try{if(Ot.transition=null,ie=16>e?16:e,er===null)var r=!1;else{if(e=er,er=null,Va=0,ee&6)throw Error(R(331));var s=ee;for(ee|=4,$=e.current;$!==null;){var o=$,i=o.child;if($.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for($=u;$!==null;){var d=$;switch(d.tag){case 0:case 11:case 15:Po(8,d,o)}var f=d.child;if(f!==null)f.return=d,$=f;else for(;$!==null;){d=$;var p=d.sibling,y=d.return;if(Ey(d),d===u){$=null;break}if(p!==null){p.return=y,$=p;break}$=y}}}var k=o.alternate;if(k!==null){var x=k.child;if(x!==null){k.child=null;do{var T=x.sibling;x.sibling=null,x=T}while(x!==null)}}$=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,$=i;else e:for(;$!==null;){if(o=$,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Po(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,$=g;break e}$=o.return}}var h=e.current;for($=h;$!==null;){i=$;var m=i.child;if(i.subtreeFlags&2064&&m!==null)m.return=i,$=m;else e:for(i=h;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:dl(9,a)}}catch(w){ke(a,a.return,w)}if(a===i){$=null;break e}var v=a.sibling;if(v!==null){v.return=a.return,$=v;break e}$=a.return}}if(ee=s,gr(),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(sl,e)}catch{}r=!0}return r}finally{ie=n,Ot.transition=t}}return!1}function nh(e,t,n){t=Ys(n,t),t=py(e,t,1),e=or(e,t,1),t=rt(),e!==null&&(gi(e,1,t),pt(e,t))}function ke(e,t,n){if(e.tag===3)nh(e,e,n);else for(;t!==null;){if(t.tag===3){nh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ir===null||!ir.has(r))){e=Ys(n,e),e=hy(t,e,1),t=or(t,e,1),e=rt(),t!==null&&(gi(t,1,e),pt(t,e));break}}t=t.return}}function Q1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,Me===e&&(Ue&n)===n&&(je===4||je===3&&(Ue&130023424)===Ue&&500>Se()-Bf?Fr(e,0):Hf|=n),pt(e,t)}function Oy(e,t){t===0&&(e.mode&1?(t=Fi,Fi<<=1,!(Fi&130023424)&&(Fi=4194304)):t=1);var n=rt();e=An(e,t),e!==null&&(gi(e,t,n),pt(e,n))}function W1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Oy(e,n)}function K1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Oy(e,n)}var Py;Py=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,M1(e,t,n);ut=!!(e.flags&131072)}else ut=!1,me&&t.flags&1048576&&Fg(t,Ia,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ga(e,t),e=t.pendingProps;var s=Vs(t,Ze.current);js(t,n),s=If(null,t,r,e,s,n);var o=$f();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(o=!0,Pa(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Lf(t),s.updater=fl,t.stateNode=s,s._reactInternals=t,uu(t,r,e,n),t=pu(null,t,r,!0,o,n)):(t.tag=0,me&&o&&_f(t),nt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ga(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=X1(r),e=qt(r,e),s){case 0:t=du(null,t,r,e,n);break e;case 1:t=Vp(null,t,r,e,n);break e;case 11:t=Bp(null,t,r,e,n);break e;case 14:t=Gp(null,t,r,qt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),du(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),Vp(e,t,r,s,n);case 3:e:{if(vy(t),e===null)throw Error(R(387));r=t.pendingProps,o=t.memoizedState,s=o.element,Gg(e,t),za(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=Ys(Error(R(423)),t),t=Qp(e,t,r,n,s);break e}else if(r!==s){s=Ys(Error(R(424)),t),t=Qp(e,t,r,n,s);break e}else for(kt=sr(t.stateNode.containerInfo.firstChild),Et=t,me=!0,Bt=null,n=Hg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qs(),r===s){t=Cn(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return Vg(t),e===null&&au(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,nu(r,s)?i=null:o!==null&&nu(r,o)&&(t.flags|=32),yy(e,t),nt(e,t,i,n),t.child;case 6:return e===null&&au(t),null;case 13:return xy(e,t,n);case 4:return Df(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ws(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),Bp(e,t,r,s,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,le($a,r._currentValue),r._currentValue=i,o!==null)if(Qt(o.value,i)){if(o.children===s.children&&!ft.current){t=Cn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Sn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),lu(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(R(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),lu(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}nt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,js(t,n),s=Pt(s),r=r(s),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,s=qt(r,t.pendingProps),s=qt(r.type,s),Gp(e,t,r,s,n);case 15:return my(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),ga(e,t),t.tag=1,dt(r)?(e=!0,Pa(t)):e=!1,js(t,n),dy(t,r,s),uu(t,r,s,n),pu(null,t,r,!0,e,n);case 19:return by(e,t,n);case 22:return gy(e,t,n)}throw Error(R(156,t.tag))};function My(e,t){return cg(e,t)}function Y1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,n,r){return new Y1(e,t,n,r)}function Wf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X1(e){if(typeof e=="function")return Wf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pf)return 11;if(e===hf)return 14}return 2}function lr(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xa(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Wf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ms:return zr(n.children,s,o,t);case df:i=8,s|=8;break;case Oc:return e=Dt(12,n,t,s|2),e.elementType=Oc,e.lanes=o,e;case Pc:return e=Dt(13,n,t,s),e.elementType=Pc,e.lanes=o,e;case Mc:return e=Dt(19,n,t,s),e.elementType=Mc,e.lanes=o,e;case Vm:return hl(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bm:i=10;break e;case Gm:i=9;break e;case pf:i=11;break e;case hf:i=14;break e;case Fn:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Dt(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function zr(e,t,n,r){return e=Dt(7,e,r,t),e.lanes=n,e}function hl(e,t,n,r){return e=Dt(22,e,r,t),e.elementType=Vm,e.lanes=n,e.stateNode={isHidden:!1},e}function mc(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function gc(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z1(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Kf(e,t,n,r,s,o,i,a,l){return e=new Z1(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Dt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lf(o),e}function J1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Iy(e){if(!e)return pr;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(dt(n))return Ig(e,n,t)}return t}function $y(e,t,n,r,s,o,i,a,l){return e=Kf(n,r,!0,e,s,o,i,a,l),e.context=Iy(null),n=e.current,r=rt(),s=ar(n),o=Sn(r,s),o.callback=t??null,or(n,o,s),e.current.lanes=s,gi(e,s,r),pt(e,r),e}function ml(e,t,n,r){var s=t.current,o=rt(),i=ar(s);return n=Iy(n),t.context===null?t.context=n:t.pendingContext=n,t=Sn(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=or(s,t,i),e!==null&&(Vt(e,s,i,o),pa(e,s,i)),i}function Wa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function rh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yf(e,t){rh(e,t),(e=e.alternate)&&rh(e,t)}function eb(){return null}var Fy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xf(e){this._internalRoot=e}gl.prototype.render=Xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));ml(e,t,null,null)};gl.prototype.unmount=Xf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gr(function(){ml(null,e,null,null)}),t[Nn]=null}};function gl(e){this._internalRoot=e}gl.prototype.unstable_scheduleHydration=function(e){if(e){var t=gg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qn.length&&t!==0&&t<qn[n].priority;n++);qn.splice(n,0,e),n===0&&vg(e)}};function Zf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sh(){}function tb(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=Wa(i);o.call(u)}}var i=$y(t,r,e,0,null,!1,!1,"",sh);return e._reactRootContainer=i,e[Nn]=i.current,Wo(e.nodeType===8?e.parentNode:e),Gr(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Wa(l);a.call(u)}}var l=Kf(e,0,!1,null,null,!1,!1,"",sh);return e._reactRootContainer=l,e[Nn]=l.current,Wo(e.nodeType===8?e.parentNode:e),Gr(function(){ml(t,l,n,r)}),l}function vl(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=Wa(i);a.call(l)}}ml(t,i,e,s)}else i=tb(n,t,e,s,r);return Wa(i)}hg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_o(t.pendingLanes);n!==0&&(yf(t,n|1),pt(t,Se()),!(ee&6)&&(Xs=Se()+500,gr()))}break;case 13:Gr(function(){var r=An(e,1);if(r!==null){var s=rt();Vt(r,e,1,s)}}),Yf(e,1)}};vf=function(e){if(e.tag===13){var t=An(e,134217728);if(t!==null){var n=rt();Vt(t,e,134217728,n)}Yf(e,134217728)}};mg=function(e){if(e.tag===13){var t=ar(e),n=An(e,t);if(n!==null){var r=rt();Vt(n,e,t,r)}Yf(e,t)}};gg=function(){return ie};yg=function(e,t){var n=ie;try{return ie=e,t()}finally{ie=n}};Vc=function(e,t,n){switch(t){case"input":if(Fc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=ll(r);if(!s)throw Error(R(90));Wm(r),Fc(r,s)}}}break;case"textarea":Ym(e,n);break;case"select":t=n.value,t!=null&&Ts(e,!!n.multiple,t,!1)}};rg=Gf;sg=Gr;var nb={usingClientEntryPoint:!1,Events:[vi,xs,ll,tg,ng,Gf]},go={findFiberByHostInstance:Tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rb={bundleType:go.bundleType,version:go.version,rendererPackageName:go.rendererPackageName,rendererConfig:go.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ag(e),e===null?null:e.stateNode},findFiberByHostInstance:go.findFiberByHostInstance||eb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yi.isDisabled&&Yi.supportsFiber)try{sl=Yi.inject(rb),cn=Yi}catch{}}Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nb;Nt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zf(t))throw Error(R(200));return J1(e,t,null,n)};Nt.createRoot=function(e,t){if(!Zf(e))throw Error(R(299));var n=!1,r="",s=Fy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Kf(e,1,!1,null,null,n,!1,r,s),e[Nn]=t.current,Wo(e.nodeType===8?e.parentNode:e),new Xf(t)};Nt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=ag(t),e=e===null?null:e.stateNode,e};Nt.flushSync=function(e){return Gr(e)};Nt.hydrate=function(e,t,n){if(!yl(t))throw Error(R(200));return vl(null,e,t,!0,n)};Nt.hydrateRoot=function(e,t,n){if(!Zf(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=Fy;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=$y(t,null,e,1,n??null,s,!1,o,i),e[Nn]=t.current,Wo(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new gl(t)};Nt.render=function(e,t,n){if(!yl(t))throw Error(R(200));return vl(null,e,t,!1,n)};Nt.unmountComponentAtNode=function(e){if(!yl(e))throw Error(R(40));return e._reactRootContainer?(Gr(function(){vl(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0):!1};Nt.unstable_batchedUpdates=Gf;Nt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yl(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return vl(e,t,n,!1,r)};Nt.version="18.3.1-next-f1338f8080-20240426";function zy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zy)}catch(e){console.error(e)}}zy(),zm.exports=Nt;var sb=zm.exports,qy,oh=sb;qy=oh.createRoot,oh.hydrateRoot;var bi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jr,Gn,Ls,xm,ob=(xm=class extends bi{constructor(){super();U(this,jr);U(this,Gn);U(this,Ls);M(this,Ls,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,Gn)||this.setEventListener(_(this,Ls))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Gn))==null||t.call(this),M(this,Gn,void 0))}setEventListener(t){var n;M(this,Ls,t),(n=_(this,Gn))==null||n.call(this),M(this,Gn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_(this,jr)!==t&&(M(this,jr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,jr)=="boolean"?_(this,jr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},jr=new WeakMap,Gn=new WeakMap,Ls=new WeakMap,xm),Jf=new ob,ib={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Vn,nf,bm,ab=(bm=class{constructor(){U(this,Vn,ib);U(this,nf,!1)}setTimeoutProvider(e){M(this,Vn,e)}setTimeout(e,t){return _(this,Vn).setTimeout(e,t)}clearTimeout(e){_(this,Vn).clearTimeout(e)}setInterval(e,t){return _(this,Vn).setInterval(e,t)}clearInterval(e){_(this,Vn).clearInterval(e)}},Vn=new WeakMap,nf=new WeakMap,bm),Cr=new ab;function lb(e){setTimeout(e,0)}var cb=typeof window>"u"||"Deno"in globalThis;function lt(){}function ub(e,t){return typeof e=="function"?e(t):e}function _u(e){return typeof e=="number"&&e>=0&&e!==1/0}function Uy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cr(e,t){return typeof e=="function"?e(t):e}function xt(e,t){return typeof e=="function"?e(t):e}function ih(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==ed(i,t.options))return!1}else if(!si(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function ah(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ri(t.options.mutationKey)!==ri(o))return!1}else if(!si(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function ed(e,t){return((t==null?void 0:t.queryKeyHashFn)||ri)(e)}function ri(e){return JSON.stringify(e,(t,n)=>Nu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function si(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>si(e[n],t[n])):!1}var fb=Object.prototype.hasOwnProperty;function Hy(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=lh(e)&&lh(t);if(!r&&!(Nu(e)&&Nu(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),a=i.length,l=r?new Array(a):{};let u=0;for(let d=0;d<a;d++){const f=r?d:i[d],p=e[f],y=t[f];if(p===y){l[f]=p,(r?d<o:fb.call(e,f))&&u++;continue}if(p===null||y===null||typeof p!="object"||typeof y!="object"){l[f]=y;continue}const k=Hy(p,y,n+1);l[f]=k,k===p&&u++}return o===a&&u===o?e:l}function Tu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function lh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nu(e){if(!ch(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ch(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ch(e){return Object.prototype.toString.call(e)==="[object Object]"}function db(e){return new Promise(t=>{Cr.setTimeout(t,e)})}function Au(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Hy(e,t):t}function pb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function hb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var td=Symbol();function By(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===td?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Gy(e,t){return typeof e=="function"?e(...t):!!e}function mb(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var oi=(()=>{let e=()=>cb;return{isServer(){return e()},setIsServer(t){e=t}}})();function Cu(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var gb=lb;function yb(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=gb;const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var ze=yb(),Ds,Qn,Os,wm,vb=(wm=class extends bi{constructor(){super();U(this,Ds,!0);U(this,Qn);U(this,Os);M(this,Os,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_(this,Qn)||this.setEventListener(_(this,Os))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Qn))==null||t.call(this),M(this,Qn,void 0))}setEventListener(t){var n;M(this,Os,t),(n=_(this,Qn))==null||n.call(this),M(this,Qn,t(this.setOnline.bind(this)))}setOnline(t){_(this,Ds)!==t&&(M(this,Ds,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _(this,Ds)}},Ds=new WeakMap,Qn=new WeakMap,Os=new WeakMap,wm),Ka=new vb;function xb(e){return Math.min(1e3*2**e,3e4)}function Vy(e){return(e??"online")==="online"?Ka.isOnline():!0}var ju=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Qy(e){let t=!1,n=0,r;const s=Cu(),o=()=>s.status!=="pending",i=x=>{var T;if(!o()){const g=new ju(x);p(g),(T=e.onCancel)==null||T.call(e,g)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>Jf.isFocused()&&(e.networkMode==="always"||Ka.isOnline())&&e.canRun(),d=()=>Vy(e.networkMode)&&e.canRun(),f=x=>{o()||(r==null||r(),s.resolve(x))},p=x=>{o()||(r==null||r(),s.reject(x))},y=()=>new Promise(x=>{var T;r=g=>{(o()||u())&&x(g)},(T=e.onPause)==null||T.call(e)}).then(()=>{var x;r=void 0,o()||(x=e.onContinue)==null||x.call(e)}),k=()=>{if(o())return;let x;const T=n===0?e.initialPromise:void 0;try{x=T??e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(f).catch(g=>{var S;if(o())return;const h=e.retry??(oi.isServer()?0:3),m=e.retryDelay??xb,v=typeof m=="function"?m(n,g):m,w=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,g);if(t||!w){p(g);return}n++,(S=e.onFail)==null||S.call(e,n,g),db(v).then(()=>u()?void 0:y()).then(()=>{t?p(g):k()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?k():y().then(k),s)}}var Rr,km,Wy=(km=class{constructor(){U(this,Rr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_u(this.gcTime)&&M(this,Rr,Cr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(oi.isServer()?1/0:5*60*1e3))}clearGcTimeout(){_(this,Rr)!==void 0&&(Cr.clearTimeout(_(this,Rr)),M(this,Rr,void 0))}},Rr=new WeakMap,km);function bb(e){return{onFetch:(t,n)=>{var d,f,p,y,k;const r=t.options,s=(p=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((y=t.state.data)==null?void 0:y.pages)||[],i=((k=t.state.data)==null?void 0:k.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let x=!1;const T=m=>{mb(m,()=>t.signal,()=>x=!0)},g=By(t.options,t.fetchOptions),h=async(m,v,w)=>{if(x)return Promise.reject(t.signal.reason);if(v==null&&m.pages.length)return Promise.resolve(m);const N=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:v,direction:w?"backward":"forward",meta:t.options.meta};return T(D),D})(),A=await g(N),{maxPages:j}=t.options,E=w?hb:pb;return{pages:E(m.pages,A,j),pageParams:E(m.pageParams,v,j)}};if(s&&o.length){const m=s==="backward",v=m?wb:uh,w={pages:o,pageParams:i},S=v(r,w);a=await h(w,S,m)}else{const m=e??o.length;do{const v=l===0?i[0]??r.initialPageParam:uh(r,a);if(l>0&&v==null)break;a=await h(a,v),l++}while(l<m)}return a};t.options.persister?t.fetchFn=()=>{var x,T;return(T=(x=t.options).persister)==null?void 0:T.call(x,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function uh(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wb(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ps,Lr,Ms,jt,Dr,Oe,ui,Or,vt,Ky,gn,Sm,kb=(Sm=class extends Wy{constructor(t){super();U(this,vt);U(this,Ps);U(this,Lr);U(this,Ms);U(this,jt);U(this,Dr);U(this,Oe);U(this,ui);U(this,Or);M(this,Or,!1),M(this,ui,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Dr,t.client),M(this,jt,_(this,Dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Lr,dh(this.options)),this.state=t.state??_(this,Lr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return _(this,Ps)}get promise(){var t;return(t=_(this,Oe))==null?void 0:t.promise}setOptions(t){if(this.options={..._(this,ui),...t},t!=null&&t._type&&M(this,Ps,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=dh(this.options);n.data!==void 0&&(this.setState(fh(n.data,n.dataUpdatedAt)),M(this,Lr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,jt).remove(this)}setData(t,n){const r=Au(this.state.data,t,this.options);return W(this,vt,gn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){W(this,vt,gn).call(this,{type:"setState",state:t})}cancel(t){var r,s;const n=(r=_(this,Oe))==null?void 0:r.promise;return(s=_(this,Oe))==null||s.cancel(t),n?n.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return _(this,Lr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>xt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===td||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>cr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Uy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,Oe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,Oe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,jt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_(this,Oe)&&(_(this,Or)||W(this,vt,Ky).call(this)?_(this,Oe).cancel({revert:!0}):_(this,Oe).cancelRetry()),this.scheduleGc()),_(this,jt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||W(this,vt,gn).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,p,y,k,x,T,g,h,m;if(this.state.fetchStatus!=="idle"&&((u=_(this,Oe))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,Oe))return _(this,Oe).continueRetry(),_(this,Oe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(w=>w.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,s=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(M(this,Or,!0),r.signal)})},o=()=>{const v=By(this.options,n),S=(()=>{const N={client:_(this,Dr),queryKey:this.queryKey,meta:this.meta};return s(N),N})();return M(this,Or,!1),this.options.persister?this.options.persister(v,S,this):v(S)},a=(()=>{const v={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_(this,Dr),state:this.state,fetchFn:o};return s(v),v})(),l=_(this,Ps)==="infinite"?bb(this.options.pages):this.options.behavior;l==null||l.onFetch(a,this),M(this,Ms,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&W(this,vt,gn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta}),M(this,Oe,Qy({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:v=>{v instanceof ju&&v.revert&&this.setState({..._(this,Ms),fetchStatus:"idle"}),r.abort()},onFail:(v,w)=>{W(this,vt,gn).call(this,{type:"failed",failureCount:v,error:w})},onPause:()=>{W(this,vt,gn).call(this,{type:"pause"})},onContinue:()=>{W(this,vt,gn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const v=await _(this,Oe).start();if(v===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(v),(y=(p=_(this,jt).config).onSuccess)==null||y.call(p,v,this),(x=(k=_(this,jt).config).onSettled)==null||x.call(k,v,this.state.error,this),v}catch(v){if(v instanceof ju){if(v.silent)return _(this,Oe).promise;if(v.revert){if(this.state.data===void 0)throw v;return this.state.data}}throw W(this,vt,gn).call(this,{type:"error",error:v}),(g=(T=_(this,jt).config).onError)==null||g.call(T,v,this),(m=(h=_(this,jt).config).onSettled)==null||m.call(h,this.state.data,v,this),v}finally{this.scheduleGc()}}},Ps=new WeakMap,Lr=new WeakMap,Ms=new WeakMap,jt=new WeakMap,Dr=new WeakMap,Oe=new WeakMap,ui=new WeakMap,Or=new WeakMap,vt=new WeakSet,Ky=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},gn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Yy(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...fh(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,Ms,t.manual?s:void 0),s;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ze.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_(this,jt).notify({query:this,type:"updated",action:t})})},Sm);function Yy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fh(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function dh(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var at,X,fi,tt,Pr,Is,xn,Wn,di,$s,Fs,Mr,Ir,Kn,zs,re,No,Ru,Lu,Du,Ou,Pu,Mu,Iu,Xy,Em,Sb=(Em=class extends bi{constructor(t,n){super();U(this,re);U(this,at);U(this,X);U(this,fi);U(this,tt);U(this,Pr);U(this,Is);U(this,xn);U(this,Wn);U(this,di);U(this,$s);U(this,Fs);U(this,Mr);U(this,Ir);U(this,Kn);U(this,zs,new Set);this.options=n,M(this,at,t),M(this,Wn,null),M(this,xn,Cu()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,X).addObserver(this),ph(_(this,X),this.options)?W(this,re,No).call(this):this.updateResult(),W(this,re,Ou).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $u(_(this,X),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $u(_(this,X),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,W(this,re,Pu).call(this),W(this,re,Mu).call(this),_(this,X).removeObserver(this)}setOptions(t){const n=this.options,r=_(this,X);if(this.options=_(this,at).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof xt(this.options.enabled,_(this,X))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");W(this,re,Iu).call(this),_(this,X).setOptions(this.options),n._defaulted&&!Tu(this.options,n)&&_(this,at).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,X),observer:this});const s=this.hasListeners();s&&hh(_(this,X),r,this.options,n)&&W(this,re,No).call(this),this.updateResult(),s&&(_(this,X)!==r||xt(this.options.enabled,_(this,X))!==xt(n.enabled,_(this,X))||cr(this.options.staleTime,_(this,X))!==cr(n.staleTime,_(this,X)))&&W(this,re,Ru).call(this);const o=W(this,re,Lu).call(this);s&&(_(this,X)!==r||xt(this.options.enabled,_(this,X))!==xt(n.enabled,_(this,X))||o!==_(this,Kn))&&W(this,re,Du).call(this,o)}getOptimisticResult(t){const n=_(this,at).getQueryCache().build(_(this,at),t),r=this.createResult(n,t);return _b(this,r)&&(M(this,tt,r),M(this,Is,this.options),M(this,Pr,_(this,X).state)),r}getCurrentResult(){return _(this,tt)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&_(this,xn).status==="pending"&&_(this,xn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(t){_(this,zs).add(t)}getCurrentQuery(){return _(this,X)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,at).defaultQueryOptions(t),r=_(this,at).getQueryCache().build(_(this,at),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return W(this,re,No).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,tt)))}createResult(t,n){var j;const r=_(this,X),s=this.options,o=_(this,tt),i=_(this,Pr),a=_(this,Is),u=t!==r?t.state:_(this,fi),{state:d}=t;let f={...d},p=!1,y;if(n._optimisticResults){const E=this.hasListeners(),D=!E&&ph(t,n),H=E&&hh(t,r,n,s);(D||H)&&(f={...f,...Yy(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:k,errorUpdatedAt:x,status:T}=f;y=f.data;let g=!1;if(n.placeholderData!==void 0&&y===void 0&&T==="pending"){let E;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(E=o.data,g=!0):E=typeof n.placeholderData=="function"?n.placeholderData((j=_(this,Fs))==null?void 0:j.state.data,_(this,Fs)):n.placeholderData,E!==void 0&&(T="success",y=Au(o==null?void 0:o.data,E,n),p=!0)}if(n.select&&y!==void 0&&!g)if(o&&y===(i==null?void 0:i.data)&&n.select===_(this,di))y=_(this,$s);else try{M(this,di,n.select),y=n.select(y),y=Au(o==null?void 0:o.data,y,n),M(this,$s,y),M(this,Wn,null)}catch(E){M(this,Wn,E)}_(this,Wn)&&(k=_(this,Wn),y=_(this,$s),x=Date.now(),T="error");const h=f.fetchStatus==="fetching",m=T==="pending",v=T==="error",w=m&&h,S=y!==void 0,A={status:T,fetchStatus:f.fetchStatus,isPending:m,isSuccess:T==="success",isError:v,isInitialLoading:w,isLoading:w,data:y,dataUpdatedAt:f.dataUpdatedAt,error:k,errorUpdatedAt:x,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:h,isRefetching:h&&!m,isLoadingError:v&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:v&&S,isStale:nd(t,n),refetch:this.refetch,promise:_(this,xn),isEnabled:xt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const E=A.data!==void 0,D=A.status==="error"&&!E,H=se=>{D?se.reject(A.error):E&&se.resolve(A.data)},V=()=>{const se=M(this,xn,A.promise=Cu());H(se)},B=_(this,xn);switch(B.status){case"pending":t.queryHash===r.queryHash&&H(B);break;case"fulfilled":(D||A.data!==B.value)&&V();break;case"rejected":(!D||A.error!==B.reason)&&V();break}}return A}updateResult(){const t=_(this,tt),n=this.createResult(_(this,X),this.options);if(M(this,Pr,_(this,X).state),M(this,Is,this.options),_(this,Pr).data!==void 0&&M(this,Fs,_(this,X)),Tu(n,t))return;M(this,tt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!_(this,zs).size)return!0;const i=new Set(o??_(this,zs));return this.options.throwOnError&&i.add("error"),Object.keys(_(this,tt)).some(a=>{const l=a;return _(this,tt)[l]!==t[l]&&i.has(l)})};W(this,re,Xy).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&W(this,re,Ou).call(this)}},at=new WeakMap,X=new WeakMap,fi=new WeakMap,tt=new WeakMap,Pr=new WeakMap,Is=new WeakMap,xn=new WeakMap,Wn=new WeakMap,di=new WeakMap,$s=new WeakMap,Fs=new WeakMap,Mr=new WeakMap,Ir=new WeakMap,Kn=new WeakMap,zs=new WeakMap,re=new WeakSet,No=function(t){W(this,re,Iu).call(this);let n=_(this,X).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(lt)),n},Ru=function(){W(this,re,Pu).call(this);const t=cr(this.options.staleTime,_(this,X));if(oi.isServer()||_(this,tt).isStale||!_u(t))return;const r=Uy(_(this,tt).dataUpdatedAt,t)+1;M(this,Mr,Cr.setTimeout(()=>{_(this,tt).isStale||this.updateResult()},r))},Lu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,X)):this.options.refetchInterval)??!1},Du=function(t){W(this,re,Mu).call(this),M(this,Kn,t),!(oi.isServer()||xt(this.options.enabled,_(this,X))===!1||!_u(_(this,Kn))||_(this,Kn)===0)&&M(this,Ir,Cr.setInterval(()=>{(this.options.refetchIntervalInBackground||Jf.isFocused())&&W(this,re,No).call(this)},_(this,Kn)))},Ou=function(){W(this,re,Ru).call(this),W(this,re,Du).call(this,W(this,re,Lu).call(this))},Pu=function(){_(this,Mr)!==void 0&&(Cr.clearTimeout(_(this,Mr)),M(this,Mr,void 0))},Mu=function(){_(this,Ir)!==void 0&&(Cr.clearInterval(_(this,Ir)),M(this,Ir,void 0))},Iu=function(){const t=_(this,at).getQueryCache().build(_(this,at),this.options);if(t===_(this,X))return;const n=_(this,X);M(this,X,t),M(this,fi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Xy=function(t){ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,tt))}),_(this,at).getQueryCache().notify({query:_(this,X),type:"observerResultsUpdated"})})},Em);function Eb(e,t){return xt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&xt(t.retryOnMount,e)===!1)}function ph(e,t){return Eb(e,t)||e.state.data!==void 0&&$u(e,t,t.refetchOnMount)}function $u(e,t,n){if(xt(t.enabled,e)!==!1&&cr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&nd(e,t)}return!1}function hh(e,t,n,r){return(e!==t||xt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&nd(e,n)}function nd(e,t){return xt(t.enabled,e)!==!1&&e.isStaleByTime(cr(t.staleTime,e))}function _b(e,t){return!Tu(e.getCurrentResult(),t)}var pi,nn,Ye,$r,rn,$n,_m,Tb=(_m=class extends Wy{constructor(t){super();U(this,rn);U(this,pi);U(this,nn);U(this,Ye);U(this,$r);M(this,pi,t.client),this.mutationId=t.mutationId,M(this,Ye,t.mutationCache),M(this,nn,[]),this.state=t.state||Nb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,nn).includes(t)||(_(this,nn).push(t),this.clearGcTimeout(),_(this,Ye).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,nn,_(this,nn).filter(n=>n!==t)),this.scheduleGc(),_(this,Ye).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,nn).length||(this.state.status==="pending"?this.scheduleGc():_(this,Ye).remove(this))}continue(){var t;return((t=_(this,$r))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,l,u,d,f,p,y,k,x,T,g,h,m,v,w,S,N;const n=()=>{W(this,rn,$n).call(this,{type:"continue"})},r={client:_(this,pi),meta:this.options.meta,mutationKey:this.options.mutationKey};M(this,$r,Qy({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(A,j)=>{W(this,rn,$n).call(this,{type:"failed",failureCount:A,error:j})},onPause:()=>{W(this,rn,$n).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Ye).canRun(this)}));const s=this.state.status==="pending",o=!_(this,$r).canStart();try{if(s)n();else{W(this,rn,$n).call(this,{type:"pending",variables:t,isPaused:o}),_(this,Ye).config.onMutate&&await _(this,Ye).config.onMutate(t,this,r);const j=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t,r));j!==this.state.context&&W(this,rn,$n).call(this,{type:"pending",context:j,variables:t,isPaused:o})}const A=await _(this,$r).start();return await((u=(l=_(this,Ye).config).onSuccess)==null?void 0:u.call(l,A,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,A,t,this.state.context,r)),await((y=(p=_(this,Ye).config).onSettled)==null?void 0:y.call(p,A,null,this.state.variables,this.state.context,this,r)),await((x=(k=this.options).onSettled)==null?void 0:x.call(k,A,null,t,this.state.context,r)),W(this,rn,$n).call(this,{type:"success",data:A}),A}catch(A){try{await((g=(T=_(this,Ye).config).onError)==null?void 0:g.call(T,A,t,this.state.context,this,r))}catch(j){Promise.reject(j)}try{await((m=(h=this.options).onError)==null?void 0:m.call(h,A,t,this.state.context,r))}catch(j){Promise.reject(j)}try{await((w=(v=_(this,Ye).config).onSettled)==null?void 0:w.call(v,void 0,A,this.state.variables,this.state.context,this,r))}catch(j){Promise.reject(j)}try{await((N=(S=this.options).onSettled)==null?void 0:N.call(S,void 0,A,t,this.state.context,r))}catch(j){Promise.reject(j)}throw W(this,rn,$n).call(this,{type:"error",error:A}),A}finally{_(this,Ye).runNext(this)}}},pi=new WeakMap,nn=new WeakMap,Ye=new WeakMap,$r=new WeakMap,rn=new WeakSet,$n=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ze.batch(()=>{_(this,nn).forEach(r=>{r.onMutationUpdate(t)}),_(this,Ye).notify({mutation:this,type:"updated",action:t})})},_m);function Nb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bn,Ut,hi,Tm,Ab=(Tm=class extends bi{constructor(t={}){super();U(this,bn);U(this,Ut);U(this,hi);this.config=t,M(this,bn,new Set),M(this,Ut,new Map),M(this,hi,0)}build(t,n,r){const s=new Tb({client:t,mutationCache:this,mutationId:++Di(this,hi)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){_(this,bn).add(t);const n=Xi(t);if(typeof n=="string"){const r=_(this,Ut).get(n);r?r.push(t):_(this,Ut).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_(this,bn).delete(t)){const n=Xi(t);if(typeof n=="string"){const r=_(this,Ut).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&_(this,Ut).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Xi(t);if(typeof n=="string"){const r=_(this,Ut).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Xi(t);if(typeof n=="string"){const s=(r=_(this,Ut).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ze.batch(()=>{_(this,bn).forEach(t=>{this.notify({type:"removed",mutation:t})}),_(this,bn).clear(),_(this,Ut).clear()})}getAll(){return Array.from(_(this,bn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ah(n,r))}findAll(t={}){return this.getAll().filter(n=>ah(t,n))}notify(t){ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(lt))))}},bn=new WeakMap,Ut=new WeakMap,hi=new WeakMap,Tm);function Xi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var sn,Nm,Cb=(Nm=class extends bi{constructor(t={}){super();U(this,sn);this.config=t,M(this,sn,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??ed(s,n);let i=this.get(o);return i||(i=new kb({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){_(this,sn).has(t.queryHash)||(_(this,sn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,sn).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,sn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,sn).get(t)}getAll(){return[..._(this,sn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ih(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ih(t,r)):n}notify(t){ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},sn=new WeakMap,Nm),we,Yn,Xn,qs,Us,Zn,Hs,Bs,Am,jb=(Am=class{constructor(e={}){U(this,we);U(this,Yn);U(this,Xn);U(this,qs);U(this,Us);U(this,Zn);U(this,Hs);U(this,Bs);M(this,we,e.queryCache||new Cb),M(this,Yn,e.mutationCache||new Ab),M(this,Xn,e.defaultOptions||{}),M(this,qs,new Map),M(this,Us,new Map),M(this,Zn,0)}mount(){Di(this,Zn)._++,_(this,Zn)===1&&(M(this,Hs,Jf.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,we).onFocus())})),M(this,Bs,Ka.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,we).onOnline())})))}unmount(){var e,t;Di(this,Zn)._--,_(this,Zn)===0&&((e=_(this,Hs))==null||e.call(this),M(this,Hs,void 0),(t=_(this,Bs))==null||t.call(this),M(this,Bs,void 0))}isFetching(e){return _(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,Yn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,we).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_(this,we).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(cr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return _(this,we).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=_(this,we).get(r.queryHash),o=s==null?void 0:s.state.data,i=ub(t,o);if(i!==void 0)return _(this,we).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return ze.batch(()=>_(this,we).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,we);ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,we);return ze.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ze.batch(()=>_(this,we).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(lt).catch(lt)}invalidateQueries(e,t={}){return ze.batch(()=>(_(this,we).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ze.batch(()=>_(this,we).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(lt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,we).build(this,t);return n.isStaleByTime(cr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(lt).catch(lt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(lt).catch(lt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Ka.isOnline()?_(this,Yn).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,we)}getMutationCache(){return _(this,Yn)}getDefaultOptions(){return _(this,Xn)}setDefaultOptions(e){M(this,Xn,e)}setQueryDefaults(e,t){_(this,qs).set(ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,qs).values()],n={};return t.forEach(r=>{si(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){_(this,Us).set(ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,Us).values()],n={};return t.forEach(r=>{si(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,Xn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ed(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===td&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,Xn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,we).clear(),_(this,Yn).clear()}},we=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,qs=new WeakMap,Us=new WeakMap,Zn=new WeakMap,Hs=new WeakMap,Bs=new WeakMap,Am),Zy=I.createContext(void 0),Rb=e=>{const t=I.useContext(Zy);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Lb=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(Zy.Provider,{value:e,children:t})),Jy=I.createContext(!1),Db=()=>I.useContext(Jy);Jy.Provider;function Ob(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Pb=I.createContext(Ob()),Mb=()=>I.useContext(Pb),Ib=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Gy(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},$b=e=>{I.useEffect(()=>{e.clearReset()},[e])},Fb=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||Gy(n,[e.error,r])),zb=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qb=(e,t)=>e.isLoading&&e.isFetching&&!t,Ub=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,mh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Hb(e,t,n){var y,k,x,T;const r=Db(),s=Mb(),o=Rb(),i=o.defaultQueryOptions(e);(k=(y=o.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||k.call(y,i);const a=o.getQueryCache().get(i.queryHash),l=e.subscribed!==!1;i._optimisticResults=r?"isRestoring":l?"optimistic":void 0,zb(i),Ib(i,s,a),$b(s);const u=!o.getQueryCache().get(i.queryHash),[d]=I.useState(()=>new t(o,i)),f=d.getOptimisticResult(i),p=!r&&l;if(I.useSyncExternalStore(I.useCallback(g=>{const h=p?d.subscribe(ze.batchCalls(g)):lt;return d.updateResult(),h},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),I.useEffect(()=>{d.setOptions(i)},[i,d]),Ub(i,f))throw mh(i,d,s);if(Fb({result:f,errorResetBoundary:s,throwOnError:i.throwOnError,query:a,suspense:i.suspense}))throw f.error;if((T=(x=o.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||T.call(x,i,f),i.experimental_prefetchInRender&&!oi.isServer()&&qb(f,r)){const g=u?mh(i,d,s):a==null?void 0:a.promise;g==null||g.catch(lt).finally(()=>{d.updateResult()})}return i.notifyOnChangeProps?f:d.trackResult(f)}function rd(e,t){return Hb(e,Sb)}async function ev(e){const t=await fetch(e,{headers:{accept:"application/json"}});if(!t.ok)throw new Error(`${t.status} ${t.statusText} — ${e}`);return await t.json()}const Bb=e=>!!(e!=null&&e.tiers.some(t=>t.runs.some(n=>n.live)));function Gb(){return rd({queryKey:["index"],queryFn:()=>ev("/api/index"),refetchInterval:e=>Bb(e.state.data)?1500:15e3})}function Vb(e,t){return rd({queryKey:["scorecard",e,t],queryFn:()=>ev(e),enabled:!!e,refetchInterval:t?1500:!1,placeholderData:n=>n})}function tv(){const e=window.location.hash.replace(/^#\/?/,""),[t,n]=e.split("/").map(r=>r?decodeURIComponent(r):void 0);return{tierKey:t||void 0,runId:n||void 0}}function Qb(e){return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)}let gh=tv(),yh=window.location.hash;function Wb(){return window.location.hash!==yh&&(yh=window.location.hash,gh=tv()),gh}function Kb(e,t){const n=[e,t].filter(Boolean).map(r=>encodeURIComponent(r));window.location.hash=n.length?`/${n.join("/")}`:"/"}function Yb(){return I.useSyncExternalStore(Qb,Wb)}function sd(){return I.useCallback(Kb,[])}function yc(e){const t=Number.isFinite(e)?e:0;if(t<1e3)return String(Math.round(t));const n=t/1e3;return`${n>=10?Math.round(n):n.toFixed(1)}k`}function nv(e){if(!e)return"—";if(e<1e3)return`${e}ms`;const t=Math.round(e/1e3);return t<60?`${t}s`:`${Math.floor(t/60)}m${String(t%60).padStart(2,"0")}`}function Ya(e){const t=/^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})/.exec(e);return t?`${t[1]} ${t[2]} UTC`:e}function od(e,t=1){return e==="code-fix"?{label:"resolved",rate:n=>n.codeFixTotal?n.codeFixResolved/n.codeFixTotal:0,frac:n=>n.codeFixTotal?`${n.codeFixResolved}/${n.codeFixTotal}`:"—"}:e==="pr-review"?{label:`F${t}`,rate:n=>n.reviewTotal?n.avgFbeta:0,frac:n=>n.reviewTotal?`${(n.avgFbeta*100).toFixed(0)}% · P${n.avgPrecision.toFixed(2)}/R${n.avgRecall.toFixed(2)}`:"—"}:{label:"behavioral",rate:n=>n.behavioralTotal?n.behavioralOk/n.behavioralTotal:0,frac:n=>n.behavioralTotal?`${n.behavioralOk}/${n.behavioralTotal}`:"—"}}function Xb(e,t){return[...e].sort((n,r)=>t.rate(r)-t.rate(n)||n.totalCostUsd-r.totalCostUsd)}function fn(e,t){return e[t]??t}function rv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=rv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _t(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=rv(e))&&(r&&(r+=" "),r+=t);return r}function vc({frac:e,value:t,color:n,best:r}){const s=Math.max(0,Math.min(1,e))*100,o={accent:"bg-accent",info:"bg-info",primary:"bg-primary"}[n];return c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"h-2 flex-1 overflow-hidden rounded-full bg-base-300",children:c.jsx("span",{className:_t("block h-full rounded-full",o),style:{width:`${s.toFixed(1)}%`}})}),c.jsxs("span",{className:_t("min-w-[3rem] text-right font-mono text-xs",r?"font-semibold text-success":"text-base-content"),children:[t,r&&c.jsx("span",{className:"ml-0.5 text-2xs text-accent",children:"★"})]})]})}function id({runType:e,className:t=""}){return e!=="config"?null:c.jsx("span",{title:"Eval of a deployment's real per-step model config",className:_t("inline-block whitespace-nowrap rounded-full bg-primary/15 px-2 py-0.5 font-mono text-2xs font-semibold text-primary",t),children:"config"})}function Le({kind:e,children:t}){const n={pass:"bg-success/15 text-success",fail:"bg-error/15 text-error",na:"bg-base-300 text-base-content/50",run:"bg-accent/15 text-accent ll-pulse",wait:"bg-base-300 text-base-content/50",blocked:"bg-warning/15 text-warning"};return c.jsx("span",{className:_t("inline-block rounded-full px-2 py-0.5 font-mono text-2xs font-semibold",n[e]),children:t})}function Zb({ok:e,name:t,detail:n}){return c.jsx("span",{title:n??"",className:_t("mr-1 mb-1 inline-block rounded border px-1.5 py-0.5 font-mono text-2xs",e?"border-success/40 text-success":"border-error/40 text-error"),children:t})}function vh({pass:e,trials:t}){return e===void 0||!t||t<=1?null:c.jsxs("span",{className:"ml-1 font-mono text-2xs text-base-content/50",children:[e,"/",t]})}function Jb({rates:e}){if(!e.length)return c.jsx("span",{className:"text-base-content/40",children:"—"});const s=a=>e.length===1?3:3+a*(168-2*3)/(e.length-1),o=a=>27-Math.max(0,Math.min(1,a))*(30-2*3),i=e.length-1;return c.jsxs("svg",{width:168,height:30,viewBox:"0 0 168 30",className:"block",children:[e.length>1&&c.jsx("polyline",{fill:"none",stroke:"#fcd34d",strokeWidth:1.5,points:e.map((a,l)=>`${s(l).toFixed(1)},${o(a).toFixed(1)}`).join(" ")}),c.jsx("circle",{cx:s(i).toFixed(1),cy:o(e[i]).toFixed(1),r:2.5,fill:"#fcd34d"})]})}function Xa({run:e,className:t="",size:n="xs"}){const r=n==="sm"?"text-sm":"text-2xs";return e.interrupted?c.jsxs("span",{className:`whitespace-nowrap font-semibold text-base-content/50 ${r} ${t}`,title:"The run was killed or crashed mid-flight. Run `lastlight-evals clean` to tidy it up.",children:["⊘ interrupted",e.progress?` ${e.progress}`:""]}):e.live?e.running&&e.running>0?c.jsxs("span",{className:`ll-pulse whitespace-nowrap font-semibold text-success ${r} ${t}`,children:["● running",e.progress?` ${e.progress}`:""]}):e.queued&&e.queued>0?c.jsx("span",{className:`whitespace-nowrap font-semibold text-warning ${r} ${t}`,children:"○ queued"}):null:null}function ew({tiers:e}){const t=sd(),n=e.flatMap(s=>s.runs.map(o=>({tierKey:s.key,run:o}))).sort((s,o)=>s.run.generatedAt<o.run.generatedAt?1:s.run.generatedAt>o.run.generatedAt?-1:0),r={};for(const s of e)for(const o of s.runs)Object.assign(r,o.labels);return c.jsxs("div",{children:[c.jsx("h1",{className:"mb-1 text-2xl font-semibold text-base-content",children:"Overview"}),c.jsxs("p",{className:"mb-6 font-mono text-xs text-base-content/50",children:[e.length," tier",e.length===1?"":"s"," · ",n.length," run",n.length===1?"":"s"," · click a tier for its history, or a run for its scorecard"]}),c.jsx("div",{className:"mb-9 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:e.map(s=>{const o=s.runs[0],i=s.runs.find(a=>a.live)??s.runs.find(a=>a.interrupted);return c.jsxs("button",{onClick:()=>t(s.key),className:"group rounded-xl border border-base-300 bg-base-200 px-4 py-4 text-left hover:border-info",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"font-mono text-sm font-semibold text-base-content",children:s.key}),i&&c.jsx(Xa,{run:i}),c.jsxs("span",{className:"ml-auto font-mono text-2xs text-base-content/40",children:[s.runs.length," run",s.runs.length===1?"":"s"]})]}),c.jsx("div",{className:"mt-2 font-mono text-2xs text-base-content/50",children:o?`latest ${Ya(o.generatedAt)}`:"no runs"})]},s.key)})}),c.jsx("h2",{className:"mb-3.5 text-lg font-semibold text-base-content",children:"Recent runs"}),c.jsx("div",{className:"overflow-x-auto rounded-xl border border-base-300 bg-base-200",children:c.jsxs("table",{className:"w-full border-collapse text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-neutral text-2xs uppercase tracking-wide text-base-content/50",children:[c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"run"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"tier"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"models"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"git"}),c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:"score"}),c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:"cost"})]})}),c.jsxs("tbody",{children:[n.map(({tierKey:s,run:o})=>{const i=o.byTier.flatMap(f=>f.models),a=i.reduce((f,p)=>f+(p.totalCostUsd||0),0),l=o.byTier.map(f=>{const p=od(f.tier),y=f.models.map(p.rate);return y.length?Math.max(...y):null}).filter(f=>f!==null),u=l.length?Math.max(...l):null,d=[...new Set(i.map(f=>fn(r,f.model)))];return c.jsxs("tr",{onClick:()=>t(s,o.id),className:"cursor-pointer border-t border-base-300 hover:bg-base-300/40",children:[c.jsxs("td",{className:"whitespace-nowrap px-3 py-2.5 font-mono",children:[c.jsx("span",{className:"text-info hover:underline",children:Ya(o.generatedAt)}),c.jsx(id,{runType:o.runType,className:"ml-2"}),c.jsx(Xa,{run:o,className:"ml-2"})]}),c.jsx("td",{className:"px-3 py-2.5 font-mono text-base-content/70",children:s}),c.jsx("td",{className:"px-3 py-2.5 font-mono text-2xs text-base-content/50",children:d.join(", ")}),c.jsx("td",{className:"px-3 py-2.5 font-mono text-base-content/50",children:o.gitSha??"—"}),c.jsx("td",{className:"px-3 py-2.5 text-right font-mono",children:u===null?c.jsx("span",{className:"text-base-content/40",children:"—"}):`${(u*100).toFixed(0)}%`}),c.jsxs("td",{className:"px-3 py-2.5 text-right font-mono",children:["$",a.toFixed(3)]})]},`${s}/${o.id}`)}),n.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:6,className:"px-3 py-6 text-center font-mono text-base-content/40",children:"no runs yet"})})]})]})})]})}const xc=(e,t)=>{var n;return((n=e.byTier.find(r=>r.tier===t))==null?void 0:n.models)??[]};function tw({tier:e}){const t=e.runs,n={};for(const s of t)Object.assign(n,s.labels);const r=[];for(const s of t){for(const o of s.byTier)r.includes(o.tier)||r.push(o.tier);for(const o of s.tiers)r.includes(o)||r.push(o)}return t.length?c.jsx("div",{children:r.map(s=>c.jsx(nw,{tierKey:e.key,tier:s,runs:t,labels:n},s))}):c.jsxs("p",{className:"py-10 font-mono text-sm text-base-content/50",children:["No runs yet for ",e.key,"."]})}function nw({tierKey:e,tier:t,runs:n,labels:r}){const s=sd(),o=od(t),i=[...n].reverse(),a=[];for(const u of i)for(const d of xc(u,t))a.includes(d.model)||a.push(d.model);const l=u=>new Map(xc(u,t).map(d=>[d.model,d]));return c.jsxs("section",{className:"mb-10",children:[c.jsxs("h2",{className:"mb-3.5 text-lg font-semibold text-base-content",children:[t," ",c.jsxs("span",{className:"font-normal text-base-content/50",children:["— ",o.label," over ",n.length," run",n.length===1?"":"s"]})]}),a.length>0&&c.jsx("div",{className:"overflow-hidden rounded-xl border border-base-300 bg-base-200",children:c.jsxs("table",{className:"w-full border-collapse text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-neutral text-2xs uppercase tracking-wide text-base-content/50",children:[c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"model"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"trend (oldest → newest)"}),c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:"latest"})]})}),c.jsx("tbody",{children:a.map(u=>{const d=i.map(p=>l(p).get(u)).filter(p=>!!p).map(o.rate),f=d.length?d[d.length-1]:0;return c.jsxs("tr",{className:"border-t border-base-300",children:[c.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 font-mono font-semibold text-accent",children:fn(r,u)}),c.jsx("td",{className:"px-3 py-2.5",children:c.jsx(Jb,{rates:d})}),c.jsx("td",{className:"px-3 py-2.5 text-right font-semibold text-base-content",children:d.length?`${(f*100).toFixed(0)}%`:"—"})]},u)})})]})}),c.jsx("div",{className:"mt-4 overflow-x-auto rounded-xl border border-base-300 bg-base-200",children:c.jsxs("table",{className:"w-full border-collapse text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-neutral text-2xs uppercase tracking-wide text-base-content/50",children:[c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"run"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"git"}),a.map(u=>c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:fn(r,u)},u)),c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:"cost"})]})}),c.jsx("tbody",{children:n.map(u=>{const d=l(u),f=xc(u,t).reduce((p,y)=>p+(y.totalCostUsd||0),0);return c.jsxs("tr",{onClick:()=>s(e,u.id),className:"cursor-pointer border-t border-base-300 hover:bg-base-300/40",children:[c.jsxs("td",{className:"px-3 py-2.5 font-mono",children:[c.jsx("span",{className:"text-info hover:underline",children:Ya(u.generatedAt)}),c.jsx(id,{runType:u.runType,className:"ml-2"}),c.jsx(Xa,{run:u,className:"ml-2"})]}),c.jsx("td",{className:"px-3 py-2.5 font-mono text-base-content/50",children:u.gitSha??"—"}),a.map(p=>{const y=d.get(p);return c.jsx("td",{className:"px-3 py-2.5 text-right font-mono",children:y?o.frac(y):c.jsx("span",{className:"text-base-content/40",children:"—"})},p)}),c.jsxs("td",{className:"px-3 py-2.5 text-right font-mono",children:["$",f.toFixed(3)]})]},u.id)})})]})})]})}const is=e=>e.length?e.reduce((t,n)=>t+n,0)/e.length:0;function rw(e){var r;const t=new Map;for(const s of e){const o=t.get(s.model)??[];o.push(s),t.set(s.model,o)}const n=[];for(const[s,o]of t){const i=o.filter(d=>d.resolved!==void 0),a=o.filter(d=>d.behavioral!==void 0&&!d.error),l=o.filter(d=>d.review!==void 0&&!d.error),u=o.map(d=>d.durationMs).sort((d,f)=>d-f);n.push({model:s,total:o.length,codeFixResolved:i.filter(d=>d.resolved).length,codeFixTotal:i.length,behavioralOk:a.filter(d=>{var f;return(f=d.behavioral)==null?void 0:f.ok}).length,behavioralTotal:a.length,reviewTotal:l.length,avgPrecision:is(l.map(d=>d.review.precision)),avgRecall:is(l.map(d=>d.review.recall)),avgFbeta:is(l.map(d=>d.review.fbeta)),reviewBeta:(r=l[0])==null?void 0:r.review.beta,avgInputTokens:is(o.map(d=>d.inputTokens)),avgCachedTokens:is(o.map(d=>d.cachedTokens)),avgOutputTokens:is(o.map(d=>d.outputTokens)),totalCostUsd:o.reduce((d,f)=>d+f.costUsd,0),p50DurationMs:u[Math.floor(u.length/2)]??0,errors:o.filter(d=>d.error).length})}return n}function sw({models:e,tier:t,labels:n,axisLabel:r="model"}){var k;const s=((k=e.find(x=>x.reviewBeta!==void 0))==null?void 0:k.reviewBeta)??1,o=od(t,s),i=Xb(e,o),a=Math.max(0,...i.map(o.rate)),l=i.filter(x=>x.totalCostUsd>0).map(x=>x.totalCostUsd),u=i.filter(x=>x.p50DurationMs>0).map(x=>x.p50DurationMs),d=l.length?Math.min(...l):1/0,f=u.length?Math.min(...u):1/0,p=l.length?Math.max(...l):1,y=u.length?Math.max(...u):1;return c.jsx("div",{className:"overflow-x-auto rounded-xl border border-base-300 bg-base-200",children:c.jsxs("table",{className:"w-full border-collapse text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-neutral text-2xs uppercase tracking-wide text-base-content/50",children:[c.jsx("th",{className:"w-8 px-3 py-3 text-center font-semibold",children:"#"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:r.toLowerCase()}),c.jsxs("th",{className:"px-3 py-3 text-left font-semibold",children:[o.label," →"]}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"total cost ↓"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"p50 latency ↓"}),c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:"avg in/cached/out tok"}),c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:"err"})]})}),c.jsx("tbody",{children:i.map((x,T)=>{const g=o.rate(x),h=o.frac(x)!=="—"&&g>=a&&a>0,m=x.totalCostUsd>0&&x.totalCostUsd===d,v=x.p50DurationMs>0&&x.p50DurationMs===f;return c.jsxs("tr",{className:"border-t border-base-300",children:[c.jsx("td",{className:"px-3 py-2.5 text-center font-mono text-base-content/50",children:T+1}),c.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 font-mono font-semibold text-accent",children:fn(n,x.model)}),c.jsx("td",{className:"w-[22%] min-w-[140px] px-3 py-2.5",children:c.jsx(vc,{frac:g,value:o.frac(x),color:"accent",best:h})}),c.jsx("td",{className:"w-[22%] min-w-[140px] px-3 py-2.5",children:c.jsx(vc,{frac:p?x.totalCostUsd/p:0,value:`$${x.totalCostUsd.toFixed(3)}`,color:"info",best:m})}),c.jsx("td",{className:"w-[22%] min-w-[140px] px-3 py-2.5",children:c.jsx(vc,{frac:y?x.p50DurationMs/y:0,value:nv(x.p50DurationMs),color:"primary",best:v})}),c.jsxs("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono",children:[yc(x.avgInputTokens),c.jsx("span",{className:"text-base-content/40",children:"/"}),yc(x.avgCachedTokens),c.jsx("span",{className:"text-base-content/40",children:"/"}),yc(x.avgOutputTokens)]}),c.jsx("td",{className:`px-3 py-2.5 text-right font-mono ${x.errors?"text-error":"text-base-content/50"}`,children:x.errors})]},x.model)})})]})})}function sv(e){return e.kind==="tool_pair"}function ow(e){const t=e.content;return(t&&typeof t.id=="string"?t.id:null)??null}function iw(e){const t=e.content;return t&&typeof t.name=="string"&&t.name||"tool"}function aw(e){if(e.linkedTo)return e.linkedTo;const t=e.content;return(t&&typeof t.tool_use_id=="string"?t.tool_use_id:null)??null}function lw(e){var r;const t=[],n=new Set;for(let s=0;s<e.length;s++){const o=e[s];if(!n.has(o.id)){if(o.type==="tool_use"){const i=ow(o);let a=-1;if(i)for(let u=s+1;u<e.length;u++){const d=e[u];if(!n.has(d.id)&&d.type==="tool_result"&&aw(d)===i){a=u;break}}const l=a>=0?e[a]:null;t.push({kind:"tool_pair",id:`pair-${o.id}`,timestamp:o.timestamp,toolName:((r=l==null?void 0:l.metadata)==null?void 0:r.toolName)??iw(o),use:o,result:l}),n.add(o.id),l&&n.add(l.id);continue}t.push({kind:"single",id:o.id,timestamp:o.timestamp,message:o})}}return t}function ad(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Yr=ad();function ov(e){Yr=e}const iv=/[&<>"']/,cw=new RegExp(iv.source,"g"),av=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,uw=new RegExp(av.source,"g"),fw={"&":"&","<":"<",">":">",'"':""","'":"'"},xh=e=>fw[e];function bt(e,t){if(t){if(iv.test(e))return e.replace(cw,xh)}else if(av.test(e))return e.replace(uw,xh);return e}const dw=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function pw(e){return e.replace(dw,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const hw=/(^|[^\[])\^/g;function ae(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(s,o)=>{let i=typeof o=="string"?o:o.source;return i=i.replace(hw,"$1"),n=n.replace(s,i),r},getRegex:()=>new RegExp(n,t)};return r}function bh(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const $o={exec:()=>null};function wh(e,t){const n=e.replace(/\|/g,(o,i,a)=>{let l=!1,u=i;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}function Zi(e,t,n){const r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function mw(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function kh(e,t,n,r){const s=t.href,o=t.title?bt(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:s,title:o,text:i,tokens:r.inlineTokens(i)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:o,text:bt(i)}}function gw(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
|
|
41
|
-
`).map(s=>{const o=s.match(/^\s+/);if(o===null)return s;const[i]=o;return i.length>=r.length?s.slice(r.length):s}).join(`
|
|
42
|
-
`)}class Za{constructor(t){ce(this,"options");ce(this,"rules");ce(this,"lexer");this.options=t||Yr}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Zi(r,`
|
|
43
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],s=gw(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const s=Zi(r,"#");(this.options.pedantic||!s||/ $/.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=Zi(n[0].replace(/^ *>[ \t]?/gm,""),`
|
|
44
|
-
`),s=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(r);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:o,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const s=r.length>1,o={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const i=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",l="",u=!1;for(;t;){let d=!1;if(!(n=i.exec(t))||this.rules.block.hr.test(t))break;a=n[0],t=t.substring(a.length);let f=n[2].split(`
|
|
45
|
-
`,1)[0].replace(/^\t+/,g=>" ".repeat(3*g.length)),p=t.split(`
|
|
46
|
-
`,1)[0],y=0;this.options.pedantic?(y=2,l=f.trimStart()):(y=n[2].search(/[^ ]/),y=y>4?1:y,l=f.slice(y),y+=n[1].length);let k=!1;if(!f&&/^ *$/.test(p)&&(a+=p+`
|
|
47
|
-
`,t=t.substring(p.length+1),d=!0),!d){const g=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),h=new RegExp(`^ {0,${Math.min(3,y-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),m=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:\`\`\`|~~~)`),v=new RegExp(`^ {0,${Math.min(3,y-1)}}#`);for(;t;){const w=t.split(`
|
|
48
|
-
`,1)[0];if(p=w,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),m.test(p)||v.test(p)||g.test(p)||h.test(t))break;if(p.search(/[^ ]/)>=y||!p.trim())l+=`
|
|
49
|
-
`+p.slice(y);else{if(k||f.search(/[^ ]/)>=4||m.test(f)||v.test(f)||h.test(f))break;l+=`
|
|
50
|
-
`+p}!k&&!p.trim()&&(k=!0),a+=w+`
|
|
51
|
-
`,t=t.substring(w.length+1),f=p.slice(y)}}o.loose||(u?o.loose=!0:/\n *\n *$/.test(a)&&(u=!0));let x=null,T;this.options.gfm&&(x=/^\[[ xX]\] /.exec(l),x&&(T=x[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:a,task:!!x,checked:T,loose:!1,text:l,tokens:[]}),o.raw+=a}o.items[o.items.length-1].raw=a.trimEnd(),o.items[o.items.length-1].text=l.trimEnd(),o.raw=o.raw.trimEnd();for(let d=0;d<o.items.length;d++)if(this.lexer.state.top=!1,o.items[d].tokens=this.lexer.blockTokens(o.items[d].text,[]),!o.loose){const f=o.items[d].tokens.filter(y=>y.type==="space"),p=f.length>0&&f.some(y=>/\n.*\n/.test(y.raw));o.loose=p}if(o.loose)for(let d=0;d<o.items.length;d++)o.items[d].loose=!0;return o}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),s=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:o}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=wh(n[1]),s=n[2].replace(/^\||\| *$/g,"").split("|"),o=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
52
|
-
`):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const a of s)/^ *-+: *$/.test(a)?i.align.push("right"):/^ *:-+: *$/.test(a)?i.align.push("center"):/^ *:-+ *$/.test(a)?i.align.push("left"):i.align.push(null);for(const a of r)i.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of o)i.rows.push(wh(a,i.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return i}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
53
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:bt(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const i=Zi(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{const i=mw(n[2],"()");if(i>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+i;n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let s=n[2],o="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);i&&(s=i[1],o=i[3])}else o=n[3]?n[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(r)?s=s.slice(1):s=s.slice(1,-1)),kh(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const s=(r[2]||r[1]).replace(/\s+/g," "),o=n[s.toLowerCase()];if(!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return kh(r,o,r[0],this.lexer)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!s||s[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const i=[...s[0]].length-1;let a,l,u=i,d=0;const f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+i);(s=f.exec(n))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){u+=l;continue}else if((s[5]||s[6])&&i%3&&!((i+l)%3)){d+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+d);const p=[...s[0]][0].length,y=t.slice(0,i+s.index+p+l);if(Math.min(i,l)%2){const x=y.slice(1,-1);return{type:"em",raw:y,text:x,tokens:this.lexer.inlineTokens(x)}}const k=y.slice(2,-2);return{type:"strong",raw:y,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const s=/[^ ]/.test(r),o=/^ /.test(r)&&/ $/.test(r);return s&&o&&(r=r.substring(1,r.length-1)),r=bt(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,s;return n[2]==="@"?(r=bt(n[1]),s="mailto:"+r):(r=bt(n[1]),s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let s,o;if(n[2]==="@")s=bt(n[0]),o="mailto:"+s;else{let i;do i=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(i!==n[0]);s=bt(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=bt(n[0]),{type:"text",raw:n[0],text:r}}}}const yw=/^(?: *(?:\n|$))+/,vw=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,xw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,wi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,bw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,lv=/(?:[*+-]|\d{1,9}[.)])/,cv=ae(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,lv).getRegex(),ld=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ww=/^[^\n]+/,cd=/(?!\s*\])(?:\\.|[^\[\]\\])+/,kw=ae(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",cd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sw=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,lv).getRegex(),xl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ud=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ew=ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",ud).replace("tag",xl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),uv=ae(ld).replace("hr",wi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xl).getRegex(),_w=ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",uv).getRegex(),fd={blockquote:_w,code:vw,def:kw,fences:xw,heading:bw,hr:wi,html:Ew,lheading:cv,list:Sw,newline:yw,paragraph:uv,table:$o,text:ww},Sh=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",wi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xl).getRegex(),Tw={...fd,table:Sh,paragraph:ae(ld).replace("hr",wi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sh).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xl).getRegex()},Nw={...fd,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ud).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$o,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(ld).replace("hr",wi).replace("heading",` *#{1,6} *[^
|
|
54
|
-
]`).replace("lheading",cv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Aw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,dv=/^( {2,}|\\)\n(?!\s*$)/,Cw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ki="\\p{P}$+<=>`^|~",jw=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,ki).getRegex(),Rw=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Lw=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,ki).getRegex(),Dw=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,ki).getRegex(),Ow=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,ki).getRegex(),Pw=ae(/\\([punct])/,"gu").replace(/punct/g,ki).getRegex(),Mw=ae(/^<(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(),Iw=ae(ud).replace("(?:-->|$)","-->").getRegex(),$w=ae("^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",Iw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ja=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Fw=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ja).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pv=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",Ja).replace("ref",cd).getRegex(),hv=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",cd).getRegex(),zw=ae("reflink|nolink(?!\\()","g").replace("reflink",pv).replace("nolink",hv).getRegex(),dd={_backpedal:$o,anyPunctuation:Pw,autolink:Mw,blockSkip:Rw,br:dv,code:Aw,del:$o,emStrongLDelim:Lw,emStrongRDelimAst:Dw,emStrongRDelimUnd:Ow,escape:fv,link:Fw,nolink:hv,punctuation:jw,reflink:pv,reflinkSearch:zw,tag:$w,text:Cw,url:$o},qw={...dd,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",Ja).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ja).getRegex()},Fu={...dd,escape:ae(fv).replace("])","~|])").getRegex(),url:ae(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Uw={...Fu,br:ae(dv).replace("{2,}","*").getRegex(),text:ae(Fu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ji={normal:fd,gfm:Tw,pedantic:Nw},yo={normal:dd,gfm:Fu,breaks:Uw,pedantic:qw};class an{constructor(t){ce(this,"tokens");ce(this,"options");ce(this,"state");ce(this,"tokenizer");ce(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Yr,this.options.tokenizer=this.options.tokenizer||new Za,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 n={block:Ji.normal,inline:yo.normal};this.options.pedantic?(n.block=Ji.pedantic,n.inline=yo.pedantic):this.options.gfm&&(n.block=Ji.gfm,this.options.breaks?n.inline=yo.breaks:n.inline=yo.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ji,inline:yo}}static lex(t,n){return new an(n).lex(t)}static lexInline(t,n){return new an(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
55
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,l,u)=>l+" ".repeat(u.length));let r,s,o,i;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(r=a.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
|
|
56
|
-
`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
|
|
57
|
-
`+r.raw,s.text+=`
|
|
58
|
-
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
|
|
59
|
-
`+r.raw,s.text+=`
|
|
60
|
-
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let u;this.options.extensions.startBlock.forEach(d=>{u=d.call({lexer:this},l),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){s=n[n.length-1],i&&s.type==="paragraph"?(s.raw+=`
|
|
61
|
-
`+r.raw,s.text+=`
|
|
62
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r),i=o.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
|
|
63
|
-
`+r.raw,s.text+=`
|
|
64
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,s,o,i=t,a,l,u;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>(r=d.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,i,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let d=1/0;const f=t.slice(1);let p;this.options.extensions.startInline.forEach(y=>{p=y.call({lexer:this},f),typeof p=="number"&&p>=0&&(d=Math.min(d,p))}),d<1/0&&d>=0&&(o=t.substring(0,d+1))}if(r=this.tokenizer.inlineText(o)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),l=!0,s=n[n.length-1],s&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class el{constructor(t){ce(this,"options");this.options=t||Yr}code(t,n,r){var o;const s=(o=(n||"").match(/^\S*/))==null?void 0:o[0];return t=t.replace(/\n$/,"")+`
|
|
65
|
-
`,s?'<pre><code class="language-'+bt(s)+'">'+(r?t:bt(t,!0))+`</code></pre>
|
|
66
|
-
`:"<pre><code>"+(r?t:bt(t,!0))+`</code></pre>
|
|
67
|
-
`}blockquote(t){return`<blockquote>
|
|
68
|
-
${t}</blockquote>
|
|
69
|
-
`}html(t,n){return t}heading(t,n,r){return`<h${n}>${t}</h${n}>
|
|
70
|
-
`}hr(){return`<hr>
|
|
71
|
-
`}list(t,n,r){const s=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+s+o+`>
|
|
72
|
-
`+t+"</"+s+`>
|
|
73
|
-
`}listitem(t,n,r){return`<li>${t}</li>
|
|
74
|
-
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
|
75
|
-
`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
76
|
-
<thead>
|
|
77
|
-
`+t+`</thead>
|
|
78
|
-
`+n+`</table>
|
|
79
|
-
`}tablerow(t){return`<tr>
|
|
80
|
-
${t}</tr>
|
|
81
|
-
`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+`</${r}>
|
|
82
|
-
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,r){const s=bh(t);if(s===null)return r;t=s;let o='<a href="'+t+'"';return n&&(o+=' title="'+n+'"'),o+=">"+r+"</a>",o}image(t,n,r){const s=bh(t);if(s===null)return r;t=s;let o=`<img src="${t}" alt="${r}"`;return n&&(o+=` title="${n}"`),o+=">",o}text(t){return t}}class pd{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class ln{constructor(t){ce(this,"options");ce(this,"renderer");ce(this,"textRenderer");this.options=t||Yr,this.options.renderer=this.options.renderer||new el,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new pd}static parse(t,n){return new ln(n).parse(t)}static parseInline(t,n){return new ln(n).parseInline(t)}parse(t,n=!0){let r="";for(let s=0;s<t.length;s++){const o=t[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const i=o,a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){r+=a||"";continue}}switch(o.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const i=o;r+=this.renderer.heading(this.parseInline(i.tokens),i.depth,pw(this.parseInline(i.tokens,this.textRenderer)));continue}case"code":{const i=o;r+=this.renderer.code(i.text,i.lang,!!i.escaped);continue}case"table":{const i=o;let a="",l="";for(let d=0;d<i.header.length;d++)l+=this.renderer.tablecell(this.parseInline(i.header[d].tokens),{header:!0,align:i.align[d]});a+=this.renderer.tablerow(l);let u="";for(let d=0;d<i.rows.length;d++){const f=i.rows[d];l="";for(let p=0;p<f.length;p++)l+=this.renderer.tablecell(this.parseInline(f[p].tokens),{header:!1,align:i.align[p]});u+=this.renderer.tablerow(l)}r+=this.renderer.table(a,u);continue}case"blockquote":{const i=o,a=this.parse(i.tokens);r+=this.renderer.blockquote(a);continue}case"list":{const i=o,a=i.ordered,l=i.start,u=i.loose;let d="";for(let f=0;f<i.items.length;f++){const p=i.items[f],y=p.checked,k=p.task;let x="";if(p.task){const T=this.renderer.checkbox(!!y);u?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=T+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=T+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:T+" "}):x+=T+" "}x+=this.parse(p.tokens,u),d+=this.renderer.listitem(x,k,!!y)}r+=this.renderer.list(d,a,l);continue}case"html":{const i=o;r+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=o;r+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=o,a=i.tokens?this.parseInline(i.tokens):i.text;for(;s+1<t.length&&t[s+1].type==="text";)i=t[++s],a+=`
|
|
83
|
-
`+(i.tokens?this.parseInline(i.tokens):i.text);r+=n?this.renderer.paragraph(a):a;continue}default:{const i='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let s=0;s<t.length;s++){const o=t[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const i=this.options.extensions.renderers[o.type].call({parser:this},o);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=i||"";continue}}switch(o.type){case"escape":{const i=o;r+=n.text(i.text);break}case"html":{const i=o;r+=n.html(i.text);break}case"link":{const i=o;r+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{const i=o;r+=n.image(i.href,i.title,i.text);break}case"strong":{const i=o;r+=n.strong(this.parseInline(i.tokens,n));break}case"em":{const i=o;r+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{const i=o;r+=n.codespan(i.text);break}case"br":{r+=n.br();break}case"del":{const i=o;r+=n.del(this.parseInline(i.tokens,n));break}case"text":{const i=o;r+=n.text(i.text);break}default:{const i='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return r}}class Fo{constructor(t){ce(this,"options");this.options=t||Yr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}ce(Fo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Qr,zu,mv;class Hw{constructor(...t){U(this,Qr);ce(this,"defaults",ad());ce(this,"options",this.setOptions);ce(this,"parse",W(this,Qr,zu).call(this,an.lex,ln.parse));ce(this,"parseInline",W(this,Qr,zu).call(this,an.lexInline,ln.parseInline));ce(this,"Parser",ln);ce(this,"Renderer",el);ce(this,"TextRenderer",pd);ce(this,"Lexer",an);ce(this,"Tokenizer",Za);ce(this,"Hooks",Fo);this.use(...t)}walkTokens(t,n){var s,o;let r=[];for(const i of t)switch(r=r.concat(n.call(this,i)),i.type){case"table":{const a=i;for(const l of a.header)r=r.concat(this.walkTokens(l.tokens,n));for(const l of a.rows)for(const u of l)r=r.concat(this.walkTokens(u.tokens,n));break}case"list":{const a=i;r=r.concat(this.walkTokens(a.items,n));break}default:{const a=i;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[a.type]?this.defaults.extensions.childTokens[a.type].forEach(l=>{const u=a[l].flat(1/0);r=r.concat(this.walkTokens(u,n))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const i=n.renderers[o.name];i?n.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=i.apply(this,a)),l}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=n[o.level];i?i.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),r.renderer){const o=this.defaults.renderer||new el(this.defaults);for(const i in r.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const a=i,l=r.renderer[a],u=o[a];o[a]=(...d)=>{let f=l.apply(o,d);return f===!1&&(f=u.apply(o,d)),f||""}}s.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new Za(this.defaults);for(const i in r.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const a=i,l=r.tokenizer[a],u=o[a];o[a]=(...d)=>{let f=l.apply(o,d);return f===!1&&(f=u.apply(o,d)),f}}s.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new Fo;for(const i in r.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const a=i,l=r.hooks[a],u=o[a];Fo.passThroughHooks.has(i)?o[a]=d=>{if(this.defaults.async)return Promise.resolve(l.call(o,d)).then(p=>u.call(o,p));const f=l.call(o,d);return u.call(o,f)}:o[a]=(...d)=>{let f=l.apply(o,d);return f===!1&&(f=u.apply(o,d)),f}}s.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,i=r.walkTokens;s.walkTokens=function(a){let l=[];return l.push(i.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return an.lex(t,n??this.defaults)}parser(t,n){return ln.parse(t,n??this.defaults)}}Qr=new WeakSet,zu=function(t,n){return(r,s)=>{const o={...s},i={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const a=W(this,Qr,mv).call(this,!!i.silent,!!i.async);if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(r):r).then(l=>t(l,i)).then(l=>i.hooks?i.hooks.processAllTokens(l):l).then(l=>i.walkTokens?Promise.all(this.walkTokens(l,i.walkTokens)).then(()=>l):l).then(l=>n(l,i)).then(l=>i.hooks?i.hooks.postprocess(l):l).catch(a);try{i.hooks&&(r=i.hooks.preprocess(r));let l=t(r,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let u=n(l,i);return i.hooks&&(u=i.hooks.postprocess(u)),u}catch(l){return a(l)}}},mv=function(t,n){return r=>{if(r.message+=`
|
|
84
|
-
Please report this to https://github.com/markedjs/marked.`,t){const s="<p>An error occurred:</p><pre>"+bt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}};const Vr=new Hw;function ne(e,t){return Vr.parse(e,t)}ne.options=ne.setOptions=function(e){return Vr.setOptions(e),ne.defaults=Vr.defaults,ov(ne.defaults),ne};ne.getDefaults=ad;ne.defaults=Yr;ne.use=function(...e){return Vr.use(...e),ne.defaults=Vr.defaults,ov(ne.defaults),ne};ne.walkTokens=function(e,t){return Vr.walkTokens(e,t)};ne.parseInline=Vr.parseInline;ne.Parser=ln;ne.parser=ln.parse;ne.Renderer=el;ne.TextRenderer=pd;ne.Lexer=an;ne.lexer=an.lex;ne.Tokenizer=Za;ne.Hooks=Fo;ne.parse=ne;ne.options;ne.setOptions;ne.use;ne.walkTokens;ne.parseInline;ln.parse;an.lex;/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function Eh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bw(e){if(Array.isArray(e))return e}function Gw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,o,i,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw s}}return a}}function Vw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
85
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qw(e,t){return Bw(e)||Gw(e,t)||Ww(e,t)||Vw()}function Ww(e,t){if(e){if(typeof e=="string")return Eh(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eh(e,t):void 0}}const gv=Object.entries,_h=Object.setPrototypeOf,Kw=Object.isFrozen,Yw=Object.getPrototypeOf,Xw=Object.getOwnPropertyDescriptor;let qe=Object.freeze,Be=Object.seal,cs=Object.create,yv=typeof Reflect<"u"&&Reflect,qu=yv.apply,Uu=yv.construct;qe||(qe=function(t){return t});Be||(Be=function(t){return t});qu||(qu=function(t,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),o=2;o<r;o++)s[o-2]=arguments[o];return t.apply(n,s)});Uu||(Uu=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new t(...r)});const vo=Ae(Array.prototype.forEach),Zw=Ae(Array.prototype.lastIndexOf),Th=Ae(Array.prototype.pop),as=Ae(Array.prototype.push),Jw=Ae(Array.prototype.splice),Hn=Array.isArray,Ao=Ae(String.prototype.toLowerCase),bc=Ae(String.prototype.toString),Nh=Ae(String.prototype.match),xo=Ae(String.prototype.replace),Ah=Ae(String.prototype.indexOf),ek=Ae(String.prototype.trim),tk=Ae(Number.prototype.toString),nk=Ae(Boolean.prototype.toString),Ch=typeof BigInt>"u"?null:Ae(BigInt.prototype.toString),jh=typeof Symbol>"u"?null:Ae(Symbol.prototype.toString),De=Ae(Object.prototype.hasOwnProperty),bo=Ae(Object.prototype.toString),$e=Ae(RegExp.prototype.test),br=rk(TypeError);function Ae(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return qu(e,t,r)}}function rk(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Uu(e,n)}}function Z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ao;if(_h&&_h(e,null),!Hn(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const o=n(s);o!==s&&(Kw(t)||(t[r]=o),s=o)}e[s]=!0}return e}function sk(e){for(let t=0;t<e.length;t++)De(e,t)||(e[t]=null);return e}function et(e){const t=cs(null);for(const r of gv(e)){var n=Qw(r,2);const s=n[0],o=n[1];De(e,s)&&(Hn(o)?t[s]=sk(o):o&&typeof o=="object"&&o.constructor===Object?t[s]=et(o):t[s]=o)}return t}function ok(e){switch(typeof e){case"string":return e;case"number":return tk(e);case"boolean":return nk(e);case"bigint":return Ch?Ch(e):"0";case"symbol":return jh?jh(e):"Symbol()";case"undefined":return bo(e);case"function":case"object":{if(e===null)return bo(e);const t=e,n=en(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:bo(r)}return bo(e)}default:return bo(e)}}function en(e,t){for(;e!==null;){const r=Xw(e,t);if(r){if(r.get)return Ae(r.get);if(typeof r.value=="function")return Ae(r.value)}e=Yw(e)}function n(){return null}return n}function ik(e){try{return $e(e,""),!0}catch{return!1}}const Rh=qe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),wc=qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),kc=qe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ak=qe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sc=qe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),lk=qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lh=qe(["#text"]),Dh=qe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ec=qe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Oh=qe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ea=qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ck=Be(/{{[\w\W]*|^[\w\W]*}}/g),uk=Be(/<%[\w\W]*|^[\w\W]*%>/g),fk=Be(/\${[\w\W]*/g),dk=Be(/^data-[\-\w.\u00B7-\uFFFF]+$/),pk=Be(/^aria-[\-\w]+$/),Ph=Be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hk=Be(/^(?:\w+script|data):/i),mk=Be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gk=Be(/^html$/i),yk=Be(/^[a-z][.\w]*(-[.\w]+)+$/i),Mh=Be(/<[/\w!]/g),vk=Be(/<[/\w]/g),xk=Be(/<\/no(script|embed|frames)/i),bk=Be(/\/>/i),Jt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wk=function(){return typeof window>"u"?null:window},kk=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Ih=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},In=function(t,n,r,s){return De(t,n)&&Hn(t[n])?Z(s.base?et(s.base):{},t[n],s.transform):r};function vv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wk();const t=P=>vv(P);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==Jt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,s=r.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,i=e.Node,a=e.Element,l=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,f=e.trustedTypes,p=a.prototype,y=en(p,"cloneNode"),k=en(p,"remove"),x=en(p,"nextSibling"),T=en(p,"childNodes"),g=en(p,"parentNode"),h=en(p,"shadowRoot"),m=en(p,"attributes"),v=i&&i.prototype?en(i.prototype,"nodeType"):null,w=i&&i.prototype?en(i.prototype,"nodeName"):null;if(typeof o=="function"){const P=n.createElement("template");P.content&&P.content.ownerDocument&&(n=P.content.ownerDocument)}let S,N="",A,j=!1,E=0;const D=function(){if(E>0)throw br('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},H=function(b){D(),E++;try{return S.createHTML(b)}finally{E--}},V=function(b){D(),E++;try{return S.createScriptURL(b)}finally{E--}},B=function(){return j||(A=kk(f,s),j=!0),A},se=n,Ge=se.implementation,Ve=se.createNodeIterator,L=se.createDocumentFragment,z=se.getElementsByTagName,G=r.importNode;let q=Ih();t.isSupported=typeof gv=="function"&&typeof g=="function"&&Ge&&Ge.createHTMLDocument!==void 0;const K=ck,Kt=uk,_e=fk,ht=dk,Ie=pk,mt=hk,It=mk,yr=yk;let $t=Ph,te=null;const pn=Z({},[...Rh,...wc,...kc,...Sc,...Lh]);let oe=null;const Jr=Z({},[...Dh,...Ec,...Oh,...ea]);let he=Object.seal(cs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),gt=null,Ad=null;const Dn=Object.seal(cs(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Cd=!0,Nl=!0,jd=!1,Rd=!0,On=!1,oo=!0,vr=!1,Al=!1,Cl=null,jl=null,Rl=!1,es=!1,Ti=!1,Ni=!1,Ld=!0,Dd=!1;const Od="user-content-";let Ll=!0,Dl=!1,ts={},Yt=null;const Ol=Z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Pd=null;const Md=Z({},["audio","video","img","source","image","track"]);let Pl=null;const Id=Z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ai="http://www.w3.org/1998/Math/MathML",Ci="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml";let ns=Xt,Ml=!1,Il=null;const h0=Z({},[Ai,Ci,Xt],bc),$d=qe(["mi","mo","mn","ms","mtext"]);let $l=Z({},$d);const Fd=qe(["annotation-xml"]);let Fl=Z({},Fd);const m0=Z({},["title","style","font","a","script"]);let io=null;const g0=["application/xhtml+xml","text/html"],y0="text/html";let be=null,rs=null;const v0=n.createElement("form"),zd=function(b){return b instanceof RegExp||b instanceof Function},zl=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rs&&rs===b)return;(!b||typeof b!="object")&&(b={}),b=et(b),io=g0.indexOf(b.PARSER_MEDIA_TYPE)===-1?y0:b.PARSER_MEDIA_TYPE,be=io==="application/xhtml+xml"?bc:Ao,te=In(b,"ALLOWED_TAGS",pn,{transform:be}),oe=In(b,"ALLOWED_ATTR",Jr,{transform:be}),Il=In(b,"ALLOWED_NAMESPACES",h0,{transform:bc}),Pl=In(b,"ADD_URI_SAFE_ATTR",Id,{transform:be,base:Id}),Pd=In(b,"ADD_DATA_URI_TAGS",Md,{transform:be,base:Md}),Yt=In(b,"FORBID_CONTENTS",Ol,{transform:be}),gt=In(b,"FORBID_TAGS",et({}),{transform:be}),Ad=In(b,"FORBID_ATTR",et({}),{transform:be}),ts=De(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?et(b.USE_PROFILES):b.USE_PROFILES:!1,Cd=b.ALLOW_ARIA_ATTR!==!1,Nl=b.ALLOW_DATA_ATTR!==!1,jd=b.ALLOW_UNKNOWN_PROTOCOLS||!1,Rd=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,On=b.SAFE_FOR_TEMPLATES||!1,oo=b.SAFE_FOR_XML!==!1,vr=b.WHOLE_DOCUMENT||!1,es=b.RETURN_DOM||!1,Ti=b.RETURN_DOM_FRAGMENT||!1,Ni=b.RETURN_TRUSTED_TYPE||!1,Rl=b.FORCE_BODY||!1,Ld=b.SANITIZE_DOM!==!1,Dd=b.SANITIZE_NAMED_PROPS||!1,Ll=b.KEEP_CONTENT!==!1,Dl=b.IN_PLACE||!1,$t=ik(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:Ph,ns=typeof b.NAMESPACE=="string"?b.NAMESPACE:Xt,$l=De(b,"MATHML_TEXT_INTEGRATION_POINTS")&&b.MATHML_TEXT_INTEGRATION_POINTS&&typeof b.MATHML_TEXT_INTEGRATION_POINTS=="object"?et(b.MATHML_TEXT_INTEGRATION_POINTS):Z({},$d),Fl=De(b,"HTML_INTEGRATION_POINTS")&&b.HTML_INTEGRATION_POINTS&&typeof b.HTML_INTEGRATION_POINTS=="object"?et(b.HTML_INTEGRATION_POINTS):Z({},Fd);const C=De(b,"CUSTOM_ELEMENT_HANDLING")&&b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING=="object"?et(b.CUSTOM_ELEMENT_HANDLING):cs(null);if(he=cs(null),De(C,"tagNameCheck")&&zd(C.tagNameCheck)&&(he.tagNameCheck=C.tagNameCheck),De(C,"attributeNameCheck")&&zd(C.attributeNameCheck)&&(he.attributeNameCheck=C.attributeNameCheck),De(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),Be(he),On&&(Nl=!1),Ti&&(es=!0),ts&&(te=Z({},Lh),oe=cs(null),ts.html===!0&&(Z(te,Rh),Z(oe,Dh)),ts.svg===!0&&(Z(te,wc),Z(oe,Ec),Z(oe,ea)),ts.svgFilters===!0&&(Z(te,kc),Z(oe,Ec),Z(oe,ea)),ts.mathMl===!0&&(Z(te,Sc),Z(oe,Oh),Z(oe,ea))),Dn.tagCheck=null,Dn.attributeCheck=null,De(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?Dn.tagCheck=b.ADD_TAGS:Hn(b.ADD_TAGS)&&(te===pn&&(te=et(te)),Z(te,b.ADD_TAGS,be))),De(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?Dn.attributeCheck=b.ADD_ATTR:Hn(b.ADD_ATTR)&&(oe===Jr&&(oe=et(oe)),Z(oe,b.ADD_ATTR,be))),De(b,"ADD_URI_SAFE_ATTR")&&Hn(b.ADD_URI_SAFE_ATTR)&&Z(Pl,b.ADD_URI_SAFE_ATTR,be),De(b,"FORBID_CONTENTS")&&Hn(b.FORBID_CONTENTS)&&(Yt===Ol&&(Yt=et(Yt)),Z(Yt,b.FORBID_CONTENTS,be)),De(b,"ADD_FORBID_CONTENTS")&&Hn(b.ADD_FORBID_CONTENTS)&&(Yt===Ol&&(Yt=et(Yt)),Z(Yt,b.ADD_FORBID_CONTENTS,be)),Ll&&(te["#text"]=!0),vr&&Z(te,["html","head","body"]),te.table&&(Z(te,["tbody"]),delete gt.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw br('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw br('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const O=S;S=b.TRUSTED_TYPES_POLICY;try{N=H("")}catch(F){throw S=O,F}}else b.TRUSTED_TYPES_POLICY===null?(S=void 0,N=""):(S===void 0&&(S=B()),S&&typeof N=="string"&&(N=H("")));qe&&qe(b),rs=b},qd=Z({},[...wc,...kc,...ak]),Ud=Z({},[...Sc,...lk]),x0=function(b,C,O){return C.namespaceURI===Xt?b==="svg":C.namespaceURI===Ai?b==="svg"&&(O==="annotation-xml"||$l[O]):!!qd[b]},b0=function(b,C,O){return C.namespaceURI===Xt?b==="math":C.namespaceURI===Ci?b==="math"&&Fl[O]:!!Ud[b]},w0=function(b,C,O){return C.namespaceURI===Ci&&!Fl[O]||C.namespaceURI===Ai&&!$l[O]?!1:!Ud[b]&&(m0[b]||!qd[b])},k0=function(b){let C=g(b);(!C||!C.tagName)&&(C={namespaceURI:ns,tagName:"template"});const O=Ao(b.tagName),F=Ao(C.tagName);return Il[b.namespaceURI]?b.namespaceURI===Ci?x0(O,C,F):b.namespaceURI===Ai?b0(O,C,F):b.namespaceURI===Xt?w0(O,C,F):!!(io==="application/xhtml+xml"&&Il[b.namespaceURI]):!1},Pn=function(b){as(t.removed,{element:b});try{g(b).removeChild(b)}catch{if(k(b),!g(b))throw br("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Hd=function(b){const C=T(b);if(C){const F=[];vo(C,Q=>{as(F,Q)}),vo(F,Q=>{try{k(Q)}catch{}})}const O=m(b);if(O)for(let F=O.length-1;F>=0;--F){const Q=O[F],J=Q&&Q.name;if(typeof J=="string")try{b.removeAttribute(J)}catch{}}},xr=function(b,C){try{as(t.removed,{attribute:C.getAttributeNode(b),from:C})}catch{as(t.removed,{attribute:null,from:C})}if(C.removeAttribute(b),b==="is")if(es||Ti)try{Pn(C)}catch{}else try{C.setAttribute(b,"")}catch{}},S0=function(b){const C=m(b);if(C)for(let O=C.length-1;O>=0;--O){const F=C[O],Q=F&&F.name;if(!(typeof Q!="string"||oe[be(Q)]))try{b.removeAttribute(Q)}catch{}}},E0=function(b){const C=[b];for(;C.length>0;){const O=C.pop();(v?v(O):O.nodeType)===Jt.element&&S0(O);const Q=T(O);if(Q)for(let J=Q.length-1;J>=0;--J)C.push(Q[J])}},Bd=function(b){let C=null,O=null;if(Rl)b="<remove></remove>"+b;else{const J=Nh(b,/^[\r\n\t ]+/);O=J&&J[0]}io==="application/xhtml+xml"&&ns===Xt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const F=S?H(b):b;if(ns===Xt)try{C=new d().parseFromString(F,io)}catch{}if(!C||!C.documentElement){C=Ge.createDocument(ns,"template",null);try{C.documentElement.innerHTML=Ml?N:F}catch{}}const Q=C.body||C.documentElement;return b&&O&&Q.insertBefore(n.createTextNode(O),Q.childNodes[0]||null),ns===Xt?z.call(C,vr?"html":"body")[0]:vr?C.documentElement:Q},Gd=function(b){return Ve.call(b.ownerDocument||b,b,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ji=function(b){return b=xo(b,K," "),b=xo(b,Kt," "),b=xo(b,_e," "),b},ql=function(b){var C;b.normalize();const O=Ve.call(b.ownerDocument||b,b,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let F=O.nextNode();for(;F;)F.data=ji(F.data),F=O.nextNode();const Q=(C=b.querySelectorAll)===null||C===void 0?void 0:C.call(b,"template");Q&&vo(Q,J=>{ss(J.content)&&ql(J.content)})},Ri=function(b){const C=w?w(b):null;return typeof C!="string"||be(C)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==m(b)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==v(b)||b.childNodes!==T(b)},ss=function(b){if(!v||typeof b!="object"||b===null)return!1;try{return v(b)===Jt.documentFragment}catch{return!1}},ao=function(b){if(!v||typeof b!="object"||b===null)return!1;try{return typeof v(b)=="number"}catch{return!1}};function hn(P,b,C){P.length!==0&&vo(P,O=>{O.call(t,b,C,rs)})}const _0=function(b,C){return!!(oo&&b.hasChildNodes()&&!ao(b.firstElementChild)&&$e(Mh,b.textContent)&&$e(Mh,b.innerHTML)||oo&&b.namespaceURI===Xt&&C==="style"&&ao(b.firstElementChild)||b.nodeType===Jt.processingInstruction||oo&&b.nodeType===Jt.comment&&$e(vk,b.data))},T0=function(b,C){if(!gt[C]&&Wd(C)&&(he.tagNameCheck instanceof RegExp&&$e(he.tagNameCheck,C)||he.tagNameCheck instanceof Function&&he.tagNameCheck(C)))return!1;if(Ll&&!Yt[C]){const O=g(b),F=T(b);if(F&&O){const Q=F.length;for(let J=Q-1;J>=0;--J){const Re=Dl?F[J]:y(F[J],!0);O.insertBefore(Re,x(b))}}}return Pn(b),!0},Vd=function(b){if(hn(q.beforeSanitizeElements,b,null),Ri(b))return Pn(b),!0;const C=be(w?w(b):b.nodeName);if(hn(q.uponSanitizeElement,b,{tagName:C,allowedTags:te}),_0(b,C))return Pn(b),!0;if(gt[C]||!(Dn.tagCheck instanceof Function&&Dn.tagCheck(C))&&!te[C])return T0(b,C);if((v?v(b):b.nodeType)===Jt.element&&!k0(b)||(C==="noscript"||C==="noembed"||C==="noframes")&&$e(xk,b.innerHTML))return Pn(b),!0;if(On&&b.nodeType===Jt.text){const F=ji(b.textContent);b.textContent!==F&&(as(t.removed,{element:b.cloneNode()}),b.textContent=F)}return hn(q.afterSanitizeElements,b,null),!1},Qd=function(b,C,O){if(Ad[C]||Ld&&(C==="id"||C==="name")&&(O in n||O in v0))return!1;const F=oe[C]||Dn.attributeCheck instanceof Function&&Dn.attributeCheck(C,b);if(!(Nl&&$e(ht,C))){if(!(Cd&&$e(Ie,C))){if(F){if(!Pl[C]){if(!$e($t,xo(O,It,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&b!=="script"&&Ah(O,"data:")===0&&Pd[b])){if(!(jd&&!$e(mt,xo(O,It,"")))){if(O)return!1}}}}}else if(!(Wd(b)&&(he.tagNameCheck instanceof RegExp&&$e(he.tagNameCheck,b)||he.tagNameCheck instanceof Function&&he.tagNameCheck(b))&&(he.attributeNameCheck instanceof RegExp&&$e(he.attributeNameCheck,C)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(C,b))||C==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&$e(he.tagNameCheck,O)||he.tagNameCheck instanceof Function&&he.tagNameCheck(O))))return!1}}return!0},N0=Z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wd=function(b){return!N0[Ao(b)]&&$e(yr,b)},A0=function(b,C,O,F){if(S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!O)switch(f.getAttributeType(b,C)){case"TrustedHTML":return H(F);case"TrustedScriptURL":return V(F)}return F},C0=function(b,C,O,F){try{O?b.setAttributeNS(O,C,F):b.setAttribute(C,F),Ri(b)?Pn(b):Th(t.removed)}catch{xr(C,b)}},Kd=function(b){hn(q.beforeSanitizeAttributes,b,null);const C=b.attributes;if(!C||Ri(b))return;const O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:oe,forceKeepAttr:void 0};let F=C.length;const Q=be(b.nodeName);for(;F--;){const J=C[F],Re=J.name,Te=J.namespaceURI,Ct=J.value,Ft=be(Re),Hl=Ct;let Je=Re==="value"?Hl:ek(Hl);if(O.attrName=Ft,O.attrValue=Je,O.keepAttr=!0,O.forceKeepAttr=void 0,hn(q.uponSanitizeAttribute,b,O),Je=O.attrValue,Dd&&(Ft==="id"||Ft==="name")&&Ah(Je,Od)!==0&&(xr(Re,b),Je=Od+Je),oo&&$e(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Je)){xr(Re,b);continue}if(Ft==="attributename"&&Nh(Je,"href")){xr(Re,b);continue}if(!O.forceKeepAttr){if(!O.keepAttr){xr(Re,b);continue}if(!Rd&&$e(bk,Je)){xr(Re,b);continue}if(On&&(Je=ji(Je)),!Qd(Q,Ft,Je)){xr(Re,b);continue}Je=A0(Q,Ft,Te,Je),Je!==Hl&&C0(b,Re,Te,Je)}}hn(q.afterSanitizeAttributes,b,null)},Li=function(b){let C=null;const O=Gd(b);for(hn(q.beforeSanitizeShadowDOM,b,null);C=O.nextNode();)if(hn(q.uponSanitizeShadowNode,C,null),Vd(C),Kd(C),ss(C.content)&&Li(C.content),(v?v(C):C.nodeType)===Jt.element){const Q=h(C);ss(Q)&&(Ul(Q),Li(Q))}hn(q.afterSanitizeShadowDOM,b,null)},Ul=function(b){const C=[{node:b,shadow:null}];for(;C.length>0;){const O=C.pop();if(O.shadow){Li(O.shadow);continue}const F=O.node,J=(v?v(F):F.nodeType)===Jt.element,Re=T(F);if(Re)for(let Te=Re.length-1;Te>=0;--Te)C.push({node:Re[Te],shadow:null});if(J){const Te=w?w(F):null;if(typeof Te=="string"&&be(Te)==="template"){const Ct=F.content;ss(Ct)&&C.push({node:Ct,shadow:null})}}if(J){const Te=h(F);ss(Te)&&C.push({node:null,shadow:Te},{node:Te,shadow:null})}}};return t.sanitize=function(P){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,O=null,F=null,Q=null;if(Ml=!P,Ml&&(P="<!-->"),typeof P!="string"&&!ao(P)&&(P=ok(P),typeof P!="string"))throw br("dirty is not a string, aborting");if(!t.isSupported)return P;Al?(te=Cl,oe=jl):zl(b),(q.uponSanitizeElement.length>0||q.uponSanitizeAttribute.length>0)&&(te=et(te)),q.uponSanitizeAttribute.length>0&&(oe=et(oe)),t.removed=[];const J=Dl&&typeof P!="string"&&ao(P);if(J){const Ct=w?w(P):P.nodeName;if(typeof Ct=="string"){const Ft=be(Ct);if(!te[Ft]||gt[Ft])throw br("root node is forbidden and cannot be sanitized in-place")}if(Ri(P))throw br("root node is clobbered and cannot be sanitized in-place");try{Ul(P)}catch(Ft){throw Hd(P),Ft}}else if(ao(P))C=Bd("<!---->"),O=C.ownerDocument.importNode(P,!0),O.nodeType===Jt.element&&O.nodeName==="BODY"||O.nodeName==="HTML"?C=O:C.appendChild(O),Ul(O);else{if(!es&&!On&&!vr&&P.indexOf("<")===-1)return S&&Ni?H(P):P;if(C=Bd(P),!C)return es?null:Ni?N:""}C&&Rl&&Pn(C.firstChild);const Re=Gd(J?P:C);try{for(;F=Re.nextNode();)Vd(F),Kd(F),ss(F.content)&&Li(F.content)}catch(Ct){throw J&&Hd(P),Ct}if(J)return vo(t.removed,Ct=>{Ct.element&&E0(Ct.element)}),On&&ql(P),P;if(es){if(On&&ql(C),Ti)for(Q=L.call(C.ownerDocument);C.firstChild;)Q.appendChild(C.firstChild);else Q=C;return(oe.shadowroot||oe.shadowrootmode)&&(Q=G.call(r,Q,!0)),Q}let Te=vr?C.outerHTML:C.innerHTML;return vr&&te["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&$e(gk,C.ownerDocument.doctype.name)&&(Te="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
86
|
-
`+Te),On&&(Te=ji(Te)),S&&Ni?H(Te):Te},t.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zl(P),Al=!0,Cl=te,jl=oe},t.clearConfig=function(){rs=null,Al=!1,Cl=null,jl=null,S=A,N=""},t.isValidAttribute=function(P,b,C){rs||zl({});const O=be(P),F=be(b);return Qd(O,F,C)},t.addHook=function(P,b){typeof b=="function"&&De(q,P)&&as(q[P],b)},t.removeHook=function(P,b){if(De(q,P)){if(b!==void 0){const C=Zw(q[P],b);return C===-1?void 0:Jw(q[P],C,1)[0]}return Th(q[P])}},t.removeHooks=function(P){De(q,P)&&(q[P]=[])},t.removeAllHooks=function(){q=Ih()},t}var hd=vv();ne.setOptions({gfm:!0,breaks:!0});function Sk(e){const t=ne.parse(e,{async:!1});return hd.sanitize(t,{ADD_ATTR:["target","rel"]})}/**
|
|
87
|
-
* @license lucide-react v0.468.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const Ek=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
92
|
-
* @license lucide-react v0.468.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/var _k={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
97
|
-
* @license lucide-react v0.468.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const Tk=I.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>I.createElement("svg",{ref:l,..._k,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xv("lucide",s),...a},[...i.map(([u,d])=>I.createElement(u,d)),...Array.isArray(o)?o:[o]]));/**
|
|
102
|
-
* @license lucide-react v0.468.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const xe=(e,t)=>{const n=I.forwardRef(({className:r,...s},o)=>I.createElement(Tk,{ref:o,iconNode:t,className:xv(`lucide-${Ek(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
|
|
107
|
-
* @license lucide-react v0.468.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const Nk=xe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
112
|
-
* @license lucide-react v0.468.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const Ak=xe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
117
|
-
* @license lucide-react v0.468.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const $h=xe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
122
|
-
* @license lucide-react v0.468.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const Fh=xe("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
|
|
127
|
-
* @license lucide-react v0.468.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const Hu=xe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
132
|
-
* @license lucide-react v0.468.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const Ck=xe("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
137
|
-
* @license lucide-react v0.468.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const bv=xe("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
142
|
-
* @license lucide-react v0.468.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const wv=xe("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
|
|
147
|
-
* @license lucide-react v0.468.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const jk=xe("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/**
|
|
152
|
-
* @license lucide-react v0.468.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const kv=xe("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
|
157
|
-
* @license lucide-react v0.468.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const Rk=xe("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
162
|
-
* @license lucide-react v0.468.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const Lk=xe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
167
|
-
* @license lucide-react v0.468.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const Dk=xe("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
172
|
-
* @license lucide-react v0.468.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const Sv=xe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
177
|
-
* @license lucide-react v0.468.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const ta=xe("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
|
|
182
|
-
* @license lucide-react v0.468.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const Ok=xe("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
187
|
-
* @license lucide-react v0.468.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const Pk=xe("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
|
|
192
|
-
* @license lucide-react v0.468.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const wo=xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
197
|
-
* @license lucide-react v0.468.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const Mk=xe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
202
|
-
* @license lucide-react v0.468.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const Ik=xe("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
207
|
-
* @license lucide-react v0.468.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const $k=xe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
212
|
-
* @license lucide-react v0.468.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const Fk=xe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
217
|
-
* @license lucide-react v0.468.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const zk=xe("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);function qk(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Si({title:e,timestamp:t,children:n,headerRight:r,isNew:s,dense:o,tint:i="none"}){return c.jsxs("div",{className:_t("border border-base-300/60 rounded-md overflow-hidden",i==="user"?"bg-info/5":"bg-base-200",s&&"message-new"),children:[c.jsxs("div",{className:_t("flex items-center gap-2 px-3 border-b border-base-300/40",o?"py-1":"py-1.5"),children:[c.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:e}),r,c.jsx("span",{className:"text-2xs text-base-content/40 font-mono shrink-0",children:qk(t)})]}),n!=null&&c.jsx("div",{className:o?"px-3 py-1.5":"px-3 py-2",children:n})]})}function Ei({Icon:e,color:t,bg:n}){return c.jsx("span",{className:_t("inline-flex items-center justify-center w-5 h-5 rounded shrink-0",n,t),children:c.jsx(e,{size:12,className:"stroke-[2.25]"})})}function Bu({source:e,className:t=""}){const n=I.useMemo(()=>Sk(e),[e]);return c.jsx("div",{className:`ll-prose ${t}`,dangerouslySetInnerHTML:{__html:n}})}function Uk({msg:e,isNew:t}){const n=e.content,r=(n==null?void 0:n.text)??"";return c.jsx(Si,{isNew:t,timestamp:e.timestamp,tint:"user",title:c.jsxs(c.Fragment,{children:[c.jsx(Ei,{Icon:Fk,color:"text-warning",bg:"bg-warning/15"}),c.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider text-warning shrink-0",children:"user"})]}),children:r?c.jsx(Bu,{source:r}):c.jsx("span",{className:"text-2xs text-base-content/40 italic",children:"(empty)"})})}function Hk({msg:e,isNew:t}){const n=e.content,r=(n==null?void 0:n.text)??"",s=(n==null?void 0:n.reasoning)??"",[o,i]=I.useState(!1);return c.jsxs(Si,{isNew:t,timestamp:e.timestamp,title:c.jsxs(c.Fragment,{children:[c.jsx(Ei,{Icon:Mk,color:"text-primary",bg:"bg-primary/15"}),c.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider text-primary shrink-0",children:"assistant"})]}),headerRight:s?c.jsxs("button",{onClick:()=>i(!o),className:"text-2xs text-accent hover:text-accent/80 font-mono",children:[o?"hide":"show"," reasoning"]}):null,children:[o&&s&&c.jsx("div",{className:"mb-2 p-2 border-l-2 border-accent/40 bg-base-300/40 rounded text-xs text-base-content/70 italic",children:c.jsx(Bu,{source:s})}),r?c.jsx(Bu,{source:r}):c.jsx("span",{className:"text-2xs text-base-content/40 italic",children:"(empty)"})]})}var Ev={},En={};const Bk="Á",Gk="á",Vk="Ă",Qk="ă",Wk="∾",Kk="∿",Yk="∾̳",Xk="Â",Zk="â",Jk="´",eS="А",tS="а",nS="Æ",rS="æ",sS="",oS="𝔄",iS="𝔞",aS="À",lS="à",cS="ℵ",uS="ℵ",fS="Α",dS="α",pS="Ā",hS="ā",mS="⨿",gS="&",yS="&",vS="⩕",xS="⩓",bS="∧",wS="⩜",kS="⩘",SS="⩚",ES="∠",_S="⦤",TS="∠",NS="⦨",AS="⦩",CS="⦪",jS="⦫",RS="⦬",LS="⦭",DS="⦮",OS="⦯",PS="∡",MS="∟",IS="⊾",$S="⦝",FS="∢",zS="Å",qS="⍼",US="Ą",HS="ą",BS="𝔸",GS="𝕒",VS="⩯",QS="≈",WS="⩰",KS="≊",YS="≋",XS="'",ZS="",JS="≈",eE="≊",tE="Å",nE="å",rE="𝒜",sE="𝒶",oE="≔",iE="*",aE="≈",lE="≍",cE="Ã",uE="ã",fE="Ä",dE="ä",pE="∳",hE="⨑",mE="≌",gE="϶",yE="‵",vE="∽",xE="⋍",bE="∖",wE="⫧",kE="⊽",SE="⌅",EE="⌆",_E="⌅",TE="⎵",NE="⎶",AE="≌",CE="Б",jE="б",RE="„",LE="∵",DE="∵",OE="∵",PE="⦰",ME="϶",IE="ℬ",$E="ℬ",FE="Β",zE="β",qE="ℶ",UE="≬",HE="𝔅",BE="𝔟",GE="⋂",VE="◯",QE="⋃",WE="⨀",KE="⨁",YE="⨂",XE="⨆",ZE="★",JE="▽",e_="△",t_="⨄",n_="⋁",r_="⋀",s_="⤍",o_="⧫",i_="▪",a_="▴",l_="▾",c_="◂",u_="▸",f_="␣",d_="▒",p_="░",h_="▓",m_="█",g_="=⃥",y_="≡⃥",v_="⫭",x_="⌐",b_="𝔹",w_="𝕓",k_="⊥",S_="⊥",E_="⋈",__="⧉",T_="┐",N_="╕",A_="╖",C_="╗",j_="┌",R_="╒",L_="╓",D_="╔",O_="─",P_="═",M_="┬",I_="╤",$_="╥",F_="╦",z_="┴",q_="╧",U_="╨",H_="╩",B_="⊟",G_="⊞",V_="⊠",Q_="┘",W_="╛",K_="╜",Y_="╝",X_="└",Z_="╘",J_="╙",eT="╚",tT="│",nT="║",rT="┼",sT="╪",oT="╫",iT="╬",aT="┤",lT="╡",cT="╢",uT="╣",fT="├",dT="╞",pT="╟",hT="╠",mT="‵",gT="˘",yT="˘",vT="¦",xT="𝒷",bT="ℬ",wT="⁏",kT="∽",ST="⋍",ET="⧅",_T="\\",TT="⟈",NT="•",AT="•",CT="≎",jT="⪮",RT="≏",LT="≎",DT="≏",OT="Ć",PT="ć",MT="⩄",IT="⩉",$T="⩋",FT="∩",zT="⋒",qT="⩇",UT="⩀",HT="ⅅ",BT="∩︀",GT="⁁",VT="ˇ",QT="ℭ",WT="⩍",KT="Č",YT="č",XT="Ç",ZT="ç",JT="Ĉ",eN="ĉ",tN="∰",nN="⩌",rN="⩐",sN="Ċ",oN="ċ",iN="¸",aN="¸",lN="⦲",cN="¢",uN="·",fN="·",dN="𝔠",pN="ℭ",hN="Ч",mN="ч",gN="✓",yN="✓",vN="Χ",xN="χ",bN="ˆ",wN="≗",kN="↺",SN="↻",EN="⊛",_N="⊚",TN="⊝",NN="⊙",AN="®",CN="Ⓢ",jN="⊖",RN="⊕",LN="⊗",DN="○",ON="⧃",PN="≗",MN="⨐",IN="⫯",$N="⧂",FN="∲",zN="”",qN="’",UN="♣",HN="♣",BN=":",GN="∷",VN="⩴",QN="≔",WN="≔",KN=",",YN="@",XN="∁",ZN="∘",JN="∁",eA="ℂ",tA="≅",nA="⩭",rA="≡",sA="∮",oA="∯",iA="∮",aA="𝕔",lA="ℂ",cA="∐",uA="∐",fA="©",dA="©",pA="℗",hA="∳",mA="↵",gA="✗",yA="⨯",vA="𝒞",xA="𝒸",bA="⫏",wA="⫑",kA="⫐",SA="⫒",EA="⋯",_A="⤸",TA="⤵",NA="⋞",AA="⋟",CA="↶",jA="⤽",RA="⩈",LA="⩆",DA="≍",OA="∪",PA="⋓",MA="⩊",IA="⊍",$A="⩅",FA="∪︀",zA="↷",qA="⤼",UA="⋞",HA="⋟",BA="⋎",GA="⋏",VA="¤",QA="↶",WA="↷",KA="⋎",YA="⋏",XA="∲",ZA="∱",JA="⌭",e2="†",t2="‡",n2="ℸ",r2="↓",s2="↡",o2="⇓",i2="‐",a2="⫤",l2="⊣",c2="⤏",u2="˝",f2="Ď",d2="ď",p2="Д",h2="д",m2="‡",g2="⇊",y2="ⅅ",v2="ⅆ",x2="⤑",b2="⩷",w2="°",k2="∇",S2="Δ",E2="δ",_2="⦱",T2="⥿",N2="𝔇",A2="𝔡",C2="⥥",j2="⇃",R2="⇂",L2="´",D2="˙",O2="˝",P2="`",M2="˜",I2="⋄",$2="⋄",F2="⋄",z2="♦",q2="♦",U2="¨",H2="ⅆ",B2="ϝ",G2="⋲",V2="÷",Q2="÷",W2="⋇",K2="⋇",Y2="Ђ",X2="ђ",Z2="⌞",J2="⌍",eC="$",tC="𝔻",nC="𝕕",rC="¨",sC="˙",oC="⃜",iC="≐",aC="≑",lC="≐",cC="∸",uC="∔",fC="⊡",dC="⌆",pC="∯",hC="¨",mC="⇓",gC="⇐",yC="⇔",vC="⫤",xC="⟸",bC="⟺",wC="⟹",kC="⇒",SC="⊨",EC="⇑",_C="⇕",TC="∥",NC="⤓",AC="↓",CC="↓",jC="⇓",RC="⇵",LC="̑",DC="⇊",OC="⇃",PC="⇂",MC="⥐",IC="⥞",$C="⥖",FC="↽",zC="⥟",qC="⥗",UC="⇁",HC="↧",BC="⊤",GC="⤐",VC="⌟",QC="⌌",WC="𝒟",KC="𝒹",YC="Ѕ",XC="ѕ",ZC="⧶",JC="Đ",ej="đ",tj="⋱",nj="▿",rj="▾",sj="⇵",oj="⥯",ij="⦦",aj="Џ",lj="џ",cj="⟿",uj="É",fj="é",dj="⩮",pj="Ě",hj="ě",mj="Ê",gj="ê",yj="≖",vj="≕",xj="Э",bj="э",wj="⩷",kj="Ė",Sj="ė",Ej="≑",_j="ⅇ",Tj="≒",Nj="𝔈",Aj="𝔢",Cj="⪚",jj="È",Rj="è",Lj="⪖",Dj="⪘",Oj="⪙",Pj="∈",Mj="⏧",Ij="ℓ",$j="⪕",Fj="⪗",zj="Ē",qj="ē",Uj="∅",Hj="∅",Bj="◻",Gj="∅",Vj="▫",Qj=" ",Wj=" ",Kj=" ",Yj="Ŋ",Xj="ŋ",Zj=" ",Jj="Ę",eR="ę",tR="𝔼",nR="𝕖",rR="⋕",sR="⧣",oR="⩱",iR="ε",aR="Ε",lR="ε",cR="ϵ",uR="≖",fR="≕",dR="≂",pR="⪖",hR="⪕",mR="⩵",gR="=",yR="≂",vR="≟",xR="⇌",bR="≡",wR="⩸",kR="⧥",SR="⥱",ER="≓",_R="ℯ",TR="ℰ",NR="≐",AR="⩳",CR="≂",jR="Η",RR="η",LR="Ð",DR="ð",OR="Ë",PR="ë",MR="€",IR="!",$R="∃",FR="∃",zR="ℰ",qR="ⅇ",UR="ⅇ",HR="≒",BR="Ф",GR="ф",VR="♀",QR="ffi",WR="ff",KR="ffl",YR="𝔉",XR="𝔣",ZR="fi",JR="◼",eL="▪",tL="fj",nL="♭",rL="fl",sL="▱",oL="ƒ",iL="𝔽",aL="𝕗",lL="∀",cL="∀",uL="⋔",fL="⫙",dL="ℱ",pL="⨍",hL="½",mL="⅓",gL="¼",yL="⅕",vL="⅙",xL="⅛",bL="⅔",wL="⅖",kL="¾",SL="⅗",EL="⅜",_L="⅘",TL="⅚",NL="⅝",AL="⅞",CL="⁄",jL="⌢",RL="𝒻",LL="ℱ",DL="ǵ",OL="Γ",PL="γ",ML="Ϝ",IL="ϝ",$L="⪆",FL="Ğ",zL="ğ",qL="Ģ",UL="Ĝ",HL="ĝ",BL="Г",GL="г",VL="Ġ",QL="ġ",WL="≥",KL="≧",YL="⪌",XL="⋛",ZL="≥",JL="≧",eD="⩾",tD="⪩",nD="⩾",rD="⪀",sD="⪂",oD="⪄",iD="⋛︀",aD="⪔",lD="𝔊",cD="𝔤",uD="≫",fD="⋙",dD="⋙",pD="ℷ",hD="Ѓ",mD="ѓ",gD="⪥",yD="≷",vD="⪒",xD="⪤",bD="⪊",wD="⪊",kD="⪈",SD="≩",ED="⪈",_D="≩",TD="⋧",ND="𝔾",AD="𝕘",CD="`",jD="≥",RD="⋛",LD="≧",DD="⪢",OD="≷",PD="⩾",MD="≳",ID="𝒢",$D="ℊ",FD="≳",zD="⪎",qD="⪐",UD="⪧",HD="⩺",BD=">",GD=">",VD="≫",QD="⋗",WD="⦕",KD="⩼",YD="⪆",XD="⥸",ZD="⋗",JD="⋛",eO="⪌",tO="≷",nO="≳",rO="≩︀",sO="≩︀",oO="ˇ",iO=" ",aO="½",lO="ℋ",cO="Ъ",uO="ъ",fO="⥈",dO="↔",pO="⇔",hO="↭",mO="^",gO="ℏ",yO="Ĥ",vO="ĥ",xO="♥",bO="♥",wO="…",kO="⊹",SO="𝔥",EO="ℌ",_O="ℋ",TO="⤥",NO="⤦",AO="⇿",CO="∻",jO="↩",RO="↪",LO="𝕙",DO="ℍ",OO="―",PO="─",MO="𝒽",IO="ℋ",$O="ℏ",FO="Ħ",zO="ħ",qO="≎",UO="≏",HO="⁃",BO="‐",GO="Í",VO="í",QO="",WO="Î",KO="î",YO="И",XO="и",ZO="İ",JO="Е",e3="е",t3="¡",n3="⇔",r3="𝔦",s3="ℑ",o3="Ì",i3="ì",a3="ⅈ",l3="⨌",c3="∭",u3="⧜",f3="℩",d3="IJ",p3="ij",h3="Ī",m3="ī",g3="ℑ",y3="ⅈ",v3="ℐ",x3="ℑ",b3="ı",w3="ℑ",k3="⊷",S3="Ƶ",E3="⇒",_3="℅",T3="∞",N3="⧝",A3="ı",C3="⊺",j3="∫",R3="∬",L3="ℤ",D3="∫",O3="⊺",P3="⋂",M3="⨗",I3="⨼",$3="",F3="",z3="Ё",q3="ё",U3="Į",H3="į",B3="𝕀",G3="𝕚",V3="Ι",Q3="ι",W3="⨼",K3="¿",Y3="𝒾",X3="ℐ",Z3="∈",J3="⋵",eP="⋹",tP="⋴",nP="⋳",rP="∈",sP="",oP="Ĩ",iP="ĩ",aP="І",lP="і",cP="Ï",uP="ï",fP="Ĵ",dP="ĵ",pP="Й",hP="й",mP="𝔍",gP="𝔧",yP="ȷ",vP="𝕁",xP="𝕛",bP="𝒥",wP="𝒿",kP="Ј",SP="ј",EP="Є",_P="є",TP="Κ",NP="κ",AP="ϰ",CP="Ķ",jP="ķ",RP="К",LP="к",DP="𝔎",OP="𝔨",PP="ĸ",MP="Х",IP="х",$P="Ќ",FP="ќ",zP="𝕂",qP="𝕜",UP="𝒦",HP="𝓀",BP="⇚",GP="Ĺ",VP="ĺ",QP="⦴",WP="ℒ",KP="Λ",YP="λ",XP="⟨",ZP="⟪",JP="⦑",eM="⟨",tM="⪅",nM="ℒ",rM="«",sM="⇤",oM="⤟",iM="←",aM="↞",lM="⇐",cM="⤝",uM="↩",fM="↫",dM="⤹",pM="⥳",hM="↢",mM="⤙",gM="⤛",yM="⪫",vM="⪭",xM="⪭︀",bM="⤌",wM="⤎",kM="❲",SM="{",EM="[",_M="⦋",TM="⦏",NM="⦍",AM="Ľ",CM="ľ",jM="Ļ",RM="ļ",LM="⌈",DM="{",OM="Л",PM="л",MM="⤶",IM="“",$M="„",FM="⥧",zM="⥋",qM="↲",UM="≤",HM="≦",BM="⟨",GM="⇤",VM="←",QM="←",WM="⇐",KM="⇆",YM="↢",XM="⌈",ZM="⟦",JM="⥡",eI="⥙",tI="⇃",nI="⌊",rI="↽",sI="↼",oI="⇇",iI="↔",aI="↔",lI="⇔",cI="⇆",uI="⇋",fI="↭",dI="⥎",pI="↤",hI="⊣",mI="⥚",gI="⋋",yI="⧏",vI="⊲",xI="⊴",bI="⥑",wI="⥠",kI="⥘",SI="↿",EI="⥒",_I="↼",TI="⪋",NI="⋚",AI="≤",CI="≦",jI="⩽",RI="⪨",LI="⩽",DI="⩿",OI="⪁",PI="⪃",MI="⋚︀",II="⪓",$I="⪅",FI="⋖",zI="⋚",qI="⪋",UI="⋚",HI="≦",BI="≶",GI="≶",VI="⪡",QI="≲",WI="⩽",KI="≲",YI="⥼",XI="⌊",ZI="𝔏",JI="𝔩",e4="≶",t4="⪑",n4="⥢",r4="↽",s4="↼",o4="⥪",i4="▄",a4="Љ",l4="љ",c4="⇇",u4="≪",f4="⋘",d4="⌞",p4="⇚",h4="⥫",m4="◺",g4="Ŀ",y4="ŀ",v4="⎰",x4="⎰",b4="⪉",w4="⪉",k4="⪇",S4="≨",E4="⪇",_4="≨",T4="⋦",N4="⟬",A4="⇽",C4="⟦",j4="⟵",R4="⟵",L4="⟸",D4="⟷",O4="⟷",P4="⟺",M4="⟼",I4="⟶",$4="⟶",F4="⟹",z4="↫",q4="↬",U4="⦅",H4="𝕃",B4="𝕝",G4="⨭",V4="⨴",Q4="∗",W4="_",K4="↙",Y4="↘",X4="◊",Z4="◊",J4="⧫",e$="(",t$="⦓",n$="⇆",r$="⌟",s$="⇋",o$="⥭",i$="",a$="⊿",l$="‹",c$="𝓁",u$="ℒ",f$="↰",d$="↰",p$="≲",h$="⪍",m$="⪏",g$="[",y$="‘",v$="‚",x$="Ł",b$="ł",w$="⪦",k$="⩹",S$="<",E$="<",_$="≪",T$="⋖",N$="⋋",A$="⋉",C$="⥶",j$="⩻",R$="◃",L$="⊴",D$="◂",O$="⦖",P$="⥊",M$="⥦",I$="≨︀",$$="≨︀",F$="¯",z$="♂",q$="✠",U$="✠",H$="↦",B$="↦",G$="↧",V$="↤",Q$="↥",W$="▮",K$="⨩",Y$="М",X$="м",Z$="—",J$="∺",eF="∡",tF=" ",nF="ℳ",rF="𝔐",sF="𝔪",oF="℧",iF="µ",aF="*",lF="⫰",cF="∣",uF="·",fF="⊟",dF="−",pF="∸",hF="⨪",mF="∓",gF="⫛",yF="…",vF="∓",xF="⊧",bF="𝕄",wF="𝕞",kF="∓",SF="𝓂",EF="ℳ",_F="∾",TF="Μ",NF="μ",AF="⊸",CF="⊸",jF="∇",RF="Ń",LF="ń",DF="∠⃒",OF="≉",PF="⩰̸",MF="≋̸",IF="ʼn",$F="≉",FF="♮",zF="ℕ",qF="♮",UF=" ",HF="≎̸",BF="≏̸",GF="⩃",VF="Ň",QF="ň",WF="Ņ",KF="ņ",YF="≇",XF="⩭̸",ZF="⩂",JF="Н",e5="н",t5="–",n5="⤤",r5="↗",s5="⇗",o5="↗",i5="≠",a5="≐̸",l5="",c5="",u5="",f5="",d5="≢",p5="⤨",h5="≂̸",m5="≫",g5="≪",y5=`
|
|
222
|
-
`,v5="∄",x5="∄",b5="𝔑",w5="𝔫",k5="≧̸",S5="≱",E5="≱",_5="≧̸",T5="⩾̸",N5="⩾̸",A5="⋙̸",C5="≵",j5="≫⃒",R5="≯",L5="≯",D5="≫̸",O5="↮",P5="⇎",M5="⫲",I5="∋",$5="⋼",F5="⋺",z5="∋",q5="Њ",U5="њ",H5="↚",B5="⇍",G5="‥",V5="≦̸",Q5="≰",W5="↚",K5="⇍",Y5="↮",X5="⇎",Z5="≰",J5="≦̸",ez="⩽̸",tz="⩽̸",nz="≮",rz="⋘̸",sz="≴",oz="≪⃒",iz="≮",az="⋪",lz="⋬",cz="≪̸",uz="∤",fz="",dz=" ",pz="𝕟",hz="ℕ",mz="⫬",gz="¬",yz="≢",vz="≭",xz="∦",bz="∉",wz="≠",kz="≂̸",Sz="∄",Ez="≯",_z="≱",Tz="≧̸",Nz="≫̸",Az="≹",Cz="⩾̸",jz="≵",Rz="≎̸",Lz="≏̸",Dz="∉",Oz="⋵̸",Pz="⋹̸",Mz="∉",Iz="⋷",$z="⋶",Fz="⧏̸",zz="⋪",qz="⋬",Uz="≮",Hz="≰",Bz="≸",Gz="≪̸",Vz="⩽̸",Qz="≴",Wz="⪢̸",Kz="⪡̸",Yz="∌",Xz="∌",Zz="⋾",Jz="⋽",eq="⊀",tq="⪯̸",nq="⋠",rq="∌",sq="⧐̸",oq="⋫",iq="⋭",aq="⊏̸",lq="⋢",cq="⊐̸",uq="⋣",fq="⊂⃒",dq="⊈",pq="⊁",hq="⪰̸",mq="⋡",gq="≿̸",yq="⊃⃒",vq="⊉",xq="≁",bq="≄",wq="≇",kq="≉",Sq="∤",Eq="∦",_q="∦",Tq="⫽⃥",Nq="∂̸",Aq="⨔",Cq="⊀",jq="⋠",Rq="⊀",Lq="⪯̸",Dq="⪯̸",Oq="⤳̸",Pq="↛",Mq="⇏",Iq="↝̸",$q="↛",Fq="⇏",zq="⋫",qq="⋭",Uq="⊁",Hq="⋡",Bq="⪰̸",Gq="𝒩",Vq="𝓃",Qq="∤",Wq="∦",Kq="≁",Yq="≄",Xq="≄",Zq="∤",Jq="∦",eU="⋢",tU="⋣",nU="⊄",rU="⫅̸",sU="⊈",oU="⊂⃒",iU="⊈",aU="⫅̸",lU="⊁",cU="⪰̸",uU="⊅",fU="⫆̸",dU="⊉",pU="⊃⃒",hU="⊉",mU="⫆̸",gU="≹",yU="Ñ",vU="ñ",xU="≸",bU="⋪",wU="⋬",kU="⋫",SU="⋭",EU="Ν",_U="ν",TU="#",NU="№",AU=" ",CU="≍⃒",jU="⊬",RU="⊭",LU="⊮",DU="⊯",OU="≥⃒",PU=">⃒",MU="⤄",IU="⧞",$U="⤂",FU="≤⃒",zU="<⃒",qU="⊴⃒",UU="⤃",HU="⊵⃒",BU="∼⃒",GU="⤣",VU="↖",QU="⇖",WU="↖",KU="⤧",YU="Ó",XU="ó",ZU="⊛",JU="Ô",e8="ô",t8="⊚",n8="О",r8="о",s8="⊝",o8="Ő",i8="ő",a8="⨸",l8="⊙",c8="⦼",u8="Œ",f8="œ",d8="⦿",p8="𝔒",h8="𝔬",m8="˛",g8="Ò",y8="ò",v8="⧁",x8="⦵",b8="Ω",w8="∮",k8="↺",S8="⦾",E8="⦻",_8="‾",T8="⧀",N8="Ō",A8="ō",C8="Ω",j8="ω",R8="Ο",L8="ο",D8="⦶",O8="⊖",P8="𝕆",M8="𝕠",I8="⦷",$8="“",F8="‘",z8="⦹",q8="⊕",U8="↻",H8="⩔",B8="∨",G8="⩝",V8="ℴ",Q8="ℴ",W8="ª",K8="º",Y8="⊶",X8="⩖",Z8="⩗",J8="⩛",e6="Ⓢ",t6="𝒪",n6="ℴ",r6="Ø",s6="ø",o6="⊘",i6="Õ",a6="õ",l6="⨶",c6="⨷",u6="⊗",f6="Ö",d6="ö",p6="⌽",h6="‾",m6="⏞",g6="⎴",y6="⏜",v6="¶",x6="∥",b6="∥",w6="⫳",k6="⫽",S6="∂",E6="∂",_6="П",T6="п",N6="%",A6=".",C6="‰",j6="⊥",R6="‱",L6="𝔓",D6="𝔭",O6="Φ",P6="φ",M6="ϕ",I6="ℳ",$6="☎",F6="Π",z6="π",q6="⋔",U6="ϖ",H6="ℏ",B6="ℎ",G6="ℏ",V6="⨣",Q6="⊞",W6="⨢",K6="+",Y6="∔",X6="⨥",Z6="⩲",J6="±",eH="±",tH="⨦",nH="⨧",rH="±",sH="ℌ",oH="⨕",iH="𝕡",aH="ℙ",lH="£",cH="⪷",uH="⪻",fH="≺",dH="≼",pH="⪷",hH="≺",mH="≼",gH="≺",yH="⪯",vH="≼",xH="≾",bH="⪯",wH="⪹",kH="⪵",SH="⋨",EH="⪯",_H="⪳",TH="≾",NH="′",AH="″",CH="ℙ",jH="⪹",RH="⪵",LH="⋨",DH="∏",OH="∏",PH="⌮",MH="⌒",IH="⌓",$H="∝",FH="∝",zH="∷",qH="∝",UH="≾",HH="⊰",BH="𝒫",GH="𝓅",VH="Ψ",QH="ψ",WH=" ",KH="𝔔",YH="𝔮",XH="⨌",ZH="𝕢",JH="ℚ",eB="⁗",tB="𝒬",nB="𝓆",rB="ℍ",sB="⨖",oB="?",iB="≟",aB='"',lB='"',cB="⇛",uB="∽̱",fB="Ŕ",dB="ŕ",pB="√",hB="⦳",mB="⟩",gB="⟫",yB="⦒",vB="⦥",xB="⟩",bB="»",wB="⥵",kB="⇥",SB="⤠",EB="⤳",_B="→",TB="↠",NB="⇒",AB="⤞",CB="↪",jB="↬",RB="⥅",LB="⥴",DB="⤖",OB="↣",PB="↝",MB="⤚",IB="⤜",$B="∶",FB="ℚ",zB="⤍",qB="⤏",UB="⤐",HB="❳",BB="}",GB="]",VB="⦌",QB="⦎",WB="⦐",KB="Ř",YB="ř",XB="Ŗ",ZB="ŗ",JB="⌉",e9="}",t9="Р",n9="р",r9="⤷",s9="⥩",o9="”",i9="”",a9="↳",l9="ℜ",c9="ℛ",u9="ℜ",f9="ℝ",d9="ℜ",p9="▭",h9="®",m9="®",g9="∋",y9="⇋",v9="⥯",x9="⥽",b9="⌋",w9="𝔯",k9="ℜ",S9="⥤",E9="⇁",_9="⇀",T9="⥬",N9="Ρ",A9="ρ",C9="ϱ",j9="⟩",R9="⇥",L9="→",D9="→",O9="⇒",P9="⇄",M9="↣",I9="⌉",$9="⟧",F9="⥝",z9="⥕",q9="⇂",U9="⌋",H9="⇁",B9="⇀",G9="⇄",V9="⇌",Q9="⇉",W9="↝",K9="↦",Y9="⊢",X9="⥛",Z9="⋌",J9="⧐",eG="⊳",tG="⊵",nG="⥏",rG="⥜",sG="⥔",oG="↾",iG="⥓",aG="⇀",lG="˚",cG="≓",uG="⇄",fG="⇌",dG="",pG="⎱",hG="⎱",mG="⫮",gG="⟭",yG="⇾",vG="⟧",xG="⦆",bG="𝕣",wG="ℝ",kG="⨮",SG="⨵",EG="⥰",_G=")",TG="⦔",NG="⨒",AG="⇉",CG="⇛",jG="›",RG="𝓇",LG="ℛ",DG="↱",OG="↱",PG="]",MG="’",IG="’",$G="⋌",FG="⋊",zG="▹",qG="⊵",UG="▸",HG="⧎",BG="⧴",GG="⥨",VG="℞",QG="Ś",WG="ś",KG="‚",YG="⪸",XG="Š",ZG="š",JG="⪼",eV="≻",tV="≽",nV="⪰",rV="⪴",sV="Ş",oV="ş",iV="Ŝ",aV="ŝ",lV="⪺",cV="⪶",uV="⋩",fV="⨓",dV="≿",pV="С",hV="с",mV="⊡",gV="⋅",yV="⩦",vV="⤥",xV="↘",bV="⇘",wV="↘",kV="§",SV=";",EV="⤩",_V="∖",TV="∖",NV="✶",AV="𝔖",CV="𝔰",jV="⌢",RV="♯",LV="Щ",DV="щ",OV="Ш",PV="ш",MV="↓",IV="←",$V="∣",FV="∥",zV="→",qV="↑",UV="",HV="Σ",BV="σ",GV="ς",VV="ς",QV="∼",WV="⩪",KV="≃",YV="≃",XV="⪞",ZV="⪠",JV="⪝",e7="⪟",t7="≆",n7="⨤",r7="⥲",s7="←",o7="∘",i7="∖",a7="⨳",l7="⧤",c7="∣",u7="⌣",f7="⪪",d7="⪬",p7="⪬︀",h7="Ь",m7="ь",g7="⌿",y7="⧄",v7="/",x7="𝕊",b7="𝕤",w7="♠",k7="♠",S7="∥",E7="⊓",_7="⊓︀",T7="⊔",N7="⊔︀",A7="√",C7="⊏",j7="⊑",R7="⊏",L7="⊑",D7="⊐",O7="⊒",P7="⊐",M7="⊒",I7="□",$7="□",F7="⊓",z7="⊏",q7="⊑",U7="⊐",H7="⊒",B7="⊔",G7="▪",V7="□",Q7="▪",W7="→",K7="𝒮",Y7="𝓈",X7="∖",Z7="⌣",J7="⋆",eQ="⋆",tQ="☆",nQ="★",rQ="ϵ",sQ="ϕ",oQ="¯",iQ="⊂",aQ="⋐",lQ="⪽",cQ="⫅",uQ="⊆",fQ="⫃",dQ="⫁",pQ="⫋",hQ="⊊",mQ="⪿",gQ="⥹",yQ="⊂",vQ="⋐",xQ="⊆",bQ="⫅",wQ="⊆",kQ="⊊",SQ="⫋",EQ="⫇",_Q="⫕",TQ="⫓",NQ="⪸",AQ="≻",CQ="≽",jQ="≻",RQ="⪰",LQ="≽",DQ="≿",OQ="⪰",PQ="⪺",MQ="⪶",IQ="⋩",$Q="≿",FQ="∋",zQ="∑",qQ="∑",UQ="♪",HQ="¹",BQ="²",GQ="³",VQ="⊃",QQ="⋑",WQ="⪾",KQ="⫘",YQ="⫆",XQ="⊇",ZQ="⫄",JQ="⊃",eW="⊇",tW="⟉",nW="⫗",rW="⥻",sW="⫂",oW="⫌",iW="⊋",aW="⫀",lW="⊃",cW="⋑",uW="⊇",fW="⫆",dW="⊋",pW="⫌",hW="⫈",mW="⫔",gW="⫖",yW="⤦",vW="↙",xW="⇙",bW="↙",wW="⤪",kW="ß",SW=" ",EW="⌖",_W="Τ",TW="τ",NW="⎴",AW="Ť",CW="ť",jW="Ţ",RW="ţ",LW="Т",DW="т",OW="⃛",PW="⌕",MW="𝔗",IW="𝔱",$W="∴",FW="∴",zW="∴",qW="Θ",UW="θ",HW="ϑ",BW="ϑ",GW="≈",VW="∼",QW=" ",WW=" ",KW=" ",YW="≈",XW="∼",ZW="Þ",JW="þ",eK="˜",tK="∼",nK="≃",rK="≅",sK="≈",oK="⨱",iK="⊠",aK="×",lK="⨰",cK="∭",uK="⤨",fK="⌶",dK="⫱",pK="⊤",hK="𝕋",mK="𝕥",gK="⫚",yK="⤩",vK="‴",xK="™",bK="™",wK="▵",kK="▿",SK="◃",EK="⊴",_K="≜",TK="▹",NK="⊵",AK="◬",CK="≜",jK="⨺",RK="⃛",LK="⨹",DK="⧍",OK="⨻",PK="⏢",MK="𝒯",IK="𝓉",$K="Ц",FK="ц",zK="Ћ",qK="ћ",UK="Ŧ",HK="ŧ",BK="≬",GK="↞",VK="↠",QK="Ú",WK="ú",KK="↑",YK="↟",XK="⇑",ZK="⥉",JK="Ў",eY="ў",tY="Ŭ",nY="ŭ",rY="Û",sY="û",oY="У",iY="у",aY="⇅",lY="Ű",cY="ű",uY="⥮",fY="⥾",dY="𝔘",pY="𝔲",hY="Ù",mY="ù",gY="⥣",yY="↿",vY="↾",xY="▀",bY="⌜",wY="⌜",kY="⌏",SY="◸",EY="Ū",_Y="ū",TY="¨",NY="_",AY="⏟",CY="⎵",jY="⏝",RY="⋃",LY="⊎",DY="Ų",OY="ų",PY="𝕌",MY="𝕦",IY="⤒",$Y="↑",FY="↑",zY="⇑",qY="⇅",UY="↕",HY="↕",BY="⇕",GY="⥮",VY="↿",QY="↾",WY="⊎",KY="↖",YY="↗",XY="υ",ZY="ϒ",JY="ϒ",eX="Υ",tX="υ",nX="↥",rX="⊥",sX="⇈",oX="⌝",iX="⌝",aX="⌎",lX="Ů",cX="ů",uX="◹",fX="𝒰",dX="𝓊",pX="⋰",hX="Ũ",mX="ũ",gX="▵",yX="▴",vX="⇈",xX="Ü",bX="ü",wX="⦧",kX="⦜",SX="ϵ",EX="ϰ",_X="∅",TX="ϕ",NX="ϖ",AX="∝",CX="↕",jX="⇕",RX="ϱ",LX="ς",DX="⊊︀",OX="⫋︀",PX="⊋︀",MX="⫌︀",IX="ϑ",$X="⊲",FX="⊳",zX="⫨",qX="⫫",UX="⫩",HX="В",BX="в",GX="⊢",VX="⊨",QX="⊩",WX="⊫",KX="⫦",YX="⊻",XX="∨",ZX="⋁",JX="≚",eZ="⋮",tZ="|",nZ="‖",rZ="|",sZ="‖",oZ="∣",iZ="|",aZ="❘",lZ="≀",cZ=" ",uZ="𝔙",fZ="𝔳",dZ="⊲",pZ="⊂⃒",hZ="⊃⃒",mZ="𝕍",gZ="𝕧",yZ="∝",vZ="⊳",xZ="𝒱",bZ="𝓋",wZ="⫋︀",kZ="⊊︀",SZ="⫌︀",EZ="⊋︀",_Z="⊪",TZ="⦚",NZ="Ŵ",AZ="ŵ",CZ="⩟",jZ="∧",RZ="⋀",LZ="≙",DZ="℘",OZ="𝔚",PZ="𝔴",MZ="𝕎",IZ="𝕨",$Z="℘",FZ="≀",zZ="≀",qZ="𝒲",UZ="𝓌",HZ="⋂",BZ="◯",GZ="⋃",VZ="▽",QZ="𝔛",WZ="𝔵",KZ="⟷",YZ="⟺",XZ="Ξ",ZZ="ξ",JZ="⟵",eJ="⟸",tJ="⟼",nJ="⋻",rJ="⨀",sJ="𝕏",oJ="𝕩",iJ="⨁",aJ="⨂",lJ="⟶",cJ="⟹",uJ="𝒳",fJ="𝓍",dJ="⨆",pJ="⨄",hJ="△",mJ="⋁",gJ="⋀",yJ="Ý",vJ="ý",xJ="Я",bJ="я",wJ="Ŷ",kJ="ŷ",SJ="Ы",EJ="ы",_J="¥",TJ="𝔜",NJ="𝔶",AJ="Ї",CJ="ї",jJ="𝕐",RJ="𝕪",LJ="𝒴",DJ="𝓎",OJ="Ю",PJ="ю",MJ="ÿ",IJ="Ÿ",$J="Ź",FJ="ź",zJ="Ž",qJ="ž",UJ="З",HJ="з",BJ="Ż",GJ="ż",VJ="ℨ",QJ="",WJ="Ζ",KJ="ζ",YJ="𝔷",XJ="ℨ",ZJ="Ж",JJ="ж",eee="⇝",tee="𝕫",nee="ℤ",ree="𝒵",see="𝓏",oee="",iee="",_v={Aacute:Bk,aacute:Gk,Abreve:Vk,abreve:Qk,ac:Wk,acd:Kk,acE:Yk,Acirc:Xk,acirc:Zk,acute:Jk,Acy:eS,acy:tS,AElig:nS,aelig:rS,af:sS,Afr:oS,afr:iS,Agrave:aS,agrave:lS,alefsym:cS,aleph:uS,Alpha:fS,alpha:dS,Amacr:pS,amacr:hS,amalg:mS,amp:gS,AMP:yS,andand:vS,And:xS,and:bS,andd:wS,andslope:kS,andv:SS,ang:ES,ange:_S,angle:TS,angmsdaa:NS,angmsdab:AS,angmsdac:CS,angmsdad:jS,angmsdae:RS,angmsdaf:LS,angmsdag:DS,angmsdah:OS,angmsd:PS,angrt:MS,angrtvb:IS,angrtvbd:$S,angsph:FS,angst:zS,angzarr:qS,Aogon:US,aogon:HS,Aopf:BS,aopf:GS,apacir:VS,ap:QS,apE:WS,ape:KS,apid:YS,apos:XS,ApplyFunction:ZS,approx:JS,approxeq:eE,Aring:tE,aring:nE,Ascr:rE,ascr:sE,Assign:oE,ast:iE,asymp:aE,asympeq:lE,Atilde:cE,atilde:uE,Auml:fE,auml:dE,awconint:pE,awint:hE,backcong:mE,backepsilon:gE,backprime:yE,backsim:vE,backsimeq:xE,Backslash:bE,Barv:wE,barvee:kE,barwed:SE,Barwed:EE,barwedge:_E,bbrk:TE,bbrktbrk:NE,bcong:AE,Bcy:CE,bcy:jE,bdquo:RE,becaus:LE,because:DE,Because:OE,bemptyv:PE,bepsi:ME,bernou:IE,Bernoullis:$E,Beta:FE,beta:zE,beth:qE,between:UE,Bfr:HE,bfr:BE,bigcap:GE,bigcirc:VE,bigcup:QE,bigodot:WE,bigoplus:KE,bigotimes:YE,bigsqcup:XE,bigstar:ZE,bigtriangledown:JE,bigtriangleup:e_,biguplus:t_,bigvee:n_,bigwedge:r_,bkarow:s_,blacklozenge:o_,blacksquare:i_,blacktriangle:a_,blacktriangledown:l_,blacktriangleleft:c_,blacktriangleright:u_,blank:f_,blk12:d_,blk14:p_,blk34:h_,block:m_,bne:g_,bnequiv:y_,bNot:v_,bnot:x_,Bopf:b_,bopf:w_,bot:k_,bottom:S_,bowtie:E_,boxbox:__,boxdl:T_,boxdL:N_,boxDl:A_,boxDL:C_,boxdr:j_,boxdR:R_,boxDr:L_,boxDR:D_,boxh:O_,boxH:P_,boxhd:M_,boxHd:I_,boxhD:$_,boxHD:F_,boxhu:z_,boxHu:q_,boxhU:U_,boxHU:H_,boxminus:B_,boxplus:G_,boxtimes:V_,boxul:Q_,boxuL:W_,boxUl:K_,boxUL:Y_,boxur:X_,boxuR:Z_,boxUr:J_,boxUR:eT,boxv:tT,boxV:nT,boxvh:rT,boxvH:sT,boxVh:oT,boxVH:iT,boxvl:aT,boxvL:lT,boxVl:cT,boxVL:uT,boxvr:fT,boxvR:dT,boxVr:pT,boxVR:hT,bprime:mT,breve:gT,Breve:yT,brvbar:vT,bscr:xT,Bscr:bT,bsemi:wT,bsim:kT,bsime:ST,bsolb:ET,bsol:_T,bsolhsub:TT,bull:NT,bullet:AT,bump:CT,bumpE:jT,bumpe:RT,Bumpeq:LT,bumpeq:DT,Cacute:OT,cacute:PT,capand:MT,capbrcup:IT,capcap:$T,cap:FT,Cap:zT,capcup:qT,capdot:UT,CapitalDifferentialD:HT,caps:BT,caret:GT,caron:VT,Cayleys:QT,ccaps:WT,Ccaron:KT,ccaron:YT,Ccedil:XT,ccedil:ZT,Ccirc:JT,ccirc:eN,Cconint:tN,ccups:nN,ccupssm:rN,Cdot:sN,cdot:oN,cedil:iN,Cedilla:aN,cemptyv:lN,cent:cN,centerdot:uN,CenterDot:fN,cfr:dN,Cfr:pN,CHcy:hN,chcy:mN,check:gN,checkmark:yN,Chi:vN,chi:xN,circ:bN,circeq:wN,circlearrowleft:kN,circlearrowright:SN,circledast:EN,circledcirc:_N,circleddash:TN,CircleDot:NN,circledR:AN,circledS:CN,CircleMinus:jN,CirclePlus:RN,CircleTimes:LN,cir:DN,cirE:ON,cire:PN,cirfnint:MN,cirmid:IN,cirscir:$N,ClockwiseContourIntegral:FN,CloseCurlyDoubleQuote:zN,CloseCurlyQuote:qN,clubs:UN,clubsuit:HN,colon:BN,Colon:GN,Colone:VN,colone:QN,coloneq:WN,comma:KN,commat:YN,comp:XN,compfn:ZN,complement:JN,complexes:eA,cong:tA,congdot:nA,Congruent:rA,conint:sA,Conint:oA,ContourIntegral:iA,copf:aA,Copf:lA,coprod:cA,Coproduct:uA,copy:fA,COPY:dA,copysr:pA,CounterClockwiseContourIntegral:hA,crarr:mA,cross:gA,Cross:yA,Cscr:vA,cscr:xA,csub:bA,csube:wA,csup:kA,csupe:SA,ctdot:EA,cudarrl:_A,cudarrr:TA,cuepr:NA,cuesc:AA,cularr:CA,cularrp:jA,cupbrcap:RA,cupcap:LA,CupCap:DA,cup:OA,Cup:PA,cupcup:MA,cupdot:IA,cupor:$A,cups:FA,curarr:zA,curarrm:qA,curlyeqprec:UA,curlyeqsucc:HA,curlyvee:BA,curlywedge:GA,curren:VA,curvearrowleft:QA,curvearrowright:WA,cuvee:KA,cuwed:YA,cwconint:XA,cwint:ZA,cylcty:JA,dagger:e2,Dagger:t2,daleth:n2,darr:r2,Darr:s2,dArr:o2,dash:i2,Dashv:a2,dashv:l2,dbkarow:c2,dblac:u2,Dcaron:f2,dcaron:d2,Dcy:p2,dcy:h2,ddagger:m2,ddarr:g2,DD:y2,dd:v2,DDotrahd:x2,ddotseq:b2,deg:w2,Del:k2,Delta:S2,delta:E2,demptyv:_2,dfisht:T2,Dfr:N2,dfr:A2,dHar:C2,dharl:j2,dharr:R2,DiacriticalAcute:L2,DiacriticalDot:D2,DiacriticalDoubleAcute:O2,DiacriticalGrave:P2,DiacriticalTilde:M2,diam:I2,diamond:$2,Diamond:F2,diamondsuit:z2,diams:q2,die:U2,DifferentialD:H2,digamma:B2,disin:G2,div:V2,divide:Q2,divideontimes:W2,divonx:K2,DJcy:Y2,djcy:X2,dlcorn:Z2,dlcrop:J2,dollar:eC,Dopf:tC,dopf:nC,Dot:rC,dot:sC,DotDot:oC,doteq:iC,doteqdot:aC,DotEqual:lC,dotminus:cC,dotplus:uC,dotsquare:fC,doublebarwedge:dC,DoubleContourIntegral:pC,DoubleDot:hC,DoubleDownArrow:mC,DoubleLeftArrow:gC,DoubleLeftRightArrow:yC,DoubleLeftTee:vC,DoubleLongLeftArrow:xC,DoubleLongLeftRightArrow:bC,DoubleLongRightArrow:wC,DoubleRightArrow:kC,DoubleRightTee:SC,DoubleUpArrow:EC,DoubleUpDownArrow:_C,DoubleVerticalBar:TC,DownArrowBar:NC,downarrow:AC,DownArrow:CC,Downarrow:jC,DownArrowUpArrow:RC,DownBreve:LC,downdownarrows:DC,downharpoonleft:OC,downharpoonright:PC,DownLeftRightVector:MC,DownLeftTeeVector:IC,DownLeftVectorBar:$C,DownLeftVector:FC,DownRightTeeVector:zC,DownRightVectorBar:qC,DownRightVector:UC,DownTeeArrow:HC,DownTee:BC,drbkarow:GC,drcorn:VC,drcrop:QC,Dscr:WC,dscr:KC,DScy:YC,dscy:XC,dsol:ZC,Dstrok:JC,dstrok:ej,dtdot:tj,dtri:nj,dtrif:rj,duarr:sj,duhar:oj,dwangle:ij,DZcy:aj,dzcy:lj,dzigrarr:cj,Eacute:uj,eacute:fj,easter:dj,Ecaron:pj,ecaron:hj,Ecirc:mj,ecirc:gj,ecir:yj,ecolon:vj,Ecy:xj,ecy:bj,eDDot:wj,Edot:kj,edot:Sj,eDot:Ej,ee:_j,efDot:Tj,Efr:Nj,efr:Aj,eg:Cj,Egrave:jj,egrave:Rj,egs:Lj,egsdot:Dj,el:Oj,Element:Pj,elinters:Mj,ell:Ij,els:$j,elsdot:Fj,Emacr:zj,emacr:qj,empty:Uj,emptyset:Hj,EmptySmallSquare:Bj,emptyv:Gj,EmptyVerySmallSquare:Vj,emsp13:Qj,emsp14:Wj,emsp:Kj,ENG:Yj,eng:Xj,ensp:Zj,Eogon:Jj,eogon:eR,Eopf:tR,eopf:nR,epar:rR,eparsl:sR,eplus:oR,epsi:iR,Epsilon:aR,epsilon:lR,epsiv:cR,eqcirc:uR,eqcolon:fR,eqsim:dR,eqslantgtr:pR,eqslantless:hR,Equal:mR,equals:gR,EqualTilde:yR,equest:vR,Equilibrium:xR,equiv:bR,equivDD:wR,eqvparsl:kR,erarr:SR,erDot:ER,escr:_R,Escr:TR,esdot:NR,Esim:AR,esim:CR,Eta:jR,eta:RR,ETH:LR,eth:DR,Euml:OR,euml:PR,euro:MR,excl:IR,exist:$R,Exists:FR,expectation:zR,exponentiale:qR,ExponentialE:UR,fallingdotseq:HR,Fcy:BR,fcy:GR,female:VR,ffilig:QR,fflig:WR,ffllig:KR,Ffr:YR,ffr:XR,filig:ZR,FilledSmallSquare:JR,FilledVerySmallSquare:eL,fjlig:tL,flat:nL,fllig:rL,fltns:sL,fnof:oL,Fopf:iL,fopf:aL,forall:lL,ForAll:cL,fork:uL,forkv:fL,Fouriertrf:dL,fpartint:pL,frac12:hL,frac13:mL,frac14:gL,frac15:yL,frac16:vL,frac18:xL,frac23:bL,frac25:wL,frac34:kL,frac35:SL,frac38:EL,frac45:_L,frac56:TL,frac58:NL,frac78:AL,frasl:CL,frown:jL,fscr:RL,Fscr:LL,gacute:DL,Gamma:OL,gamma:PL,Gammad:ML,gammad:IL,gap:$L,Gbreve:FL,gbreve:zL,Gcedil:qL,Gcirc:UL,gcirc:HL,Gcy:BL,gcy:GL,Gdot:VL,gdot:QL,ge:WL,gE:KL,gEl:YL,gel:XL,geq:ZL,geqq:JL,geqslant:eD,gescc:tD,ges:nD,gesdot:rD,gesdoto:sD,gesdotol:oD,gesl:iD,gesles:aD,Gfr:lD,gfr:cD,gg:uD,Gg:fD,ggg:dD,gimel:pD,GJcy:hD,gjcy:mD,gla:gD,gl:yD,glE:vD,glj:xD,gnap:bD,gnapprox:wD,gne:kD,gnE:SD,gneq:ED,gneqq:_D,gnsim:TD,Gopf:ND,gopf:AD,grave:CD,GreaterEqual:jD,GreaterEqualLess:RD,GreaterFullEqual:LD,GreaterGreater:DD,GreaterLess:OD,GreaterSlantEqual:PD,GreaterTilde:MD,Gscr:ID,gscr:$D,gsim:FD,gsime:zD,gsiml:qD,gtcc:UD,gtcir:HD,gt:BD,GT:GD,Gt:VD,gtdot:QD,gtlPar:WD,gtquest:KD,gtrapprox:YD,gtrarr:XD,gtrdot:ZD,gtreqless:JD,gtreqqless:eO,gtrless:tO,gtrsim:nO,gvertneqq:rO,gvnE:sO,Hacek:oO,hairsp:iO,half:aO,hamilt:lO,HARDcy:cO,hardcy:uO,harrcir:fO,harr:dO,hArr:pO,harrw:hO,Hat:mO,hbar:gO,Hcirc:yO,hcirc:vO,hearts:xO,heartsuit:bO,hellip:wO,hercon:kO,hfr:SO,Hfr:EO,HilbertSpace:_O,hksearow:TO,hkswarow:NO,hoarr:AO,homtht:CO,hookleftarrow:jO,hookrightarrow:RO,hopf:LO,Hopf:DO,horbar:OO,HorizontalLine:PO,hscr:MO,Hscr:IO,hslash:$O,Hstrok:FO,hstrok:zO,HumpDownHump:qO,HumpEqual:UO,hybull:HO,hyphen:BO,Iacute:GO,iacute:VO,ic:QO,Icirc:WO,icirc:KO,Icy:YO,icy:XO,Idot:ZO,IEcy:JO,iecy:e3,iexcl:t3,iff:n3,ifr:r3,Ifr:s3,Igrave:o3,igrave:i3,ii:a3,iiiint:l3,iiint:c3,iinfin:u3,iiota:f3,IJlig:d3,ijlig:p3,Imacr:h3,imacr:m3,image:g3,ImaginaryI:y3,imagline:v3,imagpart:x3,imath:b3,Im:w3,imof:k3,imped:S3,Implies:E3,incare:_3,in:"∈",infin:T3,infintie:N3,inodot:A3,intcal:C3,int:j3,Int:R3,integers:L3,Integral:D3,intercal:O3,Intersection:P3,intlarhk:M3,intprod:I3,InvisibleComma:$3,InvisibleTimes:F3,IOcy:z3,iocy:q3,Iogon:U3,iogon:H3,Iopf:B3,iopf:G3,Iota:V3,iota:Q3,iprod:W3,iquest:K3,iscr:Y3,Iscr:X3,isin:Z3,isindot:J3,isinE:eP,isins:tP,isinsv:nP,isinv:rP,it:sP,Itilde:oP,itilde:iP,Iukcy:aP,iukcy:lP,Iuml:cP,iuml:uP,Jcirc:fP,jcirc:dP,Jcy:pP,jcy:hP,Jfr:mP,jfr:gP,jmath:yP,Jopf:vP,jopf:xP,Jscr:bP,jscr:wP,Jsercy:kP,jsercy:SP,Jukcy:EP,jukcy:_P,Kappa:TP,kappa:NP,kappav:AP,Kcedil:CP,kcedil:jP,Kcy:RP,kcy:LP,Kfr:DP,kfr:OP,kgreen:PP,KHcy:MP,khcy:IP,KJcy:$P,kjcy:FP,Kopf:zP,kopf:qP,Kscr:UP,kscr:HP,lAarr:BP,Lacute:GP,lacute:VP,laemptyv:QP,lagran:WP,Lambda:KP,lambda:YP,lang:XP,Lang:ZP,langd:JP,langle:eM,lap:tM,Laplacetrf:nM,laquo:rM,larrb:sM,larrbfs:oM,larr:iM,Larr:aM,lArr:lM,larrfs:cM,larrhk:uM,larrlp:fM,larrpl:dM,larrsim:pM,larrtl:hM,latail:mM,lAtail:gM,lat:yM,late:vM,lates:xM,lbarr:bM,lBarr:wM,lbbrk:kM,lbrace:SM,lbrack:EM,lbrke:_M,lbrksld:TM,lbrkslu:NM,Lcaron:AM,lcaron:CM,Lcedil:jM,lcedil:RM,lceil:LM,lcub:DM,Lcy:OM,lcy:PM,ldca:MM,ldquo:IM,ldquor:$M,ldrdhar:FM,ldrushar:zM,ldsh:qM,le:UM,lE:HM,LeftAngleBracket:BM,LeftArrowBar:GM,leftarrow:VM,LeftArrow:QM,Leftarrow:WM,LeftArrowRightArrow:KM,leftarrowtail:YM,LeftCeiling:XM,LeftDoubleBracket:ZM,LeftDownTeeVector:JM,LeftDownVectorBar:eI,LeftDownVector:tI,LeftFloor:nI,leftharpoondown:rI,leftharpoonup:sI,leftleftarrows:oI,leftrightarrow:iI,LeftRightArrow:aI,Leftrightarrow:lI,leftrightarrows:cI,leftrightharpoons:uI,leftrightsquigarrow:fI,LeftRightVector:dI,LeftTeeArrow:pI,LeftTee:hI,LeftTeeVector:mI,leftthreetimes:gI,LeftTriangleBar:yI,LeftTriangle:vI,LeftTriangleEqual:xI,LeftUpDownVector:bI,LeftUpTeeVector:wI,LeftUpVectorBar:kI,LeftUpVector:SI,LeftVectorBar:EI,LeftVector:_I,lEg:TI,leg:NI,leq:AI,leqq:CI,leqslant:jI,lescc:RI,les:LI,lesdot:DI,lesdoto:OI,lesdotor:PI,lesg:MI,lesges:II,lessapprox:$I,lessdot:FI,lesseqgtr:zI,lesseqqgtr:qI,LessEqualGreater:UI,LessFullEqual:HI,LessGreater:BI,lessgtr:GI,LessLess:VI,lesssim:QI,LessSlantEqual:WI,LessTilde:KI,lfisht:YI,lfloor:XI,Lfr:ZI,lfr:JI,lg:e4,lgE:t4,lHar:n4,lhard:r4,lharu:s4,lharul:o4,lhblk:i4,LJcy:a4,ljcy:l4,llarr:c4,ll:u4,Ll:f4,llcorner:d4,Lleftarrow:p4,llhard:h4,lltri:m4,Lmidot:g4,lmidot:y4,lmoustache:v4,lmoust:x4,lnap:b4,lnapprox:w4,lne:k4,lnE:S4,lneq:E4,lneqq:_4,lnsim:T4,loang:N4,loarr:A4,lobrk:C4,longleftarrow:j4,LongLeftArrow:R4,Longleftarrow:L4,longleftrightarrow:D4,LongLeftRightArrow:O4,Longleftrightarrow:P4,longmapsto:M4,longrightarrow:I4,LongRightArrow:$4,Longrightarrow:F4,looparrowleft:z4,looparrowright:q4,lopar:U4,Lopf:H4,lopf:B4,loplus:G4,lotimes:V4,lowast:Q4,lowbar:W4,LowerLeftArrow:K4,LowerRightArrow:Y4,loz:X4,lozenge:Z4,lozf:J4,lpar:e$,lparlt:t$,lrarr:n$,lrcorner:r$,lrhar:s$,lrhard:o$,lrm:i$,lrtri:a$,lsaquo:l$,lscr:c$,Lscr:u$,lsh:f$,Lsh:d$,lsim:p$,lsime:h$,lsimg:m$,lsqb:g$,lsquo:y$,lsquor:v$,Lstrok:x$,lstrok:b$,ltcc:w$,ltcir:k$,lt:S$,LT:E$,Lt:_$,ltdot:T$,lthree:N$,ltimes:A$,ltlarr:C$,ltquest:j$,ltri:R$,ltrie:L$,ltrif:D$,ltrPar:O$,lurdshar:P$,luruhar:M$,lvertneqq:I$,lvnE:$$,macr:F$,male:z$,malt:q$,maltese:U$,Map:"⤅",map:H$,mapsto:B$,mapstodown:G$,mapstoleft:V$,mapstoup:Q$,marker:W$,mcomma:K$,Mcy:Y$,mcy:X$,mdash:Z$,mDDot:J$,measuredangle:eF,MediumSpace:tF,Mellintrf:nF,Mfr:rF,mfr:sF,mho:oF,micro:iF,midast:aF,midcir:lF,mid:cF,middot:uF,minusb:fF,minus:dF,minusd:pF,minusdu:hF,MinusPlus:mF,mlcp:gF,mldr:yF,mnplus:vF,models:xF,Mopf:bF,mopf:wF,mp:kF,mscr:SF,Mscr:EF,mstpos:_F,Mu:TF,mu:NF,multimap:AF,mumap:CF,nabla:jF,Nacute:RF,nacute:LF,nang:DF,nap:OF,napE:PF,napid:MF,napos:IF,napprox:$F,natural:FF,naturals:zF,natur:qF,nbsp:UF,nbump:HF,nbumpe:BF,ncap:GF,Ncaron:VF,ncaron:QF,Ncedil:WF,ncedil:KF,ncong:YF,ncongdot:XF,ncup:ZF,Ncy:JF,ncy:e5,ndash:t5,nearhk:n5,nearr:r5,neArr:s5,nearrow:o5,ne:i5,nedot:a5,NegativeMediumSpace:l5,NegativeThickSpace:c5,NegativeThinSpace:u5,NegativeVeryThinSpace:f5,nequiv:d5,nesear:p5,nesim:h5,NestedGreaterGreater:m5,NestedLessLess:g5,NewLine:y5,nexist:v5,nexists:x5,Nfr:b5,nfr:w5,ngE:k5,nge:S5,ngeq:E5,ngeqq:_5,ngeqslant:T5,nges:N5,nGg:A5,ngsim:C5,nGt:j5,ngt:R5,ngtr:L5,nGtv:D5,nharr:O5,nhArr:P5,nhpar:M5,ni:I5,nis:$5,nisd:F5,niv:z5,NJcy:q5,njcy:U5,nlarr:H5,nlArr:B5,nldr:G5,nlE:V5,nle:Q5,nleftarrow:W5,nLeftarrow:K5,nleftrightarrow:Y5,nLeftrightarrow:X5,nleq:Z5,nleqq:J5,nleqslant:ez,nles:tz,nless:nz,nLl:rz,nlsim:sz,nLt:oz,nlt:iz,nltri:az,nltrie:lz,nLtv:cz,nmid:uz,NoBreak:fz,NonBreakingSpace:dz,nopf:pz,Nopf:hz,Not:mz,not:gz,NotCongruent:yz,NotCupCap:vz,NotDoubleVerticalBar:xz,NotElement:bz,NotEqual:wz,NotEqualTilde:kz,NotExists:Sz,NotGreater:Ez,NotGreaterEqual:_z,NotGreaterFullEqual:Tz,NotGreaterGreater:Nz,NotGreaterLess:Az,NotGreaterSlantEqual:Cz,NotGreaterTilde:jz,NotHumpDownHump:Rz,NotHumpEqual:Lz,notin:Dz,notindot:Oz,notinE:Pz,notinva:Mz,notinvb:Iz,notinvc:$z,NotLeftTriangleBar:Fz,NotLeftTriangle:zz,NotLeftTriangleEqual:qz,NotLess:Uz,NotLessEqual:Hz,NotLessGreater:Bz,NotLessLess:Gz,NotLessSlantEqual:Vz,NotLessTilde:Qz,NotNestedGreaterGreater:Wz,NotNestedLessLess:Kz,notni:Yz,notniva:Xz,notnivb:Zz,notnivc:Jz,NotPrecedes:eq,NotPrecedesEqual:tq,NotPrecedesSlantEqual:nq,NotReverseElement:rq,NotRightTriangleBar:sq,NotRightTriangle:oq,NotRightTriangleEqual:iq,NotSquareSubset:aq,NotSquareSubsetEqual:lq,NotSquareSuperset:cq,NotSquareSupersetEqual:uq,NotSubset:fq,NotSubsetEqual:dq,NotSucceeds:pq,NotSucceedsEqual:hq,NotSucceedsSlantEqual:mq,NotSucceedsTilde:gq,NotSuperset:yq,NotSupersetEqual:vq,NotTilde:xq,NotTildeEqual:bq,NotTildeFullEqual:wq,NotTildeTilde:kq,NotVerticalBar:Sq,nparallel:Eq,npar:_q,nparsl:Tq,npart:Nq,npolint:Aq,npr:Cq,nprcue:jq,nprec:Rq,npreceq:Lq,npre:Dq,nrarrc:Oq,nrarr:Pq,nrArr:Mq,nrarrw:Iq,nrightarrow:$q,nRightarrow:Fq,nrtri:zq,nrtrie:qq,nsc:Uq,nsccue:Hq,nsce:Bq,Nscr:Gq,nscr:Vq,nshortmid:Qq,nshortparallel:Wq,nsim:Kq,nsime:Yq,nsimeq:Xq,nsmid:Zq,nspar:Jq,nsqsube:eU,nsqsupe:tU,nsub:nU,nsubE:rU,nsube:sU,nsubset:oU,nsubseteq:iU,nsubseteqq:aU,nsucc:lU,nsucceq:cU,nsup:uU,nsupE:fU,nsupe:dU,nsupset:pU,nsupseteq:hU,nsupseteqq:mU,ntgl:gU,Ntilde:yU,ntilde:vU,ntlg:xU,ntriangleleft:bU,ntrianglelefteq:wU,ntriangleright:kU,ntrianglerighteq:SU,Nu:EU,nu:_U,num:TU,numero:NU,numsp:AU,nvap:CU,nvdash:jU,nvDash:RU,nVdash:LU,nVDash:DU,nvge:OU,nvgt:PU,nvHarr:MU,nvinfin:IU,nvlArr:$U,nvle:FU,nvlt:zU,nvltrie:qU,nvrArr:UU,nvrtrie:HU,nvsim:BU,nwarhk:GU,nwarr:VU,nwArr:QU,nwarrow:WU,nwnear:KU,Oacute:YU,oacute:XU,oast:ZU,Ocirc:JU,ocirc:e8,ocir:t8,Ocy:n8,ocy:r8,odash:s8,Odblac:o8,odblac:i8,odiv:a8,odot:l8,odsold:c8,OElig:u8,oelig:f8,ofcir:d8,Ofr:p8,ofr:h8,ogon:m8,Ograve:g8,ograve:y8,ogt:v8,ohbar:x8,ohm:b8,oint:w8,olarr:k8,olcir:S8,olcross:E8,oline:_8,olt:T8,Omacr:N8,omacr:A8,Omega:C8,omega:j8,Omicron:R8,omicron:L8,omid:D8,ominus:O8,Oopf:P8,oopf:M8,opar:I8,OpenCurlyDoubleQuote:$8,OpenCurlyQuote:F8,operp:z8,oplus:q8,orarr:U8,Or:H8,or:B8,ord:G8,order:V8,orderof:Q8,ordf:W8,ordm:K8,origof:Y8,oror:X8,orslope:Z8,orv:J8,oS:e6,Oscr:t6,oscr:n6,Oslash:r6,oslash:s6,osol:o6,Otilde:i6,otilde:a6,otimesas:l6,Otimes:c6,otimes:u6,Ouml:f6,ouml:d6,ovbar:p6,OverBar:h6,OverBrace:m6,OverBracket:g6,OverParenthesis:y6,para:v6,parallel:x6,par:b6,parsim:w6,parsl:k6,part:S6,PartialD:E6,Pcy:_6,pcy:T6,percnt:N6,period:A6,permil:C6,perp:j6,pertenk:R6,Pfr:L6,pfr:D6,Phi:O6,phi:P6,phiv:M6,phmmat:I6,phone:$6,Pi:F6,pi:z6,pitchfork:q6,piv:U6,planck:H6,planckh:B6,plankv:G6,plusacir:V6,plusb:Q6,pluscir:W6,plus:K6,plusdo:Y6,plusdu:X6,pluse:Z6,PlusMinus:J6,plusmn:eH,plussim:tH,plustwo:nH,pm:rH,Poincareplane:sH,pointint:oH,popf:iH,Popf:aH,pound:lH,prap:cH,Pr:uH,pr:fH,prcue:dH,precapprox:pH,prec:hH,preccurlyeq:mH,Precedes:gH,PrecedesEqual:yH,PrecedesSlantEqual:vH,PrecedesTilde:xH,preceq:bH,precnapprox:wH,precneqq:kH,precnsim:SH,pre:EH,prE:_H,precsim:TH,prime:NH,Prime:AH,primes:CH,prnap:jH,prnE:RH,prnsim:LH,prod:DH,Product:OH,profalar:PH,profline:MH,profsurf:IH,prop:$H,Proportional:FH,Proportion:zH,propto:qH,prsim:UH,prurel:HH,Pscr:BH,pscr:GH,Psi:VH,psi:QH,puncsp:WH,Qfr:KH,qfr:YH,qint:XH,qopf:ZH,Qopf:JH,qprime:eB,Qscr:tB,qscr:nB,quaternions:rB,quatint:sB,quest:oB,questeq:iB,quot:aB,QUOT:lB,rAarr:cB,race:uB,Racute:fB,racute:dB,radic:pB,raemptyv:hB,rang:mB,Rang:gB,rangd:yB,range:vB,rangle:xB,raquo:bB,rarrap:wB,rarrb:kB,rarrbfs:SB,rarrc:EB,rarr:_B,Rarr:TB,rArr:NB,rarrfs:AB,rarrhk:CB,rarrlp:jB,rarrpl:RB,rarrsim:LB,Rarrtl:DB,rarrtl:OB,rarrw:PB,ratail:MB,rAtail:IB,ratio:$B,rationals:FB,rbarr:zB,rBarr:qB,RBarr:UB,rbbrk:HB,rbrace:BB,rbrack:GB,rbrke:VB,rbrksld:QB,rbrkslu:WB,Rcaron:KB,rcaron:YB,Rcedil:XB,rcedil:ZB,rceil:JB,rcub:e9,Rcy:t9,rcy:n9,rdca:r9,rdldhar:s9,rdquo:o9,rdquor:i9,rdsh:a9,real:l9,realine:c9,realpart:u9,reals:f9,Re:d9,rect:p9,reg:h9,REG:m9,ReverseElement:g9,ReverseEquilibrium:y9,ReverseUpEquilibrium:v9,rfisht:x9,rfloor:b9,rfr:w9,Rfr:k9,rHar:S9,rhard:E9,rharu:_9,rharul:T9,Rho:N9,rho:A9,rhov:C9,RightAngleBracket:j9,RightArrowBar:R9,rightarrow:L9,RightArrow:D9,Rightarrow:O9,RightArrowLeftArrow:P9,rightarrowtail:M9,RightCeiling:I9,RightDoubleBracket:$9,RightDownTeeVector:F9,RightDownVectorBar:z9,RightDownVector:q9,RightFloor:U9,rightharpoondown:H9,rightharpoonup:B9,rightleftarrows:G9,rightleftharpoons:V9,rightrightarrows:Q9,rightsquigarrow:W9,RightTeeArrow:K9,RightTee:Y9,RightTeeVector:X9,rightthreetimes:Z9,RightTriangleBar:J9,RightTriangle:eG,RightTriangleEqual:tG,RightUpDownVector:nG,RightUpTeeVector:rG,RightUpVectorBar:sG,RightUpVector:oG,RightVectorBar:iG,RightVector:aG,ring:lG,risingdotseq:cG,rlarr:uG,rlhar:fG,rlm:dG,rmoustache:pG,rmoust:hG,rnmid:mG,roang:gG,roarr:yG,robrk:vG,ropar:xG,ropf:bG,Ropf:wG,roplus:kG,rotimes:SG,RoundImplies:EG,rpar:_G,rpargt:TG,rppolint:NG,rrarr:AG,Rrightarrow:CG,rsaquo:jG,rscr:RG,Rscr:LG,rsh:DG,Rsh:OG,rsqb:PG,rsquo:MG,rsquor:IG,rthree:$G,rtimes:FG,rtri:zG,rtrie:qG,rtrif:UG,rtriltri:HG,RuleDelayed:BG,ruluhar:GG,rx:VG,Sacute:QG,sacute:WG,sbquo:KG,scap:YG,Scaron:XG,scaron:ZG,Sc:JG,sc:eV,sccue:tV,sce:nV,scE:rV,Scedil:sV,scedil:oV,Scirc:iV,scirc:aV,scnap:lV,scnE:cV,scnsim:uV,scpolint:fV,scsim:dV,Scy:pV,scy:hV,sdotb:mV,sdot:gV,sdote:yV,searhk:vV,searr:xV,seArr:bV,searrow:wV,sect:kV,semi:SV,seswar:EV,setminus:_V,setmn:TV,sext:NV,Sfr:AV,sfr:CV,sfrown:jV,sharp:RV,SHCHcy:LV,shchcy:DV,SHcy:OV,shcy:PV,ShortDownArrow:MV,ShortLeftArrow:IV,shortmid:$V,shortparallel:FV,ShortRightArrow:zV,ShortUpArrow:qV,shy:UV,Sigma:HV,sigma:BV,sigmaf:GV,sigmav:VV,sim:QV,simdot:WV,sime:KV,simeq:YV,simg:XV,simgE:ZV,siml:JV,simlE:e7,simne:t7,simplus:n7,simrarr:r7,slarr:s7,SmallCircle:o7,smallsetminus:i7,smashp:a7,smeparsl:l7,smid:c7,smile:u7,smt:f7,smte:d7,smtes:p7,SOFTcy:h7,softcy:m7,solbar:g7,solb:y7,sol:v7,Sopf:x7,sopf:b7,spades:w7,spadesuit:k7,spar:S7,sqcap:E7,sqcaps:_7,sqcup:T7,sqcups:N7,Sqrt:A7,sqsub:C7,sqsube:j7,sqsubset:R7,sqsubseteq:L7,sqsup:D7,sqsupe:O7,sqsupset:P7,sqsupseteq:M7,square:I7,Square:$7,SquareIntersection:F7,SquareSubset:z7,SquareSubsetEqual:q7,SquareSuperset:U7,SquareSupersetEqual:H7,SquareUnion:B7,squarf:G7,squ:V7,squf:Q7,srarr:W7,Sscr:K7,sscr:Y7,ssetmn:X7,ssmile:Z7,sstarf:J7,Star:eQ,star:tQ,starf:nQ,straightepsilon:rQ,straightphi:sQ,strns:oQ,sub:iQ,Sub:aQ,subdot:lQ,subE:cQ,sube:uQ,subedot:fQ,submult:dQ,subnE:pQ,subne:hQ,subplus:mQ,subrarr:gQ,subset:yQ,Subset:vQ,subseteq:xQ,subseteqq:bQ,SubsetEqual:wQ,subsetneq:kQ,subsetneqq:SQ,subsim:EQ,subsub:_Q,subsup:TQ,succapprox:NQ,succ:AQ,succcurlyeq:CQ,Succeeds:jQ,SucceedsEqual:RQ,SucceedsSlantEqual:LQ,SucceedsTilde:DQ,succeq:OQ,succnapprox:PQ,succneqq:MQ,succnsim:IQ,succsim:$Q,SuchThat:FQ,sum:zQ,Sum:qQ,sung:UQ,sup1:HQ,sup2:BQ,sup3:GQ,sup:VQ,Sup:QQ,supdot:WQ,supdsub:KQ,supE:YQ,supe:XQ,supedot:ZQ,Superset:JQ,SupersetEqual:eW,suphsol:tW,suphsub:nW,suplarr:rW,supmult:sW,supnE:oW,supne:iW,supplus:aW,supset:lW,Supset:cW,supseteq:uW,supseteqq:fW,supsetneq:dW,supsetneqq:pW,supsim:hW,supsub:mW,supsup:gW,swarhk:yW,swarr:vW,swArr:xW,swarrow:bW,swnwar:wW,szlig:kW,Tab:SW,target:EW,Tau:_W,tau:TW,tbrk:NW,Tcaron:AW,tcaron:CW,Tcedil:jW,tcedil:RW,Tcy:LW,tcy:DW,tdot:OW,telrec:PW,Tfr:MW,tfr:IW,there4:$W,therefore:FW,Therefore:zW,Theta:qW,theta:UW,thetasym:HW,thetav:BW,thickapprox:GW,thicksim:VW,ThickSpace:QW,ThinSpace:WW,thinsp:KW,thkap:YW,thksim:XW,THORN:ZW,thorn:JW,tilde:eK,Tilde:tK,TildeEqual:nK,TildeFullEqual:rK,TildeTilde:sK,timesbar:oK,timesb:iK,times:aK,timesd:lK,tint:cK,toea:uK,topbot:fK,topcir:dK,top:pK,Topf:hK,topf:mK,topfork:gK,tosa:yK,tprime:vK,trade:xK,TRADE:bK,triangle:wK,triangledown:kK,triangleleft:SK,trianglelefteq:EK,triangleq:_K,triangleright:TK,trianglerighteq:NK,tridot:AK,trie:CK,triminus:jK,TripleDot:RK,triplus:LK,trisb:DK,tritime:OK,trpezium:PK,Tscr:MK,tscr:IK,TScy:$K,tscy:FK,TSHcy:zK,tshcy:qK,Tstrok:UK,tstrok:HK,twixt:BK,twoheadleftarrow:GK,twoheadrightarrow:VK,Uacute:QK,uacute:WK,uarr:KK,Uarr:YK,uArr:XK,Uarrocir:ZK,Ubrcy:JK,ubrcy:eY,Ubreve:tY,ubreve:nY,Ucirc:rY,ucirc:sY,Ucy:oY,ucy:iY,udarr:aY,Udblac:lY,udblac:cY,udhar:uY,ufisht:fY,Ufr:dY,ufr:pY,Ugrave:hY,ugrave:mY,uHar:gY,uharl:yY,uharr:vY,uhblk:xY,ulcorn:bY,ulcorner:wY,ulcrop:kY,ultri:SY,Umacr:EY,umacr:_Y,uml:TY,UnderBar:NY,UnderBrace:AY,UnderBracket:CY,UnderParenthesis:jY,Union:RY,UnionPlus:LY,Uogon:DY,uogon:OY,Uopf:PY,uopf:MY,UpArrowBar:IY,uparrow:$Y,UpArrow:FY,Uparrow:zY,UpArrowDownArrow:qY,updownarrow:UY,UpDownArrow:HY,Updownarrow:BY,UpEquilibrium:GY,upharpoonleft:VY,upharpoonright:QY,uplus:WY,UpperLeftArrow:KY,UpperRightArrow:YY,upsi:XY,Upsi:ZY,upsih:JY,Upsilon:eX,upsilon:tX,UpTeeArrow:nX,UpTee:rX,upuparrows:sX,urcorn:oX,urcorner:iX,urcrop:aX,Uring:lX,uring:cX,urtri:uX,Uscr:fX,uscr:dX,utdot:pX,Utilde:hX,utilde:mX,utri:gX,utrif:yX,uuarr:vX,Uuml:xX,uuml:bX,uwangle:wX,vangrt:kX,varepsilon:SX,varkappa:EX,varnothing:_X,varphi:TX,varpi:NX,varpropto:AX,varr:CX,vArr:jX,varrho:RX,varsigma:LX,varsubsetneq:DX,varsubsetneqq:OX,varsupsetneq:PX,varsupsetneqq:MX,vartheta:IX,vartriangleleft:$X,vartriangleright:FX,vBar:zX,Vbar:qX,vBarv:UX,Vcy:HX,vcy:BX,vdash:GX,vDash:VX,Vdash:QX,VDash:WX,Vdashl:KX,veebar:YX,vee:XX,Vee:ZX,veeeq:JX,vellip:eZ,verbar:tZ,Verbar:nZ,vert:rZ,Vert:sZ,VerticalBar:oZ,VerticalLine:iZ,VerticalSeparator:aZ,VerticalTilde:lZ,VeryThinSpace:cZ,Vfr:uZ,vfr:fZ,vltri:dZ,vnsub:pZ,vnsup:hZ,Vopf:mZ,vopf:gZ,vprop:yZ,vrtri:vZ,Vscr:xZ,vscr:bZ,vsubnE:wZ,vsubne:kZ,vsupnE:SZ,vsupne:EZ,Vvdash:_Z,vzigzag:TZ,Wcirc:NZ,wcirc:AZ,wedbar:CZ,wedge:jZ,Wedge:RZ,wedgeq:LZ,weierp:DZ,Wfr:OZ,wfr:PZ,Wopf:MZ,wopf:IZ,wp:$Z,wr:FZ,wreath:zZ,Wscr:qZ,wscr:UZ,xcap:HZ,xcirc:BZ,xcup:GZ,xdtri:VZ,Xfr:QZ,xfr:WZ,xharr:KZ,xhArr:YZ,Xi:XZ,xi:ZZ,xlarr:JZ,xlArr:eJ,xmap:tJ,xnis:nJ,xodot:rJ,Xopf:sJ,xopf:oJ,xoplus:iJ,xotime:aJ,xrarr:lJ,xrArr:cJ,Xscr:uJ,xscr:fJ,xsqcup:dJ,xuplus:pJ,xutri:hJ,xvee:mJ,xwedge:gJ,Yacute:yJ,yacute:vJ,YAcy:xJ,yacy:bJ,Ycirc:wJ,ycirc:kJ,Ycy:SJ,ycy:EJ,yen:_J,Yfr:TJ,yfr:NJ,YIcy:AJ,yicy:CJ,Yopf:jJ,yopf:RJ,Yscr:LJ,yscr:DJ,YUcy:OJ,yucy:PJ,yuml:MJ,Yuml:IJ,Zacute:$J,zacute:FJ,Zcaron:zJ,zcaron:qJ,Zcy:UJ,zcy:HJ,Zdot:BJ,zdot:GJ,zeetrf:VJ,ZeroWidthSpace:QJ,Zeta:WJ,zeta:KJ,zfr:YJ,Zfr:XJ,ZHcy:ZJ,zhcy:JJ,zigrarr:eee,zopf:tee,Zopf:nee,Zscr:ree,zscr:see,zwj:oee,zwnj:iee},aee="Á",lee="á",cee="Â",uee="â",fee="´",dee="Æ",pee="æ",hee="À",mee="à",gee="&",yee="&",vee="Å",xee="å",bee="Ã",wee="ã",kee="Ä",See="ä",Eee="¦",_ee="Ç",Tee="ç",Nee="¸",Aee="¢",Cee="©",jee="©",Ree="¤",Lee="°",Dee="÷",Oee="É",Pee="é",Mee="Ê",Iee="ê",$ee="È",Fee="è",zee="Ð",qee="ð",Uee="Ë",Hee="ë",Bee="½",Gee="¼",Vee="¾",Qee=">",Wee=">",Kee="Í",Yee="í",Xee="Î",Zee="î",Jee="¡",ete="Ì",tte="ì",nte="¿",rte="Ï",ste="ï",ote="«",ite="<",ate="<",lte="¯",cte="µ",ute="·",fte=" ",dte="¬",pte="Ñ",hte="ñ",mte="Ó",gte="ó",yte="Ô",vte="ô",xte="Ò",bte="ò",wte="ª",kte="º",Ste="Ø",Ete="ø",_te="Õ",Tte="õ",Nte="Ö",Ate="ö",Cte="¶",jte="±",Rte="£",Lte='"',Dte='"',Ote="»",Pte="®",Mte="®",Ite="§",$te="",Fte="¹",zte="²",qte="³",Ute="ß",Hte="Þ",Bte="þ",Gte="×",Vte="Ú",Qte="ú",Wte="Û",Kte="û",Yte="Ù",Xte="ù",Zte="¨",Jte="Ü",ene="ü",tne="Ý",nne="ý",rne="¥",sne="ÿ",one={Aacute:aee,aacute:lee,Acirc:cee,acirc:uee,acute:fee,AElig:dee,aelig:pee,Agrave:hee,agrave:mee,amp:gee,AMP:yee,Aring:vee,aring:xee,Atilde:bee,atilde:wee,Auml:kee,auml:See,brvbar:Eee,Ccedil:_ee,ccedil:Tee,cedil:Nee,cent:Aee,copy:Cee,COPY:jee,curren:Ree,deg:Lee,divide:Dee,Eacute:Oee,eacute:Pee,Ecirc:Mee,ecirc:Iee,Egrave:$ee,egrave:Fee,ETH:zee,eth:qee,Euml:Uee,euml:Hee,frac12:Bee,frac14:Gee,frac34:Vee,gt:Qee,GT:Wee,Iacute:Kee,iacute:Yee,Icirc:Xee,icirc:Zee,iexcl:Jee,Igrave:ete,igrave:tte,iquest:nte,Iuml:rte,iuml:ste,laquo:ote,lt:ite,LT:ate,macr:lte,micro:cte,middot:ute,nbsp:fte,not:dte,Ntilde:pte,ntilde:hte,Oacute:mte,oacute:gte,Ocirc:yte,ocirc:vte,Ograve:xte,ograve:bte,ordf:wte,ordm:kte,Oslash:Ste,oslash:Ete,Otilde:_te,otilde:Tte,Ouml:Nte,ouml:Ate,para:Cte,plusmn:jte,pound:Rte,quot:Lte,QUOT:Dte,raquo:Ote,reg:Pte,REG:Mte,sect:Ite,shy:$te,sup1:Fte,sup2:zte,sup3:qte,szlig:Ute,THORN:Hte,thorn:Bte,times:Gte,Uacute:Vte,uacute:Qte,Ucirc:Wte,ucirc:Kte,Ugrave:Yte,ugrave:Xte,uml:Zte,Uuml:Jte,uuml:ene,Yacute:tne,yacute:nne,yen:rne,yuml:sne},ine="&",ane="'",lne=">",cne="<",une='"',Tv={amp:ine,apos:ane,gt:lne,lt:cne,quot:une};var md={};const fne={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var dne=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(md,"__esModule",{value:!0});var zh=dne(fne),pne=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function hne(e){return e>=55296&&e<=57343||e>1114111?"�":(e in zh.default&&(e=zh.default[e]),pne(e))}md.default=hne;var bl=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(En,"__esModule",{value:!0});En.decodeHTML=En.decodeHTMLStrict=En.decodeXML=void 0;var Gu=bl(_v),mne=bl(one),gne=bl(Tv),qh=bl(md),yne=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;En.decodeXML=Nv(gne.default);En.decodeHTMLStrict=Nv(Gu.default);function Nv(e){var t=Av(e);return function(n){return String(n).replace(yne,t)}}var Uh=function(e,t){return e<t?1:-1};En.decodeHTML=function(){for(var e=Object.keys(mne.default).sort(Uh),t=Object.keys(Gu.default).sort(Uh),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),o=Av(Gu.default);function i(a){return a.substr(-1)!==";"&&(a+=";"),o(a)}return function(a){return String(a).replace(s,i)}}();function Av(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?qh.default(parseInt(n.substr(3),16)):qh.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}var wt={},Cv=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wt,"__esModule",{value:!0});wt.escapeUTF8=wt.escape=wt.encodeNonAsciiHTML=wt.encodeHTML=wt.encodeXML=void 0;var vne=Cv(Tv),jv=Lv(vne.default),Rv=Dv(jv);wt.encodeXML=Mv(jv);var xne=Cv(_v),gd=Lv(xne.default),bne=Dv(gd);wt.encodeHTML=kne(gd,bne);wt.encodeNonAsciiHTML=Mv(gd);function Lv(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function Dv(e){for(var t=[],n=[],r=0,s=Object.keys(e);r<s.length;r++){var o=s[r];o.length===1?t.push("\\"+o):n.push(o)}t.sort();for(var i=0;i<t.length-1;i++){for(var a=i;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var l=1+a-i;l<3||t.splice(i,l,t[i]+"-"+t[a])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var Ov=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,wne=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function wl(e){return"&#x"+(e.length>1?wne(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function kne(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(Ov,wl)}}var Pv=new RegExp(Rv.source+"|"+Ov.source,"g");function Sne(e){return e.replace(Pv,wl)}wt.escape=Sne;function Ene(e){return e.replace(Rv,wl)}wt.escapeUTF8=Ene;function Mv(e){return function(t){return t.replace(Pv,function(n){return e[n]||wl(n)})}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=En,n=wt;function r(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(l)}e.decode=r;function s(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(l)}e.decodeStrict=s;function o(l,u){return(!u||u<=0?n.encodeXML:n.encodeHTML)(l)}e.encode=o;var i=wt;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return i.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return i.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var a=En;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})})(Ev);function _ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nne(e,t,n){return t&&Tne(e.prototype,t),e}function Iv(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ane(e))||t){n&&(e=n);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
223
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){i=!0,a=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}}}function Ane(e,t){if(e){if(typeof e=="string")return Hh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hh(e,t)}}function Hh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Cne=Ev,Bh={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:jne()};function jne(){var e={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return na(0,5).forEach(function(t){na(0,5).forEach(function(n){na(0,5).forEach(function(r){return Rne(t,n,r,e)})})}),na(0,23).forEach(function(t){var n=t+232,r=$v(t*10+8);e[n]="#"+r+r+r}),e}function Rne(e,t,n,r){var s=16+e*36+t*6+n,o=e>0?e*40+55:0,i=t>0?t*40+55:0,a=n>0?n*40+55:0;r[s]=Lne([o,i,a])}function $v(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Lne(e){var t=[],n=Iv(e),r;try{for(n.s();!(r=n.n()).done;){var s=r.value;t.push($v(s))}}catch(o){n.e(o)}finally{n.f()}return"#"+t.join("")}function Gh(e,t,n,r){var s;return t==="text"?s=Mne(n,r):t==="display"?s=One(e,n,r):t==="xterm256Foreground"?s=wa(e,r.colors[n]):t==="xterm256Background"?s=ka(e,r.colors[n]):t==="rgb"&&(s=Dne(e,n)),s}function Dne(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.substring(5).split(";"),s=r.map(function(o){return("0"+Number(o).toString(16)).substr(-2)}).join("");return ba(e,(n===38?"color:#":"background-color:#")+s)}function One(e,t,n){t=parseInt(t,10);var r={"-1":function(){return"<br/>"},0:function(){return e.length&&Fv(e)},1:function(){return Bn(e,"b")},3:function(){return Bn(e,"i")},4:function(){return Bn(e,"u")},8:function(){return ba(e,"display:none")},9:function(){return Bn(e,"strike")},22:function(){return ba(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Qh(e,"i")},24:function(){return Qh(e,"u")},39:function(){return wa(e,n.fg)},49:function(){return ka(e,n.bg)},53:function(){return ba(e,"text-decoration:overline")}},s;return r[t]?s=r[t]():4<t&&t<7?s=Bn(e,"blink"):29<t&&t<38?s=wa(e,n.colors[t-30]):39<t&&t<48?s=ka(e,n.colors[t-40]):89<t&&t<98?s=wa(e,n.colors[8+(t-90)]):99<t&&t<108&&(s=ka(e,n.colors[8+(t-100)])),s}function Fv(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(n){return"</"+n+">"}).join("")}function na(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function Pne(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Vh(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function Mne(e,t){return t.escapeXML?Cne.encodeXML(e):e}function Bn(e,t,n){return n||(n=""),e.push(t),"<".concat(t).concat(n?' style="'.concat(n,'"'):"",">")}function ba(e,t){return Bn(e,"span",t)}function wa(e,t){return Bn(e,"span","color:"+t)}function ka(e,t){return Bn(e,"span","background-color:"+t)}function Qh(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return"</"+t+">"}function Ine(e,t,n){var r=!1,s=3;function o(){return""}function i(w,S){return n("xterm256Foreground",S),""}function a(w,S){return n("xterm256Background",S),""}function l(w){return t.newline?n("display",-1):n("text",w),""}function u(w,S){r=!0,S.trim().length===0&&(S="0"),S=S.trimRight(";").split(";");var N=Iv(S),A;try{for(N.s();!(A=N.n()).done;){var j=A.value;n("display",j)}}catch(E){N.e(E)}finally{N.f()}return""}function d(w){return n("text",w),""}function f(w){return n("rgb",w),""}var p=[{pattern:/^\x08+/,sub:o},{pattern:/^\x1b\[[012]?K/,sub:o},{pattern:/^\x1b\[\(B/,sub:o},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:f},{pattern:/^\x1b\[38;5;(\d+)m/,sub:i},{pattern:/^\x1b\[48;5;(\d+)m/,sub:a},{pattern:/^\n/,sub:l},{pattern:/^\r+\n/,sub:l},{pattern:/^\r/,sub:l},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:u},{pattern:/^\x1b\[\d?J/,sub:o},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:o},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:o},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:d}];function y(w,S){S>s&&r||(r=!1,e=e.replace(w.pattern,w.sub))}var k=[],x=e,T=x.length;e:for(;T>0;){for(var g=0,h=0,m=p.length;h<m;g=++h){var v=p[g];if(y(v,g),e.length!==T){T=e.length;continue e}}if(e.length===T)break;k.push(0),T=e.length}return k}function $ne(e,t,n){return t!=="text"&&(e=e.filter(Pne(Vh(n))),e.push({token:t,data:n,category:Vh(n)})),e}var Fne=function(){function e(t){_ne(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Bh.colors,t.colors)),this.options=Object.assign({},Bh,t),this.stack=[],this.stickyStack=[]}return Nne(e,[{key:"toHtml",value:function(n){var r=this;n=typeof n=="string"?[n]:n;var s=this.stack,o=this.options,i=[];return this.stickyStack.forEach(function(a){var l=Gh(s,a.token,a.data,o);l&&i.push(l)}),Ine(n.join(""),o,function(a,l){var u=Gh(s,a,l,o);u&&i.push(u),o.stream&&(r.stickyStack=$ne(r.stickyStack,a,l))}),s.length&&i.push(Fv(s)),i.join("")}}]),e}(),zne=Fne;const zv=rf(zne);var qv={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
224
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
225
|
-
*
|
|
226
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
227
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
228
|
-
* @namespace
|
|
229
|
-
* @public
|
|
230
|
-
*/var n=function(r){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function h(m){return m instanceof l?new l(m.type,h(m.content),m.alias):Array.isArray(m)?m.map(h):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(h){return Object.prototype.toString.call(h).slice(8,-1)},objId:function(h){return h.__id||Object.defineProperty(h,"__id",{value:++o}),h.__id},clone:function h(m,v){v=v||{};var w,S;switch(a.util.type(m)){case"Object":if(S=a.util.objId(m),v[S])return v[S];w={},v[S]=w;for(var N in m)m.hasOwnProperty(N)&&(w[N]=h(m[N],v));return w;case"Array":return S=a.util.objId(m),v[S]?v[S]:(w=[],v[S]=w,m.forEach(function(A,j){w[j]=h(A,v)}),w);default:return m}},getLanguage:function(h){for(;h;){var m=s.exec(h.className);if(m)return m[1].toLowerCase();h=h.parentElement}return"none"},setLanguage:function(h,m){h.className=h.className.replace(RegExp(s,"gi"),""),h.classList.add("language-"+m)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(w){var h=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(h){var m=document.getElementsByTagName("script");for(var v in m)if(m[v].src==h)return m[v]}return null}},isActive:function(h,m,v){for(var w="no-"+m;h;){var S=h.classList;if(S.contains(m))return!0;if(S.contains(w))return!1;h=h.parentElement}return!!v}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(h,m){var v=a.util.clone(a.languages[h]);for(var w in m)v[w]=m[w];return v},insertBefore:function(h,m,v,w){w=w||a.languages;var S=w[h],N={};for(var A in S)if(S.hasOwnProperty(A)){if(A==m)for(var j in v)v.hasOwnProperty(j)&&(N[j]=v[j]);v.hasOwnProperty(A)||(N[A]=S[A])}var E=w[h];return w[h]=N,a.languages.DFS(a.languages,function(D,H){H===E&&D!=h&&(this[D]=N)}),N},DFS:function h(m,v,w,S){S=S||{};var N=a.util.objId;for(var A in m)if(m.hasOwnProperty(A)){v.call(m,A,m[A],w||A);var j=m[A],E=a.util.type(j);E==="Object"&&!S[N(j)]?(S[N(j)]=!0,h(j,v,null,S)):E==="Array"&&!S[N(j)]&&(S[N(j)]=!0,h(j,v,A,S))}}},plugins:{},highlightAll:function(h,m){a.highlightAllUnder(document,h,m)},highlightAllUnder:function(h,m,v){var w={callback:v,container:h,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),a.hooks.run("before-all-elements-highlight",w);for(var S=0,N;N=w.elements[S++];)a.highlightElement(N,m===!0,w.callback)},highlightElement:function(h,m,v){var w=a.util.getLanguage(h),S=a.languages[w];a.util.setLanguage(h,w);var N=h.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(N,w);var A=h.textContent,j={element:h,language:w,grammar:S,code:A};function E(H){j.highlightedCode=H,a.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,a.hooks.run("after-highlight",j),a.hooks.run("complete",j),v&&v.call(j.element)}if(a.hooks.run("before-sanity-check",j),N=j.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!j.code){a.hooks.run("complete",j),v&&v.call(j.element);return}if(a.hooks.run("before-highlight",j),!j.grammar){E(a.util.encode(j.code));return}if(m&&r.Worker){var D=new Worker(a.filename);D.onmessage=function(H){E(H.data)},D.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else E(a.highlight(j.code,j.grammar,j.language))},highlight:function(h,m,v){var w={code:h,grammar:m,language:v};if(a.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=a.tokenize(w.code,w.grammar),a.hooks.run("after-tokenize",w),l.stringify(a.util.encode(w.tokens),w.language)},tokenize:function(h,m){var v=m.rest;if(v){for(var w in v)m[w]=v[w];delete m.rest}var S=new f;return p(S,S.head,h),d(h,S,m,S.head,0),k(S)},hooks:{all:{},add:function(h,m){var v=a.hooks.all;v[h]=v[h]||[],v[h].push(m)},run:function(h,m){var v=a.hooks.all[h];if(!(!v||!v.length))for(var w=0,S;S=v[w++];)S(m)}},Token:l};r.Prism=a;function l(h,m,v,w){this.type=h,this.content=m,this.alias=v,this.length=(w||"").length|0}l.stringify=function h(m,v){if(typeof m=="string")return m;if(Array.isArray(m)){var w="";return m.forEach(function(E){w+=h(E,v)}),w}var S={type:m.type,content:h(m.content,v),tag:"span",classes:["token",m.type],attributes:{},language:v},N=m.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(S.classes,N):S.classes.push(N)),a.hooks.run("wrap",S);var A="";for(var j in S.attributes)A+=" "+j+'="'+(S.attributes[j]||"").replace(/"/g,""")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+A+">"+S.content+"</"+S.tag+">"};function u(h,m,v,w){h.lastIndex=m;var S=h.exec(v);if(S&&w&&S[1]){var N=S[1].length;S.index+=N,S[0]=S[0].slice(N)}return S}function d(h,m,v,w,S,N){for(var A in v)if(!(!v.hasOwnProperty(A)||!v[A])){var j=v[A];j=Array.isArray(j)?j:[j];for(var E=0;E<j.length;++E){if(N&&N.cause==A+","+E)return;var D=j[E],H=D.inside,V=!!D.lookbehind,B=!!D.greedy,se=D.alias;if(B&&!D.pattern.global){var Ge=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,Ge+"g")}for(var Ve=D.pattern||D,L=w.next,z=S;L!==m.tail&&!(N&&z>=N.reach);z+=L.value.length,L=L.next){var G=L.value;if(m.length>h.length)return;if(!(G instanceof l)){var q=1,K;if(B){if(K=u(Ve,z,h,V),!K||K.index>=h.length)break;var Ie=K.index,Kt=K.index+K[0].length,_e=z;for(_e+=L.value.length;Ie>=_e;)L=L.next,_e+=L.value.length;if(_e-=L.value.length,z=_e,L.value instanceof l)continue;for(var ht=L;ht!==m.tail&&(_e<Kt||typeof ht.value=="string");ht=ht.next)q++,_e+=ht.value.length;q--,G=h.slice(z,_e),K.index-=z}else if(K=u(Ve,0,G,V),!K)continue;var Ie=K.index,mt=K[0],It=G.slice(0,Ie),yr=G.slice(Ie+mt.length),$t=z+G.length;N&&$t>N.reach&&(N.reach=$t);var te=L.prev;It&&(te=p(m,te,It),z+=It.length),y(m,te,q);var pn=new l(A,H?a.tokenize(mt,H):mt,se,mt);if(L=p(m,te,pn),yr&&p(m,L,yr),q>1){var oe={cause:A+","+E,reach:$t};d(h,m,v,L.prev,z,oe),N&&oe.reach>N.reach&&(N.reach=oe.reach)}}}}}}function f(){var h={value:null,prev:null,next:null},m={value:null,prev:h,next:null};h.next=m,this.head=h,this.tail=m,this.length=0}function p(h,m,v){var w=m.next,S={value:v,prev:m,next:w};return m.next=S,w.prev=S,h.length++,S}function y(h,m,v){for(var w=m.next,S=0;S<v&&w!==h.tail;S++)w=w.next;m.next=w,w.prev=m,h.length-=S}function k(h){for(var m=[],v=h.head.next;v!==h.tail;)m.push(v.value),v=v.next;return m}if(!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(h){var m=JSON.parse(h.data),v=m.language,w=m.code,S=m.immediateClose;r.postMessage(a.highlight(w,a.languages[v],v)),S&&r.close()},!1)),a;var x=a.util.currentScript();x&&(a.filename=x.src,x.hasAttribute("data-manual")&&(a.manual=!0));function T(){a.manual||a.highlightAll()}if(!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",T):window.requestAnimationFrame?window.requestAnimationFrame(T):window.setTimeout(T,16)}return a}(t);e.exports&&(e.exports=n),typeof fr<"u"&&(fr.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(s,o){var i={};i["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};a["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var l={};l[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:a},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,s){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:n.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",s=function(x,T){return"✖ Error "+x+" while fetching file: "+T},o="✖ Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",l="loading",u="loaded",d="failed",f="pre[data-src]:not(["+a+'="'+u+'"]):not(['+a+'="'+l+'"])';function p(x,T,g){var h=new XMLHttpRequest;h.open("GET",x,!0),h.onreadystatechange=function(){h.readyState==4&&(h.status<400&&h.responseText?T(h.responseText):h.status>=400?g(s(h.status,h.statusText)):g(o))},h.send(null)}function y(x){var T=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(T){var g=Number(T[1]),h=T[2],m=T[3];return h?m?[g,Number(m)]:[g,void 0]:[g,g]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+f}),n.hooks.add("before-sanity-check",function(x){var T=x.element;if(T.matches(f)){x.code="",T.setAttribute(a,l);var g=T.appendChild(document.createElement("CODE"));g.textContent=r;var h=T.getAttribute("data-src"),m=x.language;if(m==="none"){var v=(/\.(\w+)$/.exec(h)||[,"none"])[1];m=i[v]||v}n.util.setLanguage(g,m),n.util.setLanguage(T,m);var w=n.plugins.autoloader;w&&w.loadLanguages(m),p(h,function(S){T.setAttribute(a,u);var N=y(T.getAttribute("data-range"));if(N){var A=S.split(/\r\n?|\n/g),j=N[0],E=N[1]==null?A.length:N[1];j<0&&(j+=A.length),j=Math.max(0,Math.min(j-1,A.length)),E<0&&(E+=A.length),E=Math.max(0,Math.min(E,A.length)),S=A.slice(j,E).join(`
|
|
231
|
-
`),T.hasAttribute("data-start")||T.setAttribute("data-start",String(j+1))}g.textContent=S,n.highlightElement(g)},function(S){T.setAttribute(a,d),g.textContent=S})}}),n.plugins.fileHighlight={highlight:function(T){for(var g=(T||document).querySelectorAll(f),h=0,m;m=g[h++];)n.highlightElement(m)}};var k=!1;n.fileHighlight=function(){k||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),k=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(qv);var qne=qv.exports;const tl=rf(qne);(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<s.length;i++)o[s[i]]=e.languages.bash[s[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(a,l){l=(l||"").replace(/m/g,"")+"m";var u=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return a});return RegExp(u,l)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism);(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+o+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+o+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(f){d!==f&&(e.languages.markdown[d].inside.content.inside[f]=e.languages.markdown[f])})}),e.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function f(p){if(!(!p||typeof p=="string"))for(var y=0,k=p.length;y<k;y++){var x=p[y];if(x.type!=="code"){f(x.content);continue}var T=x.content[1],g=x.content[3];if(T&&g&&T.type==="code-language"&&g.type==="code-block"&&typeof T.content=="string"){var h=T.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");h=(/[a-z][\w-]*/i.exec(h)||[""])[0].toLowerCase();var m="language-"+h;g.alias?typeof g.alias=="string"?g.alias=[g.alias,m]:g.alias.push(m):g.alias=[m]}}}f(d.tokens)}),e.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,y=d.classes.length;p<y;p++){var k=d.classes[p],x=/language-(.+)/.exec(k);if(x){f=x[1];break}}var T=e.languages[f];if(T)d.content=e.highlight(u(d.content),T,f);else if(f&&f!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=g,e.plugins.autoloader.loadLanguages(f,function(){var h=document.getElementById(g);h&&(h.innerHTML=e.highlight(h.textContent,e.languages[f],f))})}}});var i=RegExp(e.languages.markup.tag.pattern.source,"gi"),a={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;function u(d){var f=d.replace(i,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(p,y){if(y=y.toLowerCase(),y[0]==="#"){var k;return y[1]==="x"?k=parseInt(y.slice(2),16):k=Number(y.slice(1)),l(k)}else{var x=a[y];return x||p}}),f}e.languages.md=e.languages.markdown})(Prism);const Une=/\{\{[^{}\n]+\}\}/;for(const e of["markdown","yaml"]){const t=tl.languages[e];t&&!t["template-block"]&&(tl.languages[e]={"template-block":Une,...t})}const Hne=new zv({fg:"#c9d1d9",bg:"transparent",newline:!0,escapeXML:!0}),Bne=/\x1b\[[\d;]*m/;function Vu({code:e,language:t="text",maxHeight:n}){const r=I.useRef(null),s=tl.languages[t]?t:"text",o=I.useMemo(()=>Bne.test(e),[e]);I.useEffect(()=>{r.current&&!o&&tl.highlightElement(r.current)},[e,s,o]);const i=I.useMemo(()=>o?hd.sanitize(Hne.toHtml(e),{ADD_ATTR:["style"]}):"",[e,o]);return c.jsx("pre",{className:"m-0 font-mono text-xs bg-base-300/60 rounded overflow-auto",style:n?{maxHeight:n}:void 0,children:o?c.jsx("code",{className:"!bg-transparent !text-inherit !p-3 block whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:i}}):c.jsx("code",{ref:r,className:`language-${s} !bg-transparent !text-inherit !p-3 block`,children:e})})}function de(e){return e==null?"":typeof e=="string"?e:JSON.stringify(e)}function Ke({children:e,className:t}){return c.jsx("span",{className:_t("font-mono text-xs text-base-content/85",t),children:e})}function Er({k:e,v:t}){return c.jsxs("span",{className:"inline-flex items-baseline gap-1 min-w-0",children:[c.jsxs("span",{className:"text-2xs text-base-content/45",children:[e,":"]}),c.jsx("span",{className:"font-mono text-xs text-base-content/85 truncate",children:t})]})}function _r({children:e,max:t=80}){return e.length<=t?c.jsx(c.Fragment,{children:e}):c.jsxs(c.Fragment,{children:[e.slice(0,t),"…"]})}function mn(e){if(e.length<50)return e;const t=e.split("/");return t.length>3?"…/"+t.slice(-2).join("/"):e}const Gne={terminal:{argsLang:"bash",summary:e=>{const t=de(e.command),n=e.timeout;return c.jsxs("span",{className:"flex items-center gap-2 min-w-0 flex-1",children:[c.jsx(Ke,{className:"truncate flex-1",children:c.jsx(_r,{max:140,children:t})}),n!=null&&c.jsxs("span",{className:"text-2xs text-base-content/40 shrink-0",children:[String(n),"s"]})]})}},read_file:{summary:e=>{const t=mn(de(e.path??e.file_path)),n=e.offset??e.line_start,r=e.limit??e.line_end;return c.jsxs("span",{className:"flex items-center gap-3 min-w-0 flex-1",children:[c.jsx(Ke,{className:"truncate",children:t}),n!=null&&c.jsxs("span",{className:"text-2xs text-base-content/45 shrink-0 font-mono",children:["L",String(n),r!=null?`-${String(r)}`:""]})]})}},write_file:{summary:e=>{const t=mn(de(e.path??e.file_path)),n=de(e.content),r=n?n.split(`
|
|
232
|
-
`).length:0;return c.jsxs("span",{className:"flex items-center gap-3 min-w-0 flex-1",children:[c.jsx(Ke,{className:"truncate flex-1",children:t}),r>0&&c.jsxs("span",{className:"text-2xs text-base-content/45 shrink-0 font-mono",children:[r," lines"]})]})}},edit_file:{summary:e=>{const t=mn(de(e.path??e.file_path)),n=e.replace_all===!0;return c.jsxs("span",{className:"flex items-center gap-3 min-w-0 flex-1",children:[c.jsx(Ke,{className:"truncate flex-1",children:t}),n&&c.jsx("span",{className:"badge badge-xs badge-warning shrink-0",children:"replace_all"})]})}},search_files:{summary:e=>c.jsxs("span",{className:"flex items-center gap-3 min-w-0 flex-1",children:[c.jsx(Er,{k:"pattern",v:c.jsx(_r,{max:60,children:de(e.pattern)})}),e.target!=null&&c.jsx(Er,{k:"in",v:String(e.target)}),e.path!=null&&c.jsx(Er,{k:"path",v:mn(de(e.path))})]})},list_files:{summary:e=>c.jsx(Ke,{className:"truncate",children:mn(de(e.path??"."))})},todo:{summary:e=>{const t=Array.isArray(e.todos)?e.todos:[],n={};for(const r of t){const s=r==null?void 0:r.status;s&&(n[s]=(n[s]??0)+1)}return c.jsxs("span",{className:"flex items-center gap-2 text-2xs shrink-0",children:[c.jsxs("span",{className:"text-base-content/60 font-mono",children:[t.length," todos"]}),Object.entries(n).map(([r,s])=>c.jsxs("span",{className:_t("badge badge-xs",r==="completed"&&"badge-success",r==="in_progress"&&"badge-warning",r==="pending"&&"badge-ghost"),children:[r.replace("_"," ")," ",s]},r))]})}},skill_view:{summary:e=>c.jsx(Er,{k:"name",v:c.jsx(Ke,{children:de(e.name)})})},web_fetch:{summary:e=>c.jsx(Ke,{className:"truncate",children:de(e.url)})},web_search:{summary:e=>c.jsx(Ke,{className:"truncate",children:c.jsx(_r,{max:120,children:de(e.query)})})},bash:{argsLang:"bash",summary:e=>c.jsx(Ke,{className:"truncate",children:c.jsx(_r,{max:140,children:de(e.command)})})},read:{summary:e=>c.jsx(Ke,{className:"truncate",children:mn(de(e.file_path))})},write:{summary:e=>c.jsx(Ke,{className:"truncate",children:mn(de(e.file_path))})},edit:{summary:e=>c.jsx(Ke,{className:"truncate",children:mn(de(e.file_path))})},grep:{summary:e=>c.jsxs("span",{className:"flex items-center gap-3 min-w-0 flex-1",children:[c.jsxs(Ke,{className:"truncate",children:["/",de(e.pattern),"/"]}),e.path?c.jsx(Er,{k:"in",v:mn(de(e.path))}):null]})},glob:{summary:e=>c.jsx(Ke,{children:de(e.pattern)})},task:{summary:e=>c.jsxs("span",{className:"flex items-center gap-2 min-w-0 flex-1",children:[c.jsx("span",{className:"badge badge-xs badge-secondary shrink-0",children:de(e.subagent_type)||"agent"}),c.jsx("span",{className:"text-xs text-base-content/80 truncate",children:c.jsx(_r,{max:100,children:de(e.description)||de(e.prompt)})})]})},todowrite:{summary:e=>{const t=Array.isArray(e.todos)?e.todos:[];return c.jsxs("span",{className:"text-2xs text-base-content/60 font-mono",children:[t.length," todos"]})}},webfetch:{summary:e=>c.jsx(Ke,{className:"truncate",children:de(e.url)})},websearch:{summary:e=>c.jsx(Ke,{className:"truncate",children:de(e.query)})}};function Vne(e,t){const n=Object.entries(t).slice(0,3);return n.length===0?c.jsx("span",{className:"text-2xs text-base-content/40",children:"no params"}):c.jsx("span",{className:"flex items-center gap-3 min-w-0 flex-1 flex-wrap",children:n.map(([r,s])=>c.jsx(Er,{k:r,v:c.jsx(_r,{max:50,children:de(s)})},r))})}function Uv(e){return Gne[e.toLowerCase()]??null}function Qne(e,t){const n=Uv(e);if(n){const s=n.summary(t);if(s)return s}if(e.toLowerCase().startsWith("mcp_"))return Vne(e,t);const r=Object.entries(t).slice(0,2);return r.length===0?c.jsx("span",{className:"text-2xs text-base-content/40",children:"no args"}):c.jsx("span",{className:"flex items-center gap-3 min-w-0 flex-1",children:r.map(([s,o])=>c.jsx(Er,{k:s,v:c.jsx(_r,{max:60,children:de(o)})},s))})}function Wne(e){var t;return((t=Uv(e))==null?void 0:t.argsLang)??"json"}function Kne(e){if(e.toLowerCase().startsWith("mcp_")){const n=e.slice(4).split("_");if(n.length>=2)return{prefix:n[0],label:n.slice(1).join("_")}}return{label:e}}const Yne=["output","stdout","text","content","result","message","error","summary","body"],Xne=["title","name","full_name","login","message","id","number","url","html_url","slug","path","summary"];function Wh(e){for(const t of e.split(`
|
|
233
|
-
`))if(t.trim().length>0)return t.trim();return""}function ls(e){const t=Object.keys(e);if(t.length===0)return"{}";const n=t.slice(0,4).join(", "),r=t.length>4?`, +${t.length-4}`:"";return`{${n}${r}}`}function _c(e){for(const t of Xne){const n=e[t];if(typeof n=="string"&&n.trim()){const r=n.trim();return`${t}: ${r.length>80?r.slice(0,80)+"…":r}`}if(typeof n=="number")return`${t}: ${n}`}return null}function Kh(e){const t=e.trim();if(t.startsWith("{")||t.startsWith("["))try{return JSON.parse(t)}catch{return}}function Qu(e,t=0){if(t>3||e==null)return null;if(typeof e=="string")return e;if(Array.isArray(e)){const n=[];for(const r of e){const s=Qu(r,t+1);s!=null&&n.push(s)}return n.length?n.join(`
|
|
234
|
-
`):null}if(typeof e=="object"){const n=e;for(const r of Yne)if(r in n){const s=Qu(n[r],t+1);if(s!=null&&s.trim())return s}}return null}function Hv(e){if(e==null||e==="")return{kind:"empty"};if(typeof e=="string"){const n=Kh(e);return n!==void 0?{...Hv(n),bytes:e.length}:{kind:"text",preview:Wh(e),lines:e.split(`
|
|
235
|
-
`).length,bytes:e.length}}const t=Qu(e);if(t!=null){const n=typeof e=="string"?e.length:JSON.stringify(e).length,r=Kh(t);if(r!==void 0&&typeof r=="object"&&r!==null){if(Array.isArray(r))return{kind:"array",length:r.length,bytes:n,preview:r[0]&&typeof r[0]=="object"?_c(r[0])??ls(r[0]):String(r[0]??"").slice(0,80)};const s=r;return{kind:"json",preview:_c(s)??ls(s),bytes:n,shape:ls(s)}}return{kind:"text",preview:Wh(t),lines:t.split(`
|
|
236
|
-
`).length,bytes:n}}if(Array.isArray(e)){const n=JSON.stringify(e).length,r=e[0];return{kind:"array",preview:typeof r=="string"?r.slice(0,80):r&&typeof r=="object"?ls(r):"",length:e.length,bytes:n}}if(typeof e=="object"){const n=e;return{kind:"json",preview:_c(n)??ls(n),bytes:JSON.stringify(n).length,shape:ls(n)}}return{kind:"text",preview:String(e),bytes:String(e).length}}function Zne(e){return e<1e3?`${e} B`:e<1e6?`${(e/1e3).toFixed(1)} kB`:`${(e/1e6).toFixed(2)} MB`}const Jne={terminal:"shell",bash:"shell",shell:"shell",read_file:"fs",write_file:"fs",edit_file:"fs",list_files:"fs",search_files:"fs",read:"fs",write:"fs",edit:"fs",grep:"fs",glob:"fs",web_fetch:"web",web_search:"web",webfetch:"web",websearch:"web",todo:"plan",todowrite:"plan",task:"plan",skill_view:"plan"},ere=["commit","branch","repo","repository","pull_request","pr_","issue","comment","push","clone","merge","tag","release"];function tre(e){const t=e.toLowerCase(),n=Jne[t];return n||(t.startsWith("mcp_github_")||t.startsWith("github_")?"git":t.startsWith("mcp_")?ere.some(r=>t.includes(r))?"git":"mcp":"other")}const Bv={shell:{Icon:$k,color:"text-primary",bg:"bg-primary/15"},fs:{Icon:Hu,color:"text-info",bg:"bg-info/15"},git:{Icon:bv,color:"text-warning",bg:"bg-warning/15"},web:{Icon:Rk,color:"text-secondary",bg:"bg-secondary/15"},plan:{Icon:Dk,color:"text-accent",bg:"bg-accent/15"},mcp:{Icon:Ok,color:"text-success",bg:"bg-success/15"},other:{Icon:zk,color:"text-base-content/60",bg:"bg-base-content/10"}},nre={read_file:Hu,read:Hu,write_file:Fh,write:Fh,edit_file:ta,edit:ta,patch:ta,str_replace:ta,list_files:Ck,search_files:wo,grep:wo,glob:wo,web_fetch:$h,webfetch:$h,web_search:wo,websearch:wo,task:Ak,skill_view:Nk,commit:wv,add_issue_comment:Sv},rre=[[/pull_request|pr_/,jk],[/commit/,wv],[/branch/,bv],[/repo|repository/,kv],[/issue|comment/,Sv]];function sre(e,t){const n=e.toLowerCase(),r=nre[n];if(r)return r;if(t==="git"){const s=n.replace(/^mcp_/,"").replace(/^github_/,"").replace(/^git_/,"");for(const[o,i]of rre)if(o.test(s))return i;return kv}return Bv[t].Icon}const Tc=8e3,ore=/\x1b\[[\d;]*m/,ire=new zv({fg:"#c9d1d9",bg:"transparent",escapeXML:!0});function are(e){if(e==null)return{text:"",isJson:!1};if(typeof e=="string")return{text:e,isJson:!1};if(Array.isArray(e)&&e.every(n=>n&&typeof n=="object"&&typeof n.text=="string"))return{text:e.map(n=>n.text).join(`
|
|
237
|
-
`),isJson:!1};try{return{text:JSON.stringify(e,null,2),isJson:!0}}catch{return{text:String(e),isJson:!1}}}function lre({pair:e,isNew:t}){var g,h,m,v,w;const[n,r]=I.useState(!1),[s,o]=I.useState(!1),i=((g=e.use.content)==null?void 0:g.input)??{},a=(m=(h=e.result)==null?void 0:h.content)==null?void 0:m.content,l=((w=(v=e.result)==null?void 0:v.content)==null?void 0:w.is_error)===!0,{text:u,isJson:d}=are(a),f=JSON.stringify(i,null,2),p=Hv(a),y=Kne(e.toolName),k=tre(e.toolName),x=Bv[k],T=sre(e.toolName,k);return c.jsxs(Si,{isNew:t,timestamp:e.timestamp,dense:!0,title:c.jsxs(c.Fragment,{children:[c.jsx(Ei,{Icon:T,color:x.color,bg:x.bg}),c.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider text-base-content/80 shrink-0 font-mono",children:y.prefix?`${y.prefix}.${y.label}`:y.label}),c.jsx("span",{className:"text-base-content/25 shrink-0",children:"-"}),Qne(e.toolName,i)]}),headerRight:c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[e.result==null&&c.jsx("span",{className:"badge badge-xs badge-warning animate-pulse",children:"running"}),l&&c.jsx("span",{className:"badge badge-xs badge-error",children:"error"}),c.jsx("button",{onClick:()=>r(!n),className:"text-2xs text-base-content/45 hover:text-base-content font-mono",title:"Toggle full args",children:n?"- args":"+ args"})]}),children:[n&&c.jsx("div",{className:"mb-2",children:c.jsx(Vu,{code:f,language:Wne(e.toolName),maxHeight:"24rem"})}),e.result&&c.jsxs("div",{children:[c.jsxs("button",{type:"button",disabled:p.kind==="empty",onClick:()=>p.kind!=="empty"&&o(!s),className:_t("w-full flex items-center gap-2 text-left min-w-0",p.kind!=="empty"&&"cursor-pointer hover:text-base-content"),children:[c.jsx("span",{className:_t("text-2xs uppercase tracking-wider font-semibold shrink-0",l?"text-error":"text-base-content/55"),children:l?"Error":"Result"}),p.kind==="empty"?c.jsx("span",{className:"text-2xs text-base-content/40 italic",children:"(empty)"}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-base-content/25 shrink-0",children:"-"}),!s&&(()=>{const S=p.kind==="text"||p.kind==="json"?p.preview:p.kind==="array"?`[${p.length}] ${p.preview?"- "+p.preview:""}`:"";return typeof S=="string"&&ore.test(S)?c.jsx("span",{className:"text-xs font-mono truncate flex-1",dangerouslySetInnerHTML:{__html:hd.sanitize(ire.toHtml(S),{ADD_ATTR:["style"]})}}):c.jsx("span",{className:_t("text-xs font-mono truncate flex-1",p.kind==="json"?"text-base-content/60":"text-base-content/75"),children:S})})(),c.jsxs("span",{className:"ml-auto text-2xs text-base-content/40 font-mono shrink-0 flex items-center gap-2",children:[p.kind==="text"&&p.lines&&p.lines>1&&c.jsxs("span",{children:[p.lines.toLocaleString()," lines"]}),p.kind==="array"&&c.jsxs("span",{children:[p.length.toLocaleString()," items"]}),c.jsx("span",{children:Zne(p.bytes)}),c.jsx("span",{children:s?"-":"+"})]})]})]}),s&&u&&c.jsx("div",{className:"mt-2",children:c.jsx(Vu,{code:u.length>Tc?u.slice(0,Tc)+`
|
|
238
|
-
|
|
239
|
-
... (${(u.length-Tc).toLocaleString()} more chars)`:u,language:d?"json":"text",maxHeight:"32rem"})})]})]})}function Yh({msg:e,isNew:t}){var l,u;const[n,r]=I.useState(!1),s=e.type==="system",o=s?"system":"meta",i=s?Lk:Ik,a=s?((l=e.content)==null?void 0:l.text)??"":JSON.stringify(e.content,null,2);return c.jsx(Si,{isNew:t,timestamp:e.timestamp,dense:!0,title:c.jsxs(c.Fragment,{children:[c.jsx(Ei,{Icon:i,color:"text-base-content/60",bg:"bg-base-content/10"}),c.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider text-base-content/60 shrink-0",children:o}),s&&a&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-base-content/25 shrink-0",children:"-"}),c.jsx("span",{className:"text-2xs text-base-content/60 truncate flex-1",children:(u=a.split(`
|
|
240
|
-
`)[0])==null?void 0:u.slice(0,140)})]})]}),headerRight:c.jsx("button",{onClick:()=>r(!n),className:"text-2xs text-base-content/40 hover:text-base-content font-mono shrink-0",children:n?"-":"+"}),children:n&&c.jsx(Vu,{code:a,language:s?"text":"json",maxHeight:"24rem"})})}function cre({msg:e,isNew:t}){const n=e.content,r=n.staged??[],s=r.length>0;return c.jsx(Si,{isNew:t,timestamp:e.timestamp,dense:!0,title:c.jsxs(c.Fragment,{children:[c.jsx(Ei,{Icon:Pk,color:s?"text-accent":"text-base-content/50",bg:s?"bg-accent/10":"bg-base-content/10"}),c.jsx("span",{className:"shrink-0 text-2xs font-semibold uppercase tracking-wider text-base-content/60",children:"skills"}),n.status&&c.jsx("span",{className:"shrink-0 text-2xs text-base-content/40",children:n.status}),s?c.jsx("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1",children:r.map(o=>c.jsx("span",{className:"rounded border border-accent/30 bg-accent/10 px-1.5 py-0.5 font-mono text-2xs text-accent",children:o},o))}):c.jsx("span",{className:"min-w-0 flex-1 truncate text-2xs text-base-content/40",children:n.discovered!=null?`${n.discovered} available`:""}),s&&n.discovered!=null&&c.jsxs("span",{className:"shrink-0 text-2xs text-base-content/30",children:[n.discovered," available"]})]})})}function Xh({item:e,isNew:t}){var r;if(sv(e))return c.jsx(lre,{pair:e,isNew:t});const n=e.message;return n.type==="system"&&((r=n.metadata)==null?void 0:r.kind)==="skills"?c.jsx(cre,{msg:n,isNew:t}):n.type==="user"?c.jsx(Uk,{msg:n,isNew:t}):n.type==="assistant"?c.jsx(Hk,{msg:n,isNew:t}):n.type==="tool_result"||n.type==="tool_use"?c.jsx(Yh,{msg:n,isNew:t}):c.jsx(Yh,{msg:n,isNew:t})}function ure(e){return typeof e=="number"?new Date(e*1e3).toISOString():typeof e=="string"?e:new Date().toISOString()}function Zh(e){return e==null?"":typeof e=="string"?e:Array.isArray(e)?e.map(t=>{if(typeof t=="string")return t;if(t&&typeof t=="object"){const n=t;if(typeof n.text=="string")return n.text;if(typeof n.content=="string")return n.content}return""}).filter(Boolean).join(`
|
|
241
|
-
`):""}function fre(e){if(!e)return[];let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return[]}return Array.isArray(t)?t.map((n,r)=>{const s=n??{},o=s.function??{};let i={};const a=o.arguments??s.arguments;if(typeof a=="string")try{i=JSON.parse(a)}catch{i={raw:a}}else a&&typeof a=="object"&&(i=a);const l=typeof s.id=="string"?s.id:typeof o.id=="string"?o.id:`tc-${r}`,u=String(o.name??s.name??"tool");return{id:l,name:u,input:i}}):[]}function dre(e){const t=[];for(const n of e){const r=n.role,s=ure(n.timestamp??Date.now()/1e3),o=String(n.id),i=Zh(n.content),a=fre(n.tool_calls),l=n.tool_name?String(n.tool_name):void 0,u=n.tool_call_id?String(n.tool_call_id):void 0;if(r==="user")t.push({id:o,timestamp:s,type:"user",content:{text:i}});else if(r==="assistant"){i&&t.push({id:a.length?`${o}-text`:o,timestamp:s,type:"assistant",content:{text:i,reasoning:Zh(n.reasoning)}});for(let d=0;d<a.length;d++){const f=a[d],p=f.id.startsWith("tc-")?`${o}-tc${d}`:f.id;t.push({id:p,timestamp:s,type:"tool_use",content:{id:p,name:f.name,input:f.input}})}}else if(r==="tool"){let d=i;try{d=JSON.parse(i)}catch{}t.push({id:o,timestamp:s,type:"tool_result",content:{tool_use_id:u,content:d},linkedTo:u,metadata:l?{toolName:l}:void 0})}else r==="system"?n.subtype==="skills_status"?t.push({id:o,timestamp:s,type:"system",content:{kind:"skills",status:n.status,discovered:n.discovered,staged:n.staged??[]},metadata:{kind:"skills"}}):t.push({id:o,timestamp:s,type:"system",content:{text:i}}):r==="session_meta"?t.push({id:o,timestamp:s,type:"meta",content:n}):t.push({id:o,timestamp:s,type:"user",content:{text:i,role:r}})}return t}function pre(e){if(typeof e.role=="string")return[e];const t=e.type;if(!t)return[];if(t==="queue-operation"||t==="summary"||t==="login")return[];if(t==="last-prompt"||t==="attachment")return[];const n=e.timestamp;let r={};if(e.message!=null)if(typeof e.message=="string")try{r=JSON.parse(e.message)}catch{r={content:e.message}}else typeof e.message=="object"&&(r=e.message);if(t==="user"){const s=r.content??e.content;return Array.isArray(s)&&s.some(i=>i.type==="tool_result")?s.filter(i=>i.type==="tool_result").map(i=>{const a=i;return{role:"tool",content:a.content,tool_call_id:a.tool_use_id,timestamp:n}}):[{role:"user",content:s,timestamp:n}]}if(t==="assistant"){if(e.isApiErrorMessage||e.error)return[{role:"system",content:String(e.error??"API error"),timestamp:n}];const s=r.content,o=r.model,i=r.stop_reason;let a,l,u;if(Array.isArray(s)){const d=[],f=[];for(const p of s){const y=p;y.type==="text"&&typeof y.text=="string"?d.push(y.text):y.type==="tool_use"?f.push({id:y.id,function:{name:y.name,arguments:y.input}}):(y.type==="thinking"||y.type==="reasoning")&&(u=y.thinking??y.text)}d.length&&(a=d.join(`
|
|
242
|
-
`)),f.length&&(l=f)}else typeof s=="string"&&(a=s);return!a&&!l?[]:[{role:"assistant",content:a,tool_calls:l,reasoning:u,finish_reason:i,model:o,timestamp:n}]}if(t==="tool_result"){const s=r.content??e.content,o=r.tool_use_id??e.tool_use_id;return[{role:"tool",content:s,tool_call_id:o,timestamp:n}]}if(t==="tool_use")return[{role:"assistant",tool_calls:[{id:r.id??e.uuid,function:{name:r.name,arguments:r.input}}],timestamp:n}];if(t==="system"&&e.subtype==="skills_status"){const s=Array.isArray(e.skills)?e.skills:[],o=s.filter(i=>typeof i.source=="string"&&i.source.includes(".lastlight-skills")).map(i=>String(i.name));return[{role:"system",subtype:"skills_status",status:typeof e.status=="string"?e.status:void 0,discovered:typeof e.discovered=="number"?e.discovered:s.length,staged:o,timestamp:n}]}return[]}async function hre(e){const t=await fetch(e,{headers:{accept:"application/x-ndjson, text/plain"}});if(!t.ok)throw new Error(`${t.status} ${t.statusText} — ${e}`);const n=await t.text(),r=[];let s=0;for(const o of n.split(`
|
|
243
|
-
`)){const i=o.trim();if(i)try{const a=JSON.parse(i);for(const l of pre(a))l.id=s++,r.push(l)}catch{}}return{items:lw(dre(r)),messageCount:r.length}}function mre(e,t=!1){return rd({queryKey:["session-log",e,t],queryFn:()=>hre(e),enabled:!!e,staleTime:t?0:1/0,refetchInterval:t?1500:!1,placeholderData:n=>n})}function gre(e){return!sv(e)&&e.message.type==="user"}function yre({logUrl:e,failToPass:t=[],passToPass:n=[]}){const[r,s]=I.useState(null),[o,i]=I.useState(null);I.useEffect(()=>{if(!e){s("");return}let l=!1;return fetch(e).then(u=>u.ok?u.text():Promise.reject(new Error(`HTTP ${u.status}`))).then(u=>!l&&s(u)).catch(u=>!l&&i(u instanceof Error?u.message:String(u))),()=>{l=!0}},[e]);const a=[...t.map(l=>({...l,kind:"FAIL_TO_PASS"})),...n.map(l=>({...l,kind:"PASS_TO_PASS"}))];return c.jsxs("div",{className:"flex-1 overflow-y-auto bg-base-100",children:[a.length>0&&c.jsxs("div",{className:"space-y-1 border-b border-base-300 px-4 py-3",children:[c.jsxs("div",{className:"mb-1.5 font-mono text-2xs uppercase tracking-wide text-base-content/40",children:["held-out tests (",a.filter(l=>l.pass).length,"/",a.length," passed)"]}),a.map((l,u)=>c.jsxs("div",{className:"flex items-start gap-2 font-mono text-xs leading-5",children:[c.jsx("span",{className:l.pass?"text-success":"text-error",children:l.pass?"✓":"✗"}),c.jsx("span",{className:"shrink-0 text-base-content/40",children:l.kind}),c.jsx("span",{className:"break-all text-base-content/80",children:l.id})]},u))]}),o&&c.jsxs("div",{className:"px-4 py-3 font-mono text-xs text-error",children:["Couldn't load test output: ",o]}),r===null&&!o&&c.jsx("div",{className:"py-16 text-center font-mono text-sm text-base-content/40",children:"loading test output…"}),r!==null&&c.jsx("pre",{className:"whitespace-pre-wrap px-4 py-3 font-mono text-2xs leading-5 text-base-content/80",children:r||"(no test output captured)"})]})}function vre({url:e,live:t}){const{data:n,isLoading:r,error:s}=mre(e,t),o=t?[...(n==null?void 0:n.items)??[]].reverse():(n==null?void 0:n.items)??[];return c.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto bg-base-100 px-4 py-3",children:[s&&c.jsxs("div",{className:"rounded-lg border border-error/40 bg-error/10 px-4 py-3 font-mono text-xs text-error",children:["Couldn't load the session log: ",s.message]}),r&&!n&&c.jsx("div",{className:"py-16 text-center font-mono text-sm text-base-content/40",children:"loading session…"}),!r&&!s&&o.length===0&&c.jsx("div",{className:"py-16 text-center font-mono text-sm text-base-content/40",children:t?"waiting for the agent to start…":"no messages recorded"}),o.map(i=>gre(i)?c.jsx("div",{className:"flex justify-end",children:c.jsx("div",{className:"w-fit min-w-0 max-w-[85%]",children:c.jsx(Xh,{item:i})})},i.id):c.jsx(Xh,{item:i},i.id))]})}function Nc({active:e,onClick:t,label:n,ok:r}){return c.jsxs("button",{onClick:t,className:"flex items-center gap-1.5 whitespace-nowrap rounded-md border px-2.5 py-1 font-mono text-2xs "+(e?"border-info bg-info/15 text-info":"border-base-300 bg-base-200 text-base-content/60 hover:border-info hover:text-base-content"),children:[r!==void 0&&c.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full "+(r?"bg-success":"bg-error")}),n]})}function xre({source:e,onClose:t}){I.useEffect(()=>{const f=p=>{p.key==="Escape"&&t()};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[t]);const[n,r]=I.useState(0),[s,o]=I.useState("0"),i=e.kind==="trials"?e.sessions:[],a=i[Math.min(n,Math.max(0,i.length-1))],l=f=>e.kind==="trials"?e.baseUrl.replace(/scorecard\.json$/,f):f;let u,d=!1;if(e.kind==="live")u=e.url,d=!0;else if(s==="full"&&(a!=null&&a.full))u=l(a.full);else{const f=(a==null?void 0:a.phases[Number(s)])??(a==null?void 0:a.phases[0]);u=f?l(f.log):a!=null&&a.full?l(a.full):""}return c.jsx("div",{className:"fixed inset-0 z-50 flex bg-black/60",onClick:t,children:c.jsxs("div",{className:"m-4 flex h-[calc(100vh-2rem)] w-full max-w-none flex-col overflow-hidden rounded-xl border border-base-300 bg-base-100 shadow-2xl",onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-base-300 bg-base-200/80 px-4 py-2.5",children:[d&&c.jsx("span",{className:"ll-pulse shrink-0 text-2xs font-semibold text-accent",children:"● live"}),c.jsx("span",{className:"truncate font-mono text-xs text-base-content/70",children:e.title}),d&&c.jsx("span",{className:"shrink-0 whitespace-nowrap rounded border border-base-300 bg-base-200 px-1.5 py-0.5 font-mono text-2xs text-base-content/60",children:"↓ newest first"}),(()=>{const f=e.kind==="execution"?e.logUrl:u;return f?c.jsx("a",{href:f,target:"_blank",rel:"noreferrer",className:"ml-auto whitespace-nowrap font-mono text-2xs text-info hover:underline",children:e.kind==="execution"?"raw log":"raw jsonl"}):null})(),c.jsx("button",{onClick:t,className:"btn btn-ghost btn-xs h-6 min-h-0","aria-label":"Close",children:"✕"})]}),e.kind==="trials"&&c.jsxs("div",{className:"flex flex-col gap-2 border-b border-base-300 bg-base-200/40 px-4 py-2",children:[i.length>1&&c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[c.jsx("span",{className:"mr-1 font-mono text-2xs uppercase tracking-wide text-base-content/40",children:"trial"}),i.map((f,p)=>c.jsx(Nc,{active:p===n,onClick:()=>{r(p),o("0")},label:`#${f.trial}`},f.trial))]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[c.jsx("span",{className:"mr-1 font-mono text-2xs uppercase tracking-wide text-base-content/40",children:"phase"}),a==null?void 0:a.phases.map((f,p)=>c.jsx(Nc,{active:s===String(p),onClick:()=>o(String(p)),label:f.phase,ok:f.success},`${f.phase}:${p}`)),(a==null?void 0:a.full)&&c.jsx(Nc,{active:s==="full",onClick:()=>o("full"),label:"full"})]})]}),e.kind==="execution"?c.jsx(yre,{logUrl:e.logUrl,failToPass:e.failToPass,passToPass:e.passToPass}):u?c.jsx(vre,{url:u,live:d},u):c.jsx("div",{className:"flex-1 py-16 text-center font-mono text-sm text-base-content/40",children:"no session log"})]})})}function Jh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jh(Object(n),!0).forEach(function(r){Wu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wu(e,t,n){return(t=function(r){var s=function(o,i){if(typeof o!="object"||o===null)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var l=a.call(o,i);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}(r,"string");return typeof s=="symbol"?s:String(s)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zs(e,t){if(e==null)return{};var n,r,s=function(i,a){if(i==null)return{};var l,u,d={},f=Object.keys(i);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(d[l]=i[l]);return d}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function Wt(e,t){return wre(e)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var o,i,a,l,u=[],d=!0,f=!1;try{if(a=(s=s.call(n)).next,r===0){if(Object(s)!==s)return;d=!1}else for(;!(d=(o=a.call(s)).done)&&(u.push(o.value),u.length!==r);d=!0);}catch(p){f=!0,i=p}finally{try{if(!d&&s.return!=null&&(l=s.return(),Object(l)!==l))return}finally{if(f)throw i}}return u}}(e,t)||yd(e,t)||Sre()}function bre(e){return function(t){if(Array.isArray(t))return Ku(t)}(e)||kre(e)||yd(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
244
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function wre(e){if(Array.isArray(e))return e}function kre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yd(e,t){if(e){if(typeof e=="string")return Ku(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ku(e,t):void 0}}function Ku(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
245
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ere(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yd(e))||t){n&&(e=n);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
246
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,o=l},f:function(){try{i||n.return==null||n.return()}finally{if(a)throw o}}}}var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _i(e,t){return e(t={exports:{}},t.exports),t.exports}var St=_i(function(e){/*!
|
|
247
|
-
Copyright (c) 2018 Jed Watson.
|
|
248
|
-
Licensed under the MIT License (MIT), see
|
|
249
|
-
http://jedwatson.github.io/classnames
|
|
250
|
-
*/(function(){var t={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var o=arguments[s];if(o){var i=typeof o;if(i==="string"||i==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(i==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}),it={hunkClassName:"",lineClassName:"",gutterClassName:"",codeClassName:"",monotonous:!1,gutterType:"default",viewType:"split",widgets:{},hideGutter:!1,selectedChanges:[],generateAnchorID:function(){},generateLineClassName:function(){},renderGutter:function(e){var t=e.renderDefault;return(0,e.wrapInAnchor)(t())},codeEvents:{},gutterEvents:{}},Gv=I.createContext(it),_re=Gv.Provider,Tre=function(){return I.useContext(Gv)},Nre=_i(function(e,t){(function(n){function r(o){var i=o.slice(11),a=null,l=null;switch(i.indexOf('"')){case-1:a=(f=i.split(" "))[0].slice(2),l=f[1].slice(2);break;case 0:var u=i.indexOf('"',2);a=i.slice(3,u);var d=i.indexOf('"',u+1);l=d<0?i.slice(u+4):i.slice(d+3,-1);break;default:var f;a=(f=i.split(" "))[0].slice(2),l=f[1].slice(3,-1)}return{oldPath:a,newPath:l}}var s={parse:function(o){for(var i,a,l,u,d,f=[],p=2,y=o.split(`
|
|
251
|
-
`),k=y.length,x=0;x<k;){var T=y[x];if(T.indexOf("diff --git")===0){i={hunks:[],oldEndingNewLine:!0,newEndingNewLine:!0,oldPath:(d=r(T)).oldPath,newPath:d.newPath},f.push(i);var g,h=null;e:for(;g=y[++x];){var m=g.indexOf(" "),v=m>-1?g.slice(0,m):v;switch(v){case"diff":x--;break e;case"deleted":case"new":var w=g.slice(m+1);w.indexOf("file mode")===0&&(i[v==="new"?"newMode":"oldMode"]=w.slice(10));break;case"similarity":i.similarity=parseInt(g.split(" ")[2],10);break;case"index":var S=g.slice(m+1).split(" "),N=S[0].split("..");i.oldRevision=N[0],i.newRevision=N[1],S[1]&&(i.oldMode=i.newMode=S[1]);break;case"copy":case"rename":var A=g.slice(m+1);A.indexOf("from")===0?i.oldPath=A.slice(5):i.newPath=A.slice(3),h=v;break;case"---":var j=g.slice(m+1),E=y[++x].slice(4);j==="/dev/null"?(E=E.slice(2),h="add"):E==="/dev/null"?(j=j.slice(2),h="delete"):(h="modify",j=j.slice(2),E=E.slice(2)),j&&(i.oldPath=j),E&&(i.newPath=E),p=5;break e}}i.type=h||"modify"}else if(T.indexOf("Binary")===0)i.isBinary=!0,i.type=T.indexOf("/dev/null and")>=0?"add":T.indexOf("and /dev/null")>=0?"delete":"modify",p=2,i=null;else if(p===5)if(T.indexOf("@@")===0){var D=/^@@\s+-([0-9]+)(,([0-9]+))?\s+\+([0-9]+)(,([0-9]+))?/.exec(T);a={content:T,oldStart:D[1]-0,newStart:D[4]-0,oldLines:D[3]-0||1,newLines:D[6]-0||1,changes:[]},i.hunks.push(a),l=a.oldStart,u=a.newStart}else{var H=T.slice(0,1),V={content:T.slice(1)};switch(H){case"+":V.type="insert",V.isInsert=!0,V.lineNumber=u,u++;break;case"-":V.type="delete",V.isDelete=!0,V.lineNumber=l,l++;break;case" ":V.type="normal",V.isNormal=!0,V.oldLineNumber=l,V.newLineNumber=u,l++,u++;break;case"\\":var B=a.changes[a.changes.length-1];B.isDelete||(i.newEndingNewLine=!1),B.isInsert||(i.oldEndingNewLine=!1)}V.type&&a.changes.push(V)}x++}return f}};e.exports=s})()});function ro(e){return e.type==="insert"}function _n(e){return e.type==="delete"}function ii(e){return e.type==="normal"}function Are(e,t){var n=t.nearbySequences==="zip"?function(r){var s=r.reduce(function(o,i,a){var l=Wt(o,3),u=l[0],d=l[1],f=l[2];return d?ro(i)&&f>=0?(u.splice(f+1,0,i),[u,i,f+2]):(u.push(i),[u,i,_n(i)&&_n(d)?f:a]):(u.push(i),[u,i,_n(i)?a:-1])},[[],null,-1]);return Wt(s,1)[0]}(e.changes):e.changes;return Ee(Ee({},e),{},{isPlain:!1,changes:n})}function Cre(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(r){if(r.startsWith("diff --git"))return r;var s=r.indexOf(`
|
|
252
|
-
`),o=r.indexOf(`
|
|
253
|
-
`,s+1),i=r.slice(0,s),a=r.slice(s+1,o),l=i.split(" ").slice(1,-3).join(" "),u=a.split(" ").slice(1,-3).join(" ");return["diff --git a/".concat(l," b/").concat(u),"index 1111111..2222222 100644","--- a/".concat(l),"+++ b/".concat(u),r.slice(o+1)].join(`
|
|
254
|
-
`)}(e.trimStart());return Nre.parse(n).map(function(r){return function(s,o){var i=s.hunks.map(function(a){return Are(a,o)});return Ee(Ee({},s),{},{hunks:i})}(r,t)})}function jre(e){return e[0]}function Rre(e){return e[e.length-1]}function Yu(e){return["".concat(e,"Start"),"".concat(e,"Lines")]}function ai(e){return e==="old"?function(t){return ro(t)?-1:ii(t)?t.oldLineNumber:t.lineNumber}:function(t){return _n(t)?-1:ii(t)?t.newLineNumber:t.lineNumber}}function Vv(e,t){return function(n,r){var s=n[e],o=s+n[t];return r>=s&&r<o}}function Lre(e,t){return function(n,r,s){var o=n[e]+n[t],i=r[e];return s>=o&&s<i}}function Qv(e){var t=ai(e),n=function(r){var s=Wt(Yu(r),2),o=Vv(s[0],s[1]);return function(i,a){return i.find(function(l){return o(l,a)})}}(e);return function(r,s){var o=n(r,s);if(o)return o.changes.find(function(i){return t(i)===s})}}function vd(e){var t=e==="old"?"new":"old",n=Wt(Yu(e),2),r=n[0],s=n[1],o=Wt(Yu(t),2),i=o[0],a=o[1],l=ai(e),u=ai(t),d=Vv(r,s),f=Lre(r,s);return function(p,y){var k=jre(p);if(y<k[r]){var x=k[r]-y;return k[i]-x}var T=Rre(p);if(T[r]+T[s]<=y){var g=y-T[r]-T[s];return T[i]+T[a]+g}for(var h=0;h<p.length;h++){var m=p[h],v=p[h+1];if(d(m,y)){var w=m.changes.findIndex(function(D){return l(D)===y}),S=m.changes[w];if(ii(S))return u(S);var N=_n(S)?w+1:w-1,A=m.changes[N];if(!A)return-1;var j=ro(S)?"delete":"insert";return A.type===j?u(A):-1}if(f(m,v,y)){var E=y-m[r]-m[s];return m[i]+m[a]+E}}throw new Error("Unexpected line position ".concat(y))}}var Dre=function(){this.__data__=[],this.size=0},Wv=function(e,t){return e===t||e!=e&&t!=t},kl=function(e,t){for(var n=e.length;n--;)if(Wv(e[n][0],t))return n;return-1},Ore=Array.prototype.splice,Pre=function(e){var t=this.__data__,n=kl(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ore.call(t,n,1),--this.size,!0)},Mre=function(e){var t=this.__data__,n=kl(t,e);return n<0?void 0:t[n][1]},Ire=function(e){return kl(this.__data__,e)>-1},$re=function(e,t){var n=this.__data__,r=kl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function us(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}us.prototype.clear=Dre,us.prototype.delete=Pre,us.prototype.get=Mre,us.prototype.has=Ire,us.prototype.set=$re;var Sl=us,Fre=function(){this.__data__=new Sl,this.size=0},zre=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},qre=function(e){return this.__data__.get(e)},Ure=function(e){return this.__data__.has(e)},Kv=typeof ra=="object"&&ra&&ra.Object===Object&&ra,Hre=typeof self=="object"&&self&&self.Object===Object&&self,Ln=Kv||Hre||Function("return this")(),dn=Ln.Symbol,Yv=Object.prototype,Bre=Yv.hasOwnProperty,Gre=Yv.toString,ko=dn?dn.toStringTag:void 0,Vre=function(e){var t=Bre.call(e,ko),n=e[ko];try{e[ko]=void 0;var r=!0}catch{}var s=Gre.call(e);return r&&(t?e[ko]=n:delete e[ko]),s},Qre=Object.prototype.toString,Wre=function(e){return Qre.call(e)},em=dn?dn.toStringTag:void 0,so=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":em&&em in Object(e)?Vre(e):Wre(e)},xd=function(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")},Xv=function(e){if(!xd(e))return!1;var t=so(e);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},Ac=Ln["__core-js_shared__"],tm=function(){var e=/[^.]+$/.exec(Ac&&Ac.keys&&Ac.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Kre=function(e){return!!tm&&tm in e},Yre=Function.prototype.toString,Xr=function(e){if(e!=null){try{return Yre.call(e)}catch{}try{return e+""}catch{}}return""},Xre=/^\[object .+?Constructor\]$/,Zre=Function.prototype,Jre=Object.prototype,ese=Zre.toString,tse=Jre.hasOwnProperty,nse=RegExp("^"+ese.call(tse).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rse=function(e){return!(!xd(e)||Kre(e))&&(Xv(e)?nse:Xre).test(Xr(e))},sse=function(e,t){return e==null?void 0:e[t]},Zr=function(e,t){var n=sse(e,t);return rse(n)?n:void 0},li=Zr(Ln,"Map"),ci=Zr(Object,"create"),ose=function(){this.__data__=ci?ci(null):{},this.size=0},ise=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ase=Object.prototype.hasOwnProperty,lse=function(e){var t=this.__data__;if(ci){var n=t[e];return n==="__lodash_hash_undefined__"?void 0:n}return ase.call(t,e)?t[e]:void 0},cse=Object.prototype.hasOwnProperty,use=function(e){var t=this.__data__;return ci?t[e]!==void 0:cse.call(t,e)},fse=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ci&&t===void 0?"__lodash_hash_undefined__":t,this};function fs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fs.prototype.clear=ose,fs.prototype.delete=ise,fs.prototype.get=lse,fs.prototype.has=use,fs.prototype.set=fse;var nm=fs,dse=function(){this.size=0,this.__data__={hash:new nm,map:new(li||Sl),string:new nm}},pse=function(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null},El=function(e,t){var n=e.__data__;return pse(t)?n[typeof t=="string"?"string":"hash"]:n.map},hse=function(e){var t=El(this,e).delete(e);return this.size-=t?1:0,t},mse=function(e){return El(this,e).get(e)},gse=function(e){return El(this,e).has(e)},yse=function(e,t){var n=El(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function ds(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ds.prototype.clear=dse,ds.prototype.delete=hse,ds.prototype.get=mse,ds.prototype.has=gse,ds.prototype.set=yse;var _l=ds,vse=function(e,t){var n=this.__data__;if(n instanceof Sl){var r=n.__data__;if(!li||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _l(r)}return n.set(e,t),this.size=n.size,this};function ps(e){var t=this.__data__=new Sl(e);this.size=t.size}ps.prototype.clear=Fre,ps.prototype.delete=zre,ps.prototype.get=qre,ps.prototype.has=Ure,ps.prototype.set=vse;var Sa=ps,xse=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},bse=function(e){return this.__data__.has(e)};function Ea(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new _l;++t<n;)this.add(e[t])}Ea.prototype.add=Ea.prototype.push=xse,Ea.prototype.has=bse;var wse=Ea,kse=function(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Sse=function(e,t){return e.has(t)},Zv=function(e,t,n,r,s,o){var i=1&n,a=e.length,l=t.length;if(a!=l&&!(i&&l>a))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,y=2&n?new wse:void 0;for(o.set(e,t),o.set(t,e);++f<a;){var k=e[f],x=t[f];if(r)var T=i?r(x,k,f,t,e,o):r(k,x,f,e,t,o);if(T!==void 0){if(T)continue;p=!1;break}if(y){if(!kse(t,function(g,h){if(!Sse(y,h)&&(k===g||s(k,g,n,r,o)))return y.push(h)})){p=!1;break}}else if(k!==x&&!s(k,x,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p},rm=Ln.Uint8Array,Ese=function(e){var t=-1,n=Array(e.size);return e.forEach(function(r,s){n[++t]=[s,r]}),n},_se=function(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n},sm=dn?dn.prototype:void 0,Cc=sm?sm.valueOf:void 0,Tse=function(e,t,n,r,s,o,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new rm(e),new rm(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Wv(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Ese;case"[object Set]":var l=1&r;if(a||(a=_se),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;r|=2,i.set(e,t);var d=Zv(a(e),a(t),r,s,o,i);return i.delete(e),d;case"[object Symbol]":if(Cc)return Cc.call(e)==Cc.call(t)}return!1},Nse=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e},jn=Array.isArray,Ase=function(e,t,n){var r=t(e);return jn(e)?r:Nse(r,n(e))},Cse=function(e,t){for(var n=-1,r=e==null?0:e.length,s=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[s++]=i)}return o},jse=function(){return[]},Rse=Object.prototype.propertyIsEnumerable,om=Object.getOwnPropertySymbols,Lse=om?function(e){return e==null?[]:(e=Object(e),Cse(om(e),function(t){return Rse.call(e,t)}))}:jse,Dse=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Js=function(e){return e!=null&&typeof e=="object"},im=function(e){return Js(e)&&so(e)=="[object Arguments]"},Jv=Object.prototype,Ose=Jv.hasOwnProperty,Pse=Jv.propertyIsEnumerable,e0=im(function(){return arguments}())?im:function(e){return Js(e)&&Ose.call(e,"callee")&&!Pse.call(e,"callee")},Mse=function(){return!1},Xu=_i(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,s=r&&r.exports===n?Ln.Buffer:void 0,o=(s?s.isBuffer:void 0)||Mse;e.exports=o}),Ise=/^(?:0|[1-9]\d*)$/,t0=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&(n=="number"||n!="symbol"&&Ise.test(e))&&e>-1&&e%1==0&&e<t},bd=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},fe={};fe["[object Float32Array]"]=fe["[object Float64Array]"]=fe["[object Int8Array]"]=fe["[object Int16Array]"]=fe["[object Int32Array]"]=fe["[object Uint8Array]"]=fe["[object Uint8ClampedArray]"]=fe["[object Uint16Array]"]=fe["[object Uint32Array]"]=!0,fe["[object Arguments]"]=fe["[object Array]"]=fe["[object ArrayBuffer]"]=fe["[object Boolean]"]=fe["[object DataView]"]=fe["[object Date]"]=fe["[object Error]"]=fe["[object Function]"]=fe["[object Map]"]=fe["[object Number]"]=fe["[object Object]"]=fe["[object RegExp]"]=fe["[object Set]"]=fe["[object String]"]=fe["[object WeakMap]"]=!1;var $se=function(e){return Js(e)&&bd(e.length)&&!!fe[so(e)]},Fse=function(e){return function(t){return e(t)}},am=_i(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,s=r&&r.exports===n&&Kv.process,o=function(){try{var i=r&&r.require&&r.require("util").types;return i||s&&s.binding&&s.binding("util")}catch{}}();e.exports=o}),lm=am&&am.isTypedArray,n0=lm?Fse(lm):$se,zse=Object.prototype.hasOwnProperty,qse=function(e,t){var n=jn(e),r=!n&&e0(e),s=!n&&!r&&Xu(e),o=!n&&!r&&!s&&n0(e),i=n||r||s||o,a=i?Dse(e.length,String):[],l=a.length;for(var u in e)!zse.call(e,u)||i&&(u=="length"||s&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||t0(u,l))||a.push(u);return a},Use=Object.prototype,Hse=function(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||Use)},Bse=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Gse=Object.prototype.hasOwnProperty,Vse=function(e){if(!Hse(e))return Bse(e);var t=[];for(var n in Object(e))Gse.call(e,n)&&n!="constructor"&&t.push(n);return t},Qse=function(e){return e!=null&&bd(e.length)&&!Xv(e)},wd=function(e){return Qse(e)?qse(e):Vse(e)},cm=function(e){return Ase(e,wd,Lse)},Wse=Object.prototype.hasOwnProperty,Kse=function(e,t,n,r,s,o){var i=1&n,a=cm(e),l=a.length;if(l!=cm(t).length&&!i)return!1;for(var u=l;u--;){var d=a[u];if(!(i?d in t:Wse.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var y=!0;o.set(e,t),o.set(t,e);for(var k=i;++u<l;){var x=e[d=a[u]],T=t[d];if(r)var g=i?r(T,x,d,t,e,o):r(x,T,d,e,t,o);if(!(g===void 0?x===T||s(x,T,n,r,o):g)){y=!1;break}k||(k=d=="constructor")}if(y&&!k){var h=e.constructor,m=t.constructor;h==m||!("constructor"in e)||!("constructor"in t)||typeof h=="function"&&h instanceof h&&typeof m=="function"&&m instanceof m||(y=!1)}return o.delete(e),o.delete(t),y},Zu=Zr(Ln,"DataView"),Ju=Zr(Ln,"Promise"),ef=Zr(Ln,"Set"),tf=Zr(Ln,"WeakMap"),Yse=Xr(Zu),Xse=Xr(li),Zse=Xr(Ju),Jse=Xr(ef),eoe=Xr(tf),Sr=so;(Zu&&Sr(new Zu(new ArrayBuffer(1)))!="[object DataView]"||li&&Sr(new li)!="[object Map]"||Ju&&Sr(Ju.resolve())!="[object Promise]"||ef&&Sr(new ef)!="[object Set]"||tf&&Sr(new tf)!="[object WeakMap]")&&(Sr=function(e){var t=so(e),n=t=="[object Object]"?e.constructor:void 0,r=n?Xr(n):"";if(r)switch(r){case Yse:return"[object DataView]";case Xse:return"[object Map]";case Zse:return"[object Promise]";case Jse:return"[object Set]";case eoe:return"[object WeakMap]"}return t});var um=Sr,sa="[object Object]",fm=Object.prototype.hasOwnProperty,toe=function(e,t,n,r,s,o){var i=jn(e),a=jn(t),l=i?"[object Array]":um(e),u=a?"[object Array]":um(t),d=(l=l=="[object Arguments]"?sa:l)==sa,f=(u=u=="[object Arguments]"?sa:u)==sa,p=l==u;if(p&&Xu(e)){if(!Xu(t))return!1;i=!0,d=!1}if(p&&!d)return o||(o=new Sa),i||n0(e)?Zv(e,t,n,r,s,o):Tse(e,t,l,n,r,s,o);if(!(1&n)){var y=d&&fm.call(e,"__wrapped__"),k=f&&fm.call(t,"__wrapped__");if(y||k){var x=y?e.value():e,T=k?t.value():t;return o||(o=new Sa),s(x,T,n,r,o)}}return!!p&&(o||(o=new Sa),Kse(e,t,n,r,s,o))},r0=function e(t,n,r,s,o){return t===n||(t==null||n==null||!Js(t)&&!Js(n)?t!=t&&n!=n:toe(t,n,r,s,e,o))},noe=function(e,t,n,r){var s=n.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var i=n[s];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++s<o;){var a=(i=n[s])[0],l=e[a],u=i[1];if(i[2]){if(l===void 0&&!(a in e))return!1}else{var d=new Sa,f;if(!(f===void 0?r0(u,l,3,r,d):f))return!1}}return!0},s0=function(e){return e==e&&!xd(e)},roe=function(e){for(var t=wd(e),n=t.length;n--;){var r=t[n],s=e[r];t[n]=[r,s,s0(s)]}return t},o0=function(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}},soe=function(e){var t=roe(e);return t.length==1&&t[0][2]?o0(t[0][0],t[0][1]):function(n){return n===e||noe(n,e,t)}},kd=function(e){return typeof e=="symbol"||Js(e)&&so(e)=="[object Symbol]"},ooe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ioe=/^\w*$/,Sd=function(e,t){if(jn(e))return!1;var n=typeof e;return!(n!="number"&&n!="symbol"&&n!="boolean"&&e!=null&&!kd(e))||ioe.test(e)||!ooe.test(e)||t!=null&&e in Object(t)};function Ed(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],o=n.cache;if(o.has(s))return o.get(s);var i=e.apply(this,r);return n.cache=o.set(s,i)||o,i};return n.cache=new(Ed.Cache||_l),n}Ed.Cache=_l;var aoe=Ed,loe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,coe=/\\(\\)?/g,uoe=function(e){var t=aoe(e,function(r){return n.size===500&&n.clear(),r}),n=t.cache;return t}(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(loe,function(n,r,s,o){t.push(s?o.replace(coe,"$1"):r||n)}),t}),foe=function(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s},dm=dn?dn.prototype:void 0,pm=dm?dm.toString:void 0,doe=function e(t){if(typeof t=="string")return t;if(jn(t))return foe(t,e)+"";if(kd(t))return pm?pm.call(t):"";var n=t+"";return n=="0"&&1/t==-1/0?"-0":n},poe=function(e){return e==null?"":doe(e)},i0=function(e,t){return jn(e)?e:Sd(e,t)?[e]:uoe(poe(e))},Tl=function(e){if(typeof e=="string"||kd(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t},a0=function(e,t){for(var n=0,r=(t=i0(t,e)).length;e!=null&&n<r;)e=e[Tl(t[n++])];return n&&n==r?e:void 0},hoe=function(e,t,n){var r=e==null?void 0:a0(e,t);return r===void 0?n:r},moe=function(e,t){return e!=null&&t in Object(e)},goe=function(e,t,n){for(var r=-1,s=(t=i0(t,e)).length,o=!1;++r<s;){var i=Tl(t[r]);if(!(o=e!=null&&n(e,i)))break;e=e[i]}return o||++r!=s?o:!!(s=e==null?0:e.length)&&bd(s)&&t0(i,s)&&(jn(e)||e0(e))},yoe=function(e,t){return e!=null&&goe(e,t,moe)},voe=function(e,t){return Sd(e)&&s0(t)?o0(Tl(e),t):function(n){var r=hoe(n,e);return r===void 0&&r===t?yoe(n,e):r0(t,r,3)}},xoe=function(e){return e},boe=function(e){return function(t){return t==null?void 0:t[e]}},woe=function(e){return function(t){return a0(t,e)}},koe=function(e){return Sd(e)?boe(Tl(e)):woe(e)},Soe=function(e){return typeof e=="function"?e:e==null?xoe:typeof e=="object"?jn(e)?voe(e[0],e[1]):soe(e):koe(e)};function ur(e){if(!e)throw new Error("change is not provided");if(ii(e))return"N".concat(e.oldLineNumber);var t=ro(e)?"I":"D";return"".concat(t).concat(e.lineNumber)}vd("old");var _d=ai("old"),Td=ai("new");Qv("old");Qv("new");vd("new");vd("old");var hm=function(){try{var e=Zr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Eoe=function(e,t,n){t=="__proto__"&&hm?hm(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},_oe=function(e){return function(t,n,r){for(var s=-1,o=Object(t),i=r(t),a=i.length;a--;){var l=i[++s];if(n(o[l],l,o)===!1)break}return t}},Toe=_oe(),Noe=function(e,t){return e&&Toe(e,t,wd)},l0=function(e,t){var n={};return t=Soe(t),Noe(e,function(r,s,o){Eoe(n,s,t(r,s,o))}),n},Aoe=["changeKey","text","tokens","renderToken"],mm=function e(t,n){var r=t.type,s=t.value,o=t.markType,i=t.properties,a=t.className,l=t.children,u=function(f){return c.jsx("span",{className:f,children:s||l&&l.map(e)},n)};switch(r){case"text":return s;case"mark":return u("diff-code-mark diff-code-mark-".concat(o));case"edit":return u("diff-code-edit");default:var d=i&&i.className;return u(St(a||d))}};function Coe(e){if(!Array.isArray(e))return!0;if(e.length>1)return!1;if(e.length===1){var t=Wt(e,1)[0];return t.type==="text"&&!t.value}return!0}function joe(e){var t=e.changeKey,n=e.text,r=e.tokens,s=e.renderToken,o=Zs(e,Aoe),i=s?function(a,l){return s(a,mm,l)}:mm;return c.jsx("td",Ee(Ee({},o),{},{"data-change-key":t,children:r?Coe(r)?" ":r.map(i):n||" "}))}var c0=I.memo(joe);function u0(e,t){return function(){var n=t==="old"?_d(e):Td(e);return n===-1?void 0:n}}function f0(e,t){return function(n){return e&&n?c.jsx("a",{href:t?"#"+t:void 0,children:n}):n}}function nl(e,t){return t?function(n){e(),t(n)}:e}function gm(e,t,n,r){return I.useMemo(function(){var s=l0(e,function(o){return function(i){return o&&o(t,i)}});return s.onMouseEnter=nl(n,s.onMouseEnter),s.onMouseLeave=nl(r,s.onMouseLeave),s},[e,n,r,t])}function ym(e,t,n,r,s,o,i,a,l){var u={change:t,side:r,inHoverState:a,renderDefault:u0(t,r),wrapInAnchor:f0(s,o)};return c.jsx("td",Ee(Ee({className:e},i),{},{"data-change-key":n,children:l(u)}))}function Roe(e){var t,n,r,s=e.change,o=e.selected,i=e.tokens,a=e.className,l=e.generateLineClassName,u=e.gutterClassName,d=e.codeClassName,f=e.gutterEvents,p=e.codeEvents,y=e.hideGutter,k=e.gutterAnchor,x=e.generateAnchorID,T=e.renderToken,g=e.renderGutter,h=s.type,m=s.content,v=ur(s),w=(t=Wt(I.useState(!1),2),n=t[0],r=t[1],[n,I.useCallback(function(){return r(!0)},[]),I.useCallback(function(){return r(!1)},[])]),S=Wt(w,3),N=S[0],A=S[1],j=S[2],E=I.useMemo(function(){return{change:s}},[s]),D=gm(f,E,A,j),H=gm(p,E,A,j),V=x(s),B=l({changes:[s],defaultGenerate:function(){return a}}),se=St("diff-gutter","diff-gutter-".concat(h),u,{"diff-gutter-selected":o}),Ge=St("diff-code","diff-code-".concat(h),d,{"diff-code-selected":o});return c.jsxs("tr",{id:V,className:St("diff-line",B),children:[!y&&ym(se,s,v,"old",k,V,D,N,g),!y&&ym(se,s,v,"new",k,V,D,N,g),c.jsx(c0,Ee({className:Ge,changeKey:v,text:m,tokens:i,renderToken:T},H))]})}var Loe=I.memo(Roe);function Doe(e){var t=e.hideGutter,n=e.element;return c.jsx("tr",{className:"diff-widget",children:c.jsx("td",{colSpan:t?1:3,className:"diff-widget-content",children:n})})}var Ooe=["hideGutter","selectedChanges","tokens","lineClassName"],Poe=["hunk","widgets","className"];function Moe(e){var t=e.hunk,n=e.widgets,r=e.className,s=Zs(e,Poe),o=function(i,a){return i.reduce(function(l,u){var d=ur(u);l.push(["change",d,u]);var f=a[d];return f&&l.push(["widget",d,f]),l},[])}(t.changes,n);return c.jsx("tbody",{className:St("diff-hunk",r),children:o.map(function(i){return function(a,l){var u=Wt(a,3),d=u[0],f=u[1],p=u[2],y=l.hideGutter,k=l.selectedChanges,x=l.tokens,T=l.lineClassName,g=Zs(l,Ooe);if(d==="change"){var h=_n(p)?"old":"new",m=_n(p)?_d(p):Td(p),v=x?x[h][m-1]:null;return c.jsx(Loe,Ee({className:T,change:p,hideGutter:y,selected:k.includes(f),tokens:v},g),"change".concat(f))}return d==="widget"?c.jsx(Doe,{hideGutter:y,element:p},"widget".concat(f)):null}(i,s)})})}var d0=0;function oa(e,t,n,r){var s=I.useCallback(function(){return t(e)},[e,t]),o=I.useCallback(function(){return t("")},[t]);return I.useMemo(function(){var i=l0(r,function(a){return function(l){return a&&a({side:e,change:n},l)}});return i.onMouseEnter=nl(s,i.onMouseEnter),i.onMouseLeave=nl(o,i.onMouseLeave),i},[n,r,s,e,o])}function jc(e){var t=e.change,n=e.side,r=e.selected,s=e.tokens,o=e.gutterClassName,i=e.codeClassName,a=e.gutterEvents,l=e.codeEvents,u=e.anchorID,d=e.gutterAnchor,f=e.gutterAnchorTarget,p=e.hideGutter,y=e.hover,k=e.renderToken,x=e.renderGutter;if(!t){var T=St("diff-gutter","diff-gutter-omit",o),g=St("diff-code","diff-code-omit",i);return[!p&&c.jsx("td",{className:T},"gutter"),c.jsx("td",{className:g},"code")]}var h=t.type,m=t.content,v=ur(t),w=n===d0?"old":"new",S=Ee({id:u||void 0,className:St("diff-gutter","diff-gutter-".concat(h),Wu({"diff-gutter-selected":r},"diff-line-hover-"+w,y),o),children:x({change:t,side:w,inHoverState:y,renderDefault:u0(t,w),wrapInAnchor:f0(d,f)})},a),N=St("diff-code","diff-code-".concat(h),Wu({"diff-code-selected":r},"diff-line-hover-"+w,y),i);return[!p&&c.jsx("td",Ee(Ee({},S),{},{"data-change-key":v}),"gutter"),c.jsx(c0,Ee({className:N,changeKey:v,text:m,tokens:s,renderToken:k},l),"code")]}function Ioe(e){var t=e.className,n=e.oldChange,r=e.newChange,s=e.oldSelected,o=e.newSelected,i=e.oldTokens,a=e.newTokens,l=e.monotonous,u=e.gutterClassName,d=e.codeClassName,f=e.gutterEvents,p=e.codeEvents,y=e.hideGutter,k=e.generateAnchorID,x=e.generateLineClassName,T=e.gutterAnchor,g=e.renderToken,h=e.renderGutter,m=Wt(I.useState(""),2),v=m[0],w=m[1],S=oa("old",w,n,f),N=oa("new",w,r,f),A=oa("old",w,n,p),j=oa("new",w,r,p),E=n&&k(n),D=r&&k(r),H=x({changes:[n,r],defaultGenerate:function(){return t}}),V={monotonous:l,hideGutter:y,gutterClassName:u,codeClassName:d,gutterEvents:f,codeEvents:p,renderToken:g,renderGutter:h},B=Ee(Ee({},V),{},{change:n,side:d0,selected:s,tokens:i,gutterEvents:S,codeEvents:A,anchorID:E,gutterAnchor:T,gutterAnchorTarget:E,hover:v==="old"}),se=Ee(Ee({},V),{},{change:r,side:1,selected:o,tokens:a,gutterEvents:N,codeEvents:j,anchorID:n===r?null:D,gutterAnchor:T,gutterAnchorTarget:n===r?E:D,hover:v==="new"});if(l)return c.jsx("tr",{className:St("diff-line",H),children:jc(n?B:se)});var Ge=function(Ve,L){return Ve&&!L?"diff-line-old-only":!Ve&&L?"diff-line-new-only":Ve===L?"diff-line-normal":"diff-line-compare"}(n,r);return c.jsxs("tr",{className:St("diff-line",Ge,H),children:[jc(B),jc(se)]})}var $oe=I.memo(Ioe);function Foe(e){var t=e.hideGutter,n=e.oldElement,r=e.newElement;return e.monotonous?c.jsx("tr",{className:"diff-widget",children:c.jsx("td",{colSpan:t?1:2,className:"diff-widget-content",children:n||r})}):n===r?c.jsx("tr",{className:"diff-widget",children:c.jsx("td",{colSpan:t?2:4,className:"diff-widget-content",children:n})}):c.jsxs("tr",{className:"diff-widget",children:[c.jsx("td",{colSpan:t?1:2,className:"diff-widget-content",children:n}),c.jsx("td",{colSpan:t?1:2,className:"diff-widget-content",children:r})]})}var zoe=["selectedChanges","monotonous","hideGutter","tokens","lineClassName"],qoe=["hunk","widgets","className"];function ia(e,t){return(e?ur(e):"00")+(t?ur(t):"00")}function Uoe(e){var t=e.hunk,n=e.widgets,r=e.className,s=Zs(e,qoe),o=function(i,a){for(var l=function(g){if(!g)return null;var h=ur(g);return a[h]||null},u=[],d=0;d<i.length;d++){var f=i[d];if(ii(f))u.push(["change",ia(f,f),f,f]);else if(_n(f)){var p=i[d+1];p&&ro(p)?(d+=1,u.push(["change",ia(f,p),f,p])):u.push(["change",ia(f,null),f,null])}else u.push(["change",ia(null,f),null,f]);var y=u[u.length-1],k=l(y[2]),x=l(y[3]);if(k||x){var T=y[1];u.push(["widget",T,k,x])}}return u}(t.changes,n);return c.jsx("tbody",{className:St("diff-hunk",r),children:o.map(function(i){return function(a,l){var u=Wt(a,4),d=u[0],f=u[1],p=u[2],y=u[3],k=l.selectedChanges,x=l.monotonous,T=l.hideGutter,g=l.tokens,h=l.lineClassName,m=Zs(l,zoe);if(d==="change"){var v=!!p&&k.includes(ur(p)),w=!!y&&k.includes(ur(y)),S=p&&g?g.old[_d(p)-1]:null,N=y&&g?g.new[Td(y)-1]:null;return c.jsx($oe,Ee({className:h,oldChange:p,newChange:y,monotonous:x,hideGutter:T,oldSelected:v,newSelected:w,oldTokens:S,newTokens:N},m),"change".concat(f))}return d==="widget"?c.jsx(Foe,{monotonous:x,hideGutter:T,oldElement:p,newElement:y},"widget".concat(f)):null}(i,s)})})}var Hoe=["gutterType","hunkClassName"];function p0(e){var t=e.hunk,n=Tre(),r=n.gutterType,s=n.hunkClassName,o=Zs(n,Hoe),i=r==="none",a=r==="anchor",l=o.viewType==="unified"?Moe:Uoe;return c.jsx(l,Ee(Ee({},o),{},{hunk:t,hideGutter:i,gutterAnchor:a,className:s}))}function Boe(){}function vm(e,t){var n=t?"auto":"none";e instanceof HTMLElement&&e.style.userSelect!==n&&(e.style.userSelect=n)}function Goe(e){return e.map(function(t){return c.jsx(p0,{hunk:t},function(n){return"-".concat(n.oldStart,",").concat(n.oldLines," +").concat(n.newStart,",").concat(n.newLines)}(t))})}function Voe(e){var t=e.diffType,n=e.hunks,r=e.optimizeSelection,s=e.className,o=e.hunkClassName,i=o===void 0?it.hunkClassName:o,a=e.lineClassName,l=a===void 0?it.lineClassName:a,u=e.generateLineClassName,d=u===void 0?it.generateLineClassName:u,f=e.gutterClassName,p=f===void 0?it.gutterClassName:f,y=e.codeClassName,k=y===void 0?it.codeClassName:y,x=e.gutterType,T=x===void 0?it.gutterType:x,g=e.viewType,h=g===void 0?it.viewType:g,m=e.gutterEvents,v=m===void 0?it.gutterEvents:m,w=e.codeEvents,S=w===void 0?it.codeEvents:w,N=e.generateAnchorID,A=N===void 0?it.generateAnchorID:N,j=e.selectedChanges,E=j===void 0?it.selectedChanges:j,D=e.widgets,H=D===void 0?it.widgets:D,V=e.renderGutter,B=V===void 0?it.renderGutter:V,se=e.tokens,Ge=e.renderToken,Ve=e.children,L=Ve===void 0?Goe:Ve,z=I.useRef(null),G=I.useCallback(function(Ie){var mt=Ie.target;if(Ie.button===0){var It=function(Jr,he){for(var gt=Jr;gt&>!==document.documentElement&&!gt.classList.contains(he);)gt=gt.parentElement;return gt===document.documentElement?null:gt}(mt,"diff-code");if(It&&It.parentElement){var yr=window.getSelection();yr&&yr.removeAllRanges();var $t=bre(It.parentElement.children).indexOf(It);if($t===1||$t===3){var te,pn=Ere(z.current?z.current.querySelectorAll(".diff-line"):[]);try{for(pn.s();!(te=pn.n()).done;){var oe=te.value.children;vm(oe[1],$t===1),vm(oe[3],$t===3)}}catch(Jr){pn.e(Jr)}finally{pn.f()}}}}},[]),q=T==="none",K=t==="add"||t==="delete",Kt=h==="split"&&!K&&r?G:Boe,_e=I.useMemo(function(){return c.jsxs("colgroup",h==="unified"?{children:[!q&&c.jsx("col",{className:"diff-gutter-col"}),!q&&c.jsx("col",{className:"diff-gutter-col"}),c.jsx("col",{})]}:K?{children:[!q&&c.jsx("col",{className:"diff-gutter-col"}),c.jsx("col",{})]}:{children:[!q&&c.jsx("col",{className:"diff-gutter-col"}),c.jsx("col",{}),!q&&c.jsx("col",{className:"diff-gutter-col"}),c.jsx("col",{})]})},[h,K,q]),ht=I.useMemo(function(){return{hunkClassName:i,lineClassName:l,generateLineClassName:d,gutterClassName:p,codeClassName:k,monotonous:K,hideGutter:q,viewType:h,gutterType:T,codeEvents:S,gutterEvents:v,generateAnchorID:A,selectedChanges:E,widgets:H,renderGutter:B,tokens:se,renderToken:Ge}},[k,S,A,p,v,T,q,i,l,d,K,B,Ge,E,se,h,H]);return c.jsx(_re,{value:ht,children:c.jsxs("table",{ref:z,className:St("diff","diff-".concat(h),s),onMouseDown:Kt,children:[_e,L(n)]})})}var Qoe=I.memo(Voe);dn&&dn.isConcatSpreadable;var Nd=_i(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};t.Diff=function(n,r){return[n,r]},t.prototype.diff_main=function(n,r,s,o){o===void 0&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+1e3*this.Diff_Timeout);var i=o;if(n==null||r==null)throw new Error("Null input. (diff_main)");if(n==r)return n?[new t.Diff(0,n)]:[];s===void 0&&(s=!0);var a=s,l=this.diff_commonPrefix(n,r),u=n.substring(0,l);n=n.substring(l),r=r.substring(l),l=this.diff_commonSuffix(n,r);var d=n.substring(n.length-l);n=n.substring(0,n.length-l),r=r.substring(0,r.length-l);var f=this.diff_compute_(n,r,a,i);return u&&f.unshift(new t.Diff(0,u)),d&&f.push(new t.Diff(0,d)),this.diff_cleanupMerge(f),f},t.prototype.diff_compute_=function(n,r,s,o){var i;if(!n)return[new t.Diff(1,r)];if(!r)return[new t.Diff(-1,n)];var a=n.length>r.length?n:r,l=n.length>r.length?r:n,u=a.indexOf(l);if(u!=-1)return i=[new t.Diff(1,a.substring(0,u)),new t.Diff(0,l),new t.Diff(1,a.substring(u+l.length))],n.length>r.length&&(i[0][0]=i[2][0]=-1),i;if(l.length==1)return[new t.Diff(-1,n),new t.Diff(1,r)];var d=this.diff_halfMatch_(n,r);if(d){var f=d[0],p=d[1],y=d[2],k=d[3],x=d[4],T=this.diff_main(f,y,s,o),g=this.diff_main(p,k,s,o);return T.concat([new t.Diff(0,x)],g)}return s&&n.length>100&&r.length>100?this.diff_lineMode_(n,r,o):this.diff_bisect_(n,r,o)},t.prototype.diff_lineMode_=function(n,r,s){var o=this.diff_linesToChars_(n,r);n=o.chars1,r=o.chars2;var i=o.lineArray,a=this.diff_main(n,r,!1,s);this.diff_charsToLines_(a,i),this.diff_cleanupSemantic(a),a.push(new t.Diff(0,""));for(var l=0,u=0,d=0,f="",p="";l<a.length;){switch(a[l][0]){case 1:d++,p+=a[l][1];break;case-1:u++,f+=a[l][1];break;case 0:if(u>=1&&d>=1){a.splice(l-u-d,u+d),l=l-u-d;for(var y=this.diff_main(f,p,!1,s),k=y.length-1;k>=0;k--)a.splice(l,0,y[k]);l+=y.length}d=0,u=0,f="",p=""}l++}return a.pop(),a},t.prototype.diff_bisect_=function(n,r,s){for(var o=n.length,i=r.length,a=Math.ceil((o+i)/2),l=a,u=2*a,d=new Array(u),f=new Array(u),p=0;p<u;p++)d[p]=-1,f[p]=-1;d[l+1]=0,f[l+1]=0;for(var y=o-i,k=y%2!=0,x=0,T=0,g=0,h=0,m=0;m<a&&!(new Date().getTime()>s);m++){for(var v=-m+x;v<=m-T;v+=2){for(var w=l+v,S=(D=v==-m||v!=m&&d[w-1]<d[w+1]?d[w+1]:d[w-1]+1)-v;D<o&&S<i&&n.charAt(D)==r.charAt(S);)D++,S++;if(d[w]=D,D>o)T+=2;else if(S>i)x+=2;else if(k&&(j=l+y-v)>=0&&j<u&&f[j]!=-1&&D>=(A=o-f[j]))return this.diff_bisectSplit_(n,r,D,S,s)}for(var N=-m+g;N<=m-h;N+=2){for(var A,j=l+N,E=(A=N==-m||N!=m&&f[j-1]<f[j+1]?f[j+1]:f[j-1]+1)-N;A<o&&E<i&&n.charAt(o-A-1)==r.charAt(i-E-1);)A++,E++;if(f[j]=A,A>o)h+=2;else if(E>i)g+=2;else if(!k&&(w=l+y-N)>=0&&w<u&&d[w]!=-1){var D;if(S=l+(D=d[w])-w,D>=(A=o-A))return this.diff_bisectSplit_(n,r,D,S,s)}}}return[new t.Diff(-1,n),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(n,r,s,o,i){var a=n.substring(0,s),l=r.substring(0,o),u=n.substring(s),d=r.substring(o),f=this.diff_main(a,l,!1,i),p=this.diff_main(u,d,!1,i);return f.concat(p)},t.prototype.diff_linesToChars_=function(n,r){var s=[],o={};function i(u){for(var d="",f=0,p=-1,y=s.length;p<u.length-1;){(p=u.indexOf(`
|
|
255
|
-
`,f))==-1&&(p=u.length-1);var k=u.substring(f,p+1);(o.hasOwnProperty?o.hasOwnProperty(k):o[k]!==void 0)?d+=String.fromCharCode(o[k]):(y==a&&(k=u.substring(f),p=u.length),d+=String.fromCharCode(y),o[k]=y,s[y++]=k),f=p+1}return d}s[0]="";var a=4e4,l=i(n);return a=65535,{chars1:l,chars2:i(r),lineArray:s}},t.prototype.diff_charsToLines_=function(n,r){for(var s=0;s<n.length;s++){for(var o=n[s][1],i=[],a=0;a<o.length;a++)i[a]=r[o.charCodeAt(a)];n[s][1]=i.join("")}},t.prototype.diff_commonPrefix=function(n,r){if(!n||!r||n.charAt(0)!=r.charAt(0))return 0;for(var s=0,o=Math.min(n.length,r.length),i=o,a=0;s<i;)n.substring(a,i)==r.substring(a,i)?a=s=i:o=i,i=Math.floor((o-s)/2+s);return i},t.prototype.diff_commonSuffix=function(n,r){if(!n||!r||n.charAt(n.length-1)!=r.charAt(r.length-1))return 0;for(var s=0,o=Math.min(n.length,r.length),i=o,a=0;s<i;)n.substring(n.length-i,n.length-a)==r.substring(r.length-i,r.length-a)?a=s=i:o=i,i=Math.floor((o-s)/2+s);return i},t.prototype.diff_commonOverlap_=function(n,r){var s=n.length,o=r.length;if(s==0||o==0)return 0;s>o?n=n.substring(s-o):s<o&&(r=r.substring(0,s));var i=Math.min(s,o);if(n==r)return i;for(var a=0,l=1;;){var u=n.substring(i-l),d=r.indexOf(u);if(d==-1)return a;l+=d,d!=0&&n.substring(i-l)!=r.substring(0,l)||(a=l,l++)}},t.prototype.diff_halfMatch_=function(n,r){if(this.Diff_Timeout<=0)return null;var s=n.length>r.length?n:r,o=n.length>r.length?r:n;if(s.length<4||2*o.length<s.length)return null;var i=this;function a(x,T,g){for(var h,m,v,w,S=x.substring(g,g+Math.floor(x.length/4)),N=-1,A="";(N=T.indexOf(S,N+1))!=-1;){var j=i.diff_commonPrefix(x.substring(g),T.substring(N)),E=i.diff_commonSuffix(x.substring(0,g),T.substring(0,N));A.length<E+j&&(A=T.substring(N-E,N)+T.substring(N,N+j),h=x.substring(0,g-E),m=x.substring(g+j),v=T.substring(0,N-E),w=T.substring(N+j))}return 2*A.length>=x.length?[h,m,v,w,A]:null}var l,u,d,f,p,y=a(s,o,Math.ceil(s.length/4)),k=a(s,o,Math.ceil(s.length/2));return y||k?(l=k?y&&y[4].length>k[4].length?y:k:y,n.length>r.length?(u=l[0],d=l[1],f=l[2],p=l[3]):(f=l[0],p=l[1],u=l[2],d=l[3]),[u,d,f,p,l[4]]):null},t.prototype.diff_cleanupSemantic=function(n){for(var r=!1,s=[],o=0,i=null,a=0,l=0,u=0,d=0,f=0;a<n.length;)n[a][0]==0?(s[o++]=a,l=d,u=f,d=0,f=0,i=n[a][1]):(n[a][0]==1?d+=n[a][1].length:f+=n[a][1].length,i&&i.length<=Math.max(l,u)&&i.length<=Math.max(d,f)&&(n.splice(s[o-1],0,new t.Diff(-1,i)),n[s[o-1]+1][0]=1,o--,a=--o>0?s[o-1]:-1,l=0,u=0,d=0,f=0,i=null,r=!0)),a++;for(r&&this.diff_cleanupMerge(n),this.diff_cleanupSemanticLossless(n),a=1;a<n.length;){if(n[a-1][0]==-1&&n[a][0]==1){var p=n[a-1][1],y=n[a][1],k=this.diff_commonOverlap_(p,y),x=this.diff_commonOverlap_(y,p);k>=x?(k>=p.length/2||k>=y.length/2)&&(n.splice(a,0,new t.Diff(0,y.substring(0,k))),n[a-1][1]=p.substring(0,p.length-k),n[a+1][1]=y.substring(k),a++):(x>=p.length/2||x>=y.length/2)&&(n.splice(a,0,new t.Diff(0,p.substring(0,x))),n[a-1][0]=1,n[a-1][1]=y.substring(0,y.length-x),n[a+1][0]=-1,n[a+1][1]=p.substring(x),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(n){function r(x,T){if(!x||!T)return 6;var g=x.charAt(x.length-1),h=T.charAt(0),m=g.match(t.nonAlphaNumericRegex_),v=h.match(t.nonAlphaNumericRegex_),w=m&&g.match(t.whitespaceRegex_),S=v&&h.match(t.whitespaceRegex_),N=w&&g.match(t.linebreakRegex_),A=S&&h.match(t.linebreakRegex_),j=N&&x.match(t.blanklineEndRegex_),E=A&&T.match(t.blanklineStartRegex_);return j||E?5:N||A?4:m&&!w&&S?3:w||S?2:m||v?1:0}for(var s=1;s<n.length-1;){if(n[s-1][0]==0&&n[s+1][0]==0){var o=n[s-1][1],i=n[s][1],a=n[s+1][1],l=this.diff_commonSuffix(o,i);if(l){var u=i.substring(i.length-l);o=o.substring(0,o.length-l),i=u+i.substring(0,i.length-l),a=u+a}for(var d=o,f=i,p=a,y=r(o,i)+r(i,a);i.charAt(0)===a.charAt(0);){o+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var k=r(o,i)+r(i,a);k>=y&&(y=k,d=o,f=i,p=a)}n[s-1][1]!=d&&(d?n[s-1][1]=d:(n.splice(s-1,1),s--),n[s][1]=f,p?n[s+1][1]=p:(n.splice(s+1,1),s--))}s++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(n){for(var r=!1,s=[],o=0,i=null,a=0,l=!1,u=!1,d=!1,f=!1;a<n.length;)n[a][0]==0?(n[a][1].length<this.Diff_EditCost&&(d||f)?(s[o++]=a,l=d,u=f,i=n[a][1]):(o=0,i=null),d=f=!1):(n[a][0]==-1?f=!0:d=!0,i&&(l&&u&&d&&f||i.length<this.Diff_EditCost/2&&l+u+d+f==3)&&(n.splice(s[o-1],0,new t.Diff(-1,i)),n[s[o-1]+1][0]=1,o--,i=null,l&&u?(d=f=!0,o=0):(a=--o>0?s[o-1]:-1,d=f=!1),r=!0)),a++;r&&this.diff_cleanupMerge(n)},t.prototype.diff_cleanupMerge=function(n){n.push(new t.Diff(0,""));for(var r,s=0,o=0,i=0,a="",l="";s<n.length;)switch(n[s][0]){case 1:i++,l+=n[s][1],s++;break;case-1:o++,a+=n[s][1],s++;break;case 0:o+i>1?(o!==0&&i!==0&&((r=this.diff_commonPrefix(l,a))!==0&&(s-o-i>0&&n[s-o-i-1][0]==0?n[s-o-i-1][1]+=l.substring(0,r):(n.splice(0,0,new t.Diff(0,l.substring(0,r))),s++),l=l.substring(r),a=a.substring(r)),(r=this.diff_commonSuffix(l,a))!==0&&(n[s][1]=l.substring(l.length-r)+n[s][1],l=l.substring(0,l.length-r),a=a.substring(0,a.length-r))),s-=o+i,n.splice(s,o+i),a.length&&(n.splice(s,0,new t.Diff(-1,a)),s++),l.length&&(n.splice(s,0,new t.Diff(1,l)),s++),s++):s!==0&&n[s-1][0]==0?(n[s-1][1]+=n[s][1],n.splice(s,1)):s++,i=0,o=0,a="",l=""}n[n.length-1][1]===""&&n.pop();var u=!1;for(s=1;s<n.length-1;)n[s-1][0]==0&&n[s+1][0]==0&&(n[s][1].substring(n[s][1].length-n[s-1][1].length)==n[s-1][1]?(n[s][1]=n[s-1][1]+n[s][1].substring(0,n[s][1].length-n[s-1][1].length),n[s+1][1]=n[s-1][1]+n[s+1][1],n.splice(s-1,1),u=!0):n[s][1].substring(0,n[s+1][1].length)==n[s+1][1]&&(n[s-1][1]+=n[s+1][1],n[s][1]=n[s][1].substring(n[s+1][1].length)+n[s+1][1],n.splice(s+1,1),u=!0)),s++;u&&this.diff_cleanupMerge(n)},t.prototype.diff_xIndex=function(n,r){var s,o=0,i=0,a=0,l=0;for(s=0;s<n.length&&(n[s][0]!==1&&(o+=n[s][1].length),n[s][0]!==-1&&(i+=n[s][1].length),!(o>r));s++)a=o,l=i;return n.length!=s&&n[s][0]===-1?l:l+(r-a)},t.prototype.diff_prettyHtml=function(n){for(var r=[],s=/&/g,o=/</g,i=/>/g,a=/\n/g,l=0;l<n.length;l++){var u=n[l][0],d=n[l][1].replace(s,"&").replace(o,"<").replace(i,">").replace(a,"¶<br>");switch(u){case 1:r[l]='<ins style="background:#e6ffe6;">'+d+"</ins>";break;case-1:r[l]='<del style="background:#ffe6e6;">'+d+"</del>";break;case 0:r[l]="<span>"+d+"</span>"}}return r.join("")},t.prototype.diff_text1=function(n){for(var r=[],s=0;s<n.length;s++)n[s][0]!==1&&(r[s]=n[s][1]);return r.join("")},t.prototype.diff_text2=function(n){for(var r=[],s=0;s<n.length;s++)n[s][0]!==-1&&(r[s]=n[s][1]);return r.join("")},t.prototype.diff_levenshtein=function(n){for(var r=0,s=0,o=0,i=0;i<n.length;i++){var a=n[i][0],l=n[i][1];switch(a){case 1:s+=l.length;break;case-1:o+=l.length;break;case 0:r+=Math.max(s,o),s=0,o=0}}return r+=Math.max(s,o)},t.prototype.diff_toDelta=function(n){for(var r=[],s=0;s<n.length;s++)switch(n[s][0]){case 1:r[s]="+"+encodeURI(n[s][1]);break;case-1:r[s]="-"+n[s][1].length;break;case 0:r[s]="="+n[s][1].length}return r.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(n,r){for(var s=[],o=0,i=0,a=r.split(/\t/g),l=0;l<a.length;l++){var u=a[l].substring(1);switch(a[l].charAt(0)){case"+":try{s[o++]=new t.Diff(1,decodeURI(u))}catch{throw new Error("Illegal escape in diff_fromDelta: "+u)}break;case"-":case"=":var d=parseInt(u,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+u);var f=n.substring(i,i+=d);a[l].charAt(0)=="="?s[o++]=new t.Diff(0,f):s[o++]=new t.Diff(-1,f);break;default:if(a[l])throw new Error("Invalid diff operation in diff_fromDelta: "+a[l])}}if(i!=n.length)throw new Error("Delta length ("+i+") does not equal source text length ("+n.length+").");return s},t.prototype.match_main=function(n,r,s){if(n==null||r==null||s==null)throw new Error("Null input. (match_main)");return s=Math.max(0,Math.min(s,n.length)),n==r?0:n.length?n.substring(s,s+r.length)==r?s:this.match_bitap_(n,r,s):-1},t.prototype.match_bitap_=function(n,r,s){if(r.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var o=this.match_alphabet_(r),i=this;function a(S,N){var A=S/r.length,j=Math.abs(s-N);return i.Match_Distance?A+j/i.Match_Distance:j?1:A}var l=this.Match_Threshold,u=n.indexOf(r,s);u!=-1&&(l=Math.min(a(0,u),l),(u=n.lastIndexOf(r,s+r.length))!=-1&&(l=Math.min(a(0,u),l)));var d,f,p=1<<r.length-1;u=-1;for(var y,k=r.length+n.length,x=0;x<r.length;x++){for(d=0,f=k;d<f;)a(x,s+f)<=l?d=f:k=f,f=Math.floor((k-d)/2+d);k=f;var T=Math.max(1,s-f+1),g=Math.min(s+f,n.length)+r.length,h=Array(g+2);h[g+1]=(1<<x)-1;for(var m=g;m>=T;m--){var v=o[n.charAt(m-1)];if(h[m]=x===0?(h[m+1]<<1|1)&v:(h[m+1]<<1|1)&v|(y[m+1]|y[m])<<1|1|y[m+1],h[m]&p){var w=a(x,m-1);if(w<=l){if(l=w,!((u=m-1)>s))break;T=Math.max(1,2*s-u)}}}if(a(x+1,s)>l)break;y=h}return u},t.prototype.match_alphabet_=function(n){for(var r={},s=0;s<n.length;s++)r[n.charAt(s)]=0;for(s=0;s<n.length;s++)r[n.charAt(s)]|=1<<n.length-s-1;return r},t.prototype.patch_addContext_=function(n,r){if(r.length!=0){if(n.start2===null)throw Error("patch not initialized");for(var s=r.substring(n.start2,n.start2+n.length1),o=0;r.indexOf(s)!=r.lastIndexOf(s)&&s.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)o+=this.Patch_Margin,s=r.substring(n.start2-o,n.start2+n.length1+o);o+=this.Patch_Margin;var i=r.substring(n.start2-o,n.start2);i&&n.diffs.unshift(new t.Diff(0,i));var a=r.substring(n.start2+n.length1,n.start2+n.length1+o);a&&n.diffs.push(new t.Diff(0,a)),n.start1-=i.length,n.start2-=i.length,n.length1+=i.length+a.length,n.length2+=i.length+a.length}},t.prototype.patch_make=function(n,r,s){var o,i;if(typeof n=="string"&&typeof r=="string"&&s===void 0)o=n,(i=this.diff_main(o,r,!0)).length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(n&&typeof n=="object"&&r===void 0&&s===void 0)i=n,o=this.diff_text1(i);else if(typeof n=="string"&&r&&typeof r=="object"&&s===void 0)o=n,i=r;else{if(typeof n!="string"||typeof r!="string"||!s||typeof s!="object")throw new Error("Unknown call format to patch_make.");o=n,i=s}if(i.length===0)return[];for(var a=[],l=new t.patch_obj,u=0,d=0,f=0,p=o,y=o,k=0;k<i.length;k++){var x=i[k][0],T=i[k][1];switch(u||x===0||(l.start1=d,l.start2=f),x){case 1:l.diffs[u++]=i[k],l.length2+=T.length,y=y.substring(0,f)+T+y.substring(f);break;case-1:l.length1+=T.length,l.diffs[u++]=i[k],y=y.substring(0,f)+y.substring(f+T.length);break;case 0:T.length<=2*this.Patch_Margin&&u&&i.length!=k+1?(l.diffs[u++]=i[k],l.length1+=T.length,l.length2+=T.length):T.length>=2*this.Patch_Margin&&u&&(this.patch_addContext_(l,p),a.push(l),l=new t.patch_obj,u=0,p=y,d=f)}x!==1&&(d+=T.length),x!==-1&&(f+=T.length)}return u&&(this.patch_addContext_(l,p),a.push(l)),a},t.prototype.patch_deepCopy=function(n){for(var r=[],s=0;s<n.length;s++){var o=n[s],i=new t.patch_obj;i.diffs=[];for(var a=0;a<o.diffs.length;a++)i.diffs[a]=new t.Diff(o.diffs[a][0],o.diffs[a][1]);i.start1=o.start1,i.start2=o.start2,i.length1=o.length1,i.length2=o.length2,r[s]=i}return r},t.prototype.patch_apply=function(n,r){if(n.length==0)return[r,[]];n=this.patch_deepCopy(n);var s=this.patch_addPadding(n);r=s+r+s,this.patch_splitMax(n);for(var o=0,i=[],a=0;a<n.length;a++){var l,u,d=n[a].start2+o,f=this.diff_text1(n[a].diffs),p=-1;if(f.length>this.Match_MaxBits?(l=this.match_main(r,f.substring(0,this.Match_MaxBits),d))!=-1&&((p=this.match_main(r,f.substring(f.length-this.Match_MaxBits),d+f.length-this.Match_MaxBits))==-1||l>=p)&&(l=-1):l=this.match_main(r,f,d),l==-1)i[a]=!1,o-=n[a].length2-n[a].length1;else if(i[a]=!0,o=l-d,f==(u=p==-1?r.substring(l,l+f.length):r.substring(l,p+this.Match_MaxBits)))r=r.substring(0,l)+this.diff_text2(n[a].diffs)+r.substring(l+f.length);else{var y=this.diff_main(f,u,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(y)/f.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(y);for(var k,x=0,T=0;T<n[a].diffs.length;T++){var g=n[a].diffs[T];g[0]!==0&&(k=this.diff_xIndex(y,x)),g[0]===1?r=r.substring(0,l+k)+g[1]+r.substring(l+k):g[0]===-1&&(r=r.substring(0,l+k)+r.substring(l+this.diff_xIndex(y,x+g[1].length))),g[0]!==-1&&(x+=g[1].length)}}}}return[r=r.substring(s.length,r.length-s.length),i]},t.prototype.patch_addPadding=function(n){for(var r=this.Patch_Margin,s="",o=1;o<=r;o++)s+=String.fromCharCode(o);for(o=0;o<n.length;o++)n[o].start1+=r,n[o].start2+=r;var i=n[0],a=i.diffs;if(a.length==0||a[0][0]!=0)a.unshift(new t.Diff(0,s)),i.start1-=r,i.start2-=r,i.length1+=r,i.length2+=r;else if(r>a[0][1].length){var l=r-a[0][1].length;a[0][1]=s.substring(a[0][1].length)+a[0][1],i.start1-=l,i.start2-=l,i.length1+=l,i.length2+=l}return(a=(i=n[n.length-1]).diffs).length==0||a[a.length-1][0]!=0?(a.push(new t.Diff(0,s)),i.length1+=r,i.length2+=r):r>a[a.length-1][1].length&&(l=r-a[a.length-1][1].length,a[a.length-1][1]+=s.substring(0,l),i.length1+=l,i.length2+=l),s},t.prototype.patch_splitMax=function(n){for(var r=this.Match_MaxBits,s=0;s<n.length;s++)if(!(n[s].length1<=r)){var o=n[s];n.splice(s--,1);for(var i=o.start1,a=o.start2,l="";o.diffs.length!==0;){var u=new t.patch_obj,d=!0;for(u.start1=i-l.length,u.start2=a-l.length,l!==""&&(u.length1=u.length2=l.length,u.diffs.push(new t.Diff(0,l)));o.diffs.length!==0&&u.length1<r-this.Patch_Margin;){var f=o.diffs[0][0],p=o.diffs[0][1];f===1?(u.length2+=p.length,a+=p.length,u.diffs.push(o.diffs.shift()),d=!1):f===-1&&u.diffs.length==1&&u.diffs[0][0]==0&&p.length>2*r?(u.length1+=p.length,i+=p.length,d=!1,u.diffs.push(new t.Diff(f,p)),o.diffs.shift()):(p=p.substring(0,r-u.length1-this.Patch_Margin),u.length1+=p.length,i+=p.length,f===0?(u.length2+=p.length,a+=p.length):d=!1,u.diffs.push(new t.Diff(f,p)),p==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(p.length))}l=(l=this.diff_text2(u.diffs)).substring(l.length-this.Patch_Margin);var y=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);y!==""&&(u.length1+=y.length,u.length2+=y.length,u.diffs.length!==0&&u.diffs[u.diffs.length-1][0]===0?u.diffs[u.diffs.length-1][1]+=y:u.diffs.push(new t.Diff(0,y))),d||n.splice(++s,0,u)}}},t.prototype.patch_toText=function(n){for(var r=[],s=0;s<n.length;s++)r[s]=n[s];return r.join("")},t.prototype.patch_fromText=function(n){var r=[];if(!n)return r;for(var s=n.split(`
|
|
256
|
-
`),o=0,i=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;o<s.length;){var a=s[o].match(i);if(!a)throw new Error("Invalid patch string: "+s[o]);var l=new t.patch_obj;for(r.push(l),l.start1=parseInt(a[1],10),a[2]===""?(l.start1--,l.length1=1):a[2]=="0"?l.length1=0:(l.start1--,l.length1=parseInt(a[2],10)),l.start2=parseInt(a[3],10),a[4]===""?(l.start2--,l.length2=1):a[4]=="0"?l.length2=0:(l.start2--,l.length2=parseInt(a[4],10)),o++;o<s.length;){var u=s[o].charAt(0);try{var d=decodeURI(s[o].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+d)}if(u=="-")l.diffs.push(new t.Diff(-1,d));else if(u=="+")l.diffs.push(new t.Diff(1,d));else if(u==" ")l.diffs.push(new t.Diff(0,d));else{if(u=="@")break;if(u!=="")throw new Error('Invalid patch mode "'+u+'" in: '+d)}o++}}return r},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var n,r=["@@ -"+(this.length1===0?this.start1+",0":this.length1==1?this.start1+1:this.start1+1+","+this.length1)+" +"+(this.length2===0?this.start2+",0":this.length2==1?this.start2+1:this.start2+1+","+this.length2)+` @@
|
|
257
|
-
`],s=0;s<this.diffs.length;s++){switch(this.diffs[s][0]){case 1:n="+";break;case-1:n="-";break;case 0:n=" "}r[s+1]=n+encodeURI(this.diffs[s][1])+`
|
|
258
|
-
`}return r.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0});Nd.DIFF_EQUAL;Nd.DIFF_DELETE;Nd.DIFF_INSERT;function Woe(e){let t=0,n=0;for(const r of e.hunks)for(const s of r.changes)ro(s)?t++:_n(s)&&n++;return{adds:t,dels:n}}function Rc(e){return e.type==="rename"&&e.oldPath!==e.newPath?`${e.oldPath} → ${e.newPath}`:e.type==="delete"?e.oldPath:e.newPath}function Koe(e){switch(e){case"add":return{label:"new",cls:"text-success"};case"delete":return{label:"del",cls:"text-error"};case"rename":return{label:"ren",cls:"text-info"};default:return null}}function Yoe({title:e,url:t,onClose:n}){I.useEffect(()=>{const f=p=>{p.key==="Escape"&&n()};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[n]);const[r,s]=I.useState(null),[o,i]=I.useState(null);I.useEffect(()=>{let f=!1;return s(null),i(null),fetch(t).then(p=>p.ok?p.text():Promise.reject(new Error(`HTTP ${p.status}`))).then(p=>!f&&s(p)).catch(p=>!f&&i(p instanceof Error?p.message:String(p))),()=>{f=!0}},[t]);const a=I.useMemo(()=>{if(!r)return[];try{return Cre(r)}catch{return[]}},[r]),[l,u]=I.useState(0),d=a[Math.min(l,Math.max(0,a.length-1))];return c.jsx("div",{className:"fixed inset-0 z-50 flex bg-black/60",onClick:n,children:c.jsxs("div",{className:"m-4 flex h-[calc(100vh-2rem)] w-full max-w-none flex-col overflow-hidden rounded-xl border border-base-300 bg-base-100 shadow-2xl",onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-base-300 bg-base-200/80 px-4 py-2.5",children:[c.jsx("span",{className:"truncate font-mono text-xs text-base-content/70",children:e}),a.length>0&&c.jsxs("span",{className:"shrink-0 whitespace-nowrap rounded border border-base-300 bg-base-200 px-1.5 py-0.5 font-mono text-2xs text-base-content/60",children:[a.length," file",a.length===1?"":"s"," changed"]}),c.jsx("a",{href:t,target:"_blank",rel:"noreferrer",className:"ml-auto whitespace-nowrap font-mono text-2xs text-info hover:underline",children:"raw diff"}),c.jsx("button",{onClick:n,className:"btn btn-ghost btn-xs h-6 min-h-0","aria-label":"Close",children:"✕"})]}),o?c.jsxs("div",{className:"flex-1 py-16 text-center font-mono text-sm text-error",children:["Couldn't load diff: ",o]}):r===null?c.jsx("div",{className:"flex-1 py-16 text-center font-mono text-sm text-base-content/40",children:"loading diff…"}):a.length===0?c.jsx("div",{className:"flex-1 py-16 text-center font-mono text-sm text-base-content/40",children:"no file changes captured"}):c.jsxs("div",{className:"ll-diff flex min-h-0 flex-1",children:[c.jsx("aside",{className:"w-72 shrink-0 overflow-y-auto border-r border-base-300 bg-base-200/40 py-1.5",children:a.map((f,p)=>{const{adds:y,dels:k}=Woe(f),x=Koe(f.type);return c.jsxs("button",{onClick:()=>u(p),className:"flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-2xs leading-4 "+(p===l?"bg-base-300 text-base-content":"text-base-content/60 hover:bg-base-300/50 hover:text-base-content"),title:Rc(f),children:[c.jsx("span",{className:"min-w-0 flex-1 truncate",dir:"rtl",children:Rc(f)}),x&&c.jsx("span",{className:`shrink-0 ${x.cls}`,children:x.label}),c.jsxs("span",{className:"shrink-0 tabular-nums text-success",children:["+",y]}),c.jsxs("span",{className:"shrink-0 tabular-nums text-error",children:["-",k]})]},`${f.oldPath}:${f.newPath}:${p}`)})}),c.jsx("div",{className:"min-w-0 flex-1 overflow-auto bg-base-100",children:d&&c.jsxs("div",{children:[c.jsx("div",{className:"sticky top-0 z-10 border-b border-base-300 bg-base-200/90 px-4 py-2 font-mono text-xs text-base-content/70 backdrop-blur",children:Rc(d)}),c.jsx(Qoe,{viewType:"unified",diffType:d.type,hunks:d.hunks,children:f=>f.map(p=>c.jsx(p0,{hunk:p},p.content))})]},`${d.oldPath}:${d.newPath}:${l}`)})]})]})})}function aa({label:e,kind:t}){const n=t==="match"?"border-success/40 bg-success/10 text-success":t==="fp"?"border-error/40 bg-error/10 text-error":"border-warning/40 bg-warning/10 text-warning";return c.jsx("span",{className:`shrink-0 whitespace-nowrap rounded border px-1.5 py-0.5 font-mono text-2xs ${n}`,children:e})}function Lc({title:e,text:t}){return t!=null&&t.trim()?c.jsxs("details",{className:"border-t border-base-300",children:[c.jsx("summary",{className:"cursor-pointer px-4 py-2 font-mono text-2xs text-base-content/60 hover:text-base-content",children:e}),c.jsx("pre",{className:"max-h-80 overflow-auto whitespace-pre-wrap break-words bg-base-200/40 px-4 py-3 font-mono text-2xs leading-5 text-base-content/80",children:t})]}):null}function Xoe({title:e,trace:t,onClose:n}){I.useEffect(()=>{const s=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[n]);const r=t.findings.filter(s=>s.matchedGold!==null).length;return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:n,children:c.jsxs("div",{className:"flex h-[calc(100vh-2rem)] w-full max-w-4xl flex-col overflow-hidden rounded-xl border border-base-300 bg-base-100 shadow-2xl",onClick:s=>s.stopPropagation(),children:[c.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-base-300 bg-base-200/80 px-4 py-2.5",children:[c.jsx("span",{className:"truncate font-mono text-xs text-base-content/70",children:e}),c.jsxs("span",{className:"shrink-0 whitespace-nowrap rounded border border-base-300 bg-base-200 px-1.5 py-0.5 font-mono text-2xs text-base-content/60",children:["judge: ",t.judgeModel||"not run (no review posted)"]}),c.jsxs("span",{className:"shrink-0 whitespace-nowrap font-mono text-2xs text-base-content/50",children:[r,"/",t.gold.length," gold matched · ",t.findings.length," posted"]}),t.usedDiff&&c.jsx("span",{className:"shrink-0 whitespace-nowrap rounded border border-info/40 bg-info/10 px-1.5 py-0.5 font-mono text-2xs text-info",title:"The PR diff was fed to the judge (--judge-with-diff) — not comparable to Martian's diff-blind offline leaderboard",children:"diff-aware"}),c.jsx("button",{onClick:n,className:"btn btn-ghost btn-xs ml-auto h-6 min-h-0","aria-label":"Close",children:"✕"})]}),c.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[c.jsxs("section",{className:"px-4 py-3",children:[c.jsxs("h3",{className:"mb-2 font-mono text-2xs uppercase tracking-wide text-base-content/50",children:["Findings extracted from the review (",t.findings.length,")"]}),t.findings.length===0?c.jsx("p",{className:"font-mono text-2xs text-base-content/40",children:"No concrete findings extracted."}):c.jsx("ul",{className:"space-y-1.5",children:t.findings.map((s,o)=>c.jsxs("li",{className:"flex items-start gap-2 font-mono text-2xs leading-5",children:[c.jsxs("span",{className:"shrink-0 text-base-content/40",children:["#",o]}),c.jsxs("span",{className:"min-w-0 flex-1",children:[s.file&&c.jsxs("span",{className:"text-info",children:[s.file,": "]}),c.jsx("span",{className:"text-base-content/85",children:s.description})]}),s.matchedGold!==null?c.jsx(aa,{kind:"match",label:`✓ gold #${s.matchedGold}`}):c.jsx(aa,{kind:"fp",label:"false positive"})]},o))})]}),c.jsxs("section",{className:"border-t border-base-300 px-4 py-3",children:[c.jsxs("h3",{className:"mb-2 font-mono text-2xs uppercase tracking-wide text-base-content/50",children:["Gold set (",t.gold.length,")"]}),t.gold.length===0?c.jsx("p",{className:"font-mono text-2xs text-base-content/40",children:"No gold comments for this PR."}):c.jsx("ul",{className:"space-y-1.5",children:t.gold.map((s,o)=>c.jsxs("li",{className:"flex items-start gap-2 font-mono text-2xs leading-5",children:[c.jsxs("span",{className:"shrink-0 text-base-content/40",children:["#",o]}),c.jsxs("span",{className:"shrink-0 text-base-content/50",children:["[",s.severity,"]"]}),c.jsx("span",{className:"min-w-0 flex-1 text-base-content/85",children:s.description}),s.matchedFinding!==null?c.jsx(aa,{kind:"match",label:`✓ finding #${s.matchedFinding}`}):c.jsx(aa,{kind:"miss",label:"missed"})]},o))})]}),c.jsx(Lc,{title:"Review text the judge read",text:t.reviewText}),c.jsx(Lc,{title:"Raw judge reply — finding extraction",text:t.rawExtract}),c.jsx(Lc,{title:"Raw judge reply — gold matching",text:t.rawMatch})]})]})})}function Zoe(e){const t=e.review;if(!t)return"";const n=t.falsePositives.length?`False positives:
|
|
259
|
-
`+t.falsePositives.map(s=>`- ${s.file?`${s.file}: `:""}${s.description}`).join(`
|
|
260
|
-
`):"No false positives.",r=t.falseNegatives.length?`Missed gold:
|
|
261
|
-
`+t.falseNegatives.map(s=>`- [${s.severity}] ${s.file?`${s.file}: `:""}${s.description}`).join(`
|
|
262
|
-
`):"No missed gold.";return`${n}
|
|
263
|
-
|
|
264
|
-
${r}`}function Joe({tier:e,results:t,pending:n,labels:r,scorecardUrl:s}){var A,j;const o=e==="code-fix",i=e==="pr-review",a=((j=(A=t.find(E=>E.review))==null?void 0:A.review)==null?void 0:j.beta)??1,l=6+(o?1:0)+(i?1:0),u=[...n].sort((E,D)=>E.status===D.status?0:E.status==="running"?-1:1),[d,f]=I.useState(null),[p,y]=I.useState(null),[k,x]=I.useState(null),T=E=>s?s.replace(/scorecard\.json$/,E):E,g=(E,D)=>`${E} · ${fn(r,D)}`,h=E=>!!E.modelPatchFile,m=E=>y({title:`${g(E.instance_id,E.model)} · changed files`,url:T(E.modelPatchFile)}),v=E=>f({kind:"trials",title:g(E.instance_id,E.model),sessions:E.sessions??[],baseUrl:s??""}),w=E=>f({kind:"execution",title:`${g(E.instance_id,E.model)} · held-out tests`,logUrl:E.executionLog?T(E.executionLog):void 0,failToPass:E.failToPass,passToPass:E.passToPass}),S=E=>{var D,H;return!!(E.executionLog||(D=E.failToPass)!=null&&D.length||(H=E.passToPass)!=null&&H.length)},N=(E,D,H)=>f({kind:"live",title:g(D,H),url:T(E)});return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"overflow-x-auto rounded-xl border border-base-300 bg-base-200",children:c.jsxs("table",{className:"w-full border-collapse text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-neutral text-2xs uppercase tracking-wide text-base-content/50",children:[c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"instance"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"model"}),o&&c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"code-fix"}),i&&c.jsxs("th",{className:"px-3 py-3 text-left font-semibold",children:["review (F",a,")"]}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"behavioral"}),c.jsx("th",{className:"px-3 py-3 text-left font-semibold",children:"checks"}),c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:"cost"}),c.jsx("th",{className:"px-3 py-3 text-right font-semibold",children:"latency"})]})}),c.jsxs("tbody",{children:[t.map((E,D)=>{var V;const H=((V=E.behavioral)==null?void 0:V.checks)??[];return c.jsxs("tr",{className:"border-t border-base-300 align-middle",children:[c.jsxs("td",{className:"px-3 py-2.5 font-mono",children:[E.instance_id,E.sessions&&E.sessions.length>0&&c.jsx("button",{onClick:()=>v(E),className:"ml-2 rounded border border-base-300 px-1.5 py-0.5 align-middle font-sans text-2xs text-info hover:border-info hover:text-base-content",title:"View the agent session log (per phase)",children:"log"})]}),c.jsx("td",{className:"px-3 py-2.5 font-mono text-base-content/50",children:fn(r,E.model)}),o&&c.jsxs("td",{className:"px-3 py-2.5",children:[E.blocked?c.jsx(Le,{kind:"blocked",children:"blocked"}):E.resolved===void 0?c.jsx(Le,{kind:"na",children:"—"}):E.resolved?c.jsx(Le,{kind:"pass",children:"resolved"}):c.jsx(Le,{kind:"fail",children:"unresolved"}),!E.blocked&&c.jsx(vh,{pass:E.resolvedPass,trials:E.trials}),S(E)&&c.jsx("button",{onClick:()=>w(E),className:"ml-2 rounded border border-base-300 px-1.5 py-0.5 align-middle font-sans text-2xs text-info hover:border-info hover:text-base-content",title:"View the held-out test results + captured output",children:"tests"}),h(E)&&c.jsx("button",{onClick:()=>m(E),className:"ml-2 rounded border border-base-300 px-1.5 py-0.5 align-middle font-sans text-2xs text-info hover:border-info hover:text-base-content",title:"Browse the files the agent changed (diff)",children:"files"})]}),i&&c.jsx("td",{className:"px-3 py-2.5 whitespace-nowrap",children:E.error?c.jsx(Le,{kind:"fail",children:"error"}):E.review?c.jsxs("span",{className:"inline-flex items-center gap-2",children:[c.jsxs("span",{title:Zoe(E),className:"cursor-help",children:[c.jsxs(Le,{kind:E.review.fbeta>=.5?"pass":"fail",children:[(E.review.fbeta*100).toFixed(0),"%"]}),c.jsxs("span",{className:"ml-2 font-mono text-2xs text-base-content/60",children:["P",E.review.precision.toFixed(2),"/R",E.review.recall.toFixed(2)," · ",E.review.matched,"/",E.review.gold," gold · ",E.review.falsePositives.length," FP"]})]}),E.review.trace&&c.jsx("button",{onClick:()=>x({title:`${g(E.instance_id,E.model)} · judge`,trace:E.review.trace}),className:"btn btn-ghost btn-xs h-5 min-h-0 px-1.5 font-mono text-2xs text-info",title:"Inspect the judge: extracted findings ↔ gold + raw replies",children:"judge"})]}):c.jsx(Le,{kind:"na",children:"—"})}),c.jsxs("td",{className:"px-3 py-2.5",children:[E.error?c.jsx(Le,{kind:"fail",children:"error"}):E.blocked?c.jsx(Le,{kind:"blocked",children:"blocked"}):E.behavioral?E.behavioral.ok?c.jsx(Le,{kind:"pass",children:"ok"}):c.jsx(Le,{kind:"fail",children:"miss"}):c.jsx(Le,{kind:"na",children:"—"}),!E.error&&!E.blocked&&c.jsx(vh,{pass:E.behavioralPass,trials:E.trials})]}),c.jsx("td",{className:"px-3 py-2.5 leading-7",children:H.length?H.map((B,se)=>c.jsx(Zb,{ok:B.ok,name:B.name,detail:B.detail},se)):c.jsx("span",{className:"text-base-content/40",children:"—"})}),c.jsxs("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono",children:["$",E.costUsd.toFixed(4)]}),c.jsx("td",{className:"whitespace-nowrap px-3 py-2.5 text-right font-mono",children:nv(E.durationMs)})]},`${E.instance_id}:${E.model}:${D}`)}),t.length===0&&n.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:l,className:"px-3 py-6 text-center font-mono text-base-content/40",children:"no results yet"})}),u.map((E,D)=>{const H=E.status==="running";return c.jsxs("tr",{className:"border-t border-base-300 "+(H?"bg-accent/5":"opacity-50"),children:[c.jsxs("td",{className:"px-3 py-2.5 font-mono text-base-content/50",children:[E.instance_id,H&&E.sessionLog&&c.jsx("button",{onClick:()=>N(E.sessionLog,E.instance_id,E.model),className:"ml-2 rounded border border-accent/40 px-1.5 py-0.5 align-middle font-sans text-2xs text-accent hover:border-accent hover:text-base-content",title:"Follow the agent session log live",children:"follow"})]}),c.jsx("td",{className:"px-3 py-2.5 font-mono text-base-content/50",children:fn(r,E.model)}),o&&c.jsx("td",{className:"px-3 py-2.5",children:E.status==="running"?c.jsx(Le,{kind:"run",children:"running…"}):c.jsx(Le,{kind:"wait",children:"queued"})}),i&&c.jsx("td",{className:"px-3 py-2.5",children:E.status==="running"?c.jsx(Le,{kind:"run",children:"running…"}):c.jsx(Le,{kind:"wait",children:"queued"})}),c.jsxs("td",{className:"px-3 py-2.5",children:[!o&&!i&&(E.status==="running"?c.jsx(Le,{kind:"run",children:"running…"}):c.jsx(Le,{kind:"wait",children:"queued"})),(o||i)&&c.jsx("span",{className:"text-base-content/40",children:"—"})]}),c.jsx("td",{className:"px-3 py-2.5 text-base-content/40",children:"—"}),c.jsx("td",{className:"px-3 py-2.5 text-right font-mono text-base-content/40",children:"—"}),c.jsx("td",{className:"px-3 py-2.5 text-right font-mono text-base-content/40",children:"—"})]},`pending:${E.instance_id}:${E.model}:${D}`)})]})]})}),d&&c.jsx(xre,{source:d,onClose:()=>f(null)}),p&&c.jsx(Yoe,{title:p.title,url:p.url,onClose:()=>y(null)}),k&&c.jsx(Xoe,{title:k.title,trace:k.trace,onClose:()=>x(null)})]})}function eie({run:e}){var S,N,A,j,E,D,H,V;const{data:t,isLoading:n,error:r}=Vb(e.scorecard,e.live),s=((S=t==null?void 0:t.meta)==null?void 0:S.labels)??e.labels,o=(t==null?void 0:t.results)??[],i=((N=t==null?void 0:t.meta)==null?void 0:N.pending)??[],a=[];for(const B of o){const se=B.tier??e.tiers[0]??"—";a.includes(se)||a.push(se)}for(const B of i)a.includes(B.tier)||a.push(B.tier);const l=a.length?a:e.tiers,[u,d]=I.useState(0),f=l[Math.min(u,Math.max(0,l.length-1))]??e.tiers[0]??"—",p=o.filter(B=>(B.tier??l[0])===f),y=i.filter(B=>B.tier===f),k=rw(p),x=((A=k.find(B=>B.reviewBeta!==void 0))==null?void 0:A.reviewBeta)??1,T=((j=t==null?void 0:t.meta)==null?void 0:j.runType)??e.runType??"models",g=T==="config",h=g?"configs":"models",m=[...new Set(o.map(B=>B.model))].map(B=>fn(s,B)),v=tie(o),w=v+i.length;return c.jsxs("div",{children:[c.jsxs("header",{className:"mb-6 border-b border-base-300 pb-5",children:[c.jsxs("h1",{className:"text-2xl font-semibold text-base-content",children:["Eval Scorecard",c.jsx(id,{runType:T,className:"ml-3 align-middle"}),c.jsx(Xa,{run:e,className:"ml-3 align-middle font-mono",size:"sm"})]}),c.jsxs("div",{className:"mt-1.5 font-mono text-xs text-base-content/50",children:[c.jsx("b",{className:"font-semibold text-base-content",children:l.join(" + ")})," · ",h,":"," ",c.jsx("b",{className:"font-semibold text-base-content",children:m.join(", ")})," · ",v,i.length?` / ${w}`:""," cases",e.runs>1&&c.jsxs(c.Fragment,{children:[" "," · ",c.jsxs("b",{className:"font-semibold text-base-content",children:[e.runs,"×"]})," per case"," ",c.jsx("span",{className:"text-base-content/40",children:"(worst-case verdict · mean cost)"})]}),e.gitSha&&c.jsxs(c.Fragment,{children:[" "," · ",c.jsx("span",{className:"text-base-content/70",children:e.gitSha})]})," · ",Ya(((E=t==null?void 0:t.meta)==null?void 0:E.generatedAt)??e.generatedAt)]}),f==="pr-review"&&((H=(D=t==null?void 0:t.meta)==null?void 0:D.martian)==null?void 0:H.models[0])&&c.jsxs("button",{onClick:()=>{var B;return(B=document.getElementById("martian-rank"))==null?void 0:B.scrollIntoView({behavior:"smooth",block:"start"})},className:"mt-3 inline-flex items-center gap-1.5 rounded-lg border border-accent/40 bg-accent/10 px-3 py-1.5 font-mono text-xs text-accent transition-colors hover:bg-accent/20",children:[c.jsxs("span",{className:"font-bold",children:["Lastlight ranks #",t.meta.martian.models[0].rank," of ",t.meta.martian.models[0].of]}),c.jsxs("span",{className:"text-accent/70",children:["vs Martian tools over these ",t.meta.martian.prCount," PR",t.meta.martian.prCount===1?"":"s"]}),c.jsx("span",{"aria-hidden":!0,children:"↓"})]})]}),r&&c.jsx(oie,{message:r.message}),n&&!t?c.jsx(sie,{}):c.jsxs(c.Fragment,{children:[l.length>1&&c.jsx("nav",{className:"mb-4 flex flex-wrap gap-2",children:l.map((B,se)=>c.jsx("button",{onClick:()=>d(se),className:"rounded-lg border px-4 py-2 font-mono text-xs font-semibold "+(B===f?"border-accent bg-accent text-accent-content":"border-base-300 bg-base-200 text-base-content/60 hover:border-info hover:text-base-content"),children:B},B))}),c.jsxs("h2",{className:(f==="pr-review"?"mb-2":"mb-3.5")+" mt-2 text-lg font-semibold text-base-content",children:[g?"Config comparison":"Model comparison"," ",c.jsxs("span",{className:"font-normal text-base-content/50",children:["— ",f]})]}),f==="pr-review"&&c.jsxs("details",{className:"group mb-4 max-w-2xl",children:[c.jsxs("summary",{className:"inline-flex cursor-pointer list-none items-center gap-1.5 text-2xs text-base-content/50 transition-colors hover:text-base-content/80 [&::-webkit-details-marker]:hidden",children:[c.jsx("span",{className:"flex h-4 w-4 items-center justify-center rounded-full border border-base-content/30 font-mono text-[10px] leading-none",children:"?"}),"Comparison methodology",c.jsx("span",{className:"text-base-content/30 transition-transform group-open:rotate-90",children:"›"})]}),c.jsxs("p",{className:"mt-2 text-2xs leading-5 text-base-content/50",children:["An LLM judge matches the posted review against a human-verified gold set of real issues, giving"," ",c.jsx("span",{className:"text-base-content/70",children:"precision"})," (matched ÷ posted) and"," ",c.jsx("span",{className:"text-base-content/70",children:"recall"})," (matched ÷ gold), combined as"," ",c.jsxs("b",{className:"font-semibold text-base-content/70",children:["F",x]}),x===1?c.jsxs(c.Fragment,{children:[" — the F-beta with ",c.jsx("span",{className:"font-mono",children:"β=1"})," (equal weight), matching the benchmark leaderboard"]}):c.jsxs(c.Fragment,{children:[" — the F-beta with ",c.jsxs("span",{className:"font-mono",children:["β=",x]})," (via ",c.jsx("span",{className:"font-mono",children:"EVAL_F_BETA"}),"; β<1 weights precision higher)"]}),". Click ",c.jsx("b",{className:"font-semibold text-base-content/70",children:"judge"})," on any row to inspect the match. Cases come from the offline set of"," ",c.jsx("a",{href:"https://github.com/withmartian/code-review-benchmark",target:"_blank",rel:"noreferrer",className:"text-info hover:underline",children:"Martian's Code Review Bench"}),"; its gold set is known to be incomplete, so unrecognized-but-real findings can score as false positives."]})]}),c.jsx(sw,{models:k,tier:f,labels:s,axisLabel:g?"Config":"Model"}),g&&c.jsx(nie,{results:p,labels:s}),c.jsx("h2",{className:"mb-3.5 mt-8 text-lg font-semibold text-base-content",children:"Per-instance results"}),c.jsx(Joe,{tier:f,results:p,pending:y,labels:s,scorecardUrl:e.scorecard}),f==="pr-review"&&((V=t==null?void 0:t.meta)==null?void 0:V.martian)&&c.jsx(rie,{ranking:t.meta.martian,labels:s})]})]})}function tie(e){return new Set(e.map(t=>`${t.tier??""}|${t.model}|${t.instance_id}`)).size}function nie({results:e,labels:t}){var s;const n=new Map;for(const o of e)n.has(o.model)||!((s=o.phases)!=null&&s.length)||n.set(o.model,o.phases.filter(i=>i.model).map(i=>[i.phase,i.model]));const r=[...n].filter(([,o])=>o.length);return r.length?c.jsxs("div",{className:"mt-5",children:[c.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold uppercase tracking-wide text-base-content/50",children:"Per-step models"}),c.jsx("div",{className:"flex flex-col gap-3",children:r.map(([o,i])=>c.jsxs("div",{className:"rounded-xl border border-base-300 bg-base-200 px-4 py-3",children:[c.jsx("div",{className:"mb-2 font-mono text-xs font-semibold text-base-content",children:fn(t,o)}),c.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 font-mono text-2xs",children:i.map(([a,l],u)=>c.jsxs("span",{className:"whitespace-nowrap text-base-content/60",children:[c.jsx("span",{className:"text-base-content/40",children:a}),c.jsx("span",{className:"mx-1 text-base-content/30",children:"→"}),c.jsx("span",{className:"text-info",children:l})]},`${a}-${u}`))})]},o))})]}):null}function rie({ranking:e,labels:t}){new Set(e.models.map(o=>o.key));const n=[...e.tools.map(o=>({...o,us:!1,display:o.name})),...e.models.map(o=>({...o,us:!0,display:`Lastlight (${fn(t,o.key)})`}))].sort((o,i)=>i.f1-o.f1),r=Math.max(...n.map(o=>o.f1),.01),s=e.models[0];return c.jsxs("div",{className:"mt-8 scroll-mt-4",id:"martian-rank",children:[c.jsxs("h3",{className:"mb-1 text-lg font-semibold text-base-content",children:["Where would this rank?"," ",s&&c.jsxs("span",{className:"ml-1 align-middle font-mono text-sm font-bold text-accent",children:["#",s.rank," of ",s.of]})]}),c.jsxs("p",{className:"mb-3 max-w-2xl text-2xs leading-5 text-base-content/50",children:["Ranked against"," ",c.jsx("a",{href:"https://github.com/withmartian/code-review-benchmark",target:"_blank",rel:"noreferrer",className:"text-info hover:underline",children:"Martian's Code Review Bench"})," ","tools over the ",c.jsxs("b",{className:"font-semibold text-base-content/70",children:["same ",e.prCount," PR",e.prCount===1?"":"s"]})," ","this run covered — not the full leaderboard. Micro-averaged F1. Only tools with data on every one of these PRs are shown."," ",c.jsxs("span",{className:"text-base-content/40",children:["Cross-judge: our reviews are graded by our judge; Martian's tools by"," ",c.jsx("span",{className:"font-mono",children:e.judgeModel.split("/").pop()}),"."]})]}),c.jsx("div",{className:"max-w-2xl overflow-hidden rounded-xl border border-base-300 bg-base-200",children:n.map((o,i)=>{const a=Math.round(o.f1/r*100);return c.jsxs("div",{className:"flex items-center gap-3 px-3 py-1.5 "+(i>0?"border-t border-base-300/60 ":"")+(o.us?"bg-accent/15":""),children:[c.jsx("span",{className:"w-6 shrink-0 text-right font-mono text-2xs tabular-nums text-base-content/40",children:i+1}),c.jsx("span",{className:"w-56 shrink-0 truncate font-mono text-xs "+(o.us?"font-bold text-accent":"text-base-content/80"),title:o.display,children:o.display}),c.jsx("div",{className:"relative h-3 flex-1 overflow-hidden rounded bg-base-300/50",children:c.jsx("div",{className:"h-full rounded "+(o.us?"bg-accent":"bg-info/50"),style:{width:`${a}%`}})}),c.jsx("span",{className:"w-10 shrink-0 text-right font-mono text-xs tabular-nums "+(o.us?"font-bold text-accent":"text-base-content/60"),children:(o.f1*100).toFixed(1)})]},`${o.us?"us":"tool"}-${o.key}`)})})]})}function sie(){return c.jsx("div",{className:"py-16 text-center font-mono text-sm text-base-content/40",children:"loading scorecard…"})}function oie({message:e}){return c.jsx("div",{className:"mb-4 rounded-xl border border-error/40 bg-error/10 px-4 py-3 font-mono text-xs text-error",children:e})}function iie(){const{data:e,isLoading:t,error:n}=Gb(),r=Yb(),s=sd(),o=(e==null?void 0:e.tiers)??[],i=r.tierKey?o.find(l=>l.key===r.tierKey):void 0,a=r.runId&&i?i.runs.find(l=>l.id===r.runId):void 0;return c.jsx("div",{className:"min-h-full",children:c.jsxs("div",{className:"mx-auto max-w-[1600px] px-8 pb-20 pt-10",children:[c.jsxs("nav",{className:"mb-7 flex flex-wrap items-center gap-x-3 gap-y-2",children:[c.jsxs("button",{onClick:()=>s(),className:"flex items-center gap-2.5 text-xl font-semibold tracking-tight text-base-content",children:[c.jsx("img",{src:"/logo.png",alt:"Last Light",width:28,height:28,className:"h-7 w-7 object-contain"}),"Last Light ",c.jsx("span",{className:"text-accent",children:"·"})," ",c.jsx("span",{className:"text-base-content/70",children:"Evals"})]}),c.jsx("div",{className:"ml-auto flex flex-wrap gap-2",children:o.map(l=>c.jsxs("button",{onClick:()=>s(l.key),className:"rounded-lg border px-3 py-1.5 font-mono text-xs font-semibold "+(l.key===(i==null?void 0:i.key)?"border-info bg-info/15 text-info":"border-base-300 bg-base-200 text-base-content/60 hover:border-info hover:text-base-content"),children:[l.key,c.jsx("span",{className:"ml-1.5 text-base-content/40",children:l.runs.length})]},l.key))})]}),n&&e&&c.jsxs("div",{className:"mb-4 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 font-mono text-2xs text-warning",children:["Lost contact with the eval server — showing the last data. Is ",c.jsx("span",{className:"font-semibold",children:"lastlight-evals serve"})," still running?"]}),n&&!e?c.jsx(cie,{message:n.message}):t&&!e?c.jsx(lie,{}):o.length?a&&i?c.jsxs("div",{children:[c.jsxs("button",{onClick:()=>s(i.key),className:"mb-5 font-mono text-xs text-info hover:underline",children:["← all ",i.key," runs"]}),c.jsx(eie,{run:a})]}):i?c.jsxs("div",{children:[c.jsx("button",{onClick:()=>s(),className:"mb-5 font-mono text-xs text-info hover:underline",children:"← overview"}),c.jsx("h1",{className:"mb-1 text-2xl font-semibold text-base-content",children:i.key}),c.jsxs("p",{className:"mb-6 font-mono text-xs text-base-content/50",children:[i.runs.length," run",i.runs.length===1?"":"s"," · click a run to open its scorecard"]}),c.jsx(tw,{tier:i})]}):c.jsx(ew,{tiers:o}):c.jsx(aie,{}),c.jsxs("footer",{className:"mt-12 border-t border-base-300 pt-5 font-mono text-2xs text-base-content/40",children:["Real production workflows · mocked GitHub · deterministic grading. ★ = best in column. Generated by"," ",c.jsx("span",{className:"text-base-content/60",children:"lastlight-evals run"}),"."]})]})})}function aie(){return c.jsxs("div",{className:"rounded-xl border border-base-300 bg-base-200 px-5 py-10 text-center",children:[c.jsx("p",{className:"font-mono text-sm text-base-content/60",children:"No runs yet."}),c.jsxs("p",{className:"mt-2 font-mono text-xs text-base-content/40",children:["Run ",c.jsx("span",{className:"text-accent",children:"lastlight-evals run"})," to record one."]})]})}function lie(){return c.jsxs("div",{className:"flex flex-col items-center gap-3 py-20",children:[c.jsx("span",{className:"loading loading-spinner loading-md text-base-content/30"}),c.jsx("p",{className:"font-mono text-xs text-base-content/40",children:"loading eval results…"})]})}function cie({message:e}){return c.jsxs("div",{className:"rounded-xl border border-error/40 bg-error/10 px-5 py-10 text-center",children:[c.jsx("p",{className:"font-mono text-sm text-error",children:"Couldn't reach the eval server."}),c.jsxs("p",{className:"mt-2 font-mono text-xs text-base-content/50",children:["Start it with ",c.jsx("span",{className:"text-accent",children:"lastlight-evals serve"})," (or it stays up after a"," ",c.jsx("span",{className:"text-accent",children:"run"}),")."]}),c.jsx("p",{className:"mt-3 font-mono text-2xs text-base-content/30",children:e})]})}const uie=new jb({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});qy(document.getElementById("root")).render(c.jsx(Q0.StrictMode,{children:c.jsx(Lb,{client:uie,children:c.jsx(iie,{})})}));
|