Skip to content

Instantly share code, notes, and snippets.

@aldehir
Last active December 26, 2025 12:05
Show Gist options
  • Select an option

  • Save aldehir/51f6dd6c7dfe899861fcafef875ae878 to your computer and use it in GitHub Desktop.

Select an option

Save aldehir/51f6dd6c7dfe899861fcafef875ae878 to your computer and use it in GitHub Desktop.
llama.cpp pre-sveltekit webui

Install index.html into a folder such as "old-webui"

Run llama-server with --path ./old-webui

This file has been truncated, but you can view the full file.
<!--
This is a single file build of the frontend.
It is automatically generated by the build process.
Do not edit this file directly.
To make changes, refer to the "Web UI" section in the README.
-->
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"
/>
<meta name="color-scheme" content="light dark" />
<title>🦙 llama.cpp - chat</title>
<script type="module" crossorigin>var US=Object.defineProperty;var wV=l=>{throw TypeError(l)};var ES=(l,t,e)=>t in l?US(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var qt=(l,t,e)=>ES(l,typeof t!="symbol"?t+"":t,e),gM=(l,t,e)=>t.has(l)||wV("Cannot "+e);var h=(l,t,e)=>(gM(l,t,"read from private field"),e?e.call(l):t.get(l)),D=(l,t,e)=>t.has(l)?wV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),g=(l,t,e,n)=>(gM(l,t,"write to private field"),n?n.call(l,e):t.set(l,e),e),O=(l,t,e)=>(gM(l,t,"access private method"),e);var ts=(l,t,e,n)=>({set _(i){g(l,t,i,e)},get _(){return h(l,t,n)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function e(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=e(i);fetch(i.href,s)}})();var vS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qu(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var SM={exports:{}},Ab={},RM={exports:{}},ml={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xV;function KS(){if(xV)return ml;xV=1;var l=Symbol.for("react.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),Z=Symbol.iterator;function p(lt){return lt===null||typeof lt!="object"?null:(lt=Z&&lt[Z]||lt["@@iterator"],typeof lt=="function"?lt:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,X={};function z(lt,Mt,H){this.props=lt,this.context=Mt,this.refs=X,this.updater=H||y}z.prototype.isReactComponent={},z.prototype.setState=function(lt,Mt){if(typeof lt!="object"&&typeof lt!="function"&&lt!=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,lt,Mt,"setState")},z.prototype.forceUpdate=function(lt){this.updater.enqueueForceUpdate(this,lt,"forceUpdate")};function L(){}L.prototype=z.prototype;function S(lt,Mt,H){this.props=lt,this.context=Mt,this.refs=X,this.updater=H||y}var R=S.prototype=new L;R.constructor=S,G(R,z.prototype),R.isPureReactComponent=!0;var J=Array.isArray,U=Object.prototype.hasOwnProperty,j={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function it(lt,Mt,H){var le,Ze={},$t=null,me=null;if(Mt!=null)for(le in Mt.ref!==void 0&&(me=Mt.ref),Mt.key!==void 0&&($t=""+Mt.key),Mt)U.call(Mt,le)&&!Q.hasOwnProperty(le)&&(Ze[le]=Mt[le]);var ye=arguments.length-2;if(ye===1)Ze.children=H;else if(1<ye){for(var Ft=Array(ye),Pe=0;Pe<ye;Pe++)Ft[Pe]=arguments[Pe+2];Ze.children=Ft}if(lt&&lt.defaultProps)for(le in ye=lt.defaultProps,ye)Ze[le]===void 0&&(Ze[le]=ye[le]);return{$$typeof:l,type:lt,key:$t,ref:me,props:Ze,_owner:j.current}}function at(lt,Mt){return{$$typeof:l,type:lt.type,key:Mt,ref:lt.ref,props:lt.props,_owner:lt._owner}}function _(lt){return typeof lt=="object"&&lt!==null&&lt.$$typeof===l}function Wt(lt){var Mt={"=":"=0",":":"=2"};return"$"+lt.replace(/[=:]/g,function(H){return Mt[H]})}var ht=/\/+/g;function Tt(lt,Mt){return typeof lt=="object"&&lt!==null&&lt.key!=null?Wt(""+lt.key):Mt.toString(36)}function Zt(lt,Mt,H,le,Ze){var $t=typeof lt;($t==="undefined"||$t==="boolean")&&(lt=null);var me=!1;if(lt===null)me=!0;else switch($t){case"string":case"number":me=!0;break;case"object":switch(lt.$$typeof){case l:case t:me=!0}}if(me)return me=lt,Ze=Ze(me),lt=le===""?"."+Tt(me,0):le,J(Ze)?(H="",lt!=null&&(H=lt.replace(ht,"$&/")+"/"),Zt(Ze,Mt,H,"",function(Pe){return Pe})):Ze!=null&&(_(Ze)&&(Ze=at(Ze,H+(!Ze.key||me&&me.key===Ze.key?"":(""+Ze.key).replace(ht,"$&/")+"/")+lt)),Mt.push(Ze)),1;if(me=0,le=le===""?".":le+":",J(lt))for(var ye=0;ye<lt.length;ye++){$t=lt[ye];var Ft=le+Tt($t,ye);me+=Zt($t,Mt,H,Ft,Ze)}else if(Ft=p(lt),typeof Ft=="function")for(lt=Ft.call(lt),ye=0;!($t=lt.next()).done;)$t=$t.value,Ft=le+Tt($t,ye++),me+=Zt($t,Mt,H,Ft,Ze);else if($t==="object")throw Mt=String(lt),Error("Objects are not valid as a React child (found: "+(Mt==="[object Object]"?"object with keys {"+Object.keys(lt).join(", ")+"}":Mt)+"). If you meant to render a collection of children, use an array instead.");return me}function Xt(lt,Mt,H){if(lt==null)return lt;var le=[],Ze=0;return Zt(lt,le,"","",function($t){return Mt.call(H,$t,Ze++)}),le}function St(lt){if(lt._status===-1){var Mt=lt._result;Mt=Mt(),Mt.then(function(H){(lt._status===0||lt._status===-1)&&(lt._status=1,lt._result=H)},function(H){(lt._status===0||lt._status===-1)&&(lt._status=2,lt._result=H)}),lt._status===-1&&(lt._status=0,lt._result=Mt)}if(lt._status===1)return lt._result.default;throw lt._result}var Rt={current:null},Yt={transition:null},Dt={ReactCurrentDispatcher:Rt,ReactCurrentBatchConfig:Yt,ReactCurrentOwner:j};function K(){throw Error("act(...) is not supported in production builds of React.")}return ml.Children={map:Xt,forEach:function(lt,Mt,H){Xt(lt,function(){Mt.apply(this,arguments)},H)},count:function(lt){var Mt=0;return Xt(lt,function(){Mt++}),Mt},toArray:function(lt){return Xt(lt,function(Mt){return Mt})||[]},only:function(lt){if(!_(lt))throw Error("React.Children.only expected to receive a single React element child.");return lt}},ml.Component=z,ml.Fragment=e,ml.Profiler=i,ml.PureComponent=S,ml.StrictMode=n,ml.Suspense=d,ml.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dt,ml.act=K,ml.cloneElement=function(lt,Mt,H){if(lt==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+lt+".");var le=G({},lt.props),Ze=lt.key,$t=lt.ref,me=lt._owner;if(Mt!=null){if(Mt.ref!==void 0&&($t=Mt.ref,me=j.current),Mt.key!==void 0&&(Ze=""+Mt.key),lt.type&&lt.type.defaultProps)var ye=lt.type.defaultProps;for(Ft in Mt)U.call(Mt,Ft)&&!Q.hasOwnProperty(Ft)&&(le[Ft]=Mt[Ft]===void 0&&ye!==void 0?ye[Ft]:Mt[Ft])}var Ft=arguments.length-2;if(Ft===1)le.children=H;else if(1<Ft){ye=Array(Ft);for(var Pe=0;Pe<Ft;Pe++)ye[Pe]=arguments[Pe+2];le.children=ye}return{$$typeof:l,type:lt.type,key:Ze,ref:$t,props:le,_owner:me}},ml.createContext=function(lt){return lt={$$typeof:a,_currentValue:lt,_currentValue2:lt,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},lt.Provider={$$typeof:s,_context:lt},lt.Consumer=lt},ml.createElement=it,ml.createFactory=function(lt){var Mt=it.bind(null,lt);return Mt.type=lt,Mt},ml.createRef=function(){return{current:null}},ml.forwardRef=function(lt){return{$$typeof:o,render:lt}},ml.isValidElement=_,ml.lazy=function(lt){return{$$typeof:m,_payload:{_status:-1,_result:lt},_init:St}},ml.memo=function(lt,Mt){return{$$typeof:u,type:lt,compare:Mt===void 0?null:Mt}},ml.startTransition=function(lt){var Mt=Yt.transition;Yt.transition={};try{lt()}finally{Yt.transition=Mt}},ml.unstable_act=K,ml.useCallback=function(lt,Mt){return Rt.current.useCallback(lt,Mt)},ml.useContext=function(lt){return Rt.current.useContext(lt)},ml.useDebugValue=function(){},ml.useDeferredValue=function(lt){return Rt.current.useDeferredValue(lt)},ml.useEffect=function(lt,Mt){return Rt.current.useEffect(lt,Mt)},ml.useId=function(){return Rt.current.useId()},ml.useImperativeHandle=function(lt,Mt,H){return Rt.current.useImperativeHandle(lt,Mt,H)},ml.useInsertionEffect=function(lt,Mt){return Rt.current.useInsertionEffect(lt,Mt)},ml.useLayoutEffect=function(lt,Mt){return Rt.current.useLayoutEffect(lt,Mt)},ml.useMemo=function(lt,Mt){return Rt.current.useMemo(lt,Mt)},ml.useReducer=function(lt,Mt,H){return Rt.current.useReducer(lt,Mt,H)},ml.useRef=function(lt){return Rt.current.useRef(lt)},ml.useState=function(lt){return Rt.current.useState(lt)},ml.useSyncExternalStore=function(lt,Mt,H){return Rt.current.useSyncExternalStore(lt,Mt,H)},ml.useTransition=function(){return Rt.current.useTransition()},ml.version="18.3.1",ml}var gV;function jY(){return gV||(gV=1,RM.exports=KS()),RM.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var SV;function PS(){if(SV)return Ab;SV=1;var l=jY(),t=Symbol.for("react.element"),e=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(o,d,u){var m,Z={},p=null,y=null;u!==void 0&&(p=""+u),d.key!==void 0&&(p=""+d.key),d.ref!==void 0&&(y=d.ref);for(m in d)n.call(d,m)&&!s.hasOwnProperty(m)&&(Z[m]=d[m]);if(o&&o.defaultProps)for(m in d=o.defaultProps,d)Z[m]===void 0&&(Z[m]=d[m]);return{$$typeof:t,type:o,key:p,ref:y,props:Z,_owner:i.current}}return Ab.Fragment=e,Ab.jsx=a,Ab.jsxs=a,Ab}var RV;function HS(){return RV||(RV=1,SM.exports=PS()),SM.exports}var P=HS(),v=jY();const Lz=qu(v);var ky={},kM={exports:{}},Ts={},fM={exports:{}},DM={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kV;function QS(){return kV||(kV=1,function(l){function t(Yt,Dt){var K=Yt.length;Yt.push(Dt);t:for(;0<K;){var lt=K-1>>>1,Mt=Yt[lt];if(0<i(Mt,Dt))Yt[lt]=Dt,Yt[K]=Mt,K=lt;else break t}}function e(Yt){return Yt.length===0?null:Yt[0]}function n(Yt){if(Yt.length===0)return null;var Dt=Yt[0],K=Yt.pop();if(K!==Dt){Yt[0]=K;t:for(var lt=0,Mt=Yt.length,H=Mt>>>1;lt<H;){var le=2*(lt+1)-1,Ze=Yt[le],$t=le+1,me=Yt[$t];if(0>i(Ze,K))$t<Mt&&0>i(me,Ze)?(Yt[lt]=me,Yt[$t]=K,lt=$t):(Yt[lt]=Ze,Yt[le]=K,lt=le);else if($t<Mt&&0>i(me,K))Yt[lt]=me,Yt[$t]=K,lt=$t;else break t}}return Dt}function i(Yt,Dt){var K=Yt.sortIndex-Dt.sortIndex;return K!==0?K:Yt.id-Dt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;l.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();l.unstable_now=function(){return a.now()-o}}var d=[],u=[],m=1,Z=null,p=3,y=!1,G=!1,X=!1,z=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(Yt){for(var Dt=e(u);Dt!==null;){if(Dt.callback===null)n(u);else if(Dt.startTime<=Yt)n(u),Dt.sortIndex=Dt.expirationTime,t(d,Dt);else break;Dt=e(u)}}function J(Yt){if(X=!1,R(Yt),!G)if(e(d)!==null)G=!0,St(U);else{var Dt=e(u);Dt!==null&&Rt(J,Dt.startTime-Yt)}}function U(Yt,Dt){G=!1,X&&(X=!1,L(it),it=-1),y=!0;var K=p;try{for(R(Dt),Z=e(d);Z!==null&&(!(Z.expirationTime>Dt)||Yt&&!Wt());){var lt=Z.callback;if(typeof lt=="function"){Z.callback=null,p=Z.priorityLevel;var Mt=lt(Z.expirationTime<=Dt);Dt=l.unstable_now(),typeof Mt=="function"?Z.callback=Mt:Z===e(d)&&n(d),R(Dt)}else n(d);Z=e(d)}if(Z!==null)var H=!0;else{var le=e(u);le!==null&&Rt(J,le.startTime-Dt),H=!1}return H}finally{Z=null,p=K,y=!1}}var j=!1,Q=null,it=-1,at=5,_=-1;function Wt(){return!(l.unstable_now()-_<at)}function ht(){if(Q!==null){var Yt=l.unstable_now();_=Yt;var Dt=!0;try{Dt=Q(!0,Yt)}finally{Dt?Tt():(j=!1,Q=null)}}else j=!1}var Tt;if(typeof S=="function")Tt=function(){S(ht)};else if(typeof MessageChannel<"u"){var Zt=new MessageChannel,Xt=Zt.port2;Zt.port1.onmessage=ht,Tt=function(){Xt.postMessage(null)}}else Tt=function(){z(ht,0)};function St(Yt){Q=Yt,j||(j=!0,Tt())}function Rt(Yt,Dt){it=z(function(){Yt(l.unstable_now())},Dt)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(Yt){Yt.callback=null},l.unstable_continueExecution=function(){G||y||(G=!0,St(U))},l.unstable_forceFrameRate=function(Yt){0>Yt||125<Yt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):at=0<Yt?Math.floor(1e3/Yt):5},l.unstable_getCurrentPriorityLevel=function(){return p},l.unstable_getFirstCallbackNode=function(){return e(d)},l.unstable_next=function(Yt){switch(p){case 1:case 2:case 3:var Dt=3;break;default:Dt=p}var K=p;p=Dt;try{return Yt()}finally{p=K}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(Yt,Dt){switch(Yt){case 1:case 2:case 3:case 4:case 5:break;default:Yt=3}var K=p;p=Yt;try{return Dt()}finally{p=K}},l.unstable_scheduleCallback=function(Yt,Dt,K){var lt=l.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?lt+K:lt):K=lt,Yt){case 1:var Mt=-1;break;case 2:Mt=250;break;case 5:Mt=1073741823;break;case 4:Mt=1e4;break;default:Mt=5e3}return Mt=K+Mt,Yt={id:m++,callback:Dt,priorityLevel:Yt,startTime:K,expirationTime:Mt,sortIndex:-1},K>lt?(Yt.sortIndex=K,t(u,Yt),e(d)===null&&Yt===e(u)&&(X?(L(it),it=-1):X=!0,Rt(J,K-lt))):(Yt.sortIndex=Mt,t(d,Yt),G||y||(G=!0,St(U))),Yt},l.unstable_shouldYield=Wt,l.unstable_wrapCallback=function(Yt){var Dt=p;return function(){var K=p;p=Dt;try{return Yt.apply(this,arguments)}finally{p=K}}}}(DM)),DM}var fV;function BS(){return fV||(fV=1,fM.exports=QS()),fM.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var DV;function AS(){if(DV)return Ts;DV=1;var l=jY(),t=BS();function e(c){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+c,b=1;b<arguments.length;b++)r+="&args[]="+encodeURIComponent(arguments[b]);return"Minified React error #"+c+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function s(c,r){a(c,r),a(c+"Capture",r)}function a(c,r){for(i[c]=r,c=0;c<r.length;c++)n.add(r[c])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,u=/^[: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]*$/,m={},Z={};function p(c){return d.call(Z,c)?!0:d.call(m,c)?!1:u.test(c)?Z[c]=!0:(m[c]=!0,!1)}function y(c,r,b,W){if(b!==null&&b.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return W?!1:b!==null?!b.acceptsBooleans:(c=c.toLowerCase().slice(0,5),c!=="data-"&&c!=="aria-");default:return!1}}function G(c,r,b,W){if(r===null||typeof r>"u"||y(c,r,b,W))return!0;if(W)return!1;if(b!==null)switch(b.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function X(c,r,b,W,Y,I,C){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=W,this.attributeNamespace=Y,this.mustUseProperty=b,this.propertyName=c,this.type=r,this.sanitizeURL=I,this.removeEmptyString=C}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c){z[c]=new X(c,0,!1,c,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(c){var r=c[0];z[r]=new X(r,1,!1,c[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(c){z[c]=new X(c,2,!1,c.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(c){z[c]=new X(c,2,!1,c,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(c){z[c]=new X(c,3,!1,c.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(c){z[c]=new X(c,3,!0,c,null,!1,!1)}),["capture","download"].forEach(function(c){z[c]=new X(c,4,!1,c,null,!1,!1)}),["cols","rows","size","span"].forEach(function(c){z[c]=new X(c,6,!1,c,null,!1,!1)}),["rowSpan","start"].forEach(function(c){z[c]=new X(c,5,!1,c.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function S(c){return c[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(c){var r=c.replace(L,S);z[r]=new X(r,1,!1,c,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c){var r=c.replace(L,S);z[r]=new X(r,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(c){var r=c.replace(L,S);z[r]=new X(r,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(c){z[c]=new X(c,1,!1,c.toLowerCase(),null,!1,!1)}),z.xlinkHref=new X("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(c){z[c]=new X(c,1,!1,c.toLowerCase(),null,!0,!0)});function R(c,r,b,W){var Y=z.hasOwnProperty(r)?z[r]:null;(Y!==null?Y.type!==0:W||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(G(r,b,Y,W)&&(b=null),W||Y===null?p(r)&&(b===null?c.removeAttribute(r):c.setAttribute(r,""+b)):Y.mustUseProperty?c[Y.propertyName]=b===null?Y.type===3?!1:"":b:(r=Y.attributeName,W=Y.attributeNamespace,b===null?c.removeAttribute(r):(Y=Y.type,b=Y===3||Y===4&&b===!0?"":""+b,W?c.setAttributeNS(W,r,b):c.setAttribute(r,b))))}var J=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),j=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),it=Symbol.for("react.strict_mode"),at=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),Wt=Symbol.for("react.context"),ht=Symbol.for("react.forward_ref"),Tt=Symbol.for("react.suspense"),Zt=Symbol.for("react.suspense_list"),Xt=Symbol.for("react.memo"),St=Symbol.for("react.lazy"),Rt=Symbol.for("react.offscreen"),Yt=Symbol.iterator;function Dt(c){return c===null||typeof c!="object"?null:(c=Yt&&c[Yt]||c["@@iterator"],typeof c=="function"?c:null)}var K=Object.assign,lt;function Mt(c){if(lt===void 0)try{throw Error()}catch(b){var r=b.stack.trim().match(/\n( *(at )?)/);lt=r&&r[1]||""}return`
`+lt+c}var H=!1;function le(c,r){if(!c||H)return"";H=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(wt){var W=wt}Reflect.construct(c,[],r)}else{try{r.call()}catch(wt){W=wt}c.call(r.prototype)}else{try{throw Error()}catch(wt){W=wt}c()}}catch(wt){if(wt&&W&&typeof wt.stack=="string"){for(var Y=wt.stack.split(`
`),I=W.stack.split(`
`),C=Y.length-1,A=I.length-1;1<=C&&0<=A&&Y[C]!==I[A];)A--;for(;1<=C&&0<=A;C--,A--)if(Y[C]!==I[A]){if(C!==1||A!==1)do if(C--,A--,0>A||Y[C]!==I[A]){var st=`
`+Y[C].replace(" at new "," at ");return c.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",c.displayName)),st}while(1<=C&&0<=A);break}}}finally{H=!1,Error.prepareStackTrace=b}return(c=c?c.displayName||c.name:"")?Mt(c):""}function Ze(c){switch(c.tag){case 5:return Mt(c.type);case 16:return Mt("Lazy");case 13:return Mt("Suspense");case 19:return Mt("SuspenseList");case 0:case 2:case 15:return c=le(c.type,!1),c;case 11:return c=le(c.type.render,!1),c;case 1:return c=le(c.type,!0),c;default:return""}}function $t(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case Q:return"Fragment";case j:return"Portal";case at:return"Profiler";case it:return"StrictMode";case Tt:return"Suspense";case Zt:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Wt:return(c.displayName||"Context")+".Consumer";case _:return(c._context.displayName||"Context")+".Provider";case ht:var r=c.render;return c=c.displayName,c||(c=r.displayName||r.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Xt:return r=c.displayName||null,r!==null?r:$t(c.type)||"Memo";case St:r=c._payload,c=c._init;try{return $t(c(r))}catch{}}return null}function me(c){var r=c.type;switch(c.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=r.render,c=c.displayName||c.name||"",r.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $t(r);case 8:return r===it?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function ye(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function Ft(c){var r=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Pe(c){var r=Ft(c)?"checked":"value",b=Object.getOwnPropertyDescriptor(c.constructor.prototype,r),W=""+c[r];if(!c.hasOwnProperty(r)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var Y=b.get,I=b.set;return Object.defineProperty(c,r,{configurable:!0,get:function(){return Y.call(this)},set:function(C){W=""+C,I.call(this,C)}}),Object.defineProperty(c,r,{enumerable:b.enumerable}),{getValue:function(){return W},setValue:function(C){W=""+C},stopTracking:function(){c._valueTracker=null,delete c[r]}}}}function yl(c){c._valueTracker||(c._valueTracker=Pe(c))}function Oe(c){if(!c)return!1;var r=c._valueTracker;if(!r)return!0;var b=r.getValue(),W="";return c&&(W=Ft(c)?c.checked?"true":"false":c.value),c=W,c!==b?(r.setValue(c),!0):!1}function nn(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function Fn(c,r){var b=r.checked;return K({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b??c._wrapperState.initialChecked})}function hn(c,r){var b=r.defaultValue==null?"":r.defaultValue,W=r.checked!=null?r.checked:r.defaultChecked;b=ye(r.value!=null?r.value:b),c._wrapperState={initialChecked:W,initialValue:b,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function nl(c,r){r=r.checked,r!=null&&R(c,"checked",r,!1)}function Pl(c,r){nl(c,r);var b=ye(r.value),W=r.type;if(b!=null)W==="number"?(b===0&&c.value===""||c.value!=b)&&(c.value=""+b):c.value!==""+b&&(c.value=""+b);else if(W==="submit"||W==="reset"){c.removeAttribute("value");return}r.hasOwnProperty("value")?In(c,r.type,b):r.hasOwnProperty("defaultValue")&&In(c,r.type,ye(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(c.defaultChecked=!!r.defaultChecked)}function bn(c,r,b){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var W=r.type;if(!(W!=="submit"&&W!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+c._wrapperState.initialValue,b||r===c.value||(c.value=r),c.defaultValue=r}b=c.name,b!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,b!==""&&(c.name=b)}function In(c,r,b){(r!=="number"||nn(c.ownerDocument)!==c)&&(b==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+b&&(c.defaultValue=""+b))}var Jn=Array.isArray;function Zn(c,r,b,W){if(c=c.options,r){r={};for(var Y=0;Y<b.length;Y++)r["$"+b[Y]]=!0;for(b=0;b<c.length;b++)Y=r.hasOwnProperty("$"+c[b].value),c[b].selected!==Y&&(c[b].selected=Y),Y&&W&&(c[b].defaultSelected=!0)}else{for(b=""+ye(b),r=null,Y=0;Y<c.length;Y++){if(c[Y].value===b){c[Y].selected=!0,W&&(c[Y].defaultSelected=!0);return}r!==null||c[Y].disabled||(r=c[Y])}r!==null&&(r.selected=!0)}}function Za(c,r){if(r.dangerouslySetInnerHTML!=null)throw Error(e(91));return K({},r,{value:void 0,defaultValue:void 0,children:""+c._wrapperState.initialValue})}function Qi(c,r){var b=r.value;if(b==null){if(b=r.children,r=r.defaultValue,b!=null){if(r!=null)throw Error(e(92));if(Jn(b)){if(1<b.length)throw Error(e(93));b=b[0]}r=b}r==null&&(r=""),b=r}c._wrapperState={initialValue:ye(b)}}function ee(c,r){var b=ye(r.value),W=ye(r.defaultValue);b!=null&&(b=""+b,b!==c.value&&(c.value=b),r.defaultValue==null&&c.defaultValue!==b&&(c.defaultValue=b)),W!=null&&(c.defaultValue=""+W)}function xe(c){var r=c.textContent;r===c._wrapperState.initialValue&&r!==""&&r!==null&&(c.value=r)}function It(c){switch(c){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 jt(c,r){return c==null||c==="http://www.w3.org/1999/xhtml"?It(r):c==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":c}var Me,Ce=function(c){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,b,W,Y){MSApp.execUnsafeLocalFunction(function(){return c(r,b,W,Y)})}:c}(function(c,r){if(c.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in c)c.innerHTML=r;else{for(Me=Me||document.createElement("div"),Me.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=Me.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;r.firstChild;)c.appendChild(r.firstChild)}});function Be(c,r){if(r){var b=c.firstChild;if(b&&b===c.lastChild&&b.nodeType===3){b.nodeValue=r;return}}c.textContent=r}var Rl={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},pn=["Webkit","ms","Moz","O"];Object.keys(Rl).forEach(function(c){pn.forEach(function(r){r=r+c.charAt(0).toUpperCase()+c.substring(1),Rl[r]=Rl[c]})});function yn(c,r,b){return r==null||typeof r=="boolean"||r===""?"":b||typeof r!="number"||r===0||Rl.hasOwnProperty(c)&&Rl[c]?(""+r).trim():r+"px"}function Un(c,r){c=c.style;for(var b in r)if(r.hasOwnProperty(b)){var W=b.indexOf("--")===0,Y=yn(b,r[b],W);b==="float"&&(b="cssFloat"),W?c.setProperty(b,Y):c[b]=Y}}var zn=K({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 se(c,r){if(r){if(zn[c]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(e(137,c));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(e(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(e(61))}if(r.style!=null&&typeof r.style!="object")throw Error(e(62))}}function wn(c,r){if(c.indexOf("-")===-1)return typeof r.is=="string";switch(c){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 gl=null;function ks(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var oe=null,pa=null,ya=null;function fs(c){if(c=fb(c)){if(typeof oe!="function")throw Error(e(280));var r=c.stateNode;r&&(r=B2(r),oe(c.stateNode,c.type,r))}}function nt(c){pa?ya?ya.push(c):ya=[c]:pa=c}function ft(){if(pa){var c=pa,r=ya;if(ya=pa=null,fs(c),r)for(c=0;c<r.length;c++)fs(r[c])}}function ce(c,r){return c(r)}function Ke(){}var Vl=!1;function Il(c,r,b){if(Vl)return c(r,b);Vl=!0;try{return ce(c,r,b)}finally{Vl=!1,(pa!==null||ya!==null)&&(Ke(),ft())}}function Ne(c,r){var b=c.stateNode;if(b===null)return null;var W=B2(b);if(W===null)return null;b=W[r];t:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(W=!W.disabled)||(c=c.type,W=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!W;break t;default:c=!1}if(c)return null;if(b&&typeof b!="function")throw Error(e(231,r,typeof b));return b}var he=!1;if(o)try{var de={};Object.defineProperty(de,"passive",{get:function(){he=!0}}),window.addEventListener("test",de,de),window.removeEventListener("test",de,de)}catch{he=!1}function ul(c,r,b,W,Y,I,C,A,st){var wt=Array.prototype.slice.call(arguments,3);try{r.apply(b,wt)}catch(Jt){this.onError(Jt)}}var kl=!1,Bi=null,Ds=!1,Na=null,Xb={onError:function(c){kl=!0,Bi=c}};function Zs(c,r,b,W,Y,I,C,A,st){kl=!1,Bi=null,ul.apply(Xb,arguments)}function Tc(c,r,b,W,Y,I,C,A,st){if(Zs.apply(this,arguments),kl){if(kl){var wt=Bi;kl=!1,Bi=null}else throw Error(e(198));Ds||(Ds=!0,Na=wt)}}function ci(c){var r=c,b=c;if(c.alternate)for(;r.return;)r=r.return;else{c=r;do r=c,r.flags&4098&&(b=r.return),c=r.return;while(c)}return r.tag===3?b:null}function ho(c){if(c.tag===13){var r=c.memoizedState;if(r===null&&(c=c.alternate,c!==null&&(r=c.memoizedState)),r!==null)return r.dehydrated}return null}function qd(c){if(ci(c)!==c)throw Error(e(188))}function Ai(c){var r=c.alternate;if(!r){if(r=ci(c),r===null)throw Error(e(188));return r!==c?null:c}for(var b=c,W=r;;){var Y=b.return;if(Y===null)break;var I=Y.alternate;if(I===null){if(W=Y.return,W!==null){b=W;continue}break}if(Y.child===I.child){for(I=Y.child;I;){if(I===b)return qd(Y),c;if(I===W)return qd(Y),r;I=I.sibling}throw Error(e(188))}if(b.return!==W.return)b=Y,W=I;else{for(var C=!1,A=Y.child;A;){if(A===b){C=!0,b=Y,W=I;break}if(A===W){C=!0,W=Y,b=I;break}A=A.sibling}if(!C){for(A=I.child;A;){if(A===b){C=!0,b=I,W=Y;break}if(A===W){C=!0,W=I,b=Y;break}A=A.sibling}if(!C)throw Error(e(189))}}if(b.alternate!==W)throw Error(e(190))}if(b.tag!==3)throw Error(e(188));return b.stateNode.current===b?c:r}function $d(c){return c=Ai(c),c!==null?Wa(c):null}function Wa(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var r=Wa(c);if(r!==null)return r;c=c.sibling}return null}var t0=t.unstable_scheduleCallback,_i=t.unstable_cancelCallback,Hl=t.unstable_shouldYield,Ma=t.unstable_requestPaint,Ml=t.unstable_now,cm=t.unstable_getCurrentPriorityLevel,Ga=t.unstable_ImmediatePriority,Xa=t.unstable_UserBlockingPriority,Vc=t.unstable_NormalPriority,Pt=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,el=null,il=null;function sn(c){if(il&&typeof il.onCommitFiberRoot=="function")try{il.onCommitFiberRoot(el,c,void 0,(c.current.flags&128)===128)}catch{}}var ke=Math.clz32?Math.clz32:oi,js=Math.log,bo=Math.LN2;function oi(c){return c>>>=0,c===0?32:31-(js(c)/bo|0)|0}var cl=64,Os=4194304;function ps(c){switch(c&-c){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 c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function ys(c,r){var b=c.pendingLanes;if(b===0)return 0;var W=0,Y=c.suspendedLanes,I=c.pingedLanes,C=b&268435455;if(C!==0){var A=C&~Y;A!==0?W=ps(A):(I&=C,I!==0&&(W=ps(I)))}else C=b&~Y,C!==0?W=ps(C):I!==0&&(W=ps(I));if(W===0)return 0;if(r!==0&&r!==W&&!(r&Y)&&(Y=W&-W,I=r&-r,Y>=I||Y===16&&(I&4194240)!==0))return r;if(W&4&&(W|=b&16),r=c.entangledLanes,r!==0)for(c=c.entanglements,r&=W;0<r;)b=31-ke(r),Y=1<<b,W|=c[b],r&=~Y;return W}function e0(c,r){switch(c){case 1:case 2:case 4:return r+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 r+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 l0(c,r){for(var b=c.suspendedLanes,W=c.pingedLanes,Y=c.expirationTimes,I=c.pendingLanes;0<I;){var C=31-ke(I),A=1<<C,st=Y[C];st===-1?(!(A&b)||A&W)&&(Y[C]=e0(A,r)):st<=r&&(c.expiredLanes|=A),I&=~A}}function Lc(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function n0(){var c=cl;return cl<<=1,!(cl&4194240)&&(cl=64),c}function Cs(c){for(var r=[],b=0;31>b;b++)r.push(c);return r}function Ba(c,r,b){c.pendingLanes|=r,r!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,r=31-ke(r),c[r]=b}function ri(c,r){var b=c.pendingLanes&~r;c.pendingLanes=r,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=r,c.mutableReadLanes&=r,c.entangledLanes&=r,r=c.entanglements;var W=c.eventTimes;for(c=c.expirationTimes;0<b;){var Y=31-ke(b),I=1<<Y;r[Y]=0,W[Y]=-1,c[Y]=-1,b&=~I}}function Ir(c,r){var b=c.entangledLanes|=r;for(c=c.entanglements;b;){var W=31-ke(b),Y=1<<W;Y&r|c[W]&r&&(c[W]|=r),b&=~Y}}var Nl=0;function re(c){return c&=-c,1<c?4<c?c&268435455?16:536870912:4:1}var Zo,Nn,zl,Rn,Gi,Ya=!1,Xi=[],ne=null,Ge=null,Te=null,Ae=new Map,fl=new Map,an=[],i0="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 Fs(c,r){switch(c){case"focusin":case"focusout":ne=null;break;case"dragenter":case"dragleave":Ge=null;break;case"mouseover":case"mouseout":Te=null;break;case"pointerover":case"pointerout":Ae.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":fl.delete(r.pointerId)}}function s0(c,r,b,W,Y,I){return c===null||c.nativeEvent!==I?(c={blockedOn:r,domEventName:b,eventSystemFlags:W,nativeEvent:I,targetContainers:[Y]},r!==null&&(r=fb(r),r!==null&&Nn(r)),c):(c.eventSystemFlags|=W,r=c.targetContainers,Y!==null&&r.indexOf(Y)===-1&&r.push(Y),c)}function Ta(c,r,b,W,Y){switch(r){case"focusin":return ne=s0(ne,c,r,b,W,Y),!0;case"dragenter":return Ge=s0(Ge,c,r,b,W,Y),!0;case"mouseover":return Te=s0(Te,c,r,b,W,Y),!0;case"pointerover":var I=Y.pointerId;return Ae.set(I,s0(Ae.get(I)||null,c,r,b,W,Y)),!0;case"gotpointercapture":return I=Y.pointerId,fl.set(I,s0(fl.get(I)||null,c,r,b,W,Y)),!0}return!1}function om(c){var r=W0(c.target);if(r!==null){var b=ci(r);if(b!==null){if(r=b.tag,r===13){if(r=ho(b),r!==null){c.blockedOn=r,Gi(c.priority,function(){zl(b)});return}}else if(r===3&&b.stateNode.current.memoizedState.isDehydrated){c.blockedOn=b.tag===3?b.stateNode.containerInfo:null;return}}}c.blockedOn=null}function a0(c){if(c.blockedOn!==null)return!1;for(var r=c.targetContainers;0<r.length;){var b=o0(c.domEventName,c.eventSystemFlags,r[0],c.nativeEvent);if(b===null){b=c.nativeEvent;var W=new b.constructor(b.type,b);gl=W,b.target.dispatchEvent(W),gl=null}else return r=fb(b),r!==null&&Nn(r),c.blockedOn=b,!1;r.shift()}return!0}function rm(c,r,b){a0(c)&&b.delete(r)}function c0(){Ya=!1,ne!==null&&a0(ne)&&(ne=null),Ge!==null&&a0(Ge)&&(Ge=null),Te!==null&&a0(Te)&&(Te=null),Ae.forEach(rm),fl.forEach(rm)}function po(c,r){c.blockedOn===r&&(c.blockedOn=null,Ya||(Ya=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,c0)))}function zr(c){function r(Y){return po(Y,c)}if(0<Xi.length){po(Xi[0],c);for(var b=1;b<Xi.length;b++){var W=Xi[b];W.blockedOn===c&&(W.blockedOn=null)}}for(ne!==null&&po(ne,c),Ge!==null&&po(Ge,c),Te!==null&&po(Te,c),Ae.forEach(r),fl.forEach(r),b=0;b<an.length;b++)W=an[b],W.blockedOn===c&&(W.blockedOn=null);for(;0<an.length&&(b=an[0],b.blockedOn===null);)om(b),b.blockedOn===null&&an.shift()}var wr=J.ReactCurrentBatchConfig,Ic=!0;function m1(c,r,b,W){var Y=Nl,I=wr.transition;wr.transition=null;try{Nl=1,xr(c,r,b,W)}finally{Nl=Y,wr.transition=I}}function h1(c,r,b,W){var Y=Nl,I=wr.transition;wr.transition=null;try{Nl=4,xr(c,r,b,W)}finally{Nl=Y,wr.transition=I}}function xr(c,r,b,W){if(Ic){var Y=o0(c,r,b,W);if(Y===null)G1(c,r,W,yo,b),Fs(c,W);else if(Ta(Y,c,r,b,W))W.stopPropagation();else if(Fs(c,W),r&4&&-1<i0.indexOf(c)){for(;Y!==null;){var I=fb(Y);if(I!==null&&Zo(I),I=o0(c,r,b,W),I===null&&G1(c,r,W,yo,b),I===Y)break;Y=I}Y!==null&&W.stopPropagation()}else G1(c,r,W,null,b)}}var yo=null;function o0(c,r,b,W){if(yo=null,c=ks(W),c=W0(c),c!==null)if(r=ci(c),r===null)c=null;else if(b=r.tag,b===13){if(c=ho(r),c!==null)return c;c=null}else if(b===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;c=null}else r!==c&&(c=null);return yo=c,null}function S2(c){switch(c){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(cm()){case Ga:return 1;case Xa:return 4;case Vc:case Pt:return 16;case Ie:return 536870912;default:return 16}default:return 16}}var zc=null,Yb=null,gr=null;function dm(){if(gr)return gr;var c,r=Yb,b=r.length,W,Y="value"in zc?zc.value:zc.textContent,I=Y.length;for(c=0;c<b&&r[c]===Y[c];c++);var C=b-c;for(W=1;W<=C&&r[b-W]===Y[I-W];W++);return gr=Y.slice(c,1<W?1-W:void 0)}function r0(c){var r=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&r===13&&(c=13)):c=r,c===10&&(c=13),32<=c||c===13?c:0}function No(){return!0}function d0(){return!1}function di(c){function r(b,W,Y,I,C){this._reactName=b,this._targetInst=Y,this.type=W,this.nativeEvent=I,this.target=C,this.currentTarget=null;for(var A in c)c.hasOwnProperty(A)&&(b=c[A],this[A]=b?b(I):I[A]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?No:d0,this.isPropagationStopped=d0,this}return K(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var b=this.nativeEvent;b&&(b.preventDefault?b.preventDefault():typeof b.returnValue!="unknown"&&(b.returnValue=!1),this.isDefaultPrevented=No)},stopPropagation:function(){var b=this.nativeEvent;b&&(b.stopPropagation?b.stopPropagation():typeof b.cancelBubble!="unknown"&&(b.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),r}var Wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tb=di(Wo),wc=K({},Wo,{view:0,detail:0}),Vb=di(wc),u0,m0,Mo,kn=K({},wc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:b0,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==Mo&&(Mo&&c.type==="mousemove"?(u0=c.screenX-Mo.screenX,m0=c.screenY-Mo.screenY):m0=u0=0,Mo=c),u0)},movementY:function(c){return"movementY"in c?c.movementY:m0}}),Sr=di(kn),h0=K({},kn,{dataTransfer:0}),R2=di(h0),um=K({},wc,{relatedTarget:0}),mm=di(um),k2=K({},Wo,{animationName:0,elapsedTime:0,pseudoElement:0}),hm=di(k2),Lb=K({},Wo,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),Go=di(Lb),Ib=K({},Wo,{data:0}),bm=di(Ib),Zm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zb={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"},f2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function b1(c){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(c):(c=f2[c])?!!r[c]:!1}function b0(){return b1}var pm=K({},wc,{key:function(c){if(c.key){var r=Zm[c.key]||c.key;if(r!=="Unidentified")return r}return c.type==="keypress"?(c=r0(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?zb[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:b0,charCode:function(c){return c.type==="keypress"?r0(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?r0(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),Z1=di(pm),wb=K({},kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ym=di(wb),p1=K({},wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:b0}),D2=di(p1),y1=K({},Wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),j2=di(y1),O2=K({},kn,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),N1=di(O2),C2=[9,13,27,32],Z0=o&&"CompositionEvent"in window,Rr=null;o&&"documentMode"in document&&(Rr=document.documentMode);var F2=o&&"TextEvent"in window&&!Rr,J2=o&&(!Z0||Rr&&8<Rr&&11>=Rr),U2=" ",E2=!1;function p0(c,r){switch(c){case"keyup":return C2.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Va(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var Dl=!1;function Nm(c,r){switch(c){case"compositionend":return Va(r);case"keypress":return r.which!==32?null:(E2=!0,U2);case"textInput":return c=r.data,c===U2&&E2?null:c;default:return null}}function Ns(c,r){if(Dl)return c==="compositionend"||!Z0&&p0(c,r)?(c=dm(),gr=Yb=zc=null,Dl=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return J2&&r.locale!=="ko"?null:r.data;default:return null}}var W1={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 Wm(c){var r=c&&c.nodeName&&c.nodeName.toLowerCase();return r==="input"?!!W1[c.type]:r==="textarea"}function xb(c,r,b,W){nt(W),r=P2(r,"onChange"),0<r.length&&(b=new Tb("onChange","change",null,b,W),c.push({event:b,listeners:r}))}var Js=null,Xo=null;function kr(c){K5(c,0)}function Us(c){var r=Xm(c);if(Oe(r))return c}function v2(c,r){if(c==="change")return r}var N=!1;if(o){var M;if(o){var V="oninput"in document;if(!V){var x=document.createElement("div");x.setAttribute("oninput","return;"),V=typeof x.oninput=="function"}M=V}else M=!1;N=M&&(!document.documentMode||9<document.documentMode)}function k(){Js&&(Js.detachEvent("onpropertychange",F),Xo=Js=null)}function F(c){if(c.propertyName==="value"&&Us(Xo)){var r=[];xb(r,Xo,c,ks(c)),Il(kr,r)}}function B(c,r,b){c==="focusin"?(k(),Js=r,Xo=b,Js.attachEvent("onpropertychange",F)):c==="focusout"&&k()}function $(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return Us(Xo)}function ct(c,r){if(c==="click")return Us(r)}function dt(c,r){if(c==="input"||c==="change")return Us(r)}function pt(c,r){return c===r&&(c!==0||1/c===1/r)||c!==c&&r!==r}var et=typeof Object.is=="function"?Object.is:pt;function yt(c,r){if(et(c,r))return!0;if(typeof c!="object"||c===null||typeof r!="object"||r===null)return!1;var b=Object.keys(c),W=Object.keys(r);if(b.length!==W.length)return!1;for(W=0;W<b.length;W++){var Y=b[W];if(!d.call(r,Y)||!et(c[Y],r[Y]))return!1}return!0}function ot(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function bt(c,r){var b=ot(c);c=0;for(var W;b;){if(b.nodeType===3){if(W=c+b.textContent.length,c<=r&&W>=r)return{node:b,offset:r-c};c=W}t:{for(;b;){if(b.nextSibling){b=b.nextSibling;break t}b=b.parentNode}b=void 0}b=ot(b)}}function Nt(c,r){return c&&r?c===r?!0:c&&c.nodeType===3?!1:r&&r.nodeType===3?Nt(c,r.parentNode):"contains"in c?c.contains(r):c.compareDocumentPosition?!!(c.compareDocumentPosition(r)&16):!1:!1}function mt(){for(var c=window,r=nn();r instanceof c.HTMLIFrameElement;){try{var b=typeof r.contentWindow.location.href=="string"}catch{b=!1}if(b)c=r.contentWindow;else break;r=nn(c.document)}return r}function Lt(c){var r=c&&c.nodeName&&c.nodeName.toLowerCase();return r&&(r==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||r==="textarea"||c.contentEditable==="true")}function xt(c){var r=mt(),b=c.focusedElem,W=c.selectionRange;if(r!==b&&b&&b.ownerDocument&&Nt(b.ownerDocument.documentElement,b)){if(W!==null&&Lt(b)){if(r=W.start,c=W.end,c===void 0&&(c=r),"selectionStart"in b)b.selectionStart=r,b.selectionEnd=Math.min(c,b.value.length);else if(c=(r=b.ownerDocument||document)&&r.defaultView||window,c.getSelection){c=c.getSelection();var Y=b.textContent.length,I=Math.min(W.start,Y);W=W.end===void 0?I:Math.min(W.end,Y),!c.extend&&I>W&&(Y=W,W=I,I=Y),Y=bt(b,I);var C=bt(b,W);Y&&C&&(c.rangeCount!==1||c.anchorNode!==Y.node||c.anchorOffset!==Y.offset||c.focusNode!==C.node||c.focusOffset!==C.offset)&&(r=r.createRange(),r.setStart(Y.node,Y.offset),c.removeAllRanges(),I>W?(c.addRange(r),c.extend(C.node,C.offset)):(r.setEnd(C.node,C.offset),c.addRange(r)))}}for(r=[],c=b;c=c.parentNode;)c.nodeType===1&&r.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<r.length;b++)c=r[b],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var gt=o&&"documentMode"in document&&11>=document.documentMode,kt=null,vt=null,te=null,Kt=!1;function Bt(c,r,b){var W=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;Kt||kt==null||kt!==nn(W)||(W=kt,"selectionStart"in W&&Lt(W)?W={start:W.selectionStart,end:W.selectionEnd}:(W=(W.ownerDocument&&W.ownerDocument.defaultView||window).getSelection(),W={anchorNode:W.anchorNode,anchorOffset:W.anchorOffset,focusNode:W.focusNode,focusOffset:W.focusOffset}),te&&yt(te,W)||(te=W,W=P2(vt,"onSelect"),0<W.length&&(r=new Tb("onSelect","select",null,r,b),c.push({event:r,listeners:W}),r.target=kt)))}function ae(c,r){var b={};return b[c.toLowerCase()]=r.toLowerCase(),b["Webkit"+c]="webkit"+r,b["Moz"+c]="moz"+r,b}var At={animationend:ae("Animation","AnimationEnd"),animationiteration:ae("Animation","AnimationIteration"),animationstart:ae("Animation","AnimationStart"),transitionend:ae("Transition","TransitionEnd")},pe={},qe={};o&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete At.animationend.animation,delete At.animationiteration.animation,delete At.animationstart.animation),"TransitionEvent"in window||delete At.transitionend.transition);function ll(c){if(pe[c])return pe[c];if(!At[c])return c;var r=At[c],b;for(b in r)if(r.hasOwnProperty(b)&&b in qe)return pe[c]=r[b];return c}var ol=ll("animationend"),ki=ll("animationiteration"),_e=ll("animationstart"),_n=ll("transitionend"),qn=new Map,y0="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 cn(c,r){qn.set(c,r),s(r,[c])}for(var Aa=0;Aa<y0.length;Aa++){var N0=y0[Aa],_g=N0.toLowerCase(),qg=N0[0].toUpperCase()+N0.slice(1);cn(_g,"on"+qg)}cn(ol,"onAnimationEnd"),cn(ki,"onAnimationIteration"),cn(_e,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(_n,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gb="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(" "),$g=new Set("cancel close invalid load scroll toggle".split(" ").concat(gb));function v5(c,r,b){var W=c.type||"unknown-event";c.currentTarget=b,Tc(W,r,void 0,c),c.currentTarget=null}function K5(c,r){r=(r&4)!==0;for(var b=0;b<c.length;b++){var W=c[b],Y=W.event;W=W.listeners;t:{var I=void 0;if(r)for(var C=W.length-1;0<=C;C--){var A=W[C],st=A.instance,wt=A.currentTarget;if(A=A.listener,st!==I&&Y.isPropagationStopped())break t;v5(Y,A,wt),I=st}else for(C=0;C<W.length;C++){if(A=W[C],st=A.instance,wt=A.currentTarget,A=A.listener,st!==I&&Y.isPropagationStopped())break t;v5(Y,A,wt),I=st}}}if(Ds)throw c=Na,Ds=!1,Na=null,c}function $l(c,r){var b=r[I1];b===void 0&&(b=r[I1]=new Set);var W=c+"__bubble";b.has(W)||(P5(r,c,2,!1),b.add(W))}function M1(c,r,b){var W=0;r&&(W|=4),P5(b,c,W,r)}var K2="_reactListening"+Math.random().toString(36).slice(2);function Sb(c){if(!c[K2]){c[K2]=!0,n.forEach(function(b){b!=="selectionchange"&&($g.has(b)||M1(b,!1,c),M1(b,!0,c))});var r=c.nodeType===9?c:c.ownerDocument;r===null||r[K2]||(r[K2]=!0,M1("selectionchange",!1,r))}}function P5(c,r,b,W){switch(S2(r)){case 1:var Y=m1;break;case 4:Y=h1;break;default:Y=xr}b=Y.bind(null,r,b,c),Y=void 0,!he||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(Y=!0),W?Y!==void 0?c.addEventListener(r,b,{capture:!0,passive:Y}):c.addEventListener(r,b,!0):Y!==void 0?c.addEventListener(r,b,{passive:Y}):c.addEventListener(r,b,!1)}function G1(c,r,b,W,Y){var I=W;if(!(r&1)&&!(r&2)&&W!==null)t:for(;;){if(W===null)return;var C=W.tag;if(C===3||C===4){var A=W.stateNode.containerInfo;if(A===Y||A.nodeType===8&&A.parentNode===Y)break;if(C===4)for(C=W.return;C!==null;){var st=C.tag;if((st===3||st===4)&&(st=C.stateNode.containerInfo,st===Y||st.nodeType===8&&st.parentNode===Y))return;C=C.return}for(;A!==null;){if(C=W0(A),C===null)return;if(st=C.tag,st===5||st===6){W=I=C;continue t}A=A.parentNode}}W=W.return}Il(function(){var wt=I,Jt=ks(b),Ut=[];t:{var Ot=qn.get(c);if(Ot!==void 0){var We=Tb,we=c;switch(c){case"keypress":if(r0(b)===0)break t;case"keydown":case"keyup":We=Z1;break;case"focusin":we="focus",We=mm;break;case"focusout":we="blur",We=mm;break;case"beforeblur":case"afterblur":We=mm;break;case"click":if(b.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":We=Sr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":We=R2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":We=D2;break;case ol:case ki:case _e:We=hm;break;case _n:We=j2;break;case"scroll":We=Vb;break;case"wheel":We=N1;break;case"copy":case"cut":case"paste":We=Go;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":We=ym}var ge=(r&4)!==0,fn=!ge&&c==="scroll",Gt=ge?Ot!==null?Ot+"Capture":null:Ot;ge=[];for(var ut=wt,zt;ut!==null;){zt=ut;var _t=zt.stateNode;if(zt.tag===5&&_t!==null&&(zt=_t,Gt!==null&&(_t=Ne(ut,Gt),_t!=null&&ge.push(Rb(ut,_t,zt)))),fn)break;ut=ut.return}0<ge.length&&(Ot=new We(Ot,we,null,b,Jt),Ut.push({event:Ot,listeners:ge}))}}if(!(r&7)){t:{if(Ot=c==="mouseover"||c==="pointerover",We=c==="mouseout"||c==="pointerout",Ot&&b!==gl&&(we=b.relatedTarget||b.fromElement)&&(W0(we)||we[Yo]))break t;if((We||Ot)&&(Ot=Jt.window===Jt?Jt:(Ot=Jt.ownerDocument)?Ot.defaultView||Ot.parentWindow:window,We?(we=b.relatedTarget||b.toElement,We=wt,we=we?W0(we):null,we!==null&&(fn=ci(we),we!==fn||we.tag!==5&&we.tag!==6)&&(we=null)):(We=null,we=wt),We!==we)){if(ge=Sr,_t="onMouseLeave",Gt="onMouseEnter",ut="mouse",(c==="pointerout"||c==="pointerover")&&(ge=ym,_t="onPointerLeave",Gt="onPointerEnter",ut="pointer"),fn=We==null?Ot:Xm(We),zt=we==null?Ot:Xm(we),Ot=new ge(_t,ut+"leave",We,b,Jt),Ot.target=fn,Ot.relatedTarget=zt,_t=null,W0(Jt)===wt&&(ge=new ge(Gt,ut+"enter",we,b,Jt),ge.target=zt,ge.relatedTarget=fn,_t=ge),fn=_t,We&&we)e:{for(ge=We,Gt=we,ut=0,zt=ge;zt;zt=Mm(zt))ut++;for(zt=0,_t=Gt;_t;_t=Mm(_t))zt++;for(;0<ut-zt;)ge=Mm(ge),ut--;for(;0<zt-ut;)Gt=Mm(Gt),zt--;for(;ut--;){if(ge===Gt||Gt!==null&&ge===Gt.alternate)break e;ge=Mm(ge),Gt=Mm(Gt)}ge=null}else ge=null;We!==null&&H5(Ut,Ot,We,ge,!1),we!==null&&fn!==null&&H5(Ut,fn,we,ge,!0)}}t:{if(Ot=wt?Xm(wt):window,We=Ot.nodeName&&Ot.nodeName.toLowerCase(),We==="select"||We==="input"&&Ot.type==="file")var Se=v2;else if(Wm(Ot))if(N)Se=dt;else{Se=$;var Fe=B}else(We=Ot.nodeName)&&We.toLowerCase()==="input"&&(Ot.type==="checkbox"||Ot.type==="radio")&&(Se=ct);if(Se&&(Se=Se(c,wt))){xb(Ut,Se,b,Jt);break t}Fe&&Fe(c,Ot,wt),c==="focusout"&&(Fe=Ot._wrapperState)&&Fe.controlled&&Ot.type==="number"&&In(Ot,"number",Ot.value)}switch(Fe=wt?Xm(wt):window,c){case"focusin":(Wm(Fe)||Fe.contentEditable==="true")&&(kt=Fe,vt=wt,te=null);break;case"focusout":te=vt=kt=null;break;case"mousedown":Kt=!0;break;case"contextmenu":case"mouseup":case"dragend":Kt=!1,Bt(Ut,b,Jt);break;case"selectionchange":if(gt)break;case"keydown":case"keyup":Bt(Ut,b,Jt)}var Je;if(Z0)t:{switch(c){case"compositionstart":var Qe="onCompositionStart";break t;case"compositionend":Qe="onCompositionEnd";break t;case"compositionupdate":Qe="onCompositionUpdate";break t}Qe=void 0}else Dl?p0(c,b)&&(Qe="onCompositionEnd"):c==="keydown"&&b.keyCode===229&&(Qe="onCompositionStart");Qe&&(J2&&b.locale!=="ko"&&(Dl||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&Dl&&(Je=dm()):(zc=Jt,Yb="value"in zc?zc.value:zc.textContent,Dl=!0)),Fe=P2(wt,Qe),0<Fe.length&&(Qe=new bm(Qe,c,null,b,Jt),Ut.push({event:Qe,listeners:Fe}),Je?Qe.data=Je:(Je=Va(b),Je!==null&&(Qe.data=Je)))),(Je=F2?Nm(c,b):Ns(c,b))&&(wt=P2(wt,"onBeforeInput"),0<wt.length&&(Jt=new bm("onBeforeInput","beforeinput",null,b,Jt),Ut.push({event:Jt,listeners:wt}),Jt.data=Je))}K5(Ut,r)})}function Rb(c,r,b){return{instance:c,listener:r,currentTarget:b}}function P2(c,r){for(var b=r+"Capture",W=[];c!==null;){var Y=c,I=Y.stateNode;Y.tag===5&&I!==null&&(Y=I,I=Ne(c,b),I!=null&&W.unshift(Rb(c,I,Y)),I=Ne(c,r),I!=null&&W.push(Rb(c,I,Y))),c=c.return}return W}function Mm(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5);return c||null}function H5(c,r,b,W,Y){for(var I=r._reactName,C=[];b!==null&&b!==W;){var A=b,st=A.alternate,wt=A.stateNode;if(st!==null&&st===W)break;A.tag===5&&wt!==null&&(A=wt,Y?(st=Ne(b,I),st!=null&&C.unshift(Rb(b,st,A))):Y||(st=Ne(b,I),st!=null&&C.push(Rb(b,st,A)))),b=b.return}C.length!==0&&c.push({event:r,listeners:C})}var tS=/\r\n?/g,eS=/\u0000|\uFFFD/g;function Q5(c){return(typeof c=="string"?c:""+c).replace(tS,`
`).replace(eS,"")}function H2(c,r,b){if(r=Q5(r),Q5(c)!==r&&b)throw Error(e(425))}function Q2(){}var X1=null,Y1=null;function T1(c,r){return c==="textarea"||c==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var V1=typeof setTimeout=="function"?setTimeout:void 0,lS=typeof clearTimeout=="function"?clearTimeout:void 0,B5=typeof Promise=="function"?Promise:void 0,nS=typeof queueMicrotask=="function"?queueMicrotask:typeof B5<"u"?function(c){return B5.resolve(null).then(c).catch(iS)}:V1;function iS(c){setTimeout(function(){throw c})}function L1(c,r){var b=r,W=0;do{var Y=b.nextSibling;if(c.removeChild(b),Y&&Y.nodeType===8)if(b=Y.data,b==="/$"){if(W===0){c.removeChild(Y),zr(r);return}W--}else b!=="$"&&b!=="$?"&&b!=="$!"||W++;b=Y}while(b);zr(r)}function fr(c){for(;c!=null;c=c.nextSibling){var r=c.nodeType;if(r===1||r===3)break;if(r===8){if(r=c.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return c}function A5(c){c=c.previousSibling;for(var r=0;c;){if(c.nodeType===8){var b=c.data;if(b==="$"||b==="$!"||b==="$?"){if(r===0)return c;r--}else b==="/$"&&r++}c=c.previousSibling}return null}var Gm=Math.random().toString(36).slice(2),xc="__reactFiber$"+Gm,kb="__reactProps$"+Gm,Yo="__reactContainer$"+Gm,I1="__reactEvents$"+Gm,sS="__reactListeners$"+Gm,aS="__reactHandles$"+Gm;function W0(c){var r=c[xc];if(r)return r;for(var b=c.parentNode;b;){if(r=b[Yo]||b[xc]){if(b=r.alternate,r.child!==null||b!==null&&b.child!==null)for(c=A5(c);c!==null;){if(b=c[xc])return b;c=A5(c)}return r}c=b,b=c.parentNode}return null}function fb(c){return c=c[xc]||c[Yo],!c||c.tag!==5&&c.tag!==6&&c.tag!==13&&c.tag!==3?null:c}function Xm(c){if(c.tag===5||c.tag===6)return c.stateNode;throw Error(e(33))}function B2(c){return c[kb]||null}var z1=[],Ym=-1;function Dr(c){return{current:c}}function tn(c){0>Ym||(c.current=z1[Ym],z1[Ym]=null,Ym--)}function Ql(c,r){Ym++,z1[Ym]=c.current,c.current=r}var jr={},fi=Dr(jr),Ws=Dr(!1),M0=jr;function Tm(c,r){var b=c.type.contextTypes;if(!b)return jr;var W=c.stateNode;if(W&&W.__reactInternalMemoizedUnmaskedChildContext===r)return W.__reactInternalMemoizedMaskedChildContext;var Y={},I;for(I in b)Y[I]=r[I];return W&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=r,c.__reactInternalMemoizedMaskedChildContext=Y),Y}function Ms(c){return c=c.childContextTypes,c!=null}function A2(){tn(Ws),tn(fi)}function _5(c,r,b){if(fi.current!==jr)throw Error(e(168));Ql(fi,r),Ql(Ws,b)}function q5(c,r,b){var W=c.stateNode;if(r=r.childContextTypes,typeof W.getChildContext!="function")return b;W=W.getChildContext();for(var Y in W)if(!(Y in r))throw Error(e(108,me(c)||"Unknown",Y));return K({},b,W)}function _2(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||jr,M0=fi.current,Ql(fi,c),Ql(Ws,Ws.current),!0}function $5(c,r,b){var W=c.stateNode;if(!W)throw Error(e(169));b?(c=q5(c,r,M0),W.__reactInternalMemoizedMergedChildContext=c,tn(Ws),tn(fi),Ql(fi,c)):tn(Ws),Ql(Ws,b)}var To=null,q2=!1,w1=!1;function tT(c){To===null?To=[c]:To.push(c)}function cS(c){q2=!0,tT(c)}function Or(){if(!w1&&To!==null){w1=!0;var c=0,r=Nl;try{var b=To;for(Nl=1;c<b.length;c++){var W=b[c];do W=W(!0);while(W!==null)}To=null,q2=!1}catch(Y){throw To!==null&&(To=To.slice(c+1)),t0(Ga,Or),Y}finally{Nl=r,w1=!1}}return null}var Vm=[],Lm=0,$2=null,ty=0,La=[],Ia=0,G0=null,Vo=1,Lo="";function X0(c,r){Vm[Lm++]=ty,Vm[Lm++]=$2,$2=c,ty=r}function eT(c,r,b){La[Ia++]=Vo,La[Ia++]=Lo,La[Ia++]=G0,G0=c;var W=Vo;c=Lo;var Y=32-ke(W)-1;W&=~(1<<Y),b+=1;var I=32-ke(r)+Y;if(30<I){var C=Y-Y%5;I=(W&(1<<C)-1).toString(32),W>>=C,Y-=C,Vo=1<<32-ke(r)+Y|b<<Y|W,Lo=I+c}else Vo=1<<I|b<<Y|W,Lo=c}function x1(c){c.return!==null&&(X0(c,1),eT(c,1,0))}function g1(c){for(;c===$2;)$2=Vm[--Lm],Vm[Lm]=null,ty=Vm[--Lm],Vm[Lm]=null;for(;c===G0;)G0=La[--Ia],La[Ia]=null,Lo=La[--Ia],La[Ia]=null,Vo=La[--Ia],La[Ia]=null}var Es=null,vs=null,on=!1,_a=null;function lT(c,r){var b=ga(5,null,null,0);b.elementType="DELETED",b.stateNode=r,b.return=c,r=c.deletions,r===null?(c.deletions=[b],c.flags|=16):r.push(b)}function nT(c,r){switch(c.tag){case 5:var b=c.type;return r=r.nodeType!==1||b.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(c.stateNode=r,Es=c,vs=fr(r.firstChild),!0):!1;case 6:return r=c.pendingProps===""||r.nodeType!==3?null:r,r!==null?(c.stateNode=r,Es=c,vs=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(b=G0!==null?{id:Vo,overflow:Lo}:null,c.memoizedState={dehydrated:r,treeContext:b,retryLane:1073741824},b=ga(18,null,null,0),b.stateNode=r,b.return=c,c.child=b,Es=c,vs=null,!0):!1;default:return!1}}function S1(c){return(c.mode&1)!==0&&(c.flags&128)===0}function R1(c){if(on){var r=vs;if(r){var b=r;if(!nT(c,r)){if(S1(c))throw Error(e(418));r=fr(b.nextSibling);var W=Es;r&&nT(c,r)?lT(W,b):(c.flags=c.flags&-4097|2,on=!1,Es=c)}}else{if(S1(c))throw Error(e(418));c.flags=c.flags&-4097|2,on=!1,Es=c}}}function iT(c){for(c=c.return;c!==null&&c.tag!==5&&c.tag!==3&&c.tag!==13;)c=c.return;Es=c}function ey(c){if(c!==Es)return!1;if(!on)return iT(c),on=!0,!1;var r;if((r=c.tag!==3)&&!(r=c.tag!==5)&&(r=c.type,r=r!=="head"&&r!=="body"&&!T1(c.type,c.memoizedProps)),r&&(r=vs)){if(S1(c))throw sT(),Error(e(418));for(;r;)lT(c,r),r=fr(r.nextSibling)}if(iT(c),c.tag===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(e(317));t:{for(c=c.nextSibling,r=0;c;){if(c.nodeType===8){var b=c.data;if(b==="/$"){if(r===0){vs=fr(c.nextSibling);break t}r--}else b!=="$"&&b!=="$!"&&b!=="$?"||r++}c=c.nextSibling}vs=null}}else vs=Es?fr(c.stateNode.nextSibling):null;return!0}function sT(){for(var c=vs;c;)c=fr(c.nextSibling)}function Im(){vs=Es=null,on=!1}function k1(c){_a===null?_a=[c]:_a.push(c)}var oS=J.ReactCurrentBatchConfig;function Db(c,r,b){if(c=b.ref,c!==null&&typeof c!="function"&&typeof c!="object"){if(b._owner){if(b=b._owner,b){if(b.tag!==1)throw Error(e(309));var W=b.stateNode}if(!W)throw Error(e(147,c));var Y=W,I=""+c;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===I?r.ref:(r=function(C){var A=Y.refs;C===null?delete A[I]:A[I]=C},r._stringRef=I,r)}if(typeof c!="string")throw Error(e(284));if(!b._owner)throw Error(e(290,c))}return c}function ly(c,r){throw c=Object.prototype.toString.call(r),Error(e(31,c==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":c))}function aT(c){var r=c._init;return r(c._payload)}function cT(c){function r(Gt,ut){if(c){var zt=Gt.deletions;zt===null?(Gt.deletions=[ut],Gt.flags|=16):zt.push(ut)}}function b(Gt,ut){if(!c)return null;for(;ut!==null;)r(Gt,ut),ut=ut.sibling;return null}function W(Gt,ut){for(Gt=new Map;ut!==null;)ut.key!==null?Gt.set(ut.key,ut):Gt.set(ut.index,ut),ut=ut.sibling;return Gt}function Y(Gt,ut){return Gt=Pr(Gt,ut),Gt.index=0,Gt.sibling=null,Gt}function I(Gt,ut,zt){return Gt.index=zt,c?(zt=Gt.alternate,zt!==null?(zt=zt.index,zt<ut?(Gt.flags|=2,ut):zt):(Gt.flags|=2,ut)):(Gt.flags|=1048576,ut)}function C(Gt){return c&&Gt.alternate===null&&(Gt.flags|=2),Gt}function A(Gt,ut,zt,_t){return ut===null||ut.tag!==6?(ut=VM(zt,Gt.mode,_t),ut.return=Gt,ut):(ut=Y(ut,zt),ut.return=Gt,ut)}function st(Gt,ut,zt,_t){var Se=zt.type;return Se===Q?Jt(Gt,ut,zt.props.children,_t,zt.key):ut!==null&&(ut.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===St&&aT(Se)===ut.type)?(_t=Y(ut,zt.props),_t.ref=Db(Gt,ut,zt),_t.return=Gt,_t):(_t=Ly(zt.type,zt.key,zt.props,null,Gt.mode,_t),_t.ref=Db(Gt,ut,zt),_t.return=Gt,_t)}function wt(Gt,ut,zt,_t){return ut===null||ut.tag!==4||ut.stateNode.containerInfo!==zt.containerInfo||ut.stateNode.implementation!==zt.implementation?(ut=LM(zt,Gt.mode,_t),ut.return=Gt,ut):(ut=Y(ut,zt.children||[]),ut.return=Gt,ut)}function Jt(Gt,ut,zt,_t,Se){return ut===null||ut.tag!==7?(ut=x0(zt,Gt.mode,_t,Se),ut.return=Gt,ut):(ut=Y(ut,zt),ut.return=Gt,ut)}function Ut(Gt,ut,zt){if(typeof ut=="string"&&ut!==""||typeof ut=="number")return ut=VM(""+ut,Gt.mode,zt),ut.return=Gt,ut;if(typeof ut=="object"&&ut!==null){switch(ut.$$typeof){case U:return zt=Ly(ut.type,ut.key,ut.props,null,Gt.mode,zt),zt.ref=Db(Gt,null,ut),zt.return=Gt,zt;case j:return ut=LM(ut,Gt.mode,zt),ut.return=Gt,ut;case St:var _t=ut._init;return Ut(Gt,_t(ut._payload),zt)}if(Jn(ut)||Dt(ut))return ut=x0(ut,Gt.mode,zt,null),ut.return=Gt,ut;ly(Gt,ut)}return null}function Ot(Gt,ut,zt,_t){var Se=ut!==null?ut.key:null;if(typeof zt=="string"&&zt!==""||typeof zt=="number")return Se!==null?null:A(Gt,ut,""+zt,_t);if(typeof zt=="object"&&zt!==null){switch(zt.$$typeof){case U:return zt.key===Se?st(Gt,ut,zt,_t):null;case j:return zt.key===Se?wt(Gt,ut,zt,_t):null;case St:return Se=zt._init,Ot(Gt,ut,Se(zt._payload),_t)}if(Jn(zt)||Dt(zt))return Se!==null?null:Jt(Gt,ut,zt,_t,null);ly(Gt,zt)}return null}function We(Gt,ut,zt,_t,Se){if(typeof _t=="string"&&_t!==""||typeof _t=="number")return Gt=Gt.get(zt)||null,A(ut,Gt,""+_t,Se);if(typeof _t=="object"&&_t!==null){switch(_t.$$typeof){case U:return Gt=Gt.get(_t.key===null?zt:_t.key)||null,st(ut,Gt,_t,Se);case j:return Gt=Gt.get(_t.key===null?zt:_t.key)||null,wt(ut,Gt,_t,Se);case St:var Fe=_t._init;return We(Gt,ut,zt,Fe(_t._payload),Se)}if(Jn(_t)||Dt(_t))return Gt=Gt.get(zt)||null,Jt(ut,Gt,_t,Se,null);ly(ut,_t)}return null}function we(Gt,ut,zt,_t){for(var Se=null,Fe=null,Je=ut,Qe=ut=0,hi=null;Je!==null&&Qe<zt.length;Qe++){Je.index>Qe?(hi=Je,Je=null):hi=Je.sibling;var Ll=Ot(Gt,Je,zt[Qe],_t);if(Ll===null){Je===null&&(Je=hi);break}c&&Je&&Ll.alternate===null&&r(Gt,Je),ut=I(Ll,ut,Qe),Fe===null?Se=Ll:Fe.sibling=Ll,Fe=Ll,Je=hi}if(Qe===zt.length)return b(Gt,Je),on&&X0(Gt,Qe),Se;if(Je===null){for(;Qe<zt.length;Qe++)Je=Ut(Gt,zt[Qe],_t),Je!==null&&(ut=I(Je,ut,Qe),Fe===null?Se=Je:Fe.sibling=Je,Fe=Je);return on&&X0(Gt,Qe),Se}for(Je=W(Gt,Je);Qe<zt.length;Qe++)hi=We(Je,Gt,Qe,zt[Qe],_t),hi!==null&&(c&&hi.alternate!==null&&Je.delete(hi.key===null?Qe:hi.key),ut=I(hi,ut,Qe),Fe===null?Se=hi:Fe.sibling=hi,Fe=hi);return c&&Je.forEach(function(Hr){return r(Gt,Hr)}),on&&X0(Gt,Qe),Se}function ge(Gt,ut,zt,_t){var Se=Dt(zt);if(typeof Se!="function")throw Error(e(150));if(zt=Se.call(zt),zt==null)throw Error(e(151));for(var Fe=Se=null,Je=ut,Qe=ut=0,hi=null,Ll=zt.next();Je!==null&&!Ll.done;Qe++,Ll=zt.next()){Je.index>Qe?(hi=Je,Je=null):hi=Je.sibling;var Hr=Ot(Gt,Je,Ll.value,_t);if(Hr===null){Je===null&&(Je=hi);break}c&&Je&&Hr.alternate===null&&r(Gt,Je),ut=I(Hr,ut,Qe),Fe===null?Se=Hr:Fe.sibling=Hr,Fe=Hr,Je=hi}if(Ll.done)return b(Gt,Je),on&&X0(Gt,Qe),Se;if(Je===null){for(;!Ll.done;Qe++,Ll=zt.next())Ll=Ut(Gt,Ll.value,_t),Ll!==null&&(ut=I(Ll,ut,Qe),Fe===null?Se=Ll:Fe.sibling=Ll,Fe=Ll);return on&&X0(Gt,Qe),Se}for(Je=W(Gt,Je);!Ll.done;Qe++,Ll=zt.next())Ll=We(Je,Gt,Qe,Ll.value,_t),Ll!==null&&(c&&Ll.alternate!==null&&Je.delete(Ll.key===null?Qe:Ll.key),ut=I(Ll,ut,Qe),Fe===null?Se=Ll:Fe.sibling=Ll,Fe=Ll);return c&&Je.forEach(function(JS){return r(Gt,JS)}),on&&X0(Gt,Qe),Se}function fn(Gt,ut,zt,_t){if(typeof zt=="object"&&zt!==null&&zt.type===Q&&zt.key===null&&(zt=zt.props.children),typeof zt=="object"&&zt!==null){switch(zt.$$typeof){case U:t:{for(var Se=zt.key,Fe=ut;Fe!==null;){if(Fe.key===Se){if(Se=zt.type,Se===Q){if(Fe.tag===7){b(Gt,Fe.sibling),ut=Y(Fe,zt.props.children),ut.return=Gt,Gt=ut;break t}}else if(Fe.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===St&&aT(Se)===Fe.type){b(Gt,Fe.sibling),ut=Y(Fe,zt.props),ut.ref=Db(Gt,Fe,zt),ut.return=Gt,Gt=ut;break t}b(Gt,Fe);break}else r(Gt,Fe);Fe=Fe.sibling}zt.type===Q?(ut=x0(zt.props.children,Gt.mode,_t,zt.key),ut.return=Gt,Gt=ut):(_t=Ly(zt.type,zt.key,zt.props,null,Gt.mode,_t),_t.ref=Db(Gt,ut,zt),_t.return=Gt,Gt=_t)}return C(Gt);case j:t:{for(Fe=zt.key;ut!==null;){if(ut.key===Fe)if(ut.tag===4&&ut.stateNode.containerInfo===zt.containerInfo&&ut.stateNode.implementation===zt.implementation){b(Gt,ut.sibling),ut=Y(ut,zt.children||[]),ut.return=Gt,Gt=ut;break t}else{b(Gt,ut);break}else r(Gt,ut);ut=ut.sibling}ut=LM(zt,Gt.mode,_t),ut.return=Gt,Gt=ut}return C(Gt);case St:return Fe=zt._init,fn(Gt,ut,Fe(zt._payload),_t)}if(Jn(zt))return we(Gt,ut,zt,_t);if(Dt(zt))return ge(Gt,ut,zt,_t);ly(Gt,zt)}return typeof zt=="string"&&zt!==""||typeof zt=="number"?(zt=""+zt,ut!==null&&ut.tag===6?(b(Gt,ut.sibling),ut=Y(ut,zt),ut.return=Gt,Gt=ut):(b(Gt,ut),ut=VM(zt,Gt.mode,_t),ut.return=Gt,Gt=ut),C(Gt)):b(Gt,ut)}return fn}var zm=cT(!0),oT=cT(!1),ny=Dr(null),iy=null,wm=null,f1=null;function D1(){f1=wm=iy=null}function j1(c){var r=ny.current;tn(ny),c._currentValue=r}function O1(c,r,b){for(;c!==null;){var W=c.alternate;if((c.childLanes&r)!==r?(c.childLanes|=r,W!==null&&(W.childLanes|=r)):W!==null&&(W.childLanes&r)!==r&&(W.childLanes|=r),c===b)break;c=c.return}}function xm(c,r){iy=c,f1=wm=null,c=c.dependencies,c!==null&&c.firstContext!==null&&(c.lanes&r&&(Gs=!0),c.firstContext=null)}function za(c){var r=c._currentValue;if(f1!==c)if(c={context:c,memoizedValue:r,next:null},wm===null){if(iy===null)throw Error(e(308));wm=c,iy.dependencies={lanes:0,firstContext:c}}else wm=wm.next=c;return r}var Y0=null;function C1(c){Y0===null?Y0=[c]:Y0.push(c)}function rT(c,r,b,W){var Y=r.interleaved;return Y===null?(b.next=b,C1(r)):(b.next=Y.next,Y.next=b),r.interleaved=b,Io(c,W)}function Io(c,r){c.lanes|=r;var b=c.alternate;for(b!==null&&(b.lanes|=r),b=c,c=c.return;c!==null;)c.childLanes|=r,b=c.alternate,b!==null&&(b.childLanes|=r),b=c,c=c.return;return b.tag===3?b.stateNode:null}var Cr=!1;function F1(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dT(c,r){c=c.updateQueue,r.updateQueue===c&&(r.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function zo(c,r){return{eventTime:c,lane:r,tag:0,payload:null,callback:null,next:null}}function Fr(c,r,b){var W=c.updateQueue;if(W===null)return null;if(W=W.shared,Gl&2){var Y=W.pending;return Y===null?r.next=r:(r.next=Y.next,Y.next=r),W.pending=r,Io(c,b)}return Y=W.interleaved,Y===null?(r.next=r,C1(W)):(r.next=Y.next,Y.next=r),W.interleaved=r,Io(c,b)}function sy(c,r,b){if(r=r.updateQueue,r!==null&&(r=r.shared,(b&4194240)!==0)){var W=r.lanes;W&=c.pendingLanes,b|=W,r.lanes=b,Ir(c,b)}}function uT(c,r){var b=c.updateQueue,W=c.alternate;if(W!==null&&(W=W.updateQueue,b===W)){var Y=null,I=null;if(b=b.firstBaseUpdate,b!==null){do{var C={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};I===null?Y=I=C:I=I.next=C,b=b.next}while(b!==null);I===null?Y=I=r:I=I.next=r}else Y=I=r;b={baseState:W.baseState,firstBaseUpdate:Y,lastBaseUpdate:I,shared:W.shared,effects:W.effects},c.updateQueue=b;return}c=b.lastBaseUpdate,c===null?b.firstBaseUpdate=r:c.next=r,b.lastBaseUpdate=r}function ay(c,r,b,W){var Y=c.updateQueue;Cr=!1;var I=Y.firstBaseUpdate,C=Y.lastBaseUpdate,A=Y.shared.pending;if(A!==null){Y.shared.pending=null;var st=A,wt=st.next;st.next=null,C===null?I=wt:C.next=wt,C=st;var Jt=c.alternate;Jt!==null&&(Jt=Jt.updateQueue,A=Jt.lastBaseUpdate,A!==C&&(A===null?Jt.firstBaseUpdate=wt:A.next=wt,Jt.lastBaseUpdate=st))}if(I!==null){var Ut=Y.baseState;C=0,Jt=wt=st=null,A=I;do{var Ot=A.lane,We=A.eventTime;if((W&Ot)===Ot){Jt!==null&&(Jt=Jt.next={eventTime:We,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});t:{var we=c,ge=A;switch(Ot=r,We=b,ge.tag){case 1:if(we=ge.payload,typeof we=="function"){Ut=we.call(We,Ut,Ot);break t}Ut=we;break t;case 3:we.flags=we.flags&-65537|128;case 0:if(we=ge.payload,Ot=typeof we=="function"?we.call(We,Ut,Ot):we,Ot==null)break t;Ut=K({},Ut,Ot);break t;case 2:Cr=!0}}A.callback!==null&&A.lane!==0&&(c.flags|=64,Ot=Y.effects,Ot===null?Y.effects=[A]:Ot.push(A))}else We={eventTime:We,lane:Ot,tag:A.tag,payload:A.payload,callback:A.callback,next:null},Jt===null?(wt=Jt=We,st=Ut):Jt=Jt.next=We,C|=Ot;if(A=A.next,A===null){if(A=Y.shared.pending,A===null)break;Ot=A,A=Ot.next,Ot.next=null,Y.lastBaseUpdate=Ot,Y.shared.pending=null}}while(!0);if(Jt===null&&(st=Ut),Y.baseState=st,Y.firstBaseUpdate=wt,Y.lastBaseUpdate=Jt,r=Y.shared.interleaved,r!==null){Y=r;do C|=Y.lane,Y=Y.next;while(Y!==r)}else I===null&&(Y.shared.lanes=0);L0|=C,c.lanes=C,c.memoizedState=Ut}}function mT(c,r,b){if(c=r.effects,r.effects=null,c!==null)for(r=0;r<c.length;r++){var W=c[r],Y=W.callback;if(Y!==null){if(W.callback=null,W=b,typeof Y!="function")throw Error(e(191,Y));Y.call(W)}}}var jb={},gc=Dr(jb),Ob=Dr(jb),Cb=Dr(jb);function T0(c){if(c===jb)throw Error(e(174));return c}function J1(c,r){switch(Ql(Cb,r),Ql(Ob,c),Ql(gc,jb),c=r.nodeType,c){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:jt(null,"");break;default:c=c===8?r.parentNode:r,r=c.namespaceURI||null,c=c.tagName,r=jt(r,c)}tn(gc),Ql(gc,r)}function gm(){tn(gc),tn(Ob),tn(Cb)}function hT(c){T0(Cb.current);var r=T0(gc.current),b=jt(r,c.type);r!==b&&(Ql(Ob,c),Ql(gc,b))}function U1(c){Ob.current===c&&(tn(gc),tn(Ob))}var Wn=Dr(0);function cy(c){for(var r=c;r!==null;){if(r.tag===13){var b=r.memoizedState;if(b!==null&&(b=b.dehydrated,b===null||b.data==="$?"||b.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===c)break;for(;r.sibling===null;){if(r.return===null||r.return===c)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var E1=[];function v1(){for(var c=0;c<E1.length;c++)E1[c]._workInProgressVersionPrimary=null;E1.length=0}var oy=J.ReactCurrentDispatcher,K1=J.ReactCurrentBatchConfig,V0=0,Mn=null,$n=null,ui=null,ry=!1,Fb=!1,Jb=0,rS=0;function Di(){throw Error(e(321))}function P1(c,r){if(r===null)return!1;for(var b=0;b<r.length&&b<c.length;b++)if(!et(c[b],r[b]))return!1;return!0}function H1(c,r,b,W,Y,I){if(V0=I,Mn=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,oy.current=c===null||c.memoizedState===null?hS:bS,c=b(W,Y),Fb){I=0;do{if(Fb=!1,Jb=0,25<=I)throw Error(e(301));I+=1,ui=$n=null,r.updateQueue=null,oy.current=ZS,c=b(W,Y)}while(Fb)}if(oy.current=my,r=$n!==null&&$n.next!==null,V0=0,ui=$n=Mn=null,ry=!1,r)throw Error(e(300));return c}function Q1(){var c=Jb!==0;return Jb=0,c}function Sc(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ui===null?Mn.memoizedState=ui=c:ui=ui.next=c,ui}function wa(){if($n===null){var c=Mn.alternate;c=c!==null?c.memoizedState:null}else c=$n.next;var r=ui===null?Mn.memoizedState:ui.next;if(r!==null)ui=r,$n=c;else{if(c===null)throw Error(e(310));$n=c,c={memoizedState:$n.memoizedState,baseState:$n.baseState,baseQueue:$n.baseQueue,queue:$n.queue,next:null},ui===null?Mn.memoizedState=ui=c:ui=ui.next=c}return ui}function Ub(c,r){return typeof r=="function"?r(c):r}function B1(c){var r=wa(),b=r.queue;if(b===null)throw Error(e(311));b.lastRenderedReducer=c;var W=$n,Y=W.baseQueue,I=b.pending;if(I!==null){if(Y!==null){var C=Y.next;Y.next=I.next,I.next=C}W.baseQueue=Y=I,b.pending=null}if(Y!==null){I=Y.next,W=W.baseState;var A=C=null,st=null,wt=I;do{var Jt=wt.lane;if((V0&Jt)===Jt)st!==null&&(st=st.next={lane:0,action:wt.action,hasEagerState:wt.hasEagerState,eagerState:wt.eagerState,next:null}),W=wt.hasEagerState?wt.eagerState:c(W,wt.action);else{var Ut={lane:Jt,action:wt.action,hasEagerState:wt.hasEagerState,eagerState:wt.eagerState,next:null};st===null?(A=st=Ut,C=W):st=st.next=Ut,Mn.lanes|=Jt,L0|=Jt}wt=wt.next}while(wt!==null&&wt!==I);st===null?C=W:st.next=A,et(W,r.memoizedState)||(Gs=!0),r.memoizedState=W,r.baseState=C,r.baseQueue=st,b.lastRenderedState=W}if(c=b.interleaved,c!==null){Y=c;do I=Y.lane,Mn.lanes|=I,L0|=I,Y=Y.next;while(Y!==c)}else Y===null&&(b.lanes=0);return[r.memoizedState,b.dispatch]}function A1(c){var r=wa(),b=r.queue;if(b===null)throw Error(e(311));b.lastRenderedReducer=c;var W=b.dispatch,Y=b.pending,I=r.memoizedState;if(Y!==null){b.pending=null;var C=Y=Y.next;do I=c(I,C.action),C=C.next;while(C!==Y);et(I,r.memoizedState)||(Gs=!0),r.memoizedState=I,r.baseQueue===null&&(r.baseState=I),b.lastRenderedState=I}return[I,W]}function bT(){}function ZT(c,r){var b=Mn,W=wa(),Y=r(),I=!et(W.memoizedState,Y);if(I&&(W.memoizedState=Y,Gs=!0),W=W.queue,_1(NT.bind(null,b,W,c),[c]),W.getSnapshot!==r||I||ui!==null&&ui.memoizedState.tag&1){if(b.flags|=2048,Eb(9,yT.bind(null,b,W,Y,r),void 0,null),mi===null)throw Error(e(349));V0&30||pT(b,r,Y)}return Y}function pT(c,r,b){c.flags|=16384,c={getSnapshot:r,value:b},r=Mn.updateQueue,r===null?(r={lastEffect:null,stores:null},Mn.updateQueue=r,r.stores=[c]):(b=r.stores,b===null?r.stores=[c]:b.push(c))}function yT(c,r,b,W){r.value=b,r.getSnapshot=W,WT(r)&&MT(c)}function NT(c,r,b){return b(function(){WT(r)&&MT(c)})}function WT(c){var r=c.getSnapshot;c=c.value;try{var b=r();return!et(c,b)}catch{return!0}}function MT(c){var r=Io(c,1);r!==null&&ec(r,c,1,-1)}function GT(c){var r=Sc();return typeof c=="function"&&(c=c()),r.memoizedState=r.baseState=c,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ub,lastRenderedState:c},r.queue=c,c=c.dispatch=mS.bind(null,Mn,c),[r.memoizedState,c]}function Eb(c,r,b,W){return c={tag:c,create:r,destroy:b,deps:W,next:null},r=Mn.updateQueue,r===null?(r={lastEffect:null,stores:null},Mn.updateQueue=r,r.lastEffect=c.next=c):(b=r.lastEffect,b===null?r.lastEffect=c.next=c:(W=b.next,b.next=c,c.next=W,r.lastEffect=c)),c}function XT(){return wa().memoizedState}function dy(c,r,b,W){var Y=Sc();Mn.flags|=c,Y.memoizedState=Eb(1|r,b,void 0,W===void 0?null:W)}function uy(c,r,b,W){var Y=wa();W=W===void 0?null:W;var I=void 0;if($n!==null){var C=$n.memoizedState;if(I=C.destroy,W!==null&&P1(W,C.deps)){Y.memoizedState=Eb(r,b,I,W);return}}Mn.flags|=c,Y.memoizedState=Eb(1|r,b,I,W)}function YT(c,r){return dy(8390656,8,c,r)}function _1(c,r){return uy(2048,8,c,r)}function TT(c,r){return uy(4,2,c,r)}function VT(c,r){return uy(4,4,c,r)}function LT(c,r){if(typeof r=="function")return c=c(),r(c),function(){r(null)};if(r!=null)return c=c(),r.current=c,function(){r.current=null}}function IT(c,r,b){return b=b!=null?b.concat([c]):null,uy(4,4,LT.bind(null,r,c),b)}function q1(){}function zT(c,r){var b=wa();r=r===void 0?null:r;var W=b.memoizedState;return W!==null&&r!==null&&P1(r,W[1])?W[0]:(b.memoizedState=[c,r],c)}function wT(c,r){var b=wa();r=r===void 0?null:r;var W=b.memoizedState;return W!==null&&r!==null&&P1(r,W[1])?W[0]:(c=c(),b.memoizedState=[c,r],c)}function xT(c,r,b){return V0&21?(et(b,r)||(b=n0(),Mn.lanes|=b,L0|=b,c.baseState=!0),r):(c.baseState&&(c.baseState=!1,Gs=!0),c.memoizedState=b)}function dS(c,r){var b=Nl;Nl=b!==0&&4>b?b:4,c(!0);var W=K1.transition;K1.transition={};try{c(!1),r()}finally{Nl=b,K1.transition=W}}function gT(){return wa().memoizedState}function uS(c,r,b){var W=vr(c);if(b={lane:W,action:b,hasEagerState:!1,eagerState:null,next:null},ST(c))RT(r,b);else if(b=rT(c,r,b,W),b!==null){var Y=$i();ec(b,c,W,Y),kT(b,r,W)}}function mS(c,r,b){var W=vr(c),Y={lane:W,action:b,hasEagerState:!1,eagerState:null,next:null};if(ST(c))RT(r,Y);else{var I=c.alternate;if(c.lanes===0&&(I===null||I.lanes===0)&&(I=r.lastRenderedReducer,I!==null))try{var C=r.lastRenderedState,A=I(C,b);if(Y.hasEagerState=!0,Y.eagerState=A,et(A,C)){var st=r.interleaved;st===null?(Y.next=Y,C1(r)):(Y.next=st.next,st.next=Y),r.interleaved=Y;return}}catch{}finally{}b=rT(c,r,Y,W),b!==null&&(Y=$i(),ec(b,c,W,Y),kT(b,r,W))}}function ST(c){var r=c.alternate;return c===Mn||r!==null&&r===Mn}function RT(c,r){Fb=ry=!0;var b=c.pending;b===null?r.next=r:(r.next=b.next,b.next=r),c.pending=r}function kT(c,r,b){if(b&4194240){var W=r.lanes;W&=c.pendingLanes,b|=W,r.lanes=b,Ir(c,b)}}var my={readContext:za,useCallback:Di,useContext:Di,useEffect:Di,useImperativeHandle:Di,useInsertionEffect:Di,useLayoutEffect:Di,useMemo:Di,useReducer:Di,useRef:Di,useState:Di,useDebugValue:Di,useDeferredValue:Di,useTransition:Di,useMutableSource:Di,useSyncExternalStore:Di,useId:Di,unstable_isNewReconciler:!1},hS={readContext:za,useCallback:function(c,r){return Sc().memoizedState=[c,r===void 0?null:r],c},useContext:za,useEffect:YT,useImperativeHandle:function(c,r,b){return b=b!=null?b.concat([c]):null,dy(4194308,4,LT.bind(null,r,c),b)},useLayoutEffect:function(c,r){return dy(4194308,4,c,r)},useInsertionEffect:function(c,r){return dy(4,2,c,r)},useMemo:function(c,r){var b=Sc();return r=r===void 0?null:r,c=c(),b.memoizedState=[c,r],c},useReducer:function(c,r,b){var W=Sc();return r=b!==void 0?b(r):r,W.memoizedState=W.baseState=r,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:r},W.queue=c,c=c.dispatch=uS.bind(null,Mn,c),[W.memoizedState,c]},useRef:function(c){var r=Sc();return c={current:c},r.memoizedState=c},useState:GT,useDebugValue:q1,useDeferredValue:function(c){return Sc().memoizedState=c},useTransition:function(){var c=GT(!1),r=c[0];return c=dS.bind(null,c[1]),Sc().memoizedState=c,[r,c]},useMutableSource:function(){},useSyncExternalStore:function(c,r,b){var W=Mn,Y=Sc();if(on){if(b===void 0)throw Error(e(407));b=b()}else{if(b=r(),mi===null)throw Error(e(349));V0&30||pT(W,r,b)}Y.memoizedState=b;var I={value:b,getSnapshot:r};return Y.queue=I,YT(NT.bind(null,W,I,c),[c]),W.flags|=2048,Eb(9,yT.bind(null,W,I,b,r),void 0,null),b},useId:function(){var c=Sc(),r=mi.identifierPrefix;if(on){var b=Lo,W=Vo;b=(W&~(1<<32-ke(W)-1)).toString(32)+b,r=":"+r+"R"+b,b=Jb++,0<b&&(r+="H"+b.toString(32)),r+=":"}else b=rS++,r=":"+r+"r"+b.toString(32)+":";return c.memoizedState=r},unstable_isNewReconciler:!1},bS={readContext:za,useCallback:zT,useContext:za,useEffect:_1,useImperativeHandle:IT,useInsertionEffect:TT,useLayoutEffect:VT,useMemo:wT,useReducer:B1,useRef:XT,useState:function(){return B1(Ub)},useDebugValue:q1,useDeferredValue:function(c){var r=wa();return xT(r,$n.memoizedState,c)},useTransition:function(){var c=B1(Ub)[0],r=wa().memoizedState;return[c,r]},useMutableSource:bT,useSyncExternalStore:ZT,useId:gT,unstable_isNewReconciler:!1},ZS={readContext:za,useCallback:zT,useContext:za,useEffect:_1,useImperativeHandle:IT,useInsertionEffect:TT,useLayoutEffect:VT,useMemo:wT,useReducer:A1,useRef:XT,useState:function(){return A1(Ub)},useDebugValue:q1,useDeferredValue:function(c){var r=wa();return $n===null?r.memoizedState=c:xT(r,$n.memoizedState,c)},useTransition:function(){var c=A1(Ub)[0],r=wa().memoizedState;return[c,r]},useMutableSource:bT,useSyncExternalStore:ZT,useId:gT,unstable_isNewReconciler:!1};function qa(c,r){if(c&&c.defaultProps){r=K({},r),c=c.defaultProps;for(var b in c)r[b]===void 0&&(r[b]=c[b]);return r}return r}function $1(c,r,b,W){r=c.memoizedState,b=b(W,r),b=b==null?r:K({},r,b),c.memoizedState=b,c.lanes===0&&(c.updateQueue.baseState=b)}var hy={isMounted:function(c){return(c=c._reactInternals)?ci(c)===c:!1},enqueueSetState:function(c,r,b){c=c._reactInternals;var W=$i(),Y=vr(c),I=zo(W,Y);I.payload=r,b!=null&&(I.callback=b),r=Fr(c,I,Y),r!==null&&(ec(r,c,Y,W),sy(r,c,Y))},enqueueReplaceState:function(c,r,b){c=c._reactInternals;var W=$i(),Y=vr(c),I=zo(W,Y);I.tag=1,I.payload=r,b!=null&&(I.callback=b),r=Fr(c,I,Y),r!==null&&(ec(r,c,Y,W),sy(r,c,Y))},enqueueForceUpdate:function(c,r){c=c._reactInternals;var b=$i(),W=vr(c),Y=zo(b,W);Y.tag=2,r!=null&&(Y.callback=r),r=Fr(c,Y,W),r!==null&&(ec(r,c,W,b),sy(r,c,W))}};function fT(c,r,b,W,Y,I,C){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(W,I,C):r.prototype&&r.prototype.isPureReactComponent?!yt(b,W)||!yt(Y,I):!0}function DT(c,r,b){var W=!1,Y=jr,I=r.contextType;return typeof I=="object"&&I!==null?I=za(I):(Y=Ms(r)?M0:fi.current,W=r.contextTypes,I=(W=W!=null)?Tm(c,Y):jr),r=new r(b,I),c.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=hy,c.stateNode=r,r._reactInternals=c,W&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=Y,c.__reactInternalMemoizedMaskedChildContext=I),r}function jT(c,r,b,W){c=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(b,W),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(b,W),r.state!==c&&hy.enqueueReplaceState(r,r.state,null)}function tM(c,r,b,W){var Y=c.stateNode;Y.props=b,Y.state=c.memoizedState,Y.refs={},F1(c);var I=r.contextType;typeof I=="object"&&I!==null?Y.context=za(I):(I=Ms(r)?M0:fi.current,Y.context=Tm(c,I)),Y.state=c.memoizedState,I=r.getDerivedStateFromProps,typeof I=="function"&&($1(c,r,I,b),Y.state=c.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof Y.getSnapshotBeforeUpdate=="function"||typeof Y.UNSAFE_componentWillMount!="function"&&typeof Y.componentWillMount!="function"||(r=Y.state,typeof Y.componentWillMount=="function"&&Y.componentWillMount(),typeof Y.UNSAFE_componentWillMount=="function"&&Y.UNSAFE_componentWillMount(),r!==Y.state&&hy.enqueueReplaceState(Y,Y.state,null),ay(c,b,Y,W),Y.state=c.memoizedState),typeof Y.componentDidMount=="function"&&(c.flags|=4194308)}function Sm(c,r){try{var b="",W=r;do b+=Ze(W),W=W.return;while(W);var Y=b}catch(I){Y=`
Error generating stack: `+I.message+`
`+I.stack}return{value:c,source:r,stack:Y,digest:null}}function eM(c,r,b){return{value:c,source:null,stack:b??null,digest:r??null}}function lM(c,r){try{console.error(r.value)}catch(b){setTimeout(function(){throw b})}}var pS=typeof WeakMap=="function"?WeakMap:Map;function OT(c,r,b){b=zo(-1,b),b.tag=3,b.payload={element:null};var W=r.value;return b.callback=function(){My||(My=!0,yM=W),lM(c,r)},b}function CT(c,r,b){b=zo(-1,b),b.tag=3;var W=c.type.getDerivedStateFromError;if(typeof W=="function"){var Y=r.value;b.payload=function(){return W(Y)},b.callback=function(){lM(c,r)}}var I=c.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(b.callback=function(){lM(c,r),typeof W!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var C=r.stack;this.componentDidCatch(r.value,{componentStack:C!==null?C:""})}),b}function FT(c,r,b){var W=c.pingCache;if(W===null){W=c.pingCache=new pS;var Y=new Set;W.set(r,Y)}else Y=W.get(r),Y===void 0&&(Y=new Set,W.set(r,Y));Y.has(b)||(Y.add(b),c=xS.bind(null,c,r,b),r.then(c,c))}function JT(c){do{var r;if((r=c.tag===13)&&(r=c.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return c;c=c.return}while(c!==null);return null}function UT(c,r,b,W,Y){return c.mode&1?(c.flags|=65536,c.lanes=Y,c):(c===r?c.flags|=65536:(c.flags|=128,b.flags|=131072,b.flags&=-52805,b.tag===1&&(b.alternate===null?b.tag=17:(r=zo(-1,1),r.tag=2,Fr(b,r,1))),b.lanes|=1),c)}var yS=J.ReactCurrentOwner,Gs=!1;function qi(c,r,b,W){r.child=c===null?oT(r,null,b,W):zm(r,c.child,b,W)}function ET(c,r,b,W,Y){b=b.render;var I=r.ref;return xm(r,Y),W=H1(c,r,b,W,I,Y),b=Q1(),c!==null&&!Gs?(r.updateQueue=c.updateQueue,r.flags&=-2053,c.lanes&=~Y,wo(c,r,Y)):(on&&b&&x1(r),r.flags|=1,qi(c,r,W,Y),r.child)}function vT(c,r,b,W,Y){if(c===null){var I=b.type;return typeof I=="function"&&!TM(I)&&I.defaultProps===void 0&&b.compare===null&&b.defaultProps===void 0?(r.tag=15,r.type=I,KT(c,r,I,W,Y)):(c=Ly(b.type,null,W,r,r.mode,Y),c.ref=r.ref,c.return=r,r.child=c)}if(I=c.child,!(c.lanes&Y)){var C=I.memoizedProps;if(b=b.compare,b=b!==null?b:yt,b(C,W)&&c.ref===r.ref)return wo(c,r,Y)}return r.flags|=1,c=Pr(I,W),c.ref=r.ref,c.return=r,r.child=c}function KT(c,r,b,W,Y){if(c!==null){var I=c.memoizedProps;if(yt(I,W)&&c.ref===r.ref)if(Gs=!1,r.pendingProps=W=I,(c.lanes&Y)!==0)c.flags&131072&&(Gs=!0);else return r.lanes=c.lanes,wo(c,r,Y)}return nM(c,r,b,W,Y)}function PT(c,r,b){var W=r.pendingProps,Y=W.children,I=c!==null?c.memoizedState:null;if(W.mode==="hidden")if(!(r.mode&1))r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ql(km,Ks),Ks|=b;else{if(!(b&1073741824))return c=I!==null?I.baseLanes|b:b,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:c,cachePool:null,transitions:null},r.updateQueue=null,Ql(km,Ks),Ks|=c,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},W=I!==null?I.baseLanes:b,Ql(km,Ks),Ks|=W}else I!==null?(W=I.baseLanes|b,r.memoizedState=null):W=b,Ql(km,Ks),Ks|=W;return qi(c,r,Y,b),r.child}function HT(c,r){var b=r.ref;(c===null&&b!==null||c!==null&&c.ref!==b)&&(r.flags|=512,r.flags|=2097152)}function nM(c,r,b,W,Y){var I=Ms(b)?M0:fi.current;return I=Tm(r,I),xm(r,Y),b=H1(c,r,b,W,I,Y),W=Q1(),c!==null&&!Gs?(r.updateQueue=c.updateQueue,r.flags&=-2053,c.lanes&=~Y,wo(c,r,Y)):(on&&W&&x1(r),r.flags|=1,qi(c,r,b,Y),r.child)}function QT(c,r,b,W,Y){if(Ms(b)){var I=!0;_2(r)}else I=!1;if(xm(r,Y),r.stateNode===null)Zy(c,r),DT(r,b,W),tM(r,b,W,Y),W=!0;else if(c===null){var C=r.stateNode,A=r.memoizedProps;C.props=A;var st=C.context,wt=b.contextType;typeof wt=="object"&&wt!==null?wt=za(wt):(wt=Ms(b)?M0:fi.current,wt=Tm(r,wt));var Jt=b.getDerivedStateFromProps,Ut=typeof Jt=="function"||typeof C.getSnapshotBeforeUpdate=="function";Ut||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(A!==W||st!==wt)&&jT(r,C,W,wt),Cr=!1;var Ot=r.memoizedState;C.state=Ot,ay(r,W,C,Y),st=r.memoizedState,A!==W||Ot!==st||Ws.current||Cr?(typeof Jt=="function"&&($1(r,b,Jt,W),st=r.memoizedState),(A=Cr||fT(r,b,A,W,Ot,st,wt))?(Ut||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(r.flags|=4194308)):(typeof C.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=W,r.memoizedState=st),C.props=W,C.state=st,C.context=wt,W=A):(typeof C.componentDidMount=="function"&&(r.flags|=4194308),W=!1)}else{C=r.stateNode,dT(c,r),A=r.memoizedProps,wt=r.type===r.elementType?A:qa(r.type,A),C.props=wt,Ut=r.pendingProps,Ot=C.context,st=b.contextType,typeof st=="object"&&st!==null?st=za(st):(st=Ms(b)?M0:fi.current,st=Tm(r,st));var We=b.getDerivedStateFromProps;(Jt=typeof We=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(A!==Ut||Ot!==st)&&jT(r,C,W,st),Cr=!1,Ot=r.memoizedState,C.state=Ot,ay(r,W,C,Y);var we=r.memoizedState;A!==Ut||Ot!==we||Ws.current||Cr?(typeof We=="function"&&($1(r,b,We,W),we=r.memoizedState),(wt=Cr||fT(r,b,wt,W,Ot,we,st)||!1)?(Jt||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(W,we,st),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(W,we,st)),typeof C.componentDidUpdate=="function"&&(r.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof C.componentDidUpdate!="function"||A===c.memoizedProps&&Ot===c.memoizedState||(r.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||A===c.memoizedProps&&Ot===c.memoizedState||(r.flags|=1024),r.memoizedProps=W,r.memoizedState=we),C.props=W,C.state=we,C.context=st,W=wt):(typeof C.componentDidUpdate!="function"||A===c.memoizedProps&&Ot===c.memoizedState||(r.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||A===c.memoizedProps&&Ot===c.memoizedState||(r.flags|=1024),W=!1)}return iM(c,r,b,W,I,Y)}function iM(c,r,b,W,Y,I){HT(c,r);var C=(r.flags&128)!==0;if(!W&&!C)return Y&&$5(r,b,!1),wo(c,r,I);W=r.stateNode,yS.current=r;var A=C&&typeof b.getDerivedStateFromError!="function"?null:W.render();return r.flags|=1,c!==null&&C?(r.child=zm(r,c.child,null,I),r.child=zm(r,null,A,I)):qi(c,r,A,I),r.memoizedState=W.state,Y&&$5(r,b,!0),r.child}function BT(c){var r=c.stateNode;r.pendingContext?_5(c,r.pendingContext,r.pendingContext!==r.context):r.context&&_5(c,r.context,!1),J1(c,r.containerInfo)}function AT(c,r,b,W,Y){return Im(),k1(Y),r.flags|=256,qi(c,r,b,W),r.child}var sM={dehydrated:null,treeContext:null,retryLane:0};function aM(c){return{baseLanes:c,cachePool:null,transitions:null}}function _T(c,r,b){var W=r.pendingProps,Y=Wn.current,I=!1,C=(r.flags&128)!==0,A;if((A=C)||(A=c!==null&&c.memoizedState===null?!1:(Y&2)!==0),A?(I=!0,r.flags&=-129):(c===null||c.memoizedState!==null)&&(Y|=1),Ql(Wn,Y&1),c===null)return R1(r),c=r.memoizedState,c!==null&&(c=c.dehydrated,c!==null)?(r.mode&1?c.data==="$!"?r.lanes=8:r.lanes=1073741824:r.lanes=1,null):(C=W.children,c=W.fallback,I?(W=r.mode,I=r.child,C={mode:"hidden",children:C},!(W&1)&&I!==null?(I.childLanes=0,I.pendingProps=C):I=Iy(C,W,0,null),c=x0(c,W,b,null),I.return=r,c.return=r,I.sibling=c,r.child=I,r.child.memoizedState=aM(b),r.memoizedState=sM,c):cM(r,C));if(Y=c.memoizedState,Y!==null&&(A=Y.dehydrated,A!==null))return NS(c,r,C,W,A,Y,b);if(I){I=W.fallback,C=r.mode,Y=c.child,A=Y.sibling;var st={mode:"hidden",children:W.children};return!(C&1)&&r.child!==Y?(W=r.child,W.childLanes=0,W.pendingProps=st,r.deletions=null):(W=Pr(Y,st),W.subtreeFlags=Y.subtreeFlags&14680064),A!==null?I=Pr(A,I):(I=x0(I,C,b,null),I.flags|=2),I.return=r,W.return=r,W.sibling=I,r.child=W,W=I,I=r.child,C=c.child.memoizedState,C=C===null?aM(b):{baseLanes:C.baseLanes|b,cachePool:null,transitions:C.transitions},I.memoizedState=C,I.childLanes=c.childLanes&~b,r.memoizedState=sM,W}return I=c.child,c=I.sibling,W=Pr(I,{mode:"visible",children:W.children}),!(r.mode&1)&&(W.lanes=b),W.return=r,W.sibling=null,c!==null&&(b=r.deletions,b===null?(r.deletions=[c],r.flags|=16):b.push(c)),r.child=W,r.memoizedState=null,W}function cM(c,r){return r=Iy({mode:"visible",children:r},c.mode,0,null),r.return=c,c.child=r}function by(c,r,b,W){return W!==null&&k1(W),zm(r,c.child,null,b),c=cM(r,r.pendingProps.children),c.flags|=2,r.memoizedState=null,c}function NS(c,r,b,W,Y,I,C){if(b)return r.flags&256?(r.flags&=-257,W=eM(Error(e(422))),by(c,r,C,W)):r.memoizedState!==null?(r.child=c.child,r.flags|=128,null):(I=W.fallback,Y=r.mode,W=Iy({mode:"visible",children:W.children},Y,0,null),I=x0(I,Y,C,null),I.flags|=2,W.return=r,I.return=r,W.sibling=I,r.child=W,r.mode&1&&zm(r,c.child,null,C),r.child.memoizedState=aM(C),r.memoizedState=sM,I);if(!(r.mode&1))return by(c,r,C,null);if(Y.data==="$!"){if(W=Y.nextSibling&&Y.nextSibling.dataset,W)var A=W.dgst;return W=A,I=Error(e(419)),W=eM(I,W,void 0),by(c,r,C,W)}if(A=(C&c.childLanes)!==0,Gs||A){if(W=mi,W!==null){switch(C&-C){case 4:Y=2;break;case 16:Y=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:Y=32;break;case 536870912:Y=268435456;break;default:Y=0}Y=Y&(W.suspendedLanes|C)?0:Y,Y!==0&&Y!==I.retryLane&&(I.retryLane=Y,Io(c,Y),ec(W,c,Y,-1))}return YM(),W=eM(Error(e(421))),by(c,r,C,W)}return Y.data==="$?"?(r.flags|=128,r.child=c.child,r=gS.bind(null,c),Y._reactRetry=r,null):(c=I.treeContext,vs=fr(Y.nextSibling),Es=r,on=!0,_a=null,c!==null&&(La[Ia++]=Vo,La[Ia++]=Lo,La[Ia++]=G0,Vo=c.id,Lo=c.overflow,G0=r),r=cM(r,W.children),r.flags|=4096,r)}function qT(c,r,b){c.lanes|=r;var W=c.alternate;W!==null&&(W.lanes|=r),O1(c.return,r,b)}function oM(c,r,b,W,Y){var I=c.memoizedState;I===null?c.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:W,tail:b,tailMode:Y}:(I.isBackwards=r,I.rendering=null,I.renderingStartTime=0,I.last=W,I.tail=b,I.tailMode=Y)}function $T(c,r,b){var W=r.pendingProps,Y=W.revealOrder,I=W.tail;if(qi(c,r,W.children,b),W=Wn.current,W&2)W=W&1|2,r.flags|=128;else{if(c!==null&&c.flags&128)t:for(c=r.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&qT(c,b,r);else if(c.tag===19)qT(c,b,r);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break t;for(;c.sibling===null;){if(c.return===null||c.return===r)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}W&=1}if(Ql(Wn,W),!(r.mode&1))r.memoizedState=null;else switch(Y){case"forwards":for(b=r.child,Y=null;b!==null;)c=b.alternate,c!==null&&cy(c)===null&&(Y=b),b=b.sibling;b=Y,b===null?(Y=r.child,r.child=null):(Y=b.sibling,b.sibling=null),oM(r,!1,Y,b,I);break;case"backwards":for(b=null,Y=r.child,r.child=null;Y!==null;){if(c=Y.alternate,c!==null&&cy(c)===null){r.child=Y;break}c=Y.sibling,Y.sibling=b,b=Y,Y=c}oM(r,!0,b,null,I);break;case"together":oM(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Zy(c,r){!(r.mode&1)&&c!==null&&(c.alternate=null,r.alternate=null,r.flags|=2)}function wo(c,r,b){if(c!==null&&(r.dependencies=c.dependencies),L0|=r.lanes,!(b&r.childLanes))return null;if(c!==null&&r.child!==c.child)throw Error(e(153));if(r.child!==null){for(c=r.child,b=Pr(c,c.pendingProps),r.child=b,b.return=r;c.sibling!==null;)c=c.sibling,b=b.sibling=Pr(c,c.pendingProps),b.return=r;b.sibling=null}return r.child}function WS(c,r,b){switch(r.tag){case 3:BT(r),Im();break;case 5:hT(r);break;case 1:Ms(r.type)&&_2(r);break;case 4:J1(r,r.stateNode.containerInfo);break;case 10:var W=r.type._context,Y=r.memoizedProps.value;Ql(ny,W._currentValue),W._currentValue=Y;break;case 13:if(W=r.memoizedState,W!==null)return W.dehydrated!==null?(Ql(Wn,Wn.current&1),r.flags|=128,null):b&r.child.childLanes?_T(c,r,b):(Ql(Wn,Wn.current&1),c=wo(c,r,b),c!==null?c.sibling:null);Ql(Wn,Wn.current&1);break;case 19:if(W=(b&r.childLanes)!==0,c.flags&128){if(W)return $T(c,r,b);r.flags|=128}if(Y=r.memoizedState,Y!==null&&(Y.rendering=null,Y.tail=null,Y.lastEffect=null),Ql(Wn,Wn.current),W)break;return null;case 22:case 23:return r.lanes=0,PT(c,r,b)}return wo(c,r,b)}var tV,rM,eV,lV;tV=function(c,r){for(var b=r.child;b!==null;){if(b.tag===5||b.tag===6)c.appendChild(b.stateNode);else if(b.tag!==4&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===r)break;for(;b.sibling===null;){if(b.return===null||b.return===r)return;b=b.return}b.sibling.return=b.return,b=b.sibling}},rM=function(){},eV=function(c,r,b,W){var Y=c.memoizedProps;if(Y!==W){c=r.stateNode,T0(gc.current);var I=null;switch(b){case"input":Y=Fn(c,Y),W=Fn(c,W),I=[];break;case"select":Y=K({},Y,{value:void 0}),W=K({},W,{value:void 0}),I=[];break;case"textarea":Y=Za(c,Y),W=Za(c,W),I=[];break;default:typeof Y.onClick!="function"&&typeof W.onClick=="function"&&(c.onclick=Q2)}se(b,W);var C;b=null;for(wt in Y)if(!W.hasOwnProperty(wt)&&Y.hasOwnProperty(wt)&&Y[wt]!=null)if(wt==="style"){var A=Y[wt];for(C in A)A.hasOwnProperty(C)&&(b||(b={}),b[C]="")}else wt!=="dangerouslySetInnerHTML"&&wt!=="children"&&wt!=="suppressContentEditableWarning"&&wt!=="suppressHydrationWarning"&&wt!=="autoFocus"&&(i.hasOwnProperty(wt)?I||(I=[]):(I=I||[]).push(wt,null));for(wt in W){var st=W[wt];if(A=Y!=null?Y[wt]:void 0,W.hasOwnProperty(wt)&&st!==A&&(st!=null||A!=null))if(wt==="style")if(A){for(C in A)!A.hasOwnProperty(C)||st&&st.hasOwnProperty(C)||(b||(b={}),b[C]="");for(C in st)st.hasOwnProperty(C)&&A[C]!==st[C]&&(b||(b={}),b[C]=st[C])}else b||(I||(I=[]),I.push(wt,b)),b=st;else wt==="dangerouslySetInnerHTML"?(st=st?st.__html:void 0,A=A?A.__html:void 0,st!=null&&A!==st&&(I=I||[]).push(wt,st)):wt==="children"?typeof st!="string"&&typeof st!="number"||(I=I||[]).push(wt,""+st):wt!=="suppressContentEditableWarning"&&wt!=="suppressHydrationWarning"&&(i.hasOwnProperty(wt)?(st!=null&&wt==="onScroll"&&$l("scroll",c),I||A===st||(I=[])):(I=I||[]).push(wt,st))}b&&(I=I||[]).push("style",b);var wt=I;(r.updateQueue=wt)&&(r.flags|=4)}},lV=function(c,r,b,W){b!==W&&(r.flags|=4)};function vb(c,r){if(!on)switch(c.tailMode){case"hidden":r=c.tail;for(var b=null;r!==null;)r.alternate!==null&&(b=r),r=r.sibling;b===null?c.tail=null:b.sibling=null;break;case"collapsed":b=c.tail;for(var W=null;b!==null;)b.alternate!==null&&(W=b),b=b.sibling;W===null?r||c.tail===null?c.tail=null:c.tail.sibling=null:W.sibling=null}}function ji(c){var r=c.alternate!==null&&c.alternate.child===c.child,b=0,W=0;if(r)for(var Y=c.child;Y!==null;)b|=Y.lanes|Y.childLanes,W|=Y.subtreeFlags&14680064,W|=Y.flags&14680064,Y.return=c,Y=Y.sibling;else for(Y=c.child;Y!==null;)b|=Y.lanes|Y.childLanes,W|=Y.subtreeFlags,W|=Y.flags,Y.return=c,Y=Y.sibling;return c.subtreeFlags|=W,c.childLanes=b,r}function MS(c,r,b){var W=r.pendingProps;switch(g1(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ji(r),null;case 1:return Ms(r.type)&&A2(),ji(r),null;case 3:return W=r.stateNode,gm(),tn(Ws),tn(fi),v1(),W.pendingContext&&(W.context=W.pendingContext,W.pendingContext=null),(c===null||c.child===null)&&(ey(r)?r.flags|=4:c===null||c.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,_a!==null&&(MM(_a),_a=null))),rM(c,r),ji(r),null;case 5:U1(r);var Y=T0(Cb.current);if(b=r.type,c!==null&&r.stateNode!=null)eV(c,r,b,W,Y),c.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!W){if(r.stateNode===null)throw Error(e(166));return ji(r),null}if(c=T0(gc.current),ey(r)){W=r.stateNode,b=r.type;var I=r.memoizedProps;switch(W[xc]=r,W[kb]=I,c=(r.mode&1)!==0,b){case"dialog":$l("cancel",W),$l("close",W);break;case"iframe":case"object":case"embed":$l("load",W);break;case"video":case"audio":for(Y=0;Y<gb.length;Y++)$l(gb[Y],W);break;case"source":$l("error",W);break;case"img":case"image":case"link":$l("error",W),$l("load",W);break;case"details":$l("toggle",W);break;case"input":hn(W,I),$l("invalid",W);break;case"select":W._wrapperState={wasMultiple:!!I.multiple},$l("invalid",W);break;case"textarea":Qi(W,I),$l("invalid",W)}se(b,I),Y=null;for(var C in I)if(I.hasOwnProperty(C)){var A=I[C];C==="children"?typeof A=="string"?W.textContent!==A&&(I.suppressHydrationWarning!==!0&&H2(W.textContent,A,c),Y=["children",A]):typeof A=="number"&&W.textContent!==""+A&&(I.suppressHydrationWarning!==!0&&H2(W.textContent,A,c),Y=["children",""+A]):i.hasOwnProperty(C)&&A!=null&&C==="onScroll"&&$l("scroll",W)}switch(b){case"input":yl(W),bn(W,I,!0);break;case"textarea":yl(W),xe(W);break;case"select":case"option":break;default:typeof I.onClick=="function"&&(W.onclick=Q2)}W=Y,r.updateQueue=W,W!==null&&(r.flags|=4)}else{C=Y.nodeType===9?Y:Y.ownerDocument,c==="http://www.w3.org/1999/xhtml"&&(c=It(b)),c==="http://www.w3.org/1999/xhtml"?b==="script"?(c=C.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild)):typeof W.is=="string"?c=C.createElement(b,{is:W.is}):(c=C.createElement(b),b==="select"&&(C=c,W.multiple?C.multiple=!0:W.size&&(C.size=W.size))):c=C.createElementNS(c,b),c[xc]=r,c[kb]=W,tV(c,r,!1,!1),r.stateNode=c;t:{switch(C=wn(b,W),b){case"dialog":$l("cancel",c),$l("close",c),Y=W;break;case"iframe":case"object":case"embed":$l("load",c),Y=W;break;case"video":case"audio":for(Y=0;Y<gb.length;Y++)$l(gb[Y],c);Y=W;break;case"source":$l("error",c),Y=W;break;case"img":case"image":case"link":$l("error",c),$l("load",c),Y=W;break;case"details":$l("toggle",c),Y=W;break;case"input":hn(c,W),Y=Fn(c,W),$l("invalid",c);break;case"option":Y=W;break;case"select":c._wrapperState={wasMultiple:!!W.multiple},Y=K({},W,{value:void 0}),$l("invalid",c);break;case"textarea":Qi(c,W),Y=Za(c,W),$l("invalid",c);break;default:Y=W}se(b,Y),A=Y;for(I in A)if(A.hasOwnProperty(I)){var st=A[I];I==="style"?Un(c,st):I==="dangerouslySetInnerHTML"?(st=st?st.__html:void 0,st!=null&&Ce(c,st)):I==="children"?typeof st=="string"?(b!=="textarea"||st!=="")&&Be(c,st):typeof st=="number"&&Be(c,""+st):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(i.hasOwnProperty(I)?st!=null&&I==="onScroll"&&$l("scroll",c):st!=null&&R(c,I,st,C))}switch(b){case"input":yl(c),bn(c,W,!1);break;case"textarea":yl(c),xe(c);break;case"option":W.value!=null&&c.setAttribute("value",""+ye(W.value));break;case"select":c.multiple=!!W.multiple,I=W.value,I!=null?Zn(c,!!W.multiple,I,!1):W.defaultValue!=null&&Zn(c,!!W.multiple,W.defaultValue,!0);break;default:typeof Y.onClick=="function"&&(c.onclick=Q2)}switch(b){case"button":case"input":case"select":case"textarea":W=!!W.autoFocus;break t;case"img":W=!0;break t;default:W=!1}}W&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return ji(r),null;case 6:if(c&&r.stateNode!=null)lV(c,r,c.memoizedProps,W);else{if(typeof W!="string"&&r.stateNode===null)throw Error(e(166));if(b=T0(Cb.current),T0(gc.current),ey(r)){if(W=r.stateNode,b=r.memoizedProps,W[xc]=r,(I=W.nodeValue!==b)&&(c=Es,c!==null))switch(c.tag){case 3:H2(W.nodeValue,b,(c.mode&1)!==0);break;case 5:c.memoizedProps.suppressHydrationWarning!==!0&&H2(W.nodeValue,b,(c.mode&1)!==0)}I&&(r.flags|=4)}else W=(b.nodeType===9?b:b.ownerDocument).createTextNode(W),W[xc]=r,r.stateNode=W}return ji(r),null;case 13:if(tn(Wn),W=r.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(on&&vs!==null&&r.mode&1&&!(r.flags&128))sT(),Im(),r.flags|=98560,I=!1;else if(I=ey(r),W!==null&&W.dehydrated!==null){if(c===null){if(!I)throw Error(e(318));if(I=r.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(e(317));I[xc]=r}else Im(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;ji(r),I=!1}else _a!==null&&(MM(_a),_a=null),I=!0;if(!I)return r.flags&65536?r:null}return r.flags&128?(r.lanes=b,r):(W=W!==null,W!==(c!==null&&c.memoizedState!==null)&&W&&(r.child.flags|=8192,r.mode&1&&(c===null||Wn.current&1?ti===0&&(ti=3):YM())),r.updateQueue!==null&&(r.flags|=4),ji(r),null);case 4:return gm(),rM(c,r),c===null&&Sb(r.stateNode.containerInfo),ji(r),null;case 10:return j1(r.type._context),ji(r),null;case 17:return Ms(r.type)&&A2(),ji(r),null;case 19:if(tn(Wn),I=r.memoizedState,I===null)return ji(r),null;if(W=(r.flags&128)!==0,C=I.rendering,C===null)if(W)vb(I,!1);else{if(ti!==0||c!==null&&c.flags&128)for(c=r.child;c!==null;){if(C=cy(c),C!==null){for(r.flags|=128,vb(I,!1),W=C.updateQueue,W!==null&&(r.updateQueue=W,r.flags|=4),r.subtreeFlags=0,W=b,b=r.child;b!==null;)I=b,c=W,I.flags&=14680066,C=I.alternate,C===null?(I.childLanes=0,I.lanes=c,I.child=null,I.subtreeFlags=0,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=C.childLanes,I.lanes=C.lanes,I.child=C.child,I.subtreeFlags=0,I.deletions=null,I.memoizedProps=C.memoizedProps,I.memoizedState=C.memoizedState,I.updateQueue=C.updateQueue,I.type=C.type,c=C.dependencies,I.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),b=b.sibling;return Ql(Wn,Wn.current&1|2),r.child}c=c.sibling}I.tail!==null&&Ml()>fm&&(r.flags|=128,W=!0,vb(I,!1),r.lanes=4194304)}else{if(!W)if(c=cy(C),c!==null){if(r.flags|=128,W=!0,b=c.updateQueue,b!==null&&(r.updateQueue=b,r.flags|=4),vb(I,!0),I.tail===null&&I.tailMode==="hidden"&&!C.alternate&&!on)return ji(r),null}else 2*Ml()-I.renderingStartTime>fm&&b!==1073741824&&(r.flags|=128,W=!0,vb(I,!1),r.lanes=4194304);I.isBackwards?(C.sibling=r.child,r.child=C):(b=I.last,b!==null?b.sibling=C:r.child=C,I.last=C)}return I.tail!==null?(r=I.tail,I.rendering=r,I.tail=r.sibling,I.renderingStartTime=Ml(),r.sibling=null,b=Wn.current,Ql(Wn,W?b&1|2:b&1),r):(ji(r),null);case 22:case 23:return XM(),W=r.memoizedState!==null,c!==null&&c.memoizedState!==null!==W&&(r.flags|=8192),W&&r.mode&1?Ks&1073741824&&(ji(r),r.subtreeFlags&6&&(r.flags|=8192)):ji(r),null;case 24:return null;case 25:return null}throw Error(e(156,r.tag))}function GS(c,r){switch(g1(r),r.tag){case 1:return Ms(r.type)&&A2(),c=r.flags,c&65536?(r.flags=c&-65537|128,r):null;case 3:return gm(),tn(Ws),tn(fi),v1(),c=r.flags,c&65536&&!(c&128)?(r.flags=c&-65537|128,r):null;case 5:return U1(r),null;case 13:if(tn(Wn),c=r.memoizedState,c!==null&&c.dehydrated!==null){if(r.alternate===null)throw Error(e(340));Im()}return c=r.flags,c&65536?(r.flags=c&-65537|128,r):null;case 19:return tn(Wn),null;case 4:return gm(),null;case 10:return j1(r.type._context),null;case 22:case 23:return XM(),null;case 24:return null;default:return null}}var py=!1,Oi=!1,XS=typeof WeakSet=="function"?WeakSet:Set,Le=null;function Rm(c,r){var b=c.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(W){xn(c,r,W)}else b.current=null}function dM(c,r,b){try{b()}catch(W){xn(c,r,W)}}var nV=!1;function YS(c,r){if(X1=Ic,c=mt(),Lt(c)){if("selectionStart"in c)var b={start:c.selectionStart,end:c.selectionEnd};else t:{b=(b=c.ownerDocument)&&b.defaultView||window;var W=b.getSelection&&b.getSelection();if(W&&W.rangeCount!==0){b=W.anchorNode;var Y=W.anchorOffset,I=W.focusNode;W=W.focusOffset;try{b.nodeType,I.nodeType}catch{b=null;break t}var C=0,A=-1,st=-1,wt=0,Jt=0,Ut=c,Ot=null;e:for(;;){for(var We;Ut!==b||Y!==0&&Ut.nodeType!==3||(A=C+Y),Ut!==I||W!==0&&Ut.nodeType!==3||(st=C+W),Ut.nodeType===3&&(C+=Ut.nodeValue.length),(We=Ut.firstChild)!==null;)Ot=Ut,Ut=We;for(;;){if(Ut===c)break e;if(Ot===b&&++wt===Y&&(A=C),Ot===I&&++Jt===W&&(st=C),(We=Ut.nextSibling)!==null)break;Ut=Ot,Ot=Ut.parentNode}Ut=We}b=A===-1||st===-1?null:{start:A,end:st}}else b=null}b=b||{start:0,end:0}}else b=null;for(Y1={focusedElem:c,selectionRange:b},Ic=!1,Le=r;Le!==null;)if(r=Le,c=r.child,(r.subtreeFlags&1028)!==0&&c!==null)c.return=r,Le=c;else for(;Le!==null;){r=Le;try{var we=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(we!==null){var ge=we.memoizedProps,fn=we.memoizedState,Gt=r.stateNode,ut=Gt.getSnapshotBeforeUpdate(r.elementType===r.type?ge:qa(r.type,ge),fn);Gt.__reactInternalSnapshotBeforeUpdate=ut}break;case 3:var zt=r.stateNode.containerInfo;zt.nodeType===1?zt.textContent="":zt.nodeType===9&&zt.documentElement&&zt.removeChild(zt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(e(163))}}catch(_t){xn(r,r.return,_t)}if(c=r.sibling,c!==null){c.return=r.return,Le=c;break}Le=r.return}return we=nV,nV=!1,we}function Kb(c,r,b){var W=r.updateQueue;if(W=W!==null?W.lastEffect:null,W!==null){var Y=W=W.next;do{if((Y.tag&c)===c){var I=Y.destroy;Y.destroy=void 0,I!==void 0&&dM(r,b,I)}Y=Y.next}while(Y!==W)}}function yy(c,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var b=r=r.next;do{if((b.tag&c)===c){var W=b.create;b.destroy=W()}b=b.next}while(b!==r)}}function uM(c){var r=c.ref;if(r!==null){var b=c.stateNode;switch(c.tag){case 5:c=b;break;default:c=b}typeof r=="function"?r(c):r.current=c}}function iV(c){var r=c.alternate;r!==null&&(c.alternate=null,iV(r)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(r=c.stateNode,r!==null&&(delete r[xc],delete r[kb],delete r[I1],delete r[sS],delete r[aS])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function sV(c){return c.tag===5||c.tag===3||c.tag===4}function aV(c){t:for(;;){for(;c.sibling===null;){if(c.return===null||sV(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue t;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function mM(c,r,b){var W=c.tag;if(W===5||W===6)c=c.stateNode,r?b.nodeType===8?b.parentNode.insertBefore(c,r):b.insertBefore(c,r):(b.nodeType===8?(r=b.parentNode,r.insertBefore(c,b)):(r=b,r.appendChild(c)),b=b._reactRootContainer,b!=null||r.onclick!==null||(r.onclick=Q2));else if(W!==4&&(c=c.child,c!==null))for(mM(c,r,b),c=c.sibling;c!==null;)mM(c,r,b),c=c.sibling}function hM(c,r,b){var W=c.tag;if(W===5||W===6)c=c.stateNode,r?b.insertBefore(c,r):b.appendChild(c);else if(W!==4&&(c=c.child,c!==null))for(hM(c,r,b),c=c.sibling;c!==null;)hM(c,r,b),c=c.sibling}var Yi=null,$a=!1;function Jr(c,r,b){for(b=b.child;b!==null;)cV(c,r,b),b=b.sibling}function cV(c,r,b){if(il&&typeof il.onCommitFiberUnmount=="function")try{il.onCommitFiberUnmount(el,b)}catch{}switch(b.tag){case 5:Oi||Rm(b,r);case 6:var W=Yi,Y=$a;Yi=null,Jr(c,r,b),Yi=W,$a=Y,Yi!==null&&($a?(c=Yi,b=b.stateNode,c.nodeType===8?c.parentNode.removeChild(b):c.removeChild(b)):Yi.removeChild(b.stateNode));break;case 18:Yi!==null&&($a?(c=Yi,b=b.stateNode,c.nodeType===8?L1(c.parentNode,b):c.nodeType===1&&L1(c,b),zr(c)):L1(Yi,b.stateNode));break;case 4:W=Yi,Y=$a,Yi=b.stateNode.containerInfo,$a=!0,Jr(c,r,b),Yi=W,$a=Y;break;case 0:case 11:case 14:case 15:if(!Oi&&(W=b.updateQueue,W!==null&&(W=W.lastEffect,W!==null))){Y=W=W.next;do{var I=Y,C=I.destroy;I=I.tag,C!==void 0&&(I&2||I&4)&&dM(b,r,C),Y=Y.next}while(Y!==W)}Jr(c,r,b);break;case 1:if(!Oi&&(Rm(b,r),W=b.stateNode,typeof W.componentWillUnmount=="function"))try{W.props=b.memoizedProps,W.state=b.memoizedState,W.componentWillUnmount()}catch(A){xn(b,r,A)}Jr(c,r,b);break;case 21:Jr(c,r,b);break;case 22:b.mode&1?(Oi=(W=Oi)||b.memoizedState!==null,Jr(c,r,b),Oi=W):Jr(c,r,b);break;default:Jr(c,r,b)}}function oV(c){var r=c.updateQueue;if(r!==null){c.updateQueue=null;var b=c.stateNode;b===null&&(b=c.stateNode=new XS),r.forEach(function(W){var Y=SS.bind(null,c,W);b.has(W)||(b.add(W),W.then(Y,Y))})}}function tc(c,r){var b=r.deletions;if(b!==null)for(var W=0;W<b.length;W++){var Y=b[W];try{var I=c,C=r,A=C;t:for(;A!==null;){switch(A.tag){case 5:Yi=A.stateNode,$a=!1;break t;case 3:Yi=A.stateNode.containerInfo,$a=!0;break t;case 4:Yi=A.stateNode.containerInfo,$a=!0;break t}A=A.return}if(Yi===null)throw Error(e(160));cV(I,C,Y),Yi=null,$a=!1;var st=Y.alternate;st!==null&&(st.return=null),Y.return=null}catch(wt){xn(Y,r,wt)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)rV(r,c),r=r.sibling}function rV(c,r){var b=c.alternate,W=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:if(tc(r,c),Rc(c),W&4){try{Kb(3,c,c.return),yy(3,c)}catch(ge){xn(c,c.return,ge)}try{Kb(5,c,c.return)}catch(ge){xn(c,c.return,ge)}}break;case 1:tc(r,c),Rc(c),W&512&&b!==null&&Rm(b,b.return);break;case 5:if(tc(r,c),Rc(c),W&512&&b!==null&&Rm(b,b.return),c.flags&32){var Y=c.stateNode;try{Be(Y,"")}catch(ge){xn(c,c.return,ge)}}if(W&4&&(Y=c.stateNode,Y!=null)){var I=c.memoizedProps,C=b!==null?b.memoizedProps:I,A=c.type,st=c.updateQueue;if(c.updateQueue=null,st!==null)try{A==="input"&&I.type==="radio"&&I.name!=null&&nl(Y,I),wn(A,C);var wt=wn(A,I);for(C=0;C<st.length;C+=2){var Jt=st[C],Ut=st[C+1];Jt==="style"?Un(Y,Ut):Jt==="dangerouslySetInnerHTML"?Ce(Y,Ut):Jt==="children"?Be(Y,Ut):R(Y,Jt,Ut,wt)}switch(A){case"input":Pl(Y,I);break;case"textarea":ee(Y,I);break;case"select":var Ot=Y._wrapperState.wasMultiple;Y._wrapperState.wasMultiple=!!I.multiple;var We=I.value;We!=null?Zn(Y,!!I.multiple,We,!1):Ot!==!!I.multiple&&(I.defaultValue!=null?Zn(Y,!!I.multiple,I.defaultValue,!0):Zn(Y,!!I.multiple,I.multiple?[]:"",!1))}Y[kb]=I}catch(ge){xn(c,c.return,ge)}}break;case 6:if(tc(r,c),Rc(c),W&4){if(c.stateNode===null)throw Error(e(162));Y=c.stateNode,I=c.memoizedProps;try{Y.nodeValue=I}catch(ge){xn(c,c.return,ge)}}break;case 3:if(tc(r,c),Rc(c),W&4&&b!==null&&b.memoizedState.isDehydrated)try{zr(r.containerInfo)}catch(ge){xn(c,c.return,ge)}break;case 4:tc(r,c),Rc(c);break;case 13:tc(r,c),Rc(c),Y=c.child,Y.flags&8192&&(I=Y.memoizedState!==null,Y.stateNode.isHidden=I,!I||Y.alternate!==null&&Y.alternate.memoizedState!==null||(pM=Ml())),W&4&&oV(c);break;case 22:if(Jt=b!==null&&b.memoizedState!==null,c.mode&1?(Oi=(wt=Oi)||Jt,tc(r,c),Oi=wt):tc(r,c),Rc(c),W&8192){if(wt=c.memoizedState!==null,(c.stateNode.isHidden=wt)&&!Jt&&c.mode&1)for(Le=c,Jt=c.child;Jt!==null;){for(Ut=Le=Jt;Le!==null;){switch(Ot=Le,We=Ot.child,Ot.tag){case 0:case 11:case 14:case 15:Kb(4,Ot,Ot.return);break;case 1:Rm(Ot,Ot.return);var we=Ot.stateNode;if(typeof we.componentWillUnmount=="function"){W=Ot,b=Ot.return;try{r=W,we.props=r.memoizedProps,we.state=r.memoizedState,we.componentWillUnmount()}catch(ge){xn(W,b,ge)}}break;case 5:Rm(Ot,Ot.return);break;case 22:if(Ot.memoizedState!==null){mV(Ut);continue}}We!==null?(We.return=Ot,Le=We):mV(Ut)}Jt=Jt.sibling}t:for(Jt=null,Ut=c;;){if(Ut.tag===5){if(Jt===null){Jt=Ut;try{Y=Ut.stateNode,wt?(I=Y.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none"):(A=Ut.stateNode,st=Ut.memoizedProps.style,C=st!=null&&st.hasOwnProperty("display")?st.display:null,A.style.display=yn("display",C))}catch(ge){xn(c,c.return,ge)}}}else if(Ut.tag===6){if(Jt===null)try{Ut.stateNode.nodeValue=wt?"":Ut.memoizedProps}catch(ge){xn(c,c.return,ge)}}else if((Ut.tag!==22&&Ut.tag!==23||Ut.memoizedState===null||Ut===c)&&Ut.child!==null){Ut.child.return=Ut,Ut=Ut.child;continue}if(Ut===c)break t;for(;Ut.sibling===null;){if(Ut.return===null||Ut.return===c)break t;Jt===Ut&&(Jt=null),Ut=Ut.return}Jt===Ut&&(Jt=null),Ut.sibling.return=Ut.return,Ut=Ut.sibling}}break;case 19:tc(r,c),Rc(c),W&4&&oV(c);break;case 21:break;default:tc(r,c),Rc(c)}}function Rc(c){var r=c.flags;if(r&2){try{t:{for(var b=c.return;b!==null;){if(sV(b)){var W=b;break t}b=b.return}throw Error(e(160))}switch(W.tag){case 5:var Y=W.stateNode;W.flags&32&&(Be(Y,""),W.flags&=-33);var I=aV(c);hM(c,I,Y);break;case 3:case 4:var C=W.stateNode.containerInfo,A=aV(c);mM(c,A,C);break;default:throw Error(e(161))}}catch(st){xn(c,c.return,st)}c.flags&=-3}r&4096&&(c.flags&=-4097)}function TS(c,r,b){Le=c,dV(c)}function dV(c,r,b){for(var W=(c.mode&1)!==0;Le!==null;){var Y=Le,I=Y.child;if(Y.tag===22&&W){var C=Y.memoizedState!==null||py;if(!C){var A=Y.alternate,st=A!==null&&A.memoizedState!==null||Oi;A=py;var wt=Oi;if(py=C,(Oi=st)&&!wt)for(Le=Y;Le!==null;)C=Le,st=C.child,C.tag===22&&C.memoizedState!==null?hV(Y):st!==null?(st.return=C,Le=st):hV(Y);for(;I!==null;)Le=I,dV(I),I=I.sibling;Le=Y,py=A,Oi=wt}uV(c)}else Y.subtreeFlags&8772&&I!==null?(I.return=Y,Le=I):uV(c)}}function uV(c){for(;Le!==null;){var r=Le;if(r.flags&8772){var b=r.alternate;try{if(r.flags&8772)switch(r.tag){case 0:case 11:case 15:Oi||yy(5,r);break;case 1:var W=r.stateNode;if(r.flags&4&&!Oi)if(b===null)W.componentDidMount();else{var Y=r.elementType===r.type?b.memoizedProps:qa(r.type,b.memoizedProps);W.componentDidUpdate(Y,b.memoizedState,W.__reactInternalSnapshotBeforeUpdate)}var I=r.updateQueue;I!==null&&mT(r,I,W);break;case 3:var C=r.updateQueue;if(C!==null){if(b=null,r.child!==null)switch(r.child.tag){case 5:b=r.child.stateNode;break;case 1:b=r.child.stateNode}mT(r,C,b)}break;case 5:var A=r.stateNode;if(b===null&&r.flags&4){b=A;var st=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":st.autoFocus&&b.focus();break;case"img":st.src&&(b.src=st.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var wt=r.alternate;if(wt!==null){var Jt=wt.memoizedState;if(Jt!==null){var Ut=Jt.dehydrated;Ut!==null&&zr(Ut)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(e(163))}Oi||r.flags&512&&uM(r)}catch(Ot){xn(r,r.return,Ot)}}if(r===c){Le=null;break}if(b=r.sibling,b!==null){b.return=r.return,Le=b;break}Le=r.return}}function mV(c){for(;Le!==null;){var r=Le;if(r===c){Le=null;break}var b=r.sibling;if(b!==null){b.return=r.return,Le=b;break}Le=r.return}}function hV(c){for(;Le!==null;){var r=Le;try{switch(r.tag){case 0:case 11:case 15:var b=r.return;try{yy(4,r)}catch(st){xn(r,b,st)}break;case 1:var W=r.stateNode;if(typeof W.componentDidMount=="function"){var Y=r.return;try{W.componentDidMount()}catch(st){xn(r,Y,st)}}var I=r.return;try{uM(r)}catch(st){xn(r,I,st)}break;case 5:var C=r.return;try{uM(r)}catch(st){xn(r,C,st)}}}catch(st){xn(r,r.return,st)}if(r===c){Le=null;break}var A=r.sibling;if(A!==null){A.return=r.return,Le=A;break}Le=r.return}}var VS=Math.ceil,Ny=J.ReactCurrentDispatcher,bM=J.ReactCurrentOwner,xa=J.ReactCurrentBatchConfig,Gl=0,mi=null,En=null,Ti=0,Ks=0,km=Dr(0),ti=0,Pb=null,L0=0,Wy=0,ZM=0,Hb=null,Xs=null,pM=0,fm=1/0,xo=null,My=!1,yM=null,Ur=null,Gy=!1,Er=null,Xy=0,Qb=0,NM=null,Yy=-1,Ty=0;function $i(){return Gl&6?Ml():Yy!==-1?Yy:Yy=Ml()}function vr(c){return c.mode&1?Gl&2&&Ti!==0?Ti&-Ti:oS.transition!==null?(Ty===0&&(Ty=n0()),Ty):(c=Nl,c!==0||(c=window.event,c=c===void 0?16:S2(c.type)),c):1}function ec(c,r,b,W){if(50<Qb)throw Qb=0,NM=null,Error(e(185));Ba(c,b,W),(!(Gl&2)||c!==mi)&&(c===mi&&(!(Gl&2)&&(Wy|=b),ti===4&&Kr(c,Ti)),Ys(c,W),b===1&&Gl===0&&!(r.mode&1)&&(fm=Ml()+500,q2&&Or()))}function Ys(c,r){var b=c.callbackNode;l0(c,r);var W=ys(c,c===mi?Ti:0);if(W===0)b!==null&&_i(b),c.callbackNode=null,c.callbackPriority=0;else if(r=W&-W,c.callbackPriority!==r){if(b!=null&&_i(b),r===1)c.tag===0?cS(ZV.bind(null,c)):tT(ZV.bind(null,c)),nS(function(){!(Gl&6)&&Or()}),b=null;else{switch(re(W)){case 1:b=Ga;break;case 4:b=Xa;break;case 16:b=Vc;break;case 536870912:b=Ie;break;default:b=Vc}b=YV(b,bV.bind(null,c))}c.callbackPriority=r,c.callbackNode=b}}function bV(c,r){if(Yy=-1,Ty=0,Gl&6)throw Error(e(327));var b=c.callbackNode;if(Dm()&&c.callbackNode!==b)return null;var W=ys(c,c===mi?Ti:0);if(W===0)return null;if(W&30||W&c.expiredLanes||r)r=Vy(c,W);else{r=W;var Y=Gl;Gl|=2;var I=yV();(mi!==c||Ti!==r)&&(xo=null,fm=Ml()+500,z0(c,r));do try{zS();break}catch(A){pV(c,A)}while(!0);D1(),Ny.current=I,Gl=Y,En!==null?r=0:(mi=null,Ti=0,r=ti)}if(r!==0){if(r===2&&(Y=Lc(c),Y!==0&&(W=Y,r=WM(c,Y))),r===1)throw b=Pb,z0(c,0),Kr(c,W),Ys(c,Ml()),b;if(r===6)Kr(c,W);else{if(Y=c.current.alternate,!(W&30)&&!LS(Y)&&(r=Vy(c,W),r===2&&(I=Lc(c),I!==0&&(W=I,r=WM(c,I))),r===1))throw b=Pb,z0(c,0),Kr(c,W),Ys(c,Ml()),b;switch(c.finishedWork=Y,c.finishedLanes=W,r){case 0:case 1:throw Error(e(345));case 2:w0(c,Xs,xo);break;case 3:if(Kr(c,W),(W&130023424)===W&&(r=pM+500-Ml(),10<r)){if(ys(c,0)!==0)break;if(Y=c.suspendedLanes,(Y&W)!==W){$i(),c.pingedLanes|=c.suspendedLanes&Y;break}c.timeoutHandle=V1(w0.bind(null,c,Xs,xo),r);break}w0(c,Xs,xo);break;case 4:if(Kr(c,W),(W&4194240)===W)break;for(r=c.eventTimes,Y=-1;0<W;){var C=31-ke(W);I=1<<C,C=r[C],C>Y&&(Y=C),W&=~I}if(W=Y,W=Ml()-W,W=(120>W?120:480>W?480:1080>W?1080:1920>W?1920:3e3>W?3e3:4320>W?4320:1960*VS(W/1960))-W,10<W){c.timeoutHandle=V1(w0.bind(null,c,Xs,xo),W);break}w0(c,Xs,xo);break;case 5:w0(c,Xs,xo);break;default:throw Error(e(329))}}}return Ys(c,Ml()),c.callbackNode===b?bV.bind(null,c):null}function WM(c,r){var b=Hb;return c.current.memoizedState.isDehydrated&&(z0(c,r).flags|=256),c=Vy(c,r),c!==2&&(r=Xs,Xs=b,r!==null&&MM(r)),c}function MM(c){Xs===null?Xs=c:Xs.push.apply(Xs,c)}function LS(c){for(var r=c;;){if(r.flags&16384){var b=r.updateQueue;if(b!==null&&(b=b.stores,b!==null))for(var W=0;W<b.length;W++){var Y=b[W],I=Y.getSnapshot;Y=Y.value;try{if(!et(I(),Y))return!1}catch{return!1}}}if(b=r.child,r.subtreeFlags&16384&&b!==null)b.return=r,r=b;else{if(r===c)break;for(;r.sibling===null;){if(r.return===null||r.return===c)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Kr(c,r){for(r&=~ZM,r&=~Wy,c.suspendedLanes|=r,c.pingedLanes&=~r,c=c.expirationTimes;0<r;){var b=31-ke(r),W=1<<b;c[b]=-1,r&=~W}}function ZV(c){if(Gl&6)throw Error(e(327));Dm();var r=ys(c,0);if(!(r&1))return Ys(c,Ml()),null;var b=Vy(c,r);if(c.tag!==0&&b===2){var W=Lc(c);W!==0&&(r=W,b=WM(c,W))}if(b===1)throw b=Pb,z0(c,0),Kr(c,r),Ys(c,Ml()),b;if(b===6)throw Error(e(345));return c.finishedWork=c.current.alternate,c.finishedLanes=r,w0(c,Xs,xo),Ys(c,Ml()),null}function GM(c,r){var b=Gl;Gl|=1;try{return c(r)}finally{Gl=b,Gl===0&&(fm=Ml()+500,q2&&Or())}}function I0(c){Er!==null&&Er.tag===0&&!(Gl&6)&&Dm();var r=Gl;Gl|=1;var b=xa.transition,W=Nl;try{if(xa.transition=null,Nl=1,c)return c()}finally{Nl=W,xa.transition=b,Gl=r,!(Gl&6)&&Or()}}function XM(){Ks=km.current,tn(km)}function z0(c,r){c.finishedWork=null,c.finishedLanes=0;var b=c.timeoutHandle;if(b!==-1&&(c.timeoutHandle=-1,lS(b)),En!==null)for(b=En.return;b!==null;){var W=b;switch(g1(W),W.tag){case 1:W=W.type.childContextTypes,W!=null&&A2();break;case 3:gm(),tn(Ws),tn(fi),v1();break;case 5:U1(W);break;case 4:gm();break;case 13:tn(Wn);break;case 19:tn(Wn);break;case 10:j1(W.type._context);break;case 22:case 23:XM()}b=b.return}if(mi=c,En=c=Pr(c.current,null),Ti=Ks=r,ti=0,Pb=null,ZM=Wy=L0=0,Xs=Hb=null,Y0!==null){for(r=0;r<Y0.length;r++)if(b=Y0[r],W=b.interleaved,W!==null){b.interleaved=null;var Y=W.next,I=b.pending;if(I!==null){var C=I.next;I.next=Y,W.next=C}b.pending=W}Y0=null}return c}function pV(c,r){do{var b=En;try{if(D1(),oy.current=my,ry){for(var W=Mn.memoizedState;W!==null;){var Y=W.queue;Y!==null&&(Y.pending=null),W=W.next}ry=!1}if(V0=0,ui=$n=Mn=null,Fb=!1,Jb=0,bM.current=null,b===null||b.return===null){ti=1,Pb=r,En=null;break}t:{var I=c,C=b.return,A=b,st=r;if(r=Ti,A.flags|=32768,st!==null&&typeof st=="object"&&typeof st.then=="function"){var wt=st,Jt=A,Ut=Jt.tag;if(!(Jt.mode&1)&&(Ut===0||Ut===11||Ut===15)){var Ot=Jt.alternate;Ot?(Jt.updateQueue=Ot.updateQueue,Jt.memoizedState=Ot.memoizedState,Jt.lanes=Ot.lanes):(Jt.updateQueue=null,Jt.memoizedState=null)}var We=JT(C);if(We!==null){We.flags&=-257,UT(We,C,A,I,r),We.mode&1&&FT(I,wt,r),r=We,st=wt;var we=r.updateQueue;if(we===null){var ge=new Set;ge.add(st),r.updateQueue=ge}else we.add(st);break t}else{if(!(r&1)){FT(I,wt,r),YM();break t}st=Error(e(426))}}else if(on&&A.mode&1){var fn=JT(C);if(fn!==null){!(fn.flags&65536)&&(fn.flags|=256),UT(fn,C,A,I,r),k1(Sm(st,A));break t}}I=st=Sm(st,A),ti!==4&&(ti=2),Hb===null?Hb=[I]:Hb.push(I),I=C;do{switch(I.tag){case 3:I.flags|=65536,r&=-r,I.lanes|=r;var Gt=OT(I,st,r);uT(I,Gt);break t;case 1:A=st;var ut=I.type,zt=I.stateNode;if(!(I.flags&128)&&(typeof ut.getDerivedStateFromError=="function"||zt!==null&&typeof zt.componentDidCatch=="function"&&(Ur===null||!Ur.has(zt)))){I.flags|=65536,r&=-r,I.lanes|=r;var _t=CT(I,A,r);uT(I,_t);break t}}I=I.return}while(I!==null)}WV(b)}catch(Se){r=Se,En===b&&b!==null&&(En=b=b.return);continue}break}while(!0)}function yV(){var c=Ny.current;return Ny.current=my,c===null?my:c}function YM(){(ti===0||ti===3||ti===2)&&(ti=4),mi===null||!(L0&268435455)&&!(Wy&268435455)||Kr(mi,Ti)}function Vy(c,r){var b=Gl;Gl|=2;var W=yV();(mi!==c||Ti!==r)&&(xo=null,z0(c,r));do try{IS();break}catch(Y){pV(c,Y)}while(!0);if(D1(),Gl=b,Ny.current=W,En!==null)throw Error(e(261));return mi=null,Ti=0,ti}function IS(){for(;En!==null;)NV(En)}function zS(){for(;En!==null&&!Hl();)NV(En)}function NV(c){var r=XV(c.alternate,c,Ks);c.memoizedProps=c.pendingProps,r===null?WV(c):En=r,bM.current=null}function WV(c){var r=c;do{var b=r.alternate;if(c=r.return,r.flags&32768){if(b=GS(b,r),b!==null){b.flags&=32767,En=b;return}if(c!==null)c.flags|=32768,c.subtreeFlags=0,c.deletions=null;else{ti=6,En=null;return}}else if(b=MS(b,r,Ks),b!==null){En=b;return}if(r=r.sibling,r!==null){En=r;return}En=r=c}while(r!==null);ti===0&&(ti=5)}function w0(c,r,b){var W=Nl,Y=xa.transition;try{xa.transition=null,Nl=1,wS(c,r,b,W)}finally{xa.transition=Y,Nl=W}return null}function wS(c,r,b,W){do Dm();while(Er!==null);if(Gl&6)throw Error(e(327));b=c.finishedWork;var Y=c.finishedLanes;if(b===null)return null;if(c.finishedWork=null,c.finishedLanes=0,b===c.current)throw Error(e(177));c.callbackNode=null,c.callbackPriority=0;var I=b.lanes|b.childLanes;if(ri(c,I),c===mi&&(En=mi=null,Ti=0),!(b.subtreeFlags&2064)&&!(b.flags&2064)||Gy||(Gy=!0,YV(Vc,function(){return Dm(),null})),I=(b.flags&15990)!==0,b.subtreeFlags&15990||I){I=xa.transition,xa.transition=null;var C=Nl;Nl=1;var A=Gl;Gl|=4,bM.current=null,YS(c,b),rV(b,c),xt(Y1),Ic=!!X1,Y1=X1=null,c.current=b,TS(b),Ma(),Gl=A,Nl=C,xa.transition=I}else c.current=b;if(Gy&&(Gy=!1,Er=c,Xy=Y),I=c.pendingLanes,I===0&&(Ur=null),sn(b.stateNode),Ys(c,Ml()),r!==null)for(W=c.onRecoverableError,b=0;b<r.length;b++)Y=r[b],W(Y.value,{componentStack:Y.stack,digest:Y.digest});if(My)throw My=!1,c=yM,yM=null,c;return Xy&1&&c.tag!==0&&Dm(),I=c.pendingLanes,I&1?c===NM?Qb++:(Qb=0,NM=c):Qb=0,Or(),null}function Dm(){if(Er!==null){var c=re(Xy),r=xa.transition,b=Nl;try{if(xa.transition=null,Nl=16>c?16:c,Er===null)var W=!1;else{if(c=Er,Er=null,Xy=0,Gl&6)throw Error(e(331));var Y=Gl;for(Gl|=4,Le=c.current;Le!==null;){var I=Le,C=I.child;if(Le.flags&16){var A=I.deletions;if(A!==null){for(var st=0;st<A.length;st++){var wt=A[st];for(Le=wt;Le!==null;){var Jt=Le;switch(Jt.tag){case 0:case 11:case 15:Kb(8,Jt,I)}var Ut=Jt.child;if(Ut!==null)Ut.return=Jt,Le=Ut;else for(;Le!==null;){Jt=Le;var Ot=Jt.sibling,We=Jt.return;if(iV(Jt),Jt===wt){Le=null;break}if(Ot!==null){Ot.return=We,Le=Ot;break}Le=We}}}var we=I.alternate;if(we!==null){var ge=we.child;if(ge!==null){we.child=null;do{var fn=ge.sibling;ge.sibling=null,ge=fn}while(ge!==null)}}Le=I}}if(I.subtreeFlags&2064&&C!==null)C.return=I,Le=C;else t:for(;Le!==null;){if(I=Le,I.flags&2048)switch(I.tag){case 0:case 11:case 15:Kb(9,I,I.return)}var Gt=I.sibling;if(Gt!==null){Gt.return=I.return,Le=Gt;break t}Le=I.return}}var ut=c.current;for(Le=ut;Le!==null;){C=Le;var zt=C.child;if(C.subtreeFlags&2064&&zt!==null)zt.return=C,Le=zt;else t:for(C=ut;Le!==null;){if(A=Le,A.flags&2048)try{switch(A.tag){case 0:case 11:case 15:yy(9,A)}}catch(Se){xn(A,A.return,Se)}if(A===C){Le=null;break t}var _t=A.sibling;if(_t!==null){_t.return=A.return,Le=_t;break t}Le=A.return}}if(Gl=Y,Or(),il&&typeof il.onPostCommitFiberRoot=="function")try{il.onPostCommitFiberRoot(el,c)}catch{}W=!0}return W}finally{Nl=b,xa.transition=r}}return!1}function MV(c,r,b){r=Sm(b,r),r=OT(c,r,1),c=Fr(c,r,1),r=$i(),c!==null&&(Ba(c,1,r),Ys(c,r))}function xn(c,r,b){if(c.tag===3)MV(c,c,b);else for(;r!==null;){if(r.tag===3){MV(r,c,b);break}else if(r.tag===1){var W=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof W.componentDidCatch=="function"&&(Ur===null||!Ur.has(W))){c=Sm(b,c),c=CT(r,c,1),r=Fr(r,c,1),c=$i(),r!==null&&(Ba(r,1,c),Ys(r,c));break}}r=r.return}}function xS(c,r,b){var W=c.pingCache;W!==null&&W.delete(r),r=$i(),c.pingedLanes|=c.suspendedLanes&b,mi===c&&(Ti&b)===b&&(ti===4||ti===3&&(Ti&130023424)===Ti&&500>Ml()-pM?z0(c,0):ZM|=b),Ys(c,r)}function GV(c,r){r===0&&(c.mode&1?(r=Os,Os<<=1,!(Os&130023424)&&(Os=4194304)):r=1);var b=$i();c=Io(c,r),c!==null&&(Ba(c,r,b),Ys(c,b))}function gS(c){var r=c.memoizedState,b=0;r!==null&&(b=r.retryLane),GV(c,b)}function SS(c,r){var b=0;switch(c.tag){case 13:var W=c.stateNode,Y=c.memoizedState;Y!==null&&(b=Y.retryLane);break;case 19:W=c.stateNode;break;default:throw Error(e(314))}W!==null&&W.delete(r),GV(c,b)}var XV;XV=function(c,r,b){if(c!==null)if(c.memoizedProps!==r.pendingProps||Ws.current)Gs=!0;else{if(!(c.lanes&b)&&!(r.flags&128))return Gs=!1,WS(c,r,b);Gs=!!(c.flags&131072)}else Gs=!1,on&&r.flags&1048576&&eT(r,ty,r.index);switch(r.lanes=0,r.tag){case 2:var W=r.type;Zy(c,r),c=r.pendingProps;var Y=Tm(r,fi.current);xm(r,b),Y=H1(null,r,W,c,Y,b);var I=Q1();return r.flags|=1,typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Ms(W)?(I=!0,_2(r)):I=!1,r.memoizedState=Y.state!==null&&Y.state!==void 0?Y.state:null,F1(r),Y.updater=hy,r.stateNode=Y,Y._reactInternals=r,tM(r,W,c,b),r=iM(null,r,W,!0,I,b)):(r.tag=0,on&&I&&x1(r),qi(null,r,Y,b),r=r.child),r;case 16:W=r.elementType;t:{switch(Zy(c,r),c=r.pendingProps,Y=W._init,W=Y(W._payload),r.type=W,Y=r.tag=kS(W),c=qa(W,c),Y){case 0:r=nM(null,r,W,c,b);break t;case 1:r=QT(null,r,W,c,b);break t;case 11:r=ET(null,r,W,c,b);break t;case 14:r=vT(null,r,W,qa(W.type,c),b);break t}throw Error(e(306,W,""))}return r;case 0:return W=r.type,Y=r.pendingProps,Y=r.elementType===W?Y:qa(W,Y),nM(c,r,W,Y,b);case 1:return W=r.type,Y=r.pendingProps,Y=r.elementType===W?Y:qa(W,Y),QT(c,r,W,Y,b);case 3:t:{if(BT(r),c===null)throw Error(e(387));W=r.pendingProps,I=r.memoizedState,Y=I.element,dT(c,r),ay(r,W,null,b);var C=r.memoizedState;if(W=C.element,I.isDehydrated)if(I={element:W,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},r.updateQueue.baseState=I,r.memoizedState=I,r.flags&256){Y=Sm(Error(e(423)),r),r=AT(c,r,W,b,Y);break t}else if(W!==Y){Y=Sm(Error(e(424)),r),r=AT(c,r,W,b,Y);break t}else for(vs=fr(r.stateNode.containerInfo.firstChild),Es=r,on=!0,_a=null,b=oT(r,null,W,b),r.child=b;b;)b.flags=b.flags&-3|4096,b=b.sibling;else{if(Im(),W===Y){r=wo(c,r,b);break t}qi(c,r,W,b)}r=r.child}return r;case 5:return hT(r),c===null&&R1(r),W=r.type,Y=r.pendingProps,I=c!==null?c.memoizedProps:null,C=Y.children,T1(W,Y)?C=null:I!==null&&T1(W,I)&&(r.flags|=32),HT(c,r),qi(c,r,C,b),r.child;case 6:return c===null&&R1(r),null;case 13:return _T(c,r,b);case 4:return J1(r,r.stateNode.containerInfo),W=r.pendingProps,c===null?r.child=zm(r,null,W,b):qi(c,r,W,b),r.child;case 11:return W=r.type,Y=r.pendingProps,Y=r.elementType===W?Y:qa(W,Y),ET(c,r,W,Y,b);case 7:return qi(c,r,r.pendingProps,b),r.child;case 8:return qi(c,r,r.pendingProps.children,b),r.child;case 12:return qi(c,r,r.pendingProps.children,b),r.child;case 10:t:{if(W=r.type._context,Y=r.pendingProps,I=r.memoizedProps,C=Y.value,Ql(ny,W._currentValue),W._currentValue=C,I!==null)if(et(I.value,C)){if(I.children===Y.children&&!Ws.current){r=wo(c,r,b);break t}}else for(I=r.child,I!==null&&(I.return=r);I!==null;){var A=I.dependencies;if(A!==null){C=I.child;for(var st=A.firstContext;st!==null;){if(st.context===W){if(I.tag===1){st=zo(-1,b&-b),st.tag=2;var wt=I.updateQueue;if(wt!==null){wt=wt.shared;var Jt=wt.pending;Jt===null?st.next=st:(st.next=Jt.next,Jt.next=st),wt.pending=st}}I.lanes|=b,st=I.alternate,st!==null&&(st.lanes|=b),O1(I.return,b,r),A.lanes|=b;break}st=st.next}}else if(I.tag===10)C=I.type===r.type?null:I.child;else if(I.tag===18){if(C=I.return,C===null)throw Error(e(341));C.lanes|=b,A=C.alternate,A!==null&&(A.lanes|=b),O1(C,b,r),C=I.sibling}else C=I.child;if(C!==null)C.return=I;else for(C=I;C!==null;){if(C===r){C=null;break}if(I=C.sibling,I!==null){I.return=C.return,C=I;break}C=C.return}I=C}qi(c,r,Y.children,b),r=r.child}return r;case 9:return Y=r.type,W=r.pendingProps.children,xm(r,b),Y=za(Y),W=W(Y),r.flags|=1,qi(c,r,W,b),r.child;case 14:return W=r.type,Y=qa(W,r.pendingProps),Y=qa(W.type,Y),vT(c,r,W,Y,b);case 15:return KT(c,r,r.type,r.pendingProps,b);case 17:return W=r.type,Y=r.pendingProps,Y=r.elementType===W?Y:qa(W,Y),Zy(c,r),r.tag=1,Ms(W)?(c=!0,_2(r)):c=!1,xm(r,b),DT(r,W,Y),tM(r,W,Y,b),iM(null,r,W,!0,c,b);case 19:return $T(c,r,b);case 22:return PT(c,r,b)}throw Error(e(156,r.tag))};function YV(c,r){return t0(c,r)}function RS(c,r,b,W){this.tag=c,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=W,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ga(c,r,b,W){return new RS(c,r,b,W)}function TM(c){return c=c.prototype,!(!c||!c.isReactComponent)}function kS(c){if(typeof c=="function")return TM(c)?1:0;if(c!=null){if(c=c.$$typeof,c===ht)return 11;if(c===Xt)return 14}return 2}function Pr(c,r){var b=c.alternate;return b===null?(b=ga(c.tag,r,c.key,c.mode),b.elementType=c.elementType,b.type=c.type,b.stateNode=c.stateNode,b.alternate=c,c.alternate=b):(b.pendingProps=r,b.type=c.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=c.flags&14680064,b.childLanes=c.childLanes,b.lanes=c.lanes,b.child=c.child,b.memoizedProps=c.memoizedProps,b.memoizedState=c.memoizedState,b.updateQueue=c.updateQueue,r=c.dependencies,b.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},b.sibling=c.sibling,b.index=c.index,b.ref=c.ref,b}function Ly(c,r,b,W,Y,I){var C=2;if(W=c,typeof c=="function")TM(c)&&(C=1);else if(typeof c=="string")C=5;else t:switch(c){case Q:return x0(b.children,Y,I,r);case it:C=8,Y|=8;break;case at:return c=ga(12,b,r,Y|2),c.elementType=at,c.lanes=I,c;case Tt:return c=ga(13,b,r,Y),c.elementType=Tt,c.lanes=I,c;case Zt:return c=ga(19,b,r,Y),c.elementType=Zt,c.lanes=I,c;case Rt:return Iy(b,Y,I,r);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case _:C=10;break t;case Wt:C=9;break t;case ht:C=11;break t;case Xt:C=14;break t;case St:C=16,W=null;break t}throw Error(e(130,c==null?c:typeof c,""))}return r=ga(C,b,r,Y),r.elementType=c,r.type=W,r.lanes=I,r}function x0(c,r,b,W){return c=ga(7,c,W,r),c.lanes=b,c}function Iy(c,r,b,W){return c=ga(22,c,W,r),c.elementType=Rt,c.lanes=b,c.stateNode={isHidden:!1},c}function VM(c,r,b){return c=ga(6,c,null,r),c.lanes=b,c}function LM(c,r,b){return r=ga(4,c.children!==null?c.children:[],c.key,r),r.lanes=b,r.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},r}function fS(c,r,b,W,Y){this.tag=r,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cs(0),this.expirationTimes=Cs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cs(0),this.identifierPrefix=W,this.onRecoverableError=Y,this.mutableSourceEagerHydrationData=null}function IM(c,r,b,W,Y,I,C,A,st){return c=new fS(c,r,b,A,st),r===1?(r=1,I===!0&&(r|=8)):r=0,I=ga(3,null,null,r),c.current=I,I.stateNode=c,I.memoizedState={element:W,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},F1(I),c}function DS(c,r,b){var W=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:W==null?null:""+W,children:c,containerInfo:r,implementation:b}}function TV(c){if(!c)return jr;c=c._reactInternals;t:{if(ci(c)!==c||c.tag!==1)throw Error(e(170));var r=c;do{switch(r.tag){case 3:r=r.stateNode.context;break t;case 1:if(Ms(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break t}}r=r.return}while(r!==null);throw Error(e(171))}if(c.tag===1){var b=c.type;if(Ms(b))return q5(c,b,r)}return r}function VV(c,r,b,W,Y,I,C,A,st){return c=IM(b,W,!0,c,Y,I,C,A,st),c.context=TV(null),b=c.current,W=$i(),Y=vr(b),I=zo(W,Y),I.callback=r??null,Fr(b,I,Y),c.current.lanes=Y,Ba(c,Y,W),Ys(c,W),c}function zy(c,r,b,W){var Y=r.current,I=$i(),C=vr(Y);return b=TV(b),r.context===null?r.context=b:r.pendingContext=b,r=zo(I,C),r.payload={element:c},W=W===void 0?null:W,W!==null&&(r.callback=W),c=Fr(Y,r,C),c!==null&&(ec(c,Y,C,I),sy(c,Y,C)),C}function wy(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return c.child.stateNode;default:return c.child.stateNode}}function LV(c,r){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var b=c.retryLane;c.retryLane=b!==0&&b<r?b:r}}function zM(c,r){LV(c,r),(c=c.alternate)&&LV(c,r)}function jS(){return null}var IV=typeof reportError=="function"?reportError:function(c){console.error(c)};function wM(c){this._internalRoot=c}xy.prototype.render=wM.prototype.render=function(c){var r=this._internalRoot;if(r===null)throw Error(e(409));zy(c,r,null,null)},xy.prototype.unmount=wM.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var r=c.containerInfo;I0(function(){zy(null,c,null,null)}),r[Yo]=null}};function xy(c){this._internalRoot=c}xy.prototype.unstable_scheduleHydration=function(c){if(c){var r=Rn();c={blockedOn:null,target:c,priority:r};for(var b=0;b<an.length&&r!==0&&r<an[b].priority;b++);an.splice(b,0,c),b===0&&om(c)}};function xM(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function gy(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11&&(c.nodeType!==8||c.nodeValue!==" react-mount-point-unstable "))}function zV(){}function OS(c,r,b,W,Y){if(Y){if(typeof W=="function"){var I=W;W=function(){var wt=wy(C);I.call(wt)}}var C=VV(r,W,c,0,null,!1,!1,"",zV);return c._reactRootContainer=C,c[Yo]=C.current,Sb(c.nodeType===8?c.parentNode:c),I0(),C}for(;Y=c.lastChild;)c.removeChild(Y);if(typeof W=="function"){var A=W;W=function(){var wt=wy(st);A.call(wt)}}var st=IM(c,0,!1,null,null,!1,!1,"",zV);return c._reactRootContainer=st,c[Yo]=st.current,Sb(c.nodeType===8?c.parentNode:c),I0(function(){zy(r,st,b,W)}),st}function Sy(c,r,b,W,Y){var I=b._reactRootContainer;if(I){var C=I;if(typeof Y=="function"){var A=Y;Y=function(){var st=wy(C);A.call(st)}}zy(r,C,c,Y)}else C=OS(b,r,c,Y,W);return wy(C)}Zo=function(c){switch(c.tag){case 3:var r=c.stateNode;if(r.current.memoizedState.isDehydrated){var b=ps(r.pendingLanes);b!==0&&(Ir(r,b|1),Ys(r,Ml()),!(Gl&6)&&(fm=Ml()+500,Or()))}break;case 13:I0(function(){var W=Io(c,1);if(W!==null){var Y=$i();ec(W,c,1,Y)}}),zM(c,1)}},Nn=function(c){if(c.tag===13){var r=Io(c,134217728);if(r!==null){var b=$i();ec(r,c,134217728,b)}zM(c,134217728)}},zl=function(c){if(c.tag===13){var r=vr(c),b=Io(c,r);if(b!==null){var W=$i();ec(b,c,r,W)}zM(c,r)}},Rn=function(){return Nl},Gi=function(c,r){var b=Nl;try{return Nl=c,r()}finally{Nl=b}},oe=function(c,r,b){switch(r){case"input":if(Pl(c,b),r=b.name,b.type==="radio"&&r!=null){for(b=c;b.parentNode;)b=b.parentNode;for(b=b.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<b.length;r++){var W=b[r];if(W!==c&&W.form===c.form){var Y=B2(W);if(!Y)throw Error(e(90));Oe(W),Pl(W,Y)}}}break;case"textarea":ee(c,b);break;case"select":r=b.value,r!=null&&Zn(c,!!b.multiple,r,!1)}},ce=GM,Ke=I0;var CS={usingClientEntryPoint:!1,Events:[fb,Xm,B2,nt,ft,GM]},Bb={findFiberByHostInstance:W0,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},FS={bundleType:Bb.bundleType,version:Bb.version,rendererPackageName:Bb.rendererPackageName,rendererConfig:Bb.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(c){return c=$d(c),c===null?null:c.stateNode},findFiberByHostInstance:Bb.findFiberByHostInstance||jS,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 Ry=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ry.isDisabled&&Ry.supportsFiber)try{el=Ry.inject(FS),il=Ry}catch{}}return Ts.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CS,Ts.createPortal=function(c,r){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xM(r))throw Error(e(200));return DS(c,r,null,b)},Ts.createRoot=function(c,r){if(!xM(c))throw Error(e(299));var b=!1,W="",Y=IV;return r!=null&&(r.unstable_strictMode===!0&&(b=!0),r.identifierPrefix!==void 0&&(W=r.identifierPrefix),r.onRecoverableError!==void 0&&(Y=r.onRecoverableError)),r=IM(c,1,!1,null,null,b,!1,W,Y),c[Yo]=r.current,Sb(c.nodeType===8?c.parentNode:c),new wM(r)},Ts.findDOMNode=function(c){if(c==null)return null;if(c.nodeType===1)return c;var r=c._reactInternals;if(r===void 0)throw typeof c.render=="function"?Error(e(188)):(c=Object.keys(c).join(","),Error(e(268,c)));return c=$d(r),c=c===null?null:c.stateNode,c},Ts.flushSync=function(c){return I0(c)},Ts.hydrate=function(c,r,b){if(!gy(r))throw Error(e(200));return Sy(null,c,r,!0,b)},Ts.hydrateRoot=function(c,r,b){if(!xM(c))throw Error(e(405));var W=b!=null&&b.hydratedSources||null,Y=!1,I="",C=IV;if(b!=null&&(b.unstable_strictMode===!0&&(Y=!0),b.identifierPrefix!==void 0&&(I=b.identifierPrefix),b.onRecoverableError!==void 0&&(C=b.onRecoverableError)),r=VV(r,null,c,1,b??null,Y,!1,I,C),c[Yo]=r.current,Sb(c),W)for(c=0;c<W.length;c++)b=W[c],Y=b._getVersion,Y=Y(b._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[b,Y]:r.mutableSourceEagerHydrationData.push(b,Y);return new xy(r)},Ts.render=function(c,r,b){if(!gy(r))throw Error(e(200));return Sy(null,c,r,!1,b)},Ts.unmountComponentAtNode=function(c){if(!gy(c))throw Error(e(40));return c._reactRootContainer?(I0(function(){Sy(null,null,c,!1,function(){c._reactRootContainer=null,c[Yo]=null})}),!0):!1},Ts.unstable_batchedUpdates=GM,Ts.unstable_renderSubtreeIntoContainer=function(c,r,b,W){if(!gy(b))throw Error(e(200));if(c==null||c._reactInternals===void 0)throw Error(e(38));return Sy(c,r,b,!1,W)},Ts.version="18.3.1-next-f1338f8080-20240426",Ts}var jV;function _S(){if(jV)return kM.exports;jV=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(t){console.error(t)}}return l(),kM.exports=AS(),kM.exports}var OV;function qS(){if(OV)return ky;OV=1;var l=_S();return ky.createRoot=l.createRoot,ky.hydrateRoot=l.hydrateRoot,ky}var $S=qS(),_b={},CV;function tR(){if(CV)return _b;CV=1,Object.defineProperty(_b,"__esModule",{value:!0}),_b.parse=a,_b.serialize=u;const l=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,e=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function a(p,y){const G=new s,X=p.length;if(X<2)return G;const z=(y==null?void 0:y.decode)||m;let L=0;do{const S=p.indexOf("=",L);if(S===-1)break;const R=p.indexOf(";",L),J=R===-1?X:R;if(S>J){L=p.lastIndexOf(";",S-1)+1;continue}const U=o(p,L,S),j=d(p,S,U),Q=p.slice(U,j);if(G[Q]===void 0){let it=o(p,S+1,J),at=d(p,J,it);const _=z(p.slice(it,at));G[Q]=_}L=J+1}while(L<X);return G}function o(p,y,G){do{const X=p.charCodeAt(y);if(X!==32&&X!==9)return y}while(++y<G);return G}function d(p,y,G){for(;y>G;){const X=p.charCodeAt(--y);if(X!==32&&X!==9)return y+1}return G}function u(p,y,G){const X=(G==null?void 0:G.encode)||encodeURIComponent;if(!l.test(p))throw new TypeError(`argument name is invalid: ${p}`);const z=X(y);if(!t.test(z))throw new TypeError(`argument val is invalid: ${y}`);let L=p+"="+z;if(!G)return L;if(G.maxAge!==void 0){if(!Number.isInteger(G.maxAge))throw new TypeError(`option maxAge is invalid: ${G.maxAge}`);L+="; Max-Age="+G.maxAge}if(G.domain){if(!e.test(G.domain))throw new TypeError(`option domain is invalid: ${G.domain}`);L+="; Domain="+G.domain}if(G.path){if(!n.test(G.path))throw new TypeError(`option path is invalid: ${G.path}`);L+="; Path="+G.path}if(G.expires){if(!Z(G.expires)||!Number.isFinite(G.expires.valueOf()))throw new TypeError(`option expires is invalid: ${G.expires}`);L+="; Expires="+G.expires.toUTCString()}if(G.httpOnly&&(L+="; HttpOnly"),G.secure&&(L+="; Secure"),G.partitioned&&(L+="; Partitioned"),G.priority)switch(typeof G.priority=="string"?G.priority.toLowerCase():void 0){case"low":L+="; Priority=Low";break;case"medium":L+="; Priority=Medium";break;case"high":L+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${G.priority}`)}if(G.sameSite)switch(typeof G.sameSite=="string"?G.sameSite.toLowerCase():G.sameSite){case!0:case"strict":L+="; SameSite=Strict";break;case"lax":L+="; SameSite=Lax";break;case"none":L+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${G.sameSite}`)}return L}function m(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch{return p}}function Z(p){return i.call(p)==="[object Date]"}return _b}tR();/**
* react-router v7.1.5
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var FV="popstate";function eR(l={}){function t(i,s){let{pathname:a="/",search:o="",hash:d=""}=$u(i.location.hash.substring(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),OG("",{pathname:a,search:o,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function e(i,s){let a=i.document.querySelector("base"),o="";if(a&&a.getAttribute("href")){let d=i.location.href,u=d.indexOf("#");o=u===-1?d:d.slice(0,u)}return o+"#"+(typeof s=="string"?s:xZ(s))}function n(i,s){Wc(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(s)})`)}return nR(t,e,n,l)}function Ln(l,t){if(l===!1||l===null||typeof l>"u")throw new Error(t)}function Wc(l,t){if(!l){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lR(){return Math.random().toString(36).substring(2,10)}function JV(l,t){return{usr:l.state,key:l.key,idx:t}}function OG(l,t,e=null,n){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof t=="string"?$u(t):t,state:e,key:t&&t.key||n||lR()}}function xZ({pathname:l="/",search:t="",hash:e=""}){return t&&t!=="?"&&(l+=t.charAt(0)==="?"?t:"?"+t),e&&e!=="#"&&(l+=e.charAt(0)==="#"?e:"#"+e),l}function $u(l){let t={};if(l){let e=l.indexOf("#");e>=0&&(t.hash=l.substring(e),l=l.substring(0,e));let n=l.indexOf("?");n>=0&&(t.search=l.substring(n),l=l.substring(0,n)),l&&(t.pathname=l)}return t}function nR(l,t,e,n={}){let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o="POP",d=null,u=m();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function m(){return(a.state||{idx:null}).idx}function Z(){o="POP";let z=m(),L=z==null?null:z-u;u=z,d&&d({action:o,location:X.location,delta:L})}function p(z,L){o="PUSH";let S=OG(X.location,z,L);e&&e(S,z),u=m()+1;let R=JV(S,u),J=X.createHref(S);try{a.pushState(R,"",J)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;i.location.assign(J)}s&&d&&d({action:o,location:X.location,delta:1})}function y(z,L){o="REPLACE";let S=OG(X.location,z,L);e&&e(S,z),u=m();let R=JV(S,u),J=X.createHref(S);a.replaceState(R,"",J),s&&d&&d({action:o,location:X.location,delta:0})}function G(z){let L=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof z=="string"?z:xZ(z);return S=S.replace(/ $/,"%20"),Ln(L,`No window.location.(origin|href) available to create URL for href: ${S}`),new URL(S,L)}let X={get action(){return o},get location(){return l(i,a)},listen(z){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(FV,Z),d=z,()=>{i.removeEventListener(FV,Z),d=null}},createHref(z){return t(i,z)},createURL:G,encodeLocation(z){let L=G(z);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:p,replace:y,go(z){return a.go(z)}};return X}function Iz(l,t,e="/"){return iR(l,t,e,!1)}function iR(l,t,e,n){let i=typeof t=="string"?$u(t):t,s=Cd(i.pathname||"/",e);if(s==null)return null;let a=zz(l);sR(a);let o=null;for(let d=0;o==null&&d<a.length;++d){let u=pR(s);o=bR(a[d],u,n)}return o}function zz(l,t=[],e=[],n=""){let i=(s,a,o)=>{let d={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};d.relativePath.startsWith("/")&&(Ln(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length));let u=Zr([n,d.relativePath]),m=e.concat(d);s.children&&s.children.length>0&&(Ln(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),zz(s.children,t,m,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:mR(u,s.index),routesMeta:m})};return l.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let d of wz(s.path))i(s,a,d)}),t}function wz(l){let t=l.split("/");if(t.length===0)return[];let[e,...n]=t,i=e.endsWith("?"),s=e.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let a=wz(n.join("/")),o=[];return o.push(...a.map(d=>d===""?s:[s,d].join("/"))),i&&o.push(...a),o.map(d=>l.startsWith("/")&&d===""?"/":d)}function sR(l){l.sort((t,e)=>t.score!==e.score?e.score-t.score:hR(t.routesMeta.map(n=>n.childrenIndex),e.routesMeta.map(n=>n.childrenIndex)))}var aR=/^:[\w-]+$/,cR=3,oR=2,rR=1,dR=10,uR=-2,UV=l=>l==="*";function mR(l,t){let e=l.split("/"),n=e.length;return e.some(UV)&&(n+=uR),t&&(n+=oR),e.filter(i=>!UV(i)).reduce((i,s)=>i+(aR.test(s)?cR:s===""?rR:dR),n)}function hR(l,t){return l.length===t.length&&l.slice(0,-1).every((n,i)=>n===t[i])?l[l.length-1]-t[t.length-1]:0}function bR(l,t,e=!1){let{routesMeta:n}=l,i={},s="/",a=[];for(let o=0;o<n.length;++o){let d=n[o],u=o===n.length-1,m=s==="/"?t:t.slice(s.length)||"/",Z=gZ({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},m),p=d.route;if(!Z&&u&&e&&!n[n.length-1].route.index&&(Z=gZ({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!Z)return null;Object.assign(i,Z.params),a.push({params:i,pathname:Zr([s,Z.pathname]),pathnameBase:MR(Zr([s,Z.pathnameBase])),route:p}),Z.pathnameBase!=="/"&&(s=Zr([s,Z.pathnameBase]))}return a}function gZ(l,t){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[e,n]=ZR(l.path,l.caseSensitive,l.end),i=t.match(e);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce((u,{paramName:m,isOptional:Z},p)=>{if(m==="*"){let G=o[p]||"";a=s.slice(0,s.length-G.length).replace(/(.)\/+$/,"$1")}const y=o[p];return Z&&!y?u[m]=void 0:u[m]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:l}}function ZR(l,t=!1,e=!0){Wc(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let n=[],i="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,d)=>(n.push({paramName:o,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(n.push({paramName:"*"}),i+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):e?i+="\\/*$":l!==""&&l!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function pR(l){try{return l.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wc(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),l}}function Cd(l,t){if(t==="/")return l;if(!l.toLowerCase().startsWith(t.toLowerCase()))return null;let e=t.endsWith("/")?t.length-1:t.length,n=l.charAt(e);return n&&n!=="/"?null:l.slice(e)||"/"}function yR(l,t="/"){let{pathname:e,search:n="",hash:i=""}=typeof l=="string"?$u(l):l;return{pathname:e?e.startsWith("/")?e:NR(e,t):t,search:GR(n),hash:XR(i)}}function NR(l,t){let e=t.replace(/\/+$/,"").split("/");return l.split("/").forEach(i=>{i===".."?e.length>1&&e.pop():i!=="."&&e.push(i)}),e.length>1?e.join("/"):"/"}function jM(l,t,e,n){return`Cannot include a '${l}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${e}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function WR(l){return l.filter((t,e)=>e===0||t.route.path&&t.route.path.length>0)}function xz(l){let t=WR(l);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function gz(l,t,e,n=!1){let i;typeof l=="string"?i=$u(l):(i={...l},Ln(!i.pathname||!i.pathname.includes("?"),jM("?","pathname","search",i)),Ln(!i.pathname||!i.pathname.includes("#"),jM("#","pathname","hash",i)),Ln(!i.search||!i.search.includes("#"),jM("#","search","hash",i)));let s=l===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=e;else{let Z=t.length-1;if(!n&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),Z-=1;i.pathname=p.join("/")}o=Z>=0?t[Z]:"/"}let d=yR(i,o),u=a&&a!=="/"&&a.endsWith("/"),m=(s||a===".")&&e.endsWith("/");return!d.pathname.endsWith("/")&&(u||m)&&(d.pathname+="/"),d}var Zr=l=>l.join("/").replace(/\/\/+/g,"/"),MR=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),GR=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,XR=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function YR(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Sz=["POST","PUT","PATCH","DELETE"];new Set(Sz);var TR=["GET",...Sz];new Set(TR);var yb=v.createContext(null);yb.displayName="DataRouter";var UW=v.createContext(null);UW.displayName="DataRouterState";var Rz=v.createContext({isTransitioning:!1});Rz.displayName="ViewTransition";var VR=v.createContext(new Map);VR.displayName="Fetchers";var LR=v.createContext(null);LR.displayName="Await";var co=v.createContext(null);co.displayName="Navigation";var b2=v.createContext(null);b2.displayName="Location";var Yc=v.createContext({outlet:null,matches:[],isDataRoute:!1});Yc.displayName="Route";var OY=v.createContext(null);OY.displayName="RouteError";function IR(l,{relative:t}={}){Ln(Z2(),"useHref() may be used only in the context of a <Router> component.");let{basename:e,navigator:n}=v.useContext(co),{hash:i,pathname:s,search:a}=p2(l,{relative:t}),o=s;return e!=="/"&&(o=s==="/"?e:Zr([e,s])),n.createHref({pathname:o,search:a,hash:i})}function Z2(){return v.useContext(b2)!=null}function Qd(){return Ln(Z2(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(b2).location}var kz="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fz(l){v.useContext(co).static||v.useLayoutEffect(l)}function CY(){let{isDataRoute:l}=v.useContext(Yc);return l?ER():zR()}function zR(){Ln(Z2(),"useNavigate() may be used only in the context of a <Router> component.");let l=v.useContext(yb),{basename:t,navigator:e}=v.useContext(co),{matches:n}=v.useContext(Yc),{pathname:i}=Qd(),s=JSON.stringify(xz(n)),a=v.useRef(!1);return fz(()=>{a.current=!0}),v.useCallback((d,u={})=>{if(Wc(a.current,kz),!a.current)return;if(typeof d=="number"){e.go(d);return}let m=gz(d,JSON.parse(s),i,u.relative==="path");l==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Zr([t,m.pathname])),(u.replace?e.replace:e.push)(m,u.state,u)},[t,e,s,i,l])}var wR=v.createContext(null);function xR(l){let t=v.useContext(Yc).outlet;return t&&v.createElement(wR.Provider,{value:l},t)}function gR(){let{matches:l}=v.useContext(Yc),t=l[l.length-1];return t?t.params:{}}function p2(l,{relative:t}={}){let{matches:e}=v.useContext(Yc),{pathname:n}=Qd(),i=JSON.stringify(xz(e));return v.useMemo(()=>gz(l,JSON.parse(i),n,t==="path"),[l,i,n,t])}function SR(l,t){return Dz(l,t)}function Dz(l,t,e,n){var S;Ln(Z2(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:s}=v.useContext(co),{matches:a}=v.useContext(Yc),o=a[a.length-1],d=o?o.params:{},u=o?o.pathname:"/",m=o?o.pathnameBase:"/",Z=o&&o.route;{let R=Z&&Z.path||"";jz(u,!Z||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let p=Qd(),y;if(t){let R=typeof t=="string"?$u(t):t;Ln(m==="/"||((S=R.pathname)==null?void 0:S.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${R.pathname}" was given in the \`location\` prop.`),y=R}else y=p;let G=y.pathname||"/",X=G;if(m!=="/"){let R=m.replace(/^\//,"").split("/");X="/"+G.replace(/^\//,"").split("/").slice(R.length).join("/")}let z=!s&&e&&e.matches&&e.matches.length>0?e.matches:Iz(l,{pathname:X});Wc(Z||z!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Wc(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let L=jR(z&&z.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:Zr([m,i.encodeLocation?i.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?m:Zr([m,i.encodeLocation?i.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),a,e,n);return t&&L?v.createElement(b2.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},L):L}function RR(){let l=UR(),t=YR(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),e=l instanceof Error?l.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",l),a=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:s},"ErrorBoundary")," or"," ",v.createElement("code",{style:s},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),e?v.createElement("pre",{style:i},e):null,a)}var kR=v.createElement(RR,null),fR=class extends v.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,t){return t.location!==l.location||t.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:t.error,location:t.location,revalidation:l.revalidation||t.revalidation}}componentDidCatch(l,t){console.error("React Router caught the following error during render",l,t)}render(){return this.state.error!==void 0?v.createElement(Yc.Provider,{value:this.props.routeContext},v.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function DR({routeContext:l,match:t,children:e}){let n=v.useContext(yb);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(Yc.Provider,{value:l},e)}function jR(l,t=[],e=null,n=null){if(l==null){if(!e)return null;if(e.errors)l=e.matches;else if(t.length===0&&!e.initialized&&e.matches.length>0)l=e.matches;else return null}let i=l,s=e==null?void 0:e.errors;if(s!=null){let d=i.findIndex(u=>u.route.id&&(s==null?void 0:s[u.route.id])!==void 0);Ln(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let a=!1,o=-1;if(e)for(let d=0;d<i.length;d++){let u=i[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=d),u.route.id){let{loaderData:m,errors:Z}=e,p=u.route.loader&&!m.hasOwnProperty(u.route.id)&&(!Z||Z[u.route.id]===void 0);if(u.route.lazy||p){a=!0,o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}return i.reduceRight((d,u,m)=>{let Z,p=!1,y=null,G=null;e&&(Z=s&&u.route.id?s[u.route.id]:void 0,y=u.route.errorElement||kR,a&&(o<0&&m===0?(jz("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,G=null):o===m&&(p=!0,G=u.route.hydrateFallbackElement||null)));let X=t.concat(i.slice(0,m+1)),z=()=>{let L;return Z?L=y:p?L=G:u.route.Component?L=v.createElement(u.route.Component,null):u.route.element?L=u.route.element:L=d,v.createElement(DR,{match:u,routeContext:{outlet:d,matches:X,isDataRoute:e!=null},children:L})};return e&&(u.route.ErrorBoundary||u.route.errorElement||m===0)?v.createElement(fR,{location:e.location,revalidation:e.revalidation,component:y,error:Z,children:z(),routeContext:{outlet:null,matches:X,isDataRoute:!0}}):z()},null)}function FY(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function OR(l){let t=v.useContext(yb);return Ln(t,FY(l)),t}function CR(l){let t=v.useContext(UW);return Ln(t,FY(l)),t}function FR(l){let t=v.useContext(Yc);return Ln(t,FY(l)),t}function JY(l){let t=FR(l),e=t.matches[t.matches.length-1];return Ln(e.route.id,`${l} can only be used on routes that contain a unique "id"`),e.route.id}function JR(){return JY("useRouteId")}function UR(){var n;let l=v.useContext(OY),t=CR("useRouteError"),e=JY("useRouteError");return l!==void 0?l:(n=t.errors)==null?void 0:n[e]}function ER(){let{router:l}=OR("useNavigate"),t=JY("useNavigate"),e=v.useRef(!1);return fz(()=>{e.current=!0}),v.useCallback(async(i,s={})=>{Wc(e.current,kz),e.current&&(typeof i=="number"?l.navigate(i):await l.navigate(i,{fromRouteId:t,...s}))},[l,t])}var EV={};function jz(l,t,e){!t&&!EV[l]&&(EV[l]=!0,Wc(!1,e))}v.memo(vR);function vR({routes:l,future:t,state:e}){return Dz(l,void 0,e,t)}function KR(l){return xR(l.context)}function mN(l){Ln(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function PR({basename:l="/",children:t=null,location:e,navigationType:n="POP",navigator:i,static:s=!1}){Ln(!Z2(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=l.replace(/^\/*/,"/"),o=v.useMemo(()=>({basename:a,navigator:i,static:s,future:{}}),[a,i,s]);typeof e=="string"&&(e=$u(e));let{pathname:d="/",search:u="",hash:m="",state:Z=null,key:p="default"}=e,y=v.useMemo(()=>{let G=Cd(d,a);return G==null?null:{location:{pathname:G,search:u,hash:m,state:Z,key:p},navigationType:n}},[a,d,u,m,Z,p,n]);return Wc(y!=null,`<Router basename="${a}"> is not able to match the URL "${d}${u}${m}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:v.createElement(co.Provider,{value:o},v.createElement(b2.Provider,{children:t,value:y}))}function HR({children:l,location:t}){return SR(CG(l),t)}function CG(l,t=[]){let e=[];return v.Children.forEach(l,(n,i)=>{if(!v.isValidElement(n))return;let s=[...t,i];if(n.type===v.Fragment){e.push.apply(e,CG(n.props.children,s));return}Ln(n.type===mN,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ln(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=CG(n.props.children,s)),e.push(a)}),e}var hN="get",bN="application/x-www-form-urlencoded";function EW(l){return l!=null&&typeof l.tagName=="string"}function QR(l){return EW(l)&&l.tagName.toLowerCase()==="button"}function BR(l){return EW(l)&&l.tagName.toLowerCase()==="form"}function AR(l){return EW(l)&&l.tagName.toLowerCase()==="input"}function _R(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function qR(l,t){return l.button===0&&(!t||t==="_self")&&!_R(l)}var fy=null;function $R(){if(fy===null)try{new FormData(document.createElement("form"),0),fy=!1}catch{fy=!0}return fy}var tk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function OM(l){return l!=null&&!tk.has(l)?(Wc(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bN}"`),null):l}function ek(l,t){let e,n,i,s,a;if(BR(l)){let o=l.getAttribute("action");n=o?Cd(o,t):null,e=l.getAttribute("method")||hN,i=OM(l.getAttribute("enctype"))||bN,s=new FormData(l)}else if(QR(l)||AR(l)&&(l.type==="submit"||l.type==="image")){let o=l.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=l.getAttribute("formaction")||o.getAttribute("action");if(n=d?Cd(d,t):null,e=l.getAttribute("formmethod")||o.getAttribute("method")||hN,i=OM(l.getAttribute("formenctype"))||OM(o.getAttribute("enctype"))||bN,s=new FormData(o,l),!$R()){let{name:u,type:m,value:Z}=l;if(m==="image"){let p=u?`${u}.`:"";s.append(`${p}x`,"0"),s.append(`${p}y`,"0")}else u&&s.append(u,Z)}}else{if(EW(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');e=hN,n=null,i=bN,a=l}return s&&i==="text/plain"&&(a=s,s=void 0),{action:n,method:e.toLowerCase(),encType:i,formData:s,body:a}}function UY(l,t){if(l===!1||l===null||typeof l>"u")throw new Error(t)}async function lk(l,t){if(l.id in t)return t[l.id];try{let e=await import(l.module);return t[l.id]=e,e}catch(e){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(e),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nk(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function ik(l,t,e){let n=await Promise.all(l.map(async i=>{let s=t.routes[i.route.id];if(s){let a=await lk(s,e);return a.links?a.links():[]}return[]}));return ok(n.flat(1).filter(nk).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function vV(l,t,e,n,i,s){let a=(d,u)=>e[u]?d.route.id!==e[u].route.id:!0,o=(d,u)=>{var m;return e[u].pathname!==d.pathname||((m=e[u].route.path)==null?void 0:m.endsWith("*"))&&e[u].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,u)=>a(d,u)||o(d,u)):s==="data"?t.filter((d,u)=>{var Z;let m=n.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(a(d,u)||o(d,u))return!0;if(d.route.shouldRevalidate){let p=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((Z=e[0])==null?void 0:Z.params)||{},nextUrl:new URL(l,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function sk(l,t){return ak(l.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let i=[n.module];return n.imports&&(i=i.concat(n.imports)),i}).flat(1))}function ak(l){return[...new Set(l)]}function ck(l){let t={},e=Object.keys(l).sort();for(let n of e)t[n]=l[n];return t}function ok(l,t){let e=new Set;return new Set(t),l.reduce((n,i)=>{let s=JSON.stringify(ck(i));return e.has(s)||(e.add(s),n.push({key:s,link:i})),n},[])}function rk(l){let t=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function dk(){let l=v.useContext(yb);return UY(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function uk(){let l=v.useContext(UW);return UY(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var EY=v.createContext(void 0);EY.displayName="FrameworkContext";function Oz(){let l=v.useContext(EY);return UY(l,"You must render this element inside a <HydratedRouter> element"),l}function mk(l,t){let e=v.useContext(EY),[n,i]=v.useState(!1),[s,a]=v.useState(!1),{onFocus:o,onBlur:d,onMouseEnter:u,onMouseLeave:m,onTouchStart:Z}=t,p=v.useRef(null);v.useEffect(()=>{if(l==="render"&&a(!0),l==="viewport"){let X=L=>{L.forEach(S=>{a(S.isIntersecting)})},z=new IntersectionObserver(X,{threshold:.5});return p.current&&z.observe(p.current),()=>{z.disconnect()}}},[l]),v.useEffect(()=>{if(n){let X=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(X)}}},[n]);let y=()=>{i(!0)},G=()=>{i(!1),a(!1)};return e?l!=="intent"?[s,p,{}]:[s,p,{onFocus:qb(o,y),onBlur:qb(d,G),onMouseEnter:qb(u,y),onMouseLeave:qb(m,G),onTouchStart:qb(Z,y)}]:[!1,p,{}]}function qb(l,t){return e=>{l&&l(e),e.defaultPrevented||t(e)}}function hk({page:l,...t}){let{router:e}=dk(),n=v.useMemo(()=>Iz(e.routes,l,e.basename),[e.routes,l,e.basename]);return n?v.createElement(Zk,{page:l,matches:n,...t}):null}function bk(l){let{manifest:t,routeModules:e}=Oz(),[n,i]=v.useState([]);return v.useEffect(()=>{let s=!1;return ik(l,t,e).then(a=>{s||i(a)}),()=>{s=!0}},[l,t,e]),n}function Zk({page:l,matches:t,...e}){let n=Qd(),{manifest:i,routeModules:s}=Oz(),{loaderData:a,matches:o}=uk(),d=v.useMemo(()=>vV(l,t,o,i,n,"data"),[l,t,o,i,n]),u=v.useMemo(()=>vV(l,t,o,i,n,"assets"),[l,t,o,i,n]),m=v.useMemo(()=>{if(l===n.pathname+n.search+n.hash)return[];let y=new Set,G=!1;if(t.forEach(z=>{var S;let L=i.routes[z.route.id];!L||!L.hasLoader||(!d.some(R=>R.route.id===z.route.id)&&z.route.id in a&&((S=s[z.route.id])!=null&&S.shouldRevalidate)||L.hasClientLoader?G=!0:y.add(z.route.id))}),y.size===0)return[];let X=rk(l);return G&&y.size>0&&X.searchParams.set("_routes",t.filter(z=>y.has(z.route.id)).map(z=>z.route.id).join(",")),[X.pathname+X.search]},[a,n,i,d,t,l,s]),Z=v.useMemo(()=>sk(u,i),[u,i]),p=bk(u);return v.createElement(v.Fragment,null,m.map(y=>v.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...e})),Z.map(y=>v.createElement("link",{key:y,rel:"modulepreload",href:y,...e})),p.map(({key:y,link:G})=>v.createElement("link",{key:y,...G})))}function pk(...l){return t=>{l.forEach(e=>{typeof e=="function"?e(t):e!=null&&(e.current=t)})}}var Cz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Cz&&(window.__reactRouterVersion="7.1.5")}catch{}function yk({basename:l,children:t,window:e}){let n=v.useRef();n.current==null&&(n.current=eR({window:e,v5Compat:!0}));let i=n.current,[s,a]=v.useState({action:i.action,location:i.location}),o=v.useCallback(d=>{v.startTransition(()=>a(d))},[a]);return v.useLayoutEffect(()=>i.listen(o),[i,o]),v.createElement(PR,{basename:l,children:t,location:s.location,navigationType:s.action,navigator:i})}var Fz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jz=v.forwardRef(function({onClick:t,discover:e="render",prefetch:n="none",relative:i,reloadDocument:s,replace:a,state:o,target:d,to:u,preventScrollReset:m,viewTransition:Z,...p},y){let{basename:G}=v.useContext(co),X=typeof u=="string"&&Fz.test(u),z,L=!1;if(typeof u=="string"&&X&&(z=u,Cz))try{let at=new URL(window.location.href),_=u.startsWith("//")?new URL(at.protocol+u):new URL(u),Wt=Cd(_.pathname,G);_.origin===at.origin&&Wt!=null?u=Wt+_.search+_.hash:L=!0}catch{Wc(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=IR(u,{relative:i}),[R,J,U]=mk(n,p),j=Gk(u,{replace:a,state:o,target:d,preventScrollReset:m,relative:i,viewTransition:Z});function Q(at){t&&t(at),at.defaultPrevented||j(at)}let it=v.createElement("a",{...p,...U,href:z||S,onClick:L||s?t:Q,ref:pk(y,J),target:d,"data-discover":!X&&e==="render"?"true":void 0});return R&&!X?v.createElement(v.Fragment,null,it,v.createElement(hk,{page:S})):it});Jz.displayName="Link";var Nk=v.forwardRef(function({"aria-current":t="page",caseSensitive:e=!1,className:n="",end:i=!1,style:s,to:a,viewTransition:o,children:d,...u},m){let Z=p2(a,{relative:u.relative}),p=Qd(),y=v.useContext(UW),{navigator:G,basename:X}=v.useContext(co),z=y!=null&&Lk(Z)&&o===!0,L=G.encodeLocation?G.encodeLocation(Z).pathname:Z.pathname,S=p.pathname,R=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;e||(S=S.toLowerCase(),R=R?R.toLowerCase():null,L=L.toLowerCase()),R&&X&&(R=Cd(R,X)||R);const J=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let U=S===L||!i&&S.startsWith(L)&&S.charAt(J)==="/",j=R!=null&&(R===L||!i&&R.startsWith(L)&&R.charAt(L.length)==="/"),Q={isActive:U,isPending:j,isTransitioning:z},it=U?t:void 0,at;typeof n=="function"?at=n(Q):at=[n,U?"active":null,j?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let _=typeof s=="function"?s(Q):s;return v.createElement(Jz,{...u,"aria-current":it,className:at,ref:m,style:_,to:a,viewTransition:o},typeof d=="function"?d(Q):d)});Nk.displayName="NavLink";var Wk=v.forwardRef(({discover:l="render",fetcherKey:t,navigate:e,reloadDocument:n,replace:i,state:s,method:a=hN,action:o,onSubmit:d,relative:u,preventScrollReset:m,viewTransition:Z,...p},y)=>{let G=Tk(),X=Vk(o,{relative:u}),z=a.toLowerCase()==="get"?"get":"post",L=typeof o=="string"&&Fz.test(o),S=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let J=R.nativeEvent.submitter,U=(J==null?void 0:J.getAttribute("formmethod"))||a;G(J||R.currentTarget,{fetcherKey:t,method:U,navigate:e,replace:i,state:s,relative:u,preventScrollReset:m,viewTransition:Z})};return v.createElement("form",{ref:y,method:z,action:X,onSubmit:n?d:S,...p,"data-discover":!L&&l==="render"?"true":void 0})});Wk.displayName="Form";function Mk(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uz(l){let t=v.useContext(yb);return Ln(t,Mk(l)),t}function Gk(l,{target:t,replace:e,state:n,preventScrollReset:i,relative:s,viewTransition:a}={}){let o=CY(),d=Qd(),u=p2(l,{relative:s});return v.useCallback(m=>{if(qR(m,t)){m.preventDefault();let Z=e!==void 0?e:xZ(d)===xZ(u);o(l,{replace:Z,state:n,preventScrollReset:i,relative:s,viewTransition:a})}},[d,o,u,e,n,t,l,i,s,a])}var Xk=0,Yk=()=>`__${String(++Xk)}__`;function Tk(){let{router:l}=Uz("useSubmit"),{basename:t}=v.useContext(co),e=JR();return v.useCallback(async(n,i={})=>{let{action:s,method:a,encType:o,formData:d,body:u}=ek(n,t);if(i.navigate===!1){let m=i.fetcherKey||Yk();await l.fetch(m,e,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||a,formEncType:i.encType||o,flushSync:i.flushSync})}else await l.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||a,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:e,flushSync:i.flushSync,viewTransition:i.viewTransition})},[l,t,e])}function Vk(l,{relative:t}={}){let{basename:e}=v.useContext(co),n=v.useContext(Yc);Ln(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),s={...p2(l||".",{relative:t})},a=Qd();if(l==null){s.search=a.search;let o=new URLSearchParams(s.search),d=o.getAll("index");if(d.some(m=>m==="")){o.delete("index"),d.filter(Z=>Z).forEach(Z=>o.append("index",Z));let m=o.toString();s.search=m?`?${m}`:""}}return(!l||l===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),e!=="/"&&(s.pathname=s.pathname==="/"?e:Zr([e,s.pathname])),xZ(s)}function Lk(l,t={}){let e=v.useContext(Rz);Ln(e!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Uz("useViewTransitionState"),i=p2(l,{relative:t.relative});if(!e.isTransitioning)return!1;let s=Cd(e.currentLocation.pathname,n)||e.currentLocation.pathname,a=Cd(e.nextLocation.pathname,n)||e.nextLocation.pathname;return gZ(i.pathname,a)!=null||gZ(i.pathname,s)!=null}new TextEncoder;const Ez={light:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(98% 0 0)","--color-base-300":"oklch(95% 0 0)","--color-base-content":"oklch(21% 0.006 285.885)","--color-primary":"oklch(45% 0.24 277.023)","--color-primary-content":"oklch(93% 0.034 272.788)","--color-secondary":"oklch(65% 0.241 354.308)","--color-secondary-content":"oklch(94% 0.028 342.258)","--color-accent":"oklch(77% 0.152 181.912)","--color-accent-content":"oklch(38% 0.063 188.416)","--color-neutral":"oklch(14% 0.005 285.823)","--color-neutral-content":"oklch(92% 0.004 286.32)","--color-info":"oklch(74% 0.16 232.661)","--color-info-content":"oklch(29% 0.066 243.157)","--color-success":"oklch(76% 0.177 163.223)","--color-success-content":"oklch(37% 0.077 168.94)","--color-warning":"oklch(82% 0.189 84.429)","--color-warning-content":"oklch(41% 0.112 45.904)","--color-error":"oklch(71% 0.194 13.428)","--color-error-content":"oklch(27% 0.105 12.094)","--radius-selector":"0.5rem","--radius-field":"0.25rem","--radius-box":"0.5rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},cyberpunk:{"color-scheme":"light","--color-base-100":"oklch(94.51% 0.179 104.32)","--color-base-200":"oklch(91.51% 0.179 104.32)","--color-base-300":"oklch(85.51% 0.179 104.32)","--color-base-content":"oklch(0% 0 0)","--color-primary":"oklch(74.22% 0.209 6.35)","--color-primary-content":"oklch(14.844% 0.041 6.35)","--color-secondary":"oklch(83.33% 0.184 204.72)","--color-secondary-content":"oklch(16.666% 0.036 204.72)","--color-accent":"oklch(71.86% 0.217 310.43)","--color-accent-content":"oklch(14.372% 0.043 310.43)","--color-neutral":"oklch(23.04% 0.065 269.31)","--color-neutral-content":"oklch(94.51% 0.179 104.32)","--color-info":"oklch(72.06% 0.191 231.6)","--color-info-content":"oklch(0% 0 0)","--color-success":"oklch(64.8% 0.15 160)","--color-success-content":"oklch(0% 0 0)","--color-warning":"oklch(84.71% 0.199 83.87)","--color-warning-content":"oklch(0% 0 0)","--color-error":"oklch(71.76% 0.221 22.18)","--color-error-content":"oklch(0% 0 0)","--radius-selector":"0rem","--radius-field":"0rem","--radius-box":"0rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},business:{"color-scheme":"dark","--color-base-100":"oklch(24.353% 0 0)","--color-base-200":"oklch(22.648% 0 0)","--color-base-300":"oklch(20.944% 0 0)","--color-base-content":"oklch(84.87% 0 0)","--color-primary":"oklch(41.703% 0.099 251.473)","--color-primary-content":"oklch(88.34% 0.019 251.473)","--color-secondary":"oklch(64.092% 0.027 229.389)","--color-secondary-content":"oklch(12.818% 0.005 229.389)","--color-accent":"oklch(67.271% 0.167 35.791)","--color-accent-content":"oklch(13.454% 0.033 35.791)","--color-neutral":"oklch(27.441% 0.013 253.041)","--color-neutral-content":"oklch(85.488% 0.002 253.041)","--color-info":"oklch(62.616% 0.143 240.033)","--color-info-content":"oklch(12.523% 0.028 240.033)","--color-success":"oklch(70.226% 0.094 156.596)","--color-success-content":"oklch(14.045% 0.018 156.596)","--color-warning":"oklch(77.482% 0.115 81.519)","--color-warning-content":"oklch(15.496% 0.023 81.519)","--color-error":"oklch(51.61% 0.146 29.674)","--color-error-content":"oklch(90.322% 0.029 29.674)","--radius-selector":"0rem","--radius-field":"0.25rem","--radius-box":"0.25rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},forest:{"color-scheme":"dark","--color-base-100":"oklch(20.84% 0.008 17.911)","--color-base-200":"oklch(18.522% 0.007 17.911)","--color-base-300":"oklch(16.203% 0.007 17.911)","--color-base-content":"oklch(83.768% 0.001 17.911)","--color-primary":"oklch(68.628% 0.185 148.958)","--color-primary-content":"oklch(0% 0 0)","--color-secondary":"oklch(69.776% 0.135 168.327)","--color-secondary-content":"oklch(13.955% 0.027 168.327)","--color-accent":"oklch(70.628% 0.119 185.713)","--color-accent-content":"oklch(14.125% 0.023 185.713)","--color-neutral":"oklch(30.698% 0.039 171.364)","--color-neutral-content":"oklch(86.139% 0.007 171.364)","--color-info":"oklch(72.06% 0.191 231.6)","--color-info-content":"oklch(0% 0 0)","--color-success":"oklch(64.8% 0.15 160)","--color-success-content":"oklch(0% 0 0)","--color-warning":"oklch(84.71% 0.199 83.87)","--color-warning-content":"oklch(0% 0 0)","--color-error":"oklch(71.76% 0.221 22.18)","--color-error-content":"oklch(0% 0 0)","--radius-selector":"1rem","--radius-field":"2rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},acid:{"color-scheme":"light","--color-base-100":"oklch(98% 0 0)","--color-base-200":"oklch(95% 0 0)","--color-base-300":"oklch(91% 0 0)","--color-base-content":"oklch(0% 0 0)","--color-primary":"oklch(71.9% 0.357 330.759)","--color-primary-content":"oklch(14.38% 0.071 330.759)","--color-secondary":"oklch(73.37% 0.224 48.25)","--color-secondary-content":"oklch(14.674% 0.044 48.25)","--color-accent":"oklch(92.78% 0.264 122.962)","--color-accent-content":"oklch(18.556% 0.052 122.962)","--color-neutral":"oklch(21.31% 0.128 278.68)","--color-neutral-content":"oklch(84.262% 0.025 278.68)","--color-info":"oklch(60.72% 0.227 252.05)","--color-info-content":"oklch(12.144% 0.045 252.05)","--color-success":"oklch(85.72% 0.266 158.53)","--color-success-content":"oklch(17.144% 0.053 158.53)","--color-warning":"oklch(91.01% 0.212 100.5)","--color-warning-content":"oklch(18.202% 0.042 100.5)","--color-error":"oklch(64.84% 0.293 29.349)","--color-error-content":"oklch(12.968% 0.058 29.349)","--radius-selector":"1rem","--radius-field":"1rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},nord:{"color-scheme":"light","--color-base-100":"oklch(95.127% 0.007 260.731)","--color-base-200":"oklch(93.299% 0.01 261.788)","--color-base-300":"oklch(89.925% 0.016 262.749)","--color-base-content":"oklch(32.437% 0.022 264.182)","--color-primary":"oklch(59.435% 0.077 254.027)","--color-primary-content":"oklch(11.887% 0.015 254.027)","--color-secondary":"oklch(69.651% 0.059 248.687)","--color-secondary-content":"oklch(13.93% 0.011 248.687)","--color-accent":"oklch(77.464% 0.062 217.469)","--color-accent-content":"oklch(15.492% 0.012 217.469)","--color-neutral":"oklch(45.229% 0.035 264.131)","--color-neutral-content":"oklch(89.925% 0.016 262.749)","--color-info":"oklch(69.207% 0.062 332.664)","--color-info-content":"oklch(13.841% 0.012 332.664)","--color-success":"oklch(76.827% 0.074 131.063)","--color-success-content":"oklch(15.365% 0.014 131.063)","--color-warning":"oklch(85.486% 0.089 84.093)","--color-warning-content":"oklch(17.097% 0.017 84.093)","--color-error":"oklch(60.61% 0.12 15.341)","--color-error-content":"oklch(12.122% 0.024 15.341)","--radius-selector":"1rem","--radius-field":"0.25rem","--radius-box":"0.5rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},abyss:{"color-scheme":"dark","--color-base-100":"oklch(20% 0.08 209)","--color-base-200":"oklch(15% 0.08 209)","--color-base-300":"oklch(10% 0.08 209)","--color-base-content":"oklch(90% 0.076 70.697)","--color-primary":"oklch(92% 0.2653 125)","--color-primary-content":"oklch(50% 0.2653 125)","--color-secondary":"oklch(83.27% 0.0764 298.3)","--color-secondary-content":"oklch(43.27% 0.0764 298.3)","--color-accent":"oklch(43% 0 0)","--color-accent-content":"oklch(98% 0 0)","--color-neutral":"oklch(30% 0.08 209)","--color-neutral-content":"oklch(90% 0.076 70.697)","--color-info":"oklch(74% 0.16 232.661)","--color-info-content":"oklch(29% 0.066 243.157)","--color-success":"oklch(79% 0.209 151.711)","--color-success-content":"oklch(26% 0.065 152.934)","--color-warning":"oklch(84.8% 0.1962 84.62)","--color-warning-content":"oklch(44.8% 0.1962 84.62)","--color-error":"oklch(65% 0.1985 24.22)","--color-error-content":"oklch(27% 0.1985 24.22)","--radius-selector":"2rem","--radius-field":"0.25rem","--radius-box":"0.5rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},dim:{"color-scheme":"dark","--color-base-100":"oklch(30.857% 0.023 264.149)","--color-base-200":"oklch(28.036% 0.019 264.182)","--color-base-300":"oklch(26.346% 0.018 262.177)","--color-base-content":"oklch(82.901% 0.031 222.959)","--color-primary":"oklch(86.133% 0.141 139.549)","--color-primary-content":"oklch(17.226% 0.028 139.549)","--color-secondary":"oklch(73.375% 0.165 35.353)","--color-secondary-content":"oklch(14.675% 0.033 35.353)","--color-accent":"oklch(74.229% 0.133 311.379)","--color-accent-content":"oklch(14.845% 0.026 311.379)","--color-neutral":"oklch(24.731% 0.02 264.094)","--color-neutral-content":"oklch(82.901% 0.031 222.959)","--color-info":"oklch(86.078% 0.142 206.182)","--color-info-content":"oklch(17.215% 0.028 206.182)","--color-success":"oklch(86.171% 0.142 166.534)","--color-success-content":"oklch(17.234% 0.028 166.534)","--color-warning":"oklch(86.163% 0.142 94.818)","--color-warning-content":"oklch(17.232% 0.028 94.818)","--color-error":"oklch(82.418% 0.099 33.756)","--color-error-content":"oklch(16.483% 0.019 33.756)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},retro:{"color-scheme":"light","--color-base-100":"oklch(91.637% 0.034 90.515)","--color-base-200":"oklch(88.272% 0.049 91.774)","--color-base-300":"oklch(84.133% 0.065 90.856)","--color-base-content":"oklch(41% 0.112 45.904)","--color-primary":"oklch(80% 0.114 19.571)","--color-primary-content":"oklch(39% 0.141 25.723)","--color-secondary":"oklch(92% 0.084 155.995)","--color-secondary-content":"oklch(44% 0.119 151.328)","--color-accent":"oklch(68% 0.162 75.834)","--color-accent-content":"oklch(41% 0.112 45.904)","--color-neutral":"oklch(44% 0.011 73.639)","--color-neutral-content":"oklch(86% 0.005 56.366)","--color-info":"oklch(58% 0.158 241.966)","--color-info-content":"oklch(96% 0.059 95.617)","--color-success":"oklch(51% 0.096 186.391)","--color-success-content":"oklch(96% 0.059 95.617)","--color-warning":"oklch(64% 0.222 41.116)","--color-warning-content":"oklch(96% 0.059 95.617)","--color-error":"oklch(70% 0.191 22.216)","--color-error-content":"oklch(40% 0.123 38.172)","--radius-selector":"0.25rem","--radius-field":"0.25rem","--radius-box":"0.5rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},aqua:{"color-scheme":"dark","--color-base-100":"oklch(37% 0.146 265.522)","--color-base-200":"oklch(28% 0.091 267.935)","--color-base-300":"oklch(22% 0.091 267.935)","--color-base-content":"oklch(90% 0.058 230.902)","--color-primary":"oklch(85.661% 0.144 198.645)","--color-primary-content":"oklch(40.124% 0.068 197.603)","--color-secondary":"oklch(60.682% 0.108 309.782)","--color-secondary-content":"oklch(96% 0.016 293.756)","--color-accent":"oklch(93.426% 0.102 94.555)","--color-accent-content":"oklch(18.685% 0.02 94.555)","--color-neutral":"oklch(27% 0.146 265.522)","--color-neutral-content":"oklch(80% 0.146 265.522)","--color-info":"oklch(54.615% 0.215 262.88)","--color-info-content":"oklch(90.923% 0.043 262.88)","--color-success":"oklch(62.705% 0.169 149.213)","--color-success-content":"oklch(12.541% 0.033 149.213)","--color-warning":"oklch(66.584% 0.157 58.318)","--color-warning-content":"oklch(27% 0.077 45.635)","--color-error":"oklch(73.95% 0.19 27.33)","--color-error-content":"oklch(14.79% 0.038 27.33)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},synthwave:{"color-scheme":"dark","--color-base-100":"oklch(15% 0.09 281.288)","--color-base-200":"oklch(20% 0.09 281.288)","--color-base-300":"oklch(25% 0.09 281.288)","--color-base-content":"oklch(78% 0.115 274.713)","--color-primary":"oklch(71% 0.202 349.761)","--color-primary-content":"oklch(28% 0.109 3.907)","--color-secondary":"oklch(82% 0.111 230.318)","--color-secondary-content":"oklch(29% 0.066 243.157)","--color-accent":"oklch(75% 0.183 55.934)","--color-accent-content":"oklch(26% 0.079 36.259)","--color-neutral":"oklch(45% 0.24 277.023)","--color-neutral-content":"oklch(87% 0.065 274.039)","--color-info":"oklch(74% 0.16 232.661)","--color-info-content":"oklch(29% 0.066 243.157)","--color-success":"oklch(77% 0.152 181.912)","--color-success-content":"oklch(27% 0.046 192.524)","--color-warning":"oklch(90% 0.182 98.111)","--color-warning-content":"oklch(42% 0.095 57.708)","--color-error":"oklch(73.7% 0.121 32.639)","--color-error-content":"oklch(23.501% 0.096 290.329)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},dracula:{"color-scheme":"dark","--color-base-100":"oklch(28.822% 0.022 277.508)","--color-base-200":"oklch(26.805% 0.02 277.508)","--color-base-300":"oklch(24.787% 0.019 277.508)","--color-base-content":"oklch(97.747% 0.007 106.545)","--color-primary":"oklch(75.461% 0.183 346.812)","--color-primary-content":"oklch(15.092% 0.036 346.812)","--color-secondary":"oklch(74.202% 0.148 301.883)","--color-secondary-content":"oklch(14.84% 0.029 301.883)","--color-accent":"oklch(83.392% 0.124 66.558)","--color-accent-content":"oklch(16.678% 0.024 66.558)","--color-neutral":"oklch(39.445% 0.032 275.524)","--color-neutral-content":"oklch(87.889% 0.006 275.524)","--color-info":"oklch(88.263% 0.093 212.846)","--color-info-content":"oklch(17.652% 0.018 212.846)","--color-success":"oklch(87.099% 0.219 148.024)","--color-success-content":"oklch(17.419% 0.043 148.024)","--color-warning":"oklch(95.533% 0.134 112.757)","--color-warning-content":"oklch(19.106% 0.026 112.757)","--color-error":"oklch(68.22% 0.206 24.43)","--color-error-content":"oklch(13.644% 0.041 24.43)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},bumblebee:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(97% 0 0)","--color-base-300":"oklch(92% 0 0)","--color-base-content":"oklch(20% 0 0)","--color-primary":"oklch(85% 0.199 91.936)","--color-primary-content":"oklch(42% 0.095 57.708)","--color-secondary":"oklch(75% 0.183 55.934)","--color-secondary-content":"oklch(40% 0.123 38.172)","--color-accent":"oklch(0% 0 0)","--color-accent-content":"oklch(100% 0 0)","--color-neutral":"oklch(37% 0.01 67.558)","--color-neutral-content":"oklch(92% 0.003 48.717)","--color-info":"oklch(74% 0.16 232.661)","--color-info-content":"oklch(39% 0.09 240.876)","--color-success":"oklch(76% 0.177 163.223)","--color-success-content":"oklch(37% 0.077 168.94)","--color-warning":"oklch(82% 0.189 84.429)","--color-warning-content":"oklch(41% 0.112 45.904)","--color-error":"oklch(70% 0.191 22.216)","--color-error-content":"oklch(39% 0.141 25.723)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},pastel:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(98.462% 0.001 247.838)","--color-base-300":"oklch(92.462% 0.001 247.838)","--color-base-content":"oklch(20% 0 0)","--color-primary":"oklch(90% 0.063 306.703)","--color-primary-content":"oklch(49% 0.265 301.924)","--color-secondary":"oklch(89% 0.058 10.001)","--color-secondary-content":"oklch(51% 0.222 16.935)","--color-accent":"oklch(90% 0.093 164.15)","--color-accent-content":"oklch(50% 0.118 165.612)","--color-neutral":"oklch(55% 0.046 257.417)","--color-neutral-content":"oklch(92% 0.013 255.508)","--color-info":"oklch(86% 0.127 207.078)","--color-info-content":"oklch(52% 0.105 223.128)","--color-success":"oklch(87% 0.15 154.449)","--color-success-content":"oklch(52% 0.154 150.069)","--color-warning":"oklch(83% 0.128 66.29)","--color-warning-content":"oklch(55% 0.195 38.402)","--color-error":"oklch(80% 0.114 19.571)","--color-error-content":"oklch(50% 0.213 27.518)","--radius-selector":"1rem","--radius-field":"2rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"2px","--depth":"0","--noise":"0"},valentine:{"color-scheme":"light","--color-base-100":"oklch(97% 0.014 343.198)","--color-base-200":"oklch(94% 0.028 342.258)","--color-base-300":"oklch(89% 0.061 343.231)","--color-base-content":"oklch(52% 0.223 3.958)","--color-primary":"oklch(65% 0.241 354.308)","--color-primary-content":"oklch(100% 0 0)","--color-secondary":"oklch(62% 0.265 303.9)","--color-secondary-content":"oklch(97% 0.014 308.299)","--color-accent":"oklch(82% 0.111 230.318)","--color-accent-content":"oklch(39% 0.09 240.876)","--color-neutral":"oklch(40% 0.153 2.432)","--color-neutral-content":"oklch(89% 0.061 343.231)","--color-info":"oklch(86% 0.127 207.078)","--color-info-content":"oklch(44% 0.11 240.79)","--color-success":"oklch(84% 0.143 164.978)","--color-success-content":"oklch(43% 0.095 166.913)","--color-warning":"oklch(75% 0.183 55.934)","--color-warning-content":"oklch(26% 0.079 36.259)","--color-error":"oklch(63% 0.237 25.331)","--color-error-content":"oklch(97% 0.013 17.38)","--radius-selector":"1rem","--radius-field":"2rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},silk:{"color-scheme":"light","--color-base-100":"oklch(97% 0.0035 67.78)","--color-base-200":"oklch(95% 0.0081 61.42)","--color-base-300":"oklch(90% 0.0081 61.42)","--color-base-content":"oklch(40% 0.0081 61.42)","--color-primary":"oklch(23.27% 0.0249 284.3)","--color-primary-content":"oklch(94.22% 0.2505 117.44)","--color-secondary":"oklch(23.27% 0.0249 284.3)","--color-secondary-content":"oklch(73.92% 0.2135 50.94)","--color-accent":"oklch(23.27% 0.0249 284.3)","--color-accent-content":"oklch(88.92% 0.2061 189.9)","--color-neutral":"oklch(20% 0 0)","--color-neutral-content":"oklch(80% 0.0081 61.42)","--color-info":"oklch(80.39% 0.1148 241.68)","--color-info-content":"oklch(30.39% 0.1148 241.68)","--color-success":"oklch(83.92% 0.0901 136.87)","--color-success-content":"oklch(23.92% 0.0901 136.87)","--color-warning":"oklch(83.92% 0.1085 80)","--color-warning-content":"oklch(43.92% 0.1085 80)","--color-error":"oklch(75.1% 0.1814 22.37)","--color-error-content":"oklch(35.1% 0.1814 22.37)","--radius-selector":"2rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"2px","--depth":"1","--noise":"0"},winter:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(97.466% 0.011 259.822)","--color-base-300":"oklch(93.268% 0.016 262.751)","--color-base-content":"oklch(41.886% 0.053 255.824)","--color-primary":"oklch(56.86% 0.255 257.57)","--color-primary-content":"oklch(91.372% 0.051 257.57)","--color-secondary":"oklch(42.551% 0.161 282.339)","--color-secondary-content":"oklch(88.51% 0.032 282.339)","--color-accent":"oklch(59.939% 0.191 335.171)","--color-accent-content":"oklch(11.988% 0.038 335.171)","--color-neutral":"oklch(19.616% 0.063 257.651)","--color-neutral-content":"oklch(83.923% 0.012 257.651)","--color-info":"oklch(88.127% 0.085 214.515)","--color-info-content":"oklch(17.625% 0.017 214.515)","--color-success":"oklch(80.494% 0.077 197.823)","--color-success-content":"oklch(16.098% 0.015 197.823)","--color-warning":"oklch(89.172% 0.045 71.47)","--color-warning-content":"oklch(17.834% 0.009 71.47)","--color-error":"oklch(73.092% 0.11 20.076)","--color-error-content":"oklch(14.618% 0.022 20.076)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},night:{"color-scheme":"dark","--color-base-100":"oklch(20.768% 0.039 265.754)","--color-base-200":"oklch(19.314% 0.037 265.754)","--color-base-300":"oklch(17.86% 0.034 265.754)","--color-base-content":"oklch(84.153% 0.007 265.754)","--color-primary":"oklch(75.351% 0.138 232.661)","--color-primary-content":"oklch(15.07% 0.027 232.661)","--color-secondary":"oklch(68.011% 0.158 276.934)","--color-secondary-content":"oklch(13.602% 0.031 276.934)","--color-accent":"oklch(72.36% 0.176 350.048)","--color-accent-content":"oklch(14.472% 0.035 350.048)","--color-neutral":"oklch(27.949% 0.036 260.03)","--color-neutral-content":"oklch(85.589% 0.007 260.03)","--color-info":"oklch(68.455% 0.148 237.251)","--color-info-content":"oklch(0% 0 0)","--color-success":"oklch(78.452% 0.132 181.911)","--color-success-content":"oklch(15.69% 0.026 181.911)","--color-warning":"oklch(83.242% 0.139 82.95)","--color-warning-content":"oklch(16.648% 0.027 82.95)","--color-error":"oklch(71.785% 0.17 13.118)","--color-error-content":"oklch(14.357% 0.034 13.118)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},lemonade:{"color-scheme":"light","--color-base-100":"oklch(98.71% 0.02 123.72)","--color-base-200":"oklch(91.8% 0.018 123.72)","--color-base-300":"oklch(84.89% 0.017 123.72)","--color-base-content":"oklch(19.742% 0.004 123.72)","--color-primary":"oklch(58.92% 0.199 134.6)","--color-primary-content":"oklch(11.784% 0.039 134.6)","--color-secondary":"oklch(77.75% 0.196 111.09)","--color-secondary-content":"oklch(15.55% 0.039 111.09)","--color-accent":"oklch(85.39% 0.201 100.73)","--color-accent-content":"oklch(17.078% 0.04 100.73)","--color-neutral":"oklch(30.98% 0.075 108.6)","--color-neutral-content":"oklch(86.196% 0.015 108.6)","--color-info":"oklch(86.19% 0.047 224.14)","--color-info-content":"oklch(17.238% 0.009 224.14)","--color-success":"oklch(86.19% 0.047 157.85)","--color-success-content":"oklch(17.238% 0.009 157.85)","--color-warning":"oklch(86.19% 0.047 102.15)","--color-warning-content":"oklch(17.238% 0.009 102.15)","--color-error":"oklch(86.19% 0.047 25.85)","--color-error-content":"oklch(17.238% 0.009 25.85)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},coffee:{"color-scheme":"dark","--color-base-100":"oklch(24% 0.023 329.708)","--color-base-200":"oklch(21% 0.021 329.708)","--color-base-300":"oklch(16% 0.019 329.708)","--color-base-content":"oklch(72.354% 0.092 79.129)","--color-primary":"oklch(71.996% 0.123 62.756)","--color-primary-content":"oklch(14.399% 0.024 62.756)","--color-secondary":"oklch(34.465% 0.029 199.194)","--color-secondary-content":"oklch(86.893% 0.005 199.194)","--color-accent":"oklch(42.621% 0.074 224.389)","--color-accent-content":"oklch(88.524% 0.014 224.389)","--color-neutral":"oklch(16.51% 0.015 326.261)","--color-neutral-content":"oklch(83.302% 0.003 326.261)","--color-info":"oklch(79.49% 0.063 184.558)","--color-info-content":"oklch(15.898% 0.012 184.558)","--color-success":"oklch(74.722% 0.072 131.116)","--color-success-content":"oklch(14.944% 0.014 131.116)","--color-warning":"oklch(88.15% 0.14 87.722)","--color-warning-content":"oklch(17.63% 0.028 87.722)","--color-error":"oklch(77.318% 0.128 31.871)","--color-error-content":"oklch(15.463% 0.025 31.871)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},sunset:{"color-scheme":"dark","--color-base-100":"oklch(22% 0.019 237.69)","--color-base-200":"oklch(20% 0.019 237.69)","--color-base-300":"oklch(18% 0.019 237.69)","--color-base-content":"oklch(77.383% 0.043 245.096)","--color-primary":"oklch(74.703% 0.158 39.947)","--color-primary-content":"oklch(14.94% 0.031 39.947)","--color-secondary":"oklch(72.537% 0.177 2.72)","--color-secondary-content":"oklch(14.507% 0.035 2.72)","--color-accent":"oklch(71.294% 0.166 299.844)","--color-accent-content":"oklch(14.258% 0.033 299.844)","--color-neutral":"oklch(26% 0.019 237.69)","--color-neutral-content":"oklch(70% 0.019 237.69)","--color-info":"oklch(85.559% 0.085 206.015)","--color-info-content":"oklch(17.111% 0.017 206.015)","--color-success":"oklch(85.56% 0.085 144.778)","--color-success-content":"oklch(17.112% 0.017 144.778)","--color-warning":"oklch(85.569% 0.084 74.427)","--color-warning-content":"oklch(17.113% 0.016 74.427)","--color-error":"oklch(85.511% 0.078 16.886)","--color-error-content":"oklch(17.102% 0.015 16.886)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},lofi:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(97% 0 0)","--color-base-300":"oklch(94% 0 0)","--color-base-content":"oklch(0% 0 0)","--color-primary":"oklch(15.906% 0 0)","--color-primary-content":"oklch(100% 0 0)","--color-secondary":"oklch(21.455% 0.001 17.278)","--color-secondary-content":"oklch(100% 0 0)","--color-accent":"oklch(26.861% 0 0)","--color-accent-content":"oklch(100% 0 0)","--color-neutral":"oklch(0% 0 0)","--color-neutral-content":"oklch(100% 0 0)","--color-info":"oklch(79.54% 0.103 205.9)","--color-info-content":"oklch(15.908% 0.02 205.9)","--color-success":"oklch(90.13% 0.153 164.14)","--color-success-content":"oklch(18.026% 0.03 164.14)","--color-warning":"oklch(88.37% 0.135 79.94)","--color-warning-content":"oklch(17.674% 0.027 79.94)","--color-error":"oklch(78.66% 0.15 28.47)","--color-error-content":"oklch(15.732% 0.03 28.47)","--radius-selector":"2rem","--radius-field":"0.25rem","--radius-box":"0.5rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},fantasy:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(93% 0 0)","--color-base-300":"oklch(86% 0 0)","--color-base-content":"oklch(27.807% 0.029 256.847)","--color-primary":"oklch(37.45% 0.189 325.02)","--color-primary-content":"oklch(87.49% 0.037 325.02)","--color-secondary":"oklch(53.92% 0.162 241.36)","--color-secondary-content":"oklch(90.784% 0.032 241.36)","--color-accent":"oklch(75.98% 0.204 56.72)","--color-accent-content":"oklch(15.196% 0.04 56.72)","--color-neutral":"oklch(27.807% 0.029 256.847)","--color-neutral-content":"oklch(85.561% 0.005 256.847)","--color-info":"oklch(72.06% 0.191 231.6)","--color-info-content":"oklch(0% 0 0)","--color-success":"oklch(64.8% 0.15 160)","--color-success-content":"oklch(0% 0 0)","--color-warning":"oklch(84.71% 0.199 83.87)","--color-warning-content":"oklch(0% 0 0)","--color-error":"oklch(71.76% 0.221 22.18)","--color-error-content":"oklch(0% 0 0)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},cmyk:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(95% 0 0)","--color-base-300":"oklch(90% 0 0)","--color-base-content":"oklch(20% 0 0)","--color-primary":"oklch(71.772% 0.133 239.443)","--color-primary-content":"oklch(14.354% 0.026 239.443)","--color-secondary":"oklch(64.476% 0.202 359.339)","--color-secondary-content":"oklch(12.895% 0.04 359.339)","--color-accent":"oklch(94.228% 0.189 105.306)","--color-accent-content":"oklch(18.845% 0.037 105.306)","--color-neutral":"oklch(21.778% 0 0)","--color-neutral-content":"oklch(84.355% 0 0)","--color-info":"oklch(68.475% 0.094 217.284)","--color-info-content":"oklch(13.695% 0.018 217.284)","--color-success":"oklch(46.949% 0.162 321.406)","--color-success-content":"oklch(89.389% 0.032 321.406)","--color-warning":"oklch(71.236% 0.159 52.023)","--color-warning-content":"oklch(14.247% 0.031 52.023)","--color-error":"oklch(62.013% 0.208 28.717)","--color-error-content":"oklch(12.402% 0.041 28.717)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},halloween:{"color-scheme":"dark","--color-base-100":"oklch(21% 0.006 56.043)","--color-base-200":"oklch(14% 0.004 49.25)","--color-base-300":"oklch(0% 0 0)","--color-base-content":"oklch(84.955% 0 0)","--color-primary":"oklch(77.48% 0.204 60.62)","--color-primary-content":"oklch(19.693% 0.004 196.779)","--color-secondary":"oklch(45.98% 0.248 305.03)","--color-secondary-content":"oklch(89.196% 0.049 305.03)","--color-accent":"oklch(64.8% 0.223 136.073)","--color-accent-content":"oklch(0% 0 0)","--color-neutral":"oklch(24.371% 0.046 65.681)","--color-neutral-content":"oklch(84.874% 0.009 65.681)","--color-info":"oklch(54.615% 0.215 262.88)","--color-info-content":"oklch(90.923% 0.043 262.88)","--color-success":"oklch(62.705% 0.169 149.213)","--color-success-content":"oklch(12.541% 0.033 149.213)","--color-warning":"oklch(66.584% 0.157 58.318)","--color-warning-content":"oklch(13.316% 0.031 58.318)","--color-error":"oklch(65.72% 0.199 27.33)","--color-error-content":"oklch(13.144% 0.039 27.33)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},dark:{"color-scheme":"dark","--color-base-100":"oklch(25.33% 0.016 252.42)","--color-base-200":"oklch(23.26% 0.014 253.1)","--color-base-300":"oklch(21.15% 0.012 254.09)","--color-base-content":"oklch(97.807% 0.029 256.847)","--color-primary":"oklch(58% 0.233 277.117)","--color-primary-content":"oklch(96% 0.018 272.314)","--color-secondary":"oklch(65% 0.241 354.308)","--color-secondary-content":"oklch(94% 0.028 342.258)","--color-accent":"oklch(77% 0.152 181.912)","--color-accent-content":"oklch(38% 0.063 188.416)","--color-neutral":"oklch(14% 0.005 285.823)","--color-neutral-content":"oklch(92% 0.004 286.32)","--color-info":"oklch(74% 0.16 232.661)","--color-info-content":"oklch(29% 0.066 243.157)","--color-success":"oklch(76% 0.177 163.223)","--color-success-content":"oklch(37% 0.077 168.94)","--color-warning":"oklch(82% 0.189 84.429)","--color-warning-content":"oklch(41% 0.112 45.904)","--color-error":"oklch(71% 0.194 13.428)","--color-error-content":"oklch(27% 0.105 12.094)","--radius-selector":"0.5rem","--radius-field":"0.25rem","--radius-box":"0.5rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},autumn:{"color-scheme":"light","--color-base-100":"oklch(95.814% 0 0)","--color-base-200":"oklch(89.107% 0 0)","--color-base-300":"oklch(82.4% 0 0)","--color-base-content":"oklch(19.162% 0 0)","--color-primary":"oklch(40.723% 0.161 17.53)","--color-primary-content":"oklch(88.144% 0.032 17.53)","--color-secondary":"oklch(61.676% 0.169 23.865)","--color-secondary-content":"oklch(12.335% 0.033 23.865)","--color-accent":"oklch(73.425% 0.094 60.729)","--color-accent-content":"oklch(14.685% 0.018 60.729)","--color-neutral":"oklch(54.367% 0.037 51.902)","--color-neutral-content":"oklch(90.873% 0.007 51.902)","--color-info":"oklch(69.224% 0.097 207.284)","--color-info-content":"oklch(13.844% 0.019 207.284)","--color-success":"oklch(60.995% 0.08 174.616)","--color-success-content":"oklch(12.199% 0.016 174.616)","--color-warning":"oklch(70.081% 0.164 56.844)","--color-warning-content":"oklch(14.016% 0.032 56.844)","--color-error":"oklch(53.07% 0.241 24.16)","--color-error-content":"oklch(90.614% 0.048 24.16)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},corporate:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(93% 0 0)","--color-base-300":"oklch(86% 0 0)","--color-base-content":"oklch(22.389% 0.031 278.072)","--color-primary":"oklch(58% 0.158 241.966)","--color-primary-content":"oklch(100% 0 0)","--color-secondary":"oklch(55% 0.046 257.417)","--color-secondary-content":"oklch(100% 0 0)","--color-accent":"oklch(60% 0.118 184.704)","--color-accent-content":"oklch(100% 0 0)","--color-neutral":"oklch(0% 0 0)","--color-neutral-content":"oklch(100% 0 0)","--color-info":"oklch(60% 0.126 221.723)","--color-info-content":"oklch(100% 0 0)","--color-success":"oklch(62% 0.194 149.214)","--color-success-content":"oklch(100% 0 0)","--color-warning":"oklch(85% 0.199 91.936)","--color-warning-content":"oklch(0% 0 0)","--color-error":"oklch(70% 0.191 22.216)","--color-error-content":"oklch(0% 0 0)","--radius-selector":"0.25rem","--radius-field":"0.25rem","--radius-box":"0.25rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},emerald:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(93% 0 0)","--color-base-300":"oklch(86% 0 0)","--color-base-content":"oklch(35.519% 0.032 262.988)","--color-primary":"oklch(76.662% 0.135 153.45)","--color-primary-content":"oklch(33.387% 0.04 162.24)","--color-secondary":"oklch(61.302% 0.202 261.294)","--color-secondary-content":"oklch(100% 0 0)","--color-accent":"oklch(72.772% 0.149 33.2)","--color-accent-content":"oklch(0% 0 0)","--color-neutral":"oklch(35.519% 0.032 262.988)","--color-neutral-content":"oklch(98.462% 0.001 247.838)","--color-info":"oklch(72.06% 0.191 231.6)","--color-info-content":"oklch(0% 0 0)","--color-success":"oklch(64.8% 0.15 160)","--color-success-content":"oklch(0% 0 0)","--color-warning":"oklch(84.71% 0.199 83.87)","--color-warning-content":"oklch(0% 0 0)","--color-error":"oklch(71.76% 0.221 22.18)","--color-error-content":"oklch(0% 0 0)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},garden:{"color-scheme":"light","--color-base-100":"oklch(92.951% 0.002 17.197)","--color-base-200":"oklch(86.445% 0.002 17.197)","--color-base-300":"oklch(79.938% 0.001 17.197)","--color-base-content":"oklch(16.961% 0.001 17.32)","--color-primary":"oklch(62.45% 0.278 3.836)","--color-primary-content":"oklch(100% 0 0)","--color-secondary":"oklch(48.495% 0.11 355.095)","--color-secondary-content":"oklch(89.699% 0.022 355.095)","--color-accent":"oklch(56.273% 0.054 154.39)","--color-accent-content":"oklch(100% 0 0)","--color-neutral":"oklch(24.155% 0.049 89.07)","--color-neutral-content":"oklch(92.951% 0.002 17.197)","--color-info":"oklch(72.06% 0.191 231.6)","--color-info-content":"oklch(0% 0 0)","--color-success":"oklch(64.8% 0.15 160)","--color-success-content":"oklch(0% 0 0)","--color-warning":"oklch(84.71% 0.199 83.87)","--color-warning-content":"oklch(0% 0 0)","--color-error":"oklch(71.76% 0.221 22.18)","--color-error-content":"oklch(0% 0 0)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},caramellatte:{"color-scheme":"light","--color-base-100":"oklch(98% 0.016 73.684)","--color-base-200":"oklch(95% 0.038 75.164)","--color-base-300":"oklch(90% 0.076 70.697)","--color-base-content":"oklch(40% 0.123 38.172)","--color-primary":"oklch(0% 0 0)","--color-primary-content":"oklch(100% 0 0)","--color-secondary":"oklch(22.45% 0.075 37.85)","--color-secondary-content":"oklch(90% 0.076 70.697)","--color-accent":"oklch(46.44% 0.111 37.85)","--color-accent-content":"oklch(90% 0.076 70.697)","--color-neutral":"oklch(55% 0.195 38.402)","--color-neutral-content":"oklch(98% 0.016 73.684)","--color-info":"oklch(42% 0.199 265.638)","--color-info-content":"oklch(90% 0.076 70.697)","--color-success":"oklch(43% 0.095 166.913)","--color-success-content":"oklch(90% 0.076 70.697)","--color-warning":"oklch(82% 0.189 84.429)","--color-warning-content":"oklch(41% 0.112 45.904)","--color-error":"oklch(70% 0.191 22.216)","--color-error-content":"oklch(39% 0.141 25.723)","--radius-selector":"2rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"2px","--depth":"1","--noise":"1"},black:{"color-scheme":"dark","--color-base-100":"oklch(0% 0 0)","--color-base-200":"oklch(19% 0 0)","--color-base-300":"oklch(22% 0 0)","--color-base-content":"oklch(87.609% 0 0)","--color-primary":"oklch(35% 0 0)","--color-primary-content":"oklch(100% 0 0)","--color-secondary":"oklch(35% 0 0)","--color-secondary-content":"oklch(100% 0 0)","--color-accent":"oklch(35% 0 0)","--color-accent-content":"oklch(100% 0 0)","--color-neutral":"oklch(35% 0 0)","--color-neutral-content":"oklch(100% 0 0)","--color-info":"oklch(45.201% 0.313 264.052)","--color-info-content":"oklch(89.04% 0.062 264.052)","--color-success":"oklch(51.975% 0.176 142.495)","--color-success-content":"oklch(90.395% 0.035 142.495)","--color-warning":"oklch(96.798% 0.211 109.769)","--color-warning-content":"oklch(19.359% 0.042 109.769)","--color-error":"oklch(62.795% 0.257 29.233)","--color-error-content":"oklch(12.559% 0.051 29.233)","--radius-selector":"0rem","--radius-field":"0rem","--radius-box":"0rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},luxury:{"color-scheme":"dark","--color-base-100":"oklch(14.076% 0.004 285.822)","--color-base-200":"oklch(20.219% 0.004 308.229)","--color-base-300":"oklch(23.219% 0.004 308.229)","--color-base-content":"oklch(75.687% 0.123 76.89)","--color-primary":"oklch(100% 0 0)","--color-primary-content":"oklch(20% 0 0)","--color-secondary":"oklch(27.581% 0.064 261.069)","--color-secondary-content":"oklch(85.516% 0.012 261.069)","--color-accent":"oklch(36.674% 0.051 338.825)","--color-accent-content":"oklch(87.334% 0.01 338.825)","--color-neutral":"oklch(24.27% 0.057 59.825)","--color-neutral-content":"oklch(93.203% 0.089 90.861)","--color-info":"oklch(79.061% 0.121 237.133)","--color-info-content":"oklch(15.812% 0.024 237.133)","--color-success":"oklch(78.119% 0.192 132.154)","--color-success-content":"oklch(15.623% 0.038 132.154)","--color-warning":"oklch(86.127% 0.136 102.891)","--color-warning-content":"oklch(17.225% 0.027 102.891)","--color-error":"oklch(71.753% 0.176 22.568)","--color-error-content":"oklch(14.35% 0.035 22.568)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"},wireframe:{"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(97% 0 0)","--color-base-300":"oklch(94% 0 0)","--color-base-content":"oklch(20% 0 0)","--color-primary":"oklch(87% 0 0)","--color-primary-content":"oklch(26% 0 0)","--color-secondary":"oklch(87% 0 0)","--color-secondary-content":"oklch(26% 0 0)","--color-accent":"oklch(87% 0 0)","--color-accent-content":"oklch(26% 0 0)","--color-neutral":"oklch(87% 0 0)","--color-neutral-content":"oklch(26% 0 0)","--color-info":"oklch(44% 0.11 240.79)","--color-info-content":"oklch(90% 0.058 230.902)","--color-success":"oklch(43% 0.095 166.913)","--color-success-content":"oklch(90% 0.093 164.15)","--color-warning":"oklch(47% 0.137 46.201)","--color-warning-content":"oklch(92% 0.12 95.746)","--color-error":"oklch(44% 0.177 26.899)","--color-error-content":"oklch(88% 0.062 18.334)","--radius-selector":"0rem","--radius-field":"0.25rem","--radius-box":"0.25rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"},cupcake:{"color-scheme":"light","--color-base-100":"oklch(97.788% 0.004 56.375)","--color-base-200":"oklch(93.982% 0.007 61.449)","--color-base-300":"oklch(91.586% 0.006 53.44)","--color-base-content":"oklch(23.574% 0.066 313.189)","--color-primary":"oklch(85% 0.138 181.071)","--color-primary-content":"oklch(43% 0.078 188.216)","--color-secondary":"oklch(89% 0.061 343.231)","--color-secondary-content":"oklch(45% 0.187 3.815)","--color-accent":"oklch(90% 0.076 70.697)","--color-accent-content":"oklch(47% 0.157 37.304)","--color-neutral":"oklch(27% 0.006 286.033)","--color-neutral-content":"oklch(92% 0.004 286.32)","--color-info":"oklch(68% 0.169 237.323)","--color-info-content":"oklch(29% 0.066 243.157)","--color-success":"oklch(69% 0.17 162.48)","--color-success-content":"oklch(26% 0.051 172.552)","--color-warning":"oklch(79% 0.184 86.047)","--color-warning-content":"oklch(28% 0.066 53.813)","--color-error":"oklch(64% 0.246 16.439)","--color-error-content":"oklch(27% 0.105 12.094)","--radius-selector":"1rem","--radius-field":"2rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"2px","--depth":"1","--noise":"0"}};var JZ,UZ,sh,U0,EZ,FG;class Ik extends TransformStream{constructor(e){super({transform:(n,i)=>O(this,EZ,FG).call(this,n,i),flush:n=>O(this,EZ,FG).call(this,`\r
`,n)});D(this,EZ);D(this,JZ,"");D(this,UZ,!1);D(this,sh,!1);D(this,U0,e=>e);g(this,UZ,(e==null?void 0:e.allowCR)??!1),g(this,sh,(e==null?void 0:e.returnEmptyLines)??!1),g(this,U0,(e==null?void 0:e.mapperFun)??h(this,U0))}}JZ=new WeakMap,UZ=new WeakMap,sh=new WeakMap,U0=new WeakMap,EZ=new WeakSet,FG=function(e,n){for(e=h(this,JZ)+e;;){const i=e.indexOf(`
`);if(h(this,UZ)){const s=e.indexOf("\r");if(s!==-1&&s!==e.length-1&&(i===-1||i-1>s)){const a=h(this,U0).call(this,e.slice(0,crOrLfIndex));(h(this,sh)||a)&&n.enqueue(a),e=e.slice(s+1);continue}}if(i!==-1){let s=i;e[i-1]==="\r"&&s--;const a=h(this,U0).call(this,e.slice(0,s));(h(this,sh)||a)&&n.enqueue(a),e=e.slice(i+1);continue}break}g(this,JZ,e)};const zk=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);var Fc,vZ,td,nc,pb,vz,Kz,Tz;let wk=(Tz=class{constructor(t,e){D(this,pb);D(this,Fc);D(this,vZ);D(this,td,!1);D(this,nc);g(this,Fc,t),g(this,vZ,e)}next(){const t=()=>O(this,pb,vz).call(this);return g(this,nc,h(this,nc)?h(this,nc).then(t,t):t()),h(this,nc)}return(t){const e=()=>O(this,pb,Kz).call(this,t);return h(this,nc)?h(this,nc).then(e,e):e()}},Fc=new WeakMap,vZ=new WeakMap,td=new WeakMap,nc=new WeakMap,pb=new WeakSet,vz=async function(){if(h(this,td))return{done:!0,value:void 0};let t;try{t=await h(this,Fc).read()}catch(e){throw g(this,nc,void 0),g(this,td,!0),h(this,Fc).releaseLock(),e}return t.done&&(g(this,nc,void 0),g(this,td,!0),h(this,Fc).releaseLock()),t},Kz=async function(t){if(h(this,td))return{done:!0,value:t};if(g(this,td,!0),!h(this,vZ)){const e=h(this,Fc).cancel(t);return h(this,Fc).releaseLock(),await e,{done:!0,value:t}}return h(this,Fc).releaseLock(),{done:!0,value:t}},Tz);const vY=Symbol();function Pz(){return this[vY].next()}Object.defineProperty(Pz,"name",{value:"next"});function Hz(l){return this[vY].return(l)}Object.defineProperty(Hz,"name",{value:"return"});const xk=Object.create(zk,{next:{enumerable:!0,configurable:!0,writable:!0,value:Pz},return:{enumerable:!0,configurable:!0,writable:!0,value:Hz}});function gk(l,{preventCancel:t=!1}={}){const e=l.getReader(),n=new wk(e,t),i=Object.create(xk);return i[vY]=n,i}const JG=l=>!!l.toLowerCase,UG=l=>l===!0||l===!1,EG=l=>!JG(l)&&!isNaN(l)&&!UG(l);async function*Sk(l){if(!l.body)throw new Error("Response body is empty");const t=l.body.pipeThrough(new TextDecoderStream).pipeThrough(new Ik);for await(const e of gk(t))if(e.startsWith("data:")&&!e.endsWith("[DONE]"))yield JSON.parse(e.slice(5));else if(e.startsWith("error:")){const n=JSON.parse(e.slice(6));throw new Error(n.message||"Unknown error")}}const Rk=l=>{if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(l);else{const t=document.createElement("textarea");t.value=l,t.style.position="absolute",t.style.left="-999999px",document.body.prepend(t),t.select(),document.execCommand("copy")}};function kk(l){return l.map(t=>{if(t.role!=="user"||!t.extra)return{role:t.role,content:t.content};const e=[];for(const n of t.extra??[])if(n.type==="context")e.push({type:"text",text:n.content});else if(n.type==="textFile")e.push({type:"text",text:`File: ${n.name}
Content:
${n.content}`});else if(n.type==="imageFile")e.push({type:"image_url",image_url:{url:n.base64Url}});else if(n.type==="audioFile")e.push({type:"input_audio",input_audio:{data:n.base64Data,format:/wav/.test(n.mimeType)?"wav":"mp3"}});else throw new Error("Unknown extra type");return e.push({type:"text",text:t.content}),{role:t.role,content:e}})}function fk(l){return console.debug({messages:l}),l.map(t=>{if(t.role!=="assistant")return t;const e=t.content;return{role:t.role,content:t.role==="assistant"?e.split(/<\/think>|<\|end\|>/).at(-1).trim():e}})}function Mi(l){return Object.entries(l).filter(([t,e])=>e).map(([t,e])=>t).join(" ")}const Qz=(l,t)=>{let e=!1;return(...n)=>{e||(l(...n),e=!0,setTimeout(()=>{e=!1},t))}},Dk=l=>{const t=new URL(window.location.href);l.forEach(e=>{t.searchParams.delete(e)}),window.history.replaceState({},"",t.toString())},jk=async(l,t)=>{try{const e=await fetch(`${l}/props`,{headers:{"Content-Type":"application/json",...t?{Authorization:`Bearer ${t}`}:{}}});if(!e.ok)throw new Error("Failed to fetch server props");return await e.json()}catch(e){throw console.error("Error fetching server props:",e),e}},Ok=!1,KV=new URL(".",document.baseURI).href.toString().replace(/\/$/,""),jd={apiKey:"",systemMessage:"",showTokensPerSecond:!1,showThoughtInProgress:!1,excludeThoughtOnReq:!0,pasteLongTextToFileLen:2500,pdfAsImage:!1,samplers:"edkypmxt",temperature:.8,dynatemp_range:0,dynatemp_exponent:1,top_k:40,top_p:.95,min_p:.05,xtc_probability:0,xtc_threshold:.1,typical_p:1,repeat_last_n:64,repeat_penalty:1,presence_penalty:0,frequency_penalty:0,dry_multiplier:0,dry_base:1.75,dry_allowed_length:2,dry_penalty_last_n:-1,max_tokens:-1,custom:"",pyIntepreterEnabled:!1},Ck={apiKey:"Set the API Key if you are using --api-key option for the server.",systemMessage:"The starting message that defines how model should behave.",pasteLongTextToFileLen:"On pasting long text, it will be converted to a file. You can control the file length by setting the value of this parameter. Value 0 means disable.",samplers:'The order at which samplers are applied, in simplified way. Default is "dkypmxt": dry->top_k->typ_p->top_p->min_p->xtc->temperature',temperature:"Controls the randomness of the generated text by affecting the probability distribution of the output tokens. Higher = more random, lower = more focused.",dynatemp_range:"Addon for the temperature sampler. The added value to the range of dynamic temperature, which adjusts probabilities by entropy of tokens.",dynatemp_exponent:"Addon for the temperature sampler. Smoothes out the probability redistribution based on the most probable token.",top_k:"Keeps only k top tokens.",top_p:"Limits tokens to those that together have a cumulative probability of at least p",min_p:"Limits tokens based on the minimum probability for a token to be considered, relative to the probability of the most likely token.",xtc_probability:"XTC sampler cuts out top tokens; this parameter controls the chance of cutting tokens at all. 0 disables XTC.",xtc_threshold:"XTC sampler cuts out top tokens; this parameter controls the token probability that is required to cut that token.",typical_p:"Sorts and limits tokens based on the difference between log-probability and entropy.",repeat_last_n:"Last n tokens to consider for penalizing repetition",repeat_penalty:"Controls the repetition of token sequences in the generated text",presence_penalty:"Limits tokens based on whether they appear in the output or not.",frequency_penalty:"Limits tokens based on how often they appear in the output.",dry_multiplier:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling multiplier.",dry_base:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling base value.",dry_allowed_length:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the allowed length for DRY sampling.",dry_penalty_last_n:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets DRY penalty for the last n tokens.",max_tokens:"The maximum number of token per output.",custom:""};Object.entries(jd).filter(l=>EG(l[1])).map(l=>l[0]);const Fk=["light","dark"].concat(Object.keys(Ez).filter(l=>l!=="light"&&l!=="dark"));var ZN={exports:{}},Jk=ZN.exports,PV;function Uk(){return PV||(PV=1,function(l,t){(function(e,n){l.exports=n()})(Jk,function(){var e=function(N,M){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,x){V.__proto__=x}||function(V,x){for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&(V[k]=x[k])})(N,M)},n=function(){return(n=Object.assign||function(N){for(var M,V=1,x=arguments.length;V<x;V++)for(var k in M=arguments[V])Object.prototype.hasOwnProperty.call(M,k)&&(N[k]=M[k]);return N}).apply(this,arguments)};function i(N,M,V){for(var x,k=0,F=M.length;k<F;k++)!x&&k in M||((x=x||Array.prototype.slice.call(M,0,k))[k]=M[k]);return N.concat(x||Array.prototype.slice.call(M))}var s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:vS,a=Object.keys,o=Array.isArray;function d(N,M){return typeof M!="object"||a(M).forEach(function(V){N[V]=M[V]}),N}typeof Promise>"u"||s.Promise||(s.Promise=Promise);var u=Object.getPrototypeOf,m={}.hasOwnProperty;function Z(N,M){return m.call(N,M)}function p(N,M){typeof M=="function"&&(M=M(u(N))),(typeof Reflect>"u"?a:Reflect.ownKeys)(M).forEach(function(V){G(N,V,M[V])})}var y=Object.defineProperty;function G(N,M,V,x){y(N,M,d(V&&Z(V,"get")&&typeof V.get=="function"?{get:V.get,set:V.set,configurable:!0}:{value:V,configurable:!0,writable:!0},x))}function X(N){return{from:function(M){return N.prototype=Object.create(M.prototype),G(N.prototype,"constructor",N),{extend:p.bind(null,N.prototype)}}}}var z=Object.getOwnPropertyDescriptor,L=[].slice;function S(N,M,V){return L.call(N,M,V)}function R(N,M){return M(N)}function J(N){if(!N)throw new Error("Assertion Failed")}function U(N){s.setImmediate?setImmediate(N):setTimeout(N,0)}function j(N,M){if(typeof M=="string"&&Z(N,M))return N[M];if(!M)return N;if(typeof M!="string"){for(var V=[],x=0,k=M.length;x<k;++x){var F=j(N,M[x]);V.push(F)}return V}var B=M.indexOf(".");if(B!==-1){var $=N[M.substr(0,B)];return $==null?void 0:j($,M.substr(B+1))}}function Q(N,M,V){if(N&&M!==void 0&&!("isFrozen"in Object&&Object.isFrozen(N)))if(typeof M!="string"&&"length"in M){J(typeof V!="string"&&"length"in V);for(var x=0,k=M.length;x<k;++x)Q(N,M[x],V[x])}else{var F,B,$=M.indexOf(".");$!==-1?(F=M.substr(0,$),(B=M.substr($+1))===""?V===void 0?o(N)&&!isNaN(parseInt(F))?N.splice(F,1):delete N[F]:N[F]=V:Q($=!($=N[F])||!Z(N,F)?N[F]={}:$,B,V)):V===void 0?o(N)&&!isNaN(parseInt(M))?N.splice(M,1):delete N[M]:N[M]=V}}function it(N){var M,V={};for(M in N)Z(N,M)&&(V[M]=N[M]);return V}var at=[].concat;function _(N){return at.apply([],N)}var It="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(_([8,16,32,64].map(function(N){return["Int","Uint","Float"].map(function(M){return M+N+"Array"})}))).filter(function(N){return s[N]}),Wt=new Set(It.map(function(N){return s[N]})),ht=null;function Tt(N){return ht=new WeakMap,N=function M(V){if(!V||typeof V!="object")return V;var x=ht.get(V);if(x)return x;if(o(V)){x=[],ht.set(V,x);for(var k=0,F=V.length;k<F;++k)x.push(M(V[k]))}else if(Wt.has(V.constructor))x=V;else{var B,$=u(V);for(B in x=$===Object.prototype?{}:Object.create($),ht.set(V,x),V)Z(V,B)&&(x[B]=M(V[B]))}return x}(N),ht=null,N}var Zt={}.toString;function Xt(N){return Zt.call(N).slice(8,-1)}var St=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Rt=typeof St=="symbol"?function(N){var M;return N!=null&&(M=N[St])&&M.apply(N)}:function(){return null};function Yt(N,M){return M=N.indexOf(M),0<=M&&N.splice(M,1),0<=M}var Dt={};function K(N){var M,V,x,k;if(arguments.length===1){if(o(N))return N.slice();if(this===Dt&&typeof N=="string")return[N];if(k=Rt(N)){for(V=[];!(x=k.next()).done;)V.push(x.value);return V}if(N==null)return[N];if(typeof(M=N.length)!="number")return[N];for(V=new Array(M);M--;)V[M]=N[M];return V}for(M=arguments.length,V=new Array(M);M--;)V[M]=arguments[M];return V}var lt=typeof Symbol<"u"?function(N){return N[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},xe=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Ns=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(xe),Mt={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function H(N,M){this.name=N,this.message=M}function le(N,M){return N+". Errors: "+Object.keys(M).map(function(V){return M[V].toString()}).filter(function(V,x,k){return k.indexOf(V)===x}).join(`
`)}function Ze(N,M,V,x){this.failures=M,this.failedKeys=x,this.successCount=V,this.message=le(N,M)}function $t(N,M){this.name="BulkError",this.failures=Object.keys(M).map(function(V){return M[V]}),this.failuresByPos=M,this.message=le(N,this.failures)}X(H).from(Error).extend({toString:function(){return this.name+": "+this.message}}),X(Ze).from(H),X($t).from(H);var me=Ns.reduce(function(N,M){return N[M]=M+"Error",N},{}),ye=H,Ft=Ns.reduce(function(N,M){var V=M+"Error";function x(k,F){this.name=V,k?typeof k=="string"?(this.message="".concat(k).concat(F?`
`+F:""),this.inner=F||null):typeof k=="object"&&(this.message="".concat(k.name," ").concat(k.message),this.inner=k):(this.message=Mt[M]||V,this.inner=null)}return X(x).from(ye),N[M]=x,N},{});Ft.Syntax=SyntaxError,Ft.Type=TypeError,Ft.Range=RangeError;var Pe=xe.reduce(function(N,M){return N[M+"Error"]=Ft[M],N},{}),yl=Ns.reduce(function(N,M){return["Syntax","Type","Range"].indexOf(M)===-1&&(N[M+"Error"]=Ft[M]),N},{});function Oe(){}function nn(N){return N}function Fn(N,M){return N==null||N===nn?M:function(V){return M(N(V))}}function hn(N,M){return function(){N.apply(this,arguments),M.apply(this,arguments)}}function nl(N,M){return N===Oe?M:function(){var V=N.apply(this,arguments);V!==void 0&&(arguments[0]=V);var x=this.onsuccess,k=this.onerror;this.onsuccess=null,this.onerror=null;var F=M.apply(this,arguments);return x&&(this.onsuccess=this.onsuccess?hn(x,this.onsuccess):x),k&&(this.onerror=this.onerror?hn(k,this.onerror):k),F!==void 0?F:V}}function Pl(N,M){return N===Oe?M:function(){N.apply(this,arguments);var V=this.onsuccess,x=this.onerror;this.onsuccess=this.onerror=null,M.apply(this,arguments),V&&(this.onsuccess=this.onsuccess?hn(V,this.onsuccess):V),x&&(this.onerror=this.onerror?hn(x,this.onerror):x)}}function bn(N,M){return N===Oe?M:function(V){var x=N.apply(this,arguments);d(V,x);var k=this.onsuccess,F=this.onerror;return this.onsuccess=null,this.onerror=null,V=M.apply(this,arguments),k&&(this.onsuccess=this.onsuccess?hn(k,this.onsuccess):k),F&&(this.onerror=this.onerror?hn(F,this.onerror):F),x===void 0?V===void 0?void 0:V:d(x,V)}}function In(N,M){return N===Oe?M:function(){return M.apply(this,arguments)!==!1&&N.apply(this,arguments)}}function Jn(N,M){return N===Oe?M:function(){var V=N.apply(this,arguments);if(V&&typeof V.then=="function"){for(var x=this,k=arguments.length,F=new Array(k);k--;)F[k]=arguments[k];return V.then(function(){return M.apply(x,F)})}return M.apply(this,arguments)}}yl.ModifyError=Ze,yl.DexieError=H,yl.BulkError=$t;var Zn=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Za(N){Zn=N}var Qi={},ee=100,It=typeof Promise>"u"?[]:function(){var N=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[N,u(N),N];var M=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[M,u(M),N]}(),xe=It[0],Ns=It[1],It=It[2],Ns=Ns&&Ns.then,jt=xe&&xe.constructor,Me=!!It,Ce=function(N,M){wn.push([N,M]),Rl&&(queueMicrotask(Ke),Rl=!1)},Be=!0,Rl=!0,pn=[],yn=[],Un=nn,zn={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Oe,pgp:!1,env:{},finalize:Oe},se=zn,wn=[],gl=0,ks=[];function oe(N){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var M=this._PSD=se;if(typeof N!="function"){if(N!==Qi)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&fs(this,this._value))}this._state=null,this._value=null,++M.ref,function V(x,k){try{k(function(F){if(x._state===null){if(F===x)throw new TypeError("A promise cannot be resolved with itself.");var B=x._lib&&Vl();F&&typeof F.then=="function"?V(x,function($,ct){F instanceof oe?F._then($,ct):F.then($,ct)}):(x._state=!0,x._value=F,nt(x)),B&&Il()}},fs.bind(null,x))}catch(F){fs(x,F)}}(this,N)}var pa={get:function(){var N=se,M=Na;function V(x,k){var F=this,B=!N.global&&(N!==se||M!==Na),$=B&&!ci(),ct=new oe(function(dt,pt){ft(F,new ya(t0(x,N,B,$),t0(k,N,B,$),dt,pt,N))});return this._consoleTask&&(ct._consoleTask=this._consoleTask),ct}return V.prototype=Qi,V},set:function(N){G(this,"then",N&&N.prototype===Qi?pa:{get:function(){return N},set:pa.set})}};function ya(N,M,V,x,k){this.onFulfilled=typeof N=="function"?N:null,this.onRejected=typeof M=="function"?M:null,this.resolve=V,this.reject=x,this.psd=k}function fs(N,M){var V,x;yn.push(M),N._state===null&&(V=N._lib&&Vl(),M=Un(M),N._state=!1,N._value=M,x=N,pn.some(function(k){return k._value===x._value})||pn.push(x),nt(N),V&&Il())}function nt(N){var M=N._listeners;N._listeners=[];for(var V=0,x=M.length;V<x;++V)ft(N,M[V]);var k=N._PSD;--k.ref||k.finalize(),gl===0&&(++gl,Ce(function(){--gl==0&&Ne()},[]))}function ft(N,M){if(N._state!==null){var V=N._state?M.onFulfilled:M.onRejected;if(V===null)return(N._state?M.resolve:M.reject)(N._value);++M.psd.ref,++gl,Ce(ce,[V,N,M])}else N._listeners.push(M)}function ce(N,M,V){try{var x,k=M._value;!M._state&&yn.length&&(yn=[]),x=Zn&&M._consoleTask?M._consoleTask.run(function(){return N(k)}):N(k),M._state||yn.indexOf(k)!==-1||function(F){for(var B=pn.length;B;)if(pn[--B]._value===F._value)return pn.splice(B,1)}(M),V.resolve(x)}catch(F){V.reject(F)}finally{--gl==0&&Ne(),--V.psd.ref||V.psd.finalize()}}function Ke(){Wa(zn,function(){Vl()&&Il()})}function Vl(){var N=Be;return Rl=Be=!1,N}function Il(){var N,M,V;do for(;0<wn.length;)for(N=wn,wn=[],V=N.length,M=0;M<V;++M){var x=N[M];x[0].apply(null,x[1])}while(0<wn.length);Rl=Be=!0}function Ne(){var N=pn;pn=[],N.forEach(function(x){x._PSD.onunhandled.call(null,x._value,x)});for(var M=ks.slice(0),V=M.length;V;)M[--V]()}function he(N){return new oe(Qi,!1,N)}function de(N,M){var V=se;return function(){var x=Vl(),k=se;try{return Ai(V,!0),N.apply(this,arguments)}catch(F){M&&M(F)}finally{Ai(k,!1),x&&Il()}}}p(oe.prototype,{then:pa,_then:function(N,M){ft(this,new ya(null,null,N,M,se))},catch:function(N){if(arguments.length===1)return this.then(null,N);var M=N,V=arguments[1];return typeof M=="function"?this.then(null,function(x){return(x instanceof M?V:he)(x)}):this.then(null,function(x){return(x&&x.name===M?V:he)(x)})},finally:function(N){return this.then(function(M){return oe.resolve(N()).then(function(){return M})},function(M){return oe.resolve(N()).then(function(){return he(M)})})},timeout:function(N,M){var V=this;return N<1/0?new oe(function(x,k){var F=setTimeout(function(){return k(new Ft.Timeout(M))},N);V.then(x,k).finally(clearTimeout.bind(null,F))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&G(oe.prototype,Symbol.toStringTag,"Dexie.Promise"),zn.env=$d(),p(oe,{all:function(){var N=K.apply(null,arguments).map(ho);return new oe(function(M,V){N.length===0&&M([]);var x=N.length;N.forEach(function(k,F){return oe.resolve(k).then(function(B){N[F]=B,--x||M(N)},V)})})},resolve:function(N){return N instanceof oe?N:N&&typeof N.then=="function"?new oe(function(M,V){N.then(M,V)}):new oe(Qi,!0,N)},reject:he,race:function(){var N=K.apply(null,arguments).map(ho);return new oe(function(M,V){N.map(function(x){return oe.resolve(x).then(M,V)})})},PSD:{get:function(){return se},set:function(N){return se=N}},totalEchoes:{get:function(){return Na}},newPSD:Zs,usePSD:Wa,scheduler:{get:function(){return Ce},set:function(N){Ce=N}},rejectionMapper:{get:function(){return Un},set:function(N){Un=N}},follow:function(N,M){return new oe(function(V,x){return Zs(function(k,F){var B=se;B.unhandleds=[],B.onunhandled=F,B.finalize=hn(function(){var $,ct=this;$=function(){ct.unhandleds.length===0?k():F(ct.unhandleds[0])},ks.push(function dt(){$(),ks.splice(ks.indexOf(dt),1)}),++gl,Ce(function(){--gl==0&&Ne()},[])},B.finalize),N()},M,V,x)})}}),jt&&(jt.allSettled&&G(oe,"allSettled",function(){var N=K.apply(null,arguments).map(ho);return new oe(function(M){N.length===0&&M([]);var V=N.length,x=new Array(V);N.forEach(function(k,F){return oe.resolve(k).then(function(B){return x[F]={status:"fulfilled",value:B}},function(B){return x[F]={status:"rejected",reason:B}}).then(function(){return--V||M(x)})})})}),jt.any&&typeof AggregateError<"u"&&G(oe,"any",function(){var N=K.apply(null,arguments).map(ho);return new oe(function(M,V){N.length===0&&V(new AggregateError([]));var x=N.length,k=new Array(x);N.forEach(function(F,B){return oe.resolve(F).then(function($){return M($)},function($){k[B]=$,--x||V(new AggregateError(k))})})})}),jt.withResolvers&&(oe.withResolvers=jt.withResolvers));var ul={awaits:0,echoes:0,id:0},kl=0,Bi=[],Ds=0,Na=0,Xb=0;function Zs(N,M,V,x){var k=se,F=Object.create(k);return F.parent=k,F.ref=0,F.global=!1,F.id=++Xb,zn.env,F.env=Me?{Promise:oe,PromiseProp:{value:oe,configurable:!0,writable:!0},all:oe.all,race:oe.race,allSettled:oe.allSettled,any:oe.any,resolve:oe.resolve,reject:oe.reject}:{},M&&d(F,M),++k.ref,F.finalize=function(){--this.parent.ref||this.parent.finalize()},x=Wa(F,N,V,x),F.ref===0&&F.finalize(),x}function Tc(){return ul.id||(ul.id=++kl),++ul.awaits,ul.echoes+=ee,ul.id}function ci(){return!!ul.awaits&&(--ul.awaits==0&&(ul.id=0),ul.echoes=ul.awaits*ee,!0)}function ho(N){return ul.echoes&&N&&N.constructor===jt?(Tc(),N.then(function(M){return ci(),M},function(M){return ci(),Hl(M)})):N}function qd(){var N=Bi[Bi.length-1];Bi.pop(),Ai(N,!1)}function Ai(N,M){var V,x=se;(M?!ul.echoes||Ds++&&N===se:!Ds||--Ds&&N===se)||queueMicrotask(M?(function(k){++Na,ul.echoes&&--ul.echoes!=0||(ul.echoes=ul.awaits=ul.id=0),Bi.push(se),Ai(k,!0)}).bind(null,N):qd),N!==se&&(se=N,x===zn&&(zn.env=$d()),Me&&(V=zn.env.Promise,M=N.env,(x.global||N.global)&&(Object.defineProperty(s,"Promise",M.PromiseProp),V.all=M.all,V.race=M.race,V.resolve=M.resolve,V.reject=M.reject,M.allSettled&&(V.allSettled=M.allSettled),M.any&&(V.any=M.any))))}function $d(){var N=s.Promise;return Me?{Promise:N,PromiseProp:Object.getOwnPropertyDescriptor(s,"Promise"),all:N.all,race:N.race,allSettled:N.allSettled,any:N.any,resolve:N.resolve,reject:N.reject}:{}}function Wa(N,M,V,x,k){var F=se;try{return Ai(N,!0),M(V,x,k)}finally{Ai(F,!1)}}function t0(N,M,V,x){return typeof N!="function"?N:function(){var k=se;V&&Tc(),Ai(M,!0);try{return N.apply(this,arguments)}finally{Ai(k,!1),x&&queueMicrotask(ci)}}}function _i(N){Promise===jt&&ul.echoes===0?Ds===0?N():enqueueNativeMicroTask(N):setTimeout(N,0)}(""+Ns).indexOf("[native code]")===-1&&(Tc=ci=Oe);var Hl=oe.reject,Ma="￿",Ml="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",cm="String expected.",Ga=[],Xa="__dbnames",Vc="readonly",Pt="readwrite";function Ie(N,M){return N?M?function(){return N.apply(this,arguments)&&M.apply(this,arguments)}:N:M}var el={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function il(N){return typeof N!="string"||/\./.test(N)?function(M){return M}:function(M){return M[N]===void 0&&N in M&&delete(M=Tt(M))[N],M}}function sn(){throw Ft.Type()}function ke(N,M){try{var V=js(N),x=js(M);if(V!==x)return V==="Array"?1:x==="Array"?-1:V==="binary"?1:x==="binary"?-1:V==="string"?1:x==="string"?-1:V==="Date"?1:x!=="Date"?NaN:-1;switch(V){case"number":case"Date":case"string":return M<N?1:N<M?-1:0;case"binary":return function(k,F){for(var B=k.length,$=F.length,ct=B<$?B:$,dt=0;dt<ct;++dt)if(k[dt]!==F[dt])return k[dt]<F[dt]?-1:1;return B===$?0:B<$?-1:1}(bo(N),bo(M));case"Array":return function(k,F){for(var B=k.length,$=F.length,ct=B<$?B:$,dt=0;dt<ct;++dt){var pt=ke(k[dt],F[dt]);if(pt!==0)return pt}return B===$?0:B<$?-1:1}(N,M)}}catch{}return NaN}function js(N){var M=typeof N;return M!="object"?M:ArrayBuffer.isView(N)?"binary":(N=Xt(N),N==="ArrayBuffer"?"binary":N)}function bo(N){return N instanceof Uint8Array?N:ArrayBuffer.isView(N)?new Uint8Array(N.buffer,N.byteOffset,N.byteLength):new Uint8Array(N)}var oi=(cl.prototype._trans=function(N,M,V){var x=this._tx||se.trans,k=this.name,F=Zn&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(N==="readonly"?"read":"write"," ").concat(this.name));function B(dt,pt,et){if(!et.schema[k])throw new Ft.NotFound("Table "+k+" not part of transaction");return M(et.idbtrans,et)}var $=Vl();try{var ct=x&&x.db._novip===this.db._novip?x===se.trans?x._promise(N,B,V):Zs(function(){return x._promise(N,B,V)},{trans:x,transless:se.transless||se}):function dt(pt,et,yt,ot){if(pt.idbdb&&(pt._state.openComplete||se.letThrough||pt._vip)){var bt=pt._createTransaction(et,yt,pt._dbSchema);try{bt.create(),pt._state.PR1398_maxLoop=3}catch(Nt){return Nt.name===me.InvalidState&&pt.isOpen()&&0<--pt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),pt.close({disableAutoOpen:!1}),pt.open().then(function(){return dt(pt,et,yt,ot)})):Hl(Nt)}return bt._promise(et,function(Nt,mt){return Zs(function(){return se.trans=bt,ot(Nt,mt,bt)})}).then(function(Nt){if(et==="readwrite")try{bt.idbtrans.commit()}catch{}return et==="readonly"?Nt:bt._completion.then(function(){return Nt})})}if(pt._state.openComplete)return Hl(new Ft.DatabaseClosed(pt._state.dbOpenError));if(!pt._state.isBeingOpened){if(!pt._state.autoOpen)return Hl(new Ft.DatabaseClosed);pt.open().catch(Oe)}return pt._state.dbReadyPromise.then(function(){return dt(pt,et,yt,ot)})}(this.db,N,[this.name],B);return F&&(ct._consoleTask=F,ct=ct.catch(function(dt){return console.trace(dt),Hl(dt)})),ct}finally{$&&Il()}},cl.prototype.get=function(N,M){var V=this;return N&&N.constructor===Object?this.where(N).first(M):N==null?Hl(new Ft.Type("Invalid argument to Table.get()")):this._trans("readonly",function(x){return V.core.get({trans:x,key:N}).then(function(k){return V.hook.reading.fire(k)})}).then(M)},cl.prototype.where=function(N){if(typeof N=="string")return new this.db.WhereClause(this,N);if(o(N))return new this.db.WhereClause(this,"[".concat(N.join("+"),"]"));var M=a(N);if(M.length===1)return this.where(M[0]).equals(N[M[0]]);var V=this.schema.indexes.concat(this.schema.primKey).filter(function($){if($.compound&&M.every(function(dt){return 0<=$.keyPath.indexOf(dt)})){for(var ct=0;ct<M.length;++ct)if(M.indexOf($.keyPath[ct])===-1)return!1;return!0}return!1}).sort(function($,ct){return $.keyPath.length-ct.keyPath.length})[0];if(V&&this.db._maxKey!==Ma){var F=V.keyPath.slice(0,M.length);return this.where(F).equals(F.map(function(ct){return N[ct]}))}!V&&Zn&&console.warn("The query ".concat(JSON.stringify(N)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(M.join("+"),"]"));var x=this.schema.idxByName;function k($,ct){return ke($,ct)===0}var B=M.reduce(function(et,ct){var dt=et[0],pt=et[1],et=x[ct],yt=N[ct];return[dt||et,dt||!et?Ie(pt,et&&et.multi?function(ot){return ot=j(ot,ct),o(ot)&&ot.some(function(bt){return k(yt,bt)})}:function(ot){return k(yt,j(ot,ct))}):pt]},[null,null]),F=B[0],B=B[1];return F?this.where(F.name).equals(N[F.keyPath]).filter(B):V?this.filter(B):this.where(M).equals("")},cl.prototype.filter=function(N){return this.toCollection().and(N)},cl.prototype.count=function(N){return this.toCollection().count(N)},cl.prototype.offset=function(N){return this.toCollection().offset(N)},cl.prototype.limit=function(N){return this.toCollection().limit(N)},cl.prototype.each=function(N){return this.toCollection().each(N)},cl.prototype.toArray=function(N){return this.toCollection().toArray(N)},cl.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},cl.prototype.orderBy=function(N){return new this.db.Collection(new this.db.WhereClause(this,o(N)?"[".concat(N.join("+"),"]"):N))},cl.prototype.reverse=function(){return this.toCollection().reverse()},cl.prototype.mapToClass=function(N){var M,V=this.db,x=this.name;function k(){return M!==null&&M.apply(this,arguments)||this}(this.schema.mappedClass=N).prototype instanceof sn&&(function(ct,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Class extends value "+String(dt)+" is not a constructor or null");function pt(){this.constructor=ct}e(ct,dt),ct.prototype=dt===null?Object.create(dt):(pt.prototype=dt.prototype,new pt)}(k,M=N),Object.defineProperty(k.prototype,"db",{get:function(){return V},enumerable:!1,configurable:!0}),k.prototype.table=function(){return x},N=k);for(var F=new Set,B=N.prototype;B;B=u(B))Object.getOwnPropertyNames(B).forEach(function(ct){return F.add(ct)});function $(ct){if(!ct)return ct;var dt,pt=Object.create(N.prototype);for(dt in ct)if(!F.has(dt))try{pt[dt]=ct[dt]}catch{}return pt}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=$,this.hook("reading",$),N},cl.prototype.defineClass=function(){return this.mapToClass(function(N){d(this,N)})},cl.prototype.add=function(N,M){var V=this,x=this.schema.primKey,k=x.auto,F=x.keyPath,B=N;return F&&k&&(B=il(F)(N)),this._trans("readwrite",function($){return V.core.mutate({trans:$,type:"add",keys:M!=null?[M]:null,values:[B]})}).then(function($){return $.numFailures?oe.reject($.failures[0]):$.lastResult}).then(function($){if(F)try{Q(N,F,$)}catch{}return $})},cl.prototype.update=function(N,M){return typeof N!="object"||o(N)?this.where(":id").equals(N).modify(M):(N=j(N,this.schema.primKey.keyPath),N===void 0?Hl(new Ft.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(N).modify(M))},cl.prototype.put=function(N,M){var V=this,x=this.schema.primKey,k=x.auto,F=x.keyPath,B=N;return F&&k&&(B=il(F)(N)),this._trans("readwrite",function($){return V.core.mutate({trans:$,type:"put",values:[B],keys:M!=null?[M]:null})}).then(function($){return $.numFailures?oe.reject($.failures[0]):$.lastResult}).then(function($){if(F)try{Q(N,F,$)}catch{}return $})},cl.prototype.delete=function(N){var M=this;return this._trans("readwrite",function(V){return M.core.mutate({trans:V,type:"delete",keys:[N]})}).then(function(V){return V.numFailures?oe.reject(V.failures[0]):void 0})},cl.prototype.clear=function(){var N=this;return this._trans("readwrite",function(M){return N.core.mutate({trans:M,type:"deleteRange",range:el})}).then(function(M){return M.numFailures?oe.reject(M.failures[0]):void 0})},cl.prototype.bulkGet=function(N){var M=this;return this._trans("readonly",function(V){return M.core.getMany({keys:N,trans:V}).then(function(x){return x.map(function(k){return M.hook.reading.fire(k)})})})},cl.prototype.bulkAdd=function(N,M,V){var x=this,k=Array.isArray(M)?M:void 0,F=(V=V||(k?void 0:M))?V.allKeys:void 0;return this._trans("readwrite",function(B){var dt=x.schema.primKey,$=dt.auto,dt=dt.keyPath;if(dt&&k)throw new Ft.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(k&&k.length!==N.length)throw new Ft.InvalidArgument("Arguments objects and keys must have the same length");var ct=N.length,dt=dt&&$?N.map(il(dt)):N;return x.core.mutate({trans:B,type:"add",keys:k,values:dt,wantResults:F}).then(function(bt){var et=bt.numFailures,yt=bt.results,ot=bt.lastResult,bt=bt.failures;if(et===0)return F?yt:ot;throw new $t("".concat(x.name,".bulkAdd(): ").concat(et," of ").concat(ct," operations failed"),bt)})})},cl.prototype.bulkPut=function(N,M,V){var x=this,k=Array.isArray(M)?M:void 0,F=(V=V||(k?void 0:M))?V.allKeys:void 0;return this._trans("readwrite",function(B){var dt=x.schema.primKey,$=dt.auto,dt=dt.keyPath;if(dt&&k)throw new Ft.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(k&&k.length!==N.length)throw new Ft.InvalidArgument("Arguments objects and keys must have the same length");var ct=N.length,dt=dt&&$?N.map(il(dt)):N;return x.core.mutate({trans:B,type:"put",keys:k,values:dt,wantResults:F}).then(function(bt){var et=bt.numFailures,yt=bt.results,ot=bt.lastResult,bt=bt.failures;if(et===0)return F?yt:ot;throw new $t("".concat(x.name,".bulkPut(): ").concat(et," of ").concat(ct," operations failed"),bt)})})},cl.prototype.bulkUpdate=function(N){var M=this,V=this.core,x=N.map(function(B){return B.key}),k=N.map(function(B){return B.changes}),F=[];return this._trans("readwrite",function(B){return V.getMany({trans:B,keys:x,cache:"clone"}).then(function($){var ct=[],dt=[];N.forEach(function(et,yt){var ot=et.key,bt=et.changes,Nt=$[yt];if(Nt){for(var mt=0,Lt=Object.keys(bt);mt<Lt.length;mt++){var xt=Lt[mt],gt=bt[xt];if(xt===M.schema.primKey.keyPath){if(ke(gt,ot)!==0)throw new Ft.Constraint("Cannot update primary key in bulkUpdate()")}else Q(Nt,xt,gt)}F.push(yt),ct.push(ot),dt.push(Nt)}});var pt=ct.length;return V.mutate({trans:B,type:"put",keys:ct,values:dt,updates:{keys:x,changeSpecs:k}}).then(function(et){var yt=et.numFailures,ot=et.failures;if(yt===0)return pt;for(var bt=0,Nt=Object.keys(ot);bt<Nt.length;bt++){var mt,Lt=Nt[bt],xt=F[Number(Lt)];xt!=null&&(mt=ot[Lt],delete ot[Lt],ot[xt]=mt)}throw new $t("".concat(M.name,".bulkUpdate(): ").concat(yt," of ").concat(pt," operations failed"),ot)})})})},cl.prototype.bulkDelete=function(N){var M=this,V=N.length;return this._trans("readwrite",function(x){return M.core.mutate({trans:x,type:"delete",keys:N})}).then(function(B){var k=B.numFailures,F=B.lastResult,B=B.failures;if(k===0)return F;throw new $t("".concat(M.name,".bulkDelete(): ").concat(k," of ").concat(V," operations failed"),B)})},cl);function cl(){}function Os(N){function M(B,$){if($){for(var ct=arguments.length,dt=new Array(ct-1);--ct;)dt[ct-1]=arguments[ct];return V[B].subscribe.apply(null,dt),N}if(typeof B=="string")return V[B]}var V={};M.addEventType=F;for(var x=1,k=arguments.length;x<k;++x)F(arguments[x]);return M;function F(B,$,ct){if(typeof B!="object"){var dt;$=$||In;var pt={subscribers:[],fire:ct=ct||Oe,subscribe:function(et){pt.subscribers.indexOf(et)===-1&&(pt.subscribers.push(et),pt.fire=$(pt.fire,et))},unsubscribe:function(et){pt.subscribers=pt.subscribers.filter(function(yt){return yt!==et}),pt.fire=pt.subscribers.reduce($,ct)}};return V[B]=M[B]=pt}a(dt=B).forEach(function(et){var yt=dt[et];if(o(yt))F(et,dt[et][0],dt[et][1]);else{if(yt!=="asap")throw new Ft.InvalidArgument("Invalid event config");var ot=F(et,nn,function(){for(var bt=arguments.length,Nt=new Array(bt);bt--;)Nt[bt]=arguments[bt];ot.subscribers.forEach(function(mt){U(function(){mt.apply(null,Nt)})})})}})}}function ps(N,M){return X(M).from({prototype:N}),M}function ys(N,M){return!(N.filter||N.algorithm||N.or)&&(M?N.justLimit:!N.replayFilter)}function e0(N,M){N.filter=Ie(N.filter,M)}function l0(N,M,V){var x=N.replayFilter;N.replayFilter=x?function(){return Ie(x(),M())}:M,N.justLimit=V&&!x}function Lc(N,M){if(N.isPrimKey)return M.primaryKey;var V=M.getIndexByKeyPath(N.index);if(!V)throw new Ft.Schema("KeyPath "+N.index+" on object store "+M.name+" is not indexed");return V}function n0(N,M,V){var x=Lc(N,M.schema);return M.openCursor({trans:V,values:!N.keysOnly,reverse:N.dir==="prev",unique:!!N.unique,query:{index:x,range:N.range}})}function Cs(N,M,V,x){var k=N.replayFilter?Ie(N.filter,N.replayFilter()):N.filter;if(N.or){var F={},B=function($,ct,dt){var pt,et;k&&!k(ct,dt,function(yt){return ct.stop(yt)},function(yt){return ct.fail(yt)})||((et=""+(pt=ct.primaryKey))=="[object ArrayBuffer]"&&(et=""+new Uint8Array(pt)),Z(F,et)||(F[et]=!0,M($,ct,dt)))};return Promise.all([N.or._iterate(B,V),Ba(n0(N,x,V),N.algorithm,B,!N.keysOnly&&N.valueMapper)])}return Ba(n0(N,x,V),Ie(N.algorithm,k),M,!N.keysOnly&&N.valueMapper)}function Ba(N,M,V,x){var k=de(x?function(F,B,$){return V(x(F),B,$)}:V);return N.then(function(F){if(F)return F.start(function(){var B=function(){return F.continue()};M&&!M(F,function($){return B=$},function($){F.stop($),B=Oe},function($){F.fail($),B=Oe})||k(F.value,F,function($){return B=$}),B()})})}var ri=(Ir.prototype.execute=function(N){var M=this["@@propmod"];if(M.add!==void 0){var V=M.add;if(o(V))return i(i([],o(N)?N:[],!0),V).sort();if(typeof V=="number")return(Number(N)||0)+V;if(typeof V=="bigint")try{return BigInt(N)+V}catch{return BigInt(0)+V}throw new TypeError("Invalid term ".concat(V))}if(M.remove!==void 0){var x=M.remove;if(o(x))return o(N)?N.filter(function(k){return!x.includes(k)}).sort():[];if(typeof x=="number")return Number(N)-x;if(typeof x=="bigint")try{return BigInt(N)-x}catch{return BigInt(0)-x}throw new TypeError("Invalid subtrahend ".concat(x))}return V=(V=M.replacePrefix)===null||V===void 0?void 0:V[0],V&&typeof N=="string"&&N.startsWith(V)?M.replacePrefix[1]+N.substring(V.length):N},Ir);function Ir(N){this["@@propmod"]=N}var Nl=(re.prototype._read=function(N,M){var V=this._ctx;return V.error?V.table._trans(null,Hl.bind(null,V.error)):V.table._trans("readonly",N).then(M)},re.prototype._write=function(N){var M=this._ctx;return M.error?M.table._trans(null,Hl.bind(null,M.error)):M.table._trans("readwrite",N,"locked")},re.prototype._addAlgorithm=function(N){var M=this._ctx;M.algorithm=Ie(M.algorithm,N)},re.prototype._iterate=function(N,M){return Cs(this._ctx,N,M,this._ctx.table.core)},re.prototype.clone=function(N){var M=Object.create(this.constructor.prototype),V=Object.create(this._ctx);return N&&d(V,N),M._ctx=V,M},re.prototype.raw=function(){return this._ctx.valueMapper=null,this},re.prototype.each=function(N){var M=this._ctx;return this._read(function(V){return Cs(M,N,V,M.table.core)})},re.prototype.count=function(N){var M=this;return this._read(function(V){var x=M._ctx,k=x.table.core;if(ys(x,!0))return k.count({trans:V,query:{index:Lc(x,k.schema),range:x.range}}).then(function(B){return Math.min(B,x.limit)});var F=0;return Cs(x,function(){return++F,!1},V,k).then(function(){return F})}).then(N)},re.prototype.sortBy=function(N,M){var V=N.split(".").reverse(),x=V[0],k=V.length-1;function F(ct,dt){return dt?F(ct[V[dt]],dt-1):ct[x]}var B=this._ctx.dir==="next"?1:-1;function $(ct,dt){return ke(F(ct,k),F(dt,k))*B}return this.toArray(function(ct){return ct.sort($)}).then(M)},re.prototype.toArray=function(N){var M=this;return this._read(function(V){var x=M._ctx;if(x.dir==="next"&&ys(x,!0)&&0<x.limit){var k=x.valueMapper,F=Lc(x,x.table.core.schema);return x.table.core.query({trans:V,limit:x.limit,values:!0,query:{index:F,range:x.range}}).then(function($){return $=$.result,k?$.map(k):$})}var B=[];return Cs(x,function($){return B.push($)},V,x.table.core).then(function(){return B})},N)},re.prototype.offset=function(N){var M=this._ctx;return N<=0||(M.offset+=N,ys(M)?l0(M,function(){var V=N;return function(x,k){return V===0||(V===1?--V:k(function(){x.advance(V),V=0}),!1)}}):l0(M,function(){var V=N;return function(){return--V<0}})),this},re.prototype.limit=function(N){return this._ctx.limit=Math.min(this._ctx.limit,N),l0(this._ctx,function(){var M=N;return function(V,x,k){return--M<=0&&x(k),0<=M}},!0),this},re.prototype.until=function(N,M){return e0(this._ctx,function(V,x,k){return!N(V.value)||(x(k),M)}),this},re.prototype.first=function(N){return this.limit(1).toArray(function(M){return M[0]}).then(N)},re.prototype.last=function(N){return this.reverse().first(N)},re.prototype.filter=function(N){var M;return e0(this._ctx,function(V){return N(V.value)}),(M=this._ctx).isMatch=Ie(M.isMatch,N),this},re.prototype.and=function(N){return this.filter(N)},re.prototype.or=function(N){return new this.db.WhereClause(this._ctx.table,N,this)},re.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},re.prototype.desc=function(){return this.reverse()},re.prototype.eachKey=function(N){var M=this._ctx;return M.keysOnly=!M.isMatch,this.each(function(V,x){N(x.key,x)})},re.prototype.eachUniqueKey=function(N){return this._ctx.unique="unique",this.eachKey(N)},re.prototype.eachPrimaryKey=function(N){var M=this._ctx;return M.keysOnly=!M.isMatch,this.each(function(V,x){N(x.primaryKey,x)})},re.prototype.keys=function(N){var M=this._ctx;M.keysOnly=!M.isMatch;var V=[];return this.each(function(x,k){V.push(k.key)}).then(function(){return V}).then(N)},re.prototype.primaryKeys=function(N){var M=this._ctx;if(M.dir==="next"&&ys(M,!0)&&0<M.limit)return this._read(function(x){var k=Lc(M,M.table.core.schema);return M.table.core.query({trans:x,values:!1,limit:M.limit,query:{index:k,range:M.range}})}).then(function(x){return x.result}).then(N);M.keysOnly=!M.isMatch;var V=[];return this.each(function(x,k){V.push(k.primaryKey)}).then(function(){return V}).then(N)},re.prototype.uniqueKeys=function(N){return this._ctx.unique="unique",this.keys(N)},re.prototype.firstKey=function(N){return this.limit(1).keys(function(M){return M[0]}).then(N)},re.prototype.lastKey=function(N){return this.reverse().firstKey(N)},re.prototype.distinct=function(){var N=this._ctx,N=N.index&&N.table.schema.idxByName[N.index];if(!N||!N.multi)return this;var M={};return e0(this._ctx,function(k){var x=k.primaryKey.toString(),k=Z(M,x);return M[x]=!0,!k}),this},re.prototype.modify=function(N){var M=this,V=this._ctx;return this._write(function(x){var k,F,B;B=typeof N=="function"?N:(k=a(N),F=k.length,function(mt){for(var Lt=!1,xt=0;xt<F;++xt){var gt=k[xt],kt=N[gt],vt=j(mt,gt);kt instanceof ri?(Q(mt,gt,kt.execute(vt)),Lt=!0):vt!==kt&&(Q(mt,gt,kt),Lt=!0)}return Lt});var $=V.table.core,et=$.schema.primaryKey,ct=et.outbound,dt=et.extractKey,pt=200,et=M.db._options.modifyChunkSize;et&&(pt=typeof et=="object"?et[$.name]||et["*"]||200:et);function yt(mt,gt){var xt=gt.failures,gt=gt.numFailures;bt+=mt-gt;for(var kt=0,vt=a(xt);kt<vt.length;kt++){var te=vt[kt];ot.push(xt[te])}}var ot=[],bt=0,Nt=[];return M.clone().primaryKeys().then(function(mt){function Lt(gt){var kt=Math.min(pt,mt.length-gt);return $.getMany({trans:x,keys:mt.slice(gt,gt+kt),cache:"immutable"}).then(function(vt){for(var te=[],Kt=[],Bt=ct?[]:null,ae=[],At=0;At<kt;++At){var pe=vt[At],qe={value:Tt(pe),primKey:mt[gt+At]};B.call(qe,qe.value,qe)!==!1&&(qe.value==null?ae.push(mt[gt+At]):ct||ke(dt(pe),dt(qe.value))===0?(Kt.push(qe.value),ct&&Bt.push(mt[gt+At])):(ae.push(mt[gt+At]),te.push(qe.value)))}return Promise.resolve(0<te.length&&$.mutate({trans:x,type:"add",values:te}).then(function(ll){for(var ol in ll.failures)ae.splice(parseInt(ol),1);yt(te.length,ll)})).then(function(){return(0<Kt.length||xt&&typeof N=="object")&&$.mutate({trans:x,type:"put",keys:Bt,values:Kt,criteria:xt,changeSpec:typeof N!="function"&&N,isAdditionalChunk:0<gt}).then(function(ll){return yt(Kt.length,ll)})}).then(function(){return(0<ae.length||xt&&N===Zo)&&$.mutate({trans:x,type:"delete",keys:ae,criteria:xt,isAdditionalChunk:0<gt}).then(function(ll){return yt(ae.length,ll)})}).then(function(){return mt.length>gt+kt&&Lt(gt+pt)})})}var xt=ys(V)&&V.limit===1/0&&(typeof N!="function"||N===Zo)&&{index:V.index,range:V.range};return Lt(0).then(function(){if(0<ot.length)throw new Ze("Error modifying one or more objects",ot,bt,Nt);return mt.length})})})},re.prototype.delete=function(){var N=this._ctx,M=N.range;return ys(N)&&(N.isPrimKey||M.type===3)?this._write(function(V){var x=N.table.core.schema.primaryKey,k=M;return N.table.core.count({trans:V,query:{index:x,range:k}}).then(function(F){return N.table.core.mutate({trans:V,type:"deleteRange",range:k}).then(function(B){var $=B.failures;if(B.lastResult,B.results,B=B.numFailures,B)throw new Ze("Could not delete some values",Object.keys($).map(function(ct){return $[ct]}),F-B);return F-B})})}):this.modify(Zo)},re);function re(){}var Zo=function(N,M){return M.value=null};function Nn(N,M){return N<M?-1:N===M?0:1}function zl(N,M){return M<N?-1:N===M?0:1}function Rn(N,M,V){return N=N instanceof Ge?new N.Collection(N):N,N._ctx.error=new(V||TypeError)(M),N}function Gi(N){return new N.Collection(N,function(){return ne("")}).limit(0)}function Ya(N,M,V,x){var k,F,B,$,ct,dt,pt,et=V.length;if(!V.every(function(bt){return typeof bt=="string"}))return Rn(N,cm);function yt(bt){k=bt==="next"?function(mt){return mt.toUpperCase()}:function(mt){return mt.toLowerCase()},F=bt==="next"?function(mt){return mt.toLowerCase()}:function(mt){return mt.toUpperCase()},B=bt==="next"?Nn:zl;var Nt=V.map(function(mt){return{lower:F(mt),upper:k(mt)}}).sort(function(mt,Lt){return B(mt.lower,Lt.lower)});$=Nt.map(function(mt){return mt.upper}),ct=Nt.map(function(mt){return mt.lower}),pt=(dt=bt)==="next"?"":x}yt("next"),N=new N.Collection(N,function(){return Xi($[0],ct[et-1]+x)}),N._ondirectionchange=function(bt){yt(bt)};var ot=0;return N._addAlgorithm(function(bt,Nt,mt){var Lt=bt.key;if(typeof Lt!="string")return!1;var xt=F(Lt);if(M(xt,ct,ot))return!0;for(var gt=null,kt=ot;kt<et;++kt){var vt=function(te,Kt,Bt,ae,At,pe){for(var qe=Math.min(te.length,ae.length),ll=-1,ol=0;ol<qe;++ol){var ki=Kt[ol];if(ki!==ae[ol])return At(te[ol],Bt[ol])<0?te.substr(0,ol)+Bt[ol]+Bt.substr(ol+1):At(te[ol],ae[ol])<0?te.substr(0,ol)+ae[ol]+Bt.substr(ol+1):0<=ll?te.substr(0,ll)+Kt[ll]+Bt.substr(ll+1):null;At(te[ol],ki)<0&&(ll=ol)}return qe<ae.length&&pe==="next"?te+Bt.substr(te.length):qe<te.length&&pe==="prev"?te.substr(0,Bt.length):ll<0?null:te.substr(0,ll)+ae[ll]+Bt.substr(ll+1)}(Lt,xt,$[kt],ct[kt],B,dt);vt===null&&gt===null?ot=kt+1:(gt===null||0<B(gt,vt))&&(gt=vt)}return Nt(gt!==null?function(){bt.continue(gt+pt)}:mt),!1}),N}function Xi(N,M,V,x){return{type:2,lower:N,upper:M,lowerOpen:V,upperOpen:x}}function ne(N){return{type:1,lower:N,upper:N}}var Ge=(Object.defineProperty(Te.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Te.prototype.between=function(N,M,V,x){V=V!==!1,x=x===!0;try{return 0<this._cmp(N,M)||this._cmp(N,M)===0&&(V||x)&&(!V||!x)?Gi(this):new this.Collection(this,function(){return Xi(N,M,!V,!x)})}catch{return Rn(this,Ml)}},Te.prototype.equals=function(N){return N==null?Rn(this,Ml):new this.Collection(this,function(){return ne(N)})},Te.prototype.above=function(N){return N==null?Rn(this,Ml):new this.Collection(this,function(){return Xi(N,void 0,!0)})},Te.prototype.aboveOrEqual=function(N){return N==null?Rn(this,Ml):new this.Collection(this,function(){return Xi(N,void 0,!1)})},Te.prototype.below=function(N){return N==null?Rn(this,Ml):new this.Collection(this,function(){return Xi(void 0,N,!1,!0)})},Te.prototype.belowOrEqual=function(N){return N==null?Rn(this,Ml):new this.Collection(this,function(){return Xi(void 0,N)})},Te.prototype.startsWith=function(N){return typeof N!="string"?Rn(this,cm):this.between(N,N+Ma,!0,!0)},Te.prototype.startsWithIgnoreCase=function(N){return N===""?this.startsWith(N):Ya(this,function(M,V){return M.indexOf(V[0])===0},[N],Ma)},Te.prototype.equalsIgnoreCase=function(N){return Ya(this,function(M,V){return M===V[0]},[N],"")},Te.prototype.anyOfIgnoreCase=function(){var N=K.apply(Dt,arguments);return N.length===0?Gi(this):Ya(this,function(M,V){return V.indexOf(M)!==-1},N,"")},Te.prototype.startsWithAnyOfIgnoreCase=function(){var N=K.apply(Dt,arguments);return N.length===0?Gi(this):Ya(this,function(M,V){return V.some(function(x){return M.indexOf(x)===0})},N,Ma)},Te.prototype.anyOf=function(){var N=this,M=K.apply(Dt,arguments),V=this._cmp;try{M.sort(V)}catch{return Rn(this,Ml)}if(M.length===0)return Gi(this);var x=new this.Collection(this,function(){return Xi(M[0],M[M.length-1])});x._ondirectionchange=function(F){V=F==="next"?N._ascending:N._descending,M.sort(V)};var k=0;return x._addAlgorithm(function(F,B,$){for(var ct=F.key;0<V(ct,M[k]);)if(++k===M.length)return B($),!1;return V(ct,M[k])===0||(B(function(){F.continue(M[k])}),!1)}),x},Te.prototype.notEqual=function(N){return this.inAnyRange([[-1/0,N],[N,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Te.prototype.noneOf=function(){var N=K.apply(Dt,arguments);if(N.length===0)return new this.Collection(this);try{N.sort(this._ascending)}catch{return Rn(this,Ml)}var M=N.reduce(function(V,x){return V?V.concat([[V[V.length-1][1],x]]):[[-1/0,x]]},null);return M.push([N[N.length-1],this.db._maxKey]),this.inAnyRange(M,{includeLowers:!1,includeUppers:!1})},Te.prototype.inAnyRange=function(Lt,M){var V=this,x=this._cmp,k=this._ascending,F=this._descending,B=this._min,$=this._max;if(Lt.length===0)return Gi(this);if(!Lt.every(function(xt){return xt[0]!==void 0&&xt[1]!==void 0&&k(xt[0],xt[1])<=0}))return Rn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ft.InvalidArgument);var ct=!M||M.includeLowers!==!1,dt=M&&M.includeUppers===!0,pt,et=k;function yt(xt,gt){return et(xt[0],gt[0])}try{(pt=Lt.reduce(function(xt,gt){for(var kt=0,vt=xt.length;kt<vt;++kt){var te=xt[kt];if(x(gt[0],te[1])<0&&0<x(gt[1],te[0])){te[0]=B(te[0],gt[0]),te[1]=$(te[1],gt[1]);break}}return kt===vt&&xt.push(gt),xt},[])).sort(yt)}catch{return Rn(this,Ml)}var ot=0,bt=dt?function(xt){return 0<k(xt,pt[ot][1])}:function(xt){return 0<=k(xt,pt[ot][1])},Nt=ct?function(xt){return 0<F(xt,pt[ot][0])}:function(xt){return 0<=F(xt,pt[ot][0])},mt=bt,Lt=new this.Collection(this,function(){return Xi(pt[0][0],pt[pt.length-1][1],!ct,!dt)});return Lt._ondirectionchange=function(xt){et=xt==="next"?(mt=bt,k):(mt=Nt,F),pt.sort(yt)},Lt._addAlgorithm(function(xt,gt,kt){for(var vt,te=xt.key;mt(te);)if(++ot===pt.length)return gt(kt),!1;return!bt(vt=te)&&!Nt(vt)||(V._cmp(te,pt[ot][1])===0||V._cmp(te,pt[ot][0])===0||gt(function(){et===k?xt.continue(pt[ot][0]):xt.continue(pt[ot][1])}),!1)}),Lt},Te.prototype.startsWithAnyOf=function(){var N=K.apply(Dt,arguments);return N.every(function(M){return typeof M=="string"})?N.length===0?Gi(this):this.inAnyRange(N.map(function(M){return[M,M+Ma]})):Rn(this,"startsWithAnyOf() only works with strings")},Te);function Te(){}function Ae(N){return de(function(M){return fl(M),N(M.target.error),!1})}function fl(N){N.stopPropagation&&N.stopPropagation(),N.preventDefault&&N.preventDefault()}var an="storagemutated",i0="x-storagemutated-1",Fs=Os(null,an),s0=(Ta.prototype._lock=function(){return J(!se.global),++this._reculock,this._reculock!==1||se.global||(se.lockOwnerFor=this),this},Ta.prototype._unlock=function(){if(J(!se.global),--this._reculock==0)for(se.global||(se.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var N=this._blockedFuncs.shift();try{Wa(N[1],N[0])}catch{}}return this},Ta.prototype._locked=function(){return this._reculock&&se.lockOwnerFor!==this},Ta.prototype.create=function(N){var M=this;if(!this.mode)return this;var V=this.db.idbdb,x=this.db._state.dbOpenError;if(J(!this.idbtrans),!N&&!V)switch(x&&x.name){case"DatabaseClosedError":throw new Ft.DatabaseClosed(x);case"MissingAPIError":throw new Ft.MissingAPI(x.message,x);default:throw new Ft.OpenFailed(x)}if(!this.active)throw new Ft.TransactionInactive;return J(this._completion._state===null),(N=this.idbtrans=N||(this.db.core||V).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=de(function(k){fl(k),M._reject(N.error)}),N.onabort=de(function(k){fl(k),M.active&&M._reject(new Ft.Abort(N.error)),M.active=!1,M.on("abort").fire(k)}),N.oncomplete=de(function(){M.active=!1,M._resolve(),"mutatedParts"in N&&Fs.storagemutated.fire(N.mutatedParts)}),this},Ta.prototype._promise=function(N,M,V){var x=this;if(N==="readwrite"&&this.mode!=="readwrite")return Hl(new Ft.ReadOnly("Transaction is readonly"));if(!this.active)return Hl(new Ft.TransactionInactive);if(this._locked())return new oe(function(F,B){x._blockedFuncs.push([function(){x._promise(N,M,V).then(F,B)},se])});if(V)return Zs(function(){var F=new oe(function(B,$){x._lock();var ct=M(B,$,x);ct&&ct.then&&ct.then(B,$)});return F.finally(function(){return x._unlock()}),F._lib=!0,F});var k=new oe(function(F,B){var $=M(F,B,x);$&&$.then&&$.then(F,B)});return k._lib=!0,k},Ta.prototype._root=function(){return this.parent?this.parent._root():this},Ta.prototype.waitFor=function(N){var M,V=this._root(),x=oe.resolve(N);V._waitingFor?V._waitingFor=V._waitingFor.then(function(){return x}):(V._waitingFor=x,V._waitingQueue=[],M=V.idbtrans.objectStore(V.storeNames[0]),function F(){for(++V._spinCount;V._waitingQueue.length;)V._waitingQueue.shift()();V._waitingFor&&(M.get(-1/0).onsuccess=F)}());var k=V._waitingFor;return new oe(function(F,B){x.then(function($){return V._waitingQueue.push(de(F.bind(null,$)))},function($){return V._waitingQueue.push(de(B.bind(null,$)))}).finally(function(){V._waitingFor===k&&(V._waitingFor=null)})})},Ta.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ft.Abort))},Ta.prototype.table=function(N){var M=this._memoizedTables||(this._memoizedTables={});if(Z(M,N))return M[N];var V=this.schema[N];if(!V)throw new Ft.NotFound("Table "+N+" not part of transaction");return V=new this.db.Table(N,V,this),V.core=this.db.core.table(N),M[N]=V},Ta);function Ta(){}function om(N,M,V,x,k,F,B){return{name:N,keyPath:M,unique:V,multi:x,auto:k,compound:F,src:(V&&!B?"&":"")+(x?"*":"")+(k?"++":"")+a0(M)}}function a0(N){return typeof N=="string"?N:N?"["+[].join.call(N,"+")+"]":""}function rm(N,M,V){return{name:N,primKey:M,indexes:V,mappedClass:null,idxByName:(x=function(k){return[k.name,k]},V.reduce(function(k,F,B){return B=x(F,B),B&&(k[B[0]]=B[1]),k},{}))};var x}var c0=function(N){try{return N.only([[]]),c0=function(){return[[]]},[[]]}catch{return c0=function(){return Ma},Ma}};function po(N){return N==null?function(){}:typeof N=="string"?(M=N).split(".").length===1?function(V){return V[M]}:function(V){return j(V,M)}:function(V){return j(V,N)};var M}function zr(N){return[].slice.call(N)}var wr=0;function Ic(N){return N==null?":id":typeof N=="string"?N:"[".concat(N.join("+"),"]")}function m1(N,M,ct){function x(mt){if(mt.type===3)return null;if(mt.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var ot=mt.lower,bt=mt.upper,Nt=mt.lowerOpen,mt=mt.upperOpen;return ot===void 0?bt===void 0?null:M.upperBound(bt,!!mt):bt===void 0?M.lowerBound(ot,!!Nt):M.bound(ot,bt,!!Nt,!!mt)}function k(yt){var ot,bt=yt.name;return{name:bt,schema:yt,mutate:function(Nt){var mt=Nt.trans,Lt=Nt.type,xt=Nt.keys,gt=Nt.values,kt=Nt.range;return new Promise(function(vt,te){vt=de(vt);var Kt=mt.objectStore(bt),Bt=Kt.keyPath==null,ae=Lt==="put"||Lt==="add";if(!ae&&Lt!=="delete"&&Lt!=="deleteRange")throw new Error("Invalid operation type: "+Lt);var At,pe=(xt||gt||{length:1}).length;if(xt&&gt&&xt.length!==gt.length)throw new Error("Given keys array must have same length as given values array.");if(pe===0)return vt({numFailures:0,failures:{},results:[],lastResult:void 0});function qe(cn){++ki,fl(cn)}var ll=[],ol=[],ki=0;if(Lt==="deleteRange"){if(kt.type===4)return vt({numFailures:ki,failures:ol,results:[],lastResult:void 0});kt.type===3?ll.push(At=Kt.clear()):ll.push(At=Kt.delete(x(kt)))}else{var Bt=ae?Bt?[gt,xt]:[gt,null]:[xt,null],_e=Bt[0],_n=Bt[1];if(ae)for(var qn=0;qn<pe;++qn)ll.push(At=_n&&_n[qn]!==void 0?Kt[Lt](_e[qn],_n[qn]):Kt[Lt](_e[qn])),At.onerror=qe;else for(qn=0;qn<pe;++qn)ll.push(At=Kt[Lt](_e[qn])),At.onerror=qe}function y0(cn){cn=cn.target.result,ll.forEach(function(Aa,N0){return Aa.error!=null&&(ol[N0]=Aa.error)}),vt({numFailures:ki,failures:ol,results:Lt==="delete"?xt:ll.map(function(Aa){return Aa.result}),lastResult:cn})}At.onerror=function(cn){qe(cn),y0(cn)},At.onsuccess=y0})},getMany:function(Nt){var mt=Nt.trans,Lt=Nt.keys;return new Promise(function(xt,gt){xt=de(xt);for(var kt,vt=mt.objectStore(bt),te=Lt.length,Kt=new Array(te),Bt=0,ae=0,At=function(ll){ll=ll.target,Kt[ll._pos]=ll.result,++ae===Bt&&xt(Kt)},pe=Ae(gt),qe=0;qe<te;++qe)Lt[qe]!=null&&((kt=vt.get(Lt[qe]))._pos=qe,kt.onsuccess=At,kt.onerror=pe,++Bt);Bt===0&&xt(Kt)})},get:function(Nt){var mt=Nt.trans,Lt=Nt.key;return new Promise(function(xt,gt){xt=de(xt);var kt=mt.objectStore(bt).get(Lt);kt.onsuccess=function(vt){return xt(vt.target.result)},kt.onerror=Ae(gt)})},query:(ot=dt,function(Nt){return new Promise(function(mt,Lt){mt=de(mt);var xt,gt,kt,Bt=Nt.trans,vt=Nt.values,te=Nt.limit,At=Nt.query,Kt=te===1/0?void 0:te,ae=At.index,At=At.range,Bt=Bt.objectStore(bt),ae=ae.isPrimaryKey?Bt:Bt.index(ae.name),At=x(At);if(te===0)return mt({result:[]});ot?((Kt=vt?ae.getAll(At,Kt):ae.getAllKeys(At,Kt)).onsuccess=function(pe){return mt({result:pe.target.result})},Kt.onerror=Ae(Lt)):(xt=0,gt=!vt&&"openKeyCursor"in ae?ae.openKeyCursor(At):ae.openCursor(At),kt=[],gt.onsuccess=function(pe){var qe=gt.result;return qe?(kt.push(vt?qe.value:qe.primaryKey),++xt===te?mt({result:kt}):void qe.continue()):mt({result:kt})},gt.onerror=Ae(Lt))})}),openCursor:function(Nt){var mt=Nt.trans,Lt=Nt.values,xt=Nt.query,gt=Nt.reverse,kt=Nt.unique;return new Promise(function(vt,te){vt=de(vt);var ae=xt.index,Kt=xt.range,Bt=mt.objectStore(bt),Bt=ae.isPrimaryKey?Bt:Bt.index(ae.name),ae=gt?kt?"prevunique":"prev":kt?"nextunique":"next",At=!Lt&&"openKeyCursor"in Bt?Bt.openKeyCursor(x(Kt),ae):Bt.openCursor(x(Kt),ae);At.onerror=Ae(te),At.onsuccess=de(function(pe){var qe,ll,ol,ki,_e=At.result;_e?(_e.___id=++wr,_e.done=!1,qe=_e.continue.bind(_e),ll=(ll=_e.continuePrimaryKey)&&ll.bind(_e),ol=_e.advance.bind(_e),ki=function(){throw new Error("Cursor not stopped")},_e.trans=mt,_e.stop=_e.continue=_e.continuePrimaryKey=_e.advance=function(){throw new Error("Cursor not started")},_e.fail=de(te),_e.next=function(){var _n=this,qn=1;return this.start(function(){return qn--?_n.continue():_n.stop()}).then(function(){return _n})},_e.start=function(_n){function qn(){if(At.result)try{_n()}catch(cn){_e.fail(cn)}else _e.done=!0,_e.start=function(){throw new Error("Cursor behind last entry")},_e.stop()}var y0=new Promise(function(cn,Aa){cn=de(cn),At.onerror=Ae(Aa),_e.fail=Aa,_e.stop=function(N0){_e.stop=_e.continue=_e.continuePrimaryKey=_e.advance=ki,cn(N0)}});return At.onsuccess=de(function(cn){At.onsuccess=qn,qn()}),_e.continue=qe,_e.continuePrimaryKey=ll,_e.advance=ol,qn(),y0},vt(_e)):vt(null)},te)})},count:function(Nt){var mt=Nt.query,Lt=Nt.trans,xt=mt.index,gt=mt.range;return new Promise(function(kt,vt){var te=Lt.objectStore(bt),Kt=xt.isPrimaryKey?te:te.index(xt.name),te=x(gt),Kt=te?Kt.count(te):Kt.count();Kt.onsuccess=de(function(Bt){return kt(Bt.target.result)}),Kt.onerror=Ae(vt)})}}}var F,B,$,pt=(B=ct,$=zr((F=N).objectStoreNames),{schema:{name:F.name,tables:$.map(function(yt){return B.objectStore(yt)}).map(function(yt){var ot=yt.keyPath,mt=yt.autoIncrement,bt=o(ot),Nt={},mt={name:yt.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:ot==null,compound:bt,keyPath:ot,autoIncrement:mt,unique:!0,extractKey:po(ot)},indexes:zr(yt.indexNames).map(function(Lt){return yt.index(Lt)}).map(function(kt){var xt=kt.name,gt=kt.unique,vt=kt.multiEntry,kt=kt.keyPath,vt={name:xt,compound:o(kt),keyPath:kt,unique:gt,multiEntry:vt,extractKey:po(kt)};return Nt[Ic(kt)]=vt}),getIndexByKeyPath:function(Lt){return Nt[Ic(Lt)]}};return Nt[":id"]=mt.primaryKey,ot!=null&&(Nt[Ic(ot)]=mt.primaryKey),mt})},hasGetAll:0<$.length&&"getAll"in B.objectStore($[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),ct=pt.schema,dt=pt.hasGetAll,pt=ct.tables.map(k),et={};return pt.forEach(function(yt){return et[yt.name]=yt}),{stack:"dbcore",transaction:N.transaction.bind(N),table:function(yt){if(!et[yt])throw new Error("Table '".concat(yt,"' not found"));return et[yt]},MIN_KEY:-1/0,MAX_KEY:c0(M),schema:ct}}function h1(N,M,V,x){var k=V.IDBKeyRange;return V.indexedDB,{dbcore:(x=m1(M,k,x),N.dbcore.reduce(function(F,B){return B=B.create,n(n({},F),B(F))},x))}}function xr(N,x){var V=x.db,x=h1(N._middlewares,V,N._deps,x);N.core=x.dbcore,N.tables.forEach(function(k){var F=k.name;N.core.schema.tables.some(function(B){return B.name===F})&&(k.core=N.core.table(F),N[F]instanceof N.Table&&(N[F].core=k.core))})}function yo(N,M,V,x){V.forEach(function(k){var F=x[k];M.forEach(function(B){var $=function ct(dt,pt){return z(dt,pt)||(dt=u(dt))&&ct(dt,pt)}(B,k);(!$||"value"in $&&$.value===void 0)&&(B===N.Transaction.prototype||B instanceof N.Transaction?G(B,k,{get:function(){return this.table(k)},set:function(ct){y(this,k,{value:ct,writable:!0,configurable:!0,enumerable:!0})}}):B[k]=new N.Table(k,F))})})}function o0(N,M){M.forEach(function(V){for(var x in V)V[x]instanceof N.Table&&delete V[x]})}function S2(N,M){return N._cfg.version-M._cfg.version}function zc(N,M,V,x){var k=N._dbSchema;V.objectStoreNames.contains("$meta")&&!k.$meta&&(k.$meta=rm("$meta",Wo("")[0],[]),N._storeNames.push("$meta"));var F=N._createTransaction("readwrite",N._storeNames,k);F.create(V),F._completion.catch(x);var B=F._reject.bind(F),$=se.transless||se;Zs(function(){return se.trans=F,se.transless=$,M!==0?(xr(N,V),dt=M,((ct=F).storeNames.includes("$meta")?ct.table("$meta").get("version").then(function(pt){return pt??dt}):oe.resolve(dt)).then(function(pt){return yt=pt,ot=F,bt=V,Nt=[],pt=(et=N)._versions,mt=et._dbSchema=d0(0,et.idbdb,bt),(pt=pt.filter(function(Lt){return Lt._cfg.version>=yt})).length!==0?(pt.forEach(function(Lt){Nt.push(function(){var xt=mt,gt=Lt._cfg.dbschema;di(et,xt,bt),di(et,gt,bt),mt=et._dbSchema=gt;var kt=gr(xt,gt);kt.add.forEach(function(ae){dm(bt,ae[0],ae[1].primKey,ae[1].indexes)}),kt.change.forEach(function(ae){if(ae.recreate)throw new Ft.Upgrade("Not yet support for changing primary key");var At=bt.objectStore(ae.name);ae.add.forEach(function(pe){return No(At,pe)}),ae.change.forEach(function(pe){At.deleteIndex(pe.name),No(At,pe)}),ae.del.forEach(function(pe){return At.deleteIndex(pe)})});var vt=Lt._cfg.contentUpgrade;if(vt&&Lt._cfg.version>yt){xr(et,bt),ot._memoizedTables={};var te=it(gt);kt.del.forEach(function(ae){te[ae]=xt[ae]}),o0(et,[et.Transaction.prototype]),yo(et,[et.Transaction.prototype],a(te),te),ot.schema=te;var Kt,Bt=lt(vt);return Bt&&Tc(),kt=oe.follow(function(){var ae;(Kt=vt(ot))&&Bt&&(ae=ci.bind(null,null),Kt.then(ae,ae))}),Kt&&typeof Kt.then=="function"?oe.resolve(Kt):kt.then(function(){return Kt})}}),Nt.push(function(xt){var gt,kt,vt=Lt._cfg.dbschema;gt=vt,kt=xt,[].slice.call(kt.db.objectStoreNames).forEach(function(te){return gt[te]==null&&kt.db.deleteObjectStore(te)}),o0(et,[et.Transaction.prototype]),yo(et,[et.Transaction.prototype],et._storeNames,et._dbSchema),ot.schema=et._dbSchema}),Nt.push(function(xt){et.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(et.idbdb.version/10)===Lt._cfg.version?(et.idbdb.deleteObjectStore("$meta"),delete et._dbSchema.$meta,et._storeNames=et._storeNames.filter(function(gt){return gt!=="$meta"})):xt.objectStore("$meta").put(Lt._cfg.version,"version"))})}),function Lt(){return Nt.length?oe.resolve(Nt.shift()(ot.idbtrans)).then(Lt):oe.resolve()}().then(function(){r0(mt,bt)})):oe.resolve();var et,yt,ot,bt,Nt,mt}).catch(B)):(a(k).forEach(function(pt){dm(V,pt,k[pt].primKey,k[pt].indexes)}),xr(N,V),void oe.follow(function(){return N.on.populate.fire(F)}).catch(B));var ct,dt})}function Yb(N,M){r0(N._dbSchema,M),M.db.version%10!=0||M.objectStoreNames.contains("$meta")||M.db.createObjectStore("$meta").add(Math.ceil(M.db.version/10-1),"version");var V=d0(0,N.idbdb,M);di(N,N._dbSchema,M);for(var x=0,k=gr(V,N._dbSchema).change;x<k.length;x++){var F=function(B){if(B.change.length||B.recreate)return console.warn("Unable to patch indexes of table ".concat(B.name," because it has changes on the type of index or primary key.")),{value:void 0};var $=M.objectStore(B.name);B.add.forEach(function(ct){Zn&&console.debug("Dexie upgrade patch: Creating missing index ".concat(B.name,".").concat(ct.src)),No($,ct)})}(k[x]);if(typeof F=="object")return F.value}}function gr(N,M){var V,x={del:[],add:[],change:[]};for(V in N)M[V]||x.del.push(V);for(V in M){var k=N[V],F=M[V];if(k){var B={name:V,def:F,recreate:!1,del:[],add:[],change:[]};if(""+(k.primKey.keyPath||"")!=""+(F.primKey.keyPath||"")||k.primKey.auto!==F.primKey.auto)B.recreate=!0,x.change.push(B);else{var $=k.idxByName,ct=F.idxByName,dt=void 0;for(dt in $)ct[dt]||B.del.push(dt);for(dt in ct){var pt=$[dt],et=ct[dt];pt?pt.src!==et.src&&B.change.push(et):B.add.push(et)}(0<B.del.length||0<B.add.length||0<B.change.length)&&x.change.push(B)}}else x.add.push([V,F])}return x}function dm(N,M,V,x){var k=N.db.createObjectStore(M,V.keyPath?{keyPath:V.keyPath,autoIncrement:V.auto}:{autoIncrement:V.auto});return x.forEach(function(F){return No(k,F)}),k}function r0(N,M){a(N).forEach(function(V){M.db.objectStoreNames.contains(V)||(Zn&&console.debug("Dexie: Creating missing table",V),dm(M,V,N[V].primKey,N[V].indexes))})}function No(N,M){N.createIndex(M.name,M.keyPath,{unique:M.unique,multiEntry:M.multi})}function d0(N,M,V){var x={};return S(M.objectStoreNames,0).forEach(function(k){for(var F=V.objectStore(k),B=om(a0(dt=F.keyPath),dt||"",!0,!1,!!F.autoIncrement,dt&&typeof dt!="string",!0),$=[],ct=0;ct<F.indexNames.length;++ct){var pt=F.index(F.indexNames[ct]),dt=pt.keyPath,pt=om(pt.name,dt,!!pt.unique,!!pt.multiEntry,!1,dt&&typeof dt!="string",!1);$.push(pt)}x[k]=rm(k,B,$)}),x}function di(N,M,V){for(var x=V.db.objectStoreNames,k=0;k<x.length;++k){var F=x[k],B=V.objectStore(F);N._hasGetAll="getAll"in B;for(var $=0;$<B.indexNames.length;++$){var ct=B.indexNames[$],dt=B.index(ct).keyPath,pt=typeof dt=="string"?dt:"["+S(dt).join("+")+"]";!M[F]||(dt=M[F].idxByName[pt])&&(dt.name=ct,delete M[F].idxByName[pt],M[F].idxByName[ct]=dt)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&s.WorkerGlobalScope&&s instanceof s.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(N._hasGetAll=!1)}function Wo(N){return N.split(",").map(function(M,V){var x=(M=M.trim()).replace(/([&*]|\+\+)/g,""),k=/^\[/.test(x)?x.match(/^\[(.*)\]$/)[1].split("+"):x;return om(x,k||null,/\&/.test(M),/\*/.test(M),/\+\+/.test(M),o(k),V===0)})}var Tb=(wc.prototype._parseStoresSpec=function(N,M){a(N).forEach(function(V){if(N[V]!==null){var x=Wo(N[V]),k=x.shift();if(k.unique=!0,k.multi)throw new Ft.Schema("Primary key cannot be multi-valued");x.forEach(function(F){if(F.auto)throw new Ft.Schema("Only primary key can be marked as autoIncrement (++)");if(!F.keyPath)throw new Ft.Schema("Index must have a name and cannot be an empty string")}),M[V]=rm(V,k,x)}})},wc.prototype.stores=function(V){var M=this.db;this._cfg.storesSource=this._cfg.storesSource?d(this._cfg.storesSource,V):V;var V=M._versions,x={},k={};return V.forEach(function(F){d(x,F._cfg.storesSource),k=F._cfg.dbschema={},F._parseStoresSpec(x,k)}),M._dbSchema=k,o0(M,[M._allTables,M,M.Transaction.prototype]),yo(M,[M._allTables,M,M.Transaction.prototype,this._cfg.tables],a(k),k),M._storeNames=a(k),this},wc.prototype.upgrade=function(N){return this._cfg.contentUpgrade=Jn(this._cfg.contentUpgrade||Oe,N),this},wc);function wc(){}function Vb(N,M){var V=N._dbNamesDB;return V||(V=N._dbNamesDB=new Va(Xa,{addons:[],indexedDB:N,IDBKeyRange:M})).version(1).stores({dbnames:"name"}),V.table("dbnames")}function u0(N){return N&&typeof N.databases=="function"}function m0(N){return Zs(function(){return se.letThrough=!0,N()})}function Mo(N){return!("from"in N)}var kn=function(N,M){if(!this){var V=new kn;return N&&"d"in N&&d(V,N),V}d(this,arguments.length?{d:1,from:N,to:1<arguments.length?M:N}:{d:0})};function Sr(N,M,V){var x=ke(M,V);if(!isNaN(x)){if(0<x)throw RangeError();if(Mo(N))return d(N,{from:M,to:V,d:1});var k=N.l,x=N.r;if(ke(V,N.from)<0)return k?Sr(k,M,V):N.l={from:M,to:V,d:1,l:null,r:null},mm(N);if(0<ke(M,N.to))return x?Sr(x,M,V):N.r={from:M,to:V,d:1,l:null,r:null},mm(N);ke(M,N.from)<0&&(N.from=M,N.l=null,N.d=x?x.d+1:1),0<ke(V,N.to)&&(N.to=V,N.r=null,N.d=N.l?N.l.d+1:1),V=!N.r,k&&!N.l&&h0(N,k),x&&V&&h0(N,x)}}function h0(N,M){Mo(M)||function V(x,ct){var F=ct.from,B=ct.to,$=ct.l,ct=ct.r;Sr(x,F,B),$&&V(x,$),ct&&V(x,ct)}(N,M)}function R2(N,M){var V=um(M),x=V.next();if(x.done)return!1;for(var k=x.value,F=um(N),B=F.next(k.from),$=B.value;!x.done&&!B.done;){if(ke($.from,k.to)<=0&&0<=ke($.to,k.from))return!0;ke(k.from,$.from)<0?k=(x=V.next($.from)).value:$=(B=F.next(k.from)).value}return!1}function um(N){var M=Mo(N)?null:{s:0,n:N};return{next:function(V){for(var x=0<arguments.length;M;)switch(M.s){case 0:if(M.s=1,x)for(;M.n.l&&ke(V,M.n.from)<0;)M={up:M,n:M.n.l,s:1};else for(;M.n.l;)M={up:M,n:M.n.l,s:1};case 1:if(M.s=2,!x||ke(V,M.n.to)<=0)return{value:M.n,done:!1};case 2:if(M.n.r){M.s=3,M={up:M,n:M.n.r,s:0};continue}case 3:M=M.up}return{done:!0}}}}function mm(N){var M,V,x=(((M=N.r)===null||M===void 0?void 0:M.d)||0)-(((V=N.l)===null||V===void 0?void 0:V.d)||0),k=1<x?"r":x<-1?"l":"";k&&(M=k=="r"?"l":"r",V=n({},N),x=N[k],N.from=x.from,N.to=x.to,N[k]=x[k],V[k]=x[M],(N[M]=V).d=k2(V)),N.d=k2(N)}function k2(V){var M=V.r,V=V.l;return(M?V?Math.max(M.d,V.d):M.d:V?V.d:0)+1}function hm(N,M){return a(M).forEach(function(V){N[V]?h0(N[V],M[V]):N[V]=function x(k){var F,B,$={};for(F in k)Z(k,F)&&(B=k[F],$[F]=!B||typeof B!="object"||Wt.has(B.constructor)?B:x(B));return $}(M[V])}),N}function Lb(N,M){return N.all||M.all||Object.keys(N).some(function(V){return M[V]&&R2(M[V],N[V])})}p(kn.prototype,((Ns={add:function(N){return h0(this,N),this},addKey:function(N){return Sr(this,N,N),this},addKeys:function(N){var M=this;return N.forEach(function(V){return Sr(M,V,V)}),this},hasKey:function(N){var M=um(this).next(N).value;return M&&ke(M.from,N)<=0&&0<=ke(M.to,N)}})[St]=function(){return um(this)},Ns));var Go={},Ib={},bm=!1;function Zm(N){hm(Ib,N),bm||(bm=!0,setTimeout(function(){bm=!1,zb(Ib,!(Ib={}))},0))}function zb(N,M){M===void 0&&(M=!1);var V=new Set;if(N.all)for(var x=0,k=Object.values(Go);x<k.length;x++)f2(B=k[x],N,V,M);else for(var F in N){var B,$=/^idb\:\/\/(.*)\/(.*)\//.exec(F);$&&(F=$[1],$=$[2],(B=Go["idb://".concat(F,"/").concat($)])&&f2(B,N,V,M))}V.forEach(function(ct){return ct()})}function f2(N,M,V,x){for(var k=[],F=0,B=Object.entries(N.queries.query);F<B.length;F++){for(var $=B[F],ct=$[0],dt=[],pt=0,et=$[1];pt<et.length;pt++){var yt=et[pt];Lb(M,yt.obsSet)?yt.subscribers.forEach(function(mt){return V.add(mt)}):x&&dt.push(yt)}x&&k.push([ct,dt])}if(x)for(var ot=0,bt=k;ot<bt.length;ot++){var Nt=bt[ot],ct=Nt[0],dt=Nt[1];N.queries.query[ct]=dt}}function b1(N){var M=N._state,V=N._deps.indexedDB;if(M.isBeingOpened||N.idbdb)return M.dbReadyPromise.then(function(){return M.dbOpenError?Hl(M.dbOpenError):N});M.isBeingOpened=!0,M.dbOpenError=null,M.openComplete=!1;var x=M.openCanceller,k=Math.round(10*N.verno),F=!1;function B(){if(M.openCanceller!==x)throw new Ft.DatabaseClosed("db.open() was cancelled")}function $(){return new oe(function(yt,ot){if(B(),!V)throw new Ft.MissingAPI;var bt=N.name,Nt=M.autoSchema||!k?V.open(bt):V.open(bt,k);if(!Nt)throw new Ft.MissingAPI;Nt.onerror=Ae(ot),Nt.onblocked=de(N._fireOnBlocked),Nt.onupgradeneeded=de(function(mt){var Lt;pt=Nt.transaction,M.autoSchema&&!N._options.allowEmptyDB?(Nt.onerror=fl,pt.abort(),Nt.result.close(),(Lt=V.deleteDatabase(bt)).onsuccess=Lt.onerror=de(function(){ot(new Ft.NoSuchDatabase("Database ".concat(bt," doesnt exist")))})):(pt.onerror=Ae(ot),mt=mt.oldVersion>Math.pow(2,62)?0:mt.oldVersion,et=mt<1,N.idbdb=Nt.result,F&&Yb(N,pt),zc(N,mt/10,pt,ot))},ot),Nt.onsuccess=de(function(){pt=null;var mt,Lt,xt,gt,kt,vt=N.idbdb=Nt.result,te=S(vt.objectStoreNames);if(0<te.length)try{var Kt=vt.transaction((gt=te).length===1?gt[0]:gt,"readonly");if(M.autoSchema)Lt=vt,xt=Kt,(mt=N).verno=Lt.version/10,xt=mt._dbSchema=d0(0,Lt,xt),mt._storeNames=S(Lt.objectStoreNames,0),yo(mt,[mt._allTables],a(xt),xt);else if(di(N,N._dbSchema,Kt),((kt=gr(d0(0,(kt=N).idbdb,Kt),kt._dbSchema)).add.length||kt.change.some(function(Bt){return Bt.add.length||Bt.change.length}))&&!F)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),vt.close(),k=vt.version+1,F=!0,yt($());xr(N,Kt)}catch{}Ga.push(N),vt.onversionchange=de(function(Bt){M.vcFired=!0,N.on("versionchange").fire(Bt)}),vt.onclose=de(function(Bt){N.on("close").fire(Bt)}),et&&(kt=N._deps,Kt=bt,vt=kt.indexedDB,kt=kt.IDBKeyRange,u0(vt)||Kt===Xa||Vb(vt,kt).put({name:Kt}).catch(Oe)),yt()},ot)}).catch(function(yt){switch(yt==null?void 0:yt.name){case"UnknownError":if(0<M.PR1398_maxLoop)return M.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),$();break;case"VersionError":if(0<k)return k=0,$()}return oe.reject(yt)})}var ct,dt=M.dbReadyResolve,pt=null,et=!1;return oe.race([x,(typeof navigator>"u"?oe.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(yt){function ot(){return indexedDB.databases().finally(yt)}ct=setInterval(ot,100),ot()}).finally(function(){return clearInterval(ct)}):Promise.resolve()).then($)]).then(function(){return B(),M.onReadyBeingFired=[],oe.resolve(m0(function(){return N.on.ready.fire(N.vip)})).then(function yt(){if(0<M.onReadyBeingFired.length){var ot=M.onReadyBeingFired.reduce(Jn,Oe);return M.onReadyBeingFired=[],oe.resolve(m0(function(){return ot(N.vip)})).then(yt)}})}).finally(function(){M.openCanceller===x&&(M.onReadyBeingFired=null,M.isBeingOpened=!1)}).catch(function(yt){M.dbOpenError=yt;try{pt&&pt.abort()}catch{}return x===M.openCanceller&&N._close(),Hl(yt)}).finally(function(){M.openComplete=!0,dt()}).then(function(){var yt;return et&&(yt={},N.tables.forEach(function(ot){ot.schema.indexes.forEach(function(bt){bt.name&&(yt["idb://".concat(N.name,"/").concat(ot.name,"/").concat(bt.name)]=new kn(-1/0,[[[]]]))}),yt["idb://".concat(N.name,"/").concat(ot.name,"/")]=yt["idb://".concat(N.name,"/").concat(ot.name,"/:dels")]=new kn(-1/0,[[[]]])}),Fs(an).fire(yt),zb(yt,!0)),N})}function b0(N){function M(F){return N.next(F)}var V=k(M),x=k(function(F){return N.throw(F)});function k(F){return function(ct){var $=F(ct),ct=$.value;return $.done?ct:ct&&typeof ct.then=="function"?ct.then(V,x):o(ct)?Promise.all(ct).then(V,x):V(ct)}}return k(M)()}function pm(N,M,V){for(var x=o(N)?N.slice():[N],k=0;k<V;++k)x.push(M);return x}var Z1={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(N){return n(n({},N),{table:function(M){var V=N.table(M),x=V.schema,k={},F=[];function B(et,yt,ot){var bt=Ic(et),Nt=k[bt]=k[bt]||[],mt=et==null?0:typeof et=="string"?1:et.length,Lt=0<yt,Lt=n(n({},ot),{name:Lt?"".concat(bt,"(virtual-from:").concat(ot.name,")"):ot.name,lowLevelIndex:ot,isVirtual:Lt,keyTail:yt,keyLength:mt,extractKey:po(et),unique:!Lt&&ot.unique});return Nt.push(Lt),Lt.isPrimaryKey||F.push(Lt),1<mt&&B(mt===2?et[0]:et.slice(0,mt-1),yt+1,ot),Nt.sort(function(xt,gt){return xt.keyTail-gt.keyTail}),Lt}M=B(x.primaryKey.keyPath,0,x.primaryKey),k[":id"]=[M];for(var $=0,ct=x.indexes;$<ct.length;$++){var dt=ct[$];B(dt.keyPath,0,dt)}function pt(et){var yt,ot=et.query.index;return ot.isVirtual?n(n({},et),{query:{index:ot.lowLevelIndex,range:(yt=et.query.range,ot=ot.keyTail,{type:yt.type===1?2:yt.type,lower:pm(yt.lower,yt.lowerOpen?N.MAX_KEY:N.MIN_KEY,ot),lowerOpen:!0,upper:pm(yt.upper,yt.upperOpen?N.MIN_KEY:N.MAX_KEY,ot),upperOpen:!0})}}):et}return n(n({},V),{schema:n(n({},x),{primaryKey:M,indexes:F,getIndexByKeyPath:function(et){return(et=k[Ic(et)])&&et[0]}}),count:function(et){return V.count(pt(et))},query:function(et){return V.query(pt(et))},openCursor:function(et){var yt=et.query.index,ot=yt.keyTail,bt=yt.isVirtual,Nt=yt.keyLength;return bt?V.openCursor(pt(et)).then(function(Lt){return Lt&&mt(Lt)}):V.openCursor(et);function mt(Lt){return Object.create(Lt,{continue:{value:function(xt){xt!=null?Lt.continue(pm(xt,et.reverse?N.MAX_KEY:N.MIN_KEY,ot)):et.unique?Lt.continue(Lt.key.slice(0,Nt).concat(et.reverse?N.MIN_KEY:N.MAX_KEY,ot)):Lt.continue()}},continuePrimaryKey:{value:function(xt,gt){Lt.continuePrimaryKey(pm(xt,N.MAX_KEY,ot),gt)}},primaryKey:{get:function(){return Lt.primaryKey}},key:{get:function(){var xt=Lt.key;return Nt===1?xt[0]:xt.slice(0,Nt)}},value:{get:function(){return Lt.value}}})}}})}})}};function wb(N,M,V,x){return V=V||{},x=x||"",a(N).forEach(function(k){var F,B,$;Z(M,k)?(F=N[k],B=M[k],typeof F=="object"&&typeof B=="object"&&F&&B?($=Xt(F))!==Xt(B)?V[x+k]=M[k]:$==="Object"?wb(F,B,V,x+k+"."):F!==B&&(V[x+k]=M[k]):F!==B&&(V[x+k]=M[k])):V[x+k]=void 0}),a(M).forEach(function(k){Z(N,k)||(V[x+k]=M[k])}),V}function ym(N,M){return M.type==="delete"?M.keys:M.keys||M.values.map(N.extractKey)}var p1={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(N){return n(n({},N),{table:function(M){var V=N.table(M),x=V.schema.primaryKey;return n(n({},V),{mutate:function(k){var F=se.trans,B=F.table(M).hook,$=B.deleting,ct=B.creating,dt=B.updating;switch(k.type){case"add":if(ct.fire===Oe)break;return F._promise("readwrite",function(){return pt(k)},!0);case"put":if(ct.fire===Oe&&dt.fire===Oe)break;return F._promise("readwrite",function(){return pt(k)},!0);case"delete":if($.fire===Oe)break;return F._promise("readwrite",function(){return pt(k)},!0);case"deleteRange":if($.fire===Oe)break;return F._promise("readwrite",function(){return function et(yt,ot,bt){return V.query({trans:yt,values:!1,query:{index:x,range:ot},limit:bt}).then(function(Nt){var mt=Nt.result;return pt({type:"delete",keys:mt,trans:yt}).then(function(Lt){return 0<Lt.numFailures?Promise.reject(Lt.failures[0]):mt.length<bt?{failures:[],numFailures:0,lastResult:void 0}:et(yt,n(n({},ot),{lower:mt[mt.length-1],lowerOpen:!0}),bt)})})}(k.trans,k.range,1e4)},!0)}return V.mutate(k);function pt(et){var yt,ot,bt,Nt=se.trans,mt=et.keys||ym(x,et);if(!mt)throw new Error("Keys missing");return(et=et.type==="add"||et.type==="put"?n(n({},et),{keys:mt}):n({},et)).type!=="delete"&&(et.values=i([],et.values)),et.keys&&(et.keys=i([],et.keys)),yt=V,bt=mt,((ot=et).type==="add"?Promise.resolve([]):yt.getMany({trans:ot.trans,keys:bt,cache:"immutable"})).then(function(Lt){var xt=mt.map(function(gt,kt){var vt,te,Kt,Bt=Lt[kt],ae={onerror:null,onsuccess:null};return et.type==="delete"?$.fire.call(ae,gt,Bt,Nt):et.type==="add"||Bt===void 0?(vt=ct.fire.call(ae,gt,et.values[kt],Nt),gt==null&&vt!=null&&(et.keys[kt]=gt=vt,x.outbound||Q(et.values[kt],x.keyPath,gt))):(vt=wb(Bt,et.values[kt]),(te=dt.fire.call(ae,vt,gt,Bt,Nt))&&(Kt=et.values[kt],Object.keys(te).forEach(function(At){Z(Kt,At)?Kt[At]=te[At]:Q(Kt,At,te[At])}))),ae});return V.mutate(et).then(function(gt){for(var kt=gt.failures,vt=gt.results,te=gt.numFailures,gt=gt.lastResult,Kt=0;Kt<mt.length;++Kt){var Bt=(vt||mt)[Kt],ae=xt[Kt];Bt==null?ae.onerror&&ae.onerror(kt[Kt]):ae.onsuccess&&ae.onsuccess(et.type==="put"&&Lt[Kt]?et.values[Kt]:Bt)}return{failures:kt,results:vt,numFailures:te,lastResult:gt}}).catch(function(gt){return xt.forEach(function(kt){return kt.onerror&&kt.onerror(gt)}),Promise.reject(gt)})})}}})}})}};function D2(N,M,V){try{if(!M||M.keys.length<N.length)return null;for(var x=[],k=0,F=0;k<M.keys.length&&F<N.length;++k)ke(M.keys[k],N[F])===0&&(x.push(V?Tt(M.values[k]):M.values[k]),++F);return x.length===N.length?x:null}catch{return null}}var y1={stack:"dbcore",level:-1,create:function(N){return{table:function(M){var V=N.table(M);return n(n({},V),{getMany:function(x){if(!x.cache)return V.getMany(x);var k=D2(x.keys,x.trans._cache,x.cache==="clone");return k?oe.resolve(k):V.getMany(x).then(function(F){return x.trans._cache={keys:x.keys,values:x.cache==="clone"?Tt(F):F},F})},mutate:function(x){return x.type!=="add"&&(x.trans._cache=null),V.mutate(x)}})}}}};function j2(N,M){return N.trans.mode==="readonly"&&!!N.subscr&&!N.trans.explicit&&N.trans.db._options.cache!=="disabled"&&!M.schema.primaryKey.outbound}function O2(N,M){switch(N){case"query":return M.values&&!M.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var N1={stack:"dbcore",level:0,name:"Observability",create:function(N){var M=N.schema.name,V=new kn(N.MIN_KEY,N.MAX_KEY);return n(n({},N),{transaction:function(x,k,F){if(se.subscr&&k!=="readonly")throw new Ft.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(se.querier));return N.transaction(x,k,F)},table:function(x){var k=N.table(x),F=k.schema,B=F.primaryKey,et=F.indexes,$=B.extractKey,ct=B.outbound,dt=B.autoIncrement&&et.filter(function(ot){return ot.compound&&ot.keyPath.includes(B.keyPath)}),pt=n(n({},k),{mutate:function(ot){function bt(At){return At="idb://".concat(M,"/").concat(x,"/").concat(At),gt[At]||(gt[At]=new kn)}var Nt,mt,Lt,xt=ot.trans,gt=ot.mutatedParts||(ot.mutatedParts={}),kt=bt(""),vt=bt(":dels"),te=ot.type,ae=ot.type==="deleteRange"?[ot.range]:ot.type==="delete"?[ot.keys]:ot.values.length<50?[ym(B,ot).filter(function(At){return At}),ot.values]:[],Kt=ae[0],Bt=ae[1],ae=ot.trans._cache;return o(Kt)?(kt.addKeys(Kt),(ae=te==="delete"||Kt.length===Bt.length?D2(Kt,ae):null)||vt.addKeys(Kt),(ae||Bt)&&(Nt=bt,mt=ae,Lt=Bt,F.indexes.forEach(function(At){var pe=Nt(At.name||"");function qe(ol){return ol!=null?At.extractKey(ol):null}function ll(ol){return At.multiEntry&&o(ol)?ol.forEach(function(ki){return pe.addKey(ki)}):pe.addKey(ol)}(mt||Lt).forEach(function(ol,_n){var _e=mt&&qe(mt[_n]),_n=Lt&&qe(Lt[_n]);ke(_e,_n)!==0&&(_e!=null&&ll(_e),_n!=null&&ll(_n))})}))):Kt?(Bt={from:(Bt=Kt.lower)!==null&&Bt!==void 0?Bt:N.MIN_KEY,to:(Bt=Kt.upper)!==null&&Bt!==void 0?Bt:N.MAX_KEY},vt.add(Bt),kt.add(Bt)):(kt.add(V),vt.add(V),F.indexes.forEach(function(At){return bt(At.name).add(V)})),k.mutate(ot).then(function(At){return!Kt||ot.type!=="add"&&ot.type!=="put"||(kt.addKeys(At.results),dt&&dt.forEach(function(pe){for(var qe=ot.values.map(function(_e){return pe.extractKey(_e)}),ll=pe.keyPath.findIndex(function(_e){return _e===B.keyPath}),ol=0,ki=At.results.length;ol<ki;++ol)qe[ol][ll]=At.results[ol];bt(pe.name).addKeys(qe)})),xt.mutatedParts=hm(xt.mutatedParts||{},gt),At})}}),et=function(bt){var Nt=bt.query,bt=Nt.index,Nt=Nt.range;return[bt,new kn((bt=Nt.lower)!==null&&bt!==void 0?bt:N.MIN_KEY,(Nt=Nt.upper)!==null&&Nt!==void 0?Nt:N.MAX_KEY)]},yt={get:function(ot){return[B,new kn(ot.key)]},getMany:function(ot){return[B,new kn().addKeys(ot.keys)]},count:et,query:et,openCursor:et};return a(yt).forEach(function(ot){pt[ot]=function(bt){var Nt=se.subscr,mt=!!Nt,Lt=j2(se,k)&&O2(ot,bt)?bt.obsSet={}:Nt;if(mt){var xt=function(Bt){return Bt="idb://".concat(M,"/").concat(x,"/").concat(Bt),Lt[Bt]||(Lt[Bt]=new kn)},gt=xt(""),kt=xt(":dels"),Nt=yt[ot](bt),mt=Nt[0],Nt=Nt[1];if((ot==="query"&&mt.isPrimaryKey&&!bt.values?kt:xt(mt.name||"")).add(Nt),!mt.isPrimaryKey){if(ot!=="count"){var vt=ot==="query"&&ct&&bt.values&&k.query(n(n({},bt),{values:!1}));return k[ot].apply(this,arguments).then(function(Bt){if(ot==="query"){if(ct&&bt.values)return vt.then(function(qe){return qe=qe.result,gt.addKeys(qe),Bt});var ae=bt.values?Bt.result.map($):Bt.result;(bt.values?gt:kt).addKeys(ae)}else if(ot==="openCursor"){var At=Bt,pe=bt.values;return At&&Object.create(At,{key:{get:function(){return kt.addKey(At.primaryKey),At.key}},primaryKey:{get:function(){var qe=At.primaryKey;return kt.addKey(qe),qe}},value:{get:function(){return pe&&gt.addKey(At.primaryKey),At.value}}})}return Bt})}kt.add(V)}}return k[ot].apply(this,arguments)}}),pt}})}};function C2(N,M,V){if(V.numFailures===0)return M;if(M.type==="deleteRange")return null;var x=M.keys?M.keys.length:"values"in M&&M.values?M.values.length:1;return V.numFailures===x?null:(M=n({},M),o(M.keys)&&(M.keys=M.keys.filter(function(k,F){return!(F in V.failures)})),"values"in M&&o(M.values)&&(M.values=M.values.filter(function(k,F){return!(F in V.failures)})),M)}function Z0(N,M){return V=N,((x=M).lower===void 0||(x.lowerOpen?0<ke(V,x.lower):0<=ke(V,x.lower)))&&(N=N,(M=M).upper===void 0||(M.upperOpen?ke(N,M.upper)<0:ke(N,M.upper)<=0));var V,x}function Rr(N,M,yt,x,k,F){if(!yt||yt.length===0)return N;var B=M.query.index,$=B.multiEntry,ct=M.query.range,dt=x.schema.primaryKey.extractKey,pt=B.extractKey,et=(B.lowLevelIndex||B).extractKey,yt=yt.reduce(function(ot,bt){var Nt=ot,mt=[];if(bt.type==="add"||bt.type==="put")for(var Lt=new kn,xt=bt.values.length-1;0<=xt;--xt){var gt,kt=bt.values[xt],vt=dt(kt);Lt.hasKey(vt)||(gt=pt(kt),($&&o(gt)?gt.some(function(At){return Z0(At,ct)}):Z0(gt,ct))&&(Lt.addKey(vt),mt.push(kt)))}switch(bt.type){case"add":var te=new kn().addKeys(M.values?ot.map(function(pe){return dt(pe)}):ot),Nt=ot.concat(M.values?mt.filter(function(pe){return pe=dt(pe),!te.hasKey(pe)&&(te.addKey(pe),!0)}):mt.map(function(pe){return dt(pe)}).filter(function(pe){return!te.hasKey(pe)&&(te.addKey(pe),!0)}));break;case"put":var Kt=new kn().addKeys(bt.values.map(function(pe){return dt(pe)}));Nt=ot.filter(function(pe){return!Kt.hasKey(M.values?dt(pe):pe)}).concat(M.values?mt:mt.map(function(pe){return dt(pe)}));break;case"delete":var Bt=new kn().addKeys(bt.keys);Nt=ot.filter(function(pe){return!Bt.hasKey(M.values?dt(pe):pe)});break;case"deleteRange":var ae=bt.range;Nt=ot.filter(function(pe){return!Z0(dt(pe),ae)})}return Nt},N);return yt===N?N:(yt.sort(function(ot,bt){return ke(et(ot),et(bt))||ke(dt(ot),dt(bt))}),M.limit&&M.limit<1/0&&(yt.length>M.limit?yt.length=M.limit:N.length===M.limit&&yt.length<M.limit&&(k.dirty=!0)),F?Object.freeze(yt):yt)}function F2(N,M){return ke(N.lower,M.lower)===0&&ke(N.upper,M.upper)===0&&!!N.lowerOpen==!!M.lowerOpen&&!!N.upperOpen==!!M.upperOpen}function J2(N,M){return function(V,x,k,F){if(V===void 0)return x!==void 0?-1:0;if(x===void 0)return 1;if((x=ke(V,x))===0){if(k&&F)return 0;if(k)return 1;if(F)return-1}return x}(N.lower,M.lower,N.lowerOpen,M.lowerOpen)<=0&&0<=function(V,x,k,F){if(V===void 0)return x!==void 0?1:0;if(x===void 0)return-1;if((x=ke(V,x))===0){if(k&&F)return 0;if(k)return-1;if(F)return 1}return x}(N.upper,M.upper,N.upperOpen,M.upperOpen)}function U2(N,M,V,x){N.subscribers.add(V),x.addEventListener("abort",function(){var k,F;N.subscribers.delete(V),N.subscribers.size===0&&(k=N,F=M,setTimeout(function(){k.subscribers.size===0&&Yt(F,k)},3e3))})}var E2={stack:"dbcore",level:0,name:"Cache",create:function(N){var M=N.schema.name;return n(n({},N),{transaction:function(V,x,k){var F,B,$=N.transaction(V,x,k);return x==="readwrite"&&(B=(F=new AbortController).signal,k=function(ct){return function(){if(F.abort(),x==="readwrite"){for(var dt=new Set,pt=0,et=V;pt<et.length;pt++){var yt=et[pt],ot=Go["idb://".concat(M,"/").concat(yt)];if(ot){var bt=N.table(yt),Nt=ot.optimisticOps.filter(function(pe){return pe.trans===$});if($._explicit&&ct&&$.mutatedParts)for(var mt=0,Lt=Object.values(ot.queries.query);mt<Lt.length;mt++)for(var xt=0,gt=(te=Lt[mt]).slice();xt<gt.length;xt++)Lb((Kt=gt[xt]).obsSet,$.mutatedParts)&&(Yt(te,Kt),Kt.subscribers.forEach(function(pe){return dt.add(pe)}));else if(0<Nt.length){ot.optimisticOps=ot.optimisticOps.filter(function(pe){return pe.trans!==$});for(var kt=0,vt=Object.values(ot.queries.query);kt<vt.length;kt++)for(var te,Kt,Bt,ae=0,At=(te=vt[kt]).slice();ae<At.length;ae++)(Kt=At[ae]).res!=null&&$.mutatedParts&&(ct&&!Kt.dirty?(Bt=Object.isFrozen(Kt.res),Bt=Rr(Kt.res,Kt.req,Nt,bt,Kt,Bt),Kt.dirty?(Yt(te,Kt),Kt.subscribers.forEach(function(pe){return dt.add(pe)})):Bt!==Kt.res&&(Kt.res=Bt,Kt.promise=oe.resolve({result:Bt}))):(Kt.dirty&&Yt(te,Kt),Kt.subscribers.forEach(function(pe){return dt.add(pe)})))}}}dt.forEach(function(pe){return pe()})}}},$.addEventListener("abort",k(!1),{signal:B}),$.addEventListener("error",k(!1),{signal:B}),$.addEventListener("complete",k(!0),{signal:B})),$},table:function(V){var x=N.table(V),k=x.schema.primaryKey;return n(n({},x),{mutate:function(F){var B=se.trans;if(k.outbound||B.db._options.cache==="disabled"||B.explicit||B.idbtrans.mode!=="readwrite")return x.mutate(F);var $=Go["idb://".concat(M,"/").concat(V)];return $?(B=x.mutate(F),F.type!=="add"&&F.type!=="put"||!(50<=F.values.length||ym(k,F).some(function(ct){return ct==null}))?($.optimisticOps.push(F),F.mutatedParts&&Zm(F.mutatedParts),B.then(function(ct){0<ct.numFailures&&(Yt($.optimisticOps,F),(ct=C2(0,F,ct))&&$.optimisticOps.push(ct),F.mutatedParts&&Zm(F.mutatedParts))}),B.catch(function(){Yt($.optimisticOps,F),F.mutatedParts&&Zm(F.mutatedParts)})):B.then(function(ct){var dt=C2(0,n(n({},F),{values:F.values.map(function(pt,et){var yt;return ct.failures[et]?pt:(pt=(yt=k.keyPath)!==null&&yt!==void 0&&yt.includes(".")?Tt(pt):n({},pt),Q(pt,k.keyPath,ct.results[et]),pt)})}),ct);$.optimisticOps.push(dt),queueMicrotask(function(){return F.mutatedParts&&Zm(F.mutatedParts)})}),B):x.mutate(F)},query:function(F){if(!j2(se,x)||!O2("query",F))return x.query(F);var B=((dt=se.trans)===null||dt===void 0?void 0:dt.db._options.cache)==="immutable",et=se,$=et.requery,ct=et.signal,dt=function(bt,Nt,mt,Lt){var xt=Go["idb://".concat(bt,"/").concat(Nt)];if(!xt)return[];if(!(Nt=xt.queries[mt]))return[null,!1,xt,null];var gt=Nt[(Lt.query?Lt.query.index.name:null)||""];if(!gt)return[null,!1,xt,null];switch(mt){case"query":var kt=gt.find(function(vt){return vt.req.limit===Lt.limit&&vt.req.values===Lt.values&&F2(vt.req.query.range,Lt.query.range)});return kt?[kt,!0,xt,gt]:[gt.find(function(vt){return("limit"in vt.req?vt.req.limit:1/0)>=Lt.limit&&(!Lt.values||vt.req.values)&&J2(vt.req.query.range,Lt.query.range)}),!1,xt,gt];case"count":return kt=gt.find(function(vt){return F2(vt.req.query.range,Lt.query.range)}),[kt,!!kt,xt,gt]}}(M,V,"query",F),pt=dt[0],et=dt[1],yt=dt[2],ot=dt[3];return pt&&et?pt.obsSet=F.obsSet:(et=x.query(F).then(function(bt){var Nt=bt.result;if(pt&&(pt.res=Nt),B){for(var mt=0,Lt=Nt.length;mt<Lt;++mt)Object.freeze(Nt[mt]);Object.freeze(Nt)}else bt.result=Tt(Nt);return bt}).catch(function(bt){return ot&&pt&&Yt(ot,pt),Promise.reject(bt)}),pt={obsSet:F.obsSet,promise:et,subscribers:new Set,type:"query",req:F,dirty:!1},ot?ot.push(pt):(ot=[pt],(yt=yt||(Go["idb://".concat(M,"/").concat(V)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[F.query.index.name||""]=ot)),U2(pt,ot,$,ct),pt.promise.then(function(bt){return{result:Rr(bt.result,F,yt==null?void 0:yt.optimisticOps,x,pt,B)}})}})}})}};function p0(N,M){return new Proxy(N,{get:function(V,x,k){return x==="db"?M:Reflect.get(V,x,k)}})}var Va=(Dl.prototype.version=function(N){if(isNaN(N)||N<.1)throw new Ft.Type("Given version is not a positive number");if(N=Math.round(10*N)/10,this.idbdb||this._state.isBeingOpened)throw new Ft.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,N);var M=this._versions,V=M.filter(function(x){return x._cfg.version===N})[0];return V||(V=new this.Version(N),M.push(V),M.sort(S2),V.stores({}),this._state.autoSchema=!1,V)},Dl.prototype._whenReady=function(N){var M=this;return this.idbdb&&(this._state.openComplete||se.letThrough||this._vip)?N():new oe(function(V,x){if(M._state.openComplete)return x(new Ft.DatabaseClosed(M._state.dbOpenError));if(!M._state.isBeingOpened){if(!M._state.autoOpen)return void x(new Ft.DatabaseClosed);M.open().catch(Oe)}M._state.dbReadyPromise.then(V,x)}).then(N)},Dl.prototype.use=function(N){var M=N.stack,V=N.create,x=N.level,k=N.name;return k&&this.unuse({stack:M,name:k}),N=this._middlewares[M]||(this._middlewares[M]=[]),N.push({stack:M,create:V,level:x??10,name:k}),N.sort(function(F,B){return F.level-B.level}),this},Dl.prototype.unuse=function(N){var M=N.stack,V=N.name,x=N.create;return M&&this._middlewares[M]&&(this._middlewares[M]=this._middlewares[M].filter(function(k){return x?k.create!==x:!!V&&k.name!==V})),this},Dl.prototype.open=function(){var N=this;return Wa(zn,function(){return b1(N)})},Dl.prototype._close=function(){var N=this._state,M=Ga.indexOf(this);if(0<=M&&Ga.splice(M,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}N.isBeingOpened||(N.dbReadyPromise=new oe(function(V){N.dbReadyResolve=V}),N.openCanceller=new oe(function(V,x){N.cancelOpen=x}))},Dl.prototype.close=function(V){var M=(V===void 0?{disableAutoOpen:!0}:V).disableAutoOpen,V=this._state;M?(V.isBeingOpened&&V.cancelOpen(new Ft.DatabaseClosed),this._close(),V.autoOpen=!1,V.dbOpenError=new Ft.DatabaseClosed):(this._close(),V.autoOpen=this._options.autoOpen||V.isBeingOpened,V.openComplete=!1,V.dbOpenError=null)},Dl.prototype.delete=function(N){var M=this;N===void 0&&(N={disableAutoOpen:!0});var V=0<arguments.length&&typeof arguments[0]!="object",x=this._state;return new oe(function(k,F){function B(){M.close(N);var $=M._deps.indexedDB.deleteDatabase(M.name);$.onsuccess=de(function(){var ct,dt,pt;ct=M._deps,dt=M.name,pt=ct.indexedDB,ct=ct.IDBKeyRange,u0(pt)||dt===Xa||Vb(pt,ct).delete(dt).catch(Oe),k()}),$.onerror=Ae(F),$.onblocked=M._fireOnBlocked}if(V)throw new Ft.InvalidArgument("Invalid closeOptions argument to db.delete()");x.isBeingOpened?x.dbReadyPromise.then(B):B()})},Dl.prototype.backendDB=function(){return this.idbdb},Dl.prototype.isOpen=function(){return this.idbdb!==null},Dl.prototype.hasBeenClosed=function(){var N=this._state.dbOpenError;return N&&N.name==="DatabaseClosed"},Dl.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Dl.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Dl.prototype,"tables",{get:function(){var N=this;return a(this._allTables).map(function(M){return N._allTables[M]})},enumerable:!1,configurable:!0}),Dl.prototype.transaction=function(){var N=(function(M,V,x){var k=arguments.length;if(k<2)throw new Ft.InvalidArgument("Too few arguments");for(var F=new Array(k-1);--k;)F[k-1]=arguments[k];return x=F.pop(),[M,_(F),x]}).apply(this,arguments);return this._transaction.apply(this,N)},Dl.prototype._transaction=function(N,M,V){var x=this,k=se.trans;k&&k.db===this&&N.indexOf("!")===-1||(k=null);var F,B,$=N.indexOf("?")!==-1;N=N.replace("!","").replace("?","");try{if(B=M.map(function(dt){if(dt=dt instanceof x.Table?dt.name:dt,typeof dt!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return dt}),N=="r"||N===Vc)F=Vc;else{if(N!="rw"&&N!=Pt)throw new Ft.InvalidArgument("Invalid transaction mode: "+N);F=Pt}if(k){if(k.mode===Vc&&F===Pt){if(!$)throw new Ft.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");k=null}k&&B.forEach(function(dt){if(k&&k.storeNames.indexOf(dt)===-1){if(!$)throw new Ft.SubTransaction("Table "+dt+" not included in parent transaction.");k=null}}),$&&k&&!k.active&&(k=null)}}catch(dt){return k?k._promise(null,function(pt,et){et(dt)}):Hl(dt)}var ct=(function dt(pt,et,yt,ot,bt){return oe.resolve().then(function(){var Nt=se.transless||se,mt=pt._createTransaction(et,yt,pt._dbSchema,ot);if(mt.explicit=!0,Nt={trans:mt,transless:Nt},ot)mt.idbtrans=ot.idbtrans;else try{mt.create(),mt.idbtrans._explicit=!0,pt._state.PR1398_maxLoop=3}catch(gt){return gt.name===me.InvalidState&&pt.isOpen()&&0<--pt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),pt.close({disableAutoOpen:!1}),pt.open().then(function(){return dt(pt,et,yt,null,bt)})):Hl(gt)}var Lt,xt=lt(bt);return xt&&Tc(),Nt=oe.follow(function(){var gt;(Lt=bt.call(mt,mt))&&(xt?(gt=ci.bind(null,null),Lt.then(gt,gt)):typeof Lt.next=="function"&&typeof Lt.throw=="function"&&(Lt=b0(Lt)))},Nt),(Lt&&typeof Lt.then=="function"?oe.resolve(Lt).then(function(gt){return mt.active?gt:Hl(new Ft.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):Nt.then(function(){return Lt})).then(function(gt){return ot&&mt._resolve(),mt._completion.then(function(){return gt})}).catch(function(gt){return mt._reject(gt),Hl(gt)})})}).bind(null,this,F,B,k,V);return k?k._promise(F,ct,"lock"):se.trans?Wa(se.transless,function(){return x._whenReady(ct)}):this._whenReady(ct)},Dl.prototype.table=function(N){if(!Z(this._allTables,N))throw new Ft.InvalidTable("Table ".concat(N," does not exist"));return this._allTables[N]},Dl);function Dl(N,M){var V=this;this._middlewares={},this.verno=0;var x=Dl.dependencies;this._options=M=n({addons:Dl.addons,autoOpen:!0,indexedDB:x.indexedDB,IDBKeyRange:x.IDBKeyRange,cache:"cloned"},M),this._deps={indexedDB:M.indexedDB,IDBKeyRange:M.IDBKeyRange},x=M.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var k,F,B,$,ct,dt={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Oe,dbReadyPromise:null,cancelOpen:Oe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:M.autoOpen};dt.dbReadyPromise=new oe(function(et){dt.dbReadyResolve=et}),dt.openCanceller=new oe(function(et,yt){dt.cancelOpen=yt}),this._state=dt,this.name=N,this.on=Os(this,"populate","blocked","versionchange","close",{ready:[Jn,Oe]}),this.on.ready.subscribe=R(this.on.ready.subscribe,function(et){return function(yt,ot){Dl.vip(function(){var bt,Nt=V._state;Nt.openComplete?(Nt.dbOpenError||oe.resolve().then(yt),ot&&et(yt)):Nt.onReadyBeingFired?(Nt.onReadyBeingFired.push(yt),ot&&et(yt)):(et(yt),bt=V,ot||et(function mt(){bt.on.ready.unsubscribe(yt),bt.on.ready.unsubscribe(mt)}))})}}),this.Collection=(k=this,ps(Nl.prototype,function(Lt,mt){this.db=k;var ot=el,bt=null;if(mt)try{ot=mt()}catch(xt){bt=xt}var Nt=Lt._ctx,mt=Nt.table,Lt=mt.hook.reading.fire;this._ctx={table:mt,index:Nt.index,isPrimKey:!Nt.index||mt.schema.primKey.keyPath&&Nt.index===mt.schema.primKey.name,range:ot,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:bt,or:Nt.or,valueMapper:Lt!==nn?Lt:null}})),this.Table=(F=this,ps(oi.prototype,function(et,yt,ot){this.db=F,this._tx=ot,this.name=et,this.schema=yt,this.hook=F._allTables[et]?F._allTables[et].hook:Os(null,{creating:[nl,Oe],reading:[Fn,nn],updating:[bn,Oe],deleting:[Pl,Oe]})})),this.Transaction=(B=this,ps(s0.prototype,function(et,yt,ot,bt,Nt){var mt=this;this.db=B,this.mode=et,this.storeNames=yt,this.schema=ot,this.chromeTransactionDurability=bt,this.idbtrans=null,this.on=Os(this,"complete","error","abort"),this.parent=Nt||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new oe(function(Lt,xt){mt._resolve=Lt,mt._reject=xt}),this._completion.then(function(){mt.active=!1,mt.on.complete.fire()},function(Lt){var xt=mt.active;return mt.active=!1,mt.on.error.fire(Lt),mt.parent?mt.parent._reject(Lt):xt&&mt.idbtrans&&mt.idbtrans.abort(),Hl(Lt)})})),this.Version=($=this,ps(Tb.prototype,function(et){this.db=$,this._cfg={version:et,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(ct=this,ps(Ge.prototype,function(et,yt,ot){if(this.db=ct,this._ctx={table:et,index:yt===":id"?null:yt,or:ot},this._cmp=this._ascending=ke,this._descending=function(bt,Nt){return ke(Nt,bt)},this._max=function(bt,Nt){return 0<ke(bt,Nt)?bt:Nt},this._min=function(bt,Nt){return ke(bt,Nt)<0?bt:Nt},this._IDBKeyRange=ct._deps.IDBKeyRange,!this._IDBKeyRange)throw new Ft.MissingAPI})),this.on("versionchange",function(et){0<et.newVersion?console.warn("Another connection wants to upgrade database '".concat(V.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(V.name,"'. Closing db now to resume the delete request.")),V.close({disableAutoOpen:!1})}),this.on("blocked",function(et){!et.newVersion||et.newVersion<et.oldVersion?console.warn("Dexie.delete('".concat(V.name,"') was blocked")):console.warn("Upgrade '".concat(V.name,"' blocked by other connection holding version ").concat(et.oldVersion/10))}),this._maxKey=c0(M.IDBKeyRange),this._createTransaction=function(et,yt,ot,bt){return new V.Transaction(et,yt,ot,V._options.chromeTransactionDurability,bt)},this._fireOnBlocked=function(et){V.on("blocked").fire(et),Ga.filter(function(yt){return yt.name===V.name&&yt!==V&&!yt._state.vcFired}).map(function(yt){return yt.on("versionchange").fire(et)})},this.use(y1),this.use(E2),this.use(N1),this.use(Z1),this.use(p1);var pt=new Proxy(this,{get:function(et,yt,ot){if(yt==="_vip")return!0;if(yt==="table")return function(Nt){return p0(V.table(Nt),pt)};var bt=Reflect.get(et,yt,ot);return bt instanceof oi?p0(bt,pt):yt==="tables"?bt.map(function(Nt){return p0(Nt,pt)}):yt==="_createTransaction"?function(){return p0(bt.apply(this,arguments),pt)}:bt}});this.vip=pt,x.forEach(function(et){return et(V)})}var Nm,Ns=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",W1=(Wm.prototype.subscribe=function(N,M,V){return this._subscribe(N&&typeof N!="function"?N:{next:N,error:M,complete:V})},Wm.prototype[Ns]=function(){return this},Wm);function Wm(N){this._subscribe=N}try{Nm={indexedDB:s.indexedDB||s.mozIndexedDB||s.webkitIndexedDB||s.msIndexedDB,IDBKeyRange:s.IDBKeyRange||s.webkitIDBKeyRange}}catch{Nm={indexedDB:null,IDBKeyRange:null}}function xb(N){var M,V=!1,x=new W1(function(k){var F=lt(N),B,$=!1,ct={},dt={},pt={get closed(){return $},unsubscribe:function(){$||($=!0,B&&B.abort(),et&&Fs.storagemutated.unsubscribe(ot))}};k.start&&k.start(pt);var et=!1,yt=function(){return _i(bt)},ot=function(Nt){hm(ct,Nt),Lb(dt,ct)&&yt()},bt=function(){var Nt,mt,Lt;!$&&Nm.indexedDB&&(ct={},Nt={},B&&B.abort(),B=new AbortController,Lt=function(xt){var gt=Vl();try{F&&Tc();var kt=Zs(N,xt);return kt=F?kt.finally(ci):kt}finally{gt&&Il()}}(mt={subscr:Nt,signal:B.signal,requery:yt,querier:N,trans:null}),Promise.resolve(Lt).then(function(xt){V=!0,M=xt,$||mt.signal.aborted||(ct={},function(gt){for(var kt in gt)if(Z(gt,kt))return;return 1}(dt=Nt)||et||(Fs(an,ot),et=!0),_i(function(){return!$&&k.next&&k.next(xt)}))},function(xt){V=!1,["DatabaseClosedError","AbortError"].includes(xt==null?void 0:xt.name)||$||_i(function(){$||k.error&&k.error(xt)})}))};return setTimeout(yt,0),pt});return x.hasValue=function(){return V},x.getValue=function(){return M},x}var Js=Va;function Xo(N){var M=Us;try{Us=!0,Fs.storagemutated.fire(N),zb(N,!0)}finally{Us=M}}p(Js,n(n({},yl),{delete:function(N){return new Js(N,{addons:[]}).delete()},exists:function(N){return new Js(N,{addons:[]}).open().then(function(M){return M.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(N){try{return M=Js.dependencies,V=M.indexedDB,M=M.IDBKeyRange,(u0(V)?Promise.resolve(V.databases()).then(function(x){return x.map(function(k){return k.name}).filter(function(k){return k!==Xa})}):Vb(V,M).toCollection().primaryKeys()).then(N)}catch{return Hl(new Ft.MissingAPI)}var M,V},defineClass:function(){return function(N){d(this,N)}},ignoreTransaction:function(N){return se.trans?Wa(se.transless,N):N()},vip:m0,async:function(N){return function(){try{var M=b0(N.apply(this,arguments));return M&&typeof M.then=="function"?M:oe.resolve(M)}catch(V){return Hl(V)}}},spawn:function(N,M,V){try{var x=b0(N.apply(V,M||[]));return x&&typeof x.then=="function"?x:oe.resolve(x)}catch(k){return Hl(k)}},currentTransaction:{get:function(){return se.trans||null}},waitFor:function(N,M){return M=oe.resolve(typeof N=="function"?Js.ignoreTransaction(N):N).timeout(M||6e4),se.trans?se.trans.waitFor(M):M},Promise:oe,debug:{get:function(){return Zn},set:function(N){Za(N)}},derive:X,extend:d,props:p,override:R,Events:Os,on:Fs,liveQuery:xb,extendObservabilitySet:hm,getByKeyPath:j,setByKeyPath:Q,delByKeyPath:function(N,M){typeof M=="string"?Q(N,M,void 0):"length"in M&&[].map.call(M,function(V){Q(N,V,void 0)})},shallowClone:it,deepClone:Tt,getObjectDiff:wb,cmp:ke,asap:U,minKey:-1/0,addons:[],connections:Ga,errnames:me,dependencies:Nm,cache:Go,semVer:"4.0.11",version:"4.0.11".split(".").map(function(N){return parseInt(N)}).reduce(function(N,M,V){return N+M/Math.pow(10,2*V)})})),Js.maxKey=c0(Js.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Fs(an,function(N){Us||(N=new CustomEvent(i0,{detail:N}),Us=!0,dispatchEvent(N),Us=!1)}),addEventListener(i0,function(N){N=N.detail,Us||Xo(N)}));var kr,Us=!1,v2=function(){};return typeof BroadcastChannel<"u"&&((v2=function(){(kr=new BroadcastChannel(i0)).onmessage=function(N){return N.data&&Xo(N.data)}})(),typeof kr.unref=="function"&&kr.unref(),Fs(an,function(N){Us||kr.postMessage(N)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(N){if(!Va.disableBfCache&&N.persisted){Zn&&console.debug("Dexie: handling persisted pagehide"),kr!=null&&kr.close();for(var M=0,V=Ga;M<V.length;M++)V[M].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(N){!Va.disableBfCache&&N.persisted&&(Zn&&console.debug("Dexie: handling persisted pageshow"),v2(),Xo({all:new kn(-1/0,[[]])}))})),oe.rejectionMapper=function(N,M){return!N||N instanceof H||N instanceof TypeError||N instanceof SyntaxError||!N.name||!Pe[N.name]?N:(M=new Pe[N.name](M||N.message,N),"stack"in N&&G(M,"stack",{get:function(){return this.inner.stack}}),M)},Za(Zn),n(Va,Object.freeze({__proto__:null,Dexie:Va,liveQuery:xb,Entity:sn,cmp:ke,PropModification:ri,replacePrefix:function(N,M){return new ri({replacePrefix:[N,M]})},add:function(N){return new ri({add:N})},remove:function(N){return new ri({remove:N})},default:Va,RangeSet:kn,mergeRanges:h0,rangesOverlap:R2}),{default:Va}),Va})}(ZN)),ZN.exports}var Ek=Uk();const vG=qu(Ek),HV=Symbol.for("Dexie"),_N=globalThis[HV]||(globalThis[HV]=vG);if(vG.semVer!==_N.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${vG.semVer} and ${_N.semVer}`);const{liveQuery:QQ,mergeRanges:BQ,rangesOverlap:AQ,RangeSet:_Q,cmp:qQ,Entity:$Q,PropModification:tB,replacePrefix:eB,add:lB,remove:nB}=_N,KG=new EventTarget;let CM=[];const FM=l=>{KG.dispatchEvent(new CustomEvent("conversationChange",{detail:{convId:l}}))},ln=new _N("LlamacppWebui");ln.version(1).stores({conversations:"&id, lastModified",messages:"&id, convId, [convId+id], timestamp"});const El={async getAllConversations(){return await vk().catch(console.error),(await ln.conversations.toArray()).sort((l,t)=>t.lastModified-l.lastModified)},async getOneConversation(l){return await ln.conversations.where("id").equals(l).first()??null},async getMessages(l){return await ln.messages.where({convId:l}).toArray()},filterByLeafNodeId(l,t,e){const n=[],i=new Map;for(const o of l)i.set(o.id,o);let s=i.get(t);if(!s){let o=-1;for(const d of l)d.timestamp>o&&(s=d,o=d.timestamp)}let a=s;for(;a;)(a.type!=="root"||a.type==="root"&&e)&&n.push(a),a=i.get(a.parent??-1);return n.sort((o,d)=>o.timestamp-d.timestamp),n},async createConversation(l){const t=Date.now(),e=t,n={id:`conv-${t}`,lastModified:t,currNode:e,name:l};return await ln.conversations.add(n),await ln.messages.add({id:e,convId:n.id,type:"root",timestamp:t,role:"system",content:"",parent:-1,children:[]}),n},async updateConversationName(l,t){await ln.conversations.update(l,{name:t,lastModified:Date.now()}),FM(l)},async appendMsg(l,t){if(l.content===null)return;const{convId:e}=l;await ln.transaction("rw",ln.conversations,ln.messages,async()=>{const n=await El.getOneConversation(e),i=await ln.messages.where({convId:e,id:t}).first();if(!n)throw new Error(`Conversation ${e} does not exist`);if(!i)throw new Error(`Parent message ID ${t} does not exist in conversation ${e}`);await ln.conversations.update(e,{lastModified:Date.now(),currNode:l.id}),await ln.messages.update(t,{children:[...i.children,l.id]}),await ln.messages.add({...l,parent:t,children:[]})}),FM(e)},async remove(l){await ln.transaction("rw",ln.conversations,ln.messages,async()=>{await ln.conversations.delete(l),await ln.messages.where({convId:l}).delete()}),FM(l)},onConversationChanged(l){const t=e=>l(e.detail.convId);CM.push([l,t]),KG.addEventListener("conversationChange",t)},offConversationChanged(l){const t=CM.find(([e,n])=>e===l);t&&KG.removeEventListener("conversationChange",t[1]),CM=[]},getConfig(){const l=JSON.parse(localStorage.getItem("config")||"{}");return{...jd,...l}},setConfig(l){localStorage.setItem("config",JSON.stringify(l))},getTheme(){return localStorage.getItem("theme")||"auto"},setTheme(l){l==="auto"?localStorage.removeItem("theme"):localStorage.setItem("theme",l)}};async function vk(){if(localStorage.getItem("migratedToIDB"))return;const l=[];for(const t in localStorage)t.startsWith("conv-")&&l.push(JSON.parse(localStorage.getItem(t)??"{}"));l.length!==0&&await ln.transaction("rw",ln.conversations,ln.messages,async()=>{let t=0;for(const e of l){const{id:n,lastModified:i,messages:s}=e,a=s[0],o=s.at(-1);if(s.length<2||!a||!o){console.log(`Skipping conversation ${n} with ${s.length} messages`);continue}const d=a.content??"(no messages)";await ln.conversations.add({id:n,lastModified:i,currNode:o.id,name:d});const u=s[0].id-2;await ln.messages.add({id:u,convId:n,type:"root",timestamp:u,role:"system",content:"",parent:-1,children:[a.id]});for(let m=0;m<s.length;m++){const Z=s[m];await ln.messages.add({...Z,type:"text",convId:n,timestamp:Z.id,parent:m===0?u:s[m-1].id,children:m===s.length-1?[]:[s[m+1].id]})}t++,console.log(`Migrated conversation ${n} with ${s.length} messages`)}console.log(`Migrated ${t} conversations from localStorage to IndexedDB`),localStorage.setItem("migratedToIDB","1")})}let Kk={data:""},Pk=l=>typeof window=="object"?((l?l.querySelector("#_goober"):window._goober)||Object.assign((l||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:l||Kk,Hk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Qk=/\/\*[^]*?\*\/| +/g,QV=/\n+/g,qr=(l,t)=>{let e="",n="",i="";for(let s in l){let a=l[s];s[0]=="@"?s[1]=="i"?e=s+" "+a+";":n+=s[1]=="f"?qr(a,s):s+"{"+qr(a,s[1]=="k"?"":t)+"}":typeof a=="object"?n+=qr(a,t?t.replace(/([^,])+/g,o=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,d=>/&/.test(d)?d.replace(/&/g,o):o?o+" "+d:d)):s):a!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=qr.p?qr.p(s,a):s+":"+a+";")}return e+(t&&i?t+"{"+i+"}":i)+n},go={},Bz=l=>{if(typeof l=="object"){let t="";for(let e in l)t+=e+Bz(l[e]);return t}return l},Bk=(l,t,e,n,i)=>{let s=Bz(l),a=go[s]||(go[s]=(d=>{let u=0,m=11;for(;u<d.length;)m=101*m+d.charCodeAt(u++)>>>0;return"go"+m})(s));if(!go[a]){let d=s!==l?l:(u=>{let m,Z,p=[{}];for(;m=Hk.exec(u.replace(Qk,""));)m[4]?p.shift():m[3]?(Z=m[3].replace(QV," ").trim(),p.unshift(p[0][Z]=p[0][Z]||{})):p[0][m[1]]=m[2].replace(QV," ").trim();return p[0]})(l);go[a]=qr(i?{["@keyframes "+a]:d}:d,e?"":"."+a)}let o=e&&go.g?go.g:null;return e&&(go.g=go[a]),((d,u,m,Z)=>{Z?u.data=u.data.replace(Z,d):u.data.indexOf(d)===-1&&(u.data=m?d+u.data:u.data+d)})(go[a],t,n,o),a},Ak=(l,t,e)=>l.reduce((n,i,s)=>{let a=t[s];if(a&&a.call){let o=a(e),d=o&&o.props&&o.props.className||/^go/.test(o)&&o;a=d?"."+d:o&&typeof o=="object"?o.props?"":qr(o,""):o===!1?"":o}return n+i+(a??"")},"");function vW(l){let t=this||{},e=l.call?l(t.p):l;return Bk(e.unshift?e.raw?Ak(e,[].slice.call(arguments,1),t.p):e.reduce((n,i)=>Object.assign(n,i&&i.call?i(t.p):i),{}):e,Pk(t.target),t.g,t.o,t.k)}let Az,PG,HG;vW.bind({g:1});let Mr=vW.bind({k:1});function _k(l,t,e,n){qr.p=t,Az=l,PG=e,HG=n}function Bd(l,t){let e=this||{};return function(){let n=arguments;function i(s,a){let o=Object.assign({},s),d=o.className||i.className;e.p=Object.assign({theme:PG&&PG()},o),e.o=/ *go\d+/.test(d),o.className=vW.apply(e,n)+(d?" "+d:"");let u=l;return l[0]&&(u=o.as||l,delete o.as),HG&&u[0]&&HG(o),Az(u,o)}return i}}var qk=l=>typeof l=="function",qN=(l,t)=>qk(l)?l(t):l,$k=(()=>{let l=0;return()=>(++l).toString()})(),_z=(()=>{let l;return()=>{if(l===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");l=!t||t.matches}return l}})(),tf=20,qz=(l,t)=>{switch(t.type){case 0:return{...l,toasts:[t.toast,...l.toasts].slice(0,tf)};case 1:return{...l,toasts:l.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:e}=t;return qz(l,{type:l.toasts.find(s=>s.id===e.id)?1:0,toast:e});case 3:let{toastId:n}=t;return{...l,toasts:l.toasts.map(s=>s.id===n||n===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...l,toasts:[]}:{...l,toasts:l.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...l,pausedAt:t.time};case 6:let i=t.time-(l.pausedAt||0);return{...l,pausedAt:void 0,toasts:l.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},pN=[],J0={toasts:[],pausedAt:void 0},tm=l=>{J0=qz(J0,l),pN.forEach(t=>{t(J0)})},ef={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},lf=(l={})=>{let[t,e]=v.useState(J0),n=v.useRef(J0);v.useEffect(()=>(n.current!==J0&&e(J0),pN.push(e),()=>{let s=pN.indexOf(e);s>-1&&pN.splice(s,1)}),[]);let i=t.toasts.map(s=>{var a,o,d;return{...l,...l[s.type],...s,removeDelay:s.removeDelay||((a=l[s.type])==null?void 0:a.removeDelay)||(l==null?void 0:l.removeDelay),duration:s.duration||((o=l[s.type])==null?void 0:o.duration)||(l==null?void 0:l.duration)||ef[s.type],style:{...l.style,...(d=l[s.type])==null?void 0:d.style,...s.style}}});return{...t,toasts:i}},nf=(l,t="blank",e)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:l,pauseDuration:0,...e,id:(e==null?void 0:e.id)||$k()}),y2=l=>(t,e)=>{let n=nf(t,l,e);return tm({type:2,toast:n}),n.id},ds=(l,t)=>y2("blank")(l,t);ds.error=y2("error");ds.success=y2("success");ds.loading=y2("loading");ds.custom=y2("custom");ds.dismiss=l=>{tm({type:3,toastId:l})};ds.remove=l=>tm({type:4,toastId:l});ds.promise=(l,t,e)=>{let n=ds.loading(t.loading,{...e,...e==null?void 0:e.loading});return typeof l=="function"&&(l=l()),l.then(i=>{let s=t.success?qN(t.success,i):void 0;return s?ds.success(s,{id:n,...e,...e==null?void 0:e.success}):ds.dismiss(n),i}).catch(i=>{let s=t.error?qN(t.error,i):void 0;s?ds.error(s,{id:n,...e,...e==null?void 0:e.error}):ds.dismiss(n)}),l};var sf=(l,t)=>{tm({type:1,toast:{id:l,height:t}})},af=()=>{tm({type:5,time:Date.now()})},VZ=new Map,cf=1e3,of=(l,t=cf)=>{if(VZ.has(l))return;let e=setTimeout(()=>{VZ.delete(l),tm({type:4,toastId:l})},t);VZ.set(l,e)},rf=l=>{let{toasts:t,pausedAt:e}=lf(l);v.useEffect(()=>{if(e)return;let s=Date.now(),a=t.map(o=>{if(o.duration===1/0)return;let d=(o.duration||0)+o.pauseDuration-(s-o.createdAt);if(d<0){o.visible&&ds.dismiss(o.id);return}return setTimeout(()=>ds.dismiss(o.id),d)});return()=>{a.forEach(o=>o&&clearTimeout(o))}},[t,e]);let n=v.useCallback(()=>{e&&tm({type:6,time:Date.now()})},[e]),i=v.useCallback((s,a)=>{let{reverseOrder:o=!1,gutter:d=8,defaultPosition:u}=a||{},m=t.filter(y=>(y.position||u)===(s.position||u)&&y.height),Z=m.findIndex(y=>y.id===s.id),p=m.filter((y,G)=>G<Z&&y.visible).length;return m.filter(y=>y.visible).slice(...o?[p+1]:[0,p]).reduce((y,G)=>y+(G.height||0)+d,0)},[t]);return v.useEffect(()=>{t.forEach(s=>{if(s.dismissed)of(s.id,s.removeDelay);else{let a=VZ.get(s.id);a&&(clearTimeout(a),VZ.delete(s.id))}})},[t]),{toasts:t,handlers:{updateHeight:sf,startPause:af,endPause:n,calculateOffset:i}}},df=Mr`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,uf=Mr`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,mf=Mr`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,hf=Bd("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${l=>l.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${df} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${uf} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${l=>l.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${mf} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,bf=Mr`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,Zf=Bd("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${l=>l.secondary||"#e0e0e0"};
border-right-color: ${l=>l.primary||"#616161"};
animation: ${bf} 1s linear infinite;
`,pf=Mr`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,yf=Mr`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,Nf=Bd("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${l=>l.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${pf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${yf} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${l=>l.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,Wf=Bd("div")`
position: absolute;
`,Mf=Bd("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,Gf=Mr`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,Xf=Bd("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${Gf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,Yf=({toast:l})=>{let{icon:t,type:e,iconTheme:n}=l;return t!==void 0?typeof t=="string"?v.createElement(Xf,null,t):t:e==="blank"?null:v.createElement(Mf,null,v.createElement(Zf,{...n}),e!=="loading"&&v.createElement(Wf,null,e==="error"?v.createElement(hf,{...n}):v.createElement(Nf,{...n})))},Tf=l=>`
0% {transform: translate3d(0,${l*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,Vf=l=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${l*-150}%,-1px) scale(.6); opacity:0;}
`,Lf="0%{opacity:0;} 100%{opacity:1;}",If="0%{opacity:1;} 100%{opacity:0;}",zf=Bd("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,wf=Bd("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`,xf=(l,t)=>{let e=l.includes("top")?1:-1,[n,i]=_z()?[Lf,If]:[Tf(e),Vf(e)];return{animation:t?`${Mr(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Mr(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},gf=v.memo(({toast:l,position:t,style:e,children:n})=>{let i=l.height?xf(l.position||t||"top-center",l.visible):{opacity:0},s=v.createElement(Yf,{toast:l}),a=v.createElement(wf,{...l.ariaProps},qN(l.message,l));return v.createElement(zf,{className:l.className,style:{...i,...e,...l.style}},typeof n=="function"?n({icon:s,message:a}):v.createElement(v.Fragment,null,s,a))});_k(v.createElement);var Sf=({id:l,className:t,style:e,onHeightUpdate:n,children:i})=>{let s=v.useCallback(a=>{if(a){let o=()=>{let d=a.getBoundingClientRect().height;n(l,d)};o(),new MutationObserver(o).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[l,n]);return v.createElement("div",{ref:s,className:t,style:e},i)},Rf=(l,t)=>{let e=l.includes("top"),n=e?{top:0}:{bottom:0},i=l.includes("center")?{justifyContent:"center"}:l.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:_z()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(e?1:-1)}px)`,...n,...i}},kf=vW`
z-index: 9999;
> * {
pointer-events: auto;
}
`,Dy=16,ff=({reverseOrder:l,position:t="top-center",toastOptions:e,gutter:n,children:i,containerStyle:s,containerClassName:a})=>{let{toasts:o,handlers:d}=rf(e);return v.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Dy,left:Dy,right:Dy,bottom:Dy,pointerEvents:"none",...s},className:a,onMouseEnter:d.startPause,onMouseLeave:d.endPause},o.map(u=>{let m=u.position||t,Z=d.calculateOffset(u,{reverseOrder:l,gutter:n,defaultPosition:t}),p=Rf(m,Z);return v.createElement(Sf,{id:u.id,key:u.id,onHeightUpdate:d.updateHeight,className:u.visible?kf:"",style:p},u.type==="custom"?qN(u.message,u):i?i(u):v.createElement(gf,{toast:u,position:m}))}))},Ki=ds;const $z=v.createContext({}),BV=async l=>{const t=await El.getOneConversation(l);return t?{conv:t,messages:await El.getMessages(l)}:null},Df=({children:l})=>{var Wt;const{pathname:t}=Qd(),e=CY(),n=gZ("/chat/:convId",t),i=(Wt=n==null?void 0:n.params)==null?void 0:Wt.convId,[s,a]=v.useState(null),[o,d]=v.useState(null),[u,m]=v.useState({}),[Z,p]=v.useState({}),[y,G]=v.useState(El.getConfig()),[X,z]=v.useState(null),[L,S]=v.useState(!1);v.useEffect(()=>{jk(KV,y.apiKey).then(ht=>{console.debug("Server props:",ht),a(ht)}).catch(ht=>{console.error(ht),Ki.error("Failed to fetch server props")})},[]),v.useEffect(()=>{z(null);const ht=async Tt=>{Tt===i&&d(await BV(Tt))};return El.onConversationChanged(ht),BV(i??"").then(d),()=>{El.offConversationChanged(ht)}},[i]);const R=(ht,Tt)=>{m(Tt?Zt=>({...Zt,[ht]:Tt}):Zt=>{const Xt={...Zt};return delete Xt[ht],Xt})},J=(ht,Tt)=>{p(Tt?Zt=>({...Zt,[ht]:Tt}):Zt=>{const Xt={...Zt};return delete Xt[ht],Xt})},U=ht=>!!u[ht],j=async(ht,Tt,Zt)=>{var lt,Mt,H;if(U(ht))return;const Xt=El.getConfig();if(!await El.getOneConversation(ht))throw new Error("Current conversation is not found");const Rt=El.filterByLeafNodeId(await El.getMessages(ht),Tt,!1),Yt=new AbortController;if(J(ht,Yt),!Rt)throw new Error("Current messages are not found");const Dt=Date.now()+1;let K={id:Dt,convId:ht,type:"text",timestamp:Dt,role:"assistant",content:null,parent:Tt,children:[]};R(ht,K);try{let le=[...Xt.systemMessage.length===0?[]:[{role:"system",content:Xt.systemMessage}],...kk(Rt)];Xt.excludeThoughtOnReq&&(le=fk(le));const Ze={messages:le,stream:!0,cache_prompt:!0,reasoning_format:"none",samplers:Xt.samplers,temperature:Xt.temperature,dynatemp_range:Xt.dynatemp_range,dynatemp_exponent:Xt.dynatemp_exponent,top_k:Xt.top_k,top_p:Xt.top_p,min_p:Xt.min_p,typical_p:Xt.typical_p,xtc_probability:Xt.xtc_probability,xtc_threshold:Xt.xtc_threshold,repeat_last_n:Xt.repeat_last_n,repeat_penalty:Xt.repeat_penalty,presence_penalty:Xt.presence_penalty,frequency_penalty:Xt.frequency_penalty,dry_multiplier:Xt.dry_multiplier,dry_base:Xt.dry_base,dry_allowed_length:Xt.dry_allowed_length,dry_penalty_last_n:Xt.dry_penalty_last_n,max_tokens:Xt.max_tokens,timings_per_token:!!Xt.showTokensPerSecond,...Xt.custom.length?JSON.parse(Xt.custom):{}},$t=await fetch(`${KV}/v1/chat/completions`,{method:"POST",headers:{"Content-Type":"application/json",...Xt.apiKey?{Authorization:`Bearer ${Xt.apiKey}`}:{}},body:JSON.stringify(Ze),signal:Yt.signal});if($t.status!==200){const ye=await $t.json();throw new Error(((lt=ye==null?void 0:ye.error)==null?void 0:lt.message)||"Unknown error")}const me=Sk($t);for await(const ye of me){if(ye.error)throw new Error(((Mt=ye.error)==null?void 0:Mt.message)||"Unknown error");const Ft=(H=ye.choices[0])==null?void 0:H.delta.content,Pe=K.content||"";Ft&&(K={...K,content:Pe+Ft});const yl=ye.timings;yl&&Xt.showTokensPerSecond&&(K.timings={prompt_n:yl.prompt_n,prompt_ms:yl.prompt_ms,predicted_n:yl.predicted_n,predicted_ms:yl.predicted_ms}),R(ht,K),Zt()}}catch(le){if(R(ht,null),le.name!=="AbortError")throw console.error(le),Ki.error((le==null?void 0:le.message)??"Unknown error"),le}K.content!==null&&await El.appendMsg(K,Tt),R(ht,null),Zt(Dt)},Q=async(ht,Tt,Zt,Xt,St)=>{if(U(ht??"")||Zt.trim().length===0)return!1;if(ht===null||ht.length===0||Tt===null){const Dt=await El.createConversation(Zt.substring(0,256));ht=Dt.id,Tt=Dt.currNode,e(`/chat/${ht}`)}const Rt=Date.now(),Yt=Rt;El.appendMsg({id:Yt,timestamp:Rt,type:"text",convId:ht,role:"user",content:Zt,extra:Xt,parent:Tt,children:[]},Tt),St(Yt);try{return await j(ht,Yt,St),!0}catch{}return!1},it=ht=>{var Tt;R(ht,null),(Tt=Z[ht])==null||Tt.abort()},at=async(ht,Tt,Zt,Xt,St)=>{if(!U(ht)){if(Zt!==null){const Rt=Date.now(),Yt=Rt;El.appendMsg({id:Yt,timestamp:Rt,type:"text",convId:ht,role:"user",content:Zt,extra:Xt,parent:Tt,children:[]},Tt),Tt=Yt}St(Tt),await j(ht,Tt,St)}},_=ht=>{El.setConfig(ht),G(ht)};return P.jsx($z.Provider,{value:{isGenerating:U,viewingChat:o,pendingMessages:u,sendMessage:Q,stopGenerating:it,replaceMessageAndGenerate:at,canvasData:X,setCanvasData:z,config:y,saveConfig:_,showSettings:L,setShowSettings:S,serverProps:s},children:l})},Ha=()=>v.useContext($z);function jf({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const Of=v.forwardRef(jf);function Cf({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const Ff=v.forwardRef(Cf);function Jf({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Uf=v.forwardRef(Jf);function Ef({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 0 1 4.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0 1 12 15a9.065 9.065 0 0 0-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0 1 12 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"}))}const vf=v.forwardRef(Ef);function Kf({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-.065 4.48 4.48 0 0 0 .978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z"}))}const Pf=v.forwardRef(Kf);function Hf({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const Qf=v.forwardRef(Hf);function Bf({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Af=v.forwardRef(Bf);function _f({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const qf=v.forwardRef(_f);function $f({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const tD=v.forwardRef($f);function eD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))}const lD=v.forwardRef(eD);function nD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const iD=v.forwardRef(nD);function sD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"}))}const aD=v.forwardRef(sD);function cD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const oD=v.forwardRef(cD);function rD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.05 4.575a1.575 1.575 0 1 0-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 0 1 3.15 0v1.5m-3.15 0 .075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 0 1 3.15 0V15M6.9 7.575a1.575 1.575 0 1 0-3.15 0v8.175a6.75 6.75 0 0 0 6.75 6.75h2.018a5.25 5.25 0 0 0 3.712-1.538l1.732-1.732a5.25 5.25 0 0 0 1.538-3.712l.003-2.024a.668.668 0 0 1 .198-.471 1.575 1.575 0 1 0-2.228-2.228 3.818 3.818 0 0 0-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0 1 16.35 15m.002 0h-.002"}))}const dD=v.forwardRef(rD);function uD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const mD=v.forwardRef(uD);function hD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const t9=v.forwardRef(hD);function bD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))}const ZD=v.forwardRef(bD);function pD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"}))}const e9=v.forwardRef(pD);function yD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.114 5.636a9 9 0 0 1 0 12.728M16.463 8.288a5.25 5.25 0 0 1 0 7.424M6.75 8.25l4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.009 9.009 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"}))}const ND=v.forwardRef(yD);function WD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"}))}const MD=v.forwardRef(WD);function GD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9Z"}))}const XD=v.forwardRef(GD);function YD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const TD=v.forwardRef(YD);function VD({title:l,titleId:t,...e},n){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},e),l?v.createElement("title",{id:t},l):null,v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const QG=v.forwardRef(VD);function LD(){const[l,t]=v.useState(El.getTheme()),{setShowSettings:e}=Ha(),n=i=>{El.setTheme(i),t(i)};return v.useEffect(()=>{var i;document.body.setAttribute("data-theme",l),document.body.setAttribute("data-color-scheme",((i=Ez[l])==null?void 0:i["color-scheme"])??"auto")},[l]),P.jsxs("div",{className:"flex flex-row items-center pt-6 pb-6 sticky top-0 z-10 bg-base-100",children:[P.jsx("label",{htmlFor:"toggle-drawer",className:"btn btn-ghost lg:hidden",children:P.jsx(Uf,{className:"h-5 w-5"})}),P.jsx("div",{className:"grow text-2xl font-bold ml-2",children:"llama.cpp"}),P.jsxs("div",{className:"flex items-center",children:[P.jsx("div",{className:"tooltip tooltip-bottom","data-tip":"Settings",onClick:()=>e(!0),children:P.jsx("button",{className:"btn","aria-hidden":!0,children:P.jsx(tD,{className:"w-5 h-5"})})}),P.jsx("div",{className:"tooltip tooltip-bottom","data-tip":"Themes",children:P.jsxs("div",{className:"dropdown dropdown-end dropdown-bottom",children:[P.jsx("div",{tabIndex:0,role:"button",className:"btn m-1",children:P.jsx(mD,{className:"w-5 h-5"})}),P.jsxs("ul",{tabIndex:0,className:"dropdown-content bg-base-300 rounded-box z-[1] w-52 p-2 shadow-2xl h-80 overflow-y-auto",children:[P.jsx("li",{children:P.jsx("button",{className:Mi({"btn btn-sm btn-block btn-ghost justify-start":!0,"btn-active":l==="auto"}),onClick:()=>n("auto"),children:"auto"})}),Fk.map(i=>P.jsx("li",{children:P.jsx("input",{type:"radio",name:"theme-dropdown",className:"theme-controller btn btn-sm btn-block btn-ghost justify-start","aria-label":i,value:i,checked:l===i,onChange:s=>s.target.checked&&n(i)})},i))]})]})})]})]})}const ID=({className:l,...t})=>P.jsx("button",{className:`btn btn-square btn-sm ${l??""}`,...t,children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:P.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}),yN=({href:l,children:t})=>P.jsx("a",{className:"underline",href:l,target:"_blank",rel:"noopener noreferrer",children:t});function SZ({className:l,onClick:t,onMouseLeave:e,children:n,tooltipsContent:i,disabled:s}){return P.jsx("div",{className:"tooltip tooltip-bottom","data-tip":i,role:"button",onClick:t,children:P.jsx("button",{className:`${l??""} flex items-center justify-center`,disabled:s,onMouseLeave:e,"aria-hidden":!0,children:n})})}const l9=v.createContext(null);function zD({children:l}){const[t,e]=v.useState({isOpen:!1,message:"",resolve:null}),[n,i]=v.useState({isOpen:!1,message:"",resolve:null}),[s,a]=v.useState({isOpen:!1,message:"",resolve:null}),o=Lz.useRef(null),d=G=>new Promise(X=>{e({isOpen:!0,message:G,resolve:X})}),u=(G,X)=>new Promise(z=>{i({isOpen:!0,message:G,defaultValue:X,resolve:z})}),m=G=>new Promise(X=>{a({isOpen:!0,message:G,resolve:X})}),Z=G=>{var X;(X=t.resolve)==null||X.call(t,G),e({isOpen:!1,message:"",resolve:null})},p=G=>{var X;(X=n.resolve)==null||X.call(n,G),i({isOpen:!1,message:"",resolve:null})},y=()=>{var G;(G=s.resolve)==null||G.call(s),a({isOpen:!1,message:"",resolve:null})};return P.jsxs(l9.Provider,{value:{showConfirm:d,showPrompt:u,showAlert:m},children:[l,t.isOpen&&P.jsx("dialog",{className:"modal modal-open z-[1100]",children:P.jsxs("div",{className:"modal-box",children:[P.jsx("h3",{className:"font-bold text-lg",children:t.message}),P.jsxs("div",{className:"modal-action",children:[P.jsx("button",{className:"btn btn-ghost",onClick:()=>Z(!1),children:"Cancel"}),P.jsx("button",{className:"btn btn-error",onClick:()=>Z(!0),children:"Confirm"})]})]})}),n.isOpen&&P.jsx("dialog",{className:"modal modal-open z-[1100]",children:P.jsxs("div",{className:"modal-box",children:[P.jsx("h3",{className:"font-bold text-lg",children:n.message}),P.jsx("input",{type:"text",className:"input input-bordered w-full mt-2",defaultValue:n.defaultValue,ref:o,onKeyDown:G=>{G.key==="Enter"&&p(G.target.value)}}),P.jsxs("div",{className:"modal-action",children:[P.jsx("button",{className:"btn btn-ghost",onClick:()=>p(),children:"Cancel"}),P.jsx("button",{className:"btn btn-primary",onClick:()=>{var G;return p((G=o.current)==null?void 0:G.value)},children:"Submit"})]})]})}),s.isOpen&&P.jsx("dialog",{className:"modal modal-open z-[1100]",children:P.jsxs("div",{className:"modal-box",children:[P.jsx("h3",{className:"font-bold text-lg",children:s.message}),P.jsx("div",{className:"modal-action",children:P.jsx("button",{className:"btn",onClick:y,children:"OK"})})]})})]})}function n9(){const l=v.useContext(l9);if(!l)throw new Error("useModals must be used within ModalProvider");return l}function wD(){const l=gR(),t=CY(),{isGenerating:e}=Ha(),[n,i]=v.useState([]),[s,a]=v.useState(null);v.useEffect(()=>{El.getOneConversation(l.convId??"").then(a)},[l.convId]),v.useEffect(()=>{const m=async()=>{i(await El.getAllConversations())};return El.onConversationChanged(m),m(),()=>{El.offConversationChanged(m)}},[]);const{showConfirm:o,showPrompt:d}=n9(),u=v.useMemo(()=>gD(n),[n]);return P.jsxs(P.Fragment,{children:[P.jsx("input",{id:"toggle-drawer",type:"checkbox",className:"drawer-toggle","aria-label":"Toggle sidebar",defaultChecked:!0}),P.jsxs("div",{className:"drawer-side h-screen lg:h-screen z-50 lg:max-w-64",role:"complementary","aria-label":"Sidebar",tabIndex:0,children:[P.jsx("label",{htmlFor:"toggle-drawer","aria-label":"Close sidebar",className:"drawer-overlay"}),P.jsx("a",{href:"#main-scroll",className:"absolute -left-80 top-0 w-1 h-1 overflow-hidden",children:"Skip to main content"}),P.jsxs("div",{className:"flex flex-col bg-base-200 min-h-full max-w-64 py-4 px-4",children:[P.jsxs("div",{className:"flex flex-row items-center justify-between mb-4 mt-4",children:[P.jsx("h2",{className:"font-bold ml-4",role:"heading",children:"Conversations"}),P.jsx("label",{htmlFor:"toggle-drawer",className:"btn btn-ghost lg:hidden","aria-label":"Close sidebar",role:"button",tabIndex:0,children:P.jsx(QG,{className:"w-5 h-5"})})]}),P.jsxs("button",{className:Mi({"btn btn-ghost justify-start px-2":!0,"btn-soft":!s}),onClick:()=>t("/"),"aria-label":"New conversation",children:[P.jsx(t9,{className:"w-5 h-5"}),"New conversation"]}),u.map((m,Z)=>P.jsxs("div",{role:"group",children:[m.title?P.jsx("b",{className:"btn btn-ghost btn-xs bg-none btn-disabled block text-xs text-base-content text-start px-2 mb-0 mt-6 font-bold",role:"note","aria-description":m.title,tabIndex:0,children:m.title}):P.jsx("div",{className:"h-2"}),m.conversations.map(p=>P.jsx(xD,{conv:p,isCurrConv:(s==null?void 0:s.id)===p.id,onSelect:()=>{t(`/chat/${p.id}`)},onDelete:async()=>{if(e(p.id)){Ki.error("Cannot delete conversation while generating");return}await o("Are you sure to delete this conversation?")&&(Ki.success("Conversation deleted"),El.remove(p.id),t("/"))},onDownload:()=>{if(e(p.id)){Ki.error("Cannot download conversation while generating");return}const y=JSON.stringify(p,null,2),G=new Blob([y],{type:"application/json"}),X=URL.createObjectURL(G),z=document.createElement("a");z.href=X,z.download=`conversation_${p.id}.json`,document.body.appendChild(z),z.click(),document.body.removeChild(z),URL.revokeObjectURL(X)},onRename:async()=>{if(e(p.id)){Ki.error("Cannot rename conversation while generating");return}const y=await d("Enter new name for the conversation",p.name);y&&y.trim().length>0&&El.updateConversationName(p.id,y)}},p.id))]},Z)),P.jsx("div",{className:"text-center text-xs opacity-40 mt-auto mx-4 pt-8",children:"Conversations are saved to browser's IndexedDB"})]})]})]})}function xD({conv:l,isCurrConv:t,onSelect:e,onDelete:n,onDownload:i,onRename:s}){return P.jsxs("div",{role:"menuitem",tabIndex:0,"aria-label":l.name,className:Mi({"group flex flex-row btn btn-ghost justify-start items-center font-normal px-2 h-9":!0,"btn-soft":t}),children:[P.jsx("button",{className:"w-full overflow-hidden truncate text-start",onClick:e,dir:"auto",children:l.name},l.id),P.jsxs("div",{tabIndex:0,className:"dropdown dropdown-end h-5",children:[P.jsx(SZ,{className:"cursor-pointer opacity-100 md:opacity-0 group-hover:opacity-100",onClick:()=>{},tooltipsContent:"More",children:P.jsx(aD,{className:"w-5 h-5"})}),P.jsxs("ul",{"aria-label":"More options",tabIndex:0,className:"dropdown-content menu bg-base-100 rounded-box z-[1] p-2 shadow",children:[P.jsx("li",{onClick:s,tabIndex:0,children:P.jsxs("a",{children:[P.jsx(ZD,{className:"w-4 h-4"}),"Rename"]})}),P.jsx("li",{onClick:i,tabIndex:0,children:P.jsxs("a",{children:[P.jsx(Of,{className:"w-4 h-4"}),"Download"]})}),P.jsx("li",{className:"text-error",onClick:n,tabIndex:0,children:P.jsxs("a",{children:[P.jsx(TD,{className:"w-4 h-4"}),"Delete"]})})]})]})]})}function gD(l){const t=new Date,e=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(e);n.setDate(e.getDate()-7);const i=new Date(e);i.setDate(e.getDate()-30);const s={Today:[],"Previous 7 Days":[],"Previous 30 Days":[]},a={},o=[...l].sort((m,Z)=>Z.lastModified-m.lastModified);for(const m of o){const Z=new Date(m.lastModified);if(Z>=e)s.Today.push(m);else if(Z>=n)s["Previous 7 Days"].push(m);else if(Z>=i)s["Previous 30 Days"].push(m);else{const p=Z.toLocaleString("default",{month:"long"}),y=Z.getFullYear(),G=`${p} ${y}`;a[G]||(a[G]=[]),a[G].push(m)}}const d=[];s.Today.length>0&&d.push({title:void 0,conversations:s.Today}),s["Previous 7 Days"].length>0&&d.push({title:"Previous 7 Days",conversations:s["Previous 7 Days"]}),s["Previous 30 Days"].length>0&&d.push({title:"Previous 30 Days",conversations:s["Previous 30 Days"]});const u=Object.keys(a).sort((m,Z)=>{const p=new Date(m);return new Date(Z).getTime()-p.getTime()});for(const m of u)a[m].length>0&&d.push({title:m,conversations:a[m]});return d}function AV(l){const t=[],e=String(l||"");let n=e.indexOf(","),i=0,s=!1;for(;!s;){n===-1&&(n=e.length,s=!0);const a=e.slice(i,n).trim();(a||!s)&&t.push(a),i=n+1,n=e.indexOf(",",i)}return t}function SD(l,t){const e={};return(l[l.length-1]===""?[...l,""]:l).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}const RD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fD={};function _V(l,t){return(fD.jsx?kD:RD).test(l)}const DD=/[ \t\n\f\r]/g;function jD(l){return typeof l=="object"?l.type==="text"?qV(l.value):!1:qV(l)}function qV(l){return l.replace(DD,"")===""}class N2{constructor(t,e,n){this.property=t,this.normal=e,n&&(this.space=n)}}N2.prototype.property={};N2.prototype.normal={};N2.prototype.space=null;function i9(l,t){const e={},n={};let i=-1;for(;++i<l.length;)Object.assign(e,l[i].property),Object.assign(n,l[i].normal);return new N2(e,n,t)}function RZ(l){return l.toLowerCase()}class Qa{constructor(t,e){this.property=t,this.attribute=e}}Qa.prototype.space=null;Qa.prototype.boolean=!1;Qa.prototype.booleanish=!1;Qa.prototype.overloadedBoolean=!1;Qa.prototype.number=!1;Qa.prototype.commaSeparated=!1;Qa.prototype.spaceSeparated=!1;Qa.prototype.commaOrSpaceSeparated=!1;Qa.prototype.mustUseProperty=!1;Qa.prototype.defined=!1;let OD=0;const sl=em(),Pn=em(),s9=em(),Ht=em(),Al=em(),eh=em(),Ps=em();function em(){return 2**++OD}const BG=Object.freeze(Object.defineProperty({__proto__:null,boolean:sl,booleanish:Pn,commaOrSpaceSeparated:Ps,commaSeparated:eh,number:Ht,overloadedBoolean:s9,spaceSeparated:Al},Symbol.toStringTag,{value:"Module"})),JM=Object.keys(BG);class KY extends Qa{constructor(t,e,n,i){let s=-1;if(super(t,e),$V(this,"space",i),typeof n=="number")for(;++s<JM.length;){const a=JM[s];$V(this,JM[s],(n&BG[a])===BG[a])}}}KY.prototype.defined=!0;function $V(l,t,e){e&&(l[t]=e)}const CD={}.hasOwnProperty;function Nb(l){const t={},e={};let n;for(n in l.properties)if(CD.call(l.properties,n)){const i=l.properties[n],s=new KY(n,l.transform(l.attributes||{},n),i,l.space);l.mustUseProperty&&l.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),t[n]=s,e[RZ(n)]=n,e[RZ(s.attribute)]=n}return new N2(t,e,l.space)}const a9=Nb({space:"xlink",transform(l,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),c9=Nb({space:"xml",transform(l,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function o9(l,t){return t in l?l[t]:t}function r9(l,t){return o9(l,t.toLowerCase())}const d9=Nb({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r9,properties:{xmlns:null,xmlnsXLink:null}}),u9=Nb({transform(l,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pn,ariaAutoComplete:null,ariaBusy:Pn,ariaChecked:Pn,ariaColCount:Ht,ariaColIndex:Ht,ariaColSpan:Ht,ariaControls:Al,ariaCurrent:null,ariaDescribedBy:Al,ariaDetails:null,ariaDisabled:Pn,ariaDropEffect:Al,ariaErrorMessage:null,ariaExpanded:Pn,ariaFlowTo:Al,ariaGrabbed:Pn,ariaHasPopup:null,ariaHidden:Pn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Al,ariaLevel:Ht,ariaLive:null,ariaModal:Pn,ariaMultiLine:Pn,ariaMultiSelectable:Pn,ariaOrientation:null,ariaOwns:Al,ariaPlaceholder:null,ariaPosInSet:Ht,ariaPressed:Pn,ariaReadOnly:Pn,ariaRelevant:null,ariaRequired:Pn,ariaRoleDescription:Al,ariaRowCount:Ht,ariaRowIndex:Ht,ariaRowSpan:Ht,ariaSelected:Pn,ariaSetSize:Ht,ariaSort:null,ariaValueMax:Ht,ariaValueMin:Ht,ariaValueNow:Ht,ariaValueText:null,role:null}}),FD=Nb({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r9,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eh,acceptCharset:Al,accessKey:Al,action:null,allow:null,allowFullScreen:sl,allowPaymentRequest:sl,allowUserMedia:sl,alt:null,as:null,async:sl,autoCapitalize:null,autoComplete:Al,autoFocus:sl,autoPlay:sl,blocking:Al,capture:null,charSet:null,checked:sl,cite:null,className:Al,cols:Ht,colSpan:null,content:null,contentEditable:Pn,controls:sl,controlsList:Al,coords:Ht|eh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:sl,defer:sl,dir:null,dirName:null,disabled:sl,download:s9,draggable:Pn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:sl,formTarget:null,headers:Al,height:Ht,hidden:sl,high:Ht,href:null,hrefLang:null,htmlFor:Al,httpEquiv:Al,id:null,imageSizes:null,imageSrcSet:null,inert:sl,inputMode:null,integrity:null,is:null,isMap:sl,itemId:null,itemProp:Al,itemRef:Al,itemScope:sl,itemType:Al,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:sl,low:Ht,manifest:null,max:null,maxLength:Ht,media:null,method:null,min:null,minLength:Ht,multiple:sl,muted:sl,name:null,nonce:null,noModule:sl,noValidate:sl,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:sl,optimum:Ht,pattern:null,ping:Al,placeholder:null,playsInline:sl,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:sl,referrerPolicy:null,rel:Al,required:sl,reversed:sl,rows:Ht,rowSpan:Ht,sandbox:Al,scope:null,scoped:sl,seamless:sl,selected:sl,shadowRootClonable:sl,shadowRootDelegatesFocus:sl,shadowRootMode:null,shape:null,size:Ht,sizes:null,slot:null,span:Ht,spellCheck:Pn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ht,step:null,style:null,tabIndex:Ht,target:null,title:null,translate:null,type:null,typeMustMatch:sl,useMap:null,value:Pn,width:Ht,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Al,axis:null,background:null,bgColor:null,border:Ht,borderColor:null,bottomMargin:Ht,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:sl,declare:sl,event:null,face:null,frame:null,frameBorder:null,hSpace:Ht,leftMargin:Ht,link:null,longDesc:null,lowSrc:null,marginHeight:Ht,marginWidth:Ht,noResize:sl,noHref:sl,noShade:sl,noWrap:sl,object:null,profile:null,prompt:null,rev:null,rightMargin:Ht,rules:null,scheme:null,scrolling:Pn,standby:null,summary:null,text:null,topMargin:Ht,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ht,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:sl,disableRemotePlayback:sl,prefix:null,property:null,results:Ht,security:null,unselectable:null}}),JD=Nb({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:o9,properties:{about:Ps,accentHeight:Ht,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ht,amplitude:Ht,arabicForm:null,ascent:Ht,attributeName:null,attributeType:null,azimuth:Ht,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ht,by:null,calcMode:null,capHeight:Ht,className:Al,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ht,diffuseConstant:Ht,direction:null,display:null,dur:null,divisor:Ht,dominantBaseline:null,download:sl,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ht,enableBackground:null,end:null,event:null,exponent:Ht,externalResourcesRequired:null,fill:null,fillOpacity:Ht,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:eh,g2:eh,glyphName:eh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ht,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ht,horizOriginX:Ht,horizOriginY:Ht,id:null,ideographic:Ht,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ht,k:Ht,k1:Ht,k2:Ht,k3:Ht,k4:Ht,kernelMatrix:Ps,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ht,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ht,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ht,overlineThickness:Ht,paintOrder:null,panose1:null,path:null,pathLength:Ht,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Al,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ht,pointsAtY:Ht,pointsAtZ:Ht,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ps,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ps,rev:Ps,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ps,requiredFeatures:Ps,requiredFonts:Ps,requiredFormats:Ps,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ht,specularExponent:Ht,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ht,strikethroughThickness:Ht,string:null,stroke:null,strokeDashArray:Ps,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ht,strokeOpacity:Ht,strokeWidth:null,style:null,surfaceScale:Ht,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ps,tabIndex:Ht,tableValues:null,target:null,targetX:Ht,targetY:Ht,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ps,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ht,underlineThickness:Ht,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ht,values:null,vAlphabetic:Ht,vMathematical:Ht,vectorEffect:null,vHanging:Ht,vIdeographic:Ht,version:null,vertAdvY:Ht,vertOriginX:Ht,vertOriginY:Ht,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ht,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),UD=/^data[-\w.:]+$/i,tL=/-[a-z]/g,ED=/[A-Z]/g;function m9(l,t){const e=RZ(t);let n=t,i=Qa;if(e in l.normal)return l.property[l.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&UD.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(tL,KD);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!tL.test(s)){let a=s.replace(ED,vD);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=KY}return new i(n,t)}function vD(l){return"-"+l.toLowerCase()}function KD(l){return l.charAt(1).toUpperCase()}const PD={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},h9=i9([c9,a9,d9,u9,FD],"html"),KW=i9([c9,a9,d9,u9,JD],"svg");function eL(l){const t=String(l||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function HD(l){return l.join(" ").trim()}var jm={},UM,lL;function QD(){if(lL)return UM;lL=1;var l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,e=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,d=`
`,u="/",m="*",Z="",p="comment",y="declaration";UM=function(X,z){if(typeof X!="string")throw new TypeError("First argument must be a string");if(!X)return[];z=z||{};var L=1,S=1;function R(Tt){var Zt=Tt.match(t);Zt&&(L+=Zt.length);var Xt=Tt.lastIndexOf(d);S=~Xt?Tt.length-Xt:S+Tt.length}function J(){var Tt={line:L,column:S};return function(Zt){return Zt.position=new U(Tt),it(),Zt}}function U(Tt){this.start=Tt,this.end={line:L,column:S},this.source=z.source}U.prototype.content=X;function j(Tt){var Zt=new Error(z.source+":"+L+":"+S+": "+Tt);if(Zt.reason=Tt,Zt.filename=z.source,Zt.line=L,Zt.column=S,Zt.source=X,!z.silent)throw Zt}function Q(Tt){var Zt=Tt.exec(X);if(Zt){var Xt=Zt[0];return R(Xt),X=X.slice(Xt.length),Zt}}function it(){Q(e)}function at(Tt){var Zt;for(Tt=Tt||[];Zt=_();)Zt!==!1&&Tt.push(Zt);return Tt}function _(){var Tt=J();if(!(u!=X.charAt(0)||m!=X.charAt(1))){for(var Zt=2;Z!=X.charAt(Zt)&&(m!=X.charAt(Zt)||u!=X.charAt(Zt+1));)++Zt;if(Zt+=2,Z===X.charAt(Zt-1))return j("End of comment missing");var Xt=X.slice(2,Zt-2);return S+=2,R(Xt),X=X.slice(Zt),S+=2,Tt({type:p,comment:Xt})}}function Wt(){var Tt=J(),Zt=Q(n);if(Zt){if(_(),!Q(i))return j("property missing ':'");var Xt=Q(s),St=Tt({type:y,property:G(Zt[0].replace(l,Z)),value:Xt?G(Xt[0].replace(l,Z)):Z});return Q(a),St}}function ht(){var Tt=[];at(Tt);for(var Zt;Zt=Wt();)Zt!==!1&&(Tt.push(Zt),at(Tt));return Tt}return it(),ht()};function G(X){return X?X.replace(o,Z):Z}return UM}var nL;function BD(){if(nL)return jm;nL=1;var l=jm&&jm.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(jm,"__esModule",{value:!0}),jm.default=e;var t=l(QD());function e(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),o=typeof i=="function";return a.forEach(function(d){if(d.type==="declaration"){var u=d.property,m=d.value;o?i(u,m,d):m&&(s=s||{},s[u]=m)}}),s}return jm}var AD=BD();const iL=qu(AD),_D=iL.default||iL,b9=Z9("end"),PY=Z9("start");function Z9(l){return t;function t(e){const n=e&&e.position&&e.position[l]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function qD(l){const t=PY(l),e=b9(l);if(t&&e)return{start:t,end:e}}function LZ(l){return!l||typeof l!="object"?"":"position"in l||"type"in l?sL(l.position):"start"in l||"end"in l?sL(l):"line"in l||"column"in l?AG(l):""}function AG(l){return aL(l&&l.line)+":"+aL(l&&l.column)}function sL(l){return AG(l&&l.start)+"-"+AG(l&&l.end)}function aL(l){return l&&typeof l=="number"?l:1}class Hi extends Error{constructor(t,e,n){super(),typeof e=="string"&&(n=e,e=void 0);let i="",s={},a=!1;if(e&&("line"in e&&"column"in e?s={place:e}:"start"in e&&"end"in e?s={place:e}:"type"in e?s={ancestors:[e],place:e.position}:s={...e}),typeof t=="string"?i=t:!s.cause&&t&&(a=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof n=="string"){const d=n.indexOf(":");d===-1?s.ruleId=n:(s.source=n.slice(0,d),s.ruleId=n.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=LZ(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Hi.prototype.file="";Hi.prototype.name="";Hi.prototype.reason="";Hi.prototype.message="";Hi.prototype.stack="";Hi.prototype.column=void 0;Hi.prototype.line=void 0;Hi.prototype.ancestors=void 0;Hi.prototype.cause=void 0;Hi.prototype.fatal=void 0;Hi.prototype.place=void 0;Hi.prototype.ruleId=void 0;Hi.prototype.source=void 0;const HY={}.hasOwnProperty,$D=new Map,tj=/[A-Z]/g,ej=/-([a-z])/g,lj=new Set(["table","tbody","thead","tfoot","tr"]),nj=new Set(["td","th"]),p9="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ij(l,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const e=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=mj(e,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=uj(e,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:e,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?KW:h9,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=y9(i,l,void 0);return s&&typeof s!="string"?s:i.create(l,i.Fragment,{children:s||void 0},void 0)}function y9(l,t,e){if(t.type==="element")return sj(l,t,e);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return aj(l,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return oj(l,t,e);if(t.type==="mdxjsEsm")return cj(l,t);if(t.type==="root")return rj(l,t,e);if(t.type==="text")return dj(l,t)}function sj(l,t,e){const n=l.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=KW,l.schema=i),l.ancestors.push(t);const s=W9(l,t.tagName,!1),a=hj(l,t);let o=BY(l,t);return lj.has(t.tagName)&&(o=o.filter(function(d){return typeof d=="string"?!jD(d):!0})),N9(l,a,s,t),QY(a,o),l.ancestors.pop(),l.schema=n,l.create(t,s,a,e)}function aj(l,t){if(t.data&&t.data.estree&&l.evaluater){const n=t.data.estree.body[0];return n.type,l.evaluater.evaluateExpression(n.expression)}kZ(l,t.position)}function cj(l,t){if(t.data&&t.data.estree&&l.evaluater)return l.evaluater.evaluateProgram(t.data.estree);kZ(l,t.position)}function oj(l,t,e){const n=l.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=KW,l.schema=i),l.ancestors.push(t);const s=t.name===null?l.Fragment:W9(l,t.name,!0),a=bj(l,t),o=BY(l,t);return N9(l,a,s,t),QY(a,o),l.ancestors.pop(),l.schema=n,l.create(t,s,a,e)}function rj(l,t,e){const n={};return QY(n,BY(l,t)),l.create(t,l.Fragment,n,e)}function dj(l,t){return t.value}function N9(l,t,e,n){typeof e!="string"&&e!==l.Fragment&&l.passNode&&(t.node=n)}function QY(l,t){if(t.length>0){const e=t.length>1?t:t[0];e&&(l.children=e)}}function uj(l,t,e){return n;function n(i,s,a,o){const u=Array.isArray(a.children)?e:t;return o?u(s,a,o):u(s,a)}}function mj(l,t){return e;function e(n,i,s,a){const o=Array.isArray(s.children),d=PY(n);return t(i,s,a,o,{columnNumber:d?d.column-1:void 0,fileName:l,lineNumber:d?d.line:void 0},void 0)}}function hj(l,t){const e={};let n,i;for(i in t.properties)if(i!=="children"&&HY.call(t.properties,i)){const s=Zj(l,i,t.properties[i]);if(s){const[a,o]=s;l.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&nj.has(t.tagName)?n=o:e[a]=o}}if(n){const s=e.style||(e.style={});s[l.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return e}function bj(l,t){const e={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&l.evaluater){const s=n.data.estree.body[0];s.type;const a=s.expression;a.type;const o=a.properties[0];o.type,Object.assign(e,l.evaluater.evaluateExpression(o.argument))}else kZ(l,t.position);else{const i=n.name;let s;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&l.evaluater){const o=n.value.data.estree.body[0];o.type,s=l.evaluater.evaluateExpression(o.expression)}else kZ(l,t.position);else s=n.value===null?!0:n.value;e[i]=s}return e}function BY(l,t){const e=[];let n=-1;const i=l.passKeys?new Map:$D;for(;++n<t.children.length;){const s=t.children[n];let a;if(l.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const u=i.get(d)||0;a=d+"-"+u,i.set(d,u+1)}}const o=y9(l,s,a);o!==void 0&&e.push(o)}return e}function Zj(l,t,e){const n=m9(l.schema,t);if(!(e==null||typeof e=="number"&&Number.isNaN(e))){if(Array.isArray(e)&&(e=n.commaSeparated?SD(e):HD(e)),n.property==="style"){let i=typeof e=="object"?e:pj(l,String(e));return l.stylePropertyNameCase==="css"&&(i=yj(i)),["style",i]}return[l.elementAttributeNameCase==="react"&&n.space?PD[n.property]||n.property:n.attribute,e]}}function pj(l,t){const e={};try{_D(t,n)}catch(i){if(!l.ignoreInvalidStyle){const s=i,a=new Hi("Cannot parse `style` attribute",{ancestors:l.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=l.filePath||void 0,a.url=p9+"#cannot-parse-style-attribute",a}}return e;function n(i,s){let a=i;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(ej,Wj)),e[a]=s}}function W9(l,t,e){let n;if(!e)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,a;for(;++s<i.length;){const o=_V(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}n=a}else n=_V(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return HY.call(l.components,i)?l.components[i]:i}if(l.evaluater)return l.evaluater.evaluateExpression(n);kZ(l)}function kZ(l,t){const e=new Hi("Cannot handle MDX estrees without `createEvaluater`",{ancestors:l.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw e.file=l.filePath||void 0,e.url=p9+"#cannot-handle-mdx-estrees-without-createevaluater",e}function yj(l){const t={};let e;for(e in l)HY.call(l,e)&&(t[Nj(e)]=l[e]);return t}function Nj(l){let t=l.replace(tj,Mj);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Wj(l,t){return t.toUpperCase()}function Mj(l){return"-"+l.toLowerCase()}const EM={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Gj={};function AY(l,t){const e=Gj,n=typeof e.includeImageAlt=="boolean"?e.includeImageAlt:!0,i=typeof e.includeHtml=="boolean"?e.includeHtml:!0;return M9(l,n,i)}function M9(l,t,e){if(Xj(l)){if("value"in l)return l.type==="html"&&!e?"":l.value;if(t&&"alt"in l&&l.alt)return l.alt;if("children"in l)return cL(l.children,t,e)}return Array.isArray(l)?cL(l,t,e):""}function cL(l,t,e){const n=[];let i=-1;for(;++i<l.length;)n[i]=M9(l[i],t,e);return n.join("")}function Xj(l){return!!(l&&typeof l=="object")}const oL=document.createElement("i");function _Y(l){const t="&"+l+";";oL.innerHTML=t;const e=oL.textContent;return e.charCodeAt(e.length-1)===59&&l!=="semi"||e===t?!1:e}function ma(l,t,e,n){const i=l.length;let s=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,e=e>0?e:0,n.length<1e4)a=Array.from(n),a.unshift(t,e),l.splice(...a);else for(e&&l.splice(t,e);s<n.length;)a=n.slice(s,s+1e4),a.unshift(t,0),l.splice(...a),s+=1e4,t+=1e4}function Ja(l,t){return l.length>0?(ma(l,l.length,0,t),l):t}const rL={}.hasOwnProperty;function G9(l){const t={};let e=-1;for(;++e<l.length;)Yj(t,l[e]);return t}function Yj(l,t){let e;for(e in t){const i=(rL.call(l,e)?l[e]:void 0)||(l[e]={}),s=t[e];let a;if(s)for(a in s){rL.call(i,a)||(i[a]=[]);const o=s[a];Tj(i[a],Array.isArray(o)?o:o?[o]:[])}}}function Tj(l,t){let e=-1;const n=[];for(;++e<t.length;)(t[e].add==="after"?l:n).push(t[e]);ma(l,0,0,n)}function X9(l,t){const e=Number.parseInt(l,t);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"�":String.fromCodePoint(e)}function Nc(l){return l.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const us=Ad(/[A-Za-z]/),Pi=Ad(/[\dA-Za-z]/),Vj=Ad(/[#-'*+\--9=?A-Z^-~]/);function $N(l){return l!==null&&(l<32||l===127)}const _G=Ad(/\d/),Lj=Ad(/[\dA-Fa-f]/),Ij=Ad(/[!-/:-@[-`{-~]/);function De(l){return l!==null&&l<-2}function vl(l){return l!==null&&(l<0||l===32)}function pl(l){return l===-2||l===-1||l===32}const PW=Ad(new RegExp("\\p{P}|\\p{S}","u")),Hu=Ad(/\s/);function Ad(l){return t;function t(e){return e!==null&&e>-1&&l.test(String.fromCharCode(e))}}function Wb(l){const t=[];let e=-1,n=0,i=0;for(;++e<l.length;){const s=l.charCodeAt(e);let a="";if(s===37&&Pi(l.charCodeAt(e+1))&&Pi(l.charCodeAt(e+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=l.charCodeAt(e+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(l.slice(n,e),encodeURIComponent(a)),n=e+i+1,a=""),i&&(e+=i,i=0)}return t.join("")+l.slice(n)}function bl(l,t,e,n){const i=n?n-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(d){return pl(d)?(l.enter(e),o(d)):t(d)}function o(d){return pl(d)&&s++<i?(l.consume(d),o):(l.exit(e),t(d))}}const zj={tokenize:wj};function wj(l){const t=l.attempt(this.parser.constructs.contentInitial,n,i);let e;return t;function n(o){if(o===null){l.consume(o);return}return l.enter("lineEnding"),l.consume(o),l.exit("lineEnding"),bl(l,t,"linePrefix")}function i(o){return l.enter("paragraph"),s(o)}function s(o){const d=l.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=d),e=d,a(o)}function a(o){if(o===null){l.exit("chunkText"),l.exit("paragraph"),l.consume(o);return}return De(o)?(l.consume(o),l.exit("chunkText"),s):(l.consume(o),a)}}const xj={tokenize:gj},dL={tokenize:Sj};function gj(l){const t=this,e=[];let n=0,i,s,a;return o;function o(R){if(n<e.length){const J=e[n];return t.containerState=J[1],l.attempt(J[0].continuation,d,u)(R)}return u(R)}function d(R){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const J=t.events.length;let U=J,j;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){j=t.events[U][1].end;break}L(n);let Q=J;for(;Q<t.events.length;)t.events[Q][1].end={...j},Q++;return ma(t.events,U+1,0,t.events.slice(J)),t.events.length=Q,u(R)}return o(R)}function u(R){if(n===e.length){if(!i)return p(R);if(i.currentConstruct&&i.currentConstruct.concrete)return G(R);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},l.check(dL,m,Z)(R)}function m(R){return i&&S(),L(n),p(R)}function Z(R){return t.parser.lazy[t.now().line]=n!==e.length,a=t.now().offset,G(R)}function p(R){return t.containerState={},l.attempt(dL,y,G)(R)}function y(R){return n++,e.push([t.currentConstruct,t.containerState]),p(R)}function G(R){if(R===null){i&&S(),L(0),l.consume(R);return}return i=i||t.parser.flow(t.now()),l.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),X(R)}function X(R){if(R===null){z(l.exit("chunkFlow"),!0),L(0),l.consume(R);return}return De(R)?(l.consume(R),z(l.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(l.consume(R),X)}function z(R,J){const U=t.sliceStream(R);if(J&&U.push(null),R.previous=s,s&&(s.next=R),s=R,i.defineSkip(R.start),i.write(U),t.parser.lazy[R.start.line]){let j=i.events.length;for(;j--;)if(i.events[j][1].start.offset<a&&(!i.events[j][1].end||i.events[j][1].end.offset>a))return;const Q=t.events.length;let it=Q,at,_;for(;it--;)if(t.events[it][0]==="exit"&&t.events[it][1].type==="chunkFlow"){if(at){_=t.events[it][1].end;break}at=!0}for(L(n),j=Q;j<t.events.length;)t.events[j][1].end={..._},j++;ma(t.events,it+1,0,t.events.slice(Q)),t.events.length=j}}function L(R){let J=e.length;for(;J-- >R;){const U=e[J];t.containerState=U[1],U[0].exit.call(t,l)}e.length=R}function S(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Sj(l,t,e){return bl(l,l.attempt(this.parser.constructs.document,t,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function hb(l){if(l===null||vl(l)||Hu(l))return 1;if(PW(l))return 2}function HW(l,t,e){const n=[];let i=-1;for(;++i<l.length;){const s=l[i].resolveAll;s&&!n.includes(s)&&(t=s(t,e),n.push(s))}return t}const qG={name:"attention",resolveAll:Rj,tokenize:kj};function Rj(l,t){let e=-1,n,i,s,a,o,d,u,m;for(;++e<l.length;)if(l[e][0]==="enter"&&l[e][1].type==="attentionSequence"&&l[e][1]._close){for(n=e;n--;)if(l[n][0]==="exit"&&l[n][1].type==="attentionSequence"&&l[n][1]._open&&t.sliceSerialize(l[n][1]).charCodeAt(0)===t.sliceSerialize(l[e][1]).charCodeAt(0)){if((l[n][1]._close||l[e][1]._open)&&(l[e][1].end.offset-l[e][1].start.offset)%3&&!((l[n][1].end.offset-l[n][1].start.offset+l[e][1].end.offset-l[e][1].start.offset)%3))continue;d=l[n][1].end.offset-l[n][1].start.offset>1&&l[e][1].end.offset-l[e][1].start.offset>1?2:1;const Z={...l[n][1].end},p={...l[e][1].start};uL(Z,-d),uL(p,d),a={type:d>1?"strongSequence":"emphasisSequence",start:Z,end:{...l[n][1].end}},o={type:d>1?"strongSequence":"emphasisSequence",start:{...l[e][1].start},end:p},s={type:d>1?"strongText":"emphasisText",start:{...l[n][1].end},end:{...l[e][1].start}},i={type:d>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},l[n][1].end={...a.start},l[e][1].start={...o.end},u=[],l[n][1].end.offset-l[n][1].start.offset&&(u=Ja(u,[["enter",l[n][1],t],["exit",l[n][1],t]])),u=Ja(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",s,t]]),u=Ja(u,HW(t.parser.constructs.insideSpan.null,l.slice(n+1,e),t)),u=Ja(u,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",i,t]]),l[e][1].end.offset-l[e][1].start.offset?(m=2,u=Ja(u,[["enter",l[e][1],t],["exit",l[e][1],t]])):m=0,ma(l,n-1,e-n+3,u),e=n+u.length-m-2;break}}for(e=-1;++e<l.length;)l[e][1].type==="attentionSequence"&&(l[e][1].type="data");return l}function kj(l,t){const e=this.parser.constructs.attentionMarkers.null,n=this.previous,i=hb(n);let s;return a;function a(d){return s=d,l.enter("attentionSequence"),o(d)}function o(d){if(d===s)return l.consume(d),o;const u=l.exit("attentionSequence"),m=hb(d),Z=!m||m===2&&i||e.includes(d),p=!i||i===2&&m||e.includes(n);return u._open=!!(s===42?Z:Z&&(i||!p)),u._close=!!(s===42?p:p&&(m||!Z)),t(d)}}function uL(l,t){l.column+=t,l.offset+=t,l._bufferIndex+=t}const fj={name:"autolink",tokenize:Dj};function Dj(l,t,e){let n=0;return i;function i(y){return l.enter("autolink"),l.enter("autolinkMarker"),l.consume(y),l.exit("autolinkMarker"),l.enter("autolinkProtocol"),s}function s(y){return us(y)?(l.consume(y),a):y===64?e(y):u(y)}function a(y){return y===43||y===45||y===46||Pi(y)?(n=1,o(y)):u(y)}function o(y){return y===58?(l.consume(y),n=0,d):(y===43||y===45||y===46||Pi(y))&&n++<32?(l.consume(y),o):(n=0,u(y))}function d(y){return y===62?(l.exit("autolinkProtocol"),l.enter("autolinkMarker"),l.consume(y),l.exit("autolinkMarker"),l.exit("autolink"),t):y===null||y===32||y===60||$N(y)?e(y):(l.consume(y),d)}function u(y){return y===64?(l.consume(y),m):Vj(y)?(l.consume(y),u):e(y)}function m(y){return Pi(y)?Z(y):e(y)}function Z(y){return y===46?(l.consume(y),n=0,m):y===62?(l.exit("autolinkProtocol").type="autolinkEmail",l.enter("autolinkMarker"),l.consume(y),l.exit("autolinkMarker"),l.exit("autolink"),t):p(y)}function p(y){if((y===45||Pi(y))&&n++<63){const G=y===45?p:Z;return l.consume(y),G}return e(y)}}const W2={partial:!0,tokenize:jj};function jj(l,t,e){return n;function n(s){return pl(s)?bl(l,i,"linePrefix")(s):i(s)}function i(s){return s===null||De(s)?t(s):e(s)}}const Y9={continuation:{tokenize:Cj},exit:Fj,name:"blockQuote",tokenize:Oj};function Oj(l,t,e){const n=this;return i;function i(a){if(a===62){const o=n.containerState;return o.open||(l.enter("blockQuote",{_container:!0}),o.open=!0),l.enter("blockQuotePrefix"),l.enter("blockQuoteMarker"),l.consume(a),l.exit("blockQuoteMarker"),s}return e(a)}function s(a){return pl(a)?(l.enter("blockQuotePrefixWhitespace"),l.consume(a),l.exit("blockQuotePrefixWhitespace"),l.exit("blockQuotePrefix"),t):(l.exit("blockQuotePrefix"),t(a))}}function Cj(l,t,e){const n=this;return i;function i(a){return pl(a)?bl(l,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return l.attempt(Y9,t,e)(a)}}function Fj(l){l.exit("blockQuote")}const T9={name:"characterEscape",tokenize:Jj};function Jj(l,t,e){return n;function n(s){return l.enter("characterEscape"),l.enter("escapeMarker"),l.consume(s),l.exit("escapeMarker"),i}function i(s){return Ij(s)?(l.enter("characterEscapeValue"),l.consume(s),l.exit("characterEscapeValue"),l.exit("characterEscape"),t):e(s)}}const V9={name:"characterReference",tokenize:Uj};function Uj(l,t,e){const n=this;let i=0,s,a;return o;function o(Z){return l.enter("characterReference"),l.enter("characterReferenceMarker"),l.consume(Z),l.exit("characterReferenceMarker"),d}function d(Z){return Z===35?(l.enter("characterReferenceMarkerNumeric"),l.consume(Z),l.exit("characterReferenceMarkerNumeric"),u):(l.enter("characterReferenceValue"),s=31,a=Pi,m(Z))}function u(Z){return Z===88||Z===120?(l.enter("characterReferenceMarkerHexadecimal"),l.consume(Z),l.exit("characterReferenceMarkerHexadecimal"),l.enter("characterReferenceValue"),s=6,a=Lj,m):(l.enter("characterReferenceValue"),s=7,a=_G,m(Z))}function m(Z){if(Z===59&&i){const p=l.exit("characterReferenceValue");return a===Pi&&!_Y(n.sliceSerialize(p))?e(Z):(l.enter("characterReferenceMarker"),l.consume(Z),l.exit("characterReferenceMarker"),l.exit("characterReference"),t)}return a(Z)&&i++<s?(l.consume(Z),m):e(Z)}}const mL={partial:!0,tokenize:vj},hL={concrete:!0,name:"codeFenced",tokenize:Ej};function Ej(l,t,e){const n=this,i={partial:!0,tokenize:U};let s=0,a=0,o;return d;function d(j){return u(j)}function u(j){const Q=n.events[n.events.length-1];return s=Q&&Q[1].type==="linePrefix"?Q[2].sliceSerialize(Q[1],!0).length:0,o=j,l.enter("codeFenced"),l.enter("codeFencedFence"),l.enter("codeFencedFenceSequence"),m(j)}function m(j){return j===o?(a++,l.consume(j),m):a<3?e(j):(l.exit("codeFencedFenceSequence"),pl(j)?bl(l,Z,"whitespace")(j):Z(j))}function Z(j){return j===null||De(j)?(l.exit("codeFencedFence"),n.interrupt?t(j):l.check(mL,X,J)(j)):(l.enter("codeFencedFenceInfo"),l.enter("chunkString",{contentType:"string"}),p(j))}function p(j){return j===null||De(j)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),Z(j)):pl(j)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),bl(l,y,"whitespace")(j)):j===96&&j===o?e(j):(l.consume(j),p)}function y(j){return j===null||De(j)?Z(j):(l.enter("codeFencedFenceMeta"),l.enter("chunkString",{contentType:"string"}),G(j))}function G(j){return j===null||De(j)?(l.exit("chunkString"),l.exit("codeFencedFenceMeta"),Z(j)):j===96&&j===o?e(j):(l.consume(j),G)}function X(j){return l.attempt(i,J,z)(j)}function z(j){return l.enter("lineEnding"),l.consume(j),l.exit("lineEnding"),L}function L(j){return s>0&&pl(j)?bl(l,S,"linePrefix",s+1)(j):S(j)}function S(j){return j===null||De(j)?l.check(mL,X,J)(j):(l.enter("codeFlowValue"),R(j))}function R(j){return j===null||De(j)?(l.exit("codeFlowValue"),S(j)):(l.consume(j),R)}function J(j){return l.exit("codeFenced"),t(j)}function U(j,Q,it){let at=0;return _;function _(Xt){return j.enter("lineEnding"),j.consume(Xt),j.exit("lineEnding"),Wt}function Wt(Xt){return j.enter("codeFencedFence"),pl(Xt)?bl(j,ht,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Xt):ht(Xt)}function ht(Xt){return Xt===o?(j.enter("codeFencedFenceSequence"),Tt(Xt)):it(Xt)}function Tt(Xt){return Xt===o?(at++,j.consume(Xt),Tt):at>=a?(j.exit("codeFencedFenceSequence"),pl(Xt)?bl(j,Zt,"whitespace")(Xt):Zt(Xt)):it(Xt)}function Zt(Xt){return Xt===null||De(Xt)?(j.exit("codeFencedFence"),Q(Xt)):it(Xt)}}}function vj(l,t,e){const n=this;return i;function i(a){return a===null?e(a):(l.enter("lineEnding"),l.consume(a),l.exit("lineEnding"),s)}function s(a){return n.parser.lazy[n.now().line]?e(a):t(a)}}const vM={name:"codeIndented",tokenize:Pj},Kj={partial:!0,tokenize:Hj};function Pj(l,t,e){const n=this;return i;function i(u){return l.enter("codeIndented"),bl(l,s,"linePrefix",5)(u)}function s(u){const m=n.events[n.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(u):e(u)}function a(u){return u===null?d(u):De(u)?l.attempt(Kj,a,d)(u):(l.enter("codeFlowValue"),o(u))}function o(u){return u===null||De(u)?(l.exit("codeFlowValue"),a(u)):(l.consume(u),o)}function d(u){return l.exit("codeIndented"),t(u)}}function Hj(l,t,e){const n=this;return i;function i(a){return n.parser.lazy[n.now().line]?e(a):De(a)?(l.enter("lineEnding"),l.consume(a),l.exit("lineEnding"),i):bl(l,s,"linePrefix",5)(a)}function s(a){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):De(a)?i(a):e(a)}}const Qj={name:"codeText",previous:Aj,resolve:Bj,tokenize:_j};function Bj(l){let t=l.length-4,e=3,n,i;if((l[e][1].type==="lineEnding"||l[e][1].type==="space")&&(l[t][1].type==="lineEnding"||l[t][1].type==="space")){for(n=e;++n<t;)if(l[n][1].type==="codeTextData"){l[e][1].type="codeTextPadding",l[t][1].type="codeTextPadding",e+=2,t-=2;break}}for(n=e-1,t++;++n<=t;)i===void 0?n!==t&&l[n][1].type!=="lineEnding"&&(i=n):(n===t||l[n][1].type==="lineEnding")&&(l[i][1].type="codeTextData",n!==i+2&&(l[i][1].end=l[n-1][1].end,l.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return l}function Aj(l){return l!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _j(l,t,e){let n=0,i,s;return a;function a(Z){return l.enter("codeText"),l.enter("codeTextSequence"),o(Z)}function o(Z){return Z===96?(l.consume(Z),n++,o):(l.exit("codeTextSequence"),d(Z))}function d(Z){return Z===null?e(Z):Z===32?(l.enter("space"),l.consume(Z),l.exit("space"),d):Z===96?(s=l.enter("codeTextSequence"),i=0,m(Z)):De(Z)?(l.enter("lineEnding"),l.consume(Z),l.exit("lineEnding"),d):(l.enter("codeTextData"),u(Z))}function u(Z){return Z===null||Z===32||Z===96||De(Z)?(l.exit("codeTextData"),d(Z)):(l.consume(Z),u)}function m(Z){return Z===96?(l.consume(Z),i++,m):i===n?(l.exit("codeTextSequence"),l.exit("codeText"),t(Z)):(s.type="codeTextData",u(Z))}}class qj{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,e){const n=e??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,e,n){const i=e||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&$b(this.left,n),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$b(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$b(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const e=this.left.splice(t,Number.POSITIVE_INFINITY);$b(this.right,e.reverse())}else{const e=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$b(this.left,e.reverse())}}}function $b(l,t){let e=0;if(t.length<1e4)l.push(...t);else for(;e<t.length;)l.push(...t.slice(e,e+1e4)),e+=1e4}function L9(l){const t={};let e=-1,n,i,s,a,o,d,u;const m=new qj(l);for(;++e<m.length;){for(;e in t;)e=t[e];if(n=m.get(e),e&&n[1].type==="chunkFlow"&&m.get(e-1)[1].type==="listItemPrefix"&&(d=n[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,$j(m,e)),e=t[e],u=!0);else if(n[1]._container){for(s=e,i=void 0;s--;)if(a=m.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(a[1].type!=="linePrefix")break;i&&(n[1].end={...m.get(i)[1].start},o=m.slice(i,e),o.unshift(n),m.splice(i,e-i+1,o))}}return ma(l,0,Number.POSITIVE_INFINITY,m.slice(0)),!u}function $j(l,t){const e=l.get(t)[1],n=l.get(t)[2];let i=t-1;const s=[],a=e._tokenizer||n.parser[e.contentType](e.start),o=a.events,d=[],u={};let m,Z,p=-1,y=e,G=0,X=0;const z=[X];for(;y;){for(;l.get(++i)[1]!==y;);s.push(i),y._tokenizer||(m=n.sliceStream(y),y.next||m.push(null),Z&&a.defineSkip(y.start),y._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(m),y._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),Z=y,y=y.next}for(y=e;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(X=p+1,z.push(X),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(a.events=[],y?(y._tokenizer=void 0,y.previous=void 0):z.pop(),p=z.length;p--;){const L=o.slice(z[p],z[p+1]),S=s.pop();d.push([S,S+L.length-1]),l.splice(S,2,L)}for(d.reverse(),p=-1;++p<d.length;)u[G+d[p][0]]=G+d[p][1],G+=d[p][1]-d[p][0]-1;return u}const tO={resolve:lO,tokenize:nO},eO={partial:!0,tokenize:iO};function lO(l){return L9(l),l}function nO(l,t){let e;return n;function n(o){return l.enter("content"),e=l.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):De(o)?l.check(eO,a,s)(o):(l.consume(o),i)}function s(o){return l.exit("chunkContent"),l.exit("content"),t(o)}function a(o){return l.consume(o),l.exit("chunkContent"),e.next=l.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function iO(l,t,e){const n=this;return i;function i(a){return l.exit("chunkContent"),l.enter("lineEnding"),l.consume(a),l.exit("lineEnding"),bl(l,s,"linePrefix")}function s(a){if(a===null||De(a))return e(a);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):l.interrupt(n.parser.constructs.flow,e,t)(a)}}function I9(l,t,e,n,i,s,a,o,d){const u=d||Number.POSITIVE_INFINITY;let m=0;return Z;function Z(L){return L===60?(l.enter(n),l.enter(i),l.enter(s),l.consume(L),l.exit(s),p):L===null||L===32||L===41||$N(L)?e(L):(l.enter(n),l.enter(a),l.enter(o),l.enter("chunkString",{contentType:"string"}),X(L))}function p(L){return L===62?(l.enter(s),l.consume(L),l.exit(s),l.exit(i),l.exit(n),t):(l.enter(o),l.enter("chunkString",{contentType:"string"}),y(L))}function y(L){return L===62?(l.exit("chunkString"),l.exit(o),p(L)):L===null||L===60||De(L)?e(L):(l.consume(L),L===92?G:y)}function G(L){return L===60||L===62||L===92?(l.consume(L),y):y(L)}function X(L){return!m&&(L===null||L===41||vl(L))?(l.exit("chunkString"),l.exit(o),l.exit(a),l.exit(n),t(L)):m<u&&L===40?(l.consume(L),m++,X):L===41?(l.consume(L),m--,X):L===null||L===32||L===40||$N(L)?e(L):(l.consume(L),L===92?z:X)}function z(L){return L===40||L===41||L===92?(l.consume(L),X):X(L)}}function z9(l,t,e,n,i,s){const a=this;let o=0,d;return u;function u(y){return l.enter(n),l.enter(i),l.consume(y),l.exit(i),l.enter(s),m}function m(y){return o>999||y===null||y===91||y===93&&!d||y===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?e(y):y===93?(l.exit(s),l.enter(i),l.consume(y),l.exit(i),l.exit(n),t):De(y)?(l.enter("lineEnding"),l.consume(y),l.exit("lineEnding"),m):(l.enter("chunkString",{contentType:"string"}),Z(y))}function Z(y){return y===null||y===91||y===93||De(y)||o++>999?(l.exit("chunkString"),m(y)):(l.consume(y),d||(d=!pl(y)),y===92?p:Z)}function p(y){return y===91||y===92||y===93?(l.consume(y),o++,Z):Z(y)}}function w9(l,t,e,n,i,s){let a;return o;function o(p){return p===34||p===39||p===40?(l.enter(n),l.enter(i),l.consume(p),l.exit(i),a=p===40?41:p,d):e(p)}function d(p){return p===a?(l.enter(i),l.consume(p),l.exit(i),l.exit(n),t):(l.enter(s),u(p))}function u(p){return p===a?(l.exit(s),d(a)):p===null?e(p):De(p)?(l.enter("lineEnding"),l.consume(p),l.exit("lineEnding"),bl(l,u,"linePrefix")):(l.enter("chunkString",{contentType:"string"}),m(p))}function m(p){return p===a||p===null||De(p)?(l.exit("chunkString"),u(p)):(l.consume(p),p===92?Z:m)}function Z(p){return p===a||p===92?(l.consume(p),m):m(p)}}function IZ(l,t){let e;return n;function n(i){return De(i)?(l.enter("lineEnding"),l.consume(i),l.exit("lineEnding"),e=!0,n):pl(i)?bl(l,n,e?"linePrefix":"lineSuffix")(i):t(i)}}const sO={name:"definition",tokenize:cO},aO={partial:!0,tokenize:oO};function cO(l,t,e){const n=this;let i;return s;function s(y){return l.enter("definition"),a(y)}function a(y){return z9.call(n,l,o,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function o(y){return i=Nc(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),y===58?(l.enter("definitionMarker"),l.consume(y),l.exit("definitionMarker"),d):e(y)}function d(y){return vl(y)?IZ(l,u)(y):u(y)}function u(y){return I9(l,m,e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return l.attempt(aO,Z,Z)(y)}function Z(y){return pl(y)?bl(l,p,"whitespace")(y):p(y)}function p(y){return y===null||De(y)?(l.exit("definition"),n.parser.defined.push(i),t(y)):e(y)}}function oO(l,t,e){return n;function n(o){return vl(o)?IZ(l,i)(o):e(o)}function i(o){return w9(l,s,e,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return pl(o)?bl(l,a,"whitespace")(o):a(o)}function a(o){return o===null||De(o)?t(o):e(o)}}const rO={name:"hardBreakEscape",tokenize:dO};function dO(l,t,e){return n;function n(s){return l.enter("hardBreakEscape"),l.consume(s),i}function i(s){return De(s)?(l.exit("hardBreakEscape"),t(s)):e(s)}}const uO={name:"headingAtx",resolve:mO,tokenize:hO};function mO(l,t){let e=l.length-2,n=3,i,s;return l[n][1].type==="whitespace"&&(n+=2),e-2>n&&l[e][1].type==="whitespace"&&(e-=2),l[e][1].type==="atxHeadingSequence"&&(n===e-1||e-4>n&&l[e-2][1].type==="whitespace")&&(e-=n+1===e?2:4),e>n&&(i={type:"atxHeadingText",start:l[n][1].start,end:l[e][1].end},s={type:"chunkText",start:l[n][1].start,end:l[e][1].end,contentType:"text"},ma(l,n,e-n+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),l}function hO(l,t,e){let n=0;return i;function i(m){return l.enter("atxHeading"),s(m)}function s(m){return l.enter("atxHeadingSequence"),a(m)}function a(m){return m===35&&n++<6?(l.consume(m),a):m===null||vl(m)?(l.exit("atxHeadingSequence"),o(m)):e(m)}function o(m){return m===35?(l.enter("atxHeadingSequence"),d(m)):m===null||De(m)?(l.exit("atxHeading"),t(m)):pl(m)?bl(l,o,"whitespace")(m):(l.enter("atxHeadingText"),u(m))}function d(m){return m===35?(l.consume(m),d):(l.exit("atxHeadingSequence"),o(m))}function u(m){return m===null||m===35||vl(m)?(l.exit("atxHeadingText"),o(m)):(l.consume(m),u)}}const bO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bL=["pre","script","style","textarea"],ZO={concrete:!0,name:"htmlFlow",resolveTo:NO,tokenize:WO},pO={partial:!0,tokenize:GO},yO={partial:!0,tokenize:MO};function NO(l){let t=l.length;for(;t--&&!(l[t][0]==="enter"&&l[t][1].type==="htmlFlow"););return t>1&&l[t-2][1].type==="linePrefix"&&(l[t][1].start=l[t-2][1].start,l[t+1][1].start=l[t-2][1].start,l.splice(t-2,2)),l}function WO(l,t,e){const n=this;let i,s,a,o,d;return u;function u(H){return m(H)}function m(H){return l.enter("htmlFlow"),l.enter("htmlFlowData"),l.consume(H),Z}function Z(H){return H===33?(l.consume(H),p):H===47?(l.consume(H),s=!0,X):H===63?(l.consume(H),i=3,n.interrupt?t:K):us(H)?(l.consume(H),a=String.fromCharCode(H),z):e(H)}function p(H){return H===45?(l.consume(H),i=2,y):H===91?(l.consume(H),i=5,o=0,G):us(H)?(l.consume(H),i=4,n.interrupt?t:K):e(H)}function y(H){return H===45?(l.consume(H),n.interrupt?t:K):e(H)}function G(H){const le="CDATA[";return H===le.charCodeAt(o++)?(l.consume(H),o===le.length?n.interrupt?t:ht:G):e(H)}function X(H){return us(H)?(l.consume(H),a=String.fromCharCode(H),z):e(H)}function z(H){if(H===null||H===47||H===62||vl(H)){const le=H===47,Ze=a.toLowerCase();return!le&&!s&&bL.includes(Ze)?(i=1,n.interrupt?t(H):ht(H)):bO.includes(a.toLowerCase())?(i=6,le?(l.consume(H),L):n.interrupt?t(H):ht(H)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(H):s?S(H):R(H))}return H===45||Pi(H)?(l.consume(H),a+=String.fromCharCode(H),z):e(H)}function L(H){return H===62?(l.consume(H),n.interrupt?t:ht):e(H)}function S(H){return pl(H)?(l.consume(H),S):_(H)}function R(H){return H===47?(l.consume(H),_):H===58||H===95||us(H)?(l.consume(H),J):pl(H)?(l.consume(H),R):_(H)}function J(H){return H===45||H===46||H===58||H===95||Pi(H)?(l.consume(H),J):U(H)}function U(H){return H===61?(l.consume(H),j):pl(H)?(l.consume(H),U):R(H)}function j(H){return H===null||H===60||H===61||H===62||H===96?e(H):H===34||H===39?(l.consume(H),d=H,Q):pl(H)?(l.consume(H),j):it(H)}function Q(H){return H===d?(l.consume(H),d=null,at):H===null||De(H)?e(H):(l.consume(H),Q)}function it(H){return H===null||H===34||H===39||H===47||H===60||H===61||H===62||H===96||vl(H)?U(H):(l.consume(H),it)}function at(H){return H===47||H===62||pl(H)?R(H):e(H)}function _(H){return H===62?(l.consume(H),Wt):e(H)}function Wt(H){return H===null||De(H)?ht(H):pl(H)?(l.consume(H),Wt):e(H)}function ht(H){return H===45&&i===2?(l.consume(H),St):H===60&&i===1?(l.consume(H),Rt):H===62&&i===4?(l.consume(H),lt):H===63&&i===3?(l.consume(H),K):H===93&&i===5?(l.consume(H),Dt):De(H)&&(i===6||i===7)?(l.exit("htmlFlowData"),l.check(pO,Mt,Tt)(H)):H===null||De(H)?(l.exit("htmlFlowData"),Tt(H)):(l.consume(H),ht)}function Tt(H){return l.check(yO,Zt,Mt)(H)}function Zt(H){return l.enter("lineEnding"),l.consume(H),l.exit("lineEnding"),Xt}function Xt(H){return H===null||De(H)?Tt(H):(l.enter("htmlFlowData"),ht(H))}function St(H){return H===45?(l.consume(H),K):ht(H)}function Rt(H){return H===47?(l.consume(H),a="",Yt):ht(H)}function Yt(H){if(H===62){const le=a.toLowerCase();return bL.includes(le)?(l.consume(H),lt):ht(H)}return us(H)&&a.length<8?(l.consume(H),a+=String.fromCharCode(H),Yt):ht(H)}function Dt(H){return H===93?(l.consume(H),K):ht(H)}function K(H){return H===62?(l.consume(H),lt):H===45&&i===2?(l.consume(H),K):ht(H)}function lt(H){return H===null||De(H)?(l.exit("htmlFlowData"),Mt(H)):(l.consume(H),lt)}function Mt(H){return l.exit("htmlFlow"),t(H)}}function MO(l,t,e){const n=this;return i;function i(a){return De(a)?(l.enter("lineEnding"),l.consume(a),l.exit("lineEnding"),s):e(a)}function s(a){return n.parser.lazy[n.now().line]?e(a):t(a)}}function GO(l,t,e){return n;function n(i){return l.enter("lineEnding"),l.consume(i),l.exit("lineEnding"),l.attempt(W2,t,e)}}const XO={name:"htmlText",tokenize:YO};function YO(l,t,e){const n=this;let i,s,a;return o;function o(K){return l.enter("htmlText"),l.enter("htmlTextData"),l.consume(K),d}function d(K){return K===33?(l.consume(K),u):K===47?(l.consume(K),U):K===63?(l.consume(K),R):us(K)?(l.consume(K),it):e(K)}function u(K){return K===45?(l.consume(K),m):K===91?(l.consume(K),s=0,G):us(K)?(l.consume(K),S):e(K)}function m(K){return K===45?(l.consume(K),y):e(K)}function Z(K){return K===null?e(K):K===45?(l.consume(K),p):De(K)?(a=Z,Rt(K)):(l.consume(K),Z)}function p(K){return K===45?(l.consume(K),y):Z(K)}function y(K){return K===62?St(K):K===45?p(K):Z(K)}function G(K){const lt="CDATA[";return K===lt.charCodeAt(s++)?(l.consume(K),s===lt.length?X:G):e(K)}function X(K){return K===null?e(K):K===93?(l.consume(K),z):De(K)?(a=X,Rt(K)):(l.consume(K),X)}function z(K){return K===93?(l.consume(K),L):X(K)}function L(K){return K===62?St(K):K===93?(l.consume(K),L):X(K)}function S(K){return K===null||K===62?St(K):De(K)?(a=S,Rt(K)):(l.consume(K),S)}function R(K){return K===null?e(K):K===63?(l.consume(K),J):De(K)?(a=R,Rt(K)):(l.consume(K),R)}function J(K){return K===62?St(K):R(K)}function U(K){return us(K)?(l.consume(K),j):e(K)}function j(K){return K===45||Pi(K)?(l.consume(K),j):Q(K)}function Q(K){return De(K)?(a=Q,Rt(K)):pl(K)?(l.consume(K),Q):St(K)}function it(K){return K===45||Pi(K)?(l.consume(K),it):K===47||K===62||vl(K)?at(K):e(K)}function at(K){return K===47?(l.consume(K),St):K===58||K===95||us(K)?(l.consume(K),_):De(K)?(a=at,Rt(K)):pl(K)?(l.consume(K),at):St(K)}function _(K){return K===45||K===46||K===58||K===95||Pi(K)?(l.consume(K),_):Wt(K)}function Wt(K){return K===61?(l.consume(K),ht):De(K)?(a=Wt,Rt(K)):pl(K)?(l.consume(K),Wt):at(K)}function ht(K){return K===null||K===60||K===61||K===62||K===96?e(K):K===34||K===39?(l.consume(K),i=K,Tt):De(K)?(a=ht,Rt(K)):pl(K)?(l.consume(K),ht):(l.consume(K),Zt)}function Tt(K){return K===i?(l.consume(K),i=void 0,Xt):K===null?e(K):De(K)?(a=Tt,Rt(K)):(l.consume(K),Tt)}function Zt(K){return K===null||K===34||K===39||K===60||K===61||K===96?e(K):K===47||K===62||vl(K)?at(K):(l.consume(K),Zt)}function Xt(K){return K===47||K===62||vl(K)?at(K):e(K)}function St(K){return K===62?(l.consume(K),l.exit("htmlTextData"),l.exit("htmlText"),t):e(K)}function Rt(K){return l.exit("htmlTextData"),l.enter("lineEnding"),l.consume(K),l.exit("lineEnding"),Yt}function Yt(K){return pl(K)?bl(l,Dt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):Dt(K)}function Dt(K){return l.enter("htmlTextData"),a(K)}}const qY={name:"labelEnd",resolveAll:IO,resolveTo:zO,tokenize:wO},TO={tokenize:xO},VO={tokenize:gO},LO={tokenize:SO};function IO(l){let t=-1;const e=[];for(;++t<l.length;){const n=l[t][1];if(e.push(l[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return l.length!==e.length&&ma(l,0,l.length,e),l}function zO(l,t){let e=l.length,n=0,i,s,a,o;for(;e--;)if(i=l[e][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;l[e][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(l[e][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=e,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(a=e);const d={type:l[s][1].type==="labelLink"?"link":"image",start:{...l[s][1].start},end:{...l[l.length-1][1].end}},u={type:"label",start:{...l[s][1].start},end:{...l[a][1].end}},m={type:"labelText",start:{...l[s+n+2][1].end},end:{...l[a-2][1].start}};return o=[["enter",d,t],["enter",u,t]],o=Ja(o,l.slice(s+1,s+n+3)),o=Ja(o,[["enter",m,t]]),o=Ja(o,HW(t.parser.constructs.insideSpan.null,l.slice(s+n+4,a-3),t)),o=Ja(o,[["exit",m,t],l[a-2],l[a-1],["exit",u,t]]),o=Ja(o,l.slice(a+1)),o=Ja(o,[["exit",d,t]]),ma(l,s,l.length,o),l}function wO(l,t,e){const n=this;let i=n.events.length,s,a;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){s=n.events[i][1];break}return o;function o(p){return s?s._inactive?Z(p):(a=n.parser.defined.includes(Nc(n.sliceSerialize({start:s.end,end:n.now()}))),l.enter("labelEnd"),l.enter("labelMarker"),l.consume(p),l.exit("labelMarker"),l.exit("labelEnd"),d):e(p)}function d(p){return p===40?l.attempt(TO,m,a?m:Z)(p):p===91?l.attempt(VO,m,a?u:Z)(p):a?m(p):Z(p)}function u(p){return l.attempt(LO,m,Z)(p)}function m(p){return t(p)}function Z(p){return s._balanced=!0,e(p)}}function xO(l,t,e){return n;function n(Z){return l.enter("resource"),l.enter("resourceMarker"),l.consume(Z),l.exit("resourceMarker"),i}function i(Z){return vl(Z)?IZ(l,s)(Z):s(Z)}function s(Z){return Z===41?m(Z):I9(l,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Z)}function a(Z){return vl(Z)?IZ(l,d)(Z):m(Z)}function o(Z){return e(Z)}function d(Z){return Z===34||Z===39||Z===40?w9(l,u,e,"resourceTitle","resourceTitleMarker","resourceTitleString")(Z):m(Z)}function u(Z){return vl(Z)?IZ(l,m)(Z):m(Z)}function m(Z){return Z===41?(l.enter("resourceMarker"),l.consume(Z),l.exit("resourceMarker"),l.exit("resource"),t):e(Z)}}function gO(l,t,e){const n=this;return i;function i(o){return z9.call(n,l,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return n.parser.defined.includes(Nc(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):e(o)}function a(o){return e(o)}}function SO(l,t,e){return n;function n(s){return l.enter("reference"),l.enter("referenceMarker"),l.consume(s),l.exit("referenceMarker"),i}function i(s){return s===93?(l.enter("referenceMarker"),l.consume(s),l.exit("referenceMarker"),l.exit("reference"),t):e(s)}}const RO={name:"labelStartImage",resolveAll:qY.resolveAll,tokenize:kO};function kO(l,t,e){const n=this;return i;function i(o){return l.enter("labelImage"),l.enter("labelImageMarker"),l.consume(o),l.exit("labelImageMarker"),s}function s(o){return o===91?(l.enter("labelMarker"),l.consume(o),l.exit("labelMarker"),l.exit("labelImage"),a):e(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(o):t(o)}}const fO={name:"labelStartLink",resolveAll:qY.resolveAll,tokenize:DO};function DO(l,t,e){const n=this;return i;function i(a){return l.enter("labelLink"),l.enter("labelMarker"),l.consume(a),l.exit("labelMarker"),l.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(a):t(a)}}const KM={name:"lineEnding",tokenize:jO};function jO(l,t){return e;function e(n){return l.enter("lineEnding"),l.consume(n),l.exit("lineEnding"),bl(l,t,"linePrefix")}}const NN={name:"thematicBreak",tokenize:OO};function OO(l,t,e){let n=0,i;return s;function s(u){return l.enter("thematicBreak"),a(u)}function a(u){return i=u,o(u)}function o(u){return u===i?(l.enter("thematicBreakSequence"),d(u)):n>=3&&(u===null||De(u))?(l.exit("thematicBreak"),t(u)):e(u)}function d(u){return u===i?(l.consume(u),n++,d):(l.exit("thematicBreakSequence"),pl(u)?bl(l,o,"whitespace")(u):o(u))}}const Vs={continuation:{tokenize:UO},exit:vO,name:"list",tokenize:JO},CO={partial:!0,tokenize:KO},FO={partial:!0,tokenize:EO};function JO(l,t,e){const n=this,i=n.events[n.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(y){const G=n.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(G==="listUnordered"?!n.containerState.marker||y===n.containerState.marker:_G(y)){if(n.containerState.type||(n.containerState.type=G,l.enter(G,{_container:!0})),G==="listUnordered")return l.enter("listItemPrefix"),y===42||y===45?l.check(NN,e,u)(y):u(y);if(!n.interrupt||y===49)return l.enter("listItemPrefix"),l.enter("listItemValue"),d(y)}return e(y)}function d(y){return _G(y)&&++a<10?(l.consume(y),d):(!n.interrupt||a<2)&&(n.containerState.marker?y===n.containerState.marker:y===41||y===46)?(l.exit("listItemValue"),u(y)):e(y)}function u(y){return l.enter("listItemMarker"),l.consume(y),l.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||y,l.check(W2,n.interrupt?e:m,l.attempt(CO,p,Z))}function m(y){return n.containerState.initialBlankLine=!0,s++,p(y)}function Z(y){return pl(y)?(l.enter("listItemPrefixWhitespace"),l.consume(y),l.exit("listItemPrefixWhitespace"),p):e(y)}function p(y){return n.containerState.size=s+n.sliceSerialize(l.exit("listItemPrefix"),!0).length,t(y)}}function UO(l,t,e){const n=this;return n.containerState._closeFlow=void 0,l.check(W2,i,s);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,bl(l,t,"listItemIndent",n.containerState.size+1)(o)}function s(o){return n.containerState.furtherBlankLines||!pl(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l.attempt(FO,t,a)(o))}function a(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,bl(l,l.attempt(Vs,t,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function EO(l,t,e){const n=this;return bl(l,i,"listItemIndent",n.containerState.size+1);function i(s){const a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?t(s):e(s)}}function vO(l){l.exit(this.containerState.type)}function KO(l,t,e){const n=this;return bl(l,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=n.events[n.events.length-1];return!pl(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):e(s)}}const ZL={name:"setextUnderline",resolveTo:PO,tokenize:HO};function PO(l,t){let e=l.length,n,i,s;for(;e--;)if(l[e][0]==="enter"){if(l[e][1].type==="content"){n=e;break}l[e][1].type==="paragraph"&&(i=e)}else l[e][1].type==="content"&&l.splice(e,1),!s&&l[e][1].type==="definition"&&(s=e);const a={type:"setextHeading",start:{...l[i][1].start},end:{...l[l.length-1][1].end}};return l[i][1].type="setextHeadingText",s?(l.splice(i,0,["enter",a,t]),l.splice(s+1,0,["exit",l[n][1],t]),l[n][1].end={...l[s][1].end}):l[n][1]=a,l.push(["exit",a,t]),l}function HO(l,t,e){const n=this;let i;return s;function s(u){let m=n.events.length,Z;for(;m--;)if(n.events[m][1].type!=="lineEnding"&&n.events[m][1].type!=="linePrefix"&&n.events[m][1].type!=="content"){Z=n.events[m][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||Z)?(l.enter("setextHeadingLine"),i=u,a(u)):e(u)}function a(u){return l.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(l.consume(u),o):(l.exit("setextHeadingLineSequence"),pl(u)?bl(l,d,"lineSuffix")(u):d(u))}function d(u){return u===null||De(u)?(l.exit("setextHeadingLine"),t(u)):e(u)}}const QO={tokenize:BO};function BO(l){const t=this,e=l.attempt(W2,n,l.attempt(this.parser.constructs.flowInitial,i,bl(l,l.attempt(this.parser.constructs.flow,i,l.attempt(tO,i)),"linePrefix")));return e;function n(s){if(s===null){l.consume(s);return}return l.enter("lineEndingBlank"),l.consume(s),l.exit("lineEndingBlank"),t.currentConstruct=void 0,e}function i(s){if(s===null){l.consume(s);return}return l.enter("lineEnding"),l.consume(s),l.exit("lineEnding"),t.currentConstruct=void 0,e}}const AO={resolveAll:g9()},_O=x9("string"),qO=x9("text");function x9(l){return{resolveAll:g9(l==="text"?$O:void 0),tokenize:t};function t(e){const n=this,i=this.parser.constructs[l],s=e.attempt(i,a,o);return a;function a(m){return u(m)?s(m):o(m)}function o(m){if(m===null){e.consume(m);return}return e.enter("data"),e.consume(m),d}function d(m){return u(m)?(e.exit("data"),s(m)):(e.consume(m),d)}function u(m){if(m===null)return!0;const Z=i[m];let p=-1;if(Z)for(;++p<Z.length;){const y=Z[p];if(!y.previous||y.previous.call(n,n.previous))return!0}return!1}}}function g9(l){return t;function t(e,n){let i=-1,s;for(;++i<=e.length;)s===void 0?e[i]&&e[i][1].type==="data"&&(s=i,i++):(!e[i]||e[i][1].type!=="data")&&(i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),i=s+2),s=void 0);return l?l(e,n):e}}function $O(l,t){let e=0;for(;++e<=l.length;)if((e===l.length||l[e][1].type==="lineEnding")&&l[e-1][1].type==="data"){const n=l[e-1][1],i=t.sliceStream(n);let s=i.length,a=-1,o=0,d;for(;s--;){const u=i[s];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(u===-2)d=!0,o++;else if(u!==-1){s++;break}}if(o){const u={type:e===l.length||d||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:n.start._bufferIndex+a,_index:n.start._index+s,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(l.splice(e,0,["enter",u,t],["exit",u,t]),e+=2)}e++}return l}const tC={42:Vs,43:Vs,45:Vs,48:Vs,49:Vs,50:Vs,51:Vs,52:Vs,53:Vs,54:Vs,55:Vs,56:Vs,57:Vs,62:Y9},eC={91:sO},lC={[-2]:vM,[-1]:vM,32:vM},nC={35:uO,42:NN,45:[ZL,NN],60:ZO,61:ZL,95:NN,96:hL,126:hL},iC={38:V9,92:T9},sC={[-5]:KM,[-4]:KM,[-3]:KM,33:RO,38:V9,42:qG,60:[fj,XO],91:fO,92:[rO,T9],93:qY,95:qG,96:Qj},aC={null:[qG,AO]},cC={null:[42,95]},oC={null:[]},rC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:cC,contentInitial:eC,disable:oC,document:tC,flow:nC,flowInitial:lC,insideSpan:aC,string:iC,text:sC},Symbol.toStringTag,{value:"Module"}));function dC(l,t,e){let n={_bufferIndex:-1,_index:0,line:e&&e.line||1,column:e&&e.column||1,offset:e&&e.offset||0};const i={},s=[];let a=[],o=[];const d={attempt:Q(U),check:Q(j),consume:S,enter:R,exit:J,interrupt:Q(j,{interrupt:!0})},u={code:null,containerState:{},defineSkip:X,events:[],now:G,parser:l,previous:null,sliceSerialize:p,sliceStream:y,write:Z};let m=t.tokenize.call(u,d);return t.resolveAll&&s.push(t),u;function Z(Wt){return a=Ja(a,Wt),z(),a[a.length-1]!==null?[]:(it(t,0),u.events=HW(s,u.events,u),u.events)}function p(Wt,ht){return mC(y(Wt),ht)}function y(Wt){return uC(a,Wt)}function G(){const{_bufferIndex:Wt,_index:ht,line:Tt,column:Zt,offset:Xt}=n;return{_bufferIndex:Wt,_index:ht,line:Tt,column:Zt,offset:Xt}}function X(Wt){i[Wt.line]=Wt.column,_()}function z(){let Wt;for(;n._index<a.length;){const ht=a[n._index];if(typeof ht=="string")for(Wt=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===Wt&&n._bufferIndex<ht.length;)L(ht.charCodeAt(n._bufferIndex));else L(ht)}}function L(Wt){m=m(Wt)}function S(Wt){De(Wt)?(n.line++,n.column=1,n.offset+=Wt===-3?2:1,_()):Wt!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=Wt}function R(Wt,ht){const Tt=ht||{};return Tt.type=Wt,Tt.start=G(),u.events.push(["enter",Tt,u]),o.push(Tt),Tt}function J(Wt){const ht=o.pop();return ht.end=G(),u.events.push(["exit",ht,u]),ht}function U(Wt,ht){it(Wt,ht.from)}function j(Wt,ht){ht.restore()}function Q(Wt,ht){return Tt;function Tt(Zt,Xt,St){let Rt,Yt,Dt,K;return Array.isArray(Zt)?Mt(Zt):"tokenize"in Zt?Mt([Zt]):lt(Zt);function lt($t){return me;function me(ye){const Ft=ye!==null&&$t[ye],Pe=ye!==null&&$t.null,yl=[...Array.isArray(Ft)?Ft:Ft?[Ft]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return Mt(yl)(ye)}}function Mt($t){return Rt=$t,Yt=0,$t.length===0?St:H($t[Yt])}function H($t){return me;function me(ye){return K=at(),Dt=$t,$t.partial||(u.currentConstruct=$t),$t.name&&u.parser.constructs.disable.null.includes($t.name)?Ze():$t.tokenize.call(ht?Object.assign(Object.create(u),ht):u,d,le,Ze)(ye)}}function le($t){return Wt(Dt,K),Xt}function Ze($t){return K.restore(),++Yt<Rt.length?H(Rt[Yt]):St}}}function it(Wt,ht){Wt.resolveAll&&!s.includes(Wt)&&s.push(Wt),Wt.resolve&&ma(u.events,ht,u.events.length-ht,Wt.resolve(u.events.slice(ht),u)),Wt.resolveTo&&(u.events=Wt.resolveTo(u.events,u))}function at(){const Wt=G(),ht=u.previous,Tt=u.currentConstruct,Zt=u.events.length,Xt=Array.from(o);return{from:Zt,restore:St};function St(){n=Wt,u.previous=ht,u.currentConstruct=Tt,u.events.length=Zt,o=Xt,_()}}function _(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function uC(l,t){const e=t.start._index,n=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let a;if(e===i)a=[l[e].slice(n,s)];else{if(a=l.slice(e,i),n>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(n):a.shift()}s>0&&a.push(l[i].slice(0,s))}return a}function mC(l,t){let e=-1;const n=[];let i;for(;++e<l.length;){const s=l[e];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
`;break}case-3:{a=`\r
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,n.push(a)}return n.join("")}function hC(l){const n={constructs:G9([rC,...(l||{}).extensions||[]]),content:i(zj),defined:[],document:i(xj),flow:i(QO),lazy:{},string:i(_O),text:i(qO)};return n;function i(s){return a;function a(o){return dC(n,s,o)}}}function bC(l){for(;!L9(l););return l}const pL=/[\0\t\n\r]/g;function ZC(){let l=1,t="",e=!0,n;return i;function i(s,a,o){const d=[];let u,m,Z,p,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),Z=0,t="",e&&(s.charCodeAt(0)===65279&&Z++,e=void 0);Z<s.length;){if(pL.lastIndex=Z,u=pL.exec(s),p=u&&u.index!==void 0?u.index:s.length,y=s.charCodeAt(p),!u){t=s.slice(Z);break}if(y===10&&Z===p&&n)d.push(-3),n=void 0;else switch(n&&(d.push(-5),n=void 0),Z<p&&(d.push(s.slice(Z,p)),l+=p-Z),y){case 0:{d.push(65533),l++;break}case 9:{for(m=Math.ceil(l/4)*4,d.push(-2);l++<m;)d.push(-1);break}case 10:{d.push(-4),l=1;break}default:n=!0,l=1}Z=p+1}return o&&(n&&d.push(-5),t&&d.push(t),d.push(null)),d}}const pC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yC(l){return l.replace(pC,NC)}function NC(l,t,e){if(t)return t;if(e.charCodeAt(0)===35){const i=e.charCodeAt(1),s=i===120||i===88;return X9(e.slice(s?2:1),s?16:10)}return _Y(e)||l}const S9={}.hasOwnProperty;function WC(l,t,e){return typeof t!="string"&&(e=t,t=void 0),MC(e)(bC(hC(e).document().write(ZC()(l,t,!0))))}function MC(l){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(In),autolinkProtocol:at,autolinkEmail:at,atxHeading:s(hn),blockQuote:s(Pe),characterEscape:at,characterReference:at,codeFenced:s(yl),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(yl,a),codeText:s(Oe,a),codeTextData:at,data:at,codeFlowValue:at,definition:s(nn),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Fn),hardBreakEscape:s(nl),hardBreakTrailing:s(nl),htmlFlow:s(Pl,a),htmlFlowData:at,htmlText:s(Pl,a),htmlTextData:at,image:s(bn),label:a,link:s(In),listItem:s(Zn),listItemValue:p,listOrdered:s(Jn,Z),listUnordered:s(Jn),paragraph:s(Za),reference:H,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(hn),strong:s(Qi),thematicBreak:s(xe)},exit:{atxHeading:d(),atxHeadingSequence:U,autolink:d(),autolinkEmail:Ft,autolinkProtocol:ye,blockQuote:d(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:Ze,characterReferenceMarkerNumeric:Ze,characterReferenceValue:$t,characterReference:me,codeFenced:d(z),codeFencedFence:X,codeFencedFenceInfo:y,codeFencedFenceMeta:G,codeFlowValue:_,codeIndented:d(L),codeText:d(Xt),codeTextData:_,data:_,definition:d(),definitionDestinationString:J,definitionLabelString:S,definitionTitleString:R,emphasis:d(),hardBreakEscape:d(ht),hardBreakTrailing:d(ht),htmlFlow:d(Tt),htmlFlowData:_,htmlText:d(Zt),htmlTextData:_,image:d(Rt),label:Dt,labelText:Yt,lineEnding:Wt,link:d(St),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:le,resourceDestinationString:K,resourceTitleString:lt,resource:Mt,setextHeading:d(it),setextHeadingLineSequence:Q,setextHeadingText:j,strong:d(),thematicBreak:d()}};R9(t,(l||{}).mdastExtensions||[]);const e={};return n;function n(It){let jt={type:"root",children:[]};const Me={stack:[jt],tokenStack:[],config:t,enter:o,exit:u,buffer:a,resume:m,data:e},Ce=[];let Be=-1;for(;++Be<It.length;)if(It[Be][1].type==="listOrdered"||It[Be][1].type==="listUnordered")if(It[Be][0]==="enter")Ce.push(Be);else{const Rl=Ce.pop();Be=i(It,Rl,Be)}for(Be=-1;++Be<It.length;){const Rl=t[It[Be][0]];S9.call(Rl,It[Be][1].type)&&Rl[It[Be][1].type].call(Object.assign({sliceSerialize:It[Be][2].sliceSerialize},Me),It[Be][1])}if(Me.tokenStack.length>0){const Rl=Me.tokenStack[Me.tokenStack.length-1];(Rl[1]||yL).call(Me,void 0,Rl[0])}for(jt.position={start:Qr(It.length>0?It[0][1].start:{line:1,column:1,offset:0}),end:Qr(It.length>0?It[It.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<t.transforms.length;)jt=t.transforms[Be](jt)||jt;return jt}function i(It,jt,Me){let Ce=jt-1,Be=-1,Rl=!1,pn,yn,Un,zn;for(;++Ce<=Me;){const se=It[Ce];switch(se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{se[0]==="enter"?Be++:Be--,zn=void 0;break}case"lineEndingBlank":{se[0]==="enter"&&(pn&&!zn&&!Be&&!Un&&(Un=Ce),zn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:zn=void 0}if(!Be&&se[0]==="enter"&&se[1].type==="listItemPrefix"||Be===-1&&se[0]==="exit"&&(se[1].type==="listUnordered"||se[1].type==="listOrdered")){if(pn){let wn=Ce;for(yn=void 0;wn--;){const gl=It[wn];if(gl[1].type==="lineEnding"||gl[1].type==="lineEndingBlank"){if(gl[0]==="exit")continue;yn&&(It[yn][1].type="lineEndingBlank",Rl=!0),gl[1].type="lineEnding",yn=wn}else if(!(gl[1].type==="linePrefix"||gl[1].type==="blockQuotePrefix"||gl[1].type==="blockQuotePrefixWhitespace"||gl[1].type==="blockQuoteMarker"||gl[1].type==="listItemIndent"))break}Un&&(!yn||Un<yn)&&(pn._spread=!0),pn.end=Object.assign({},yn?It[yn][1].start:se[1].end),It.splice(yn||Ce,0,["exit",pn,se[2]]),Ce++,Me++}if(se[1].type==="listItemPrefix"){const wn={type:"listItem",_spread:!1,start:Object.assign({},se[1].start),end:void 0};pn=wn,It.splice(Ce,0,["enter",wn,se[2]]),Ce++,Me++,Un=void 0,zn=!0}}}return It[jt][1]._spread=Rl,Me}function s(It,jt){return Me;function Me(Ce){o.call(this,It(Ce),Ce),jt&&jt.call(this,Ce)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(It,jt,Me){this.stack[this.stack.length-1].children.push(It),this.stack.push(It),this.tokenStack.push([jt,Me||void 0]),It.position={start:Qr(jt.start),end:void 0}}function d(It){return jt;function jt(Me){It&&It.call(this,Me),u.call(this,Me)}}function u(It,jt){const Me=this.stack.pop(),Ce=this.tokenStack.pop();if(Ce)Ce[0].type!==It.type&&(jt?jt.call(this,It,Ce[0]):(Ce[1]||yL).call(this,It,Ce[0]));else throw new Error("Cannot close `"+It.type+"` ("+LZ({start:It.start,end:It.end})+"): it’s not open");Me.position.end=Qr(It.end)}function m(){return AY(this.stack.pop())}function Z(){this.data.expectingFirstListItemValue=!0}function p(It){if(this.data.expectingFirstListItemValue){const jt=this.stack[this.stack.length-2];jt.start=Number.parseInt(this.sliceSerialize(It),10),this.data.expectingFirstListItemValue=void 0}}function y(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.lang=It}function G(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.meta=It}function X(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function z(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.value=It.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.value=It.replace(/(\r?\n|\r)$/g,"")}function S(It){const jt=this.resume(),Me=this.stack[this.stack.length-1];Me.label=jt,Me.identifier=Nc(this.sliceSerialize(It)).toLowerCase()}function R(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.title=It}function J(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.url=It}function U(It){const jt=this.stack[this.stack.length-1];if(!jt.depth){const Me=this.sliceSerialize(It).length;jt.depth=Me}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function Q(It){const jt=this.stack[this.stack.length-1];jt.depth=this.sliceSerialize(It).codePointAt(0)===61?1:2}function it(){this.data.setextHeadingSlurpLineEnding=void 0}function at(It){const Me=this.stack[this.stack.length-1].children;let Ce=Me[Me.length-1];(!Ce||Ce.type!=="text")&&(Ce=ee(),Ce.position={start:Qr(It.start),end:void 0},Me.push(Ce)),this.stack.push(Ce)}function _(It){const jt=this.stack.pop();jt.value+=this.sliceSerialize(It),jt.position.end=Qr(It.end)}function Wt(It){const jt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Me=jt.children[jt.children.length-1];Me.position.end=Qr(It.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(jt.type)&&(at.call(this,It),_.call(this,It))}function ht(){this.data.atHardBreak=!0}function Tt(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.value=It}function Zt(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.value=It}function Xt(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.value=It}function St(){const It=this.stack[this.stack.length-1];if(this.data.inReference){const jt=this.data.referenceType||"shortcut";It.type+="Reference",It.referenceType=jt,delete It.url,delete It.title}else delete It.identifier,delete It.label;this.data.referenceType=void 0}function Rt(){const It=this.stack[this.stack.length-1];if(this.data.inReference){const jt=this.data.referenceType||"shortcut";It.type+="Reference",It.referenceType=jt,delete It.url,delete It.title}else delete It.identifier,delete It.label;this.data.referenceType=void 0}function Yt(It){const jt=this.sliceSerialize(It),Me=this.stack[this.stack.length-2];Me.label=yC(jt),Me.identifier=Nc(jt).toLowerCase()}function Dt(){const It=this.stack[this.stack.length-1],jt=this.resume(),Me=this.stack[this.stack.length-1];if(this.data.inReference=!0,Me.type==="link"){const Ce=It.children;Me.children=Ce}else Me.alt=jt}function K(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.url=It}function lt(){const It=this.resume(),jt=this.stack[this.stack.length-1];jt.title=It}function Mt(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function le(It){const jt=this.resume(),Me=this.stack[this.stack.length-1];Me.label=jt,Me.identifier=Nc(this.sliceSerialize(It)).toLowerCase(),this.data.referenceType="full"}function Ze(It){this.data.characterReferenceType=It.type}function $t(It){const jt=this.sliceSerialize(It),Me=this.data.characterReferenceType;let Ce;Me?(Ce=X9(jt,Me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ce=_Y(jt);const Be=this.stack[this.stack.length-1];Be.value+=Ce}function me(It){const jt=this.stack.pop();jt.position.end=Qr(It.end)}function ye(It){_.call(this,It);const jt=this.stack[this.stack.length-1];jt.url=this.sliceSerialize(It)}function Ft(It){_.call(this,It);const jt=this.stack[this.stack.length-1];jt.url="mailto:"+this.sliceSerialize(It)}function Pe(){return{type:"blockquote",children:[]}}function yl(){return{type:"code",lang:null,meta:null,value:""}}function Oe(){return{type:"inlineCode",value:""}}function nn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fn(){return{type:"emphasis",children:[]}}function hn(){return{type:"heading",depth:0,children:[]}}function nl(){return{type:"break"}}function Pl(){return{type:"html",value:""}}function bn(){return{type:"image",title:null,url:"",alt:null}}function In(){return{type:"link",title:null,url:"",children:[]}}function Jn(It){return{type:"list",ordered:It.type==="listOrdered",start:null,spread:It._spread,children:[]}}function Zn(It){return{type:"listItem",spread:It._spread,checked:null,children:[]}}function Za(){return{type:"paragraph",children:[]}}function Qi(){return{type:"strong",children:[]}}function ee(){return{type:"text",value:""}}function xe(){return{type:"thematicBreak"}}}function Qr(l){return{line:l.line,column:l.column,offset:l.offset}}function R9(l,t){let e=-1;for(;++e<t.length;){const n=t[e];Array.isArray(n)?R9(l,n):GC(l,n)}}function GC(l,t){let e;for(e in t)if(S9.call(t,e))switch(e){case"canContainEols":{const n=t[e];n&&l[e].push(...n);break}case"transforms":{const n=t[e];n&&l[e].push(...n);break}case"enter":case"exit":{const n=t[e];n&&Object.assign(l[e],n);break}}}function yL(l,t){throw l?new Error("Cannot close `"+l.type+"` ("+LZ({start:l.start,end:l.end})+"): a different token (`"+t.type+"`, "+LZ({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+LZ({start:t.start,end:t.end})+") is still open")}function XC(l){const t=this;t.parser=e;function e(n){return WC(n,{...t.data("settings"),...l,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function YC(l,t){const e={type:"element",tagName:"blockquote",properties:{},children:l.wrap(l.all(t),!0)};return l.patch(t,e),l.applyData(t,e)}function TC(l,t){const e={type:"element",tagName:"br",properties:{},children:[]};return l.patch(t,e),[l.applyData(t,e),{type:"text",value:`
`}]}function VC(l,t){const e=t.value?t.value+`
`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:e}]};return t.meta&&(i.data={meta:t.meta}),l.patch(t,i),i=l.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},l.patch(t,i),i}function LC(l,t){const e={type:"element",tagName:"del",properties:{},children:l.all(t)};return l.patch(t,e),l.applyData(t,e)}function IC(l,t){const e={type:"element",tagName:"em",properties:{},children:l.all(t)};return l.patch(t,e),l.applyData(t,e)}function zC(l,t){const e=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Wb(n.toLowerCase()),s=l.footnoteOrder.indexOf(n);let a,o=l.footnoteCounts.get(n);o===void 0?(o=0,l.footnoteOrder.push(n),a=l.footnoteOrder.length):a=s+1,o+=1,l.footnoteCounts.set(n,o);const d={type:"element",tagName:"a",properties:{href:"#"+e+"fn-"+i,id:e+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};l.patch(t,d);const u={type:"element",tagName:"sup",properties:{},children:[d]};return l.patch(t,u),l.applyData(t,u)}function wC(l,t){const e={type:"element",tagName:"h"+t.depth,properties:{},children:l.all(t)};return l.patch(t,e),l.applyData(t,e)}function xC(l,t){if(l.options.allowDangerousHtml){const e={type:"raw",value:t.value};return l.patch(t,e),l.applyData(t,e)}}function k9(l,t){const e=t.referenceType;let n="]";if(e==="collapsed"?n+="[]":e==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=l.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=n:i.push({type:"text",value:n}),i}function gC(l,t){const e=String(t.identifier).toUpperCase(),n=l.definitionById.get(e);if(!n)return k9(l,t);const i={src:Wb(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const s={type:"element",tagName:"img",properties:i,children:[]};return l.patch(t,s),l.applyData(t,s)}function SC(l,t){const e={src:Wb(t.url)};t.alt!==null&&t.alt!==void 0&&(e.alt=t.alt),t.title!==null&&t.title!==void 0&&(e.title=t.title);const n={type:"element",tagName:"img",properties:e,children:[]};return l.patch(t,n),l.applyData(t,n)}function RC(l,t){const e={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};l.patch(t,e);const n={type:"element",tagName:"code",properties:{},children:[e]};return l.patch(t,n),l.applyData(t,n)}function kC(l,t){const e=String(t.identifier).toUpperCase(),n=l.definitionById.get(e);if(!n)return k9(l,t);const i={href:Wb(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const s={type:"element",tagName:"a",properties:i,children:l.all(t)};return l.patch(t,s),l.applyData(t,s)}function fC(l,t){const e={href:Wb(t.url)};t.title!==null&&t.title!==void 0&&(e.title=t.title);const n={type:"element",tagName:"a",properties:e,children:l.all(t)};return l.patch(t,n),l.applyData(t,n)}function DC(l,t,e){const n=l.all(t),i=e?jC(e):f9(t),s={},a=[];if(typeof t.checked=="boolean"){const m=n[0];let Z;m&&m.type==="element"&&m.tagName==="p"?Z=m:(Z={type:"element",tagName:"p",properties:{},children:[]},n.unshift(Z)),Z.children.length>0&&Z.children.unshift({type:"text",value:" "}),Z.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const m=n[o];(i||o!==0||m.type!=="element"||m.tagName!=="p")&&a.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!i?a.push(...m.children):a.push(m)}const d=n[n.length-1];d&&(i||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:s,children:a};return l.patch(t,u),l.applyData(t,u)}function jC(l){let t=!1;if(l.type==="list"){t=l.spread||!1;const e=l.children;let n=-1;for(;!t&&++n<e.length;)t=f9(e[n])}return t}function f9(l){const t=l.spread;return t??l.children.length>1}function OC(l,t){const e={},n=l.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(e.start=t.start);++i<n.length;){const a=n[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){e.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:e,children:l.wrap(n,!0)};return l.patch(t,s),l.applyData(t,s)}function CC(l,t){const e={type:"element",tagName:"p",properties:{},children:l.all(t)};return l.patch(t,e),l.applyData(t,e)}function FC(l,t){const e={type:"root",children:l.wrap(l.all(t))};return l.patch(t,e),l.applyData(t,e)}function JC(l,t){const e={type:"element",tagName:"strong",properties:{},children:l.all(t)};return l.patch(t,e),l.applyData(t,e)}function UC(l,t){const e=l.all(t),n=e.shift(),i=[];if(n){const a={type:"element",tagName:"thead",properties:{},children:l.wrap([n],!0)};l.patch(t.children[0],a),i.push(a)}if(e.length>0){const a={type:"element",tagName:"tbody",properties:{},children:l.wrap(e,!0)},o=PY(t.children[1]),d=b9(t.children[t.children.length-1]);o&&d&&(a.position={start:o,end:d}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:l.wrap(i,!0)};return l.patch(t,s),l.applyData(t,s)}function EC(l,t,e){const n=e?e.children:void 0,s=(n?n.indexOf(t):1)===0?"th":"td",a=e&&e.type==="table"?e.align:void 0,o=a?a.length:t.children.length;let d=-1;const u=[];for(;++d<o;){const Z=t.children[d],p={},y=a?a[d]:void 0;y&&(p.align=y);let G={type:"element",tagName:s,properties:p,children:[]};Z&&(G.children=l.all(Z),l.patch(Z,G),G=l.applyData(Z,G)),u.push(G)}const m={type:"element",tagName:"tr",properties:{},children:l.wrap(u,!0)};return l.patch(t,m),l.applyData(t,m)}function vC(l,t){const e={type:"element",tagName:"td",properties:{},children:l.all(t)};return l.patch(t,e),l.applyData(t,e)}const NL=9,WL=32;function KC(l){const t=String(l),e=/\r?\n|\r/g;let n=e.exec(t),i=0;const s=[];for(;n;)s.push(ML(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=e.exec(t);return s.push(ML(t.slice(i),i>0,!1)),s.join("")}function ML(l,t,e){let n=0,i=l.length;if(t){let s=l.codePointAt(n);for(;s===NL||s===WL;)n++,s=l.codePointAt(n)}if(e){let s=l.codePointAt(i-1);for(;s===NL||s===WL;)i--,s=l.codePointAt(i-1)}return i>n?l.slice(n,i):""}function PC(l,t){const e={type:"text",value:KC(String(t.value))};return l.patch(t,e),l.applyData(t,e)}function HC(l,t){const e={type:"element",tagName:"hr",properties:{},children:[]};return l.patch(t,e),l.applyData(t,e)}const QC={blockquote:YC,break:TC,code:VC,delete:LC,emphasis:IC,footnoteReference:zC,heading:wC,html:xC,imageReference:gC,image:SC,inlineCode:RC,linkReference:kC,link:fC,listItem:DC,list:OC,paragraph:CC,root:FC,strong:JC,table:UC,tableCell:vC,tableRow:EC,text:PC,thematicBreak:HC,toml:jy,yaml:jy,definition:jy,footnoteDefinition:jy};function jy(){}const D9=-1,QW=0,zZ=1,tW=2,$Y=3,t5=4,e5=5,l5=6,j9=7,O9=8,GL=typeof self=="object"?self:globalThis,BC=(l,t)=>{const e=(i,s)=>(l.set(s,i),i),n=i=>{if(l.has(i))return l.get(i);const[s,a]=t[i];switch(s){case QW:case D9:return e(a,i);case zZ:{const o=e([],i);for(const d of a)o.push(n(d));return o}case tW:{const o=e({},i);for(const[d,u]of a)o[n(d)]=n(u);return o}case $Y:return e(new Date(a),i);case t5:{const{source:o,flags:d}=a;return e(new RegExp(o,d),i)}case e5:{const o=e(new Map,i);for(const[d,u]of a)o.set(n(d),n(u));return o}case l5:{const o=e(new Set,i);for(const d of a)o.add(n(d));return o}case j9:{const{name:o,message:d}=a;return e(new GL[o](d),i)}case O9:return e(BigInt(a),i);case"BigInt":return e(Object(BigInt(a)),i);case"ArrayBuffer":return e(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return e(new DataView(o),a)}}return e(new GL[s](a),i)};return n},XL=l=>BC(new Map,l)(0),Om="",{toString:AC}={},{keys:_C}=Object,tZ=l=>{const t=typeof l;if(t!=="object"||!l)return[QW,t];const e=AC.call(l).slice(8,-1);switch(e){case"Array":return[zZ,Om];case"Object":return[tW,Om];case"Date":return[$Y,Om];case"RegExp":return[t5,Om];case"Map":return[e5,Om];case"Set":return[l5,Om];case"DataView":return[zZ,e]}return e.includes("Array")?[zZ,e]:e.includes("Error")?[j9,e]:[tW,e]},Oy=([l,t])=>l===QW&&(t==="function"||t==="symbol"),qC=(l,t,e,n)=>{const i=(a,o)=>{const d=n.push(a)-1;return e.set(o,d),d},s=a=>{if(e.has(a))return e.get(a);let[o,d]=tZ(a);switch(o){case QW:{let m=a;switch(d){case"bigint":o=O9,m=a.toString();break;case"function":case"symbol":if(l)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return i([D9],a)}return i([o,m],a)}case zZ:{if(d){let p=a;return d==="DataView"?p=new Uint8Array(a.buffer):d==="ArrayBuffer"&&(p=new Uint8Array(a)),i([d,[...p]],a)}const m=[],Z=i([o,m],a);for(const p of a)m.push(s(p));return Z}case tW:{if(d)switch(d){case"BigInt":return i([d,a.toString()],a);case"Boolean":case"Number":case"String":return i([d,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const m=[],Z=i([o,m],a);for(const p of _C(a))(l||!Oy(tZ(a[p])))&&m.push([s(p),s(a[p])]);return Z}case $Y:return i([o,a.toISOString()],a);case t5:{const{source:m,flags:Z}=a;return i([o,{source:m,flags:Z}],a)}case e5:{const m=[],Z=i([o,m],a);for(const[p,y]of a)(l||!(Oy(tZ(p))||Oy(tZ(y))))&&m.push([s(p),s(y)]);return Z}case l5:{const m=[],Z=i([o,m],a);for(const p of a)(l||!Oy(tZ(p)))&&m.push(s(p));return Z}}const{message:u}=a;return i([o,{name:d,message:u}],a)};return s},YL=(l,{json:t,lossy:e}={})=>{const n=[];return qC(!(t||e),!!t,new Map,n)(l),n},eW=typeof structuredClone=="function"?(l,t)=>t&&("json"in t||"lossy"in t)?XL(YL(l,t)):structuredClone(l):(l,t)=>XL(YL(l,t));function $C(l,t){const e=[{type:"text",value:"↩"}];return t>1&&e.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),e}function tF(l,t){return"Back to reference "+(l+1)+(t>1?"-"+t:"")}function eF(l){const t=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",e=l.options.footnoteBackContent||$C,n=l.options.footnoteBackLabel||tF,i=l.options.footnoteLabel||"Footnotes",s=l.options.footnoteLabelTagName||"h2",a=l.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let d=-1;for(;++d<l.footnoteOrder.length;){const u=l.footnoteById.get(l.footnoteOrder[d]);if(!u)continue;const m=l.all(u),Z=String(u.identifier).toUpperCase(),p=Wb(Z.toLowerCase());let y=0;const G=[],X=l.footnoteCounts.get(Z);for(;X!==void 0&&++y<=X;){G.length>0&&G.push({type:"text",value:" "});let S=typeof e=="string"?e:e(d,y);typeof S=="string"&&(S={type:"text",value:S}),G.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(d,y),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const z=m[m.length-1];if(z&&z.type==="element"&&z.tagName==="p"){const S=z.children[z.children.length-1];S&&S.type==="text"?S.value+=" ":z.children.push({type:"text",value:" "}),z.children.push(...G)}else m.push(...G);const L={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:l.wrap(m,!0)};l.patch(u,L),o.push(L)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...eW(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:l.wrap(o,!0)},{type:"text",value:`
`}]}}const M2=function(l){if(l==null)return sF;if(typeof l=="function")return BW(l);if(typeof l=="object")return Array.isArray(l)?lF(l):nF(l);if(typeof l=="string")return iF(l);throw new Error("Expected function, string, or object as test")};function lF(l){const t=[];let e=-1;for(;++e<l.length;)t[e]=M2(l[e]);return BW(n);function n(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function nF(l){const t=l;return BW(e);function e(n){const i=n;let s;for(s in l)if(i[s]!==t[s])return!1;return!0}}function iF(l){return BW(t);function t(e){return e&&e.type===l}}function BW(l){return t;function t(e,n,i){return!!(aF(e)&&l.call(this,e,typeof n=="number"?n:void 0,i||void 0))}}function sF(){return!0}function aF(l){return l!==null&&typeof l=="object"&&"type"in l}const C9=[],cF=!0,$G=!1,F9="skip";function n5(l,t,e,n){let i;typeof t=="function"&&typeof e!="function"?(n=e,e=t):i=t;const s=M2(i),a=n?-1:1;o(l,void 0,[])();function o(d,u,m){const Z=d&&typeof d=="object"?d:{};if(typeof Z.type=="string"){const y=typeof Z.tagName=="string"?Z.tagName:typeof Z.name=="string"?Z.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return p;function p(){let y=C9,G,X,z;if((!t||s(d,u,m[m.length-1]||void 0))&&(y=oF(e(d,m)),y[0]===$G))return y;if("children"in d&&d.children){const L=d;if(L.children&&y[0]!==F9)for(X=(n?L.children.length:-1)+a,z=m.concat(L);X>-1&&X<L.children.length;){const S=L.children[X];if(G=o(S,X,z)(),G[0]===$G)return G;X=typeof G[1]=="number"?G[1]:X+a}}return y}}}function oF(l){return Array.isArray(l)?l:typeof l=="number"?[cF,l]:l==null?C9:[l]}function G2(l,t,e,n){let i,s,a;typeof t=="function"&&typeof e!="function"?(s=void 0,a=t,i=e):(s=t,a=e,i=n),n5(l,s,o,i);function o(d,u){const m=u[u.length-1],Z=m?m.children.indexOf(d):void 0;return a(d,Z,m)}}const tX={}.hasOwnProperty,rF={};function dF(l,t){const e=t||rF,n=new Map,i=new Map,s=new Map,a={...QC,...e.handlers},o={all:u,applyData:mF,definitionById:n,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:d,options:e,patch:uF,wrap:bF};return G2(l,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const Z=m.type==="definition"?n:i,p=String(m.identifier).toUpperCase();Z.has(p)||Z.set(p,m)}}),o;function d(m,Z){const p=m.type,y=o.handlers[p];if(tX.call(o.handlers,p)&&y)return y(o,m,Z);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in m){const{children:X,...z}=m,L=eW(z);return L.children=o.all(m),L}return eW(m)}return(o.options.unknownHandler||hF)(o,m,Z)}function u(m){const Z=[];if("children"in m){const p=m.children;let y=-1;for(;++y<p.length;){const G=o.one(p[y],m);if(G){if(y&&p[y-1].type==="break"&&(!Array.isArray(G)&&G.type==="text"&&(G.value=TL(G.value)),!Array.isArray(G)&&G.type==="element")){const X=G.children[0];X&&X.type==="text"&&(X.value=TL(X.value))}Array.isArray(G)?Z.push(...G):Z.push(G)}}}return Z}}function uF(l,t){l.position&&(t.position=qD(l))}function mF(l,t){let e=t;if(l&&l.data){const n=l.data.hName,i=l.data.hChildren,s=l.data.hProperties;if(typeof n=="string")if(e.type==="element")e.tagName=n;else{const a="children"in e?e.children:[e];e={type:"element",tagName:n,properties:{},children:a}}e.type==="element"&&s&&Object.assign(e.properties,eW(s)),"children"in e&&e.children&&i!==null&&i!==void 0&&(e.children=i)}return e}function hF(l,t){const e=t.data||{},n="value"in t&&!(tX.call(e,"hProperties")||tX.call(e,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:l.all(t)};return l.patch(t,n),l.applyData(t,n)}function bF(l,t){const e=[];let n=-1;for(t&&e.push({type:"text",value:`
`});++n<l.length;)n&&e.push({type:"text",value:`
`}),e.push(l[n]);return t&&l.length>0&&e.push({type:"text",value:`
`}),e}function TL(l){let t=0,e=l.charCodeAt(t);for(;e===9||e===32;)t++,e=l.charCodeAt(t);return l.slice(t)}function VL(l,t){const e=dF(l,t),n=e.one(l,void 0),i=eF(e),s=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
`},i),s}function ZF(l,t){return l&&"run"in l?async function(e,n){const i=VL(e,{file:n,...t});await l.run(i,n)}:function(e,n){return VL(e,{file:n,...l||t})}}function LL(l){if(l)throw l}var PM,IL;function pF(){if(IL)return PM;IL=1;var l=Object.prototype.hasOwnProperty,t=Object.prototype.toString,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var m=l.call(u,"constructor"),Z=u.constructor&&u.constructor.prototype&&l.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!m&&!Z)return!1;var p;for(p in u);return typeof p>"u"||l.call(u,p)},a=function(u,m){e&&m.name==="__proto__"?e(u,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):u[m.name]=m.newValue},o=function(u,m){if(m==="__proto__")if(l.call(u,m)){if(n)return n(u,m).value}else return;return u[m]};return PM=function d(){var u,m,Z,p,y,G,X=arguments[0],z=1,L=arguments.length,S=!1;for(typeof X=="boolean"&&(S=X,X=arguments[1]||{},z=2),(X==null||typeof X!="object"&&typeof X!="function")&&(X={});z<L;++z)if(u=arguments[z],u!=null)for(m in u)Z=o(X,m),p=o(u,m),X!==p&&(S&&p&&(s(p)||(y=i(p)))?(y?(y=!1,G=Z&&i(Z)?Z:[]):G=Z&&s(Z)?Z:{},a(X,{name:m,newValue:d(S,G,p)})):typeof p<"u"&&a(X,{name:m,newValue:p}));return X},PM}var yF=pF();const HM=qu(yF);function eX(l){if(typeof l!="object"||l===null)return!1;const t=Object.getPrototypeOf(l);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in l)&&!(Symbol.iterator in l)}function NF(){const l=[],t={run:e,use:n};return t;function e(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(d,...u){const m=l[++s];let Z=-1;if(d){a(d);return}for(;++Z<i.length;)(u[Z]===null||u[Z]===void 0)&&(u[Z]=i[Z]);i=u,m?WF(m,o)(...u):a(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return l.push(i),t}}function WF(l,t){let e;return n;function n(...a){const o=l.length>a.length;let d;o&&a.push(i);try{d=l.apply(this,a)}catch(u){const m=u;if(o&&e)throw m;return i(m)}o||(d&&d.then&&typeof d.then=="function"?d.then(s,i):d instanceof Error?i(d):s(d))}function i(a,...o){e||(e=!0,t(a,...o))}function s(a){i(null,a)}}const Cc={basename:MF,dirname:GF,extname:XF,join:YF,sep:"/"};function MF(l,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');X2(l);let e=0,n=-1,i=l.length,s;if(t===void 0||t.length===0||t.length>l.length){for(;i--;)if(l.codePointAt(i)===47){if(s){e=i+1;break}}else n<0&&(s=!0,n=i+1);return n<0?"":l.slice(e,n)}if(t===l)return"";let a=-1,o=t.length-1;for(;i--;)if(l.codePointAt(i)===47){if(s){e=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(l.codePointAt(i)===t.codePointAt(o--)?o<0&&(n=i):(o=-1,n=a));return e===n?n=a:n<0&&(n=l.length),l.slice(e,n)}function GF(l){if(X2(l),l.length===0)return".";let t=-1,e=l.length,n;for(;--e;)if(l.codePointAt(e)===47){if(n){t=e;break}}else n||(n=!0);return t<0?l.codePointAt(0)===47?"/":".":t===1&&l.codePointAt(0)===47?"//":l.slice(0,t)}function XF(l){X2(l);let t=l.length,e=-1,n=0,i=-1,s=0,a;for(;t--;){const o=l.codePointAt(t);if(o===47){if(a){n=t+1;break}continue}e<0&&(a=!0,e=t+1),o===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||e<0||s===0||s===1&&i===e-1&&i===n+1?"":l.slice(i,e)}function YF(...l){let t=-1,e;for(;++t<l.length;)X2(l[t]),l[t]&&(e=e===void 0?l[t]:e+"/"+l[t]);return e===void 0?".":TF(e)}function TF(l){X2(l);const t=l.codePointAt(0)===47;let e=VF(l,!t);return e.length===0&&!t&&(e="."),e.length>0&&l.codePointAt(l.length-1)===47&&(e+="/"),t?"/"+e:e}function VF(l,t){let e="",n=0,i=-1,s=0,a=-1,o,d;for(;++a<=l.length;){if(a<l.length)o=l.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(e.length<2||n!==2||e.codePointAt(e.length-1)!==46||e.codePointAt(e.length-2)!==46){if(e.length>2){if(d=e.lastIndexOf("/"),d!==e.length-1){d<0?(e="",n=0):(e=e.slice(0,d),n=e.length-1-e.lastIndexOf("/")),i=a,s=0;continue}}else if(e.length>0){e="",n=0,i=a,s=0;continue}}t&&(e=e.length>0?e+"/..":"..",n=2)}else e.length>0?e+="/"+l.slice(i+1,a):e=l.slice(i+1,a),n=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return e}function X2(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}const LF={cwd:IF};function IF(){return"/"}function lX(l){return!!(l!==null&&typeof l=="object"&&"href"in l&&l.href&&"protocol"in l&&l.protocol&&l.auth===void 0)}function zF(l){if(typeof l=="string")l=new URL(l);else if(!lX(l)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+l+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(l.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wF(l)}function wF(l){if(l.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=l.pathname;let e=-1;for(;++e<t.length;)if(t.codePointAt(e)===37&&t.codePointAt(e+1)===50){const n=t.codePointAt(e+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const QM=["history","path","basename","stem","extname","dirname"];class J9{constructor(t){let e;t?lX(t)?e={path:t}:typeof t=="string"||xF(t)?e={value:t}:e=t:e={},this.cwd="cwd"in e?"":LF.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<QM.length;){const s=QM[n];s in e&&e[s]!==void 0&&e[s]!==null&&(this[s]=s==="history"?[...e[s]]:e[s])}let i;for(i in e)QM.includes(i)||(this[i]=e[i])}get basename(){return typeof this.path=="string"?Cc.basename(this.path):void 0}set basename(t){AM(t,"basename"),BM(t,"basename"),this.path=Cc.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Cc.dirname(this.path):void 0}set dirname(t){zL(this.basename,"dirname"),this.path=Cc.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Cc.extname(this.path):void 0}set extname(t){if(BM(t,"extname"),zL(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Cc.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lX(t)&&(t=zF(t)),AM(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Cc.basename(this.path,this.extname):void 0}set stem(t){AM(t,"stem"),BM(t,"stem"),this.path=Cc.join(this.dirname||"",t+(this.extname||""))}fail(t,e,n){const i=this.message(t,e,n);throw i.fatal=!0,i}info(t,e,n){const i=this.message(t,e,n);return i.fatal=void 0,i}message(t,e,n){const i=new Hi(t,e,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function BM(l,t){if(l&&l.includes(Cc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Cc.sep+"`")}function AM(l,t){if(!l)throw new Error("`"+t+"` cannot be empty")}function zL(l,t){if(!l)throw new Error("Setting `"+t+"` requires `path` to be set too")}function xF(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const gF=function(l){const n=this.constructor.prototype,i=n[l],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,n),s},SF={}.hasOwnProperty;class i5 extends gF{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=NF()}copy(){const t=new i5;let e=-1;for(;++e<this.attachers.length;){const n=this.attachers[e];t.use(...n)}return t.data(HM(!0,{},this.namespace)),t}data(t,e){return typeof t=="string"?arguments.length===2?($M("data",this.frozen),this.namespace[t]=e,this):SF.call(this.namespace,t)&&this.namespace[t]||void 0:t?($M("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[e,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=e.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const e=Cy(t),n=this.parser||this.Parser;return _M("parse",n),n(String(e),e)}process(t,e){const n=this;return this.freeze(),_M("process",this.parser||this.Parser),qM("process",this.compiler||this.Compiler),e?i(void 0,e):new Promise(i);function i(s,a){const o=Cy(t),d=n.parse(o);n.run(d,o,function(m,Z,p){if(m||!Z||!p)return u(m);const y=Z,G=n.stringify(y,p);fF(G)?p.value=G:p.result=G,u(m,p)});function u(m,Z){m||!Z?a(m):s?s(Z):e(void 0,Z)}}}processSync(t){let e=!1,n;return this.freeze(),_M("processSync",this.parser||this.Parser),qM("processSync",this.compiler||this.Compiler),this.process(t,i),xL("processSync","process",e),n;function i(s,a){e=!0,LL(s),n=a}}run(t,e,n){wL(t),this.freeze();const i=this.transformers;return!n&&typeof e=="function"&&(n=e,e=void 0),n?s(void 0,n):new Promise(s);function s(a,o){const d=Cy(e);i.run(t,d,u);function u(m,Z,p){const y=Z||t;m?o(m):a?a(y):n(void 0,y,p)}}}runSync(t,e){let n=!1,i;return this.run(t,e,s),xL("runSync","run",n),i;function s(a,o){LL(a),i=o,n=!0}}stringify(t,e){this.freeze();const n=Cy(e),i=this.compiler||this.Compiler;return qM("stringify",i),wL(t),i(t,n)}use(t,...e){const n=this.attachers,i=this.namespace;if($M("use",this.frozen),t!=null)if(typeof t=="function")d(t,e);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")d(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[m,...Z]=u;d(m,Z)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=HM(!0,i.settings,u.settings))}function o(u){let m=-1;if(u!=null)if(Array.isArray(u))for(;++m<u.length;){const Z=u[m];s(Z)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function d(u,m){let Z=-1,p=-1;for(;++Z<n.length;)if(n[Z][0]===u){p=Z;break}if(p===-1)n.push([u,...m]);else if(m.length>0){let[y,...G]=m;const X=n[p][1];eX(X)&&eX(y)&&(y=HM(!0,X,y)),n[p]=[u,y,...G]}}}}const RF=new i5().freeze();function _M(l,t){if(typeof t!="function")throw new TypeError("Cannot `"+l+"` without `parser`")}function qM(l,t){if(typeof t!="function")throw new TypeError("Cannot `"+l+"` without `compiler`")}function $M(l,t){if(t)throw new Error("Cannot call `"+l+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wL(l){if(!eX(l)||typeof l.type!="string")throw new TypeError("Expected node, got `"+l+"`")}function xL(l,t,e){if(!e)throw new Error("`"+l+"` finished async. Use `"+t+"` instead")}function Cy(l){return kF(l)?l:new J9(l)}function kF(l){return!!(l&&typeof l=="object"&&"message"in l&&"messages"in l)}function fF(l){return typeof l=="string"||DF(l)}function DF(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const jF="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",gL=[],SL={allowDangerousHtml:!0},OF=/^(https?|ircs?|mailto|xmpp)$/i,CF=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function FF(l){const t=l.allowedElements,e=l.allowElement,n=l.children||"",i=l.className,s=l.components,a=l.disallowedElements,o=l.rehypePlugins||gL,d=l.remarkPlugins||gL,u=l.remarkRehypeOptions?{...l.remarkRehypeOptions,...SL}:SL,m=l.skipHtml,Z=l.unwrapDisallowed,p=l.urlTransform||JF,y=RF().use(XC).use(d).use(ZF,u).use(o),G=new J9;typeof n=="string"&&(G.value=n);for(const S of CF)Object.hasOwn(l,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+jF+S.id,void 0);const X=y.parse(G);let z=y.runSync(X,G);return i&&(z={type:"element",tagName:"div",properties:{className:i},children:z.type==="root"?z.children:[z]}),G2(z,L),ij(z,{Fragment:P.Fragment,components:s,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function L(S,R,J){if(S.type==="raw"&&J&&typeof R=="number")return m?J.children.splice(R,1):J.children[R]={type:"text",value:S.value},R;if(S.type==="element"){let U;for(U in EM)if(Object.hasOwn(EM,U)&&Object.hasOwn(S.properties,U)){const j=S.properties[U],Q=EM[U];(Q===null||Q.includes(S.tagName))&&(S.properties[U]=p(String(j||""),U,S))}}if(S.type==="element"){let U=t?!t.includes(S.tagName):a?a.includes(S.tagName):!1;if(!U&&e&&typeof R=="number"&&(U=!e(S,R,J)),U&&J&&typeof R=="number")return Z&&S.children?J.children.splice(R,1,...S.children):J.children.splice(R,1),R}}}function JF(l){const t=l.indexOf(":"),e=l.indexOf("?"),n=l.indexOf("#"),i=l.indexOf("/");return t===-1||i!==-1&&t>i||e!==-1&&t>e||n!==-1&&t>n||OF.test(l.slice(0,t))?l:""}function RL(l,t){const e=String(l);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=e.indexOf(t);for(;i!==-1;)n++,i=e.indexOf(t,i+t.length);return n}function UF(l){if(typeof l!="string")throw new TypeError("Expected a string");return l.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function U9(l,t,e){const i=M2((e||{}).ignore||[]),s=EF(t);let a=-1;for(;++a<s.length;)n5(l,"text",o);function o(u,m){let Z=-1,p;for(;++Z<m.length;){const y=m[Z],G=p?p.children:void 0;if(i(y,G?G.indexOf(y):void 0,p))return;p=y}if(p)return d(u,m)}function d(u,m){const Z=m[m.length-1],p=s[a][0],y=s[a][1];let G=0;const z=Z.children.indexOf(u);let L=!1,S=[];p.lastIndex=0;let R=p.exec(u.value);for(;R;){const J=R.index,U={index:R.index,input:R.input,stack:[...m,u]};let j=y(...R,U);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?p.lastIndex=J+1:(G!==J&&S.push({type:"text",value:u.value.slice(G,J)}),Array.isArray(j)?S.push(...j):j&&S.push(j),G=J+R[0].length,L=!0),!p.global)break;R=p.exec(u.value)}return L?(G<u.value.length&&S.push({type:"text",value:u.value.slice(G)}),Z.children.splice(z,1,...S)):S=[u],z+S.length}}function EF(l){const t=[];if(!Array.isArray(l))throw new TypeError("Expected find and replace tuple or list of tuples");const e=!l[0]||Array.isArray(l[0])?l:[l];let n=-1;for(;++n<e.length;){const i=e[n];t.push([vF(i[0]),KF(i[1])])}return t}function vF(l){return typeof l=="string"?new RegExp(UF(l),"g"):l}function KF(l){return typeof l=="function"?l:function(){return l}}const tG="phrasing",eG=["autolink","link","image","label"];function PF(){return{transforms:[$F],enter:{literalAutolink:QF,literalAutolinkEmail:lG,literalAutolinkHttp:lG,literalAutolinkWww:lG},exit:{literalAutolink:qF,literalAutolinkEmail:_F,literalAutolinkHttp:BF,literalAutolinkWww:AF}}}function HF(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:tG,notInConstruct:eG},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:tG,notInConstruct:eG},{character:":",before:"[ps]",after:"\\/",inConstruct:tG,notInConstruct:eG}]}}function QF(l){this.enter({type:"link",title:null,url:"",children:[]},l)}function lG(l){this.config.enter.autolinkProtocol.call(this,l)}function BF(l){this.config.exit.autolinkProtocol.call(this,l)}function AF(l){this.config.exit.data.call(this,l);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(l)}function _F(l){this.config.exit.autolinkEmail.call(this,l)}function qF(l){this.exit(l)}function $F(l){U9(l,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,tJ],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),eJ]],{ignore:["link","linkReference"]})}function tJ(l,t,e,n,i){let s="";if(!E9(i)||(/^w/i.test(t)&&(e=t+e,t="",s="http://"),!lJ(e)))return!1;const a=nJ(e+n);if(!a[0])return!1;const o={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function eJ(l,t,e,n){return!E9(n,!0)||/[-\d_]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+e,children:[{type:"text",value:t+"@"+e}]}}function lJ(l){const t=l.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function nJ(l){const t=/[!"&'),.:;<>?\]}]+$/.exec(l);if(!t)return[l,void 0];l=l.slice(0,t.index);let e=t[0],n=e.indexOf(")");const i=RL(l,"(");let s=RL(l,")");for(;n!==-1&&i>s;)l+=e.slice(0,n+1),e=e.slice(n+1),n=e.indexOf(")"),s++;return[l,e]}function E9(l,t){const e=l.input.charCodeAt(l.index-1);return(l.index===0||Hu(e)||PW(e))&&(!t||e!==47)}v9.peek=bJ;function iJ(){return{enter:{gfmFootnoteDefinition:aJ,gfmFootnoteDefinitionLabelString:cJ,gfmFootnoteCall:dJ,gfmFootnoteCallString:uJ},exit:{gfmFootnoteDefinition:rJ,gfmFootnoteDefinitionLabelString:oJ,gfmFootnoteCall:hJ,gfmFootnoteCallString:mJ}}}function sJ(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ZJ,footnoteReference:v9}}}function aJ(l){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},l)}function cJ(){this.buffer()}function oJ(l){const t=this.resume(),e=this.stack[this.stack.length-1];e.type,e.label=t,e.identifier=Nc(this.sliceSerialize(l)).toLowerCase()}function rJ(l){this.exit(l)}function dJ(l){this.enter({type:"footnoteReference",identifier:"",label:""},l)}function uJ(){this.buffer()}function mJ(l){const t=this.resume(),e=this.stack[this.stack.length-1];e.type,e.label=t,e.identifier=Nc(this.sliceSerialize(l)).toLowerCase()}function hJ(l){this.exit(l)}function v9(l,t,e,n){const i=e.createTracker(n);let s=i.move("[^");const a=e.enter("footnoteReference"),o=e.enter("reference");return s+=i.move(e.safe(e.associationId(l),{...i.current(),before:s,after:"]"})),o(),a(),s+=i.move("]"),s}function bJ(){return"["}function ZJ(l,t,e,n){const i=e.createTracker(n);let s=i.move("[^");const a=e.enter("footnoteDefinition"),o=e.enter("label");return s+=i.move(e.safe(e.associationId(l),{...i.current(),before:s,after:"]"})),o(),s+=i.move("]:"+(l.children&&l.children.length>0?" ":"")),i.shift(4),s+=i.move(e.indentLines(e.containerFlow(l,i.current()),pJ)),a(),s}function pJ(l,t,e){return t===0?l:(e?"":" ")+l}const yJ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];K9.peek=XJ;function NJ(){return{canContainEols:["delete"],enter:{strikethrough:MJ},exit:{strikethrough:GJ}}}function WJ(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:yJ}],handlers:{delete:K9}}}function MJ(l){this.enter({type:"delete",children:[]},l)}function GJ(l){this.exit(l)}function K9(l,t,e,n){const i=e.createTracker(n),s=e.enter("strikethrough");let a=i.move("~~");return a+=e.containerPhrasing(l,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function XJ(){return"~"}function YJ(l){return l.length}function TJ(l,t){const e=t||{},n=(e.align||[]).concat(),i=e.stringLength||YJ,s=[],a=[],o=[],d=[];let u=0,m=-1;for(;++m<l.length;){const X=[],z=[];let L=-1;for(l[m].length>u&&(u=l[m].length);++L<l[m].length;){const S=VJ(l[m][L]);if(e.alignDelimiters!==!1){const R=i(S);z[L]=R,(d[L]===void 0||R>d[L])&&(d[L]=R)}X.push(S)}a[m]=X,o[m]=z}let Z=-1;if(typeof n=="object"&&"length"in n)for(;++Z<u;)s[Z]=kL(n[Z]);else{const X=kL(n);for(;++Z<u;)s[Z]=X}Z=-1;const p=[],y=[];for(;++Z<u;){const X=s[Z];let z="",L="";X===99?(z=":",L=":"):X===108?z=":":X===114&&(L=":");let S=e.alignDelimiters===!1?1:Math.max(1,d[Z]-z.length-L.length);const R=z+"-".repeat(S)+L;e.alignDelimiters!==!1&&(S=z.length+S+L.length,S>d[Z]&&(d[Z]=S),y[Z]=S),p[Z]=R}a.splice(1,0,p),o.splice(1,0,y),m=-1;const G=[];for(;++m<a.length;){const X=a[m],z=o[m];Z=-1;const L=[];for(;++Z<u;){const S=X[Z]||"";let R="",J="";if(e.alignDelimiters!==!1){const U=d[Z]-(z[Z]||0),j=s[Z];j===114?R=" ".repeat(U):j===99?U%2?(R=" ".repeat(U/2+.5),J=" ".repeat(U/2-.5)):(R=" ".repeat(U/2),J=R):J=" ".repeat(U)}e.delimiterStart!==!1&&!Z&&L.push("|"),e.padding!==!1&&!(e.alignDelimiters===!1&&S==="")&&(e.delimiterStart!==!1||Z)&&L.push(" "),e.alignDelimiters!==!1&&L.push(R),L.push(S),e.alignDelimiters!==!1&&L.push(J),e.padding!==!1&&L.push(" "),(e.delimiterEnd!==!1||Z!==u-1)&&L.push("|")}G.push(e.delimiterEnd===!1?L.join("").replace(/ +$/,""):L.join(""))}return G.join(`
`)}function VJ(l){return l==null?"":String(l)}function kL(l){const t=typeof l=="string"?l.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function LJ(l,t,e,n){const i=e.enter("blockquote"),s=e.createTracker(n);s.move("> "),s.shift(2);const a=e.indentLines(e.containerFlow(l,s.current()),IJ);return i(),a}function IJ(l,t,e){return">"+(e?"":" ")+l}function zJ(l,t){return fL(l,t.inConstruct,!0)&&!fL(l,t.notInConstruct,!1)}function fL(l,t,e){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return e;let n=-1;for(;++n<t.length;)if(l.includes(t[n]))return!0;return!1}function DL(l,t,e,n){let i=-1;for(;++i<e.unsafe.length;)if(e.unsafe[i].character===`
`&&zJ(e.stack,e.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
`}function P9(l,t){const e=String(l);let n=e.indexOf(t),i=n,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++s>a&&(a=s):s=1,i=n+t.length,n=e.indexOf(t,i);return a}function wJ(l,t){return!!(t.options.fences===!1&&l.value&&!l.lang&&/[^ \r\n]/.test(l.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(l.value))}function xJ(l){const t=l.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function gJ(l,t,e,n){const i=xJ(e),s=l.value||"",a=i==="`"?"GraveAccent":"Tilde";if(wJ(l,e)){const Z=e.enter("codeIndented"),p=e.indentLines(s,SJ);return Z(),p}const o=e.createTracker(n),d=i.repeat(Math.max(P9(s,i)+1,3)),u=e.enter("codeFenced");let m=o.move(d);if(l.lang){const Z=e.enter(`codeFencedLang${a}`);m+=o.move(e.safe(l.lang,{before:m,after:" ",encode:["`"],...o.current()})),Z()}if(l.lang&&l.meta){const Z=e.enter(`codeFencedMeta${a}`);m+=o.move(" "),m+=o.move(e.safe(l.meta,{before:m,after:`
`,encode:["`"],...o.current()})),Z()}return m+=o.move(`
`),s&&(m+=o.move(s+`
`)),m+=o.move(d),u(),m}function SJ(l,t,e){return(e?"":" ")+l}function s5(l){const t=l.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function RJ(l,t,e,n){const i=s5(e),s=i==='"'?"Quote":"Apostrophe",a=e.enter("definition");let o=e.enter("label");const d=e.createTracker(n);let u=d.move("[");return u+=d.move(e.safe(e.associationId(l),{before:u,after:"]",...d.current()})),u+=d.move("]: "),o(),!l.url||/[\0- \u007F]/.test(l.url)?(o=e.enter("destinationLiteral"),u+=d.move("<"),u+=d.move(e.safe(l.url,{before:u,after:">",...d.current()})),u+=d.move(">")):(o=e.enter("destinationRaw"),u+=d.move(e.safe(l.url,{before:u,after:l.title?" ":`
`,...d.current()}))),o(),l.title&&(o=e.enter(`title${s}`),u+=d.move(" "+i),u+=d.move(e.safe(l.title,{before:u,after:i,...d.current()})),u+=d.move(i),o()),a(),u}function kJ(l){const t=l.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function fZ(l){return"&#x"+l.toString(16).toUpperCase()+";"}function lW(l,t,e){const n=hb(l),i=hb(t);return n===void 0?i===void 0?e==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}H9.peek=fJ;function H9(l,t,e,n){const i=kJ(e),s=e.enter("emphasis"),a=e.createTracker(n),o=a.move(i);let d=a.move(e.containerPhrasing(l,{after:i,before:o,...a.current()}));const u=d.charCodeAt(0),m=lW(n.before.charCodeAt(n.before.length-1),u,i);m.inside&&(d=fZ(u)+d.slice(1));const Z=d.charCodeAt(d.length-1),p=lW(n.after.charCodeAt(0),Z,i);p.inside&&(d=d.slice(0,-1)+fZ(Z));const y=a.move(i);return s(),e.attentionEncodeSurroundingInfo={after:p.outside,before:m.outside},o+d+y}function fJ(l,t,e){return e.options.emphasis||"*"}function DJ(l,t){let e=!1;return G2(l,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return e=!0,$G}),!!((!l.depth||l.depth<3)&&AY(l)&&(t.options.setext||e))}function jJ(l,t,e,n){const i=Math.max(Math.min(6,l.depth||1),1),s=e.createTracker(n);if(DJ(l,e)){const m=e.enter("headingSetext"),Z=e.enter("phrasing"),p=e.containerPhrasing(l,{...s.current(),before:`
`,after:`
`});return Z(),m(),p+`
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
`))+1))}const a="#".repeat(i),o=e.enter("headingAtx"),d=e.enter("phrasing");s.move(a+" ");let u=e.containerPhrasing(l,{before:"# ",after:`
`,...s.current()});return/^[\t ]/.test(u)&&(u=fZ(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,e.options.closeAtx&&(u+=" "+a),d(),o(),u}Q9.peek=OJ;function Q9(l){return l.value||""}function OJ(){return"<"}B9.peek=CJ;function B9(l,t,e,n){const i=s5(e),s=i==='"'?"Quote":"Apostrophe",a=e.enter("image");let o=e.enter("label");const d=e.createTracker(n);let u=d.move("![");return u+=d.move(e.safe(l.alt,{before:u,after:"]",...d.current()})),u+=d.move("]("),o(),!l.url&&l.title||/[\0- \u007F]/.test(l.url)?(o=e.enter("destinationLiteral"),u+=d.move("<"),u+=d.move(e.safe(l.url,{before:u,after:">",...d.current()})),u+=d.move(">")):(o=e.enter("destinationRaw"),u+=d.move(e.safe(l.url,{before:u,after:l.title?" ":")",...d.current()}))),o(),l.title&&(o=e.enter(`title${s}`),u+=d.move(" "+i),u+=d.move(e.safe(l.title,{before:u,after:i,...d.current()})),u+=d.move(i),o()),u+=d.move(")"),a(),u}function CJ(){return"!"}A9.peek=FJ;function A9(l,t,e,n){const i=l.referenceType,s=e.enter("imageReference");let a=e.enter("label");const o=e.createTracker(n);let d=o.move("![");const u=e.safe(l.alt,{before:d,after:"]",...o.current()});d+=o.move(u+"]["),a();const m=e.stack;e.stack=[],a=e.enter("reference");const Z=e.safe(e.associationId(l),{before:d,after:"]",...o.current()});return a(),e.stack=m,s(),i==="full"||!u||u!==Z?d+=o.move(Z+"]"):i==="shortcut"?d=d.slice(0,-1):d+=o.move("]"),d}function FJ(){return"!"}_9.peek=JJ;function _9(l,t,e){let n=l.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++s<e.unsafe.length;){const a=e.unsafe[s],o=e.compilePattern(a);let d;if(a.atBreak)for(;d=o.exec(n);){let u=d.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(d.index+1)}}return i+n+i}function JJ(){return"`"}function q9(l,t){const e=AY(l);return!!(!t.options.resourceLink&&l.url&&!l.title&&l.children&&l.children.length===1&&l.children[0].type==="text"&&(e===l.url||"mailto:"+e===l.url)&&/^[a-z][a-z+.-]+:/i.test(l.url)&&!/[\0- <>\u007F]/.test(l.url))}$9.peek=UJ;function $9(l,t,e,n){const i=s5(e),s=i==='"'?"Quote":"Apostrophe",a=e.createTracker(n);let o,d;if(q9(l,e)){const m=e.stack;e.stack=[],o=e.enter("autolink");let Z=a.move("<");return Z+=a.move(e.containerPhrasing(l,{before:Z,after:">",...a.current()})),Z+=a.move(">"),o(),e.stack=m,Z}o=e.enter("link"),d=e.enter("label");let u=a.move("[");return u+=a.move(e.containerPhrasing(l,{before:u,after:"](",...a.current()})),u+=a.move("]("),d(),!l.url&&l.title||/[\0- \u007F]/.test(l.url)?(d=e.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(e.safe(l.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(d=e.enter("destinationRaw"),u+=a.move(e.safe(l.url,{before:u,after:l.title?" ":")",...a.current()}))),d(),l.title&&(d=e.enter(`title${s}`),u+=a.move(" "+i),u+=a.move(e.safe(l.title,{before:u,after:i,...a.current()})),u+=a.move(i),d()),u+=a.move(")"),o(),u}function UJ(l,t,e){return q9(l,e)?"<":"["}tw.peek=EJ;function tw(l,t,e,n){const i=l.referenceType,s=e.enter("linkReference");let a=e.enter("label");const o=e.createTracker(n);let d=o.move("[");const u=e.containerPhrasing(l,{before:d,after:"]",...o.current()});d+=o.move(u+"]["),a();const m=e.stack;e.stack=[],a=e.enter("reference");const Z=e.safe(e.associationId(l),{before:d,after:"]",...o.current()});return a(),e.stack=m,s(),i==="full"||!u||u!==Z?d+=o.move(Z+"]"):i==="shortcut"?d=d.slice(0,-1):d+=o.move("]"),d}function EJ(){return"["}function a5(l){const t=l.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function vJ(l){const t=a5(l),e=l.options.bulletOther;if(!e)return t==="*"?"-":"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(e===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+e+"`) to be different");return e}function KJ(l){const t=l.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ew(l){const t=l.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function PJ(l,t,e,n){const i=e.enter("list"),s=e.bulletCurrent;let a=l.ordered?KJ(e):a5(e);const o=l.ordered?a==="."?")":".":vJ(e);let d=t&&e.bulletLastUsed?a===e.bulletLastUsed:!1;if(!l.ordered){const m=l.children?l.children[0]:void 0;if((a==="*"||a==="-")&&m&&(!m.children||!m.children[0])&&e.stack[e.stack.length-1]==="list"&&e.stack[e.stack.length-2]==="listItem"&&e.stack[e.stack.length-3]==="list"&&e.stack[e.stack.length-4]==="listItem"&&e.indexStack[e.indexStack.length-1]===0&&e.indexStack[e.indexStack.length-2]===0&&e.indexStack[e.indexStack.length-3]===0&&(d=!0),ew(e)===a&&m){let Z=-1;for(;++Z<l.children.length;){const p=l.children[Z];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(a=o),e.bulletCurrent=a;const u=e.containerFlow(l,n);return e.bulletLastUsed=a,e.bulletCurrent=s,i(),u}function HJ(l){const t=l.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function QJ(l,t,e,n){const i=HJ(e);let s=e.bulletCurrent||a5(e);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(e.options.incrementListMarker===!1?0:t.children.indexOf(l))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||l.spread))&&(a=Math.ceil(a/4)*4);const o=e.createTracker(n);o.move(s+" ".repeat(a-s.length)),o.shift(a);const d=e.enter("listItem"),u=e.indentLines(e.containerFlow(l,o.current()),m);return d(),u;function m(Z,p,y){return p?(y?"":" ".repeat(a))+Z:(y?s:s+" ".repeat(a-s.length))+Z}}function BJ(l,t,e,n){const i=e.enter("paragraph"),s=e.enter("phrasing"),a=e.containerPhrasing(l,n);return s(),i(),a}const AJ=M2(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _J(l,t,e,n){return(l.children.some(function(a){return AJ(a)})?e.containerPhrasing:e.containerFlow).call(e,l,n)}function qJ(l){const t=l.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}lw.peek=$J;function lw(l,t,e,n){const i=qJ(e),s=e.enter("strong"),a=e.createTracker(n),o=a.move(i+i);let d=a.move(e.containerPhrasing(l,{after:i,before:o,...a.current()}));const u=d.charCodeAt(0),m=lW(n.before.charCodeAt(n.before.length-1),u,i);m.inside&&(d=fZ(u)+d.slice(1));const Z=d.charCodeAt(d.length-1),p=lW(n.after.charCodeAt(0),Z,i);p.inside&&(d=d.slice(0,-1)+fZ(Z));const y=a.move(i+i);return s(),e.attentionEncodeSurroundingInfo={after:p.outside,before:m.outside},o+d+y}function $J(l,t,e){return e.options.strong||"*"}function tU(l,t,e,n){return e.safe(l.value,n)}function eU(l){const t=l.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function lU(l,t,e){const n=(ew(e)+(e.options.ruleSpaces?" ":"")).repeat(eU(e));return e.options.ruleSpaces?n.slice(0,-1):n}const nw={blockquote:LJ,break:DL,code:gJ,definition:RJ,emphasis:H9,hardBreak:DL,heading:jJ,html:Q9,image:B9,imageReference:A9,inlineCode:_9,link:$9,linkReference:tw,list:PJ,listItem:QJ,paragraph:BJ,root:_J,strong:lw,text:tU,thematicBreak:lU};function nU(){return{enter:{table:iU,tableData:jL,tableHeader:jL,tableRow:aU},exit:{codeText:cU,table:sU,tableData:nG,tableHeader:nG,tableRow:nG}}}function iU(l){const t=l._align;this.enter({type:"table",align:t.map(function(e){return e==="none"?null:e}),children:[]},l),this.data.inTable=!0}function sU(l){this.exit(l),this.data.inTable=void 0}function aU(l){this.enter({type:"tableRow",children:[]},l)}function nG(l){this.exit(l)}function jL(l){this.enter({type:"tableCell",children:[]},l)}function cU(l){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,oU));const e=this.stack[this.stack.length-1];e.type,e.value=t,this.exit(l)}function oU(l,t){return t==="|"?t:l}function rU(l){const t=l||{},e=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,s=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:d,tableRow:o}};function a(y,G,X,z){return u(m(y,X,z),y.align)}function o(y,G,X,z){const L=Z(y,X,z),S=u([L]);return S.slice(0,S.indexOf(`
`))}function d(y,G,X,z){const L=X.enter("tableCell"),S=X.enter("phrasing"),R=X.containerPhrasing(y,{...z,before:s,after:s});return S(),L(),R}function u(y,G){return TJ(y,{align:G,alignDelimiters:n,padding:e,stringLength:i})}function m(y,G,X){const z=y.children;let L=-1;const S=[],R=G.enter("table");for(;++L<z.length;)S[L]=Z(z[L],G,X);return R(),S}function Z(y,G,X){const z=y.children;let L=-1;const S=[],R=G.enter("tableRow");for(;++L<z.length;)S[L]=d(z[L],y,G,X);return R(),S}function p(y,G,X){let z=nw.inlineCode(y,G,X);return X.stack.includes("tableCell")&&(z=z.replace(/\|/g,"\\$&")),z}}function dU(){return{exit:{taskListCheckValueChecked:OL,taskListCheckValueUnchecked:OL,paragraph:mU}}}function uU(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hU}}}function OL(l){const t=this.stack[this.stack.length-2];t.type,t.checked=l.type==="taskListCheckValueChecked"}function mU(l){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&n.type==="text"){const i=t.children;let s=-1,a;for(;++s<i.length;){const o=i[s];if(o.type==="paragraph"){a=o;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(l)}function hU(l,t,e,n){const i=l.children[0],s=typeof l.checked=="boolean"&&i&&i.type==="paragraph",a="["+(l.checked?"x":" ")+"] ",o=e.createTracker(n);s&&o.move(a);let d=nw.listItem(l,t,e,{...n,...o.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),d;function u(m){return m+a}}function bU(){return[PF(),iJ(),NJ(),nU(),dU()]}function ZU(l){return{extensions:[HF(),sJ(),WJ(),rU(l),uU()]}}const pU={tokenize:XU,partial:!0},iw={tokenize:YU,partial:!0},sw={tokenize:TU,partial:!0},aw={tokenize:VU,partial:!0},yU={tokenize:LU,partial:!0},cw={name:"wwwAutolink",tokenize:MU,previous:rw},ow={name:"protocolAutolink",tokenize:GU,previous:dw},Vr={name:"emailAutolink",tokenize:WU,previous:uw},oo={};function NU(){return{text:oo}}let g0=48;for(;g0<123;)oo[g0]=Vr,g0++,g0===58?g0=65:g0===91&&(g0=97);oo[43]=Vr;oo[45]=Vr;oo[46]=Vr;oo[95]=Vr;oo[72]=[Vr,ow];oo[104]=[Vr,ow];oo[87]=[Vr,cw];oo[119]=[Vr,cw];function WU(l,t,e){const n=this;let i,s;return a;function a(Z){return!nX(Z)||!uw.call(n,n.previous)||c5(n.events)?e(Z):(l.enter("literalAutolink"),l.enter("literalAutolinkEmail"),o(Z))}function o(Z){return nX(Z)?(l.consume(Z),o):Z===64?(l.consume(Z),d):e(Z)}function d(Z){return Z===46?l.check(yU,m,u)(Z):Z===45||Z===95||Pi(Z)?(s=!0,l.consume(Z),d):m(Z)}function u(Z){return l.consume(Z),i=!0,d}function m(Z){return s&&i&&us(n.previous)?(l.exit("literalAutolinkEmail"),l.exit("literalAutolink"),t(Z)):e(Z)}}function MU(l,t,e){const n=this;return i;function i(a){return a!==87&&a!==119||!rw.call(n,n.previous)||c5(n.events)?e(a):(l.enter("literalAutolink"),l.enter("literalAutolinkWww"),l.check(pU,l.attempt(iw,l.attempt(sw,s),e),e)(a))}function s(a){return l.exit("literalAutolinkWww"),l.exit("literalAutolink"),t(a)}}function GU(l,t,e){const n=this;let i="",s=!1;return a;function a(Z){return(Z===72||Z===104)&&dw.call(n,n.previous)&&!c5(n.events)?(l.enter("literalAutolink"),l.enter("literalAutolinkHttp"),i+=String.fromCodePoint(Z),l.consume(Z),o):e(Z)}function o(Z){if(us(Z)&&i.length<5)return i+=String.fromCodePoint(Z),l.consume(Z),o;if(Z===58){const p=i.toLowerCase();if(p==="http"||p==="https")return l.consume(Z),d}return e(Z)}function d(Z){return Z===47?(l.consume(Z),s?u:(s=!0,d)):e(Z)}function u(Z){return Z===null||$N(Z)||vl(Z)||Hu(Z)||PW(Z)?e(Z):l.attempt(iw,l.attempt(sw,m),e)(Z)}function m(Z){return l.exit("literalAutolinkHttp"),l.exit("literalAutolink"),t(Z)}}function XU(l,t,e){let n=0;return i;function i(a){return(a===87||a===119)&&n<3?(n++,l.consume(a),i):a===46&&n===3?(l.consume(a),s):e(a)}function s(a){return a===null?e(a):t(a)}}function YU(l,t,e){let n,i,s;return a;function a(u){return u===46||u===95?l.check(aw,d,o)(u):u===null||vl(u)||Hu(u)||u!==45&&PW(u)?d(u):(s=!0,l.consume(u),a)}function o(u){return u===95?n=!0:(i=n,n=void 0),l.consume(u),a}function d(u){return i||n||!s?e(u):t(u)}}function TU(l,t){let e=0,n=0;return i;function i(a){return a===40?(e++,l.consume(a),i):a===41&&n<e?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?l.check(aw,t,s)(a):a===null||vl(a)||Hu(a)?t(a):(l.consume(a),i)}function s(a){return a===41&&n++,l.consume(a),i}}function VU(l,t,e){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(l.consume(o),n):o===38?(l.consume(o),s):o===93?(l.consume(o),i):o===60||o===null||vl(o)||Hu(o)?t(o):e(o)}function i(o){return o===null||o===40||o===91||vl(o)||Hu(o)?t(o):n(o)}function s(o){return us(o)?a(o):e(o)}function a(o){return o===59?(l.consume(o),n):us(o)?(l.consume(o),a):e(o)}}function LU(l,t,e){return n;function n(s){return l.consume(s),i}function i(s){return Pi(s)?e(s):t(s)}}function rw(l){return l===null||l===40||l===42||l===95||l===91||l===93||l===126||vl(l)}function dw(l){return!us(l)}function uw(l){return!(l===47||nX(l))}function nX(l){return l===43||l===45||l===46||l===95||Pi(l)}function c5(l){let t=l.length,e=!1;for(;t--;){const n=l[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){e=!0;break}if(n._gfmAutolinkLiteralWalkedInto){e=!1;break}}return l.length>0&&!e&&(l[l.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}const IU={tokenize:fU,partial:!0};function zU(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:SU,continuation:{tokenize:RU},exit:kU}},text:{91:{name:"gfmFootnoteCall",tokenize:gU},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:wU,resolveTo:xU}}}}function wU(l,t,e){const n=this;let i=n.events.length;const s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const d=n.events[i][1];if(d.type==="labelImage"){a=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return o;function o(d){if(!a||!a._balanced)return e(d);const u=Nc(n.sliceSerialize({start:a.end,end:n.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?e(d):(l.enter("gfmFootnoteCallLabelMarker"),l.consume(d),l.exit("gfmFootnoteCallLabelMarker"),t(d))}}function xU(l,t){let e=l.length;for(;e--;)if(l[e][1].type==="labelImage"&&l[e][0]==="enter"){l[e][1];break}l[e+1][1].type="data",l[e+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},l[e+3][1].start),end:Object.assign({},l[l.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},l[e+3][1].end),end:Object.assign({},l[e+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},l[l.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[l[e+1],l[e+2],["enter",n,t],l[e+3],l[e+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],l[l.length-2],l[l.length-1],["exit",n,t]];return l.splice(e,l.length-e+1,...o),l}function gU(l,t,e){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s=0,a;return o;function o(Z){return l.enter("gfmFootnoteCall"),l.enter("gfmFootnoteCallLabelMarker"),l.consume(Z),l.exit("gfmFootnoteCallLabelMarker"),d}function d(Z){return Z!==94?e(Z):(l.enter("gfmFootnoteCallMarker"),l.consume(Z),l.exit("gfmFootnoteCallMarker"),l.enter("gfmFootnoteCallString"),l.enter("chunkString").contentType="string",u)}function u(Z){if(s>999||Z===93&&!a||Z===null||Z===91||vl(Z))return e(Z);if(Z===93){l.exit("chunkString");const p=l.exit("gfmFootnoteCallString");return i.includes(Nc(n.sliceSerialize(p)))?(l.enter("gfmFootnoteCallLabelMarker"),l.consume(Z),l.exit("gfmFootnoteCallLabelMarker"),l.exit("gfmFootnoteCall"),t):e(Z)}return vl(Z)||(a=!0),s++,l.consume(Z),Z===92?m:u}function m(Z){return Z===91||Z===92||Z===93?(l.consume(Z),s++,u):u(Z)}}function SU(l,t,e){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s,a=0,o;return d;function d(G){return l.enter("gfmFootnoteDefinition")._container=!0,l.enter("gfmFootnoteDefinitionLabel"),l.enter("gfmFootnoteDefinitionLabelMarker"),l.consume(G),l.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(G){return G===94?(l.enter("gfmFootnoteDefinitionMarker"),l.consume(G),l.exit("gfmFootnoteDefinitionMarker"),l.enter("gfmFootnoteDefinitionLabelString"),l.enter("chunkString").contentType="string",m):e(G)}function m(G){if(a>999||G===93&&!o||G===null||G===91||vl(G))return e(G);if(G===93){l.exit("chunkString");const X=l.exit("gfmFootnoteDefinitionLabelString");return s=Nc(n.sliceSerialize(X)),l.enter("gfmFootnoteDefinitionLabelMarker"),l.consume(G),l.exit("gfmFootnoteDefinitionLabelMarker"),l.exit("gfmFootnoteDefinitionLabel"),p}return vl(G)||(o=!0),a++,l.consume(G),G===92?Z:m}function Z(G){return G===91||G===92||G===93?(l.consume(G),a++,m):m(G)}function p(G){return G===58?(l.enter("definitionMarker"),l.consume(G),l.exit("definitionMarker"),i.includes(s)||i.push(s),bl(l,y,"gfmFootnoteDefinitionWhitespace")):e(G)}function y(G){return t(G)}}function RU(l,t,e){return l.check(W2,t,l.attempt(IU,t,e))}function kU(l){l.exit("gfmFootnoteDefinition")}function fU(l,t,e){const n=this;return bl(l,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):e(s)}}function DU(l){let e=(l||{}).singleTilde;const n={name:"strikethrough",tokenize:s,resolveAll:i};return e==null&&(e=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(a,o){let d=-1;for(;++d<a.length;)if(a[d][0]==="enter"&&a[d][1].type==="strikethroughSequenceTemporary"&&a[d][1]._close){let u=d;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[d][1].end.offset-a[d][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[d][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[d][1].end)},Z={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[d][1].start)},p=[["enter",m,o],["enter",a[u][1],o],["exit",a[u][1],o],["enter",Z,o]],y=o.parser.constructs.insideSpan.null;y&&ma(p,p.length,0,HW(y,a.slice(u+1,d),o)),ma(p,p.length,0,[["exit",Z,o],["enter",a[d][1],o],["exit",a[d][1],o],["exit",m,o]]),ma(a,u-1,d-u+3,p),d=u+p.length-2;break}}for(d=-1;++d<a.length;)a[d][1].type==="strikethroughSequenceTemporary"&&(a[d][1].type="data");return a}function s(a,o,d){const u=this.previous,m=this.events;let Z=0;return p;function p(G){return u===126&&m[m.length-1][1].type!=="characterEscape"?d(G):(a.enter("strikethroughSequenceTemporary"),y(G))}function y(G){const X=hb(u);if(G===126)return Z>1?d(G):(a.consume(G),Z++,y);if(Z<2&&!e)return d(G);const z=a.exit("strikethroughSequenceTemporary"),L=hb(G);return z._open=!L||L===2&&!!X,z._close=!X||X===2&&!!L,o(G)}}}class jU{constructor(){this.map=[]}add(t,e,n){OU(this,t,e,n)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let e=this.map.length;const n=[];for(;e>0;)e-=1,n.push(t.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),t.length=this.map[e][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const s of i)t.push(s);i=n.pop()}this.map.length=0}}function OU(l,t,e,n){let i=0;if(!(e===0&&n.length===0)){for(;i<l.map.length;){if(l.map[i][0]===t){l.map[i][1]+=e,l.map[i][2].push(...n);return}i+=1}l.map.push([t,e,n])}}function CU(l,t){let e=!1;const n=[];for(;t<l.length;){const i=l[t];if(e){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(l[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(l[t-1][1].type==="tableDelimiterMarker"){const s=n.length-1;n[s]=n[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(e=!0);t+=1}return n}function FU(){return{flow:{null:{name:"table",tokenize:JU,resolveAll:UU}}}}function JU(l,t,e){const n=this;let i=0,s=0,a;return o;function o(_){let Wt=n.events.length-1;for(;Wt>-1;){const Zt=n.events[Wt][1].type;if(Zt==="lineEnding"||Zt==="linePrefix")Wt--;else break}const ht=Wt>-1?n.events[Wt][1].type:null,Tt=ht==="tableHead"||ht==="tableRow"?j:d;return Tt===j&&n.parser.lazy[n.now().line]?e(_):Tt(_)}function d(_){return l.enter("tableHead"),l.enter("tableRow"),u(_)}function u(_){return _===124||(a=!0,s+=1),m(_)}function m(_){return _===null?e(_):De(_)?s>1?(s=0,n.interrupt=!0,l.exit("tableRow"),l.enter("lineEnding"),l.consume(_),l.exit("lineEnding"),y):e(_):pl(_)?bl(l,m,"whitespace")(_):(s+=1,a&&(a=!1,i+=1),_===124?(l.enter("tableCellDivider"),l.consume(_),l.exit("tableCellDivider"),a=!0,m):(l.enter("data"),Z(_)))}function Z(_){return _===null||_===124||vl(_)?(l.exit("data"),m(_)):(l.consume(_),_===92?p:Z)}function p(_){return _===92||_===124?(l.consume(_),Z):Z(_)}function y(_){return n.interrupt=!1,n.parser.lazy[n.now().line]?e(_):(l.enter("tableDelimiterRow"),a=!1,pl(_)?bl(l,G,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):G(_))}function G(_){return _===45||_===58?z(_):_===124?(a=!0,l.enter("tableCellDivider"),l.consume(_),l.exit("tableCellDivider"),X):U(_)}function X(_){return pl(_)?bl(l,z,"whitespace")(_):z(_)}function z(_){return _===58?(s+=1,a=!0,l.enter("tableDelimiterMarker"),l.consume(_),l.exit("tableDelimiterMarker"),L):_===45?(s+=1,L(_)):_===null||De(_)?J(_):U(_)}function L(_){return _===45?(l.enter("tableDelimiterFiller"),S(_)):U(_)}function S(_){return _===45?(l.consume(_),S):_===58?(a=!0,l.exit("tableDelimiterFiller"),l.enter("tableDelimiterMarker"),l.consume(_),l.exit("tableDelimiterMarker"),R):(l.exit("tableDelimiterFiller"),R(_))}function R(_){return pl(_)?bl(l,J,"whitespace")(_):J(_)}function J(_){return _===124?G(_):_===null||De(_)?!a||i!==s?U(_):(l.exit("tableDelimiterRow"),l.exit("tableHead"),t(_)):U(_)}function U(_){return e(_)}function j(_){return l.enter("tableRow"),Q(_)}function Q(_){return _===124?(l.enter("tableCellDivider"),l.consume(_),l.exit("tableCellDivider"),Q):_===null||De(_)?(l.exit("tableRow"),t(_)):pl(_)?bl(l,Q,"whitespace")(_):(l.enter("data"),it(_))}function it(_){return _===null||_===124||vl(_)?(l.exit("data"),Q(_)):(l.consume(_),_===92?at:it)}function at(_){return _===92||_===124?(l.consume(_),it):it(_)}}function UU(l,t){let e=-1,n=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],o=!1,d=0,u,m,Z;const p=new jU;for(;++e<l.length;){const y=l[e],G=y[1];y[0]==="enter"?G.type==="tableHead"?(o=!1,d!==0&&(CL(p,t,d,u,m),m=void 0,d=0),u={type:"table",start:Object.assign({},G.start),end:Object.assign({},G.end)},p.add(e,0,[["enter",u,t]])):G.type==="tableRow"||G.type==="tableDelimiterRow"?(n=!0,Z=void 0,s=[0,0,0,0],a=[0,e+1,0,0],o&&(o=!1,m={type:"tableBody",start:Object.assign({},G.start),end:Object.assign({},G.end)},p.add(e,0,[["enter",m,t]])),i=G.type==="tableDelimiterRow"?2:m?3:1):i&&(G.type==="data"||G.type==="tableDelimiterMarker"||G.type==="tableDelimiterFiller")?(n=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],Z=Fy(p,t,s,i,void 0,Z),s=[0,0,0,0]),a[2]=e)):G.type==="tableCellDivider"&&(n?n=!1:(s[1]!==0&&(a[0]=a[1],Z=Fy(p,t,s,i,void 0,Z)),s=a,a=[s[1],e,0,0])):G.type==="tableHead"?(o=!0,d=e):G.type==="tableRow"||G.type==="tableDelimiterRow"?(d=e,s[1]!==0?(a[0]=a[1],Z=Fy(p,t,s,i,e,Z)):a[1]!==0&&(Z=Fy(p,t,a,i,e,Z)),i=0):i&&(G.type==="data"||G.type==="tableDelimiterMarker"||G.type==="tableDelimiterFiller")&&(a[3]=e)}for(d!==0&&CL(p,t,d,u,m),p.consume(t.events),e=-1;++e<t.events.length;){const y=t.events[e];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=CU(t.events,e))}return l}function Fy(l,t,e,n,i,s){const a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";e[0]!==0&&(s.end=Object.assign({},Jm(t.events,e[0])),l.add(e[0],0,[["exit",s,t]]));const d=Jm(t.events,e[1]);if(s={type:a,start:Object.assign({},d),end:Object.assign({},d)},l.add(e[1],0,[["enter",s,t]]),e[2]!==0){const u=Jm(t.events,e[2]),m=Jm(t.events,e[3]),Z={type:o,start:Object.assign({},u),end:Object.assign({},m)};if(l.add(e[2],0,[["enter",Z,t]]),n!==2){const p=t.events[e[2]],y=t.events[e[3]];if(p[1].end=Object.assign({},y[1].end),p[1].type="chunkText",p[1].contentType="text",e[3]>e[2]+1){const G=e[2]+1,X=e[3]-e[2]-1;l.add(G,X,[])}}l.add(e[3]+1,0,[["exit",Z,t]])}return i!==void 0&&(s.end=Object.assign({},Jm(t.events,i)),l.add(i,0,[["exit",s,t]]),s=void 0),s}function CL(l,t,e,n,i){const s=[],a=Jm(t.events,e);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),n.end=Object.assign({},a),s.push(["exit",n,t]),l.add(e+1,0,s)}function Jm(l,t){const e=l[t],n=e[0]==="enter"?"start":"end";return e[1][n]}const EU={name:"tasklistCheck",tokenize:KU};function vU(){return{text:{91:EU}}}function KU(l,t,e){const n=this;return i;function i(d){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(d):(l.enter("taskListCheck"),l.enter("taskListCheckMarker"),l.consume(d),l.exit("taskListCheckMarker"),s)}function s(d){return vl(d)?(l.enter("taskListCheckValueUnchecked"),l.consume(d),l.exit("taskListCheckValueUnchecked"),a):d===88||d===120?(l.enter("taskListCheckValueChecked"),l.consume(d),l.exit("taskListCheckValueChecked"),a):e(d)}function a(d){return d===93?(l.enter("taskListCheckMarker"),l.consume(d),l.exit("taskListCheckMarker"),l.exit("taskListCheck"),o):e(d)}function o(d){return De(d)?t(d):pl(d)?l.check({tokenize:PU},t,e)(d):e(d)}}function PU(l,t,e){return bl(l,n,"whitespace");function n(i){return i===null?e(i):t(i)}}function HU(l){return G9([NU(),zU(),DU(l),FU(),vU()])}const QU={};function BU(l){const t=this,e=l||QU,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(HU(e)),s.push(bU()),a.push(ZU(e))}const FL=function(l,t,e){const n=M2(e);if(!l||!l.type||!l.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=l.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<l.children.length;)if(n(l.children[t],t,l))return l.children[t]},lm=function(l){if(l==null)return qU;if(typeof l=="string")return _U(l);if(typeof l=="object")return AU(l);if(typeof l=="function")return o5(l);throw new Error("Expected function, string, or array as `test`")};function AU(l){const t=[];let e=-1;for(;++e<l.length;)t[e]=lm(l[e]);return o5(n);function n(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function _U(l){return o5(t);function t(e){return e.tagName===l}}function o5(l){return t;function t(e,n,i){return!!($U(e)&&l.call(this,e,typeof n=="number"?n:void 0,i||void 0))}}function qU(l){return!!(l&&typeof l=="object"&&"type"in l&&l.type==="element"&&"tagName"in l&&typeof l.tagName=="string")}function $U(l){return l!==null&&typeof l=="object"&&"type"in l&&"tagName"in l}const JL=/\n/g,UL=/[\t ]+/g,iX=lm("br"),EL=lm(aE),tE=lm("p"),vL=lm("tr"),eE=lm(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",sE,cE]),mw=lm(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function hw(l,t){const e=t||{},n="children"in l?l.children:[],i=mw(l),s=pw(l,{whitespace:e.whitespace||"normal"}),a=[];(l.type==="text"||l.type==="comment")&&a.push(...Zw(l,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)a.push(...bw(n[o],l,{whitespace:s,breakBefore:o?void 0:i,breakAfter:o<n.length-1?iX(n[o+1]):i}));const d=[];let u;for(o=-1;++o<a.length;){const m=a[o];typeof m=="number"?u!==void 0&&m>u&&(u=m):m&&(u!==void 0&&u>-1&&d.push(`
`.repeat(u)||" "),u=-1,d.push(m))}return d.join("")}function bw(l,t,e){return l.type==="element"?lE(l,t,e):l.type==="text"?e.whitespace==="normal"?Zw(l,e):nE(l):[]}function lE(l,t,e){const n=pw(l,e),i=l.children||[];let s=-1,a=[];if(eE(l))return a;let o,d;for(iX(l)||vL(l)&&FL(t,l,vL)?d=`
`:tE(l)?(o=2,d=2):mw(l)&&(o=1,d=1);++s<i.length;)a=a.concat(bw(i[s],l,{whitespace:n,breakBefore:s?void 0:o,breakAfter:s<i.length-1?iX(i[s+1]):d}));return EL(l)&&FL(t,l,EL)&&a.push(" "),o&&a.unshift(o),d&&a.push(d),a}function Zw(l,t){const e=String(l.value),n=[],i=[];let s=0;for(;s<=e.length;){JL.lastIndex=s;const d=JL.exec(e),u=d&&"index"in d?d.index:e.length;n.push(iE(e.slice(s,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,u===e.length?t.breakAfter:!0)),s=u+1}let a=-1,o;for(;++a<n.length;)n[a].charCodeAt(n[a].length-1)===8203||a<n.length-1&&n[a+1].charCodeAt(0)===8203?(i.push(n[a]),o=void 0):n[a]?(typeof o=="number"&&i.push(o),i.push(n[a]),o=0):(a===0||a===n.length-1)&&i.push(0);return i}function nE(l){return[String(l.value)]}function iE(l,t,e){const n=[];let i=0,s;for(;i<l.length;){UL.lastIndex=i;const a=UL.exec(l);s=a?a.index:l.length,!i&&!s&&a&&!t&&n.push(""),i!==s&&n.push(l.slice(i,s)),i=a?s+a[0].length:s}return i!==s&&!e&&n.push(""),n.join(" ")}function pw(l,t){if(l.type==="element"){const e=l.properties||{};switch(l.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.wrap?"pre-wrap":"pre";case"td":case"th":return e.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function sE(l){return!!(l.properties||{}).hidden}function aE(l){return l.tagName==="td"||l.tagName==="th"}function cE(l){return l.tagName==="dialog"&&!(l.properties||{}).open}function oE(l){const t=l.regex,e=l.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[l.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},l.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},Z={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},l.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},e,l.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+l.IDENT_RE,relevance:0},y=t.optional(i)+l.IDENT_RE+"\\s*\\(",G=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],X=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],z=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],L=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],J={type:X,keyword:G,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:z},U={className:"function.dispatch",relevance:0,keywords:{_hint:L},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,l.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},j=[U,Z,o,e,l.C_BLOCK_COMMENT_MODE,m,u],Q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:J,contains:j.concat([{begin:/\(/,end:/\)/,keywords:J,contains:j.concat(["self"]),relevance:0}]),relevance:0},it={className:"function",begin:"("+a+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:J,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:J,relevance:0},{begin:y,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:[e,l.C_BLOCK_COMMENT_MODE,u,m,o,{begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:["self",e,l.C_BLOCK_COMMENT_MODE,u,m,o]}]},o,e,l.C_BLOCK_COMMENT_MODE,Z]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:J,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(Q,it,U,j,[Z,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:J,contains:["self",o]},{begin:l.IDENT_RE+"::",keywords:J},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function rE(l){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},e=oE(l),n=e.keywords;return n.type=[...n.type,...t.type],n.literal=[...n.literal,...t.literal],n.built_in=[...n.built_in,...t.built_in],n._hints=t._hints,e.name="Arduino",e.aliases=["ino"],e.supersetOf="cpp",e}function dE(l){const t=l.regex,e={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[e]}]};Object.assign(e,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[l.BACKSLASH_ESCAPE]},s=l.inherit(l.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[l.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[l.BACKSLASH_ESCAPE,e,i]};i.contains.push(o);const d={match:/\\"/},u={className:"string",begin:/'/,end:/'/},m={match:/\\'/},Z={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},l.NUMBER_MODE,e]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],y=l.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),G={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[l.inherit(l.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},X=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],z=["true","false"],L={match:/(\/[a-z._-]+)+/},S=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],R=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],J=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],U=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:X,literal:z,built_in:[...S,...R,"set","shopt",...J,...U]},contains:[y,l.SHEBANG(),G,Z,s,a,L,o,d,u,m,e]}}function uE(l){const t=l.regex,e=l.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[l.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},l.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},Z={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},l.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},e,l.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+l.IDENT_RE,relevance:0},y=t.optional(i)+l.IDENT_RE+"\\s*\\(",z={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},L=[Z,o,e,l.C_BLOCK_COMMENT_MODE,m,u],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:z,contains:L.concat([{begin:/\(/,end:/\)/,keywords:z,contains:L.concat(["self"]),relevance:0}]),relevance:0},R={begin:"("+a+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:z,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:z,relevance:0},{begin:y,returnBegin:!0,contains:[l.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:[e,l.C_BLOCK_COMMENT_MODE,u,m,o,{begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:["self",e,l.C_BLOCK_COMMENT_MODE,u,m,o]}]},o,e,l.C_BLOCK_COMMENT_MODE,Z]};return{name:"C",aliases:["h"],keywords:z,disableAutodetect:!0,illegal:"</",contains:[].concat(S,R,L,[Z,{begin:l.IDENT_RE+"::",keywords:z},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},l.TITLE_MODE]}]),exports:{preprocessor:Z,strings:u,keywords:z}}}function mE(l){const t=l.regex,e=l.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[l.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},l.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},Z={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},l.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},e,l.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+l.IDENT_RE,relevance:0},y=t.optional(i)+l.IDENT_RE+"\\s*\\(",G=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],X=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],z=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],L=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],J={type:X,keyword:G,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:z},U={className:"function.dispatch",relevance:0,keywords:{_hint:L},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,l.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},j=[U,Z,o,e,l.C_BLOCK_COMMENT_MODE,m,u],Q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:J,contains:j.concat([{begin:/\(/,end:/\)/,keywords:J,contains:j.concat(["self"]),relevance:0}]),relevance:0},it={className:"function",begin:"("+a+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:J,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:J,relevance:0},{begin:y,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:[e,l.C_BLOCK_COMMENT_MODE,u,m,o,{begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:["self",e,l.C_BLOCK_COMMENT_MODE,u,m,o]}]},o,e,l.C_BLOCK_COMMENT_MODE,Z]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:J,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(Q,it,U,j,[Z,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:J,contains:["self",o]},{begin:l.IDENT_RE+"::",keywords:J},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function hE(l){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],e=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(s),built_in:t,literal:n},o=l.inherit(l.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},Z=l.inherit(m,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:a},y=l.inherit(p,{illegal:/\n/}),G={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},l.BACKSLASH_ESCAPE,y]},X={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},z=l.inherit(X,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]});p.contains=[X,G,m,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,d,l.C_BLOCK_COMMENT_MODE],y.contains=[z,G,Z,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,d,l.inherit(l.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const L={variants:[u,X,G,m,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},S={begin:"<",end:">",contains:[{beginKeywords:"in out"},o]},R=l.IDENT_RE+"(<"+l.IDENT_RE+"(\\s*,\\s*"+l.IDENT_RE+")*>)?(\\[\\])?",J={begin:"@"+l.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[l.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3C!--|-->"},{begin:"</?",end:">"}]}]}),l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},L,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},o,S,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,S,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+R+"\\s+)+"+l.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:e.join(" "),relevance:0},{begin:l.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[l.TITLE_MODE,S],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[L,d,l.C_BLOCK_COMMENT_MODE]},l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},J]}}const bE=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ZE=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],pE=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],yE=[...ZE,...pE],NE=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),WE=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),ME=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),GE=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function XE(l){const t=l.regex,e=bE(l),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",o=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[e.BLOCK_COMMENT,n,e.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+WE.join("|")+")"},{begin:":(:)?("+ME.join("|")+")"}]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+GE.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[e.BLOCK_COMMENT,e.HEXCOLOR,e.IMPORTANT,e.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},e.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:NE.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+yE.join("|")+")\\b"}]}}function YE(l){const t=l.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function TE(l){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,{className:"string",variants:[l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[l.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}function VE(l){const t=l.regex,e=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[l.HASH_COMMENT_MODE,l.QUOTE_STRING_MODE,l.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(e,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function LE(l){const t=l.regex,e={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:l.NUMBER_RE}]},n=l.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[l.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},o={begin:/\[/,end:/\]/,contains:[n,s,i,a,e,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,m=/'[^']*'/,Z=t.either(d,u,m),p=t.concat(Z,"(\\s*\\.\\s*",Z,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[n,o,s,i,a,e]}}]}}var Um="[0-9](_*[0-9])*",Jy=`\\.(${Um})`,Uy="[0-9a-fA-F](_*[0-9a-fA-F])*",KL={className:"number",variants:[{begin:`(\\b(${Um})((${Jy})|\\.)?|(${Jy}))[eE][+-]?(${Um})[fFdD]?\\b`},{begin:`\\b(${Um})((${Jy})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Jy})[fFdD]?\\b`},{begin:`\\b(${Um})[fFdD]\\b`},{begin:`\\b0[xX]((${Uy})\\.?|(${Uy})?\\.(${Uy}))[pP][+-]?(${Um})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Uy})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function yw(l,t,e){return e===-1?"":l.replace(t,n=>yw(l,t,e-1))}function IE(l){const t=l.regex,e="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=e+yw("(?:<"+e+"~~~(?:\\s*,\\s*"+e+"~~~)*>)?",/~~~/g,2),d={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+e,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},m={className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[l.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:d,illegal:/<\/|#/,contains:[l.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[l.BACKSLASH_ESCAPE]},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,e],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,e),/\s+/,e,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,e],className:{1:"keyword",3:"title.class"},contains:[m,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",l.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:d,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[u,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,KL,l.C_BLOCK_COMMENT_MODE]},l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},KL,u]}}const PL="[A-Za-z$_][0-9A-Za-z$_]*",zE=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],wE=["true","false","null","undefined","NaN","Infinity"],Nw=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ww=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mw=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xE=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],gE=[].concat(Mw,Nw,Ww);function SE(l){const t=l.regex,e=(Yt,{after:Dt})=>{const K="</"+Yt[0].slice(1);return Yt.input.indexOf(K,Dt)!==-1},n=PL,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Yt,Dt)=>{const K=Yt[0].length+Yt.index,lt=Yt.input[K];if(lt==="<"||lt===","){Dt.ignoreMatch();return}lt===">"&&(e(Yt,{after:K})||Dt.ignoreMatch());let Mt;const H=Yt.input.substring(K);if(Mt=H.match(/^\s*=/)){Dt.ignoreMatch();return}if((Mt=H.match(/^\s+extends\s+/))&&Mt.index===0){Dt.ignoreMatch();return}}},o={$pattern:PL,keyword:zE,literal:wE,built_in:gE,"variable.language":xE},d="[0-9](_?[0-9])*",u=`\\.(${d})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",Z={className:"number",variants:[{begin:`(\\b(${m})((${u})|\\.)?|(${u}))[eE][+-]?(${d})\\b`},{begin:`\\b(${m})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},G={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,p],subLanguage:"css"}},X={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,p]},S={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},R=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,G,X,z,{match:/\$\d+/},Z];p.contains=R.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(R)});const J=[].concat(S,p.contains),U=J.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(J)}]),j={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:U},Q={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},it={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Nw,...Ww]}},at={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[j],illegal:/%/},Wt={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ht(Yt){return t.concat("(?!",Yt.join("|"),")")}const Tt={match:t.concat(/\b/,ht([...Mw,"super","import"].map(Yt=>`${Yt}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Zt={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Xt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},j]},St="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",Rt={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(St)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[j]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:it},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),at,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,G,X,z,S,{match:/\$\d+/},Z,it,{scope:"attr",match:n+t.lookahead(":"),relevance:0},Rt,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[S,l.REGEXP_MODE,{className:"function",begin:St,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},_,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[j,l.inherit(l.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Zt,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[j]},Tt,Wt,Q,Xt,{match:/\$[(.]/}]}}function RE(l){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},e={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],i={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[t,e,l.QUOTE_STRING_MODE,i,l.C_NUMBER_MODE,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Em="[0-9](_*[0-9])*",Ey=`\\.(${Em})`,vy="[0-9a-fA-F](_*[0-9a-fA-F])*",kE={className:"number",variants:[{begin:`(\\b(${Em})((${Ey})|\\.)?|(${Ey}))[eE][+-]?(${Em})[fFdD]?\\b`},{begin:`\\b(${Em})((${Ey})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Ey})[fFdD]?\\b`},{begin:`\\b(${Em})[fFdD]\\b`},{begin:`\\b0[xX]((${vy})\\.?|(${vy})?\\.(${vy}))[pP][+-]?(${Em})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${vy})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function fE(l){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},e={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n={className:"symbol",begin:l.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[l.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+l.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,i]},{begin:"'",end:"'",illegal:/\n/,contains:[l.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[l.BACKSLASH_ESCAPE,s,i]}]};i.contains.push(a);const o={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+l.UNDERSCORE_IDENT_RE+")?"},d={className:"meta",begin:"@"+l.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[l.inherit(a,{className:"string"}),"self"]}]},u=kE,m=l.COMMENT("/\\*","\\*/",{contains:[l.C_BLOCK_COMMENT_MODE]}),Z={variants:[{className:"type",begin:l.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=Z;return p.variants[1].contains=[Z],Z.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[l.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),l.C_LINE_COMMENT_MODE,m,e,n,o,d,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:l.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[l.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[Z,l.C_LINE_COMMENT_MODE,m],relevance:0},l.C_LINE_COMMENT_MODE,m,o,d,a,l.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,l.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},l.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},o,d]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},u]}}const DE=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),jE=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],OE=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],CE=[...jE,...OE],FE=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Gw=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Xw=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),JE=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),UE=Gw.concat(Xw).sort().reverse();function EE(l){const t=DE(l),e=UE,n="and or not only",i="[\\w-]+",s="("+i+"|@\\{"+i+"\\})",a=[],o=[],d=function(R){return{className:"string",begin:"~?"+R+".*?"+R}},u=function(R,J,U){return{className:R,begin:J,relevance:U}},m={$pattern:/[a-z-]+/,keyword:n,attribute:FE.join(" ")},Z={begin:"\\(",end:"\\)",contains:o,keywords:m,relevance:0};o.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,d("'"),d('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,Z,u("variable","@@?"+i,10),u("variable","@\\{"+i+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const p=o.concat({begin:/\{/,end:/\}/,contains:a}),y={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(o)},G={begin:s+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+JE.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:o}}]},X={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:m,returnEnd:!0,contains:o,relevance:0}},z={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:p}},L={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:s,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,y,u("keyword","all\\b"),u("variable","@\\{"+i+"\\}"),{begin:"\\b("+CE.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,u("selector-tag",s,0),u("selector-id","#"+s),u("selector-class","\\."+s,0),u("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Gw.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Xw.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},t.FUNCTION_DISPATCH]},S={begin:i+`:(:)?(${e.join("|")})`,returnBegin:!0,contains:[L]};return a.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,X,z,S,G,L,y,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function vE(l){const t="\\[=*\\[",e="\\]=*\\]",n={begin:t,end:e,contains:["self"]},i=[l.COMMENT("--(?!"+t+")","$"),l.COMMENT("--"+t,e,{contains:[n],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:l.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[l.inherit(l.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},l.C_NUMBER_MODE,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,{className:"string",begin:t,end:e,contains:[n],relevance:5}])}}function KE(l){const t={className:"variable",variants:[{begin:"\\$\\("+l.UNDERSCORE_IDENT_RE+"\\)",contains:[l.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},e={className:"string",begin:/"/,end:/"/,contains:[l.BACKSLASH_ESCAPE,t]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,e]},i={begin:"^"+l.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[l.HASH_COMMENT_MODE,t,e,n,i,s,a]}}function PE(l){const t=l.regex,e={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},o=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,o,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},Z=l.inherit(u,{contains:[]}),p=l.inherit(m,{contains:[]});u.contains.push(p),m.contains.push(Z);let y=[e,d];return[u,m,Z,p].forEach(L=>{L.contains=L.contains.concat(y)}),y=y.concat(u,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:y},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:y}]}]},e,s,u,m,{className:"quote",begin:"^>\\s+",contains:y,end:"$"},i,n,d,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function HE(l){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e=/[a-zA-Z@][a-zA-Z0-9_]*/,o={"variable.language":["this","super"],$pattern:e,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:e,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:o,illegal:"</",contains:[t,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,l.C_NUMBER_MODE,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[l.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},l.inherit(l.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[l.UNDERSCORE_TITLE_MODE]},{begin:"\\."+l.UNDERSCORE_IDENT_RE,relevance:0}]}}function QE(l){const t=l.regex,e=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],n=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:e.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},o={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[o]},u={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},m=[l.BACKSLASH_ESCAPE,s,d],Z=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(X,z,L="\\1")=>{const S=L==="\\1"?L:t.concat(L,z);return t.concat(t.concat("(?:",X,")"),z,/(?:\\.|[^\\\/])*?/,S,/(?:\\.|[^\\\/])*?/,L,n)},y=(X,z,L)=>t.concat(t.concat("(?:",X,")"),z,/(?:\\.|[^\\\/])*?/,L,n),G=[d,l.HASH_COMMENT_MODE,l.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:m,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[l.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},u,{begin:"(\\/\\/|"+l.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[l.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",t.either(...Z,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:y("(?:m|qr)?",/\//,/\//)},{begin:y("m|qr",t.either(...Z,{capture:!0}),/\1/)},{begin:y("m|qr",/\(/,/\)/)},{begin:y("m|qr",/\[/,/\]/)},{begin:y("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[l.TITLE_MODE,o]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[l.TITLE_MODE,o,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=G,a.contains=G,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:G}}function BE(l){const t=l.regex,e=/(?![A-Za-z0-9])(?![$])/,n=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,e),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,e),s=t.concat(/[A-Z]+/,e),a={scope:"variable",match:"\\$+"+n},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},d={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=l.inherit(l.APOS_STRING_MODE,{illegal:null}),m=l.inherit(l.QUOTE_STRING_MODE,{illegal:null,contains:l.QUOTE_STRING_MODE.contains.concat(d)}),Z={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:l.QUOTE_STRING_MODE.contains.concat(d),"on:begin":(Zt,Xt)=>{Xt.data._beginMatch=Zt[1]||Zt[2]},"on:end":(Zt,Xt)=>{Xt.data._beginMatch!==Zt[1]&&Xt.ignoreMatch()}},p=l.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),y=`[
]`,G={scope:"string",variants:[m,u,Z,p]},X={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},z=["false","null","true"],L=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],S=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],J={keyword:L,literal:(Zt=>{const Xt=[];return Zt.forEach(St=>{Xt.push(St),St.toLowerCase()===St?Xt.push(St.toUpperCase()):Xt.push(St.toLowerCase())}),Xt})(z),built_in:S},U=Zt=>Zt.map(Xt=>Xt.replace(/\|\d+$/,"")),j={variants:[{match:[/new/,t.concat(y,"+"),t.concat("(?!",U(S).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},Q=t.concat(n,"\\b(?!\\()"),it={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),Q],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),Q],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},at={scope:"attr",match:t.concat(n,t.lookahead(":"),t.lookahead(/(?!::)/))},_={relevance:0,begin:/\(/,end:/\)/,keywords:J,contains:[at,a,it,l.C_BLOCK_COMMENT_MODE,G,X,j]},Wt={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",U(L).join("\\b|"),"|",U(S).join("\\b|"),"\\b)"),n,t.concat(y,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[_]};_.contains.push(Wt);const ht=[at,it,l.C_BLOCK_COMMENT_MODE,G,X,j],Tt={begin:t.concat(/#\[\s*\\?/,t.either(i,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:z,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:z,keyword:["new","array"]},contains:["self",...ht]},...ht,{scope:"meta",variants:[{match:i},{match:s}]}]};return{case_insensitive:!1,keywords:J,contains:[Tt,l.HASH_COMMENT_MODE,l.COMMENT("//","$"),l.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:l.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},a,Wt,it,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},j,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},l.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:J,contains:["self",Tt,a,it,l.C_BLOCK_COMMENT_MODE,G,X]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},l.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[l.inherit(l.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},l.UNDERSCORE_TITLE_MODE]},G,X]}}function AE(l){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},l.inherit(l.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),l.inherit(l.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function _E(l){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function qE(l){const t=l.regex,e=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},m={begin:/\{\{/,relevance:0},Z={className:"string",contains:[l.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[l.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[l.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[l.BACKSLASH_ESCAPE,d,m,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[l.BACKSLASH_ESCAPE,d,m,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[l.BACKSLASH_ESCAPE,m,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[l.BACKSLASH_ESCAPE,m,u]},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",y=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,G=`\\b|${n.join("|")}`,X={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${y}))[eE][+-]?(${p})[jJ]?(?=${G})`},{begin:`(${y})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${G})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${G})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${G})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${G})`},{begin:`\\b(${p})[jJ](?=${G})`}]},z={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},L={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",d,X,Z,l.HASH_COMMENT_MODE]}]};return u.contains=[Z,X,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[d,X,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},Z,z,l.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,e],scope:{1:"keyword",3:"title.function"},contains:[L]},{variants:[{match:[/\bclass/,/\s+/,e,/\s*/,/\(\s*/,e,/\s*\)/]},{match:[/\bclass/,/\s+/,e]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[X,L,Z]}]}}function $E(l){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function tv(l){const t=l.regex,e=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:e,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[l.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:e},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),l.HASH_COMMENT_MODE,{scope:"string",contains:[l.BACKSLASH_ESCAPE],variants:[l.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),l.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),l.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),l.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),l.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),l.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[s,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[e,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function ev(l){const t=l.regex,e="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(n,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},o={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},u=[l.COMMENT("#","$",{contains:[o]}),l.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),l.COMMENT("^__END__",l.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:a},Z={className:"string",contains:[l.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[l.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[l.BACKSLASH_ESCAPE,m]})]}]},p="[1-9](_?[0-9])*|0",y="[0-9](_?[0-9])*",G={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${y}))?([eE][+-]?(${y})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},X={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},j=[Z,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,e],scope:{1:"keyword",3:"title.function"},contains:[X]},{begin:l.IDENT_RE+"::"},{className:"symbol",begin:l.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[Z,{begin:e}],relevance:0},G,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+l.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[l.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,u),relevance:0}].concat(d,u);m.contains=j,X.contains=j;const _=[{begin:/^\s*=>/,starts:{end:"$",contains:j}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:j}}];return u.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[l.SHEBANG({binary:"ruby"})].concat(_).concat(u).concat(j)}}function lv(l){const t=l.regex,e=/(r#)?/,n=t.concat(e,l.UNDERSCORE_IDENT_RE),i=t.concat(e,l.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",o=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],d=["true","false","Some","None","Ok","Err"],u=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],m=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:l.IDENT_RE+"!?",type:m,keyword:o,literal:d,built_in:u},illegal:"</",contains:[l.C_LINE_COMMENT_MODE,l.COMMENT("/\\*","\\*/",{contains:["self"]}),l.inherit(l.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,n],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[l.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,n],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,n,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:l.IDENT_RE+"::",keywords:{keyword:"Self",built_in:u,type:m}},{className:"punctuation",begin:"->"},s]}}const nv=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),iv=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],sv=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],av=[...iv,...sv],cv=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),ov=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),rv=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),dv=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function uv(l){const t=nv(l),e=rv,n=ov,i="@[a-z-]+",s="and or not only",o={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+av.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+e.join("|")+")"},o,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+dv.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,o,t.HEXCOLOR,t.CSS_NUMBER_MODE,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:cv.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},o,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function mv(l){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function hv(l){const t=l.regex,e=l.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],Z=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],y=m,G=[...u,...d].filter(U=>!m.includes(U)),X={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},z={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},L={match:t.concat(/\b/,t.either(...y),/\s*\(/),relevance:0,keywords:{built_in:y}};function S(U){return t.concat(/\b/,t.either(...U.map(j=>j.replace(/\s+/,"\\s+"))),/\b/)}const R={scope:"keyword",match:S(p),relevance:0};function J(U,{exceptions:j,when:Q}={}){const it=Q;return j=j||[],U.map(at=>at.match(/\|\d+$/)||j.includes(at)?at:it(at)?`${at}|0`:at)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:J(G,{when:U=>U.length<3}),literal:s,type:o,built_in:Z},contains:[{scope:"type",match:S(a)},R,L,X,n,i,l.C_NUMBER_MODE,l.C_BLOCK_COMMENT_MODE,e,z]}}function Yw(l){return l?typeof l=="string"?l:l.source:null}function eZ(l){return Ol("(?=",l,")")}function Ol(...l){return l.map(e=>Yw(e)).join("")}function bv(l){const t=l[l.length-1];return typeof t=="object"&&t.constructor===Object?(l.splice(l.length-1,1),t):{}}function cs(...l){return"("+(bv(l).capture?"":"?:")+l.map(n=>Yw(n)).join("|")+")"}const r5=l=>Ol(/\b/,l,/\w$/.test(l)?/\b/:/\B/),Zv=["Protocol","Type"].map(r5),HL=["init","self"].map(r5),pv=["Any","Self"],iG=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],QL=["false","nil","true"],yv=["assignment","associativity","higherThan","left","lowerThan","none","right"],Nv=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],BL=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Tw=cs(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Vw=cs(Tw,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),sG=Ol(Tw,Vw,"*"),Lw=cs(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),nW=cs(Lw,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),jc=Ol(Lw,nW,"*"),Ky=Ol(/[A-Z]/,nW,"*"),Wv=["attached","autoclosure",Ol(/convention\(/,cs("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Ol(/objc\(/,jc,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Mv=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Gv(l){const t={match:/\s+/,relevance:0},e=l.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[l.C_LINE_COMMENT_MODE,e],i={match:[/\./,cs(...Zv,...HL)],className:{2:"keyword"}},s={match:Ol(/\./,cs(...iG)),relevance:0},a=iG.filter(nl=>typeof nl=="string").concat(["_|0"]),o=iG.filter(nl=>typeof nl!="string").concat(pv).map(r5),d={variants:[{className:"keyword",match:cs(...o,...HL)}]},u={$pattern:cs(/\b\w+/,/#\w+/),keyword:a.concat(Nv),literal:QL},m=[i,s,d],Z={match:Ol(/\./,cs(...BL)),relevance:0},p={className:"built_in",match:Ol(/\b/,cs(...BL),/(?=\()/)},y=[Z,p],G={match:/->/,relevance:0},X={className:"operator",relevance:0,variants:[{match:sG},{match:`\\.(\\.|${Vw})+`}]},z=[G,X],L="([0-9]_*)+",S="([0-9a-fA-F]_*)+",R={className:"number",relevance:0,variants:[{match:`\\b(${L})(\\.(${L}))?([eE][+-]?(${L}))?\\b`},{match:`\\b0x(${S})(\\.(${S}))?([pP][+-]?(${L}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},J=(nl="")=>({className:"subst",variants:[{match:Ol(/\\/,nl,/[0\\tnr"']/)},{match:Ol(/\\/,nl,/u\{[0-9a-fA-F]{1,8}\}/)}]}),U=(nl="")=>({className:"subst",match:Ol(/\\/,nl,/[\t ]*(?:[\r\n]|\r\n)/)}),j=(nl="")=>({className:"subst",label:"interpol",begin:Ol(/\\/,nl,/\(/),end:/\)/}),Q=(nl="")=>({begin:Ol(nl,/"""/),end:Ol(/"""/,nl),contains:[J(nl),U(nl),j(nl)]}),it=(nl="")=>({begin:Ol(nl,/"/),end:Ol(/"/,nl),contains:[J(nl),j(nl)]}),at={className:"string",variants:[Q(),Q("#"),Q("##"),Q("###"),it(),it("#"),it("##"),it("###")]},_=[l.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[l.BACKSLASH_ESCAPE]}],Wt={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:_},ht=nl=>{const Pl=Ol(nl,/\//),bn=Ol(/\//,nl);return{begin:Pl,end:bn,contains:[..._,{scope:"comment",begin:`#(?!.*${bn})`,end:/$/}]}},Tt={scope:"regexp",variants:[ht("###"),ht("##"),ht("#"),Wt]},Zt={match:Ol(/`/,jc,/`/)},Xt={className:"variable",match:/\$\d+/},St={className:"variable",match:`\\$${nW}+`},Rt=[Zt,Xt,St],Yt={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Mv,contains:[...z,R,at]}]}},Dt={scope:"keyword",match:Ol(/@/,cs(...Wv),eZ(cs(/\(/,/\s+/)))},K={scope:"meta",match:Ol(/@/,jc)},lt=[Yt,Dt,K],Mt={match:eZ(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Ol(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,nW,"+")},{className:"type",match:Ky,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Ol(/\s+&\s+/,eZ(Ky)),relevance:0}]},H={begin:/</,end:/>/,keywords:u,contains:[...n,...m,...lt,G,Mt]};Mt.contains.push(H);const le={match:Ol(jc,/\s*:/),keywords:"_|0",relevance:0},Ze={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",le,...n,Tt,...m,...y,...z,R,at,...Rt,...lt,Mt]},$t={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,Mt]},me={begin:cs(eZ(Ol(jc,/\s*:/)),eZ(Ol(jc,/\s+/,jc,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:jc}]},ye={begin:/\(/,end:/\)/,keywords:u,contains:[me,...n,...m,...z,R,at,...lt,Mt,Ze],endsParent:!0,illegal:/["']/},Ft={match:[/(func|macro)/,/\s+/,cs(Zt.match,jc,sG)],className:{1:"keyword",3:"title.function"},contains:[$t,ye,t],illegal:[/\[/,/%/]},Pe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[$t,ye,t],illegal:/\[|%/},yl={match:[/operator/,/\s+/,sG],className:{1:"keyword",3:"title"}},Oe={begin:[/precedencegroup/,/\s+/,Ky],className:{1:"keyword",3:"title"},contains:[Mt],keywords:[...yv,...QL],end:/}/},nn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Fn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},hn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,jc,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[$t,...m,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:Ky},...m],relevance:0}]};for(const nl of at.variants){const Pl=nl.contains.find(In=>In.label==="interpol");Pl.keywords=u;const bn=[...m,...y,...z,R,at,...Rt];Pl.contains=[...bn,{begin:/\(/,end:/\)/,contains:["self",...bn]}]}return{name:"Swift",keywords:u,contains:[...n,Ft,Pe,nn,Fn,hn,yl,Oe,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},Tt,...m,...y,...z,R,at,...Rt,...lt,Mt,Ze]}}const iW="[A-Za-z$_][0-9A-Za-z$_]*",Iw=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],zw=["true","false","null","undefined","NaN","Infinity"],ww=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],xw=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],gw=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Sw=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Rw=[].concat(gw,ww,xw);function Xv(l){const t=l.regex,e=(Yt,{after:Dt})=>{const K="</"+Yt[0].slice(1);return Yt.input.indexOf(K,Dt)!==-1},n=iW,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Yt,Dt)=>{const K=Yt[0].length+Yt.index,lt=Yt.input[K];if(lt==="<"||lt===","){Dt.ignoreMatch();return}lt===">"&&(e(Yt,{after:K})||Dt.ignoreMatch());let Mt;const H=Yt.input.substring(K);if(Mt=H.match(/^\s*=/)){Dt.ignoreMatch();return}if((Mt=H.match(/^\s+extends\s+/))&&Mt.index===0){Dt.ignoreMatch();return}}},o={$pattern:iW,keyword:Iw,literal:zw,built_in:Rw,"variable.language":Sw},d="[0-9](_?[0-9])*",u=`\\.(${d})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",Z={className:"number",variants:[{begin:`(\\b(${m})((${u})|\\.)?|(${u}))[eE][+-]?(${d})\\b`},{begin:`\\b(${m})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},G={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,p],subLanguage:"css"}},X={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,p]},S={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},R=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,G,X,z,{match:/\$\d+/},Z];p.contains=R.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(R)});const J=[].concat(S,p.contains),U=J.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(J)}]),j={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:U},Q={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},it={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ww,...xw]}},at={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[j],illegal:/%/},Wt={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ht(Yt){return t.concat("(?!",Yt.join("|"),")")}const Tt={match:t.concat(/\b/,ht([...gw,"super","import"].map(Yt=>`${Yt}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Zt={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Xt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},j]},St="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",Rt={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(St)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[j]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:it},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),at,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,G,X,z,S,{match:/\$\d+/},Z,it,{scope:"attr",match:n+t.lookahead(":"),relevance:0},Rt,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[S,l.REGEXP_MODE,{className:"function",begin:St,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},_,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[j,l.inherit(l.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Zt,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[j]},Tt,Wt,Q,Xt,{match:/\$[(.]/}]}}function Yv(l){const t=l.regex,e=Xv(l),n=iW,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},d=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:iW,keyword:Iw.concat(d),literal:zw,built_in:Rw.concat(i),"variable.language":Sw},m={className:"meta",begin:"@"+n},Z=(X,z,L)=>{const S=X.contains.findIndex(R=>R.label===z);if(S===-1)throw new Error("can not find mode to replace");X.contains.splice(S,1,L)};Object.assign(e.keywords,u),e.exports.PARAMS_CONTAINS.push(m);const p=e.contains.find(X=>X.scope==="attr"),y=Object.assign({},p,{match:t.concat(n,t.lookahead(/\s*\?:/))});e.exports.PARAMS_CONTAINS.push([e.exports.CLASS_REFERENCE,p,y]),e.contains=e.contains.concat([m,s,a,y]),Z(e,"shebang",l.SHEBANG()),Z(e,"use_strict",o);const G=e.contains.find(X=>X.label==="func.def");return G.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Tv(l){const t=l.regex,e={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,o=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:t.concat(/# */,t.either(s,i),/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(s,i),/ +/,t.either(a,o),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},m={className:"label",begin:/^\w+:/},Z=l.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=l.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[e,n,d,u,m,Z,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}function Vv(l){l.regex;const t=l.COMMENT(/\(;/,/;\)/);t.contains.push("self");const e=l.COMMENT(/;;/,/$/),n=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},o={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:n},contains:[e,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,a,i,l.QUOTE_STRING_MODE,d,u,o]}}function Lv(l){const t=l.regex,e=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=l.inherit(s,{begin:/\(/,end:/\)/}),o=l.inherit(l.APOS_STRING_MODE,{className:"string"}),d=l.inherit(l.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,d,o,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,d,o]}]}]},l.COMMENT(/\x3C!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(e,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:e,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(e,/>/))),contains:[{className:"name",begin:e,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Iv(l){const t="true false yes no null",e="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[l.BACKSLASH_ESCAPE,i]},o=l.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},y={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},G={begin:/\{/,end:/\}/,contains:[y],illegal:"\\n",relevance:0},X={begin:"\\[",end:"\\]",contains:[y],illegal:"\\n",relevance:0},z=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+e},{className:"type",begin:"!<"+e+">"},{className:"type",begin:"!"+e},{className:"type",begin:"!!"+e},{className:"meta",begin:"&"+l.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+l.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},l.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},p,{className:"number",begin:l.C_NUMBER_RE+"\\b",relevance:0},G,X,s,a],L=[...z];return L.pop(),L.push(o),y.contains=L,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:z}}const zv={arduino:rE,bash:dE,c:uE,cpp:mE,csharp:hE,css:XE,diff:YE,go:TE,graphql:VE,ini:LE,java:IE,javascript:SE,json:RE,kotlin:fE,less:EE,lua:vE,makefile:KE,markdown:PE,objectivec:HE,perl:QE,php:BE,"php-template":AE,plaintext:_E,python:qE,"python-repl":$E,r:tv,ruby:ev,rust:lv,scss:uv,shell:mv,sql:hv,swift:Gv,typescript:Yv,vbnet:Tv,wasm:Vv,xml:Lv,yaml:Iv};var aG,AL;function wv(){if(AL)return aG;AL=1;function l(nt){return nt instanceof Map?nt.clear=nt.delete=nt.set=function(){throw new Error("map is read-only")}:nt instanceof Set&&(nt.add=nt.clear=nt.delete=function(){throw new Error("set is read-only")}),Object.freeze(nt),Object.getOwnPropertyNames(nt).forEach(ft=>{const ce=nt[ft],Ke=typeof ce;(Ke==="object"||Ke==="function")&&!Object.isFrozen(ce)&&l(ce)}),nt}class t{constructor(ft){ft.data===void 0&&(ft.data={}),this.data=ft.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function e(nt){return nt.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n(nt,...ft){const ce=Object.create(null);for(const Ke in nt)ce[Ke]=nt[Ke];return ft.forEach(function(Ke){for(const Vl in Ke)ce[Vl]=Ke[Vl]}),ce}const i="</span>",s=nt=>!!nt.scope,a=(nt,{prefix:ft})=>{if(nt.startsWith("language:"))return nt.replace("language:","language-");if(nt.includes(".")){const ce=nt.split(".");return[`${ft}${ce.shift()}`,...ce.map((Ke,Vl)=>`${Ke}${"_".repeat(Vl+1)}`)].join(" ")}return`${ft}${nt}`};class o{constructor(ft,ce){this.buffer="",this.classPrefix=ce.classPrefix,ft.walk(this)}addText(ft){this.buffer+=e(ft)}openNode(ft){if(!s(ft))return;const ce=a(ft.scope,{prefix:this.classPrefix});this.span(ce)}closeNode(ft){s(ft)&&(this.buffer+=i)}value(){return this.buffer}span(ft){this.buffer+=`<span class="${ft}">`}}const d=(nt={})=>{const ft={children:[]};return Object.assign(ft,nt),ft};class u{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ft){this.top.children.push(ft)}openNode(ft){const ce=d({scope:ft});this.add(ce),this.stack.push(ce)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ft){return this.constructor._walk(ft,this.rootNode)}static _walk(ft,ce){return typeof ce=="string"?ft.addText(ce):ce.children&&(ft.openNode(ce),ce.children.forEach(Ke=>this._walk(ft,Ke)),ft.closeNode(ce)),ft}static _collapse(ft){typeof ft!="string"&&ft.children&&(ft.children.every(ce=>typeof ce=="string")?ft.children=[ft.children.join("")]:ft.children.forEach(ce=>{u._collapse(ce)}))}}class m extends u{constructor(ft){super(),this.options=ft}addText(ft){ft!==""&&this.add(ft)}startScope(ft){this.openNode(ft)}endScope(){this.closeNode()}__addSublanguage(ft,ce){const Ke=ft.root;ce&&(Ke.scope=`language:${ce}`),this.add(Ke)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Z(nt){return nt?typeof nt=="string"?nt:nt.source:null}function p(nt){return X("(?=",nt,")")}function y(nt){return X("(?:",nt,")*")}function G(nt){return X("(?:",nt,")?")}function X(...nt){return nt.map(ce=>Z(ce)).join("")}function z(nt){const ft=nt[nt.length-1];return typeof ft=="object"&&ft.constructor===Object?(nt.splice(nt.length-1,1),ft):{}}function L(...nt){return"("+(z(nt).capture?"":"?:")+nt.map(Ke=>Z(Ke)).join("|")+")"}function S(nt){return new RegExp(nt.toString()+"|").exec("").length-1}function R(nt,ft){const ce=nt&&nt.exec(ft);return ce&&ce.index===0}const J=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function U(nt,{joinWith:ft}){let ce=0;return nt.map(Ke=>{ce+=1;const Vl=ce;let Il=Z(Ke),Ne="";for(;Il.length>0;){const he=J.exec(Il);if(!he){Ne+=Il;break}Ne+=Il.substring(0,he.index),Il=Il.substring(he.index+he[0].length),he[0][0]==="\\"&&he[1]?Ne+="\\"+String(Number(he[1])+Vl):(Ne+=he[0],he[0]==="("&&ce++)}return Ne}).map(Ke=>`(${Ke})`).join(ft)}const j=/\b\B/,Q="[a-zA-Z]\\w*",it="[a-zA-Z_]\\w*",at="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Wt="\\b(0b[01]+)",ht="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Tt=(nt={})=>{const ft=/^#![ ]*\//;return nt.binary&&(nt.begin=X(ft,/.*\b/,nt.binary,/\b.*/)),n({scope:"meta",begin:ft,end:/$/,relevance:0,"on:begin":(ce,Ke)=>{ce.index!==0&&Ke.ignoreMatch()}},nt)},Zt={begin:"\\\\[\\s\\S]",relevance:0},Xt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Zt]},St={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Zt]},Rt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Yt=function(nt,ft,ce={}){const Ke=n({scope:"comment",begin:nt,end:ft,contains:[]},ce);Ke.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Vl=L("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ke.contains.push({begin:X(/[ ]+/,"(",Vl,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ke},Dt=Yt("//","$"),K=Yt("/\\*","\\*/"),lt=Yt("#","$"),Mt={scope:"number",begin:at,relevance:0},H={scope:"number",begin:_,relevance:0},le={scope:"number",begin:Wt,relevance:0},Ze={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Zt,{begin:/\[/,end:/\]/,relevance:0,contains:[Zt]}]},$t={scope:"title",begin:Q,relevance:0},me={scope:"title",begin:it,relevance:0},ye={begin:"\\.\\s*"+it,relevance:0};var Pe=Object.freeze({__proto__:null,APOS_STRING_MODE:Xt,BACKSLASH_ESCAPE:Zt,BINARY_NUMBER_MODE:le,BINARY_NUMBER_RE:Wt,COMMENT:Yt,C_BLOCK_COMMENT_MODE:K,C_LINE_COMMENT_MODE:Dt,C_NUMBER_MODE:H,C_NUMBER_RE:_,END_SAME_AS_BEGIN:function(nt){return Object.assign(nt,{"on:begin":(ft,ce)=>{ce.data._beginMatch=ft[1]},"on:end":(ft,ce)=>{ce.data._beginMatch!==ft[1]&&ce.ignoreMatch()}})},HASH_COMMENT_MODE:lt,IDENT_RE:Q,MATCH_NOTHING_RE:j,METHOD_GUARD:ye,NUMBER_MODE:Mt,NUMBER_RE:at,PHRASAL_WORDS_MODE:Rt,QUOTE_STRING_MODE:St,REGEXP_MODE:Ze,RE_STARTERS_RE:ht,SHEBANG:Tt,TITLE_MODE:$t,UNDERSCORE_IDENT_RE:it,UNDERSCORE_TITLE_MODE:me});function yl(nt,ft){nt.input[nt.index-1]==="."&&ft.ignoreMatch()}function Oe(nt,ft){nt.className!==void 0&&(nt.scope=nt.className,delete nt.className)}function nn(nt,ft){ft&&nt.beginKeywords&&(nt.begin="\\b("+nt.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",nt.__beforeBegin=yl,nt.keywords=nt.keywords||nt.beginKeywords,delete nt.beginKeywords,nt.relevance===void 0&&(nt.relevance=0))}function Fn(nt,ft){Array.isArray(nt.illegal)&&(nt.illegal=L(...nt.illegal))}function hn(nt,ft){if(nt.match){if(nt.begin||nt.end)throw new Error("begin & end are not supported with match");nt.begin=nt.match,delete nt.match}}function nl(nt,ft){nt.relevance===void 0&&(nt.relevance=1)}const Pl=(nt,ft)=>{if(!nt.beforeMatch)return;if(nt.starts)throw new Error("beforeMatch cannot be used with starts");const ce=Object.assign({},nt);Object.keys(nt).forEach(Ke=>{delete nt[Ke]}),nt.keywords=ce.keywords,nt.begin=X(ce.beforeMatch,p(ce.begin)),nt.starts={relevance:0,contains:[Object.assign(ce,{endsParent:!0})]},nt.relevance=0,delete ce.beforeMatch},bn=["of","and","for","in","not","or","if","then","parent","list","value"],In="keyword";function Jn(nt,ft,ce=In){const Ke=Object.create(null);return typeof nt=="string"?Vl(ce,nt.split(" ")):Array.isArray(nt)?Vl(ce,nt):Object.keys(nt).forEach(function(Il){Object.assign(Ke,Jn(nt[Il],ft,Il))}),Ke;function Vl(Il,Ne){ft&&(Ne=Ne.map(he=>he.toLowerCase())),Ne.forEach(function(he){const de=he.split("|");Ke[de[0]]=[Il,Zn(de[0],de[1])]})}}function Zn(nt,ft){return ft?Number(ft):Za(nt)?0:1}function Za(nt){return bn.includes(nt.toLowerCase())}const Qi={},ee=nt=>{console.error(nt)},xe=(nt,...ft)=>{console.log(`WARN: ${nt}`,...ft)},It=(nt,ft)=>{Qi[`${nt}/${ft}`]||(console.log(`Deprecated as of ${nt}. ${ft}`),Qi[`${nt}/${ft}`]=!0)},jt=new Error;function Me(nt,ft,{key:ce}){let Ke=0;const Vl=nt[ce],Il={},Ne={};for(let he=1;he<=ft.length;he++)Ne[he+Ke]=Vl[he],Il[he+Ke]=!0,Ke+=S(ft[he-1]);nt[ce]=Ne,nt[ce]._emit=Il,nt[ce]._multi=!0}function Ce(nt){if(Array.isArray(nt.begin)){if(nt.skip||nt.excludeBegin||nt.returnBegin)throw ee("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),jt;if(typeof nt.beginScope!="object"||nt.beginScope===null)throw ee("beginScope must be object"),jt;Me(nt,nt.begin,{key:"beginScope"}),nt.begin=U(nt.begin,{joinWith:""})}}function Be(nt){if(Array.isArray(nt.end)){if(nt.skip||nt.excludeEnd||nt.returnEnd)throw ee("skip, excludeEnd, returnEnd not compatible with endScope: {}"),jt;if(typeof nt.endScope!="object"||nt.endScope===null)throw ee("endScope must be object"),jt;Me(nt,nt.end,{key:"endScope"}),nt.end=U(nt.end,{joinWith:""})}}function Rl(nt){nt.scope&&typeof nt.scope=="object"&&nt.scope!==null&&(nt.beginScope=nt.scope,delete nt.scope)}function pn(nt){Rl(nt),typeof nt.beginScope=="string"&&(nt.beginScope={_wrap:nt.beginScope}),typeof nt.endScope=="string"&&(nt.endScope={_wrap:nt.endScope}),Ce(nt),Be(nt)}function yn(nt){function ft(Ne,he){return new RegExp(Z(Ne),"m"+(nt.case_insensitive?"i":"")+(nt.unicodeRegex?"u":"")+(he?"g":""))}class ce{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(he,de){de.position=this.position++,this.matchIndexes[this.matchAt]=de,this.regexes.push([de,he]),this.matchAt+=S(he)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const he=this.regexes.map(de=>de[1]);this.matcherRe=ft(U(he,{joinWith:"|"}),!0),this.lastIndex=0}exec(he){this.matcherRe.lastIndex=this.lastIndex;const de=this.matcherRe.exec(he);if(!de)return null;const ul=de.findIndex((Bi,Ds)=>Ds>0&&Bi!==void 0),kl=this.matchIndexes[ul];return de.splice(0,ul),Object.assign(de,kl)}}class Ke{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(he){if(this.multiRegexes[he])return this.multiRegexes[he];const de=new ce;return this.rules.slice(he).forEach(([ul,kl])=>de.addRule(ul,kl)),de.compile(),this.multiRegexes[he]=de,de}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(he,de){this.rules.push([he,de]),de.type==="begin"&&this.count++}exec(he){const de=this.getMatcher(this.regexIndex);de.lastIndex=this.lastIndex;let ul=de.exec(he);if(this.resumingScanAtSamePosition()&&!(ul&&ul.index===this.lastIndex)){const kl=this.getMatcher(0);kl.lastIndex=this.lastIndex+1,ul=kl.exec(he)}return ul&&(this.regexIndex+=ul.position+1,this.regexIndex===this.count&&this.considerAll()),ul}}function Vl(Ne){const he=new Ke;return Ne.contains.forEach(de=>he.addRule(de.begin,{rule:de,type:"begin"})),Ne.terminatorEnd&&he.addRule(Ne.terminatorEnd,{type:"end"}),Ne.illegal&&he.addRule(Ne.illegal,{type:"illegal"}),he}function Il(Ne,he){const de=Ne;if(Ne.isCompiled)return de;[Oe,hn,pn,Pl].forEach(kl=>kl(Ne,he)),nt.compilerExtensions.forEach(kl=>kl(Ne,he)),Ne.__beforeBegin=null,[nn,Fn,nl].forEach(kl=>kl(Ne,he)),Ne.isCompiled=!0;let ul=null;return typeof Ne.keywords=="object"&&Ne.keywords.$pattern&&(Ne.keywords=Object.assign({},Ne.keywords),ul=Ne.keywords.$pattern,delete Ne.keywords.$pattern),ul=ul||/\w+/,Ne.keywords&&(Ne.keywords=Jn(Ne.keywords,nt.case_insensitive)),de.keywordPatternRe=ft(ul,!0),he&&(Ne.begin||(Ne.begin=/\B|\b/),de.beginRe=ft(de.begin),!Ne.end&&!Ne.endsWithParent&&(Ne.end=/\B|\b/),Ne.end&&(de.endRe=ft(de.end)),de.terminatorEnd=Z(de.end)||"",Ne.endsWithParent&&he.terminatorEnd&&(de.terminatorEnd+=(Ne.end?"|":"")+he.terminatorEnd)),Ne.illegal&&(de.illegalRe=ft(Ne.illegal)),Ne.contains||(Ne.contains=[]),Ne.contains=[].concat(...Ne.contains.map(function(kl){return zn(kl==="self"?Ne:kl)})),Ne.contains.forEach(function(kl){Il(kl,de)}),Ne.starts&&Il(Ne.starts,he),de.matcher=Vl(de),de}if(nt.compilerExtensions||(nt.compilerExtensions=[]),nt.contains&&nt.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return nt.classNameAliases=n(nt.classNameAliases||{}),Il(nt)}function Un(nt){return nt?nt.endsWithParent||Un(nt.starts):!1}function zn(nt){return nt.variants&&!nt.cachedVariants&&(nt.cachedVariants=nt.variants.map(function(ft){return n(nt,{variants:null},ft)})),nt.cachedVariants?nt.cachedVariants:Un(nt)?n(nt,{starts:nt.starts?n(nt.starts):null}):Object.isFrozen(nt)?n(nt):nt}var se="11.11.1";class wn extends Error{constructor(ft,ce){super(ft),this.name="HTMLInjectionError",this.html=ce}}const gl=e,ks=n,oe=Symbol("nomatch"),pa=7,ya=function(nt){const ft=Object.create(null),ce=Object.create(null),Ke=[];let Vl=!0;const Il="Could not find the language '{}', did you forget to load/include a language module?",Ne={disableAutodetect:!0,name:"Plain text",contains:[]};let he={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function de(Pt){return he.noHighlightRe.test(Pt)}function ul(Pt){let Ie=Pt.className+" ";Ie+=Pt.parentNode?Pt.parentNode.className:"";const el=he.languageDetectRe.exec(Ie);if(el){const il=_i(el[1]);return il||(xe(Il.replace("{}",el[1])),xe("Falling back to no-highlight mode for this block.",Pt)),il?el[1]:"no-highlight"}return Ie.split(/\s+/).find(il=>de(il)||_i(il))}function kl(Pt,Ie,el){let il="",sn="";typeof Ie=="object"?(il=Pt,el=Ie.ignoreIllegals,sn=Ie.language):(It("10.7.0","highlight(lang, code, ...args) has been deprecated."),It("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),sn=Pt,il=Ie),el===void 0&&(el=!0);const ke={code:il,language:sn};Xa("before:highlight",ke);const js=ke.result?ke.result:Bi(ke.language,ke.code,el);return js.code=ke.code,Xa("after:highlight",js),js}function Bi(Pt,Ie,el,il){const sn=Object.create(null);function ke(ne,Ge){return ne.keywords[Ge]}function js(){if(!re.keywords){Nn.addText(zl);return}let ne=0;re.keywordPatternRe.lastIndex=0;let Ge=re.keywordPatternRe.exec(zl),Te="";for(;Ge;){Te+=zl.substring(ne,Ge.index);const Ae=ri.case_insensitive?Ge[0].toLowerCase():Ge[0],fl=ke(re,Ae);if(fl){const[an,i0]=fl;if(Nn.addText(Te),Te="",sn[Ae]=(sn[Ae]||0)+1,sn[Ae]<=pa&&(Rn+=i0),an.startsWith("_"))Te+=Ge[0];else{const Fs=ri.classNameAliases[an]||an;cl(Ge[0],Fs)}}else Te+=Ge[0];ne=re.keywordPatternRe.lastIndex,Ge=re.keywordPatternRe.exec(zl)}Te+=zl.substring(ne),Nn.addText(Te)}function bo(){if(zl==="")return;let ne=null;if(typeof re.subLanguage=="string"){if(!ft[re.subLanguage]){Nn.addText(zl);return}ne=Bi(re.subLanguage,zl,!0,Zo[re.subLanguage]),Zo[re.subLanguage]=ne._top}else ne=Na(zl,re.subLanguage.length?re.subLanguage:null);re.relevance>0&&(Rn+=ne.relevance),Nn.__addSublanguage(ne._emitter,ne.language)}function oi(){re.subLanguage!=null?bo():js(),zl=""}function cl(ne,Ge){ne!==""&&(Nn.startScope(Ge),Nn.addText(ne),Nn.endScope())}function Os(ne,Ge){let Te=1;const Ae=Ge.length-1;for(;Te<=Ae;){if(!ne._emit[Te]){Te++;continue}const fl=ri.classNameAliases[ne[Te]]||ne[Te],an=Ge[Te];fl?cl(an,fl):(zl=an,js(),zl=""),Te++}}function ps(ne,Ge){return ne.scope&&typeof ne.scope=="string"&&Nn.openNode(ri.classNameAliases[ne.scope]||ne.scope),ne.beginScope&&(ne.beginScope._wrap?(cl(zl,ri.classNameAliases[ne.beginScope._wrap]||ne.beginScope._wrap),zl=""):ne.beginScope._multi&&(Os(ne.beginScope,Ge),zl="")),re=Object.create(ne,{parent:{value:re}}),re}function ys(ne,Ge,Te){let Ae=R(ne.endRe,Te);if(Ae){if(ne["on:end"]){const fl=new t(ne);ne["on:end"](Ge,fl),fl.isMatchIgnored&&(Ae=!1)}if(Ae){for(;ne.endsParent&&ne.parent;)ne=ne.parent;return ne}}if(ne.endsWithParent)return ys(ne.parent,Ge,Te)}function e0(ne){return re.matcher.regexIndex===0?(zl+=ne[0],1):(Xi=!0,0)}function l0(ne){const Ge=ne[0],Te=ne.rule,Ae=new t(Te),fl=[Te.__beforeBegin,Te["on:begin"]];for(const an of fl)if(an&&(an(ne,Ae),Ae.isMatchIgnored))return e0(Ge);return Te.skip?zl+=Ge:(Te.excludeBegin&&(zl+=Ge),oi(),!Te.returnBegin&&!Te.excludeBegin&&(zl=Ge)),ps(Te,ne),Te.returnBegin?0:Ge.length}function Lc(ne){const Ge=ne[0],Te=Ie.substring(ne.index),Ae=ys(re,ne,Te);if(!Ae)return oe;const fl=re;re.endScope&&re.endScope._wrap?(oi(),cl(Ge,re.endScope._wrap)):re.endScope&&re.endScope._multi?(oi(),Os(re.endScope,ne)):fl.skip?zl+=Ge:(fl.returnEnd||fl.excludeEnd||(zl+=Ge),oi(),fl.excludeEnd&&(zl=Ge));do re.scope&&Nn.closeNode(),!re.skip&&!re.subLanguage&&(Rn+=re.relevance),re=re.parent;while(re!==Ae.parent);return Ae.starts&&ps(Ae.starts,ne),fl.returnEnd?0:Ge.length}function n0(){const ne=[];for(let Ge=re;Ge!==ri;Ge=Ge.parent)Ge.scope&&ne.unshift(Ge.scope);ne.forEach(Ge=>Nn.openNode(Ge))}let Cs={};function Ba(ne,Ge){const Te=Ge&&Ge[0];if(zl+=ne,Te==null)return oi(),0;if(Cs.type==="begin"&&Ge.type==="end"&&Cs.index===Ge.index&&Te===""){if(zl+=Ie.slice(Ge.index,Ge.index+1),!Vl){const Ae=new Error(`0 width match regex (${Pt})`);throw Ae.languageName=Pt,Ae.badRule=Cs.rule,Ae}return 1}if(Cs=Ge,Ge.type==="begin")return l0(Ge);if(Ge.type==="illegal"&&!el){const Ae=new Error('Illegal lexeme "'+Te+'" for mode "'+(re.scope||"<unnamed>")+'"');throw Ae.mode=re,Ae}else if(Ge.type==="end"){const Ae=Lc(Ge);if(Ae!==oe)return Ae}if(Ge.type==="illegal"&&Te==="")return zl+=`
`,1;if(Ya>1e5&&Ya>Ge.index*3)throw new Error("potential infinite loop, way more iterations than matches");return zl+=Te,Te.length}const ri=_i(Pt);if(!ri)throw ee(Il.replace("{}",Pt)),new Error('Unknown language: "'+Pt+'"');const Ir=yn(ri);let Nl="",re=il||Ir;const Zo={},Nn=new he.__emitter(he);n0();let zl="",Rn=0,Gi=0,Ya=0,Xi=!1;try{if(ri.__emitTokens)ri.__emitTokens(Ie,Nn);else{for(re.matcher.considerAll();;){Ya++,Xi?Xi=!1:re.matcher.considerAll(),re.matcher.lastIndex=Gi;const ne=re.matcher.exec(Ie);if(!ne)break;const Ge=Ie.substring(Gi,ne.index),Te=Ba(Ge,ne);Gi=ne.index+Te}Ba(Ie.substring(Gi))}return Nn.finalize(),Nl=Nn.toHTML(),{language:Pt,value:Nl,relevance:Rn,illegal:!1,_emitter:Nn,_top:re}}catch(ne){if(ne.message&&ne.message.includes("Illegal"))return{language:Pt,value:gl(Ie),illegal:!0,relevance:0,_illegalBy:{message:ne.message,index:Gi,context:Ie.slice(Gi-100,Gi+100),mode:ne.mode,resultSoFar:Nl},_emitter:Nn};if(Vl)return{language:Pt,value:gl(Ie),illegal:!1,relevance:0,errorRaised:ne,_emitter:Nn,_top:re};throw ne}}function Ds(Pt){const Ie={value:gl(Pt),illegal:!1,relevance:0,_top:Ne,_emitter:new he.__emitter(he)};return Ie._emitter.addText(Pt),Ie}function Na(Pt,Ie){Ie=Ie||he.languages||Object.keys(ft);const el=Ds(Pt),il=Ie.filter(_i).filter(Ma).map(oi=>Bi(oi,Pt,!1));il.unshift(el);const sn=il.sort((oi,cl)=>{if(oi.relevance!==cl.relevance)return cl.relevance-oi.relevance;if(oi.language&&cl.language){if(_i(oi.language).supersetOf===cl.language)return 1;if(_i(cl.language).supersetOf===oi.language)return-1}return 0}),[ke,js]=sn,bo=ke;return bo.secondBest=js,bo}function Xb(Pt,Ie,el){const il=Ie&&ce[Ie]||el;Pt.classList.add("hljs"),Pt.classList.add(`language-${il}`)}function Zs(Pt){let Ie=null;const el=ul(Pt);if(de(el))return;if(Xa("before:highlightElement",{el:Pt,language:el}),Pt.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Pt);return}if(Pt.children.length>0&&(he.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Pt)),he.throwUnescapedHTML))throw new wn("One of your code blocks includes unescaped HTML.",Pt.innerHTML);Ie=Pt;const il=Ie.textContent,sn=el?kl(il,{language:el,ignoreIllegals:!0}):Na(il);Pt.innerHTML=sn.value,Pt.dataset.highlighted="yes",Xb(Pt,el,sn.language),Pt.result={language:sn.language,re:sn.relevance,relevance:sn.relevance},sn.secondBest&&(Pt.secondBest={language:sn.secondBest.language,relevance:sn.secondBest.relevance}),Xa("after:highlightElement",{el:Pt,result:sn,text:il})}function Tc(Pt){he=ks(he,Pt)}const ci=()=>{Ai(),It("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ho(){Ai(),It("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let qd=!1;function Ai(){function Pt(){Ai()}if(document.readyState==="loading"){qd||window.addEventListener("DOMContentLoaded",Pt,!1),qd=!0;return}document.querySelectorAll(he.cssSelector).forEach(Zs)}function $d(Pt,Ie){let el=null;try{el=Ie(nt)}catch(il){if(ee("Language definition for '{}' could not be registered.".replace("{}",Pt)),Vl)ee(il);else throw il;el=Ne}el.name||(el.name=Pt),ft[Pt]=el,el.rawDefinition=Ie.bind(null,nt),el.aliases&&Hl(el.aliases,{languageName:Pt})}function Wa(Pt){delete ft[Pt];for(const Ie of Object.keys(ce))ce[Ie]===Pt&&delete ce[Ie]}function t0(){return Object.keys(ft)}function _i(Pt){return Pt=(Pt||"").toLowerCase(),ft[Pt]||ft[ce[Pt]]}function Hl(Pt,{languageName:Ie}){typeof Pt=="string"&&(Pt=[Pt]),Pt.forEach(el=>{ce[el.toLowerCase()]=Ie})}function Ma(Pt){const Ie=_i(Pt);return Ie&&!Ie.disableAutodetect}function Ml(Pt){Pt["before:highlightBlock"]&&!Pt["before:highlightElement"]&&(Pt["before:highlightElement"]=Ie=>{Pt["before:highlightBlock"](Object.assign({block:Ie.el},Ie))}),Pt["after:highlightBlock"]&&!Pt["after:highlightElement"]&&(Pt["after:highlightElement"]=Ie=>{Pt["after:highlightBlock"](Object.assign({block:Ie.el},Ie))})}function cm(Pt){Ml(Pt),Ke.push(Pt)}function Ga(Pt){const Ie=Ke.indexOf(Pt);Ie!==-1&&Ke.splice(Ie,1)}function Xa(Pt,Ie){const el=Pt;Ke.forEach(function(il){il[el]&&il[el](Ie)})}function Vc(Pt){return It("10.7.0","highlightBlock will be removed entirely in v12.0"),It("10.7.0","Please use highlightElement now."),Zs(Pt)}Object.assign(nt,{highlight:kl,highlightAuto:Na,highlightAll:Ai,highlightElement:Zs,highlightBlock:Vc,configure:Tc,initHighlighting:ci,initHighlightingOnLoad:ho,registerLanguage:$d,unregisterLanguage:Wa,listLanguages:t0,getLanguage:_i,registerAliases:Hl,autoDetection:Ma,inherit:ks,addPlugin:cm,removePlugin:Ga}),nt.debugMode=function(){Vl=!1},nt.safeMode=function(){Vl=!0},nt.versionString=se,nt.regex={concat:X,lookahead:p,either:L,optional:G,anyNumberOfTimes:y};for(const Pt in Pe)typeof Pe[Pt]=="object"&&l(Pe[Pt]);return Object.assign(nt,Pe),nt},fs=ya({});return fs.newInstance=()=>ya({}),aG=fs,fs.HighlightJS=fs,fs.default=fs,aG}var xv=wv();const gv=qu(xv),_L={},Sv="hljs-";function Rv(l){const t=gv.newInstance();return l&&s(l),{highlight:e,highlightAuto:n,listLanguages:i,register:s,registerAlias:a,registered:o};function e(d,u,m){const Z=m||_L,p=typeof Z.prefix=="string"?Z.prefix:Sv;if(!t.getLanguage(d))throw new Error("Unknown language: `"+d+"` is not registered");t.configure({__emitter:kv,classPrefix:p});const y=t.highlight(u,{ignoreIllegals:!0,language:d});if(y.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:y.errorRaised});const G=y._emitter.root,X=G.data;return X.language=y.language,X.relevance=y.relevance,G}function n(d,u){const Z=(u||_L).subset||i();let p=-1,y=0,G;for(;++p<Z.length;){const X=Z[p];if(!t.getLanguage(X))continue;const z=e(X,d,u);z.data&&z.data.relevance!==void 0&&z.data.relevance>y&&(y=z.data.relevance,G=z)}return G||{type:"root",children:[],data:{language:void 0,relevance:y}}}function i(){return t.listLanguages()}function s(d,u){if(typeof d=="string")t.registerLanguage(d,u);else{let m;for(m in d)Object.hasOwn(d,m)&&t.registerLanguage(m,d[m])}}function a(d,u){if(typeof d=="string")t.registerAliases(typeof u=="string"?u:[...u],{languageName:d});else{let m;for(m in d)if(Object.hasOwn(d,m)){const Z=d[m];t.registerAliases(typeof Z=="string"?Z:[...Z],{languageName:m})}}}function o(d){return!!t.getLanguage(d)}}class kv{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const e=this.stack[this.stack.length-1],n=e.children[e.children.length-1];n&&n.type==="text"?n.value+=t:e.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,e){const n=this.stack[this.stack.length-1],i=t.root.children;e?n.children.push({type:"element",tagName:"span",properties:{className:[e]},children:i}):n.children.push(...i)}openNode(t){const e=this,n=t.split(".").map(function(a,o){return o?a+"_".repeat(o):e.options.classPrefix+a}),i=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:n},children:[]};i.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const fv={};function Dv(l){const t=l||fv,e=t.aliases,n=t.detect||!1,i=t.languages||zv,s=t.plainText,a=t.prefix,o=t.subset;let d="hljs";const u=Rv(i);if(e&&u.registerAlias(e),a){const m=a.indexOf("-");d=m===-1?a:a.slice(0,m)}return function(m,Z){G2(m,"element",function(p,y,G){if(p.tagName!=="code"||!G||G.type!=="element"||G.tagName!=="pre")return;const X=jv(p);if(X===!1||!X&&!n||X&&s&&s.includes(X))return;Array.isArray(p.properties.className)||(p.properties.className=[]),p.properties.className.includes(d)||p.properties.className.unshift(d);const z=hw(p,{whitespace:"pre"});let L;try{L=X?u.highlight(X,z,{prefix:a}):u.highlightAuto(z,{prefix:a,subset:o})}catch(S){const R=S;if(X&&/Unknown language/.test(R.message)){Z.message("Cannot highlight as `"+X+"`, it’s not registered",{ancestors:[G,p],cause:R,place:p.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw R}!X&&L.data&&L.data.language&&p.properties.className.push("language-"+L.data.language),L.children.length>0&&(p.children=L.children)})}}function jv(l){const t=l.properties.className;let e=-1;if(!Array.isArray(t))return;let n;for(;++e<t.length;){const i=String(t[e]);if(i==="no-highlight"||i==="nohighlight")return!1;!n&&i.slice(0,5)==="lang-"&&(n=i.slice(5)),!n&&i.slice(0,9)==="language-"&&(n=i.slice(9))}return n}const qL=/[#.]/g;function Ov(l,t){const e=l||"",n={};let i=0,s,a;for(;i<e.length;){qL.lastIndex=i;const o=qL.exec(e),d=e.slice(i,o?o.index:e.length);d&&(s?s==="#"?n.id=d:Array.isArray(n.className)?n.className.push(d):n.className=[d]:a=d,i+=d.length),o&&(s=o[0],i++)}return{type:"element",tagName:a||t||"div",properties:n,children:[]}}const sX={}.hasOwnProperty;function kw(l,t,e){const n=e&&Uv(e);function i(s,a,...o){let d=-1,u;if(s==null){u={type:"root",children:[]};const m=a;o.unshift(m)}else if(u=Ov(s,t),u.tagName=u.tagName.toLowerCase(),n&&sX.call(n,u.tagName)&&(u.tagName=n[u.tagName]),Cv(a))o.unshift(a);else{let m;for(m in a)sX.call(a,m)&&Fv(l,u.properties,m,a[m])}for(;++d<o.length;)aX(u.children,o[d]);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function Cv(l){if(l===null||typeof l!="object"||Array.isArray(l))return!0;if(typeof l.type!="string")return!1;const t=l,e=Object.keys(l);for(const n of e){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const a of s)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in l&&Array.isArray(l.children))}function Fv(l,t,e,n){const i=m9(l,e);let s=-1,a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=eL(n):i.commaSeparated?a=AV(n):i.commaOrSpaceSeparated?a=eL(AV(n).join(" ")):a=$L(i,i.property,n):Array.isArray(n)?a=n.concat():a=i.property==="style"?Jv(n):String(n);if(Array.isArray(a)){const o=[];for(;++s<a.length;){const d=$L(i,i.property,a[s]);o[s]=d}a=o}if(i.property==="className"&&Array.isArray(t.className)){const o=a;a=t.className.concat(o)}t[i.property]=a}}function aX(l,t){let e=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")l.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++e<t.length;)aX(l,t[e]);else if(typeof t=="object"&&"type"in t)t.type==="root"?aX(l,t.children):l.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function $L(l,t,e){if(typeof e=="string"){if(l.number&&e&&!Number.isNaN(Number(e)))return Number(e);if((l.boolean||l.overloadedBoolean)&&(e===""||RZ(e)===RZ(t)))return!0}return e}function Jv(l){const t=[];let e;for(e in l)sX.call(l,e)&&t.push([e,l[e]].join(": "));return t.join("; ")}function Uv(l){const t={};let e=-1;for(;++e<l.length;)t[l[e].toLowerCase()]=l[e];return t}const Ev=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],vv=kw(h9,"div"),Kv=kw(KW,"g",Ev),cG={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Pv(l,t){return fw(l,{})||{type:"root",children:[]}}function fw(l,t){const e=Hv(l,t);return e&&t.afterTransform&&t.afterTransform(l,e),e}function Hv(l,t){switch(l.nodeType){case 1:return _v(l,t);case 3:return Bv(l);case 8:return Av(l);case 9:return tI(l,t);case 10:return Qv();case 11:return tI(l,t);default:return}}function tI(l,t){return{type:"root",children:Dw(l,t)}}function Qv(){return{type:"doctype"}}function Bv(l){return{type:"text",value:l.nodeValue||""}}function Av(l){return{type:"comment",value:l.nodeValue||""}}function _v(l,t){const e=l.namespaceURI,n=e===cG.svg?Kv:vv,i=e===cG.html?l.tagName.toLowerCase():l.tagName,s=e===cG.html&&i==="template"?l.content:l,a=l.getAttributeNames(),o={};let d=-1;for(;++d<a.length;)o[a[d]]=l.getAttribute(a[d])||"";return n(i,o,Dw(s,t))}function Dw(l,t){const e=l.childNodes,n=[];let i=-1;for(;++i<e.length;){const s=fw(e[i],t);s!==void 0&&n.push(s)}return n}new DOMParser;function qv(l,t){const e=$v(l);return Pv(e)}function $v(l){const t=document.createElement("template");return t.innerHTML=l,t.content}class oa{constructor(t,e,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=n}static range(t,e){return e?!t||!t.loc||!e.loc||t.loc.lexer!==e.loc.lexer?null:new oa(t.loc.lexer,t.loc.start,e.loc.end):t&&t.loc}}class va{constructor(t,e){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=e}range(t,e){return new va(e,oa.range(this,t))}}class Qt{constructor(t,e){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,i,s,a=e&&e.loc;if(a&&a.start<=a.end){var o=a.lexer.input;i=a.start,s=a.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var d=o.slice(i,s).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var m;s+15<o.length?m=o.slice(s,s+15)+"…":m=o.slice(s),n+=u+d+m}var Z=new Error(n);return Z.name="ParseError",Z.__proto__=Qt.prototype,Z.position=i,i!=null&&s!=null&&(Z.length=s-i),Z.rawMessage=t,Z}}Qt.prototype.__proto__=Error.prototype;var t4=function(t,e){return t.indexOf(e)!==-1},e4=function(t,e){return t===void 0?e:t},l4=/([A-Z])/g,n4=function(t){return t.replace(l4,"-$1").toLowerCase()},i4={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},s4=/[&><"']/g;function a4(l){return String(l).replace(s4,t=>i4[t])}var jw=function l(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?l(t.body[0]):t:t.type==="font"?l(t.body):t},c4=function(t){var e=jw(t);return e.type==="mathord"||e.type==="textord"||e.type==="atom"},o4=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},r4=function(t){var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},je={contains:t4,deflt:e4,escape:a4,hyphenate:n4,getBaseElem:jw,isCharacterBox:c4,protocolFromUrl:r4},oG={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:l=>"#"+l},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(l,t)=>(t.push(l),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:l=>Math.max(0,l),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:l=>Math.max(0,l),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:l=>Math.max(0,l),cli:"-e, --max-expand <n>",cliProcessor:l=>l==="Infinity"?1/0:parseInt(l)},globalGroup:{type:"boolean",cli:!1}};function d4(l){if(l.default)return l.default;var t=l.type,e=Array.isArray(t)?t[0]:t;if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class u4{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var e in oG)if(oG.hasOwnProperty(e)){var n=oG[e];this[e]=t[e]!==void 0?n.processor?n.processor(t[e]):t[e]:d4(n)}}reportNonstrict(t,e,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,e,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Qt("LaTeX-incompatible input and strict mode is set to 'error': "+(e+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(e+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+e+" ["+t+"]"))}}useStrictBehavior(t,e,n){var i=this.strict;if(typeof i=="function")try{i=i(t,e,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(e+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+e+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var e=je.protocolFromUrl(t.url);if(e==null)return!1;t.protocol=e}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Br{constructor(t,e,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=e,this.cramped=n}sup(){return no[m4[this.id]]}sub(){return no[h4[this.id]]}fracNum(){return no[b4[this.id]]}fracDen(){return no[Z4[this.id]]}cramp(){return no[p4[this.id]]}text(){return no[y4[this.id]]}isTight(){return this.size>=2}}var d5=0,sW=1,lh=2,pr=3,DZ=4,Ea=5,bb=6,ms=7,no=[new Br(d5,0,!1),new Br(sW,0,!0),new Br(lh,1,!1),new Br(pr,1,!0),new Br(DZ,2,!1),new Br(Ea,2,!0),new Br(bb,3,!1),new Br(ms,3,!0)],m4=[DZ,Ea,DZ,Ea,bb,ms,bb,ms],h4=[Ea,Ea,Ea,Ea,ms,ms,ms,ms],b4=[lh,pr,DZ,Ea,bb,ms,bb,ms],Z4=[pr,pr,Ea,Ea,ms,ms,ms,ms],p4=[sW,sW,pr,pr,Ea,Ea,ms,ms],y4=[d5,sW,lh,pr,lh,pr,lh,pr],Ee={DISPLAY:no[d5],TEXT:no[lh],SCRIPT:no[DZ],SCRIPTSCRIPT:no[bb]},cX=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function N4(l){for(var t=0;t<cX.length;t++)for(var e=cX[t],n=0;n<e.blocks.length;n++){var i=e.blocks[n];if(l>=i[0]&&l<=i[1])return e.name}return null}var WN=[];cX.forEach(l=>l.blocks.forEach(t=>WN.push(...t)));function Ow(l){for(var t=0;t<WN.length;t+=2)if(l>=WN[t]&&l<=WN[t+1])return!0;return!1}var Cm=80,W4=function(t,e){return"M95,"+(622+t+e)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+t/2.075+" -"+t+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+t)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},M4=function(t,e){return"M263,"+(601+t+e)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+t/2.084+" -"+t+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+t)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},G4=function(t,e){return"M983 "+(10+t+e)+`
l`+t/3.13+" -"+t+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},X4=function(t,e){return"M424,"+(2398+t+e)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+t)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+e+`
h400000v`+(40+t)+"h-400000z"},Y4=function(t,e){return"M473,"+(2713+t+e)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+t)+" "+e+"h400000v"+(40+t)+"H1017.7z"},T4=function(t){var e=t/2;return"M400000 "+t+" H0 L"+e+" 0 l65 45 L145 "+(t-80)+" H400000z"},V4=function(t,e,n){var i=n-54-e-t;return"M702 "+(t+e)+"H400000"+(40+t)+`
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+e+"H400000v"+(40+t)+"H742z"},L4=function(t,e,n){e=1e3*e;var i="";switch(t){case"sqrtMain":i=W4(e,Cm);break;case"sqrtSize1":i=M4(e,Cm);break;case"sqrtSize2":i=G4(e,Cm);break;case"sqrtSize3":i=X4(e,Cm);break;case"sqrtSize4":i=Y4(e,Cm);break;case"sqrtTall":i=V4(e,Cm,n)}return i},I4=function(t,e){switch(t){case"⎜":return"M291 0 H417 V"+e+" H291z M291 0 H417 V"+e+" H291z";case"∣":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145z";case"∥":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145z"+("M367 0 H410 V"+e+" H367z M367 0 H410 V"+e+" H367z");case"⎟":return"M457 0 H583 V"+e+" H457z M457 0 H583 V"+e+" H457z";case"⎢":return"M319 0 H403 V"+e+" H319z M319 0 H403 V"+e+" H319z";case"⎥":return"M263 0 H347 V"+e+" H263z M263 0 H347 V"+e+" H263z";case"⎪":return"M384 0 H504 V"+e+" H384z M384 0 H504 V"+e+" H384z";case"⏐":return"M312 0 H355 V"+e+" H312z M312 0 H355 V"+e+" H312z";case"‖":return"M257 0 H300 V"+e+" H257z M257 0 H300 V"+e+" H257z"+("M478 0 H521 V"+e+" H478z M478 0 H521 V"+e+" H478z");default:return""}},eI={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},z4=function(t,e){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+e+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+e+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+e+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+e+" v1759 h84z";case"vert":return"M145 15 v585 v"+e+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-e+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+e+" v585 h43z";case"doublevert":return"M145 15 v585 v"+e+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-e+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+e+` v585 h43z
M367 15 v585 v`+e+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-e+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+e+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+e+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+e+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+e+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+e+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+e+` v602 h84z
M403 1759 V0 H319 V1759 v`+e+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+e+` v602 h84z
M347 1759 V0 h-84 V1759 v`+e+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(e+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(e+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(e+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(e+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Y2{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return je.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),e=0;e<this.children.length;e++)t.appendChild(this.children[e].toNode());return t}toMarkup(){for(var t="",e=0;e<this.children.length;e++)t+=this.children[e].toMarkup();return t}toText(){var t=e=>e.toText();return this.children.map(t).join("")}}var br={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Py={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},lI={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function u5(l,t,e){if(!br[t])throw new Error("Font metrics not found for font: "+t+".");var n=l.charCodeAt(0),i=br[t][n];if(!i&&l[0]in lI&&(n=lI[l[0]].charCodeAt(0),i=br[t][n]),!i&&e==="text"&&Ow(n)&&(i=br[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var rG={};function w4(l){var t;if(l>=5?t=0:l>=3?t=1:t=2,!rG[t]){var e=rG[t]={cssEmPerMu:Py.quad[t]/18};for(var n in Py)Py.hasOwnProperty(n)&&(e[n]=Py[n][t])}return rG[t]}var x4=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],nI=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],iI=function(t,e){return e.size<2?t:x4[t-1][e.size-1]};class Oo{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Oo.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=nI[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var e={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return new Oo(e)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:iI(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:nI[t-1]})}havingBaseStyle(t){t=t||this.style.text();var e=iI(Oo.BASESIZE,t);return this.size===e&&this.textSize===Oo.BASESIZE&&this.style===t?this:this.extend({style:t,size:e})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Oo.BASESIZE?["sizing","reset-size"+this.size,"size"+Oo.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=w4(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Oo.BASESIZE=6;var oX={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},g4={ex:!0,em:!0,mu:!0},Cw=function(t){return typeof t!="string"&&(t=t.unit),t in oX||t in g4||t==="ex"},Vn=function(t,e){var n;if(t.unit in oX)n=oX[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if(t.unit==="mu")n=e.fontMetrics().cssEmPerMu;else{var i;if(e.style.isTight()?i=e.havingStyle(e.style.text()):i=e,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new Qt("Invalid unit: '"+t.unit+"'");i!==e&&(n*=i.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*n,e.maxSize)},ie=function(t){return+t.toFixed(4)+"em"},Fd=function(t){return t.filter(e=>e).join(" ")},Fw=function(t,e,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},e){e.style.isTight()&&this.classes.push("mtight");var i=e.getColor();i&&(this.style.color=i)}},Jw=function(t){var e=document.createElement(t);e.className=Fd(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&e.setAttribute(i,this.attributes[i]);for(var s=0;s<this.children.length;s++)e.appendChild(this.children[s].toNode());return e},S4=/[\s"'>/=\x00-\x1f]/,Uw=function(t){var e="<"+t;this.classes.length&&(e+=' class="'+je.escape(Fd(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=je.hyphenate(i)+":"+this.style[i]+";");n&&(e+=' style="'+je.escape(n)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(S4.test(s))throw new Qt("Invalid attribute name '"+s+"'");e+=" "+s+'="'+je.escape(this.attributes[s])+'"'}e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</"+t+">",e};class AW{constructor(t,e,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Fw.call(this,t,n,i),this.children=e||[]}setAttribute(t,e){this.attributes[t]=e}hasClass(t){return je.contains(this.classes,t)}toNode(){return Jw.call(this,"span")}toMarkup(){return Uw.call(this,"span")}}class Ew{constructor(t,e,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Fw.call(this,e,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,e){this.attributes[t]=e}hasClass(t){return je.contains(this.classes,t)}toNode(){return Jw.call(this,"a")}toMarkup(){return Uw.call(this,"a")}}class R4{constructor(t,e,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=e,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return je.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);return t}toMarkup(){var t='<img src="'+je.escape(this.src)+'"'+(' alt="'+je.escape(this.alt)+'"'),e="";for(var n in this.style)this.style.hasOwnProperty(n)&&(e+=je.hyphenate(n)+":"+this.style[n]+";");return e&&(t+=' style="'+je.escape(e)+'"'),t+="'/>",t}}var k4={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Mc{constructor(t,e,n,i,s,a,o,d){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=e||0,this.depth=n||0,this.italic=i||0,this.skew=s||0,this.width=a||0,this.classes=o||[],this.style=d||{},this.maxFontSize=0;var u=N4(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=k4[this.text])}hasClass(t){return je.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),e=null;this.italic>0&&(e=document.createElement("span"),e.style.marginRight=ie(this.italic)),this.classes.length>0&&(e=e||document.createElement("span"),e.className=Fd(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(e=e||document.createElement("span"),e.style[n]=this.style[n]);return e?(e.appendChild(t),e):t}toMarkup(){var t=!1,e="<span";this.classes.length&&(t=!0,e+=' class="',e+=je.escape(Fd(this.classes)),e+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=je.hyphenate(i)+":"+this.style[i]+";");n&&(t=!0,e+=' style="'+je.escape(n)+'"');var s=je.escape(this.text);return t?(e+=">",e+=s,e+="</span>",e):s}}class Jd{constructor(t,e){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=e||{}}toNode(){var t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)e.appendChild(this.children[i].toNode());return e}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="'+je.escape(this.attributes[e])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class Qu{constructor(t,e){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=e}toNode(){var t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",eI[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+je.escape(this.alternate)+'"/>':'<path d="'+je.escape(eI[this.pathName])+'"/>'}}class sI{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);return e}toMarkup(){var t="<line";for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="'+je.escape(this.attributes[e])+'"');return t+="/>",t}}function aI(l){if(l instanceof Mc)return l;throw new Error("Expected symbolNode but got "+String(l)+".")}function f4(l){if(l instanceof AW)return l;throw new Error("Expected span<HtmlDomNode> but got "+String(l)+".")}var D4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},j4={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ql={math:{},text:{}};function T(l,t,e,n,i,s){ql[l][i]={font:t,group:e,replace:n},s&&n&&(ql[l][n]=ql[l][i])}var w="math",Ct="text",f="main",q="ams",mn="accent-token",Xe="bin",bs="close",Mb="inner",Ue="mathord",An="op-token",ba="open",_W="punct",tt="rel",Lr="spacing",rt="textord";T(w,f,tt,"≡","\\equiv",!0);T(w,f,tt,"≺","\\prec",!0);T(w,f,tt,"≻","\\succ",!0);T(w,f,tt,"∼","\\sim",!0);T(w,f,tt,"⊥","\\perp");T(w,f,tt,"⪯","\\preceq",!0);T(w,f,tt,"⪰","\\succeq",!0);T(w,f,tt,"≃","\\simeq",!0);T(w,f,tt,"∣","\\mid",!0);T(w,f,tt,"≪","\\ll",!0);T(w,f,tt,"≫","\\gg",!0);T(w,f,tt,"≍","\\asymp",!0);T(w,f,tt,"∥","\\parallel");T(w,f,tt,"⋈","\\bowtie",!0);T(w,f,tt,"⌣","\\smile",!0);T(w,f,tt,"⊑","\\sqsubseteq",!0);T(w,f,tt,"⊒","\\sqsupseteq",!0);T(w,f,tt,"≐","\\doteq",!0);T(w,f,tt,"⌢","\\frown",!0);T(w,f,tt,"∋","\\ni",!0);T(w,f,tt,"∝","\\propto",!0);T(w,f,tt,"⊢","\\vdash",!0);T(w,f,tt,"⊣","\\dashv",!0);T(w,f,tt,"∋","\\owns");T(w,f,_W,".","\\ldotp");T(w,f,_W,"⋅","\\cdotp");T(w,f,rt,"#","\\#");T(Ct,f,rt,"#","\\#");T(w,f,rt,"&","\\&");T(Ct,f,rt,"&","\\&");T(w,f,rt,"ℵ","\\aleph",!0);T(w,f,rt,"∀","\\forall",!0);T(w,f,rt,"ℏ","\\hbar",!0);T(w,f,rt,"∃","\\exists",!0);T(w,f,rt,"∇","\\nabla",!0);T(w,f,rt,"♭","\\flat",!0);T(w,f,rt,"ℓ","\\ell",!0);T(w,f,rt,"♮","\\natural",!0);T(w,f,rt,"♣","\\clubsuit",!0);T(w,f,rt,"℘","\\wp",!0);T(w,f,rt,"♯","\\sharp",!0);T(w,f,rt,"♢","\\diamondsuit",!0);T(w,f,rt,"ℜ","\\Re",!0);T(w,f,rt,"♡","\\heartsuit",!0);T(w,f,rt,"ℑ","\\Im",!0);T(w,f,rt,"♠","\\spadesuit",!0);T(w,f,rt,"§","\\S",!0);T(Ct,f,rt,"§","\\S");T(w,f,rt,"¶","\\P",!0);T(Ct,f,rt,"¶","\\P");T(w,f,rt,"†","\\dag");T(Ct,f,rt,"†","\\dag");T(Ct,f,rt,"†","\\textdagger");T(w,f,rt,"‡","\\ddag");T(Ct,f,rt,"‡","\\ddag");T(Ct,f,rt,"‡","\\textdaggerdbl");T(w,f,bs,"⎱","\\rmoustache",!0);T(w,f,ba,"⎰","\\lmoustache",!0);T(w,f,bs,"⟯","\\rgroup",!0);T(w,f,ba,"⟮","\\lgroup",!0);T(w,f,Xe,"∓","\\mp",!0);T(w,f,Xe,"⊖","\\ominus",!0);T(w,f,Xe,"⊎","\\uplus",!0);T(w,f,Xe,"⊓","\\sqcap",!0);T(w,f,Xe,"∗","\\ast");T(w,f,Xe,"⊔","\\sqcup",!0);T(w,f,Xe,"◯","\\bigcirc",!0);T(w,f,Xe,"∙","\\bullet",!0);T(w,f,Xe,"‡","\\ddagger");T(w,f,Xe,"≀","\\wr",!0);T(w,f,Xe,"⨿","\\amalg");T(w,f,Xe,"&","\\And");T(w,f,tt,"⟵","\\longleftarrow",!0);T(w,f,tt,"⇐","\\Leftarrow",!0);T(w,f,tt,"⟸","\\Longleftarrow",!0);T(w,f,tt,"⟶","\\longrightarrow",!0);T(w,f,tt,"⇒","\\Rightarrow",!0);T(w,f,tt,"⟹","\\Longrightarrow",!0);T(w,f,tt,"↔","\\leftrightarrow",!0);T(w,f,tt,"⟷","\\longleftrightarrow",!0);T(w,f,tt,"⇔","\\Leftrightarrow",!0);T(w,f,tt,"⟺","\\Longleftrightarrow",!0);T(w,f,tt,"↦","\\mapsto",!0);T(w,f,tt,"⟼","\\longmapsto",!0);T(w,f,tt,"↗","\\nearrow",!0);T(w,f,tt,"↩","\\hookleftarrow",!0);T(w,f,tt,"↪","\\hookrightarrow",!0);T(w,f,tt,"↘","\\searrow",!0);T(w,f,tt,"↼","\\leftharpoonup",!0);T(w,f,tt,"⇀","\\rightharpoonup",!0);T(w,f,tt,"↙","\\swarrow",!0);T(w,f,tt,"↽","\\leftharpoondown",!0);T(w,f,tt,"⇁","\\rightharpoondown",!0);T(w,f,tt,"↖","\\nwarrow",!0);T(w,f,tt,"⇌","\\rightleftharpoons",!0);T(w,q,tt,"≮","\\nless",!0);T(w,q,tt,"","\\@nleqslant");T(w,q,tt,"","\\@nleqq");T(w,q,tt,"⪇","\\lneq",!0);T(w,q,tt,"≨","\\lneqq",!0);T(w,q,tt,"","\\@lvertneqq");T(w,q,tt,"⋦","\\lnsim",!0);T(w,q,tt,"⪉","\\lnapprox",!0);T(w,q,tt,"⊀","\\nprec",!0);T(w,q,tt,"⋠","\\npreceq",!0);T(w,q,tt,"⋨","\\precnsim",!0);T(w,q,tt,"⪹","\\precnapprox",!0);T(w,q,tt,"≁","\\nsim",!0);T(w,q,tt,"","\\@nshortmid");T(w,q,tt,"∤","\\nmid",!0);T(w,q,tt,"⊬","\\nvdash",!0);T(w,q,tt,"⊭","\\nvDash",!0);T(w,q,tt,"⋪","\\ntriangleleft");T(w,q,tt,"⋬","\\ntrianglelefteq",!0);T(w,q,tt,"⊊","\\subsetneq",!0);T(w,q,tt,"","\\@varsubsetneq");T(w,q,tt,"⫋","\\subsetneqq",!0);T(w,q,tt,"","\\@varsubsetneqq");T(w,q,tt,"≯","\\ngtr",!0);T(w,q,tt,"","\\@ngeqslant");T(w,q,tt,"","\\@ngeqq");T(w,q,tt,"⪈","\\gneq",!0);T(w,q,tt,"≩","\\gneqq",!0);T(w,q,tt,"","\\@gvertneqq");T(w,q,tt,"⋧","\\gnsim",!0);T(w,q,tt,"⪊","\\gnapprox",!0);T(w,q,tt,"⊁","\\nsucc",!0);T(w,q,tt,"⋡","\\nsucceq",!0);T(w,q,tt,"⋩","\\succnsim",!0);T(w,q,tt,"⪺","\\succnapprox",!0);T(w,q,tt,"≆","\\ncong",!0);T(w,q,tt,"","\\@nshortparallel");T(w,q,tt,"∦","\\nparallel",!0);T(w,q,tt,"⊯","\\nVDash",!0);T(w,q,tt,"⋫","\\ntriangleright");T(w,q,tt,"⋭","\\ntrianglerighteq",!0);T(w,q,tt,"","\\@nsupseteqq");T(w,q,tt,"⊋","\\supsetneq",!0);T(w,q,tt,"","\\@varsupsetneq");T(w,q,tt,"⫌","\\supsetneqq",!0);T(w,q,tt,"","\\@varsupsetneqq");T(w,q,tt,"⊮","\\nVdash",!0);T(w,q,tt,"⪵","\\precneqq",!0);T(w,q,tt,"⪶","\\succneqq",!0);T(w,q,tt,"","\\@nsubseteqq");T(w,q,Xe,"⊴","\\unlhd");T(w,q,Xe,"⊵","\\unrhd");T(w,q,tt,"↚","\\nleftarrow",!0);T(w,q,tt,"↛","\\nrightarrow",!0);T(w,q,tt,"⇍","\\nLeftarrow",!0);T(w,q,tt,"⇏","\\nRightarrow",!0);T(w,q,tt,"↮","\\nleftrightarrow",!0);T(w,q,tt,"⇎","\\nLeftrightarrow",!0);T(w,q,tt,"△","\\vartriangle");T(w,q,rt,"ℏ","\\hslash");T(w,q,rt,"▽","\\triangledown");T(w,q,rt,"◊","\\lozenge");T(w,q,rt,"Ⓢ","\\circledS");T(w,q,rt,"®","\\circledR");T(Ct,q,rt,"®","\\circledR");T(w,q,rt,"∡","\\measuredangle",!0);T(w,q,rt,"∄","\\nexists");T(w,q,rt,"℧","\\mho");T(w,q,rt,"Ⅎ","\\Finv",!0);T(w,q,rt,"⅁","\\Game",!0);T(w,q,rt,"‵","\\backprime");T(w,q,rt,"▲","\\blacktriangle");T(w,q,rt,"▼","\\blacktriangledown");T(w,q,rt,"■","\\blacksquare");T(w,q,rt,"⧫","\\blacklozenge");T(w,q,rt,"★","\\bigstar");T(w,q,rt,"∢","\\sphericalangle",!0);T(w,q,rt,"∁","\\complement",!0);T(w,q,rt,"ð","\\eth",!0);T(Ct,f,rt,"ð","ð");T(w,q,rt,"╱","\\diagup");T(w,q,rt,"╲","\\diagdown");T(w,q,rt,"□","\\square");T(w,q,rt,"□","\\Box");T(w,q,rt,"◊","\\Diamond");T(w,q,rt,"¥","\\yen",!0);T(Ct,q,rt,"¥","\\yen",!0);T(w,q,rt,"✓","\\checkmark",!0);T(Ct,q,rt,"✓","\\checkmark");T(w,q,rt,"ℶ","\\beth",!0);T(w,q,rt,"ℸ","\\daleth",!0);T(w,q,rt,"ℷ","\\gimel",!0);T(w,q,rt,"ϝ","\\digamma",!0);T(w,q,rt,"ϰ","\\varkappa");T(w,q,ba,"┌","\\@ulcorner",!0);T(w,q,bs,"┐","\\@urcorner",!0);T(w,q,ba,"└","\\@llcorner",!0);T(w,q,bs,"┘","\\@lrcorner",!0);T(w,q,tt,"≦","\\leqq",!0);T(w,q,tt,"⩽","\\leqslant",!0);T(w,q,tt,"⪕","\\eqslantless",!0);T(w,q,tt,"≲","\\lesssim",!0);T(w,q,tt,"⪅","\\lessapprox",!0);T(w,q,tt,"≊","\\approxeq",!0);T(w,q,Xe,"⋖","\\lessdot");T(w,q,tt,"⋘","\\lll",!0);T(w,q,tt,"≶","\\lessgtr",!0);T(w,q,tt,"⋚","\\lesseqgtr",!0);T(w,q,tt,"⪋","\\lesseqqgtr",!0);T(w,q,tt,"≑","\\doteqdot");T(w,q,tt,"≓","\\risingdotseq",!0);T(w,q,tt,"≒","\\fallingdotseq",!0);T(w,q,tt,"∽","\\backsim",!0);T(w,q,tt,"⋍","\\backsimeq",!0);T(w,q,tt,"⫅","\\subseteqq",!0);T(w,q,tt,"⋐","\\Subset",!0);T(w,q,tt,"⊏","\\sqsubset",!0);T(w,q,tt,"≼","\\preccurlyeq",!0);T(w,q,tt,"⋞","\\curlyeqprec",!0);T(w,q,tt,"≾","\\precsim",!0);T(w,q,tt,"⪷","\\precapprox",!0);T(w,q,tt,"⊲","\\vartriangleleft");T(w,q,tt,"⊴","\\trianglelefteq");T(w,q,tt,"⊨","\\vDash",!0);T(w,q,tt,"⊪","\\Vvdash",!0);T(w,q,tt,"⌣","\\smallsmile");T(w,q,tt,"⌢","\\smallfrown");T(w,q,tt,"≏","\\bumpeq",!0);T(w,q,tt,"≎","\\Bumpeq",!0);T(w,q,tt,"≧","\\geqq",!0);T(w,q,tt,"⩾","\\geqslant",!0);T(w,q,tt,"⪖","\\eqslantgtr",!0);T(w,q,tt,"≳","\\gtrsim",!0);T(w,q,tt,"⪆","\\gtrapprox",!0);T(w,q,Xe,"⋗","\\gtrdot");T(w,q,tt,"⋙","\\ggg",!0);T(w,q,tt,"≷","\\gtrless",!0);T(w,q,tt,"⋛","\\gtreqless",!0);T(w,q,tt,"⪌","\\gtreqqless",!0);T(w,q,tt,"≖","\\eqcirc",!0);T(w,q,tt,"≗","\\circeq",!0);T(w,q,tt,"≜","\\triangleq",!0);T(w,q,tt,"∼","\\thicksim");T(w,q,tt,"≈","\\thickapprox");T(w,q,tt,"⫆","\\supseteqq",!0);T(w,q,tt,"⋑","\\Supset",!0);T(w,q,tt,"⊐","\\sqsupset",!0);T(w,q,tt,"≽","\\succcurlyeq",!0);T(w,q,tt,"⋟","\\curlyeqsucc",!0);T(w,q,tt,"≿","\\succsim",!0);T(w,q,tt,"⪸","\\succapprox",!0);T(w,q,tt,"⊳","\\vartriangleright");T(w,q,tt,"⊵","\\trianglerighteq");T(w,q,tt,"⊩","\\Vdash",!0);T(w,q,tt,"∣","\\shortmid");T(w,q,tt,"∥","\\shortparallel");T(w,q,tt,"≬","\\between",!0);T(w,q,tt,"⋔","\\pitchfork",!0);T(w,q,tt,"∝","\\varpropto");T(w,q,tt,"◀","\\blacktriangleleft");T(w,q,tt,"∴","\\therefore",!0);T(w,q,tt,"∍","\\backepsilon");T(w,q,tt,"▶","\\blacktriangleright");T(w,q,tt,"∵","\\because",!0);T(w,q,tt,"⋘","\\llless");T(w,q,tt,"⋙","\\gggtr");T(w,q,Xe,"⊲","\\lhd");T(w,q,Xe,"⊳","\\rhd");T(w,q,tt,"≂","\\eqsim",!0);T(w,f,tt,"⋈","\\Join");T(w,q,tt,"≑","\\Doteq",!0);T(w,q,Xe,"∔","\\dotplus",!0);T(w,q,Xe,"∖","\\smallsetminus");T(w,q,Xe,"⋒","\\Cap",!0);T(w,q,Xe,"⋓","\\Cup",!0);T(w,q,Xe,"⩞","\\doublebarwedge",!0);T(w,q,Xe,"⊟","\\boxminus",!0);T(w,q,Xe,"⊞","\\boxplus",!0);T(w,q,Xe,"⋇","\\divideontimes",!0);T(w,q,Xe,"⋉","\\ltimes",!0);T(w,q,Xe,"⋊","\\rtimes",!0);T(w,q,Xe,"⋋","\\leftthreetimes",!0);T(w,q,Xe,"⋌","\\rightthreetimes",!0);T(w,q,Xe,"⋏","\\curlywedge",!0);T(w,q,Xe,"⋎","\\curlyvee",!0);T(w,q,Xe,"⊝","\\circleddash",!0);T(w,q,Xe,"⊛","\\circledast",!0);T(w,q,Xe,"⋅","\\centerdot");T(w,q,Xe,"⊺","\\intercal",!0);T(w,q,Xe,"⋒","\\doublecap");T(w,q,Xe,"⋓","\\doublecup");T(w,q,Xe,"⊠","\\boxtimes",!0);T(w,q,tt,"⇢","\\dashrightarrow",!0);T(w,q,tt,"⇠","\\dashleftarrow",!0);T(w,q,tt,"⇇","\\leftleftarrows",!0);T(w,q,tt,"⇆","\\leftrightarrows",!0);T(w,q,tt,"⇚","\\Lleftarrow",!0);T(w,q,tt,"↞","\\twoheadleftarrow",!0);T(w,q,tt,"↢","\\leftarrowtail",!0);T(w,q,tt,"↫","\\looparrowleft",!0);T(w,q,tt,"⇋","\\leftrightharpoons",!0);T(w,q,tt,"↶","\\curvearrowleft",!0);T(w,q,tt,"↺","\\circlearrowleft",!0);T(w,q,tt,"↰","\\Lsh",!0);T(w,q,tt,"⇈","\\upuparrows",!0);T(w,q,tt,"↿","\\upharpoonleft",!0);T(w,q,tt,"⇃","\\downharpoonleft",!0);T(w,f,tt,"⊶","\\origof",!0);T(w,f,tt,"⊷","\\imageof",!0);T(w,q,tt,"⊸","\\multimap",!0);T(w,q,tt,"↭","\\leftrightsquigarrow",!0);T(w,q,tt,"⇉","\\rightrightarrows",!0);T(w,q,tt,"⇄","\\rightleftarrows",!0);T(w,q,tt,"↠","\\twoheadrightarrow",!0);T(w,q,tt,"↣","\\rightarrowtail",!0);T(w,q,tt,"↬","\\looparrowright",!0);T(w,q,tt,"↷","\\curvearrowright",!0);T(w,q,tt,"↻","\\circlearrowright",!0);T(w,q,tt,"↱","\\Rsh",!0);T(w,q,tt,"⇊","\\downdownarrows",!0);T(w,q,tt,"↾","\\upharpoonright",!0);T(w,q,tt,"⇂","\\downharpoonright",!0);T(w,q,tt,"⇝","\\rightsquigarrow",!0);T(w,q,tt,"⇝","\\leadsto");T(w,q,tt,"⇛","\\Rrightarrow",!0);T(w,q,tt,"↾","\\restriction");T(w,f,rt,"‘","`");T(w,f,rt,"$","\\$");T(Ct,f,rt,"$","\\$");T(Ct,f,rt,"$","\\textdollar");T(w,f,rt,"%","\\%");T(Ct,f,rt,"%","\\%");T(w,f,rt,"_","\\_");T(Ct,f,rt,"_","\\_");T(Ct,f,rt,"_","\\textunderscore");T(w,f,rt,"∠","\\angle",!0);T(w,f,rt,"∞","\\infty",!0);T(w,f,rt,"′","\\prime");T(w,f,rt,"△","\\triangle");T(w,f,rt,"Γ","\\Gamma",!0);T(w,f,rt,"Δ","\\Delta",!0);T(w,f,rt,"Θ","\\Theta",!0);T(w,f,rt,"Λ","\\Lambda",!0);T(w,f,rt,"Ξ","\\Xi",!0);T(w,f,rt,"Π","\\Pi",!0);T(w,f,rt,"Σ","\\Sigma",!0);T(w,f,rt,"Υ","\\Upsilon",!0);T(w,f,rt,"Φ","\\Phi",!0);T(w,f,rt,"Ψ","\\Psi",!0);T(w,f,rt,"Ω","\\Omega",!0);T(w,f,rt,"A","Α");T(w,f,rt,"B","Β");T(w,f,rt,"E","Ε");T(w,f,rt,"Z","Ζ");T(w,f,rt,"H","Η");T(w,f,rt,"I","Ι");T(w,f,rt,"K","Κ");T(w,f,rt,"M","Μ");T(w,f,rt,"N","Ν");T(w,f,rt,"O","Ο");T(w,f,rt,"P","Ρ");T(w,f,rt,"T","Τ");T(w,f,rt,"X","Χ");T(w,f,rt,"¬","\\neg",!0);T(w,f,rt,"¬","\\lnot");T(w,f,rt,"⊤","\\top");T(w,f,rt,"⊥","\\bot");T(w,f,rt,"∅","\\emptyset");T(w,q,rt,"∅","\\varnothing");T(w,f,Ue,"α","\\alpha",!0);T(w,f,Ue,"β","\\beta",!0);T(w,f,Ue,"γ","\\gamma",!0);T(w,f,Ue,"δ","\\delta",!0);T(w,f,Ue,"ϵ","\\epsilon",!0);T(w,f,Ue,"ζ","\\zeta",!0);T(w,f,Ue,"η","\\eta",!0);T(w,f,Ue,"θ","\\theta",!0);T(w,f,Ue,"ι","\\iota",!0);T(w,f,Ue,"κ","\\kappa",!0);T(w,f,Ue,"λ","\\lambda",!0);T(w,f,Ue,"μ","\\mu",!0);T(w,f,Ue,"ν","\\nu",!0);T(w,f,Ue,"ξ","\\xi",!0);T(w,f,Ue,"ο","\\omicron",!0);T(w,f,Ue,"π","\\pi",!0);T(w,f,Ue,"ρ","\\rho",!0);T(w,f,Ue,"σ","\\sigma",!0);T(w,f,Ue,"τ","\\tau",!0);T(w,f,Ue,"υ","\\upsilon",!0);T(w,f,Ue,"ϕ","\\phi",!0);T(w,f,Ue,"χ","\\chi",!0);T(w,f,Ue,"ψ","\\psi",!0);T(w,f,Ue,"ω","\\omega",!0);T(w,f,Ue,"ε","\\varepsilon",!0);T(w,f,Ue,"ϑ","\\vartheta",!0);T(w,f,Ue,"ϖ","\\varpi",!0);T(w,f,Ue,"ϱ","\\varrho",!0);T(w,f,Ue,"ς","\\varsigma",!0);T(w,f,Ue,"φ","\\varphi",!0);T(w,f,Xe,"∗","*",!0);T(w,f,Xe,"+","+");T(w,f,Xe,"−","-",!0);T(w,f,Xe,"⋅","\\cdot",!0);T(w,f,Xe,"∘","\\circ",!0);T(w,f,Xe,"÷","\\div",!0);T(w,f,Xe,"±","\\pm",!0);T(w,f,Xe,"×","\\times",!0);T(w,f,Xe,"∩","\\cap",!0);T(w,f,Xe,"∪","\\cup",!0);T(w,f,Xe,"∖","\\setminus",!0);T(w,f,Xe,"∧","\\land");T(w,f,Xe,"∨","\\lor");T(w,f,Xe,"∧","\\wedge",!0);T(w,f,Xe,"∨","\\vee",!0);T(w,f,rt,"√","\\surd");T(w,f,ba,"⟨","\\langle",!0);T(w,f,ba,"∣","\\lvert");T(w,f,ba,"∥","\\lVert");T(w,f,bs,"?","?");T(w,f,bs,"!","!");T(w,f,bs,"⟩","\\rangle",!0);T(w,f,bs,"∣","\\rvert");T(w,f,bs,"∥","\\rVert");T(w,f,tt,"=","=");T(w,f,tt,":",":");T(w,f,tt,"≈","\\approx",!0);T(w,f,tt,"≅","\\cong",!0);T(w,f,tt,"≥","\\ge");T(w,f,tt,"≥","\\geq",!0);T(w,f,tt,"←","\\gets");T(w,f,tt,">","\\gt",!0);T(w,f,tt,"∈","\\in",!0);T(w,f,tt,"","\\@not");T(w,f,tt,"⊂","\\subset",!0);T(w,f,tt,"⊃","\\supset",!0);T(w,f,tt,"⊆","\\subseteq",!0);T(w,f,tt,"⊇","\\supseteq",!0);T(w,q,tt,"⊈","\\nsubseteq",!0);T(w,q,tt,"⊉","\\nsupseteq",!0);T(w,f,tt,"⊨","\\models");T(w,f,tt,"←","\\leftarrow",!0);T(w,f,tt,"≤","\\le");T(w,f,tt,"≤","\\leq",!0);T(w,f,tt,"<","\\lt",!0);T(w,f,tt,"→","\\rightarrow",!0);T(w,f,tt,"→","\\to");T(w,q,tt,"≱","\\ngeq",!0);T(w,q,tt,"≰","\\nleq",!0);T(w,f,Lr," ","\\ ");T(w,f,Lr," ","\\space");T(w,f,Lr," ","\\nobreakspace");T(Ct,f,Lr," ","\\ ");T(Ct,f,Lr," "," ");T(Ct,f,Lr," ","\\space");T(Ct,f,Lr," ","\\nobreakspace");T(w,f,Lr,null,"\\nobreak");T(w,f,Lr,null,"\\allowbreak");T(w,f,_W,",",",");T(w,f,_W,";",";");T(w,q,Xe,"⊼","\\barwedge",!0);T(w,q,Xe,"⊻","\\veebar",!0);T(w,f,Xe,"⊙","\\odot",!0);T(w,f,Xe,"⊕","\\oplus",!0);T(w,f,Xe,"⊗","\\otimes",!0);T(w,f,rt,"∂","\\partial",!0);T(w,f,Xe,"⊘","\\oslash",!0);T(w,q,Xe,"⊚","\\circledcirc",!0);T(w,q,Xe,"⊡","\\boxdot",!0);T(w,f,Xe,"△","\\bigtriangleup");T(w,f,Xe,"▽","\\bigtriangledown");T(w,f,Xe,"†","\\dagger");T(w,f,Xe,"⋄","\\diamond");T(w,f,Xe,"⋆","\\star");T(w,f,Xe,"◃","\\triangleleft");T(w,f,Xe,"▹","\\triangleright");T(w,f,ba,"{","\\{");T(Ct,f,rt,"{","\\{");T(Ct,f,rt,"{","\\textbraceleft");T(w,f,bs,"}","\\}");T(Ct,f,rt,"}","\\}");T(Ct,f,rt,"}","\\textbraceright");T(w,f,ba,"{","\\lbrace");T(w,f,bs,"}","\\rbrace");T(w,f,ba,"[","\\lbrack",!0);T(Ct,f,rt,"[","\\lbrack",!0);T(w,f,bs,"]","\\rbrack",!0);T(Ct,f,rt,"]","\\rbrack",!0);T(w,f,ba,"(","\\lparen",!0);T(w,f,bs,")","\\rparen",!0);T(Ct,f,rt,"<","\\textless",!0);T(Ct,f,rt,">","\\textgreater",!0);T(w,f,ba,"⌊","\\lfloor",!0);T(w,f,bs,"⌋","\\rfloor",!0);T(w,f,ba,"⌈","\\lceil",!0);T(w,f,bs,"⌉","\\rceil",!0);T(w,f,rt,"\\","\\backslash");T(w,f,rt,"∣","|");T(w,f,rt,"∣","\\vert");T(Ct,f,rt,"|","\\textbar",!0);T(w,f,rt,"∥","\\|");T(w,f,rt,"∥","\\Vert");T(Ct,f,rt,"∥","\\textbardbl");T(Ct,f,rt,"~","\\textasciitilde");T(Ct,f,rt,"\\","\\textbackslash");T(Ct,f,rt,"^","\\textasciicircum");T(w,f,tt,"↑","\\uparrow",!0);T(w,f,tt,"⇑","\\Uparrow",!0);T(w,f,tt,"↓","\\downarrow",!0);T(w,f,tt,"⇓","\\Downarrow",!0);T(w,f,tt,"↕","\\updownarrow",!0);T(w,f,tt,"⇕","\\Updownarrow",!0);T(w,f,An,"∐","\\coprod");T(w,f,An,"⋁","\\bigvee");T(w,f,An,"⋀","\\bigwedge");T(w,f,An,"⨄","\\biguplus");T(w,f,An,"⋂","\\bigcap");T(w,f,An,"⋃","\\bigcup");T(w,f,An,"∫","\\int");T(w,f,An,"∫","\\intop");T(w,f,An,"∬","\\iint");T(w,f,An,"∭","\\iiint");T(w,f,An,"∏","\\prod");T(w,f,An,"∑","\\sum");T(w,f,An,"⨂","\\bigotimes");T(w,f,An,"⨁","\\bigoplus");T(w,f,An,"⨀","\\bigodot");T(w,f,An,"∮","\\oint");T(w,f,An,"∯","\\oiint");T(w,f,An,"∰","\\oiiint");T(w,f,An,"⨆","\\bigsqcup");T(w,f,An,"∫","\\smallint");T(Ct,f,Mb,"…","\\textellipsis");T(w,f,Mb,"…","\\mathellipsis");T(Ct,f,Mb,"…","\\ldots",!0);T(w,f,Mb,"…","\\ldots",!0);T(w,f,Mb,"⋯","\\@cdots",!0);T(w,f,Mb,"⋱","\\ddots",!0);T(w,f,rt,"⋮","\\varvdots");T(Ct,f,rt,"⋮","\\varvdots");T(w,f,mn,"ˊ","\\acute");T(w,f,mn,"ˋ","\\grave");T(w,f,mn,"¨","\\ddot");T(w,f,mn,"~","\\tilde");T(w,f,mn,"ˉ","\\bar");T(w,f,mn,"˘","\\breve");T(w,f,mn,"ˇ","\\check");T(w,f,mn,"^","\\hat");T(w,f,mn,"⃗","\\vec");T(w,f,mn,"˙","\\dot");T(w,f,mn,"˚","\\mathring");T(w,f,Ue,"","\\@imath");T(w,f,Ue,"","\\@jmath");T(w,f,rt,"ı","ı");T(w,f,rt,"ȷ","ȷ");T(Ct,f,rt,"ı","\\i",!0);T(Ct,f,rt,"ȷ","\\j",!0);T(Ct,f,rt,"ß","\\ss",!0);T(Ct,f,rt,"æ","\\ae",!0);T(Ct,f,rt,"œ","\\oe",!0);T(Ct,f,rt,"ø","\\o",!0);T(Ct,f,rt,"Æ","\\AE",!0);T(Ct,f,rt,"Œ","\\OE",!0);T(Ct,f,rt,"Ø","\\O",!0);T(Ct,f,mn,"ˊ","\\'");T(Ct,f,mn,"ˋ","\\`");T(Ct,f,mn,"ˆ","\\^");T(Ct,f,mn,"˜","\\~");T(Ct,f,mn,"ˉ","\\=");T(Ct,f,mn,"˘","\\u");T(Ct,f,mn,"˙","\\.");T(Ct,f,mn,"¸","\\c");T(Ct,f,mn,"˚","\\r");T(Ct,f,mn,"ˇ","\\v");T(Ct,f,mn,"¨",'\\"');T(Ct,f,mn,"˝","\\H");T(Ct,f,mn,"◯","\\textcircled");var vw={"--":!0,"---":!0,"``":!0,"''":!0};T(Ct,f,rt,"–","--",!0);T(Ct,f,rt,"–","\\textendash");T(Ct,f,rt,"—","---",!0);T(Ct,f,rt,"—","\\textemdash");T(Ct,f,rt,"‘","`",!0);T(Ct,f,rt,"‘","\\textquoteleft");T(Ct,f,rt,"’","'",!0);T(Ct,f,rt,"’","\\textquoteright");T(Ct,f,rt,"“","``",!0);T(Ct,f,rt,"“","\\textquotedblleft");T(Ct,f,rt,"”","''",!0);T(Ct,f,rt,"”","\\textquotedblright");T(w,f,rt,"°","\\degree",!0);T(Ct,f,rt,"°","\\degree");T(Ct,f,rt,"°","\\textdegree",!0);T(w,f,rt,"£","\\pounds");T(w,f,rt,"£","\\mathsterling",!0);T(Ct,f,rt,"£","\\pounds");T(Ct,f,rt,"£","\\textsterling",!0);T(w,q,rt,"✠","\\maltese");T(Ct,q,rt,"✠","\\maltese");var cI='0123456789/@."';for(var dG=0;dG<cI.length;dG++){var oI=cI.charAt(dG);T(w,f,rt,oI,oI)}var rI='0123456789!@*()-=+";:?/.,';for(var uG=0;uG<rI.length;uG++){var dI=rI.charAt(uG);T(Ct,f,rt,dI,dI)}var aW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var mG=0;mG<aW.length;mG++){var Hy=aW.charAt(mG);T(w,f,Ue,Hy,Hy),T(Ct,f,rt,Hy,Hy)}T(w,q,rt,"C","ℂ");T(Ct,q,rt,"C","ℂ");T(w,q,rt,"H","ℍ");T(Ct,q,rt,"H","ℍ");T(w,q,rt,"N","ℕ");T(Ct,q,rt,"N","ℕ");T(w,q,rt,"P","ℙ");T(Ct,q,rt,"P","ℙ");T(w,q,rt,"Q","ℚ");T(Ct,q,rt,"Q","ℚ");T(w,q,rt,"R","ℝ");T(Ct,q,rt,"R","ℝ");T(w,q,rt,"Z","ℤ");T(Ct,q,rt,"Z","ℤ");T(w,f,Ue,"h","ℎ");T(Ct,f,Ue,"h","ℎ");var He="";for(var es=0;es<aW.length;es++){var gn=aW.charAt(es);He=String.fromCharCode(55349,56320+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56372+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56424+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56580+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56684+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56736+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56788+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56840+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56944+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),es<26&&(He=String.fromCharCode(55349,56632+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He),He=String.fromCharCode(55349,56476+es),T(w,f,Ue,gn,He),T(Ct,f,rt,gn,He))}He="𝕜";T(w,f,Ue,"k",He);T(Ct,f,rt,"k",He);for(var S0=0;S0<10;S0++){var Ar=S0.toString();He=String.fromCharCode(55349,57294+S0),T(w,f,Ue,Ar,He),T(Ct,f,rt,Ar,He),He=String.fromCharCode(55349,57314+S0),T(w,f,Ue,Ar,He),T(Ct,f,rt,Ar,He),He=String.fromCharCode(55349,57324+S0),T(w,f,Ue,Ar,He),T(Ct,f,rt,Ar,He),He=String.fromCharCode(55349,57334+S0),T(w,f,Ue,Ar,He),T(Ct,f,rt,Ar,He)}var rX="ÐÞþ";for(var hG=0;hG<rX.length;hG++){var Qy=rX.charAt(hG);T(w,f,Ue,Qy,Qy),T(Ct,f,rt,Qy,Qy)}var By=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],uI=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],O4=function(t,e){var n=t.charCodeAt(0),i=t.charCodeAt(1),s=(n-55296)*1024+(i-56320)+65536,a=e==="math"?0:1;if(119808<=s&&s<120484){var o=Math.floor((s-119808)/26);return[By[o][2],By[o][a]]}else if(120782<=s&&s<=120831){var d=Math.floor((s-120782)/10);return[uI[d][2],uI[d][a]]}else{if(s===120485||s===120486)return[By[0][2],By[0][a]];if(120486<s&&s<120782)return["",""];throw new Qt("Unsupported character: "+t)}},qW=function(t,e,n){return ql[n][t]&&ql[n][t].replace&&(t=ql[n][t].replace),{value:t,metrics:u5(t,e,n)}},pc=function(t,e,n,i,s){var a=qW(t,e,n),o=a.metrics;t=a.value;var d;if(o){var u=o.italic;(n==="text"||i&&i.font==="mathit")&&(u=0),d=new Mc(t,o.height,o.depth,u,o.skew,o.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+e+"' and mode '"+n+"'")),d=new Mc(t,0,0,0,0,0,s);if(i){d.maxFontSize=i.sizeMultiplier,i.style.isTight()&&d.classes.push("mtight");var m=i.getColor();m&&(d.style.color=m)}return d},C4=function(t,e,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&qW(t,"Main-Bold",e).metrics?pc(t,"Main-Bold",e,n,i.concat(["mathbf"])):t==="\\"||ql[e][t].font==="main"?pc(t,"Main-Regular",e,n,i):pc(t,"AMS-Regular",e,n,i.concat(["amsrm"]))},F4=function(t,e,n,i,s){return s!=="textord"&&qW(t,"Math-BoldItalic",e).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},J4=function(t,e,n){var i=t.mode,s=t.text,a=["mord"],o=i==="math"||i==="text"&&e.font,d=o?e.font:e.fontFamily,u="",m="";if(s.charCodeAt(0)===55349&&([u,m]=O4(s,i)),u.length>0)return pc(s,u,i,e,a.concat(m));if(d){var Z,p;if(d==="boldsymbol"){var y=F4(s,i,e,a,n);Z=y.fontName,p=[y.fontClass]}else o?(Z=Hw[d].fontName,p=[d]):(Z=Ay(d,e.fontWeight,e.fontShape),p=[d,e.fontWeight,e.fontShape]);if(qW(s,Z,i).metrics)return pc(s,Z,i,e,a.concat(p));if(vw.hasOwnProperty(s)&&Z.slice(0,10)==="Typewriter"){for(var G=[],X=0;X<s.length;X++)G.push(pc(s[X],Z,i,e,a.concat(p)));return Pw(G)}}if(n==="mathord")return pc(s,"Math-Italic",i,e,a.concat(["mathnormal"]));if(n==="textord"){var z=ql[i][s]&&ql[i][s].font;if(z==="ams"){var L=Ay("amsrm",e.fontWeight,e.fontShape);return pc(s,L,i,e,a.concat("amsrm",e.fontWeight,e.fontShape))}else if(z==="main"||!z){var S=Ay("textrm",e.fontWeight,e.fontShape);return pc(s,S,i,e,a.concat(e.fontWeight,e.fontShape))}else{var R=Ay(z,e.fontWeight,e.fontShape);return pc(s,R,i,e,a.concat(R,e.fontWeight,e.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},U4=(l,t)=>{if(Fd(l.classes)!==Fd(t.classes)||l.skew!==t.skew||l.maxFontSize!==t.maxFontSize)return!1;if(l.classes.length===1){var e=l.classes[0];if(e==="mbin"||e==="mord")return!1}for(var n in l.style)if(l.style.hasOwnProperty(n)&&l.style[n]!==t.style[n])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&l.style[i]!==t.style[i])return!1;return!0},E4=l=>{for(var t=0;t<l.length-1;t++){var e=l[t],n=l[t+1];e instanceof Mc&&n instanceof Mc&&U4(e,n)&&(e.text+=n.text,e.height=Math.max(e.height,n.height),e.depth=Math.max(e.depth,n.depth),e.italic=n.italic,l.splice(t+1,1),t--)}return l},m5=function(t){for(var e=0,n=0,i=0,s=0;s<t.children.length;s++){var a=t.children[s];a.height>e&&(e=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}t.height=e,t.depth=n,t.maxFontSize=i},gs=function(t,e,n,i){var s=new AW(t,e,n,i);return m5(s),s},Kw=(l,t,e,n)=>new AW(l,t,e,n),v4=function(t,e,n){var i=gs([t],[],e);return i.height=Math.max(n||e.fontMetrics().defaultRuleThickness,e.minRuleThickness),i.style.borderBottomWidth=ie(i.height),i.maxFontSize=1,i},K4=function(t,e,n,i){var s=new Ew(t,e,n,i);return m5(s),s},Pw=function(t){var e=new Y2(t);return m5(e),e},P4=function(t,e){return t instanceof Y2?gs([],[t],e):t},H4=function(t){if(t.positionType==="individualShift"){for(var e=t.children,n=[e[0]],i=-e[0].shift-e[0].elem.depth,s=i,a=1;a<e.length;a++){var o=-e[a].shift-s-e[a].elem.depth,d=o-(e[a-1].elem.height+e[a-1].elem.depth);s=s+o,n.push({type:"kern",size:d}),n.push(e[a])}return{children:n,depth:i}}var u;if(t.positionType==="top"){for(var m=t.positionData,Z=0;Z<t.children.length;Z++){var p=t.children[Z];m-=p.type==="kern"?p.size:p.elem.height+p.elem.depth}u=m}else if(t.positionType==="bottom")u=-t.positionData;else{var y=t.children[0];if(y.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-y.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-y.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},Q4=function(t,e){for(var{children:n,depth:i}=H4(t),s=0,a=0;a<n.length;a++){var o=n[a];if(o.type==="elem"){var d=o.elem;s=Math.max(s,d.maxFontSize,d.height)}}s+=2;var u=gs(["pstrut"],[]);u.style.height=ie(s);for(var m=[],Z=i,p=i,y=i,G=0;G<n.length;G++){var X=n[G];if(X.type==="kern")y+=X.size;else{var z=X.elem,L=X.wrapperClasses||[],S=X.wrapperStyle||{},R=gs(L,[u,z],void 0,S);R.style.top=ie(-s-y-z.depth),X.marginLeft&&(R.style.marginLeft=X.marginLeft),X.marginRight&&(R.style.marginRight=X.marginRight),m.push(R),y+=z.height+z.depth}Z=Math.min(Z,y),p=Math.max(p,y)}var J=gs(["vlist"],m);J.style.height=ie(p);var U;if(Z<0){var j=gs([],[]),Q=gs(["vlist"],[j]);Q.style.height=ie(-Z);var it=gs(["vlist-s"],[new Mc("​")]);U=[gs(["vlist-r"],[J,it]),gs(["vlist-r"],[Q])]}else U=[gs(["vlist-r"],[J])];var at=gs(["vlist-t"],U);return U.length===2&&at.classes.push("vlist-t2"),at.height=p,at.depth=-Z,at},B4=(l,t)=>{var e=gs(["mspace"],[],t),n=Vn(l,t);return e.style.marginRight=ie(n),e},Ay=function(t,e,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var s;return e==="textbf"&&n==="textit"?s="BoldItalic":e==="textbf"?s="Bold":e==="textit"?s="Italic":s="Regular",i+"-"+s},Hw={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Qw={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},A4=function(t,e){var[n,i,s]=Qw[t],a=new Qu(n),o=new Jd([a],{width:ie(i),height:ie(s),style:"width:"+ie(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),d=Kw(["overlay"],[o],e);return d.height=s,d.style.height=ie(s),d.style.width=ie(i),d},Vt={fontMap:Hw,makeSymbol:pc,mathsym:C4,makeSpan:gs,makeSvgSpan:Kw,makeLineSpan:v4,makeAnchor:K4,makeFragment:Pw,wrapFragment:P4,makeVList:Q4,makeOrd:J4,makeGlue:B4,staticSvg:A4,svgData:Qw,tryCombineChars:E4},Xn={number:3,unit:"mu"},R0={number:4,unit:"mu"},So={number:5,unit:"mu"},_4={mord:{mop:Xn,mbin:R0,mrel:So,minner:Xn},mop:{mord:Xn,mop:Xn,mrel:So,minner:Xn},mbin:{mord:R0,mop:R0,mopen:R0,minner:R0},mrel:{mord:So,mop:So,mopen:So,minner:So},mopen:{},mclose:{mop:Xn,mbin:R0,mrel:So,minner:Xn},mpunct:{mord:Xn,mop:Xn,mrel:So,mopen:Xn,mclose:Xn,mpunct:Xn,minner:Xn},minner:{mord:Xn,mop:Xn,mbin:R0,mrel:So,mopen:Xn,mpunct:Xn,minner:Xn}},q4={mord:{mop:Xn},mop:{mord:Xn,mop:Xn},mbin:{},mrel:{},mopen:{},mclose:{mop:Xn},mpunct:{},minner:{mop:Xn}},Bw={},cW={},oW={};function be(l){for(var{type:t,names:e,props:n,handler:i,htmlBuilder:s,mathmlBuilder:a}=l,o={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},d=0;d<e.length;++d)Bw[e[d]]=o;t&&(s&&(cW[t]=s),a&&(oW[t]=a))}function nm(l){var{type:t,htmlBuilder:e,mathmlBuilder:n}=l;be({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:e,mathmlBuilder:n})}var rW=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},On=function(t){return t.type==="ordgroup"?t.body:[t]},Gr=Vt.makeSpan,$4=["leftmost","mbin","mopen","mrel","mop","mpunct"],tK=["rightmost","mrel","mclose","mpunct"],eK={display:Ee.DISPLAY,text:Ee.TEXT,script:Ee.SCRIPT,scriptscript:Ee.SCRIPTSCRIPT},lK={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ai=function(t,e,n,i){i===void 0&&(i=[null,null]);for(var s=[],a=0;a<t.length;a++){var o=Tl(t[a],e);if(o instanceof Y2){var d=o.children;s.push(...d)}else s.push(o)}if(Vt.tryCombineChars(s),!n)return s;var u=e;if(t.length===1){var m=t[0];m.type==="sizing"?u=e.havingSize(m.size):m.type==="styling"&&(u=e.havingStyle(eK[m.style]))}var Z=Gr([i[0]||"leftmost"],[],e),p=Gr([i[1]||"rightmost"],[],e),y=n==="root";return mI(s,(G,X)=>{var z=X.classes[0],L=G.classes[0];z==="mbin"&&je.contains(tK,L)?X.classes[0]="mord":L==="mbin"&&je.contains($4,z)&&(G.classes[0]="mord")},{node:Z},p,y),mI(s,(G,X)=>{var z=dX(X),L=dX(G),S=z&&L?G.hasClass("mtight")?q4[z][L]:_4[z][L]:null;if(S)return Vt.makeGlue(S,u)},{node:Z},p,y),s},mI=function l(t,e,n,i,s){i&&t.push(i);for(var a=0;a<t.length;a++){var o=t[a],d=Aw(o);if(d){l(d.children,e,n,null,s);continue}var u=!o.hasClass("mspace");if(u){var m=e(o,n.node);m&&(n.insertAfter?n.insertAfter(m):(t.unshift(m),a++))}u?n.node=o:s&&o.hasClass("newline")&&(n.node=Gr(["leftmost"])),n.insertAfter=(Z=>p=>{t.splice(Z+1,0,p),a++})(a)}i&&t.pop()},Aw=function(t){return t instanceof Y2||t instanceof Ew||t instanceof AW&&t.hasClass("enclosing")?t:null},nK=function l(t,e){var n=Aw(t);if(n){var i=n.children;if(i.length){if(e==="right")return l(i[i.length-1],"right");if(e==="left")return l(i[0],"left")}}return t},dX=function(t,e){return t?(e&&(t=nK(t,e)),lK[t.classes[0]]||null):null},jZ=function(t,e){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Gr(e.concat(n))},Tl=function(t,e,n){if(!t)return Gr();if(cW[t.type]){var i=cW[t.type](t,e);if(n&&e.size!==n.size){i=Gr(e.sizingClasses(n),[i],e);var s=e.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new Qt("Got group of unknown type: '"+t.type+"'")};function _y(l,t){var e=Gr(["base"],l,t),n=Gr(["strut"]);return n.style.height=ie(e.height+e.depth),e.depth&&(n.style.verticalAlign=ie(-e.depth)),e.children.unshift(n),e}function hI(l,t){var e=null;l.length===1&&l[0].type==="tag"&&(e=l[0].tag,l=l[0].body);var n=ai(l,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var s=[],a=[],o=0;o<n.length;o++)if(a.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var d=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,a.push(n[o]),n[o].hasClass("nobreak")&&(d=!0);d||(s.push(_y(a,t)),a=[])}else n[o].hasClass("newline")&&(a.pop(),a.length>0&&(s.push(_y(a,t)),a=[]),s.push(n[o]));a.length>0&&s.push(_y(a,t));var u;e?(u=_y(ai(e,t,!0)),u.classes=["tag"],s.push(u)):i&&s.push(i);var m=Gr(["katex-html"],s);if(m.setAttribute("aria-hidden","true"),u){var Z=u.children[0];Z.style.height=ie(m.height+m.depth),m.depth&&(Z.style.verticalAlign=ie(-m.depth))}return m}function _w(l){return new Y2(l)}class ua{constructor(t,e,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=e||[],this.classes=n||[]}setAttribute(t,e){this.attributes[t]=e}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);this.classes.length>0&&(t.className=Fd(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof so&&this.children[n+1]instanceof so){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof so;)i+=this.children[++n].toText();t.appendChild(new so(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(t+=" "+e+'="',t+=je.escape(this.attributes[e]),t+='"');this.classes.length>0&&(t+=' class ="'+je.escape(Fd(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class so{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return je.escape(this.toText())}toText(){return this.text}}class iK{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",ie(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ie(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Et={MathNode:ua,TextNode:so,SpaceNode:iK,newDocumentFragment:_w},Pa=function(t,e,n){return ql[e][t]&&ql[e][t].replace&&t.charCodeAt(0)!==55349&&!(vw.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=ql[e][t].replace),new Et.TextNode(t)},h5=function(t){return t.length===1?t[0]:new Et.MathNode("mrow",t)},b5=function(t,e){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold";var n=e.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var s=t.text;if(je.contains(["\\imath","\\jmath"],s))return null;ql[i][s]&&ql[i][s].replace&&(s=ql[i][s].replace);var a=Vt.fontMap[n].fontName;return u5(s,a,i)?Vt.fontMap[n].variant:null};function bG(l){if(!l)return!1;if(l.type==="mi"&&l.children.length===1){var t=l.children[0];return t instanceof so&&t.text==="."}else if(l.type==="mo"&&l.children.length===1&&l.getAttribute("separator")==="true"&&l.getAttribute("lspace")==="0em"&&l.getAttribute("rspace")==="0em"){var e=l.children[0];return e instanceof so&&e.text===","}else return!1}var Rs=function(t,e,n){if(t.length===1){var i=Kl(t[0],e);return n&&i instanceof ua&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],a,o=0;o<t.length;o++){var d=Kl(t[o],e);if(d instanceof ua&&a instanceof ua){if(d.type==="mtext"&&a.type==="mtext"&&d.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...d.children);continue}else if(d.type==="mn"&&a.type==="mn"){a.children.push(...d.children);continue}else if(bG(d)&&a.type==="mn"){a.children.push(...d.children);continue}else if(d.type==="mn"&&bG(a))d.children=[...a.children,...d.children],s.pop();else if((d.type==="msup"||d.type==="msub")&&d.children.length>=1&&(a.type==="mn"||bG(a))){var u=d.children[0];u instanceof ua&&u.type==="mn"&&(u.children=[...a.children,...u.children],s.pop())}else if(a.type==="mi"&&a.children.length===1){var m=a.children[0];if(m instanceof so&&m.text==="̸"&&(d.type==="mo"||d.type==="mi"||d.type==="mn")){var Z=d.children[0];Z instanceof so&&Z.text.length>0&&(Z.text=Z.text.slice(0,1)+"̸"+Z.text.slice(1),s.pop())}}}s.push(d),a=d}return s},Ud=function(t,e,n){return h5(Rs(t,e,n))},Kl=function(t,e){if(!t)return new Et.MathNode("mrow");if(oW[t.type]){var n=oW[t.type](t,e);return n}else throw new Qt("Got group of unknown type: '"+t.type+"'")};function bI(l,t,e,n,i){var s=Rs(l,e),a;s.length===1&&s[0]instanceof ua&&je.contains(["mrow","mtable"],s[0].type)?a=s[0]:a=new Et.MathNode("mrow",s);var o=new Et.MathNode("annotation",[new Et.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var d=new Et.MathNode("semantics",[a,o]),u=new Et.MathNode("math",[d]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var m=i?"katex":"katex-mathml";return Vt.makeSpan([m],[u])}var sK=function(t){return new Oo({style:t.displayMode?Ee.DISPLAY:Ee.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},aK=function(t,e){if(e.displayMode){var n=["katex-display"];e.leqno&&n.push("leqno"),e.fleqn&&n.push("fleqn"),t=Vt.makeSpan(n,[t])}return t},cK=function(t,e,n){var i=sK(n),s;if(n.output==="mathml")return bI(t,e,i,n.displayMode,!0);if(n.output==="html"){var a=hI(t,i);s=Vt.makeSpan(["katex"],[a])}else{var o=bI(t,e,i,n.displayMode,!1),d=hI(t,i);s=Vt.makeSpan(["katex"],[o,d])}return aK(s,n)},oK={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},rK=function(t){var e=new Et.MathNode("mo",[new Et.TextNode(oK[t.replace(/^\\/,"")])]);return e.setAttribute("stretchy","true"),e},dK={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},uK=function(t){return t.type==="ordgroup"?t.body.length:1},mK=function(t,e){function n(){var o=4e5,d=t.label.slice(1);if(je.contains(["widehat","widecheck","widetilde","utilde"],d)){var u=t,m=uK(u.base),Z,p,y;if(m>5)d==="widehat"||d==="widecheck"?(Z=420,o=2364,y=.42,p=d+"4"):(Z=312,o=2340,y=.34,p="tilde4");else{var G=[1,1,2,2,3,3][m];d==="widehat"||d==="widecheck"?(o=[0,1062,2364,2364,2364][G],Z=[0,239,300,360,420][G],y=[0,.24,.3,.3,.36,.42][G],p=d+G):(o=[0,600,1033,2339,2340][G],Z=[0,260,286,306,312][G],y=[0,.26,.286,.3,.306,.34][G],p="tilde"+G)}var X=new Qu(p),z=new Jd([X],{width:"100%",height:ie(y),viewBox:"0 0 "+o+" "+Z,preserveAspectRatio:"none"});return{span:Vt.makeSvgSpan([],[z],e),minWidth:0,height:y}}else{var L=[],S=dK[d],[R,J,U]=S,j=U/1e3,Q=R.length,it,at;if(Q===1){var _=S[3];it=["hide-tail"],at=[_]}else if(Q===2)it=["halfarrow-left","halfarrow-right"],at=["xMinYMin","xMaxYMin"];else if(Q===3)it=["brace-left","brace-center","brace-right"],at=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+Q+" children.");for(var Wt=0;Wt<Q;Wt++){var ht=new Qu(R[Wt]),Tt=new Jd([ht],{width:"400em",height:ie(j),viewBox:"0 0 "+o+" "+U,preserveAspectRatio:at[Wt]+" slice"}),Zt=Vt.makeSvgSpan([it[Wt]],[Tt],e);if(Q===1)return{span:Zt,minWidth:J,height:j};Zt.style.height=ie(j),L.push(Zt)}return{span:Vt.makeSpan(["stretchy"],L,e),minWidth:J,height:j}}}var{span:i,minWidth:s,height:a}=n();return i.height=a,i.style.height=ie(a),s>0&&(i.style.minWidth=ie(s)),i},hK=function(t,e,n,i,s){var a,o=t.height+t.depth+n+i;if(/fbox|color|angl/.test(e)){if(a=Vt.makeSpan(["stretchy",e],[],s),e==="fbox"){var d=s.color&&s.getColor();d&&(a.style.borderColor=d)}}else{var u=[];/^[bx]cancel$/.test(e)&&u.push(new sI({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&u.push(new sI({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new Jd(u,{width:"100%",height:ie(o)});a=Vt.makeSvgSpan([],[m],s)}return a.height=o,a.style.height=ie(o),a},Xr={encloseSpan:hK,mathMLnode:rK,svgSpan:mK};function rl(l,t){if(!l||l.type!==t)throw new Error("Expected node of type "+t+", but got "+(l?"node of type "+l.type:String(l)));return l}function Z5(l){var t=$W(l);if(!t)throw new Error("Expected node of symbol group type, but got "+(l?"node of type "+l.type:String(l)));return t}function $W(l){return l&&(l.type==="atom"||j4.hasOwnProperty(l.type))?l:null}var p5=(l,t)=>{var e,n,i;l&&l.type==="supsub"?(n=rl(l.base,"accent"),e=n.base,l.base=e,i=f4(Tl(l,t)),l.base=n):(n=rl(l,"accent"),e=n.base);var s=Tl(e,t.havingCrampedStyle()),a=n.isShifty&&je.isCharacterBox(e),o=0;if(a){var d=je.getBaseElem(e),u=Tl(d,t.havingCrampedStyle());o=aI(u).skew}var m=n.label==="\\c",Z=m?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),p;if(n.isStretchy)p=Xr.svgSpan(n,t),p=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ie(2*o)+")",marginLeft:ie(2*o)}:void 0}]},t);else{var y,G;n.label==="\\vec"?(y=Vt.staticSvg("vec",t),G=Vt.svgData.vec[1]):(y=Vt.makeOrd({mode:n.mode,text:n.label},t,"textord"),y=aI(y),y.italic=0,G=y.width,m&&(Z+=y.depth)),p=Vt.makeSpan(["accent-body"],[y]);var X=n.label==="\\textcircled";X&&(p.classes.push("accent-full"),Z=s.height);var z=o;X||(z-=G/2),p.style.left=ie(z),n.label==="\\textcircled"&&(p.style.top=".2em"),p=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-Z},{type:"elem",elem:p}]},t)}var L=Vt.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=L,i.height=Math.max(L.height,i.height),i.classes[0]="mord",i):L},qw=(l,t)=>{var e=l.isStretchy?Xr.mathMLnode(l.label):new Et.MathNode("mo",[Pa(l.label,l.mode)]),n=new Et.MathNode("mover",[Kl(l.base,t),e]);return n.setAttribute("accent","true"),n},bK=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(l=>"\\"+l).join("|"));be({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(l,t)=>{var e=rW(t[0]),n=!bK.test(l.funcName),i=!n||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:n,isShifty:i,base:e}},htmlBuilder:p5,mathmlBuilder:qw});be({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(l,t)=>{var e=t[0],n=l.parser.mode;return n==="math"&&(l.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+l.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:l.funcName,isStretchy:!1,isShifty:!0,base:e}},htmlBuilder:p5,mathmlBuilder:qw});be({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(l,t)=>{var{parser:e,funcName:n}=l,i=t[0];return{type:"accentUnder",mode:e.mode,label:n,base:i}},htmlBuilder:(l,t)=>{var e=Tl(l.base,t),n=Xr.svgSpan(l,t),i=l.label==="\\utilde"?.12:0,s=Vt.makeVList({positionType:"top",positionData:e.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:e}]},t);return Vt.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(l,t)=>{var e=Xr.mathMLnode(l.label),n=new Et.MathNode("munder",[Kl(l.base,t),e]);return n.setAttribute("accentunder","true"),n}});var qy=l=>{var t=new Et.MathNode("mpadded",l?[l]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};be({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(l,t,e){var{parser:n,funcName:i}=l;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:e[0]}},htmlBuilder(l,t){var e=t.style,n=t.havingStyle(e.sup()),i=Vt.wrapFragment(Tl(l.body,n,t),t),s=l.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var a;l.below&&(n=t.havingStyle(e.sub()),a=Vt.wrapFragment(Tl(l.below,n,t),t),a.classes.push(s+"-arrow-pad"));var o=Xr.svgSpan(l,t),d=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||l.label==="\\xleftequilibrium")&&(u-=i.depth);var m;if(a){var Z=-t.fontMetrics().axisHeight+a.height+.5*o.height+.111;m=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:d},{type:"elem",elem:a,shift:Z}]},t)}else m=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:d}]},t);return m.children[0].children[0].children[1].classes.push("svg-align"),Vt.makeSpan(["mrel","x-arrow"],[m],t)},mathmlBuilder(l,t){var e=Xr.mathMLnode(l.label);e.setAttribute("minsize",l.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(l.body){var i=qy(Kl(l.body,t));if(l.below){var s=qy(Kl(l.below,t));n=new Et.MathNode("munderover",[e,s,i])}else n=new Et.MathNode("mover",[e,i])}else if(l.below){var a=qy(Kl(l.below,t));n=new Et.MathNode("munder",[e,a])}else n=qy(),n=new Et.MathNode("mover",[e,n]);return n}});var ZK=Vt.makeSpan;function $w(l,t){var e=ai(l.body,t,!0);return ZK([l.mclass],e,t)}function t3(l,t){var e,n=Rs(l.body,t);return l.mclass==="minner"?e=new Et.MathNode("mpadded",n):l.mclass==="mord"?l.isCharacterBox?(e=n[0],e.type="mi"):e=new Et.MathNode("mi",n):(l.isCharacterBox?(e=n[0],e.type="mo"):e=new Et.MathNode("mo",n),l.mclass==="mbin"?(e.attributes.lspace="0.22em",e.attributes.rspace="0.22em"):l.mclass==="mpunct"?(e.attributes.lspace="0em",e.attributes.rspace="0.17em"):l.mclass==="mopen"||l.mclass==="mclose"?(e.attributes.lspace="0em",e.attributes.rspace="0em"):l.mclass==="minner"&&(e.attributes.lspace="0.0556em",e.attributes.width="+0.1111em")),e}be({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(l,t){var{parser:e,funcName:n}=l,i=t[0];return{type:"mclass",mode:e.mode,mclass:"m"+n.slice(5),body:On(i),isCharacterBox:je.isCharacterBox(i)}},htmlBuilder:$w,mathmlBuilder:t3});var t1=l=>{var t=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};be({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(l,t){var{parser:e}=l;return{type:"mclass",mode:e.mode,mclass:t1(t[0]),body:On(t[1]),isCharacterBox:je.isCharacterBox(t[1])}}});be({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(l,t){var{parser:e,funcName:n}=l,i=t[1],s=t[0],a;n!=="\\stackrel"?a=t1(i):a="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:On(i)},d={type:"supsub",mode:s.mode,base:o,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:e.mode,mclass:a,body:[d],isCharacterBox:je.isCharacterBox(d)}},htmlBuilder:$w,mathmlBuilder:t3});be({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(l,t){var{parser:e}=l;return{type:"pmb",mode:e.mode,mclass:t1(t[0]),body:On(t[0])}},htmlBuilder(l,t){var e=ai(l.body,t,!0),n=Vt.makeSpan([l.mclass],e,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(l,t){var e=Rs(l.body,t),n=new Et.MathNode("mstyle",e);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var pK={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ZI=()=>({type:"styling",body:[],mode:"math",style:"display"}),pI=l=>l.type==="textord"&&l.text==="@",yK=(l,t)=>(l.type==="mathord"||l.type==="atom")&&l.text===t;function NK(l,t,e){var n=pK[l];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return e.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=e.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:n,mode:"math",family:"rel"},a=e.callFunction("\\Big",[s],[]),o=e.callFunction("\\\\cdright",[t[1]],[]),d={type:"ordgroup",mode:"math",body:[i,a,o]};return e.callFunction("\\\\cdparent",[d],[])}case"\\\\cdlongequal":return e.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return e.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function WK(l){var t=[];for(l.gullet.beginGroup(),l.gullet.macros.set("\\cr","\\\\\\relax"),l.gullet.beginGroup();;){t.push(l.parseExpression(!1,"\\\\")),l.gullet.endGroup(),l.gullet.beginGroup();var e=l.fetch().text;if(e==="&"||e==="\\\\")l.consume();else if(e==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Qt("Expected \\\\ or \\cr or \\end",l.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var a=t[s],o=ZI(),d=0;d<a.length;d++)if(!pI(a[d]))o.body.push(a[d]);else{n.push(o),d+=1;var u=Z5(a[d]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var Z=0;Z<2;Z++){for(var p=!0,y=d+1;y<a.length;y++){if(yK(a[y],u)){p=!1,d=y;break}if(pI(a[y]))throw new Qt("Missing a "+u+" character to complete a CD arrow.",a[y]);m[Z].body.push(a[y])}if(p)throw new Qt("Missing a "+u+" character to complete a CD arrow.",a[d])}else throw new Qt('Expected one of "<>AV=|." after @',a[d]);var G=NK(u,m,l),X={type:"styling",body:[G],mode:"math",style:"display"};n.push(X),o=ZI()}s%2===0?n.push(o):n.shift(),n=[],i.push(n)}l.gullet.endGroup(),l.gullet.endGroup();var z=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:z,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}be({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(l,t){var{parser:e,funcName:n}=l;return{type:"cdlabel",mode:e.mode,side:n.slice(4),label:t[0]}},htmlBuilder(l,t){var e=t.havingStyle(t.style.sup()),n=Vt.wrapFragment(Tl(l.label,e,t),t);return n.classes.push("cd-label-"+l.side),n.style.bottom=ie(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(l,t){var e=new Et.MathNode("mrow",[Kl(l.label,t)]);return e=new Et.MathNode("mpadded",[e]),e.setAttribute("width","0"),l.side==="left"&&e.setAttribute("lspace","-1width"),e.setAttribute("voffset","0.7em"),e=new Et.MathNode("mstyle",[e]),e.setAttribute("displaystyle","false"),e.setAttribute("scriptlevel","1"),e}});be({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(l,t){var{parser:e}=l;return{type:"cdlabelparent",mode:e.mode,fragment:t[0]}},htmlBuilder(l,t){var e=Vt.wrapFragment(Tl(l.fragment,t),t);return e.classes.push("cd-vert-arrow"),e},mathmlBuilder(l,t){return new Et.MathNode("mrow",[Kl(l.fragment,t)])}});be({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(l,t){for(var{parser:e}=l,n=rl(t[0],"ordgroup"),i=n.body,s="",a=0;a<i.length;a++){var o=rl(i[a],"textord");s+=o.text}var d=parseInt(s),u;if(isNaN(d))throw new Qt("\\@char has non-numeric argument "+s);if(d<0||d>=1114111)throw new Qt("\\@char with invalid code point "+s);return d<=65535?u=String.fromCharCode(d):(d-=65536,u=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:e.mode,text:u}}});var e3=(l,t)=>{var e=ai(l.body,t.withColor(l.color),!1);return Vt.makeFragment(e)},l3=(l,t)=>{var e=Rs(l.body,t.withColor(l.color)),n=new Et.MathNode("mstyle",e);return n.setAttribute("mathcolor",l.color),n};be({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(l,t){var{parser:e}=l,n=rl(t[0],"color-token").color,i=t[1];return{type:"color",mode:e.mode,color:n,body:On(i)}},htmlBuilder:e3,mathmlBuilder:l3});be({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(l,t){var{parser:e,breakOnTokenText:n}=l,i=rl(t[0],"color-token").color;e.gullet.macros.set("\\current@color",i);var s=e.parseExpression(!0,n);return{type:"color",mode:e.mode,color:i,body:s}},htmlBuilder:e3,mathmlBuilder:l3});be({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(l,t,e){var{parser:n}=l,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:i&&rl(i,"size").value}},htmlBuilder(l,t){var e=Vt.makeSpan(["mspace"],[],t);return l.newLine&&(e.classes.push("newline"),l.size&&(e.style.marginTop=ie(Vn(l.size,t)))),e},mathmlBuilder(l,t){var e=new Et.MathNode("mspace");return l.newLine&&(e.setAttribute("linebreak","newline"),l.size&&e.setAttribute("height",ie(Vn(l.size,t)))),e}});var uX={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},n3=l=>{var t=l.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Qt("Expected a control sequence",l);return t},MK=l=>{var t=l.gullet.popToken();return t.text==="="&&(t=l.gullet.popToken(),t.text===" "&&(t=l.gullet.popToken())),t},i3=(l,t,e,n)=>{var i=l.gullet.macros.get(e.text);i==null&&(e.noexpand=!0,i={tokens:[e],numArgs:0,unexpandable:!l.gullet.isExpandable(e.text)}),l.gullet.macros.set(t,i,n)};be({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(l){var{parser:t,funcName:e}=l;t.consumeSpaces();var n=t.fetch();if(uX[n.text])return(e==="\\global"||e==="\\\\globallong")&&(n.text=uX[n.text]),rl(t.parseFunction(),"internal");throw new Qt("Invalid token after macro prefix",n)}});be({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l){var{parser:t,funcName:e}=l,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Qt("Expected a control sequence",n);for(var s=0,a,o=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){a=t.gullet.future(),o[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Qt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new Qt('Argument number "'+n.text+'" out of order');s++,o.push([])}else{if(n.text==="EOF")throw new Qt("Expected a macro definition");o[s].push(n.text)}var{tokens:d}=t.gullet.consumeArg();return a&&d.unshift(a),(e==="\\edef"||e==="\\xdef")&&(d=t.gullet.expandTokens(d),d.reverse()),t.gullet.macros.set(i,{tokens:d,numArgs:s,delimiters:o},e===uX[e]),{type:"internal",mode:t.mode}}});be({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l){var{parser:t,funcName:e}=l,n=n3(t.gullet.popToken());t.gullet.consumeSpaces();var i=MK(t);return i3(t,n,i,e==="\\\\globallet"),{type:"internal",mode:t.mode}}});be({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(l){var{parser:t,funcName:e}=l,n=n3(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return i3(t,n,s,e==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var cZ=function(t,e,n){var i=ql.math[t]&&ql.math[t].replace,s=u5(i||t,e,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+e+".");return s},y5=function(t,e,n,i){var s=n.havingBaseStyle(e),a=Vt.makeSpan(i.concat(s.sizingClasses(n)),[t],n),o=s.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=s.sizeMultiplier,a},s3=function(t,e,n){var i=e.havingBaseStyle(n),s=(1-e.sizeMultiplier/i.sizeMultiplier)*e.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ie(s),t.height-=s,t.depth+=s},GK=function(t,e,n,i,s,a){var o=Vt.makeSymbol(t,"Main-Regular",s,i),d=y5(o,e,i,a);return n&&s3(d,i,e),d},XK=function(t,e,n,i){return Vt.makeSymbol(t,"Size"+e+"-Regular",n,i)},a3=function(t,e,n,i,s,a){var o=XK(t,e,s,i),d=y5(Vt.makeSpan(["delimsizing","size"+e],[o],i),Ee.TEXT,i,a);return n&&s3(d,i,Ee.TEXT),d},ZG=function(t,e,n){var i;e==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=Vt.makeSpan(["delimsizinginner",i],[Vt.makeSpan([],[Vt.makeSymbol(t,e,n)])]);return{type:"elem",elem:s}},pG=function(t,e,n){var i=br["Size4-Regular"][t.charCodeAt(0)]?br["Size4-Regular"][t.charCodeAt(0)][4]:br["Size1-Regular"][t.charCodeAt(0)][4],s=new Qu("inner",I4(t,Math.round(1e3*e))),a=new Jd([s],{width:ie(i),height:ie(e),style:"width:"+ie(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*e),preserveAspectRatio:"xMinYMin"}),o=Vt.makeSvgSpan([],[a],n);return o.height=e,o.style.height=ie(e),o.style.width=ie(i),{type:"elem",elem:o}},mX=.008,$y={type:"kern",size:-1*mX},YK=["|","\\lvert","\\rvert","\\vert"],TK=["\\|","\\lVert","\\rVert","\\Vert"],c3=function(t,e,n,i,s,a){var o,d,u,m,Z="",p=0;o=u=m=t,d=null;var y="Size1-Regular";t==="\\uparrow"?u=m="⏐":t==="\\Uparrow"?u=m="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",m="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",m="\\Downarrow"):je.contains(YK,t)?(u="∣",Z="vert",p=333):je.contains(TK,t)?(u="∥",Z="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",m="⎣",y="Size4-Regular",Z="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",m="⎦",y="Size4-Regular",Z="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",m="⎣",y="Size4-Regular",Z="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=m="⎢",y="Size4-Regular",Z="lceil",p=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",m="⎦",y="Size4-Regular",Z="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=m="⎥",y="Size4-Regular",Z="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",m="⎝",y="Size4-Regular",Z="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",m="⎠",y="Size4-Regular",Z="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",d="⎨",m="⎩",u="⎪",y="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",d="⎬",m="⎭",u="⎪",y="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",m="⎩",u="⎪",y="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",m="⎭",u="⎪",y="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",m="⎭",u="⎪",y="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",m="⎩",u="⎪",y="Size4-Regular");var G=cZ(o,y,s),X=G.height+G.depth,z=cZ(u,y,s),L=z.height+z.depth,S=cZ(m,y,s),R=S.height+S.depth,J=0,U=1;if(d!==null){var j=cZ(d,y,s);J=j.height+j.depth,U=2}var Q=X+R+J,it=Math.max(0,Math.ceil((e-Q)/(U*L))),at=Q+it*U*L,_=i.fontMetrics().axisHeight;n&&(_*=i.sizeMultiplier);var Wt=at/2-_,ht=[];if(Z.length>0){var Tt=at-X-R,Zt=Math.round(at*1e3),Xt=z4(Z,Math.round(Tt*1e3)),St=new Qu(Z,Xt),Rt=(p/1e3).toFixed(3)+"em",Yt=(Zt/1e3).toFixed(3)+"em",Dt=new Jd([St],{width:Rt,height:Yt,viewBox:"0 0 "+p+" "+Zt}),K=Vt.makeSvgSpan([],[Dt],i);K.height=Zt/1e3,K.style.width=Rt,K.style.height=Yt,ht.push({type:"elem",elem:K})}else{if(ht.push(ZG(m,y,s)),ht.push($y),d===null){var lt=at-X-R+2*mX;ht.push(pG(u,lt,i))}else{var Mt=(at-X-R-J)/2+2*mX;ht.push(pG(u,Mt,i)),ht.push($y),ht.push(ZG(d,y,s)),ht.push($y),ht.push(pG(u,Mt,i))}ht.push($y),ht.push(ZG(o,y,s))}var H=i.havingBaseStyle(Ee.TEXT),le=Vt.makeVList({positionType:"bottom",positionData:Wt,children:ht},H);return y5(Vt.makeSpan(["delimsizing","mult"],[le],H),Ee.TEXT,i,a)},yG=80,NG=.08,WG=function(t,e,n,i,s){var a=L4(t,i,n),o=new Qu(t,a),d=new Jd([o],{width:"400em",height:ie(e),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Vt.makeSvgSpan(["hide-tail"],[d],s)},VK=function(t,e){var n=e.havingBaseSizing(),i=u3("\\surd",t*n.sizeMultiplier,d3,n),s=n.sizeMultiplier,a=Math.max(0,e.minRuleThickness-e.fontMetrics().sqrtRuleThickness),o,d=0,u=0,m=0,Z;return i.type==="small"?(m=1e3+1e3*a+yG,t<1?s=1:t<1.4&&(s=.7),d=(1+a+NG)/s,u=(1+a)/s,o=WG("sqrtMain",d,m,a,e),o.style.minWidth="0.853em",Z=.833/s):i.type==="large"?(m=(1e3+yG)*wZ[i.size],u=(wZ[i.size]+a)/s,d=(wZ[i.size]+a+NG)/s,o=WG("sqrtSize"+i.size,d,m,a,e),o.style.minWidth="1.02em",Z=1/s):(d=t+a+NG,u=t+a,m=Math.floor(1e3*t+a)+yG,o=WG("sqrtTall",d,m,a,e),o.style.minWidth="0.742em",Z=1.056),o.height=u,o.style.height=ie(d),{span:o,advanceWidth:Z,ruleWidth:(e.fontMetrics().sqrtRuleThickness+a)*s}},o3=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],LK=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],r3=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],wZ=[0,1.2,1.8,2.4,3],IK=function(t,e,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),je.contains(o3,t)||je.contains(r3,t))return a3(t,e,!1,n,i,s);if(je.contains(LK,t))return c3(t,wZ[e],!1,n,i,s);throw new Qt("Illegal delimiter: '"+t+"'")},zK=[{type:"small",style:Ee.SCRIPTSCRIPT},{type:"small",style:Ee.SCRIPT},{type:"small",style:Ee.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],wK=[{type:"small",style:Ee.SCRIPTSCRIPT},{type:"small",style:Ee.SCRIPT},{type:"small",style:Ee.TEXT},{type:"stack"}],d3=[{type:"small",style:Ee.SCRIPTSCRIPT},{type:"small",style:Ee.SCRIPT},{type:"small",style:Ee.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],xK=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},u3=function(t,e,n,i){for(var s=Math.min(2,3-i.style.size),a=s;a<n.length&&n[a].type!=="stack";a++){var o=cZ(t,xK(n[a]),"math"),d=o.height+o.depth;if(n[a].type==="small"){var u=i.havingBaseStyle(n[a].style);d*=u.sizeMultiplier}if(d>e)return n[a]}return n[n.length-1]},m3=function(t,e,n,i,s,a){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;je.contains(r3,t)?o=zK:je.contains(o3,t)?o=d3:o=wK;var d=u3(t,e,o,i);return d.type==="small"?GK(t,d.style,n,i,s,a):d.type==="large"?a3(t,d.size,n,i,s,a):c3(t,e,n,i,s,a)},gK=function(t,e,n,i,s,a){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,d=901,u=5/i.fontMetrics().ptPerEm,m=Math.max(e-o,n+o),Z=Math.max(m/500*d,2*m-u);return m3(t,Z,!0,i,s,a)},yr={sqrtImage:VK,sizedDelim:IK,sizeToMaxHeight:wZ,customSizedDelim:m3,leftRightDelim:gK},yI={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},SK=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function e1(l,t){var e=$W(l);if(e&&je.contains(SK,e.text))return e;throw e?new Qt("Invalid delimiter '"+e.text+"' after '"+t.funcName+"'",l):new Qt("Invalid delimiter type '"+l.type+"'",l)}be({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(l,t)=>{var e=e1(t[0],l);return{type:"delimsizing",mode:l.parser.mode,size:yI[l.funcName].size,mclass:yI[l.funcName].mclass,delim:e.text}},htmlBuilder:(l,t)=>l.delim==="."?Vt.makeSpan([l.mclass]):yr.sizedDelim(l.delim,l.size,t,l.mode,[l.mclass]),mathmlBuilder:l=>{var t=[];l.delim!=="."&&t.push(Pa(l.delim,l.mode));var e=new Et.MathNode("mo",t);l.mclass==="mopen"||l.mclass==="mclose"?e.setAttribute("fence","true"):e.setAttribute("fence","false"),e.setAttribute("stretchy","true");var n=ie(yr.sizeToMaxHeight[l.size]);return e.setAttribute("minsize",n),e.setAttribute("maxsize",n),e}});function NI(l){if(!l.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}be({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(l,t)=>{var e=l.parser.gullet.macros.get("\\current@color");if(e&&typeof e!="string")throw new Qt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:e1(t[0],l).text,color:e}}});be({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(l,t)=>{var e=e1(t[0],l),n=l.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var s=rl(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:e.text,right:s.delim,rightColor:s.color}},htmlBuilder:(l,t)=>{NI(l);for(var e=ai(l.body,t,!0,["mopen","mclose"]),n=0,i=0,s=!1,a=0;a<e.length;a++)e[a].isMiddle?s=!0:(n=Math.max(e[a].height,n),i=Math.max(e[a].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var o;if(l.left==="."?o=jZ(t,["mopen"]):o=yr.leftRightDelim(l.left,n,i,t,l.mode,["mopen"]),e.unshift(o),s)for(var d=1;d<e.length;d++){var u=e[d],m=u.isMiddle;m&&(e[d]=yr.leftRightDelim(m.delim,n,i,m.options,l.mode,[]))}var Z;if(l.right===".")Z=jZ(t,["mclose"]);else{var p=l.rightColor?t.withColor(l.rightColor):t;Z=yr.leftRightDelim(l.right,n,i,p,l.mode,["mclose"])}return e.push(Z),Vt.makeSpan(["minner"],e,t)},mathmlBuilder:(l,t)=>{NI(l);var e=Rs(l.body,t);if(l.left!=="."){var n=new Et.MathNode("mo",[Pa(l.left,l.mode)]);n.setAttribute("fence","true"),e.unshift(n)}if(l.right!=="."){var i=new Et.MathNode("mo",[Pa(l.right,l.mode)]);i.setAttribute("fence","true"),l.rightColor&&i.setAttribute("mathcolor",l.rightColor),e.push(i)}return h5(e)}});be({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(l,t)=>{var e=e1(t[0],l);if(!l.parser.leftrightDepth)throw new Qt("\\middle without preceding \\left",e);return{type:"middle",mode:l.parser.mode,delim:e.text}},htmlBuilder:(l,t)=>{var e;if(l.delim===".")e=jZ(t,[]);else{e=yr.sizedDelim(l.delim,1,t,l.mode,[]);var n={delim:l.delim,options:t};e.isMiddle=n}return e},mathmlBuilder:(l,t)=>{var e=l.delim==="\\vert"||l.delim==="|"?Pa("|","text"):Pa(l.delim,l.mode),n=new Et.MathNode("mo",[e]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var N5=(l,t)=>{var e=Vt.wrapFragment(Tl(l.body,t),t),n=l.label.slice(1),i=t.sizeMultiplier,s,a=0,o=je.isCharacterBox(l.body);if(n==="sout")s=Vt.makeSpan(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,a=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var d=Vn({number:.6,unit:"pt"},t),u=Vn({number:.35,unit:"ex"},t),m=t.havingBaseSizing();i=i/m.sizeMultiplier;var Z=e.height+e.depth+d+u;e.style.paddingLeft=ie(Z/2+d);var p=Math.floor(1e3*Z*i),y=T4(p),G=new Jd([new Qu("phase",y)],{width:"400em",height:ie(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});s=Vt.makeSvgSpan(["hide-tail"],[G],t),s.style.height=ie(Z),a=e.depth+d+u}else{/cancel/.test(n)?o||e.classes.push("cancel-pad"):n==="angl"?e.classes.push("anglpad"):e.classes.push("boxpad");var X=0,z=0,L=0;/box/.test(n)?(L=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),X=t.fontMetrics().fboxsep+(n==="colorbox"?0:L),z=X):n==="angl"?(L=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),X=4*L,z=Math.max(0,.25-e.depth)):(X=o?.2:0,z=X),s=Xr.encloseSpan(e,n,X,z,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=ie(L)):n==="angl"&&L!==.049&&(s.style.borderTopWidth=ie(L),s.style.borderRightWidth=ie(L)),a=e.depth+z,l.backgroundColor&&(s.style.backgroundColor=l.backgroundColor,l.borderColor&&(s.style.borderColor=l.borderColor))}var S;if(l.backgroundColor)S=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:a},{type:"elem",elem:e,shift:0}]},t);else{var R=/cancel|phase/.test(n)?["svg-align"]:[];S=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:e,shift:0},{type:"elem",elem:s,shift:a,wrapperClasses:R}]},t)}return/cancel/.test(n)&&(S.height=e.height,S.depth=e.depth),/cancel/.test(n)&&!o?Vt.makeSpan(["mord","cancel-lap"],[S],t):Vt.makeSpan(["mord"],[S],t)},W5=(l,t)=>{var e=0,n=new Et.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Kl(l.body,t)]);switch(l.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(e=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*e+"pt"),n.setAttribute("height","+"+2*e+"pt"),n.setAttribute("lspace",e+"pt"),n.setAttribute("voffset",e+"pt"),l.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(l.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&n.setAttribute("mathbackground",l.backgroundColor),n};be({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(l,t,e){var{parser:n,funcName:i}=l,s=rl(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:a}},htmlBuilder:N5,mathmlBuilder:W5});be({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(l,t,e){var{parser:n,funcName:i}=l,s=rl(t[0],"color-token").color,a=rl(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,borderColor:s,body:o}},htmlBuilder:N5,mathmlBuilder:W5});be({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(l,t){var{parser:e}=l;return{type:"enclose",mode:e.mode,label:"\\fbox",body:t[0]}}});be({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(l,t){var{parser:e,funcName:n}=l,i=t[0];return{type:"enclose",mode:e.mode,label:n,body:i}},htmlBuilder:N5,mathmlBuilder:W5});be({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(l,t){var{parser:e}=l;return{type:"enclose",mode:e.mode,label:"\\angl",body:t[0]}}});var h3={};function ro(l){for(var{type:t,names:e,props:n,handler:i,htmlBuilder:s,mathmlBuilder:a}=l,o={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},d=0;d<e.length;++d)h3[e[d]]=o;s&&(cW[t]=s),a&&(oW[t]=a)}var b3={};function E(l,t){b3[l]=t}function WI(l){var t=[];l.consumeSpaces();var e=l.fetch().text;for(e==="\\relax"&&(l.consume(),l.consumeSpaces(),e=l.fetch().text);e==="\\hline"||e==="\\hdashline";)l.consume(),t.push(e==="\\hdashline"),l.consumeSpaces(),e=l.fetch().text;return t}var l1=l=>{var t=l.parser.settings;if(!t.displayMode)throw new Qt("{"+l.envName+"} can be used only in display mode.")};function M5(l){if(l.indexOf("ed")===-1)return l.indexOf("*")===-1}function _d(l,t,e){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:a,colSeparationType:o,autoTag:d,singleRow:u,emptySingleRow:m,maxNumCols:Z,leqno:p}=t;if(l.gullet.beginGroup(),u||l.gullet.macros.set("\\cr","\\\\\\relax"),!a){var y=l.gullet.expandMacroAsText("\\arraystretch");if(y==null)a=1;else if(a=parseFloat(y),!a||a<0)throw new Qt("Invalid \\arraystretch: "+y)}l.gullet.beginGroup();var G=[],X=[G],z=[],L=[],S=d!=null?[]:void 0;function R(){d&&l.gullet.macros.set("\\@eqnsw","1",!0)}function J(){S&&(l.gullet.macros.get("\\df@tag")?(S.push(l.subparse([new va("\\df@tag")])),l.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!d&&l.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),L.push(WI(l));;){var U=l.parseExpression(!1,u?"\\end":"\\\\");l.gullet.endGroup(),l.gullet.beginGroup(),U={type:"ordgroup",mode:l.mode,body:U},e&&(U={type:"styling",mode:l.mode,style:e,body:[U]}),G.push(U);var j=l.fetch().text;if(j==="&"){if(Z&&G.length===Z){if(u||o)throw new Qt("Too many tab characters: &",l.nextToken);l.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}l.consume()}else if(j==="\\end"){J(),G.length===1&&U.type==="styling"&&U.body[0].body.length===0&&(X.length>1||!m)&&X.pop(),L.length<X.length+1&&L.push([]);break}else if(j==="\\\\"){l.consume();var Q=void 0;l.gullet.future().text!==" "&&(Q=l.parseSizeGroup(!0)),z.push(Q?Q.value:null),J(),L.push(WI(l)),G=[],X.push(G),R()}else throw new Qt("Expected & or \\\\ or \\cr or \\end",l.nextToken)}return l.gullet.endGroup(),l.gullet.endGroup(),{type:"array",mode:l.mode,addJot:i,arraystretch:a,body:X,cols:s,rowGaps:z,hskipBeforeAndAfter:n,hLinesBeforeRow:L,colSeparationType:o,tags:S,leqno:p}}function G5(l){return l.slice(0,1)==="d"?"display":"text"}var uo=function(t,e){var n,i,s=t.body.length,a=t.hLinesBeforeRow,o=0,d=new Array(s),u=[],m=Math.max(e.fontMetrics().arrayRuleWidth,e.minRuleThickness),Z=1/e.fontMetrics().ptPerEm,p=5*Z;if(t.colSeparationType&&t.colSeparationType==="small"){var y=e.havingStyle(Ee.SCRIPT).sizeMultiplier;p=.2778*(y/e.sizeMultiplier)}var G=t.colSeparationType==="CD"?Vn({number:3,unit:"ex"},e):12*Z,X=3*Z,z=t.arraystretch*G,L=.7*z,S=.3*z,R=0;function J(bn){for(var In=0;In<bn.length;++In)In>0&&(R+=.25),u.push({pos:R,isDashed:bn[In]})}for(J(a[0]),n=0;n<t.body.length;++n){var U=t.body[n],j=L,Q=S;o<U.length&&(o=U.length);var it=new Array(U.length);for(i=0;i<U.length;++i){var at=Tl(U[i],e);Q<at.depth&&(Q=at.depth),j<at.height&&(j=at.height),it[i]=at}var _=t.rowGaps[n],Wt=0;_&&(Wt=Vn(_,e),Wt>0&&(Wt+=S,Q<Wt&&(Q=Wt),Wt=0)),t.addJot&&(Q+=X),it.height=j,it.depth=Q,R+=j,it.pos=R,R+=Q+Wt,d[n]=it,J(a[n+1])}var ht=R/2+e.fontMetrics().axisHeight,Tt=t.cols||[],Zt=[],Xt,St,Rt=[];if(t.tags&&t.tags.some(bn=>bn))for(n=0;n<s;++n){var Yt=d[n],Dt=Yt.pos-ht,K=t.tags[n],lt=void 0;K===!0?lt=Vt.makeSpan(["eqn-num"],[],e):K===!1?lt=Vt.makeSpan([],[],e):lt=Vt.makeSpan([],ai(K,e,!0),e),lt.depth=Yt.depth,lt.height=Yt.height,Rt.push({type:"elem",elem:lt,shift:Dt})}for(i=0,St=0;i<o||St<Tt.length;++i,++St){for(var Mt=Tt[St]||{},H=!0;Mt.type==="separator";){if(H||(Xt=Vt.makeSpan(["arraycolsep"],[]),Xt.style.width=ie(e.fontMetrics().doubleRuleSep),Zt.push(Xt)),Mt.separator==="|"||Mt.separator===":"){var le=Mt.separator==="|"?"solid":"dashed",Ze=Vt.makeSpan(["vertical-separator"],[],e);Ze.style.height=ie(R),Ze.style.borderRightWidth=ie(m),Ze.style.borderRightStyle=le,Ze.style.margin="0 "+ie(-m/2);var $t=R-ht;$t&&(Ze.style.verticalAlign=ie(-$t)),Zt.push(Ze)}else throw new Qt("Invalid separator type: "+Mt.separator);St++,Mt=Tt[St]||{},H=!1}if(!(i>=o)){var me=void 0;(i>0||t.hskipBeforeAndAfter)&&(me=je.deflt(Mt.pregap,p),me!==0&&(Xt=Vt.makeSpan(["arraycolsep"],[]),Xt.style.width=ie(me),Zt.push(Xt)));var ye=[];for(n=0;n<s;++n){var Ft=d[n],Pe=Ft[i];if(Pe){var yl=Ft.pos-ht;Pe.depth=Ft.depth,Pe.height=Ft.height,ye.push({type:"elem",elem:Pe,shift:yl})}}ye=Vt.makeVList({positionType:"individualShift",children:ye},e),ye=Vt.makeSpan(["col-align-"+(Mt.align||"c")],[ye]),Zt.push(ye),(i<o-1||t.hskipBeforeAndAfter)&&(me=je.deflt(Mt.postgap,p),me!==0&&(Xt=Vt.makeSpan(["arraycolsep"],[]),Xt.style.width=ie(me),Zt.push(Xt)))}}if(d=Vt.makeSpan(["mtable"],Zt),u.length>0){for(var Oe=Vt.makeLineSpan("hline",e,m),nn=Vt.makeLineSpan("hdashline",e,m),Fn=[{type:"elem",elem:d,shift:0}];u.length>0;){var hn=u.pop(),nl=hn.pos-ht;hn.isDashed?Fn.push({type:"elem",elem:nn,shift:nl}):Fn.push({type:"elem",elem:Oe,shift:nl})}d=Vt.makeVList({positionType:"individualShift",children:Fn},e)}if(Rt.length===0)return Vt.makeSpan(["mord"],[d],e);var Pl=Vt.makeVList({positionType:"individualShift",children:Rt},e);return Pl=Vt.makeSpan(["tag"],[Pl],e),Vt.makeFragment([d,Pl])},RK={c:"center ",l:"left ",r:"right "},mo=function(t,e){for(var n=[],i=new Et.MathNode("mtd",[],["mtr-glue"]),s=new Et.MathNode("mtd",[],["mml-eqn-num"]),a=0;a<t.body.length;a++){for(var o=t.body[a],d=[],u=0;u<o.length;u++)d.push(new Et.MathNode("mtd",[Kl(o[u],e)]));t.tags&&t.tags[a]&&(d.unshift(i),d.push(i),t.leqno?d.unshift(s):d.push(s)),n.push(new Et.MathNode("mtr",d))}var m=new Et.MathNode("mtable",n),Z=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);m.setAttribute("rowspacing",ie(Z));var p="",y="";if(t.cols&&t.cols.length>0){var G=t.cols,X="",z=!1,L=0,S=G.length;G[0].type==="separator"&&(p+="top ",L=1),G[G.length-1].type==="separator"&&(p+="bottom ",S-=1);for(var R=L;R<S;R++)G[R].type==="align"?(y+=RK[G[R].align],z&&(X+="none "),z=!0):G[R].type==="separator"&&z&&(X+=G[R].separator==="|"?"solid ":"dashed ",z=!1);m.setAttribute("columnalign",y.trim()),/[sd]/.test(X)&&m.setAttribute("columnlines",X.trim())}if(t.colSeparationType==="align"){for(var J=t.cols||[],U="",j=1;j<J.length;j++)U+=j%2?"0em ":"1em ";m.setAttribute("columnspacing",U.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");var Q="",it=t.hLinesBeforeRow;p+=it[0].length>0?"left ":"",p+=it[it.length-1].length>0?"right ":"";for(var at=1;at<it.length-1;at++)Q+=it[at].length===0?"none ":it[at][0]?"dashed ":"solid ";return/[sd]/.test(Q)&&m.setAttribute("rowlines",Q.trim()),p!==""&&(m=new Et.MathNode("menclose",[m]),m.setAttribute("notation",p.trim())),t.arraystretch&&t.arraystretch<1&&(m=new Et.MathNode("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},Z3=function(t,e){t.envName.indexOf("ed")===-1&&l1(t);var n=[],i=t.envName.indexOf("at")>-1?"alignat":"align",s=t.envName==="split",a=_d(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:M5(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),o,d=0,u={type:"ordgroup",mode:t.mode,body:[]};if(e[0]&&e[0].type==="ordgroup"){for(var m="",Z=0;Z<e[0].body.length;Z++){var p=rl(e[0].body[Z],"textord");m+=p.text}o=Number(m),d=o*2}var y=!d;a.body.forEach(function(L){for(var S=1;S<L.length;S+=2){var R=rl(L[S],"styling"),J=rl(R.body[0],"ordgroup");J.body.unshift(u)}if(y)d<L.length&&(d=L.length);else{var U=L.length/2;if(o<U)throw new Qt("Too many math in a row: "+("expected "+o+", but got "+U),L[0])}});for(var G=0;G<d;++G){var X="r",z=0;G%2===1?X="l":G>0&&y&&(z=1),n[G]={type:"align",align:X,pregap:z,postgap:0}}return a.colSeparationType=y?"align":"alignat",a};ro({type:"array",names:["array","darray"],props:{numArgs:1},handler(l,t){var e=$W(t[0]),n=e?[t[0]]:rl(t[0],"ordgroup").body,i=n.map(function(a){var o=Z5(a),d=o.text;if("lcr".indexOf(d)!==-1)return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new Qt("Unknown column alignment: "+d,a)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return _d(l.parser,s,G5(l.envName))},htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(l){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName.replace("*","")],e="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:e}]};if(l.envName.charAt(l.envName.length-1)==="*"){var i=l.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),e=i.fetch().text,"lcr".indexOf(e)===-1)throw new Qt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:e}]}}var s=_d(l.parser,n,G5(l.envName)),a=Math.max(0,...s.body.map(o=>o.length));return s.cols=new Array(a).fill({type:"align",align:e}),t?{type:"leftright",mode:l.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(l){var t={arraystretch:.5},e=_d(l.parser,t,"script");return e.colSeparationType="small",e},htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["subarray"],props:{numArgs:1},handler(l,t){var e=$W(t[0]),n=e?[t[0]]:rl(t[0],"ordgroup").body,i=n.map(function(a){var o=Z5(a),d=o.text;if("lc".indexOf(d)!==-1)return{type:"align",align:d};throw new Qt("Unknown column alignment: "+d,a)});if(i.length>1)throw new Qt("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=_d(l.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new Qt("{subarray} can contain only one column");return s},htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(l){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},e=_d(l.parser,t,G5(l.envName));return{type:"leftright",mode:l.mode,body:[e],left:l.envName.indexOf("r")>-1?".":"\\{",right:l.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Z3,htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(l){je.contains(["gather","gather*"],l.envName)&&l1(l);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:M5(l.envName),emptySingleRow:!0,leqno:l.parser.settings.leqno};return _d(l.parser,t,"display")},htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Z3,htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(l){l1(l);var t={autoTag:M5(l.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:l.parser.settings.leqno};return _d(l.parser,t,"display")},htmlBuilder:uo,mathmlBuilder:mo});ro({type:"array",names:["CD"],props:{numArgs:0},handler(l){return l1(l),WK(l.parser)},htmlBuilder:uo,mathmlBuilder:mo});E("\\nonumber","\\gdef\\@eqnsw{0}");E("\\notag","\\nonumber");be({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(l,t){throw new Qt(l.funcName+" valid only within array environment")}});var MI=h3;be({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(l,t){var{parser:e,funcName:n}=l,i=t[0];if(i.type!=="ordgroup")throw new Qt("Invalid environment name",i);for(var s="",a=0;a<i.body.length;++a)s+=rl(i.body[a],"textord").text;if(n==="\\begin"){if(!MI.hasOwnProperty(s))throw new Qt("No such environment: "+s,i);var o=MI[s],{args:d,optArgs:u}=e.parseArguments("\\begin{"+s+"}",o),m={mode:e.mode,envName:s,parser:e},Z=o.handler(m,d,u);e.expect("\\end",!1);var p=e.nextToken,y=rl(e.parseFunction(),"environment");if(y.name!==s)throw new Qt("Mismatch: \\begin{"+s+"} matched by \\end{"+y.name+"}",p);return Z}return{type:"environment",mode:e.mode,name:s,nameGroup:i}}});var p3=(l,t)=>{var e=l.font,n=t.withFont(e);return Tl(l.body,n)},y3=(l,t)=>{var e=l.font,n=t.withFont(e);return Kl(l.body,n)},GI={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};be({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(l,t)=>{var{parser:e,funcName:n}=l,i=rW(t[0]),s=n;return s in GI&&(s=GI[s]),{type:"font",mode:e.mode,font:s.slice(1),body:i}},htmlBuilder:p3,mathmlBuilder:y3});be({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(l,t)=>{var{parser:e}=l,n=t[0],i=je.isCharacterBox(n);return{type:"mclass",mode:e.mode,mclass:t1(n),body:[{type:"font",mode:e.mode,font:"boldsymbol",body:n}],isCharacterBox:i}}});be({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(l,t)=>{var{parser:e,funcName:n,breakOnTokenText:i}=l,{mode:s}=e,a=e.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:s,font:o,body:{type:"ordgroup",mode:e.mode,body:a}}},htmlBuilder:p3,mathmlBuilder:y3});var N3=(l,t)=>{var e=t;return l==="display"?e=e.id>=Ee.SCRIPT.id?e.text():Ee.DISPLAY:l==="text"&&e.size===Ee.DISPLAY.size?e=Ee.TEXT:l==="script"?e=Ee.SCRIPT:l==="scriptscript"&&(e=Ee.SCRIPTSCRIPT),e},X5=(l,t)=>{var e=N3(l.size,t.style),n=e.fracNum(),i=e.fracDen(),s;s=t.havingStyle(n);var a=Tl(l.numer,s,t);if(l.continued){var o=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;a.height=a.height<o?o:a.height,a.depth=a.depth<d?d:a.depth}s=t.havingStyle(i);var u=Tl(l.denom,s,t),m,Z,p;l.hasBarLine?(l.barSize?(Z=Vn(l.barSize,t),m=Vt.makeLineSpan("frac-line",t,Z)):m=Vt.makeLineSpan("frac-line",t),Z=m.height,p=m.height):(m=null,Z=0,p=t.fontMetrics().defaultRuleThickness);var y,G,X;e.size===Ee.DISPLAY.size||l.size==="display"?(y=t.fontMetrics().num1,Z>0?G=3*p:G=7*p,X=t.fontMetrics().denom1):(Z>0?(y=t.fontMetrics().num2,G=p):(y=t.fontMetrics().num3,G=3*p),X=t.fontMetrics().denom2);var z;if(m){var S=t.fontMetrics().axisHeight;y-a.depth-(S+.5*Z)<G&&(y+=G-(y-a.depth-(S+.5*Z))),S-.5*Z-(u.height-X)<G&&(X+=G-(S-.5*Z-(u.height-X)));var R=-(S-.5*Z);z=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:X},{type:"elem",elem:m,shift:R},{type:"elem",elem:a,shift:-y}]},t)}else{var L=y-a.depth-(u.height-X);L<G&&(y+=.5*(G-L),X+=.5*(G-L)),z=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:X},{type:"elem",elem:a,shift:-y}]},t)}s=t.havingStyle(e),z.height*=s.sizeMultiplier/t.sizeMultiplier,z.depth*=s.sizeMultiplier/t.sizeMultiplier;var J;e.size===Ee.DISPLAY.size?J=t.fontMetrics().delim1:e.size===Ee.SCRIPTSCRIPT.size?J=t.havingStyle(Ee.SCRIPT).fontMetrics().delim2:J=t.fontMetrics().delim2;var U,j;return l.leftDelim==null?U=jZ(t,["mopen"]):U=yr.customSizedDelim(l.leftDelim,J,!0,t.havingStyle(e),l.mode,["mopen"]),l.continued?j=Vt.makeSpan([]):l.rightDelim==null?j=jZ(t,["mclose"]):j=yr.customSizedDelim(l.rightDelim,J,!0,t.havingStyle(e),l.mode,["mclose"]),Vt.makeSpan(["mord"].concat(s.sizingClasses(t)),[U,Vt.makeSpan(["mfrac"],[z]),j],t)},Y5=(l,t)=>{var e=new Et.MathNode("mfrac",[Kl(l.numer,t),Kl(l.denom,t)]);if(!l.hasBarLine)e.setAttribute("linethickness","0px");else if(l.barSize){var n=Vn(l.barSize,t);e.setAttribute("linethickness",ie(n))}var i=N3(l.size,t.style);if(i.size!==t.style.size){e=new Et.MathNode("mstyle",[e]);var s=i.size===Ee.DISPLAY.size?"true":"false";e.setAttribute("displaystyle",s),e.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var a=[];if(l.leftDelim!=null){var o=new Et.MathNode("mo",[new Et.TextNode(l.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),a.push(o)}if(a.push(e),l.rightDelim!=null){var d=new Et.MathNode("mo",[new Et.TextNode(l.rightDelim.replace("\\",""))]);d.setAttribute("fence","true"),a.push(d)}return h5(a)}return e};be({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(l,t)=>{var{parser:e,funcName:n}=l,i=t[0],s=t[1],a,o=null,d=null,u="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,o="(",d=")";break;case"\\\\bracefrac":a=!1,o="\\{",d="\\}";break;case"\\\\brackfrac":a=!1,o="[",d="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:e.mode,continued:!1,numer:i,denom:s,hasBarLine:a,leftDelim:o,rightDelim:d,size:u,barSize:null}},htmlBuilder:X5,mathmlBuilder:Y5});be({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(l,t)=>{var{parser:e,funcName:n}=l,i=t[0],s=t[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:i,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});be({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(l){var{parser:t,funcName:e,token:n}=l,i;switch(e){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var XI=["display","text","script","scriptscript"],YI=function(t){var e=null;return t.length>0&&(e=t,e=e==="."?null:e),e};be({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(l,t){var{parser:e}=l,n=t[4],i=t[5],s=rW(t[0]),a=s.type==="atom"&&s.family==="open"?YI(s.text):null,o=rW(t[1]),d=o.type==="atom"&&o.family==="close"?YI(o.text):null,u=rl(t[2],"size"),m,Z=null;u.isBlank?m=!0:(Z=u.value,m=Z.number>0);var p="auto",y=t[3];if(y.type==="ordgroup"){if(y.body.length>0){var G=rl(y.body[0],"textord");p=XI[Number(G.text)]}}else y=rl(y,"textord"),p=XI[Number(y.text)];return{type:"genfrac",mode:e.mode,numer:n,denom:i,continued:!1,hasBarLine:m,barSize:Z,leftDelim:a,rightDelim:d,size:p}},htmlBuilder:X5,mathmlBuilder:Y5});be({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(l,t){var{parser:e,funcName:n,token:i}=l;return{type:"infix",mode:e.mode,replaceWith:"\\\\abovefrac",size:rl(t[0],"size").value,token:i}}});be({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(l,t)=>{var{parser:e,funcName:n}=l,i=t[0],s=o4(rl(t[1],"infix").size),a=t[2],o=s.number>0;return{type:"genfrac",mode:e.mode,numer:i,denom:a,continued:!1,hasBarLine:o,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:X5,mathmlBuilder:Y5});var W3=(l,t)=>{var e=t.style,n,i;l.type==="supsub"?(n=l.sup?Tl(l.sup,t.havingStyle(e.sup()),t):Tl(l.sub,t.havingStyle(e.sub()),t),i=rl(l.base,"horizBrace")):i=rl(l,"horizBrace");var s=Tl(i.base,t.havingBaseStyle(Ee.DISPLAY)),a=Xr.svgSpan(i,t),o;if(i.isOver?(o=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Vt.makeVList({positionType:"bottom",positionData:s.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),n){var d=Vt.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:n}]},t):o=Vt.makeVList({positionType:"bottom",positionData:d.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:d}]},t)}return Vt.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},kK=(l,t)=>{var e=Xr.mathMLnode(l.label);return new Et.MathNode(l.isOver?"mover":"munder",[Kl(l.base,t),e])};be({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(l,t){var{parser:e,funcName:n}=l;return{type:"horizBrace",mode:e.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:W3,mathmlBuilder:kK});be({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(l,t)=>{var{parser:e}=l,n=t[1],i=rl(t[0],"url").url;return e.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:e.mode,href:i,body:On(n)}:e.formatUnsupportedCmd("\\href")},htmlBuilder:(l,t)=>{var e=ai(l.body,t,!1);return Vt.makeAnchor(l.href,[],e,t)},mathmlBuilder:(l,t)=>{var e=Ud(l.body,t);return e instanceof ua||(e=new ua("mrow",[e])),e.setAttribute("href",l.href),e}});be({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(l,t)=>{var{parser:e}=l,n=rl(t[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:n}))return e.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<n.length;s++){var a=n[s];a==="~"&&(a="\\textasciitilde"),i.push({type:"textord",mode:"text",text:a})}var o={type:"text",mode:e.mode,font:"\\texttt",body:i};return{type:"href",mode:e.mode,href:n,body:On(o)}}});be({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(l,t){var{parser:e}=l;return{type:"hbox",mode:e.mode,body:On(t[0])}},htmlBuilder(l,t){var e=ai(l.body,t,!1);return Vt.makeFragment(e)},mathmlBuilder(l,t){return new Et.MathNode("mrow",Rs(l.body,t))}});be({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(l,t)=>{var{parser:e,funcName:n,token:i}=l,s=rl(t[0],"raw").string,a=t[1];e.settings.strict&&e.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,d={};switch(n){case"\\htmlClass":d.class=s,o={command:"\\htmlClass",class:s};break;case"\\htmlId":d.id=s,o={command:"\\htmlId",id:s};break;case"\\htmlStyle":d.style=s,o={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var u=s.split(","),m=0;m<u.length;m++){var Z=u[m].split("=");if(Z.length!==2)throw new Qt("Error parsing key-value for \\htmlData");d["data-"+Z[0].trim()]=Z[1].trim()}o={command:"\\htmlData",attributes:d};break}default:throw new Error("Unrecognized html command")}return e.settings.isTrusted(o)?{type:"html",mode:e.mode,attributes:d,body:On(a)}:e.formatUnsupportedCmd(n)},htmlBuilder:(l,t)=>{var e=ai(l.body,t,!1),n=["enclosing"];l.attributes.class&&n.push(...l.attributes.class.trim().split(/\s+/));var i=Vt.makeSpan(n,e,t);for(var s in l.attributes)s!=="class"&&l.attributes.hasOwnProperty(s)&&i.setAttribute(s,l.attributes[s]);return i},mathmlBuilder:(l,t)=>Ud(l.body,t)});be({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(l,t)=>{var{parser:e}=l;return{type:"htmlmathml",mode:e.mode,html:On(t[0]),mathml:On(t[1])}},htmlBuilder:(l,t)=>{var e=ai(l.html,t,!1);return Vt.makeFragment(e)},mathmlBuilder:(l,t)=>Ud(l.mathml,t)});var MG=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var e=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!e)throw new Qt("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(e[1]+e[2]),unit:e[3]};if(!Cw(n))throw new Qt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};be({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(l,t,e)=>{var{parser:n}=l,i={number:0,unit:"em"},s={number:.9,unit:"em"},a={number:0,unit:"em"},o="";if(e[0])for(var d=rl(e[0],"raw").string,u=d.split(","),m=0;m<u.length;m++){var Z=u[m].split("=");if(Z.length===2){var p=Z[1].trim();switch(Z[0].trim()){case"alt":o=p;break;case"width":i=MG(p);break;case"height":s=MG(p);break;case"totalheight":a=MG(p);break;default:throw new Qt("Invalid key: '"+Z[0]+"' in \\includegraphics.")}}}var y=rl(t[0],"url").url;return o===""&&(o=y,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:y})?{type:"includegraphics",mode:n.mode,alt:o,width:i,height:s,totalheight:a,src:y}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(l,t)=>{var e=Vn(l.height,t),n=0;l.totalheight.number>0&&(n=Vn(l.totalheight,t)-e);var i=0;l.width.number>0&&(i=Vn(l.width,t));var s={height:ie(e+n)};i>0&&(s.width=ie(i)),n>0&&(s.verticalAlign=ie(-n));var a=new R4(l.src,l.alt,s);return a.height=e,a.depth=n,a},mathmlBuilder:(l,t)=>{var e=new Et.MathNode("mglyph",[]);e.setAttribute("alt",l.alt);var n=Vn(l.height,t),i=0;if(l.totalheight.number>0&&(i=Vn(l.totalheight,t)-n,e.setAttribute("valign",ie(-i))),e.setAttribute("height",ie(n+i)),l.width.number>0){var s=Vn(l.width,t);e.setAttribute("width",ie(s))}return e.setAttribute("src",l.src),e}});be({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(l,t){var{parser:e,funcName:n}=l,i=rl(t[0],"size");if(e.settings.strict){var s=n[1]==="m",a=i.value.unit==="mu";s?(a||e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),e.mode!=="math"&&e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):a&&e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:e.mode,dimension:i.value}},htmlBuilder(l,t){return Vt.makeGlue(l.dimension,t)},mathmlBuilder(l,t){var e=Vn(l.dimension,t);return new Et.SpaceNode(e)}});be({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(l,t)=>{var{parser:e,funcName:n}=l,i=t[0];return{type:"lap",mode:e.mode,alignment:n.slice(5),body:i}},htmlBuilder:(l,t)=>{var e;l.alignment==="clap"?(e=Vt.makeSpan([],[Tl(l.body,t)]),e=Vt.makeSpan(["inner"],[e],t)):e=Vt.makeSpan(["inner"],[Tl(l.body,t)]);var n=Vt.makeSpan(["fix"],[]),i=Vt.makeSpan([l.alignment],[e,n],t),s=Vt.makeSpan(["strut"]);return s.style.height=ie(i.height+i.depth),i.depth&&(s.style.verticalAlign=ie(-i.depth)),i.children.unshift(s),i=Vt.makeSpan(["thinbox"],[i],t),Vt.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(l,t)=>{var e=new Et.MathNode("mpadded",[Kl(l.body,t)]);if(l.alignment!=="rlap"){var n=l.alignment==="llap"?"-1":"-0.5";e.setAttribute("lspace",n+"width")}return e.setAttribute("width","0px"),e}});be({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(l,t){var{funcName:e,parser:n}=l,i=n.mode;n.switchMode("math");var s=e==="\\("?"\\)":"$",a=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:a}}});be({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(l,t){throw new Qt("Mismatched "+l.funcName)}});var TI=(l,t)=>{switch(t.style.size){case Ee.DISPLAY.size:return l.display;case Ee.TEXT.size:return l.text;case Ee.SCRIPT.size:return l.script;case Ee.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};be({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(l,t)=>{var{parser:e}=l;return{type:"mathchoice",mode:e.mode,display:On(t[0]),text:On(t[1]),script:On(t[2]),scriptscript:On(t[3])}},htmlBuilder:(l,t)=>{var e=TI(l,t),n=ai(e,t,!1);return Vt.makeFragment(n)},mathmlBuilder:(l,t)=>{var e=TI(l,t);return Ud(e,t)}});var M3=(l,t,e,n,i,s,a)=>{l=Vt.makeSpan([],[l]);var o=e&&je.isCharacterBox(e),d,u;if(t){var m=Tl(t,n.havingStyle(i.sup()),n);u={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-m.depth)}}if(e){var Z=Tl(e,n.havingStyle(i.sub()),n);d={elem:Z,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-Z.height)}}var p;if(u&&d){var y=n.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+l.depth+a;p=Vt.makeVList({positionType:"bottom",positionData:y,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:ie(-s)},{type:"kern",size:d.kern},{type:"elem",elem:l},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:ie(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(d){var G=l.height-a;p=Vt.makeVList({positionType:"top",positionData:G,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:ie(-s)},{type:"kern",size:d.kern},{type:"elem",elem:l}]},n)}else if(u){var X=l.depth+a;p=Vt.makeVList({positionType:"bottom",positionData:X,children:[{type:"elem",elem:l},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:ie(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return l;var z=[p];if(d&&s!==0&&!o){var L=Vt.makeSpan(["mspace"],[],n);L.style.marginRight=ie(s),z.unshift(L)}return Vt.makeSpan(["mop","op-limits"],z,n)},G3=["\\smallint"],Gb=(l,t)=>{var e,n,i=!1,s;l.type==="supsub"?(e=l.sup,n=l.sub,s=rl(l.base,"op"),i=!0):s=rl(l,"op");var a=t.style,o=!1;a.size===Ee.DISPLAY.size&&s.symbol&&!je.contains(G3,s.name)&&(o=!0);var d;if(s.symbol){var u=o?"Size2-Regular":"Size1-Regular",m="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(m=s.name.slice(1),s.name=m==="oiint"?"\\iint":"\\iiint"),d=Vt.makeSymbol(s.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),m.length>0){var Z=d.italic,p=Vt.staticSvg(m+"Size"+(o?"2":"1"),t);d=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),s.name="\\"+m,d.classes.unshift("mop"),d.italic=Z}}else if(s.body){var y=ai(s.body,t,!0);y.length===1&&y[0]instanceof Mc?(d=y[0],d.classes[0]="mop"):d=Vt.makeSpan(["mop"],y,t)}else{for(var G=[],X=1;X<s.name.length;X++)G.push(Vt.mathsym(s.name[X],s.mode,t));d=Vt.makeSpan(["mop"],G,t)}var z=0,L=0;return(d instanceof Mc||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(z=(d.height-d.depth)/2-t.fontMetrics().axisHeight,L=d.italic),i?M3(d,e,n,t,a,L,z):(z&&(d.style.position="relative",d.style.top=ie(z)),d)},T2=(l,t)=>{var e;if(l.symbol)e=new ua("mo",[Pa(l.name,l.mode)]),je.contains(G3,l.name)&&e.setAttribute("largeop","false");else if(l.body)e=new ua("mo",Rs(l.body,t));else{e=new ua("mi",[new so(l.name.slice(1))]);var n=new ua("mo",[Pa("⁡","text")]);l.parentIsSupSub?e=new ua("mrow",[e,n]):e=_w([e,n])}return e},fK={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};be({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(l,t)=>{var{parser:e,funcName:n}=l,i=n;return i.length===1&&(i=fK[i]),{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Gb,mathmlBuilder:T2});be({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(l,t)=>{var{parser:e}=l,n=t[0];return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:On(n)}},htmlBuilder:Gb,mathmlBuilder:T2});var DK={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};be({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(l){var{parser:t,funcName:e}=l;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:e}},htmlBuilder:Gb,mathmlBuilder:T2});be({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(l){var{parser:t,funcName:e}=l;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:e}},htmlBuilder:Gb,mathmlBuilder:T2});be({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(l){var{parser:t,funcName:e}=l,n=e;return n.length===1&&(n=DK[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Gb,mathmlBuilder:T2});var X3=(l,t)=>{var e,n,i=!1,s;l.type==="supsub"?(e=l.sup,n=l.sub,s=rl(l.base,"operatorname"),i=!0):s=rl(l,"operatorname");var a;if(s.body.length>0){for(var o=s.body.map(Z=>{var p=Z.text;return typeof p=="string"?{type:"textord",mode:Z.mode,text:p}:Z}),d=ai(o,t.withFont("mathrm"),!0),u=0;u<d.length;u++){var m=d[u];m instanceof Mc&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=Vt.makeSpan(["mop"],d,t)}else a=Vt.makeSpan(["mop"],[],t);return i?M3(a,e,n,t,t.style,0,0):a},jK=(l,t)=>{for(var e=Rs(l.body,t.withFont("mathrm")),n=!0,i=0;i<e.length;i++){var s=e[i];if(!(s instanceof Et.SpaceNode))if(s instanceof Et.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var a=s.children[0];s.children.length===1&&a instanceof Et.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=e.map(m=>m.toText()).join("");e=[new Et.TextNode(o)]}var d=new Et.MathNode("mi",e);d.setAttribute("mathvariant","normal");var u=new Et.MathNode("mo",[Pa("⁡","text")]);return l.parentIsSupSub?new Et.MathNode("mrow",[d,u]):Et.newDocumentFragment([d,u])};be({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(l,t)=>{var{parser:e,funcName:n}=l,i=t[0];return{type:"operatorname",mode:e.mode,body:On(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:X3,mathmlBuilder:jK});E("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");nm({type:"ordgroup",htmlBuilder(l,t){return l.semisimple?Vt.makeFragment(ai(l.body,t,!1)):Vt.makeSpan(["mord"],ai(l.body,t,!0),t)},mathmlBuilder(l,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment