cycls 0.0.2.55__py3-none-any.whl → 0.0.2.57__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,400 @@
1
+ var IT=Object.defineProperty;var LT=(e,t,n)=>t in e?IT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var si=(e,t,n)=>LT(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yh={exports:{}},so={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var gb;function BT(){if(gb)return so;gb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,s,l){var o=null;if(l!==void 0&&(o=""+l),s.key!==void 0&&(o=""+s.key),"key"in s){l={};for(var d in s)d!=="key"&&(l[d]=s[d])}else l=s;return s=l.ref,{$$typeof:e,type:r,key:o,ref:s!==void 0?s:null,props:l}}return so.Fragment=t,so.jsx=n,so.jsxs=n,so}var bb;function PT(){return bb||(bb=1,Yh.exports=BT()),Yh.exports}var P=PT(),Gh={exports:{}},Et={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Eb;function UT(){if(Eb)return Et;Eb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),o=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function y(A){return A===null||typeof A!="object"?null:(A=g&&A[g]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function R(A,le,ye){this.props=A,this.context=le,this.refs=x,this.updater=ye||T}R.prototype.isReactComponent={},R.prototype.setState=function(A,le){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,le,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function C(){}C.prototype=R.prototype;function M(A,le,ye){this.props=A,this.context=le,this.refs=x,this.updater=ye||T}var L=M.prototype=new C;L.constructor=M,w(L,R.prototype),L.isPureReactComponent=!0;var $=Array.isArray,G={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function ne(A,le,ye,D,Ie,Ve){return ye=Ve.ref,{$$typeof:e,type:A,key:le,ref:ye!==void 0?ye:null,props:Ve}}function ce(A,le){return ne(A.type,le,void 0,void 0,void 0,A.props)}function Q(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function j(A){var le={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ye){return le[ye]})}var me=/\/+/g;function J(A,le){return typeof A=="object"&&A!==null&&A.key!=null?j(""+A.key):le.toString(36)}function se(){}function fe(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(se,se):(A.status="pending",A.then(function(le){A.status==="pending"&&(A.status="fulfilled",A.value=le)},function(le){A.status==="pending"&&(A.status="rejected",A.reason=le)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function pe(A,le,ye,D,Ie){var Ve=typeof A;(Ve==="undefined"||Ve==="boolean")&&(A=null);var Be=!1;if(A===null)Be=!0;else switch(Ve){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(A.$$typeof){case e:case t:Be=!0;break;case p:return Be=A._init,pe(Be(A._payload),le,ye,D,Ie)}}if(Be)return Ie=Ie(A),Be=D===""?"."+J(A,0):D,$(Ie)?(ye="",Be!=null&&(ye=Be.replace(me,"$&/")+"/"),pe(Ie,le,ye,"",function(Qt){return Qt})):Ie!=null&&(Q(Ie)&&(Ie=ce(Ie,ye+(Ie.key==null||A&&A.key===Ie.key?"":(""+Ie.key).replace(me,"$&/")+"/")+Be)),le.push(Ie)),1;Be=0;var Mt=D===""?".":D+":";if($(A))for(var ot=0;ot<A.length;ot++)D=A[ot],Ve=Mt+J(D,ot),Be+=pe(D,le,ye,Ve,Ie);else if(ot=y(A),typeof ot=="function")for(A=ot.call(A),ot=0;!(D=A.next()).done;)D=D.value,Ve=Mt+J(D,ot++),Be+=pe(D,le,ye,Ve,Ie);else if(Ve==="object"){if(typeof A.then=="function")return pe(fe(A),le,ye,D,Ie);throw le=String(A),Error("Objects are not valid as a React child (found: "+(le==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":le)+"). If you meant to render a collection of children, use an array instead.")}return Be}function X(A,le,ye){if(A==null)return A;var D=[],Ie=0;return pe(A,D,"","",function(Ve){return le.call(ye,Ve,Ie++)}),D}function he(A){if(A._status===-1){var le=A._result;le=le(),le.then(function(ye){(A._status===0||A._status===-1)&&(A._status=1,A._result=ye)},function(ye){(A._status===0||A._status===-1)&&(A._status=2,A._result=ye)}),A._status===-1&&(A._status=0,A._result=le)}if(A._status===1)return A._result.default;throw A._result}var be=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var le=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(le))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function ze(){}return Et.Children={map:X,forEach:function(A,le,ye){X(A,function(){le.apply(this,arguments)},ye)},count:function(A){var le=0;return X(A,function(){le++}),le},toArray:function(A){return X(A,function(le){return le})||[]},only:function(A){if(!Q(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Et.Component=R,Et.Fragment=n,Et.Profiler=s,Et.PureComponent=M,Et.StrictMode=r,Et.Suspense=f,Et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,Et.__COMPILER_RUNTIME={__proto__:null,c:function(A){return G.H.useMemoCache(A)}},Et.cache=function(A){return function(){return A.apply(null,arguments)}},Et.cloneElement=function(A,le,ye){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var D=w({},A.props),Ie=A.key,Ve=void 0;if(le!=null)for(Be in le.ref!==void 0&&(Ve=void 0),le.key!==void 0&&(Ie=""+le.key),le)!z.call(le,Be)||Be==="key"||Be==="__self"||Be==="__source"||Be==="ref"&&le.ref===void 0||(D[Be]=le[Be]);var Be=arguments.length-2;if(Be===1)D.children=ye;else if(1<Be){for(var Mt=Array(Be),ot=0;ot<Be;ot++)Mt[ot]=arguments[ot+2];D.children=Mt}return ne(A.type,Ie,void 0,void 0,Ve,D)},Et.createContext=function(A){return A={$$typeof:o,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:l,_context:A},A},Et.createElement=function(A,le,ye){var D,Ie={},Ve=null;if(le!=null)for(D in le.key!==void 0&&(Ve=""+le.key),le)z.call(le,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(Ie[D]=le[D]);var Be=arguments.length-2;if(Be===1)Ie.children=ye;else if(1<Be){for(var Mt=Array(Be),ot=0;ot<Be;ot++)Mt[ot]=arguments[ot+2];Ie.children=Mt}if(A&&A.defaultProps)for(D in Be=A.defaultProps,Be)Ie[D]===void 0&&(Ie[D]=Be[D]);return ne(A,Ve,void 0,void 0,null,Ie)},Et.createRef=function(){return{current:null}},Et.forwardRef=function(A){return{$$typeof:d,render:A}},Et.isValidElement=Q,Et.lazy=function(A){return{$$typeof:p,_payload:{_status:-1,_result:A},_init:he}},Et.memo=function(A,le){return{$$typeof:h,type:A,compare:le===void 0?null:le}},Et.startTransition=function(A){var le=G.T,ye={};G.T=ye;try{var D=A(),Ie=G.S;Ie!==null&&Ie(ye,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(ze,be)}catch(Ve){be(Ve)}finally{G.T=le}},Et.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},Et.use=function(A){return G.H.use(A)},Et.useActionState=function(A,le,ye){return G.H.useActionState(A,le,ye)},Et.useCallback=function(A,le){return G.H.useCallback(A,le)},Et.useContext=function(A){return G.H.useContext(A)},Et.useDebugValue=function(){},Et.useDeferredValue=function(A,le){return G.H.useDeferredValue(A,le)},Et.useEffect=function(A,le,ye){var D=G.H;if(typeof ye=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return D.useEffect(A,le)},Et.useId=function(){return G.H.useId()},Et.useImperativeHandle=function(A,le,ye){return G.H.useImperativeHandle(A,le,ye)},Et.useInsertionEffect=function(A,le){return G.H.useInsertionEffect(A,le)},Et.useLayoutEffect=function(A,le){return G.H.useLayoutEffect(A,le)},Et.useMemo=function(A,le){return G.H.useMemo(A,le)},Et.useOptimistic=function(A,le){return G.H.useOptimistic(A,le)},Et.useReducer=function(A,le,ye){return G.H.useReducer(A,le,ye)},Et.useRef=function(A){return G.H.useRef(A)},Et.useState=function(A){return G.H.useState(A)},Et.useSyncExternalStore=function(A,le,ye){return G.H.useSyncExternalStore(A,le,ye)},Et.useTransition=function(){return G.H.useTransition()},Et.version="19.1.0",Et}var yb;function bd(){return yb||(yb=1,Gh.exports=UT()),Gh.exports}var V=bd();const de=gd(V);var Vh={exports:{}},lo={},Kh={exports:{}},$h={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var vb;function zT(){return vb||(vb=1,function(e){function t(X,he){var be=X.length;X.push(he);e:for(;0<be;){var ze=be-1>>>1,A=X[ze];if(0<s(A,he))X[ze]=he,X[be]=A,be=ze;else break e}}function n(X){return X.length===0?null:X[0]}function r(X){if(X.length===0)return null;var he=X[0],be=X.pop();if(be!==he){X[0]=be;e:for(var ze=0,A=X.length,le=A>>>1;ze<le;){var ye=2*(ze+1)-1,D=X[ye],Ie=ye+1,Ve=X[Ie];if(0>s(D,be))Ie<A&&0>s(Ve,D)?(X[ze]=Ve,X[Ie]=be,ze=Ie):(X[ze]=D,X[ye]=be,ze=ye);else if(Ie<A&&0>s(Ve,be))X[ze]=Ve,X[Ie]=be,ze=Ie;else break e}}return he}function s(X,he){var be=X.sortIndex-he.sortIndex;return be!==0?be:X.id-he.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,d=o.now();e.unstable_now=function(){return o.now()-d}}var f=[],h=[],p=1,g=null,y=3,T=!1,w=!1,x=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function $(X){for(var he=n(h);he!==null;){if(he.callback===null)r(h);else if(he.startTime<=X)r(h),he.sortIndex=he.expirationTime,t(f,he);else break;he=n(h)}}function G(X){if(x=!1,$(X),!w)if(n(f)!==null)w=!0,z||(z=!0,J());else{var he=n(h);he!==null&&pe(G,he.startTime-X)}}var z=!1,ne=-1,ce=5,Q=-1;function j(){return R?!0:!(e.unstable_now()-Q<ce)}function me(){if(R=!1,z){var X=e.unstable_now();Q=X;var he=!0;try{e:{w=!1,x&&(x=!1,M(ne),ne=-1),T=!0;var be=y;try{t:{for($(X),g=n(f);g!==null&&!(g.expirationTime>X&&j());){var ze=g.callback;if(typeof ze=="function"){g.callback=null,y=g.priorityLevel;var A=ze(g.expirationTime<=X);if(X=e.unstable_now(),typeof A=="function"){g.callback=A,$(X),he=!0;break t}g===n(f)&&r(f),$(X)}else r(f);g=n(f)}if(g!==null)he=!0;else{var le=n(h);le!==null&&pe(G,le.startTime-X),he=!1}}break e}finally{g=null,y=be,T=!1}he=void 0}}finally{he?J():z=!1}}}var J;if(typeof L=="function")J=function(){L(me)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,fe=se.port2;se.port1.onmessage=me,J=function(){fe.postMessage(null)}}else J=function(){C(me,0)};function pe(X,he){ne=C(function(){X(e.unstable_now())},he)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(X){switch(y){case 1:case 2:case 3:var he=3;break;default:he=y}var be=y;y=he;try{return X()}finally{y=be}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(X,he){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var be=y;y=X;try{return he()}finally{y=be}},e.unstable_scheduleCallback=function(X,he,be){var ze=e.unstable_now();switch(typeof be=="object"&&be!==null?(be=be.delay,be=typeof be=="number"&&0<be?ze+be:ze):be=ze,X){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=be+A,X={id:p++,callback:he,priorityLevel:X,startTime:be,expirationTime:A,sortIndex:-1},be>ze?(X.sortIndex=be,t(h,X),n(f)===null&&X===n(h)&&(x?(M(ne),ne=-1):x=!0,pe(G,be-ze))):(X.sortIndex=A,t(f,X),w||T||(w=!0,z||(z=!0,J()))),X},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(X){var he=y;return function(){var be=y;y=he;try{return X.apply(this,arguments)}finally{y=be}}}}($h)),$h}var Tb;function FT(){return Tb||(Tb=1,Kh.exports=zT()),Kh.exports}var Wh={exports:{}},er={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var _b;function HT(){if(_b)return er;_b=1;var e=bd();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(f,h,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:f,containerInfo:h,implementation:p}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return er.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,er.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,p)},er.flushSync=function(f){var h=o.T,p=r.p;try{if(o.T=null,r.p=2,f)return f()}finally{o.T=h,r.p=p,r.d.f()}},er.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},er.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},er.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,g=d(p,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,T=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:T}):p==="script"&&r.d.X(f,{crossOrigin:g,integrity:y,fetchPriority:T,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},er.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=d(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},er.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,g=d(p,h.crossOrigin);r.d.L(f,p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},er.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=d(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},er.requestFormReset=function(f){r.d.r(f)},er.unstable_batchedUpdates=function(f,h){return f(h)},er.useFormState=function(f,h,p){return o.H.useFormState(f,h,p)},er.useFormStatus=function(){return o.H.useHostTransitionStatus()},er.version="19.1.0",er}var Sb;function hE(){if(Sb)return Wh.exports;Sb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wh.exports=HT(),Wh.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var xb;function qT(){if(xb)return lo;xb=1;var e=FT(),t=bd(),n=hE();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function l(a){var i=a,u=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(u=i.return),a=i.return;while(a)}return i.tag===3?u:null}function o(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function d(a){if(l(a)!==a)throw Error(r(188))}function f(a){var i=a.alternate;if(!i){if(i=l(a),i===null)throw Error(r(188));return i!==a?null:a}for(var u=a,c=i;;){var m=u.return;if(m===null)break;var b=m.alternate;if(b===null){if(c=m.return,c!==null){u=c;continue}break}if(m.child===b.child){for(b=m.child;b;){if(b===u)return d(m),a;if(b===c)return d(m),i;b=b.sibling}throw Error(r(188))}if(u.return!==c.return)u=m,c=b;else{for(var S=!1,N=m.child;N;){if(N===u){S=!0,u=m,c=b;break}if(N===c){S=!0,c=m,u=b;break}N=N.sibling}if(!S){for(N=b.child;N;){if(N===u){S=!0,u=b,c=m;break}if(N===c){S=!0,c=b,u=m;break}N=N.sibling}if(!S)throw Error(r(189))}}if(u.alternate!==c)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:i}function h(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=h(a),i!==null)return i;a=a.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),L=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),me=Symbol.iterator;function J(a){return a===null||typeof a!="object"?null:(a=me&&a[me]||a["@@iterator"],typeof a=="function"?a:null)}var se=Symbol.for("react.client.reference");function fe(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===se?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case w:return"Fragment";case R:return"Profiler";case x:return"StrictMode";case G:return"Suspense";case z:return"SuspenseList";case Q:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case T:return"Portal";case L:return(a.displayName||"Context")+".Provider";case M:return(a._context.displayName||"Context")+".Consumer";case $:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case ne:return i=a.displayName||null,i!==null?i:fe(a.type)||"Memo";case ce:i=a._payload,a=a._init;try{return fe(a(i))}catch{}}return null}var pe=Array.isArray,X=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be={pending:!1,data:null,method:null,action:null},ze=[],A=-1;function le(a){return{current:a}}function ye(a){0>A||(a.current=ze[A],ze[A]=null,A--)}function D(a,i){A++,ze[A]=a.current,a.current=i}var Ie=le(null),Ve=le(null),Be=le(null),Mt=le(null);function ot(a,i){switch(D(Be,i),D(Ve,a),D(Ie,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?Y4(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=Y4(i),a=G4(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}ye(Ie),D(Ie,a)}function Qt(){ye(Ie),ye(Ve),ye(Be)}function Ft(a){a.memoizedState!==null&&D(Mt,a);var i=Ie.current,u=G4(i,a.type);i!==u&&(D(Ve,a),D(Ie,u))}function An(a){Ve.current===a&&(ye(Ie),ye(Ve)),Mt.current===a&&(ye(Mt),to._currentValue=be)}var at=Object.prototype.hasOwnProperty,Qe=e.unstable_scheduleCallback,it=e.unstable_cancelCallback,Rt=e.unstable_shouldYield,qe=e.unstable_requestPaint,ht=e.unstable_now,jt=e.unstable_getCurrentPriorityLevel,xt=e.unstable_ImmediatePriority,lt=e.unstable_UserBlockingPriority,Ze=e.unstable_NormalPriority,Zt=e.unstable_LowPriority,tt=e.unstable_IdlePriority,Tt=e.log,_t=e.unstable_setDisableYieldValue,re=null,xe=null;function $e(a){if(typeof Tt=="function"&&_t(a),xe&&typeof xe.setStrictMode=="function")try{xe.setStrictMode(re,a)}catch{}}var Je=Math.clz32?Math.clz32:oa,Ut=Math.log,ir=Math.LN2;function oa(a){return a>>>=0,a===0?32:31-(Ut(a)/ir|0)|0}var Qn=256,Nr=4194304;function sr(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function On(a,i,u){var c=a.pendingLanes;if(c===0)return 0;var m=0,b=a.suspendedLanes,S=a.pingedLanes;a=a.warmLanes;var N=c&134217727;return N!==0?(c=N&~b,c!==0?m=sr(c):(S&=N,S!==0?m=sr(S):u||(u=N&~a,u!==0&&(m=sr(u))))):(N=c&~b,N!==0?m=sr(N):S!==0?m=sr(S):u||(u=c&~a,u!==0&&(m=sr(u)))),m===0?0:i!==0&&i!==m&&(i&b)===0&&(b=m&-m,u=i&-i,b>=u||b===32&&(u&4194048)!==0)?i:m}function Er(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function lr(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lu(){var a=Qn;return Qn<<=1,(Qn&4194048)===0&&(Qn=256),a}function uu(){var a=Nr;return Nr<<=1,(Nr&62914560)===0&&(Nr=4194304),a}function ou(a){for(var i=[],u=0;31>u;u++)i.push(a);return i}function xi(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Ai(a,i,u,c,m,b){var S=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var N=a.entanglements,q=a.expirationTimes,ae=a.hiddenUpdates;for(u=S&~u;0<u;){var Ee=31-Je(u),_e=1<<Ee;N[Ee]=0,q[Ee]=-1;var ue=ae[Ee];if(ue!==null)for(ae[Ee]=null,Ee=0;Ee<ue.length;Ee++){var oe=ue[Ee];oe!==null&&(oe.lane&=-536870913)}u&=~_e}c!==0&&Y(a,c,0),b!==0&&m===0&&a.tag!==0&&(a.suspendedLanes|=b&~(S&~i))}function Y(a,i,u){a.pendingLanes|=i,a.suspendedLanes&=~i;var c=31-Je(i);a.entangledLanes|=i,a.entanglements[c]=a.entanglements[c]|1073741824|u&4194090}function ve(a,i){var u=a.entangledLanes|=i;for(a=a.entanglements;u;){var c=31-Je(u),m=1<<c;m&i|a[c]&i&&(a[c]|=i),u&=~m}}function Le(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function ct(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function on(){var a=he.p;return a!==0?a:(a=window.event,a===void 0?32:cb(a.type))}function pn(a,i){var u=he.p;try{return he.p=a,i()}finally{he.p=u}}var Fe=Math.random().toString(36).slice(2),De="__reactFiber$"+Fe,Ge="__reactProps$"+Fe,ln="__reactContainer$"+Fe,cn="__reactEvents$"+Fe,ms="__reactListeners$"+Fe,cu="__reactHandles$"+Fe,el="__reactResources$"+Fe,ps="__reactMarker$"+Fe;function gs(a){delete a[De],delete a[Ge],delete a[cn],delete a[ms],delete a[cu]}function wi(a){var i=a[De];if(i)return i;for(var u=a.parentNode;u;){if(i=u[ln]||u[De]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(a=W4(a);a!==null;){if(u=a[De])return u;a=W4(a)}return i}a=u,u=a.parentNode}return null}function Ci(a){if(a=a[De]||a[ln]){var i=a.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return a}return null}function bs(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function qa(a){var i=a[el];return i||(i=a[el]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function gn(a){a[ps]=!0}var nc=new Set,rc={};function ja(a,i){ur(a,i),ur(a+"Capture",i)}function ur(a,i){for(rc[a]=i,a=0;a<i.length;a++)nc.add(i[a])}var ac=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),du={},ic={};function Yd(a){return at.call(ic,a)?!0:at.call(du,a)?!1:ac.test(a)?ic[a]=!0:(du[a]=!0,!1)}function tl(a,i,u){if(Yd(i))if(u===null)a.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){a.removeAttribute(i);return}}a.setAttribute(i,""+u)}}function Ya(a,i,u){if(u===null)a.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttribute(i,""+u)}}function ca(a,i,u,c){if(c===null)a.removeAttribute(u);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(i,u,""+c)}}var Ne,We;function gt(a){if(Ne===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);Ne=i&&i[1]||"",We=-1<u.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ne+a+We}var Ht=!1;function bn(a,i){if(!a||Ht)return"";Ht=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(oe){var ue=oe}Reflect.construct(a,[],_e)}else{try{_e.call()}catch(oe){ue=oe}a.call(_e.prototype)}}else{try{throw Error()}catch(oe){ue=oe}(_e=a())&&typeof _e.catch=="function"&&_e.catch(function(){})}}catch(oe){if(oe&&ue&&typeof oe.stack=="string")return[oe.stack,ue.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=c.DetermineComponentFrameRoot(),S=b[0],N=b[1];if(S&&N){var q=S.split(`
44
+ `),ae=N.split(`
45
+ `);for(m=c=0;c<q.length&&!q[c].includes("DetermineComponentFrameRoot");)c++;for(;m<ae.length&&!ae[m].includes("DetermineComponentFrameRoot");)m++;if(c===q.length||m===ae.length)for(c=q.length-1,m=ae.length-1;1<=c&&0<=m&&q[c]!==ae[m];)m--;for(;1<=c&&0<=m;c--,m--)if(q[c]!==ae[m]){if(c!==1||m!==1)do if(c--,m--,0>m||q[c]!==ae[m]){var Ee=`
46
+ `+q[c].replace(" at new "," at ");return a.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",a.displayName)),Ee}while(1<=c&&0<=m);break}}}finally{Ht=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?gt(u):""}function Or(a){switch(a.tag){case 26:case 27:case 5:return gt(a.type);case 16:return gt("Lazy");case 13:return gt("Suspense");case 19:return gt("SuspenseList");case 0:case 15:return bn(a.type,!1);case 11:return bn(a.type.render,!1);case 1:return bn(a.type,!0);case 31:return gt("Activity");default:return""}}function da(a){try{var i="";do i+=Or(a),a=a.return;while(a);return i}catch(u){return`
47
+ Error generating stack: `+u.message+`
48
+ `+u.stack}}function Vn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Zn(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Vr(a){var i=Zn(a)?"checked":"value",u=Object.getOwnPropertyDescriptor(a.constructor.prototype,i),c=""+a[i];if(!a.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,b=u.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return m.call(this)},set:function(S){c=""+S,b.call(this,S)}}),Object.defineProperty(a,i,{enumerable:u.enumerable}),{getValue:function(){return c},setValue:function(S){c=""+S},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Es(a){a._valueTracker||(a._valueTracker=Vr(a))}function fu(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var u=i.getValue(),c="";return a&&(c=Zn(a)?a.checked?"true":"false":a.value),a=c,a!==u?(i.setValue(a),!0):!1}function ys(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var Gd=/[\n"\\]/g;function yr(a){return a.replace(Gd,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function hu(a,i,u,c,m,b,S,N){a.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?a.type=S:a.removeAttribute("type"),i!=null?S==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+Vn(i)):a.value!==""+Vn(i)&&(a.value=""+Vn(i)):S!=="submit"&&S!=="reset"||a.removeAttribute("value"),i!=null?ki(a,S,Vn(i)):u!=null?ki(a,S,Vn(u)):c!=null&&a.removeAttribute("value"),m==null&&b!=null&&(a.defaultChecked=!!b),m!=null&&(a.checked=m&&typeof m!="function"&&typeof m!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?a.name=""+Vn(N):a.removeAttribute("name")}function sc(a,i,u,c,m,b,S,N){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),i!=null||u!=null){if(!(b!=="submit"&&b!=="reset"||i!=null))return;u=u!=null?""+Vn(u):"",i=i!=null?""+Vn(i):u,N||i===a.value||(a.value=i),a.defaultValue=i}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,a.checked=N?a.checked:!!c,a.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(a.name=S)}function ki(a,i,u){i==="number"&&ys(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Ga(a,i,u,c){if(a=a.options,i){i={};for(var m=0;m<u.length;m++)i["$"+u[m]]=!0;for(u=0;u<a.length;u++)m=i.hasOwnProperty("$"+a[u].value),a[u].selected!==m&&(a[u].selected=m),m&&c&&(a[u].defaultSelected=!0)}else{for(u=""+Vn(u),i=null,m=0;m<a.length;m++){if(a[m].value===u){a[m].selected=!0,c&&(a[m].defaultSelected=!0);return}i!==null||a[m].disabled||(i=a[m])}i!==null&&(i.selected=!0)}}function Rr(a,i,u){if(i!=null&&(i=""+Vn(i),i!==a.value&&(a.value=i),u==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=u!=null?""+Vn(u):""}function lc(a,i,u,c){if(i==null){if(c!=null){if(u!=null)throw Error(r(92));if(pe(c)){if(1<c.length)throw Error(r(93));c=c[0]}u=c}u==null&&(u=""),i=u}u=Vn(i),a.defaultValue=u,c=a.textContent,c===u&&c!==""&&c!==null&&(a.value=c)}function _a(a,i){if(i){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=i;return}}a.textContent=i}var pt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mu(a,i,u){var c=i.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?c?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":c?a.setProperty(i,u):typeof u!="number"||u===0||pt.has(i)?i==="float"?a.cssFloat=u:a[i]=(""+u).trim():a[i]=u+"px"}function Rn(a,i,u){if(i!=null&&typeof i!="object")throw Error(r(62));if(a=a.style,u!=null){for(var c in u)!u.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?a.setProperty(c,""):c==="float"?a.cssFloat="":a[c]="");for(var m in i)c=i[m],i.hasOwnProperty(m)&&u[m]!==c&&mu(a,m,c)}else for(var b in i)i.hasOwnProperty(b)&&mu(a,b,i[b])}function qt(a){if(a.indexOf("-")===-1)return!1;switch(a){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 nl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Va=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ni(a){return Va.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var vs=null;function Pe(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var je=null,mt=null;function Bt(a){var i=Ci(a);if(i&&(a=i.stateNode)){var u=a[Ge]||null;e:switch(a=i.stateNode,i.type){case"input":if(hu(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),i=u.name,u.type==="radio"&&i!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+yr(""+i)+'"][type="radio"]'),i=0;i<u.length;i++){var c=u[i];if(c!==a&&c.form===a.form){var m=c[Ge]||null;if(!m)throw Error(r(90));hu(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(i=0;i<u.length;i++)c=u[i],c.form===a.form&&fu(c)}break e;case"textarea":Rr(a,u.value,u.defaultValue);break e;case"select":i=u.value,i!=null&&Ga(a,!!u.multiple,i,!1)}}}var Mn=!1;function Kr(a,i,u){if(Mn)return a(i,u);Mn=!0;try{var c=a(i);return c}finally{if(Mn=!1,(je!==null||mt!==null)&&(Vc(),je&&(i=je,a=mt,mt=je=null,Bt(i),a)))for(i=0;i<a.length;i++)Bt(a[i])}}function Ts(a,i){var u=a.stateNode;if(u===null)return null;var c=u[Ge]||null;if(c===null)return null;u=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(a=a.type,c=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!c;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,i,typeof u));return u}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vd=!1;if(fa)try{var pu={};Object.defineProperty(pu,"passive",{get:function(){Vd=!0}}),window.addEventListener("test",pu,pu),window.removeEventListener("test",pu,pu)}catch{Vd=!1}var Oi=null,Kd=null,uc=null;function $p(){if(uc)return uc;var a,i=Kd,u=i.length,c,m="value"in Oi?Oi.value:Oi.textContent,b=m.length;for(a=0;a<u&&i[a]===m[a];a++);var S=u-a;for(c=1;c<=S&&i[u-c]===m[b-c];c++);return uc=m.slice(a,1<c?1-c:void 0)}function oc(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function cc(){return!0}function Wp(){return!1}function vr(a){function i(u,c,m,b,S){this._reactName=u,this._targetInst=m,this.type=c,this.nativeEvent=b,this.target=S,this.currentTarget=null;for(var N in a)a.hasOwnProperty(N)&&(u=a[N],this[N]=u?u(b):b[N]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?cc:Wp,this.isPropagationStopped=Wp,this}return p(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=cc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=cc)},persist:function(){},isPersistent:cc}),i}var _s={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dc=vr(_s),gu=p({},_s,{view:0,detail:0}),Iv=vr(gu),$d,Wd,bu,fc=p({},gu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qd,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==bu&&(bu&&a.type==="mousemove"?($d=a.screenX-bu.screenX,Wd=a.screenY-bu.screenY):Wd=$d=0,bu=a),$d)},movementY:function(a){return"movementY"in a?a.movementY:Wd}}),Xp=vr(fc),Lv=p({},fc,{dataTransfer:0}),Bv=vr(Lv),Pv=p({},gu,{relatedTarget:0}),Xd=vr(Pv),Uv=p({},_s,{animationName:0,elapsedTime:0,pseudoElement:0}),zv=vr(Uv),Fv=p({},_s,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Hv=vr(Fv),qv=p({},_s,{data:0}),Qp=vr(qv),jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vv(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=Gv[a])?!!i[a]:!1}function Qd(){return Vv}var Kv=p({},gu,{key:function(a){if(a.key){var i=jv[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=oc(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Yv[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qd,charCode:function(a){return a.type==="keypress"?oc(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?oc(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),$v=vr(Kv),Wv=p({},fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zp=vr(Wv),Xv=p({},gu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qd}),Qv=vr(Xv),Zv=p({},_s,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jv=vr(Zv),e7=p({},fc,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),t7=vr(e7),n7=p({},_s,{newState:0,oldState:0}),r7=vr(n7),a7=[9,13,27,32],Zd=fa&&"CompositionEvent"in window,Eu=null;fa&&"documentMode"in document&&(Eu=document.documentMode);var i7=fa&&"TextEvent"in window&&!Eu,Jp=fa&&(!Zd||Eu&&8<Eu&&11>=Eu),eg=" ",tg=!1;function ng(a,i){switch(a){case"keyup":return a7.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rg(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var rl=!1;function s7(a,i){switch(a){case"compositionend":return rg(i);case"keypress":return i.which!==32?null:(tg=!0,eg);case"textInput":return a=i.data,a===eg&&tg?null:a;default:return null}}function l7(a,i){if(rl)return a==="compositionend"||!Zd&&ng(a,i)?(a=$p(),uc=Kd=Oi=null,rl=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Jp&&i.locale!=="ko"?null:i.data;default:return null}}var u7={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 ag(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!u7[a.type]:i==="textarea"}function ig(a,i,u,c){je?mt?mt.push(c):mt=[c]:je=c,i=Zc(i,"onChange"),0<i.length&&(u=new dc("onChange","change",null,u,c),a.push({event:u,listeners:i}))}var yu=null,vu=null;function o7(a){z4(a,0)}function hc(a){var i=bs(a);if(fu(i))return a}function sg(a,i){if(a==="change")return i}var lg=!1;if(fa){var Jd;if(fa){var ef="oninput"in document;if(!ef){var ug=document.createElement("div");ug.setAttribute("oninput","return;"),ef=typeof ug.oninput=="function"}Jd=ef}else Jd=!1;lg=Jd&&(!document.documentMode||9<document.documentMode)}function og(){yu&&(yu.detachEvent("onpropertychange",cg),vu=yu=null)}function cg(a){if(a.propertyName==="value"&&hc(vu)){var i=[];ig(i,vu,a,Pe(a)),Kr(o7,i)}}function c7(a,i,u){a==="focusin"?(og(),yu=i,vu=u,yu.attachEvent("onpropertychange",cg)):a==="focusout"&&og()}function d7(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return hc(vu)}function f7(a,i){if(a==="click")return hc(i)}function h7(a,i){if(a==="input"||a==="change")return hc(i)}function m7(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var Mr=typeof Object.is=="function"?Object.is:m7;function Tu(a,i){if(Mr(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var u=Object.keys(a),c=Object.keys(i);if(u.length!==c.length)return!1;for(c=0;c<u.length;c++){var m=u[c];if(!at.call(i,m)||!Mr(a[m],i[m]))return!1}return!0}function dg(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function fg(a,i){var u=dg(a);a=0;for(var c;u;){if(u.nodeType===3){if(c=a+u.textContent.length,a<=i&&c>=i)return{node:u,offset:i-a};a=c}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=dg(u)}}function hg(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?hg(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function mg(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=ys(a.document);i instanceof a.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)a=i.contentWindow;else break;i=ys(a.document)}return i}function tf(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var p7=fa&&"documentMode"in document&&11>=document.documentMode,al=null,nf=null,_u=null,rf=!1;function pg(a,i,u){var c=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rf||al==null||al!==ys(c)||(c=al,"selectionStart"in c&&tf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),_u&&Tu(_u,c)||(_u=c,c=Zc(nf,"onSelect"),0<c.length&&(i=new dc("onSelect","select",null,i,u),a.push({event:i,listeners:c}),i.target=al)))}function Ss(a,i){var u={};return u[a.toLowerCase()]=i.toLowerCase(),u["Webkit"+a]="webkit"+i,u["Moz"+a]="moz"+i,u}var il={animationend:Ss("Animation","AnimationEnd"),animationiteration:Ss("Animation","AnimationIteration"),animationstart:Ss("Animation","AnimationStart"),transitionrun:Ss("Transition","TransitionRun"),transitionstart:Ss("Transition","TransitionStart"),transitioncancel:Ss("Transition","TransitionCancel"),transitionend:Ss("Transition","TransitionEnd")},af={},gg={};fa&&(gg=document.createElement("div").style,"AnimationEvent"in window||(delete il.animationend.animation,delete il.animationiteration.animation,delete il.animationstart.animation),"TransitionEvent"in window||delete il.transitionend.transition);function xs(a){if(af[a])return af[a];if(!il[a])return a;var i=il[a],u;for(u in i)if(i.hasOwnProperty(u)&&u in gg)return af[a]=i[u];return a}var bg=xs("animationend"),Eg=xs("animationiteration"),yg=xs("animationstart"),g7=xs("transitionrun"),b7=xs("transitionstart"),E7=xs("transitioncancel"),vg=xs("transitionend"),Tg=new Map,sf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");sf.push("scrollEnd");function ha(a,i){Tg.set(a,i),ja(i,[a])}var _g=new WeakMap;function $r(a,i){if(typeof a=="object"&&a!==null){var u=_g.get(a);return u!==void 0?u:(i={value:a,source:i,stack:da(i)},_g.set(a,i),i)}return{value:a,source:i,stack:da(i)}}var Wr=[],sl=0,lf=0;function mc(){for(var a=sl,i=lf=sl=0;i<a;){var u=Wr[i];Wr[i++]=null;var c=Wr[i];Wr[i++]=null;var m=Wr[i];Wr[i++]=null;var b=Wr[i];if(Wr[i++]=null,c!==null&&m!==null){var S=c.pending;S===null?m.next=m:(m.next=S.next,S.next=m),c.pending=m}b!==0&&Sg(u,m,b)}}function pc(a,i,u,c){Wr[sl++]=a,Wr[sl++]=i,Wr[sl++]=u,Wr[sl++]=c,lf|=c,a.lanes|=c,a=a.alternate,a!==null&&(a.lanes|=c)}function uf(a,i,u,c){return pc(a,i,u,c),gc(a)}function ll(a,i){return pc(a,null,null,i),gc(a)}function Sg(a,i,u){a.lanes|=u;var c=a.alternate;c!==null&&(c.lanes|=u);for(var m=!1,b=a.return;b!==null;)b.childLanes|=u,c=b.alternate,c!==null&&(c.childLanes|=u),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(m=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,m&&i!==null&&(m=31-Je(u),a=b.hiddenUpdates,c=a[m],c===null?a[m]=[i]:c.push(i),i.lane=u|536870912),b):null}function gc(a){if(50<Ku)throw Ku=0,mh=null,Error(r(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var ul={};function y7(a,i,u,c){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dr(a,i,u,c){return new y7(a,i,u,c)}function of(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ka(a,i){var u=a.alternate;return u===null?(u=Dr(a.tag,i,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=i,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,i=a.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function xg(a,i){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,i=u.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a}function bc(a,i,u,c,m,b){var S=0;if(c=a,typeof a=="function")of(a)&&(S=1);else if(typeof a=="string")S=TT(a,u,Ie.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case Q:return a=Dr(31,u,i,m),a.elementType=Q,a.lanes=b,a;case w:return As(u.children,m,b,i);case x:S=8,m|=24;break;case R:return a=Dr(12,u,i,m|2),a.elementType=R,a.lanes=b,a;case G:return a=Dr(13,u,i,m),a.elementType=G,a.lanes=b,a;case z:return a=Dr(19,u,i,m),a.elementType=z,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case C:case L:S=10;break e;case M:S=9;break e;case $:S=11;break e;case ne:S=14;break e;case ce:S=16,c=null;break e}S=29,u=Error(r(130,a===null?"null":typeof a,"")),c=null}return i=Dr(S,u,i,m),i.elementType=a,i.type=c,i.lanes=b,i}function As(a,i,u,c){return a=Dr(7,a,c,i),a.lanes=u,a}function cf(a,i,u){return a=Dr(6,a,null,i),a.lanes=u,a}function df(a,i,u){return i=Dr(4,a.children!==null?a.children:[],a.key,i),i.lanes=u,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var ol=[],cl=0,Ec=null,yc=0,Xr=[],Qr=0,ws=null,$a=1,Wa="";function Cs(a,i){ol[cl++]=yc,ol[cl++]=Ec,Ec=a,yc=i}function Ag(a,i,u){Xr[Qr++]=$a,Xr[Qr++]=Wa,Xr[Qr++]=ws,ws=a;var c=$a;a=Wa;var m=32-Je(c)-1;c&=~(1<<m),u+=1;var b=32-Je(i)+m;if(30<b){var S=m-m%5;b=(c&(1<<S)-1).toString(32),c>>=S,m-=S,$a=1<<32-Je(i)+m|u<<m|c,Wa=b+a}else $a=1<<b|u<<m|c,Wa=a}function ff(a){a.return!==null&&(Cs(a,1),Ag(a,1,0))}function hf(a){for(;a===Ec;)Ec=ol[--cl],ol[cl]=null,yc=ol[--cl],ol[cl]=null;for(;a===ws;)ws=Xr[--Qr],Xr[Qr]=null,Wa=Xr[--Qr],Xr[Qr]=null,$a=Xr[--Qr],Xr[Qr]=null}var or=null,_n=null,zt=!1,ks=null,Sa=!1,mf=Error(r(519));function Ns(a){var i=Error(r(418,""));throw Au($r(i,a)),mf}function wg(a){var i=a.stateNode,u=a.type,c=a.memoizedProps;switch(i[De]=a,i[Ge]=c,u){case"dialog":Nt("cancel",i),Nt("close",i);break;case"iframe":case"object":case"embed":Nt("load",i);break;case"video":case"audio":for(u=0;u<Wu.length;u++)Nt(Wu[u],i);break;case"source":Nt("error",i);break;case"img":case"image":case"link":Nt("error",i),Nt("load",i);break;case"details":Nt("toggle",i);break;case"input":Nt("invalid",i),sc(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),Es(i);break;case"select":Nt("invalid",i);break;case"textarea":Nt("invalid",i),lc(i,c.value,c.defaultValue,c.children),Es(i)}u=c.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||i.textContent===""+u||c.suppressHydrationWarning===!0||j4(i.textContent,u)?(c.popover!=null&&(Nt("beforetoggle",i),Nt("toggle",i)),c.onScroll!=null&&Nt("scroll",i),c.onScrollEnd!=null&&Nt("scrollend",i),c.onClick!=null&&(i.onclick=Jc),i=!0):i=!1,i||Ns(a)}function Cg(a){for(or=a.return;or;)switch(or.tag){case 5:case 13:Sa=!1;return;case 27:case 3:Sa=!0;return;default:or=or.return}}function Su(a){if(a!==or)return!1;if(!zt)return Cg(a),zt=!0,!1;var i=a.tag,u;if((u=i!==3&&i!==27)&&((u=i===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Oh(a.type,a.memoizedProps)),u=!u),u&&_n&&Ns(a),Cg(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,i=0;a;){if(a.nodeType===8)if(u=a.data,u==="/$"){if(i===0){_n=pa(a.nextSibling);break e}i--}else u!=="$"&&u!=="$!"&&u!=="$?"||i++;a=a.nextSibling}_n=null}}else i===27?(i=_n,Vi(a.type)?(a=Ih,Ih=null,_n=a):_n=i):_n=or?pa(a.stateNode.nextSibling):null;return!0}function xu(){_n=or=null,zt=!1}function kg(){var a=ks;return a!==null&&(Sr===null?Sr=a:Sr.push.apply(Sr,a),ks=null),a}function Au(a){ks===null?ks=[a]:ks.push(a)}var pf=le(null),Os=null,Xa=null;function Ri(a,i,u){D(pf,i._currentValue),i._currentValue=u}function Qa(a){a._currentValue=pf.current,ye(pf)}function gf(a,i,u){for(;a!==null;){var c=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),a===u)break;a=a.return}}function bf(a,i,u,c){var m=a.child;for(m!==null&&(m.return=a);m!==null;){var b=m.dependencies;if(b!==null){var S=m.child;b=b.firstContext;e:for(;b!==null;){var N=b;b=m;for(var q=0;q<i.length;q++)if(N.context===i[q]){b.lanes|=u,N=b.alternate,N!==null&&(N.lanes|=u),gf(b.return,u,a),c||(S=null);break e}b=N.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(r(341));S.lanes|=u,b=S.alternate,b!==null&&(b.lanes|=u),gf(S,u,a),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===a){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}function wu(a,i,u,c){a=null;for(var m=i,b=!1;m!==null;){if(!b){if((m.flags&524288)!==0)b=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(r(387));if(S=S.memoizedProps,S!==null){var N=m.type;Mr(m.pendingProps.value,S.value)||(a!==null?a.push(N):a=[N])}}else if(m===Mt.current){if(S=m.alternate,S===null)throw Error(r(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(a!==null?a.push(to):a=[to])}m=m.return}a!==null&&bf(i,a,u,c),i.flags|=262144}function vc(a){for(a=a.firstContext;a!==null;){if(!Mr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Rs(a){Os=a,Xa=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Jn(a){return Ng(Os,a)}function Tc(a,i){return Os===null&&Rs(a),Ng(a,i)}function Ng(a,i){var u=i._currentValue;if(i={context:i,memoizedValue:u,next:null},Xa===null){if(a===null)throw Error(r(308));Xa=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else Xa=Xa.next=i;return u}var v7=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(u,c){a.push(c)}};this.abort=function(){i.aborted=!0,a.forEach(function(u){return u()})}},T7=e.unstable_scheduleCallback,_7=e.unstable_NormalPriority,Un={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ef(){return{controller:new v7,data:new Map,refCount:0}}function Cu(a){a.refCount--,a.refCount===0&&T7(_7,function(){a.controller.abort()})}var ku=null,yf=0,dl=0,fl=null;function S7(a,i){if(ku===null){var u=ku=[];yf=0,dl=Th(),fl={status:"pending",value:void 0,then:function(c){u.push(c)}}}return yf++,i.then(Og,Og),i}function Og(){if(--yf===0&&ku!==null){fl!==null&&(fl.status="fulfilled");var a=ku;ku=null,dl=0,fl=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function x7(a,i){var u=[],c={status:"pending",value:null,reason:null,then:function(m){u.push(m)}};return a.then(function(){c.status="fulfilled",c.value=i;for(var m=0;m<u.length;m++)(0,u[m])(i)},function(m){for(c.status="rejected",c.reason=m,m=0;m<u.length;m++)(0,u[m])(void 0)}),c}var Rg=X.S;X.S=function(a,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&S7(a,i),Rg!==null&&Rg(a,i)};var Ms=le(null);function vf(){var a=Ms.current;return a!==null?a:nn.pooledCache}function _c(a,i){i===null?D(Ms,Ms.current):D(Ms,i.pool)}function Mg(){var a=vf();return a===null?null:{parent:Un._currentValue,pool:a}}var Nu=Error(r(460)),Dg=Error(r(474)),Sc=Error(r(542)),Tf={then:function(){}};function Ig(a){return a=a.status,a==="fulfilled"||a==="rejected"}function xc(){}function Lg(a,i,u){switch(u=a[u],u===void 0?a.push(i):u!==i&&(i.then(xc,xc),i=u),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Pg(a),a;default:if(typeof i.status=="string")i.then(xc,xc);else{if(a=nn,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=i,a.status="pending",a.then(function(c){if(i.status==="pending"){var m=i;m.status="fulfilled",m.value=c}},function(c){if(i.status==="pending"){var m=i;m.status="rejected",m.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Pg(a),a}throw Ou=i,Nu}}var Ou=null;function Bg(){if(Ou===null)throw Error(r(459));var a=Ou;return Ou=null,a}function Pg(a){if(a===Nu||a===Sc)throw Error(r(483))}var Mi=!1;function _f(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sf(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Di(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ii(a,i,u){var c=a.updateQueue;if(c===null)return null;if(c=c.shared,(Yt&2)!==0){var m=c.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),c.pending=i,i=gc(a),Sg(a,null,u),i}return pc(a,c,i,u),gc(a)}function Ru(a,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194048)!==0)){var c=i.lanes;c&=a.pendingLanes,u|=c,i.lanes=u,ve(a,u)}}function xf(a,i){var u=a.updateQueue,c=a.alternate;if(c!==null&&(c=c.updateQueue,u===c)){var m=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var S={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};b===null?m=b=S:b=b.next=S,u=u.next}while(u!==null);b===null?m=b=i:b=b.next=i}else m=b=i;u={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:b,shared:c.shared,callbacks:c.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=i:a.next=i,u.lastBaseUpdate=i}var Af=!1;function Mu(){if(Af){var a=fl;if(a!==null)throw a}}function Du(a,i,u,c){Af=!1;var m=a.updateQueue;Mi=!1;var b=m.firstBaseUpdate,S=m.lastBaseUpdate,N=m.shared.pending;if(N!==null){m.shared.pending=null;var q=N,ae=q.next;q.next=null,S===null?b=ae:S.next=ae,S=q;var Ee=a.alternate;Ee!==null&&(Ee=Ee.updateQueue,N=Ee.lastBaseUpdate,N!==S&&(N===null?Ee.firstBaseUpdate=ae:N.next=ae,Ee.lastBaseUpdate=q))}if(b!==null){var _e=m.baseState;S=0,Ee=ae=q=null,N=b;do{var ue=N.lane&-536870913,oe=ue!==N.lane;if(oe?(Dt&ue)===ue:(c&ue)===ue){ue!==0&&ue===dl&&(Af=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var dt=a,st=N;ue=i;var Wt=u;switch(st.tag){case 1:if(dt=st.payload,typeof dt=="function"){_e=dt.call(Wt,_e,ue);break e}_e=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=st.payload,ue=typeof dt=="function"?dt.call(Wt,_e,ue):dt,ue==null)break e;_e=p({},_e,ue);break e;case 2:Mi=!0}}ue=N.callback,ue!==null&&(a.flags|=64,oe&&(a.flags|=8192),oe=m.callbacks,oe===null?m.callbacks=[ue]:oe.push(ue))}else oe={lane:ue,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Ee===null?(ae=Ee=oe,q=_e):Ee=Ee.next=oe,S|=ue;if(N=N.next,N===null){if(N=m.shared.pending,N===null)break;oe=N,N=oe.next,oe.next=null,m.lastBaseUpdate=oe,m.shared.pending=null}}while(!0);Ee===null&&(q=_e),m.baseState=q,m.firstBaseUpdate=ae,m.lastBaseUpdate=Ee,b===null&&(m.shared.lanes=0),qi|=S,a.lanes=S,a.memoizedState=_e}}function Ug(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function zg(a,i){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)Ug(u[a],i)}var hl=le(null),Ac=le(0);function Fg(a,i){a=ai,D(Ac,a),D(hl,i),ai=a|i.baseLanes}function wf(){D(Ac,ai),D(hl,hl.current)}function Cf(){ai=Ac.current,ye(hl),ye(Ac)}var Li=0,St=null,Kt=null,Dn=null,wc=!1,ml=!1,Ds=!1,Cc=0,Iu=0,pl=null,A7=0;function wn(){throw Error(r(321))}function kf(a,i){if(i===null)return!1;for(var u=0;u<i.length&&u<a.length;u++)if(!Mr(a[u],i[u]))return!1;return!0}function Nf(a,i,u,c,m,b){return Li=b,St=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,X.H=a===null||a.memoizedState===null?S2:x2,Ds=!1,b=u(c,m),Ds=!1,ml&&(b=qg(i,u,c,m)),Hg(a),b}function Hg(a){X.H=Dc;var i=Kt!==null&&Kt.next!==null;if(Li=0,Dn=Kt=St=null,wc=!1,Iu=0,pl=null,i)throw Error(r(300));a===null||Hn||(a=a.dependencies,a!==null&&vc(a)&&(Hn=!0))}function qg(a,i,u,c){St=a;var m=0;do{if(ml&&(pl=null),Iu=0,ml=!1,25<=m)throw Error(r(301));if(m+=1,Dn=Kt=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}X.H=M7,b=i(u,c)}while(ml);return b}function w7(){var a=X.H,i=a.useState()[0];return i=typeof i.then=="function"?Lu(i):i,a=a.useState()[0],(Kt!==null?Kt.memoizedState:null)!==a&&(St.flags|=1024),i}function Of(){var a=Cc!==0;return Cc=0,a}function Rf(a,i,u){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~u}function Mf(a){if(wc){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}wc=!1}Li=0,Dn=Kt=St=null,ml=!1,Iu=Cc=0,pl=null}function Tr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?St.memoizedState=Dn=a:Dn=Dn.next=a,Dn}function In(){if(Kt===null){var a=St.alternate;a=a!==null?a.memoizedState:null}else a=Kt.next;var i=Dn===null?St.memoizedState:Dn.next;if(i!==null)Dn=i,Kt=a;else{if(a===null)throw St.alternate===null?Error(r(467)):Error(r(310));Kt=a,a={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},Dn===null?St.memoizedState=Dn=a:Dn=Dn.next=a}return Dn}function Df(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lu(a){var i=Iu;return Iu+=1,pl===null&&(pl=[]),a=Lg(pl,a,i),i=St,(Dn===null?i.memoizedState:Dn.next)===null&&(i=i.alternate,X.H=i===null||i.memoizedState===null?S2:x2),a}function kc(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Lu(a);if(a.$$typeof===L)return Jn(a)}throw Error(r(438,String(a)))}function If(a){var i=null,u=St.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var c=St.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(m){return m.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=Df(),St.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0)for(u=i.data[i.index]=Array(a),c=0;c<a;c++)u[c]=j;return i.index++,u}function Za(a,i){return typeof i=="function"?i(a):i}function Nc(a){var i=In();return Lf(i,Kt,a)}function Lf(a,i,u){var c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=u;var m=a.baseQueue,b=c.pending;if(b!==null){if(m!==null){var S=m.next;m.next=b.next,b.next=S}i.baseQueue=m=b,c.pending=null}if(b=a.baseState,m===null)a.memoizedState=b;else{i=m.next;var N=S=null,q=null,ae=i,Ee=!1;do{var _e=ae.lane&-536870913;if(_e!==ae.lane?(Dt&_e)===_e:(Li&_e)===_e){var ue=ae.revertLane;if(ue===0)q!==null&&(q=q.next={lane:0,revertLane:0,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),_e===dl&&(Ee=!0);else if((Li&ue)===ue){ae=ae.next,ue===dl&&(Ee=!0);continue}else _e={lane:0,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},q===null?(N=q=_e,S=b):q=q.next=_e,St.lanes|=ue,qi|=ue;_e=ae.action,Ds&&u(b,_e),b=ae.hasEagerState?ae.eagerState:u(b,_e)}else ue={lane:_e,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},q===null?(N=q=ue,S=b):q=q.next=ue,St.lanes|=_e,qi|=_e;ae=ae.next}while(ae!==null&&ae!==i);if(q===null?S=b:q.next=N,!Mr(b,a.memoizedState)&&(Hn=!0,Ee&&(u=fl,u!==null)))throw u;a.memoizedState=b,a.baseState=S,a.baseQueue=q,c.lastRenderedState=b}return m===null&&(c.lanes=0),[a.memoizedState,c.dispatch]}function Bf(a){var i=In(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var c=u.dispatch,m=u.pending,b=i.memoizedState;if(m!==null){u.pending=null;var S=m=m.next;do b=a(b,S.action),S=S.next;while(S!==m);Mr(b,i.memoizedState)||(Hn=!0),i.memoizedState=b,i.baseQueue===null&&(i.baseState=b),u.lastRenderedState=b}return[b,c]}function jg(a,i,u){var c=St,m=In(),b=zt;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=i();var S=!Mr((Kt||m).memoizedState,u);S&&(m.memoizedState=u,Hn=!0),m=m.queue;var N=Vg.bind(null,c,m,a);if(Bu(2048,8,N,[a]),m.getSnapshot!==i||S||Dn!==null&&Dn.memoizedState.tag&1){if(c.flags|=2048,gl(9,Oc(),Gg.bind(null,c,m,u,i),null),nn===null)throw Error(r(349));b||(Li&124)!==0||Yg(c,i,u)}return u}function Yg(a,i,u){a.flags|=16384,a={getSnapshot:i,value:u},i=St.updateQueue,i===null?(i=Df(),St.updateQueue=i,i.stores=[a]):(u=i.stores,u===null?i.stores=[a]:u.push(a))}function Gg(a,i,u,c){i.value=u,i.getSnapshot=c,Kg(i)&&$g(a)}function Vg(a,i,u){return u(function(){Kg(i)&&$g(a)})}function Kg(a){var i=a.getSnapshot;a=a.value;try{var u=i();return!Mr(a,u)}catch{return!0}}function $g(a){var i=ll(a,2);i!==null&&Ur(i,a,2)}function Pf(a){var i=Tr();if(typeof a=="function"){var u=a;if(a=u(),Ds){$e(!0);try{u()}finally{$e(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Za,lastRenderedState:a},i}function Wg(a,i,u,c){return a.baseState=u,Lf(a,Kt,typeof c=="function"?c:Za)}function C7(a,i,u,c,m){if(Mc(a))throw Error(r(485));if(a=i.action,a!==null){var b={payload:m,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){b.listeners.push(S)}};X.T!==null?u(!0):b.isTransition=!1,c(b),u=i.pending,u===null?(b.next=i.pending=b,Xg(i,b)):(b.next=u.next,i.pending=u.next=b)}}function Xg(a,i){var u=i.action,c=i.payload,m=a.state;if(i.isTransition){var b=X.T,S={};X.T=S;try{var N=u(m,c),q=X.S;q!==null&&q(S,N),Qg(a,i,N)}catch(ae){Uf(a,i,ae)}finally{X.T=b}}else try{b=u(m,c),Qg(a,i,b)}catch(ae){Uf(a,i,ae)}}function Qg(a,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(c){Zg(a,i,c)},function(c){return Uf(a,i,c)}):Zg(a,i,u)}function Zg(a,i,u){i.status="fulfilled",i.value=u,Jg(i),a.state=u,i=a.pending,i!==null&&(u=i.next,u===i?a.pending=null:(u=u.next,i.next=u,Xg(a,u)))}function Uf(a,i,u){var c=a.pending;if(a.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=u,Jg(i),i=i.next;while(i!==c)}a.action=null}function Jg(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function e2(a,i){return i}function t2(a,i){if(zt){var u=nn.formState;if(u!==null){e:{var c=St;if(zt){if(_n){t:{for(var m=_n,b=Sa;m.nodeType!==8;){if(!b){m=null;break t}if(m=pa(m.nextSibling),m===null){m=null;break t}}b=m.data,m=b==="F!"||b==="F"?m:null}if(m){_n=pa(m.nextSibling),c=m.data==="F!";break e}}Ns(c)}c=!1}c&&(i=u[0])}}return u=Tr(),u.memoizedState=u.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e2,lastRenderedState:i},u.queue=c,u=v2.bind(null,St,c),c.dispatch=u,c=Pf(!1),b=jf.bind(null,St,!1,c.queue),c=Tr(),m={state:i,dispatch:null,action:a,pending:null},c.queue=m,u=C7.bind(null,St,m,b,u),m.dispatch=u,c.memoizedState=a,[i,u,!1]}function n2(a){var i=In();return r2(i,Kt,a)}function r2(a,i,u){if(i=Lf(a,i,e2)[0],a=Nc(Za)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=Lu(i)}catch(S){throw S===Nu?Sc:S}else c=i;i=In();var m=i.queue,b=m.dispatch;return u!==i.memoizedState&&(St.flags|=2048,gl(9,Oc(),k7.bind(null,m,u),null)),[c,b,a]}function k7(a,i){a.action=i}function a2(a){var i=In(),u=Kt;if(u!==null)return r2(i,u,a);In(),i=i.memoizedState,u=In();var c=u.queue.dispatch;return u.memoizedState=a,[i,c,!1]}function gl(a,i,u,c){return a={tag:a,create:u,deps:c,inst:i,next:null},i=St.updateQueue,i===null&&(i=Df(),St.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=a.next=a:(c=u.next,u.next=a,a.next=c,i.lastEffect=a),a}function Oc(){return{destroy:void 0,resource:void 0}}function i2(){return In().memoizedState}function Rc(a,i,u,c){var m=Tr();c=c===void 0?null:c,St.flags|=a,m.memoizedState=gl(1|i,Oc(),u,c)}function Bu(a,i,u,c){var m=In();c=c===void 0?null:c;var b=m.memoizedState.inst;Kt!==null&&c!==null&&kf(c,Kt.memoizedState.deps)?m.memoizedState=gl(i,b,u,c):(St.flags|=a,m.memoizedState=gl(1|i,b,u,c))}function s2(a,i){Rc(8390656,8,a,i)}function l2(a,i){Bu(2048,8,a,i)}function u2(a,i){return Bu(4,2,a,i)}function o2(a,i){return Bu(4,4,a,i)}function c2(a,i){if(typeof i=="function"){a=a();var u=i(a);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function d2(a,i,u){u=u!=null?u.concat([a]):null,Bu(4,4,c2.bind(null,i,a),u)}function zf(){}function f2(a,i){var u=In();i=i===void 0?null:i;var c=u.memoizedState;return i!==null&&kf(i,c[1])?c[0]:(u.memoizedState=[a,i],a)}function h2(a,i){var u=In();i=i===void 0?null:i;var c=u.memoizedState;if(i!==null&&kf(i,c[1]))return c[0];if(c=a(),Ds){$e(!0);try{a()}finally{$e(!1)}}return u.memoizedState=[c,i],c}function Ff(a,i,u){return u===void 0||(Li&1073741824)!==0?a.memoizedState=i:(a.memoizedState=u,a=g4(),St.lanes|=a,qi|=a,u)}function m2(a,i,u,c){return Mr(u,i)?u:hl.current!==null?(a=Ff(a,u,c),Mr(a,i)||(Hn=!0),a):(Li&42)===0?(Hn=!0,a.memoizedState=u):(a=g4(),St.lanes|=a,qi|=a,i)}function p2(a,i,u,c,m){var b=he.p;he.p=b!==0&&8>b?b:8;var S=X.T,N={};X.T=N,jf(a,!1,i,u);try{var q=m(),ae=X.S;if(ae!==null&&ae(N,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var Ee=x7(q,c);Pu(a,i,Ee,Pr(a))}else Pu(a,i,c,Pr(a))}catch(_e){Pu(a,i,{then:function(){},status:"rejected",reason:_e},Pr())}finally{he.p=b,X.T=S}}function N7(){}function Hf(a,i,u,c){if(a.tag!==5)throw Error(r(476));var m=g2(a).queue;p2(a,m,i,be,u===null?N7:function(){return b2(a),u(c)})}function g2(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:be,baseState:be,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Za,lastRenderedState:be},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Za,lastRenderedState:u},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function b2(a){var i=g2(a).next.queue;Pu(a,i,{},Pr())}function qf(){return Jn(to)}function E2(){return In().memoizedState}function y2(){return In().memoizedState}function O7(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var u=Pr();a=Di(u);var c=Ii(i,a,u);c!==null&&(Ur(c,i,u),Ru(c,i,u)),i={cache:Ef()},a.payload=i;return}i=i.return}}function R7(a,i,u){var c=Pr();u={lane:c,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Mc(a)?T2(i,u):(u=uf(a,i,u,c),u!==null&&(Ur(u,a,c),_2(u,i,c)))}function v2(a,i,u){var c=Pr();Pu(a,i,u,c)}function Pu(a,i,u,c){var m={lane:c,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Mc(a))T2(i,m);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=i.lastRenderedReducer,b!==null))try{var S=i.lastRenderedState,N=b(S,u);if(m.hasEagerState=!0,m.eagerState=N,Mr(N,S))return pc(a,i,m,0),nn===null&&mc(),!1}catch{}finally{}if(u=uf(a,i,m,c),u!==null)return Ur(u,a,c),_2(u,i,c),!0}return!1}function jf(a,i,u,c){if(c={lane:2,revertLane:Th(),action:c,hasEagerState:!1,eagerState:null,next:null},Mc(a)){if(i)throw Error(r(479))}else i=uf(a,u,c,2),i!==null&&Ur(i,a,2)}function Mc(a){var i=a.alternate;return a===St||i!==null&&i===St}function T2(a,i){ml=wc=!0;var u=a.pending;u===null?i.next=i:(i.next=u.next,u.next=i),a.pending=i}function _2(a,i,u){if((u&4194048)!==0){var c=i.lanes;c&=a.pendingLanes,u|=c,i.lanes=u,ve(a,u)}}var Dc={readContext:Jn,use:kc,useCallback:wn,useContext:wn,useEffect:wn,useImperativeHandle:wn,useLayoutEffect:wn,useInsertionEffect:wn,useMemo:wn,useReducer:wn,useRef:wn,useState:wn,useDebugValue:wn,useDeferredValue:wn,useTransition:wn,useSyncExternalStore:wn,useId:wn,useHostTransitionStatus:wn,useFormState:wn,useActionState:wn,useOptimistic:wn,useMemoCache:wn,useCacheRefresh:wn},S2={readContext:Jn,use:kc,useCallback:function(a,i){return Tr().memoizedState=[a,i===void 0?null:i],a},useContext:Jn,useEffect:s2,useImperativeHandle:function(a,i,u){u=u!=null?u.concat([a]):null,Rc(4194308,4,c2.bind(null,i,a),u)},useLayoutEffect:function(a,i){return Rc(4194308,4,a,i)},useInsertionEffect:function(a,i){Rc(4,2,a,i)},useMemo:function(a,i){var u=Tr();i=i===void 0?null:i;var c=a();if(Ds){$e(!0);try{a()}finally{$e(!1)}}return u.memoizedState=[c,i],c},useReducer:function(a,i,u){var c=Tr();if(u!==void 0){var m=u(i);if(Ds){$e(!0);try{u(i)}finally{$e(!1)}}}else m=i;return c.memoizedState=c.baseState=m,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:m},c.queue=a,a=a.dispatch=R7.bind(null,St,a),[c.memoizedState,a]},useRef:function(a){var i=Tr();return a={current:a},i.memoizedState=a},useState:function(a){a=Pf(a);var i=a.queue,u=v2.bind(null,St,i);return i.dispatch=u,[a.memoizedState,u]},useDebugValue:zf,useDeferredValue:function(a,i){var u=Tr();return Ff(u,a,i)},useTransition:function(){var a=Pf(!1);return a=p2.bind(null,St,a.queue,!0,!1),Tr().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,u){var c=St,m=Tr();if(zt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=i(),nn===null)throw Error(r(349));(Dt&124)!==0||Yg(c,i,u)}m.memoizedState=u;var b={value:u,getSnapshot:i};return m.queue=b,s2(Vg.bind(null,c,b,a),[a]),c.flags|=2048,gl(9,Oc(),Gg.bind(null,c,b,u,i),null),u},useId:function(){var a=Tr(),i=nn.identifierPrefix;if(zt){var u=Wa,c=$a;u=(c&~(1<<32-Je(c)-1)).toString(32)+u,i="«"+i+"R"+u,u=Cc++,0<u&&(i+="H"+u.toString(32)),i+="»"}else u=A7++,i="«"+i+"r"+u.toString(32)+"»";return a.memoizedState=i},useHostTransitionStatus:qf,useFormState:t2,useActionState:t2,useOptimistic:function(a){var i=Tr();i.memoizedState=i.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=jf.bind(null,St,!0,u),u.dispatch=i,[a,i]},useMemoCache:If,useCacheRefresh:function(){return Tr().memoizedState=O7.bind(null,St)}},x2={readContext:Jn,use:kc,useCallback:f2,useContext:Jn,useEffect:l2,useImperativeHandle:d2,useInsertionEffect:u2,useLayoutEffect:o2,useMemo:h2,useReducer:Nc,useRef:i2,useState:function(){return Nc(Za)},useDebugValue:zf,useDeferredValue:function(a,i){var u=In();return m2(u,Kt.memoizedState,a,i)},useTransition:function(){var a=Nc(Za)[0],i=In().memoizedState;return[typeof a=="boolean"?a:Lu(a),i]},useSyncExternalStore:jg,useId:E2,useHostTransitionStatus:qf,useFormState:n2,useActionState:n2,useOptimistic:function(a,i){var u=In();return Wg(u,Kt,a,i)},useMemoCache:If,useCacheRefresh:y2},M7={readContext:Jn,use:kc,useCallback:f2,useContext:Jn,useEffect:l2,useImperativeHandle:d2,useInsertionEffect:u2,useLayoutEffect:o2,useMemo:h2,useReducer:Bf,useRef:i2,useState:function(){return Bf(Za)},useDebugValue:zf,useDeferredValue:function(a,i){var u=In();return Kt===null?Ff(u,a,i):m2(u,Kt.memoizedState,a,i)},useTransition:function(){var a=Bf(Za)[0],i=In().memoizedState;return[typeof a=="boolean"?a:Lu(a),i]},useSyncExternalStore:jg,useId:E2,useHostTransitionStatus:qf,useFormState:a2,useActionState:a2,useOptimistic:function(a,i){var u=In();return Kt!==null?Wg(u,Kt,a,i):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:If,useCacheRefresh:y2},bl=null,Uu=0;function Ic(a){var i=Uu;return Uu+=1,bl===null&&(bl=[]),Lg(bl,a,i)}function zu(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function Lc(a,i){throw i.$$typeof===g?Error(r(525)):(a=Object.prototype.toString.call(i),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)))}function A2(a){var i=a._init;return i(a._payload)}function w2(a){function i(Z,K){if(a){var ee=Z.deletions;ee===null?(Z.deletions=[K],Z.flags|=16):ee.push(K)}}function u(Z,K){if(!a)return null;for(;K!==null;)i(Z,K),K=K.sibling;return null}function c(Z){for(var K=new Map;Z!==null;)Z.key!==null?K.set(Z.key,Z):K.set(Z.index,Z),Z=Z.sibling;return K}function m(Z,K){return Z=Ka(Z,K),Z.index=0,Z.sibling=null,Z}function b(Z,K,ee){return Z.index=ee,a?(ee=Z.alternate,ee!==null?(ee=ee.index,ee<K?(Z.flags|=67108866,K):ee):(Z.flags|=67108866,K)):(Z.flags|=1048576,K)}function S(Z){return a&&Z.alternate===null&&(Z.flags|=67108866),Z}function N(Z,K,ee,Te){return K===null||K.tag!==6?(K=cf(ee,Z.mode,Te),K.return=Z,K):(K=m(K,ee),K.return=Z,K)}function q(Z,K,ee,Te){var Ye=ee.type;return Ye===w?Ee(Z,K,ee.props.children,Te,ee.key):K!==null&&(K.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===ce&&A2(Ye)===K.type)?(K=m(K,ee.props),zu(K,ee),K.return=Z,K):(K=bc(ee.type,ee.key,ee.props,null,Z.mode,Te),zu(K,ee),K.return=Z,K)}function ae(Z,K,ee,Te){return K===null||K.tag!==4||K.stateNode.containerInfo!==ee.containerInfo||K.stateNode.implementation!==ee.implementation?(K=df(ee,Z.mode,Te),K.return=Z,K):(K=m(K,ee.children||[]),K.return=Z,K)}function Ee(Z,K,ee,Te,Ye){return K===null||K.tag!==7?(K=As(ee,Z.mode,Te,Ye),K.return=Z,K):(K=m(K,ee),K.return=Z,K)}function _e(Z,K,ee){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=cf(""+K,Z.mode,ee),K.return=Z,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case y:return ee=bc(K.type,K.key,K.props,null,Z.mode,ee),zu(ee,K),ee.return=Z,ee;case T:return K=df(K,Z.mode,ee),K.return=Z,K;case ce:var Te=K._init;return K=Te(K._payload),_e(Z,K,ee)}if(pe(K)||J(K))return K=As(K,Z.mode,ee,null),K.return=Z,K;if(typeof K.then=="function")return _e(Z,Ic(K),ee);if(K.$$typeof===L)return _e(Z,Tc(Z,K),ee);Lc(Z,K)}return null}function ue(Z,K,ee,Te){var Ye=K!==null?K.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Ye!==null?null:N(Z,K,""+ee,Te);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case y:return ee.key===Ye?q(Z,K,ee,Te):null;case T:return ee.key===Ye?ae(Z,K,ee,Te):null;case ce:return Ye=ee._init,ee=Ye(ee._payload),ue(Z,K,ee,Te)}if(pe(ee)||J(ee))return Ye!==null?null:Ee(Z,K,ee,Te,null);if(typeof ee.then=="function")return ue(Z,K,Ic(ee),Te);if(ee.$$typeof===L)return ue(Z,K,Tc(Z,ee),Te);Lc(Z,ee)}return null}function oe(Z,K,ee,Te,Ye){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Z=Z.get(ee)||null,N(K,Z,""+Te,Ye);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case y:return Z=Z.get(Te.key===null?ee:Te.key)||null,q(K,Z,Te,Ye);case T:return Z=Z.get(Te.key===null?ee:Te.key)||null,ae(K,Z,Te,Ye);case ce:var At=Te._init;return Te=At(Te._payload),oe(Z,K,ee,Te,Ye)}if(pe(Te)||J(Te))return Z=Z.get(ee)||null,Ee(K,Z,Te,Ye,null);if(typeof Te.then=="function")return oe(Z,K,ee,Ic(Te),Ye);if(Te.$$typeof===L)return oe(Z,K,ee,Tc(K,Te),Ye);Lc(K,Te)}return null}function dt(Z,K,ee,Te){for(var Ye=null,At=null,Xe=K,ut=K=0,jn=null;Xe!==null&&ut<ee.length;ut++){Xe.index>ut?(jn=Xe,Xe=null):jn=Xe.sibling;var Pt=ue(Z,Xe,ee[ut],Te);if(Pt===null){Xe===null&&(Xe=jn);break}a&&Xe&&Pt.alternate===null&&i(Z,Xe),K=b(Pt,K,ut),At===null?Ye=Pt:At.sibling=Pt,At=Pt,Xe=jn}if(ut===ee.length)return u(Z,Xe),zt&&Cs(Z,ut),Ye;if(Xe===null){for(;ut<ee.length;ut++)Xe=_e(Z,ee[ut],Te),Xe!==null&&(K=b(Xe,K,ut),At===null?Ye=Xe:At.sibling=Xe,At=Xe);return zt&&Cs(Z,ut),Ye}for(Xe=c(Xe);ut<ee.length;ut++)jn=oe(Xe,Z,ut,ee[ut],Te),jn!==null&&(a&&jn.alternate!==null&&Xe.delete(jn.key===null?ut:jn.key),K=b(jn,K,ut),At===null?Ye=jn:At.sibling=jn,At=jn);return a&&Xe.forEach(function(Qi){return i(Z,Qi)}),zt&&Cs(Z,ut),Ye}function st(Z,K,ee,Te){if(ee==null)throw Error(r(151));for(var Ye=null,At=null,Xe=K,ut=K=0,jn=null,Pt=ee.next();Xe!==null&&!Pt.done;ut++,Pt=ee.next()){Xe.index>ut?(jn=Xe,Xe=null):jn=Xe.sibling;var Qi=ue(Z,Xe,Pt.value,Te);if(Qi===null){Xe===null&&(Xe=jn);break}a&&Xe&&Qi.alternate===null&&i(Z,Xe),K=b(Qi,K,ut),At===null?Ye=Qi:At.sibling=Qi,At=Qi,Xe=jn}if(Pt.done)return u(Z,Xe),zt&&Cs(Z,ut),Ye;if(Xe===null){for(;!Pt.done;ut++,Pt=ee.next())Pt=_e(Z,Pt.value,Te),Pt!==null&&(K=b(Pt,K,ut),At===null?Ye=Pt:At.sibling=Pt,At=Pt);return zt&&Cs(Z,ut),Ye}for(Xe=c(Xe);!Pt.done;ut++,Pt=ee.next())Pt=oe(Xe,Z,ut,Pt.value,Te),Pt!==null&&(a&&Pt.alternate!==null&&Xe.delete(Pt.key===null?ut:Pt.key),K=b(Pt,K,ut),At===null?Ye=Pt:At.sibling=Pt,At=Pt);return a&&Xe.forEach(function(DT){return i(Z,DT)}),zt&&Cs(Z,ut),Ye}function Wt(Z,K,ee,Te){if(typeof ee=="object"&&ee!==null&&ee.type===w&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case y:e:{for(var Ye=ee.key;K!==null;){if(K.key===Ye){if(Ye=ee.type,Ye===w){if(K.tag===7){u(Z,K.sibling),Te=m(K,ee.props.children),Te.return=Z,Z=Te;break e}}else if(K.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===ce&&A2(Ye)===K.type){u(Z,K.sibling),Te=m(K,ee.props),zu(Te,ee),Te.return=Z,Z=Te;break e}u(Z,K);break}else i(Z,K);K=K.sibling}ee.type===w?(Te=As(ee.props.children,Z.mode,Te,ee.key),Te.return=Z,Z=Te):(Te=bc(ee.type,ee.key,ee.props,null,Z.mode,Te),zu(Te,ee),Te.return=Z,Z=Te)}return S(Z);case T:e:{for(Ye=ee.key;K!==null;){if(K.key===Ye)if(K.tag===4&&K.stateNode.containerInfo===ee.containerInfo&&K.stateNode.implementation===ee.implementation){u(Z,K.sibling),Te=m(K,ee.children||[]),Te.return=Z,Z=Te;break e}else{u(Z,K);break}else i(Z,K);K=K.sibling}Te=df(ee,Z.mode,Te),Te.return=Z,Z=Te}return S(Z);case ce:return Ye=ee._init,ee=Ye(ee._payload),Wt(Z,K,ee,Te)}if(pe(ee))return dt(Z,K,ee,Te);if(J(ee)){if(Ye=J(ee),typeof Ye!="function")throw Error(r(150));return ee=Ye.call(ee),st(Z,K,ee,Te)}if(typeof ee.then=="function")return Wt(Z,K,Ic(ee),Te);if(ee.$$typeof===L)return Wt(Z,K,Tc(Z,ee),Te);Lc(Z,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,K!==null&&K.tag===6?(u(Z,K.sibling),Te=m(K,ee),Te.return=Z,Z=Te):(u(Z,K),Te=cf(ee,Z.mode,Te),Te.return=Z,Z=Te),S(Z)):u(Z,K)}return function(Z,K,ee,Te){try{Uu=0;var Ye=Wt(Z,K,ee,Te);return bl=null,Ye}catch(Xe){if(Xe===Nu||Xe===Sc)throw Xe;var At=Dr(29,Xe,null,Z.mode);return At.lanes=Te,At.return=Z,At}finally{}}}var El=w2(!0),C2=w2(!1),Zr=le(null),xa=null;function Bi(a){var i=a.alternate;D(zn,zn.current&1),D(Zr,a),xa===null&&(i===null||hl.current!==null||i.memoizedState!==null)&&(xa=a)}function k2(a){if(a.tag===22){if(D(zn,zn.current),D(Zr,a),xa===null){var i=a.alternate;i!==null&&i.memoizedState!==null&&(xa=a)}}else Pi()}function Pi(){D(zn,zn.current),D(Zr,Zr.current)}function Ja(a){ye(Zr),xa===a&&(xa=null),ye(zn)}var zn=le(0);function Bc(a){for(var i=a;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||Dh(u)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Yf(a,i,u,c){i=a.memoizedState,u=u(c,i),u=u==null?i:p({},i,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Gf={enqueueSetState:function(a,i,u){a=a._reactInternals;var c=Pr(),m=Di(c);m.payload=i,u!=null&&(m.callback=u),i=Ii(a,m,c),i!==null&&(Ur(i,a,c),Ru(i,a,c))},enqueueReplaceState:function(a,i,u){a=a._reactInternals;var c=Pr(),m=Di(c);m.tag=1,m.payload=i,u!=null&&(m.callback=u),i=Ii(a,m,c),i!==null&&(Ur(i,a,c),Ru(i,a,c))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var u=Pr(),c=Di(u);c.tag=2,i!=null&&(c.callback=i),i=Ii(a,c,u),i!==null&&(Ur(i,a,u),Ru(i,a,u))}};function N2(a,i,u,c,m,b,S){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(c,b,S):i.prototype&&i.prototype.isPureReactComponent?!Tu(u,c)||!Tu(m,b):!0}function O2(a,i,u,c){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,c),i.state!==a&&Gf.enqueueReplaceState(i,i.state,null)}function Is(a,i){var u=i;if("ref"in i){u={};for(var c in i)c!=="ref"&&(u[c]=i[c])}if(a=a.defaultProps){u===i&&(u=p({},u));for(var m in a)u[m]===void 0&&(u[m]=a[m])}return u}var Pc=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function R2(a){Pc(a)}function M2(a){console.error(a)}function D2(a){Pc(a)}function Uc(a,i){try{var u=a.onUncaughtError;u(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function I2(a,i,u){try{var c=a.onCaughtError;c(u.value,{componentStack:u.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Vf(a,i,u){return u=Di(u),u.tag=3,u.payload={element:null},u.callback=function(){Uc(a,i)},u}function L2(a){return a=Di(a),a.tag=3,a}function B2(a,i,u,c){var m=u.type.getDerivedStateFromError;if(typeof m=="function"){var b=c.value;a.payload=function(){return m(b)},a.callback=function(){I2(i,u,c)}}var S=u.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(a.callback=function(){I2(i,u,c),typeof m!="function"&&(ji===null?ji=new Set([this]):ji.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})})}function D7(a,i,u,c,m){if(u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=u.alternate,i!==null&&wu(i,u,m,!0),u=Zr.current,u!==null){switch(u.tag){case 13:return xa===null?gh():u.alternate===null&&Sn===0&&(Sn=3),u.flags&=-257,u.flags|=65536,u.lanes=m,c===Tf?u.flags|=16384:(i=u.updateQueue,i===null?u.updateQueue=new Set([c]):i.add(c),Eh(a,c,m)),!1;case 22:return u.flags|=65536,c===Tf?u.flags|=16384:(i=u.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},u.updateQueue=i):(u=i.retryQueue,u===null?i.retryQueue=new Set([c]):u.add(c)),Eh(a,c,m)),!1}throw Error(r(435,u.tag))}return Eh(a,c,m),gh(),!1}if(zt)return i=Zr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=m,c!==mf&&(a=Error(r(422),{cause:c}),Au($r(a,u)))):(c!==mf&&(i=Error(r(423),{cause:c}),Au($r(i,u))),a=a.current.alternate,a.flags|=65536,m&=-m,a.lanes|=m,c=$r(c,u),m=Vf(a.stateNode,c,m),xf(a,m),Sn!==4&&(Sn=2)),!1;var b=Error(r(520),{cause:c});if(b=$r(b,u),Vu===null?Vu=[b]:Vu.push(b),Sn!==4&&(Sn=2),i===null)return!0;c=$r(c,u),u=i;do{switch(u.tag){case 3:return u.flags|=65536,a=m&-m,u.lanes|=a,a=Vf(u.stateNode,c,a),xf(u,a),!1;case 1:if(i=u.type,b=u.stateNode,(u.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ji===null||!ji.has(b))))return u.flags|=65536,m&=-m,u.lanes|=m,m=L2(m),B2(m,a,u,c),xf(u,m),!1}u=u.return}while(u!==null);return!1}var P2=Error(r(461)),Hn=!1;function Kn(a,i,u,c){i.child=a===null?C2(i,null,u,c):El(i,a.child,u,c)}function U2(a,i,u,c,m){u=u.render;var b=i.ref;if("ref"in c){var S={};for(var N in c)N!=="ref"&&(S[N]=c[N])}else S=c;return Rs(i),c=Nf(a,i,u,S,b,m),N=Of(),a!==null&&!Hn?(Rf(a,i,m),ei(a,i,m)):(zt&&N&&ff(i),i.flags|=1,Kn(a,i,c,m),i.child)}function z2(a,i,u,c,m){if(a===null){var b=u.type;return typeof b=="function"&&!of(b)&&b.defaultProps===void 0&&u.compare===null?(i.tag=15,i.type=b,F2(a,i,b,c,m)):(a=bc(u.type,null,c,i,i.mode,m),a.ref=i.ref,a.return=i,i.child=a)}if(b=a.child,!eh(a,m)){var S=b.memoizedProps;if(u=u.compare,u=u!==null?u:Tu,u(S,c)&&a.ref===i.ref)return ei(a,i,m)}return i.flags|=1,a=Ka(b,c),a.ref=i.ref,a.return=i,i.child=a}function F2(a,i,u,c,m){if(a!==null){var b=a.memoizedProps;if(Tu(b,c)&&a.ref===i.ref)if(Hn=!1,i.pendingProps=c=b,eh(a,m))(a.flags&131072)!==0&&(Hn=!0);else return i.lanes=a.lanes,ei(a,i,m)}return Kf(a,i,u,c,m)}function H2(a,i,u){var c=i.pendingProps,m=c.children,b=a!==null?a.memoizedState:null;if(c.mode==="hidden"){if((i.flags&128)!==0){if(c=b!==null?b.baseLanes|u:u,a!==null){for(m=i.child=a.child,b=0;m!==null;)b=b|m.lanes|m.childLanes,m=m.sibling;i.childLanes=b&~c}else i.childLanes=0,i.child=null;return q2(a,i,c,u)}if((u&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&_c(i,b!==null?b.cachePool:null),b!==null?Fg(i,b):wf(),k2(i);else return i.lanes=i.childLanes=536870912,q2(a,i,b!==null?b.baseLanes|u:u,u)}else b!==null?(_c(i,b.cachePool),Fg(i,b),Pi(),i.memoizedState=null):(a!==null&&_c(i,null),wf(),Pi());return Kn(a,i,m,u),i.child}function q2(a,i,u,c){var m=vf();return m=m===null?null:{parent:Un._currentValue,pool:m},i.memoizedState={baseLanes:u,cachePool:m},a!==null&&_c(i,null),wf(),k2(i),a!==null&&wu(a,i,c,!0),null}function zc(a,i){var u=i.ref;if(u===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(i.flags|=4194816)}}function Kf(a,i,u,c,m){return Rs(i),u=Nf(a,i,u,c,void 0,m),c=Of(),a!==null&&!Hn?(Rf(a,i,m),ei(a,i,m)):(zt&&c&&ff(i),i.flags|=1,Kn(a,i,u,m),i.child)}function j2(a,i,u,c,m,b){return Rs(i),i.updateQueue=null,u=qg(i,c,u,m),Hg(a),c=Of(),a!==null&&!Hn?(Rf(a,i,b),ei(a,i,b)):(zt&&c&&ff(i),i.flags|=1,Kn(a,i,u,b),i.child)}function Y2(a,i,u,c,m){if(Rs(i),i.stateNode===null){var b=ul,S=u.contextType;typeof S=="object"&&S!==null&&(b=Jn(S)),b=new u(c,b),i.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Gf,i.stateNode=b,b._reactInternals=i,b=i.stateNode,b.props=c,b.state=i.memoizedState,b.refs={},_f(i),S=u.contextType,b.context=typeof S=="object"&&S!==null?Jn(S):ul,b.state=i.memoizedState,S=u.getDerivedStateFromProps,typeof S=="function"&&(Yf(i,u,S,c),b.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(S=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),S!==b.state&&Gf.enqueueReplaceState(b,b.state,null),Du(i,c,b,m),Mu(),b.state=i.memoizedState),typeof b.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(a===null){b=i.stateNode;var N=i.memoizedProps,q=Is(u,N);b.props=q;var ae=b.context,Ee=u.contextType;S=ul,typeof Ee=="object"&&Ee!==null&&(S=Jn(Ee));var _e=u.getDerivedStateFromProps;Ee=typeof _e=="function"||typeof b.getSnapshotBeforeUpdate=="function",N=i.pendingProps!==N,Ee||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(N||ae!==S)&&O2(i,b,c,S),Mi=!1;var ue=i.memoizedState;b.state=ue,Du(i,c,b,m),Mu(),ae=i.memoizedState,N||ue!==ae||Mi?(typeof _e=="function"&&(Yf(i,u,_e,c),ae=i.memoizedState),(q=Mi||N2(i,u,q,c,ue,ae,S))?(Ee||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=ae),b.props=c,b.state=ae,b.context=S,c=q):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{b=i.stateNode,Sf(a,i),S=i.memoizedProps,Ee=Is(u,S),b.props=Ee,_e=i.pendingProps,ue=b.context,ae=u.contextType,q=ul,typeof ae=="object"&&ae!==null&&(q=Jn(ae)),N=u.getDerivedStateFromProps,(ae=typeof N=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(S!==_e||ue!==q)&&O2(i,b,c,q),Mi=!1,ue=i.memoizedState,b.state=ue,Du(i,c,b,m),Mu();var oe=i.memoizedState;S!==_e||ue!==oe||Mi||a!==null&&a.dependencies!==null&&vc(a.dependencies)?(typeof N=="function"&&(Yf(i,u,N,c),oe=i.memoizedState),(Ee=Mi||N2(i,u,Ee,c,ue,oe,q)||a!==null&&a.dependencies!==null&&vc(a.dependencies))?(ae||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,oe,q),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,oe,q)),typeof b.componentDidUpdate=="function"&&(i.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof b.componentDidUpdate!="function"||S===a.memoizedProps&&ue===a.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||S===a.memoizedProps&&ue===a.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=oe),b.props=c,b.state=oe,b.context=q,c=Ee):(typeof b.componentDidUpdate!="function"||S===a.memoizedProps&&ue===a.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||S===a.memoizedProps&&ue===a.memoizedState||(i.flags|=1024),c=!1)}return b=c,zc(a,i),c=(i.flags&128)!==0,b||c?(b=i.stateNode,u=c&&typeof u.getDerivedStateFromError!="function"?null:b.render(),i.flags|=1,a!==null&&c?(i.child=El(i,a.child,null,m),i.child=El(i,null,u,m)):Kn(a,i,u,m),i.memoizedState=b.state,a=i.child):a=ei(a,i,m),a}function G2(a,i,u,c){return xu(),i.flags|=256,Kn(a,i,u,c),i.child}var $f={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wf(a){return{baseLanes:a,cachePool:Mg()}}function Xf(a,i,u){return a=a!==null?a.childLanes&~u:0,i&&(a|=Jr),a}function V2(a,i,u){var c=i.pendingProps,m=!1,b=(i.flags&128)!==0,S;if((S=b)||(S=a!==null&&a.memoizedState===null?!1:(zn.current&2)!==0),S&&(m=!0,i.flags&=-129),S=(i.flags&32)!==0,i.flags&=-33,a===null){if(zt){if(m?Bi(i):Pi(),zt){var N=_n,q;if(q=N){e:{for(q=N,N=Sa;q.nodeType!==8;){if(!N){N=null;break e}if(q=pa(q.nextSibling),q===null){N=null;break e}}N=q}N!==null?(i.memoizedState={dehydrated:N,treeContext:ws!==null?{id:$a,overflow:Wa}:null,retryLane:536870912,hydrationErrors:null},q=Dr(18,null,null,0),q.stateNode=N,q.return=i,i.child=q,or=i,_n=null,q=!0):q=!1}q||Ns(i)}if(N=i.memoizedState,N!==null&&(N=N.dehydrated,N!==null))return Dh(N)?i.lanes=32:i.lanes=536870912,null;Ja(i)}return N=c.children,c=c.fallback,m?(Pi(),m=i.mode,N=Fc({mode:"hidden",children:N},m),c=As(c,m,u,null),N.return=i,c.return=i,N.sibling=c,i.child=N,m=i.child,m.memoizedState=Wf(u),m.childLanes=Xf(a,S,u),i.memoizedState=$f,c):(Bi(i),Qf(i,N))}if(q=a.memoizedState,q!==null&&(N=q.dehydrated,N!==null)){if(b)i.flags&256?(Bi(i),i.flags&=-257,i=Zf(a,i,u)):i.memoizedState!==null?(Pi(),i.child=a.child,i.flags|=128,i=null):(Pi(),m=c.fallback,N=i.mode,c=Fc({mode:"visible",children:c.children},N),m=As(m,N,u,null),m.flags|=2,c.return=i,m.return=i,c.sibling=m,i.child=c,El(i,a.child,null,u),c=i.child,c.memoizedState=Wf(u),c.childLanes=Xf(a,S,u),i.memoizedState=$f,i=m);else if(Bi(i),Dh(N)){if(S=N.nextSibling&&N.nextSibling.dataset,S)var ae=S.dgst;S=ae,c=Error(r(419)),c.stack="",c.digest=S,Au({value:c,source:null,stack:null}),i=Zf(a,i,u)}else if(Hn||wu(a,i,u,!1),S=(u&a.childLanes)!==0,Hn||S){if(S=nn,S!==null&&(c=u&-u,c=(c&42)!==0?1:Le(c),c=(c&(S.suspendedLanes|u))!==0?0:c,c!==0&&c!==q.retryLane))throw q.retryLane=c,ll(a,c),Ur(S,a,c),P2;N.data==="$?"||gh(),i=Zf(a,i,u)}else N.data==="$?"?(i.flags|=192,i.child=a.child,i=null):(a=q.treeContext,_n=pa(N.nextSibling),or=i,zt=!0,ks=null,Sa=!1,a!==null&&(Xr[Qr++]=$a,Xr[Qr++]=Wa,Xr[Qr++]=ws,$a=a.id,Wa=a.overflow,ws=i),i=Qf(i,c.children),i.flags|=4096);return i}return m?(Pi(),m=c.fallback,N=i.mode,q=a.child,ae=q.sibling,c=Ka(q,{mode:"hidden",children:c.children}),c.subtreeFlags=q.subtreeFlags&65011712,ae!==null?m=Ka(ae,m):(m=As(m,N,u,null),m.flags|=2),m.return=i,c.return=i,c.sibling=m,i.child=c,c=m,m=i.child,N=a.child.memoizedState,N===null?N=Wf(u):(q=N.cachePool,q!==null?(ae=Un._currentValue,q=q.parent!==ae?{parent:ae,pool:ae}:q):q=Mg(),N={baseLanes:N.baseLanes|u,cachePool:q}),m.memoizedState=N,m.childLanes=Xf(a,S,u),i.memoizedState=$f,c):(Bi(i),u=a.child,a=u.sibling,u=Ka(u,{mode:"visible",children:c.children}),u.return=i,u.sibling=null,a!==null&&(S=i.deletions,S===null?(i.deletions=[a],i.flags|=16):S.push(a)),i.child=u,i.memoizedState=null,u)}function Qf(a,i){return i=Fc({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function Fc(a,i){return a=Dr(22,a,null,i),a.lanes=0,a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},a}function Zf(a,i,u){return El(i,a.child,null,u),a=Qf(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function K2(a,i,u){a.lanes|=i;var c=a.alternate;c!==null&&(c.lanes|=i),gf(a.return,i,u)}function Jf(a,i,u,c,m){var b=a.memoizedState;b===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:u,tailMode:m}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=u,b.tailMode=m)}function $2(a,i,u){var c=i.pendingProps,m=c.revealOrder,b=c.tail;if(Kn(a,i,c.children,u),c=zn.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&K2(a,u,i);else if(a.tag===19)K2(a,u,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}c&=1}switch(D(zn,c),m){case"forwards":for(u=i.child,m=null;u!==null;)a=u.alternate,a!==null&&Bc(a)===null&&(m=u),u=u.sibling;u=m,u===null?(m=i.child,i.child=null):(m=u.sibling,u.sibling=null),Jf(i,!1,m,u,b);break;case"backwards":for(u=null,m=i.child,i.child=null;m!==null;){if(a=m.alternate,a!==null&&Bc(a)===null){i.child=m;break}a=m.sibling,m.sibling=u,u=m,m=a}Jf(i,!0,u,null,b);break;case"together":Jf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ei(a,i,u){if(a!==null&&(i.dependencies=a.dependencies),qi|=i.lanes,(u&i.childLanes)===0)if(a!==null){if(wu(a,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(r(153));if(i.child!==null){for(a=i.child,u=Ka(a,a.pendingProps),i.child=u,u.return=i;a.sibling!==null;)a=a.sibling,u=u.sibling=Ka(a,a.pendingProps),u.return=i;u.sibling=null}return i.child}function eh(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&vc(a)))}function I7(a,i,u){switch(i.tag){case 3:ot(i,i.stateNode.containerInfo),Ri(i,Un,a.memoizedState.cache),xu();break;case 27:case 5:Ft(i);break;case 4:ot(i,i.stateNode.containerInfo);break;case 10:Ri(i,i.type,i.memoizedProps.value);break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(Bi(i),i.flags|=128,null):(u&i.child.childLanes)!==0?V2(a,i,u):(Bi(i),a=ei(a,i,u),a!==null?a.sibling:null);Bi(i);break;case 19:var m=(a.flags&128)!==0;if(c=(u&i.childLanes)!==0,c||(wu(a,i,u,!1),c=(u&i.childLanes)!==0),m){if(c)return $2(a,i,u);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),D(zn,zn.current),c)break;return null;case 22:case 23:return i.lanes=0,H2(a,i,u);case 24:Ri(i,Un,a.memoizedState.cache)}return ei(a,i,u)}function W2(a,i,u){if(a!==null)if(a.memoizedProps!==i.pendingProps)Hn=!0;else{if(!eh(a,u)&&(i.flags&128)===0)return Hn=!1,I7(a,i,u);Hn=(a.flags&131072)!==0}else Hn=!1,zt&&(i.flags&1048576)!==0&&Ag(i,yc,i.index);switch(i.lanes=0,i.tag){case 16:e:{a=i.pendingProps;var c=i.elementType,m=c._init;if(c=m(c._payload),i.type=c,typeof c=="function")of(c)?(a=Is(c,a),i.tag=1,i=Y2(null,i,c,a,u)):(i.tag=0,i=Kf(null,i,c,a,u));else{if(c!=null){if(m=c.$$typeof,m===$){i.tag=11,i=U2(null,i,c,a,u);break e}else if(m===ne){i.tag=14,i=z2(null,i,c,a,u);break e}}throw i=fe(c)||c,Error(r(306,i,""))}}return i;case 0:return Kf(a,i,i.type,i.pendingProps,u);case 1:return c=i.type,m=Is(c,i.pendingProps),Y2(a,i,c,m,u);case 3:e:{if(ot(i,i.stateNode.containerInfo),a===null)throw Error(r(387));c=i.pendingProps;var b=i.memoizedState;m=b.element,Sf(a,i),Du(i,c,null,u);var S=i.memoizedState;if(c=S.cache,Ri(i,Un,c),c!==b.cache&&bf(i,[Un],u,!0),Mu(),c=S.element,b.isDehydrated)if(b={element:c,isDehydrated:!1,cache:S.cache},i.updateQueue.baseState=b,i.memoizedState=b,i.flags&256){i=G2(a,i,c,u);break e}else if(c!==m){m=$r(Error(r(424)),i),Au(m),i=G2(a,i,c,u);break e}else{switch(a=i.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(_n=pa(a.firstChild),or=i,zt=!0,ks=null,Sa=!0,u=C2(i,null,c,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(xu(),c===m){i=ei(a,i,u);break e}Kn(a,i,c,u)}i=i.child}return i;case 26:return zc(a,i),a===null?(u=J4(i.type,null,i.pendingProps,null))?i.memoizedState=u:zt||(u=i.type,a=i.pendingProps,c=e0(Be.current).createElement(u),c[De]=i,c[Ge]=a,Wn(c,u,a),gn(c),i.stateNode=c):i.memoizedState=J4(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return Ft(i),a===null&&zt&&(c=i.stateNode=X4(i.type,i.pendingProps,Be.current),or=i,Sa=!0,m=_n,Vi(i.type)?(Ih=m,_n=pa(c.firstChild)):_n=m),Kn(a,i,i.pendingProps.children,u),zc(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&zt&&((m=c=_n)&&(c=uT(c,i.type,i.pendingProps,Sa),c!==null?(i.stateNode=c,or=i,_n=pa(c.firstChild),Sa=!1,m=!0):m=!1),m||Ns(i)),Ft(i),m=i.type,b=i.pendingProps,S=a!==null?a.memoizedProps:null,c=b.children,Oh(m,b)?c=null:S!==null&&Oh(m,S)&&(i.flags|=32),i.memoizedState!==null&&(m=Nf(a,i,w7,null,null,u),to._currentValue=m),zc(a,i),Kn(a,i,c,u),i.child;case 6:return a===null&&zt&&((a=u=_n)&&(u=oT(u,i.pendingProps,Sa),u!==null?(i.stateNode=u,or=i,_n=null,a=!0):a=!1),a||Ns(i)),null;case 13:return V2(a,i,u);case 4:return ot(i,i.stateNode.containerInfo),c=i.pendingProps,a===null?i.child=El(i,null,c,u):Kn(a,i,c,u),i.child;case 11:return U2(a,i,i.type,i.pendingProps,u);case 7:return Kn(a,i,i.pendingProps,u),i.child;case 8:return Kn(a,i,i.pendingProps.children,u),i.child;case 12:return Kn(a,i,i.pendingProps.children,u),i.child;case 10:return c=i.pendingProps,Ri(i,i.type,c.value),Kn(a,i,c.children,u),i.child;case 9:return m=i.type._context,c=i.pendingProps.children,Rs(i),m=Jn(m),c=c(m),i.flags|=1,Kn(a,i,c,u),i.child;case 14:return z2(a,i,i.type,i.pendingProps,u);case 15:return F2(a,i,i.type,i.pendingProps,u);case 19:return $2(a,i,u);case 31:return c=i.pendingProps,u=i.mode,c={mode:c.mode,children:c.children},a===null?(u=Fc(c,u),u.ref=i.ref,i.child=u,u.return=i,i=u):(u=Ka(a.child,c),u.ref=i.ref,i.child=u,u.return=i,i=u),i;case 22:return H2(a,i,u);case 24:return Rs(i),c=Jn(Un),a===null?(m=vf(),m===null&&(m=nn,b=Ef(),m.pooledCache=b,b.refCount++,b!==null&&(m.pooledCacheLanes|=u),m=b),i.memoizedState={parent:c,cache:m},_f(i),Ri(i,Un,m)):((a.lanes&u)!==0&&(Sf(a,i),Du(i,null,null,u),Mu()),m=a.memoizedState,b=i.memoizedState,m.parent!==c?(m={parent:c,cache:c},i.memoizedState=m,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=m),Ri(i,Un,c)):(c=b.cache,Ri(i,Un,c),c!==m.cache&&bf(i,[Un],u,!0))),Kn(a,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function ti(a){a.flags|=4}function X2(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!ab(i)){if(i=Zr.current,i!==null&&((Dt&4194048)===Dt?xa!==null:(Dt&62914560)!==Dt&&(Dt&536870912)===0||i!==xa))throw Ou=Tf,Dg;a.flags|=8192}}function Hc(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?uu():536870912,a.lanes|=i,_l|=i)}function Fu(a,i){if(!zt)switch(a.tailMode){case"hidden":i=a.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var c=null;u!==null;)u.alternate!==null&&(c=u),u=u.sibling;c===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:c.sibling=null}}function En(a){var i=a.alternate!==null&&a.alternate.child===a.child,u=0,c=0;if(i)for(var m=a.child;m!==null;)u|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=a,m=m.sibling;else for(m=a.child;m!==null;)u|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=a,m=m.sibling;return a.subtreeFlags|=c,a.childLanes=u,i}function L7(a,i,u){var c=i.pendingProps;switch(hf(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(i),null;case 1:return En(i),null;case 3:return u=i.stateNode,c=null,a!==null&&(c=a.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),Qa(Un),Qt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(Su(i)?ti(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,kg())),En(i),null;case 26:return u=i.memoizedState,a===null?(ti(i),u!==null?(En(i),X2(i,u)):(En(i),i.flags&=-16777217)):u?u!==a.memoizedState?(ti(i),En(i),X2(i,u)):(En(i),i.flags&=-16777217):(a.memoizedProps!==c&&ti(i),En(i),i.flags&=-16777217),null;case 27:An(i),u=Be.current;var m=i.type;if(a!==null&&i.stateNode!=null)a.memoizedProps!==c&&ti(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return En(i),null}a=Ie.current,Su(i)?wg(i):(a=X4(m,c,u),i.stateNode=a,ti(i))}return En(i),null;case 5:if(An(i),u=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&ti(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return En(i),null}if(a=Ie.current,Su(i))wg(i);else{switch(m=e0(Be.current),a){case 1:a=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:a=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":a=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":a=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":a=m.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof c.is=="string"?m.createElement("select",{is:c.is}):m.createElement("select"),c.multiple?a.multiple=!0:c.size&&(a.size=c.size);break;default:a=typeof c.is=="string"?m.createElement(u,{is:c.is}):m.createElement(u)}}a[De]=i,a[Ge]=c;e:for(m=i.child;m!==null;){if(m.tag===5||m.tag===6)a.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===i)break e;for(;m.sibling===null;){if(m.return===null||m.return===i)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}i.stateNode=a;e:switch(Wn(a,u,c),u){case"button":case"input":case"select":case"textarea":a=!!c.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ti(i)}}return En(i),i.flags&=-16777217,null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==c&&ti(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(a=Be.current,Su(i)){if(a=i.stateNode,u=i.memoizedProps,c=null,m=or,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}a[De]=i,a=!!(a.nodeValue===u||c!==null&&c.suppressHydrationWarning===!0||j4(a.nodeValue,u)),a||Ns(i)}else a=e0(a).createTextNode(c),a[De]=i,i.stateNode=a}return En(i),null;case 13:if(c=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(m=Su(i),c!==null&&c.dehydrated!==null){if(a===null){if(!m)throw Error(r(318));if(m=i.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[De]=i}else xu(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;En(i),m=!1}else m=kg(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=m),m=!0;if(!m)return i.flags&256?(Ja(i),i):(Ja(i),null)}if(Ja(i),(i.flags&128)!==0)return i.lanes=u,i;if(u=c!==null,a=a!==null&&a.memoizedState!==null,u){c=i.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool);var b=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==m&&(c.flags|=2048)}return u!==a&&u&&(i.child.flags|=8192),Hc(i,i.updateQueue),En(i),null;case 4:return Qt(),a===null&&Ah(i.stateNode.containerInfo),En(i),null;case 10:return Qa(i.type),En(i),null;case 19:if(ye(zn),m=i.memoizedState,m===null)return En(i),null;if(c=(i.flags&128)!==0,b=m.rendering,b===null)if(c)Fu(m,!1);else{if(Sn!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(b=Bc(a),b!==null){for(i.flags|=128,Fu(m,!1),a=b.updateQueue,i.updateQueue=a,Hc(i,a),i.subtreeFlags=0,a=u,u=i.child;u!==null;)xg(u,a),u=u.sibling;return D(zn,zn.current&1|2),i.child}a=a.sibling}m.tail!==null&&ht()>Yc&&(i.flags|=128,c=!0,Fu(m,!1),i.lanes=4194304)}else{if(!c)if(a=Bc(b),a!==null){if(i.flags|=128,c=!0,a=a.updateQueue,i.updateQueue=a,Hc(i,a),Fu(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!zt)return En(i),null}else 2*ht()-m.renderingStartTime>Yc&&u!==536870912&&(i.flags|=128,c=!0,Fu(m,!1),i.lanes=4194304);m.isBackwards?(b.sibling=i.child,i.child=b):(a=m.last,a!==null?a.sibling=b:i.child=b,m.last=b)}return m.tail!==null?(i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=ht(),i.sibling=null,a=zn.current,D(zn,c?a&1|2:a&1),i):(En(i),null);case 22:case 23:return Ja(i),Cf(),c=i.memoizedState!==null,a!==null?a.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(u&536870912)!==0&&(i.flags&128)===0&&(En(i),i.subtreeFlags&6&&(i.flags|=8192)):En(i),u=i.updateQueue,u!==null&&Hc(i,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048),a!==null&&ye(Ms),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Qa(Un),En(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function B7(a,i){switch(hf(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Qa(Un),Qt(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return An(i),null;case 13:if(Ja(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));xu()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return ye(zn),null;case 4:return Qt(),null;case 10:return Qa(i.type),null;case 22:case 23:return Ja(i),Cf(),a!==null&&ye(Ms),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return Qa(Un),null;case 25:return null;default:return null}}function Q2(a,i){switch(hf(i),i.tag){case 3:Qa(Un),Qt();break;case 26:case 27:case 5:An(i);break;case 4:Qt();break;case 13:Ja(i);break;case 19:ye(zn);break;case 10:Qa(i.type);break;case 22:case 23:Ja(i),Cf(),a!==null&&ye(Ms);break;case 24:Qa(Un)}}function Hu(a,i){try{var u=i.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var m=c.next;u=m;do{if((u.tag&a)===a){c=void 0;var b=u.create,S=u.inst;c=b(),S.destroy=c}u=u.next}while(u!==m)}}catch(N){Jt(i,i.return,N)}}function Ui(a,i,u){try{var c=i.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var b=m.next;c=b;do{if((c.tag&a)===a){var S=c.inst,N=S.destroy;if(N!==void 0){S.destroy=void 0,m=i;var q=u,ae=N;try{ae()}catch(Ee){Jt(m,q,Ee)}}}c=c.next}while(c!==b)}}catch(Ee){Jt(i,i.return,Ee)}}function Z2(a){var i=a.updateQueue;if(i!==null){var u=a.stateNode;try{zg(i,u)}catch(c){Jt(a,a.return,c)}}}function J2(a,i,u){u.props=Is(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(c){Jt(a,i,c)}}function qu(a,i){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var c=a.stateNode;break;case 30:c=a.stateNode;break;default:c=a.stateNode}typeof u=="function"?a.refCleanup=u(c):u.current=c}}catch(m){Jt(a,i,m)}}function Aa(a,i){var u=a.ref,c=a.refCleanup;if(u!==null)if(typeof c=="function")try{c()}catch(m){Jt(a,i,m)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(m){Jt(a,i,m)}else u.current=null}function e4(a){var i=a.type,u=a.memoizedProps,c=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&c.focus();break e;case"img":u.src?c.src=u.src:u.srcSet&&(c.srcset=u.srcSet)}}catch(m){Jt(a,a.return,m)}}function th(a,i,u){try{var c=a.stateNode;rT(c,a.type,u,i),c[Ge]=i}catch(m){Jt(a,a.return,m)}}function t4(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Vi(a.type)||a.tag===4}function nh(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||t4(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Vi(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function rh(a,i,u){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(a),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=Jc));else if(c!==4&&(c===27&&Vi(a.type)&&(u=a.stateNode,i=null),a=a.child,a!==null))for(rh(a,i,u),a=a.sibling;a!==null;)rh(a,i,u),a=a.sibling}function qc(a,i,u){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?u.insertBefore(a,i):u.appendChild(a);else if(c!==4&&(c===27&&Vi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(qc(a,i,u),a=a.sibling;a!==null;)qc(a,i,u),a=a.sibling}function n4(a){var i=a.stateNode,u=a.memoizedProps;try{for(var c=a.type,m=i.attributes;m.length;)i.removeAttributeNode(m[0]);Wn(i,c,u),i[De]=a,i[Ge]=u}catch(b){Jt(a,a.return,b)}}var ni=!1,Cn=!1,ah=!1,r4=typeof WeakSet=="function"?WeakSet:Set,qn=null;function P7(a,i){if(a=a.containerInfo,kh=s0,a=mg(a),tf(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var c=u.getSelection&&u.getSelection();if(c&&c.rangeCount!==0){u=c.anchorNode;var m=c.anchorOffset,b=c.focusNode;c=c.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var S=0,N=-1,q=-1,ae=0,Ee=0,_e=a,ue=null;t:for(;;){for(var oe;_e!==u||m!==0&&_e.nodeType!==3||(N=S+m),_e!==b||c!==0&&_e.nodeType!==3||(q=S+c),_e.nodeType===3&&(S+=_e.nodeValue.length),(oe=_e.firstChild)!==null;)ue=_e,_e=oe;for(;;){if(_e===a)break t;if(ue===u&&++ae===m&&(N=S),ue===b&&++Ee===c&&(q=S),(oe=_e.nextSibling)!==null)break;_e=ue,ue=_e.parentNode}_e=oe}u=N===-1||q===-1?null:{start:N,end:q}}else u=null}u=u||{start:0,end:0}}else u=null;for(Nh={focusedElem:a,selectionRange:u},s0=!1,qn=i;qn!==null;)if(i=qn,a=i.child,(i.subtreeFlags&1024)!==0&&a!==null)a.return=i,qn=a;else for(;qn!==null;){switch(i=qn,b=i.alternate,a=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,u=i,m=b.memoizedProps,b=b.memoizedState,c=u.stateNode;try{var dt=Is(u.type,m,u.elementType===u.type);a=c.getSnapshotBeforeUpdate(dt,b),c.__reactInternalSnapshotBeforeUpdate=a}catch(st){Jt(u,u.return,st)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,u=a.nodeType,u===9)Mh(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Mh(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=i.sibling,a!==null){a.return=i.return,qn=a;break}qn=i.return}}function a4(a,i,u){var c=u.flags;switch(u.tag){case 0:case 11:case 15:zi(a,u),c&4&&Hu(5,u);break;case 1:if(zi(a,u),c&4)if(a=u.stateNode,i===null)try{a.componentDidMount()}catch(S){Jt(u,u.return,S)}else{var m=Is(u.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(m,i,a.__reactInternalSnapshotBeforeUpdate)}catch(S){Jt(u,u.return,S)}}c&64&&Z2(u),c&512&&qu(u,u.return);break;case 3:if(zi(a,u),c&64&&(a=u.updateQueue,a!==null)){if(i=null,u.child!==null)switch(u.child.tag){case 27:case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}try{zg(a,i)}catch(S){Jt(u,u.return,S)}}break;case 27:i===null&&c&4&&n4(u);case 26:case 5:zi(a,u),i===null&&c&4&&e4(u),c&512&&qu(u,u.return);break;case 12:zi(a,u);break;case 13:zi(a,u),c&4&&l4(a,u),c&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=V7.bind(null,u),cT(a,u))));break;case 22:if(c=u.memoizedState!==null||ni,!c){i=i!==null&&i.memoizedState!==null||Cn,m=ni;var b=Cn;ni=c,(Cn=i)&&!b?Fi(a,u,(u.subtreeFlags&8772)!==0):zi(a,u),ni=m,Cn=b}break;case 30:break;default:zi(a,u)}}function i4(a){var i=a.alternate;i!==null&&(a.alternate=null,i4(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&gs(i)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var dn=null,_r=!1;function ri(a,i,u){for(u=u.child;u!==null;)s4(a,i,u),u=u.sibling}function s4(a,i,u){if(xe&&typeof xe.onCommitFiberUnmount=="function")try{xe.onCommitFiberUnmount(re,u)}catch{}switch(u.tag){case 26:Cn||Aa(u,i),ri(a,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Cn||Aa(u,i);var c=dn,m=_r;Vi(u.type)&&(dn=u.stateNode,_r=!1),ri(a,i,u),Qu(u.stateNode),dn=c,_r=m;break;case 5:Cn||Aa(u,i);case 6:if(c=dn,m=_r,dn=null,ri(a,i,u),dn=c,_r=m,dn!==null)if(_r)try{(dn.nodeType===9?dn.body:dn.nodeName==="HTML"?dn.ownerDocument.body:dn).removeChild(u.stateNode)}catch(b){Jt(u,i,b)}else try{dn.removeChild(u.stateNode)}catch(b){Jt(u,i,b)}break;case 18:dn!==null&&(_r?(a=dn,$4(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),io(a)):$4(dn,u.stateNode));break;case 4:c=dn,m=_r,dn=u.stateNode.containerInfo,_r=!0,ri(a,i,u),dn=c,_r=m;break;case 0:case 11:case 14:case 15:Cn||Ui(2,u,i),Cn||Ui(4,u,i),ri(a,i,u);break;case 1:Cn||(Aa(u,i),c=u.stateNode,typeof c.componentWillUnmount=="function"&&J2(u,i,c)),ri(a,i,u);break;case 21:ri(a,i,u);break;case 22:Cn=(c=Cn)||u.memoizedState!==null,ri(a,i,u),Cn=c;break;default:ri(a,i,u)}}function l4(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{io(a)}catch(u){Jt(i,i.return,u)}}function U7(a){switch(a.tag){case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new r4),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new r4),i;default:throw Error(r(435,a.tag))}}function ih(a,i){var u=U7(a);i.forEach(function(c){var m=K7.bind(null,a,c);u.has(c)||(u.add(c),c.then(m,m))})}function Ir(a,i){var u=i.deletions;if(u!==null)for(var c=0;c<u.length;c++){var m=u[c],b=a,S=i,N=S;e:for(;N!==null;){switch(N.tag){case 27:if(Vi(N.type)){dn=N.stateNode,_r=!1;break e}break;case 5:dn=N.stateNode,_r=!1;break e;case 3:case 4:dn=N.stateNode.containerInfo,_r=!0;break e}N=N.return}if(dn===null)throw Error(r(160));s4(b,S,m),dn=null,_r=!1,b=m.alternate,b!==null&&(b.return=null),m.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)u4(i,a),i=i.sibling}var ma=null;function u4(a,i){var u=a.alternate,c=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Ir(i,a),Lr(a),c&4&&(Ui(3,a,a.return),Hu(3,a),Ui(5,a,a.return));break;case 1:Ir(i,a),Lr(a),c&512&&(Cn||u===null||Aa(u,u.return)),c&64&&ni&&(a=a.updateQueue,a!==null&&(c=a.callbacks,c!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?c:u.concat(c))));break;case 26:var m=ma;if(Ir(i,a),Lr(a),c&512&&(Cn||u===null||Aa(u,u.return)),c&4){var b=u!==null?u.memoizedState:null;if(c=a.memoizedState,u===null)if(c===null)if(a.stateNode===null){e:{c=a.type,u=a.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":b=m.getElementsByTagName("title")[0],(!b||b[ps]||b[De]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=m.createElement(c),m.head.insertBefore(b,m.querySelector("head > title"))),Wn(b,c,u),b[De]=a,gn(b),c=b;break e;case"link":var S=nb("link","href",m).get(c+(u.href||""));if(S){for(var N=0;N<S.length;N++)if(b=S[N],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){S.splice(N,1);break t}}b=m.createElement(c),Wn(b,c,u),m.head.appendChild(b);break;case"meta":if(S=nb("meta","content",m).get(c+(u.content||""))){for(N=0;N<S.length;N++)if(b=S[N],b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){S.splice(N,1);break t}}b=m.createElement(c),Wn(b,c,u),m.head.appendChild(b);break;default:throw Error(r(468,c))}b[De]=a,gn(b),c=b}a.stateNode=c}else rb(m,a.type,a.stateNode);else a.stateNode=tb(m,c,a.memoizedProps);else b!==c?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,c===null?rb(m,a.type,a.stateNode):tb(m,c,a.memoizedProps)):c===null&&a.stateNode!==null&&th(a,a.memoizedProps,u.memoizedProps)}break;case 27:Ir(i,a),Lr(a),c&512&&(Cn||u===null||Aa(u,u.return)),u!==null&&c&4&&th(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Ir(i,a),Lr(a),c&512&&(Cn||u===null||Aa(u,u.return)),a.flags&32){m=a.stateNode;try{_a(m,"")}catch(oe){Jt(a,a.return,oe)}}c&4&&a.stateNode!=null&&(m=a.memoizedProps,th(a,m,u!==null?u.memoizedProps:m)),c&1024&&(ah=!0);break;case 6:if(Ir(i,a),Lr(a),c&4){if(a.stateNode===null)throw Error(r(162));c=a.memoizedProps,u=a.stateNode;try{u.nodeValue=c}catch(oe){Jt(a,a.return,oe)}}break;case 3:if(r0=null,m=ma,ma=t0(i.containerInfo),Ir(i,a),ma=m,Lr(a),c&4&&u!==null&&u.memoizedState.isDehydrated)try{io(i.containerInfo)}catch(oe){Jt(a,a.return,oe)}ah&&(ah=!1,o4(a));break;case 4:c=ma,ma=t0(a.stateNode.containerInfo),Ir(i,a),Lr(a),ma=c;break;case 12:Ir(i,a),Lr(a);break;case 13:Ir(i,a),Lr(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(dh=ht()),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,ih(a,c)));break;case 22:m=a.memoizedState!==null;var q=u!==null&&u.memoizedState!==null,ae=ni,Ee=Cn;if(ni=ae||m,Cn=Ee||q,Ir(i,a),Cn=Ee,ni=ae,Lr(a),c&8192)e:for(i=a.stateNode,i._visibility=m?i._visibility&-2:i._visibility|1,m&&(u===null||q||ni||Cn||Ls(a)),u=null,i=a;;){if(i.tag===5||i.tag===26){if(u===null){q=u=i;try{if(b=q.stateNode,m)S=b.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{N=q.stateNode;var _e=q.memoizedProps.style,ue=_e!=null&&_e.hasOwnProperty("display")?_e.display:null;N.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(oe){Jt(q,q.return,oe)}}}else if(i.tag===6){if(u===null){q=i;try{q.stateNode.nodeValue=m?"":q.memoizedProps}catch(oe){Jt(q,q.return,oe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=a.updateQueue,c!==null&&(u=c.retryQueue,u!==null&&(c.retryQueue=null,ih(a,u))));break;case 19:Ir(i,a),Lr(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,ih(a,c)));break;case 30:break;case 21:break;default:Ir(i,a),Lr(a)}}function Lr(a){var i=a.flags;if(i&2){try{for(var u,c=a.return;c!==null;){if(t4(c)){u=c;break}c=c.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var m=u.stateNode,b=nh(a);qc(a,b,m);break;case 5:var S=u.stateNode;u.flags&32&&(_a(S,""),u.flags&=-33);var N=nh(a);qc(a,N,S);break;case 3:case 4:var q=u.stateNode.containerInfo,ae=nh(a);rh(a,ae,q);break;default:throw Error(r(161))}}catch(Ee){Jt(a,a.return,Ee)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function o4(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;o4(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function zi(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)a4(a,i.alternate,i),i=i.sibling}function Ls(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:Ui(4,i,i.return),Ls(i);break;case 1:Aa(i,i.return);var u=i.stateNode;typeof u.componentWillUnmount=="function"&&J2(i,i.return,u),Ls(i);break;case 27:Qu(i.stateNode);case 26:case 5:Aa(i,i.return),Ls(i);break;case 22:i.memoizedState===null&&Ls(i);break;case 30:Ls(i);break;default:Ls(i)}a=a.sibling}}function Fi(a,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,m=a,b=i,S=b.flags;switch(b.tag){case 0:case 11:case 15:Fi(m,b,u),Hu(4,b);break;case 1:if(Fi(m,b,u),c=b,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(ae){Jt(c,c.return,ae)}if(c=b,m=c.updateQueue,m!==null){var N=c.stateNode;try{var q=m.shared.hiddenCallbacks;if(q!==null)for(m.shared.hiddenCallbacks=null,m=0;m<q.length;m++)Ug(q[m],N)}catch(ae){Jt(c,c.return,ae)}}u&&S&64&&Z2(b),qu(b,b.return);break;case 27:n4(b);case 26:case 5:Fi(m,b,u),u&&c===null&&S&4&&e4(b),qu(b,b.return);break;case 12:Fi(m,b,u);break;case 13:Fi(m,b,u),u&&S&4&&l4(m,b);break;case 22:b.memoizedState===null&&Fi(m,b,u),qu(b,b.return);break;case 30:break;default:Fi(m,b,u)}i=i.sibling}}function sh(a,i){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&Cu(u))}function lh(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&Cu(a))}function wa(a,i,u,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)c4(a,i,u,c),i=i.sibling}function c4(a,i,u,c){var m=i.flags;switch(i.tag){case 0:case 11:case 15:wa(a,i,u,c),m&2048&&Hu(9,i);break;case 1:wa(a,i,u,c);break;case 3:wa(a,i,u,c),m&2048&&(a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&Cu(a)));break;case 12:if(m&2048){wa(a,i,u,c),a=i.stateNode;try{var b=i.memoizedProps,S=b.id,N=b.onPostCommit;typeof N=="function"&&N(S,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(q){Jt(i,i.return,q)}}else wa(a,i,u,c);break;case 13:wa(a,i,u,c);break;case 23:break;case 22:b=i.stateNode,S=i.alternate,i.memoizedState!==null?b._visibility&2?wa(a,i,u,c):ju(a,i):b._visibility&2?wa(a,i,u,c):(b._visibility|=2,yl(a,i,u,c,(i.subtreeFlags&10256)!==0)),m&2048&&sh(S,i);break;case 24:wa(a,i,u,c),m&2048&&lh(i.alternate,i);break;default:wa(a,i,u,c)}}function yl(a,i,u,c,m){for(m=m&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var b=a,S=i,N=u,q=c,ae=S.flags;switch(S.tag){case 0:case 11:case 15:yl(b,S,N,q,m),Hu(8,S);break;case 23:break;case 22:var Ee=S.stateNode;S.memoizedState!==null?Ee._visibility&2?yl(b,S,N,q,m):ju(b,S):(Ee._visibility|=2,yl(b,S,N,q,m)),m&&ae&2048&&sh(S.alternate,S);break;case 24:yl(b,S,N,q,m),m&&ae&2048&&lh(S.alternate,S);break;default:yl(b,S,N,q,m)}i=i.sibling}}function ju(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=a,c=i,m=c.flags;switch(c.tag){case 22:ju(u,c),m&2048&&sh(c.alternate,c);break;case 24:ju(u,c),m&2048&&lh(c.alternate,c);break;default:ju(u,c)}i=i.sibling}}var Yu=8192;function vl(a){if(a.subtreeFlags&Yu)for(a=a.child;a!==null;)d4(a),a=a.sibling}function d4(a){switch(a.tag){case 26:vl(a),a.flags&Yu&&a.memoizedState!==null&&ST(ma,a.memoizedState,a.memoizedProps);break;case 5:vl(a);break;case 3:case 4:var i=ma;ma=t0(a.stateNode.containerInfo),vl(a),ma=i;break;case 22:a.memoizedState===null&&(i=a.alternate,i!==null&&i.memoizedState!==null?(i=Yu,Yu=16777216,vl(a),Yu=i):vl(a));break;default:vl(a)}}function f4(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function Gu(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var c=i[u];qn=c,m4(c,a)}f4(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)h4(a),a=a.sibling}function h4(a){switch(a.tag){case 0:case 11:case 15:Gu(a),a.flags&2048&&Ui(9,a,a.return);break;case 3:Gu(a);break;case 12:Gu(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,jc(a)):Gu(a);break;default:Gu(a)}}function jc(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var c=i[u];qn=c,m4(c,a)}f4(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:Ui(8,i,i.return),jc(i);break;case 22:u=i.stateNode,u._visibility&2&&(u._visibility&=-3,jc(i));break;default:jc(i)}a=a.sibling}}function m4(a,i){for(;qn!==null;){var u=qn;switch(u.tag){case 0:case 11:case 15:Ui(8,u,i);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var c=u.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Cu(u.memoizedState.cache)}if(c=u.child,c!==null)c.return=u,qn=c;else e:for(u=a;qn!==null;){c=qn;var m=c.sibling,b=c.return;if(i4(c),c===u){qn=null;break e}if(m!==null){m.return=b,qn=m;break e}qn=b}}}var z7={getCacheForType:function(a){var i=Jn(Un),u=i.data.get(a);return u===void 0&&(u=a(),i.data.set(a,u)),u}},F7=typeof WeakMap=="function"?WeakMap:Map,Yt=0,nn=null,kt=null,Dt=0,Gt=0,Br=null,Hi=!1,Tl=!1,uh=!1,ai=0,Sn=0,qi=0,Bs=0,oh=0,Jr=0,_l=0,Vu=null,Sr=null,ch=!1,dh=0,Yc=1/0,Gc=null,ji=null,$n=0,Yi=null,Sl=null,xl=0,fh=0,hh=null,p4=null,Ku=0,mh=null;function Pr(){if((Yt&2)!==0&&Dt!==0)return Dt&-Dt;if(X.T!==null){var a=dl;return a!==0?a:Th()}return on()}function g4(){Jr===0&&(Jr=(Dt&536870912)===0||zt?lu():536870912);var a=Zr.current;return a!==null&&(a.flags|=32),Jr}function Ur(a,i,u){(a===nn&&(Gt===2||Gt===9)||a.cancelPendingCommit!==null)&&(Al(a,0),Gi(a,Dt,Jr,!1)),xi(a,u),((Yt&2)===0||a!==nn)&&(a===nn&&((Yt&2)===0&&(Bs|=u),Sn===4&&Gi(a,Dt,Jr,!1)),Ca(a))}function b4(a,i,u){if((Yt&6)!==0)throw Error(r(327));var c=!u&&(i&124)===0&&(i&a.expiredLanes)===0||Er(a,i),m=c?j7(a,i):bh(a,i,!0),b=c;do{if(m===0){Tl&&!c&&Gi(a,i,0,!1);break}else{if(u=a.current.alternate,b&&!H7(u)){m=bh(a,i,!1),b=!1;continue}if(m===2){if(b=i,a.errorRecoveryDisabledLanes&b)var S=0;else S=a.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){i=S;e:{var N=a;m=Vu;var q=N.current.memoizedState.isDehydrated;if(q&&(Al(N,S).flags|=256),S=bh(N,S,!1),S!==2){if(uh&&!q){N.errorRecoveryDisabledLanes|=b,Bs|=b,m=4;break e}b=Sr,Sr=m,b!==null&&(Sr===null?Sr=b:Sr.push.apply(Sr,b))}m=S}if(b=!1,m!==2)continue}}if(m===1){Al(a,0),Gi(a,i,0,!0);break}e:{switch(c=a,b=m,b){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Gi(c,i,Jr,!Hi);break e;case 2:Sr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(m=dh+300-ht(),10<m)){if(Gi(c,i,Jr,!Hi),On(c,0,!0)!==0)break e;c.timeoutHandle=V4(E4.bind(null,c,u,Sr,Gc,ch,i,Jr,Bs,_l,Hi,b,2,-0,0),m);break e}E4(c,u,Sr,Gc,ch,i,Jr,Bs,_l,Hi,b,0,-0,0)}}break}while(!0);Ca(a)}function E4(a,i,u,c,m,b,S,N,q,ae,Ee,_e,ue,oe){if(a.timeoutHandle=-1,_e=i.subtreeFlags,(_e&8192||(_e&16785408)===16785408)&&(eo={stylesheets:null,count:0,unsuspend:_T},d4(i),_e=xT(),_e!==null)){a.cancelPendingCommit=_e(A4.bind(null,a,i,b,u,c,m,S,N,q,Ee,1,ue,oe)),Gi(a,b,S,!ae);return}A4(a,i,b,u,c,m,S,N,q)}function H7(a){for(var i=a;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var c=0;c<u.length;c++){var m=u[c],b=m.getSnapshot;m=m.value;try{if(!Mr(b(),m))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Gi(a,i,u,c){i&=~oh,i&=~Bs,a.suspendedLanes|=i,a.pingedLanes&=~i,c&&(a.warmLanes|=i),c=a.expirationTimes;for(var m=i;0<m;){var b=31-Je(m),S=1<<b;c[b]=-1,m&=~S}u!==0&&Y(a,u,i)}function Vc(){return(Yt&6)===0?($u(0),!1):!0}function ph(){if(kt!==null){if(Gt===0)var a=kt.return;else a=kt,Xa=Os=null,Mf(a),bl=null,Uu=0,a=kt;for(;a!==null;)Q2(a.alternate,a),a=a.return;kt=null}}function Al(a,i){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,iT(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),ph(),nn=a,kt=u=Ka(a.current,null),Dt=i,Gt=0,Br=null,Hi=!1,Tl=Er(a,i),uh=!1,_l=Jr=oh=Bs=qi=Sn=0,Sr=Vu=null,ch=!1,(i&8)!==0&&(i|=i&32);var c=a.entangledLanes;if(c!==0)for(a=a.entanglements,c&=i;0<c;){var m=31-Je(c),b=1<<m;i|=a[m],c&=~b}return ai=i,mc(),u}function y4(a,i){St=null,X.H=Dc,i===Nu||i===Sc?(i=Bg(),Gt=3):i===Dg?(i=Bg(),Gt=4):Gt=i===P2?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Br=i,kt===null&&(Sn=1,Uc(a,$r(i,a.current)))}function v4(){var a=X.H;return X.H=Dc,a===null?Dc:a}function T4(){var a=X.A;return X.A=z7,a}function gh(){Sn=4,Hi||(Dt&4194048)!==Dt&&Zr.current!==null||(Tl=!0),(qi&134217727)===0&&(Bs&134217727)===0||nn===null||Gi(nn,Dt,Jr,!1)}function bh(a,i,u){var c=Yt;Yt|=2;var m=v4(),b=T4();(nn!==a||Dt!==i)&&(Gc=null,Al(a,i)),i=!1;var S=Sn;e:do try{if(Gt!==0&&kt!==null){var N=kt,q=Br;switch(Gt){case 8:ph(),S=6;break e;case 3:case 2:case 9:case 6:Zr.current===null&&(i=!0);var ae=Gt;if(Gt=0,Br=null,wl(a,N,q,ae),u&&Tl){S=0;break e}break;default:ae=Gt,Gt=0,Br=null,wl(a,N,q,ae)}}q7(),S=Sn;break}catch(Ee){y4(a,Ee)}while(!0);return i&&a.shellSuspendCounter++,Xa=Os=null,Yt=c,X.H=m,X.A=b,kt===null&&(nn=null,Dt=0,mc()),S}function q7(){for(;kt!==null;)_4(kt)}function j7(a,i){var u=Yt;Yt|=2;var c=v4(),m=T4();nn!==a||Dt!==i?(Gc=null,Yc=ht()+500,Al(a,i)):Tl=Er(a,i);e:do try{if(Gt!==0&&kt!==null){i=kt;var b=Br;t:switch(Gt){case 1:Gt=0,Br=null,wl(a,i,b,1);break;case 2:case 9:if(Ig(b)){Gt=0,Br=null,S4(i);break}i=function(){Gt!==2&&Gt!==9||nn!==a||(Gt=7),Ca(a)},b.then(i,i);break e;case 3:Gt=7;break e;case 4:Gt=5;break e;case 7:Ig(b)?(Gt=0,Br=null,S4(i)):(Gt=0,Br=null,wl(a,i,b,7));break;case 5:var S=null;switch(kt.tag){case 26:S=kt.memoizedState;case 5:case 27:var N=kt;if(!S||ab(S)){Gt=0,Br=null;var q=N.sibling;if(q!==null)kt=q;else{var ae=N.return;ae!==null?(kt=ae,Kc(ae)):kt=null}break t}}Gt=0,Br=null,wl(a,i,b,5);break;case 6:Gt=0,Br=null,wl(a,i,b,6);break;case 8:ph(),Sn=6;break e;default:throw Error(r(462))}}Y7();break}catch(Ee){y4(a,Ee)}while(!0);return Xa=Os=null,X.H=c,X.A=m,Yt=u,kt!==null?0:(nn=null,Dt=0,mc(),Sn)}function Y7(){for(;kt!==null&&!Rt();)_4(kt)}function _4(a){var i=W2(a.alternate,a,ai);a.memoizedProps=a.pendingProps,i===null?Kc(a):kt=i}function S4(a){var i=a,u=i.alternate;switch(i.tag){case 15:case 0:i=j2(u,i,i.pendingProps,i.type,void 0,Dt);break;case 11:i=j2(u,i,i.pendingProps,i.type.render,i.ref,Dt);break;case 5:Mf(i);default:Q2(u,i),i=kt=xg(i,ai),i=W2(u,i,ai)}a.memoizedProps=a.pendingProps,i===null?Kc(a):kt=i}function wl(a,i,u,c){Xa=Os=null,Mf(i),bl=null,Uu=0;var m=i.return;try{if(D7(a,m,i,u,Dt)){Sn=1,Uc(a,$r(u,a.current)),kt=null;return}}catch(b){if(m!==null)throw kt=m,b;Sn=1,Uc(a,$r(u,a.current)),kt=null;return}i.flags&32768?(zt||c===1?a=!0:Tl||(Dt&536870912)!==0?a=!1:(Hi=a=!0,(c===2||c===9||c===3||c===6)&&(c=Zr.current,c!==null&&c.tag===13&&(c.flags|=16384))),x4(i,a)):Kc(i)}function Kc(a){var i=a;do{if((i.flags&32768)!==0){x4(i,Hi);return}a=i.return;var u=L7(i.alternate,i,ai);if(u!==null){kt=u;return}if(i=i.sibling,i!==null){kt=i;return}kt=i=a}while(i!==null);Sn===0&&(Sn=5)}function x4(a,i){do{var u=B7(a.alternate,a);if(u!==null){u.flags&=32767,kt=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(a=a.sibling,a!==null)){kt=a;return}kt=a=u}while(a!==null);Sn=6,kt=null}function A4(a,i,u,c,m,b,S,N,q){a.cancelPendingCommit=null;do $c();while($n!==0);if((Yt&6)!==0)throw Error(r(327));if(i!==null){if(i===a.current)throw Error(r(177));if(b=i.lanes|i.childLanes,b|=lf,Ai(a,u,b,S,N,q),a===nn&&(kt=nn=null,Dt=0),Sl=i,Yi=a,xl=u,fh=b,hh=m,p4=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,$7(Ze,function(){return O4(),null})):(a.callbackNode=null,a.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=X.T,X.T=null,m=he.p,he.p=2,S=Yt,Yt|=4;try{P7(a,i,u)}finally{Yt=S,he.p=m,X.T=c}}$n=1,w4(),C4(),k4()}}function w4(){if($n===1){$n=0;var a=Yi,i=Sl,u=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||u){u=X.T,X.T=null;var c=he.p;he.p=2;var m=Yt;Yt|=4;try{u4(i,a);var b=Nh,S=mg(a.containerInfo),N=b.focusedElem,q=b.selectionRange;if(S!==N&&N&&N.ownerDocument&&hg(N.ownerDocument.documentElement,N)){if(q!==null&&tf(N)){var ae=q.start,Ee=q.end;if(Ee===void 0&&(Ee=ae),"selectionStart"in N)N.selectionStart=ae,N.selectionEnd=Math.min(Ee,N.value.length);else{var _e=N.ownerDocument||document,ue=_e&&_e.defaultView||window;if(ue.getSelection){var oe=ue.getSelection(),dt=N.textContent.length,st=Math.min(q.start,dt),Wt=q.end===void 0?st:Math.min(q.end,dt);!oe.extend&&st>Wt&&(S=Wt,Wt=st,st=S);var Z=fg(N,st),K=fg(N,Wt);if(Z&&K&&(oe.rangeCount!==1||oe.anchorNode!==Z.node||oe.anchorOffset!==Z.offset||oe.focusNode!==K.node||oe.focusOffset!==K.offset)){var ee=_e.createRange();ee.setStart(Z.node,Z.offset),oe.removeAllRanges(),st>Wt?(oe.addRange(ee),oe.extend(K.node,K.offset)):(ee.setEnd(K.node,K.offset),oe.addRange(ee))}}}}for(_e=[],oe=N;oe=oe.parentNode;)oe.nodeType===1&&_e.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<_e.length;N++){var Te=_e[N];Te.element.scrollLeft=Te.left,Te.element.scrollTop=Te.top}}s0=!!kh,Nh=kh=null}finally{Yt=m,he.p=c,X.T=u}}a.current=i,$n=2}}function C4(){if($n===2){$n=0;var a=Yi,i=Sl,u=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||u){u=X.T,X.T=null;var c=he.p;he.p=2;var m=Yt;Yt|=4;try{a4(a,i.alternate,i)}finally{Yt=m,he.p=c,X.T=u}}$n=3}}function k4(){if($n===4||$n===3){$n=0,qe();var a=Yi,i=Sl,u=xl,c=p4;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?$n=5:($n=0,Sl=Yi=null,N4(a,a.pendingLanes));var m=a.pendingLanes;if(m===0&&(ji=null),ct(u),i=i.stateNode,xe&&typeof xe.onCommitFiberRoot=="function")try{xe.onCommitFiberRoot(re,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=X.T,m=he.p,he.p=2,X.T=null;try{for(var b=a.onRecoverableError,S=0;S<c.length;S++){var N=c[S];b(N.value,{componentStack:N.stack})}}finally{X.T=i,he.p=m}}(xl&3)!==0&&$c(),Ca(a),m=a.pendingLanes,(u&4194090)!==0&&(m&42)!==0?a===mh?Ku++:(Ku=0,mh=a):Ku=0,$u(0)}}function N4(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Cu(i)))}function $c(a){return w4(),C4(),k4(),O4()}function O4(){if($n!==5)return!1;var a=Yi,i=fh;fh=0;var u=ct(xl),c=X.T,m=he.p;try{he.p=32>u?32:u,X.T=null,u=hh,hh=null;var b=Yi,S=xl;if($n=0,Sl=Yi=null,xl=0,(Yt&6)!==0)throw Error(r(331));var N=Yt;if(Yt|=4,h4(b.current),c4(b,b.current,S,u),Yt=N,$u(0,!1),xe&&typeof xe.onPostCommitFiberRoot=="function")try{xe.onPostCommitFiberRoot(re,b)}catch{}return!0}finally{he.p=m,X.T=c,N4(a,i)}}function R4(a,i,u){i=$r(u,i),i=Vf(a.stateNode,i,2),a=Ii(a,i,2),a!==null&&(xi(a,2),Ca(a))}function Jt(a,i,u){if(a.tag===3)R4(a,a,u);else for(;i!==null;){if(i.tag===3){R4(i,a,u);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ji===null||!ji.has(c))){a=$r(u,a),u=L2(2),c=Ii(i,u,2),c!==null&&(B2(u,c,i,a),xi(c,2),Ca(c));break}}i=i.return}}function Eh(a,i,u){var c=a.pingCache;if(c===null){c=a.pingCache=new F7;var m=new Set;c.set(i,m)}else m=c.get(i),m===void 0&&(m=new Set,c.set(i,m));m.has(u)||(uh=!0,m.add(u),a=G7.bind(null,a,i,u),i.then(a,a))}function G7(a,i,u){var c=a.pingCache;c!==null&&c.delete(i),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,nn===a&&(Dt&u)===u&&(Sn===4||Sn===3&&(Dt&62914560)===Dt&&300>ht()-dh?(Yt&2)===0&&Al(a,0):oh|=u,_l===Dt&&(_l=0)),Ca(a)}function M4(a,i){i===0&&(i=uu()),a=ll(a,i),a!==null&&(xi(a,i),Ca(a))}function V7(a){var i=a.memoizedState,u=0;i!==null&&(u=i.retryLane),M4(a,u)}function K7(a,i){var u=0;switch(a.tag){case 13:var c=a.stateNode,m=a.memoizedState;m!==null&&(u=m.retryLane);break;case 19:c=a.stateNode;break;case 22:c=a.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(i),M4(a,u)}function $7(a,i){return Qe(a,i)}var Wc=null,Cl=null,yh=!1,Xc=!1,vh=!1,Ps=0;function Ca(a){a!==Cl&&a.next===null&&(Cl===null?Wc=Cl=a:Cl=Cl.next=a),Xc=!0,yh||(yh=!0,X7())}function $u(a,i){if(!vh&&Xc){vh=!0;do for(var u=!1,c=Wc;c!==null;){if(a!==0){var m=c.pendingLanes;if(m===0)var b=0;else{var S=c.suspendedLanes,N=c.pingedLanes;b=(1<<31-Je(42|a)+1)-1,b&=m&~(S&~N),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,B4(c,b))}else b=Dt,b=On(c,c===nn?b:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(b&3)===0||Er(c,b)||(u=!0,B4(c,b));c=c.next}while(u);vh=!1}}function W7(){D4()}function D4(){Xc=yh=!1;var a=0;Ps!==0&&(aT()&&(a=Ps),Ps=0);for(var i=ht(),u=null,c=Wc;c!==null;){var m=c.next,b=I4(c,i);b===0?(c.next=null,u===null?Wc=m:u.next=m,m===null&&(Cl=u)):(u=c,(a!==0||(b&3)!==0)&&(Xc=!0)),c=m}$u(a)}function I4(a,i){for(var u=a.suspendedLanes,c=a.pingedLanes,m=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var S=31-Je(b),N=1<<S,q=m[S];q===-1?((N&u)===0||(N&c)!==0)&&(m[S]=lr(N,i)):q<=i&&(a.expiredLanes|=N),b&=~N}if(i=nn,u=Dt,u=On(a,a===i?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c=a.callbackNode,u===0||a===i&&(Gt===2||Gt===9)||a.cancelPendingCommit!==null)return c!==null&&c!==null&&it(c),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||Er(a,u)){if(i=u&-u,i===a.callbackPriority)return i;switch(c!==null&&it(c),ct(u)){case 2:case 8:u=lt;break;case 32:u=Ze;break;case 268435456:u=tt;break;default:u=Ze}return c=L4.bind(null,a),u=Qe(u,c),a.callbackPriority=i,a.callbackNode=u,i}return c!==null&&c!==null&&it(c),a.callbackPriority=2,a.callbackNode=null,2}function L4(a,i){if($n!==0&&$n!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if($c()&&a.callbackNode!==u)return null;var c=Dt;return c=On(a,a===nn?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c===0?null:(b4(a,c,i),I4(a,ht()),a.callbackNode!=null&&a.callbackNode===u?L4.bind(null,a):null)}function B4(a,i){if($c())return null;b4(a,i,!0)}function X7(){sT(function(){(Yt&6)!==0?Qe(xt,W7):D4()})}function Th(){return Ps===0&&(Ps=lu()),Ps}function P4(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Ni(""+a)}function U4(a,i){var u=i.ownerDocument.createElement("input");return u.name=i.name,u.value=i.value,a.id&&u.setAttribute("form",a.id),i.parentNode.insertBefore(u,i),a=new FormData(a),u.parentNode.removeChild(u),a}function Q7(a,i,u,c,m){if(i==="submit"&&u&&u.stateNode===m){var b=P4((m[Ge]||null).action),S=c.submitter;S&&(i=(i=S[Ge]||null)?P4(i.formAction):S.getAttribute("formAction"),i!==null&&(b=i,S=null));var N=new dc("action","action",null,c,m);a.push({event:N,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ps!==0){var q=S?U4(m,S):new FormData(m);Hf(u,{pending:!0,data:q,method:m.method,action:b},null,q)}}else typeof b=="function"&&(N.preventDefault(),q=S?U4(m,S):new FormData(m),Hf(u,{pending:!0,data:q,method:m.method,action:b},b,q))},currentTarget:m}]})}}for(var _h=0;_h<sf.length;_h++){var Sh=sf[_h],Z7=Sh.toLowerCase(),J7=Sh[0].toUpperCase()+Sh.slice(1);ha(Z7,"on"+J7)}ha(bg,"onAnimationEnd"),ha(Eg,"onAnimationIteration"),ha(yg,"onAnimationStart"),ha("dblclick","onDoubleClick"),ha("focusin","onFocus"),ha("focusout","onBlur"),ha(g7,"onTransitionRun"),ha(b7,"onTransitionStart"),ha(E7,"onTransitionCancel"),ha(vg,"onTransitionEnd"),ur("onMouseEnter",["mouseout","mouseover"]),ur("onMouseLeave",["mouseout","mouseover"]),ur("onPointerEnter",["pointerout","pointerover"]),ur("onPointerLeave",["pointerout","pointerover"]),ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wu="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(" "),eT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wu));function z4(a,i){i=(i&4)!==0;for(var u=0;u<a.length;u++){var c=a[u],m=c.event;c=c.listeners;e:{var b=void 0;if(i)for(var S=c.length-1;0<=S;S--){var N=c[S],q=N.instance,ae=N.currentTarget;if(N=N.listener,q!==b&&m.isPropagationStopped())break e;b=N,m.currentTarget=ae;try{b(m)}catch(Ee){Pc(Ee)}m.currentTarget=null,b=q}else for(S=0;S<c.length;S++){if(N=c[S],q=N.instance,ae=N.currentTarget,N=N.listener,q!==b&&m.isPropagationStopped())break e;b=N,m.currentTarget=ae;try{b(m)}catch(Ee){Pc(Ee)}m.currentTarget=null,b=q}}}}function Nt(a,i){var u=i[cn];u===void 0&&(u=i[cn]=new Set);var c=a+"__bubble";u.has(c)||(F4(i,a,2,!1),u.add(c))}function xh(a,i,u){var c=0;i&&(c|=4),F4(u,a,c,i)}var Qc="_reactListening"+Math.random().toString(36).slice(2);function Ah(a){if(!a[Qc]){a[Qc]=!0,nc.forEach(function(u){u!=="selectionchange"&&(eT.has(u)||xh(u,!1,a),xh(u,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Qc]||(i[Qc]=!0,xh("selectionchange",!1,i))}}function F4(a,i,u,c){switch(cb(i)){case 2:var m=CT;break;case 8:m=kT;break;default:m=zh}u=m.bind(null,i,u,a),m=void 0,!Vd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),c?m!==void 0?a.addEventListener(i,u,{capture:!0,passive:m}):a.addEventListener(i,u,!0):m!==void 0?a.addEventListener(i,u,{passive:m}):a.addEventListener(i,u,!1)}function wh(a,i,u,c,m){var b=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var N=c.stateNode.containerInfo;if(N===m)break;if(S===4)for(S=c.return;S!==null;){var q=S.tag;if((q===3||q===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;N!==null;){if(S=wi(N),S===null)return;if(q=S.tag,q===5||q===6||q===26||q===27){c=b=S;continue e}N=N.parentNode}}c=c.return}Kr(function(){var ae=b,Ee=Pe(u),_e=[];e:{var ue=Tg.get(a);if(ue!==void 0){var oe=dc,dt=a;switch(a){case"keypress":if(oc(u)===0)break e;case"keydown":case"keyup":oe=$v;break;case"focusin":dt="focus",oe=Xd;break;case"focusout":dt="blur",oe=Xd;break;case"beforeblur":case"afterblur":oe=Xd;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=Xp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=Bv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=Qv;break;case bg:case Eg:case yg:oe=zv;break;case vg:oe=Jv;break;case"scroll":case"scrollend":oe=Iv;break;case"wheel":oe=t7;break;case"copy":case"cut":case"paste":oe=Hv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=Zp;break;case"toggle":case"beforetoggle":oe=r7}var st=(i&4)!==0,Wt=!st&&(a==="scroll"||a==="scrollend"),Z=st?ue!==null?ue+"Capture":null:ue;st=[];for(var K=ae,ee;K!==null;){var Te=K;if(ee=Te.stateNode,Te=Te.tag,Te!==5&&Te!==26&&Te!==27||ee===null||Z===null||(Te=Ts(K,Z),Te!=null&&st.push(Xu(K,Te,ee))),Wt)break;K=K.return}0<st.length&&(ue=new oe(ue,dt,null,u,Ee),_e.push({event:ue,listeners:st}))}}if((i&7)===0){e:{if(ue=a==="mouseover"||a==="pointerover",oe=a==="mouseout"||a==="pointerout",ue&&u!==vs&&(dt=u.relatedTarget||u.fromElement)&&(wi(dt)||dt[ln]))break e;if((oe||ue)&&(ue=Ee.window===Ee?Ee:(ue=Ee.ownerDocument)?ue.defaultView||ue.parentWindow:window,oe?(dt=u.relatedTarget||u.toElement,oe=ae,dt=dt?wi(dt):null,dt!==null&&(Wt=l(dt),st=dt.tag,dt!==Wt||st!==5&&st!==27&&st!==6)&&(dt=null)):(oe=null,dt=ae),oe!==dt)){if(st=Xp,Te="onMouseLeave",Z="onMouseEnter",K="mouse",(a==="pointerout"||a==="pointerover")&&(st=Zp,Te="onPointerLeave",Z="onPointerEnter",K="pointer"),Wt=oe==null?ue:bs(oe),ee=dt==null?ue:bs(dt),ue=new st(Te,K+"leave",oe,u,Ee),ue.target=Wt,ue.relatedTarget=ee,Te=null,wi(Ee)===ae&&(st=new st(Z,K+"enter",dt,u,Ee),st.target=ee,st.relatedTarget=Wt,Te=st),Wt=Te,oe&&dt)t:{for(st=oe,Z=dt,K=0,ee=st;ee;ee=kl(ee))K++;for(ee=0,Te=Z;Te;Te=kl(Te))ee++;for(;0<K-ee;)st=kl(st),K--;for(;0<ee-K;)Z=kl(Z),ee--;for(;K--;){if(st===Z||Z!==null&&st===Z.alternate)break t;st=kl(st),Z=kl(Z)}st=null}else st=null;oe!==null&&H4(_e,ue,oe,st,!1),dt!==null&&Wt!==null&&H4(_e,Wt,dt,st,!0)}}e:{if(ue=ae?bs(ae):window,oe=ue.nodeName&&ue.nodeName.toLowerCase(),oe==="select"||oe==="input"&&ue.type==="file")var Ye=sg;else if(ag(ue))if(lg)Ye=h7;else{Ye=d7;var At=c7}else oe=ue.nodeName,!oe||oe.toLowerCase()!=="input"||ue.type!=="checkbox"&&ue.type!=="radio"?ae&&qt(ae.elementType)&&(Ye=sg):Ye=f7;if(Ye&&(Ye=Ye(a,ae))){ig(_e,Ye,u,Ee);break e}At&&At(a,ue,ae),a==="focusout"&&ae&&ue.type==="number"&&ae.memoizedProps.value!=null&&ki(ue,"number",ue.value)}switch(At=ae?bs(ae):window,a){case"focusin":(ag(At)||At.contentEditable==="true")&&(al=At,nf=ae,_u=null);break;case"focusout":_u=nf=al=null;break;case"mousedown":rf=!0;break;case"contextmenu":case"mouseup":case"dragend":rf=!1,pg(_e,u,Ee);break;case"selectionchange":if(p7)break;case"keydown":case"keyup":pg(_e,u,Ee)}var Xe;if(Zd)e:{switch(a){case"compositionstart":var ut="onCompositionStart";break e;case"compositionend":ut="onCompositionEnd";break e;case"compositionupdate":ut="onCompositionUpdate";break e}ut=void 0}else rl?ng(a,u)&&(ut="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(ut="onCompositionStart");ut&&(Jp&&u.locale!=="ko"&&(rl||ut!=="onCompositionStart"?ut==="onCompositionEnd"&&rl&&(Xe=$p()):(Oi=Ee,Kd="value"in Oi?Oi.value:Oi.textContent,rl=!0)),At=Zc(ae,ut),0<At.length&&(ut=new Qp(ut,a,null,u,Ee),_e.push({event:ut,listeners:At}),Xe?ut.data=Xe:(Xe=rg(u),Xe!==null&&(ut.data=Xe)))),(Xe=i7?s7(a,u):l7(a,u))&&(ut=Zc(ae,"onBeforeInput"),0<ut.length&&(At=new Qp("onBeforeInput","beforeinput",null,u,Ee),_e.push({event:At,listeners:ut}),At.data=Xe)),Q7(_e,a,ae,u,Ee)}z4(_e,i)})}function Xu(a,i,u){return{instance:a,listener:i,currentTarget:u}}function Zc(a,i){for(var u=i+"Capture",c=[];a!==null;){var m=a,b=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||b===null||(m=Ts(a,u),m!=null&&c.unshift(Xu(a,m,b)),m=Ts(a,i),m!=null&&c.push(Xu(a,m,b))),a.tag===3)return c;a=a.return}return[]}function kl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function H4(a,i,u,c,m){for(var b=i._reactName,S=[];u!==null&&u!==c;){var N=u,q=N.alternate,ae=N.stateNode;if(N=N.tag,q!==null&&q===c)break;N!==5&&N!==26&&N!==27||ae===null||(q=ae,m?(ae=Ts(u,b),ae!=null&&S.unshift(Xu(u,ae,q))):m||(ae=Ts(u,b),ae!=null&&S.push(Xu(u,ae,q)))),u=u.return}S.length!==0&&a.push({event:i,listeners:S})}var tT=/\r\n?/g,nT=/\u0000|\uFFFD/g;function q4(a){return(typeof a=="string"?a:""+a).replace(tT,`
49
+ `).replace(nT,"")}function j4(a,i){return i=q4(i),q4(a)===i}function Jc(){}function $t(a,i,u,c,m,b){switch(u){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||_a(a,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&_a(a,""+c);break;case"className":Ya(a,"class",c);break;case"tabIndex":Ya(a,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ya(a,u,c);break;case"style":Rn(a,c,b);break;case"data":if(i!=="object"){Ya(a,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||u!=="href")){a.removeAttribute(u);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(u);break}c=Ni(""+c),a.setAttribute(u,c);break;case"action":case"formAction":if(typeof c=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(u==="formAction"?(i!=="input"&&$t(a,i,"name",m.name,m,null),$t(a,i,"formEncType",m.formEncType,m,null),$t(a,i,"formMethod",m.formMethod,m,null),$t(a,i,"formTarget",m.formTarget,m,null)):($t(a,i,"encType",m.encType,m,null),$t(a,i,"method",m.method,m,null),$t(a,i,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(u);break}c=Ni(""+c),a.setAttribute(u,c);break;case"onClick":c!=null&&(a.onclick=Jc);break;case"onScroll":c!=null&&Nt("scroll",a);break;case"onScrollEnd":c!=null&&Nt("scrollend",a);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(u=c.__html,u!=null){if(m.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":a.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){a.removeAttribute("xlink:href");break}u=Ni(""+c),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,""+c):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":c===!0?a.setAttribute(u,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,c):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?a.setAttribute(u,c):a.removeAttribute(u);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?a.removeAttribute(u):a.setAttribute(u,c);break;case"popover":Nt("beforetoggle",a),Nt("toggle",a),tl(a,"popover",c);break;case"xlinkActuate":ca(a,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":ca(a,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":ca(a,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":ca(a,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":ca(a,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":ca(a,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":ca(a,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":ca(a,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":ca(a,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":tl(a,"is",c);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=nl.get(u)||u,tl(a,u,c))}}function Ch(a,i,u,c,m,b){switch(u){case"style":Rn(a,c,b);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(u=c.__html,u!=null){if(m.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof c=="string"?_a(a,c):(typeof c=="number"||typeof c=="bigint")&&_a(a,""+c);break;case"onScroll":c!=null&&Nt("scroll",a);break;case"onScrollEnd":c!=null&&Nt("scrollend",a);break;case"onClick":c!=null&&(a.onclick=Jc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rc.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(m=u.endsWith("Capture"),i=u.slice(2,m?u.length-7:void 0),b=a[Ge]||null,b=b!=null?b[u]:null,typeof b=="function"&&a.removeEventListener(i,b,m),typeof c=="function")){typeof b!="function"&&b!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(i,c,m);break e}u in a?a[u]=c:c===!0?a.setAttribute(u,""):tl(a,u,c)}}}function Wn(a,i,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nt("error",a),Nt("load",a);var c=!1,m=!1,b;for(b in u)if(u.hasOwnProperty(b)){var S=u[b];if(S!=null)switch(b){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:$t(a,i,b,S,u,null)}}m&&$t(a,i,"srcSet",u.srcSet,u,null),c&&$t(a,i,"src",u.src,u,null);return;case"input":Nt("invalid",a);var N=b=S=m=null,q=null,ae=null;for(c in u)if(u.hasOwnProperty(c)){var Ee=u[c];if(Ee!=null)switch(c){case"name":m=Ee;break;case"type":S=Ee;break;case"checked":q=Ee;break;case"defaultChecked":ae=Ee;break;case"value":b=Ee;break;case"defaultValue":N=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,i));break;default:$t(a,i,c,Ee,u,null)}}sc(a,b,N,q,ae,S,m,!1),Es(a);return;case"select":Nt("invalid",a),c=S=b=null;for(m in u)if(u.hasOwnProperty(m)&&(N=u[m],N!=null))switch(m){case"value":b=N;break;case"defaultValue":S=N;break;case"multiple":c=N;default:$t(a,i,m,N,u,null)}i=b,u=S,a.multiple=!!c,i!=null?Ga(a,!!c,i,!1):u!=null&&Ga(a,!!c,u,!0);return;case"textarea":Nt("invalid",a),b=m=c=null;for(S in u)if(u.hasOwnProperty(S)&&(N=u[S],N!=null))switch(S){case"value":c=N;break;case"defaultValue":m=N;break;case"children":b=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(91));break;default:$t(a,i,S,N,u,null)}lc(a,c,m,b),Es(a);return;case"option":for(q in u)if(u.hasOwnProperty(q)&&(c=u[q],c!=null))switch(q){case"selected":a.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:$t(a,i,q,c,u,null)}return;case"dialog":Nt("beforetoggle",a),Nt("toggle",a),Nt("cancel",a),Nt("close",a);break;case"iframe":case"object":Nt("load",a);break;case"video":case"audio":for(c=0;c<Wu.length;c++)Nt(Wu[c],a);break;case"image":Nt("error",a),Nt("load",a);break;case"details":Nt("toggle",a);break;case"embed":case"source":case"link":Nt("error",a),Nt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in u)if(u.hasOwnProperty(ae)&&(c=u[ae],c!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:$t(a,i,ae,c,u,null)}return;default:if(qt(i)){for(Ee in u)u.hasOwnProperty(Ee)&&(c=u[Ee],c!==void 0&&Ch(a,i,Ee,c,u,void 0));return}}for(N in u)u.hasOwnProperty(N)&&(c=u[N],c!=null&&$t(a,i,N,c,u,null))}function rT(a,i,u,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,b=null,S=null,N=null,q=null,ae=null,Ee=null;for(oe in u){var _e=u[oe];if(u.hasOwnProperty(oe)&&_e!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":q=_e;default:c.hasOwnProperty(oe)||$t(a,i,oe,null,c,_e)}}for(var ue in c){var oe=c[ue];if(_e=u[ue],c.hasOwnProperty(ue)&&(oe!=null||_e!=null))switch(ue){case"type":b=oe;break;case"name":m=oe;break;case"checked":ae=oe;break;case"defaultChecked":Ee=oe;break;case"value":S=oe;break;case"defaultValue":N=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,i));break;default:oe!==_e&&$t(a,i,ue,oe,c,_e)}}hu(a,S,N,q,ae,Ee,b,m);return;case"select":oe=S=N=ue=null;for(b in u)if(q=u[b],u.hasOwnProperty(b)&&q!=null)switch(b){case"value":break;case"multiple":oe=q;default:c.hasOwnProperty(b)||$t(a,i,b,null,c,q)}for(m in c)if(b=c[m],q=u[m],c.hasOwnProperty(m)&&(b!=null||q!=null))switch(m){case"value":ue=b;break;case"defaultValue":N=b;break;case"multiple":S=b;default:b!==q&&$t(a,i,m,b,c,q)}i=N,u=S,c=oe,ue!=null?Ga(a,!!u,ue,!1):!!c!=!!u&&(i!=null?Ga(a,!!u,i,!0):Ga(a,!!u,u?[]:"",!1));return;case"textarea":oe=ue=null;for(N in u)if(m=u[N],u.hasOwnProperty(N)&&m!=null&&!c.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:$t(a,i,N,null,c,m)}for(S in c)if(m=c[S],b=u[S],c.hasOwnProperty(S)&&(m!=null||b!=null))switch(S){case"value":ue=m;break;case"defaultValue":oe=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==b&&$t(a,i,S,m,c,b)}Rr(a,ue,oe);return;case"option":for(var dt in u)if(ue=u[dt],u.hasOwnProperty(dt)&&ue!=null&&!c.hasOwnProperty(dt))switch(dt){case"selected":a.selected=!1;break;default:$t(a,i,dt,null,c,ue)}for(q in c)if(ue=c[q],oe=u[q],c.hasOwnProperty(q)&&ue!==oe&&(ue!=null||oe!=null))switch(q){case"selected":a.selected=ue&&typeof ue!="function"&&typeof ue!="symbol";break;default:$t(a,i,q,ue,c,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var st in u)ue=u[st],u.hasOwnProperty(st)&&ue!=null&&!c.hasOwnProperty(st)&&$t(a,i,st,null,c,ue);for(ae in c)if(ue=c[ae],oe=u[ae],c.hasOwnProperty(ae)&&ue!==oe&&(ue!=null||oe!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(r(137,i));break;default:$t(a,i,ae,ue,c,oe)}return;default:if(qt(i)){for(var Wt in u)ue=u[Wt],u.hasOwnProperty(Wt)&&ue!==void 0&&!c.hasOwnProperty(Wt)&&Ch(a,i,Wt,void 0,c,ue);for(Ee in c)ue=c[Ee],oe=u[Ee],!c.hasOwnProperty(Ee)||ue===oe||ue===void 0&&oe===void 0||Ch(a,i,Ee,ue,c,oe);return}}for(var Z in u)ue=u[Z],u.hasOwnProperty(Z)&&ue!=null&&!c.hasOwnProperty(Z)&&$t(a,i,Z,null,c,ue);for(_e in c)ue=c[_e],oe=u[_e],!c.hasOwnProperty(_e)||ue===oe||ue==null&&oe==null||$t(a,i,_e,ue,c,oe)}var kh=null,Nh=null;function e0(a){return a.nodeType===9?a:a.ownerDocument}function Y4(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function G4(a,i){if(a===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&i==="foreignObject"?0:a}function Oh(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Rh=null;function aT(){var a=window.event;return a&&a.type==="popstate"?a===Rh?!1:(Rh=a,!0):(Rh=null,!1)}var V4=typeof setTimeout=="function"?setTimeout:void 0,iT=typeof clearTimeout=="function"?clearTimeout:void 0,K4=typeof Promise=="function"?Promise:void 0,sT=typeof queueMicrotask=="function"?queueMicrotask:typeof K4<"u"?function(a){return K4.resolve(null).then(a).catch(lT)}:V4;function lT(a){setTimeout(function(){throw a})}function Vi(a){return a==="head"}function $4(a,i){var u=i,c=0,m=0;do{var b=u.nextSibling;if(a.removeChild(u),b&&b.nodeType===8)if(u=b.data,u==="/$"){if(0<c&&8>c){u=c;var S=a.ownerDocument;if(u&1&&Qu(S.documentElement),u&2&&Qu(S.body),u&4)for(u=S.head,Qu(u),S=u.firstChild;S;){var N=S.nextSibling,q=S.nodeName;S[ps]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&S.rel.toLowerCase()==="stylesheet"||u.removeChild(S),S=N}}if(m===0){a.removeChild(b),io(i);return}m--}else u==="$"||u==="$?"||u==="$!"?m++:c=u.charCodeAt(0)-48;else c=0;u=b}while(u);io(i)}function Mh(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var u=i;switch(i=i.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Mh(u),gs(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function uT(a,i,u,c){for(;a.nodeType===1;){var m=u;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(c){if(!a[ps])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==m.rel||a.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||a.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||a.getAttribute("title")!==(m.title==null?null:m.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(m.src==null?null:m.src)||a.getAttribute("type")!==(m.type==null?null:m.type)||a.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){var b=m.name==null?null:""+m.name;if(m.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=pa(a.nextSibling),a===null)break}return null}function oT(a,i,u){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=pa(a.nextSibling),a===null))return null;return a}function Dh(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState==="complete"}function cT(a,i){var u=a.ownerDocument;if(a.data!=="$?"||u.readyState==="complete")i();else{var c=function(){i(),u.removeEventListener("DOMContentLoaded",c)};u.addEventListener("DOMContentLoaded",c),a._reactRetry=c}}function pa(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return a}var Ih=null;function W4(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"){if(i===0)return a;i--}else u==="/$"&&i++}a=a.previousSibling}return null}function X4(a,i,u){switch(i=e0(u),a){case"html":if(a=i.documentElement,!a)throw Error(r(452));return a;case"head":if(a=i.head,!a)throw Error(r(453));return a;case"body":if(a=i.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Qu(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);gs(a)}var ea=new Map,Q4=new Set;function t0(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ii=he.d;he.d={f:dT,r:fT,D:hT,C:mT,L:pT,m:gT,X:ET,S:bT,M:yT};function dT(){var a=ii.f(),i=Vc();return a||i}function fT(a){var i=Ci(a);i!==null&&i.tag===5&&i.type==="form"?b2(i):ii.r(a)}var Nl=typeof document>"u"?null:document;function Z4(a,i,u){var c=Nl;if(c&&typeof i=="string"&&i){var m=yr(i);m='link[rel="'+a+'"][href="'+m+'"]',typeof u=="string"&&(m+='[crossorigin="'+u+'"]'),Q4.has(m)||(Q4.add(m),a={rel:a,crossOrigin:u,href:i},c.querySelector(m)===null&&(i=c.createElement("link"),Wn(i,"link",a),gn(i),c.head.appendChild(i)))}}function hT(a){ii.D(a),Z4("dns-prefetch",a,null)}function mT(a,i){ii.C(a,i),Z4("preconnect",a,i)}function pT(a,i,u){ii.L(a,i,u);var c=Nl;if(c&&a&&i){var m='link[rel="preload"][as="'+yr(i)+'"]';i==="image"&&u&&u.imageSrcSet?(m+='[imagesrcset="'+yr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(m+='[imagesizes="'+yr(u.imageSizes)+'"]')):m+='[href="'+yr(a)+'"]';var b=m;switch(i){case"style":b=Ol(a);break;case"script":b=Rl(a)}ea.has(b)||(a=p({rel:"preload",href:i==="image"&&u&&u.imageSrcSet?void 0:a,as:i},u),ea.set(b,a),c.querySelector(m)!==null||i==="style"&&c.querySelector(Zu(b))||i==="script"&&c.querySelector(Ju(b))||(i=c.createElement("link"),Wn(i,"link",a),gn(i),c.head.appendChild(i)))}}function gT(a,i){ii.m(a,i);var u=Nl;if(u&&a){var c=i&&typeof i.as=="string"?i.as:"script",m='link[rel="modulepreload"][as="'+yr(c)+'"][href="'+yr(a)+'"]',b=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Rl(a)}if(!ea.has(b)&&(a=p({rel:"modulepreload",href:a},i),ea.set(b,a),u.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ju(b)))return}c=u.createElement("link"),Wn(c,"link",a),gn(c),u.head.appendChild(c)}}}function bT(a,i,u){ii.S(a,i,u);var c=Nl;if(c&&a){var m=qa(c).hoistableStyles,b=Ol(a);i=i||"default";var S=m.get(b);if(!S){var N={loading:0,preload:null};if(S=c.querySelector(Zu(b)))N.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":i},u),(u=ea.get(b))&&Lh(a,u);var q=S=c.createElement("link");gn(q),Wn(q,"link",a),q._p=new Promise(function(ae,Ee){q.onload=ae,q.onerror=Ee}),q.addEventListener("load",function(){N.loading|=1}),q.addEventListener("error",function(){N.loading|=2}),N.loading|=4,n0(S,i,c)}S={type:"stylesheet",instance:S,count:1,state:N},m.set(b,S)}}}function ET(a,i){ii.X(a,i);var u=Nl;if(u&&a){var c=qa(u).hoistableScripts,m=Rl(a),b=c.get(m);b||(b=u.querySelector(Ju(m)),b||(a=p({src:a,async:!0},i),(i=ea.get(m))&&Bh(a,i),b=u.createElement("script"),gn(b),Wn(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(m,b))}}function yT(a,i){ii.M(a,i);var u=Nl;if(u&&a){var c=qa(u).hoistableScripts,m=Rl(a),b=c.get(m);b||(b=u.querySelector(Ju(m)),b||(a=p({src:a,async:!0,type:"module"},i),(i=ea.get(m))&&Bh(a,i),b=u.createElement("script"),gn(b),Wn(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(m,b))}}function J4(a,i,u,c){var m=(m=Be.current)?t0(m):null;if(!m)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(i=Ol(u.href),u=qa(m).hoistableStyles,c=u.get(i),c||(c={type:"style",instance:null,count:0,state:null},u.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=Ol(u.href);var b=qa(m).hoistableStyles,S=b.get(a);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,S),(b=m.querySelector(Zu(a)))&&!b._p&&(S.instance=b,S.state.loading=5),ea.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ea.set(a,u),b||vT(m,a,u,S.state))),i&&c===null)throw Error(r(528,""));return S}if(i&&c!==null)throw Error(r(529,""));return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Rl(u),u=qa(m).hoistableScripts,c=u.get(i),c||(c={type:"script",instance:null,count:0,state:null},u.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Ol(a){return'href="'+yr(a)+'"'}function Zu(a){return'link[rel="stylesheet"]['+a+"]"}function eb(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function vT(a,i,u,c){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=a.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),Wn(i,"link",u),gn(i),a.head.appendChild(i))}function Rl(a){return'[src="'+yr(a)+'"]'}function Ju(a){return"script[async]"+a}function tb(a,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var c=a.querySelector('style[data-href~="'+yr(u.href)+'"]');if(c)return i.instance=c,gn(c),c;var m=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return c=(a.ownerDocument||a).createElement("style"),gn(c),Wn(c,"style",m),n0(c,u.precedence,a),i.instance=c;case"stylesheet":m=Ol(u.href);var b=a.querySelector(Zu(m));if(b)return i.state.loading|=4,i.instance=b,gn(b),b;c=eb(u),(m=ea.get(m))&&Lh(c,m),b=(a.ownerDocument||a).createElement("link"),gn(b);var S=b;return S._p=new Promise(function(N,q){S.onload=N,S.onerror=q}),Wn(b,"link",c),i.state.loading|=4,n0(b,u.precedence,a),i.instance=b;case"script":return b=Rl(u.src),(m=a.querySelector(Ju(b)))?(i.instance=m,gn(m),m):(c=u,(m=ea.get(b))&&(c=p({},u),Bh(c,m)),a=a.ownerDocument||a,m=a.createElement("script"),gn(m),Wn(m,"link",c),a.head.appendChild(m),i.instance=m);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,n0(c,u.precedence,a));return i.instance}function n0(a,i,u){for(var c=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,b=m,S=0;S<c.length;S++){var N=c[S];if(N.dataset.precedence===i)b=N;else if(b!==m)break}b?b.parentNode.insertBefore(a,b.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(a,i.firstChild))}function Lh(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function Bh(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var r0=null;function nb(a,i,u){if(r0===null){var c=new Map,m=r0=new Map;m.set(u,c)}else m=r0,c=m.get(u),c||(c=new Map,m.set(u,c));if(c.has(a))return c;for(c.set(a,null),u=u.getElementsByTagName(a),m=0;m<u.length;m++){var b=u[m];if(!(b[ps]||b[De]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var S=b.getAttribute(i)||"";S=a+S;var N=c.get(S);N?N.push(b):c.set(S,[b])}}return c}function rb(a,i,u){a=a.ownerDocument||a,a.head.insertBefore(u,i==="title"?a.querySelector("head > title"):null)}function TT(a,i,u){if(u===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return a=i.disabled,typeof i.precedence=="string"&&a==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function ab(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var eo=null;function _T(){}function ST(a,i,u){if(eo===null)throw Error(r(475));var c=eo;if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var m=Ol(u.href),b=a.querySelector(Zu(m));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(c.count++,c=a0.bind(c),a.then(c,c)),i.state.loading|=4,i.instance=b,gn(b);return}b=a.ownerDocument||a,u=eb(u),(m=ea.get(m))&&Lh(u,m),b=b.createElement("link"),gn(b);var S=b;S._p=new Promise(function(N,q){S.onload=N,S.onerror=q}),Wn(b,"link",u),i.instance=b}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(c.count++,i=a0.bind(c),a.addEventListener("load",i),a.addEventListener("error",i))}}function xT(){if(eo===null)throw Error(r(475));var a=eo;return a.stylesheets&&a.count===0&&Ph(a,a.stylesheets),0<a.count?function(i){var u=setTimeout(function(){if(a.stylesheets&&Ph(a,a.stylesheets),a.unsuspend){var c=a.unsuspend;a.unsuspend=null,c()}},6e4);return a.unsuspend=i,function(){a.unsuspend=null,clearTimeout(u)}}:null}function a0(){if(this.count--,this.count===0){if(this.stylesheets)Ph(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var i0=null;function Ph(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,i0=new Map,i.forEach(AT,a),i0=null,a0.call(a))}function AT(a,i){if(!(i.state.loading&4)){var u=i0.get(a);if(u)var c=u.get(null);else{u=new Map,i0.set(a,u);for(var m=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<m.length;b++){var S=m[b];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(u.set(S.dataset.precedence,S),c=S)}c&&u.set(null,c)}m=i.instance,S=m.getAttribute("data-precedence"),b=u.get(S)||c,b===c&&u.set(null,m),u.set(S,m),this.count++,c=a0.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),b?b.parentNode.insertBefore(m,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(m,a.firstChild)),i.state.loading|=4}}var to={$$typeof:L,Provider:null,Consumer:null,_currentValue:be,_currentValue2:be,_threadCount:0};function wT(a,i,u,c,m,b,S,N){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ou(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ou(0),this.hiddenUpdates=ou(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=b,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function ib(a,i,u,c,m,b,S,N,q,ae,Ee,_e){return a=new wT(a,i,u,S,N,q,ae,_e),i=1,b===!0&&(i|=24),b=Dr(3,null,null,i),a.current=b,b.stateNode=a,i=Ef(),i.refCount++,a.pooledCache=i,i.refCount++,b.memoizedState={element:c,isDehydrated:u,cache:i},_f(b),a}function sb(a){return a?(a=ul,a):ul}function lb(a,i,u,c,m,b){m=sb(m),c.context===null?c.context=m:c.pendingContext=m,c=Di(i),c.payload={element:u},b=b===void 0?null:b,b!==null&&(c.callback=b),u=Ii(a,c,i),u!==null&&(Ur(u,a,i),Ru(u,a,i))}function ub(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<i?u:i}}function Uh(a,i){ub(a,i),(a=a.alternate)&&ub(a,i)}function ob(a){if(a.tag===13){var i=ll(a,67108864);i!==null&&Ur(i,a,67108864),Uh(a,67108864)}}var s0=!0;function CT(a,i,u,c){var m=X.T;X.T=null;var b=he.p;try{he.p=2,zh(a,i,u,c)}finally{he.p=b,X.T=m}}function kT(a,i,u,c){var m=X.T;X.T=null;var b=he.p;try{he.p=8,zh(a,i,u,c)}finally{he.p=b,X.T=m}}function zh(a,i,u,c){if(s0){var m=Fh(c);if(m===null)wh(a,i,c,l0,u),db(a,c);else if(OT(m,a,i,u,c))c.stopPropagation();else if(db(a,c),i&4&&-1<NT.indexOf(a)){for(;m!==null;){var b=Ci(m);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var S=sr(b.pendingLanes);if(S!==0){var N=b;for(N.pendingLanes|=2,N.entangledLanes|=2;S;){var q=1<<31-Je(S);N.entanglements[1]|=q,S&=~q}Ca(b),(Yt&6)===0&&(Yc=ht()+500,$u(0))}}break;case 13:N=ll(b,2),N!==null&&Ur(N,b,2),Vc(),Uh(b,2)}if(b=Fh(c),b===null&&wh(a,i,c,l0,u),b===m)break;m=b}m!==null&&c.stopPropagation()}else wh(a,i,c,null,u)}}function Fh(a){return a=Pe(a),Hh(a)}var l0=null;function Hh(a){if(l0=null,a=wi(a),a!==null){var i=l(a);if(i===null)a=null;else{var u=i.tag;if(u===13){if(a=o(i),a!==null)return a;a=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return l0=a,null}function cb(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(jt()){case xt:return 2;case lt:return 8;case Ze:case Zt:return 32;case tt:return 268435456;default:return 32}default:return 32}}var qh=!1,Ki=null,$i=null,Wi=null,no=new Map,ro=new Map,Xi=[],NT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function db(a,i){switch(a){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":$i=null;break;case"mouseover":case"mouseout":Wi=null;break;case"pointerover":case"pointerout":no.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ro.delete(i.pointerId)}}function ao(a,i,u,c,m,b){return a===null||a.nativeEvent!==b?(a={blockedOn:i,domEventName:u,eventSystemFlags:c,nativeEvent:b,targetContainers:[m]},i!==null&&(i=Ci(i),i!==null&&ob(i)),a):(a.eventSystemFlags|=c,i=a.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),a)}function OT(a,i,u,c,m){switch(i){case"focusin":return Ki=ao(Ki,a,i,u,c,m),!0;case"dragenter":return $i=ao($i,a,i,u,c,m),!0;case"mouseover":return Wi=ao(Wi,a,i,u,c,m),!0;case"pointerover":var b=m.pointerId;return no.set(b,ao(no.get(b)||null,a,i,u,c,m)),!0;case"gotpointercapture":return b=m.pointerId,ro.set(b,ao(ro.get(b)||null,a,i,u,c,m)),!0}return!1}function fb(a){var i=wi(a.target);if(i!==null){var u=l(i);if(u!==null){if(i=u.tag,i===13){if(i=o(u),i!==null){a.blockedOn=i,pn(a.priority,function(){if(u.tag===13){var c=Pr();c=Le(c);var m=ll(u,c);m!==null&&Ur(m,u,c),Uh(u,c)}});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function u0(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var u=Fh(a.nativeEvent);if(u===null){u=a.nativeEvent;var c=new u.constructor(u.type,u);vs=c,u.target.dispatchEvent(c),vs=null}else return i=Ci(u),i!==null&&ob(i),a.blockedOn=u,!1;i.shift()}return!0}function hb(a,i,u){u0(a)&&u.delete(i)}function RT(){qh=!1,Ki!==null&&u0(Ki)&&(Ki=null),$i!==null&&u0($i)&&($i=null),Wi!==null&&u0(Wi)&&(Wi=null),no.forEach(hb),ro.forEach(hb)}function o0(a,i){a.blockedOn===i&&(a.blockedOn=null,qh||(qh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,RT)))}var c0=null;function mb(a){c0!==a&&(c0=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){c0===a&&(c0=null);for(var i=0;i<a.length;i+=3){var u=a[i],c=a[i+1],m=a[i+2];if(typeof c!="function"){if(Hh(c||u)===null)continue;break}var b=Ci(u);b!==null&&(a.splice(i,3),i-=3,Hf(b,{pending:!0,data:m,method:u.method,action:c},c,m))}}))}function io(a){function i(q){return o0(q,a)}Ki!==null&&o0(Ki,a),$i!==null&&o0($i,a),Wi!==null&&o0(Wi,a),no.forEach(i),ro.forEach(i);for(var u=0;u<Xi.length;u++){var c=Xi[u];c.blockedOn===a&&(c.blockedOn=null)}for(;0<Xi.length&&(u=Xi[0],u.blockedOn===null);)fb(u),u.blockedOn===null&&Xi.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(c=0;c<u.length;c+=3){var m=u[c],b=u[c+1],S=m[Ge]||null;if(typeof b=="function")S||mb(u);else if(S){var N=null;if(b&&b.hasAttribute("formAction")){if(m=b,S=b[Ge]||null)N=S.formAction;else if(Hh(m)!==null)continue}else N=S.action;typeof N=="function"?u[c+1]=N:(u.splice(c,3),c-=3),mb(u)}}}function jh(a){this._internalRoot=a}d0.prototype.render=jh.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(r(409));var u=i.current,c=Pr();lb(u,c,a,i,null,null)},d0.prototype.unmount=jh.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;lb(a.current,2,null,a,null,null),Vc(),i[ln]=null}};function d0(a){this._internalRoot=a}d0.prototype.unstable_scheduleHydration=function(a){if(a){var i=on();a={blockedOn:null,target:a,priority:i};for(var u=0;u<Xi.length&&i!==0&&i<Xi[u].priority;u++);Xi.splice(u,0,a),u===0&&fb(a)}};var pb=t.version;if(pb!=="19.1.0")throw Error(r(527,pb,"19.1.0"));he.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=f(i),a=a!==null?h(a):null,a=a===null?null:a.stateNode,a};var MT={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var f0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!f0.isDisabled&&f0.supportsFiber)try{re=f0.inject(MT),xe=f0}catch{}}return lo.createRoot=function(a,i){if(!s(a))throw Error(r(299));var u=!1,c="",m=R2,b=M2,S=D2,N=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(N=i.unstable_transitionCallbacks)),i=ib(a,1,!1,null,null,u,c,m,b,S,N,null),a[ln]=i.current,Ah(a),new jh(i)},lo.hydrateRoot=function(a,i,u){if(!s(a))throw Error(r(299));var c=!1,m="",b=R2,S=M2,N=D2,q=null,ae=null;return u!=null&&(u.unstable_strictMode===!0&&(c=!0),u.identifierPrefix!==void 0&&(m=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(S=u.onCaughtError),u.onRecoverableError!==void 0&&(N=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(q=u.unstable_transitionCallbacks),u.formState!==void 0&&(ae=u.formState)),i=ib(a,1,!0,i,u??null,c,m,b,S,N,q,ae),i.context=sb(null),u=i.current,c=Pr(),c=Le(c),m=Di(c),m.callback=null,Ii(u,m,c),u=c,i.current.lanes=u,xi(i,u),Ca(i),a[ln]=i.current,Ah(a),new d0(i)},lo.version="19.1.0",lo}var Ab;function jT(){if(Ab)return Vh.exports;Ab=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vh.exports=qT(),Vh.exports}var YT=jT();/**
50
+ * react-router v7.9.6
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var wb="popstate";function GT(e={}){function t(r,s){let{pathname:l,search:o,hash:d}=r.location;return Z1("",{pathname:l,search:o,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ro(s)}return KT(t,n,null,e)}function hn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ia(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function VT(){return Math.random().toString(36).substring(2,10)}function Cb(e,t){return{usr:e.state,key:e.key,idx:t}}function Z1(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Wl(t):t,state:n,key:t&&t.key||r||VT()}}function Ro({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Wl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function KT(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,o=s.history,d="POP",f=null,h=p();h==null&&(h=0,o.replaceState({...o.state,idx:h},""));function p(){return(o.state||{idx:null}).idx}function g(){d="POP";let R=p(),C=R==null?null:R-h;h=R,f&&f({action:d,location:x.location,delta:C})}function y(R,C){d="PUSH";let M=Z1(x.location,R,C);h=p()+1;let L=Cb(M,h),$=x.createHref(M);try{o.pushState(L,"",$)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;s.location.assign($)}l&&f&&f({action:d,location:x.location,delta:1})}function T(R,C){d="REPLACE";let M=Z1(x.location,R,C);h=p();let L=Cb(M,h),$=x.createHref(M);o.replaceState(L,"",$),l&&f&&f({action:d,location:x.location,delta:0})}function w(R){return $T(R)}let x={get action(){return d},get location(){return e(s,o)},listen(R){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(wb,g),f=R,()=>{s.removeEventListener(wb,g),f=null}},createHref(R){return t(s,R)},createURL:w,encodeLocation(R){let C=w(R);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:T,go(R){return o.go(R)}};return x}function $T(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),hn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ro(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function mE(e,t,n="/"){return WT(e,t,n,!1)}function WT(e,t,n,r){let s=typeof t=="string"?Wl(t):t,l=pi(s.pathname||"/",n);if(l==null)return null;let o=pE(e);XT(o);let d=null;for(let f=0;d==null&&f<o.length;++f){let h=l9(l);d=i9(o[f],h,r)}return d}function pE(e,t=[],n=[],r="",s=!1){let l=(o,d,f=s,h)=>{let p={relativePath:h===void 0?o.path||"":h,caseSensitive:o.caseSensitive===!0,childrenIndex:d,route:o};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&f)return;hn(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let g=fi([r,p.relativePath]),y=n.concat(p);o.children&&o.children.length>0&&(hn(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),pE(o.children,t,y,g,f)),!(o.path==null&&!o.index)&&t.push({path:g,score:r9(g,o.index),routesMeta:y})};return e.forEach((o,d)=>{var f;if(o.path===""||!((f=o.path)!=null&&f.includes("?")))l(o,d);else for(let h of gE(o.path))l(o,d,!0,h)}),t}function gE(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return s?[l,""]:[l];let o=gE(r.join("/")),d=[];return d.push(...o.map(f=>f===""?l:[l,f].join("/"))),s&&d.push(...o),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function XT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:a9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var QT=/^:[\w-]+$/,ZT=3,JT=2,e9=1,t9=10,n9=-2,kb=e=>e==="*";function r9(e,t){let n=e.split("/"),r=n.length;return n.some(kb)&&(r+=n9),t&&(r+=JT),n.filter(s=>!kb(s)).reduce((s,l)=>s+(QT.test(l)?ZT:l===""?e9:t9),r)}function a9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function i9(e,t,n=!1){let{routesMeta:r}=e,s={},l="/",o=[];for(let d=0;d<r.length;++d){let f=r[d],h=d===r.length-1,p=l==="/"?t:t.slice(l.length)||"/",g=Z0({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),y=f.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=Z0({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(s,g.params),o.push({params:s,pathname:fi([l,g.pathname]),pathnameBase:f9(fi([l,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(l=fi([l,g.pathnameBase]))}return o}function Z0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=s9(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let l=s[0],o=l.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:r.reduce((h,{paramName:p,isOptional:g},y)=>{if(p==="*"){let w=d[y]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const T=d[y];return g&&!T?h[p]=void 0:h[p]=(T||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:o,pattern:e}}function s9(e,t=!1,n=!0){ia(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,d,f)=>(r.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function l9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ia(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function pi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var u9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,o9=e=>u9.test(e);function c9(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Wl(e):e,l;if(n)if(o9(n))l=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),ia(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?l=Nb(n.substring(1),"/"):l=Nb(n,t)}else l=t;return{pathname:l,search:h9(r),hash:m9(s)}}function Nb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Xh(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function d9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qm(e){let t=d9(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function jm(e,t,n,r=!1){let s;typeof e=="string"?s=Wl(e):(s={...e},hn(!s.pathname||!s.pathname.includes("?"),Xh("?","pathname","search",s)),hn(!s.pathname||!s.pathname.includes("#"),Xh("#","pathname","hash",s)),hn(!s.search||!s.search.includes("#"),Xh("#","search","hash",s)));let l=e===""||s.pathname==="",o=l?"/":s.pathname,d;if(o==null)d=n;else{let g=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),g-=1;s.pathname=y.join("/")}d=g>=0?t[g]:"/"}let f=c9(s,d),h=o&&o!=="/"&&o.endsWith("/"),p=(l||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}var fi=e=>e.join("/").replace(/\/\/+/g,"/"),f9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),h9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,m9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function p9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var bE=["POST","PUT","PATCH","DELETE"];new Set(bE);var g9=["GET",...bE];new Set(g9);var Xl=V.createContext(null);Xl.displayName="DataRouter";var Ed=V.createContext(null);Ed.displayName="DataRouterState";V.createContext(!1);var EE=V.createContext({isTransitioning:!1});EE.displayName="ViewTransition";var b9=V.createContext(new Map);b9.displayName="Fetchers";var E9=V.createContext(null);E9.displayName="Await";var va=V.createContext(null);va.displayName="Navigation";var zo=V.createContext(null);zo.displayName="Location";var Ba=V.createContext({outlet:null,matches:[],isDataRoute:!1});Ba.displayName="Route";var Ym=V.createContext(null);Ym.displayName="RouteError";function y9(e,{relative:t}={}){hn(Ql(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=V.useContext(va),{hash:s,pathname:l,search:o}=Fo(e,{relative:t}),d=l;return n!=="/"&&(d=l==="/"?n:fi([n,l])),r.createHref({pathname:d,search:o,hash:s})}function Ql(){return V.useContext(zo)!=null}function vi(){return hn(Ql(),"useLocation() may be used only in the context of a <Router> component."),V.useContext(zo).location}var yE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vE(e){V.useContext(va).static||V.useLayoutEffect(e)}function TE(){let{isDataRoute:e}=V.useContext(Ba);return e?M9():v9()}function v9(){hn(Ql(),"useNavigate() may be used only in the context of a <Router> component.");let e=V.useContext(Xl),{basename:t,navigator:n}=V.useContext(va),{matches:r}=V.useContext(Ba),{pathname:s}=vi(),l=JSON.stringify(qm(r)),o=V.useRef(!1);return vE(()=>{o.current=!0}),V.useCallback((f,h={})=>{if(ia(o.current,yE),!o.current)return;if(typeof f=="number"){n.go(f);return}let p=jm(f,JSON.parse(l),s,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:fi([t,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[t,n,l,s,e])}V.createContext(null);function Fo(e,{relative:t}={}){let{matches:n}=V.useContext(Ba),{pathname:r}=vi(),s=JSON.stringify(qm(n));return V.useMemo(()=>jm(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function T9(e,t){return _E(e,t)}function _E(e,t,n,r,s){var M;hn(Ql(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=V.useContext(va),{matches:o}=V.useContext(Ba),d=o[o.length-1],f=d?d.params:{},h=d?d.pathname:"/",p=d?d.pathnameBase:"/",g=d&&d.route;{let L=g&&g.path||"";SE(h,!g||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${L}">) 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.
59
+
60
+ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let y=vi(),T;if(t){let L=typeof t=="string"?Wl(t):t;hn(p==="/"||((M=L.pathname)==null?void 0:M.startsWith(p)),`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 "${p}" but pathname "${L.pathname}" was given in the \`location\` prop.`),T=L}else T=y;let w=T.pathname||"/",x=w;if(p!=="/"){let L=p.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(L.length).join("/")}let R=mE(e,{pathname:x});ia(g||R!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),ia(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.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 C=w9(R&&R.map(L=>Object.assign({},L,{params:Object.assign({},f,L.params),pathname:fi([p,l.encodeLocation?l.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?p:fi([p,l.encodeLocation?l.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),o,n,r,s);return t&&C?V.createElement(zo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},C):C}function _9(){let e=R9(),t=p9(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=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:l},"ErrorBoundary")," or"," ",V.createElement("code",{style:l},"errorElement")," prop on your route.")),V.createElement(V.Fragment,null,V.createElement("h2",null,"Unexpected Application Error!"),V.createElement("h3",{style:{fontStyle:"italic"}},t),n?V.createElement("pre",{style:s},n):null,o)}var S9=V.createElement(_9,null),x9=class extends V.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?V.createElement(Ba.Provider,{value:this.props.routeContext},V.createElement(Ym.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function A9({routeContext:e,match:t,children:n}){let r=V.useContext(Xl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),V.createElement(Ba.Provider,{value:e},n)}function w9(e,t=[],n=null,r=null,s=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=n==null?void 0:n.errors;if(o!=null){let p=l.findIndex(g=>g.route.id&&(o==null?void 0:o[g.route.id])!==void 0);hn(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,p+1))}let d=!1,f=-1;if(n)for(let p=0;p<l.length;p++){let g=l[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=p),g.route.id){let{loaderData:y,errors:T}=n,w=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!T||T[g.route.id]===void 0);if(g.route.lazy||w){d=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}let h=n&&r?(p,g)=>{var y,T;r(p,{location:n.location,params:((T=(y=n.matches)==null?void 0:y[0])==null?void 0:T.params)??{},errorInfo:g})}:void 0;return l.reduceRight((p,g,y)=>{let T,w=!1,x=null,R=null;n&&(T=o&&g.route.id?o[g.route.id]:void 0,x=g.route.errorElement||S9,d&&(f<0&&y===0?(SE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,R=null):f===y&&(w=!0,R=g.route.hydrateFallbackElement||null)));let C=t.concat(l.slice(0,y+1)),M=()=>{let L;return T?L=x:w?L=R:g.route.Component?L=V.createElement(g.route.Component,null):g.route.element?L=g.route.element:L=p,V.createElement(A9,{match:g,routeContext:{outlet:p,matches:C,isDataRoute:n!=null},children:L})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?V.createElement(x9,{location:n.location,revalidation:n.revalidation,component:x,error:T,children:M(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:h}):M()},null)}function Gm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function C9(e){let t=V.useContext(Xl);return hn(t,Gm(e)),t}function k9(e){let t=V.useContext(Ed);return hn(t,Gm(e)),t}function N9(e){let t=V.useContext(Ba);return hn(t,Gm(e)),t}function Vm(e){let t=N9(e),n=t.matches[t.matches.length-1];return hn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function O9(){return Vm("useRouteId")}function R9(){var r;let e=V.useContext(Ym),t=k9("useRouteError"),n=Vm("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function M9(){let{router:e}=C9("useNavigate"),t=Vm("useNavigate"),n=V.useRef(!1);return vE(()=>{n.current=!0}),V.useCallback(async(s,l={})=>{ia(n.current,yE),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var Ob={};function SE(e,t,n){!t&&!Ob[e]&&(Ob[e]=!0,ia(!1,n))}V.memo(D9);function D9({routes:e,future:t,state:n,unstable_onError:r}){return _E(e,void 0,n,r,t)}function xE({to:e,replace:t,state:n,relative:r}){hn(Ql(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=V.useContext(va);ia(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=V.useContext(Ba),{pathname:o}=vi(),d=TE(),f=jm(e,qm(l),o,r==="path"),h=JSON.stringify(f);return V.useEffect(()=>{d(JSON.parse(h),{replace:t,state:n,relative:r})},[d,h,r,t,n]),null}function z0(e){hn(!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 I9({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:l=!1}){hn(!Ql(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),d=V.useMemo(()=>({basename:o,navigator:s,static:l,future:{}}),[o,s,l]);typeof n=="string"&&(n=Wl(n));let{pathname:f="/",search:h="",hash:p="",state:g=null,key:y="default"}=n,T=V.useMemo(()=>{let w=pi(f,o);return w==null?null:{location:{pathname:w,search:h,hash:p,state:g,key:y},navigationType:r}},[o,f,h,p,g,y,r]);return ia(T!=null,`<Router basename="${o}"> is not able to match the URL "${f}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:V.createElement(va.Provider,{value:d},V.createElement(zo.Provider,{children:t,value:T}))}function L9({children:e,location:t}){return T9(J1(e),t)}function J1(e,t=[]){let n=[];return V.Children.forEach(e,(r,s)=>{if(!V.isValidElement(r))return;let l=[...t,s];if(r.type===V.Fragment){n.push.apply(n,J1(r.props.children,l));return}hn(r.type===z0,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),hn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=J1(r.props.children,l)),n.push(o)}),n}var F0="get",H0="application/x-www-form-urlencoded";function yd(e){return e!=null&&typeof e.tagName=="string"}function B9(e){return yd(e)&&e.tagName.toLowerCase()==="button"}function P9(e){return yd(e)&&e.tagName.toLowerCase()==="form"}function U9(e){return yd(e)&&e.tagName.toLowerCase()==="input"}function z9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function F9(e,t){return e.button===0&&(!t||t==="_self")&&!z9(e)}var h0=null;function H9(){if(h0===null)try{new FormData(document.createElement("form"),0),h0=!1}catch{h0=!0}return h0}var q9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qh(e){return e!=null&&!q9.has(e)?(ia(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${H0}"`),null):e}function j9(e,t){let n,r,s,l,o;if(P9(e)){let d=e.getAttribute("action");r=d?pi(d,t):null,n=e.getAttribute("method")||F0,s=Qh(e.getAttribute("enctype"))||H0,l=new FormData(e)}else if(B9(e)||U9(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(r=f?pi(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||F0,s=Qh(e.getAttribute("formenctype"))||Qh(d.getAttribute("enctype"))||H0,l=new FormData(d,e),!H9()){let{name:h,type:p,value:g}=e;if(p==="image"){let y=h?`${h}.`:"";l.append(`${y}x`,"0"),l.append(`${y}y`,"0")}else h&&l.append(h,g)}}else{if(yd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=F0,r=null,s=H0,o=e}return l&&s==="text/plain"&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:l,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Km(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Y9(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&pi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function G9(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function V9(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function K9(e,t,n){let r=await Promise.all(e.map(async s=>{let l=t.routes[s.route.id];if(l){let o=await G9(l,n);return o.links?o.links():[]}return[]}));return Q9(r.flat(1).filter(V9).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Rb(e,t,n,r,s,l){let o=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,d=(f,h)=>{var p;return n[h].pathname!==f.pathname||((p=n[h].route.path)==null?void 0:p.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return l==="assets"?t.filter((f,h)=>o(f,h)||d(f,h)):l==="data"?t.filter((f,h)=>{var g;let p=r.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(o(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function $9(e,t,{includeHydrateFallback:n}={}){return W9(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let l=[s.module];return s.clientActionModule&&(l=l.concat(s.clientActionModule)),s.clientLoaderModule&&(l=l.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(l=l.concat(s.hydrateFallbackModule)),s.imports&&(l=l.concat(s.imports)),l}).flat(1))}function W9(e){return[...new Set(e)]}function X9(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Q9(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let l=JSON.stringify(X9(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function AE(){let e=V.useContext(Xl);return Km(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Z9(){let e=V.useContext(Ed);return Km(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $m=V.createContext(void 0);$m.displayName="FrameworkContext";function wE(){let e=V.useContext($m);return Km(e,"You must render this element inside a <HydratedRouter> element"),e}function J9(e,t){let n=V.useContext($m),[r,s]=V.useState(!1),[l,o]=V.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:p,onTouchStart:g}=t,y=V.useRef(null);V.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let x=C=>{C.forEach(M=>{o(M.isIntersecting)})},R=new IntersectionObserver(x,{threshold:.5});return y.current&&R.observe(y.current),()=>{R.disconnect()}}},[e]),V.useEffect(()=>{if(r){let x=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(x)}}},[r]);let T=()=>{s(!0)},w=()=>{s(!1),o(!1)};return n?e!=="intent"?[l,y,{}]:[l,y,{onFocus:uo(d,T),onBlur:uo(f,w),onMouseEnter:uo(h,T),onMouseLeave:uo(p,w),onTouchStart:uo(g,T)}]:[!1,y,{}]}function uo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function e_({page:e,...t}){let{router:n}=AE(),r=V.useMemo(()=>mE(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?V.createElement(n_,{page:e,matches:r,...t}):null}function t_(e){let{manifest:t,routeModules:n}=wE(),[r,s]=V.useState([]);return V.useEffect(()=>{let l=!1;return K9(e,t,n).then(o=>{l||s(o)}),()=>{l=!0}},[e,t,n]),r}function n_({page:e,matches:t,...n}){let r=vi(),{manifest:s,routeModules:l}=wE(),{basename:o}=AE(),{loaderData:d,matches:f}=Z9(),h=V.useMemo(()=>Rb(e,t,f,s,r,"data"),[e,t,f,s,r]),p=V.useMemo(()=>Rb(e,t,f,s,r,"assets"),[e,t,f,s,r]),g=V.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,x=!1;if(t.forEach(C=>{var L;let M=s.routes[C.route.id];!M||!M.hasLoader||(!h.some($=>$.route.id===C.route.id)&&C.route.id in d&&((L=l[C.route.id])!=null&&L.shouldRevalidate)||M.hasClientLoader?x=!0:w.add(C.route.id))}),w.size===0)return[];let R=Y9(e,o,"data");return x&&w.size>0&&R.searchParams.set("_routes",t.filter(C=>w.has(C.route.id)).map(C=>C.route.id).join(",")),[R.pathname+R.search]},[o,d,r,s,h,t,e,l]),y=V.useMemo(()=>$9(p,s),[p,s]),T=t_(p);return V.createElement(V.Fragment,null,g.map(w=>V.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),y.map(w=>V.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),T.map(({key:w,link:x})=>V.createElement("link",{key:w,nonce:n.nonce,...x})))}function r_(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var CE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{CE&&(window.__reactRouterVersion="7.9.6")}catch{}function a_({basename:e,children:t,window:n}){let r=V.useRef();r.current==null&&(r.current=GT({window:n,v5Compat:!0}));let s=r.current,[l,o]=V.useState({action:s.action,location:s.location}),d=V.useCallback(f=>{V.startTransition(()=>o(f))},[o]);return V.useLayoutEffect(()=>s.listen(d),[s,d]),V.createElement(I9,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s})}var kE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NE=V.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:o,state:d,target:f,to:h,preventScrollReset:p,viewTransition:g,...y},T){let{basename:w}=V.useContext(va),x=typeof h=="string"&&kE.test(h),R,C=!1;if(typeof h=="string"&&x&&(R=h,CE))try{let Q=new URL(window.location.href),j=h.startsWith("//")?new URL(Q.protocol+h):new URL(h),me=pi(j.pathname,w);j.origin===Q.origin&&me!=null?h=me+j.search+j.hash:C=!0}catch{ia(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=y9(h,{relative:s}),[L,$,G]=J9(r,y),z=u_(h,{replace:o,state:d,target:f,preventScrollReset:p,relative:s,viewTransition:g});function ne(Q){t&&t(Q),Q.defaultPrevented||z(Q)}let ce=V.createElement("a",{...y,...G,href:R||M,onClick:C||l?t:ne,ref:r_(T,$),target:f,"data-discover":!x&&n==="render"?"true":void 0});return L&&!x?V.createElement(V.Fragment,null,ce,V.createElement(e_,{page:M})):ce});NE.displayName="Link";var i_=V.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:o,viewTransition:d,children:f,...h},p){let g=Fo(o,{relative:h.relative}),y=vi(),T=V.useContext(Ed),{navigator:w,basename:x}=V.useContext(va),R=T!=null&&h_(g)&&d===!0,C=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,M=y.pathname,L=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;n||(M=M.toLowerCase(),L=L?L.toLowerCase():null,C=C.toLowerCase()),L&&x&&(L=pi(L,x)||L);const $=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let G=M===C||!s&&M.startsWith(C)&&M.charAt($)==="/",z=L!=null&&(L===C||!s&&L.startsWith(C)&&L.charAt(C.length)==="/"),ne={isActive:G,isPending:z,isTransitioning:R},ce=G?t:void 0,Q;typeof r=="function"?Q=r(ne):Q=[r,G?"active":null,z?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let j=typeof l=="function"?l(ne):l;return V.createElement(NE,{...h,"aria-current":ce,className:Q,ref:p,style:j,to:o,viewTransition:d},typeof f=="function"?f(ne):f)});i_.displayName="NavLink";var s_=V.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:l,method:o=F0,action:d,onSubmit:f,relative:h,preventScrollReset:p,viewTransition:g,...y},T)=>{let w=d_(),x=f_(d,{relative:h}),R=o.toLowerCase()==="get"?"get":"post",C=typeof d=="string"&&kE.test(d),M=L=>{if(f&&f(L),L.defaultPrevented)return;L.preventDefault();let $=L.nativeEvent.submitter,G=($==null?void 0:$.getAttribute("formmethod"))||o;w($||L.currentTarget,{fetcherKey:t,method:G,navigate:n,replace:s,state:l,relative:h,preventScrollReset:p,viewTransition:g})};return V.createElement("form",{ref:T,method:R,action:x,onSubmit:r?f:M,...y,"data-discover":!C&&e==="render"?"true":void 0})});s_.displayName="Form";function l_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function OE(e){let t=V.useContext(Xl);return hn(t,l_(e)),t}function u_(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:l,viewTransition:o}={}){let d=TE(),f=vi(),h=Fo(e,{relative:l});return V.useCallback(p=>{if(F9(p,t)){p.preventDefault();let g=n!==void 0?n:Ro(f)===Ro(h);d(e,{replace:g,state:r,preventScrollReset:s,relative:l,viewTransition:o})}},[f,d,h,n,r,t,e,s,l,o])}var o_=0,c_=()=>`__${String(++o_)}__`;function d_(){let{router:e}=OE("useSubmit"),{basename:t}=V.useContext(va),n=O9();return V.useCallback(async(r,s={})=>{let{action:l,method:o,encType:d,formData:f,body:h}=j9(r,t);if(s.navigate===!1){let p=s.fetcherKey||c_();await e.fetch(p,n,s.action||l,{preventScrollReset:s.preventScrollReset,formData:f,body:h,formMethod:s.method||o,formEncType:s.encType||d,flushSync:s.flushSync})}else await e.navigate(s.action||l,{preventScrollReset:s.preventScrollReset,formData:f,body:h,formMethod:s.method||o,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function f_(e,{relative:t}={}){let{basename:n}=V.useContext(va),r=V.useContext(Ba);hn(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...Fo(e||".",{relative:t})},o=vi();if(e==null){l.search=o.search;let d=new URLSearchParams(l.search),f=d.getAll("index");if(f.some(p=>p==="")){d.delete("index"),f.filter(g=>g).forEach(g=>d.append("index",g));let p=d.toString();l.search=p?`?${p}`:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:fi([n,l.pathname])),Ro(l)}function h_(e,{relative:t}={}){let n=V.useContext(EE);hn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=OE("useViewTransitionState"),s=Fo(e,{relative:t});if(!n.isTransitioning)return!1;let l=pi(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=pi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Z0(s.pathname,o)!=null||Z0(s.pathname,l)!=null}function Mb(e){const t=[],n=String(e||"");let r=n.indexOf(","),s=0,l=!1;for(;!l;){r===-1&&(r=n.length,l=!0);const o=n.slice(s,r).trim();(o||!l)&&t.push(o),s=r+1,r=n.indexOf(",",s)}return t}function RE(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const m_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,p_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g_={};function Db(e,t){return(g_.jsx?p_:m_).test(e)}const b_=/[ \t\n\f\r]/g;function E_(e){return typeof e=="object"?e.type==="text"?Ib(e.value):!1:Ib(e)}function Ib(e){return e.replace(b_,"")===""}let Ho=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ho.prototype.normal={};Ho.prototype.property={};Ho.prototype.space=void 0;function ME(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new Ho(n,r,t)}function Mo(e){return e.toLowerCase()}let Cr=class{constructor(t,n){this.attribute=n,this.property=t}};Cr.prototype.attribute="";Cr.prototype.booleanish=!1;Cr.prototype.boolean=!1;Cr.prototype.commaOrSpaceSeparated=!1;Cr.prototype.commaSeparated=!1;Cr.prototype.defined=!1;Cr.prototype.mustUseProperty=!1;Cr.prototype.number=!1;Cr.prototype.overloadedBoolean=!1;Cr.prototype.property="";Cr.prototype.spaceSeparated=!1;Cr.prototype.space=void 0;let y_=0;const yt=Vs(),Ln=Vs(),em=Vs(),Oe=Vs(),rn=Vs(),Hl=Vs(),Fr=Vs();function Vs(){return 2**++y_}const tm=Object.freeze(Object.defineProperty({__proto__:null,boolean:yt,booleanish:Ln,commaOrSpaceSeparated:Fr,commaSeparated:Hl,number:Oe,overloadedBoolean:em,spaceSeparated:rn},Symbol.toStringTag,{value:"Module"})),Zh=Object.keys(tm);let Wm=class extends Cr{constructor(t,n,r,s){let l=-1;if(super(t,n),Lb(this,"space",s),typeof r=="number")for(;++l<Zh.length;){const o=Zh[l];Lb(this,Zh[l],(r&tm[o])===tm[o])}}};Wm.prototype.defined=!0;function Lb(e,t,n){n&&(e[t]=n)}function Zl(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const l=new Wm(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Mo(r)]=r,n[Mo(l.attribute)]=r}return new Ho(t,n,e.space)}const DE=Zl({properties:{ariaActiveDescendant:null,ariaAtomic:Ln,ariaAutoComplete:null,ariaBusy:Ln,ariaChecked:Ln,ariaColCount:Oe,ariaColIndex:Oe,ariaColSpan:Oe,ariaControls:rn,ariaCurrent:null,ariaDescribedBy:rn,ariaDetails:null,ariaDisabled:Ln,ariaDropEffect:rn,ariaErrorMessage:null,ariaExpanded:Ln,ariaFlowTo:rn,ariaGrabbed:Ln,ariaHasPopup:null,ariaHidden:Ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rn,ariaLevel:Oe,ariaLive:null,ariaModal:Ln,ariaMultiLine:Ln,ariaMultiSelectable:Ln,ariaOrientation:null,ariaOwns:rn,ariaPlaceholder:null,ariaPosInSet:Oe,ariaPressed:Ln,ariaReadOnly:Ln,ariaRelevant:null,ariaRequired:Ln,ariaRoleDescription:rn,ariaRowCount:Oe,ariaRowIndex:Oe,ariaRowSpan:Oe,ariaSelected:Ln,ariaSetSize:Oe,ariaSort:null,ariaValueMax:Oe,ariaValueMin:Oe,ariaValueNow:Oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function IE(e,t){return t in e?e[t]:t}function LE(e,t){return IE(e,t.toLowerCase())}const v_=Zl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hl,acceptCharset:rn,accessKey:rn,action:null,allow:null,allowFullScreen:yt,allowPaymentRequest:yt,allowUserMedia:yt,alt:null,as:null,async:yt,autoCapitalize:null,autoComplete:rn,autoFocus:yt,autoPlay:yt,blocking:rn,capture:null,charSet:null,checked:yt,cite:null,className:rn,cols:Oe,colSpan:null,content:null,contentEditable:Ln,controls:yt,controlsList:rn,coords:Oe|Hl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:yt,defer:yt,dir:null,dirName:null,disabled:yt,download:em,draggable:Ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:yt,formTarget:null,headers:rn,height:Oe,hidden:em,high:Oe,href:null,hrefLang:null,htmlFor:rn,httpEquiv:rn,id:null,imageSizes:null,imageSrcSet:null,inert:yt,inputMode:null,integrity:null,is:null,isMap:yt,itemId:null,itemProp:rn,itemRef:rn,itemScope:yt,itemType:rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:yt,low:Oe,manifest:null,max:null,maxLength:Oe,media:null,method:null,min:null,minLength:Oe,multiple:yt,muted:yt,name:null,nonce:null,noModule:yt,noValidate:yt,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:yt,optimum:Oe,pattern:null,ping:rn,placeholder:null,playsInline:yt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:yt,referrerPolicy:null,rel:rn,required:yt,reversed:yt,rows:Oe,rowSpan:Oe,sandbox:rn,scope:null,scoped:yt,seamless:yt,selected:yt,shadowRootClonable:yt,shadowRootDelegatesFocus:yt,shadowRootMode:null,shape:null,size:Oe,sizes:null,slot:null,span:Oe,spellCheck:Ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Oe,step:null,style:null,tabIndex:Oe,target:null,title:null,translate:null,type:null,typeMustMatch:yt,useMap:null,value:Ln,width:Oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rn,axis:null,background:null,bgColor:null,border:Oe,borderColor:null,bottomMargin:Oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:yt,declare:yt,event:null,face:null,frame:null,frameBorder:null,hSpace:Oe,leftMargin:Oe,link:null,longDesc:null,lowSrc:null,marginHeight:Oe,marginWidth:Oe,noResize:yt,noHref:yt,noShade:yt,noWrap:yt,object:null,profile:null,prompt:null,rev:null,rightMargin:Oe,rules:null,scheme:null,scrolling:Ln,standby:null,summary:null,text:null,topMargin:Oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:yt,disableRemotePlayback:yt,prefix:null,property:null,results:Oe,security:null,unselectable:null},space:"html",transform:LE}),T_=Zl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Fr,accentHeight:Oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Oe,amplitude:Oe,arabicForm:null,ascent:Oe,attributeName:null,attributeType:null,azimuth:Oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Oe,by:null,calcMode:null,capHeight:Oe,className:rn,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:Oe,diffuseConstant:Oe,direction:null,display:null,dur:null,divisor:Oe,dominantBaseline:null,download:yt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Oe,enableBackground:null,end:null,event:null,exponent:Oe,externalResourcesRequired:null,fill:null,fillOpacity:Oe,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:Hl,g2:Hl,glyphName:Hl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Oe,horizOriginX:Oe,horizOriginY:Oe,id:null,ideographic:Oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Oe,k:Oe,k1:Oe,k2:Oe,k3:Oe,k4:Oe,kernelMatrix:Fr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Oe,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:Oe,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:Oe,overlineThickness:Oe,paintOrder:null,panose1:null,path:null,pathLength:Oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Oe,pointsAtY:Oe,pointsAtZ:Oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fr,rev:Fr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fr,requiredFeatures:Fr,requiredFonts:Fr,requiredFormats:Fr,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:Oe,specularExponent:Oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Oe,strikethroughThickness:Oe,string:null,stroke:null,strokeDashArray:Fr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Oe,strokeOpacity:Oe,strokeWidth:null,style:null,surfaceScale:Oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fr,tabIndex:Oe,tableValues:null,target:null,targetX:Oe,targetY:Oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Oe,underlineThickness:Oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Oe,values:null,vAlphabetic:Oe,vMathematical:Oe,vectorEffect:null,vHanging:Oe,vIdeographic:Oe,version:null,vertAdvY:Oe,vertOriginX:Oe,vertOriginY:Oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:IE}),BE=Zl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),PE=Zl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:LE}),UE=Zl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),__={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"},S_=/[A-Z]/g,Bb=/-[a-z]/g,x_=/^data[-\w.:]+$/i;function Xm(e,t){const n=Mo(t);let r=t,s=Cr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&x_.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Bb,w_);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Bb.test(l)){let o=l.replace(S_,A_);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}s=Wm}return new s(r,t)}function A_(e){return"-"+e.toLowerCase()}function w_(e){return e.charAt(1).toUpperCase()}const vd=ME([DE,v_,BE,PE,UE],"html"),Jl=ME([DE,T_,BE,PE,UE],"svg");function Pb(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function zE(e){return e.join(" ").trim()}var Ml={},Jh,Ub;function C_(){if(Ub)return Jh;Ub=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
61
+ `,h="/",p="*",g="",y="comment",T="declaration";Jh=function(x,R){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];R=R||{};var C=1,M=1;function L(se){var fe=se.match(t);fe&&(C+=fe.length);var pe=se.lastIndexOf(f);M=~pe?se.length-pe:M+se.length}function $(){var se={line:C,column:M};return function(fe){return fe.position=new G(se),ce(),fe}}function G(se){this.start=se,this.end={line:C,column:M},this.source=R.source}G.prototype.content=x;function z(se){var fe=new Error(R.source+":"+C+":"+M+": "+se);if(fe.reason=se,fe.filename=R.source,fe.line=C,fe.column=M,fe.source=x,!R.silent)throw fe}function ne(se){var fe=se.exec(x);if(fe){var pe=fe[0];return L(pe),x=x.slice(pe.length),fe}}function ce(){ne(n)}function Q(se){var fe;for(se=se||[];fe=j();)fe!==!1&&se.push(fe);return se}function j(){var se=$();if(!(h!=x.charAt(0)||p!=x.charAt(1))){for(var fe=2;g!=x.charAt(fe)&&(p!=x.charAt(fe)||h!=x.charAt(fe+1));)++fe;if(fe+=2,g===x.charAt(fe-1))return z("End of comment missing");var pe=x.slice(2,fe-2);return M+=2,L(pe),x=x.slice(fe),M+=2,se({type:y,comment:pe})}}function me(){var se=$(),fe=ne(r);if(fe){if(j(),!ne(s))return z("property missing ':'");var pe=ne(l),X=se({type:T,property:w(fe[0].replace(e,g)),value:pe?w(pe[0].replace(e,g)):g});return ne(o),X}}function J(){var se=[];Q(se);for(var fe;fe=me();)fe!==!1&&(se.push(fe),Q(se));return se}return ce(),J()};function w(x){return x?x.replace(d,g):g}return Jh}var zb;function k_(){if(zb)return Ml;zb=1;var e=Ml&&Ml.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=n;var t=e(C_());function n(r,s){var l=null;if(!r||typeof r!="string")return l;var o=(0,t.default)(r),d=typeof s=="function";return o.forEach(function(f){if(f.type==="declaration"){var h=f.property,p=f.value;d?s(h,p,f):p&&(l=l||{},l[h]=p)}}),l}return Ml}var oo={},Fb;function N_(){if(Fb)return oo;Fb=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},o=function(h,p){return p.toUpperCase()},d=function(h,p){return"".concat(p,"-")},f=function(h,p){return p===void 0&&(p={}),l(h)?h:(h=h.toLowerCase(),p.reactCompat?h=h.replace(s,d):h=h.replace(r,d),h.replace(t,o))};return oo.camelCase=f,oo}var co,Hb;function O_(){if(Hb)return co;Hb=1;var e=co&&co.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(k_()),n=N_();function r(s,l){var o={};return!s||typeof s!="string"||(0,t.default)(s,function(d,f){d&&f&&(o[(0,n.camelCase)(d,l)]=f)}),o}return r.default=r,co=r,co}var R_=O_();const M_=gd(R_),Td=FE("end"),Pa=FE("start");function FE(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function D_(e){const t=Pa(e),n=Td(e);if(t&&n)return{start:t,end:n}}function vo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qb(e.position):"start"in e||"end"in e?qb(e):"line"in e||"column"in e?nm(e):""}function nm(e){return jb(e&&e.line)+":"+jb(e&&e.column)}function qb(e){return nm(e&&e.start)+"-"+nm(e&&e.end)}function jb(e){return e&&typeof e=="number"?e:1}class rr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let s="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?s=t:!l.cause&&t&&(o=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const f=r.indexOf(":");f===-1?l.ruleId=r:(l.source=r.slice(0,f),l.ruleId=r.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const d=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=d?d.line:void 0,this.name=vo(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}rr.prototype.file="";rr.prototype.name="";rr.prototype.reason="";rr.prototype.message="";rr.prototype.stack="";rr.prototype.column=void 0;rr.prototype.line=void 0;rr.prototype.ancestors=void 0;rr.prototype.cause=void 0;rr.prototype.fatal=void 0;rr.prototype.place=void 0;rr.prototype.ruleId=void 0;rr.prototype.source=void 0;const Qm={}.hasOwnProperty,I_=new Map,L_=/[A-Z]/g,B_=new Set(["table","tbody","thead","tfoot","tr"]),P_=new Set(["td","th"]),HE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function U_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=V_(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=G_(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Jl:vd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=qE(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function qE(e,t,n){if(t.type==="element")return z_(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return F_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return q_(e,t,n);if(t.type==="mdxjsEsm")return H_(e,t);if(t.type==="root")return j_(e,t,n);if(t.type==="text")return Y_(e,t)}function z_(e,t,n){const r=e.schema;let s=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=Jl,e.schema=s),e.ancestors.push(t);const l=YE(e,t.tagName,!1),o=K_(e,t);let d=Jm(e,t);return B_.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!E_(f):!0})),jE(e,o,l,t),Zm(o,d),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function F_(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Do(e,t.position)}function H_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Do(e,t.position)}function q_(e,t,n){const r=e.schema;let s=r;t.name==="svg"&&r.space==="html"&&(s=Jl,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:YE(e,t.name,!0),o=$_(e,t),d=Jm(e,t);return jE(e,o,l,t),Zm(o,d),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function j_(e,t,n){const r={};return Zm(r,Jm(e,t)),e.create(t,e.Fragment,r,n)}function Y_(e,t){return t.value}function jE(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Zm(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function G_(e,t,n){return r;function r(s,l,o,d){const h=Array.isArray(o.children)?n:t;return d?h(l,o,d):h(l,o)}}function V_(e,t){return n;function n(r,s,l,o){const d=Array.isArray(l.children),f=Pa(r);return t(s,l,o,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function K_(e,t){const n={};let r,s;for(s in t.properties)if(s!=="children"&&Qm.call(t.properties,s)){const l=W_(e,s,t.properties[s]);if(l){const[o,d]=l;e.tableCellAlignToStyle&&o==="align"&&typeof d=="string"&&P_.has(t.tagName)?r=d:n[o]=d}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function $_(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const d=o.properties[0];d.type,Object.assign(n,e.evaluater.evaluateExpression(d.argument))}else Do(e,t.position);else{const s=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const d=r.value.data.estree.body[0];d.type,l=e.evaluater.evaluateExpression(d.expression)}else Do(e,t.position);else l=r.value===null?!0:r.value;n[s]=l}return n}function Jm(e,t){const n=[];let r=-1;const s=e.passKeys?new Map:I_;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=s.get(f)||0;o=f+"-"+h,s.set(f,h+1)}}const d=qE(e,l,o);d!==void 0&&n.push(d)}return n}function W_(e,t,n){const r=Xm(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?RE(n):zE(n)),r.property==="style"){let s=typeof n=="object"?n:X_(e,String(n));return e.stylePropertyNameCase==="css"&&(s=Q_(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&r.space?__[r.property]||r.property:r.attribute,n]}}function X_(e,t){try{return M_(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,s=new rr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=HE+"#cannot-parse-style-attribute",s}}function YE(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,o;for(;++l<s.length;){const d=Db(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};o=o?{type:"MemberExpression",object:o,property:d,computed:!!(l&&d.type==="Literal"),optional:!1}:d}r=o}else r=Db(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const s=r.value;return Qm.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(r);Do(e)}function Do(e,t){const n=new rr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=HE+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Q_(e){const t={};let n;for(n in e)Qm.call(e,n)&&(t[Z_(n)]=e[n]);return t}function Z_(e){let t=e.replace(L_,J_);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function J_(e){return"-"+e.toLowerCase()}const e1={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"]},eS={};function ep(e,t){const n=eS,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return GE(e,r,s)}function GE(e,t,n){if(tS(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yb(e.children,t,n)}return Array.isArray(e)?Yb(e,t,n):""}function Yb(e,t,n){const r=[];let s=-1;for(;++s<e.length;)r[s]=GE(e[s],t,n);return r.join("")}function tS(e){return!!(e&&typeof e=="object")}const Gb=document.createElement("i");function tp(e){const t="&"+e+";";Gb.innerHTML=t;const n=Gb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Yr(e,t,n,r){const s=e.length;let l=0,o;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function ta(e,t){return e.length>0?(Yr(e,e.length,0,t),e):t}const Vb={}.hasOwnProperty;function VE(e){const t={};let n=-1;for(;++n<e.length;)nS(t,e[n]);return t}function nS(e,t){let n;for(n in t){const s=(Vb.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Vb.call(s,o)||(s[o]=[]);const d=l[o];rS(s[o],Array.isArray(d)?d:d?[d]:[])}}}function rS(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Yr(e,0,0,r)}function KE(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ea(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hr=fs(/[A-Za-z]/),nr=fs(/[\dA-Za-z]/),aS=fs(/[#-'*+\--9=?A-Z^-~]/);function J0(e){return e!==null&&(e<32||e===127)}const rm=fs(/\d/),iS=fs(/[\dA-Fa-f]/),sS=fs(/[!-/:-@[-`{-~]/);function Ke(e){return e!==null&&e<-2}function en(e){return e!==null&&(e<0||e===32)}function Ot(e){return e===-2||e===-1||e===32}const _d=fs(new RegExp("\\p{P}|\\p{S}","u")),Gs=fs(/\s/);function fs(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function eu(e){const t=[];let n=-1,r=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&nr(e.charCodeAt(n+1))&&nr(e.charCodeAt(n+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const d=e.charCodeAt(n+1);l<56320&&d>56319&&d<57344?(o=String.fromCharCode(l,d),s=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+s+1,o=""),s&&(n+=s,s=0)}return t.join("")+e.slice(r)}function Ct(e,t,n,r){const s=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(f){return Ot(f)?(e.enter(n),d(f)):t(f)}function d(f){return Ot(f)&&l++<s?(e.consume(f),d):(e.exit(n),t(f))}}const lS={tokenize:uS};function uS(e){const t=e.attempt(this.parser.constructs.contentInitial,r,s);let n;return t;function r(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ct(e,t,"linePrefix")}function s(d){return e.enter("paragraph"),l(d)}function l(d){const f=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,o(d)}function o(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ke(d)?(e.consume(d),e.exit("chunkText"),l):(e.consume(d),o)}}const oS={tokenize:cS},Kb={tokenize:dS};function cS(e){const t=this,n=[];let r=0,s,l,o;return d;function d(L){if(r<n.length){const $=n[r];return t.containerState=$[1],e.attempt($[0].continuation,f,h)(L)}return h(L)}function f(L){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&M();const $=t.events.length;let G=$,z;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){z=t.events[G][1].end;break}C(r);let ne=$;for(;ne<t.events.length;)t.events[ne][1].end={...z},ne++;return Yr(t.events,G+1,0,t.events.slice($)),t.events.length=ne,h(L)}return d(L)}function h(L){if(r===n.length){if(!s)return y(L);if(s.currentConstruct&&s.currentConstruct.concrete)return w(L);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Kb,p,g)(L)}function p(L){return s&&M(),C(r),y(L)}function g(L){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,w(L)}function y(L){return t.containerState={},e.attempt(Kb,T,w)(L)}function T(L){return r++,n.push([t.currentConstruct,t.containerState]),y(L)}function w(L){if(L===null){s&&M(),C(0),e.consume(L);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),x(L)}function x(L){if(L===null){R(e.exit("chunkFlow"),!0),C(0),e.consume(L);return}return Ke(L)?(e.consume(L),R(e.exit("chunkFlow")),r=0,t.interrupt=void 0,d):(e.consume(L),x)}function R(L,$){const G=t.sliceStream(L);if($&&G.push(null),L.previous=l,l&&(l.next=L),l=L,s.defineSkip(L.start),s.write(G),t.parser.lazy[L.start.line]){let z=s.events.length;for(;z--;)if(s.events[z][1].start.offset<o&&(!s.events[z][1].end||s.events[z][1].end.offset>o))return;const ne=t.events.length;let ce=ne,Q,j;for(;ce--;)if(t.events[ce][0]==="exit"&&t.events[ce][1].type==="chunkFlow"){if(Q){j=t.events[ce][1].end;break}Q=!0}for(C(r),z=ne;z<t.events.length;)t.events[z][1].end={...j},z++;Yr(t.events,ce+1,0,t.events.slice(ne)),t.events.length=z}}function C(L){let $=n.length;for(;$-- >L;){const G=n[$];t.containerState=G[1],G[0].exit.call(t,e)}n.length=L}function M(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function dS(e,t,n){return Ct(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Yl(e){if(e===null||en(e)||Gs(e))return 1;if(_d(e))return 2}function Sd(e,t,n){const r=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const am={name:"attention",resolveAll:fS,tokenize:hS};function fS(e,t){let n=-1,r,s,l,o,d,f,h,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;f=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[r][1].end},y={...e[n][1].start};$b(g,-f),$b(y,f),o={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[r][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},l={type:f>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},s={type:f>1?"strong":"emphasis",start:{...o.start},end:{...d.end}},e[r][1].end={...o.start},e[n][1].start={...d.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=ta(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=ta(h,[["enter",s,t],["enter",o,t],["exit",o,t],["enter",l,t]]),h=ta(h,Sd(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=ta(h,[["exit",l,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,h=ta(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Yr(e,r-1,n-r+3,h),n=r+h.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function hS(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,s=Yl(r);let l;return o;function o(f){return l=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===l)return e.consume(f),d;const h=e.exit("attentionSequence"),p=Yl(f),g=!p||p===2&&s||n.includes(f),y=!s||s===2&&p||n.includes(r);return h._open=!!(l===42?g:g&&(s||!y)),h._close=!!(l===42?y:y&&(p||!g)),t(f)}}function $b(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const mS={name:"autolink",tokenize:pS};function pS(e,t,n){let r=0;return s;function s(T){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(T){return hr(T)?(e.consume(T),o):T===64?n(T):h(T)}function o(T){return T===43||T===45||T===46||nr(T)?(r=1,d(T)):h(T)}function d(T){return T===58?(e.consume(T),r=0,f):(T===43||T===45||T===46||nr(T))&&r++<32?(e.consume(T),d):(r=0,h(T))}function f(T){return T===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):T===null||T===32||T===60||J0(T)?n(T):(e.consume(T),f)}function h(T){return T===64?(e.consume(T),p):aS(T)?(e.consume(T),h):n(T)}function p(T){return nr(T)?g(T):n(T)}function g(T){return T===46?(e.consume(T),r=0,p):T===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):y(T)}function y(T){if((T===45||nr(T))&&r++<63){const w=T===45?y:g;return e.consume(T),w}return n(T)}}const qo={partial:!0,tokenize:gS};function gS(e,t,n){return r;function r(l){return Ot(l)?Ct(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Ke(l)?t(l):n(l)}}const $E={continuation:{tokenize:ES},exit:yS,name:"blockQuote",tokenize:bS};function bS(e,t,n){const r=this;return s;function s(o){if(o===62){const d=r.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return Ot(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function ES(e,t,n){const r=this;return s;function s(o){return Ot(o)?Ct(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt($E,t,n)(o)}}function yS(e){e.exit("blockQuote")}const WE={name:"characterEscape",tokenize:vS};function vS(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return sS(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const XE={name:"characterReference",tokenize:TS};function TS(e,t,n){const r=this;let s=0,l,o;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,o=nr,p(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=iS,p):(e.enter("characterReferenceValue"),l=7,o=rm,p(g))}function p(g){if(g===59&&s){const y=e.exit("characterReferenceValue");return o===nr&&!tp(r.sliceSerialize(y))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(g)&&s++<l?(e.consume(g),p):n(g)}}const Wb={partial:!0,tokenize:SS},Xb={concrete:!0,name:"codeFenced",tokenize:_S};function _S(e,t,n){const r=this,s={partial:!0,tokenize:G};let l=0,o=0,d;return f;function f(z){return h(z)}function h(z){const ne=r.events[r.events.length-1];return l=ne&&ne[1].type==="linePrefix"?ne[2].sliceSerialize(ne[1],!0).length:0,d=z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(z)}function p(z){return z===d?(o++,e.consume(z),p):o<3?n(z):(e.exit("codeFencedFenceSequence"),Ot(z)?Ct(e,g,"whitespace")(z):g(z))}function g(z){return z===null||Ke(z)?(e.exit("codeFencedFence"),r.interrupt?t(z):e.check(Wb,x,$)(z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(z))}function y(z){return z===null||Ke(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(z)):Ot(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ct(e,T,"whitespace")(z)):z===96&&z===d?n(z):(e.consume(z),y)}function T(z){return z===null||Ke(z)?g(z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(z))}function w(z){return z===null||Ke(z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(z)):z===96&&z===d?n(z):(e.consume(z),w)}function x(z){return e.attempt(s,$,R)(z)}function R(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),C}function C(z){return l>0&&Ot(z)?Ct(e,M,"linePrefix",l+1)(z):M(z)}function M(z){return z===null||Ke(z)?e.check(Wb,x,$)(z):(e.enter("codeFlowValue"),L(z))}function L(z){return z===null||Ke(z)?(e.exit("codeFlowValue"),M(z)):(e.consume(z),L)}function $(z){return e.exit("codeFenced"),t(z)}function G(z,ne,ce){let Q=0;return j;function j(pe){return z.enter("lineEnding"),z.consume(pe),z.exit("lineEnding"),me}function me(pe){return z.enter("codeFencedFence"),Ot(pe)?Ct(z,J,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(pe):J(pe)}function J(pe){return pe===d?(z.enter("codeFencedFenceSequence"),se(pe)):ce(pe)}function se(pe){return pe===d?(Q++,z.consume(pe),se):Q>=o?(z.exit("codeFencedFenceSequence"),Ot(pe)?Ct(z,fe,"whitespace")(pe):fe(pe)):ce(pe)}function fe(pe){return pe===null||Ke(pe)?(z.exit("codeFencedFence"),ne(pe)):ce(pe)}}}function SS(e,t,n){const r=this;return s;function s(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const t1={name:"codeIndented",tokenize:AS},xS={partial:!0,tokenize:wS};function AS(e,t,n){const r=this;return s;function s(h){return e.enter("codeIndented"),Ct(e,l,"linePrefix",5)(h)}function l(h){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(h):n(h)}function o(h){return h===null?f(h):Ke(h)?e.attempt(xS,o,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Ke(h)?(e.exit("codeFlowValue"),o(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),t(h)}}function wS(e,t,n){const r=this;return s;function s(o){return r.parser.lazy[r.now().line]?n(o):Ke(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):Ct(e,l,"linePrefix",5)(o)}function l(o){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(o):Ke(o)?s(o):n(o)}}const CS={name:"codeText",previous:NS,resolve:kS,tokenize:OS};function kS(e){let t=e.length-4,n=3,r,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)s===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(s=r):(r===t||e[r][1].type==="lineEnding")&&(e[s][1].type="codeTextData",r!==s+2&&(e[s][1].end=e[r-1][1].end,e.splice(s+2,r-s-2),t-=r-s-2,r=s+2),s=void 0);return e}function NS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function OS(e,t,n){let r=0,s,l;return o;function o(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),r++,d):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(l=e.enter("codeTextSequence"),s=0,p(g)):Ke(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Ke(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),h)}function p(g){return g===96?(e.consume(g),s++,p):s===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",h(g))}}class RS{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const s=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&fo(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),fo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),fo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);fo(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);fo(this.left,n.reverse())}}}function fo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function QE(e){const t={};let n=-1,r,s,l,o,d,f,h;const p=new RS(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(f=r[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,MS(p,n)),n=t[n],h=!0);else if(r[1]._container){for(l=n,s=void 0;l--;)if(o=p.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(s&&(p.get(s)[1].type="lineEndingBlank"),o[1].type="lineEnding",s=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;s&&(r[1].end={...p.get(s)[1].start},d=p.slice(s,n),d.unshift(r),p.splice(s,n-s+1,d))}}return Yr(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!h}function MS(e,t){const n=e.get(t)[1],r=e.get(t)[2];let s=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const d=o.events,f=[],h={};let p,g,y=-1,T=n,w=0,x=0;const R=[x];for(;T;){for(;e.get(++s)[1]!==T;);l.push(s),T._tokenizer||(p=r.sliceStream(T),T.next||p.push(null),g&&o.defineSkip(T.start),T._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),T._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),g=T,T=T.next}for(T=n;++y<d.length;)d[y][0]==="exit"&&d[y-1][0]==="enter"&&d[y][1].type===d[y-1][1].type&&d[y][1].start.line!==d[y][1].end.line&&(x=y+1,R.push(x),T._tokenizer=void 0,T.previous=void 0,T=T.next);for(o.events=[],T?(T._tokenizer=void 0,T.previous=void 0):R.pop(),y=R.length;y--;){const C=d.slice(R[y],R[y+1]),M=l.pop();f.push([M,M+C.length-1]),e.splice(M,2,C)}for(f.reverse(),y=-1;++y<f.length;)h[w+f[y][0]]=w+f[y][1],w+=f[y][1]-f[y][0]-1;return h}const DS={resolve:LS,tokenize:BS},IS={partial:!0,tokenize:PS};function LS(e){return QE(e),e}function BS(e,t){let n;return r;function r(d){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?l(d):Ke(d)?e.check(IS,o,l)(d):(e.consume(d),s)}function l(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function o(d){return e.consume(d),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function PS(e,t,n){const r=this;return s;function s(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ct(e,l,"linePrefix")}function l(o){if(o===null||Ke(o))return n(o);const d=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function ZE(e,t,n,r,s,l,o,d,f){const h=f||Number.POSITIVE_INFINITY;let p=0;return g;function g(C){return C===60?(e.enter(r),e.enter(s),e.enter(l),e.consume(C),e.exit(l),y):C===null||C===32||C===41||J0(C)?n(C):(e.enter(r),e.enter(o),e.enter(d),e.enter("chunkString",{contentType:"string"}),x(C))}function y(C){return C===62?(e.enter(l),e.consume(C),e.exit(l),e.exit(s),e.exit(r),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),T(C))}function T(C){return C===62?(e.exit("chunkString"),e.exit(d),y(C)):C===null||C===60||Ke(C)?n(C):(e.consume(C),C===92?w:T)}function w(C){return C===60||C===62||C===92?(e.consume(C),T):T(C)}function x(C){return!p&&(C===null||C===41||en(C))?(e.exit("chunkString"),e.exit(d),e.exit(o),e.exit(r),t(C)):p<h&&C===40?(e.consume(C),p++,x):C===41?(e.consume(C),p--,x):C===null||C===32||C===40||J0(C)?n(C):(e.consume(C),C===92?R:x)}function R(C){return C===40||C===41||C===92?(e.consume(C),x):x(C)}}function JE(e,t,n,r,s,l){const o=this;let d=0,f;return h;function h(T){return e.enter(r),e.enter(s),e.consume(T),e.exit(s),e.enter(l),p}function p(T){return d>999||T===null||T===91||T===93&&!f||T===94&&!d&&"_hiddenFootnoteSupport"in o.parser.constructs?n(T):T===93?(e.exit(l),e.enter(s),e.consume(T),e.exit(s),e.exit(r),t):Ke(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||T===91||T===93||Ke(T)||d++>999?(e.exit("chunkString"),p(T)):(e.consume(T),f||(f=!Ot(T)),T===92?y:g)}function y(T){return T===91||T===92||T===93?(e.consume(T),d++,g):g(T)}}function e5(e,t,n,r,s,l){let o;return d;function d(y){return y===34||y===39||y===40?(e.enter(r),e.enter(s),e.consume(y),e.exit(s),o=y===40?41:y,f):n(y)}function f(y){return y===o?(e.enter(s),e.consume(y),e.exit(s),e.exit(r),t):(e.enter(l),h(y))}function h(y){return y===o?(e.exit(l),f(o)):y===null?n(y):Ke(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Ct(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===o||y===null||Ke(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?g:p)}function g(y){return y===o||y===92?(e.consume(y),p):p(y)}}function To(e,t){let n;return r;function r(s){return Ke(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,r):Ot(s)?Ct(e,r,n?"linePrefix":"lineSuffix")(s):t(s)}}const US={name:"definition",tokenize:FS},zS={partial:!0,tokenize:HS};function FS(e,t,n){const r=this;let s;return l;function l(T){return e.enter("definition"),o(T)}function o(T){return JE.call(r,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(T)}function d(T){return s=Ea(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),f):n(T)}function f(T){return en(T)?To(e,h)(T):h(T)}function h(T){return ZE(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(T)}function p(T){return e.attempt(zS,g,g)(T)}function g(T){return Ot(T)?Ct(e,y,"whitespace")(T):y(T)}function y(T){return T===null||Ke(T)?(e.exit("definition"),r.parser.defined.push(s),t(T)):n(T)}}function HS(e,t,n){return r;function r(d){return en(d)?To(e,s)(d):n(d)}function s(d){return e5(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function l(d){return Ot(d)?Ct(e,o,"whitespace")(d):o(d)}function o(d){return d===null||Ke(d)?t(d):n(d)}}const qS={name:"hardBreakEscape",tokenize:jS};function jS(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Ke(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const YS={name:"headingAtx",resolve:GS,tokenize:VS};function GS(e,t){let n=e.length-2,r=3,s,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(s={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Yr(e,r,n-r+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function VS(e,t,n){let r=0;return s;function s(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||en(p)?(e.exit("atxHeadingSequence"),d(p)):n(p)}function d(p){return p===35?(e.enter("atxHeadingSequence"),f(p)):p===null||Ke(p)?(e.exit("atxHeading"),t(p)):Ot(p)?Ct(e,d,"whitespace")(p):(e.enter("atxHeadingText"),h(p))}function f(p){return p===35?(e.consume(p),f):(e.exit("atxHeadingSequence"),d(p))}function h(p){return p===null||p===35||en(p)?(e.exit("atxHeadingText"),d(p)):(e.consume(p),h)}}const KS=["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"],Qb=["pre","script","style","textarea"],$S={concrete:!0,name:"htmlFlow",resolveTo:QS,tokenize:ZS},WS={partial:!0,tokenize:ex},XS={partial:!0,tokenize:JS};function QS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ZS(e,t,n){const r=this;let s,l,o,d,f;return h;function h(D){return p(D)}function p(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),g}function g(D){return D===33?(e.consume(D),y):D===47?(e.consume(D),l=!0,x):D===63?(e.consume(D),s=3,r.interrupt?t:A):hr(D)?(e.consume(D),o=String.fromCharCode(D),R):n(D)}function y(D){return D===45?(e.consume(D),s=2,T):D===91?(e.consume(D),s=5,d=0,w):hr(D)?(e.consume(D),s=4,r.interrupt?t:A):n(D)}function T(D){return D===45?(e.consume(D),r.interrupt?t:A):n(D)}function w(D){const Ie="CDATA[";return D===Ie.charCodeAt(d++)?(e.consume(D),d===Ie.length?r.interrupt?t:J:w):n(D)}function x(D){return hr(D)?(e.consume(D),o=String.fromCharCode(D),R):n(D)}function R(D){if(D===null||D===47||D===62||en(D)){const Ie=D===47,Ve=o.toLowerCase();return!Ie&&!l&&Qb.includes(Ve)?(s=1,r.interrupt?t(D):J(D)):KS.includes(o.toLowerCase())?(s=6,Ie?(e.consume(D),C):r.interrupt?t(D):J(D)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):l?M(D):L(D))}return D===45||nr(D)?(e.consume(D),o+=String.fromCharCode(D),R):n(D)}function C(D){return D===62?(e.consume(D),r.interrupt?t:J):n(D)}function M(D){return Ot(D)?(e.consume(D),M):j(D)}function L(D){return D===47?(e.consume(D),j):D===58||D===95||hr(D)?(e.consume(D),$):Ot(D)?(e.consume(D),L):j(D)}function $(D){return D===45||D===46||D===58||D===95||nr(D)?(e.consume(D),$):G(D)}function G(D){return D===61?(e.consume(D),z):Ot(D)?(e.consume(D),G):L(D)}function z(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),f=D,ne):Ot(D)?(e.consume(D),z):ce(D)}function ne(D){return D===f?(e.consume(D),f=null,Q):D===null||Ke(D)?n(D):(e.consume(D),ne)}function ce(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||en(D)?G(D):(e.consume(D),ce)}function Q(D){return D===47||D===62||Ot(D)?L(D):n(D)}function j(D){return D===62?(e.consume(D),me):n(D)}function me(D){return D===null||Ke(D)?J(D):Ot(D)?(e.consume(D),me):n(D)}function J(D){return D===45&&s===2?(e.consume(D),X):D===60&&s===1?(e.consume(D),he):D===62&&s===4?(e.consume(D),le):D===63&&s===3?(e.consume(D),A):D===93&&s===5?(e.consume(D),ze):Ke(D)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(WS,ye,se)(D)):D===null||Ke(D)?(e.exit("htmlFlowData"),se(D)):(e.consume(D),J)}function se(D){return e.check(XS,fe,ye)(D)}function fe(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),pe}function pe(D){return D===null||Ke(D)?se(D):(e.enter("htmlFlowData"),J(D))}function X(D){return D===45?(e.consume(D),A):J(D)}function he(D){return D===47?(e.consume(D),o="",be):J(D)}function be(D){if(D===62){const Ie=o.toLowerCase();return Qb.includes(Ie)?(e.consume(D),le):J(D)}return hr(D)&&o.length<8?(e.consume(D),o+=String.fromCharCode(D),be):J(D)}function ze(D){return D===93?(e.consume(D),A):J(D)}function A(D){return D===62?(e.consume(D),le):D===45&&s===2?(e.consume(D),A):J(D)}function le(D){return D===null||Ke(D)?(e.exit("htmlFlowData"),ye(D)):(e.consume(D),le)}function ye(D){return e.exit("htmlFlow"),t(D)}}function JS(e,t,n){const r=this;return s;function s(o){return Ke(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function ex(e,t,n){return r;function r(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(qo,t,n)}}const tx={name:"htmlText",tokenize:nx};function nx(e,t,n){const r=this;let s,l,o;return d;function d(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),f}function f(A){return A===33?(e.consume(A),h):A===47?(e.consume(A),G):A===63?(e.consume(A),L):hr(A)?(e.consume(A),ce):n(A)}function h(A){return A===45?(e.consume(A),p):A===91?(e.consume(A),l=0,w):hr(A)?(e.consume(A),M):n(A)}function p(A){return A===45?(e.consume(A),T):n(A)}function g(A){return A===null?n(A):A===45?(e.consume(A),y):Ke(A)?(o=g,he(A)):(e.consume(A),g)}function y(A){return A===45?(e.consume(A),T):g(A)}function T(A){return A===62?X(A):A===45?y(A):g(A)}function w(A){const le="CDATA[";return A===le.charCodeAt(l++)?(e.consume(A),l===le.length?x:w):n(A)}function x(A){return A===null?n(A):A===93?(e.consume(A),R):Ke(A)?(o=x,he(A)):(e.consume(A),x)}function R(A){return A===93?(e.consume(A),C):x(A)}function C(A){return A===62?X(A):A===93?(e.consume(A),C):x(A)}function M(A){return A===null||A===62?X(A):Ke(A)?(o=M,he(A)):(e.consume(A),M)}function L(A){return A===null?n(A):A===63?(e.consume(A),$):Ke(A)?(o=L,he(A)):(e.consume(A),L)}function $(A){return A===62?X(A):L(A)}function G(A){return hr(A)?(e.consume(A),z):n(A)}function z(A){return A===45||nr(A)?(e.consume(A),z):ne(A)}function ne(A){return Ke(A)?(o=ne,he(A)):Ot(A)?(e.consume(A),ne):X(A)}function ce(A){return A===45||nr(A)?(e.consume(A),ce):A===47||A===62||en(A)?Q(A):n(A)}function Q(A){return A===47?(e.consume(A),X):A===58||A===95||hr(A)?(e.consume(A),j):Ke(A)?(o=Q,he(A)):Ot(A)?(e.consume(A),Q):X(A)}function j(A){return A===45||A===46||A===58||A===95||nr(A)?(e.consume(A),j):me(A)}function me(A){return A===61?(e.consume(A),J):Ke(A)?(o=me,he(A)):Ot(A)?(e.consume(A),me):Q(A)}function J(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),s=A,se):Ke(A)?(o=J,he(A)):Ot(A)?(e.consume(A),J):(e.consume(A),fe)}function se(A){return A===s?(e.consume(A),s=void 0,pe):A===null?n(A):Ke(A)?(o=se,he(A)):(e.consume(A),se)}function fe(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||en(A)?Q(A):(e.consume(A),fe)}function pe(A){return A===47||A===62||en(A)?Q(A):n(A)}function X(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function he(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),be}function be(A){return Ot(A)?Ct(e,ze,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):ze(A)}function ze(A){return e.enter("htmlTextData"),o(A)}}const np={name:"labelEnd",resolveAll:sx,resolveTo:lx,tokenize:ux},rx={tokenize:ox},ax={tokenize:cx},ix={tokenize:dx};function sx(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",t+=s}}return e.length!==n.length&&Yr(e,0,e.length,n),e}function lx(e,t){let n=e.length,r=0,s,l,o,d;for(;n--;)if(s=e[n][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=n,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(o=n);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},p={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return d=[["enter",f,t],["enter",h,t]],d=ta(d,e.slice(l+1,l+r+3)),d=ta(d,[["enter",p,t]]),d=ta(d,Sd(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),d=ta(d,[["exit",p,t],e[o-2],e[o-1],["exit",h,t]]),d=ta(d,e.slice(o+1)),d=ta(d,[["exit",f,t]]),Yr(e,l,e.length,d),e}function ux(e,t,n){const r=this;let s=r.events.length,l,o;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){l=r.events[s][1];break}return d;function d(y){return l?l._inactive?g(y):(o=r.parser.defined.includes(Ea(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),f):n(y)}function f(y){return y===40?e.attempt(rx,p,o?p:g)(y):y===91?e.attempt(ax,p,o?h:g)(y):o?p(y):g(y)}function h(y){return e.attempt(ix,p,g)(y)}function p(y){return t(y)}function g(y){return l._balanced=!0,n(y)}}function ox(e,t,n){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return en(g)?To(e,l)(g):l(g)}function l(g){return g===41?p(g):ZE(e,o,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function o(g){return en(g)?To(e,f)(g):p(g)}function d(g){return n(g)}function f(g){return g===34||g===39||g===40?e5(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function h(g){return en(g)?To(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function cx(e,t,n){const r=this;return s;function s(d){return JE.call(r,e,l,o,"reference","referenceMarker","referenceString")(d)}function l(d){return r.parser.defined.includes(Ea(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(d):n(d)}function o(d){return n(d)}}function dx(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const fx={name:"labelStartImage",resolveAll:np.resolveAll,tokenize:hx};function hx(e,t,n){const r=this;return s;function s(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),l}function l(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),o):n(d)}function o(d){return d===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(d):t(d)}}const mx={name:"labelStartLink",resolveAll:np.resolveAll,tokenize:px};function px(e,t,n){const r=this;return s;function s(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const n1={name:"lineEnding",tokenize:gx};function gx(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ct(e,t,"linePrefix")}}const q0={name:"thematicBreak",tokenize:bx};function bx(e,t,n){let r=0,s;return l;function l(h){return e.enter("thematicBreak"),o(h)}function o(h){return s=h,d(h)}function d(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):r>=3&&(h===null||Ke(h))?(e.exit("thematicBreak"),t(h)):n(h)}function f(h){return h===s?(e.consume(h),r++,f):(e.exit("thematicBreakSequence"),Ot(h)?Ct(e,d,"whitespace")(h):d(h))}}const Ar={continuation:{tokenize:Tx},exit:Sx,name:"list",tokenize:vx},Ex={partial:!0,tokenize:xx},yx={partial:!0,tokenize:_x};function vx(e,t,n){const r=this,s=r.events[r.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,o=0;return d;function d(T){const w=r.containerState.type||(T===42||T===43||T===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||T===r.containerState.marker:rm(T)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),T===42||T===45?e.check(q0,n,h)(T):h(T);if(!r.interrupt||T===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(T)}return n(T)}function f(T){return rm(T)&&++o<10?(e.consume(T),f):(!r.interrupt||o<2)&&(r.containerState.marker?T===r.containerState.marker:T===41||T===46)?(e.exit("listItemValue"),h(T)):n(T)}function h(T){return e.enter("listItemMarker"),e.consume(T),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||T,e.check(qo,r.interrupt?n:p,e.attempt(Ex,y,g))}function p(T){return r.containerState.initialBlankLine=!0,l++,y(T)}function g(T){return Ot(T)?(e.enter("listItemPrefixWhitespace"),e.consume(T),e.exit("listItemPrefixWhitespace"),y):n(T)}function y(T){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(T)}}function Tx(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(qo,s,l);function s(d){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ct(e,t,"listItemIndent",r.containerState.size+1)(d)}function l(d){return r.containerState.furtherBlankLines||!Ot(d)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(d)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yx,t,o)(d))}function o(d){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ct(e,e.attempt(Ar,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function _x(e,t,n){const r=this;return Ct(e,s,"listItemIndent",r.containerState.size+1);function s(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function Sx(e){e.exit(this.containerState.type)}function xx(e,t,n){const r=this;return Ct(e,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const o=r.events[r.events.length-1];return!Ot(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Zb={name:"setextUnderline",resolveTo:Ax,tokenize:wx};function Ax(e,t){let n=e.length,r,s,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function wx(e,t,n){const r=this;let s;return l;function l(h){let p=r.events.length,g;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){g=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),s=h,o(h)):n(h)}function o(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===s?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),Ot(h)?Ct(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ke(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const Cx={tokenize:kx};function kx(e){const t=this,n=e.attempt(qo,r,e.attempt(this.parser.constructs.flowInitial,s,Ct(e,e.attempt(this.parser.constructs.flow,s,e.attempt(DS,s)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Nx={resolveAll:n5()},Ox=t5("string"),Rx=t5("text");function t5(e){return{resolveAll:n5(e==="text"?Mx:void 0),tokenize:t};function t(n){const r=this,s=this.parser.constructs[e],l=n.attempt(s,o,d);return o;function o(p){return h(p)?l(p):d(p)}function d(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),f}function f(p){return h(p)?(n.exit("data"),l(p)):(n.consume(p),f)}function h(p){if(p===null)return!0;const g=s[p];let y=-1;if(g)for(;++y<g.length;){const T=g[y];if(!T.previous||T.previous.call(r,r.previous))return!0}return!1}}}function n5(e){return t;function t(n,r){let s=-1,l;for(;++s<=n.length;)l===void 0?n[s]&&n[s][1].type==="data"&&(l=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==l+2&&(n[l][1].end=n[s-1][1].end,n.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(n,r):n}}function Mx(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],s=t.sliceStream(r);let l=s.length,o=-1,d=0,f;for(;l--;){const h=s[l];if(typeof h=="string"){for(o=h.length;h.charCodeAt(o-1)===32;)d++,o--;if(o)break;o=-1}else if(h===-2)f=!0,d++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(d=0),d){const h={type:n===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-d,offset:r.end.offset-d},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const Dx={42:Ar,43:Ar,45:Ar,48:Ar,49:Ar,50:Ar,51:Ar,52:Ar,53:Ar,54:Ar,55:Ar,56:Ar,57:Ar,62:$E},Ix={91:US},Lx={[-2]:t1,[-1]:t1,32:t1},Bx={35:YS,42:q0,45:[Zb,q0],60:$S,61:Zb,95:q0,96:Xb,126:Xb},Px={38:XE,92:WE},Ux={[-5]:n1,[-4]:n1,[-3]:n1,33:fx,38:XE,42:am,60:[mS,tx],91:mx,92:[qS,WE],93:np,95:am,96:CS},zx={null:[am,Nx]},Fx={null:[42,95]},Hx={null:[]},qx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Fx,contentInitial:Ix,disable:Hx,document:Dx,flow:Bx,flowInitial:Lx,insideSpan:zx,string:Px,text:Ux},Symbol.toStringTag,{value:"Module"}));function jx(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},l=[];let o=[],d=[];const f={attempt:ne(G),check:ne(z),consume:M,enter:L,exit:$,interrupt:ne(z,{interrupt:!0})},h={code:null,containerState:{},defineSkip:x,events:[],now:w,parser:e,previous:null,sliceSerialize:y,sliceStream:T,write:g};let p=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function g(me){return o=ta(o,me),R(),o[o.length-1]!==null?[]:(ce(t,0),h.events=Sd(l,h.events,h),h.events)}function y(me,J){return Gx(T(me),J)}function T(me){return Yx(o,me)}function w(){const{_bufferIndex:me,_index:J,line:se,column:fe,offset:pe}=r;return{_bufferIndex:me,_index:J,line:se,column:fe,offset:pe}}function x(me){s[me.line]=me.column,j()}function R(){let me;for(;r._index<o.length;){const J=o[r._index];if(typeof J=="string")for(me=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===me&&r._bufferIndex<J.length;)C(J.charCodeAt(r._bufferIndex));else C(J)}}function C(me){p=p(me)}function M(me){Ke(me)?(r.line++,r.column=1,r.offset+=me===-3?2:1,j()):me!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=me}function L(me,J){const se=J||{};return se.type=me,se.start=w(),h.events.push(["enter",se,h]),d.push(se),se}function $(me){const J=d.pop();return J.end=w(),h.events.push(["exit",J,h]),J}function G(me,J){ce(me,J.from)}function z(me,J){J.restore()}function ne(me,J){return se;function se(fe,pe,X){let he,be,ze,A;return Array.isArray(fe)?ye(fe):"tokenize"in fe?ye([fe]):le(fe);function le(Be){return Mt;function Mt(ot){const Qt=ot!==null&&Be[ot],Ft=ot!==null&&Be.null,An=[...Array.isArray(Qt)?Qt:Qt?[Qt]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return ye(An)(ot)}}function ye(Be){return he=Be,be=0,Be.length===0?X:D(Be[be])}function D(Be){return Mt;function Mt(ot){return A=Q(),ze=Be,Be.partial||(h.currentConstruct=Be),Be.name&&h.parser.constructs.disable.null.includes(Be.name)?Ve():Be.tokenize.call(J?Object.assign(Object.create(h),J):h,f,Ie,Ve)(ot)}}function Ie(Be){return me(ze,A),pe}function Ve(Be){return A.restore(),++be<he.length?D(he[be]):X}}}function ce(me,J){me.resolveAll&&!l.includes(me)&&l.push(me),me.resolve&&Yr(h.events,J,h.events.length-J,me.resolve(h.events.slice(J),h)),me.resolveTo&&(h.events=me.resolveTo(h.events,h))}function Q(){const me=w(),J=h.previous,se=h.currentConstruct,fe=h.events.length,pe=Array.from(d);return{from:fe,restore:X};function X(){r=me,h.previous=J,h.currentConstruct=se,h.events.length=fe,d=pe,j()}}function j(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function Yx(e,t){const n=t.start._index,r=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let o;if(n===s)o=[e[n].slice(r,l)];else{if(o=e.slice(n,s),r>-1){const d=o[0];typeof d=="string"?o[0]=d.slice(r):o.shift()}l>0&&o.push(e[s].slice(0,l))}return o}function Gx(e,t){let n=-1;const r=[];let s;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
62
+ `;break}case-3:{o=`\r
63
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&s)continue;o=" ";break}default:o=String.fromCharCode(l)}s=l===-2,r.push(o)}return r.join("")}function Vx(e){const r={constructs:VE([qx,...(e||{}).extensions||[]]),content:s(lS),defined:[],document:s(oS),flow:s(Cx),lazy:{},string:s(Ox),text:s(Rx)};return r;function s(l){return o;function o(d){return jx(r,l,d)}}}function Kx(e){for(;!QE(e););return e}const Jb=/[\0\t\n\r]/g;function $x(){let e=1,t="",n=!0,r;return s;function s(l,o,d){const f=[];let h,p,g,y,T;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),g=0,t="",n&&(l.charCodeAt(0)===65279&&g++,n=void 0);g<l.length;){if(Jb.lastIndex=g,h=Jb.exec(l),y=h&&h.index!==void 0?h.index:l.length,T=l.charCodeAt(y),!h){t=l.slice(g);break}if(T===10&&g===y&&r)f.push(-3),r=void 0;else switch(r&&(f.push(-5),r=void 0),g<y&&(f.push(l.slice(g,y)),e+=y-g),T){case 0:{f.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,f.push(-2);e++<p;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:r=!0,e=1}g=y+1}return d&&(r&&f.push(-5),t&&f.push(t),f.push(null)),f}}const Wx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xx(e){return e.replace(Wx,Qx)}function Qx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return KE(n.slice(l?2:1),l?16:10)}return tp(n)||e}const r5={}.hasOwnProperty;function Zx(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Jx(n)(Kx(Vx(n).document().write($x()(e,t,!0))))}function Jx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(xt),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:l(Rt),blockQuote:l(Ft),characterEscape:Q,characterReference:Q,codeFenced:l(An),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(An,o),codeText:l(at,o),codeTextData:Q,data:Q,codeFlowValue:Q,definition:l(Qe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(it),hardBreakEscape:l(qe),hardBreakTrailing:l(qe),htmlFlow:l(ht,o),htmlFlowData:Q,htmlText:l(ht,o),htmlTextData:Q,image:l(jt),label:o,link:l(xt),listItem:l(Ze),listItemValue:y,listOrdered:l(lt,g),listUnordered:l(lt),paragraph:l(Zt),reference:D,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Rt),strong:l(tt),thematicBreak:l(_t)},exit:{atxHeading:f(),atxHeadingSequence:G,autolink:f(),autolinkEmail:Qt,autolinkProtocol:ot,blockQuote:f(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:Ve,characterReferenceMarkerNumeric:Ve,characterReferenceValue:Be,characterReference:Mt,codeFenced:f(R),codeFencedFence:x,codeFencedFenceInfo:T,codeFencedFenceMeta:w,codeFlowValue:j,codeIndented:f(C),codeText:f(pe),codeTextData:j,data:j,definition:f(),definitionDestinationString:$,definitionLabelString:M,definitionTitleString:L,emphasis:f(),hardBreakEscape:f(J),hardBreakTrailing:f(J),htmlFlow:f(se),htmlFlowData:j,htmlText:f(fe),htmlTextData:j,image:f(he),label:ze,labelText:be,lineEnding:me,link:f(X),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:Ie,resourceDestinationString:A,resourceTitleString:le,resource:ye,setextHeading:f(ce),setextHeadingLineSequence:ne,setextHeadingText:z,strong:f(),thematicBreak:f()}};a5(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(re){let xe={type:"root",children:[]};const $e={stack:[xe],tokenStack:[],config:t,enter:d,exit:h,buffer:o,resume:p,data:n},Je=[];let Ut=-1;for(;++Ut<re.length;)if(re[Ut][1].type==="listOrdered"||re[Ut][1].type==="listUnordered")if(re[Ut][0]==="enter")Je.push(Ut);else{const ir=Je.pop();Ut=s(re,ir,Ut)}for(Ut=-1;++Ut<re.length;){const ir=t[re[Ut][0]];r5.call(ir,re[Ut][1].type)&&ir[re[Ut][1].type].call(Object.assign({sliceSerialize:re[Ut][2].sliceSerialize},$e),re[Ut][1])}if($e.tokenStack.length>0){const ir=$e.tokenStack[$e.tokenStack.length-1];(ir[1]||e3).call($e,void 0,ir[0])}for(xe.position={start:Zi(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:Zi(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Ut=-1;++Ut<t.transforms.length;)xe=t.transforms[Ut](xe)||xe;return xe}function s(re,xe,$e){let Je=xe-1,Ut=-1,ir=!1,oa,Qn,Nr,sr;for(;++Je<=$e;){const On=re[Je];switch(On[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{On[0]==="enter"?Ut++:Ut--,sr=void 0;break}case"lineEndingBlank":{On[0]==="enter"&&(oa&&!sr&&!Ut&&!Nr&&(Nr=Je),sr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sr=void 0}if(!Ut&&On[0]==="enter"&&On[1].type==="listItemPrefix"||Ut===-1&&On[0]==="exit"&&(On[1].type==="listUnordered"||On[1].type==="listOrdered")){if(oa){let Er=Je;for(Qn=void 0;Er--;){const lr=re[Er];if(lr[1].type==="lineEnding"||lr[1].type==="lineEndingBlank"){if(lr[0]==="exit")continue;Qn&&(re[Qn][1].type="lineEndingBlank",ir=!0),lr[1].type="lineEnding",Qn=Er}else if(!(lr[1].type==="linePrefix"||lr[1].type==="blockQuotePrefix"||lr[1].type==="blockQuotePrefixWhitespace"||lr[1].type==="blockQuoteMarker"||lr[1].type==="listItemIndent"))break}Nr&&(!Qn||Nr<Qn)&&(oa._spread=!0),oa.end=Object.assign({},Qn?re[Qn][1].start:On[1].end),re.splice(Qn||Je,0,["exit",oa,On[2]]),Je++,$e++}if(On[1].type==="listItemPrefix"){const Er={type:"listItem",_spread:!1,start:Object.assign({},On[1].start),end:void 0};oa=Er,re.splice(Je,0,["enter",Er,On[2]]),Je++,$e++,Nr=void 0,sr=!0}}}return re[xe][1]._spread=ir,$e}function l(re,xe){return $e;function $e(Je){d.call(this,re(Je),Je),xe&&xe.call(this,Je)}}function o(){this.stack.push({type:"fragment",children:[]})}function d(re,xe,$e){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([xe,$e||void 0]),re.position={start:Zi(xe.start),end:void 0}}function f(re){return xe;function xe($e){re&&re.call(this,$e),h.call(this,$e)}}function h(re,xe){const $e=this.stack.pop(),Je=this.tokenStack.pop();if(Je)Je[0].type!==re.type&&(xe?xe.call(this,re,Je[0]):(Je[1]||e3).call(this,re,Je[0]));else throw new Error("Cannot close `"+re.type+"` ("+vo({start:re.start,end:re.end})+"): it’s not open");$e.position.end=Zi(re.end)}function p(){return ep(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function y(re){if(this.data.expectingFirstListItemValue){const xe=this.stack[this.stack.length-2];xe.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function T(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.lang=re}function w(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.meta=re}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.value=re.replace(/(\r?\n|\r)$/g,"")}function M(re){const xe=this.resume(),$e=this.stack[this.stack.length-1];$e.label=xe,$e.identifier=Ea(this.sliceSerialize(re)).toLowerCase()}function L(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.title=re}function $(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.url=re}function G(re){const xe=this.stack[this.stack.length-1];if(!xe.depth){const $e=this.sliceSerialize(re).length;xe.depth=$e}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function ne(re){const xe=this.stack[this.stack.length-1];xe.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function ce(){this.data.setextHeadingSlurpLineEnding=void 0}function Q(re){const $e=this.stack[this.stack.length-1].children;let Je=$e[$e.length-1];(!Je||Je.type!=="text")&&(Je=Tt(),Je.position={start:Zi(re.start),end:void 0},$e.push(Je)),this.stack.push(Je)}function j(re){const xe=this.stack.pop();xe.value+=this.sliceSerialize(re),xe.position.end=Zi(re.end)}function me(re){const xe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $e=xe.children[xe.children.length-1];$e.position.end=Zi(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(xe.type)&&(Q.call(this,re),j.call(this,re))}function J(){this.data.atHardBreak=!0}function se(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.value=re}function fe(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.value=re}function pe(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.value=re}function X(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=xe,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function he(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=xe,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function be(re){const xe=this.sliceSerialize(re),$e=this.stack[this.stack.length-2];$e.label=Xx(xe),$e.identifier=Ea(xe).toLowerCase()}function ze(){const re=this.stack[this.stack.length-1],xe=this.resume(),$e=this.stack[this.stack.length-1];if(this.data.inReference=!0,$e.type==="link"){const Je=re.children;$e.children=Je}else $e.alt=xe}function A(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.url=re}function le(){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.title=re}function ye(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function Ie(re){const xe=this.resume(),$e=this.stack[this.stack.length-1];$e.label=xe,$e.identifier=Ea(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function Ve(re){this.data.characterReferenceType=re.type}function Be(re){const xe=this.sliceSerialize(re),$e=this.data.characterReferenceType;let Je;$e?(Je=KE(xe,$e==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Je=tp(xe);const Ut=this.stack[this.stack.length-1];Ut.value+=Je}function Mt(re){const xe=this.stack.pop();xe.position.end=Zi(re.end)}function ot(re){j.call(this,re);const xe=this.stack[this.stack.length-1];xe.url=this.sliceSerialize(re)}function Qt(re){j.call(this,re);const xe=this.stack[this.stack.length-1];xe.url="mailto:"+this.sliceSerialize(re)}function Ft(){return{type:"blockquote",children:[]}}function An(){return{type:"code",lang:null,meta:null,value:""}}function at(){return{type:"inlineCode",value:""}}function Qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function it(){return{type:"emphasis",children:[]}}function Rt(){return{type:"heading",depth:0,children:[]}}function qe(){return{type:"break"}}function ht(){return{type:"html",value:""}}function jt(){return{type:"image",title:null,url:"",alt:null}}function xt(){return{type:"link",title:null,url:"",children:[]}}function lt(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function Ze(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function Zt(){return{type:"paragraph",children:[]}}function tt(){return{type:"strong",children:[]}}function Tt(){return{type:"text",value:""}}function _t(){return{type:"thematicBreak"}}}function Zi(e){return{line:e.line,column:e.column,offset:e.offset}}function a5(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?a5(e,r):eA(e,r)}}function eA(e,t){let n;for(n in t)if(r5.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function e3(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+vo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+vo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+vo({start:t.start,end:t.end})+") is still open")}function tA(e){const t=this;t.parser=n;function n(r){return Zx(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function nA(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function rA(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
64
+ `}]}function aA(e,t){const n=t.value?t.value+`
65
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function iA(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sA(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lA(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),s=eu(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,d=e.footnoteCounts.get(r);d===void 0?(d=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,d+=1,e.footnoteCounts.set(r,d);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function uA(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oA(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function i5(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const o=s[s.length-1];return o&&o.type==="text"?o.value+=r:s.push({type:"text",value:r}),s}function cA(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return i5(e,t);const s={src:eu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function dA(e,t){const n={src:eu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function fA(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function hA(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return i5(e,t);const s={href:eu(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function mA(e,t){const n={href:eu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pA(e,t,n){const r=e.all(t),s=n?gA(n):s5(t),l={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let d=-1;for(;++d<r.length;){const p=r[d];(s||d!==0||p.type!=="element"||p.tagName!=="p")&&o.push({type:"text",value:`
66
+ `}),p.type==="element"&&p.tagName==="p"&&!s?o.push(...p.children):o.push(p)}const f=r[r.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
67
+ `});const h={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,h),e.applyData(t,h)}function gA(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=s5(n[r])}return t}function s5(e){const t=e.spread;return t??e.children.length>1}function bA(e,t){const n={},r=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<r.length;){const o=r[s];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function EA(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yA(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function vA(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function TA(e,t){const n=e.all(t),r=n.shift(),s=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),s.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},d=Pa(t.children[1]),f=Td(t.children[t.children.length-1]);d&&f&&(o.position={start:d,end:f}),s.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function _A(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,d=o?o.length:t.children.length;let f=-1;const h=[];for(;++f<d;){const g=t.children[f],y={},T=o?o[f]:void 0;T&&(y.align=T);let w={type:"element",tagName:l,properties:y,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),h.push(w)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,p),e.applyData(t,p)}function SA(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const t3=9,n3=32;function xA(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),s=0;const l=[];for(;r;)l.push(r3(t.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=n.exec(t);return l.push(r3(t.slice(s),s>0,!1)),l.join("")}function r3(e,t,n){let r=0,s=e.length;if(t){let l=e.codePointAt(r);for(;l===t3||l===n3;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(s-1);for(;l===t3||l===n3;)s--,l=e.codePointAt(s-1)}return s>r?e.slice(r,s):""}function AA(e,t){const n={type:"text",value:xA(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function wA(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const CA={blockquote:nA,break:rA,code:aA,delete:iA,emphasis:sA,footnoteReference:lA,heading:uA,html:oA,imageReference:cA,image:dA,inlineCode:fA,linkReference:hA,link:mA,listItem:pA,list:bA,paragraph:EA,root:yA,strong:vA,table:TA,tableCell:SA,tableRow:_A,text:AA,thematicBreak:wA,toml:m0,yaml:m0,definition:m0,footnoteDefinition:m0};function m0(){}const l5=-1,xd=0,_o=1,ed=2,rp=3,ap=4,ip=5,sp=6,u5=7,o5=8,a3=typeof self=="object"?self:globalThis,kA=(e,t)=>{const n=(s,l)=>(e.set(l,s),s),r=s=>{if(e.has(s))return e.get(s);const[l,o]=t[s];switch(l){case xd:case l5:return n(o,s);case _o:{const d=n([],s);for(const f of o)d.push(r(f));return d}case ed:{const d=n({},s);for(const[f,h]of o)d[r(f)]=r(h);return d}case rp:return n(new Date(o),s);case ap:{const{source:d,flags:f}=o;return n(new RegExp(d,f),s)}case ip:{const d=n(new Map,s);for(const[f,h]of o)d.set(r(f),r(h));return d}case sp:{const d=n(new Set,s);for(const f of o)d.add(r(f));return d}case u5:{const{name:d,message:f}=o;return n(new a3[d](f),s)}case o5:return n(BigInt(o),s);case"BigInt":return n(Object(BigInt(o)),s);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:d}=new Uint8Array(o);return n(new DataView(d),o)}}return n(new a3[l](o),s)};return r},i3=e=>kA(new Map,e)(0),Dl="",{toString:NA}={},{keys:OA}=Object,ho=e=>{const t=typeof e;if(t!=="object"||!e)return[xd,t];const n=NA.call(e).slice(8,-1);switch(n){case"Array":return[_o,Dl];case"Object":return[ed,Dl];case"Date":return[rp,Dl];case"RegExp":return[ap,Dl];case"Map":return[ip,Dl];case"Set":return[sp,Dl];case"DataView":return[_o,n]}return n.includes("Array")?[_o,n]:n.includes("Error")?[u5,n]:[ed,n]},p0=([e,t])=>e===xd&&(t==="function"||t==="symbol"),RA=(e,t,n,r)=>{const s=(o,d)=>{const f=r.push(o)-1;return n.set(d,f),f},l=o=>{if(n.has(o))return n.get(o);let[d,f]=ho(o);switch(d){case xd:{let p=o;switch(f){case"bigint":d=o5,p=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);p=null;break;case"undefined":return s([l5],o)}return s([d,p],o)}case _o:{if(f){let y=o;return f==="DataView"?y=new Uint8Array(o.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(o)),s([f,[...y]],o)}const p=[],g=s([d,p],o);for(const y of o)p.push(l(y));return g}case ed:{if(f)switch(f){case"BigInt":return s([f,o.toString()],o);case"Boolean":case"Number":case"String":return s([f,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const p=[],g=s([d,p],o);for(const y of OA(o))(e||!p0(ho(o[y])))&&p.push([l(y),l(o[y])]);return g}case rp:return s([d,o.toISOString()],o);case ap:{const{source:p,flags:g}=o;return s([d,{source:p,flags:g}],o)}case ip:{const p=[],g=s([d,p],o);for(const[y,T]of o)(e||!(p0(ho(y))||p0(ho(T))))&&p.push([l(y),l(T)]);return g}case sp:{const p=[],g=s([d,p],o);for(const y of o)(e||!p0(ho(y)))&&p.push(l(y));return g}}const{message:h}=o;return s([d,{name:f,message:h}],o)};return l},s3=(e,{json:t,lossy:n}={})=>{const r=[];return RA(!(t||n),!!t,new Map,r)(e),r},Gl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?i3(s3(e,t)):structuredClone(e):(e,t)=>i3(s3(e,t));function MA(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function DA(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function IA(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||MA,r=e.options.footnoteBackLabel||DA,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const p=e.all(h),g=String(h.identifier).toUpperCase(),y=eu(g.toLowerCase());let T=0;const w=[],x=e.footnoteCounts.get(g);for(;x!==void 0&&++T<=x;){w.length>0&&w.push({type:"text",value:" "});let M=typeof n=="string"?n:n(f,T);typeof M=="string"&&(M={type:"text",value:M}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(T>1?"-"+T:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(f,T),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const R=p[p.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const M=R.children[R.children.length-1];M&&M.type==="text"?M.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...w)}else p.push(...w);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(p,!0)};e.patch(h,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Gl(o),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
68
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
69
+ `}]}}const jo=function(e){if(e==null)return UA;if(typeof e=="function")return Ad(e);if(typeof e=="object")return Array.isArray(e)?LA(e):BA(e);if(typeof e=="string")return PA(e);throw new Error("Expected function, string, or object as test")};function LA(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=jo(e[n]);return Ad(r);function r(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function BA(e){const t=e;return Ad(n);function n(r){const s=r;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function PA(e){return Ad(t);function t(n){return n&&n.type===e}}function Ad(e){return t;function t(n,r,s){return!!(zA(n)&&e.call(this,n,typeof r=="number"?r:void 0,s||void 0))}}function UA(){return!0}function zA(e){return e!==null&&typeof e=="object"&&"type"in e}const c5=[],FA=!0,im=!1,d5="skip";function lp(e,t,n,r){let s;typeof t=="function"&&typeof n!="function"?(r=n,n=t):s=t;const l=jo(s),o=r?-1:1;d(e,void 0,[])();function d(f,h,p){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const T=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(T?"<"+T+">":""))+")"})}return y;function y(){let T=c5,w,x,R;if((!t||l(f,h,p[p.length-1]||void 0))&&(T=HA(n(f,p)),T[0]===im))return T;if("children"in f&&f.children){const C=f;if(C.children&&T[0]!==d5)for(x=(r?C.children.length:-1)+o,R=p.concat(C);x>-1&&x<C.children.length;){const M=C.children[x];if(w=d(M,x,R)(),w[0]===im)return w;x=typeof w[1]=="number"?w[1]:x+o}}return T}}}function HA(e){return Array.isArray(e)?e:typeof e=="number"?[FA,e]:e==null?c5:[e]}function Yo(e,t,n,r){let s,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,s=n):(l=t,o=n,s=r),lp(e,l,d,s);function d(f,h){const p=h[h.length-1],g=p?p.children.indexOf(f):void 0;return o(f,g,p)}}const sm={}.hasOwnProperty,qA={};function jA(e,t){const n=t||qA,r=new Map,s=new Map,l=new Map,o={...CA,...n.handlers},d={all:h,applyData:GA,definitionById:r,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:o,one:f,options:n,patch:YA,wrap:KA};return Yo(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?r:s,y=String(p.identifier).toUpperCase();g.has(y)||g.set(y,p)}}),d;function f(p,g){const y=p.type,T=d.handlers[y];if(sm.call(d.handlers,y)&&T)return T(d,p,g);if(d.options.passThrough&&d.options.passThrough.includes(y)){if("children"in p){const{children:x,...R}=p,C=Gl(R);return C.children=d.all(p),C}return Gl(p)}return(d.options.unknownHandler||VA)(d,p,g)}function h(p){const g=[];if("children"in p){const y=p.children;let T=-1;for(;++T<y.length;){const w=d.one(y[T],p);if(w){if(T&&y[T-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=l3(w.value)),!Array.isArray(w)&&w.type==="element")){const x=w.children[0];x&&x.type==="text"&&(x.value=l3(x.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function YA(e,t){e.position&&(t.position=D_(e))}function GA(e,t){let n=t;if(e&&e.data){const r=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,Gl(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function VA(e,t){const n=t.data||{},r="value"in t&&!(sm.call(n,"hProperties")||sm.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function KA(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
70
+ `});++r<e.length;)r&&n.push({type:"text",value:`
71
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
72
+ `}),n}function l3(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function u3(e,t){const n=jA(e,t),r=n.one(e,void 0),s=IA(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
73
+ `},s),l}function $A(e,t){return e&&"run"in e?async function(n,r){const s=u3(n,{file:r,...t});await e.run(s,r)}:function(n,r){return u3(n,{file:r,...e||t})}}function o3(e){if(e)throw e}var r1,c3;function WA(){if(c3)return r1;c3=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var p=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!p&&!g)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},o=function(h,p){n&&p.name==="__proto__"?n(h,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):h[p.name]=p.newValue},d=function(h,p){if(p==="__proto__")if(e.call(h,p)){if(r)return r(h,p).value}else return;return h[p]};return r1=function f(){var h,p,g,y,T,w,x=arguments[0],R=1,C=arguments.length,M=!1;for(typeof x=="boolean"&&(M=x,x=arguments[1]||{},R=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});R<C;++R)if(h=arguments[R],h!=null)for(p in h)g=d(x,p),y=d(h,p),x!==y&&(M&&y&&(l(y)||(T=s(y)))?(T?(T=!1,w=g&&s(g)?g:[]):w=g&&l(g)?g:{},o(x,{name:p,newValue:f(M,w,y)})):typeof y<"u"&&o(x,{name:p,newValue:y}));return x},r1}var XA=WA();const a1=gd(XA);function lm(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function QA(){const e=[],t={run:n,use:r};return t;function n(...s){let l=-1;const o=s.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);d(null,...s);function d(f,...h){const p=e[++l];let g=-1;if(f){o(f);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,p?ZA(p,d)(...h):o(null,...h)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function ZA(e,t){let n;return r;function r(...o){const d=e.length>o.length;let f;d&&o.push(s);try{f=e.apply(this,o)}catch(h){const p=h;if(d&&n)throw p;return s(p)}d||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(o,...d){n||(n=!0,t(o,...d))}function l(o){s(null,o)}}const Oa={basename:JA,dirname:ew,extname:tw,join:nw,sep:"/"};function JA(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Go(e);let n=0,r=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else r<0&&(l=!0,r=s+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,d=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else o<0&&(l=!0,o=s+1),d>-1&&(e.codePointAt(s)===t.codePointAt(d--)?d<0&&(r=s):(d=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function ew(e){if(Go(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function tw(e){Go(e);let t=e.length,n=-1,r=0,s=-1,l=0,o;for(;t--;){const d=e.codePointAt(t);if(d===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),d===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||n<0||l===0||l===1&&s===n-1&&s===r+1?"":e.slice(s,n)}function nw(...e){let t=-1,n;for(;++t<e.length;)Go(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":rw(n)}function rw(e){Go(e);const t=e.codePointAt(0)===47;let n=aw(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function aw(e,t){let n="",r=0,s=-1,l=0,o=-1,d,f;for(;++o<=e.length;){if(o<e.length)d=e.codePointAt(o);else{if(d===47)break;d=47}if(d===47){if(!(s===o-1||l===1))if(s!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",r=0):(n=n.slice(0,f),r=n.length-1-n.lastIndexOf("/")),s=o,l=0;continue}}else if(n.length>0){n="",r=0,s=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(s+1,o):n=e.slice(s+1,o),r=o-s-1;s=o,l=0}else d===46&&l>-1?l++:l=-1}return n}function Go(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iw={cwd:sw};function sw(){return"/"}function um(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lw(e){if(typeof e=="string")e=new URL(e);else if(!um(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return uw(e)}function uw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const i1=["history","path","basename","stem","extname","dirname"];class f5{constructor(t){let n;t?um(t)?n={path:t}:typeof t=="string"||ow(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":iw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<i1.length;){const l=i1[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let s;for(s in n)i1.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Oa.basename(this.path):void 0}set basename(t){l1(t,"basename"),s1(t,"basename"),this.path=Oa.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Oa.dirname(this.path):void 0}set dirname(t){d3(this.basename,"dirname"),this.path=Oa.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Oa.extname(this.path):void 0}set extname(t){if(s1(t,"extname"),d3(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=Oa.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){um(t)&&(t=lw(t)),l1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Oa.basename(this.path,this.extname):void 0}set stem(t){l1(t,"stem"),s1(t,"stem"),this.path=Oa.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const s=this.message(t,n,r);throw s.fatal=!0,s}info(t,n,r){const s=this.message(t,n,r);return s.fatal=void 0,s}message(t,n,r){const s=new rr(t,n,r);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function s1(e,t){if(e&&e.includes(Oa.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Oa.sep+"`")}function l1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d3(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ow(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cw=function(e){const r=this.constructor.prototype,s=r[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},dw={}.hasOwnProperty;class up extends cw{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=QA()}copy(){const t=new up;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(a1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(c1("data",this.frozen),this.namespace[t]=n,this):dw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(c1("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=n.call(t,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=g0(t),r=this.parser||this.Parser;return u1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),u1("process",this.parser||this.Parser),o1("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(l,o){const d=g0(t),f=r.parse(d);r.run(f,d,function(p,g,y){if(p||!g||!y)return h(p);const T=g,w=r.stringify(T,y);mw(w)?y.value=w:y.result=w,h(p,y)});function h(p,g){p||!g?o(p):l?l(g):n(void 0,g)}}}processSync(t){let n=!1,r;return this.freeze(),u1("processSync",this.parser||this.Parser),o1("processSync",this.compiler||this.Compiler),this.process(t,s),h3("processSync","process",n),r;function s(l,o){n=!0,o3(l),r=o}}run(t,n,r){f3(t),this.freeze();const s=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,d){const f=g0(n);s.run(t,f,h);function h(p,g,y){const T=g||t;p?d(p):o?o(T):r(void 0,T,y)}}}runSync(t,n){let r=!1,s;return this.run(t,n,l),h3("runSync","run",r),s;function l(o,d){o3(o),s=d,r=!0}}stringify(t,n){this.freeze();const r=g0(n),s=this.compiler||this.Compiler;return o1("stringify",s),f3(t),s(t,r)}use(t,...n){const r=this.attachers,s=this.namespace;if(c1("use",this.frozen),t!=null)if(typeof t=="function")f(t,n);else if(typeof t=="object")Array.isArray(t)?d(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[p,...g]=h;f(p,g)}else o(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function o(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(s.settings=a1(!0,s.settings,h.settings))}function d(h){let p=-1;if(h!=null)if(Array.isArray(h))for(;++p<h.length;){const g=h[p];l(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,p){let g=-1,y=-1;for(;++g<r.length;)if(r[g][0]===h){y=g;break}if(y===-1)r.push([h,...p]);else if(p.length>0){let[T,...w]=p;const x=r[y][1];lm(x)&&lm(T)&&(T=a1(!0,x,T)),r[y]=[h,T,...w]}}}}const fw=new up().freeze();function u1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function o1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function c1(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function f3(e){if(!lm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function h3(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function g0(e){return hw(e)?e:new f5(e)}function hw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mw(e){return typeof e=="string"||pw(e)}function pw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",m3=[],p3={allowDangerousHtml:!0},bw=/^(https?|ircs?|mailto|xmpp)$/i,Ew=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yw(e){const t=vw(e),n=Tw(e);return _w(t.runSync(t.parse(n),n),e)}function vw(e){const t=e.rehypePlugins||m3,n=e.remarkPlugins||m3,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...p3}:p3;return fw().use(tA).use(n).use($A,r).use(t)}function Tw(e){const t=e.children||"",n=new f5;return typeof t=="string"&&(n.value=t),n}function _w(e,t){const n=t.allowedElements,r=t.allowElement,s=t.components,l=t.disallowedElements,o=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||Sw;for(const p of Ew)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+gw+p.id,void 0);return Yo(e,h),U_(e,{Fragment:P.Fragment,components:s,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function h(p,g,y){if(p.type==="raw"&&y&&typeof g=="number")return o?y.children.splice(g,1):y.children[g]={type:"text",value:p.value},g;if(p.type==="element"){let T;for(T in e1)if(Object.hasOwn(e1,T)&&Object.hasOwn(p.properties,T)){const w=p.properties[T],x=e1[T];(x===null||x.includes(p.tagName))&&(p.properties[T]=f(String(w||""),T,p))}}if(p.type==="element"){let T=n?!n.includes(p.tagName):l?l.includes(p.tagName):!1;if(!T&&r&&typeof g=="number"&&(T=!r(p,g,y)),T&&y&&typeof g=="number")return d&&p.children?y.children.splice(g,1,...p.children):y.children.splice(g,1),g}}}function Sw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||r!==-1&&t>r||bw.test(e.slice(0,t))?e:""}function g3(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;s!==-1;)r++,s=n.indexOf(t,s+t.length);return r}function xw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Aw(e,t,n){const s=jo((n||{}).ignore||[]),l=ww(t);let o=-1;for(;++o<l.length;)lp(e,"text",d);function d(h,p){let g=-1,y;for(;++g<p.length;){const T=p[g],w=y?y.children:void 0;if(s(T,w?w.indexOf(T):void 0,y))return;y=T}if(y)return f(h,p)}function f(h,p){const g=p[p.length-1],y=l[o][0],T=l[o][1];let w=0;const R=g.children.indexOf(h);let C=!1,M=[];y.lastIndex=0;let L=y.exec(h.value);for(;L;){const $=L.index,G={index:L.index,input:L.input,stack:[...p,h]};let z=T(...L,G);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?y.lastIndex=$+1:(w!==$&&M.push({type:"text",value:h.value.slice(w,$)}),Array.isArray(z)?M.push(...z):z&&M.push(z),w=$+L[0].length,C=!0),!y.global)break;L=y.exec(h.value)}return C?(w<h.value.length&&M.push({type:"text",value:h.value.slice(w)}),g.children.splice(R,1,...M)):M=[h],R+M.length}}function ww(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const s=n[r];t.push([Cw(s[0]),kw(s[1])])}return t}function Cw(e){return typeof e=="string"?new RegExp(xw(e),"g"):e}function kw(e){return typeof e=="function"?e:function(){return e}}const d1="phrasing",f1=["autolink","link","image","label"];function Nw(){return{transforms:[Bw],enter:{literalAutolink:Rw,literalAutolinkEmail:h1,literalAutolinkHttp:h1,literalAutolinkWww:h1},exit:{literalAutolink:Lw,literalAutolinkEmail:Iw,literalAutolinkHttp:Mw,literalAutolinkWww:Dw}}}function Ow(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:d1,notInConstruct:f1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:d1,notInConstruct:f1},{character:":",before:"[ps]",after:"\\/",inConstruct:d1,notInConstruct:f1}]}}function Rw(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function h1(e){this.config.enter.autolinkProtocol.call(this,e)}function Mw(e){this.config.exit.autolinkProtocol.call(this,e)}function Dw(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Iw(e){this.config.exit.autolinkEmail.call(this,e)}function Lw(e){this.exit(e)}function Bw(e){Aw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Pw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Uw]],{ignore:["link","linkReference"]})}function Pw(e,t,n,r,s){let l="";if(!h5(s)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!zw(n)))return!1;const o=Fw(n+r);if(!o[0])return!1;const d={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[d,{type:"text",value:o[1]}]:d}function Uw(e,t,n,r){return!h5(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function zw(e){const t=e.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 Fw(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const s=g3(e,"(");let l=g3(e,")");for(;r!==-1&&s>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function h5(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Gs(n)||_d(n))&&(!t||n!==47)}m5.peek=Ww;function Hw(){this.buffer()}function qw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function jw(){this.buffer()}function Yw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Gw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ea(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Vw(e){this.exit(e)}function Kw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ea(this.sliceSerialize(e)).toLowerCase(),n.label=t}function $w(e){this.exit(e)}function Ww(){return"["}function m5(e,t,n,r){const s=n.createTracker(r);let l=s.move("[^");const o=n.enter("footnoteReference"),d=n.enter("reference");return l+=s.move(n.safe(n.associationId(e),{after:"]",before:l})),d(),o(),l+=s.move("]"),l}function Xw(){return{enter:{gfmFootnoteCallString:Hw,gfmFootnoteCall:qw,gfmFootnoteDefinitionLabelString:jw,gfmFootnoteDefinition:Yw},exit:{gfmFootnoteCallString:Gw,gfmFootnoteCall:Vw,gfmFootnoteDefinitionLabelString:Kw,gfmFootnoteDefinition:$w}}}function Qw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:m5},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,s,l,o){const d=l.createTracker(o);let f=d.move("[^");const h=l.enter("footnoteDefinition"),p=l.enter("label");return f+=d.move(l.safe(l.associationId(r),{before:f,after:"]"})),p(),f+=d.move("]:"),r.children&&r.children.length>0&&(d.shift(4),f+=d.move((t?`
74
+ `:" ")+l.indentLines(l.containerFlow(r,d.current()),t?p5:Zw))),h(),f}}function Zw(e,t,n){return t===0?e:p5(e,t,n)}function p5(e,t,n){return(n?"":" ")+e}const Jw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];g5.peek=aC;function eC(){return{canContainEols:["delete"],enter:{strikethrough:nC},exit:{strikethrough:rC}}}function tC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Jw}],handlers:{delete:g5}}}function nC(e){this.enter({type:"delete",children:[]},e)}function rC(e){this.exit(e)}function g5(e,t,n,r){const s=n.createTracker(r),l=n.enter("strikethrough");let o=s.move("~~");return o+=n.containerPhrasing(e,{...s.current(),before:o,after:"~"}),o+=s.move("~~"),l(),o}function aC(){return"~"}function iC(e){return e.length}function sC(e,t){const n=t||{},r=(n.align||[]).concat(),s=n.stringLength||iC,l=[],o=[],d=[],f=[];let h=0,p=-1;for(;++p<e.length;){const x=[],R=[];let C=-1;for(e[p].length>h&&(h=e[p].length);++C<e[p].length;){const M=lC(e[p][C]);if(n.alignDelimiters!==!1){const L=s(M);R[C]=L,(f[C]===void 0||L>f[C])&&(f[C]=L)}x.push(M)}o[p]=x,d[p]=R}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<h;)l[g]=b3(r[g]);else{const x=b3(r);for(;++g<h;)l[g]=x}g=-1;const y=[],T=[];for(;++g<h;){const x=l[g];let R="",C="";x===99?(R=":",C=":"):x===108?R=":":x===114&&(C=":");let M=n.alignDelimiters===!1?1:Math.max(1,f[g]-R.length-C.length);const L=R+"-".repeat(M)+C;n.alignDelimiters!==!1&&(M=R.length+M+C.length,M>f[g]&&(f[g]=M),T[g]=M),y[g]=L}o.splice(1,0,y),d.splice(1,0,T),p=-1;const w=[];for(;++p<o.length;){const x=o[p],R=d[p];g=-1;const C=[];for(;++g<h;){const M=x[g]||"";let L="",$="";if(n.alignDelimiters!==!1){const G=f[g]-(R[g]||0),z=l[g];z===114?L=" ".repeat(G):z===99?G%2?(L=" ".repeat(G/2+.5),$=" ".repeat(G/2-.5)):(L=" ".repeat(G/2),$=L):$=" ".repeat(G)}n.delimiterStart!==!1&&!g&&C.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&M==="")&&(n.delimiterStart!==!1||g)&&C.push(" "),n.alignDelimiters!==!1&&C.push(L),C.push(M),n.alignDelimiters!==!1&&C.push($),n.padding!==!1&&C.push(" "),(n.delimiterEnd!==!1||g!==h-1)&&C.push("|")}w.push(n.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return w.join(`
75
+ `)}function lC(e){return e==null?"":String(e)}function b3(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const E3={}.hasOwnProperty;function b5(e,t){const n=t||{};function r(s,...l){let o=r.invalid;const d=r.handlers;if(s&&E3.call(s,e)){const f=String(s[e]);o=E3.call(d,f)?d[f]:r.unknown}if(o)return o.call(this,s,...l)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function uC(e,t,n,r){const s=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),oC);return s(),o}function oC(e,t,n){return">"+(n?"":" ")+e}function cC(e,t){return y3(e,t.inConstruct,!0)&&!y3(e,t.notInConstruct,!1)}function y3(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function v3(e,t,n,r){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
76
+ `&&cC(n.stack,n.unsafe[s]))return/[ \t]/.test(r.before)?"":" ";return`\\
77
+ `}function E5(e,t){const n=String(e);let r=n.indexOf(t),s=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===s?++l>o&&(o=l):l=1,s=r+t.length,r=n.indexOf(t,s);return o}function dC(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function fC(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function hC(e,t,n,r){const s=fC(n),l=e.value||"",o=s==="`"?"GraveAccent":"Tilde";if(dC(e,n)){const g=n.enter("codeIndented"),y=n.indentLines(l,mC);return g(),y}const d=n.createTracker(r),f=s.repeat(Math.max(E5(l,s)+1,3)),h=n.enter("codeFenced");let p=d.move(f);if(e.lang){const g=n.enter(`codeFencedLang${o}`);p+=d.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=n.enter(`codeFencedMeta${o}`);p+=d.move(" "),p+=d.move(n.safe(e.meta,{before:p,after:`
78
+ `,encode:["`"],...d.current()})),g()}return p+=d.move(`
79
+ `),l&&(p+=d.move(l+`
80
+ `)),p+=d.move(f),h(),p}function mC(e,t,n){return(n?"":" ")+e}function op(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function pC(e,t,n,r){const s=op(n),l=s==='"'?"Quote":"Apostrophe",o=n.enter("definition");let d=n.enter("label");const f=n.createTracker(r);let h=f.move("[");return h+=f.move(n.safe(n.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(n.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=n.enter("destinationRaw"),h+=f.move(n.safe(e.url,{before:h,after:e.title?" ":`
81
+ `,...f.current()}))),d(),e.title&&(d=n.enter(`title${l}`),h+=f.move(" "+s),h+=f.move(n.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),d()),o(),h}function gC(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Io(e){return"&#x"+e.toString(16).toUpperCase()+";"}function td(e,t,n){const r=Yl(e),s=Yl(t);return r===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}y5.peek=bC;function y5(e,t,n,r){const s=gC(n),l=n.enter("emphasis"),o=n.createTracker(r),d=o.move(s);let f=o.move(n.containerPhrasing(e,{after:s,before:d,...o.current()}));const h=f.charCodeAt(0),p=td(r.before.charCodeAt(r.before.length-1),h,s);p.inside&&(f=Io(h)+f.slice(1));const g=f.charCodeAt(f.length-1),y=td(r.after.charCodeAt(0),g,s);y.inside&&(f=f.slice(0,-1)+Io(g));const T=o.move(s);return l(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},d+f+T}function bC(e,t,n){return n.options.emphasis||"*"}function EC(e,t){let n=!1;return Yo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,im}),!!((!e.depth||e.depth<3)&&ep(e)&&(t.options.setext||n))}function yC(e,t,n,r){const s=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(EC(e,n)){const p=n.enter("headingSetext"),g=n.enter("phrasing"),y=n.containerPhrasing(e,{...l.current(),before:`
82
+ `,after:`
83
+ `});return g(),p(),y+`
84
+ `+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
85
+ `))+1))}const o="#".repeat(s),d=n.enter("headingAtx"),f=n.enter("phrasing");l.move(o+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
86
+ `,...l.current()});return/^[\t ]/.test(h)&&(h=Io(h.charCodeAt(0))+h.slice(1)),h=h?o+" "+h:o,n.options.closeAtx&&(h+=" "+o),f(),d(),h}v5.peek=vC;function v5(e){return e.value||""}function vC(){return"<"}T5.peek=TC;function T5(e,t,n,r){const s=op(n),l=s==='"'?"Quote":"Apostrophe",o=n.enter("image");let d=n.enter("label");const f=n.createTracker(r);let h=f.move("![");return h+=f.move(n.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(n.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=n.enter("destinationRaw"),h+=f.move(n.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=n.enter(`title${l}`),h+=f.move(" "+s),h+=f.move(n.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),d()),h+=f.move(")"),o(),h}function TC(){return"!"}_5.peek=_C;function _5(e,t,n,r){const s=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const d=n.createTracker(r);let f=d.move("![");const h=n.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const g=n.safe(n.associationId(e),{before:f,after:"]",...d.current()});return o(),n.stack=p,l(),s==="full"||!h||h!==g?f+=d.move(g+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function _C(){return"!"}S5.peek=SC;function S5(e,t,n){let r=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(r);)s+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],d=n.compilePattern(o);let f;if(o.atBreak)for(;f=d.exec(r);){let h=f.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(f.index+1)}}return s+r+s}function SC(){return"`"}function x5(e,t){const n=ep(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}A5.peek=xC;function A5(e,t,n,r){const s=op(n),l=s==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let d,f;if(x5(e,n)){const p=n.stack;n.stack=[],d=n.enter("autolink");let g=o.move("<");return g+=o.move(n.containerPhrasing(e,{before:g,after:">",...o.current()})),g+=o.move(">"),d(),n.stack=p,g}d=n.enter("link"),f=n.enter("label");let h=o.move("[");return h+=o.move(n.containerPhrasing(e,{before:h,after:"](",...o.current()})),h+=o.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),h+=o.move("<"),h+=o.move(n.safe(e.url,{before:h,after:">",...o.current()})),h+=o.move(">")):(f=n.enter("destinationRaw"),h+=o.move(n.safe(e.url,{before:h,after:e.title?" ":")",...o.current()}))),f(),e.title&&(f=n.enter(`title${l}`),h+=o.move(" "+s),h+=o.move(n.safe(e.title,{before:h,after:s,...o.current()})),h+=o.move(s),f()),h+=o.move(")"),d(),h}function xC(e,t,n){return x5(e,n)?"<":"["}w5.peek=AC;function w5(e,t,n,r){const s=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const d=n.createTracker(r);let f=d.move("[");const h=n.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const g=n.safe(n.associationId(e),{before:f,after:"]",...d.current()});return o(),n.stack=p,l(),s==="full"||!h||h!==g?f+=d.move(g+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function AC(){return"["}function cp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wC(e){const t=cp(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function CC(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function C5(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function kC(e,t,n,r){const s=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?CC(n):cp(n);const d=e.ordered?o==="."?")":".":wC(n);let f=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(f=!0),C5(n)===o&&p){let g=-1;for(;++g<e.children.length;){const y=e.children[g];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(o=d),n.bulletCurrent=o;const h=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,s(),h}function NC(e){const t=e.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 OC(e,t,n,r){const s=NC(n);let l=n.bulletCurrent||cp(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const d=n.createTracker(r);d.move(l+" ".repeat(o-l.length)),d.shift(o);const f=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,d.current()),p);return f(),h;function p(g,y,T){return y?(T?"":" ".repeat(o))+g:(T?l:l+" ".repeat(o-l.length))+g}}function RC(e,t,n,r){const s=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),s(),o}const MC=jo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function DC(e,t,n,r){return(e.children.some(function(o){return MC(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function IC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}k5.peek=LC;function k5(e,t,n,r){const s=IC(n),l=n.enter("strong"),o=n.createTracker(r),d=o.move(s+s);let f=o.move(n.containerPhrasing(e,{after:s,before:d,...o.current()}));const h=f.charCodeAt(0),p=td(r.before.charCodeAt(r.before.length-1),h,s);p.inside&&(f=Io(h)+f.slice(1));const g=f.charCodeAt(f.length-1),y=td(r.after.charCodeAt(0),g,s);y.inside&&(f=f.slice(0,-1)+Io(g));const T=o.move(s+s);return l(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},d+f+T}function LC(e,t,n){return n.options.strong||"*"}function BC(e,t,n,r){return n.safe(e.value,r)}function PC(e){const t=e.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 UC(e,t,n){const r=(C5(n)+(n.options.ruleSpaces?" ":"")).repeat(PC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const N5={blockquote:uC,break:v3,code:hC,definition:pC,emphasis:y5,hardBreak:v3,heading:yC,html:v5,image:T5,imageReference:_5,inlineCode:S5,link:A5,linkReference:w5,list:kC,listItem:OC,paragraph:RC,root:DC,strong:k5,text:BC,thematicBreak:UC};function zC(){return{enter:{table:FC,tableData:T3,tableHeader:T3,tableRow:qC},exit:{codeText:jC,table:HC,tableData:m1,tableHeader:m1,tableRow:m1}}}function FC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function HC(e){this.exit(e),this.data.inTable=void 0}function qC(e){this.enter({type:"tableRow",children:[]},e)}function m1(e){this.exit(e)}function T3(e){this.enter({type:"tableCell",children:[]},e)}function jC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,YC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function YC(e,t){return t==="|"?t:e}function GC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
87
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:o,tableCell:f,tableRow:d}};function o(T,w,x,R){return h(p(T,x,R),T.align)}function d(T,w,x,R){const C=g(T,x,R),M=h([C]);return M.slice(0,M.indexOf(`
88
+ `))}function f(T,w,x,R){const C=x.enter("tableCell"),M=x.enter("phrasing"),L=x.containerPhrasing(T,{...R,before:l,after:l});return M(),C(),L}function h(T,w){return sC(T,{align:w,alignDelimiters:r,padding:n,stringLength:s})}function p(T,w,x){const R=T.children;let C=-1;const M=[],L=w.enter("table");for(;++C<R.length;)M[C]=g(R[C],w,x);return L(),M}function g(T,w,x){const R=T.children;let C=-1;const M=[],L=w.enter("tableRow");for(;++C<R.length;)M[C]=f(R[C],T,w,x);return L(),M}function y(T,w,x){let R=N5.inlineCode(T,w,x);return x.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function VC(){return{exit:{taskListCheckValueChecked:_3,taskListCheckValueUnchecked:_3,paragraph:$C}}}function KC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:WC}}}function _3(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function $C(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const s=t.children;let l=-1,o;for(;++l<s.length;){const d=s[l];if(d.type==="paragraph"){o=d;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function WC(e,t,n,r){const s=e.children[0],l=typeof e.checked=="boolean"&&s&&s.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",d=n.createTracker(r);l&&d.move(o);let f=N5.listItem(e,t,n,{...r,...d.current()});return l&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(p){return p+o}}function XC(){return[Nw(),Xw(),eC(),zC(),VC()]}function QC(e){return{extensions:[Ow(),Qw(e),tC(),GC(e),KC()]}}const ZC={tokenize:ak,partial:!0},O5={tokenize:ik,partial:!0},R5={tokenize:sk,partial:!0},M5={tokenize:lk,partial:!0},JC={tokenize:uk,partial:!0},D5={name:"wwwAutolink",tokenize:nk,previous:L5},I5={name:"protocolAutolink",tokenize:rk,previous:B5},Ti={name:"emailAutolink",tokenize:tk,previous:P5},Ua={};function ek(){return{text:Ua}}let Us=48;for(;Us<123;)Ua[Us]=Ti,Us++,Us===58?Us=65:Us===91&&(Us=97);Ua[43]=Ti;Ua[45]=Ti;Ua[46]=Ti;Ua[95]=Ti;Ua[72]=[Ti,I5];Ua[104]=[Ti,I5];Ua[87]=[Ti,D5];Ua[119]=[Ti,D5];function tk(e,t,n){const r=this;let s,l;return o;function o(g){return!om(g)||!P5.call(r,r.previous)||dp(r.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return om(g)?(e.consume(g),d):g===64?(e.consume(g),f):n(g)}function f(g){return g===46?e.check(JC,p,h)(g):g===45||g===95||nr(g)?(l=!0,e.consume(g),f):p(g)}function h(g){return e.consume(g),s=!0,f}function p(g){return l&&s&&hr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):n(g)}}function nk(e,t,n){const r=this;return s;function s(o){return o!==87&&o!==119||!L5.call(r,r.previous)||dp(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ZC,e.attempt(O5,e.attempt(R5,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function rk(e,t,n){const r=this;let s="",l=!1;return o;function o(g){return(g===72||g===104)&&B5.call(r,r.previous)&&!dp(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),d):n(g)}function d(g){if(hr(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const y=s.toLowerCase();if(y==="http"||y==="https")return e.consume(g),f}return n(g)}function f(g){return g===47?(e.consume(g),l?h:(l=!0,f)):n(g)}function h(g){return g===null||J0(g)||en(g)||Gs(g)||_d(g)?n(g):e.attempt(O5,e.attempt(R5,p),n)(g)}function p(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function ak(e,t,n){let r=0;return s;function s(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),s):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function ik(e,t,n){let r,s,l;return o;function o(h){return h===46||h===95?e.check(M5,f,d)(h):h===null||en(h)||Gs(h)||h!==45&&_d(h)?f(h):(l=!0,e.consume(h),o)}function d(h){return h===95?r=!0:(s=r,r=void 0),e.consume(h),o}function f(h){return s||r||!l?n(h):t(h)}}function sk(e,t){let n=0,r=0;return s;function s(o){return o===40?(n++,e.consume(o),s):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(M5,t,l)(o):o===null||en(o)||Gs(o)?t(o):(e.consume(o),s)}function l(o){return o===41&&r++,e.consume(o),s}}function lk(e,t,n){return r;function r(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),r):d===38?(e.consume(d),l):d===93?(e.consume(d),s):d===60||d===null||en(d)||Gs(d)?t(d):n(d)}function s(d){return d===null||d===40||d===91||en(d)||Gs(d)?t(d):r(d)}function l(d){return hr(d)?o(d):n(d)}function o(d){return d===59?(e.consume(d),r):hr(d)?(e.consume(d),o):n(d)}}function uk(e,t,n){return r;function r(l){return e.consume(l),s}function s(l){return nr(l)?n(l):t(l)}}function L5(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||en(e)}function B5(e){return!hr(e)}function P5(e){return!(e===47||om(e))}function om(e){return e===43||e===45||e===46||e===95||nr(e)}function dp(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const ok={tokenize:bk,partial:!0};function ck(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mk,continuation:{tokenize:pk},exit:gk}},text:{91:{name:"gfmFootnoteCall",tokenize:hk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dk,resolveTo:fk}}}}function dk(e,t,n){const r=this;let s=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;s--;){const f=r.events[s][1];if(f.type==="labelImage"){o=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!o||!o._balanced)return n(f);const h=Ea(r.sliceSerialize({start:o.end,end:r.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?n(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function fk(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},d=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...d),e}function hk(e,t,n){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),f}function f(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(l>999||g===93&&!o||g===null||g===91||en(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(Ea(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(g)}return en(g)||(o=!0),l++,e.consume(g),g===92?p:h}function p(g){return g===91||g===92||g===93?(e.consume(g),l++,h):h(g)}}function mk(e,t,n){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,d;return f;function f(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(w)}function p(w){if(o>999||w===93&&!d||w===null||w===91||en(w))return n(w);if(w===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return l=Ea(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return en(w)||(d=!0),o++,e.consume(w),w===92?g:p}function g(w){return w===91||w===92||w===93?(e.consume(w),o++,p):p(w)}function y(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),s.includes(l)||s.push(l),Ct(e,T,"gfmFootnoteDefinitionWhitespace")):n(w)}function T(w){return t(w)}}function pk(e,t,n){return e.check(qo,t,e.attempt(ok,t,n))}function gk(e){e.exit("gfmFootnoteDefinition")}function bk(e,t,n){const r=this;return Ct(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function Ek(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:s};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(o,d){let f=-1;for(;++f<o.length;)if(o[f][0]==="enter"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._close){let h=f;for(;h--;)if(o[h][0]==="exit"&&o[h][1].type==="strikethroughSequenceTemporary"&&o[h][1]._open&&o[f][1].end.offset-o[f][1].start.offset===o[h][1].end.offset-o[h][1].start.offset){o[f][1].type="strikethroughSequence",o[h][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},o[h][1].start),end:Object.assign({},o[f][1].end)},g={type:"strikethroughText",start:Object.assign({},o[h][1].end),end:Object.assign({},o[f][1].start)},y=[["enter",p,d],["enter",o[h][1],d],["exit",o[h][1],d],["enter",g,d]],T=d.parser.constructs.insideSpan.null;T&&Yr(y,y.length,0,Sd(T,o.slice(h+1,f),d)),Yr(y,y.length,0,[["exit",g,d],["enter",o[f][1],d],["exit",o[f][1],d],["exit",p,d]]),Yr(o,h-1,f-h+3,y),f=h+y.length-2;break}}for(f=-1;++f<o.length;)o[f][1].type==="strikethroughSequenceTemporary"&&(o[f][1].type="data");return o}function l(o,d,f){const h=this.previous,p=this.events;let g=0;return y;function y(w){return h===126&&p[p.length-1][1].type!=="characterEscape"?f(w):(o.enter("strikethroughSequenceTemporary"),T(w))}function T(w){const x=Yl(h);if(w===126)return g>1?f(w):(o.consume(w),g++,T);if(g<2&&!n)return f(w);const R=o.exit("strikethroughSequenceTemporary"),C=Yl(w);return R._open=!C||C===2&&!!x,R._close=!x||x===2&&!!C,d(w)}}}class yk{constructor(){this.map=[]}add(t,n,r){vk(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let s=r.pop();for(;s;){for(const l of s)t.push(l);s=r.pop()}this.map.length=0}}function vk(e,t,n,r){let s=0;if(!(n===0&&r.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...r);return}s+=1}e.map.push([t,n,r])}}function Tk(e,t){let n=!1;const r=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function _k(){return{flow:{null:{name:"table",tokenize:Sk,resolveAll:xk}}}}function Sk(e,t,n){const r=this;let s=0,l=0,o;return d;function d(j){let me=r.events.length-1;for(;me>-1;){const fe=r.events[me][1].type;if(fe==="lineEnding"||fe==="linePrefix")me--;else break}const J=me>-1?r.events[me][1].type:null,se=J==="tableHead"||J==="tableRow"?z:f;return se===z&&r.parser.lazy[r.now().line]?n(j):se(j)}function f(j){return e.enter("tableHead"),e.enter("tableRow"),h(j)}function h(j){return j===124||(o=!0,l+=1),p(j)}function p(j){return j===null?n(j):Ke(j)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),T):n(j):Ot(j)?Ct(e,p,"whitespace")(j):(l+=1,o&&(o=!1,s+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),g(j)))}function g(j){return j===null||j===124||en(j)?(e.exit("data"),p(j)):(e.consume(j),j===92?y:g)}function y(j){return j===92||j===124?(e.consume(j),g):g(j)}function T(j){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(j):(e.enter("tableDelimiterRow"),o=!1,Ot(j)?Ct(e,w,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):w(j))}function w(j){return j===45||j===58?R(j):j===124?(o=!0,e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),x):G(j)}function x(j){return Ot(j)?Ct(e,R,"whitespace")(j):R(j)}function R(j){return j===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),C):j===45?(l+=1,C(j)):j===null||Ke(j)?$(j):G(j)}function C(j){return j===45?(e.enter("tableDelimiterFiller"),M(j)):G(j)}function M(j){return j===45?(e.consume(j),M):j===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(j))}function L(j){return Ot(j)?Ct(e,$,"whitespace")(j):$(j)}function $(j){return j===124?w(j):j===null||Ke(j)?!o||s!==l?G(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(j)):G(j)}function G(j){return n(j)}function z(j){return e.enter("tableRow"),ne(j)}function ne(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),ne):j===null||Ke(j)?(e.exit("tableRow"),t(j)):Ot(j)?Ct(e,ne,"whitespace")(j):(e.enter("data"),ce(j))}function ce(j){return j===null||j===124||en(j)?(e.exit("data"),ne(j)):(e.consume(j),j===92?Q:ce)}function Q(j){return j===92||j===124?(e.consume(j),ce):ce(j)}}function xk(e,t){let n=-1,r=!0,s=0,l=[0,0,0,0],o=[0,0,0,0],d=!1,f=0,h,p,g;const y=new yk;for(;++n<e.length;){const T=e[n],w=T[1];T[0]==="enter"?w.type==="tableHead"?(d=!1,f!==0&&(S3(y,t,f,h,p),p=void 0,f=0),h={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},y.add(n,0,[["enter",h,t]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(r=!0,g=void 0,l=[0,0,0,0],o=[0,n+1,0,0],d&&(d=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},y.add(n,0,[["enter",p,t]])),s=w.type==="tableDelimiterRow"?2:p?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],g=b0(y,t,l,s,void 0,g),l=[0,0,0,0]),o[2]=n)):w.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],g=b0(y,t,l,s,void 0,g)),l=o,o=[l[1],n,0,0])):w.type==="tableHead"?(d=!0,f=n):w.type==="tableRow"||w.type==="tableDelimiterRow"?(f=n,l[1]!==0?(o[0]=o[1],g=b0(y,t,l,s,n,g)):o[1]!==0&&(g=b0(y,t,o,s,n,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(o[3]=n)}for(f!==0&&S3(y,t,f,h,p),y.consume(t.events),n=-1;++n<t.events.length;){const T=t.events[n];T[0]==="enter"&&T[1].type==="table"&&(T[1]._align=Tk(t.events,n))}return e}function b0(e,t,n,r,s,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",d="tableContent";n[0]!==0&&(l.end=Object.assign({},Ll(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const f=Ll(t.events,n[1]);if(l={type:o,start:Object.assign({},f),end:Object.assign({},f)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const h=Ll(t.events,n[2]),p=Ll(t.events,n[3]),g={type:d,start:Object.assign({},h),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",g,t]]),r!==2){const y=t.events[n[2]],T=t.events[n[3]];if(y[1].end=Object.assign({},T[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const w=n[2]+1,x=n[3]-n[2]-1;e.add(w,x,[])}}e.add(n[3]+1,0,[["exit",g,t]])}return s!==void 0&&(l.end=Object.assign({},Ll(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function S3(e,t,n,r,s){const l=[],o=Ll(t.events,n);s&&(s.end=Object.assign({},o),l.push(["exit",s,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function Ll(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Ak={name:"tasklistCheck",tokenize:Ck};function wk(){return{text:{91:Ak}}}function Ck(e,t,n){const r=this;return s;function s(f){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),l)}function l(f){return en(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),o):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),o):n(f)}function o(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):n(f)}function d(f){return Ke(f)?t(f):Ot(f)?e.check({tokenize:kk},t,n)(f):n(f)}}function kk(e,t,n){return Ct(e,r,"whitespace");function r(s){return s===null?n(s):t(s)}}function Nk(e){return VE([ek(),ck(),Ek(e),_k(),wk()])}const Ok={};function Rk(e){const t=this,n=e||Ok,r=t.data(),s=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);s.push(Nk(n)),l.push(XC()),o.push(QC(n))}const x3=/[#.]/g;function Mk(e,t){const n=e||"",r={};let s=0,l,o;for(;s<n.length;){x3.lastIndex=s;const d=x3.exec(n),f=n.slice(s,d?d.index:n.length);f&&(l?l==="#"?r.id=f:Array.isArray(r.className)?r.className.push(f):r.className=[f]:o=f,s+=f.length),d&&(l=d[0],s++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function U5(e,t,n){const r=n?Bk(n):void 0;function s(l,o,...d){let f;if(l==null){f={type:"root",children:[]};const h=o;d.unshift(h)}else{f=Mk(l,t);const h=f.tagName.toLowerCase(),p=r?r.get(h):void 0;if(f.tagName=p||h,Dk(o))d.unshift(o);else for(const[g,y]of Object.entries(o))Ik(e,f.properties,g,y)}for(const h of d)cm(f.children,h);return f.type==="element"&&f.tagName==="template"&&(f.content={type:"root",children:f.children},f.children=[]),f}return s}function Dk(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const s=t[r];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const l=s;for(const o of l)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Ik(e,t,n,r){const s=Xm(e,n);let l;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;l=r}else typeof r=="boolean"?l=r:typeof r=="string"?s.spaceSeparated?l=Pb(r):s.commaSeparated?l=Mb(r):s.commaOrSpaceSeparated?l=Pb(Mb(r).join(" ")):l=A3(s,s.property,r):Array.isArray(r)?l=[...r]:l=s.property==="style"?Lk(r):String(r);if(Array.isArray(l)){const o=[];for(const d of l)o.push(A3(s,s.property,d));l=o}s.property==="className"&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[s.property]=l}}function cm(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)cm(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?cm(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function A3(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Mo(n)===Mo(t)))return!0}return n}function Lk(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Bk(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Pk=["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"],z5=U5(vd,"div"),F5=U5(Jl,"g",Pk);function Uk(e){const t=String(e),n=[];return{toOffset:s,toPoint:r};function r(l){if(typeof l=="number"&&l>-1&&l<=t.length){let o=0;for(;;){let d=n[o];if(d===void 0){const f=w3(t,n[o-1]);d=f===-1?t.length+1:f+1,n[o]=d}if(d>l)return{line:o+1,column:l-(o>0?n[o-1]:0)+1,offset:l};o++}}}function s(l){if(l&&typeof l.line=="number"&&typeof l.column=="number"&&!Number.isNaN(l.line)&&!Number.isNaN(l.column)){for(;n.length<l.line;){const d=n[n.length-1],f=w3(t,d),h=f===-1?t.length+1:f+1;if(d===h)break;n.push(h)}const o=(l.line>1?n[l.line-2]:0)+l.column-1;if(o<n[l.line-1])return o}}}function w3(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
89
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Da={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},H5={}.hasOwnProperty,zk=Object.prototype;function Fk(e,t){const n=t||{};return fp({file:n.file||void 0,location:!1,schema:n.space==="svg"?Jl:vd,verbose:n.verbose||!1},e)}function fp(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},j0(e,r,n),n}case"#document":case"#document-fragment":{const r=t,s="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:q5(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const l=String(e.file),o=Uk(l),d=o.toPoint(0),f=o.toPoint(l.length);n.position={start:d,end:f}}return n}case"#documentType":{const r=t;return n={type:"doctype"},j0(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},j0(e,r,n),n}default:return n=Hk(e,t),n}}function q5(e,t){let n=-1;const r=[];for(;++n<t.length;){const s=fp(e,t[n]);r.push(s)}return r}function Hk(e,t){const n=e.schema;e.schema=t.namespaceURI===Da.svg?Jl:vd;let r=-1;const s={};for(;++r<t.attrs.length;){const d=t.attrs[r],f=(d.prefix?d.prefix+":":"")+d.name;H5.call(zk,f)||(s[f]=d.value)}const o=(e.schema.space==="svg"?F5:z5)(t.tagName,s,q5(e,t.childNodes));if(j0(e,t,o),o.tagName==="template"){const d=t,f=d.sourceCodeLocation,h=f&&f.startTag&&Fl(f.startTag),p=f&&f.endTag&&Fl(f.endTag),g=fp(e,d.content);h&&p&&e.file&&(g.position={start:h.end,end:p.start}),o.content=g}return e.schema=n,o}function j0(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=qk(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function qk(e,t,n){const r=Fl(n);if(t.type==="element"){const s=t.children[t.children.length-1];if(r&&!n.endTag&&s&&s.position&&s.position.end&&(r.end=Object.assign({},s.position.end)),e.verbose){const l={};let o;if(n.attrs)for(o in n.attrs)H5.call(n.attrs,o)&&(l[Xm(e.schema,o).property]=Fl(n.attrs[o]));n.startTag;const d=Fl(n.startTag),f=n.endTag?Fl(n.endTag):void 0,h={opening:d};f&&(h.closing=f),h.properties=l,t.data={position:h}}}return r}function Fl(e){const t=C3({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=C3({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function C3(e){return e.line&&e.column?e:void 0}class Vo{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Vo.prototype.property={};Vo.prototype.normal={};Vo.prototype.space=null;function j5(e,t){const n={},r={};let s=-1;for(;++s<e.length;)Object.assign(n,e[s].property),Object.assign(r,e[s].normal);return new Vo(n,r,t)}function dm(e){return e.toLowerCase()}class ua{constructor(t,n){this.property=t,this.attribute=n}}ua.prototype.space=null;ua.prototype.boolean=!1;ua.prototype.booleanish=!1;ua.prototype.overloadedBoolean=!1;ua.prototype.number=!1;ua.prototype.commaSeparated=!1;ua.prototype.spaceSeparated=!1;ua.prototype.commaOrSpaceSeparated=!1;ua.prototype.mustUseProperty=!1;ua.prototype.defined=!1;let jk=0;const bt=Ks(),Bn=Ks(),Y5=Ks(),Re=Ks(),an=Ks(),ql=Ks(),Hr=Ks();function Ks(){return 2**++jk}const fm=Object.freeze(Object.defineProperty({__proto__:null,boolean:bt,booleanish:Bn,commaOrSpaceSeparated:Hr,commaSeparated:ql,number:Re,overloadedBoolean:Y5,spaceSeparated:an},Symbol.toStringTag,{value:"Module"})),p1=Object.keys(fm);class hp extends ua{constructor(t,n,r,s){let l=-1;if(super(t,n),k3(this,"space",s),typeof r=="number")for(;++l<p1.length;){const o=p1[l];k3(this,p1[l],(r&fm[o])===fm[o])}}}hp.prototype.defined=!0;function k3(e,t,n){n&&(e[t]=n)}const Yk={}.hasOwnProperty;function tu(e){const t={},n={};let r;for(r in e.properties)if(Yk.call(e.properties,r)){const s=e.properties[r],l=new hp(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[dm(r)]=r,n[dm(l.attribute)]=r}return new Vo(t,n,e.space)}const G5=tu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),V5=tu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function K5(e,t){return t in e?e[t]:t}function $5(e,t){return K5(e,t.toLowerCase())}const W5=tu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$5,properties:{xmlns:null,xmlnsXLink:null}}),X5=tu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Bn,ariaAutoComplete:null,ariaBusy:Bn,ariaChecked:Bn,ariaColCount:Re,ariaColIndex:Re,ariaColSpan:Re,ariaControls:an,ariaCurrent:null,ariaDescribedBy:an,ariaDetails:null,ariaDisabled:Bn,ariaDropEffect:an,ariaErrorMessage:null,ariaExpanded:Bn,ariaFlowTo:an,ariaGrabbed:Bn,ariaHasPopup:null,ariaHidden:Bn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:an,ariaLevel:Re,ariaLive:null,ariaModal:Bn,ariaMultiLine:Bn,ariaMultiSelectable:Bn,ariaOrientation:null,ariaOwns:an,ariaPlaceholder:null,ariaPosInSet:Re,ariaPressed:Bn,ariaReadOnly:Bn,ariaRelevant:null,ariaRequired:Bn,ariaRoleDescription:an,ariaRowCount:Re,ariaRowIndex:Re,ariaRowSpan:Re,ariaSelected:Bn,ariaSetSize:Re,ariaSort:null,ariaValueMax:Re,ariaValueMin:Re,ariaValueNow:Re,ariaValueText:null,role:null}}),Gk=tu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$5,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ql,acceptCharset:an,accessKey:an,action:null,allow:null,allowFullScreen:bt,allowPaymentRequest:bt,allowUserMedia:bt,alt:null,as:null,async:bt,autoCapitalize:null,autoComplete:an,autoFocus:bt,autoPlay:bt,blocking:an,capture:null,charSet:null,checked:bt,cite:null,className:an,cols:Re,colSpan:null,content:null,contentEditable:Bn,controls:bt,controlsList:an,coords:Re|ql,crossOrigin:null,data:null,dateTime:null,decoding:null,default:bt,defer:bt,dir:null,dirName:null,disabled:bt,download:Y5,draggable:Bn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:bt,formTarget:null,headers:an,height:Re,hidden:bt,high:Re,href:null,hrefLang:null,htmlFor:an,httpEquiv:an,id:null,imageSizes:null,imageSrcSet:null,inert:bt,inputMode:null,integrity:null,is:null,isMap:bt,itemId:null,itemProp:an,itemRef:an,itemScope:bt,itemType:an,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:bt,low:Re,manifest:null,max:null,maxLength:Re,media:null,method:null,min:null,minLength:Re,multiple:bt,muted:bt,name:null,nonce:null,noModule:bt,noValidate:bt,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:bt,optimum:Re,pattern:null,ping:an,placeholder:null,playsInline:bt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:bt,referrerPolicy:null,rel:an,required:bt,reversed:bt,rows:Re,rowSpan:Re,sandbox:an,scope:null,scoped:bt,seamless:bt,selected:bt,shadowRootClonable:bt,shadowRootDelegatesFocus:bt,shadowRootMode:null,shape:null,size:Re,sizes:null,slot:null,span:Re,spellCheck:Bn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Re,step:null,style:null,tabIndex:Re,target:null,title:null,translate:null,type:null,typeMustMatch:bt,useMap:null,value:Bn,width:Re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:an,axis:null,background:null,bgColor:null,border:Re,borderColor:null,bottomMargin:Re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:bt,declare:bt,event:null,face:null,frame:null,frameBorder:null,hSpace:Re,leftMargin:Re,link:null,longDesc:null,lowSrc:null,marginHeight:Re,marginWidth:Re,noResize:bt,noHref:bt,noShade:bt,noWrap:bt,object:null,profile:null,prompt:null,rev:null,rightMargin:Re,rules:null,scheme:null,scrolling:Bn,standby:null,summary:null,text:null,topMargin:Re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:bt,disableRemotePlayback:bt,prefix:null,property:null,results:Re,security:null,unselectable:null}}),Vk=tu({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:K5,properties:{about:Hr,accentHeight:Re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Re,amplitude:Re,arabicForm:null,ascent:Re,attributeName:null,attributeType:null,azimuth:Re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Re,by:null,calcMode:null,capHeight:Re,className:an,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:Re,diffuseConstant:Re,direction:null,display:null,dur:null,divisor:Re,dominantBaseline:null,download:bt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Re,enableBackground:null,end:null,event:null,exponent:Re,externalResourcesRequired:null,fill:null,fillOpacity:Re,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:ql,g2:ql,glyphName:ql,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Re,horizOriginX:Re,horizOriginY:Re,id:null,ideographic:Re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Re,k:Re,k1:Re,k2:Re,k3:Re,k4:Re,kernelMatrix:Hr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Re,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:Re,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:Re,overlineThickness:Re,paintOrder:null,panose1:null,path:null,pathLength:Re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:an,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Re,pointsAtY:Re,pointsAtZ:Re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hr,rev:Hr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hr,requiredFeatures:Hr,requiredFonts:Hr,requiredFormats:Hr,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:Re,specularExponent:Re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Re,strikethroughThickness:Re,string:null,stroke:null,strokeDashArray:Hr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Re,strokeOpacity:Re,strokeWidth:null,style:null,surfaceScale:Re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hr,tabIndex:Re,tableValues:null,target:null,targetX:Re,targetY:Re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Re,underlineThickness:Re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Re,values:null,vAlphabetic:Re,vMathematical:Re,vectorEffect:null,vHanging:Re,vIdeographic:Re,version:null,vertAdvY:Re,vertOriginX:Re,vertOriginY:Re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Kk=/^data[-\w.:]+$/i,N3=/-[a-z]/g,$k=/[A-Z]/g;function Wk(e,t){const n=dm(t);let r=t,s=ua;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Kk.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(N3,Qk);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!N3.test(l)){let o=l.replace($k,Xk);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}s=hp}return new s(r,t)}function Xk(e){return"-"+e.toLowerCase()}function Qk(e){return e.charAt(1).toUpperCase()}const Zk=j5([V5,G5,W5,X5,Gk],"html"),Q5=j5([V5,G5,W5,X5,Vk],"svg"),Jk={},eN={}.hasOwnProperty,Z5=b5("type",{handlers:{root:nN,element:lN,text:iN,comment:sN,doctype:aN}});function tN(e,t){const r=(t||Jk).space;return Z5(e,r==="svg"?Q5:Zk)}function nN(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=mp(e.children,n,t),nu(e,n),n}function rN(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=mp(e.children,n,t),nu(e,n),n}function aN(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return nu(e,t),t}function iN(e){const t={nodeName:"#text",value:e.value,parentNode:null};return nu(e,t),t}function sN(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return nu(e,t),t}function lN(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Q5);const s=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&eN.call(e.properties,l)){const f=uN(r,l,e.properties[l]);f&&s.push(f)}}const o=r.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:Da[o],childNodes:[],parentNode:null};return d.childNodes=mp(e.children,d,r),nu(e,d),e.tagName==="template"&&e.content&&(d.content=rN(e.content,r)),d}function uN(e,t,n){const r=Wk(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?RE(n):zE(n));const s={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const l=s.name.indexOf(":");l<0?s.prefix="":(s.name=s.name.slice(l+1),s.prefix=r.attribute.slice(0,l)),s.namespace=Da[r.space]}return s}function mp(e,t,n){let r=-1;const s=[];if(e)for(;++r<e.length;){const l=Z5(e[r],n);l.parentNode=t,s.push(l)}return s}function nu(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const oN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],cN=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),fn="�";var I;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));const xr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function J5(e){return e>=55296&&e<=57343}function dN(e){return e>=56320&&e<=57343}function fN(e,t){return(e-55296)*1024+9216+t}function ey(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ty(e){return e>=64976&&e<=65007||cN.has(e)}var ge;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ge||(ge={}));const hN=65536;class mN{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=hN,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:s,offset:l}=this,o=s+n,d=l+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:d,endOffset:d}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(dN(n))return this.pos++,this._addGap(),fN(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,I.EOF;return this._err(ge.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;const r=this.html.charCodeAt(n);return r===I.CARRIAGE_RETURN?I.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;let t=this.html.charCodeAt(this.pos);return t===I.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,I.LINE_FEED):t===I.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,J5(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===I.LINE_FEED||t===I.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ey(t)?this._err(ge.controlCharacterInInputStream):ty(t)&&this._err(ge.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var wt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(wt||(wt={}));function ny(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const pN=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),gN=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function bN(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gN.get(e))!==null&&t!==void 0?t:e}var Gn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Gn||(Gn={}));const EN=32;var ss;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ss||(ss={}));function hm(e){return e>=Gn.ZERO&&e<=Gn.NINE}function yN(e){return e>=Gn.UPPER_A&&e<=Gn.UPPER_F||e>=Gn.LOWER_A&&e<=Gn.LOWER_F}function vN(e){return e>=Gn.UPPER_A&&e<=Gn.UPPER_Z||e>=Gn.LOWER_A&&e<=Gn.LOWER_Z||hm(e)}function TN(e){return e===Gn.EQUALS||vN(e)}var Yn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Yn||(Yn={}));var oi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(oi||(oi={}));class _N{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Yn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=oi.Strict}startEntity(t){this.decodeMode=t,this.state=Yn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Yn.EntityStart:return t.charCodeAt(n)===Gn.NUM?(this.state=Yn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Yn.NamedEntity,this.stateNamedEntity(t,n));case Yn.NumericStart:return this.stateNumericStart(t,n);case Yn.NumericDecimal:return this.stateNumericDecimal(t,n);case Yn.NumericHex:return this.stateNumericHex(t,n);case Yn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|EN)===Gn.LOWER_X?(this.state=Yn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Yn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,s){if(n!==r){const l=r-n;this.result=this.result*Math.pow(s,l)+Number.parseInt(t.substr(n,l),s),this.consumed+=l}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(hm(s)||yN(s))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(hm(s))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Gn.SEMI)this.consumed+=1;else if(this.decodeMode===oi.Strict)return 0;return this.emitCodePoint(bN(this.result),this.consumed),this.errors&&(t!==Gn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let s=r[this.treeIndex],l=(s&ss.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=SN(r,s,this.treeIndex+Math.max(1,l),o),this.treeIndex<0)return this.result===0||this.decodeMode===oi.Attribute&&(l===0||TN(o))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],l=(s&ss.VALUE_LENGTH)>>14,l!==0){if(o===Gn.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==oi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,s=(r[n]&ss.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~ss.VALUE_LENGTH:s[t+1],r),n===3&&this.emitCodePoint(s[t+2],r),r}end(){var t;switch(this.state){case Yn.NamedEntity:return this.result!==0&&(this.decodeMode!==oi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yn.NumericDecimal:return this.emitNumericEntity(0,2);case Yn.NumericHex:return this.emitNumericEntity(0,3);case Yn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yn.EntityStart:return 0}}}function SN(e,t,n,r){const s=(t&ss.BRANCH_LENGTH)>>7,l=t&ss.JUMP_TABLE;if(s===0)return l!==0&&r===l?n:-1;if(l){const f=r-l;return f<0||f>=s?-1:e[n+f]-1}let o=n,d=o+s-1;for(;o<=d;){const f=o+d>>>1,h=e[f];if(h<r)o=f+1;else if(h>r)d=f-1;else return e[f+s]}return-1}var Ae;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Ae||(Ae={}));var Ys;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ys||(Ys={}));var na;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(na||(na={}));var te;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(te||(te={}));var E;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(E||(E={}));const xN=new Map([[te.A,E.A],[te.ADDRESS,E.ADDRESS],[te.ANNOTATION_XML,E.ANNOTATION_XML],[te.APPLET,E.APPLET],[te.AREA,E.AREA],[te.ARTICLE,E.ARTICLE],[te.ASIDE,E.ASIDE],[te.B,E.B],[te.BASE,E.BASE],[te.BASEFONT,E.BASEFONT],[te.BGSOUND,E.BGSOUND],[te.BIG,E.BIG],[te.BLOCKQUOTE,E.BLOCKQUOTE],[te.BODY,E.BODY],[te.BR,E.BR],[te.BUTTON,E.BUTTON],[te.CAPTION,E.CAPTION],[te.CENTER,E.CENTER],[te.CODE,E.CODE],[te.COL,E.COL],[te.COLGROUP,E.COLGROUP],[te.DD,E.DD],[te.DESC,E.DESC],[te.DETAILS,E.DETAILS],[te.DIALOG,E.DIALOG],[te.DIR,E.DIR],[te.DIV,E.DIV],[te.DL,E.DL],[te.DT,E.DT],[te.EM,E.EM],[te.EMBED,E.EMBED],[te.FIELDSET,E.FIELDSET],[te.FIGCAPTION,E.FIGCAPTION],[te.FIGURE,E.FIGURE],[te.FONT,E.FONT],[te.FOOTER,E.FOOTER],[te.FOREIGN_OBJECT,E.FOREIGN_OBJECT],[te.FORM,E.FORM],[te.FRAME,E.FRAME],[te.FRAMESET,E.FRAMESET],[te.H1,E.H1],[te.H2,E.H2],[te.H3,E.H3],[te.H4,E.H4],[te.H5,E.H5],[te.H6,E.H6],[te.HEAD,E.HEAD],[te.HEADER,E.HEADER],[te.HGROUP,E.HGROUP],[te.HR,E.HR],[te.HTML,E.HTML],[te.I,E.I],[te.IMG,E.IMG],[te.IMAGE,E.IMAGE],[te.INPUT,E.INPUT],[te.IFRAME,E.IFRAME],[te.KEYGEN,E.KEYGEN],[te.LABEL,E.LABEL],[te.LI,E.LI],[te.LINK,E.LINK],[te.LISTING,E.LISTING],[te.MAIN,E.MAIN],[te.MALIGNMARK,E.MALIGNMARK],[te.MARQUEE,E.MARQUEE],[te.MATH,E.MATH],[te.MENU,E.MENU],[te.META,E.META],[te.MGLYPH,E.MGLYPH],[te.MI,E.MI],[te.MO,E.MO],[te.MN,E.MN],[te.MS,E.MS],[te.MTEXT,E.MTEXT],[te.NAV,E.NAV],[te.NOBR,E.NOBR],[te.NOFRAMES,E.NOFRAMES],[te.NOEMBED,E.NOEMBED],[te.NOSCRIPT,E.NOSCRIPT],[te.OBJECT,E.OBJECT],[te.OL,E.OL],[te.OPTGROUP,E.OPTGROUP],[te.OPTION,E.OPTION],[te.P,E.P],[te.PARAM,E.PARAM],[te.PLAINTEXT,E.PLAINTEXT],[te.PRE,E.PRE],[te.RB,E.RB],[te.RP,E.RP],[te.RT,E.RT],[te.RTC,E.RTC],[te.RUBY,E.RUBY],[te.S,E.S],[te.SCRIPT,E.SCRIPT],[te.SEARCH,E.SEARCH],[te.SECTION,E.SECTION],[te.SELECT,E.SELECT],[te.SOURCE,E.SOURCE],[te.SMALL,E.SMALL],[te.SPAN,E.SPAN],[te.STRIKE,E.STRIKE],[te.STRONG,E.STRONG],[te.STYLE,E.STYLE],[te.SUB,E.SUB],[te.SUMMARY,E.SUMMARY],[te.SUP,E.SUP],[te.TABLE,E.TABLE],[te.TBODY,E.TBODY],[te.TEMPLATE,E.TEMPLATE],[te.TEXTAREA,E.TEXTAREA],[te.TFOOT,E.TFOOT],[te.TD,E.TD],[te.TH,E.TH],[te.THEAD,E.THEAD],[te.TITLE,E.TITLE],[te.TR,E.TR],[te.TRACK,E.TRACK],[te.TT,E.TT],[te.U,E.U],[te.UL,E.UL],[te.SVG,E.SVG],[te.VAR,E.VAR],[te.WBR,E.WBR],[te.XMP,E.XMP]]);function ru(e){var t;return(t=xN.get(e))!==null&&t!==void 0?t:E.UNKNOWN}const we=E,AN={[Ae.HTML]:new Set([we.ADDRESS,we.APPLET,we.AREA,we.ARTICLE,we.ASIDE,we.BASE,we.BASEFONT,we.BGSOUND,we.BLOCKQUOTE,we.BODY,we.BR,we.BUTTON,we.CAPTION,we.CENTER,we.COL,we.COLGROUP,we.DD,we.DETAILS,we.DIR,we.DIV,we.DL,we.DT,we.EMBED,we.FIELDSET,we.FIGCAPTION,we.FIGURE,we.FOOTER,we.FORM,we.FRAME,we.FRAMESET,we.H1,we.H2,we.H3,we.H4,we.H5,we.H6,we.HEAD,we.HEADER,we.HGROUP,we.HR,we.HTML,we.IFRAME,we.IMG,we.INPUT,we.LI,we.LINK,we.LISTING,we.MAIN,we.MARQUEE,we.MENU,we.META,we.NAV,we.NOEMBED,we.NOFRAMES,we.NOSCRIPT,we.OBJECT,we.OL,we.P,we.PARAM,we.PLAINTEXT,we.PRE,we.SCRIPT,we.SECTION,we.SELECT,we.SOURCE,we.STYLE,we.SUMMARY,we.TABLE,we.TBODY,we.TD,we.TEMPLATE,we.TEXTAREA,we.TFOOT,we.TH,we.THEAD,we.TITLE,we.TR,we.TRACK,we.UL,we.WBR,we.XMP]),[Ae.MATHML]:new Set([we.MI,we.MO,we.MN,we.MS,we.MTEXT,we.ANNOTATION_XML]),[Ae.SVG]:new Set([we.TITLE,we.FOREIGN_OBJECT,we.DESC]),[Ae.XLINK]:new Set,[Ae.XML]:new Set,[Ae.XMLNS]:new Set},mm=new Set([we.H1,we.H2,we.H3,we.H4,we.H5,we.H6]);te.STYLE,te.SCRIPT,te.XMP,te.IFRAME,te.NOEMBED,te.NOFRAMES,te.PLAINTEXT;var B;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(B||(B={}));const kn={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function wN(e){return e>=I.DIGIT_0&&e<=I.DIGIT_9}function bo(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_Z}function CN(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_Z}function ts(e){return CN(e)||bo(e)}function O3(e){return ts(e)||wN(e)}function E0(e){return e+32}function ry(e){return e===I.SPACE||e===I.LINE_FEED||e===I.TABULATION||e===I.FORM_FEED}function R3(e){return ry(e)||e===I.SOLIDUS||e===I.GREATER_THAN_SIGN}function kN(e){return e===I.NULL?ge.nullCharacterReference:e>1114111?ge.characterReferenceOutsideUnicodeRange:J5(e)?ge.surrogateCharacterReference:ty(e)?ge.noncharacterCharacterReference:ey(e)||e===I.CARRIAGE_RETURN?ge.controlCharacterReference:null}class NN{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=B.DATA,this.returnState=B.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new mN(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _N(pN,(r,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ge.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ge.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const s=kN(r);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var r,s;(s=(r=this.handler).onParseError)===null||s===void 0||s.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:wt.START_TAG,tagName:"",tagID:E.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:wt.END_TAG,tagName:"",tagID:E.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:wt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:wt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(ny(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const s=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ge.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=ru(t.tagName),t.type===wt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ge.endTagWithAttributes),t.selfClosing&&this._err(ge.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case wt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case wt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case wt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:wt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=ry(t)?wt.WHITESPACE_CHARACTER:t===I.NULL?wt.NULL_CHARACTER:wt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(wt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?oi.Attribute:oi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===B.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case B.DATA:{this._stateData(t);break}case B.RCDATA:{this._stateRcdata(t);break}case B.RAWTEXT:{this._stateRawtext(t);break}case B.SCRIPT_DATA:{this._stateScriptData(t);break}case B.PLAINTEXT:{this._statePlaintext(t);break}case B.TAG_OPEN:{this._stateTagOpen(t);break}case B.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case B.TAG_NAME:{this._stateTagName(t);break}case B.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case B.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case B.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case B.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case B.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case B.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case B.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case B.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case B.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case B.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case B.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case B.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case B.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case B.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case B.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case B.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case B.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case B.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case B.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case B.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case B.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case B.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case B.BOGUS_COMMENT:{this._stateBogusComment(t);break}case B.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case B.COMMENT_START:{this._stateCommentStart(t);break}case B.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case B.COMMENT:{this._stateComment(t);break}case B.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case B.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case B.COMMENT_END:{this._stateCommentEnd(t);break}case B.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case B.DOCTYPE:{this._stateDoctype(t);break}case B.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case B.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case B.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case B.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case B.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case B.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case B.CDATA_SECTION:{this._stateCdataSection(t);break}case B.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case B.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case B.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case B.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this._emitCodePoint(t);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case I.AMPERSAND:{this._startCharacterReference();break}case I.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this._emitChars(fn);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case I.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this._emitChars(fn);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this._emitChars(fn);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case I.NULL:{this._err(ge.unexpectedNullCharacter),this._emitChars(fn);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ts(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case I.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case I.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case I.QUESTION_MARK:{this._err(ge.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case I.EOF:{this._err(ge.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ge.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ts(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case I.GREATER_THAN_SIGN:{this._err(ge.missingEndTagName),this.state=B.DATA;break}case I.EOF:{this._err(ge.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ge.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(ge.unexpectedNullCharacter),n.tagName+=fn;break}case I.EOF:{this._err(ge.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(bo(t)?E0(t):t)}}_stateRcdataLessThanSign(t){t===I.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ts(t)?(this.state=B.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case I.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case I.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=B.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===I.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ts(t)?(this.state=B.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case I.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case I.EXCLAMATION_MARK:{this.state=B.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=B.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ts(t)?(this.state=B.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===I.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===I.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this._emitChars(fn);break}case I.EOF:{this._err(ge.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(fn);break}case I.EOF:{this._err(ge.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(fn);break}case I.EOF:{this._err(ge.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===I.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ts(t)?(this._emitChars("<"),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ts(t)?(this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(xr.SCRIPT,!1)&&R3(this.preprocessor.peek(xr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<xr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this._emitChars(fn);break}case I.EOF:{this._err(ge.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(fn);break}case I.EOF:{this._err(ge.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(fn);break}case I.EOF:{this._err(ge.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===I.SOLIDUS?(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(xr.SCRIPT,!1)&&R3(this.preprocessor.peek(xr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<xr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._err(ge.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=B.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:{this._err(ge.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this.currentAttr.name+=fn;break}default:this.currentAttr.name+=String.fromCodePoint(bo(t)?E0(t):t)}}_stateAfterAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case I.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case I.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ge.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ge.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case I.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this.currentAttr.value+=fn;break}case I.EOF:{this._err(ge.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case I.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this.currentAttr.value+=fn;break}case I.EOF:{this._err(ge.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(ge.unexpectedNullCharacter),this.currentAttr.value+=fn;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:case I.EQUALS_SIGN:case I.GRAVE_ACCENT:{this._err(ge.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case I.EOF:{this._err(ge.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ge.eofInTag),this._emitEOFToken();break}default:this._err(ge.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case I.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ge.eofInTag),this._emitEOFToken();break}default:this._err(ge.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case I.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case I.NULL:{this._err(ge.unexpectedNullCharacter),n.data+=fn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(xr.DASH_DASH,!0)?(this._createCommentToken(xr.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(xr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(xr.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(xr.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(ge.cdataInHtmlContent),this._createCommentToken(xr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ge.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case I.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case I.GREATER_THAN_SIGN:{this._err(ge.abruptClosingOfEmptyComment),this.state=B.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case I.GREATER_THAN_SIGN:{this._err(ge.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case I.EOF:{this._err(ge.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case I.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),n.data+=fn;break}case I.EOF:{this._err(ge.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case I.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case I.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===I.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===I.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==I.GREATER_THAN_SIGN&&t!==I.EOF&&this._err(ge.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case I.EOF:{this._err(ge.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case I.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case I.HYPHEN_MINUS:{n.data+="-";break}case I.EOF:{this._err(ge.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case I.GREATER_THAN_SIGN:{this._err(ge.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case I.EOF:{this._err(ge.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case I.EOF:{this._err(ge.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ge.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(bo(t))this._createDoctypeToken(String.fromCharCode(E0(t))),this.state=B.DOCTYPE_NAME;else switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.NULL:{this._err(ge.unexpectedNullCharacter),this._createDoctypeToken(fn),this.state=B.DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this._err(ge.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case I.EOF:{this._err(ge.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=B.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case I.NULL:{this._err(ge.unexpectedNullCharacter),n.name+=fn;break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(bo(t)?E0(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(xr.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(xr.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ge.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(ge.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ge.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ge.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ge.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ge.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ge.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),n.publicId+=fn;break}case I.GREATER_THAN_SIGN:{this._err(ge.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),n.publicId+=fn;break}case I.GREATER_THAN_SIGN:{this._err(ge.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case I.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case I.QUOTATION_MARK:{this._err(ge.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ge.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ge.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case I.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ge.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(ge.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ge.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ge.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ge.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ge.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ge.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),n.systemId+=fn;break}case I.GREATER_THAN_SIGN:{this._err(ge.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(ge.unexpectedNullCharacter),n.systemId+=fn;break}case I.GREATER_THAN_SIGN:{this._err(ge.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case I.EOF:{this._err(ge.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ge.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case I.NULL:{this._err(ge.unexpectedNullCharacter);break}case I.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case I.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case I.EOF:{this._err(ge.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===I.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case I.GREATER_THAN_SIGN:{this.state=B.DATA;break}case I.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(I.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&O3(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){O3(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===I.SEMICOLON&&this._err(ge.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const ay=new Set([E.DD,E.DT,E.LI,E.OPTGROUP,E.OPTION,E.P,E.RB,E.RP,E.RT,E.RTC]),M3=new Set([...ay,E.CAPTION,E.COLGROUP,E.TBODY,E.TD,E.TFOOT,E.TH,E.THEAD,E.TR]),nd=new Set([E.APPLET,E.CAPTION,E.HTML,E.MARQUEE,E.OBJECT,E.TABLE,E.TD,E.TEMPLATE,E.TH]),ON=new Set([...nd,E.OL,E.UL]),RN=new Set([...nd,E.BUTTON]),D3=new Set([E.ANNOTATION_XML,E.MI,E.MN,E.MO,E.MS,E.MTEXT]),I3=new Set([E.DESC,E.FOREIGN_OBJECT,E.TITLE]),MN=new Set([E.TR,E.TEMPLATE,E.HTML]),DN=new Set([E.TBODY,E.TFOOT,E.THEAD,E.TEMPLATE,E.HTML]),IN=new Set([E.TABLE,E.TEMPLATE,E.HTML]),LN=new Set([E.TD,E.TH]);class BN{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=E.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===E.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ae.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,r),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Ae.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(mm,Ae.HTML)}popUntilTableCellPopped(){this.popUntilPopped(LN,Ae.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(IN,Ae.HTML)}clearBackToTableBodyContext(){this.clearBackTo(DN,Ae.HTML)}clearBackToTableRowContext(){this.clearBackTo(MN,Ae.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===E.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===E.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const s=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Ae.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case Ae.SVG:{if(I3.has(s))return!1;break}case Ae.MATHML:{if(D3.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,nd)}hasInListItemScope(t){return this.hasInDynamicScope(t,ON)}hasInButtonScope(t){return this.hasInDynamicScope(t,RN)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Ae.HTML:{if(mm.has(n))return!0;if(nd.has(n))return!1;break}case Ae.SVG:{if(I3.has(n))return!1;break}case Ae.MATHML:{if(D3.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ae.HTML)switch(this.tagIDs[n]){case t:return!0;case E.TABLE:case E.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ae.HTML)switch(this.tagIDs[t]){case E.TBODY:case E.THEAD:case E.TFOOT:return!0;case E.TABLE:case E.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ae.HTML)switch(this.tagIDs[n]){case t:return!0;case E.OPTION:case E.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&ay.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&M3.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&M3.has(this.currentTagId);)this.pop()}}const g1=3;var Ra;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ra||(Ra={}));const L3={type:Ra.Marker};class PN{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],s=n.length,l=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){const f=this.entries[d];if(f.type===Ra.Marker)break;const{element:h}=f;if(this.treeAdapter.getTagName(h)===l&&this.treeAdapter.getNamespaceURI(h)===o){const p=this.treeAdapter.getAttrList(h);p.length===s&&r.push({idx:d,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<g1)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<g1)return;const s=new Map(n.map(o=>[o.name,o.value]));let l=0;for(let o=0;o<r.length;o++){const d=r[o];d.attrs.every(f=>s.get(f.name)===f.value)&&(l+=1,l>=g1&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(L3)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ra.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ra.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(L3);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Ra.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Ra.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ra.Element&&n.element===t)}}const ns={createDocument(){return{nodeName:"#document",mode:na.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const s=e.childNodes.find(l=>l.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=r;else{const l={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ns.appendChild(e,l)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ns.isTextNode(n)){n.value+=t;return}}ns.appendChild(e,ns.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ns.isTextNode(r)?r.value+=t:ns.insertBefore(e,ns.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},iy="html",UN="about:legacy-compat",zN="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",sy=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],FN=[...sy,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],HN=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ly=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],qN=[...ly,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function B3(e,t){return t.some(n=>e.startsWith(n))}function jN(e){return e.name===iy&&e.publicId===null&&(e.systemId===null||e.systemId===UN)}function YN(e){if(e.name!==iy)return na.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===zN)return na.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),HN.has(n))return na.QUIRKS;let r=t===null?FN:sy;if(B3(n,r))return na.QUIRKS;if(r=t===null?ly:qN,B3(n,r))return na.LIMITED_QUIRKS}return na.NO_QUIRKS}const P3={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},GN="definitionurl",VN="definitionURL",KN=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),$N=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ae.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ae.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ae.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ae.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ae.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ae.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ae.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ae.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ae.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ae.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ae.XMLNS}]]),WN=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),XN=new Set([E.B,E.BIG,E.BLOCKQUOTE,E.BODY,E.BR,E.CENTER,E.CODE,E.DD,E.DIV,E.DL,E.DT,E.EM,E.EMBED,E.H1,E.H2,E.H3,E.H4,E.H5,E.H6,E.HEAD,E.HR,E.I,E.IMG,E.LI,E.LISTING,E.MENU,E.META,E.NOBR,E.OL,E.P,E.PRE,E.RUBY,E.S,E.SMALL,E.SPAN,E.STRONG,E.STRIKE,E.SUB,E.SUP,E.TABLE,E.TT,E.U,E.UL,E.VAR]);function QN(e){const t=e.tagID;return t===E.FONT&&e.attrs.some(({name:r})=>r===Ys.COLOR||r===Ys.SIZE||r===Ys.FACE)||XN.has(t)}function uy(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===GN){e.attrs[t].name=VN;break}}function oy(e){for(let t=0;t<e.attrs.length;t++){const n=KN.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function pp(e){for(let t=0;t<e.attrs.length;t++){const n=$N.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function ZN(e){const t=WN.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ru(e.tagName))}function JN(e,t){return t===Ae.MATHML&&(e===E.MI||e===E.MO||e===E.MN||e===E.MS||e===E.MTEXT)}function eO(e,t,n){if(t===Ae.MATHML&&e===E.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ys.ENCODING){const s=n[r].value.toLowerCase();return s===P3.TEXT_HTML||s===P3.APPLICATION_XML}}return t===Ae.SVG&&(e===E.FOREIGN_OBJECT||e===E.DESC||e===E.TITLE)}function tO(e,t,n,r){return(!r||r===Ae.HTML)&&eO(e,t,n)||(!r||r===Ae.MATHML)&&JN(e,t)}const nO="hidden",rO=8,aO=3;var H;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(H||(H={}));const iO={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},cy=new Set([E.TABLE,E.TBODY,E.TFOOT,E.THEAD,E.TR]),U3={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ns,onParseError:null};let z3=class{constructor(t,n,r=null,s=null){this.fragmentContext=r,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=H.INITIAL,this.originalInsertionMode=H.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...U3,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new NN(this.options,this),this.activeFormattingElements=new PN(this.treeAdapter),this.fragmentContextID=r?ru(this.treeAdapter.getTagName(r)):E.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new BN(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...U3,...n};t??(t=r.treeAdapter.createElement(te.TEMPLATE,Ae.HTML,[]));const s=r.treeAdapter.createElement("documentmock",Ae.HTML,[]),l=new this(r,s,t);return l.fragmentContextID===E.TEMPLATE&&l.tmplInsertionModeStack.unshift(H.IN_TEMPLATE),l._initTokenizerForFragmentParsing(),l._insertFakeRootElement(),l._resetInsertionMode(),l._findFormInFragmentContext(),l}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var s;if(!this.onParseError)return;const l=(s=t.location)!==null&&s!==void 0?s:iO,o={code:n,startLine:l.startLine,startCol:l.startCol,startOffset:l.startOffset,endLine:r?l.startLine:l.endLine,endCol:r?l.startCol:l.endCol,endOffset:r?l.startOffset:l.endOffset};this.onParseError(o)}onItemPush(t,n,r){var s,l;(l=(s=this.treeAdapter).onItemPush)===null||l===void 0||l.call(s,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(r=this.treeAdapter).onItemPop)===null||s===void 0||s.call(r,t,this.openElements.current),n){let l,o;this.openElements.stackTop===0&&this.fragmentContext?(l=this.fragmentContext,o=this.fragmentContextID):{current:l,currentTagId:o}=this.openElements,this._setContextModes(l,o)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Ae.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Ae.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=H.TEXT}switchToPlaintextParsing(){this.insertionMode=H.TEXT,this.originalInsertionMode=H.IN_BODY,this.tokenizer.state=kn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===te.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Ae.HTML))switch(this.fragmentContextID){case E.TITLE:case E.TEXTAREA:{this.tokenizer.state=kn.RCDATA;break}case E.STYLE:case E.XMP:case E.IFRAME:case E.NOEMBED:case E.NOFRAMES:case E.NOSCRIPT:{this.tokenizer.state=kn.RAWTEXT;break}case E.SCRIPT:{this.tokenizer.state=kn.SCRIPT_DATA;break}case E.PLAINTEXT:{this.tokenizer.state=kn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,s),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Ae.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ae.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(te.HTML,Ae.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,E.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),l=r?s.lastIndexOf(r):s.length,o=s[l-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:f,endCol:h,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:f,endCol:h,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,s=this.treeAdapter.getTagName(t),l=n.type===wt.END_TAG&&s===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===E.SVG&&this.treeAdapter.getTagName(n)===te.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Ae.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===E.MGLYPH||t.tagID===E.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Ae.HTML)}_processToken(t){switch(t.type){case wt.CHARACTER:{this.onCharacter(t);break}case wt.NULL_CHARACTER:{this.onNullCharacter(t);break}case wt.COMMENT:{this.onComment(t);break}case wt.DOCTYPE:{this.onDoctype(t);break}case wt.START_TAG:{this._processStartTag(t);break}case wt.END_TAG:{this.onEndTag(t);break}case wt.EOF:{this.onEof(t);break}case wt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const s=this.treeAdapter.getNamespaceURI(n),l=this.treeAdapter.getAttrList(n);return tO(t,s,l,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===Ra.Marker||this.openElements.contains(s.element)),r=n===-1?t-1:n-1;for(let s=r;s>=0;s--){const l=this.activeFormattingElements.entries[s];this._insertElement(l.token,this.treeAdapter.getNamespaceURI(l.element)),l.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=H.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(E.P),this.openElements.popUntilTagNamePopped(E.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case E.TR:{this.insertionMode=H.IN_ROW;return}case E.TBODY:case E.THEAD:case E.TFOOT:{this.insertionMode=H.IN_TABLE_BODY;return}case E.CAPTION:{this.insertionMode=H.IN_CAPTION;return}case E.COLGROUP:{this.insertionMode=H.IN_COLUMN_GROUP;return}case E.TABLE:{this.insertionMode=H.IN_TABLE;return}case E.BODY:{this.insertionMode=H.IN_BODY;return}case E.FRAMESET:{this.insertionMode=H.IN_FRAMESET;return}case E.SELECT:{this._resetInsertionModeForSelect(t);return}case E.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case E.HTML:{this.insertionMode=this.headElement?H.AFTER_HEAD:H.BEFORE_HEAD;return}case E.TD:case E.TH:{if(t>0){this.insertionMode=H.IN_CELL;return}break}case E.HEAD:{if(t>0){this.insertionMode=H.IN_HEAD;return}break}}this.insertionMode=H.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===E.TEMPLATE)break;if(r===E.TABLE){this.insertionMode=H.IN_SELECT_IN_TABLE;return}}this.insertionMode=H.IN_SELECT}_isElementCausesFosterParenting(t){return cy.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case E.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Ae.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case E.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return AN[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){LR(this,t);return}switch(this.insertionMode){case H.INITIAL:{mo(this,t);break}case H.BEFORE_HTML:{So(this,t);break}case H.BEFORE_HEAD:{xo(this,t);break}case H.IN_HEAD:{Ao(this,t);break}case H.IN_HEAD_NO_SCRIPT:{wo(this,t);break}case H.AFTER_HEAD:{Co(this,t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:{fy(this,t);break}case H.TEXT:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{b1(this,t);break}case H.IN_TABLE_TEXT:{Ey(this,t);break}case H.IN_COLUMN_GROUP:{rd(this,t);break}case H.AFTER_BODY:{ad(this,t);break}case H.AFTER_AFTER_BODY:{Y0(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){IR(this,t);return}switch(this.insertionMode){case H.INITIAL:{mo(this,t);break}case H.BEFORE_HTML:{So(this,t);break}case H.BEFORE_HEAD:{xo(this,t);break}case H.IN_HEAD:{Ao(this,t);break}case H.IN_HEAD_NO_SCRIPT:{wo(this,t);break}case H.AFTER_HEAD:{Co(this,t);break}case H.TEXT:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{b1(this,t);break}case H.IN_COLUMN_GROUP:{rd(this,t);break}case H.AFTER_BODY:{ad(this,t);break}case H.AFTER_AFTER_BODY:{Y0(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){pm(this,t);return}switch(this.insertionMode){case H.INITIAL:case H.BEFORE_HTML:case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_TEMPLATE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{pm(this,t);break}case H.IN_TABLE_TEXT:{po(this,t);break}case H.AFTER_BODY:{fO(this,t);break}case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{hO(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case H.INITIAL:{mO(this,t);break}case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:{this._err(t,ge.misplacedDoctype);break}case H.IN_TABLE_TEXT:{po(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ge.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?BR(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{mo(this,t);break}case H.BEFORE_HTML:{pO(this,t);break}case H.BEFORE_HEAD:{bO(this,t);break}case H.IN_HEAD:{Ta(this,t);break}case H.IN_HEAD_NO_SCRIPT:{vO(this,t);break}case H.AFTER_HEAD:{_O(this,t);break}case H.IN_BODY:{ar(this,t);break}case H.IN_TABLE:{Vl(this,t);break}case H.IN_TABLE_TEXT:{po(this,t);break}case H.IN_CAPTION:{ER(this,t);break}case H.IN_COLUMN_GROUP:{Ep(this,t);break}case H.IN_TABLE_BODY:{kd(this,t);break}case H.IN_ROW:{Nd(this,t);break}case H.IN_CELL:{TR(this,t);break}case H.IN_SELECT:{Ty(this,t);break}case H.IN_SELECT_IN_TABLE:{SR(this,t);break}case H.IN_TEMPLATE:{AR(this,t);break}case H.AFTER_BODY:{CR(this,t);break}case H.IN_FRAMESET:{kR(this,t);break}case H.AFTER_FRAMESET:{OR(this,t);break}case H.AFTER_AFTER_BODY:{MR(this,t);break}case H.AFTER_AFTER_FRAMESET:{DR(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?PR(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{mo(this,t);break}case H.BEFORE_HTML:{gO(this,t);break}case H.BEFORE_HEAD:{EO(this,t);break}case H.IN_HEAD:{yO(this,t);break}case H.IN_HEAD_NO_SCRIPT:{TO(this,t);break}case H.AFTER_HEAD:{SO(this,t);break}case H.IN_BODY:{Cd(this,t);break}case H.TEXT:{uR(this,t);break}case H.IN_TABLE:{Lo(this,t);break}case H.IN_TABLE_TEXT:{po(this,t);break}case H.IN_CAPTION:{yR(this,t);break}case H.IN_COLUMN_GROUP:{vR(this,t);break}case H.IN_TABLE_BODY:{gm(this,t);break}case H.IN_ROW:{vy(this,t);break}case H.IN_CELL:{_R(this,t);break}case H.IN_SELECT:{_y(this,t);break}case H.IN_SELECT_IN_TABLE:{xR(this,t);break}case H.IN_TEMPLATE:{wR(this,t);break}case H.AFTER_BODY:{xy(this,t);break}case H.IN_FRAMESET:{NR(this,t);break}case H.AFTER_FRAMESET:{RR(this,t);break}case H.AFTER_AFTER_BODY:{Y0(this,t);break}}}onEof(t){switch(this.insertionMode){case H.INITIAL:{mo(this,t);break}case H.BEFORE_HTML:{So(this,t);break}case H.BEFORE_HEAD:{xo(this,t);break}case H.IN_HEAD:{Ao(this,t);break}case H.IN_HEAD_NO_SCRIPT:{wo(this,t);break}case H.AFTER_HEAD:{Co(this,t);break}case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{gy(this,t);break}case H.TEXT:{oR(this,t);break}case H.IN_TABLE_TEXT:{po(this,t);break}case H.IN_TEMPLATE:{Sy(this,t);break}case H.AFTER_BODY:case H.IN_FRAMESET:case H.AFTER_FRAMESET:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{bp(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===I.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.TEXT:case H.IN_COLUMN_GROUP:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{this._insertCharacters(t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:case H.AFTER_BODY:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{dy(this,t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{b1(this,t);break}case H.IN_TABLE_TEXT:{by(this,t);break}}}};function sO(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):py(e,t),n}function lO(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const s=e.openElements.items[r];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[r])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function uO(e,t,n){let r=t,s=e.openElements.getCommonAncestor(t);for(let l=0,o=s;o!==n;l++,o=s){s=e.openElements.getCommonAncestor(o);const d=e.activeFormattingElements.getElementEntry(o),f=d&&l>=aO;!d||f?(f&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(o)):(o=oO(e,d),r===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function oO(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function cO(e,t,n){const r=e.treeAdapter.getTagName(t),s=ru(r);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const l=e.treeAdapter.getNamespaceURI(t);s===E.TEMPLATE&&l===Ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function dO(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,l=e.treeAdapter.createElement(s.tagName,r,s.attrs);e._adoptNodes(t,l),e.treeAdapter.appendChild(t,l),e.activeFormattingElements.insertElementAfterBookmark(l,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,l,s.tagID)}function gp(e,t){for(let n=0;n<rO;n++){const r=sO(e,t);if(!r)break;const s=lO(e,r);if(!s)break;e.activeFormattingElements.bookmark=r;const l=uO(e,s,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(l),o&&cO(e,o,l),dO(e,s,r)}}function pm(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fO(e,t){e._appendCommentNode(t,e.openElements.items[0])}function hO(e,t){e._appendCommentNode(t,e.document)}function bp(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(r);if(s&&!s.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const l=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(l);o&&!o.endTag&&e._setEndLocation(l,t)}}}}function mO(e,t){e._setDocumentType(t);const n=t.forceQuirks?na.QUIRKS:YN(t);jN(t)||e._err(t,ge.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=H.BEFORE_HTML}function mo(e,t){e._err(t,ge.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,na.QUIRKS),e.insertionMode=H.BEFORE_HTML,e._processToken(t)}function pO(e,t){t.tagID===E.HTML?(e._insertElement(t,Ae.HTML),e.insertionMode=H.BEFORE_HEAD):So(e,t)}function gO(e,t){const n=t.tagID;(n===E.HTML||n===E.HEAD||n===E.BODY||n===E.BR)&&So(e,t)}function So(e,t){e._insertFakeRootElement(),e.insertionMode=H.BEFORE_HEAD,e._processToken(t)}function bO(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.HEAD:{e._insertElement(t,Ae.HTML),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD;break}default:xo(e,t)}}function EO(e,t){const n=t.tagID;n===E.HEAD||n===E.BODY||n===E.HTML||n===E.BR?xo(e,t):e._err(t,ge.endTagWithoutMatchingOpenElement)}function xo(e,t){e._insertFakeElement(te.HEAD,E.HEAD),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD,e._processToken(t)}function Ta(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case E.TITLE:{e._switchToTextParsing(t,kn.RCDATA);break}case E.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,kn.RAWTEXT):(e._insertElement(t,Ae.HTML),e.insertionMode=H.IN_HEAD_NO_SCRIPT);break}case E.NOFRAMES:case E.STYLE:{e._switchToTextParsing(t,kn.RAWTEXT);break}case E.SCRIPT:{e._switchToTextParsing(t,kn.SCRIPT_DATA);break}case E.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=H.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(H.IN_TEMPLATE);break}case E.HEAD:{e._err(t,ge.misplacedStartTagForHeadElement);break}default:Ao(e,t)}}function yO(e,t){switch(t.tagID){case E.HEAD:{e.openElements.pop(),e.insertionMode=H.AFTER_HEAD;break}case E.BODY:case E.BR:case E.HTML:{Ao(e,t);break}case E.TEMPLATE:{$s(e,t);break}default:e._err(t,ge.endTagWithoutMatchingOpenElement)}}function $s(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==E.TEMPLATE&&e._err(t,ge.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(E.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ge.endTagWithoutMatchingOpenElement)}function Ao(e,t){e.openElements.pop(),e.insertionMode=H.AFTER_HEAD,e._processToken(t)}function vO(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.BASEFONT:case E.BGSOUND:case E.HEAD:case E.LINK:case E.META:case E.NOFRAMES:case E.STYLE:{Ta(e,t);break}case E.NOSCRIPT:{e._err(t,ge.nestedNoscriptInHead);break}default:wo(e,t)}}function TO(e,t){switch(t.tagID){case E.NOSCRIPT:{e.openElements.pop(),e.insertionMode=H.IN_HEAD;break}case E.BR:{wo(e,t);break}default:e._err(t,ge.endTagWithoutMatchingOpenElement)}}function wo(e,t){const n=t.type===wt.EOF?ge.openElementsLeftAfterEof:ge.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=H.IN_HEAD,e._processToken(t)}function _O(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.BODY:{e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=H.IN_BODY;break}case E.FRAMESET:{e._insertElement(t,Ae.HTML),e.insertionMode=H.IN_FRAMESET;break}case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:case E.NOFRAMES:case E.SCRIPT:case E.STYLE:case E.TEMPLATE:case E.TITLE:{e._err(t,ge.abandonedHeadElementChild),e.openElements.push(e.headElement,E.HEAD),Ta(e,t),e.openElements.remove(e.headElement);break}case E.HEAD:{e._err(t,ge.misplacedStartTagForHeadElement);break}default:Co(e,t)}}function SO(e,t){switch(t.tagID){case E.BODY:case E.HTML:case E.BR:{Co(e,t);break}case E.TEMPLATE:{$s(e,t);break}default:e._err(t,ge.endTagWithoutMatchingOpenElement)}}function Co(e,t){e._insertFakeElement(te.BODY,E.BODY),e.insertionMode=H.IN_BODY,wd(e,t)}function wd(e,t){switch(t.type){case wt.CHARACTER:{fy(e,t);break}case wt.WHITESPACE_CHARACTER:{dy(e,t);break}case wt.COMMENT:{pm(e,t);break}case wt.START_TAG:{ar(e,t);break}case wt.END_TAG:{Cd(e,t);break}case wt.EOF:{gy(e,t);break}}}function dy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function fy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function xO(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function AO(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function wO(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ae.HTML),e.insertionMode=H.IN_FRAMESET)}function CO(e,t){e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e._insertElement(t,Ae.HTML)}function kO(e,t){e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&mm.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ae.HTML)}function NO(e,t){e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function OO(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),n||(e.formElement=e.openElements.current))}function RO(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const s=e.openElements.tagIDs[r];if(n===E.LI&&s===E.LI||(n===E.DD||n===E.DT)&&(s===E.DD||s===E.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==E.ADDRESS&&s!==E.DIV&&s!==E.P&&e._isSpecialElement(e.openElements.items[r],s))break}e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e._insertElement(t,Ae.HTML)}function MO(e,t){e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.tokenizer.state=kn.PLAINTEXT}function DO(e,t){e.openElements.hasInScope(E.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(E.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.framesetOk=!1}function IO(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(te.A);n&&(gp(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function LO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function BO(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(E.NOBR)&&(gp(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function PO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function UO(e,t){e.treeAdapter.getDocumentMode(e.document)!==na.QUIRKS&&e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=H.IN_TABLE}function hy(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function my(e){const t=ny(e,Ys.TYPE);return t!=null&&t.toLowerCase()===nO}function zO(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ae.HTML),my(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function FO(e,t){e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0}function HO(e,t){e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e._appendElement(t,Ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qO(e,t){t.tagName=te.IMG,t.tagID=E.IMG,hy(e,t)}function jO(e,t){e._insertElement(t,Ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=H.TEXT}function YO(e,t){e.openElements.hasInButtonScope(E.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,kn.RAWTEXT)}function GO(e,t){e.framesetOk=!1,e._switchToTextParsing(t,kn.RAWTEXT)}function F3(e,t){e._switchToTextParsing(t,kn.RAWTEXT)}function VO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===H.IN_TABLE||e.insertionMode===H.IN_CAPTION||e.insertionMode===H.IN_TABLE_BODY||e.insertionMode===H.IN_ROW||e.insertionMode===H.IN_CELL?H.IN_SELECT_IN_TABLE:H.IN_SELECT}function KO(e,t){e.openElements.currentTagId===E.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML)}function $O(e,t){e.openElements.hasInScope(E.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ae.HTML)}function WO(e,t){e.openElements.hasInScope(E.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(E.RTC),e._insertElement(t,Ae.HTML)}function XO(e,t){e._reconstructActiveFormattingElements(),uy(t),pp(t),t.selfClosing?e._appendElement(t,Ae.MATHML):e._insertElement(t,Ae.MATHML),t.ackSelfClosing=!0}function QO(e,t){e._reconstructActiveFormattingElements(),oy(t),pp(t),t.selfClosing?e._appendElement(t,Ae.SVG):e._insertElement(t,Ae.SVG),t.ackSelfClosing=!0}function H3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML)}function ar(e,t){switch(t.tagID){case E.I:case E.S:case E.B:case E.U:case E.EM:case E.TT:case E.BIG:case E.CODE:case E.FONT:case E.SMALL:case E.STRIKE:case E.STRONG:{LO(e,t);break}case E.A:{IO(e,t);break}case E.H1:case E.H2:case E.H3:case E.H4:case E.H5:case E.H6:{kO(e,t);break}case E.P:case E.DL:case E.OL:case E.UL:case E.DIV:case E.DIR:case E.NAV:case E.MAIN:case E.MENU:case E.ASIDE:case E.CENTER:case E.FIGURE:case E.FOOTER:case E.HEADER:case E.HGROUP:case E.DIALOG:case E.DETAILS:case E.ADDRESS:case E.ARTICLE:case E.SEARCH:case E.SECTION:case E.SUMMARY:case E.FIELDSET:case E.BLOCKQUOTE:case E.FIGCAPTION:{CO(e,t);break}case E.LI:case E.DD:case E.DT:{RO(e,t);break}case E.BR:case E.IMG:case E.WBR:case E.AREA:case E.EMBED:case E.KEYGEN:{hy(e,t);break}case E.HR:{HO(e,t);break}case E.RB:case E.RTC:{$O(e,t);break}case E.RT:case E.RP:{WO(e,t);break}case E.PRE:case E.LISTING:{NO(e,t);break}case E.XMP:{YO(e,t);break}case E.SVG:{QO(e,t);break}case E.HTML:{xO(e,t);break}case E.BASE:case E.LINK:case E.META:case E.STYLE:case E.TITLE:case E.SCRIPT:case E.BGSOUND:case E.BASEFONT:case E.TEMPLATE:{Ta(e,t);break}case E.BODY:{AO(e,t);break}case E.FORM:{OO(e,t);break}case E.NOBR:{BO(e,t);break}case E.MATH:{XO(e,t);break}case E.TABLE:{UO(e,t);break}case E.INPUT:{zO(e,t);break}case E.PARAM:case E.TRACK:case E.SOURCE:{FO(e,t);break}case E.IMAGE:{qO(e,t);break}case E.BUTTON:{DO(e,t);break}case E.APPLET:case E.OBJECT:case E.MARQUEE:{PO(e,t);break}case E.IFRAME:{GO(e,t);break}case E.SELECT:{VO(e,t);break}case E.OPTION:case E.OPTGROUP:{KO(e,t);break}case E.NOEMBED:case E.NOFRAMES:{F3(e,t);break}case E.FRAMESET:{wO(e,t);break}case E.TEXTAREA:{jO(e,t);break}case E.NOSCRIPT:{e.options.scriptingEnabled?F3(e,t):H3(e,t);break}case E.PLAINTEXT:{MO(e,t);break}case E.COL:case E.TH:case E.TD:case E.TR:case E.HEAD:case E.FRAME:case E.TBODY:case E.TFOOT:case E.THEAD:case E.CAPTION:case E.COLGROUP:break;default:H3(e,t)}}function ZO(e,t){if(e.openElements.hasInScope(E.BODY)&&(e.insertionMode=H.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function JO(e,t){e.openElements.hasInScope(E.BODY)&&(e.insertionMode=H.AFTER_BODY,xy(e,t))}function eR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function tR(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(E.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(E.FORM):n&&e.openElements.remove(n))}function nR(e){e.openElements.hasInButtonScope(E.P)||e._insertFakeElement(te.P,E.P),e._closePElement()}function rR(e){e.openElements.hasInListItemScope(E.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(E.LI),e.openElements.popUntilTagNamePopped(E.LI))}function aR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function iR(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function sR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function lR(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(te.BR,E.BR),e.openElements.pop(),e.framesetOk=!1}function py(e,t){const n=t.tagName,r=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const l=e.openElements.items[s],o=e.openElements.tagIDs[s];if(r===o&&(r!==E.UNKNOWN||e.treeAdapter.getTagName(l)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(l,o))break}}function Cd(e,t){switch(t.tagID){case E.A:case E.B:case E.I:case E.S:case E.U:case E.EM:case E.TT:case E.BIG:case E.CODE:case E.FONT:case E.NOBR:case E.SMALL:case E.STRIKE:case E.STRONG:{gp(e,t);break}case E.P:{nR(e);break}case E.DL:case E.UL:case E.OL:case E.DIR:case E.DIV:case E.NAV:case E.PRE:case E.MAIN:case E.MENU:case E.ASIDE:case E.BUTTON:case E.CENTER:case E.FIGURE:case E.FOOTER:case E.HEADER:case E.HGROUP:case E.DIALOG:case E.ADDRESS:case E.ARTICLE:case E.DETAILS:case E.SEARCH:case E.SECTION:case E.SUMMARY:case E.LISTING:case E.FIELDSET:case E.BLOCKQUOTE:case E.FIGCAPTION:{eR(e,t);break}case E.LI:{rR(e);break}case E.DD:case E.DT:{aR(e,t);break}case E.H1:case E.H2:case E.H3:case E.H4:case E.H5:case E.H6:{iR(e);break}case E.BR:{lR(e);break}case E.BODY:{ZO(e,t);break}case E.HTML:{JO(e,t);break}case E.FORM:{tR(e);break}case E.APPLET:case E.OBJECT:case E.MARQUEE:{sR(e,t);break}case E.TEMPLATE:{$s(e,t);break}default:py(e,t)}}function gy(e,t){e.tmplInsertionModeStack.length>0?Sy(e,t):bp(e,t)}function uR(e,t){var n;t.tagID===E.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function oR(e,t){e._err(t,ge.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function b1(e,t){if(e.openElements.currentTagId!==void 0&&cy.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=H.IN_TABLE_TEXT,t.type){case wt.CHARACTER:{Ey(e,t);break}case wt.WHITESPACE_CHARACTER:{by(e,t);break}}else Ko(e,t)}function cR(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ae.HTML),e.insertionMode=H.IN_CAPTION}function dR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ae.HTML),e.insertionMode=H.IN_COLUMN_GROUP}function fR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(te.COLGROUP,E.COLGROUP),e.insertionMode=H.IN_COLUMN_GROUP,Ep(e,t)}function hR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ae.HTML),e.insertionMode=H.IN_TABLE_BODY}function mR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(te.TBODY,E.TBODY),e.insertionMode=H.IN_TABLE_BODY,kd(e,t)}function pR(e,t){e.openElements.hasInTableScope(E.TABLE)&&(e.openElements.popUntilTagNamePopped(E.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function gR(e,t){my(t)?e._appendElement(t,Ae.HTML):Ko(e,t),t.ackSelfClosing=!0}function bR(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Vl(e,t){switch(t.tagID){case E.TD:case E.TH:case E.TR:{mR(e,t);break}case E.STYLE:case E.SCRIPT:case E.TEMPLATE:{Ta(e,t);break}case E.COL:{fR(e,t);break}case E.FORM:{bR(e,t);break}case E.TABLE:{pR(e,t);break}case E.TBODY:case E.TFOOT:case E.THEAD:{hR(e,t);break}case E.INPUT:{gR(e,t);break}case E.CAPTION:{cR(e,t);break}case E.COLGROUP:{dR(e,t);break}default:Ko(e,t)}}function Lo(e,t){switch(t.tagID){case E.TABLE:{e.openElements.hasInTableScope(E.TABLE)&&(e.openElements.popUntilTagNamePopped(E.TABLE),e._resetInsertionMode());break}case E.TEMPLATE:{$s(e,t);break}case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TBODY:case E.TD:case E.TFOOT:case E.TH:case E.THEAD:case E.TR:break;default:Ko(e,t)}}function Ko(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,wd(e,t),e.fosterParentingEnabled=n}function by(e,t){e.pendingCharacterTokens.push(t)}function Ey(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function po(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ko(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const yy=new Set([E.CAPTION,E.COL,E.COLGROUP,E.TBODY,E.TD,E.TFOOT,E.TH,E.THEAD,E.TR]);function ER(e,t){const n=t.tagID;yy.has(n)?e.openElements.hasInTableScope(E.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(E.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,Vl(e,t)):ar(e,t)}function yR(e,t){const n=t.tagID;switch(n){case E.CAPTION:case E.TABLE:{e.openElements.hasInTableScope(E.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(E.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,n===E.TABLE&&Lo(e,t));break}case E.BODY:case E.COL:case E.COLGROUP:case E.HTML:case E.TBODY:case E.TD:case E.TFOOT:case E.TH:case E.THEAD:case E.TR:break;default:Cd(e,t)}}function Ep(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.COL:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case E.TEMPLATE:{Ta(e,t);break}default:rd(e,t)}}function vR(e,t){switch(t.tagID){case E.COLGROUP:{e.openElements.currentTagId===E.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case E.TEMPLATE:{$s(e,t);break}case E.COL:break;default:rd(e,t)}}function rd(e,t){e.openElements.currentTagId===E.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE,e._processToken(t))}function kd(e,t){switch(t.tagID){case E.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ae.HTML),e.insertionMode=H.IN_ROW;break}case E.TH:case E.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(te.TR,E.TR),e.insertionMode=H.IN_ROW,Nd(e,t);break}case E.CAPTION:case E.COL:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,Vl(e,t));break}default:Vl(e,t)}}function gm(e,t){const n=t.tagID;switch(t.tagID){case E.TBODY:case E.TFOOT:case E.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case E.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,Lo(e,t));break}case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TD:case E.TH:case E.TR:break;default:Lo(e,t)}}function Nd(e,t){switch(t.tagID){case E.TH:case E.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ae.HTML),e.insertionMode=H.IN_CELL,e.activeFormattingElements.insertMarker();break}case E.CAPTION:case E.COL:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:case E.TR:{e.openElements.hasInTableScope(E.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,kd(e,t));break}default:Vl(e,t)}}function vy(e,t){switch(t.tagID){case E.TR:{e.openElements.hasInTableScope(E.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY);break}case E.TABLE:{e.openElements.hasInTableScope(E.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,gm(e,t));break}case E.TBODY:case E.TFOOT:case E.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(E.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,gm(e,t));break}case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TD:case E.TH:break;default:Lo(e,t)}}function TR(e,t){const n=t.tagID;yy.has(n)?(e.openElements.hasInTableScope(E.TD)||e.openElements.hasInTableScope(E.TH))&&(e._closeTableCell(),Nd(e,t)):ar(e,t)}function _R(e,t){const n=t.tagID;switch(n){case E.TD:case E.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_ROW);break}case E.TABLE:case E.TBODY:case E.TFOOT:case E.THEAD:case E.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),vy(e,t));break}case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:break;default:Cd(e,t)}}function Ty(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.OPTION:{e.openElements.currentTagId===E.OPTION&&e.openElements.pop(),e._insertElement(t,Ae.HTML);break}case E.OPTGROUP:{e.openElements.currentTagId===E.OPTION&&e.openElements.pop(),e.openElements.currentTagId===E.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ae.HTML);break}case E.HR:{e.openElements.currentTagId===E.OPTION&&e.openElements.pop(),e.openElements.currentTagId===E.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case E.INPUT:case E.KEYGEN:case E.TEXTAREA:case E.SELECT:{e.openElements.hasInSelectScope(E.SELECT)&&(e.openElements.popUntilTagNamePopped(E.SELECT),e._resetInsertionMode(),t.tagID!==E.SELECT&&e._processStartTag(t));break}case E.SCRIPT:case E.TEMPLATE:{Ta(e,t);break}}}function _y(e,t){switch(t.tagID){case E.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===E.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===E.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===E.OPTGROUP&&e.openElements.pop();break}case E.OPTION:{e.openElements.currentTagId===E.OPTION&&e.openElements.pop();break}case E.SELECT:{e.openElements.hasInSelectScope(E.SELECT)&&(e.openElements.popUntilTagNamePopped(E.SELECT),e._resetInsertionMode());break}case E.TEMPLATE:{$s(e,t);break}}}function SR(e,t){const n=t.tagID;n===E.CAPTION||n===E.TABLE||n===E.TBODY||n===E.TFOOT||n===E.THEAD||n===E.TR||n===E.TD||n===E.TH?(e.openElements.popUntilTagNamePopped(E.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ty(e,t)}function xR(e,t){const n=t.tagID;n===E.CAPTION||n===E.TABLE||n===E.TBODY||n===E.TFOOT||n===E.THEAD||n===E.TR||n===E.TD||n===E.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(E.SELECT),e._resetInsertionMode(),e.onEndTag(t)):_y(e,t)}function AR(e,t){switch(t.tagID){case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:case E.NOFRAMES:case E.SCRIPT:case E.STYLE:case E.TEMPLATE:case E.TITLE:{Ta(e,t);break}case E.CAPTION:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:{e.tmplInsertionModeStack[0]=H.IN_TABLE,e.insertionMode=H.IN_TABLE,Vl(e,t);break}case E.COL:{e.tmplInsertionModeStack[0]=H.IN_COLUMN_GROUP,e.insertionMode=H.IN_COLUMN_GROUP,Ep(e,t);break}case E.TR:{e.tmplInsertionModeStack[0]=H.IN_TABLE_BODY,e.insertionMode=H.IN_TABLE_BODY,kd(e,t);break}case E.TD:case E.TH:{e.tmplInsertionModeStack[0]=H.IN_ROW,e.insertionMode=H.IN_ROW,Nd(e,t);break}default:e.tmplInsertionModeStack[0]=H.IN_BODY,e.insertionMode=H.IN_BODY,ar(e,t)}}function wR(e,t){t.tagID===E.TEMPLATE&&$s(e,t)}function Sy(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(E.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):bp(e,t)}function CR(e,t){t.tagID===E.HTML?ar(e,t):ad(e,t)}function xy(e,t){var n;if(t.tagID===E.HTML){if(e.fragmentContext||(e.insertionMode=H.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===E.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ad(e,t)}function ad(e,t){e.insertionMode=H.IN_BODY,wd(e,t)}function kR(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.FRAMESET:{e._insertElement(t,Ae.HTML);break}case E.FRAME:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case E.NOFRAMES:{Ta(e,t);break}}}function NR(e,t){t.tagID===E.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==E.FRAMESET&&(e.insertionMode=H.AFTER_FRAMESET))}function OR(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.NOFRAMES:{Ta(e,t);break}}}function RR(e,t){t.tagID===E.HTML&&(e.insertionMode=H.AFTER_AFTER_FRAMESET)}function MR(e,t){t.tagID===E.HTML?ar(e,t):Y0(e,t)}function Y0(e,t){e.insertionMode=H.IN_BODY,wd(e,t)}function DR(e,t){switch(t.tagID){case E.HTML:{ar(e,t);break}case E.NOFRAMES:{Ta(e,t);break}}}function IR(e,t){t.chars=fn,e._insertCharacters(t)}function LR(e,t){e._insertCharacters(t),e.framesetOk=!1}function Ay(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ae.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function BR(e,t){if(QN(t))Ay(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ae.MATHML?uy(t):r===Ae.SVG&&(ZN(t),oy(t)),pp(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function PR(e,t){if(t.tagID===E.P||t.tagID===E.BR){Ay(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ae.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(r);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}te.AREA,te.BASE,te.BASEFONT,te.BGSOUND,te.BR,te.COL,te.EMBED,te.FRAME,te.HR,te.IMG,te.INPUT,te.KEYGEN,te.LINK,te.META,te.PARAM,te.SOURCE,te.TRACK,te.WBR;const UR=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,zR=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),q3={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function wy(e,t){const n=WR(e),r=b5("type",{handlers:{root:FR,element:HR,text:qR,comment:ky,doctype:jR,raw:GR},unknown:VR}),s={parser:n?new z3(q3):z3.getFragmentParser(void 0,q3),handle(d){r(d,s)},stitches:!1,options:t||{}};r(e,s),au(s,Pa());const l=n?s.parser.document:s.parser.getFragment(),o=Fk(l,{file:s.options.file});return s.stitches&&Yo(o,"comment",function(d,f,h){const p=d;if(p.value.stitch&&h&&f!==void 0){const g=h.children;return g[f]=p.value.stitch,f}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function Cy(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function FR(e,t){Cy(e.children,t)}function HR(e,t){KR(e,t),Cy(e.children,t),$R(e,t)}function qR(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:wt.CHARACTER,chars:e.value,location:$o(e)};au(t,Pa(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function jR(e,t){const n={type:wt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:$o(e)};au(t,Pa(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function YR(e,t){t.stitches=!0;const n=XR(e);if("children"in e&&"children"in n){const r=wy({type:"root",children:e.children},t.options);n.children=r.children}ky({type:"comment",value:{stitch:n}},t)}function ky(e,t){const n=e.value,r={type:wt.COMMENT,data:n,location:$o(e)};au(t,Pa(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GR(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ny(t,Pa(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(UR,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function VR(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))YR(n,t);else{let r="";throw zR.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function au(e,t){Ny(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=kn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ny(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function KR(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===kn.PLAINTEXT)return;au(t,Pa(e));const r=t.parser.openElements.current;let s="namespaceURI"in r?r.namespaceURI:Da.html;s===Da.html&&n==="svg"&&(s=Da.svg);const l=tN({...e,children:[]},{space:s===Da.svg?"svg":"html"}),o={type:wt.START_TAG,tagName:n,tagID:ru(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:$o(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function $R(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&oN.includes(n)||t.parser.tokenizer.state===kn.PLAINTEXT)return;au(t,Td(e));const r={type:wt.END_TAG,tagName:n,tagID:ru(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:$o(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===kn.RCDATA||t.parser.tokenizer.state===kn.RAWTEXT||t.parser.tokenizer.state===kn.SCRIPT_DATA)&&(t.parser.tokenizer.state=kn.DATA)}function WR(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function $o(e){const t=Pa(e)||{line:void 0,column:void 0,offset:void 0},n=Td(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function XR(e){return"children"in e?Gl({...e,children:[]}):Gl(e)}function QR(e){return function(t,n){return wy(t,{...e,file:n})}}const j3=function(e,t,n){const r=jo(n);if(!e||!e.type||!e.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=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},Ws=function(e){if(e==null)return eM;if(typeof e=="string")return JR(e);if(typeof e=="object")return ZR(e);if(typeof e=="function")return yp(e);throw new Error("Expected function, string, or array as `test`")};function ZR(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ws(e[n]);return yp(r);function r(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function JR(e){return yp(t);function t(n){return n.tagName===e}}function yp(e){return t;function t(n,r,s){return!!(tM(n)&&e.call(this,n,typeof r=="number"?r:void 0,s||void 0))}}function eM(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function tM(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Y3=/\n/g,G3=/[\t ]+/g,bm=Ws("br"),V3=Ws(uM),nM=Ws("p"),K3=Ws("tr"),rM=Ws(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",lM,oM]),Oy=Ws(["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 Ry(e,t){const n=t||{},r="children"in e?e.children:[],s=Oy(e),l=Iy(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...Dy(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<r.length;)o.push(...My(r[d],e,{whitespace:l,breakBefore:d?void 0:s,breakAfter:d<r.length-1?bm(r[d+1]):s}));const f=[];let h;for(d=-1;++d<o.length;){const p=o[d];typeof p=="number"?h!==void 0&&p>h&&(h=p):p&&(h!==void 0&&h>-1&&f.push(`
90
+ `.repeat(h)||" "),h=-1,f.push(p))}return f.join("")}function My(e,t,n){return e.type==="element"?aM(e,t,n):e.type==="text"?n.whitespace==="normal"?Dy(e,n):iM(e):[]}function aM(e,t,n){const r=Iy(e,n),s=e.children||[];let l=-1,o=[];if(rM(e))return o;let d,f;for(bm(e)||K3(e)&&j3(t,e,K3)?f=`
91
+ `:nM(e)?(d=2,f=2):Oy(e)&&(d=1,f=1);++l<s.length;)o=o.concat(My(s[l],e,{whitespace:r,breakBefore:l?void 0:d,breakAfter:l<s.length-1?bm(s[l+1]):f}));return V3(e)&&j3(t,e,V3)&&o.push(" "),d&&o.unshift(d),f&&o.push(f),o}function Dy(e,t){const n=String(e.value),r=[],s=[];let l=0;for(;l<=n.length;){Y3.lastIndex=l;const f=Y3.exec(n),h=f&&"index"in f?f.index:n.length;r.push(sM(n.slice(l,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),l===0?t.breakBefore:!0,h===n.length?t.breakAfter:!0)),l=h+1}let o=-1,d;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(s.push(r[o]),d=void 0):r[o]?(typeof d=="number"&&s.push(d),s.push(r[o]),d=0):(o===0||o===r.length-1)&&s.push(0);return s}function iM(e){return[String(e.value)]}function sM(e,t,n){const r=[];let s=0,l;for(;s<e.length;){G3.lastIndex=s;const o=G3.exec(e);l=o?o.index:e.length,!s&&!l&&o&&!t&&r.push(""),s!==l&&r.push(e.slice(s,l)),s=o?l+o[0].length:l}return s!==l&&!n&&r.push(""),r.join(" ")}function Iy(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function lM(e){return!!(e.properties||{}).hidden}function uM(e){return e.tagName==="td"||e.tagName==="th"}function oM(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function cM(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.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:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={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},g={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},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},T=t.optional(s)+e.IDENT_RE+"\\s*\\(",w=["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"],R=["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"],C=["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"],$={type:x,keyword:w,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:R},G={className:"function.dispatch",relevance:0,keywords:{_hint:C},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},z=[G,g,d,n,e.C_BLOCK_COMMENT_MODE,p,h],ne={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:$,contains:z.concat([{begin:/\(/,end:/\)/,keywords:$,contains:z.concat(["self"]),relevance:0}]),relevance:0},ce={className:"function",begin:"("+o+"[\\*&\\s]+)+"+T,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:$,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:$,relevance:0},{begin:T,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,p,d,{begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,p,d]}]},d,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:$,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ne,ce,G,z,[g,{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:$,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:$},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function dM(e){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"]},n=cM(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function fM(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},l=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},d={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,s]};s.contains.push(d);const f={match:/\\"/},h={className:"string",begin:/'/,end:/'/},p={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],T=e.SHEBANG({binary:`(${y.join("|")})`,relevance:10}),w={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.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"],R=["true","false"],C={match:/(\/[a-z._-]+)+/},M=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],L=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],$=["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"],G=["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:R,built_in:[...M,...L,"set","shopt",...$,...G]},contains:[T,e.SHEBANG(),w,g,l,o,C,d,f,h,p,n]}}function hM(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",d={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.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:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={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},g={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},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},T=t.optional(s)+e.IDENT_RE+"\\s*\\(",R={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"},C=[g,d,n,e.C_BLOCK_COMMENT_MODE,p,h],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:C.concat([{begin:/\(/,end:/\)/,keywords:R,contains:C.concat(["self"]),relevance:0}]),relevance:0},L={begin:"("+o+"[\\*&\\s]+)+"+T,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:R,relevance:0},{begin:T,returnBegin:!0,contains:[e.inherit(y,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,p,d,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,p,d]}]},d,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:R,disableAutodetect:!0,illegal:"</",contains:[].concat(M,L,C,[g,{begin:e.IDENT_RE+"::",keywords:R},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:g,strings:h,keywords:R}}}function mM(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.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:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={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},g={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},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},T=t.optional(s)+e.IDENT_RE+"\\s*\\(",w=["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"],R=["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"],C=["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"],$={type:x,keyword:w,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:R},G={className:"function.dispatch",relevance:0,keywords:{_hint:C},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},z=[G,g,d,n,e.C_BLOCK_COMMENT_MODE,p,h],ne={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:$,contains:z.concat([{begin:/\(/,end:/\)/,keywords:$,contains:z.concat(["self"]),relevance:0}]),relevance:0},ce={className:"function",begin:"("+o+"[\\*&\\s]+)+"+T,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:$,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:$,relevance:0},{begin:T,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,p,d,{begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,p,d]}]},d,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:$,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ne,ce,G,z,[g,{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:$,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:$},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function pM(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],s=["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"],l=["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"],o={keyword:s.concat(l),built_in:t,literal:r},d=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),f={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},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=e.inherit(p,{illegal:/\n/}),y={className:"subst",begin:/\{/,end:/\}/,keywords:o},T=e.inherit(y,{illegal:/\n/}),w={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,T]},x={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]},R=e.inherit(x,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},T]});y.contains=[x,w,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,e.C_BLOCK_COMMENT_MODE],T.contains=[R,w,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const C={variants:[h,x,w,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},M={begin:"<",end:">",contains:[{beginKeywords:"in out"},d]},L=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",$={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},C,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},d,M,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,M,e.C_LINE_COMMENT_MODE,e.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:"("+L+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,M],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[C,f,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},$]}}const gM=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.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_-]*/}}),bM=["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"],EM=["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"],yM=[...bM,...EM],vM=["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(),TM=["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(),_M=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),SM=["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 xM(e){const t=e.regex,n=gM(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",l=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+TM.join("|")+")"},{begin:":(:)?("+_M.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+SM.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:l},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:vM.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+yM.join("|")+")\\b"}]}}function AM(e){const t=e.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 wM(e){const l={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:l,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.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:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:l,illegal:/["']/}]}]}}function CM(e){const t=e.regex,n=/[_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:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.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(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function kM(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},d={begin:/\[/,end:/\]/,contains:[r,l,s,o,n,"self"],relevance:0},f=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,p=/'[^']*'/,g=t.either(f,h,p),y=t.concat(g,"(\\s*\\.\\s*",g,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[r,d,l,s,o,n]}}]}}var Bl="[0-9](_*[0-9])*",y0=`\\.(${Bl})`,v0="[0-9a-fA-F](_*[0-9a-fA-F])*",$3={className:"number",variants:[{begin:`(\\b(${Bl})((${y0})|\\.)?|(${y0}))[eE][+-]?(${Bl})[fFdD]?\\b`},{begin:`\\b(${Bl})((${y0})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${y0})[fFdD]?\\b`},{begin:`\\b(${Bl})[fFdD]\\b`},{begin:`\\b0[xX]((${v0})\\.?|(${v0})?\\.(${v0}))[pP][+-]?(${Bl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${v0})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Ly(e,t,n){return n===-1?"":e.replace(t,r=>Ly(e,t,n-1))}function NM(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Ly("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),f={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"]},h={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},p={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,$3,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},$3,h]}}const W3="[A-Za-z$_][0-9A-Za-z$_]*",OM=["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"],RM=["true","false","null","undefined","NaN","Infinity"],By=["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"],Py=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Uy=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],MM=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],DM=[].concat(Uy,By,Py);function IM(e){const t=e.regex,n=(be,{after:ze})=>{const A="</"+be[0].slice(1);return be.input.indexOf(A,ze)!==-1},r=W3,s={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(be,ze)=>{const A=be[0].length+be.index,le=be.input[A];if(le==="<"||le===","){ze.ignoreMatch();return}le===">"&&(n(be,{after:A})||ze.ignoreMatch());let ye;const D=be.input.substring(A);if(ye=D.match(/^\s*=/)){ze.ignoreMatch();return}if((ye=D.match(/^\s+extends\s+/))&&ye.index===0){ze.ignoreMatch();return}}},d={$pattern:W3,keyword:OM,literal:RM,built_in:DM,"variable.language":MM},f="[0-9](_?[0-9])*",h=`\\.(${f})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${p})\\b((${h})\\b|\\.)?|(${h})\\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},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},T={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},R={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},M={className:"comment",variants:[e.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:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},L=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,T,w,x,R,{match:/\$\d+/},g];y.contains=L.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(L)});const $=[].concat(M,y.contains),G=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat($)}]),z={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:G},ne={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},ce={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:{_:[...By,...Py]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[z],illegal:/%/},me={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(be){return t.concat("(?!",be.join("|"),")")}const se={match:t.concat(/\b/,J([...Uy,"super","import"].map(be=>`${be}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},fe={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},z]},X="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(X)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[z]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:ce},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,T,w,x,R,M,{match:/\$\d+/},g,ce,{scope:"attr",match:r+t.lookahead(":"),relevance:0},he,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[M,e.REGEXP_MODE,{className:"function",begin:X,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:l},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[z,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},fe,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[z]},se,me,ne,pe,{match:/\$[(.]/}]}}function LM(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],s={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,s,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Pl="[0-9](_*[0-9])*",T0=`\\.(${Pl})`,_0="[0-9a-fA-F](_*[0-9a-fA-F])*",BM={className:"number",variants:[{begin:`(\\b(${Pl})((${T0})|\\.)?|(${T0}))[eE][+-]?(${Pl})[fFdD]?\\b`},{begin:`\\b(${Pl})((${T0})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${T0})[fFdD]?\\b`},{begin:`\\b(${Pl})[fFdD]\\b`},{begin:`\\b0[xX]((${_0})\\.?|(${_0})?\\.(${_0}))[pP][+-]?(${Pl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${_0})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function PM(e){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"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},l={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[l,s]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,l,s]}]};s.contains.push(o);const d={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},f={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},h=BM,p=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},y=g;return y.variants[1].contains=[g],g.variants[1].contains=[y],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,p,n,r,d,f,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.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:[g,e.C_LINE_COMMENT_MODE,p],relevance:0},e.C_LINE_COMMENT_MODE,p,d,f,o,e.C_NUMBER_MODE]},p]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},d,f]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
92
+ `},h]}}const UM=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.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_-]*/}}),zM=["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"],FM=["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"],HM=[...zM,...FM],qM=["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(),zy=["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(),Fy=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),jM=["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(),YM=zy.concat(Fy).sort().reverse();function GM(e){const t=UM(e),n=YM,r="and or not only",s="[\\w-]+",l="("+s+"|@\\{"+s+"\\})",o=[],d=[],f=function(L){return{className:"string",begin:"~?"+L+".*?"+L}},h=function(L,$,G){return{className:L,begin:$,relevance:G}},p={$pattern:/[a-z-]+/,keyword:r,attribute:qM.join(" ")},g={begin:"\\(",end:"\\)",contains:d,keywords:p,relevance:0};d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f("'"),f('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,g,h("variable","@@?"+s,10),h("variable","@\\{"+s+"\\}"),h("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const y=d.concat({begin:/\{/,end:/\}/,contains:o}),T={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(d)},w={begin:l+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+jM.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:d}}]},x={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:p,returnEnd:!0,contains:d,relevance:0}},R={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:y}},C={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:l,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,T,h("keyword","all\\b"),h("variable","@\\{"+s+"\\}"),{begin:"\\b("+HM.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,h("selector-tag",l,0),h("selector-id","#"+l),h("selector-class","\\."+l,0),h("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+zy.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Fy.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:y},{begin:"!important"},t.FUNCTION_DISPATCH]},M={begin:s+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[C]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,R,M,w,C,T,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function VM(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},s=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.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:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function KM(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={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,n]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},l={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={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:[e.HASH_COMMENT_MODE,t,n,r,s,l,o]}}function $M(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},s={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}]},l={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),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}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=e.inherit(h,{contains:[]}),y=e.inherit(p,{contains:[]});h.contains.push(y),p.contains.push(g);let T=[n,f];return[h,p,g,y].forEach(C=>{C.contains=C.contains.concat(T)}),T=T.concat(h,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:T},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:T}]}]},n,l,h,p,{className:"quote",begin:"^>\\s+",contains:T,end:"$"},s,r,f,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function WM(e){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+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,d={"variable.language":["this","super"],$pattern:n,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"]},f={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:d,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.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},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+f.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:f,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function XM(e){const t=e.regex,n=["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"],r=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:n.join(" ")},l={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},o={begin:/->\{/,end:/\}/},d={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},f={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[d]},h={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},p=[e.BACKSLASH_ESCAPE,l,f],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],y=(x,R,C="\\1")=>{const M=C==="\\1"?C:t.concat(C,R);return t.concat(t.concat("(?:",x,")"),R,/(?:\\.|[^\\\/])*?/,M,/(?:\\.|[^\\\/])*?/,C,r)},T=(x,R,C)=>t.concat(t.concat("(?:",x,")"),R,/(?:\\.|[^\\\/])*?/,C,r),w=[f,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:p,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:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},h,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:y("s|tr|y",t.either(...g,{capture:!0}))},{begin:y("s|tr|y","\\(","\\)")},{begin:y("s|tr|y","\\[","\\]")},{begin:y("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:T("(?:m|qr)?",/\//,/\//)},{begin:T("m|qr",t.either(...g,{capture:!0}),/\1/)},{begin:T("m|qr",/\(/,/\)/)},{begin:T("m|qr",/\[/,/\]/)},{begin:T("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,d]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,d,h]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return l.contains=w,o.contains=w,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:w}}function QM(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),s=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),l=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+r},d={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},f={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=e.inherit(e.APOS_STRING_MODE,{illegal:null}),p=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(f)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(f),"on:begin":(fe,pe)=>{pe.data._beginMatch=fe[1]||fe[2]},"on:end":(fe,pe)=>{pe.data._beginMatch!==fe[1]&&pe.ignoreMatch()}},y=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),T=`[
93
+ ]`,w={scope:"string",variants:[p,h,g,y]},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},R=["false","null","true"],C=["__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"],M=["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"],$={keyword:C,literal:(fe=>{const pe=[];return fe.forEach(X=>{pe.push(X),X.toLowerCase()===X?pe.push(X.toUpperCase()):pe.push(X.toLowerCase())}),pe})(R),built_in:M},G=fe=>fe.map(pe=>pe.replace(/\|\d+$/,"")),z={variants:[{match:[/new/,t.concat(T,"+"),t.concat("(?!",G(M).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},ne=t.concat(r,"\\b(?!\\()"),ce={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),ne],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,t.concat(/::/,t.lookahead(/(?!class\b)/)),ne],scope:{1:"title.class",3:"variable.constant"}},{match:[s,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Q={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},j={relevance:0,begin:/\(/,end:/\)/,keywords:$,contains:[Q,o,ce,e.C_BLOCK_COMMENT_MODE,w,x,z]},me={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",G(C).join("\\b|"),"|",G(M).join("\\b|"),"\\b)"),r,t.concat(T,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[j]};j.contains.push(me);const J=[Q,ce,e.C_BLOCK_COMMENT_MODE,w,x,z],se={begin:t.concat(/#\[\s*\\?/,t.either(s,l)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:R,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:R,keyword:["new","array"]},contains:["self",...J]},...J,{scope:"meta",variants:[{match:s},{match:l}]}]};return{case_insensitive:!1,keywords:$,contains:[se,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},d,{scope:"variable.language",match:/\$this\b/},o,me,ce,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},z,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:$,contains:["self",se,o,ce,e.C_BLOCK_COMMENT_MODE,w,x]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},w,x]}}function ZM(e){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},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function JM(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function eD(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["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"],d={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,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"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},p={begin:/\{\{/,relevance:0},g={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f,p,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f,p,h]},{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:[e.BACKSLASH_ESCAPE,p,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,p,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",T=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,w=`\\b|${r.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${T}))[eE][+-]?(${y})[jJ]?(?=${w})`},{begin:`(${T})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${w})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${w})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${w})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${w})`},{begin:`\\b(${y})[jJ](?=${w})`}]},R={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},C={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",f,x,g,e.HASH_COMMENT_MODE]}]};return h.contains=[g,x,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[f,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,R,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[C]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,C,g]}]}}function tD(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function nD(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=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]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,l=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,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:[e.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:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[l,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:l},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function rD(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=t.concat(r,/(::\w+)*/),o={"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"]},d={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},h=[e.COMMENT("#","$",{contains:[d]}),e.COMMENT("^=begin","^=end",{contains:[d],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],p={className:"subst",begin:/#\{/,end:/\}/,keywords:o},g={className:"string",contains:[e.BACKSLASH_ESCAPE,p],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:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,p]})]}]},y="[1-9](_?[0-9])*|0",T="[0-9](_?[0-9])*",w={className:"number",relevance:0,variants:[{begin:`\\b(${y})(\\.(${T}))?([eE][+-]?(${T})|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:o}]},z=[g,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:o},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[x]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[g,{begin:n}],relevance:0},w,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,p],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(f,h),relevance:0}].concat(f,h);p.contains=z,x.contains=z;const j=[{begin:/^\s*=>/,starts:{end:"$",contains:z}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:z}}];return h.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(j).concat(h).concat(z)}}function aD(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),s=t.concat(n,e.IDENT_RE),l={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",d=["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"],f=["true","false","Some","None","Ok","Err"],h=["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!"],p=["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:e.IDENT_RE+"!?",type:p,keyword:d,literal:f,built_in:h},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.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_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:h,type:p}},{className:"punctuation",begin:"->"},l]}}const iD=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.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_-]*/}}),sD=["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"],lD=["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"],uD=[...sD,...lD],oD=["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(),cD=["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(),dD=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),fD=["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 hD(e){const t=iD(e),n=dD,r=cD,s="@[a-z-]+",l="and or not only",d={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.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("+uD.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},d,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+fD.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,d,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:l,attribute:oD.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},d,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function mD(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function pD(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},l=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],d=["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"],f=["add","asc","collation","desc","final","first","last","view"],h=["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"],p=["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"],g=["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"],y=["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"],T=p,w=[...h,...f].filter(G=>!p.includes(G)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},R={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},C={match:t.concat(/\b/,t.either(...T),/\s*\(/),relevance:0,keywords:{built_in:T}};function M(G){return t.concat(/\b/,t.either(...G.map(z=>z.replace(/\s+/,"\\s+"))),/\b/)}const L={scope:"keyword",match:M(y),relevance:0};function $(G,{exceptions:z,when:ne}={}){const ce=ne;return z=z||[],G.map(Q=>Q.match(/\|\d+$/)||z.includes(Q)?Q:ce(Q)?`${Q}|0`:Q)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:$(w,{when:G=>G.length<3}),literal:l,type:d,built_in:g},contains:[{scope:"type",match:M(o)},L,C,x,r,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,R]}}function Hy(e){return e?typeof e=="string"?e:e.source:null}function go(e){return Xt("(?=",e,")")}function Xt(...e){return e.map(n=>Hy(n)).join("")}function gD(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function dr(...e){return"("+(gD(e).capture?"":"?:")+e.map(r=>Hy(r)).join("|")+")"}const vp=e=>Xt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),bD=["Protocol","Type"].map(vp),X3=["init","self"].map(vp),ED=["Any","Self"],E1=["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"],Q3=["false","nil","true"],yD=["assignment","associativity","higherThan","left","lowerThan","none","right"],vD=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Z3=["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"],qy=dr(/[/=\-+!*%<>&|^~?]/,/[\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]/),jy=dr(qy,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y1=Xt(qy,jy,"*"),Yy=dr(/[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]/),id=dr(Yy,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),ka=Xt(Yy,id,"*"),S0=Xt(/[A-Z]/,id,"*"),TD=["attached","autoclosure",Xt(/convention\(/,dr("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Xt(/objc\(/,ka,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],_D=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function SD(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],s={match:[/\./,dr(...bD,...X3)],className:{2:"keyword"}},l={match:Xt(/\./,dr(...E1)),relevance:0},o=E1.filter(qe=>typeof qe=="string").concat(["_|0"]),d=E1.filter(qe=>typeof qe!="string").concat(ED).map(vp),f={variants:[{className:"keyword",match:dr(...d,...X3)}]},h={$pattern:dr(/\b\w+/,/#\w+/),keyword:o.concat(vD),literal:Q3},p=[s,l,f],g={match:Xt(/\./,dr(...Z3)),relevance:0},y={className:"built_in",match:Xt(/\b/,dr(...Z3),/(?=\()/)},T=[g,y],w={match:/->/,relevance:0},x={className:"operator",relevance:0,variants:[{match:y1},{match:`\\.(\\.|${jy})+`}]},R=[w,x],C="([0-9]_*)+",M="([0-9a-fA-F]_*)+",L={className:"number",relevance:0,variants:[{match:`\\b(${C})(\\.(${C}))?([eE][+-]?(${C}))?\\b`},{match:`\\b0x(${M})(\\.(${M}))?([pP][+-]?(${C}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},$=(qe="")=>({className:"subst",variants:[{match:Xt(/\\/,qe,/[0\\tnr"']/)},{match:Xt(/\\/,qe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),G=(qe="")=>({className:"subst",match:Xt(/\\/,qe,/[\t ]*(?:[\r\n]|\r\n)/)}),z=(qe="")=>({className:"subst",label:"interpol",begin:Xt(/\\/,qe,/\(/),end:/\)/}),ne=(qe="")=>({begin:Xt(qe,/"""/),end:Xt(/"""/,qe),contains:[$(qe),G(qe),z(qe)]}),ce=(qe="")=>({begin:Xt(qe,/"/),end:Xt(/"/,qe),contains:[$(qe),z(qe)]}),Q={className:"string",variants:[ne(),ne("#"),ne("##"),ne("###"),ce(),ce("#"),ce("##"),ce("###")]},j=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],me={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:j},J=qe=>{const ht=Xt(qe,/\//),jt=Xt(/\//,qe);return{begin:ht,end:jt,contains:[...j,{scope:"comment",begin:`#(?!.*${jt})`,end:/$/}]}},se={scope:"regexp",variants:[J("###"),J("##"),J("#"),me]},fe={match:Xt(/`/,ka,/`/)},pe={className:"variable",match:/\$\d+/},X={className:"variable",match:`\\$${id}+`},he=[fe,pe,X],be={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:_D,contains:[...R,L,Q]}]}},ze={scope:"keyword",match:Xt(/@/,dr(...TD),go(dr(/\(/,/\s+/)))},A={scope:"meta",match:Xt(/@/,ka)},le=[be,ze,A],ye={match:go(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Xt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,id,"+")},{className:"type",match:S0,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Xt(/\s+&\s+/,go(S0)),relevance:0}]},D={begin:/</,end:/>/,keywords:h,contains:[...r,...p,...le,w,ye]};ye.contains.push(D);const Ie={match:Xt(ka,/\s*:/),keywords:"_|0",relevance:0},Ve={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",Ie,...r,se,...p,...T,...R,L,Q,...he,...le,ye]},Be={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,ye]},Mt={begin:dr(go(Xt(ka,/\s*:/)),go(Xt(ka,/\s+/,ka,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:ka}]},ot={begin:/\(/,end:/\)/,keywords:h,contains:[Mt,...r,...p,...R,L,Q,...le,ye,Ve],endsParent:!0,illegal:/["']/},Qt={match:[/(func|macro)/,/\s+/,dr(fe.match,ka,y1)],className:{1:"keyword",3:"title.function"},contains:[Be,ot,t],illegal:[/\[/,/%/]},Ft={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Be,ot,t],illegal:/\[|%/},An={match:[/operator/,/\s+/,y1],className:{1:"keyword",3:"title"}},at={begin:[/precedencegroup/,/\s+/,S0],className:{1:"keyword",3:"title"},contains:[ye],keywords:[...yD,...Q3],end:/}/},Qe={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},it={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Rt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,ka,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[Be,...p,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:S0},...p],relevance:0}]};for(const qe of Q.variants){const ht=qe.contains.find(xt=>xt.label==="interpol");ht.keywords=h;const jt=[...p,...T,...R,L,Q,...he];ht.contains=[...jt,{begin:/\(/,end:/\)/,contains:["self",...jt]}]}return{name:"Swift",keywords:h,contains:[...r,Qt,Ft,Qe,it,Rt,An,at,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},se,...p,...T,...R,L,Q,...he,...le,ye,Ve]}}const sd="[A-Za-z$_][0-9A-Za-z$_]*",Gy=["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"],Vy=["true","false","null","undefined","NaN","Infinity"],Ky=["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"],$y=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Wy=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Xy=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Qy=[].concat(Wy,Ky,$y);function xD(e){const t=e.regex,n=(be,{after:ze})=>{const A="</"+be[0].slice(1);return be.input.indexOf(A,ze)!==-1},r=sd,s={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(be,ze)=>{const A=be[0].length+be.index,le=be.input[A];if(le==="<"||le===","){ze.ignoreMatch();return}le===">"&&(n(be,{after:A})||ze.ignoreMatch());let ye;const D=be.input.substring(A);if(ye=D.match(/^\s*=/)){ze.ignoreMatch();return}if((ye=D.match(/^\s+extends\s+/))&&ye.index===0){ze.ignoreMatch();return}}},d={$pattern:sd,keyword:Gy,literal:Vy,built_in:Qy,"variable.language":Xy},f="[0-9](_?[0-9])*",h=`\\.(${f})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${p})\\b((${h})\\b|\\.)?|(${h})\\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},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},T={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},R={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},M={className:"comment",variants:[e.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:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},L=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,T,w,x,R,{match:/\$\d+/},g];y.contains=L.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(L)});const $=[].concat(M,y.contains),G=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat($)}]),z={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:G},ne={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},ce={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:{_:[...Ky,...$y]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[z],illegal:/%/},me={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(be){return t.concat("(?!",be.join("|"),")")}const se={match:t.concat(/\b/,J([...Wy,"super","import"].map(be=>`${be}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},fe={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},z]},X="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(X)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[z]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:ce},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,T,w,x,R,M,{match:/\$\d+/},g,ce,{scope:"attr",match:r+t.lookahead(":"),relevance:0},he,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[M,e.REGEXP_MODE,{className:"function",begin:X,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:l},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[z,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},fe,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[z]},se,me,ne,pe,{match:/\$[(.]/}]}}function AD(e){const t=e.regex,n=xD(e),r=sd,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],l={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[n.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:sd,keyword:Gy.concat(f),literal:Vy,built_in:Qy.concat(s),"variable.language":Xy},p={className:"meta",begin:"@"+r},g=(x,R,C)=>{const M=x.contains.findIndex(L=>L.label===R);if(M===-1)throw new Error("can not find mode to replace");x.contains.splice(M,1,C)};Object.assign(n.keywords,h),n.exports.PARAMS_CONTAINS.push(p);const y=n.contains.find(x=>x.scope==="attr"),T=Object.assign({},y,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,y,T]),n.contains=n.contains.concat([p,l,o,T]),g(n,"shebang",e.SHEBANG()),g(n,"use_strict",d);const w=n.contains.find(x=>x.label==="func.def");return w.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function wD(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,l=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,d=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:t.concat(/# */,t.either(l,s),/ *#/)},{begin:t.concat(/# */,d,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(l,s),/ +/,t.either(o,d),/ *#/)}]},h={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])|[%&])?/}]},p={className:"label",begin:/^\w+:/},g=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),y=e.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:[n,r,f,h,p,g,y,{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:[y]}]}}function CD(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["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"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},l={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},d={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/},f={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},h={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:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},l,o,s,e.QUOTE_STRING_MODE,f,h,d]}}function kD(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(l,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),f=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{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:[l,f,d,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,o,f,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:h}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function ND(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},l={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},d=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),y={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"},T={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},w={begin:/\{/,end:/\}/,contains:[T],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[T],illegal:"\\n",relevance:0},R=[r,{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+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},y,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},w,x,l,o],C=[...R];return C.pop(),C.push(d),T.contains=C,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:R}}const OD={arduino:dM,bash:fM,c:hM,cpp:mM,csharp:pM,css:xM,diff:AM,go:wM,graphql:CM,ini:kM,java:NM,javascript:IM,json:LM,kotlin:PM,less:GM,lua:VM,makefile:KM,markdown:$M,objectivec:WM,perl:XM,php:QM,"php-template":ZM,plaintext:JM,python:eD,"python-repl":tD,r:nD,ruby:rD,rust:aD,scss:hD,shell:mD,sql:pD,swift:SD,typescript:AD,vbnet:wD,wasm:CD,xml:kD,yaml:ND};var v1,J3;function RD(){if(J3)return v1;J3=1;function e(Y){return Y instanceof Map?Y.clear=Y.delete=Y.set=function(){throw new Error("map is read-only")}:Y instanceof Set&&(Y.add=Y.clear=Y.delete=function(){throw new Error("set is read-only")}),Object.freeze(Y),Object.getOwnPropertyNames(Y).forEach(ve=>{const Le=Y[ve],ct=typeof Le;(ct==="object"||ct==="function")&&!Object.isFrozen(Le)&&e(Le)}),Y}class t{constructor(ve){ve.data===void 0&&(ve.data={}),this.data=ve.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(Y){return Y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(Y,...ve){const Le=Object.create(null);for(const ct in Y)Le[ct]=Y[ct];return ve.forEach(function(ct){for(const on in ct)Le[on]=ct[on]}),Le}const s="</span>",l=Y=>!!Y.scope,o=(Y,{prefix:ve})=>{if(Y.startsWith("language:"))return Y.replace("language:","language-");if(Y.includes(".")){const Le=Y.split(".");return[`${ve}${Le.shift()}`,...Le.map((ct,on)=>`${ct}${"_".repeat(on+1)}`)].join(" ")}return`${ve}${Y}`};class d{constructor(ve,Le){this.buffer="",this.classPrefix=Le.classPrefix,ve.walk(this)}addText(ve){this.buffer+=n(ve)}openNode(ve){if(!l(ve))return;const Le=o(ve.scope,{prefix:this.classPrefix});this.span(Le)}closeNode(ve){l(ve)&&(this.buffer+=s)}value(){return this.buffer}span(ve){this.buffer+=`<span class="${ve}">`}}const f=(Y={})=>{const ve={children:[]};return Object.assign(ve,Y),ve};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ve){this.top.children.push(ve)}openNode(ve){const Le=f({scope:ve});this.add(Le),this.stack.push(Le)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ve){return this.constructor._walk(ve,this.rootNode)}static _walk(ve,Le){return typeof Le=="string"?ve.addText(Le):Le.children&&(ve.openNode(Le),Le.children.forEach(ct=>this._walk(ve,ct)),ve.closeNode(Le)),ve}static _collapse(ve){typeof ve!="string"&&ve.children&&(ve.children.every(Le=>typeof Le=="string")?ve.children=[ve.children.join("")]:ve.children.forEach(Le=>{h._collapse(Le)}))}}class p extends h{constructor(ve){super(),this.options=ve}addText(ve){ve!==""&&this.add(ve)}startScope(ve){this.openNode(ve)}endScope(){this.closeNode()}__addSublanguage(ve,Le){const ct=ve.root;Le&&(ct.scope=`language:${Le}`),this.add(ct)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(Y){return Y?typeof Y=="string"?Y:Y.source:null}function y(Y){return x("(?=",Y,")")}function T(Y){return x("(?:",Y,")*")}function w(Y){return x("(?:",Y,")?")}function x(...Y){return Y.map(Le=>g(Le)).join("")}function R(Y){const ve=Y[Y.length-1];return typeof ve=="object"&&ve.constructor===Object?(Y.splice(Y.length-1,1),ve):{}}function C(...Y){return"("+(R(Y).capture?"":"?:")+Y.map(ct=>g(ct)).join("|")+")"}function M(Y){return new RegExp(Y.toString()+"|").exec("").length-1}function L(Y,ve){const Le=Y&&Y.exec(ve);return Le&&Le.index===0}const $=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function G(Y,{joinWith:ve}){let Le=0;return Y.map(ct=>{Le+=1;const on=Le;let pn=g(ct),Fe="";for(;pn.length>0;){const De=$.exec(pn);if(!De){Fe+=pn;break}Fe+=pn.substring(0,De.index),pn=pn.substring(De.index+De[0].length),De[0][0]==="\\"&&De[1]?Fe+="\\"+String(Number(De[1])+on):(Fe+=De[0],De[0]==="("&&Le++)}return Fe}).map(ct=>`(${ct})`).join(ve)}const z=/\b\B/,ne="[a-zA-Z]\\w*",ce="[a-zA-Z_]\\w*",Q="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",me="\\b(0b[01]+)",J="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",se=(Y={})=>{const ve=/^#![ ]*\//;return Y.binary&&(Y.begin=x(ve,/.*\b/,Y.binary,/\b.*/)),r({scope:"meta",begin:ve,end:/$/,relevance:0,"on:begin":(Le,ct)=>{Le.index!==0&&ct.ignoreMatch()}},Y)},fe={begin:"\\\\[\\s\\S]",relevance:0},pe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[fe]},X={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[fe]},he={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/},be=function(Y,ve,Le={}){const ct=r({scope:"comment",begin:Y,end:ve,contains:[]},Le);ct.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 on=C("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 ct.contains.push({begin:x(/[ ]+/,"(",on,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ct},ze=be("//","$"),A=be("/\\*","\\*/"),le=be("#","$"),ye={scope:"number",begin:Q,relevance:0},D={scope:"number",begin:j,relevance:0},Ie={scope:"number",begin:me,relevance:0},Ve={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[fe,{begin:/\[/,end:/\]/,relevance:0,contains:[fe]}]},Be={scope:"title",begin:ne,relevance:0},Mt={scope:"title",begin:ce,relevance:0},ot={begin:"\\.\\s*"+ce,relevance:0};var Ft=Object.freeze({__proto__:null,APOS_STRING_MODE:pe,BACKSLASH_ESCAPE:fe,BINARY_NUMBER_MODE:Ie,BINARY_NUMBER_RE:me,COMMENT:be,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:ze,C_NUMBER_MODE:D,C_NUMBER_RE:j,END_SAME_AS_BEGIN:function(Y){return Object.assign(Y,{"on:begin":(ve,Le)=>{Le.data._beginMatch=ve[1]},"on:end":(ve,Le)=>{Le.data._beginMatch!==ve[1]&&Le.ignoreMatch()}})},HASH_COMMENT_MODE:le,IDENT_RE:ne,MATCH_NOTHING_RE:z,METHOD_GUARD:ot,NUMBER_MODE:ye,NUMBER_RE:Q,PHRASAL_WORDS_MODE:he,QUOTE_STRING_MODE:X,REGEXP_MODE:Ve,RE_STARTERS_RE:J,SHEBANG:se,TITLE_MODE:Be,UNDERSCORE_IDENT_RE:ce,UNDERSCORE_TITLE_MODE:Mt});function An(Y,ve){Y.input[Y.index-1]==="."&&ve.ignoreMatch()}function at(Y,ve){Y.className!==void 0&&(Y.scope=Y.className,delete Y.className)}function Qe(Y,ve){ve&&Y.beginKeywords&&(Y.begin="\\b("+Y.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Y.__beforeBegin=An,Y.keywords=Y.keywords||Y.beginKeywords,delete Y.beginKeywords,Y.relevance===void 0&&(Y.relevance=0))}function it(Y,ve){Array.isArray(Y.illegal)&&(Y.illegal=C(...Y.illegal))}function Rt(Y,ve){if(Y.match){if(Y.begin||Y.end)throw new Error("begin & end are not supported with match");Y.begin=Y.match,delete Y.match}}function qe(Y,ve){Y.relevance===void 0&&(Y.relevance=1)}const ht=(Y,ve)=>{if(!Y.beforeMatch)return;if(Y.starts)throw new Error("beforeMatch cannot be used with starts");const Le=Object.assign({},Y);Object.keys(Y).forEach(ct=>{delete Y[ct]}),Y.keywords=Le.keywords,Y.begin=x(Le.beforeMatch,y(Le.begin)),Y.starts={relevance:0,contains:[Object.assign(Le,{endsParent:!0})]},Y.relevance=0,delete Le.beforeMatch},jt=["of","and","for","in","not","or","if","then","parent","list","value"],xt="keyword";function lt(Y,ve,Le=xt){const ct=Object.create(null);return typeof Y=="string"?on(Le,Y.split(" ")):Array.isArray(Y)?on(Le,Y):Object.keys(Y).forEach(function(pn){Object.assign(ct,lt(Y[pn],ve,pn))}),ct;function on(pn,Fe){ve&&(Fe=Fe.map(De=>De.toLowerCase())),Fe.forEach(function(De){const Ge=De.split("|");ct[Ge[0]]=[pn,Ze(Ge[0],Ge[1])]})}}function Ze(Y,ve){return ve?Number(ve):Zt(Y)?0:1}function Zt(Y){return jt.includes(Y.toLowerCase())}const tt={},Tt=Y=>{console.error(Y)},_t=(Y,...ve)=>{console.log(`WARN: ${Y}`,...ve)},re=(Y,ve)=>{tt[`${Y}/${ve}`]||(console.log(`Deprecated as of ${Y}. ${ve}`),tt[`${Y}/${ve}`]=!0)},xe=new Error;function $e(Y,ve,{key:Le}){let ct=0;const on=Y[Le],pn={},Fe={};for(let De=1;De<=ve.length;De++)Fe[De+ct]=on[De],pn[De+ct]=!0,ct+=M(ve[De-1]);Y[Le]=Fe,Y[Le]._emit=pn,Y[Le]._multi=!0}function Je(Y){if(Array.isArray(Y.begin)){if(Y.skip||Y.excludeBegin||Y.returnBegin)throw Tt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),xe;if(typeof Y.beginScope!="object"||Y.beginScope===null)throw Tt("beginScope must be object"),xe;$e(Y,Y.begin,{key:"beginScope"}),Y.begin=G(Y.begin,{joinWith:""})}}function Ut(Y){if(Array.isArray(Y.end)){if(Y.skip||Y.excludeEnd||Y.returnEnd)throw Tt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),xe;if(typeof Y.endScope!="object"||Y.endScope===null)throw Tt("endScope must be object"),xe;$e(Y,Y.end,{key:"endScope"}),Y.end=G(Y.end,{joinWith:""})}}function ir(Y){Y.scope&&typeof Y.scope=="object"&&Y.scope!==null&&(Y.beginScope=Y.scope,delete Y.scope)}function oa(Y){ir(Y),typeof Y.beginScope=="string"&&(Y.beginScope={_wrap:Y.beginScope}),typeof Y.endScope=="string"&&(Y.endScope={_wrap:Y.endScope}),Je(Y),Ut(Y)}function Qn(Y){function ve(Fe,De){return new RegExp(g(Fe),"m"+(Y.case_insensitive?"i":"")+(Y.unicodeRegex?"u":"")+(De?"g":""))}class Le{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(De,Ge){Ge.position=this.position++,this.matchIndexes[this.matchAt]=Ge,this.regexes.push([Ge,De]),this.matchAt+=M(De)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const De=this.regexes.map(Ge=>Ge[1]);this.matcherRe=ve(G(De,{joinWith:"|"}),!0),this.lastIndex=0}exec(De){this.matcherRe.lastIndex=this.lastIndex;const Ge=this.matcherRe.exec(De);if(!Ge)return null;const ln=Ge.findIndex((ms,cu)=>cu>0&&ms!==void 0),cn=this.matchIndexes[ln];return Ge.splice(0,ln),Object.assign(Ge,cn)}}class ct{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(De){if(this.multiRegexes[De])return this.multiRegexes[De];const Ge=new Le;return this.rules.slice(De).forEach(([ln,cn])=>Ge.addRule(ln,cn)),Ge.compile(),this.multiRegexes[De]=Ge,Ge}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(De,Ge){this.rules.push([De,Ge]),Ge.type==="begin"&&this.count++}exec(De){const Ge=this.getMatcher(this.regexIndex);Ge.lastIndex=this.lastIndex;let ln=Ge.exec(De);if(this.resumingScanAtSamePosition()&&!(ln&&ln.index===this.lastIndex)){const cn=this.getMatcher(0);cn.lastIndex=this.lastIndex+1,ln=cn.exec(De)}return ln&&(this.regexIndex+=ln.position+1,this.regexIndex===this.count&&this.considerAll()),ln}}function on(Fe){const De=new ct;return Fe.contains.forEach(Ge=>De.addRule(Ge.begin,{rule:Ge,type:"begin"})),Fe.terminatorEnd&&De.addRule(Fe.terminatorEnd,{type:"end"}),Fe.illegal&&De.addRule(Fe.illegal,{type:"illegal"}),De}function pn(Fe,De){const Ge=Fe;if(Fe.isCompiled)return Ge;[at,Rt,oa,ht].forEach(cn=>cn(Fe,De)),Y.compilerExtensions.forEach(cn=>cn(Fe,De)),Fe.__beforeBegin=null,[Qe,it,qe].forEach(cn=>cn(Fe,De)),Fe.isCompiled=!0;let ln=null;return typeof Fe.keywords=="object"&&Fe.keywords.$pattern&&(Fe.keywords=Object.assign({},Fe.keywords),ln=Fe.keywords.$pattern,delete Fe.keywords.$pattern),ln=ln||/\w+/,Fe.keywords&&(Fe.keywords=lt(Fe.keywords,Y.case_insensitive)),Ge.keywordPatternRe=ve(ln,!0),De&&(Fe.begin||(Fe.begin=/\B|\b/),Ge.beginRe=ve(Ge.begin),!Fe.end&&!Fe.endsWithParent&&(Fe.end=/\B|\b/),Fe.end&&(Ge.endRe=ve(Ge.end)),Ge.terminatorEnd=g(Ge.end)||"",Fe.endsWithParent&&De.terminatorEnd&&(Ge.terminatorEnd+=(Fe.end?"|":"")+De.terminatorEnd)),Fe.illegal&&(Ge.illegalRe=ve(Fe.illegal)),Fe.contains||(Fe.contains=[]),Fe.contains=[].concat(...Fe.contains.map(function(cn){return sr(cn==="self"?Fe:cn)})),Fe.contains.forEach(function(cn){pn(cn,Ge)}),Fe.starts&&pn(Fe.starts,De),Ge.matcher=on(Ge),Ge}if(Y.compilerExtensions||(Y.compilerExtensions=[]),Y.contains&&Y.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Y.classNameAliases=r(Y.classNameAliases||{}),pn(Y)}function Nr(Y){return Y?Y.endsWithParent||Nr(Y.starts):!1}function sr(Y){return Y.variants&&!Y.cachedVariants&&(Y.cachedVariants=Y.variants.map(function(ve){return r(Y,{variants:null},ve)})),Y.cachedVariants?Y.cachedVariants:Nr(Y)?r(Y,{starts:Y.starts?r(Y.starts):null}):Object.isFrozen(Y)?r(Y):Y}var On="11.11.1";class Er extends Error{constructor(ve,Le){super(ve),this.name="HTMLInjectionError",this.html=Le}}const lr=n,lu=r,uu=Symbol("nomatch"),ou=7,xi=function(Y){const ve=Object.create(null),Le=Object.create(null),ct=[];let on=!0;const pn="Could not find the language '{}', did you forget to load/include a language module?",Fe={disableAutodetect:!0,name:"Plain text",contains:[]};let De={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:p};function Ge(Ne){return De.noHighlightRe.test(Ne)}function ln(Ne){let We=Ne.className+" ";We+=Ne.parentNode?Ne.parentNode.className:"";const gt=De.languageDetectRe.exec(We);if(gt){const Ht=ur(gt[1]);return Ht||(_t(pn.replace("{}",gt[1])),_t("Falling back to no-highlight mode for this block.",Ne)),Ht?gt[1]:"no-highlight"}return We.split(/\s+/).find(Ht=>Ge(Ht)||ur(Ht))}function cn(Ne,We,gt){let Ht="",bn="";typeof We=="object"?(Ht=Ne,gt=We.ignoreIllegals,bn=We.language):(re("10.7.0","highlight(lang, code, ...args) has been deprecated."),re("10.7.0",`Please use highlight(code, options) instead.
94
+ https://github.com/highlightjs/highlight.js/issues/2277`),bn=Ne,Ht=We),gt===void 0&&(gt=!0);const Or={code:Ht,language:bn};Ya("before:highlight",Or);const da=Or.result?Or.result:ms(Or.language,Or.code,gt);return da.code=Or.code,Ya("after:highlight",da),da}function ms(Ne,We,gt,Ht){const bn=Object.create(null);function Or(Pe,je){return Pe.keywords[je]}function da(){if(!pt.keywords){Rn.addText(qt);return}let Pe=0;pt.keywordPatternRe.lastIndex=0;let je=pt.keywordPatternRe.exec(qt),mt="";for(;je;){mt+=qt.substring(Pe,je.index);const Bt=Rr.case_insensitive?je[0].toLowerCase():je[0],Mn=Or(pt,Bt);if(Mn){const[Kr,Ts]=Mn;if(Rn.addText(mt),mt="",bn[Bt]=(bn[Bt]||0)+1,bn[Bt]<=ou&&(nl+=Ts),Kr.startsWith("_"))mt+=je[0];else{const fa=Rr.classNameAliases[Kr]||Kr;Vr(je[0],fa)}}else mt+=je[0];Pe=pt.keywordPatternRe.lastIndex,je=pt.keywordPatternRe.exec(qt)}mt+=qt.substring(Pe),Rn.addText(mt)}function Vn(){if(qt==="")return;let Pe=null;if(typeof pt.subLanguage=="string"){if(!ve[pt.subLanguage]){Rn.addText(qt);return}Pe=ms(pt.subLanguage,qt,!0,mu[pt.subLanguage]),mu[pt.subLanguage]=Pe._top}else Pe=el(qt,pt.subLanguage.length?pt.subLanguage:null);pt.relevance>0&&(nl+=Pe.relevance),Rn.__addSublanguage(Pe._emitter,Pe.language)}function Zn(){pt.subLanguage!=null?Vn():da(),qt=""}function Vr(Pe,je){Pe!==""&&(Rn.startScope(je),Rn.addText(Pe),Rn.endScope())}function Es(Pe,je){let mt=1;const Bt=je.length-1;for(;mt<=Bt;){if(!Pe._emit[mt]){mt++;continue}const Mn=Rr.classNameAliases[Pe[mt]]||Pe[mt],Kr=je[mt];Mn?Vr(Kr,Mn):(qt=Kr,da(),qt=""),mt++}}function fu(Pe,je){return Pe.scope&&typeof Pe.scope=="string"&&Rn.openNode(Rr.classNameAliases[Pe.scope]||Pe.scope),Pe.beginScope&&(Pe.beginScope._wrap?(Vr(qt,Rr.classNameAliases[Pe.beginScope._wrap]||Pe.beginScope._wrap),qt=""):Pe.beginScope._multi&&(Es(Pe.beginScope,je),qt="")),pt=Object.create(Pe,{parent:{value:pt}}),pt}function ys(Pe,je,mt){let Bt=L(Pe.endRe,mt);if(Bt){if(Pe["on:end"]){const Mn=new t(Pe);Pe["on:end"](je,Mn),Mn.isMatchIgnored&&(Bt=!1)}if(Bt){for(;Pe.endsParent&&Pe.parent;)Pe=Pe.parent;return Pe}}if(Pe.endsWithParent)return ys(Pe.parent,je,mt)}function Gd(Pe){return pt.matcher.regexIndex===0?(qt+=Pe[0],1):(vs=!0,0)}function yr(Pe){const je=Pe[0],mt=Pe.rule,Bt=new t(mt),Mn=[mt.__beforeBegin,mt["on:begin"]];for(const Kr of Mn)if(Kr&&(Kr(Pe,Bt),Bt.isMatchIgnored))return Gd(je);return mt.skip?qt+=je:(mt.excludeBegin&&(qt+=je),Zn(),!mt.returnBegin&&!mt.excludeBegin&&(qt=je)),fu(mt,Pe),mt.returnBegin?0:je.length}function hu(Pe){const je=Pe[0],mt=We.substring(Pe.index),Bt=ys(pt,Pe,mt);if(!Bt)return uu;const Mn=pt;pt.endScope&&pt.endScope._wrap?(Zn(),Vr(je,pt.endScope._wrap)):pt.endScope&&pt.endScope._multi?(Zn(),Es(pt.endScope,Pe)):Mn.skip?qt+=je:(Mn.returnEnd||Mn.excludeEnd||(qt+=je),Zn(),Mn.excludeEnd&&(qt=je));do pt.scope&&Rn.closeNode(),!pt.skip&&!pt.subLanguage&&(nl+=pt.relevance),pt=pt.parent;while(pt!==Bt.parent);return Bt.starts&&fu(Bt.starts,Pe),Mn.returnEnd?0:je.length}function sc(){const Pe=[];for(let je=pt;je!==Rr;je=je.parent)je.scope&&Pe.unshift(je.scope);Pe.forEach(je=>Rn.openNode(je))}let ki={};function Ga(Pe,je){const mt=je&&je[0];if(qt+=Pe,mt==null)return Zn(),0;if(ki.type==="begin"&&je.type==="end"&&ki.index===je.index&&mt===""){if(qt+=We.slice(je.index,je.index+1),!on){const Bt=new Error(`0 width match regex (${Ne})`);throw Bt.languageName=Ne,Bt.badRule=ki.rule,Bt}return 1}if(ki=je,je.type==="begin")return yr(je);if(je.type==="illegal"&&!gt){const Bt=new Error('Illegal lexeme "'+mt+'" for mode "'+(pt.scope||"<unnamed>")+'"');throw Bt.mode=pt,Bt}else if(je.type==="end"){const Bt=hu(je);if(Bt!==uu)return Bt}if(je.type==="illegal"&&mt==="")return qt+=`
95
+ `,1;if(Ni>1e5&&Ni>je.index*3)throw new Error("potential infinite loop, way more iterations than matches");return qt+=mt,mt.length}const Rr=ur(Ne);if(!Rr)throw Tt(pn.replace("{}",Ne)),new Error('Unknown language: "'+Ne+'"');const lc=Qn(Rr);let _a="",pt=Ht||lc;const mu={},Rn=new De.__emitter(De);sc();let qt="",nl=0,Va=0,Ni=0,vs=!1;try{if(Rr.__emitTokens)Rr.__emitTokens(We,Rn);else{for(pt.matcher.considerAll();;){Ni++,vs?vs=!1:pt.matcher.considerAll(),pt.matcher.lastIndex=Va;const Pe=pt.matcher.exec(We);if(!Pe)break;const je=We.substring(Va,Pe.index),mt=Ga(je,Pe);Va=Pe.index+mt}Ga(We.substring(Va))}return Rn.finalize(),_a=Rn.toHTML(),{language:Ne,value:_a,relevance:nl,illegal:!1,_emitter:Rn,_top:pt}}catch(Pe){if(Pe.message&&Pe.message.includes("Illegal"))return{language:Ne,value:lr(We),illegal:!0,relevance:0,_illegalBy:{message:Pe.message,index:Va,context:We.slice(Va-100,Va+100),mode:Pe.mode,resultSoFar:_a},_emitter:Rn};if(on)return{language:Ne,value:lr(We),illegal:!1,relevance:0,errorRaised:Pe,_emitter:Rn,_top:pt};throw Pe}}function cu(Ne){const We={value:lr(Ne),illegal:!1,relevance:0,_top:Fe,_emitter:new De.__emitter(De)};return We._emitter.addText(Ne),We}function el(Ne,We){We=We||De.languages||Object.keys(ve);const gt=cu(Ne),Ht=We.filter(ur).filter(du).map(Zn=>ms(Zn,Ne,!1));Ht.unshift(gt);const bn=Ht.sort((Zn,Vr)=>{if(Zn.relevance!==Vr.relevance)return Vr.relevance-Zn.relevance;if(Zn.language&&Vr.language){if(ur(Zn.language).supersetOf===Vr.language)return 1;if(ur(Vr.language).supersetOf===Zn.language)return-1}return 0}),[Or,da]=bn,Vn=Or;return Vn.secondBest=da,Vn}function ps(Ne,We,gt){const Ht=We&&Le[We]||gt;Ne.classList.add("hljs"),Ne.classList.add(`language-${Ht}`)}function gs(Ne){let We=null;const gt=ln(Ne);if(Ge(gt))return;if(Ya("before:highlightElement",{el:Ne,language:gt}),Ne.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Ne);return}if(Ne.children.length>0&&(De.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(Ne)),De.throwUnescapedHTML))throw new Er("One of your code blocks includes unescaped HTML.",Ne.innerHTML);We=Ne;const Ht=We.textContent,bn=gt?cn(Ht,{language:gt,ignoreIllegals:!0}):el(Ht);Ne.innerHTML=bn.value,Ne.dataset.highlighted="yes",ps(Ne,gt,bn.language),Ne.result={language:bn.language,re:bn.relevance,relevance:bn.relevance},bn.secondBest&&(Ne.secondBest={language:bn.secondBest.language,relevance:bn.secondBest.relevance}),Ya("after:highlightElement",{el:Ne,result:bn,text:Ht})}function wi(Ne){De=lu(De,Ne)}const Ci=()=>{gn(),re("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function bs(){gn(),re("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let qa=!1;function gn(){function Ne(){gn()}if(document.readyState==="loading"){qa||window.addEventListener("DOMContentLoaded",Ne,!1),qa=!0;return}document.querySelectorAll(De.cssSelector).forEach(gs)}function nc(Ne,We){let gt=null;try{gt=We(Y)}catch(Ht){if(Tt("Language definition for '{}' could not be registered.".replace("{}",Ne)),on)Tt(Ht);else throw Ht;gt=Fe}gt.name||(gt.name=Ne),ve[Ne]=gt,gt.rawDefinition=We.bind(null,Y),gt.aliases&&ac(gt.aliases,{languageName:Ne})}function rc(Ne){delete ve[Ne];for(const We of Object.keys(Le))Le[We]===Ne&&delete Le[We]}function ja(){return Object.keys(ve)}function ur(Ne){return Ne=(Ne||"").toLowerCase(),ve[Ne]||ve[Le[Ne]]}function ac(Ne,{languageName:We}){typeof Ne=="string"&&(Ne=[Ne]),Ne.forEach(gt=>{Le[gt.toLowerCase()]=We})}function du(Ne){const We=ur(Ne);return We&&!We.disableAutodetect}function ic(Ne){Ne["before:highlightBlock"]&&!Ne["before:highlightElement"]&&(Ne["before:highlightElement"]=We=>{Ne["before:highlightBlock"](Object.assign({block:We.el},We))}),Ne["after:highlightBlock"]&&!Ne["after:highlightElement"]&&(Ne["after:highlightElement"]=We=>{Ne["after:highlightBlock"](Object.assign({block:We.el},We))})}function Yd(Ne){ic(Ne),ct.push(Ne)}function tl(Ne){const We=ct.indexOf(Ne);We!==-1&&ct.splice(We,1)}function Ya(Ne,We){const gt=Ne;ct.forEach(function(Ht){Ht[gt]&&Ht[gt](We)})}function ca(Ne){return re("10.7.0","highlightBlock will be removed entirely in v12.0"),re("10.7.0","Please use highlightElement now."),gs(Ne)}Object.assign(Y,{highlight:cn,highlightAuto:el,highlightAll:gn,highlightElement:gs,highlightBlock:ca,configure:wi,initHighlighting:Ci,initHighlightingOnLoad:bs,registerLanguage:nc,unregisterLanguage:rc,listLanguages:ja,getLanguage:ur,registerAliases:ac,autoDetection:du,inherit:lu,addPlugin:Yd,removePlugin:tl}),Y.debugMode=function(){on=!1},Y.safeMode=function(){on=!0},Y.versionString=On,Y.regex={concat:x,lookahead:y,either:C,optional:w,anyNumberOfTimes:T};for(const Ne in Ft)typeof Ft[Ne]=="object"&&e(Ft[Ne]);return Object.assign(Y,Ft),Y},Ai=xi({});return Ai.newInstance=()=>xi({}),v1=Ai,Ai.HighlightJS=Ai,Ai.default=Ai,v1}var MD=RD();const DD=gd(MD),e6={},ID="hljs-";function LD(e){const t=DD.newInstance();return e&&l(e),{highlight:n,highlightAuto:r,listLanguages:s,register:l,registerAlias:o,registered:d};function n(f,h,p){const g=p||e6,y=typeof g.prefix=="string"?g.prefix:ID;if(!t.getLanguage(f))throw new Error("Unknown language: `"+f+"` is not registered");t.configure({__emitter:BD,classPrefix:y});const T=t.highlight(h,{ignoreIllegals:!0,language:f});if(T.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:T.errorRaised});const w=T._emitter.root,x=w.data;return x.language=T.language,x.relevance=T.relevance,w}function r(f,h){const g=(h||e6).subset||s();let y=-1,T=0,w;for(;++y<g.length;){const x=g[y];if(!t.getLanguage(x))continue;const R=n(x,f,h);R.data&&R.data.relevance!==void 0&&R.data.relevance>T&&(T=R.data.relevance,w=R)}return w||{type:"root",children:[],data:{language:void 0,relevance:T}}}function s(){return t.listLanguages()}function l(f,h){if(typeof f=="string")t.registerLanguage(f,h);else{let p;for(p in f)Object.hasOwn(f,p)&&t.registerLanguage(p,f[p])}}function o(f,h){if(typeof f=="string")t.registerAliases(typeof h=="string"?h:[...h],{languageName:f});else{let p;for(p in f)if(Object.hasOwn(f,p)){const g=f[p];t.registerAliases(typeof g=="string"?g:[...g],{languageName:p})}}}function d(f){return!!t.getLanguage(f)}}class BD{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 n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],s=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:s}):r.children.push(...s)}openNode(t){const n=this,r=t.split(".").map(function(o,d){return d?o+"_".repeat(d):n.options.classPrefix+o}),s=this.stack[this.stack.length-1],l={type:"element",tagName:"span",properties:{className:r},children:[]};s.children.push(l),this.stack.push(l)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const PD={};function UD(e){const t=e||PD,n=t.aliases,r=t.detect||!1,s=t.languages||OD,l=t.plainText,o=t.prefix,d=t.subset;let f="hljs";const h=LD(s);if(n&&h.registerAlias(n),o){const p=o.indexOf("-");f=p===-1?o:o.slice(0,p)}return function(p,g){Yo(p,"element",function(y,T,w){if(y.tagName!=="code"||!w||w.type!=="element"||w.tagName!=="pre")return;const x=zD(y);if(x===!1||!x&&!r||x&&l&&l.includes(x))return;Array.isArray(y.properties.className)||(y.properties.className=[]),y.properties.className.includes(f)||y.properties.className.unshift(f);const R=Ry(y,{whitespace:"pre"});let C;try{C=x?h.highlight(x,R,{prefix:o}):h.highlightAuto(R,{prefix:o,subset:d})}catch(M){const L=M;if(x&&/Unknown language/.test(L.message)){g.message("Cannot highlight as `"+x+"`, it’s not registered",{ancestors:[w,y],cause:L,place:y.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw L}!x&&C.data&&C.data.language&&y.properties.className.push("language-"+C.data.language),C.children.length>0&&(y.children=C.children)})}}function zD(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const s=String(t[n]);if(s==="no-highlight"||s==="nohighlight")return!1;!r&&s.slice(0,5)==="lang-"&&(r=s.slice(5)),!r&&s.slice(0,9)==="language-"&&(r=s.slice(9))}return r}function FD(e,t){return Zy(e,{})||{type:"root",children:[]}}function Zy(e,t){const n=HD(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function HD(e,t){switch(e.nodeType){case 1:return GD(e,t);case 3:return jD(e);case 8:return YD(e);case 9:return t6(e,t);case 10:return qD();case 11:return t6(e,t);default:return}}function t6(e,t){return{type:"root",children:Jy(e,t)}}function qD(){return{type:"doctype"}}function jD(e){return{type:"text",value:e.nodeValue||""}}function YD(e){return{type:"comment",value:e.nodeValue||""}}function GD(e,t){const n=e.namespaceURI,r=n===Da.svg?F5:z5,s=n===Da.html?e.tagName.toLowerCase():e.tagName,l=n===Da.html&&s==="template"?e.content:e,o=e.getAttributeNames(),d={};let f=-1;for(;++f<o.length;)d[o[f]]=e.getAttribute(o[f])||"";return r(s,d,Jy(l,t))}function Jy(e,t){const n=e.childNodes,r=[];let s=-1;for(;++s<n.length;){const l=Zy(n[s],t);l!==void 0&&r.push(l)}return r}new DOMParser;function VD(e,t){const n=KD(e);return FD(n)}function KD(e){const t=document.createElement("template");return t.innerHTML=e,t.content}class qr{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new qr(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class aa{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new aa(n,qr.range(this,t))}}class ke{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,s,l,o=n&&n.loc;if(o&&o.start<=o.end){var d=o.lexer.input;s=o.start,l=o.end,s===d.length?r+=" at end of input: ":r+=" at position "+(s+1)+": ";var f=d.slice(s,l).replace(/[^]/g,"$&̲"),h;s>15?h="…"+d.slice(s-15,s):h=d.slice(0,s);var p;l+15<d.length?p=d.slice(l,l+15)+"…":p=d.slice(l),r+=h+f+p}var g=new Error(r);return g.name="ParseError",g.__proto__=ke.prototype,g.position=s,s!=null&&l!=null&&(g.length=l-s),g.rawMessage=t,g}}ke.prototype.__proto__=Error.prototype;var $D=function(t,n){return t.indexOf(n)!==-1},WD=function(t,n){return t===void 0?n:t},XD=/([A-Z])/g,QD=function(t){return t.replace(XD,"-$1").toLowerCase()},ZD={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},JD=/[&><"']/g;function eI(e){return String(e).replace(JD,t=>ZD[t])}var e8=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},tI=function(t){var n=e8(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},nI=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},rI=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},et={contains:$D,deflt:WD,escape:eI,hyphenate:QD,getBaseElem:e8,isCharacterBox:tI,protocolFromUrl:rI},G0={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:e=>"#"+e},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:(e,t)=>(t.push(e),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:e=>Math.max(0,e),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:e=>Math.max(0,e),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:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function aI(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Tp{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 n in G0)if(G0.hasOwnProperty(n)){var r=G0[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:aI(r)}}reportNonstrict(t,n,r){var s=this.strict;if(typeof s=="function"&&(s=s(t,n,r)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new ke("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);s==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var s=this.strict;if(typeof s=="function")try{s=s(t,n,r)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=et.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class Ji{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return Ma[iI[this.id]]}sub(){return Ma[sI[this.id]]}fracNum(){return Ma[lI[this.id]]}fracDen(){return Ma[uI[this.id]]}cramp(){return Ma[oI[this.id]]}text(){return Ma[cI[this.id]]}isTight(){return this.size>=2}}var _p=0,ld=1,jl=2,hi=3,Bo=4,ra=5,Kl=6,pr=7,Ma=[new Ji(_p,0,!1),new Ji(ld,0,!0),new Ji(jl,1,!1),new Ji(hi,1,!0),new Ji(Bo,2,!1),new Ji(ra,2,!0),new Ji(Kl,3,!1),new Ji(pr,3,!0)],iI=[Bo,ra,Bo,ra,Kl,pr,Kl,pr],sI=[ra,ra,ra,ra,pr,pr,pr,pr],lI=[jl,hi,Bo,ra,Kl,pr,Kl,pr],uI=[hi,hi,ra,ra,pr,pr,pr,pr],oI=[ld,ld,hi,hi,ra,ra,pr,pr],cI=[_p,ld,jl,hi,jl,hi,jl,hi],rt={DISPLAY:Ma[_p],TEXT:Ma[jl],SCRIPT:Ma[Bo],SCRIPTSCRIPT:Ma[Kl]},Em=[{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 dI(e){for(var t=0;t<Em.length;t++)for(var n=Em[t],r=0;r<n.blocks.length;r++){var s=n.blocks[r];if(e>=s[0]&&e<=s[1])return n.name}return null}var V0=[];Em.forEach(e=>e.blocks.forEach(t=>V0.push(...t)));function t8(e){for(var t=0;t<V0.length;t+=2)if(e>=V0[t]&&e<=V0[t+1])return!0;return!1}var Il=80,fI=function(t,n){return"M95,"+(622+t+n)+`
96
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
97
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
98
+ 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
99
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
100
+ c69,-144,104.5,-217.7,106.5,-221
101
+ l`+t/2.075+" -"+t+`
102
+ c5.3,-9.3,12,-14,20,-14
103
+ H400000v`+(40+t)+`H845.2724
104
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
105
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
106
+ M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},hI=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
107
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
108
+ c340,-704.7,510.7,-1060.3,512,-1067
109
+ l`+t/2.084+" -"+t+`
110
+ c4.7,-7.3,11,-11,19,-11
111
+ H40000v`+(40+t)+`H1012.3
112
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
113
+ 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
114
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
115
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
116
+ M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},mI=function(t,n){return"M983 "+(10+t+n)+`
117
+ l`+t/3.13+" -"+t+`
118
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
119
+ 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
120
+ 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
121
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
122
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
123
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
124
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
125
+ M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},pI=function(t,n){return"M424,"+(2398+t+n)+`
126
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
127
+ 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
128
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
129
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
130
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
131
+ v`+(40+t)+`H1014.6
132
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
133
+ c-2,6,-10,9,-24,9
134
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
135
+ h400000v`+(40+t)+"h-400000z"},gI=function(t,n){return"M473,"+(2713+t+n)+`
136
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
137
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
138
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
139
+ 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
140
+ 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
141
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
142
+ 606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},bI=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},EI=function(t,n,r){var s=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
143
+ H742v`+s+`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
144
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
145
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
146
+ 219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},yI=function(t,n,r){n=1e3*n;var s="";switch(t){case"sqrtMain":s=fI(n,Il);break;case"sqrtSize1":s=hI(n,Il);break;case"sqrtSize2":s=mI(n,Il);break;case"sqrtSize3":s=pI(n,Il);break;case"sqrtSize4":s=gI(n,Il);break;case"sqrtTall":s=EI(n,Il,r)}return s},vI=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},n6={doubleleftarrow:`M262 157
147
+ 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
148
+ 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
149
+ 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
150
+ 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
151
+ 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
152
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
153
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
154
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
155
+ -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
156
+ 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
157
+ -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
158
+ -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
159
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
160
+ 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
161
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
162
+ 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
163
+ -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
164
+ 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
165
+ 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
166
+ 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
167
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
168
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
169
+ 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
170
+ 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
171
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
172
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
173
+ 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
174
+ 435 0h399565z`,leftgroupunder:`M400000 262
175
+ 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
176
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
177
+ -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
178
+ -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
179
+ -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
180
+ 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
181
+ -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
182
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
183
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
184
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
185
+ 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
186
+ -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
187
+ 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
188
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
189
+ 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
190
+ -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
191
+ -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
192
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
193
+ M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
194
+ M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
195
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
196
+ 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
197
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
198
+ M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
199
+ 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
200
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
201
+ 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
202
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
203
+ 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
204
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
205
+ 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
206
+ -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
207
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
208
+ 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
209
+ 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
210
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
211
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
212
+ 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
213
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
214
+ 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
215
+ 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
216
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
217
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
218
+ 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
219
+ -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
220
+ 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
221
+ 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
222
+ -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
223
+ -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
224
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
225
+ -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
226
+ 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
227
+ 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
228
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
229
+ -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
230
+ 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
231
+ 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
232
+ -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
233
+ -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
234
+ 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
235
+ -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
236
+ 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
237
+ 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
238
+ 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
239
+ -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
240
+ -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
241
+ 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
242
+ 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
243
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
244
+ 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
245
+ 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
246
+ -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
247
+ 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
248
+ 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
249
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
250
+ -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
251
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
252
+ 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
253
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
254
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
255
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
256
+ 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
257
+ 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
258
+ 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
259
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
260
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
261
+ 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
262
+ -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
263
+ 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
264
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
265
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
266
+ -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
267
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
268
+ 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
269
+ 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
270
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
271
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
272
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
273
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
274
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
275
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
276
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
277
+ -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
278
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
279
+ 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
280
+ -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
281
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
282
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
283
+ 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
284
+ 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
285
+ -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
286
+ -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
287
+ -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,
288
+ -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,
289
+ -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,
290
+ -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,
291
+ -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
292
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
293
+ 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
294
+ 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
295
+ 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
296
+ 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
297
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
298
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
299
+ -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
300
+ 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
301
+ -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
302
+ -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
303
+ -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
304
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
305
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
306
+ 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
307
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
308
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
309
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
310
+ 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,
311
+ -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
312
+ 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
313
+ 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
314
+ 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,
315
+ 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,
316
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
317
+ 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
318
+ 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,
319
+ -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
320
+ 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
321
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},TI=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
322
+ H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
323
+ M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
324
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
325
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
326
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
327
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
328
+ M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
329
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
330
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
331
+ MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
332
+ MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
333
+ M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
334
+ M347 1759 V0 h-84 V1759 v`+n+" 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
335
+ 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,
336
+ -36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
337
+ 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
338
+ 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,
339
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
340
+ l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
341
+ -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,
342
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
343
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
344
+ 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
345
+ 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
346
+ 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
347
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
348
+ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
349
+ -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 Wo{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 et.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}}var Ia={"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]}},x0={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]},r6={Å:"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 _I(e,t){Ia[e]=t}function Sp(e,t,n){if(!Ia[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),s=Ia[t][r];if(!s&&e[0]in r6&&(r=r6[e[0]].charCodeAt(0),s=Ia[t][r]),!s&&n==="text"&&t8(r)&&(s=Ia[t][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}var T1={};function SI(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!T1[t]){var n=T1[t]={cssEmPerMu:x0.quad[t]/18};for(var r in x0)x0.hasOwnProperty(r)&&(n[r]=x0[r][t])}return T1[t]}var xI=[[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]],a6=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],i6=function(t,n){return n.size<2?t:xI[t-1][n.size-1]};class ui{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||ui.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=a6[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={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 r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new ui(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:i6(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:a6[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=i6(ui.BASESIZE,t);return this.size===n&&this.textSize===ui.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}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!==ui.BASESIZE?["sizing","reset-size"+this.size,"size"+ui.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=SI(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ui.BASESIZE=6;var ym={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},AI={ex:!0,em:!0,mu:!0},n8=function(t){return typeof t!="string"&&(t=t.unit),t in ym||t in AI||t==="ex"},Tn=function(t,n){var r;if(t.unit in ym)r=ym[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var s;if(n.style.isTight()?s=n.havingStyle(n.style.text()):s=n,t.unit==="ex")r=s.fontMetrics().xHeight;else if(t.unit==="em")r=s.fontMetrics().quad;else throw new ke("Invalid unit: '"+t.unit+"'");s!==n&&(r*=s.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Me=function(t){return+t.toFixed(4)+"em"},os=function(t){return t.filter(n=>n).join(" ")},r8=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var s=n.getColor();s&&(this.style.color=s)}},a8=function(t){var n=document.createElement(t);n.className=os(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&n.setAttribute(s,this.attributes[s]);for(var l=0;l<this.children.length;l++)n.appendChild(this.children[l].toNode());return n},wI=/[\s"'>/=\x00-\x1f]/,i8=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+et.escape(os(this.classes))+'"');var r="";for(var s in this.style)this.style.hasOwnProperty(s)&&(r+=et.hyphenate(s)+":"+this.style[s]+";");r&&(n+=' style="'+et.escape(r)+'"');for(var l in this.attributes)if(this.attributes.hasOwnProperty(l)){if(wI.test(l))throw new ke("Invalid attribute name '"+l+"'");n+=" "+l+'="'+et.escape(this.attributes[l])+'"'}n+=">";for(var o=0;o<this.children.length;o++)n+=this.children[o].toMarkup();return n+="</"+t+">",n};class Xo{constructor(t,n,r,s){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,r8.call(this,t,r,s),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return et.contains(this.classes,t)}toNode(){return a8.call(this,"span")}toMarkup(){return i8.call(this,"span")}}class xp{constructor(t,n,r,s){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,r8.call(this,n,s),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return et.contains(this.classes,t)}toNode(){return a8.call(this,"a")}toMarkup(){return i8.call(this,"a")}}class CI{constructor(t,n,r){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=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return et.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+et.escape(this.src)+'"'+(' alt="'+et.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=et.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+et.escape(n)+'"'),t+="'/>",t}}var kI={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class sa{constructor(t,n,r,s,l,o,d,f){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=n||0,this.depth=r||0,this.italic=s||0,this.skew=l||0,this.width=o||0,this.classes=d||[],this.style=f||{},this.maxFontSize=0;var h=dI(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=kI[this.text])}hasClass(t){return et.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Me(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=os(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=et.escape(os(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var s in this.style)this.style.hasOwnProperty(s)&&(r+=et.hyphenate(s)+":"+this.style[s]+";");r&&(t=!0,n+=' style="'+et.escape(r)+'"');var l=et.escape(this.text);return t?(n+=">",n+=l,n+="</span>",n):l}}class gi{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+et.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class cs{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",n6[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+et.escape(this.alternate)+'"/>':'<path d="'+et.escape(n6[this.pathName])+'"/>'}}class vm{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+et.escape(this.attributes[n])+'"');return t+="/>",t}}function s6(e){if(e instanceof sa)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function NI(e){if(e instanceof Xo)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var OI={bin:1,close:1,inner:1,open:1,punct:1,rel:1},RI={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},sn={math:{},text:{}};function v(e,t,n,r,s,l){sn[e][s]={font:t,group:n,replace:r},l&&r&&(sn[e][r]=sn[e][s])}var _="math",Se="text",k="main",U="ams",mn="accent-token",He="bin",gr="close",iu="inner",nt="mathord",Pn="op-token",Gr="open",Od="punct",F="rel",_i="spacing",W="textord";v(_,k,F,"≡","\\equiv",!0);v(_,k,F,"≺","\\prec",!0);v(_,k,F,"≻","\\succ",!0);v(_,k,F,"∼","\\sim",!0);v(_,k,F,"⊥","\\perp");v(_,k,F,"⪯","\\preceq",!0);v(_,k,F,"⪰","\\succeq",!0);v(_,k,F,"≃","\\simeq",!0);v(_,k,F,"∣","\\mid",!0);v(_,k,F,"≪","\\ll",!0);v(_,k,F,"≫","\\gg",!0);v(_,k,F,"≍","\\asymp",!0);v(_,k,F,"∥","\\parallel");v(_,k,F,"⋈","\\bowtie",!0);v(_,k,F,"⌣","\\smile",!0);v(_,k,F,"⊑","\\sqsubseteq",!0);v(_,k,F,"⊒","\\sqsupseteq",!0);v(_,k,F,"≐","\\doteq",!0);v(_,k,F,"⌢","\\frown",!0);v(_,k,F,"∋","\\ni",!0);v(_,k,F,"∝","\\propto",!0);v(_,k,F,"⊢","\\vdash",!0);v(_,k,F,"⊣","\\dashv",!0);v(_,k,F,"∋","\\owns");v(_,k,Od,".","\\ldotp");v(_,k,Od,"⋅","\\cdotp");v(_,k,W,"#","\\#");v(Se,k,W,"#","\\#");v(_,k,W,"&","\\&");v(Se,k,W,"&","\\&");v(_,k,W,"ℵ","\\aleph",!0);v(_,k,W,"∀","\\forall",!0);v(_,k,W,"ℏ","\\hbar",!0);v(_,k,W,"∃","\\exists",!0);v(_,k,W,"∇","\\nabla",!0);v(_,k,W,"♭","\\flat",!0);v(_,k,W,"ℓ","\\ell",!0);v(_,k,W,"♮","\\natural",!0);v(_,k,W,"♣","\\clubsuit",!0);v(_,k,W,"℘","\\wp",!0);v(_,k,W,"♯","\\sharp",!0);v(_,k,W,"♢","\\diamondsuit",!0);v(_,k,W,"ℜ","\\Re",!0);v(_,k,W,"♡","\\heartsuit",!0);v(_,k,W,"ℑ","\\Im",!0);v(_,k,W,"♠","\\spadesuit",!0);v(_,k,W,"§","\\S",!0);v(Se,k,W,"§","\\S");v(_,k,W,"¶","\\P",!0);v(Se,k,W,"¶","\\P");v(_,k,W,"†","\\dag");v(Se,k,W,"†","\\dag");v(Se,k,W,"†","\\textdagger");v(_,k,W,"‡","\\ddag");v(Se,k,W,"‡","\\ddag");v(Se,k,W,"‡","\\textdaggerdbl");v(_,k,gr,"⎱","\\rmoustache",!0);v(_,k,Gr,"⎰","\\lmoustache",!0);v(_,k,gr,"⟯","\\rgroup",!0);v(_,k,Gr,"⟮","\\lgroup",!0);v(_,k,He,"∓","\\mp",!0);v(_,k,He,"⊖","\\ominus",!0);v(_,k,He,"⊎","\\uplus",!0);v(_,k,He,"⊓","\\sqcap",!0);v(_,k,He,"∗","\\ast");v(_,k,He,"⊔","\\sqcup",!0);v(_,k,He,"◯","\\bigcirc",!0);v(_,k,He,"∙","\\bullet",!0);v(_,k,He,"‡","\\ddagger");v(_,k,He,"≀","\\wr",!0);v(_,k,He,"⨿","\\amalg");v(_,k,He,"&","\\And");v(_,k,F,"⟵","\\longleftarrow",!0);v(_,k,F,"⇐","\\Leftarrow",!0);v(_,k,F,"⟸","\\Longleftarrow",!0);v(_,k,F,"⟶","\\longrightarrow",!0);v(_,k,F,"⇒","\\Rightarrow",!0);v(_,k,F,"⟹","\\Longrightarrow",!0);v(_,k,F,"↔","\\leftrightarrow",!0);v(_,k,F,"⟷","\\longleftrightarrow",!0);v(_,k,F,"⇔","\\Leftrightarrow",!0);v(_,k,F,"⟺","\\Longleftrightarrow",!0);v(_,k,F,"↦","\\mapsto",!0);v(_,k,F,"⟼","\\longmapsto",!0);v(_,k,F,"↗","\\nearrow",!0);v(_,k,F,"↩","\\hookleftarrow",!0);v(_,k,F,"↪","\\hookrightarrow",!0);v(_,k,F,"↘","\\searrow",!0);v(_,k,F,"↼","\\leftharpoonup",!0);v(_,k,F,"⇀","\\rightharpoonup",!0);v(_,k,F,"↙","\\swarrow",!0);v(_,k,F,"↽","\\leftharpoondown",!0);v(_,k,F,"⇁","\\rightharpoondown",!0);v(_,k,F,"↖","\\nwarrow",!0);v(_,k,F,"⇌","\\rightleftharpoons",!0);v(_,U,F,"≮","\\nless",!0);v(_,U,F,"","\\@nleqslant");v(_,U,F,"","\\@nleqq");v(_,U,F,"⪇","\\lneq",!0);v(_,U,F,"≨","\\lneqq",!0);v(_,U,F,"","\\@lvertneqq");v(_,U,F,"⋦","\\lnsim",!0);v(_,U,F,"⪉","\\lnapprox",!0);v(_,U,F,"⊀","\\nprec",!0);v(_,U,F,"⋠","\\npreceq",!0);v(_,U,F,"⋨","\\precnsim",!0);v(_,U,F,"⪹","\\precnapprox",!0);v(_,U,F,"≁","\\nsim",!0);v(_,U,F,"","\\@nshortmid");v(_,U,F,"∤","\\nmid",!0);v(_,U,F,"⊬","\\nvdash",!0);v(_,U,F,"⊭","\\nvDash",!0);v(_,U,F,"⋪","\\ntriangleleft");v(_,U,F,"⋬","\\ntrianglelefteq",!0);v(_,U,F,"⊊","\\subsetneq",!0);v(_,U,F,"","\\@varsubsetneq");v(_,U,F,"⫋","\\subsetneqq",!0);v(_,U,F,"","\\@varsubsetneqq");v(_,U,F,"≯","\\ngtr",!0);v(_,U,F,"","\\@ngeqslant");v(_,U,F,"","\\@ngeqq");v(_,U,F,"⪈","\\gneq",!0);v(_,U,F,"≩","\\gneqq",!0);v(_,U,F,"","\\@gvertneqq");v(_,U,F,"⋧","\\gnsim",!0);v(_,U,F,"⪊","\\gnapprox",!0);v(_,U,F,"⊁","\\nsucc",!0);v(_,U,F,"⋡","\\nsucceq",!0);v(_,U,F,"⋩","\\succnsim",!0);v(_,U,F,"⪺","\\succnapprox",!0);v(_,U,F,"≆","\\ncong",!0);v(_,U,F,"","\\@nshortparallel");v(_,U,F,"∦","\\nparallel",!0);v(_,U,F,"⊯","\\nVDash",!0);v(_,U,F,"⋫","\\ntriangleright");v(_,U,F,"⋭","\\ntrianglerighteq",!0);v(_,U,F,"","\\@nsupseteqq");v(_,U,F,"⊋","\\supsetneq",!0);v(_,U,F,"","\\@varsupsetneq");v(_,U,F,"⫌","\\supsetneqq",!0);v(_,U,F,"","\\@varsupsetneqq");v(_,U,F,"⊮","\\nVdash",!0);v(_,U,F,"⪵","\\precneqq",!0);v(_,U,F,"⪶","\\succneqq",!0);v(_,U,F,"","\\@nsubseteqq");v(_,U,He,"⊴","\\unlhd");v(_,U,He,"⊵","\\unrhd");v(_,U,F,"↚","\\nleftarrow",!0);v(_,U,F,"↛","\\nrightarrow",!0);v(_,U,F,"⇍","\\nLeftarrow",!0);v(_,U,F,"⇏","\\nRightarrow",!0);v(_,U,F,"↮","\\nleftrightarrow",!0);v(_,U,F,"⇎","\\nLeftrightarrow",!0);v(_,U,F,"△","\\vartriangle");v(_,U,W,"ℏ","\\hslash");v(_,U,W,"▽","\\triangledown");v(_,U,W,"◊","\\lozenge");v(_,U,W,"Ⓢ","\\circledS");v(_,U,W,"®","\\circledR");v(Se,U,W,"®","\\circledR");v(_,U,W,"∡","\\measuredangle",!0);v(_,U,W,"∄","\\nexists");v(_,U,W,"℧","\\mho");v(_,U,W,"Ⅎ","\\Finv",!0);v(_,U,W,"⅁","\\Game",!0);v(_,U,W,"‵","\\backprime");v(_,U,W,"▲","\\blacktriangle");v(_,U,W,"▼","\\blacktriangledown");v(_,U,W,"■","\\blacksquare");v(_,U,W,"⧫","\\blacklozenge");v(_,U,W,"★","\\bigstar");v(_,U,W,"∢","\\sphericalangle",!0);v(_,U,W,"∁","\\complement",!0);v(_,U,W,"ð","\\eth",!0);v(Se,k,W,"ð","ð");v(_,U,W,"╱","\\diagup");v(_,U,W,"╲","\\diagdown");v(_,U,W,"□","\\square");v(_,U,W,"□","\\Box");v(_,U,W,"◊","\\Diamond");v(_,U,W,"¥","\\yen",!0);v(Se,U,W,"¥","\\yen",!0);v(_,U,W,"✓","\\checkmark",!0);v(Se,U,W,"✓","\\checkmark");v(_,U,W,"ℶ","\\beth",!0);v(_,U,W,"ℸ","\\daleth",!0);v(_,U,W,"ℷ","\\gimel",!0);v(_,U,W,"ϝ","\\digamma",!0);v(_,U,W,"ϰ","\\varkappa");v(_,U,Gr,"┌","\\@ulcorner",!0);v(_,U,gr,"┐","\\@urcorner",!0);v(_,U,Gr,"└","\\@llcorner",!0);v(_,U,gr,"┘","\\@lrcorner",!0);v(_,U,F,"≦","\\leqq",!0);v(_,U,F,"⩽","\\leqslant",!0);v(_,U,F,"⪕","\\eqslantless",!0);v(_,U,F,"≲","\\lesssim",!0);v(_,U,F,"⪅","\\lessapprox",!0);v(_,U,F,"≊","\\approxeq",!0);v(_,U,He,"⋖","\\lessdot");v(_,U,F,"⋘","\\lll",!0);v(_,U,F,"≶","\\lessgtr",!0);v(_,U,F,"⋚","\\lesseqgtr",!0);v(_,U,F,"⪋","\\lesseqqgtr",!0);v(_,U,F,"≑","\\doteqdot");v(_,U,F,"≓","\\risingdotseq",!0);v(_,U,F,"≒","\\fallingdotseq",!0);v(_,U,F,"∽","\\backsim",!0);v(_,U,F,"⋍","\\backsimeq",!0);v(_,U,F,"⫅","\\subseteqq",!0);v(_,U,F,"⋐","\\Subset",!0);v(_,U,F,"⊏","\\sqsubset",!0);v(_,U,F,"≼","\\preccurlyeq",!0);v(_,U,F,"⋞","\\curlyeqprec",!0);v(_,U,F,"≾","\\precsim",!0);v(_,U,F,"⪷","\\precapprox",!0);v(_,U,F,"⊲","\\vartriangleleft");v(_,U,F,"⊴","\\trianglelefteq");v(_,U,F,"⊨","\\vDash",!0);v(_,U,F,"⊪","\\Vvdash",!0);v(_,U,F,"⌣","\\smallsmile");v(_,U,F,"⌢","\\smallfrown");v(_,U,F,"≏","\\bumpeq",!0);v(_,U,F,"≎","\\Bumpeq",!0);v(_,U,F,"≧","\\geqq",!0);v(_,U,F,"⩾","\\geqslant",!0);v(_,U,F,"⪖","\\eqslantgtr",!0);v(_,U,F,"≳","\\gtrsim",!0);v(_,U,F,"⪆","\\gtrapprox",!0);v(_,U,He,"⋗","\\gtrdot");v(_,U,F,"⋙","\\ggg",!0);v(_,U,F,"≷","\\gtrless",!0);v(_,U,F,"⋛","\\gtreqless",!0);v(_,U,F,"⪌","\\gtreqqless",!0);v(_,U,F,"≖","\\eqcirc",!0);v(_,U,F,"≗","\\circeq",!0);v(_,U,F,"≜","\\triangleq",!0);v(_,U,F,"∼","\\thicksim");v(_,U,F,"≈","\\thickapprox");v(_,U,F,"⫆","\\supseteqq",!0);v(_,U,F,"⋑","\\Supset",!0);v(_,U,F,"⊐","\\sqsupset",!0);v(_,U,F,"≽","\\succcurlyeq",!0);v(_,U,F,"⋟","\\curlyeqsucc",!0);v(_,U,F,"≿","\\succsim",!0);v(_,U,F,"⪸","\\succapprox",!0);v(_,U,F,"⊳","\\vartriangleright");v(_,U,F,"⊵","\\trianglerighteq");v(_,U,F,"⊩","\\Vdash",!0);v(_,U,F,"∣","\\shortmid");v(_,U,F,"∥","\\shortparallel");v(_,U,F,"≬","\\between",!0);v(_,U,F,"⋔","\\pitchfork",!0);v(_,U,F,"∝","\\varpropto");v(_,U,F,"◀","\\blacktriangleleft");v(_,U,F,"∴","\\therefore",!0);v(_,U,F,"∍","\\backepsilon");v(_,U,F,"▶","\\blacktriangleright");v(_,U,F,"∵","\\because",!0);v(_,U,F,"⋘","\\llless");v(_,U,F,"⋙","\\gggtr");v(_,U,He,"⊲","\\lhd");v(_,U,He,"⊳","\\rhd");v(_,U,F,"≂","\\eqsim",!0);v(_,k,F,"⋈","\\Join");v(_,U,F,"≑","\\Doteq",!0);v(_,U,He,"∔","\\dotplus",!0);v(_,U,He,"∖","\\smallsetminus");v(_,U,He,"⋒","\\Cap",!0);v(_,U,He,"⋓","\\Cup",!0);v(_,U,He,"⩞","\\doublebarwedge",!0);v(_,U,He,"⊟","\\boxminus",!0);v(_,U,He,"⊞","\\boxplus",!0);v(_,U,He,"⋇","\\divideontimes",!0);v(_,U,He,"⋉","\\ltimes",!0);v(_,U,He,"⋊","\\rtimes",!0);v(_,U,He,"⋋","\\leftthreetimes",!0);v(_,U,He,"⋌","\\rightthreetimes",!0);v(_,U,He,"⋏","\\curlywedge",!0);v(_,U,He,"⋎","\\curlyvee",!0);v(_,U,He,"⊝","\\circleddash",!0);v(_,U,He,"⊛","\\circledast",!0);v(_,U,He,"⋅","\\centerdot");v(_,U,He,"⊺","\\intercal",!0);v(_,U,He,"⋒","\\doublecap");v(_,U,He,"⋓","\\doublecup");v(_,U,He,"⊠","\\boxtimes",!0);v(_,U,F,"⇢","\\dashrightarrow",!0);v(_,U,F,"⇠","\\dashleftarrow",!0);v(_,U,F,"⇇","\\leftleftarrows",!0);v(_,U,F,"⇆","\\leftrightarrows",!0);v(_,U,F,"⇚","\\Lleftarrow",!0);v(_,U,F,"↞","\\twoheadleftarrow",!0);v(_,U,F,"↢","\\leftarrowtail",!0);v(_,U,F,"↫","\\looparrowleft",!0);v(_,U,F,"⇋","\\leftrightharpoons",!0);v(_,U,F,"↶","\\curvearrowleft",!0);v(_,U,F,"↺","\\circlearrowleft",!0);v(_,U,F,"↰","\\Lsh",!0);v(_,U,F,"⇈","\\upuparrows",!0);v(_,U,F,"↿","\\upharpoonleft",!0);v(_,U,F,"⇃","\\downharpoonleft",!0);v(_,k,F,"⊶","\\origof",!0);v(_,k,F,"⊷","\\imageof",!0);v(_,U,F,"⊸","\\multimap",!0);v(_,U,F,"↭","\\leftrightsquigarrow",!0);v(_,U,F,"⇉","\\rightrightarrows",!0);v(_,U,F,"⇄","\\rightleftarrows",!0);v(_,U,F,"↠","\\twoheadrightarrow",!0);v(_,U,F,"↣","\\rightarrowtail",!0);v(_,U,F,"↬","\\looparrowright",!0);v(_,U,F,"↷","\\curvearrowright",!0);v(_,U,F,"↻","\\circlearrowright",!0);v(_,U,F,"↱","\\Rsh",!0);v(_,U,F,"⇊","\\downdownarrows",!0);v(_,U,F,"↾","\\upharpoonright",!0);v(_,U,F,"⇂","\\downharpoonright",!0);v(_,U,F,"⇝","\\rightsquigarrow",!0);v(_,U,F,"⇝","\\leadsto");v(_,U,F,"⇛","\\Rrightarrow",!0);v(_,U,F,"↾","\\restriction");v(_,k,W,"‘","`");v(_,k,W,"$","\\$");v(Se,k,W,"$","\\$");v(Se,k,W,"$","\\textdollar");v(_,k,W,"%","\\%");v(Se,k,W,"%","\\%");v(_,k,W,"_","\\_");v(Se,k,W,"_","\\_");v(Se,k,W,"_","\\textunderscore");v(_,k,W,"∠","\\angle",!0);v(_,k,W,"∞","\\infty",!0);v(_,k,W,"′","\\prime");v(_,k,W,"△","\\triangle");v(_,k,W,"Γ","\\Gamma",!0);v(_,k,W,"Δ","\\Delta",!0);v(_,k,W,"Θ","\\Theta",!0);v(_,k,W,"Λ","\\Lambda",!0);v(_,k,W,"Ξ","\\Xi",!0);v(_,k,W,"Π","\\Pi",!0);v(_,k,W,"Σ","\\Sigma",!0);v(_,k,W,"Υ","\\Upsilon",!0);v(_,k,W,"Φ","\\Phi",!0);v(_,k,W,"Ψ","\\Psi",!0);v(_,k,W,"Ω","\\Omega",!0);v(_,k,W,"A","Α");v(_,k,W,"B","Β");v(_,k,W,"E","Ε");v(_,k,W,"Z","Ζ");v(_,k,W,"H","Η");v(_,k,W,"I","Ι");v(_,k,W,"K","Κ");v(_,k,W,"M","Μ");v(_,k,W,"N","Ν");v(_,k,W,"O","Ο");v(_,k,W,"P","Ρ");v(_,k,W,"T","Τ");v(_,k,W,"X","Χ");v(_,k,W,"¬","\\neg",!0);v(_,k,W,"¬","\\lnot");v(_,k,W,"⊤","\\top");v(_,k,W,"⊥","\\bot");v(_,k,W,"∅","\\emptyset");v(_,U,W,"∅","\\varnothing");v(_,k,nt,"α","\\alpha",!0);v(_,k,nt,"β","\\beta",!0);v(_,k,nt,"γ","\\gamma",!0);v(_,k,nt,"δ","\\delta",!0);v(_,k,nt,"ϵ","\\epsilon",!0);v(_,k,nt,"ζ","\\zeta",!0);v(_,k,nt,"η","\\eta",!0);v(_,k,nt,"θ","\\theta",!0);v(_,k,nt,"ι","\\iota",!0);v(_,k,nt,"κ","\\kappa",!0);v(_,k,nt,"λ","\\lambda",!0);v(_,k,nt,"μ","\\mu",!0);v(_,k,nt,"ν","\\nu",!0);v(_,k,nt,"ξ","\\xi",!0);v(_,k,nt,"ο","\\omicron",!0);v(_,k,nt,"π","\\pi",!0);v(_,k,nt,"ρ","\\rho",!0);v(_,k,nt,"σ","\\sigma",!0);v(_,k,nt,"τ","\\tau",!0);v(_,k,nt,"υ","\\upsilon",!0);v(_,k,nt,"ϕ","\\phi",!0);v(_,k,nt,"χ","\\chi",!0);v(_,k,nt,"ψ","\\psi",!0);v(_,k,nt,"ω","\\omega",!0);v(_,k,nt,"ε","\\varepsilon",!0);v(_,k,nt,"ϑ","\\vartheta",!0);v(_,k,nt,"ϖ","\\varpi",!0);v(_,k,nt,"ϱ","\\varrho",!0);v(_,k,nt,"ς","\\varsigma",!0);v(_,k,nt,"φ","\\varphi",!0);v(_,k,He,"∗","*",!0);v(_,k,He,"+","+");v(_,k,He,"−","-",!0);v(_,k,He,"⋅","\\cdot",!0);v(_,k,He,"∘","\\circ",!0);v(_,k,He,"÷","\\div",!0);v(_,k,He,"±","\\pm",!0);v(_,k,He,"×","\\times",!0);v(_,k,He,"∩","\\cap",!0);v(_,k,He,"∪","\\cup",!0);v(_,k,He,"∖","\\setminus",!0);v(_,k,He,"∧","\\land");v(_,k,He,"∨","\\lor");v(_,k,He,"∧","\\wedge",!0);v(_,k,He,"∨","\\vee",!0);v(_,k,W,"√","\\surd");v(_,k,Gr,"⟨","\\langle",!0);v(_,k,Gr,"∣","\\lvert");v(_,k,Gr,"∥","\\lVert");v(_,k,gr,"?","?");v(_,k,gr,"!","!");v(_,k,gr,"⟩","\\rangle",!0);v(_,k,gr,"∣","\\rvert");v(_,k,gr,"∥","\\rVert");v(_,k,F,"=","=");v(_,k,F,":",":");v(_,k,F,"≈","\\approx",!0);v(_,k,F,"≅","\\cong",!0);v(_,k,F,"≥","\\ge");v(_,k,F,"≥","\\geq",!0);v(_,k,F,"←","\\gets");v(_,k,F,">","\\gt",!0);v(_,k,F,"∈","\\in",!0);v(_,k,F,"","\\@not");v(_,k,F,"⊂","\\subset",!0);v(_,k,F,"⊃","\\supset",!0);v(_,k,F,"⊆","\\subseteq",!0);v(_,k,F,"⊇","\\supseteq",!0);v(_,U,F,"⊈","\\nsubseteq",!0);v(_,U,F,"⊉","\\nsupseteq",!0);v(_,k,F,"⊨","\\models");v(_,k,F,"←","\\leftarrow",!0);v(_,k,F,"≤","\\le");v(_,k,F,"≤","\\leq",!0);v(_,k,F,"<","\\lt",!0);v(_,k,F,"→","\\rightarrow",!0);v(_,k,F,"→","\\to");v(_,U,F,"≱","\\ngeq",!0);v(_,U,F,"≰","\\nleq",!0);v(_,k,_i," ","\\ ");v(_,k,_i," ","\\space");v(_,k,_i," ","\\nobreakspace");v(Se,k,_i," ","\\ ");v(Se,k,_i," "," ");v(Se,k,_i," ","\\space");v(Se,k,_i," ","\\nobreakspace");v(_,k,_i,null,"\\nobreak");v(_,k,_i,null,"\\allowbreak");v(_,k,Od,",",",");v(_,k,Od,";",";");v(_,U,He,"⊼","\\barwedge",!0);v(_,U,He,"⊻","\\veebar",!0);v(_,k,He,"⊙","\\odot",!0);v(_,k,He,"⊕","\\oplus",!0);v(_,k,He,"⊗","\\otimes",!0);v(_,k,W,"∂","\\partial",!0);v(_,k,He,"⊘","\\oslash",!0);v(_,U,He,"⊚","\\circledcirc",!0);v(_,U,He,"⊡","\\boxdot",!0);v(_,k,He,"△","\\bigtriangleup");v(_,k,He,"▽","\\bigtriangledown");v(_,k,He,"†","\\dagger");v(_,k,He,"⋄","\\diamond");v(_,k,He,"⋆","\\star");v(_,k,He,"◃","\\triangleleft");v(_,k,He,"▹","\\triangleright");v(_,k,Gr,"{","\\{");v(Se,k,W,"{","\\{");v(Se,k,W,"{","\\textbraceleft");v(_,k,gr,"}","\\}");v(Se,k,W,"}","\\}");v(Se,k,W,"}","\\textbraceright");v(_,k,Gr,"{","\\lbrace");v(_,k,gr,"}","\\rbrace");v(_,k,Gr,"[","\\lbrack",!0);v(Se,k,W,"[","\\lbrack",!0);v(_,k,gr,"]","\\rbrack",!0);v(Se,k,W,"]","\\rbrack",!0);v(_,k,Gr,"(","\\lparen",!0);v(_,k,gr,")","\\rparen",!0);v(Se,k,W,"<","\\textless",!0);v(Se,k,W,">","\\textgreater",!0);v(_,k,Gr,"⌊","\\lfloor",!0);v(_,k,gr,"⌋","\\rfloor",!0);v(_,k,Gr,"⌈","\\lceil",!0);v(_,k,gr,"⌉","\\rceil",!0);v(_,k,W,"\\","\\backslash");v(_,k,W,"∣","|");v(_,k,W,"∣","\\vert");v(Se,k,W,"|","\\textbar",!0);v(_,k,W,"∥","\\|");v(_,k,W,"∥","\\Vert");v(Se,k,W,"∥","\\textbardbl");v(Se,k,W,"~","\\textasciitilde");v(Se,k,W,"\\","\\textbackslash");v(Se,k,W,"^","\\textasciicircum");v(_,k,F,"↑","\\uparrow",!0);v(_,k,F,"⇑","\\Uparrow",!0);v(_,k,F,"↓","\\downarrow",!0);v(_,k,F,"⇓","\\Downarrow",!0);v(_,k,F,"↕","\\updownarrow",!0);v(_,k,F,"⇕","\\Updownarrow",!0);v(_,k,Pn,"∐","\\coprod");v(_,k,Pn,"⋁","\\bigvee");v(_,k,Pn,"⋀","\\bigwedge");v(_,k,Pn,"⨄","\\biguplus");v(_,k,Pn,"⋂","\\bigcap");v(_,k,Pn,"⋃","\\bigcup");v(_,k,Pn,"∫","\\int");v(_,k,Pn,"∫","\\intop");v(_,k,Pn,"∬","\\iint");v(_,k,Pn,"∭","\\iiint");v(_,k,Pn,"∏","\\prod");v(_,k,Pn,"∑","\\sum");v(_,k,Pn,"⨂","\\bigotimes");v(_,k,Pn,"⨁","\\bigoplus");v(_,k,Pn,"⨀","\\bigodot");v(_,k,Pn,"∮","\\oint");v(_,k,Pn,"∯","\\oiint");v(_,k,Pn,"∰","\\oiiint");v(_,k,Pn,"⨆","\\bigsqcup");v(_,k,Pn,"∫","\\smallint");v(Se,k,iu,"…","\\textellipsis");v(_,k,iu,"…","\\mathellipsis");v(Se,k,iu,"…","\\ldots",!0);v(_,k,iu,"…","\\ldots",!0);v(_,k,iu,"⋯","\\@cdots",!0);v(_,k,iu,"⋱","\\ddots",!0);v(_,k,W,"⋮","\\varvdots");v(Se,k,W,"⋮","\\varvdots");v(_,k,mn,"ˊ","\\acute");v(_,k,mn,"ˋ","\\grave");v(_,k,mn,"¨","\\ddot");v(_,k,mn,"~","\\tilde");v(_,k,mn,"ˉ","\\bar");v(_,k,mn,"˘","\\breve");v(_,k,mn,"ˇ","\\check");v(_,k,mn,"^","\\hat");v(_,k,mn,"⃗","\\vec");v(_,k,mn,"˙","\\dot");v(_,k,mn,"˚","\\mathring");v(_,k,nt,"","\\@imath");v(_,k,nt,"","\\@jmath");v(_,k,W,"ı","ı");v(_,k,W,"ȷ","ȷ");v(Se,k,W,"ı","\\i",!0);v(Se,k,W,"ȷ","\\j",!0);v(Se,k,W,"ß","\\ss",!0);v(Se,k,W,"æ","\\ae",!0);v(Se,k,W,"œ","\\oe",!0);v(Se,k,W,"ø","\\o",!0);v(Se,k,W,"Æ","\\AE",!0);v(Se,k,W,"Œ","\\OE",!0);v(Se,k,W,"Ø","\\O",!0);v(Se,k,mn,"ˊ","\\'");v(Se,k,mn,"ˋ","\\`");v(Se,k,mn,"ˆ","\\^");v(Se,k,mn,"˜","\\~");v(Se,k,mn,"ˉ","\\=");v(Se,k,mn,"˘","\\u");v(Se,k,mn,"˙","\\.");v(Se,k,mn,"¸","\\c");v(Se,k,mn,"˚","\\r");v(Se,k,mn,"ˇ","\\v");v(Se,k,mn,"¨",'\\"');v(Se,k,mn,"˝","\\H");v(Se,k,mn,"◯","\\textcircled");var s8={"--":!0,"---":!0,"``":!0,"''":!0};v(Se,k,W,"–","--",!0);v(Se,k,W,"–","\\textendash");v(Se,k,W,"—","---",!0);v(Se,k,W,"—","\\textemdash");v(Se,k,W,"‘","`",!0);v(Se,k,W,"‘","\\textquoteleft");v(Se,k,W,"’","'",!0);v(Se,k,W,"’","\\textquoteright");v(Se,k,W,"“","``",!0);v(Se,k,W,"“","\\textquotedblleft");v(Se,k,W,"”","''",!0);v(Se,k,W,"”","\\textquotedblright");v(_,k,W,"°","\\degree",!0);v(Se,k,W,"°","\\degree");v(Se,k,W,"°","\\textdegree",!0);v(_,k,W,"£","\\pounds");v(_,k,W,"£","\\mathsterling",!0);v(Se,k,W,"£","\\pounds");v(Se,k,W,"£","\\textsterling",!0);v(_,U,W,"✠","\\maltese");v(Se,U,W,"✠","\\maltese");var l6='0123456789/@."';for(var _1=0;_1<l6.length;_1++){var u6=l6.charAt(_1);v(_,k,W,u6,u6)}var o6='0123456789!@*()-=+";:?/.,';for(var S1=0;S1<o6.length;S1++){var c6=o6.charAt(S1);v(Se,k,W,c6,c6)}var ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var x1=0;x1<ud.length;x1++){var A0=ud.charAt(x1);v(_,k,nt,A0,A0),v(Se,k,W,A0,A0)}v(_,U,W,"C","ℂ");v(Se,U,W,"C","ℂ");v(_,U,W,"H","ℍ");v(Se,U,W,"H","ℍ");v(_,U,W,"N","ℕ");v(Se,U,W,"N","ℕ");v(_,U,W,"P","ℙ");v(Se,U,W,"P","ℙ");v(_,U,W,"Q","ℚ");v(Se,U,W,"Q","ℚ");v(_,U,W,"R","ℝ");v(Se,U,W,"R","ℝ");v(_,U,W,"Z","ℤ");v(Se,U,W,"Z","ℤ");v(_,k,nt,"h","ℎ");v(Se,k,nt,"h","ℎ");var ft="";for(var cr=0;cr<ud.length;cr++){var xn=ud.charAt(cr);ft=String.fromCharCode(55349,56320+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56372+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56424+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56580+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56684+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56736+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56788+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56840+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56944+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),cr<26&&(ft=String.fromCharCode(55349,56632+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft),ft=String.fromCharCode(55349,56476+cr),v(_,k,nt,xn,ft),v(Se,k,W,xn,ft))}ft="𝕜";v(_,k,nt,"k",ft);v(Se,k,W,"k",ft);for(var zs=0;zs<10;zs++){var es=zs.toString();ft=String.fromCharCode(55349,57294+zs),v(_,k,nt,es,ft),v(Se,k,W,es,ft),ft=String.fromCharCode(55349,57314+zs),v(_,k,nt,es,ft),v(Se,k,W,es,ft),ft=String.fromCharCode(55349,57324+zs),v(_,k,nt,es,ft),v(Se,k,W,es,ft),ft=String.fromCharCode(55349,57334+zs),v(_,k,nt,es,ft),v(Se,k,W,es,ft)}var Tm="ÐÞþ";for(var A1=0;A1<Tm.length;A1++){var w0=Tm.charAt(A1);v(_,k,nt,w0,w0),v(Se,k,W,w0,w0)}var C0=[["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"]],d6=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],MI=function(t,n){var r=t.charCodeAt(0),s=t.charCodeAt(1),l=(r-55296)*1024+(s-56320)+65536,o=n==="math"?0:1;if(119808<=l&&l<120484){var d=Math.floor((l-119808)/26);return[C0[d][2],C0[d][o]]}else if(120782<=l&&l<=120831){var f=Math.floor((l-120782)/10);return[d6[f][2],d6[f][o]]}else{if(l===120485||l===120486)return[C0[0][2],C0[0][o]];if(120486<l&&l<120782)return["",""];throw new ke("Unsupported character: "+t)}},Rd=function(t,n,r){return sn[r][t]&&sn[r][t].replace&&(t=sn[r][t].replace),{value:t,metrics:Sp(t,n,r)}},ga=function(t,n,r,s,l){var o=Rd(t,n,r),d=o.metrics;t=o.value;var f;if(d){var h=d.italic;(r==="text"||s&&s.font==="mathit")&&(h=0),f=new sa(t,d.height,d.depth,h,d.skew,d.width,l)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),f=new sa(t,0,0,0,0,0,l);if(s){f.maxFontSize=s.sizeMultiplier,s.style.isTight()&&f.classes.push("mtight");var p=s.getColor();p&&(f.style.color=p)}return f},DI=function(t,n,r,s){return s===void 0&&(s=[]),r.font==="boldsymbol"&&Rd(t,"Main-Bold",n).metrics?ga(t,"Main-Bold",n,r,s.concat(["mathbf"])):t==="\\"||sn[n][t].font==="main"?ga(t,"Main-Regular",n,r,s):ga(t,"AMS-Regular",n,r,s.concat(["amsrm"]))},II=function(t,n,r,s,l){return l!=="textord"&&Rd(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},LI=function(t,n,r){var s=t.mode,l=t.text,o=["mord"],d=s==="math"||s==="text"&&n.font,f=d?n.font:n.fontFamily,h="",p="";if(l.charCodeAt(0)===55349&&([h,p]=MI(l,s)),h.length>0)return ga(l,h,s,n,o.concat(p));if(f){var g,y;if(f==="boldsymbol"){var T=II(l,s,n,o,r);g=T.fontName,y=[T.fontClass]}else d?(g=o8[f].fontName,y=[f]):(g=k0(f,n.fontWeight,n.fontShape),y=[f,n.fontWeight,n.fontShape]);if(Rd(l,g,s).metrics)return ga(l,g,s,n,o.concat(y));if(s8.hasOwnProperty(l)&&g.slice(0,10)==="Typewriter"){for(var w=[],x=0;x<l.length;x++)w.push(ga(l[x],g,s,n,o.concat(y)));return u8(w)}}if(r==="mathord")return ga(l,"Math-Italic",s,n,o.concat(["mathnormal"]));if(r==="textord"){var R=sn[s][l]&&sn[s][l].font;if(R==="ams"){var C=k0("amsrm",n.fontWeight,n.fontShape);return ga(l,C,s,n,o.concat("amsrm",n.fontWeight,n.fontShape))}else if(R==="main"||!R){var M=k0("textrm",n.fontWeight,n.fontShape);return ga(l,M,s,n,o.concat(n.fontWeight,n.fontShape))}else{var L=k0(R,n.fontWeight,n.fontShape);return ga(l,L,s,n,o.concat(L,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},BI=(e,t)=>{if(os(e.classes)!==os(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var s in t.style)if(t.style.hasOwnProperty(s)&&e.style[s]!==t.style[s])return!1;return!0},PI=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof sa&&r instanceof sa&&BI(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},Ap=function(t){for(var n=0,r=0,s=0,l=0;l<t.children.length;l++){var o=t.children[l];o.height>n&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>s&&(s=o.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=s},wr=function(t,n,r,s){var l=new Xo(t,n,r,s);return Ap(l),l},l8=(e,t,n,r)=>new Xo(e,t,n,r),UI=function(t,n,r){var s=wr([t],[],n);return s.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),s.style.borderBottomWidth=Me(s.height),s.maxFontSize=1,s},zI=function(t,n,r,s){var l=new xp(t,n,r,s);return Ap(l),l},u8=function(t){var n=new Wo(t);return Ap(n),n},FI=function(t,n){return t instanceof Wo?wr([],[t],n):t},HI=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],s=-n[0].shift-n[0].elem.depth,l=s,o=1;o<n.length;o++){var d=-n[o].shift-l-n[o].elem.depth,f=d-(n[o-1].elem.height+n[o-1].elem.depth);l=l+d,r.push({type:"kern",size:f}),r.push(n[o])}return{children:r,depth:s}}var h;if(t.positionType==="top"){for(var p=t.positionData,g=0;g<t.children.length;g++){var y=t.children[g];p-=y.type==="kern"?y.size:y.elem.height+y.elem.depth}h=p}else if(t.positionType==="bottom")h=-t.positionData;else{var T=t.children[0];if(T.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")h=-T.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-T.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},qI=function(t,n){for(var{children:r,depth:s}=HI(t),l=0,o=0;o<r.length;o++){var d=r[o];if(d.type==="elem"){var f=d.elem;l=Math.max(l,f.maxFontSize,f.height)}}l+=2;var h=wr(["pstrut"],[]);h.style.height=Me(l);for(var p=[],g=s,y=s,T=s,w=0;w<r.length;w++){var x=r[w];if(x.type==="kern")T+=x.size;else{var R=x.elem,C=x.wrapperClasses||[],M=x.wrapperStyle||{},L=wr(C,[h,R],void 0,M);L.style.top=Me(-l-T-R.depth),x.marginLeft&&(L.style.marginLeft=x.marginLeft),x.marginRight&&(L.style.marginRight=x.marginRight),p.push(L),T+=R.height+R.depth}g=Math.min(g,T),y=Math.max(y,T)}var $=wr(["vlist"],p);$.style.height=Me(y);var G;if(g<0){var z=wr([],[]),ne=wr(["vlist"],[z]);ne.style.height=Me(-g);var ce=wr(["vlist-s"],[new sa("​")]);G=[wr(["vlist-r"],[$,ce]),wr(["vlist-r"],[ne])]}else G=[wr(["vlist-r"],[$])];var Q=wr(["vlist-t"],G);return G.length===2&&Q.classes.push("vlist-t2"),Q.height=y,Q.depth=-g,Q},jI=(e,t)=>{var n=wr(["mspace"],[],t),r=Tn(e,t);return n.style.marginRight=Me(r),n},k0=function(t,n,r){var s="";switch(t){case"amsrm":s="AMS";break;case"textrm":s="Main";break;case"textsf":s="SansSerif";break;case"texttt":s="Typewriter";break;default:s=t}var l;return n==="textbf"&&r==="textit"?l="BoldItalic":n==="textbf"?l="Bold":n==="textit"?l="Italic":l="Regular",s+"-"+l},o8={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"}},c8={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},YI=function(t,n){var[r,s,l]=c8[t],o=new cs(r),d=new gi([o],{width:Me(s),height:Me(l),style:"width:"+Me(s),viewBox:"0 0 "+1e3*s+" "+1e3*l,preserveAspectRatio:"xMinYMin"}),f=l8(["overlay"],[d],n);return f.height=l,f.style.height=Me(l),f.style.width=Me(s),f},ie={fontMap:o8,makeSymbol:ga,mathsym:DI,makeSpan:wr,makeSvgSpan:l8,makeLineSpan:UI,makeAnchor:zI,makeFragment:u8,wrapFragment:FI,makeVList:qI,makeOrd:LI,makeGlue:jI,staticSvg:YI,svgData:c8,tryCombineChars:PI},yn={number:3,unit:"mu"},Fs={number:4,unit:"mu"},li={number:5,unit:"mu"},GI={mord:{mop:yn,mbin:Fs,mrel:li,minner:yn},mop:{mord:yn,mop:yn,mrel:li,minner:yn},mbin:{mord:Fs,mop:Fs,mopen:Fs,minner:Fs},mrel:{mord:li,mop:li,mopen:li,minner:li},mopen:{},mclose:{mop:yn,mbin:Fs,mrel:li,minner:yn},mpunct:{mord:yn,mop:yn,mrel:li,mopen:yn,mclose:yn,mpunct:yn,minner:yn},minner:{mord:yn,mop:yn,mbin:Fs,mrel:li,mopen:yn,mpunct:yn,minner:yn}},VI={mord:{mop:yn},mop:{mord:yn,mop:yn},mbin:{},mrel:{},mopen:{},mclose:{mop:yn},mpunct:{},minner:{mop:yn}},d8={},od={},cd={};function Ue(e){for(var{type:t,names:n,props:r,handler:s,htmlBuilder:l,mathmlBuilder:o}=e,d={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:s},f=0;f<n.length;++f)d8[n[f]]=d;t&&(l&&(od[t]=l),o&&(cd[t]=o))}function Xs(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Ue({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var dd=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Nn=function(t){return t.type==="ordgroup"?t.body:[t]},bi=ie.makeSpan,KI=["leftmost","mbin","mopen","mrel","mop","mpunct"],$I=["rightmost","mrel","mclose","mpunct"],WI={display:rt.DISPLAY,text:rt.TEXT,script:rt.SCRIPT,scriptscript:rt.SCRIPTSCRIPT},XI={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Fn=function(t,n,r,s){s===void 0&&(s=[null,null]);for(var l=[],o=0;o<t.length;o++){var d=Lt(t[o],n);if(d instanceof Wo){var f=d.children;l.push(...f)}else l.push(d)}if(ie.tryCombineChars(l),!r)return l;var h=n;if(t.length===1){var p=t[0];p.type==="sizing"?h=n.havingSize(p.size):p.type==="styling"&&(h=n.havingStyle(WI[p.style]))}var g=bi([s[0]||"leftmost"],[],n),y=bi([s[1]||"rightmost"],[],n),T=r==="root";return f6(l,(w,x)=>{var R=x.classes[0],C=w.classes[0];R==="mbin"&&et.contains($I,C)?x.classes[0]="mord":C==="mbin"&&et.contains(KI,R)&&(w.classes[0]="mord")},{node:g},y,T),f6(l,(w,x)=>{var R=_m(x),C=_m(w),M=R&&C?w.hasClass("mtight")?VI[R][C]:GI[R][C]:null;if(M)return ie.makeGlue(M,h)},{node:g},y,T),l},f6=function e(t,n,r,s,l){s&&t.push(s);for(var o=0;o<t.length;o++){var d=t[o],f=f8(d);if(f){e(f.children,n,r,null,l);continue}var h=!d.hasClass("mspace");if(h){var p=n(d,r.node);p&&(r.insertAfter?r.insertAfter(p):(t.unshift(p),o++))}h?r.node=d:l&&d.hasClass("newline")&&(r.node=bi(["leftmost"])),r.insertAfter=(g=>y=>{t.splice(g+1,0,y),o++})(o)}s&&t.pop()},f8=function(t){return t instanceof Wo||t instanceof xp||t instanceof Xo&&t.hasClass("enclosing")?t:null},QI=function e(t,n){var r=f8(t);if(r){var s=r.children;if(s.length){if(n==="right")return e(s[s.length-1],"right");if(n==="left")return e(s[0],"left")}}return t},_m=function(t,n){return t?(n&&(t=QI(t,n)),XI[t.classes[0]]||null):null},Po=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return bi(n.concat(r))},Lt=function(t,n,r){if(!t)return bi();if(od[t.type]){var s=od[t.type](t,n);if(r&&n.size!==r.size){s=bi(n.sizingClasses(r),[s],n);var l=n.sizeMultiplier/r.sizeMultiplier;s.height*=l,s.depth*=l}return s}else throw new ke("Got group of unknown type: '"+t.type+"'")};function N0(e,t){var n=bi(["base"],e,t),r=bi(["strut"]);return r.style.height=Me(n.height+n.depth),n.depth&&(r.style.verticalAlign=Me(-n.depth)),n.children.unshift(r),n}function Sm(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Fn(e,t,"root"),s;r.length===2&&r[1].hasClass("tag")&&(s=r.pop());for(var l=[],o=[],d=0;d<r.length;d++)if(o.push(r[d]),r[d].hasClass("mbin")||r[d].hasClass("mrel")||r[d].hasClass("allowbreak")){for(var f=!1;d<r.length-1&&r[d+1].hasClass("mspace")&&!r[d+1].hasClass("newline");)d++,o.push(r[d]),r[d].hasClass("nobreak")&&(f=!0);f||(l.push(N0(o,t)),o=[])}else r[d].hasClass("newline")&&(o.pop(),o.length>0&&(l.push(N0(o,t)),o=[]),l.push(r[d]));o.length>0&&l.push(N0(o,t));var h;n?(h=N0(Fn(n,t,!0)),h.classes=["tag"],l.push(h)):s&&l.push(s);var p=bi(["katex-html"],l);if(p.setAttribute("aria-hidden","true"),h){var g=h.children[0];g.style.height=Me(p.height+p.depth),p.depth&&(g.style.verticalAlign=Me(-p.depth))}return p}function h8(e){return new Wo(e)}class jr{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=os(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof La&&this.children[r+1]instanceof La){for(var s=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof La;)s+=this.children[++r].toText();t.appendChild(new La(s).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=et.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+et.escape(os(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class La{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return et.escape(this.toText())}toText(){return this.text}}class ZI{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",Me(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Me(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Ce={MathNode:jr,TextNode:La,SpaceNode:ZI,newDocumentFragment:h8},la=function(t,n,r){return sn[n][t]&&sn[n][t].replace&&t.charCodeAt(0)!==55349&&!(s8.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=sn[n][t].replace),new Ce.TextNode(t)},wp=function(t){return t.length===1?t[0]:new Ce.MathNode("mrow",t)},Cp=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var s=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var l=t.text;if(et.contains(["\\imath","\\jmath"],l))return null;sn[s][l]&&sn[s][l].replace&&(l=sn[s][l].replace);var o=ie.fontMap[r].fontName;return Sp(l,o,s)?ie.fontMap[r].variant:null};function w1(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof La&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof La&&n.text===","}else return!1}var kr=function(t,n,r){if(t.length===1){var s=tn(t[0],n);return r&&s instanceof jr&&s.type==="mo"&&(s.setAttribute("lspace","0em"),s.setAttribute("rspace","0em")),[s]}for(var l=[],o,d=0;d<t.length;d++){var f=tn(t[d],n);if(f instanceof jr&&o instanceof jr){if(f.type==="mtext"&&o.type==="mtext"&&f.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...f.children);continue}else if(f.type==="mn"&&o.type==="mn"){o.children.push(...f.children);continue}else if(w1(f)&&o.type==="mn"){o.children.push(...f.children);continue}else if(f.type==="mn"&&w1(o))f.children=[...o.children,...f.children],l.pop();else if((f.type==="msup"||f.type==="msub")&&f.children.length>=1&&(o.type==="mn"||w1(o))){var h=f.children[0];h instanceof jr&&h.type==="mn"&&(h.children=[...o.children,...h.children],l.pop())}else if(o.type==="mi"&&o.children.length===1){var p=o.children[0];if(p instanceof La&&p.text==="̸"&&(f.type==="mo"||f.type==="mi"||f.type==="mn")){var g=f.children[0];g instanceof La&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),l.pop())}}}l.push(f),o=f}return l},ds=function(t,n,r){return wp(kr(t,n,r))},tn=function(t,n){if(!t)return new Ce.MathNode("mrow");if(cd[t.type]){var r=cd[t.type](t,n);return r}else throw new ke("Got group of unknown type: '"+t.type+"'")};function h6(e,t,n,r,s){var l=kr(e,n),o;l.length===1&&l[0]instanceof jr&&et.contains(["mrow","mtable"],l[0].type)?o=l[0]:o=new Ce.MathNode("mrow",l);var d=new Ce.MathNode("annotation",[new Ce.TextNode(t)]);d.setAttribute("encoding","application/x-tex");var f=new Ce.MathNode("semantics",[o,d]),h=new Ce.MathNode("math",[f]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&h.setAttribute("display","block");var p=s?"katex":"katex-mathml";return ie.makeSpan([p],[h])}var m8=function(t){return new ui({style:t.displayMode?rt.DISPLAY:rt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},p8=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=ie.makeSpan(r,[t])}return t},JI=function(t,n,r){var s=m8(r),l;if(r.output==="mathml")return h6(t,n,s,r.displayMode,!0);if(r.output==="html"){var o=Sm(t,s);l=ie.makeSpan(["katex"],[o])}else{var d=h6(t,n,s,r.displayMode,!1),f=Sm(t,s);l=ie.makeSpan(["katex"],[d,f])}return p8(l,r)},eL=function(t,n,r){var s=m8(r),l=Sm(t,s),o=ie.makeSpan(["katex"],[l]);return p8(o,r)},tL={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":"="},nL=function(t){var n=new Ce.MathNode("mo",[new Ce.TextNode(tL[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},rL={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]},aL=function(t){return t.type==="ordgroup"?t.body.length:1},iL=function(t,n){function r(){var d=4e5,f=t.label.slice(1);if(et.contains(["widehat","widecheck","widetilde","utilde"],f)){var h=t,p=aL(h.base),g,y,T;if(p>5)f==="widehat"||f==="widecheck"?(g=420,d=2364,T=.42,y=f+"4"):(g=312,d=2340,T=.34,y="tilde4");else{var w=[1,1,2,2,3,3][p];f==="widehat"||f==="widecheck"?(d=[0,1062,2364,2364,2364][w],g=[0,239,300,360,420][w],T=[0,.24,.3,.3,.36,.42][w],y=f+w):(d=[0,600,1033,2339,2340][w],g=[0,260,286,306,312][w],T=[0,.26,.286,.3,.306,.34][w],y="tilde"+w)}var x=new cs(y),R=new gi([x],{width:"100%",height:Me(T),viewBox:"0 0 "+d+" "+g,preserveAspectRatio:"none"});return{span:ie.makeSvgSpan([],[R],n),minWidth:0,height:T}}else{var C=[],M=rL[f],[L,$,G]=M,z=G/1e3,ne=L.length,ce,Q;if(ne===1){var j=M[3];ce=["hide-tail"],Q=[j]}else if(ne===2)ce=["halfarrow-left","halfarrow-right"],Q=["xMinYMin","xMaxYMin"];else if(ne===3)ce=["brace-left","brace-center","brace-right"],Q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
350
+ `+ne+" children.");for(var me=0;me<ne;me++){var J=new cs(L[me]),se=new gi([J],{width:"400em",height:Me(z),viewBox:"0 0 "+d+" "+G,preserveAspectRatio:Q[me]+" slice"}),fe=ie.makeSvgSpan([ce[me]],[se],n);if(ne===1)return{span:fe,minWidth:$,height:z};fe.style.height=Me(z),C.push(fe)}return{span:ie.makeSpan(["stretchy"],C,n),minWidth:$,height:z}}}var{span:s,minWidth:l,height:o}=r();return s.height=o,s.style.height=Me(o),l>0&&(s.style.minWidth=Me(l)),s},sL=function(t,n,r,s,l){var o,d=t.height+t.depth+r+s;if(/fbox|color|angl/.test(n)){if(o=ie.makeSpan(["stretchy",n],[],l),n==="fbox"){var f=l.color&&l.getColor();f&&(o.style.borderColor=f)}}else{var h=[];/^[bx]cancel$/.test(n)&&h.push(new vm({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&h.push(new vm({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new gi(h,{width:"100%",height:Me(d)});o=ie.makeSvgSpan([],[p],l)}return o.height=d,o.style.height=Me(d),o},Ei={encloseSpan:sL,mathMLnode:nL,svgSpan:iL};function vt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function kp(e){var t=Md(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Md(e){return e&&(e.type==="atom"||RI.hasOwnProperty(e.type))?e:null}var Np=(e,t)=>{var n,r,s;e&&e.type==="supsub"?(r=vt(e.base,"accent"),n=r.base,e.base=n,s=NI(Lt(e,t)),e.base=r):(r=vt(e,"accent"),n=r.base);var l=Lt(n,t.havingCrampedStyle()),o=r.isShifty&&et.isCharacterBox(n),d=0;if(o){var f=et.getBaseElem(n),h=Lt(f,t.havingCrampedStyle());d=s6(h).skew}var p=r.label==="\\c",g=p?l.height+l.depth:Math.min(l.height,t.fontMetrics().xHeight),y;if(r.isStretchy)y=Ei.svgSpan(r,t),y=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:y,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+Me(2*d)+")",marginLeft:Me(2*d)}:void 0}]},t);else{var T,w;r.label==="\\vec"?(T=ie.staticSvg("vec",t),w=ie.svgData.vec[1]):(T=ie.makeOrd({mode:r.mode,text:r.label},t,"textord"),T=s6(T),T.italic=0,w=T.width,p&&(g+=T.depth)),y=ie.makeSpan(["accent-body"],[T]);var x=r.label==="\\textcircled";x&&(y.classes.push("accent-full"),g=l.height);var R=d;x||(R-=w/2),y.style.left=Me(R),r.label==="\\textcircled"&&(y.style.top=".2em"),y=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-g},{type:"elem",elem:y}]},t)}var C=ie.makeSpan(["mord","accent"],[y],t);return s?(s.children[0]=C,s.height=Math.max(C.height,s.height),s.classes[0]="mord",s):C},g8=(e,t)=>{var n=e.isStretchy?Ei.mathMLnode(e.label):new Ce.MathNode("mo",[la(e.label,e.mode)]),r=new Ce.MathNode("mover",[tn(e.base,t),n]);return r.setAttribute("accent","true"),r},lL=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ue({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:(e,t)=>{var n=dd(t[0]),r=!lL.test(e.funcName),s=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:s,base:n}},htmlBuilder:Np,mathmlBuilder:g8});Ue({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Np,mathmlBuilder:g8});Ue({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,s=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:s}},htmlBuilder:(e,t)=>{var n=Lt(e.base,t),r=Ei.svgSpan(e,t),s=e.label==="\\utilde"?.12:0,l=ie.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:s},{type:"elem",elem:n}]},t);return ie.makeSpan(["mord","accentunder"],[l],t)},mathmlBuilder:(e,t)=>{var n=Ei.mathMLnode(e.label),r=new Ce.MathNode("munder",[tn(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var O0=e=>{var t=new Ce.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ue({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(e,t,n){var{parser:r,funcName:s}=e;return{type:"xArrow",mode:r.mode,label:s,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),s=ie.wrapFragment(Lt(e.body,r,t),t),l=e.label.slice(0,2)==="\\x"?"x":"cd";s.classes.push(l+"-arrow-pad");var o;e.below&&(r=t.havingStyle(n.sub()),o=ie.wrapFragment(Lt(e.below,r,t),t),o.classes.push(l+"-arrow-pad"));var d=Ei.svgSpan(e,t),f=-t.fontMetrics().axisHeight+.5*d.height,h=-t.fontMetrics().axisHeight-.5*d.height-.111;(s.depth>.25||e.label==="\\xleftequilibrium")&&(h-=s.depth);var p;if(o){var g=-t.fontMetrics().axisHeight+o.height+.5*d.height+.111;p=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:h},{type:"elem",elem:d,shift:f},{type:"elem",elem:o,shift:g}]},t)}else p=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:h},{type:"elem",elem:d,shift:f}]},t);return p.children[0].children[0].children[1].classes.push("svg-align"),ie.makeSpan(["mrel","x-arrow"],[p],t)},mathmlBuilder(e,t){var n=Ei.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var s=O0(tn(e.body,t));if(e.below){var l=O0(tn(e.below,t));r=new Ce.MathNode("munderover",[n,l,s])}else r=new Ce.MathNode("mover",[n,s])}else if(e.below){var o=O0(tn(e.below,t));r=new Ce.MathNode("munder",[n,o])}else r=O0(),r=new Ce.MathNode("mover",[n,r]);return r}});var uL=ie.makeSpan;function b8(e,t){var n=Fn(e.body,t,!0);return uL([e.mclass],n,t)}function E8(e,t){var n,r=kr(e.body,t);return e.mclass==="minner"?n=new Ce.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Ce.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Ce.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Ue({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,s=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Nn(s),isCharacterBox:et.isCharacterBox(s)}},htmlBuilder:b8,mathmlBuilder:E8});var Dd=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Ue({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Dd(t[0]),body:Nn(t[1]),isCharacterBox:et.isCharacterBox(t[1])}}});Ue({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,s=t[1],l=t[0],o;r!=="\\stackrel"?o=Dd(s):o="mrel";var d={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Nn(s)},f={type:"supsub",mode:l.mode,base:d,sup:r==="\\underset"?null:l,sub:r==="\\underset"?l:null};return{type:"mclass",mode:n.mode,mclass:o,body:[f],isCharacterBox:et.isCharacterBox(f)}},htmlBuilder:b8,mathmlBuilder:E8});Ue({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Dd(t[0]),body:Nn(t[0])}},htmlBuilder(e,t){var n=Fn(e.body,t,!0),r=ie.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=kr(e.body,t),r=new Ce.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var oL={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},m6=()=>({type:"styling",body:[],mode:"math",style:"display"}),p6=e=>e.type==="textord"&&e.text==="@",cL=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function dL(e,t,n){var r=oL[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var s=n.callFunction("\\\\cdleft",[t[0]],[]),l={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[l],[]),d=n.callFunction("\\\\cdright",[t[1]],[]),f={type:"ordgroup",mode:"math",body:[s,o,d]};return n.callFunction("\\\\cdparent",[f],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function fL(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new ke("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],s=[r],l=0;l<t.length;l++){for(var o=t[l],d=m6(),f=0;f<o.length;f++)if(!p6(o[f]))d.body.push(o[f]);else{r.push(d),f+=1;var h=kp(o[f]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(h)>-1))if("<>AV".indexOf(h)>-1)for(var g=0;g<2;g++){for(var y=!0,T=f+1;T<o.length;T++){if(cL(o[T],h)){y=!1,f=T;break}if(p6(o[T]))throw new ke("Missing a "+h+" character to complete a CD arrow.",o[T]);p[g].body.push(o[T])}if(y)throw new ke("Missing a "+h+" character to complete a CD arrow.",o[f])}else throw new ke('Expected one of "<>AV=|." after @',o[f]);var w=dL(h,p,e),x={type:"styling",body:[w],mode:"math",style:"display"};r.push(x),d=m6()}l%2===0?r.push(d):r.shift(),r=[],s.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var R=new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:R,colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}Ue({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=ie.wrapFragment(Lt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Me(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Ce.MathNode("mrow",[tn(e.label,t)]);return n=new Ce.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ce.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Ue({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=ie.wrapFragment(Lt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ce.MathNode("mrow",[tn(e.fragment,t)])}});Ue({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=vt(t[0],"ordgroup"),s=r.body,l="",o=0;o<s.length;o++){var d=vt(s[o],"textord");l+=d.text}var f=parseInt(l),h;if(isNaN(f))throw new ke("\\@char has non-numeric argument "+l);if(f<0||f>=1114111)throw new ke("\\@char with invalid code point "+l);return f<=65535?h=String.fromCharCode(f):(f-=65536,h=String.fromCharCode((f>>10)+55296,(f&1023)+56320)),{type:"textord",mode:n.mode,text:h}}});var y8=(e,t)=>{var n=Fn(e.body,t.withColor(e.color),!1);return ie.makeFragment(n)},v8=(e,t)=>{var n=kr(e.body,t.withColor(e.color)),r=new Ce.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Ue({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=vt(t[0],"color-token").color,s=t[1];return{type:"color",mode:n.mode,color:r,body:Nn(s)}},htmlBuilder:y8,mathmlBuilder:v8});Ue({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,s=vt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",s);var l=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:s,body:l}},htmlBuilder:y8,mathmlBuilder:v8});Ue({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,s=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,l=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:l,size:s&&vt(s,"size").value}},htmlBuilder(e,t){var n=ie.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Me(Tn(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ce.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Me(Tn(e.size,t)))),n}});var xm={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},T8=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ke("Expected a control sequence",e);return t},hL=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},_8=(e,t,n,r)=>{var s=e.gullet.macros.get(n.text);s==null&&(n.noexpand=!0,s={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,s,r)};Ue({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(xm[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=xm[r.text]),vt(t.parseFunction(),"internal");throw new ke("Invalid token after macro prefix",r)}});Ue({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),s=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new ke("Expected a control sequence",r);for(var l=0,o,d=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),d[l].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new ke('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==l+1)throw new ke('Argument number "'+r.text+'" out of order');l++,d.push([])}else{if(r.text==="EOF")throw new ke("Expected a macro definition");d[l].push(r.text)}var{tokens:f}=t.gullet.consumeArg();return o&&f.unshift(o),(n==="\\edef"||n==="\\xdef")&&(f=t.gullet.expandTokens(f),f.reverse()),t.gullet.macros.set(s,{tokens:f,numArgs:l,delimiters:d},n===xm[n]),{type:"internal",mode:t.mode}}});Ue({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=T8(t.gullet.popToken());t.gullet.consumeSpaces();var s=hL(t);return _8(t,r,s,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ue({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=T8(t.gullet.popToken()),s=t.gullet.popToken(),l=t.gullet.popToken();return _8(t,r,l,n==="\\\\globalfuture"),t.gullet.pushToken(l),t.gullet.pushToken(s),{type:"internal",mode:t.mode}}});var Eo=function(t,n,r){var s=sn.math[t]&&sn.math[t].replace,l=Sp(s||t,n,r);if(!l)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return l},Op=function(t,n,r,s){var l=r.havingBaseStyle(n),o=ie.makeSpan(s.concat(l.sizingClasses(r)),[t],r),d=l.sizeMultiplier/r.sizeMultiplier;return o.height*=d,o.depth*=d,o.maxFontSize=l.sizeMultiplier,o},S8=function(t,n,r){var s=n.havingBaseStyle(r),l=(1-n.sizeMultiplier/s.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Me(l),t.height-=l,t.depth+=l},mL=function(t,n,r,s,l,o){var d=ie.makeSymbol(t,"Main-Regular",l,s),f=Op(d,n,s,o);return r&&S8(f,s,n),f},pL=function(t,n,r,s){return ie.makeSymbol(t,"Size"+n+"-Regular",r,s)},x8=function(t,n,r,s,l,o){var d=pL(t,n,l,s),f=Op(ie.makeSpan(["delimsizing","size"+n],[d],s),rt.TEXT,s,o);return r&&S8(f,s,rt.TEXT),f},C1=function(t,n,r){var s;n==="Size1-Regular"?s="delim-size1":s="delim-size4";var l=ie.makeSpan(["delimsizinginner",s],[ie.makeSpan([],[ie.makeSymbol(t,n,r)])]);return{type:"elem",elem:l}},k1=function(t,n,r){var s=Ia["Size4-Regular"][t.charCodeAt(0)]?Ia["Size4-Regular"][t.charCodeAt(0)][4]:Ia["Size1-Regular"][t.charCodeAt(0)][4],l=new cs("inner",vI(t,Math.round(1e3*n))),o=new gi([l],{width:Me(s),height:Me(n),style:"width:"+Me(s),viewBox:"0 0 "+1e3*s+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),d=ie.makeSvgSpan([],[o],r);return d.height=n,d.style.height=Me(n),d.style.width=Me(s),{type:"elem",elem:d}},Am=.008,R0={type:"kern",size:-1*Am},gL=["|","\\lvert","\\rvert","\\vert"],bL=["\\|","\\lVert","\\rVert","\\Vert"],A8=function(t,n,r,s,l,o){var d,f,h,p,g="",y=0;d=h=p=t,f=null;var T="Size1-Regular";t==="\\uparrow"?h=p="⏐":t==="\\Uparrow"?h=p="‖":t==="\\downarrow"?d=h="⏐":t==="\\Downarrow"?d=h="‖":t==="\\updownarrow"?(d="\\uparrow",h="⏐",p="\\downarrow"):t==="\\Updownarrow"?(d="\\Uparrow",h="‖",p="\\Downarrow"):et.contains(gL,t)?(h="∣",g="vert",y=333):et.contains(bL,t)?(h="∥",g="doublevert",y=556):t==="["||t==="\\lbrack"?(d="⎡",h="⎢",p="⎣",T="Size4-Regular",g="lbrack",y=667):t==="]"||t==="\\rbrack"?(d="⎤",h="⎥",p="⎦",T="Size4-Regular",g="rbrack",y=667):t==="\\lfloor"||t==="⌊"?(h=d="⎢",p="⎣",T="Size4-Regular",g="lfloor",y=667):t==="\\lceil"||t==="⌈"?(d="⎡",h=p="⎢",T="Size4-Regular",g="lceil",y=667):t==="\\rfloor"||t==="⌋"?(h=d="⎥",p="⎦",T="Size4-Regular",g="rfloor",y=667):t==="\\rceil"||t==="⌉"?(d="⎤",h=p="⎥",T="Size4-Regular",g="rceil",y=667):t==="("||t==="\\lparen"?(d="⎛",h="⎜",p="⎝",T="Size4-Regular",g="lparen",y=875):t===")"||t==="\\rparen"?(d="⎞",h="⎟",p="⎠",T="Size4-Regular",g="rparen",y=875):t==="\\{"||t==="\\lbrace"?(d="⎧",f="⎨",p="⎩",h="⎪",T="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(d="⎫",f="⎬",p="⎭",h="⎪",T="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(d="⎧",p="⎩",h="⎪",T="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(d="⎫",p="⎭",h="⎪",T="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(d="⎧",p="⎭",h="⎪",T="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(d="⎫",p="⎩",h="⎪",T="Size4-Regular");var w=Eo(d,T,l),x=w.height+w.depth,R=Eo(h,T,l),C=R.height+R.depth,M=Eo(p,T,l),L=M.height+M.depth,$=0,G=1;if(f!==null){var z=Eo(f,T,l);$=z.height+z.depth,G=2}var ne=x+L+$,ce=Math.max(0,Math.ceil((n-ne)/(G*C))),Q=ne+ce*G*C,j=s.fontMetrics().axisHeight;r&&(j*=s.sizeMultiplier);var me=Q/2-j,J=[];if(g.length>0){var se=Q-x-L,fe=Math.round(Q*1e3),pe=TI(g,Math.round(se*1e3)),X=new cs(g,pe),he=(y/1e3).toFixed(3)+"em",be=(fe/1e3).toFixed(3)+"em",ze=new gi([X],{width:he,height:be,viewBox:"0 0 "+y+" "+fe}),A=ie.makeSvgSpan([],[ze],s);A.height=fe/1e3,A.style.width=he,A.style.height=be,J.push({type:"elem",elem:A})}else{if(J.push(C1(p,T,l)),J.push(R0),f===null){var le=Q-x-L+2*Am;J.push(k1(h,le,s))}else{var ye=(Q-x-L-$)/2+2*Am;J.push(k1(h,ye,s)),J.push(R0),J.push(C1(f,T,l)),J.push(R0),J.push(k1(h,ye,s))}J.push(R0),J.push(C1(d,T,l))}var D=s.havingBaseStyle(rt.TEXT),Ie=ie.makeVList({positionType:"bottom",positionData:me,children:J},D);return Op(ie.makeSpan(["delimsizing","mult"],[Ie],D),rt.TEXT,s,o)},N1=80,O1=.08,R1=function(t,n,r,s,l){var o=yI(t,s,r),d=new cs(t,o),f=new gi([d],{width:"400em",height:Me(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ie.makeSvgSpan(["hide-tail"],[f],l)},EL=function(t,n){var r=n.havingBaseSizing(),s=N8("\\surd",t*r.sizeMultiplier,k8,r),l=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),d,f=0,h=0,p=0,g;return s.type==="small"?(p=1e3+1e3*o+N1,t<1?l=1:t<1.4&&(l=.7),f=(1+o+O1)/l,h=(1+o)/l,d=R1("sqrtMain",f,p,o,n),d.style.minWidth="0.853em",g=.833/l):s.type==="large"?(p=(1e3+N1)*ko[s.size],h=(ko[s.size]+o)/l,f=(ko[s.size]+o+O1)/l,d=R1("sqrtSize"+s.size,f,p,o,n),d.style.minWidth="1.02em",g=1/l):(f=t+o+O1,h=t+o,p=Math.floor(1e3*t+o)+N1,d=R1("sqrtTall",f,p,o,n),d.style.minWidth="0.742em",g=1.056),d.height=h,d.style.height=Me(f),{span:d,advanceWidth:g,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*l}},w8=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],yL=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],C8=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ko=[0,1.2,1.8,2.4,3],vL=function(t,n,r,s,l){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),et.contains(w8,t)||et.contains(C8,t))return x8(t,n,!1,r,s,l);if(et.contains(yL,t))return A8(t,ko[n],!1,r,s,l);throw new ke("Illegal delimiter: '"+t+"'")},TL=[{type:"small",style:rt.SCRIPTSCRIPT},{type:"small",style:rt.SCRIPT},{type:"small",style:rt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],_L=[{type:"small",style:rt.SCRIPTSCRIPT},{type:"small",style:rt.SCRIPT},{type:"small",style:rt.TEXT},{type:"stack"}],k8=[{type:"small",style:rt.SCRIPTSCRIPT},{type:"small",style:rt.SCRIPT},{type:"small",style:rt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],SL=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.")},N8=function(t,n,r,s){for(var l=Math.min(2,3-s.style.size),o=l;o<r.length&&r[o].type!=="stack";o++){var d=Eo(t,SL(r[o]),"math"),f=d.height+d.depth;if(r[o].type==="small"){var h=s.havingBaseStyle(r[o].style);f*=h.sizeMultiplier}if(f>n)return r[o]}return r[r.length-1]},O8=function(t,n,r,s,l,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;et.contains(C8,t)?d=TL:et.contains(w8,t)?d=k8:d=_L;var f=N8(t,n,d,s);return f.type==="small"?mL(t,f.style,r,s,l,o):f.type==="large"?x8(t,f.size,r,s,l,o):A8(t,n,r,s,l,o)},xL=function(t,n,r,s,l,o){var d=s.fontMetrics().axisHeight*s.sizeMultiplier,f=901,h=5/s.fontMetrics().ptPerEm,p=Math.max(n-d,r+d),g=Math.max(p/500*f,2*p-h);return O8(t,g,!0,s,l,o)},mi={sqrtImage:EL,sizedDelim:vL,sizeToMaxHeight:ko,customSizedDelim:O8,leftRightDelim:xL},g6={"\\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}},AL=["(","\\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 Id(e,t){var n=Md(e);if(n&&et.contains(AL,n.text))return n;throw n?new ke("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new ke("Invalid delimiter type '"+e.type+"'",e)}Ue({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:(e,t)=>{var n=Id(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:g6[e.funcName].size,mclass:g6[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?ie.makeSpan([e.mclass]):mi.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(la(e.delim,e.mode));var n=new Ce.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Me(mi.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function b6(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ue({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new ke("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Id(t[0],e).text,color:n}}});Ue({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Id(t[0],e),r=e.parser;++r.leftrightDepth;var s=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var l=vt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:s,left:n.text,right:l.delim,rightColor:l.color}},htmlBuilder:(e,t)=>{b6(e);for(var n=Fn(e.body,t,!0,["mopen","mclose"]),r=0,s=0,l=!1,o=0;o<n.length;o++)n[o].isMiddle?l=!0:(r=Math.max(n[o].height,r),s=Math.max(n[o].depth,s));r*=t.sizeMultiplier,s*=t.sizeMultiplier;var d;if(e.left==="."?d=Po(t,["mopen"]):d=mi.leftRightDelim(e.left,r,s,t,e.mode,["mopen"]),n.unshift(d),l)for(var f=1;f<n.length;f++){var h=n[f],p=h.isMiddle;p&&(n[f]=mi.leftRightDelim(p.delim,r,s,p.options,e.mode,[]))}var g;if(e.right===".")g=Po(t,["mclose"]);else{var y=e.rightColor?t.withColor(e.rightColor):t;g=mi.leftRightDelim(e.right,r,s,y,e.mode,["mclose"])}return n.push(g),ie.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{b6(e);var n=kr(e.body,t);if(e.left!=="."){var r=new Ce.MathNode("mo",[la(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var s=new Ce.MathNode("mo",[la(e.right,e.mode)]);s.setAttribute("fence","true"),e.rightColor&&s.setAttribute("mathcolor",e.rightColor),n.push(s)}return wp(n)}});Ue({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Id(t[0],e);if(!e.parser.leftrightDepth)throw new ke("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Po(t,[]);else{n=mi.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?la("|","text"):la(e.delim,e.mode),r=new Ce.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Rp=(e,t)=>{var n=ie.wrapFragment(Lt(e.body,t),t),r=e.label.slice(1),s=t.sizeMultiplier,l,o=0,d=et.isCharacterBox(e.body);if(r==="sout")l=ie.makeSpan(["stretchy","sout"]),l.height=t.fontMetrics().defaultRuleThickness/s,o=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var f=Tn({number:.6,unit:"pt"},t),h=Tn({number:.35,unit:"ex"},t),p=t.havingBaseSizing();s=s/p.sizeMultiplier;var g=n.height+n.depth+f+h;n.style.paddingLeft=Me(g/2+f);var y=Math.floor(1e3*g*s),T=bI(y),w=new gi([new cs("phase",T)],{width:"400em",height:Me(y/1e3),viewBox:"0 0 400000 "+y,preserveAspectRatio:"xMinYMin slice"});l=ie.makeSvgSpan(["hide-tail"],[w],t),l.style.height=Me(g),o=n.depth+f+h}else{/cancel/.test(r)?d||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var x=0,R=0,C=0;/box/.test(r)?(C=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(r==="colorbox"?0:C),R=x):r==="angl"?(C=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*C,R=Math.max(0,.25-n.depth)):(x=d?.2:0,R=x),l=Ei.encloseSpan(n,r,x,R,t),/fbox|boxed|fcolorbox/.test(r)?(l.style.borderStyle="solid",l.style.borderWidth=Me(C)):r==="angl"&&C!==.049&&(l.style.borderTopWidth=Me(C),l.style.borderRightWidth=Me(C)),o=n.depth+R,e.backgroundColor&&(l.style.backgroundColor=e.backgroundColor,e.borderColor&&(l.style.borderColor=e.borderColor))}var M;if(e.backgroundColor)M=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var L=/cancel|phase/.test(r)?["svg-align"]:[];M=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:l,shift:o,wrapperClasses:L}]},t)}return/cancel/.test(r)&&(M.height=n.height,M.depth=n.depth),/cancel/.test(r)&&!d?ie.makeSpan(["mord","cancel-lap"],[M],t):ie.makeSpan(["mord"],[M],t)},Mp=(e,t)=>{var n=0,r=new Ce.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[tn(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var s=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+s+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Ue({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:s}=e,l=vt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:s,backgroundColor:l,body:o}},htmlBuilder:Rp,mathmlBuilder:Mp});Ue({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:s}=e,l=vt(t[0],"color-token").color,o=vt(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:r.mode,label:s,backgroundColor:o,borderColor:l,body:d}},htmlBuilder:Rp,mathmlBuilder:Mp});Ue({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Ue({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,s=t[0];return{type:"enclose",mode:n.mode,label:r,body:s}},htmlBuilder:Rp,mathmlBuilder:Mp});Ue({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var R8={};function za(e){for(var{type:t,names:n,props:r,handler:s,htmlBuilder:l,mathmlBuilder:o}=e,d={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:s},f=0;f<n.length;++f)R8[n[f]]=d;l&&(od[t]=l),o&&(cd[t]=o)}var M8={};function O(e,t){M8[e]=t}function E6(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var Ld=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ke("{"+e.envName+"} can be used only in display mode.")};function Dp(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function hs(e,t,n){var{hskipBeforeAndAfter:r,addJot:s,cols:l,arraystretch:o,colSeparationType:d,autoTag:f,singleRow:h,emptySingleRow:p,maxNumCols:g,leqno:y}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var T=e.gullet.expandMacroAsText("\\arraystretch");if(T==null)o=1;else if(o=parseFloat(T),!o||o<0)throw new ke("Invalid \\arraystretch: "+T)}e.gullet.beginGroup();var w=[],x=[w],R=[],C=[],M=f!=null?[]:void 0;function L(){f&&e.gullet.macros.set("\\@eqnsw","1",!0)}function $(){M&&(e.gullet.macros.get("\\df@tag")?(M.push(e.subparse([new aa("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):M.push(!!f&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(L(),C.push(E6(e));;){var G=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),G={type:"ordgroup",mode:e.mode,body:G},n&&(G={type:"styling",mode:e.mode,style:n,body:[G]}),w.push(G);var z=e.fetch().text;if(z==="&"){if(g&&w.length===g){if(h||d)throw new ke("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(z==="\\end"){$(),w.length===1&&G.type==="styling"&&G.body[0].body.length===0&&(x.length>1||!p)&&x.pop(),C.length<x.length+1&&C.push([]);break}else if(z==="\\\\"){e.consume();var ne=void 0;e.gullet.future().text!==" "&&(ne=e.parseSizeGroup(!0)),R.push(ne?ne.value:null),$(),C.push(E6(e)),w=[],x.push(w),L()}else throw new ke("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:s,arraystretch:o,body:x,cols:l,rowGaps:R,hskipBeforeAndAfter:r,hLinesBeforeRow:C,colSeparationType:d,tags:M,leqno:y}}function Ip(e){return e.slice(0,1)==="d"?"display":"text"}var Fa=function(t,n){var r,s,l=t.body.length,o=t.hLinesBeforeRow,d=0,f=new Array(l),h=[],p=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),g=1/n.fontMetrics().ptPerEm,y=5*g;if(t.colSeparationType&&t.colSeparationType==="small"){var T=n.havingStyle(rt.SCRIPT).sizeMultiplier;y=.2778*(T/n.sizeMultiplier)}var w=t.colSeparationType==="CD"?Tn({number:3,unit:"ex"},n):12*g,x=3*g,R=t.arraystretch*w,C=.7*R,M=.3*R,L=0;function $(jt){for(var xt=0;xt<jt.length;++xt)xt>0&&(L+=.25),h.push({pos:L,isDashed:jt[xt]})}for($(o[0]),r=0;r<t.body.length;++r){var G=t.body[r],z=C,ne=M;d<G.length&&(d=G.length);var ce=new Array(G.length);for(s=0;s<G.length;++s){var Q=Lt(G[s],n);ne<Q.depth&&(ne=Q.depth),z<Q.height&&(z=Q.height),ce[s]=Q}var j=t.rowGaps[r],me=0;j&&(me=Tn(j,n),me>0&&(me+=M,ne<me&&(ne=me),me=0)),t.addJot&&(ne+=x),ce.height=z,ce.depth=ne,L+=z,ce.pos=L,L+=ne+me,f[r]=ce,$(o[r+1])}var J=L/2+n.fontMetrics().axisHeight,se=t.cols||[],fe=[],pe,X,he=[];if(t.tags&&t.tags.some(jt=>jt))for(r=0;r<l;++r){var be=f[r],ze=be.pos-J,A=t.tags[r],le=void 0;A===!0?le=ie.makeSpan(["eqn-num"],[],n):A===!1?le=ie.makeSpan([],[],n):le=ie.makeSpan([],Fn(A,n,!0),n),le.depth=be.depth,le.height=be.height,he.push({type:"elem",elem:le,shift:ze})}for(s=0,X=0;s<d||X<se.length;++s,++X){for(var ye=se[X]||{},D=!0;ye.type==="separator";){if(D||(pe=ie.makeSpan(["arraycolsep"],[]),pe.style.width=Me(n.fontMetrics().doubleRuleSep),fe.push(pe)),ye.separator==="|"||ye.separator===":"){var Ie=ye.separator==="|"?"solid":"dashed",Ve=ie.makeSpan(["vertical-separator"],[],n);Ve.style.height=Me(L),Ve.style.borderRightWidth=Me(p),Ve.style.borderRightStyle=Ie,Ve.style.margin="0 "+Me(-p/2);var Be=L-J;Be&&(Ve.style.verticalAlign=Me(-Be)),fe.push(Ve)}else throw new ke("Invalid separator type: "+ye.separator);X++,ye=se[X]||{},D=!1}if(!(s>=d)){var Mt=void 0;(s>0||t.hskipBeforeAndAfter)&&(Mt=et.deflt(ye.pregap,y),Mt!==0&&(pe=ie.makeSpan(["arraycolsep"],[]),pe.style.width=Me(Mt),fe.push(pe)));var ot=[];for(r=0;r<l;++r){var Qt=f[r],Ft=Qt[s];if(Ft){var An=Qt.pos-J;Ft.depth=Qt.depth,Ft.height=Qt.height,ot.push({type:"elem",elem:Ft,shift:An})}}ot=ie.makeVList({positionType:"individualShift",children:ot},n),ot=ie.makeSpan(["col-align-"+(ye.align||"c")],[ot]),fe.push(ot),(s<d-1||t.hskipBeforeAndAfter)&&(Mt=et.deflt(ye.postgap,y),Mt!==0&&(pe=ie.makeSpan(["arraycolsep"],[]),pe.style.width=Me(Mt),fe.push(pe)))}}if(f=ie.makeSpan(["mtable"],fe),h.length>0){for(var at=ie.makeLineSpan("hline",n,p),Qe=ie.makeLineSpan("hdashline",n,p),it=[{type:"elem",elem:f,shift:0}];h.length>0;){var Rt=h.pop(),qe=Rt.pos-J;Rt.isDashed?it.push({type:"elem",elem:Qe,shift:qe}):it.push({type:"elem",elem:at,shift:qe})}f=ie.makeVList({positionType:"individualShift",children:it},n)}if(he.length===0)return ie.makeSpan(["mord"],[f],n);var ht=ie.makeVList({positionType:"individualShift",children:he},n);return ht=ie.makeSpan(["tag"],[ht],n),ie.makeFragment([f,ht])},wL={c:"center ",l:"left ",r:"right "},Ha=function(t,n){for(var r=[],s=new Ce.MathNode("mtd",[],["mtr-glue"]),l=new Ce.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var d=t.body[o],f=[],h=0;h<d.length;h++)f.push(new Ce.MathNode("mtd",[tn(d[h],n)]));t.tags&&t.tags[o]&&(f.unshift(s),f.push(s),t.leqno?f.unshift(l):f.push(l)),r.push(new Ce.MathNode("mtr",f))}var p=new Ce.MathNode("mtable",r),g=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);p.setAttribute("rowspacing",Me(g));var y="",T="";if(t.cols&&t.cols.length>0){var w=t.cols,x="",R=!1,C=0,M=w.length;w[0].type==="separator"&&(y+="top ",C=1),w[w.length-1].type==="separator"&&(y+="bottom ",M-=1);for(var L=C;L<M;L++)w[L].type==="align"?(T+=wL[w[L].align],R&&(x+="none "),R=!0):w[L].type==="separator"&&R&&(x+=w[L].separator==="|"?"solid ":"dashed ",R=!1);p.setAttribute("columnalign",T.trim()),/[sd]/.test(x)&&p.setAttribute("columnlines",x.trim())}if(t.colSeparationType==="align"){for(var $=t.cols||[],G="",z=1;z<$.length;z++)G+=z%2?"0em ":"1em ";p.setAttribute("columnspacing",G.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?p.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?p.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?p.setAttribute("columnspacing","0.5em"):p.setAttribute("columnspacing","1em");var ne="",ce=t.hLinesBeforeRow;y+=ce[0].length>0?"left ":"",y+=ce[ce.length-1].length>0?"right ":"";for(var Q=1;Q<ce.length-1;Q++)ne+=ce[Q].length===0?"none ":ce[Q][0]?"dashed ":"solid ";return/[sd]/.test(ne)&&p.setAttribute("rowlines",ne.trim()),y!==""&&(p=new Ce.MathNode("menclose",[p]),p.setAttribute("notation",y.trim())),t.arraystretch&&t.arraystretch<1&&(p=new Ce.MathNode("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},D8=function(t,n){t.envName.indexOf("ed")===-1&&Ld(t);var r=[],s=t.envName.indexOf("at")>-1?"alignat":"align",l=t.envName==="split",o=hs(t.parser,{cols:r,addJot:!0,autoTag:l?void 0:Dp(t.envName),emptySingleRow:!0,colSeparationType:s,maxNumCols:l?2:void 0,leqno:t.parser.settings.leqno},"display"),d,f=0,h={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var p="",g=0;g<n[0].body.length;g++){var y=vt(n[0].body[g],"textord");p+=y.text}d=Number(p),f=d*2}var T=!f;o.body.forEach(function(C){for(var M=1;M<C.length;M+=2){var L=vt(C[M],"styling"),$=vt(L.body[0],"ordgroup");$.body.unshift(h)}if(T)f<C.length&&(f=C.length);else{var G=C.length/2;if(d<G)throw new ke("Too many math in a row: "+("expected "+d+", but got "+G),C[0])}});for(var w=0;w<f;++w){var x="r",R=0;w%2===1?x="l":w>0&&T&&(R=1),r[w]={type:"align",align:x,pregap:R,postgap:0}}return o.colSeparationType=T?"align":"alignat",o};za({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Md(t[0]),r=n?[t[0]]:vt(t[0],"ordgroup").body,s=r.map(function(o){var d=kp(o),f=d.text;if("lcr".indexOf(f)!==-1)return{type:"align",align:f};if(f==="|")return{type:"separator",separator:"|"};if(f===":")return{type:"separator",separator:":"};throw new ke("Unknown column alignment: "+f,o)}),l={cols:s,hskipBeforeAndAfter:!0,maxNumCols:s.length};return hs(e.parser,l,Ip(e.envName))},htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var s=e.parser;if(s.consumeSpaces(),s.fetch().text==="["){if(s.consume(),s.consumeSpaces(),n=s.fetch().text,"lcr".indexOf(n)===-1)throw new ke("Expected l or c or r",s.nextToken);s.consume(),s.consumeSpaces(),s.expect("]"),s.consume(),r.cols=[{type:"align",align:n}]}}var l=hs(e.parser,r,Ip(e.envName)),o=Math.max(0,...l.body.map(d=>d.length));return l.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[l],left:t[0],right:t[1],rightColor:void 0}:l},htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=hs(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Md(t[0]),r=n?[t[0]]:vt(t[0],"ordgroup").body,s=r.map(function(o){var d=kp(o),f=d.text;if("lc".indexOf(f)!==-1)return{type:"align",align:f};throw new ke("Unknown column alignment: "+f,o)});if(s.length>1)throw new ke("{subarray} can contain only one column");var l={cols:s,hskipBeforeAndAfter:!1,arraystretch:.5};if(l=hs(e.parser,l,"script"),l.body.length>0&&l.body[0].length>1)throw new ke("{subarray} can contain only one column");return l},htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=hs(e.parser,t,Ip(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:D8,htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){et.contains(["gather","gather*"],e.envName)&&Ld(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Dp(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return hs(e.parser,t,"display")},htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:D8,htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Ld(e);var t={autoTag:Dp(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return hs(e.parser,t,"display")},htmlBuilder:Fa,mathmlBuilder:Ha});za({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Ld(e),fL(e.parser)},htmlBuilder:Fa,mathmlBuilder:Ha});O("\\nonumber","\\gdef\\@eqnsw{0}");O("\\notag","\\nonumber");Ue({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ke(e.funcName+" valid only within array environment")}});var y6=R8;Ue({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,s=t[0];if(s.type!=="ordgroup")throw new ke("Invalid environment name",s);for(var l="",o=0;o<s.body.length;++o)l+=vt(s.body[o],"textord").text;if(r==="\\begin"){if(!y6.hasOwnProperty(l))throw new ke("No such environment: "+l,s);var d=y6[l],{args:f,optArgs:h}=n.parseArguments("\\begin{"+l+"}",d),p={mode:n.mode,envName:l,parser:n},g=d.handler(p,f,h);n.expect("\\end",!1);var y=n.nextToken,T=vt(n.parseFunction(),"environment");if(T.name!==l)throw new ke("Mismatch: \\begin{"+l+"} matched by \\end{"+T.name+"}",y);return g}return{type:"environment",mode:n.mode,name:l,nameGroup:s}}});var I8=(e,t)=>{var n=e.font,r=t.withFont(n);return Lt(e.body,r)},L8=(e,t)=>{var n=e.font,r=t.withFont(n);return tn(e.body,r)},v6={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ue({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,s=dd(t[0]),l=r;return l in v6&&(l=v6[l]),{type:"font",mode:n.mode,font:l.slice(1),body:s}},htmlBuilder:I8,mathmlBuilder:L8});Ue({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],s=et.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Dd(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:s}}});Ue({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:s}=e,{mode:l}=n,o=n.parseExpression(!0,s),d="math"+r.slice(1);return{type:"font",mode:l,font:d,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:I8,mathmlBuilder:L8});var B8=(e,t)=>{var n=t;return e==="display"?n=n.id>=rt.SCRIPT.id?n.text():rt.DISPLAY:e==="text"&&n.size===rt.DISPLAY.size?n=rt.TEXT:e==="script"?n=rt.SCRIPT:e==="scriptscript"&&(n=rt.SCRIPTSCRIPT),n},Lp=(e,t)=>{var n=B8(e.size,t.style),r=n.fracNum(),s=n.fracDen(),l;l=t.havingStyle(r);var o=Lt(e.numer,l,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,f=3.5/t.fontMetrics().ptPerEm;o.height=o.height<d?d:o.height,o.depth=o.depth<f?f:o.depth}l=t.havingStyle(s);var h=Lt(e.denom,l,t),p,g,y;e.hasBarLine?(e.barSize?(g=Tn(e.barSize,t),p=ie.makeLineSpan("frac-line",t,g)):p=ie.makeLineSpan("frac-line",t),g=p.height,y=p.height):(p=null,g=0,y=t.fontMetrics().defaultRuleThickness);var T,w,x;n.size===rt.DISPLAY.size||e.size==="display"?(T=t.fontMetrics().num1,g>0?w=3*y:w=7*y,x=t.fontMetrics().denom1):(g>0?(T=t.fontMetrics().num2,w=y):(T=t.fontMetrics().num3,w=3*y),x=t.fontMetrics().denom2);var R;if(p){var M=t.fontMetrics().axisHeight;T-o.depth-(M+.5*g)<w&&(T+=w-(T-o.depth-(M+.5*g))),M-.5*g-(h.height-x)<w&&(x+=w-(M-.5*g-(h.height-x)));var L=-(M-.5*g);R=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:x},{type:"elem",elem:p,shift:L},{type:"elem",elem:o,shift:-T}]},t)}else{var C=T-o.depth-(h.height-x);C<w&&(T+=.5*(w-C),x+=.5*(w-C)),R=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:x},{type:"elem",elem:o,shift:-T}]},t)}l=t.havingStyle(n),R.height*=l.sizeMultiplier/t.sizeMultiplier,R.depth*=l.sizeMultiplier/t.sizeMultiplier;var $;n.size===rt.DISPLAY.size?$=t.fontMetrics().delim1:n.size===rt.SCRIPTSCRIPT.size?$=t.havingStyle(rt.SCRIPT).fontMetrics().delim2:$=t.fontMetrics().delim2;var G,z;return e.leftDelim==null?G=Po(t,["mopen"]):G=mi.customSizedDelim(e.leftDelim,$,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?z=ie.makeSpan([]):e.rightDelim==null?z=Po(t,["mclose"]):z=mi.customSizedDelim(e.rightDelim,$,!0,t.havingStyle(n),e.mode,["mclose"]),ie.makeSpan(["mord"].concat(l.sizingClasses(t)),[G,ie.makeSpan(["mfrac"],[R]),z],t)},Bp=(e,t)=>{var n=new Ce.MathNode("mfrac",[tn(e.numer,t),tn(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Tn(e.barSize,t);n.setAttribute("linethickness",Me(r))}var s=B8(e.size,t.style);if(s.size!==t.style.size){n=new Ce.MathNode("mstyle",[n]);var l=s.size===rt.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",l),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var d=new Ce.MathNode("mo",[new Ce.TextNode(e.leftDelim.replace("\\",""))]);d.setAttribute("fence","true"),o.push(d)}if(o.push(n),e.rightDelim!=null){var f=new Ce.MathNode("mo",[new Ce.TextNode(e.rightDelim.replace("\\",""))]);f.setAttribute("fence","true"),o.push(f)}return wp(o)}return n};Ue({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,s=t[0],l=t[1],o,d=null,f=null,h="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,d="(",f=")";break;case"\\\\bracefrac":o=!1,d="\\{",f="\\}";break;case"\\\\brackfrac":o=!1,d="[",f="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:s,denom:l,hasBarLine:o,leftDelim:d,rightDelim:f,size:h,barSize:null}},htmlBuilder:Lp,mathmlBuilder:Bp});Ue({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,s=t[0],l=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:s,denom:l,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Ue({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,s;switch(n){case"\\over":s="\\frac";break;case"\\choose":s="\\binom";break;case"\\atop":s="\\\\atopfrac";break;case"\\brace":s="\\\\bracefrac";break;case"\\brack":s="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:s,token:r}}});var T6=["display","text","script","scriptscript"],_6=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Ue({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],s=t[5],l=dd(t[0]),o=l.type==="atom"&&l.family==="open"?_6(l.text):null,d=dd(t[1]),f=d.type==="atom"&&d.family==="close"?_6(d.text):null,h=vt(t[2],"size"),p,g=null;h.isBlank?p=!0:(g=h.value,p=g.number>0);var y="auto",T=t[3];if(T.type==="ordgroup"){if(T.body.length>0){var w=vt(T.body[0],"textord");y=T6[Number(w.text)]}}else T=vt(T,"textord"),y=T6[Number(T.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:s,continued:!1,hasBarLine:p,barSize:g,leftDelim:o,rightDelim:f,size:y}},htmlBuilder:Lp,mathmlBuilder:Bp});Ue({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:s}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:vt(t[0],"size").value,token:s}}});Ue({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,s=t[0],l=nI(vt(t[1],"infix").size),o=t[2],d=l.number>0;return{type:"genfrac",mode:n.mode,numer:s,denom:o,continued:!1,hasBarLine:d,barSize:l,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Lp,mathmlBuilder:Bp});var P8=(e,t)=>{var n=t.style,r,s;e.type==="supsub"?(r=e.sup?Lt(e.sup,t.havingStyle(n.sup()),t):Lt(e.sub,t.havingStyle(n.sub()),t),s=vt(e.base,"horizBrace")):s=vt(e,"horizBrace");var l=Lt(s.base,t.havingBaseStyle(rt.DISPLAY)),o=Ei.svgSpan(s,t),d;if(s.isOver?(d=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},t),d.children[0].children[0].children[1].classes.push("svg-align")):(d=ie.makeVList({positionType:"bottom",positionData:l.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},t),d.children[0].children[0].children[0].classes.push("svg-align")),r){var f=ie.makeSpan(["mord",s.isOver?"mover":"munder"],[d],t);s.isOver?d=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:r}]},t):d=ie.makeVList({positionType:"bottom",positionData:f.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:f}]},t)}return ie.makeSpan(["mord",s.isOver?"mover":"munder"],[d],t)},CL=(e,t)=>{var n=Ei.mathMLnode(e.label);return new Ce.MathNode(e.isOver?"mover":"munder",[tn(e.base,t),n])};Ue({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:P8,mathmlBuilder:CL});Ue({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],s=vt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:s})?{type:"href",mode:n.mode,href:s,body:Nn(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Fn(e.body,t,!1);return ie.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=ds(e.body,t);return n instanceof jr||(n=new jr("mrow",[n])),n.setAttribute("href",e.href),n}});Ue({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=vt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var s=[],l=0;l<r.length;l++){var o=r[l];o==="~"&&(o="\\textasciitilde"),s.push({type:"textord",mode:"text",text:o})}var d={type:"text",mode:n.mode,font:"\\texttt",body:s};return{type:"href",mode:n.mode,href:r,body:Nn(d)}}});Ue({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Nn(t[0])}},htmlBuilder(e,t){var n=Fn(e.body,t,!1);return ie.makeFragment(n)},mathmlBuilder(e,t){return new Ce.MathNode("mrow",kr(e.body,t))}});Ue({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:s}=e,l=vt(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var d,f={};switch(r){case"\\htmlClass":f.class=l,d={command:"\\htmlClass",class:l};break;case"\\htmlId":f.id=l,d={command:"\\htmlId",id:l};break;case"\\htmlStyle":f.style=l,d={command:"\\htmlStyle",style:l};break;case"\\htmlData":{for(var h=l.split(","),p=0;p<h.length;p++){var g=h[p].split("=");if(g.length!==2)throw new ke("Error parsing key-value for \\htmlData");f["data-"+g[0].trim()]=g[1].trim()}d={command:"\\htmlData",attributes:f};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(d)?{type:"html",mode:n.mode,attributes:f,body:Nn(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Fn(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var s=ie.makeSpan(r,n,t);for(var l in e.attributes)l!=="class"&&e.attributes.hasOwnProperty(l)&&s.setAttribute(l,e.attributes[l]);return s},mathmlBuilder:(e,t)=>ds(e.body,t)});Ue({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Nn(t[0]),mathml:Nn(t[1])}},htmlBuilder:(e,t)=>{var n=Fn(e.html,t,!1);return ie.makeFragment(n)},mathmlBuilder:(e,t)=>ds(e.mathml,t)});var M1=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new ke("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!n8(r))throw new ke("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Ue({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,s={number:0,unit:"em"},l={number:.9,unit:"em"},o={number:0,unit:"em"},d="";if(n[0])for(var f=vt(n[0],"raw").string,h=f.split(","),p=0;p<h.length;p++){var g=h[p].split("=");if(g.length===2){var y=g[1].trim();switch(g[0].trim()){case"alt":d=y;break;case"width":s=M1(y);break;case"height":l=M1(y);break;case"totalheight":o=M1(y);break;default:throw new ke("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var T=vt(t[0],"url").url;return d===""&&(d=T,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:T})?{type:"includegraphics",mode:r.mode,alt:d,width:s,height:l,totalheight:o,src:T}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Tn(e.height,t),r=0;e.totalheight.number>0&&(r=Tn(e.totalheight,t)-n);var s=0;e.width.number>0&&(s=Tn(e.width,t));var l={height:Me(n+r)};s>0&&(l.width=Me(s)),r>0&&(l.verticalAlign=Me(-r));var o=new CI(e.src,e.alt,l);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Ce.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Tn(e.height,t),s=0;if(e.totalheight.number>0&&(s=Tn(e.totalheight,t)-r,n.setAttribute("valign",Me(-s))),n.setAttribute("height",Me(r+s)),e.width.number>0){var l=Tn(e.width,t);n.setAttribute("width",Me(l))}return n.setAttribute("src",e.src),n}});Ue({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,s=vt(t[0],"size");if(n.settings.strict){var l=r[1]==="m",o=s.value.unit==="mu";l?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+s.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:s.value}},htmlBuilder(e,t){return ie.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Tn(e.dimension,t);return new Ce.SpaceNode(n)}});Ue({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,s=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:s}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=ie.makeSpan([],[Lt(e.body,t)]),n=ie.makeSpan(["inner"],[n],t)):n=ie.makeSpan(["inner"],[Lt(e.body,t)]);var r=ie.makeSpan(["fix"],[]),s=ie.makeSpan([e.alignment],[n,r],t),l=ie.makeSpan(["strut"]);return l.style.height=Me(s.height+s.depth),s.depth&&(l.style.verticalAlign=Me(-s.depth)),s.children.unshift(l),s=ie.makeSpan(["thinbox"],[s],t),ie.makeSpan(["mord","vbox"],[s],t)},mathmlBuilder:(e,t)=>{var n=new Ce.MathNode("mpadded",[tn(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});Ue({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,s=r.mode;r.switchMode("math");var l=n==="\\("?"\\)":"$",o=r.parseExpression(!1,l);return r.expect(l),r.switchMode(s),{type:"styling",mode:r.mode,style:"text",body:o}}});Ue({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ke("Mismatched "+e.funcName)}});var S6=(e,t)=>{switch(t.style.size){case rt.DISPLAY.size:return e.display;case rt.TEXT.size:return e.text;case rt.SCRIPT.size:return e.script;case rt.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ue({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Nn(t[0]),text:Nn(t[1]),script:Nn(t[2]),scriptscript:Nn(t[3])}},htmlBuilder:(e,t)=>{var n=S6(e,t),r=Fn(n,t,!1);return ie.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=S6(e,t);return ds(n,t)}});var U8=(e,t,n,r,s,l,o)=>{e=ie.makeSpan([],[e]);var d=n&&et.isCharacterBox(n),f,h;if(t){var p=Lt(t,r.havingStyle(s.sup()),r);h={elem:p,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-p.depth)}}if(n){var g=Lt(n,r.havingStyle(s.sub()),r);f={elem:g,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-g.height)}}var y;if(h&&f){var T=r.fontMetrics().bigOpSpacing5+f.elem.height+f.elem.depth+f.kern+e.depth+o;y=ie.makeVList({positionType:"bottom",positionData:T,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Me(-l)},{type:"kern",size:f.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:Me(l)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(f){var w=e.height-o;y=ie.makeVList({positionType:"top",positionData:w,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Me(-l)},{type:"kern",size:f.kern},{type:"elem",elem:e}]},r)}else if(h){var x=e.depth+o;y=ie.makeVList({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:Me(l)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var R=[y];if(f&&l!==0&&!d){var C=ie.makeSpan(["mspace"],[],r);C.style.marginRight=Me(l),R.unshift(C)}return ie.makeSpan(["mop","op-limits"],R,r)},z8=["\\smallint"],su=(e,t)=>{var n,r,s=!1,l;e.type==="supsub"?(n=e.sup,r=e.sub,l=vt(e.base,"op"),s=!0):l=vt(e,"op");var o=t.style,d=!1;o.size===rt.DISPLAY.size&&l.symbol&&!et.contains(z8,l.name)&&(d=!0);var f;if(l.symbol){var h=d?"Size2-Regular":"Size1-Regular",p="";if((l.name==="\\oiint"||l.name==="\\oiiint")&&(p=l.name.slice(1),l.name=p==="oiint"?"\\iint":"\\iiint"),f=ie.makeSymbol(l.name,h,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),p.length>0){var g=f.italic,y=ie.staticSvg(p+"Size"+(d?"2":"1"),t);f=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:y,shift:d?.08:0}]},t),l.name="\\"+p,f.classes.unshift("mop"),f.italic=g}}else if(l.body){var T=Fn(l.body,t,!0);T.length===1&&T[0]instanceof sa?(f=T[0],f.classes[0]="mop"):f=ie.makeSpan(["mop"],T,t)}else{for(var w=[],x=1;x<l.name.length;x++)w.push(ie.mathsym(l.name[x],l.mode,t));f=ie.makeSpan(["mop"],w,t)}var R=0,C=0;return(f instanceof sa||l.name==="\\oiint"||l.name==="\\oiiint")&&!l.suppressBaseShift&&(R=(f.height-f.depth)/2-t.fontMetrics().axisHeight,C=f.italic),s?U8(f,n,r,t,o,C,R):(R&&(f.style.position="relative",f.style.top=Me(R)),f)},Qo=(e,t)=>{var n;if(e.symbol)n=new jr("mo",[la(e.name,e.mode)]),et.contains(z8,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new jr("mo",kr(e.body,t));else{n=new jr("mi",[new La(e.name.slice(1))]);var r=new jr("mo",[la("⁡","text")]);e.parentIsSupSub?n=new jr("mrow",[n,r]):n=h8([n,r])}return n},kL={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ue({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,s=r;return s.length===1&&(s=kL[s]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:su,mathmlBuilder:Qo});Ue({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Nn(r)}},htmlBuilder:su,mathmlBuilder:Qo});var NL={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ue({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(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:su,mathmlBuilder:Qo});Ue({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:su,mathmlBuilder:Qo});Ue({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=NL[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:su,mathmlBuilder:Qo});var F8=(e,t)=>{var n,r,s=!1,l;e.type==="supsub"?(n=e.sup,r=e.sub,l=vt(e.base,"operatorname"),s=!0):l=vt(e,"operatorname");var o;if(l.body.length>0){for(var d=l.body.map(g=>{var y=g.text;return typeof y=="string"?{type:"textord",mode:g.mode,text:y}:g}),f=Fn(d,t.withFont("mathrm"),!0),h=0;h<f.length;h++){var p=f[h];p instanceof sa&&(p.text=p.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=ie.makeSpan(["mop"],f,t)}else o=ie.makeSpan(["mop"],[],t);return s?U8(o,n,r,t,t.style,0,0):o},OL=(e,t)=>{for(var n=kr(e.body,t.withFont("mathrm")),r=!0,s=0;s<n.length;s++){var l=n[s];if(!(l instanceof Ce.SpaceNode))if(l instanceof Ce.MathNode)switch(l.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=l.children[0];l.children.length===1&&o instanceof Ce.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var d=n.map(p=>p.toText()).join("");n=[new Ce.TextNode(d)]}var f=new Ce.MathNode("mi",n);f.setAttribute("mathvariant","normal");var h=new Ce.MathNode("mo",[la("⁡","text")]);return e.parentIsSupSub?new Ce.MathNode("mrow",[f,h]):Ce.newDocumentFragment([f,h])};Ue({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,s=t[0];return{type:"operatorname",mode:n.mode,body:Nn(s),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:F8,mathmlBuilder:OL});O("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Xs({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ie.makeFragment(Fn(e.body,t,!1)):ie.makeSpan(["mord"],Fn(e.body,t,!0),t)},mathmlBuilder(e,t){return ds(e.body,t,!0)}});Ue({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Lt(e.body,t.havingCrampedStyle()),r=ie.makeLineSpan("overline-line",t),s=t.fontMetrics().defaultRuleThickness,l=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*s},{type:"elem",elem:r},{type:"kern",size:s}]},t);return ie.makeSpan(["mord","overline"],[l],t)},mathmlBuilder(e,t){var n=new Ce.MathNode("mo",[new Ce.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ce.MathNode("mover",[tn(e.body,t),n]);return r.setAttribute("accent","true"),r}});Ue({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Nn(r)}},htmlBuilder:(e,t)=>{var n=Fn(e.body,t.withPhantom(),!1);return ie.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=kr(e.body,t);return new Ce.MathNode("mphantom",n)}});Ue({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ie.makeSpan([],[Lt(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),ie.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=kr(Nn(e.body),t),r=new Ce.MathNode("mphantom",n),s=new Ce.MathNode("mpadded",[r]);return s.setAttribute("height","0px"),s.setAttribute("depth","0px"),s}});Ue({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ie.makeSpan(["inner"],[Lt(e.body,t.withPhantom())]),r=ie.makeSpan(["fix"],[]);return ie.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=kr(Nn(e.body),t),r=new Ce.MathNode("mphantom",n),s=new Ce.MathNode("mpadded",[r]);return s.setAttribute("width","0px"),s}});Ue({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=vt(t[0],"size").value,s=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:s}},htmlBuilder(e,t){var n=Lt(e.body,t),r=Tn(e.dy,t);return ie.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Ce.MathNode("mpadded",[tn(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Ue({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ue({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,s=n[0],l=vt(t[0],"size"),o=vt(t[1],"size");return{type:"rule",mode:r.mode,shift:s&&vt(s,"size").value,width:l.value,height:o.value}},htmlBuilder(e,t){var n=ie.makeSpan(["mord","rule"],[],t),r=Tn(e.width,t),s=Tn(e.height,t),l=e.shift?Tn(e.shift,t):0;return n.style.borderRightWidth=Me(r),n.style.borderTopWidth=Me(s),n.style.bottom=Me(l),n.width=r,n.height=s+l,n.depth=-l,n.maxFontSize=s*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Tn(e.width,t),r=Tn(e.height,t),s=e.shift?Tn(e.shift,t):0,l=t.color&&t.getColor()||"black",o=new Ce.MathNode("mspace");o.setAttribute("mathbackground",l),o.setAttribute("width",Me(n)),o.setAttribute("height",Me(r));var d=new Ce.MathNode("mpadded",[o]);return s>=0?d.setAttribute("height",Me(s)):(d.setAttribute("height",Me(s)),d.setAttribute("depth",Me(-s))),d.setAttribute("voffset",Me(s)),d}});function H8(e,t,n){for(var r=Fn(e,t,!1),s=t.sizeMultiplier/n.sizeMultiplier,l=0;l<r.length;l++){var o=r[l].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[l].classes,t.sizingClasses(n)):r[l].classes[o+1]==="reset-size"+t.size&&(r[l].classes[o+1]="reset-size"+n.size),r[l].height*=s,r[l].depth*=s}return ie.makeFragment(r)}var x6=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],RL=(e,t)=>{var n=t.havingSize(e.size);return H8(e.body,n,t)};Ue({type:"sizing",names:x6,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:s}=e,l=s.parseExpression(!1,n);return{type:"sizing",mode:s.mode,size:x6.indexOf(r)+1,body:l}},htmlBuilder:RL,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=kr(e.body,n),s=new Ce.MathNode("mstyle",r);return s.setAttribute("mathsize",Me(n.sizeMultiplier)),s}});Ue({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,s=!1,l=!1,o=n[0]&&vt(n[0],"ordgroup");if(o)for(var d="",f=0;f<o.body.length;++f){var h=o.body[f];if(d=h.text,d==="t")s=!0;else if(d==="b")l=!0;else{s=!1,l=!1;break}}else s=!0,l=!0;var p=t[0];return{type:"smash",mode:r.mode,body:p,smashHeight:s,smashDepth:l}},htmlBuilder:(e,t)=>{var n=ie.makeSpan([],[Lt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var s=0;s<n.children.length;s++)n.children[s].depth=0;var l=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return ie.makeSpan(["mord"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ce.MathNode("mpadded",[tn(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Ue({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,s=n[0],l=t[0];return{type:"sqrt",mode:r.mode,body:l,index:s}},htmlBuilder(e,t){var n=Lt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=ie.wrapFragment(n,t);var r=t.fontMetrics(),s=r.defaultRuleThickness,l=s;t.style.id<rt.TEXT.id&&(l=t.fontMetrics().xHeight);var o=s+l/4,d=n.height+n.depth+o+s,{span:f,ruleWidth:h,advanceWidth:p}=mi.sqrtImage(d,t),g=f.height-h;g>n.height+n.depth+o&&(o=(o+g-n.height-n.depth)/2);var y=f.height-n.height-o-h;n.style.paddingLeft=Me(p);var T=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+y)},{type:"elem",elem:f},{type:"kern",size:h}]},t);if(e.index){var w=t.havingStyle(rt.SCRIPTSCRIPT),x=Lt(e.index,w,t),R=.6*(T.height-T.depth),C=ie.makeVList({positionType:"shift",positionData:-R,children:[{type:"elem",elem:x}]},t),M=ie.makeSpan(["root"],[C]);return ie.makeSpan(["mord","sqrt"],[M,T],t)}else return ie.makeSpan(["mord","sqrt"],[T],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Ce.MathNode("mroot",[tn(n,t),tn(r,t)]):new Ce.MathNode("msqrt",[tn(n,t)])}});var A6={display:rt.DISPLAY,text:rt.TEXT,script:rt.SCRIPT,scriptscript:rt.SCRIPTSCRIPT};Ue({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:s}=e,l=s.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:s.mode,style:o,body:l}},htmlBuilder(e,t){var n=A6[e.style],r=t.havingStyle(n).withFont("");return H8(e.body,r,t)},mathmlBuilder(e,t){var n=A6[e.style],r=t.havingStyle(n),s=kr(e.body,r),l=new Ce.MathNode("mstyle",s),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=o[e.style];return l.setAttribute("scriptlevel",d[0]),l.setAttribute("displaystyle",d[1]),l}});var ML=function(t,n){var r=t.base;if(r)if(r.type==="op"){var s=r.limits&&(n.style.size===rt.DISPLAY.size||r.alwaysHandleSupSub);return s?su:null}else if(r.type==="operatorname"){var l=r.alwaysHandleSupSub&&(n.style.size===rt.DISPLAY.size||r.limits);return l?F8:null}else{if(r.type==="accent")return et.isCharacterBox(r.base)?Np:null;if(r.type==="horizBrace"){var o=!t.sub;return o===r.isOver?P8:null}else return null}else return null};Xs({type:"supsub",htmlBuilder(e,t){var n=ML(e,t);if(n)return n(e,t);var{base:r,sup:s,sub:l}=e,o=Lt(r,t),d,f,h=t.fontMetrics(),p=0,g=0,y=r&&et.isCharacterBox(r);if(s){var T=t.havingStyle(t.style.sup());d=Lt(s,T,t),y||(p=o.height-T.fontMetrics().supDrop*T.sizeMultiplier/t.sizeMultiplier)}if(l){var w=t.havingStyle(t.style.sub());f=Lt(l,w,t),y||(g=o.depth+w.fontMetrics().subDrop*w.sizeMultiplier/t.sizeMultiplier)}var x;t.style===rt.DISPLAY?x=h.sup1:t.style.cramped?x=h.sup3:x=h.sup2;var R=t.sizeMultiplier,C=Me(.5/h.ptPerEm/R),M=null;if(f){var L=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof sa||L)&&(M=Me(-o.italic))}var $;if(d&&f){p=Math.max(p,x,d.depth+.25*h.xHeight),g=Math.max(g,h.sub2);var G=h.defaultRuleThickness,z=4*G;if(p-d.depth-(f.height-g)<z){g=z-(p-d.depth)+f.height;var ne=.8*h.xHeight-(p-d.depth);ne>0&&(p+=ne,g-=ne)}var ce=[{type:"elem",elem:f,shift:g,marginRight:C,marginLeft:M},{type:"elem",elem:d,shift:-p,marginRight:C}];$=ie.makeVList({positionType:"individualShift",children:ce},t)}else if(f){g=Math.max(g,h.sub1,f.height-.8*h.xHeight);var Q=[{type:"elem",elem:f,marginLeft:M,marginRight:C}];$=ie.makeVList({positionType:"shift",positionData:g,children:Q},t)}else if(d)p=Math.max(p,x,d.depth+.25*h.xHeight),$=ie.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:d,marginRight:C}]},t);else throw new Error("supsub must have either sup or sub.");var j=_m(o,"right")||"mord";return ie.makeSpan([j],[o,ie.makeSpan(["msupsub"],[$])],t)},mathmlBuilder(e,t){var n=!1,r,s;e.base&&e.base.type==="horizBrace"&&(s=!!e.sup,s===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var l=[tn(e.base,t)];e.sub&&l.push(tn(e.sub,t)),e.sup&&l.push(tn(e.sup,t));var o;if(n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===rt.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===rt.DISPLAY||h.limits)?o="munderover":o="msubsup"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===rt.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===rt.DISPLAY)?o="munder":o="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===rt.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===rt.DISPLAY)?o="mover":o="msup"}return new Ce.MathNode(o,l)}});Xs({type:"atom",htmlBuilder(e,t){return ie.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ce.MathNode("mo",[la(e.text,e.mode)]);if(e.family==="bin"){var r=Cp(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var q8={mi:"italic",mn:"normal",mtext:"normal"};Xs({type:"mathord",htmlBuilder(e,t){return ie.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ce.MathNode("mi",[la(e.text,e.mode,t)]),r=Cp(e,t)||"italic";return r!==q8[n.type]&&n.setAttribute("mathvariant",r),n}});Xs({type:"textord",htmlBuilder(e,t){return ie.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=la(e.text,e.mode,t),r=Cp(e,t)||"normal",s;return e.mode==="text"?s=new Ce.MathNode("mtext",[n]):/[0-9]/.test(e.text)?s=new Ce.MathNode("mn",[n]):e.text==="\\prime"?s=new Ce.MathNode("mo",[n]):s=new Ce.MathNode("mi",[n]),r!==q8[s.type]&&s.setAttribute("mathvariant",r),s}});var D1={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},I1={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Xs({type:"spacing",htmlBuilder(e,t){if(I1.hasOwnProperty(e.text)){var n=I1[e.text].className||"";if(e.mode==="text"){var r=ie.makeOrd(e,t,"textord");return r.classes.push(n),r}else return ie.makeSpan(["mspace",n],[ie.mathsym(e.text,e.mode,t)],t)}else{if(D1.hasOwnProperty(e.text))return ie.makeSpan(["mspace",D1[e.text]],[],t);throw new ke('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(I1.hasOwnProperty(e.text))n=new Ce.MathNode("mtext",[new Ce.TextNode(" ")]);else{if(D1.hasOwnProperty(e.text))return new Ce.MathNode("mspace");throw new ke('Unknown type of space "'+e.text+'"')}return n}});var w6=()=>{var e=new Ce.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Xs({type:"tag",mathmlBuilder(e,t){var n=new Ce.MathNode("mtable",[new Ce.MathNode("mtr",[w6(),new Ce.MathNode("mtd",[ds(e.body,t)]),w6(),new Ce.MathNode("mtd",[ds(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var C6={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},k6={"\\textbf":"textbf","\\textmd":"textmd"},DL={"\\textit":"textit","\\textup":"textup"},N6=(e,t)=>{var n=e.font;if(n){if(C6[n])return t.withTextFontFamily(C6[n]);if(k6[n])return t.withTextFontWeight(k6[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(DL[n])};Ue({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,s=t[0];return{type:"text",mode:n.mode,body:Nn(s),font:r}},htmlBuilder(e,t){var n=N6(e,t),r=Fn(e.body,n,!0);return ie.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=N6(e,t);return ds(e.body,n)}});Ue({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Lt(e.body,t),r=ie.makeLineSpan("underline-line",t),s=t.fontMetrics().defaultRuleThickness,l=ie.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:s},{type:"elem",elem:r},{type:"kern",size:3*s},{type:"elem",elem:n}]},t);return ie.makeSpan(["mord","underline"],[l],t)},mathmlBuilder(e,t){var n=new Ce.MathNode("mo",[new Ce.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ce.MathNode("munder",[tn(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Ue({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Lt(e.body,t),r=t.fontMetrics().axisHeight,s=.5*(n.height-r-(n.depth+r));return ie.makeVList({positionType:"shift",positionData:s,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Ce.MathNode("mpadded",[tn(e.body,t)],["vcenter"])}});Ue({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new ke("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=O6(e),r=[],s=t.havingStyle(t.style.text()),l=0;l<n.length;l++){var o=n[l];o==="~"&&(o="\\textasciitilde"),r.push(ie.makeSymbol(o,"Typewriter-Regular",e.mode,s,["mord","texttt"]))}return ie.makeSpan(["mord","text"].concat(s.sizingClasses(t)),ie.tryCombineChars(r),s)},mathmlBuilder(e,t){var n=new Ce.TextNode(O6(e)),r=new Ce.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var O6=e=>e.body.replace(/ /g,e.star?"␣":" "),ls=d8,j8=`[ \r
351
+ ]`,IL="\\\\[a-zA-Z@]+",LL="\\\\[^\uD800-\uDFFF]",BL="("+IL+")"+j8+"*",PL=`\\\\(
352
+ |[ \r ]+
353
+ ?)[ \r ]*`,wm="[̀-ͯ]",UL=new RegExp(wm+"+$"),zL="("+j8+"+)|"+(PL+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(wm+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(wm+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+BL)+("|"+LL+")");class R6{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(zL,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new aa("EOF",new qr(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new ke("Unexpected character: '"+t[n]+"'",new aa(t[n],new qr(this,n,n+1)));var s=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[s]===14){var l=t.indexOf(`
354
+ `,this.tokenRegex.lastIndex);return l===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=l+1,this.lex()}return new aa(s,new qr(this,n,this.tokenRegex.lastIndex))}}class FL{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ke("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var s=0;s<this.undefStack.length;s++)delete this.undefStack[s][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var l=this.undefStack[this.undefStack.length-1];l&&!l.hasOwnProperty(t)&&(l[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var HL=M8;O("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});O("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});O("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});O("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});O("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});O("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");O("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var M6={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};O("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new ke("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=M6[t.text],r==null||r>=n)throw new ke("Invalid base-"+n+" digit "+t.text);for(var s;(s=M6[e.future().text])!=null&&s<n;)r*=n,r+=s,e.popToken()}return"\\@char{"+r+"}"});var Pp=(e,t,n,r)=>{var s=e.consumeArg().tokens;if(s.length!==1)throw new ke("\\newcommand's first argument must be a macro name");var l=s[0].text,o=e.isDefined(l);if(o&&!t)throw new ke("\\newcommand{"+l+"} attempting to redefine "+(l+"; use \\renewcommand"));if(!o&&!n)throw new ke("\\renewcommand{"+l+"} when command "+l+" does not yet exist; use \\newcommand");var d=0;if(s=e.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var f="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)f+=h.text,h=e.expandNextToken();if(!f.match(/^\s*[0-9]+\s*$/))throw new ke("Invalid number of arguments: "+f);d=parseInt(f),s=e.consumeArg().tokens}return o&&r||e.macros.set(l,{tokens:s,numArgs:d}),""};O("\\newcommand",e=>Pp(e,!1,!0,!1));O("\\renewcommand",e=>Pp(e,!0,!1,!1));O("\\providecommand",e=>Pp(e,!0,!0,!0));O("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});O("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});O("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),ls[n],sn.math[n],sn.text[n]),""});O("\\bgroup","{");O("\\egroup","}");O("~","\\nobreakspace");O("\\lq","`");O("\\rq","'");O("\\aa","\\r a");O("\\AA","\\r A");O("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");O("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");O("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");O("ℬ","\\mathscr{B}");O("ℰ","\\mathscr{E}");O("ℱ","\\mathscr{F}");O("ℋ","\\mathscr{H}");O("ℐ","\\mathscr{I}");O("ℒ","\\mathscr{L}");O("ℳ","\\mathscr{M}");O("ℛ","\\mathscr{R}");O("ℭ","\\mathfrak{C}");O("ℌ","\\mathfrak{H}");O("ℨ","\\mathfrak{Z}");O("\\Bbbk","\\Bbb{k}");O("·","\\cdotp");O("\\llap","\\mathllap{\\textrm{#1}}");O("\\rlap","\\mathrlap{\\textrm{#1}}");O("\\clap","\\mathclap{\\textrm{#1}}");O("\\mathstrut","\\vphantom{(}");O("\\underbar","\\underline{\\text{#1}}");O("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');O("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");O("\\ne","\\neq");O("≠","\\neq");O("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");O("∉","\\notin");O("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");O("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");O("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");O("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");O("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");O("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");O("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");O("⟂","\\perp");O("‼","\\mathclose{!\\mkern-0.8mu!}");O("∌","\\notni");O("⌜","\\ulcorner");O("⌝","\\urcorner");O("⌞","\\llcorner");O("⌟","\\lrcorner");O("©","\\copyright");O("®","\\textregistered");O("️","\\textregistered");O("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');O("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');O("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');O("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');O("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");O("⋮","\\vdots");O("\\varGamma","\\mathit{\\Gamma}");O("\\varDelta","\\mathit{\\Delta}");O("\\varTheta","\\mathit{\\Theta}");O("\\varLambda","\\mathit{\\Lambda}");O("\\varXi","\\mathit{\\Xi}");O("\\varPi","\\mathit{\\Pi}");O("\\varSigma","\\mathit{\\Sigma}");O("\\varUpsilon","\\mathit{\\Upsilon}");O("\\varPhi","\\mathit{\\Phi}");O("\\varPsi","\\mathit{\\Psi}");O("\\varOmega","\\mathit{\\Omega}");O("\\substack","\\begin{subarray}{c}#1\\end{subarray}");O("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");O("\\boxed","\\fbox{$\\displaystyle{#1}$}");O("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");O("\\implies","\\DOTSB\\;\\Longrightarrow\\;");O("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");O("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");O("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var D6={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};O("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in D6?t=D6[n]:(n.slice(0,4)==="\\not"||n in sn.math&&et.contains(["bin","rel"],sn.math[n].group))&&(t="\\dotsb"),t});var Up={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};O("\\dotso",function(e){var t=e.future().text;return t in Up?"\\ldots\\,":"\\ldots"});O("\\dotsc",function(e){var t=e.future().text;return t in Up&&t!==","?"\\ldots\\,":"\\ldots"});O("\\cdots",function(e){var t=e.future().text;return t in Up?"\\@cdots\\,":"\\@cdots"});O("\\dotsb","\\cdots");O("\\dotsm","\\cdots");O("\\dotsi","\\!\\cdots");O("\\dotsx","\\ldots\\,");O("\\DOTSI","\\relax");O("\\DOTSB","\\relax");O("\\DOTSX","\\relax");O("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");O("\\,","\\tmspace+{3mu}{.1667em}");O("\\thinspace","\\,");O("\\>","\\mskip{4mu}");O("\\:","\\tmspace+{4mu}{.2222em}");O("\\medspace","\\:");O("\\;","\\tmspace+{5mu}{.2777em}");O("\\thickspace","\\;");O("\\!","\\tmspace-{3mu}{.1667em}");O("\\negthinspace","\\!");O("\\negmedspace","\\tmspace-{4mu}{.2222em}");O("\\negthickspace","\\tmspace-{5mu}{.277em}");O("\\enspace","\\kern.5em ");O("\\enskip","\\hskip.5em\\relax");O("\\quad","\\hskip1em\\relax");O("\\qquad","\\hskip2em\\relax");O("\\tag","\\@ifstar\\tag@literal\\tag@paren");O("\\tag@paren","\\tag@literal{({#1})}");O("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ke("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});O("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");O("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");O("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");O("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");O("\\newline","\\\\\\relax");O("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Y8=Me(Ia["Main-Regular"][84][1]-.7*Ia["Main-Regular"][65][1]);O("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Y8+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");O("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Y8+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");O("\\hspace","\\@ifstar\\@hspacer\\@hspace");O("\\@hspace","\\hskip #1\\relax");O("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");O("\\ordinarycolon",":");O("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");O("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');O("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');O("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');O("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');O("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');O("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');O("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');O("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');O("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');O("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');O("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');O("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');O("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');O("∷","\\dblcolon");O("∹","\\eqcolon");O("≔","\\coloneqq");O("≕","\\eqqcolon");O("⩴","\\Coloneqq");O("\\ratio","\\vcentcolon");O("\\coloncolon","\\dblcolon");O("\\colonequals","\\coloneqq");O("\\coloncolonequals","\\Coloneqq");O("\\equalscolon","\\eqqcolon");O("\\equalscoloncolon","\\Eqqcolon");O("\\colonminus","\\coloneq");O("\\coloncolonminus","\\Coloneq");O("\\minuscolon","\\eqcolon");O("\\minuscoloncolon","\\Eqcolon");O("\\coloncolonapprox","\\Colonapprox");O("\\coloncolonsim","\\Colonsim");O("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");O("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");O("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");O("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");O("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");O("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");O("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");O("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");O("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");O("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");O("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");O("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");O("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");O("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");O("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");O("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");O("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");O("\\nleqq","\\html@mathml{\\@nleqq}{≰}");O("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");O("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");O("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");O("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");O("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");O("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");O("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");O("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");O("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");O("\\imath","\\html@mathml{\\@imath}{ı}");O("\\jmath","\\html@mathml{\\@jmath}{ȷ}");O("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");O("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");O("⟦","\\llbracket");O("⟧","\\rrbracket");O("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");O("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");O("⦃","\\lBrace");O("⦄","\\rBrace");O("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");O("⦵","\\minuso");O("\\darr","\\downarrow");O("\\dArr","\\Downarrow");O("\\Darr","\\Downarrow");O("\\lang","\\langle");O("\\rang","\\rangle");O("\\uarr","\\uparrow");O("\\uArr","\\Uparrow");O("\\Uarr","\\Uparrow");O("\\N","\\mathbb{N}");O("\\R","\\mathbb{R}");O("\\Z","\\mathbb{Z}");O("\\alef","\\aleph");O("\\alefsym","\\aleph");O("\\Alpha","\\mathrm{A}");O("\\Beta","\\mathrm{B}");O("\\bull","\\bullet");O("\\Chi","\\mathrm{X}");O("\\clubs","\\clubsuit");O("\\cnums","\\mathbb{C}");O("\\Complex","\\mathbb{C}");O("\\Dagger","\\ddagger");O("\\diamonds","\\diamondsuit");O("\\empty","\\emptyset");O("\\Epsilon","\\mathrm{E}");O("\\Eta","\\mathrm{H}");O("\\exist","\\exists");O("\\harr","\\leftrightarrow");O("\\hArr","\\Leftrightarrow");O("\\Harr","\\Leftrightarrow");O("\\hearts","\\heartsuit");O("\\image","\\Im");O("\\infin","\\infty");O("\\Iota","\\mathrm{I}");O("\\isin","\\in");O("\\Kappa","\\mathrm{K}");O("\\larr","\\leftarrow");O("\\lArr","\\Leftarrow");O("\\Larr","\\Leftarrow");O("\\lrarr","\\leftrightarrow");O("\\lrArr","\\Leftrightarrow");O("\\Lrarr","\\Leftrightarrow");O("\\Mu","\\mathrm{M}");O("\\natnums","\\mathbb{N}");O("\\Nu","\\mathrm{N}");O("\\Omicron","\\mathrm{O}");O("\\plusmn","\\pm");O("\\rarr","\\rightarrow");O("\\rArr","\\Rightarrow");O("\\Rarr","\\Rightarrow");O("\\real","\\Re");O("\\reals","\\mathbb{R}");O("\\Reals","\\mathbb{R}");O("\\Rho","\\mathrm{P}");O("\\sdot","\\cdot");O("\\sect","\\S");O("\\spades","\\spadesuit");O("\\sub","\\subset");O("\\sube","\\subseteq");O("\\supe","\\supseteq");O("\\Tau","\\mathrm{T}");O("\\thetasym","\\vartheta");O("\\weierp","\\wp");O("\\Zeta","\\mathrm{Z}");O("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");O("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");O("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");O("\\bra","\\mathinner{\\langle{#1}|}");O("\\ket","\\mathinner{|{#1}\\rangle}");O("\\braket","\\mathinner{\\langle{#1}\\rangle}");O("\\Bra","\\left\\langle#1\\right|");O("\\Ket","\\left|#1\\right\\rangle");var G8=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,s=t.consumeArg().tokens,l=t.consumeArg().tokens,o=t.macros.get("|"),d=t.macros.get("\\|");t.macros.beginGroup();var f=g=>y=>{e&&(y.macros.set("|",o),s.length&&y.macros.set("\\|",d));var T=g;if(!g&&s.length){var w=y.future();w.text==="|"&&(y.popToken(),T=!0)}return{tokens:T?s:r,numArgs:0}};t.macros.set("|",f(!1)),s.length&&t.macros.set("\\|",f(!0));var h=t.consumeArg().tokens,p=t.expandTokens([...l,...h,...n]);return t.macros.endGroup(),{tokens:p.reverse(),numArgs:0}};O("\\bra@ket",G8(!1));O("\\bra@set",G8(!0));O("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");O("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");O("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");O("\\angln","{\\angl n}");O("\\blue","\\textcolor{##6495ed}{#1}");O("\\orange","\\textcolor{##ffa500}{#1}");O("\\pink","\\textcolor{##ff00af}{#1}");O("\\red","\\textcolor{##df0030}{#1}");O("\\green","\\textcolor{##28ae7b}{#1}");O("\\gray","\\textcolor{gray}{#1}");O("\\purple","\\textcolor{##9d38bd}{#1}");O("\\blueA","\\textcolor{##ccfaff}{#1}");O("\\blueB","\\textcolor{##80f6ff}{#1}");O("\\blueC","\\textcolor{##63d9ea}{#1}");O("\\blueD","\\textcolor{##11accd}{#1}");O("\\blueE","\\textcolor{##0c7f99}{#1}");O("\\tealA","\\textcolor{##94fff5}{#1}");O("\\tealB","\\textcolor{##26edd5}{#1}");O("\\tealC","\\textcolor{##01d1c1}{#1}");O("\\tealD","\\textcolor{##01a995}{#1}");O("\\tealE","\\textcolor{##208170}{#1}");O("\\greenA","\\textcolor{##b6ffb0}{#1}");O("\\greenB","\\textcolor{##8af281}{#1}");O("\\greenC","\\textcolor{##74cf70}{#1}");O("\\greenD","\\textcolor{##1fab54}{#1}");O("\\greenE","\\textcolor{##0d923f}{#1}");O("\\goldA","\\textcolor{##ffd0a9}{#1}");O("\\goldB","\\textcolor{##ffbb71}{#1}");O("\\goldC","\\textcolor{##ff9c39}{#1}");O("\\goldD","\\textcolor{##e07d10}{#1}");O("\\goldE","\\textcolor{##a75a05}{#1}");O("\\redA","\\textcolor{##fca9a9}{#1}");O("\\redB","\\textcolor{##ff8482}{#1}");O("\\redC","\\textcolor{##f9685d}{#1}");O("\\redD","\\textcolor{##e84d39}{#1}");O("\\redE","\\textcolor{##bc2612}{#1}");O("\\maroonA","\\textcolor{##ffbde0}{#1}");O("\\maroonB","\\textcolor{##ff92c6}{#1}");O("\\maroonC","\\textcolor{##ed5fa6}{#1}");O("\\maroonD","\\textcolor{##ca337c}{#1}");O("\\maroonE","\\textcolor{##9e034e}{#1}");O("\\purpleA","\\textcolor{##ddd7ff}{#1}");O("\\purpleB","\\textcolor{##c6b9fc}{#1}");O("\\purpleC","\\textcolor{##aa87ff}{#1}");O("\\purpleD","\\textcolor{##7854ab}{#1}");O("\\purpleE","\\textcolor{##543b78}{#1}");O("\\mintA","\\textcolor{##f5f9e8}{#1}");O("\\mintB","\\textcolor{##edf2df}{#1}");O("\\mintC","\\textcolor{##e0e5cc}{#1}");O("\\grayA","\\textcolor{##f6f7f7}{#1}");O("\\grayB","\\textcolor{##f0f1f2}{#1}");O("\\grayC","\\textcolor{##e3e5e6}{#1}");O("\\grayD","\\textcolor{##d6d8da}{#1}");O("\\grayE","\\textcolor{##babec2}{#1}");O("\\grayF","\\textcolor{##888d93}{#1}");O("\\grayG","\\textcolor{##626569}{#1}");O("\\grayH","\\textcolor{##3b3e40}{#1}");O("\\grayI","\\textcolor{##21242c}{#1}");O("\\kaBlue","\\textcolor{##314453}{#1}");O("\\kaGreen","\\textcolor{##71B307}{#1}");var V8={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class qL{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new FL(HL,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new R6(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,s;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:s,end:r}=this.consumeArg(["]"])}else({tokens:s,start:n,end:r}=this.consumeArg());return this.pushToken(new aa("EOF",r.loc)),this.pushTokens(s),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var s=this.future(),l,o=0,d=0;do{if(l=this.popToken(),n.push(l),l.text==="{")++o;else if(l.text==="}"){if(--o,o===-1)throw new ke("Extra }",l)}else if(l.text==="EOF")throw new ke("Unexpected end of input in a macro argument, expected '"+(t&&r?t[d]:"}")+"'",l);if(t&&r)if((o===0||o===1&&t[d]==="{")&&l.text===t[d]){if(++d,d===t.length){n.splice(-d,d);break}}else d=0}while(o!==0||r);return s.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:s,end:l}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new ke("The length of delimiters doesn't match the number of args!");for(var r=n[0],s=0;s<r.length;s++){var l=this.popToken();if(r[s]!==l.text)throw new ke("Use of the macro doesn't match its definition",l)}}for(var o=[],d=0;d<t;d++)o.push(this.consumeArg(n&&n[d+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new ke("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,s=n.noexpand?null:this._getExpansion(r);if(s==null||t&&s.unexpandable){if(t&&s==null&&r[0]==="\\"&&!this.isDefined(r))throw new ke("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var l=s.tokens,o=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){l=l.slice();for(var d=l.length-1;d>=0;--d){var f=l[d];if(f.text==="#"){if(d===0)throw new ke("Incomplete placeholder at end of macro body",f);if(f=l[--d],f.text==="#")l.splice(d+1,1);else if(/^[1-9]$/.test(f.text))l.splice(d,2,...o[+f.text-1]);else throw new ke("Not a valid argument number",f)}}}return this.pushTokens(l),l.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new aa(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),n.push(s)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var s=typeof n=="function"?n(this):n;if(typeof s=="string"){var l=0;if(s.indexOf("#")!==-1)for(var o=s.replace(/##/g,"");o.indexOf("#"+(l+1))!==-1;)++l;for(var d=new R6(s,this.settings),f=[],h=d.lex();h.text!=="EOF";)f.push(h),h=d.lex();f.reverse();var p={tokens:f,numArgs:l};return p}return s}isDefined(t){return this.macros.has(t)||ls.hasOwnProperty(t)||sn.math.hasOwnProperty(t)||sn.text.hasOwnProperty(t)||V8.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:ls.hasOwnProperty(t)&&!ls[t].primitive}}var I6=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,M0=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),L1={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},L6={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Bd{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new qL(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new ke("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new aa("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(Bd.endOfExpression.indexOf(s.text)!==-1||n&&s.text===n||t&&ls[s.text]&&ls[s.text].infix)break;var l=this.parseAtom(n);if(l){if(l.type==="internal")continue}else break;r.push(l)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,s=0;s<t.length;s++)if(t[s].type==="infix"){if(n!==-1)throw new ke("only one infix operator per group",t[s].token);n=s,r=t[s].replaceWith}if(n!==-1&&r){var l,o,d=t.slice(0,n),f=t.slice(n+1);d.length===1&&d[0].type==="ordgroup"?l=d[0]:l={type:"ordgroup",mode:this.mode,body:d},f.length===1&&f[0].type==="ordgroup"?o=f[0]:o={type:"ordgroup",mode:this.mode,body:f};var h;return r==="\\\\abovefrac"?h=this.callFunction(r,[l,t[n],o],[]):h=this.callFunction(r,[l,o],[]),[h]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var s;do{var l;s=this.parseGroup(t)}while(((l=s)==null?void 0:l.type)==="internal");if(!s)throw new ke("Expected group after '"+r+"'",n);return s}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var s={type:"text",mode:this.mode,body:n},l={type:"color",mode:this.mode,color:this.settings.errorColor,body:[s]};return l}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var r,s;;){this.consumeSpaces();var l=this.fetch();if(l.text==="\\limits"||l.text==="\\nolimits"){if(n&&n.type==="op"){var o=l.text==="\\limits";n.limits=o,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=l.text==="\\limits");else throw new ke("Limit controls must follow a math operator",l);this.consume()}else if(l.text==="^"){if(r)throw new ke("Double superscript",l);r=this.handleSupSubscript("superscript")}else if(l.text==="_"){if(s)throw new ke("Double subscript",l);s=this.handleSupSubscript("subscript")}else if(l.text==="'"){if(r)throw new ke("Double superscript",l);var d={type:"textord",mode:this.mode,text:"\\prime"},f=[d];for(this.consume();this.fetch().text==="'";)f.push(d),this.consume();this.fetch().text==="^"&&f.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:f}}else if(M0[l.text]){var h=I6.test(l.text),p=[];for(p.push(new aa(M0[l.text])),this.consume();;){var g=this.fetch().text;if(!M0[g]||I6.test(g)!==h)break;p.unshift(new aa(M0[g])),this.consume()}var y=this.subparse(p);h?s={type:"ordgroup",mode:"math",body:y}:r={type:"ordgroup",mode:"math",body:y}}else break}return r||s?{type:"supsub",mode:this.mode,base:n,sup:r,sub:s}:n}parseFunction(t,n){var r=this.fetch(),s=r.text,l=ls[s];if(!l)return null;if(this.consume(),n&&n!=="atom"&&!l.allowedInArgument)throw new ke("Got function '"+s+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!l.allowedInText)throw new ke("Can't use function '"+s+"' in text mode",r);if(this.mode==="math"&&l.allowedInMath===!1)throw new ke("Can't use function '"+s+"' in math mode",r);var{args:o,optArgs:d}=this.parseArguments(s,l);return this.callFunction(s,o,d,r,t)}callFunction(t,n,r,s,l){var o={funcName:t,parser:this,token:s,breakOnTokenText:l},d=ls[t];if(d&&d.handler)return d.handler(o,n,r);throw new ke("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var s=[],l=[],o=0;o<r;o++){var d=n.argTypes&&n.argTypes[o],f=o<n.numOptionalArgs;(n.primitive&&d==null||n.type==="sqrt"&&o===1&&l[0]==null)&&(d="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",d,f);if(f)l.push(h);else if(h!=null)s.push(h);else throw new ke("Null argument, please report this as a bug")}return{args:s,optArgs:l}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var s=this.parseArgumentGroup(r,"text");return s!=null?{type:"styling",mode:s.mode,body:[s],style:"text"}:null}case"raw":{var l=this.parseStringGroup("raw",r);return l!=null?{type:"raw",mode:"text",string:l.text}:null}case"primitive":{if(r)throw new ke("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new ke("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new ke("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var s="",l;(l=this.fetch()).text!=="EOF";)s+=l.text,this.consume();return this.consume(),r.text=s,r}parseRegexGroup(t,n){for(var r=this.fetch(),s=r,l="",o;(o=this.fetch()).text!=="EOF"&&t.test(l+o.text);)s=o,l+=s.text,this.consume();if(l==="")throw new ke("Invalid "+n+": '"+r.text+"'",r);return r.range(s,l)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new ke("Invalid color: '"+n.text+"'",n);var s=r[0];return/^[0-9a-f]{6}$/i.test(s)&&(s="#"+s),{type:"color-token",mode:this.mode,color:s}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var s=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!s)throw new ke("Invalid size: '"+n.text+"'",n);var l={number:+(s[1]+s[2]),unit:s[3]};if(!n8(l))throw new ke("Invalid unit: '"+l.unit+"'",n);return{type:"size",mode:this.mode,value:l,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var s=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var l=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:r.loc,body:l};return n&&this.switchMode(s),o}parseGroup(t,n){var r=this.fetch(),s=r.text,l;if(s==="{"||s==="\\begingroup"){this.consume();var o=s==="{"?"}":"\\endgroup";this.gullet.beginGroup();var d=this.parseExpression(!1,o),f=this.fetch();this.expect(o),this.gullet.endGroup(),l={type:"ordgroup",mode:this.mode,loc:qr.range(r,f),body:d,semisimple:s==="\\begingroup"||void 0}}else if(l=this.parseFunction(n,t)||this.parseSymbol(),l==null&&s[0]==="\\"&&!V8.hasOwnProperty(s)){if(this.settings.throwOnError)throw new ke("Undefined control sequence: "+s,r);l=this.formatUnsupportedCmd(s),this.consume()}return l}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var s=t[r],l=s.text;l==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:qr.range(s,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:qr.range(s,t[r+1]),text:"--"}),n-=1)),(l==="'"||l==="`")&&t[r+1].text===l&&(t.splice(r,2,{type:"textord",mode:"text",loc:qr.range(s,t[r+1]),text:l+l}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),s=r.charAt(0)==="*";if(s&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new ke(`\\verb assertion failed --
355
+ please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:s}}L6.hasOwnProperty(n[0])&&!sn[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=L6[n[0]]+n.slice(1));var l=UL.exec(n);l&&(n=n.substring(0,l.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var o;if(sn[this.mode][n]){this.settings.strict&&this.mode==="math"&&Tm.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var d=sn[this.mode][n].group,f=qr.range(t),h;if(OI.hasOwnProperty(d)){var p=d;h={type:"atom",mode:this.mode,family:p,loc:f,text:n}}else h={type:d,mode:this.mode,loc:f,text:n};o=h}else if(n.charCodeAt(0)>=128)this.settings.strict&&(t8(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:qr.range(t),text:n};else return null;if(this.consume(),l)for(var g=0;g<l[0].length;g++){var y=l[0][g];if(!L1[y])throw new ke("Unknown accent ' "+y+"'",t);var T=L1[y][this.mode]||L1[y].text;if(!T)throw new ke("Accent "+y+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:qr.range(t),label:T,isStretchy:!1,isShifty:!0,base:o}}return o}}Bd.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var zp=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Bd(t,n);delete r.gullet.macros.current["\\df@tag"];var s=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new ke("\\tag works only in display equations");s=[{type:"tag",mode:"text",body:s,tag:r.subparse([new aa("\\df@tag")])}]}return s},K8=function(t,n,r){n.textContent="";var s=Fp(t,r).toNode();n.appendChild(s)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),K8=function(){throw new ke("KaTeX doesn't work in quirks mode.")});var jL=function(t,n){var r=Fp(t,n).toMarkup();return r},YL=function(t,n){var r=new Tp(n);return zp(t,r)},$8=function(t,n,r){if(r.throwOnError||!(t instanceof ke))throw t;var s=ie.makeSpan(["katex-error"],[new sa(n)]);return s.setAttribute("title",t.toString()),s.setAttribute("style","color:"+r.errorColor),s},Fp=function(t,n){var r=new Tp(n);try{var s=zp(t,r);return JI(s,t,r)}catch(l){return $8(l,t,r)}},GL=function(t,n){var r=new Tp(n);try{var s=zp(t,r);return eL(s,t,r)}catch(l){return $8(l,t,r)}},VL="0.16.22",KL={Span:Xo,Anchor:xp,SymbolNode:sa,SvgNode:gi,PathNode:cs,LineNode:vm},B6={version:VL,render:K8,renderToString:jL,ParseError:ke,SETTINGS_SCHEMA:G0,__parse:YL,__renderToDomTree:Fp,__renderToHTMLTree:GL,__setFontMetrics:_I,__defineSymbol:v,__defineFunction:Ue,__defineMacro:O,__domTree:KL};const $L={},WL=[];function XL(e){const t=e||$L;return function(n,r){lp(n,"element",function(s,l){const o=Array.isArray(s.properties.className)?s.properties.className:WL,d=o.includes("language-math"),f=o.includes("math-display"),h=o.includes("math-inline");let p=f;if(!d&&!f&&!h)return;let g=l[l.length-1],y=s;if(s.tagName==="code"&&d&&g&&g.type==="element"&&g.tagName==="pre"&&(y=g,g=l[l.length-2],p=!0),!g)return;const T=Ry(y,{whitespace:"pre"});let w;try{w=B6.renderToString(T,{...t,displayMode:p,throwOnError:!0})}catch(R){const C=R,M=C.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...l,s],cause:C,place:s.position,ruleId:M,source:"rehype-katex"});try{w=B6.renderToString(T,{...t,displayMode:p,strict:"ignore",throwOnError:!1})}catch{w=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(R)},children:[{type:"text",value:T}]}]}}typeof w=="string"&&(w=VD(w).children);const x=g.children.indexOf(y);return g.children.splice(x,1,...w),d5})}}function QL(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:l},exit:{mathFlow:s,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:d,mathText:o,mathTextData:d}};function e(f){const h={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[h]}},f)}function t(){this.buffer()}function n(){const f=this.resume(),h=this.stack[this.stack.length-1];h.type,h.meta=f}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function s(f){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p=this.stack[this.stack.length-1];p.type,this.exit(f),p.value=h;const g=p.data.hChildren[0];g.type,g.tagName,g.children.push({type:"text",value:h}),this.data.mathFlowInside=void 0}function l(f){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},f),this.buffer()}function o(f){const h=this.resume(),p=this.stack[this.stack.length-1];p.type,this.exit(f),p.value=h,p.data.hChildren.push({type:"text",value:h})}function d(f){this.config.enter.data.call(this,f),this.config.exit.data.call(this,f)}}function ZL(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=s,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
356
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(l,o,d,f){const h=l.value||"",p=d.createTracker(f),g="$".repeat(Math.max(E5(h,"$")+1,2)),y=d.enter("mathFlow");let T=p.move(g);if(l.meta){const w=d.enter("mathFlowMeta");T+=p.move(d.safe(l.meta,{after:`
357
+ `,before:T,encode:["$"],...p.current()})),w()}return T+=p.move(`
358
+ `),h&&(T+=p.move(h+`
359
+ `)),T+=p.move(g),y(),T}function r(l,o,d){let f=l.value||"",h=1;for(t||h++;new RegExp("(^|[^$])"+"\\$".repeat(h)+"([^$]|$)").test(f);)h++;const p="$".repeat(h);/[^ \r\n]/.test(f)&&(/^[ \r\n]/.test(f)&&/[ \r\n]$/.test(f)||/^\$|\$$/.test(f))&&(f=" "+f+" ");let g=-1;for(;++g<d.unsafe.length;){const y=d.unsafe[g];if(!y.atBreak)continue;const T=d.compilePattern(y);let w;for(;w=T.exec(f);){let x=w.index;f.codePointAt(x)===10&&f.codePointAt(x-1)===13&&x--,f=f.slice(0,x)+" "+f.slice(w.index+1)}}return p+f+p}function s(){return"$"}}const JL={tokenize:eB,concrete:!0,name:"mathFlow"},P6={tokenize:tB,partial:!0};function eB(e,t,n){const r=this,s=r.events[r.events.length-1],l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0;let o=0;return d;function d(M){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),f(M)}function f(M){return M===36?(e.consume(M),o++,f):o<2?n(M):(e.exit("mathFlowFenceSequence"),Ct(e,h,"whitespace")(M))}function h(M){return M===null||Ke(M)?g(M):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(M))}function p(M){return M===null||Ke(M)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),g(M)):M===36?n(M):(e.consume(M),p)}function g(M){return e.exit("mathFlowFence"),r.interrupt?t(M):e.attempt(P6,y,R)(M)}function y(M){return e.attempt({tokenize:C,partial:!0},R,T)(M)}function T(M){return(l?Ct(e,w,"linePrefix",l+1):w)(M)}function w(M){return M===null?R(M):Ke(M)?e.attempt(P6,y,R)(M):(e.enter("mathFlowValue"),x(M))}function x(M){return M===null||Ke(M)?(e.exit("mathFlowValue"),w(M)):(e.consume(M),x)}function R(M){return e.exit("mathFlow"),t(M)}function C(M,L,$){let G=0;return Ct(M,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function z(Q){return M.enter("mathFlowFence"),M.enter("mathFlowFenceSequence"),ne(Q)}function ne(Q){return Q===36?(G++,M.consume(Q),ne):G<o?$(Q):(M.exit("mathFlowFenceSequence"),Ct(M,ce,"whitespace")(Q))}function ce(Q){return Q===null||Ke(Q)?(M.exit("mathFlowFence"),L(Q)):$(Q)}}}function tB(e,t,n){const r=this;return s;function s(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function nB(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:rB,previous:aB,name:"mathText"};function r(s,l,o){let d=0,f,h;return p;function p(x){return s.enter("mathText"),s.enter("mathTextSequence"),g(x)}function g(x){return x===36?(s.consume(x),d++,g):d<2&&!n?o(x):(s.exit("mathTextSequence"),y(x))}function y(x){return x===null?o(x):x===36?(h=s.enter("mathTextSequence"),f=0,w(x)):x===32?(s.enter("space"),s.consume(x),s.exit("space"),y):Ke(x)?(s.enter("lineEnding"),s.consume(x),s.exit("lineEnding"),y):(s.enter("mathTextData"),T(x))}function T(x){return x===null||x===32||x===36||Ke(x)?(s.exit("mathTextData"),y(x)):(s.consume(x),T)}function w(x){return x===36?(s.consume(x),f++,w):f===d?(s.exit("mathTextSequence"),s.exit("mathText"),l(x)):(h.type="mathTextData",T(x))}}}function rB(e){let t=e.length-4,n=3,r,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)s===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(s=r):(r===t||e[r][1].type==="lineEnding")&&(e[s][1].type="mathTextData",r!==s+2&&(e[s][1].end=e[r-1][1].end,e.splice(s+2,r-s-2),t-=r-s-2,r=s+2),s=void 0);return e}function aB(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function iB(e){return{flow:{36:JL},text:{36:nB(e)}}}const sB={};function lB(e){const t=this,n=e||sB,r=t.data(),s=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);s.push(iB(n)),l.push(QL()),o.push(ZL(n))}var qs,uB=(qs=class extends Error{constructor(n){super(new.target.formatMessage(new.target.kind,n.message,n.code,n.docsUrl),{cause:n.cause});si(this,"clerkError",!0);si(this,"code");si(this,"longMessage");si(this,"docsUrl");si(this,"cause");Object.setPrototypeOf(this,qs.prototype),this.code=n.code,this.docsUrl=n.docsUrl,this.longMessage=n.longMessage,this.cause=n.cause}get name(){return this.constructor.name}toString(){return`[${this.name}]
360
+ Message:${this.message}`}static formatMessage(n,r,s,l){const o="Clerk:",d=new RegExp(o.replace(" ","\\s*"),"i");return r=r.replace(d,""),r=`${o} ${r.trim()}
361
+
362
+ (code="${s}")
363
+
364
+ `,l&&(r+=`
365
+
366
+ Docs: ${l}`),r}},si(qs,"kind","ClerkError"),qs);const oB=Object.freeze({InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invalid. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:"The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",MissingPublishableKeyErrorMessage:"Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingSecretKeyErrorMessage:"Missing secretKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingClerkProvider:"{{source}} can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider"});function W8({packageName:e,customMessages:t}){let n=e;function r(l,o){if(!o)return`${n}: ${l}`;let d=l;const f=l.matchAll(/{{([a-zA-Z0-9-_]+)}}/g);for(const h of f){const p=(o[h[1]]||"").toString();d=d.replace(`{{${h[1]}}}`,p)}return`${n}: ${d}`}const s={...oB,...t};return{setPackageName({packageName:l}){return typeof l=="string"&&(n=l),this},setMessages({customMessages:l}){return Object.assign(s,l||{}),this},throwInvalidPublishableKeyError(l){throw new Error(r(s.InvalidPublishableKeyErrorMessage,l))},throwInvalidProxyUrl(l){throw new Error(r(s.InvalidProxyUrlErrorMessage,l))},throwMissingPublishableKeyError(){throw new Error(r(s.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw new Error(r(s.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(l){throw new Error(r(s.MissingClerkProvider,l))},throw(l){throw new Error(r(l))}}}var js,Cm=(js=class extends uB{constructor(n,r){super({...r,message:n});si(this,"clerkRuntimeError",!0);Object.setPrototypeOf(this,js.prototype)}},si(js,"kind","ClerkRuntimeError"),js);const cB={strict_mfa:{afterMinutes:10,level:"multi_factor"},strict:{afterMinutes:10,level:"second_factor"},moderate:{afterMinutes:60,level:"second_factor"},lax:{afterMinutes:1440,level:"second_factor"}},dB=new Set(["first_factor","second_factor","multi_factor"]),fB=new Set(["strict_mfa","strict","moderate","lax"]),hB=e=>typeof e=="number"&&e>0,mB=e=>dB.has(e),pB=e=>fB.has(e),B1=e=>e.replace(/^(org:)*/,"org:"),gB=(e,t)=>{const{orgId:n,orgRole:r,orgPermissions:s}=t;return!e.role&&!e.permission||!n||!r||!s?null:e.permission?s.includes(B1(e.permission)):e.role?B1(r)===B1(e.role):null},U6=(e,t)=>{const{org:n,user:r}=EB(e),[s,l]=t.split(":"),o=l||s;return s==="org"?n.includes(o):s==="user"?r.includes(o):[...n,...r].includes(o)},bB=(e,t)=>{const{features:n,plans:r}=t;return e.feature&&n?U6(n,e.feature):e.plan&&r?U6(r,e.plan):null},EB=e=>{const t=e?e.split(",").map(n=>n.trim()):[];return{org:t.filter(n=>n.split(":")[0].includes("o")).map(n=>n.split(":")[1]),user:t.filter(n=>n.split(":")[0].includes("u")).map(n=>n.split(":")[1])}},yB=e=>{if(!e)return!1;const t=s=>typeof s=="string"?cB[s]:s,n=typeof e=="string"&&pB(e),r=typeof e=="object"&&mB(e.level)&&hB(e.afterMinutes);return n||r?t.bind(null,e):!1},vB=(e,{factorVerificationAge:t})=>{if(!e.reverification||!t)return null;const n=yB(e.reverification);if(!n)return null;const{level:r,afterMinutes:s}=n(),[l,o]=t,d=l!==-1?s>l:null,f=o!==-1?s>o:null;switch(r){case"first_factor":return d;case"second_factor":return o!==-1?f:d;case"multi_factor":return o===-1?d:d&&f}},TB=e=>t=>{if(!e.userId)return!1;const n=bB(t,e),r=gB(t,e),s=vB(t,e);return[n||r,s].some(l=>l===null)?[n||r,s].some(l=>l===!0):[n||r,s].every(l=>l===!0)},_B=({authObject:{sessionId:e,sessionStatus:t,userId:n,actor:r,orgId:s,orgRole:l,orgSlug:o,signOut:d,getToken:f,has:h,sessionClaims:p},options:{treatPendingAsSignedOut:g=!0}})=>{if(e===void 0&&n===void 0)return{isLoaded:!1,isSignedIn:void 0,sessionId:e,sessionClaims:void 0,userId:n,actor:void 0,orgId:void 0,orgRole:void 0,orgSlug:void 0,has:void 0,signOut:d,getToken:f};if(e===null&&n===null)return{isLoaded:!0,isSignedIn:!1,sessionId:e,userId:n,sessionClaims:null,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:d,getToken:f};if(g&&t==="pending")return{isLoaded:!0,isSignedIn:!1,sessionId:null,userId:null,sessionClaims:null,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:d,getToken:f};if(e&&p&&n&&s&&l)return{isLoaded:!0,isSignedIn:!0,sessionId:e,sessionClaims:p,userId:n,actor:r||null,orgId:s,orgRole:l,orgSlug:o||null,has:h,signOut:d,getToken:f};if(e&&p&&n&&!s)return{isLoaded:!0,isSignedIn:!0,sessionId:e,sessionClaims:p,userId:n,actor:r||null,orgId:null,orgRole:null,orgSlug:null,has:h,signOut:d,getToken:f}},SB=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],X8=e=>typeof atob<"u"&&typeof atob=="function"?atob(e):typeof global<"u"&&global.Buffer?new global.Buffer(e,"base64").toString():e,Q8="pk_live_",xB="pk_test_";function Z8(e){if(!e.endsWith("$"))return!1;const t=e.slice(0,-1);return t.includes("$")?!1:t.includes(".")}function z6(e,t={}){if(e=e||"",!e||!km(e)){if(t.fatal&&!e)throw new Error("Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys");if(t.fatal&&!km(e))throw new Error("Publishable key not valid.");return null}const n=e.startsWith(Q8)?"production":"development";let r;try{r=X8(e.split("_")[2])}catch{if(t.fatal)throw new Error("Publishable key not valid: Failed to decode key.");return null}if(!Z8(r)){if(t.fatal)throw new Error("Publishable key not valid: Decoded key has invalid format.");return null}let s=r.slice(0,-1);return t.proxyUrl?s=t.proxyUrl:n!=="development"&&t.domain&&t.isSatellite&&(s=`clerk.${t.domain}`),{instanceType:n,frontendApi:s}}function km(e=""){try{if(!(e.startsWith(Q8)||e.startsWith(xB)))return!1;const t=e.split("_");if(t.length!==3)return!1;const n=t[2];return n?Z8(X8(n)):!1}catch{return!1}}function AB(){const e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;const n=typeof t=="string"?t:t.hostname;let r=e.get(n);return r===void 0&&(r=SB.some(s=>n.endsWith(s)),e.set(n,r)),r}}}const wB="METHOD_CALLED",CB=.1;function Hp(e,t){return{event:wB,eventSamplingRate:CB,payload:{method:e,...t}}}var P1={exports:{}},U1={};/**
367
+ * @license React
368
+ * use-sync-external-store-shim.production.js
369
+ *
370
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
371
+ *
372
+ * This source code is licensed under the MIT license found in the
373
+ * LICENSE file in the root directory of this source tree.
374
+ */var F6;function kB(){if(F6)return U1;F6=1;var e=bd();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,l=e.useLayoutEffect,o=e.useDebugValue;function d(g,y){var T=y(),w=r({inst:{value:T,getSnapshot:y}}),x=w[0].inst,R=w[1];return l(function(){x.value=T,x.getSnapshot=y,f(x)&&R({inst:x})},[g,T,y]),s(function(){return f(x)&&R({inst:x}),g(function(){f(x)&&R({inst:x})})},[g]),o(T),T}function f(g){var y=g.getSnapshot;g=g.value;try{var T=y();return!n(g,T)}catch{return!0}}function h(g,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return U1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,U1}var H6;function NB(){return H6||(H6=1,P1.exports=kB()),P1.exports}var OB=NB();const J8=0,ev=1,tv=2,q6=3;var j6=Object.prototype.hasOwnProperty;function Nm(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Nm(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(j6.call(e,n)&&++r&&!j6.call(t,n)||!(n in t)||!Nm(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const ci=new WeakMap,us=()=>{},tr=us(),fd=Object,It=e=>e===tr,ba=e=>typeof e=="function",yi=(e,t)=>({...e,...t}),nv=e=>ba(e.then),z1={},D0={},qp="undefined",Zo=typeof window!=qp,Om=typeof document!=qp,RB=Zo&&"Deno"in window,MB=()=>Zo&&typeof window.requestAnimationFrame!=qp,rv=(e,t)=>{const n=ci.get(e);return[()=>!It(t)&&e.get(t)||z1,r=>{if(!It(t)){const s=e.get(t);t in D0||(D0[t]=s),n[5](t,yi(s,r),s||z1)}},n[6],()=>!It(t)&&t in D0?D0[t]:!It(t)&&e.get(t)||z1]};let Rm=!0;const DB=()=>Rm,[Mm,Dm]=Zo&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[us,us],IB=()=>{const e=Om&&document.visibilityState;return It(e)||e!=="hidden"},LB=e=>(Om&&document.addEventListener("visibilitychange",e),Mm("focus",e),()=>{Om&&document.removeEventListener("visibilitychange",e),Dm("focus",e)}),BB=e=>{const t=()=>{Rm=!0,e()},n=()=>{Rm=!1};return Mm("online",t),Mm("offline",n),()=>{Dm("online",t),Dm("offline",n)}},PB={isOnline:DB,isVisible:IB},UB={initFocus:LB,initReconnect:BB},Y6=!de.useId,Uo=!Zo||RB,zB=e=>MB()?window.requestAnimationFrame(e):setTimeout(e,1),K0=Uo?V.useEffect:V.useLayoutEffect,F1=typeof navigator<"u"&&navigator.connection,G6=!Uo&&F1&&(["slow-2g","2g"].includes(F1.effectiveType)||F1.saveData),I0=new WeakMap,FB=e=>fd.prototype.toString.call(e),H1=(e,t)=>e===`[object ${t}]`;let HB=0;const Im=e=>{const t=typeof e,n=FB(e),r=H1(n,"Date"),s=H1(n,"RegExp"),l=H1(n,"Object");let o,d;if(fd(e)===e&&!r&&!s){if(o=I0.get(e),o)return o;if(o=++HB+"~",I0.set(e,o),Array.isArray(e)){for(o="@",d=0;d<e.length;d++)o+=Im(e[d])+",";I0.set(e,o)}if(l){o="#";const f=fd.keys(e).sort();for(;!It(d=f.pop());)It(e[d])||(o+=d+":"+Im(e[d])+",");I0.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},jp=e=>{if(ba(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Im(e):"",[e,t]};let qB=0;const Lm=()=>++qB;async function av(...e){const[t,n,r,s]=e,l=yi({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=l.populateCache;const d=l.rollbackOnError;let f=l.optimisticData;const h=y=>typeof d=="function"?d(y):d!==!1,p=l.throwOnError;if(ba(n)){const y=n,T=[],w=t.keys();for(const x of w)!/^\$(inf|sub)\$/.test(x)&&y(t.get(x)._k)&&T.push(x);return Promise.all(T.map(g))}return g(n);async function g(y){const[T]=jp(y);if(!T)return;const[w,x]=rv(t,T),[R,C,M,L]=ci.get(t),$=()=>{const fe=R[T];return(ba(l.revalidate)?l.revalidate(w().data,y):l.revalidate!==!1)&&(delete M[T],delete L[T],fe&&fe[0])?fe[0](tv).then(()=>w().data):w().data};if(e.length<3)return $();let G=r,z,ne=!1;const ce=Lm();C[T]=[ce,0];const Q=!It(f),j=w(),me=j.data,J=j._c,se=It(J)?me:J;if(Q&&(f=ba(f)?f(se,me):f,x({data:f,_c:se})),ba(G))try{G=G(se)}catch(fe){z=fe,ne=!0}if(G&&nv(G))if(G=await G.catch(fe=>{z=fe,ne=!0}),ce!==C[T][0]){if(ne)throw z;return G}else ne&&Q&&h(z)&&(o=!0,x({data:se,_c:tr}));if(o&&!ne)if(ba(o)){const fe=o(G,se);x({data:fe,error:tr,_c:tr})}else x({data:G,error:tr,_c:tr});if(C[T][1]=Lm(),Promise.resolve($()).then(()=>{x({_c:tr})}),ne){if(p)throw z;return}return G}}const V6=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},iv=(e,t)=>{if(!ci.has(e)){const n=yi(UB,t),r=Object.create(null),s=av.bind(tr,e);let l=us;const o=Object.create(null),d=(p,g)=>{const y=o[p]||[];return o[p]=y,y.push(g),()=>y.splice(y.indexOf(g),1)},f=(p,g,y)=>{e.set(p,g);const T=o[p];if(T)for(const w of T)w(g,y)},h=()=>{if(!ci.has(e)&&(ci.set(e,[r,Object.create(null),Object.create(null),Object.create(null),s,f,d]),!Uo)){const p=n.initFocus(setTimeout.bind(tr,V6.bind(tr,r,J8))),g=n.initReconnect(setTimeout.bind(tr,V6.bind(tr,r,ev)));l=()=>{p&&p(),g&&g(),ci.delete(e)}}};return h(),[e,s,h,l]}return[e,ci.get(e)[4]]},jB=(e,t,n,r,s)=>{const l=n.errorRetryCount,o=s.retryCount,d=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!It(l)&&o>l||setTimeout(r,d,s)},YB=Nm,[Yp,GB]=iv(new Map),sv=yi({onLoadingSlow:us,onSuccess:us,onError:us,onErrorRetry:jB,onDiscarded:us,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:G6?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:G6?5e3:3e3,compare:YB,isPaused:()=>!1,cache:Yp,mutate:GB,fallback:{}},PB),lv=(e,t)=>{const n=yi(e,t);if(t){const{use:r,fallback:s}=e,{use:l,fallback:o}=t;r&&l&&(n.use=r.concat(l)),s&&o&&(n.fallback=yi(s,o))}return n},Bm=V.createContext({}),VB=e=>{const{value:t}=e,n=V.useContext(Bm),r=ba(t),s=V.useMemo(()=>r?t(n):t,[r,n,t]),l=V.useMemo(()=>r?s:lv(n,s),[r,n,s]),o=s&&s.provider,d=V.useRef(tr);o&&!d.current&&(d.current=iv(o(l.cache||Yp),s));const f=d.current;return f&&(l.cache=f[0],l.mutate=f[1]),K0(()=>{if(f)return f[2]&&f[2](),f[3]},[]),V.createElement(Bm.Provider,yi(e,{value:l}))},KB="$inf$",uv=Zo&&window.__SWR_DEVTOOLS_USE__,$B=uv?window.__SWR_DEVTOOLS_USE__:[],WB=()=>{uv&&(window.__SWR_DEVTOOLS_REACT__=de)},XB=e=>ba(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],QB=()=>yi(sv,V.useContext(Bm)),ZB=e=>(t,n,r)=>e(t,n&&((...l)=>{const[o]=jp(t),[,,,d]=ci.get(Yp);if(o.startsWith(KB))return n(...l);const f=d[o];return It(f)?n(...l):(delete d[o],f)}),r),JB=$B.concat(ZB),eP=e=>function(...n){const r=QB(),[s,l,o]=XB(n),d=lv(r,o);let f=e;const{use:h}=d,p=(h||[]).concat(JB);for(let g=p.length;g--;)f=p[g](f);return f(s,l||d.fetcher||null,d)},tP=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s>=0&&(r[s]=r[r.length-1],r.pop())}};WB();const q1=de.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),j1={dedupe:!0},nP=(e,t,n)=>{const{cache:r,compare:s,suspense:l,fallbackData:o,revalidateOnMount:d,revalidateIfStale:f,refreshInterval:h,refreshWhenHidden:p,refreshWhenOffline:g,keepPreviousData:y}=n,[T,w,x,R]=ci.get(r),[C,M]=jp(e),L=V.useRef(!1),$=V.useRef(!1),G=V.useRef(C),z=V.useRef(t),ne=V.useRef(n),ce=()=>ne.current,Q=()=>ce().isVisible()&&ce().isOnline(),[j,me,J,se]=rv(r,C),fe=V.useRef({}).current,pe=It(o)?It(n.fallback)?tr:n.fallback[C]:o,X=(Qe,it)=>{for(const Rt in fe){const qe=Rt;if(qe==="data"){if(!s(Qe[qe],it[qe])&&(!It(Qe[qe])||!s(Ve,it[qe])))return!1}else if(it[qe]!==Qe[qe])return!1}return!0},he=V.useMemo(()=>{const Qe=!C||!t?!1:It(d)?ce().isPaused()||l?!1:f!==!1:d,it=lt=>{const Ze=yi(lt);return delete Ze._k,Qe?{isValidating:!0,isLoading:!0,...Ze}:Ze},Rt=j(),qe=se(),ht=it(Rt),jt=Rt===qe?ht:it(qe);let xt=ht;return[()=>{const lt=it(j());return X(lt,xt)?(xt.data=lt.data,xt.isLoading=lt.isLoading,xt.isValidating=lt.isValidating,xt.error=lt.error,xt):(xt=lt,lt)},()=>jt]},[r,C]),be=OB.useSyncExternalStore(V.useCallback(Qe=>J(C,(it,Rt)=>{X(Rt,it)||Qe()}),[r,C]),he[0],he[1]),ze=!L.current,A=T[C]&&T[C].length>0,le=be.data,ye=It(le)?pe&&nv(pe)?q1(pe):pe:le,D=be.error,Ie=V.useRef(ye),Ve=y?It(le)?It(Ie.current)?ye:Ie.current:le:ye,Be=A&&!It(D)?!1:ze&&!It(d)?d:ce().isPaused()?!1:l?It(ye)?!1:f:It(ye)||f,Mt=!!(C&&t&&ze&&Be),ot=It(be.isValidating)?Mt:be.isValidating,Qt=It(be.isLoading)?Mt:be.isLoading,Ft=V.useCallback(async Qe=>{const it=z.current;if(!C||!it||$.current||ce().isPaused())return!1;let Rt,qe,ht=!0;const jt=Qe||{},xt=!x[C]||!jt.dedupe,lt=()=>Y6?!$.current&&C===G.current&&L.current:C===G.current,Ze={isValidating:!1,isLoading:!1},Zt=()=>{me(Ze)},tt=()=>{const _t=x[C];_t&&_t[1]===qe&&delete x[C]},Tt={isValidating:!0};It(j().data)&&(Tt.isLoading=!0);try{if(xt&&(me(Tt),n.loadingTimeout&&It(j().data)&&setTimeout(()=>{ht&&lt()&&ce().onLoadingSlow(C,n)},n.loadingTimeout),x[C]=[it(M),Lm()]),[Rt,qe]=x[C],Rt=await Rt,xt&&setTimeout(tt,n.dedupingInterval),!x[C]||x[C][1]!==qe)return xt&&lt()&&ce().onDiscarded(C),!1;Ze.error=tr;const _t=w[C];if(!It(_t)&&(qe<=_t[0]||qe<=_t[1]||_t[1]===0))return Zt(),xt&&lt()&&ce().onDiscarded(C),!1;const re=j().data;Ze.data=s(re,Rt)?re:Rt,xt&&lt()&&ce().onSuccess(Rt,C,n)}catch(_t){tt();const re=ce(),{shouldRetryOnError:xe}=re;re.isPaused()||(Ze.error=_t,xt&&lt()&&(re.onError(_t,C,re),(xe===!0||ba(xe)&&xe(_t))&&(!ce().revalidateOnFocus||!ce().revalidateOnReconnect||Q())&&re.onErrorRetry(_t,C,re,$e=>{const Je=T[C];Je&&Je[0]&&Je[0](q6,$e)},{retryCount:(jt.retryCount||0)+1,dedupe:!0})))}return ht=!1,Zt(),!0},[C,r]),An=V.useCallback((...Qe)=>av(r,G.current,...Qe),[]);if(K0(()=>{z.current=t,ne.current=n,It(le)||(Ie.current=le)}),K0(()=>{if(!C)return;const Qe=Ft.bind(tr,j1);let it=0;ce().revalidateOnFocus&&(it=Date.now()+ce().focusThrottleInterval);const qe=tP(C,T,(ht,jt={})=>{if(ht==J8){const xt=Date.now();ce().revalidateOnFocus&&xt>it&&Q()&&(it=xt+ce().focusThrottleInterval,Qe())}else if(ht==ev)ce().revalidateOnReconnect&&Q()&&Qe();else{if(ht==tv)return Ft();if(ht==q6)return Ft(jt)}});return $.current=!1,G.current=C,L.current=!0,me({_k:M}),Be&&(x[C]||(It(ye)||Uo?Qe():zB(Qe))),()=>{$.current=!0,qe()}},[C]),K0(()=>{let Qe;function it(){const qe=ba(h)?h(j().data):h;qe&&Qe!==-1&&(Qe=setTimeout(Rt,qe))}function Rt(){!j().error&&(p||ce().isVisible())&&(g||ce().isOnline())?Ft(j1).then(it):it()}return it(),()=>{Qe&&(clearTimeout(Qe),Qe=-1)}},[h,p,g,C]),V.useDebugValue(Ve),l&&It(ye)&&C){if(!Y6&&Uo)throw new Error("Fallback data is required when using Suspense in SSR.");z.current=t,ne.current=n,$.current=!1;const Qe=R[C];if(!It(Qe)){const it=An(Qe);q1(it)}if(It(D)){const it=Ft(j1);It(Ve)||(it.status="fulfilled",it.value=!0),q1(it)}else throw D}return{mutate:An,get data(){return fe.data=!0,Ve},get error(){return fe.error=!0,D},get isValidating(){return fe.isValidating=!0,ot},get isLoading(){return fe.isLoading=!0,Qt}}},rP=fd.defineProperty(VB,"defaultValue",{value:sv}),aP=eP(nP);var K6=Object.prototype.hasOwnProperty;function $6(e,t,n){for(n of e.keys())if(No(n,t))return n}function No(e,t){var n,r,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&No(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(s=r,s&&typeof s=="object"&&(s=$6(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(s=r[0],s&&typeof s=="object"&&(s=$6(t,s),!s)||!No(r[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(K6.call(e,n)&&++r&&!K6.call(t,n)||!(n in t)||!No(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function iP(e,t){if(!e)throw typeof t=="string"?new Error(t):new Error(`${t.displayName} not found`)}const Si=(e,t)=>{const{assertCtxFn:n=iP}={},r=de.createContext(void 0);return r.displayName=e,[r,()=>{const o=de.useContext(r);return n(o,`${e} not found`),o.value},()=>{const o=de.useContext(r);return o?o.value:{}}]};function sP({swrConfig:e,children:t}){return de.createElement(rP,{value:e},t)}const[ov,Pd]=Si("ClerkInstanceContext"),[lP,cv]=Si("UserContext"),[uP,Oz]=Si("ClientContext"),[oP,Rz]=Si("SessionContext");de.createContext({});const[cP,Mz]=Si("CheckoutContext"),dP=({children:e,...t})=>de.createElement(cP.Provider,{value:{value:t}},e),[fP,hP]=Si("OrganizationContext"),mP=({children:e,organization:t,swrConfig:n})=>de.createElement(sP,{swrConfig:n},de.createElement(fP.Provider,{value:{value:{organization:t}}},e));function Ud(e){if(!de.useContext(ov)){if(typeof e=="function"){e();return}throw new Error(`${e} can only be used within the <ClerkProvider /> component.
375
+
376
+ Possible fixes:
377
+ 1. Ensure that the <ClerkProvider /> is correctly wrapping your application where this component is used.
378
+ 2. Check for multiple versions of the \`@clerk/shared\` package in your project. Use a tool like \`npm ls @clerk/shared\` to identify multiple versions, and update your dependencies to only rely on one.
379
+
380
+ Learn more: https://clerk.com/docs/components/clerk-provider`.trim())}}const pP="billing-subscription",gP={SUBSCRIPTION_KEY:pP};function bP(e){return{queryKey:[e.stablePrefix,e.authenticated,e.tracked,e.untracked],invalidationKey:[e.stablePrefix,e.authenticated,e.tracked],stableKey:e.stablePrefix,authenticated:e.authenticated}}const EP=()=>(Ud("useClerk"),Pd());typeof window<"u"?de.useLayoutEffect:de.useEffect;const W6="useUser";function yP(){var t;Ud(W6);const e=cv();return(t=Pd().telemetry)==null||t.record(Hp(W6)),e===void 0?{isLoaded:!1,isSignedIn:void 0,user:void 0}:e===null?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}const X6=No;function vP(e){const{userId:t,orgId:n,for:r}=e;return V.useMemo(()=>{const s=r==="organization"?n:void 0;return bP({stablePrefix:gP.SUBSCRIPTION_KEY,authenticated:!0,tracked:{userId:t,orgId:s},untracked:{args:{orgId:s}}})},[t,n,r])}const Q6="useSubscription";function TP(e){var p;Ud(Q6);const t=Pd(),n=cv(),{organization:r}=hP(),s=t.__unstable__environment;(p=t.telemetry)==null||p.record(Hp(Q6));const l=(e==null?void 0:e.for)==="organization"?s==null?void 0:s.commerceSettings.billing.organization.enabled:s==null?void 0:s.commerceSettings.billing.user.enabled,o=((e==null?void 0:e.enabled)??!0)&&l,{queryKey:d}=vP({userId:n==null?void 0:n.id,orgId:r==null?void 0:r.id,for:e==null?void 0:e.for}),f=aP(o?{queryKey:d}:null,({queryKey:g})=>{const y=g[3].args;return g[2].userId?t.billing.getSubscription(y):null},{dedupingInterval:1e3*60,keepPreviousData:e==null?void 0:e.keepPreviousData}),h=V.useCallback(()=>{f.mutate()},[f]);return{data:f.data,error:f.error,isLoading:f.isLoading,isFetching:f.isValidating,revalidate:h}}const _P=e=>{const t=V.useRef(e);return V.useEffect(()=>{t.current=e},[e]),t.current},zr=(e,t,n)=>{const r=!!n,s=V.useRef(n);V.useEffect(()=>{s.current=n},[n]),V.useEffect(()=>{if(!r||!e)return()=>{};const l=(...o)=>{s.current&&s.current(...o)};return e.on(t,l),()=>{e.off(t,l)}},[r,t,e,s])},dv=de.createContext(null);dv.displayName="ElementsContext";const SP=(e,t)=>{if(!e)throw new Error(`Could not find Elements context; You need to wrap the part of your app that ${t} in an <Elements> provider.`);return e},hd=e=>e!==null&&typeof e=="object",xP=(e,t,n)=>hd(e)?Object.keys(e).reduce((r,s)=>{const l=!hd(t)||!fv(e[s],t[s]);return n.includes(s)?(l&&console.warn(`Unsupported prop change: options.${s} is not a mutable property.`),r):l?{...r||{},[s]:e[s]}:r},null):null,Z6="[object Object]",fv=(e,t)=>{if(!hd(e)||!hd(t))return e===t;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;const r=Object.prototype.toString.call(e)===Z6;if(r!==(Object.prototype.toString.call(t)===Z6))return!1;if(!r&&!n)return e===t;const s=Object.keys(e),l=Object.keys(t);if(s.length!==l.length)return!1;const o={};for(let g=0;g<s.length;g+=1)o[s[g]]=!0;for(let g=0;g<l.length;g+=1)o[l[g]]=!0;const d=Object.keys(o);if(d.length!==s.length)return!1;const f=e,h=t,p=g=>fv(f[g],h[g]);return d.every(p)},J6=e=>SP(de.useContext(dv),e),AP=e=>e.charAt(0).toUpperCase()+e.slice(1),wP=(e,t)=>{const n=`${AP(e)}Element`,l=t?o=>{J6(`mounts <${n}>`);const{id:d,className:f}=o;return de.createElement("div",{id:d,className:f})}:({id:o,className:d,fallback:f,options:h={},onBlur:p,onFocus:g,onReady:y,onChange:T,onEscape:w,onClick:x,onLoadError:R,onLoaderStart:C,onNetworksChange:M,onConfirm:L,onCancel:$,onShippingAddressChange:G,onShippingRateChange:z})=>{const ne=J6(`mounts <${n}>`),ce="elements"in ne?ne.elements:null,[Q,j]=de.useState(null),me=de.useRef(null),J=de.useRef(null),[se,fe]=V.useState(!1);zr(Q,"blur",p),zr(Q,"focus",g),zr(Q,"escape",w),zr(Q,"click",x),zr(Q,"loaderror",R),zr(Q,"loaderstart",C),zr(Q,"networkschange",M),zr(Q,"confirm",L),zr(Q,"cancel",$),zr(Q,"shippingaddresschange",G),zr(Q,"shippingratechange",z),zr(Q,"change",T);let pe;y&&(pe=()=>{fe(!0),y(Q)}),zr(Q,"ready",pe),de.useLayoutEffect(()=>{if(me.current===null&&J.current!==null&&ce){let he=null;ce&&(he=ce.create(e,h)),me.current=he,j(he),he&&he.mount(J.current)}},[ce,h]);const X=_P(h);return de.useEffect(()=>{if(!me.current)return;const he=xP(h,X,["paymentRequest"]);he&&"update"in me.current&&me.current.update(he)},[h,X]),de.useLayoutEffect(()=>()=>{if(me.current&&typeof me.current.destroy=="function")try{me.current.destroy(),me.current=null}catch{}},[]),de.createElement(de.Fragment,null,!se&&f,de.createElement("div",{id:o,style:{height:se?"unset":"0px",visibility:se?"visible":"hidden"},className:d,ref:J}))};return l.displayName=n,l.__elementType=e,l};wP("payment",typeof window>"u");Si("PaymentElementContext");Si("StripeUtilsContext");var ya=W8({packageName:"@clerk/clerk-react"});function CP(e){ya.setMessages(e).setPackageName(e)}var[kP,NP]=Si("AuthContext"),OP=ov,hv=Pd,RP="You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.",MP=e=>`You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,DP="Invalid state. Feel free to submit a bug or reach out to support here: https://clerk.com/support",Y1="Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",IP="<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",LP="<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",BP="<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",PP="<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",UP=e=>`<${e} /> can only accept <${e}.Page /> and <${e}.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.`,zP=e=>`Missing props. <${e}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`,FP=e=>`Missing props. <${e}.Link /> component requires the following props: url, label and labelIcon.`,HP="<UserButton /> can only accept <UserButton.UserProfilePage />, <UserButton.UserProfileLink /> and <UserButton.MenuItems /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.",qP="<UserButton.MenuItems /> component can only accept <UserButton.Action /> and <UserButton.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.",jP="<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`.",YP="<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`.",GP="<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />`.",VP="Missing props. <UserButton.Link /> component requires the following props: href, label and labelIcon.",KP="Missing props. <UserButton.Action /> component requires the following props: label.",zd=e=>{Ud(()=>{ya.throwMissingClerkProviderError({source:e})})},mv=e=>new Promise(t=>{const n=r=>{["ready","degraded"].includes(r)&&(t(),e.off("status",n))};e.on("status",n,{notify:!0})}),$P=e=>async t=>(await mv(e),e.session?e.session.getToken(t):null),WP=e=>async(...t)=>(await mv(e),e.signOut(...t)),Jo=(e={})=>{var t;zd("useAuth");const{treatPendingAsSignedOut:n,...r}=e??{},s=r;let o=NP();o.sessionId===void 0&&o.userId===void 0&&(o=s??{});const d=hv(),f=V.useCallback($P(d),[d]),h=V.useCallback(WP(d),[d]);return(t=d.telemetry)==null||t.record(Hp("useAuth",{treatPendingAsSignedOut:n})),XP({...o,getToken:f,signOut:h},{treatPendingAsSignedOut:n})};function XP(e,{treatPendingAsSignedOut:t=!0}={}){const{userId:n,orgId:r,orgRole:s,has:l,signOut:o,getToken:d,orgPermissions:f,factorVerificationAge:h,sessionClaims:p}=e??{},g=V.useCallback(T=>l?l(T):TB({userId:n,orgId:r,orgRole:s,orgPermissions:f,factorVerificationAge:h,features:(p==null?void 0:p.fea)||"",plans:(p==null?void 0:p.pla)||""})(T),[l,n,r,s,f,h,p]),y=_B({authObject:{...e,getToken:d,signOut:o,has:g},options:{treatPendingAsSignedOut:t}});return y||ya.throw(DP)}var Vt=(e,t)=>{const r=(typeof t=="string"?t:t==null?void 0:t.component)||e.displayName||e.name||"Component";e.displayName=r;const s=typeof t=="string"?void 0:t,l=o=>{zd(r||"withClerk");const d=hv();return!d.loaded&&!(s!=null&&s.renderWhileLoading)?null:de.createElement(e,{...o,component:r,clerk:d})};return l.displayName=`withClerk(${r})`,l};const QP=()=>{try{return!1}catch{}return!1},ZP=()=>{try{return!1}catch{}return!1},JP=()=>{try{return!0}catch{}return!1},eE=new Set,Gp=(e,t,n)=>{const r=ZP()||JP(),s=e;eE.has(s)||r||(eE.add(s),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release.
381
+ ${t}`))};var pv=({children:e,treatPendingAsSignedOut:t})=>{zd("SignedIn");const{userId:n}=Jo({treatPendingAsSignedOut:t});return n?e:null},eU=({children:e,treatPendingAsSignedOut:t})=>{zd("SignedOut");const{userId:n}=Jo({treatPendingAsSignedOut:t});return n===null?e:null};Vt(({clerk:e,...t})=>{const{client:n,session:r}=e,s=n.signedInSessions?n.signedInSessions.length>0:n.activeSessions&&n.activeSessions.length>0;return de.useEffect(()=>{r===null&&s?e.redirectToAfterSignOut():e.redirectToSignIn(t)},[]),null},"RedirectToSignIn");Vt(({clerk:e,...t})=>(de.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp");Vt(({clerk:e,...t})=>(de.useEffect(()=>{e.redirectToTasks(t)},[]),null),"RedirectToTasks");Vt(({clerk:e})=>(de.useEffect(()=>{Gp("RedirectToUserProfile","Use the `redirectToUserProfile()` method instead."),e.redirectToUserProfile()},[]),null),"RedirectToUserProfile");Vt(({clerk:e})=>(de.useEffect(()=>{Gp("RedirectToOrganizationProfile","Use the `redirectToOrganizationProfile()` method instead."),e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile");Vt(({clerk:e})=>(de.useEffect(()=>{Gp("RedirectToCreateOrganization","Use the `redirectToCreateOrganization()` method instead."),e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization");Vt(({clerk:e,...t})=>(de.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback");function G1(e,t,n){if(typeof e=="function")return e(t);if(typeof e<"u")return e;if(typeof n<"u")return n}const mr=e=>{QP()&&console.error(`Clerk: ${e}`)};var tU=hE();const tE=(e,...t)=>{const n={...e};for(const r of t)delete n[r];return n};var Qs=e=>t=>{try{return de.Children.only(e)}catch{return ya.throw(MP(t))}},Zs=(e,t)=>(e||(e=t),typeof e=="string"&&(e=de.createElement("button",null,e)),e),Js=e=>(...t)=>{if(e&&typeof e=="function")return e(...t)};function nU(e){return typeof e=="function"}var L0=new Map;function rU(e,t,n=1){de.useEffect(()=>{const r=L0.get(e)||0;return r==n?ya.throw(t):(L0.set(e,r+1),()=>{L0.set(e,(L0.get(e)||1)-1)})},[])}function aU(e,t,n){const r=e.displayName||e.name||t||"Component",s=l=>(rU(t,n),de.createElement(e,{...l}));return s.displayName=`withMaxAllowedInstancesGuard(${r})`,s}var Oo=e=>{const[t,n]=V.useState(new Map);return e.map(r=>({id:r.id,mount:s=>n(l=>new Map(l).set(String(r.id),s)),unmount:()=>n(s=>{const l=new Map(s);return l.set(String(r.id),null),l}),portal:()=>{const s=t.get(String(r.id));return s?tU.createPortal(r.component,s):null}}))},fr=(e,t)=>!!e&&de.isValidElement(e)&&(e==null?void 0:e.type)===t,gv=(e,t)=>yv({children:e,reorderItemsLabels:["account","security","billing","apiKeys"],LinkComponent:tc,PageComponent:ec,MenuItemsComponent:Hd,componentName:"UserProfile"},t),bv=(e,t)=>yv({children:e,reorderItemsLabels:["general","members","billing","apiKeys"],LinkComponent:jd,PageComponent:qd,componentName:"OrganizationProfile"},t),Ev=e=>{const t=[],n=[jd,qd,Hd,ec,tc];return de.Children.forEach(e,r=>{n.some(s=>fr(r,s))||t.push(r)}),t},yv=(e,t)=>{const{children:n,LinkComponent:r,PageComponent:s,MenuItemsComponent:l,reorderItemsLabels:o,componentName:d}=e,{allowForAnyChildren:f=!1}=t||{},h=[];de.Children.forEach(n,M=>{if(!fr(M,s)&&!fr(M,r)&&!fr(M,l)){M&&!f&&mr(UP(d));return}const{props:L}=M,{children:$,label:G,url:z,labelIcon:ne}=L;if(fr(M,s))if(nE(L,o))h.push({label:G});else if(V1(L))h.push({label:G,labelIcon:ne,children:$,url:z});else{mr(zP(d));return}if(fr(M,r))if(K1(L))h.push({label:G,labelIcon:ne,url:z});else{mr(FP(d));return}});const p=[],g=[],y=[];h.forEach((M,L)=>{if(V1(M)){p.push({component:M.children,id:L}),g.push({component:M.labelIcon,id:L});return}K1(M)&&y.push({component:M.labelIcon,id:L})});const T=Oo(p),w=Oo(g),x=Oo(y),R=[],C=[];return h.forEach((M,L)=>{if(nE(M,o)){R.push({label:M.label});return}if(V1(M)){const{portal:$,mount:G,unmount:z}=T.find(j=>j.id===L),{portal:ne,mount:ce,unmount:Q}=w.find(j=>j.id===L);R.push({label:M.label,url:M.url,mount:G,unmount:z,mountIcon:ce,unmountIcon:Q}),C.push($),C.push(ne);return}if(K1(M)){const{portal:$,mount:G,unmount:z}=x.find(ne=>ne.id===L);R.push({label:M.label,url:M.url,mountIcon:G,unmountIcon:z}),C.push($);return}}),{customPages:R,customPagesPortals:C}},nE=(e,t)=>{const{children:n,label:r,url:s,labelIcon:l}=e;return!n&&!s&&!l&&t.some(o=>o===r)},V1=e=>{const{children:t,label:n,url:r,labelIcon:s}=e;return!!t&&!!r&&!!s&&!!n},K1=e=>{const{children:t,label:n,url:r,labelIcon:s}=e;return!t&&!!r&&!!s&&!!n},iU=(e,t)=>{var n;return sU({children:e,reorderItemsLabels:["manageAccount","signOut"],MenuItemsComponent:Hd,MenuActionComponent:Tv,MenuLinkComponent:_v,UserProfileLinkComponent:tc,UserProfilePageComponent:ec,allowForAnyChildren:(n=t==null?void 0:t.allowForAnyChildren)!=null?n:!1})},sU=({children:e,MenuItemsComponent:t,MenuActionComponent:n,MenuLinkComponent:r,UserProfileLinkComponent:s,UserProfilePageComponent:l,reorderItemsLabels:o,allowForAnyChildren:d=!1})=>{const f=[],h=[],p=[];de.Children.forEach(e,x=>{if(!fr(x,t)&&!fr(x,s)&&!fr(x,l)){x&&!d&&mr(HP);return}if(fr(x,s)||fr(x,l))return;const{props:R}=x;de.Children.forEach(R.children,C=>{if(!fr(C,n)&&!fr(C,r)){C&&mr(qP);return}const{props:M}=C,{label:L,labelIcon:$,href:G,onClick:z,open:ne}=M;if(fr(C,n))if(rE(M,o))f.push({label:L});else if($1(M)){const ce={label:L,labelIcon:$};if(z!==void 0)f.push({...ce,onClick:z});else if(ne!==void 0)f.push({...ce,open:ne.startsWith("/")?ne:`/${ne}`});else{mr("Custom menu item must have either onClick or open property");return}}else{mr(KP);return}if(fr(C,r))if(W1(M))f.push({label:L,labelIcon:$,href:G});else{mr(VP);return}})});const g=[],y=[];f.forEach((x,R)=>{$1(x)&&g.push({component:x.labelIcon,id:R}),W1(x)&&y.push({component:x.labelIcon,id:R})});const T=Oo(g),w=Oo(y);return f.forEach((x,R)=>{if(rE(x,o)&&h.push({label:x.label}),$1(x)){const{portal:C,mount:M,unmount:L}=T.find(G=>G.id===R),$={label:x.label,mountIcon:M,unmountIcon:L};"onClick"in x?$.onClick=x.onClick:"open"in x&&($.open=x.open),h.push($),p.push(C)}if(W1(x)){const{portal:C,mount:M,unmount:L}=w.find($=>$.id===R);h.push({label:x.label,href:x.href,mountIcon:M,unmountIcon:L}),p.push(C)}}),{customMenuItems:h,customMenuItemsPortals:p}},rE=(e,t)=>{const{children:n,label:r,onClick:s,labelIcon:l}=e;return!n&&!s&&!l&&t.some(o=>o===r)},$1=e=>{const{label:t,labelIcon:n,onClick:r,open:s}=e;return!!n&&!!t&&(typeof r=="function"||typeof s=="string")},W1=e=>{const{label:t,href:n,labelIcon:r}=e;return!!n&&!!r&&!!t},lU=e=>{const t=e==null?void 0:e.isReady;return n=>new Promise((r,s)=>{const{root:l=document==null?void 0:document.body,selector:o,timeout:d=0}=n;if(!l){s(new Error("No root element provided"));return}let f=l;if(o&&(f=l==null?void 0:l.querySelector(o)),t(f,o)){r();return}const h=new MutationObserver(p=>{for(const g of p)if(!f&&o&&(f=l==null?void 0:l.querySelector(o)),(e.childList&&g.type==="childList"||e.attributes&&g.type==="attributes")&&t(f,o)){h.disconnect(),r();return}});h.observe(l,e),d>0&&setTimeout(()=>{h.disconnect(),s(new Error(`Timeout waiting for ${o}`))},d)})},uU=lU({childList:!0,subtree:!0,isReady:(e,t)=>{var n;return!!(e!=null&&e.childElementCount)&&((n=e==null?void 0:e.matches)==null?void 0:n.call(e,t))&&e.childElementCount>0}});function br(e,t){const n=V.useRef(),[r,s]=V.useState("rendering");return V.useEffect(()=>{if(!e)throw new Error("Clerk: no component name provided, unable to detect mount.");if(typeof window<"u"&&!n.current){const l=`[data-clerk-component="${e}"]`,o=t==null?void 0:t.selector;n.current=uU({selector:o?l+o:l}).then(()=>{s("rendered")}).catch(()=>{s("error")})}},[e,t==null?void 0:t.selector]),r}var B0=e=>"mount"in e,aE=e=>"open"in e,iE=e=>e==null?void 0:e.map(({mountIcon:t,unmountIcon:n,...r})=>r),Xn=class extends de.PureComponent{constructor(){super(...arguments),this.rootRef=de.createRef()}componentDidUpdate(e){var t,n,r,s;if(!B0(e)||!B0(this.props))return;const l=tE(e.props,"customPages","customMenuItems","children"),o=tE(this.props.props,"customPages","customMenuItems","children"),d=((t=l.customPages)==null?void 0:t.length)!==((n=o.customPages)==null?void 0:n.length),f=((r=l.customMenuItems)==null?void 0:r.length)!==((s=o.customMenuItems)==null?void 0:s.length),h=iE(e.props.customMenuItems),p=iE(this.props.props.customMenuItems);(!X6(l,o)||!X6(h,p)||d||f)&&this.rootRef.current&&this.props.updateProps({node:this.rootRef.current,props:this.props.props})}componentDidMount(){this.rootRef.current&&(B0(this.props)&&this.props.mount(this.rootRef.current,this.props.props),aE(this.props)&&this.props.open(this.props.props))}componentWillUnmount(){this.rootRef.current&&(B0(this.props)&&this.props.unmount(this.rootRef.current),aE(this.props)&&this.props.close())}render(){const{hideRootHtmlElement:e=!1}=this.props,t={ref:this.rootRef,...this.props.rootProps,...this.props.component&&{"data-clerk-component":this.props.component}};return de.createElement(de.Fragment,null,!e&&de.createElement("div",{...t}),this.props.children)}},Fd=e=>{var t,n;return de.createElement(de.Fragment,null,(t=e==null?void 0:e.customPagesPortals)==null?void 0:t.map((r,s)=>V.createElement(r,{key:s})),(n=e==null?void 0:e.customMenuItemsPortals)==null?void 0:n.map((r,s)=>V.createElement(r,{key:s})))},oU=Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountSignIn,unmount:e.unmountSignIn,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"SignIn",renderWhileLoading:!0}),cU=Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountSignUp,unmount:e.unmountSignUp,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"SignUp",renderWhileLoading:!0});function ec({children:e}){return mr(IP),de.createElement(de.Fragment,null,e)}function tc({children:e}){return mr(LP),de.createElement(de.Fragment,null,e)}var dU=Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}},{customPages:d,customPagesPortals:f}=gv(r.children);return de.createElement(de.Fragment,null,l&&n,de.createElement(Xn,{component:t,mount:e.mountUserProfile,unmount:e.unmountUserProfile,updateProps:e.__unstable__updateProps,props:{...r,customPages:d},rootProps:o},de.createElement(Fd,{customPagesPortals:f})))},{component:"UserProfile",renderWhileLoading:!0});Object.assign(dU,{Page:ec,Link:tc});var vv=V.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),fU=Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}},{customPages:d,customPagesPortals:f}=gv(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),h={...r.userProfileProps,customPages:d},{customMenuItems:p,customMenuItemsPortals:g}=iU(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),y=Ev(r.children),T={mount:e.mountUserButton,unmount:e.unmountUserButton,updateProps:e.__unstable__updateProps,props:{...r,userProfileProps:h,customMenuItems:p}},w={customPagesPortals:f,customMenuItemsPortals:g};return de.createElement(vv.Provider,{value:T},l&&n,e.loaded&&de.createElement(Xn,{component:t,...T,hideRootHtmlElement:!!r.__experimental_asProvider,rootProps:o},r.__experimental_asProvider?y:null,de.createElement(Fd,{...w})))},{component:"UserButton",renderWhileLoading:!0});function Hd({children:e}){return mr(jP),de.createElement(de.Fragment,null,e)}function Tv({children:e}){return mr(YP),de.createElement(de.Fragment,null,e)}function _v({children:e}){return mr(GP),de.createElement(de.Fragment,null,e)}function hU(e){const t=V.useContext(vv),n={...t,props:{...t.props,...e}};return de.createElement(Xn,{...n})}var mU=Object.assign(fU,{UserProfilePage:ec,UserProfileLink:tc,MenuItems:Hd,Action:Tv,Link:_v,__experimental_Outlet:hU});function qd({children:e}){return mr(BP),de.createElement(de.Fragment,null,e)}function jd({children:e}){return mr(PP),de.createElement(de.Fragment,null,e)}var pU=Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}},{customPages:d,customPagesPortals:f}=bv(r.children);return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountOrganizationProfile,unmount:e.unmountOrganizationProfile,updateProps:e.__unstable__updateProps,props:{...r,customPages:d},rootProps:o},de.createElement(Fd,{customPagesPortals:f})))},{component:"OrganizationProfile",renderWhileLoading:!0});Object.assign(pU,{Page:qd,Link:jd});Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountCreateOrganization,unmount:e.unmountCreateOrganization,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"CreateOrganization",renderWhileLoading:!0});var Sv=V.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),gU=Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}},{customPages:d,customPagesPortals:f}=bv(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),h={...r.organizationProfileProps,customPages:d},p=Ev(r.children),g={mount:e.mountOrganizationSwitcher,unmount:e.unmountOrganizationSwitcher,updateProps:e.__unstable__updateProps,props:{...r,organizationProfileProps:h},rootProps:o,component:t};return e.__experimental_prefetchOrganizationSwitcher(),de.createElement(Sv.Provider,{value:g},de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{...g,hideRootHtmlElement:!!r.__experimental_asProvider},r.__experimental_asProvider?p:null,de.createElement(Fd,{customPagesPortals:f}))))},{component:"OrganizationSwitcher",renderWhileLoading:!0});function bU(e){const t=V.useContext(Sv),n={...t,props:{...t.props,...e}};return de.createElement(Xn,{...n})}Object.assign(gU,{OrganizationProfilePage:qd,OrganizationProfileLink:jd,__experimental_Outlet:bU});Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountOrganizationList,unmount:e.unmountOrganizationList,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"OrganizationList",renderWhileLoading:!0});Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,open:e.openGoogleOneTap,close:e.closeGoogleOneTap,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"GoogleOneTap",renderWhileLoading:!0});Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountWaitlist,unmount:e.unmountWaitlist,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"Waitlist",renderWhileLoading:!0});var EU=Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t,{selector:'[data-component-status="ready"]'})==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountPricingTable,unmount:e.unmountPricingTable,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"PricingTable",renderWhileLoading:!0});Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountAPIKeys,unmount:e.unmountAPIKeys,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"ApiKeys",renderWhileLoading:!0});Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountUserAvatar,unmount:e.unmountUserAvatar,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"UserAvatar",renderWhileLoading:!0});Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountTaskChooseOrganization,unmount:e.unmountTaskChooseOrganization,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"TaskChooseOrganization",renderWhileLoading:!0});Vt(({clerk:e,component:t,fallback:n,...r})=>{const l=br(t)==="rendering"||!e.loaded,o={...l&&n&&{style:{display:"none"}}};return de.createElement(de.Fragment,null,l&&n,e.loaded&&de.createElement(Xn,{component:t,mount:e.mountTaskResetPassword,unmount:e.unmountTaskResetPassword,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"TaskResetPassword",renderWhileLoading:!0});var xv=e=>{throw TypeError(e)},Vp=(e,t,n)=>t.has(e)||xv("Cannot "+n),un=(e,t,n)=>(Vp(e,t,"read from private field"),n?n.call(e):t.get(e)),rs=(e,t,n)=>t.has(e)?xv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Hs=(e,t,n,r)=>(Vp(e,t,"write to private field"),t.set(e,n),n),X1=(e,t,n)=>(Vp(e,t,"access private method"),n);const yU={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},vU=100,Av=async e=>new Promise(t=>setTimeout(t,e)),wv=(e,t)=>t?e*(1+Math.random()):e,TU=e=>{let t=0;const n=()=>{const r=e.initialDelay,s=e.factor;let l=r*Math.pow(s,t);return l=wv(l,e.jitter),Math.min(e.maxDelayBetweenRetries||l,l)};return async()=>{await Av(n()),t++}},_U=async(e,t={})=>{let n=0;const{shouldRetry:r,initialDelay:s,maxDelayBetweenRetries:l,factor:o,retryImmediately:d,jitter:f,onBeforeRetry:h}={...yU,...t},p=TU({initialDelay:s,maxDelayBetweenRetries:l,factor:o,jitter:f});for(;;)try{return await e()}catch(g){if(n++,!r(g,n))throw g;h&&await h(n),d&&n===1?await Av(wv(vU,f)):await p()}},SU="loadScript cannot be called when document does not exist",xU="loadScript cannot be called without a src";async function AU(e="",t){const{async:n,defer:r,beforeLoad:s,crossOrigin:l,nonce:o}=t||{};return _U(()=>new Promise((f,h)=>{e||h(new Error(xU)),(!document||!document.body)&&h(new Error(SU));const p=document.createElement("script");l&&p.setAttribute("crossorigin",l),p.async=n||!1,p.defer=r||!1,p.addEventListener("load",()=>{p.remove(),f(p)}),p.addEventListener("error",g=>{p.remove(),h(g.error??new Error(`failed to load script: ${e}`))}),p.src=e,p.nonce=o,s==null||s(p),document.body.appendChild(p)}),{shouldRetry:(f,h)=>h<=5})}function wU(e){return e?CU(e)||Cv(e):!0}function CU(e){return/^http(s)?:\/\//.test(e||"")}function Cv(e){return e.startsWith("/")}function kU(e){return e?Cv(e)?new URL(e,window.location.origin).toString():e:""}function NU(e){if(!e)return"";let t;if(e.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;else{if(e.match(/\.clerk.accounts/))return e;t=/^(clerk\.)*/gi}return`clerk.${e.replace(t,"")}`}const OU=(e,t="5.114.0")=>{if(e)return e;const n=RU(t);return n?n==="snapshot"?"5.114.0":n:MU(t)},RU=e=>{var t;return(t=e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/))==null?void 0:t[1]},MU=e=>e.trim().replace(/^v/,"").split(".")[0],kv="failed_to_load_clerk_js",DU="failed_to_load_clerk_js_timeout",Pm="Failed to load Clerk",{isDevOrStagingUrl:IU}=AB(),Nv=W8({packageName:"@clerk/shared"});function LU(e){Nv.setPackageName({packageName:e})}function Um(){if(typeof window>"u"||!window.Clerk)return!1;const e=window.Clerk;return typeof e=="object"&&typeof e.load=="function"}function BU(e){if(typeof window>"u"||!window.performance)return!1;const t=performance.getEntriesByName(e,"resource");if(t.length===0)return!1;const n=t[t.length-1];return n.transferSize===0&&n.decodedBodySize===0&&(n.responseEnd===0||n.responseEnd>0&&n.responseStart>0||"responseStatus"in n&&(n.responseStatus>=400||n.responseStatus===0))}function sE(e,t){return new Promise((n,r)=>{let s=!1;const l=(p,g)=>{clearTimeout(p),clearInterval(g)};t==null||t.addEventListener("error",()=>{l(f,h),r(new Cm(Pm,{code:kv}))});const o=()=>{s||Um()&&(s=!0,l(f,h),n(null))},f=setTimeout(()=>{s||(s=!0,l(f,h),Um()?n(null):r(new Cm(Pm,{code:DU})))},e);o();const h=setInterval(()=>{if(s){clearInterval(h);return}o()},100)})}const PU=async e=>{const t=(e==null?void 0:e.scriptLoadTimeout)??15e3;if(Um())return null;if(!(e!=null&&e.publishableKey))return Nv.throwMissingPublishableKeyError(),null;const n=UU(e),r=document.querySelector("script[data-clerk-js-script]");if(r)if(BU(n))r.remove();else try{return await sE(t,r),null}catch{r.remove()}const s=sE(t);return AU(n,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:FU(e)}).catch(l=>{throw new Cm(Pm+(l.message?`, ${l.message}`:""),{code:kv,cause:l})}),s},UU=e=>{var p,g;const{clerkJSUrl:t,clerkJSVariant:n,clerkJSVersion:r,proxyUrl:s,domain:l,publishableKey:o}=e;if(t)return t;let d="";s&&wU(s)?d=kU(s).replace(/http(s)?:\/\//,""):l&&!IU(((p=z6(o))==null?void 0:p.frontendApi)||"")?d=NU(l):d=((g=z6(o))==null?void 0:g.frontendApi)||"";const f=n?`${n.replace(/\.+$/,"")}.`:"",h=OU(r);return`https://${d}/npm/@clerk/clerk-js@${h}/dist/clerk.${f}browser.js`},zU=e=>{const t={};return e.publishableKey&&(t["data-clerk-publishable-key"]=e.publishableKey),e.proxyUrl&&(t["data-clerk-proxy-url"]=e.proxyUrl),e.domain&&(t["data-clerk-domain"]=e.domain),e.nonce&&(t.nonce=e.nonce),t},FU=e=>t=>{const n=zU(e);for(const r in n)t.setAttribute(r,n[r])},HU=(e,t,n)=>!e&&n?qU(n):jU(t),qU=e=>{const t=e.userId,n=e.user,r=e.sessionId,s=e.sessionStatus,l=e.sessionClaims;return{userId:t,user:n,sessionId:r,session:e.session,sessionStatus:s,sessionClaims:l,organization:e.organization,orgId:e.orgId,orgRole:e.orgRole,orgPermissions:e.orgPermissions,orgSlug:e.orgSlug,actor:e.actor,factorVerificationAge:e.factorVerificationAge}},jU=e=>{var w,x,R,C;const t=e.user?e.user.id:e.user,n=e.user,r=e.session?e.session.id:e.session,s=e.session,l=(w=e.session)==null?void 0:w.status,o=e.session?(R=(x=e.session.lastActiveToken)==null?void 0:x.jwt)==null?void 0:R.claims:null,d=e.session?e.session.factorVerificationAge:null,f=s==null?void 0:s.actor,h=e.organization,p=e.organization?e.organization.id:e.organization,g=h==null?void 0:h.slug,y=h&&((C=n==null?void 0:n.organizationMemberships)==null?void 0:C.find(M=>M.organization.id===p)),T=y&&y.permissions;return{userId:t,user:n,sessionId:r,session:s,sessionStatus:l,sessionClaims:o,organization:h,orgId:p,orgRole:y&&y.role,orgSlug:g,orgPermissions:T,actor:f,factorVerificationAge:d}};function md(){return typeof window<"u"}const lE=(e,t,n,r,s)=>{const{notify:l}=s||{};let o=e.get(n);o||(o=[],e.set(n,o)),o.push(r),l&&t.has(n)&&r(t.get(n))},uE=(e,t,n)=>(e.get(t)||[]).map(r=>r(n)),oE=(e,t,n)=>{const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},YU=()=>{const e=new Map,t=new Map,n=new Map;return{on:(...s)=>lE(e,t,...s),prioritizedOn:(...s)=>lE(n,t,...s),emit:(s,l)=>{t.set(s,l),uE(n,s,l),uE(e,s,l)},off:(...s)=>oE(e,...s),prioritizedOff:(...s)=>oE(n,...s),internal:{retrieveListeners:s=>e.get(s)||[]}}},P0={Status:"status"},GU=()=>YU();typeof window<"u"&&!window.global&&(window.global=typeof global>"u"?window:global);Vt(({clerk:e,children:t,...n})=>{const{signUpFallbackRedirectUrl:r,forceRedirectUrl:s,fallbackRedirectUrl:l,signUpForceRedirectUrl:o,mode:d,initialValues:f,withSignUp:h,oauthFlow:p,...g}=n;t=Zs(t,"Sign in");const y=Qs(t)("SignInButton"),T=()=>{const R={forceRedirectUrl:s,fallbackRedirectUrl:l,signUpFallbackRedirectUrl:r,signUpForceRedirectUrl:o,initialValues:f,withSignUp:h,oauthFlow:p};return d==="modal"?e.openSignIn({...R,appearance:n.appearance}):e.redirectToSignIn({...R,signInFallbackRedirectUrl:l,signInForceRedirectUrl:s})},x={...g,onClick:async R=>(y&&typeof y=="object"&&"props"in y&&await Js(y.props.onClick)(R),T())};return de.cloneElement(y,x)},{component:"SignInButton",renderWhileLoading:!0});Vt(({clerk:e,children:t,...n})=>{const{redirectUrl:r,...s}=n;t=Zs(t,"Sign in with Metamask");const l=Qs(t)("SignInWithMetamaskButton"),o=async()=>{async function h(){await e.authenticateWithMetamask({redirectUrl:r||void 0})}h()},f={...s,onClick:async h=>(await Js(l.props.onClick)(h),o())};return de.cloneElement(l,f)},{component:"SignInWithMetamask",renderWhileLoading:!0});Vt(({clerk:e,children:t,...n})=>{const{redirectUrl:r="/",signOutOptions:s,...l}=n;t=Zs(t,"Sign out");const o=Qs(t)("SignOutButton"),d=()=>e.signOut({redirectUrl:r,...s}),h={...l,onClick:async p=>(await Js(o.props.onClick)(p),d())};return de.cloneElement(o,h)},{component:"SignOutButton",renderWhileLoading:!0});Vt(({clerk:e,children:t,...n})=>{const{fallbackRedirectUrl:r,forceRedirectUrl:s,signInFallbackRedirectUrl:l,signInForceRedirectUrl:o,mode:d,initialValues:f,oauthFlow:h,...p}=n;t=Zs(t,"Sign up");const g=Qs(t)("SignUpButton"),y=()=>{const x={fallbackRedirectUrl:r,forceRedirectUrl:s,signInFallbackRedirectUrl:l,signInForceRedirectUrl:o,initialValues:f,oauthFlow:h};return d==="modal"?e.openSignUp({...x,appearance:n.appearance,unsafeMetadata:n.unsafeMetadata}):e.redirectToSignUp({...x,signUpFallbackRedirectUrl:r,signUpForceRedirectUrl:s})},w={...p,onClick:async x=>(g&&typeof g=="object"&&"props"in g&&await Js(g.props.onClick)(x),y())};return de.cloneElement(g,w)},{component:"SignUpButton",renderWhileLoading:!0});var VU=()=>({fields:{identifier:null,password:null,code:null},raw:null,global:null}),KU=()=>({fields:{firstName:null,lastName:null,emailAddress:null,phoneNumber:null,password:null,username:null,code:null,captcha:null,legalAccepted:null},raw:null,global:null}),$U=class{constructor(e){this.isomorphicClerk=e,this.signInSignalProxy=this.buildSignInProxy(),this.signUpSignalProxy=this.buildSignUpProxy()}signInSignal(){return this.signInSignalProxy}signUpSignal(){return this.signUpSignalProxy}buildSignInProxy(){const e=this.gateProperty.bind(this),t=()=>this.client.signIn.__internal_future;return{errors:VU(),fetchStatus:"idle",signIn:{status:"needs_identifier",availableStrategies:[],isTransferable:!1,get id(){return e(t,"id",void 0)},get supportedFirstFactors(){return e(t,"supportedFirstFactors",[])},get supportedSecondFactors(){return e(t,"supportedSecondFactors",[])},get secondFactorVerification(){return e(t,"secondFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")}})},get identifier(){return e(t,"identifier",null)},get createdSessionId(){return e(t,"createdSessionId",null)},get userData(){return e(t,"userData",{})},get firstFactorVerification(){return e(t,"firstFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")}})},create:this.gateMethod(t,"create"),password:this.gateMethod(t,"password"),sso:this.gateMethod(t,"sso"),finalize:this.gateMethod(t,"finalize"),emailCode:this.wrapMethods(()=>t().emailCode,["sendCode","verifyCode"]),emailLink:this.wrapStruct(()=>t().emailLink,["sendLink","waitForVerification"],["verification"],{verification:null}),resetPasswordEmailCode:this.wrapMethods(()=>t().resetPasswordEmailCode,["sendCode","verifyCode","submitPassword"]),phoneCode:this.wrapMethods(()=>t().phoneCode,["sendCode","verifyCode"]),mfa:this.wrapMethods(()=>t().mfa,["sendPhoneCode","verifyPhoneCode","verifyTOTP","verifyBackupCode"]),ticket:this.gateMethod(t,"ticket"),passkey:this.gateMethod(t,"passkey"),web3:this.gateMethod(t,"web3")}}}buildSignUpProxy(){const e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),n=this.wrapMethods.bind(this),r=()=>this.client.signUp.__internal_future;return{errors:KU(),fetchStatus:"idle",signUp:{get id(){return e(r,"id",void 0)},get requiredFields(){return e(r,"requiredFields",[])},get optionalFields(){return e(r,"optionalFields",[])},get missingFields(){return e(r,"missingFields",[])},get username(){return e(r,"username",null)},get firstName(){return e(r,"firstName",null)},get lastName(){return e(r,"lastName",null)},get emailAddress(){return e(r,"emailAddress",null)},get phoneNumber(){return e(r,"phoneNumber",null)},get web3Wallet(){return e(r,"web3Wallet",null)},get hasPassword(){return e(r,"hasPassword",!1)},get unsafeMetadata(){return e(r,"unsafeMetadata",{})},get createdSessionId(){return e(r,"createdSessionId",null)},get createdUserId(){return e(r,"createdUserId",null)},get abandonAt(){return e(r,"abandonAt",null)},get legalAcceptedAt(){return e(r,"legalAcceptedAt",null)},get locale(){return e(r,"locale",null)},get status(){return e(r,"status","missing_requirements")},get unverifiedFields(){return e(r,"unverifiedFields",[])},get isTransferable(){return e(r,"isTransferable",!1)},create:t(r,"create"),update:t(r,"update"),sso:t(r,"sso"),password:t(r,"password"),ticket:t(r,"ticket"),web3:t(r,"web3"),finalize:t(r,"finalize"),verifications:n(()=>r().verifications,["sendEmailCode","verifyEmailCode","sendPhoneCode","verifyPhoneCode"])}}}__internal_effect(e){throw new Error("__internal_effect called before Clerk is loaded")}__internal_computed(e){throw new Error("__internal_computed called before Clerk is loaded")}get client(){const e=this.isomorphicClerk.client;if(!e)throw new Error("Clerk client not ready");return e}gateProperty(e,t,n){return!md()||!this.isomorphicClerk.loaded?n:e()[t]}gateMethod(e,t){return async(...n)=>{if(!md())return ya.throw(`Attempted to call a method (${t}) that is not supported on the server.`);this.isomorphicClerk.loaded||await new Promise(s=>this.isomorphicClerk.addOnLoaded(s));const r=e();return r[t].apply(r,n)}}wrapMethods(e,t){return Object.fromEntries(t.map(n=>[n,this.gateMethod(e,n)]))}wrapStruct(e,t,n,r){const s={};for(const l of t)s[l]=this.gateMethod(e,l);for(const l of n)Object.defineProperty(s,l,{get:()=>this.gateProperty(e,l,r[l]),enumerable:!0});return s}};typeof globalThis.__BUILD_DISABLE_RHC__>"u"&&(globalThis.__BUILD_DISABLE_RHC__=!1);var WU={name:"@clerk/clerk-react",version:"5.58.1",environment:"production"},$0,Ul,zl,as,Na,W0,is,yo,X0,Ov=class Rv{constructor(t){rs(this,yo),this.clerkjs=null,this.preopenOneTap=null,this.preopenUserVerification=null,this.preopenEnableOrganizationsPrompt=null,this.preopenSignIn=null,this.preopenCheckout=null,this.preopenPlanDetails=null,this.preopenSubscriptionDetails=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenCreateOrganization=null,this.preOpenWaitlist=null,this.premountSignInNodes=new Map,this.premountSignUpNodes=new Map,this.premountUserAvatarNodes=new Map,this.premountUserProfileNodes=new Map,this.premountUserButtonNodes=new Map,this.premountOrganizationProfileNodes=new Map,this.premountCreateOrganizationNodes=new Map,this.premountOrganizationSwitcherNodes=new Map,this.premountOrganizationListNodes=new Map,this.premountMethodCalls=new Map,this.premountWaitlistNodes=new Map,this.premountPricingTableNodes=new Map,this.premountAPIKeysNodes=new Map,this.premountOAuthConsentNodes=new Map,this.premountTaskChooseOrganizationNodes=new Map,this.premountTaskResetPasswordNodes=new Map,this.premountAddListenerCalls=new Map,this.loadedListeners=[],rs(this,$0,"loading"),rs(this,Ul),rs(this,zl),rs(this,as),rs(this,Na,GU()),rs(this,W0),this.buildSignInUrl=s=>{const l=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildSignInUrl(s))||""};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("buildSignInUrl",l)},this.buildSignUpUrl=s=>{const l=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildSignUpUrl(s))||""};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("buildSignUpUrl",l)},this.buildAfterSignInUrl=(...s)=>{const l=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildAfterSignInUrl(...s))||""};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("buildAfterSignInUrl",l)},this.buildAfterSignUpUrl=(...s)=>{const l=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildAfterSignUpUrl(...s))||""};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("buildAfterSignUpUrl",l)},this.buildAfterSignOutUrl=()=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildAfterSignOutUrl())||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildAfterSignOutUrl",s)},this.buildNewSubscriptionRedirectUrl=()=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildNewSubscriptionRedirectUrl())||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildNewSubscriptionRedirectUrl",s)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildAfterMultiSessionSingleSignOutUrl())||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",s)},this.buildUserProfileUrl=()=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildUserProfileUrl())||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildUserProfileUrl",s)},this.buildCreateOrganizationUrl=()=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildCreateOrganizationUrl())||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildCreateOrganizationUrl",s)},this.buildOrganizationProfileUrl=()=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildOrganizationProfileUrl())||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildOrganizationProfileUrl",s)},this.buildWaitlistUrl=()=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildWaitlistUrl())||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildWaitlistUrl",s)},this.buildTasksUrl=()=>{const s=()=>{var l;return((l=this.clerkjs)==null?void 0:l.buildTasksUrl())||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildTasksUrl",s)},this.buildUrlWithAuth=s=>{const l=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildUrlWithAuth(s))||""};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("buildUrlWithAuth",l)},this.handleUnauthenticated=async()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.handleUnauthenticated()};this.clerkjs&&this.loaded?s():this.premountMethodCalls.set("handleUnauthenticated",s)},this.on=(...s)=>{var l;if((l=this.clerkjs)!=null&&l.on)return this.clerkjs.on(...s);un(this,Na).on(...s)},this.off=(...s)=>{var l;if((l=this.clerkjs)!=null&&l.off)return this.clerkjs.off(...s);un(this,Na).off(...s)},this.addOnLoaded=s=>{this.loadedListeners.push(s),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>{this.loadedListeners.forEach(s=>s()),this.loadedListeners=[]},this.beforeLoad=s=>{if(!s)throw new Error("Failed to hydrate latest Clerk JS")},this.hydrateClerkJS=s=>{var l,o;if(!s)throw new Error("Failed to hydrate latest Clerk JS");return this.clerkjs=s,this.premountMethodCalls.forEach(d=>d()),this.premountAddListenerCalls.forEach((d,f)=>{d.nativeUnsubscribe=s.addListener(f)}),(l=un(this,Na).internal.retrieveListeners("status"))==null||l.forEach(d=>{this.on("status",d,{notify:!0})}),(o=un(this,Na).internal.retrieveListeners("queryClientStatus"))==null||o.forEach(d=>{this.on("queryClientStatus",d,{notify:!0})}),this.preopenSignIn!==null&&s.openSignIn(this.preopenSignIn),this.preopenCheckout!==null&&s.__internal_openCheckout(this.preopenCheckout),this.preopenPlanDetails!==null&&s.__internal_openPlanDetails(this.preopenPlanDetails),this.preopenSubscriptionDetails!==null&&s.__internal_openSubscriptionDetails(this.preopenSubscriptionDetails),this.preopenSignUp!==null&&s.openSignUp(this.preopenSignUp),this.preopenUserProfile!==null&&s.openUserProfile(this.preopenUserProfile),this.preopenUserVerification!==null&&s.__internal_openReverification(this.preopenUserVerification),this.preopenOneTap!==null&&s.openGoogleOneTap(this.preopenOneTap),this.preopenOrganizationProfile!==null&&s.openOrganizationProfile(this.preopenOrganizationProfile),this.preopenCreateOrganization!==null&&s.openCreateOrganization(this.preopenCreateOrganization),this.preOpenWaitlist!==null&&s.openWaitlist(this.preOpenWaitlist),this.preopenEnableOrganizationsPrompt&&s.__internal_openEnableOrganizationsPrompt(this.preopenEnableOrganizationsPrompt),this.premountSignInNodes.forEach((d,f)=>{s.mountSignIn(f,d)}),this.premountSignUpNodes.forEach((d,f)=>{s.mountSignUp(f,d)}),this.premountUserProfileNodes.forEach((d,f)=>{s.mountUserProfile(f,d)}),this.premountUserAvatarNodes.forEach((d,f)=>{s.mountUserAvatar(f,d)}),this.premountUserButtonNodes.forEach((d,f)=>{s.mountUserButton(f,d)}),this.premountOrganizationListNodes.forEach((d,f)=>{s.mountOrganizationList(f,d)}),this.premountWaitlistNodes.forEach((d,f)=>{s.mountWaitlist(f,d)}),this.premountPricingTableNodes.forEach((d,f)=>{s.mountPricingTable(f,d)}),this.premountAPIKeysNodes.forEach((d,f)=>{s.mountAPIKeys(f,d)}),this.premountOAuthConsentNodes.forEach((d,f)=>{s.__internal_mountOAuthConsent(f,d)}),this.premountTaskChooseOrganizationNodes.forEach((d,f)=>{s.mountTaskChooseOrganization(f,d)}),this.premountTaskResetPasswordNodes.forEach((d,f)=>{s.mountTaskResetPassword(f,d)}),typeof this.clerkjs.status>"u"&&un(this,Na).emit(P0.Status,"ready"),this.emitLoaded(),this.clerkjs},this.__experimental_checkout=(...s)=>{var l;return(l=this.clerkjs)==null?void 0:l.__experimental_checkout(...s)},this.__unstable__updateProps=async s=>{const l=await X1(this,yo,X0).call(this);if(l&&"__unstable__updateProps"in l)return l.__unstable__updateProps(s)},this.setActive=s=>this.clerkjs?this.clerkjs.setActive(s):Promise.reject(),this.openSignIn=s=>{this.clerkjs&&this.loaded?this.clerkjs.openSignIn(s):this.preopenSignIn=s},this.closeSignIn=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__internal_openCheckout=s=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openCheckout(s):this.preopenCheckout=s},this.__internal_closeCheckout=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeCheckout():this.preopenCheckout=null},this.__internal_openPlanDetails=s=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openPlanDetails(s):this.preopenPlanDetails=s},this.__internal_closePlanDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closePlanDetails():this.preopenPlanDetails=null},this.__internal_openSubscriptionDetails=s=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openSubscriptionDetails(s):this.preopenSubscriptionDetails=s??null},this.__internal_closeSubscriptionDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeSubscriptionDetails():this.preopenSubscriptionDetails=null},this.__internal_openReverification=s=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openReverification(s):this.preopenUserVerification=s},this.__internal_closeReverification=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeReverification():this.preopenUserVerification=null},this.__internal_openEnableOrganizationsPrompt=s=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openEnableOrganizationsPrompt(s):this.preopenEnableOrganizationsPrompt=s},this.__internal_closeEnableOrganizationsPrompt=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeEnableOrganizationsPrompt():this.preopenEnableOrganizationsPrompt=null},this.openGoogleOneTap=s=>{this.clerkjs&&this.loaded?this.clerkjs.openGoogleOneTap(s):this.preopenOneTap=s},this.closeGoogleOneTap=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=s=>{this.clerkjs&&this.loaded?this.clerkjs.openUserProfile(s):this.preopenUserProfile=s},this.closeUserProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=s=>{this.clerkjs&&this.loaded?this.clerkjs.openOrganizationProfile(s):this.preopenOrganizationProfile=s},this.closeOrganizationProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openCreateOrganization=s=>{this.clerkjs&&this.loaded?this.clerkjs.openCreateOrganization(s):this.preopenCreateOrganization=s},this.closeCreateOrganization=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openWaitlist=s=>{this.clerkjs&&this.loaded?this.clerkjs.openWaitlist(s):this.preOpenWaitlist=s},this.closeWaitlist=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeWaitlist():this.preOpenWaitlist=null},this.openSignUp=s=>{this.clerkjs&&this.loaded?this.clerkjs.openSignUp(s):this.preopenSignUp=s},this.closeSignUp=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignUp():this.preopenSignUp=null},this.mountSignIn=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignIn(s,l):this.premountSignInNodes.set(s,l)},this.unmountSignIn=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignIn(s):this.premountSignInNodes.delete(s)},this.mountSignUp=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignUp(s,l):this.premountSignUpNodes.set(s,l)},this.unmountSignUp=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignUp(s):this.premountSignUpNodes.delete(s)},this.mountUserAvatar=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserAvatar(s,l):this.premountUserAvatarNodes.set(s,l)},this.unmountUserAvatar=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserAvatar(s):this.premountUserAvatarNodes.delete(s)},this.mountUserProfile=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserProfile(s,l):this.premountUserProfileNodes.set(s,l)},this.unmountUserProfile=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserProfile(s):this.premountUserProfileNodes.delete(s)},this.mountOrganizationProfile=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationProfile(s,l):this.premountOrganizationProfileNodes.set(s,l)},this.unmountOrganizationProfile=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationProfile(s):this.premountOrganizationProfileNodes.delete(s)},this.mountCreateOrganization=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountCreateOrganization(s,l):this.premountCreateOrganizationNodes.set(s,l)},this.unmountCreateOrganization=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountCreateOrganization(s):this.premountCreateOrganizationNodes.delete(s)},this.mountOrganizationSwitcher=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationSwitcher(s,l):this.premountOrganizationSwitcherNodes.set(s,l)},this.unmountOrganizationSwitcher=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationSwitcher(s):this.premountOrganizationSwitcherNodes.delete(s)},this.__experimental_prefetchOrganizationSwitcher=()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.__experimental_prefetchOrganizationSwitcher()};this.clerkjs&&this.loaded?s():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",s)},this.mountOrganizationList=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationList(s,l):this.premountOrganizationListNodes.set(s,l)},this.unmountOrganizationList=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationList(s):this.premountOrganizationListNodes.delete(s)},this.mountUserButton=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserButton(s,l):this.premountUserButtonNodes.set(s,l)},this.unmountUserButton=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserButton(s):this.premountUserButtonNodes.delete(s)},this.mountWaitlist=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountWaitlist(s,l):this.premountWaitlistNodes.set(s,l)},this.unmountWaitlist=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountWaitlist(s):this.premountWaitlistNodes.delete(s)},this.mountPricingTable=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountPricingTable(s,l):this.premountPricingTableNodes.set(s,l)},this.unmountPricingTable=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountPricingTable(s):this.premountPricingTableNodes.delete(s)},this.mountAPIKeys=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountAPIKeys(s,l):this.premountAPIKeysNodes.set(s,l)},this.unmountAPIKeys=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountAPIKeys(s):this.premountAPIKeysNodes.delete(s)},this.__internal_mountOAuthConsent=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountOAuthConsent(s,l):this.premountOAuthConsentNodes.set(s,l)},this.__internal_unmountOAuthConsent=s=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountOAuthConsent(s):this.premountOAuthConsentNodes.delete(s)},this.mountTaskChooseOrganization=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskChooseOrganization(s,l):this.premountTaskChooseOrganizationNodes.set(s,l)},this.unmountTaskChooseOrganization=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskChooseOrganization(s):this.premountTaskChooseOrganizationNodes.delete(s)},this.mountTaskResetPassword=(s,l)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskResetPassword(s,l):this.premountTaskResetPasswordNodes.set(s,l)},this.unmountTaskResetPassword=s=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskResetPassword(s):this.premountTaskResetPasswordNodes.delete(s)},this.addListener=s=>{if(this.clerkjs)return this.clerkjs.addListener(s);{const l=()=>{var o;const d=this.premountAddListenerCalls.get(s);d&&((o=d.nativeUnsubscribe)==null||o.call(d),this.premountAddListenerCalls.delete(s))};return this.premountAddListenerCalls.set(s,{unsubscribe:l,nativeUnsubscribe:void 0}),l}},this.navigate=s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.navigate(s)};this.clerkjs&&this.loaded?l():this.premountMethodCalls.set("navigate",l)},this.redirectWithAuth=async(...s)=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.redirectWithAuth(...s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("redirectWithAuth",l)},this.redirectToSignIn=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.redirectToSignIn(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("redirectToSignIn",l)},this.redirectToSignUp=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.redirectToSignUp(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("redirectToSignUp",l)},this.redirectToUserProfile=async()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToUserProfile()};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToUserProfile",s)},this.redirectToAfterSignUp=()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToAfterSignUp()};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToAfterSignUp",s)},this.redirectToAfterSignIn=()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToAfterSignIn()};this.clerkjs&&this.loaded?s():this.premountMethodCalls.set("redirectToAfterSignIn",s)},this.redirectToAfterSignOut=()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToAfterSignOut()};this.clerkjs&&this.loaded?s():this.premountMethodCalls.set("redirectToAfterSignOut",s)},this.redirectToOrganizationProfile=async()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToOrganizationProfile()};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToOrganizationProfile",s)},this.redirectToCreateOrganization=async()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToCreateOrganization()};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToCreateOrganization",s)},this.redirectToWaitlist=async()=>{const s=()=>{var l;return(l=this.clerkjs)==null?void 0:l.redirectToWaitlist()};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToWaitlist",s)},this.redirectToTasks=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.redirectToTasks(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("redirectToTasks",l)},this.handleRedirectCallback=async s=>{var l;const o=()=>{var d;return(d=this.clerkjs)==null?void 0:d.handleRedirectCallback(s)};this.clerkjs&&this.loaded?(l=o())==null||l.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",o)},this.handleGoogleOneTapCallback=async(s,l)=>{var o;const d=()=>{var f;return(f=this.clerkjs)==null?void 0:f.handleGoogleOneTapCallback(s,l)};this.clerkjs&&this.loaded?(o=d())==null||o.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",d)},this.handleEmailLinkVerification=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.handleEmailLinkVerification(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("handleEmailLinkVerification",l)},this.authenticateWithMetamask=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithMetamask(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("authenticateWithMetamask",l)},this.authenticateWithCoinbaseWallet=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithCoinbaseWallet(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",l)},this.authenticateWithBase=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithBase(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("authenticateWithBase",l)},this.authenticateWithOKXWallet=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithOKXWallet(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("authenticateWithOKXWallet",l)},this.authenticateWithWeb3=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithWeb3(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("authenticateWithWeb3",l)},this.authenticateWithGoogleOneTap=async s=>(await X1(this,yo,X0).call(this)).authenticateWithGoogleOneTap(s),this.__internal_loadStripeJs=async()=>(await X1(this,yo,X0).call(this)).__internal_loadStripeJs(),this.createOrganization=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.createOrganization(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("createOrganization",l)},this.getOrganization=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.getOrganization(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("getOrganization",l)},this.joinWaitlist=async s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.joinWaitlist(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("joinWaitlist",l)},this.signOut=async(...s)=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.signOut(...s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("signOut",l)},this.__internal_attemptToEnableEnvironmentSetting=s=>{const l=()=>{var o;return(o=this.clerkjs)==null?void 0:o.__internal_attemptToEnableEnvironmentSetting(s)};if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting",l)};const{Clerk:n=null,publishableKey:r}=t||{};Hs(this,as,r),Hs(this,zl,t==null?void 0:t.proxyUrl),Hs(this,Ul,t==null?void 0:t.domain),this.options=t,this.Clerk=n,this.mode=md()?"browser":"server",Hs(this,W0,new $U(this)),this.options.sdkMetadata||(this.options.sdkMetadata=WU),un(this,Na).emit(P0.Status,"loading"),un(this,Na).prioritizedOn(P0.Status,s=>Hs(this,$0,s)),un(this,as)&&this.loadClerkJS()}get publishableKey(){return un(this,as)}get loaded(){var t;return((t=this.clerkjs)==null?void 0:t.loaded)||!1}get status(){var t;return this.clerkjs?((t=this.clerkjs)==null?void 0:t.status)||(this.clerkjs.loaded?"ready":"loading"):un(this,$0)}static getOrCreateInstance(t){return(!md()||!un(this,is)||t.Clerk&&un(this,is).Clerk!==t.Clerk||un(this,is).publishableKey!==t.publishableKey)&&Hs(this,is,new Rv(t)),un(this,is)}static clearInstance(){Hs(this,is,null)}get domain(){return typeof window<"u"&&window.location?G1(un(this,Ul),new URL(window.location.href),""):typeof un(this,Ul)=="function"?ya.throw(Y1):un(this,Ul)||""}get proxyUrl(){return typeof window<"u"&&window.location?G1(un(this,zl),new URL(window.location.href),""):typeof un(this,zl)=="function"?ya.throw(Y1):un(this,zl)||""}__internal_getOption(t){var n,r;return(n=this.clerkjs)!=null&&n.__internal_getOption?(r=this.clerkjs)==null?void 0:r.__internal_getOption(t):this.options[t]}get sdkMetadata(){var t;return((t=this.clerkjs)==null?void 0:t.sdkMetadata)||this.options.sdkMetadata||void 0}get instanceType(){var t;return(t=this.clerkjs)==null?void 0:t.instanceType}get frontendApi(){var t;return((t=this.clerkjs)==null?void 0:t.frontendApi)||""}get isStandardBrowser(){var t;return((t=this.clerkjs)==null?void 0:t.isStandardBrowser)||this.options.standardBrowser||!1}get __internal_queryClient(){var t;return(t=this.clerkjs)==null?void 0:t.__internal_queryClient}get isSatellite(){return typeof window<"u"&&window.location?G1(this.options.isSatellite,new URL(window.location.href),!1):typeof this.options.isSatellite=="function"?ya.throw(Y1):!1}async loadClerkJS(){var t;if(!(this.mode!=="browser"||this.loaded)){typeof window<"u"&&(window.__clerk_publishable_key=un(this,as),window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{if(this.Clerk){let n;nU(this.Clerk)?(n=new this.Clerk(un(this,as),{proxyUrl:this.proxyUrl,domain:this.domain}),this.beforeLoad(n),await n.load(this.options)):(n=this.Clerk,n.loaded||(this.beforeLoad(n),await n.load(this.options))),global.Clerk=n}else if(!__BUILD_DISABLE_RHC__){if(global.Clerk||await PU({...this.options,publishableKey:un(this,as),proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),!global.Clerk)throw new Error("Failed to download latest ClerkJS. Contact support@clerk.com.");this.beforeLoad(global.Clerk),await global.Clerk.load(this.options)}return(t=global.Clerk)!=null&&t.loaded?this.hydrateClerkJS(global.Clerk):void 0}catch(n){const r=n;un(this,Na).emit(P0.Status,"error"),console.error(r.stack||r.message||r);return}}}get version(){var t;return(t=this.clerkjs)==null?void 0:t.version}get client(){if(this.clerkjs)return this.clerkjs.client}get session(){if(this.clerkjs)return this.clerkjs.session}get user(){if(this.clerkjs)return this.clerkjs.user}get organization(){if(this.clerkjs)return this.clerkjs.organization}get telemetry(){if(this.clerkjs)return this.clerkjs.telemetry}get __unstable__environment(){if(this.clerkjs)return this.clerkjs.__unstable__environment}get isSignedIn(){return this.clerkjs?this.clerkjs.isSignedIn:!1}get billing(){var t;return(t=this.clerkjs)==null?void 0:t.billing}get __internal_state(){return this.loaded&&this.clerkjs?this.clerkjs.__internal_state:un(this,W0)}get apiKeys(){var t;return(t=this.clerkjs)==null?void 0:t.apiKeys}__unstable__setEnvironment(...t){if(this.clerkjs&&"__unstable__setEnvironment"in this.clerkjs)this.clerkjs.__unstable__setEnvironment(t);else return}};$0=new WeakMap;Ul=new WeakMap;zl=new WeakMap;as=new WeakMap;Na=new WeakMap;W0=new WeakMap;is=new WeakMap;yo=new WeakSet;X0=function(){return new Promise(e=>{this.addOnLoaded(()=>e(this.clerkjs))})};rs(Ov,is);var cE=Ov;function XU(e){const{isomorphicClerkOptions:t,initialState:n,children:r}=e,{isomorphicClerk:s,clerkStatus:l}=QU(t),[o,d]=de.useState({client:s.client,session:s.session,user:s.user,organization:s.organization});de.useEffect(()=>s.addListener(J=>d({...J})),[]);const f=HU(s.loaded,o,n),h=de.useMemo(()=>({value:s}),[l]),p=de.useMemo(()=>({value:o.client}),[o.client]),{sessionId:g,sessionStatus:y,sessionClaims:T,session:w,userId:x,user:R,orgId:C,actor:M,organization:L,orgRole:$,orgSlug:G,orgPermissions:z,factorVerificationAge:ne}=f,ce=de.useMemo(()=>({value:{sessionId:g,sessionStatus:y,sessionClaims:T,userId:x,actor:M,orgId:C,orgRole:$,orgSlug:G,orgPermissions:z,factorVerificationAge:ne}}),[g,y,x,M,C,$,G,ne,T==null?void 0:T.__raw]),Q=de.useMemo(()=>({value:w}),[g,w]),j=de.useMemo(()=>({value:R}),[x,R]),me=de.useMemo(()=>({value:{organization:L}}),[C,L]);return de.createElement(OP.Provider,{value:h},de.createElement(uP.Provider,{value:p},de.createElement(oP.Provider,{value:Q},de.createElement(mP,{...me.value},de.createElement(kP.Provider,{value:ce},de.createElement(lP.Provider,{value:j},de.createElement(dP,{value:void 0},r)))))))}var QU=e=>{const t=de.useRef(cE.getOrCreateInstance(e)),[n,r]=de.useState(t.current.status);return de.useEffect(()=>{t.current.__unstable__updateProps({appearance:e.appearance})},[e.appearance]),de.useEffect(()=>{t.current.__unstable__updateProps({options:e})},[e.localization]),de.useEffect(()=>(t.current.on("status",r),()=>{t.current&&t.current.off("status",r),cE.clearInstance()}),[]),{isomorphicClerk:t.current,clerkStatus:n}};function ZU(e){const{initialState:t,children:n,__internal_bypassMissingPublishableKey:r,...s}=e,{publishableKey:l="",Clerk:o}=s;return!o&&!r&&(l?l&&!km(l)&&ya.throwInvalidPublishableKeyError({key:l}):ya.throwMissingPublishableKeyError()),de.createElement(XU,{initialState:t,isomorphicClerkOptions:s},n)}var Mv=aU(ZU,"ClerkProvider",RP);Mv.displayName="ClerkProvider";CP({packageName:"@clerk/clerk-react"});LU("@clerk/clerk-react");const di={MAX_FILE_BYTES:10*1024*1024,ALLOWED_MIME:new Set(["image/jpeg","image/png","image/webp","application/pdf","text/plain","text/markdown","text/csv"]),MAX_CHATS:15};function $l(e){const t=/<!--\s*cycls:attachments\s*([\s\S]*?)\s*cycls:attachments\s*-->/m,n=e.match(t);if(!n)return{clean:e,attachments:[]};let r=[];try{r=JSON.parse(n[1])}catch{r=[]}return{clean:e.replace(t,"").trimEnd(),attachments:r}}function JU(e){return e?e.startsWith("image/")?"image":e==="application/pdf"?"pdf":e==="text/csv"?"csv":e==="text/markdown"?"md":e==="text/plain"?"txt":"file":"file"}async function ez(e,t="anon",n="anon"){if(e.size>di.MAX_FILE_BYTES)throw new Error("File too large (max 10MB)");if(!di.ALLOWED_MIME.has(e.type))throw new Error(`Type not allowed: ${e.type}`);const r=new FormData;r.append("file",e),r.append("orgId",t),r.append("userId",n);const s=await fetch("https://cfywthfcvbajcekvwajz.supabase.co/functions/v1/upload",{method:"POST",body:r});if(!s.ok)throw new Error(`Upload failed (${s.status})`);return await s.json()}const pd=e=>e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(2)}kB`:`${(e/(1024*1024)).toFixed(2)}MB`,tz=e=>{if(e.size>di.MAX_FILE_BYTES)return{valid:!1,error:`File "${e.name}" is too large (${pd(e.size)}). Maximum size is ${pd(di.MAX_FILE_BYTES)}.`};if(!di.ALLOWED_MIME.has(e.type)){const t=Array.from(di.ALLOWED_MIME).map(n=>n.split("/")[1]).join(", ");return{valid:!1,error:`File type "${e.type}" is not supported. Allowed types: ${t}`}}return{valid:!0}};async function zm(e,t,{signal:n}={}){var p,g,y,T,w,x;const r=e.body.getReader(),s=new TextDecoder,l=e.headers.get("content-type")||"",o=l.includes("text/event-stream")||l.includes("stream");let d="",f="",h=null;for(;;){if(n!=null&&n.aborted)throw new DOMException("Aborted","AbortError");const{value:R,done:C}=await r.read();if(C)break;if(R){const M=s.decode(R,{stream:!0});if(d+=M,h===null&&d.length>0&&(h=d.trimStart().startsWith("data: ")),o||h){let L;for(;(L=d.indexOf(`
382
+ `))!==-1;){const $=d.slice(0,L).trim();if(d=d.slice(L+1),!!$&&$.startsWith("data: ")){const G=$.slice(6);if(G==="[DONE]")return t(f),f;try{const z=JSON.parse(G),ne=((y=(g=(p=z==null?void 0:z.choices)==null?void 0:p[0])==null?void 0:g.delta)==null?void 0:y.content)||"";ne&&(f+=ne,t(f))}catch(z){console.error("Failed to parse SSE data:",z,G)}}}}else f+=M,t(f),d=""}}if((o||h)&&d.trim()){const R=d.trim();if(R.startsWith("data: ")){const C=R.slice(6);if(C!=="[DONE]")try{const M=JSON.parse(C),L=((x=(w=(T=M==null?void 0:M.choices)==null?void 0:T[0])==null?void 0:w.delta)==null?void 0:x.content)||"";L&&(f+=L)}catch(M){console.error("Failed to parse final SSE data:",M,C)}}}return t(f),f}function Fm(e){return e.replace(/<think>[\s\S]*?<\/think>/g,"")}const nz=({children:e,className:t,node:n,inline:r,...s})=>{const[l,o]=V.useState(!1),d=V.useRef(null),f=async()=>{var y;try{const T=((y=d.current)==null?void 0:y.textContent)||"";await navigator.clipboard.writeText(T),o(!0),setTimeout(()=>o(!1),2e3)}catch(T){console.error("Failed to copy code:",T)}},h=y=>{var T;return typeof y=="string"?y:Array.isArray(y)?y.map(h).join(""):(T=y==null?void 0:y.props)!=null&&T.children?h(y.props.children):""},p=h(e);return r||!p.includes(`
383
+ `)?P.jsx("code",{className:t,...s,children:e}):P.jsxs("div",{className:"relative group",children:[P.jsx("button",{onClick:f,className:"absolute top-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium text-gray-600 hover:text-gray-900 bg-white hover:bg-gray-50 border border-gray-200 rounded-md shadow-sm z-10",title:"Copy code",children:l?P.jsxs(P.Fragment,{children:[P.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:P.jsx("polyline",{points:"20 6 9 17 4 12"})}),P.jsx("span",{children:"Copied!"})]}):P.jsx(P.Fragment,{children:P.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[P.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),P.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}),P.jsx("code",{ref:d,className:t,...s,children:e})]})},rz=({attachments:e=[]})=>e.length?P.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:e.map((t,n)=>{const r=JU(t.mime);if(r==="image")return P.jsx("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"group relative overflow-hidden rounded-lg border border-gray-200/60 shadow-sm transition-all duration-200",children:P.jsx("img",{src:t.url,alt:"",loading:"lazy",className:"mb-1 w-40 rounded-md"})},n);const s={pdf:"📄",csv:"📊",md:"📝",txt:"📝"}[r]||"📎";return P.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2.5 rounded-xl border border-gray-200/60 bg-white/80 backdrop-blur-sm px-4 py-2.5 text-sm hover:border-gray-300 hover:bg-white transition-all shadow-sm",children:[P.jsx("span",{className:"text-xl",children:s}),P.jsx("span",{className:"text-xs text-gray-600 uppercase font-semibold tracking-wide",children:r||"file"})]},n)})}):null,az=({error:e,onRetry:t,isRetrying:n})=>{const r=s=>s?s.type==="network"?"Network error. Please check your connection and try again.":s.type==="timeout"?"Request timed out. The server took too long to respond.":s.type==="rate_limit"?s.message||"Too many requests. Please wait a moment and try again.":s.type==="server"?`Server error (${s.status||"unknown"}). Please try again later.`:s.type==="abort"?"Request was cancelled.":s.message||"An error occurred while processing your request.":"An unexpected error occurred";return P.jsx("div",{className:"rounded-lg border border-red-200 bg-red-50 p-4 my-2",children:P.jsxs("div",{className:"flex items-start gap-3",children:[P.jsx("div",{className:"flex-shrink-0 mt-0.5",children:P.jsxs("svg",{className:"h-5 w-5 text-red-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[P.jsx("circle",{cx:"12",cy:"12",r:"10"}),P.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),P.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),P.jsxs("div",{className:"flex-1 min-w-0",children:[P.jsx("p",{className:"text-sm font-medium text-red-900",children:"Error"}),P.jsx("p",{className:"text-sm text-red-700 mt-1",children:r(e)}),t&&e.type!=="abort"&&P.jsx("button",{onClick:t,disabled:n,className:"mt-3 inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-red-700 hover:text-red-900 bg-white hover:bg-red-50 border border-red-300 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:n?P.jsxs(P.Fragment,{children:[P.jsxs("svg",{className:"animate-spin h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[P.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),P.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),P.jsx("span",{children:"Retrying..."})]}):P.jsxs(P.Fragment,{children:[P.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[P.jsx("polyline",{points:"23 4 23 10 17 10"}),P.jsx("polyline",{points:"1 20 1 14 7 14"}),P.jsx("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]}),P.jsx("span",{children:"Retry"})]})})]})]})})},iz=({message:e,onCopy:t,onRegenerate:n,isLastAssistant:r})=>{const[s,l]=V.useState(!1),o=async()=>{try{const{clean:d}=$l(e.content);await navigator.clipboard.writeText(d),l(!0),setTimeout(()=>l(!1),2e3)}catch(d){console.error("Failed to copy:",d)}};return P.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:[P.jsx("button",{onClick:o,className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors",title:"Copy message",children:s?P.jsxs(P.Fragment,{children:[P.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:P.jsx("polyline",{points:"20 6 9 17 4 12"})}),P.jsx("span",{children:"Copied!"})]}):P.jsxs(P.Fragment,{children:[P.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[P.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),P.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),P.jsx("span",{children:"Copy"})]})}),r&&P.jsxs("button",{onClick:n,className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors",title:"Regenerate response",children:[P.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[P.jsx("polyline",{points:"23 4 23 10 17 10"}),P.jsx("polyline",{points:"1 20 1 14 7 14"}),P.jsx("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]}),P.jsx("span",{children:"Regenerate"})]})]})},sz=de.memo(({messages:e,onSend:t,onRegenerate:n,isGenerating:r,onRetry:s,retryingIndex:l})=>{const o=V.useMemo(()=>e.map((d,f)=>{if(d.type==="request"){const{clean:p,attachments:g}=$l(d.content),y=/[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(p);return P.jsx("div",{className:`flex mb-4 ${y?"justify-start":"justify-end"}`,children:P.jsxs("div",{className:"max-w-[85%] md:max-w-[75%]",children:[g.length>0&&P.jsx("div",{className:"mb-1",children:P.jsx(rz,{attachments:g})}),p&&P.jsx("div",{className:"bg-gray-100 text-black px-4 py-2 rounded-3xl shadow-sm",children:P.jsx("div",{dir:"auto",className:"text-[15px] leading-relaxed whitespace-pre-wrap",children:p})})]})},f)}const h=d.type==="response"&&f===e.length-1&&!r;return P.jsx("div",{className:"flex mb-4 justify-start group",children:P.jsx("div",{className:"max-w-[85%] md:max-w-[100%]",children:d.error?P.jsx(az,{error:d.error,onRetry:()=>s(f),isRetrying:l===f}):P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"prose prose-sm max-w-none",children:[P.jsx(Hm,{markdown:d.content,onSend:t}),d.content===""&&P.jsx("div",{className:"h-4 w-32 bg-gray-200 rounded animate-pulse"})]}),d.content&&d.content!==""&&P.jsx(iz,{message:d,onRegenerate:()=>n(f),isLastAssistant:h})]})})},f)}),[e,t,n,r,s,l]);return P.jsx("div",{className:"space-y-1",children:o})}),lz=({file:e,onRemove:t})=>{const[n,r]=V.useState(null),s=e.type.startsWith("image/");return V.useEffect(()=>{if(!s)return;const l=new FileReader;l.onloadend=()=>r(String(l.result)),l.readAsDataURL(e)},[e,s]),P.jsxs("div",{className:"group inline-flex items-start gap-2 rounded-xl border border-gray-200 bg-white shadow-sm px-2.5 py-1",title:e.name,children:[P.jsx("div",{className:"w-10 h-10 rounded-md overflow-hidden bg-gray-100 flex items-center justify-center",children:s&&n?P.jsx("img",{src:n,alt:e.name,className:"w-full h-full object-cover"}):P.jsx("span",{className:"text-xs",children:"📄"})}),P.jsxs("div",{className:"min-w-0 leading-tight",children:[P.jsx("div",{className:"text-xs font-medium text-gray-900 truncate max-w-[100px]",children:e.name}),P.jsx("div",{className:"text-xs text-left text-gray-500",children:pd(e.size)})]}),P.jsx("button",{onClick:t,className:"ml-1 h-5 w-5 rounded-full bg-gray-200 hover:bg-gray-300 grid place-items-center","aria-label":"Remove attachment",children:P.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:P.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]})},uz=({error:e,onDismiss:t})=>(V.useEffect(()=>{const n=setTimeout(t,5e3);return()=>clearTimeout(n)},[t]),P.jsx("div",{className:"fixed bottom-40 left-1/2 transform -translate-x-1/2 bg-red-50 border border-red-200 rounded-xl shadow-lg px-4 py-3 min-w-[320px] max-w-[90vw] z-50 animate-in slide-in-from-bottom-2 duration-300",children:P.jsxs("div",{className:"flex items-start gap-3",children:[P.jsx("div",{className:"flex-shrink-0 mt-0.5",children:P.jsxs("svg",{className:"h-5 w-5 text-red-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[P.jsx("circle",{cx:"12",cy:"12",r:"10"}),P.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),P.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),P.jsxs("div",{className:"flex-1 min-w-0",children:[P.jsx("p",{className:"text-sm font-medium text-red-900",children:"Upload Error"}),P.jsx("p",{className:"text-sm text-red-700 mt-1",children:e})]}),P.jsx("button",{onClick:t,className:"flex-shrink-0 text-red-400 hover:text-red-600 transition-colors","aria-label":"Dismiss",children:P.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:P.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})})),oz=({onSend:e,isLoading:t=!1,onStop:n,disabled:r=!1,onUpgradeClick:s})=>{const[l,o]=V.useState(""),[d,f]=V.useState([]),[h,p]=V.useState(!1),[g,y]=V.useState(null),[T,w]=V.useState(!1),x=V.useRef(null),R=V.useRef(null),C=V.useRef(0);V.useEffect(()=>{const Q=()=>p(window.innerWidth<=768);return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[]);const M=V.useCallback(Q=>{if(r)return;const j=[];for(const me of Q){const J=tz(me);if(J.valid)j.push(me);else{y(J.error);break}}j.length>0&&f(me=>[...me,...j])},[r]);V.useEffect(()=>{const Q=se=>{se.preventDefault(),se.stopPropagation(),!r&&(C.current++,se.dataTransfer.types.includes("Files")&&w(!0))},j=se=>{se.preventDefault(),se.stopPropagation(),C.current--,C.current===0&&w(!1)},me=se=>{se.preventDefault(),se.stopPropagation()},J=se=>{if(se.preventDefault(),se.stopPropagation(),w(!1),C.current=0,r)return;const fe=Array.from(se.dataTransfer.files||[]);fe.length>0&&M(fe)};return document.addEventListener("dragenter",Q),document.addEventListener("dragleave",j),document.addEventListener("dragover",me),document.addEventListener("drop",J),()=>{document.removeEventListener("dragenter",Q),document.removeEventListener("dragleave",j),document.removeEventListener("dragover",me),document.removeEventListener("drop",J)}},[M,r]),V.useEffect(()=>{const Q=j=>{var fe;if(r||!(document.activeElement===R.current))return;const se=Array.from(((fe=j.clipboardData)==null?void 0:fe.items)||[]).filter(pe=>pe.type.startsWith("image/"));if(se.length>0){j.preventDefault();const pe=se.map(X=>X.getAsFile()).filter(X=>X!==null);pe.length>0&&M(pe)}};return document.addEventListener("paste",Q),()=>document.removeEventListener("paste",Q)},[M,r]);const L=()=>{var Q;r||(Q=x.current)==null||Q.click()},$=Q=>{if(r)return;const j=Array.from(Q.target.files||[]);M(j),Q.target.value=""},G=Q=>f(j=>j.filter((me,J)=>J!==Q)),z=async()=>{t||r||(e({text:l,files:d}),o(""),f([]))},ne=Q=>{Q.key==="Enter"&&!Q.shiftKey&&!h&&!t&&!r&&(Q.preventDefault(),z())},ce=["fixed inset-x-2 md:inset-x-0 mx-auto max-w-3xl z-40","bottom-[max(0.75rem,env(safe-area-inset-bottom))] md:bottom-[max(1rem,env(safe-area-inset-bottom))]"].join(" ");return P.jsxs(P.Fragment,{children:[g&&P.jsx(uz,{error:g,onDismiss:()=>y(null)}),T&&!r&&P.jsx("div",{className:"fixed inset-0 z-50 bg-gray-900/50 backdrop-blur-sm flex items-center justify-center pointer-events-none",children:P.jsx("div",{className:"bg-white rounded-2xl shadow-2xl p-8 max-w-md mx-4 border-2 border-dashed border-gray-900",children:P.jsxs("div",{className:"text-center",children:[P.jsx("div",{className:"mx-auto w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mb-4",children:P.jsx("svg",{className:"w-8 h-8 text-gray-900",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:P.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})})}),P.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Drop files to upload"}),P.jsx("p",{className:"text-sm text-gray-600",children:"Images, PDFs, and text files supported"}),P.jsxs("p",{className:"text-xs text-gray-500 mt-2",children:["Max ",pd(di.MAX_FILE_BYTES)," per file"]})]})})}),P.jsxs("div",{className:ce,children:[P.jsxs("div",{className:`border-input cursor-text rounded-3xl border bg-popover relative p-0 pt-1 shadow-xs backdrop-blur-xl w-full ${r?"opacity-75 bg-gray-50":""}`,children:[d.length>0&&P.jsx("div",{className:"px-3 pt-3",children:P.jsx("div",{className:"flex flex-wrap gap-2",children:d.map((Q,j)=>P.jsx(lz,{file:Q,onRemove:()=>G(j)},j))})}),P.jsxs("div",{className:"px-3 pb-3 pt-2",children:[P.jsx("textarea",{ref:R,className:`w-full resize-none border-0 bg-transparent focus:ring-0 focus:outline-none placeholder:text-gray-400 text-[15px] leading-6 max-h-40 mb-2 disabled:opacity-50 disabled:cursor-not-allowed ${r?"cursor-not-allowed":""}`,dir:"auto",autoFocus:!r,tabIndex:0,rows:Math.max(1,Math.min(6,l.split(`
384
+ `).length)),placeholder:r?"Upgrade to continue chatting...":t?"Waiting for response...":"What's on your mind?",onChange:Q=>o(Q.target.value),onKeyDown:ne,value:l,disabled:t||r}),P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("button",{onClick:L,disabled:r,className:`border border-gray-200 rounded-full bg-white hover:bg-gray-50 active:scale-[0.98] w-8 h-8 inline-flex items-center justify-center p-1 ${r?"opacity-50 cursor-not-allowed hover:bg-white active:scale-100":""}`,"aria-label":"Attach file",title:r?"Upgrade to attach files":"Attach files",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:P.jsx("path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"})})}),P.jsx("input",{ref:x,type:"file",multiple:!0,className:"hidden",onChange:$,accept:".jpg,.jpeg,.png,.webp,.pdf,.txt,.md,.csv",disabled:r}),P.jsx("div",{className:"flex-1"}),t&&!r&&P.jsx("button",{onClick:n,className:"rounded-full bg-white text-gray-700 hover:bg-gray-100 active:scale-95 transition-all inline-flex items-center justify-center w-8 h-8 flex-shrink-0 border border-gray-300 shadow-sm","aria-label":"Stop generating",title:"Stop",children:P.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:P.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}),r&&P.jsxs("button",{onClick:s,className:"rounded-full bg-gradient-to-r from-blue-600 to-indigo-600 text-white hover:from-blue-700 hover:to-indigo-700 active:scale-[0.98] transition-all inline-flex items-center justify-center gap-1.5 px-4 h-9 flex-shrink-0 shadow-md font-medium text-sm","aria-label":"Upgrade to continue",title:"Upgrade",children:[P.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:P.jsx("path",{fillRule:"evenodd",d:"M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z",clipRule:"evenodd"})}),"Upgrade"]}),!t&&!r&&P.jsx("button",{onClick:z,disabled:t,className:"rounded-full bg-gray-900 text-white hover:opacity-90 active:scale-[0.98] inline-flex items-center justify-center w-9 h-9 flex-shrink-0 disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100","aria-label":"Send message",title:"Send",children:P.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M8.99992 16V6.41407L5.70696 9.70704C5.31643 10.0976 4.68342 10.0976 4.29289 9.70704C3.90237 9.31652 3.90237 8.6835 4.29289 8.29298L9.29289 3.29298L9.36907 3.22462C9.76184 2.90427 10.3408 2.92686 10.707 3.29298L15.707 8.29298L15.7753 8.36915C16.0957 8.76192 16.0731 9.34092 15.707 9.70704C15.3408 10.0732 14.7618 10.0958 14.3691 9.7754L14.2929 9.70704L10.9999 6.41407V16C10.9999 16.5523 10.5522 17 9.99992 17C9.44764 17 8.99992 16.5523 8.99992 16Z"})})})]})]})]}),r&&P.jsx("p",{className:"text-xs text-center text-gray-500 mt-2",children:"You've reached your free message limit"})]})]})},cz=({fileName:e,progress:t})=>P.jsx("div",{className:"fixed bottom-40 left-1/2 transform -translate-x-1/2 bg-white border border-gray-200 rounded-xl shadow-lg px-4 py-3 min-w-[280px]",children:P.jsxs("div",{className:"flex items-center gap-3",children:[P.jsx("div",{className:"flex-shrink-0",children:P.jsxs("svg",{className:"animate-spin h-5 w-5 text-gray-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[P.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),P.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),P.jsxs("div",{className:"flex-1 min-w-0",children:[P.jsx("p",{className:"text-sm font-medium text-gray-900 truncate",children:e}),P.jsx("div",{className:"mt-1 w-full bg-gray-200 rounded-full h-1.5",children:P.jsx("div",{className:"bg-gray-900 h-1.5 rounded-full transition-all duration-300",style:{width:`${t}%`}})})]})]})}),dz=()=>P.jsx("svg",{width:"22",height:"22",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","data-rtl-flip":"",className:"icon",children:P.jsx("path",{d:"M6.83496 3.99992C6.38353 4.00411 6.01421 4.0122 5.69824 4.03801C5.31232 4.06954 5.03904 4.12266 4.82227 4.20012L4.62207 4.28606C4.18264 4.50996 3.81498 4.85035 3.55859 5.26848L3.45605 5.45207C3.33013 5.69922 3.25006 6.01354 3.20801 6.52824C3.16533 7.05065 3.16504 7.71885 3.16504 8.66301V11.3271C3.16504 12.2712 3.16533 12.9394 3.20801 13.4618C3.25006 13.9766 3.33013 14.2909 3.45605 14.538L3.55859 14.7216C3.81498 15.1397 4.18266 15.4801 4.62207 15.704L4.82227 15.79C5.03904 15.8674 5.31234 15.9205 5.69824 15.9521C6.01398 15.9779 6.383 15.986 6.83398 15.9902L6.83496 3.99992ZM18.165 11.3271C18.165 12.2493 18.1653 12.9811 18.1172 13.5702C18.0745 14.0924 17.9916 14.5472 17.8125 14.9648L17.7295 15.1415C17.394 15.8 16.8834 16.3511 16.2568 16.7353L15.9814 16.8896C15.5157 17.1268 15.0069 17.2285 14.4102 17.2773C13.821 17.3254 13.0893 17.3251 12.167 17.3251H7.83301C6.91071 17.3251 6.17898 17.3254 5.58984 17.2773C5.06757 17.2346 4.61294 17.1508 4.19531 16.9716L4.01855 16.8896C3.36014 16.5541 2.80898 16.0434 2.4248 15.4169L2.27051 15.1415C2.03328 14.6758 1.93158 14.167 1.88281 13.5702C1.83468 12.9811 1.83496 12.2493 1.83496 11.3271V8.66301C1.83496 7.74072 1.83468 7.00898 1.88281 6.41985C1.93157 5.82309 2.03329 5.31432 2.27051 4.84856L2.4248 4.57317C2.80898 3.94666 3.36012 3.436 4.01855 3.10051L4.19531 3.0175C4.61285 2.83843 5.06771 2.75548 5.58984 2.71281C6.17898 2.66468 6.91071 2.66496 7.83301 2.66496H12.167C13.0893 2.66496 13.821 2.66468 14.4102 2.71281C15.0069 2.76157 15.5157 2.86329 15.9814 3.10051L16.2568 3.25481C16.8833 3.63898 17.394 4.19012 17.7295 4.84856L17.8125 5.02531C17.9916 5.44285 18.0745 5.89771 18.1172 6.41985C18.1653 7.00898 18.165 7.74072 18.165 8.66301V11.3271ZM8.16406 15.995H12.167C13.1112 15.995 13.7794 15.9947 14.3018 15.9521C14.8164 15.91 15.1308 15.8299 15.3779 15.704L15.5615 15.6015C15.9797 15.3451 16.32 14.9774 16.5439 14.538L16.6299 14.3378C16.7074 14.121 16.7605 13.8478 16.792 13.4618C16.8347 12.9394 16.835 12.2712 16.835 11.3271V8.66301C16.835 7.71885 16.8347 7.05065 16.792 6.52824C16.7605 6.14232 16.7073 5.86904 16.6299 5.65227L16.5439 5.45207C16.32 5.01264 15.9796 4.64498 15.5615 4.3886L15.3779 4.28606C15.1308 4.16013 14.8165 4.08006 14.3018 4.03801C13.7794 3.99533 13.1112 3.99504 12.167 3.99504H8.16406C8.16407 3.99667 8.16504 3.99829 8.16504 3.99992L8.16406 15.995Z"})}),fz=e=>{const t=new Date(e),r=new Date-t,s=Math.floor(r/6e4),l=Math.floor(r/36e5),o=Math.floor(r/864e5);return s<1?"Just now":s<60?`${s}m ago`:l<24?`${l}h ago`:o===0?"Today":o===1?"Yesterday":o<7?`${o}d ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric"})},hz=({isOpen:e,onClose:t,chats:n,activeChat:r,onSelectChat:s,onNewChat:l,onDeleteChat:o})=>{const[d,f]=V.useState(null),h=V.useMemo(()=>[...n].sort((p,g)=>new Date(g.updatedAt)-new Date(p.updatedAt)),[n]);return P.jsxs(P.Fragment,{children:[e&&P.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 md:hidden",onClick:t}),P.jsxs("div",{className:`fixed top-0 left-0 h-full bg-white border-r border-gray-200 z-50 transition-transform duration-300 ease-in-out ${e?"translate-x-0":"-translate-x-full"} w-72 flex flex-col`,children:[P.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[P.jsx("h2",{className:"font-semibold text-gray-900",children:"Chat History"}),P.jsx("button",{onClick:t,className:"p-1 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Close sidebar",children:P.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:P.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),P.jsx("div",{className:"p-3",children:P.jsxs("button",{onClick:l,className:"w-full flex items-center justify-center gap-2 px-4 py-2.5 bg-gray-900 text-white rounded-lg hover:bg-gray-800 transition-colors font-medium",children:[P.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[P.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),P.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"New Chat"]})}),P.jsx("div",{className:"flex-1 overflow-y-auto p-3 space-y-1",children:h.length===0?P.jsx("div",{className:"text-center py-8 text-gray-500 text-sm",children:"No chat history yet"}):h.map(p=>P.jsxs("div",{className:`group relative rounded-lg transition-colors ${r===p.id?"bg-gray-100":"hover:bg-gray-50 cursor-pointer"}`,onMouseEnter:()=>f(p.id),onMouseLeave:()=>f(null),children:[P.jsxs("div",{className:"p-3 pr-10",onClick:()=>s(p.id),children:[P.jsx("div",{className:"font-medium text-sm text-gray-900 truncate",children:p.title}),P.jsx("div",{className:"text-xs text-gray-500 mt-1",children:fz(p.updatedAt)})]}),d===p.id&&P.jsx("button",{onClick:g=>{g.stopPropagation(),o(p.id)},className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 hover:bg-red-100 rounded-md transition-colors text-gray-400 hover:text-red-600","aria-label":"Delete chat",children:P.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[P.jsx("polyline",{points:"3 6 5 6 21 6"}),P.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})})]},p.id))}),P.jsxs("div",{className:"p-3 border-t border-gray-200 text-xs text-gray-500 text-center",children:[n.length," / ",di.MAX_CHATS," chats"]})]})]})};Vt(({clerk:e,children:t,...n})=>{const{planId:r,planPeriod:s,for:l,onSubscriptionComplete:o,newSubscriptionRedirectUrl:d,checkoutProps:f,...h}=n,{userId:p,orgId:g}=Jo();if(p===null)throw new Error("Clerk: Ensure that `<CheckoutButton />` is rendered inside a `<SignedIn />` component.");if(g===null&&l==="organization")throw new Error('Clerk: Wrap `<CheckoutButton for="organization" />` with a check for an active organization. Retrieve `orgId` from `useAuth()` and confirm it is defined. For SSR, see: https://clerk.com/docs/reference/backend/types/auth-object#how-to-access-the-auth-object');t=Zs(t,"Checkout");const y=Qs(t)("CheckoutButton"),T=()=>{if(e)return e.__internal_openCheckout({planId:r,planPeriod:s,for:l,onSubscriptionComplete:o,newSubscriptionRedirectUrl:d,...f})},x={...h,onClick:async R=>(y&&typeof y=="object"&&"props"in y&&await Js(y.props.onClick)(R),T())};return de.cloneElement(y,x)},{component:"CheckoutButton",renderWhileLoading:!0});Vt(({clerk:e,children:t,...n})=>{const{plan:r,planId:s,initialPlanPeriod:l,planDetailsProps:o,...d}=n;t=Zs(t,"Plan details");const f=Qs(t)("PlanDetailsButton"),h=()=>{if(e)return e.__internal_openPlanDetails({plan:r,planId:s,initialPlanPeriod:l,...o})},g={...d,onClick:async y=>(f&&typeof f=="object"&&"props"in f&&await Js(f.props.onClick)(y),h())};return de.cloneElement(f,g)},{component:"PlanDetailsButton",renderWhileLoading:!0});Vt(({clerk:e,children:t,...n})=>{const{for:r,subscriptionDetailsProps:s,onSubscriptionCancel:l,...o}=n;t=Zs(t,"Subscription details");const d=Qs(t)("SubscriptionDetailsButton"),{userId:f,orgId:h}=Jo();if(f===null)throw new Error("Clerk: Ensure that `<SubscriptionDetailsButton />` is rendered inside a `<SignedIn />` component.");if(h===null&&r==="organization")throw new Error('Clerk: Wrap `<SubscriptionDetailsButton for="organization" />` with a check for an active organization. Retrieve `orgId` from `useAuth()` and confirm it is defined. For SSR, see: https://clerk.com/docs/reference/backend/types/auth-object#how-to-access-the-auth-object');const p=()=>{if(e)return e.__internal_openSubscriptionDetails({for:r,onSubscriptionCancel:l,...s})},y={...o,onClick:async T=>(d&&typeof d=="object"&&"props"in d&&await Js(d.props.onClick)(T),p())};return de.cloneElement(d,y)},{component:"SubscriptionDetailsButton",renderWhileLoading:!0});const Q1="cycls_chat_history",U0="cycls_active_chat",Kp="cycls_message_count";function Dv(){try{const e=localStorage.getItem(Kp);return e?parseInt(e,10):0}catch{return 0}}function mz(){try{const e=Dv();return localStorage.setItem(Kp,String(e+1)),e+1}catch{return 0}}function pz(){try{localStorage.removeItem(Kp)}catch{}}class vn{static getAllChats(){try{const t=localStorage.getItem(Q1);return t?JSON.parse(t):[]}catch(t){return console.error("Error loading chat history:",t),[]}}static saveAllChats(t){try{localStorage.setItem(Q1,JSON.stringify(t))}catch(n){console.error("Error saving chat history:",n)}}static getActiveChat(){try{return localStorage.getItem(U0)}catch{return null}}static setActiveChat(t){try{localStorage.setItem(U0,t)}catch(n){console.error("Error saving active chat:",n)}}static createChat(t=[]){const n=this.getAllChats(),r={id:Date.now().toString(),title:this.generateTitle(t),messages:t,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};return n.length>=di.MAX_CHATS&&(n.sort((s,l)=>new Date(s.createdAt)-new Date(l.createdAt)),n.shift()),n.push(r),this.saveAllChats(n),this.setActiveChat(r.id),r}static updateChat(t,n){const r=this.getAllChats(),s=r.findIndex(l=>l.id===t);s!==-1&&(r[s].messages=n,r[s].updatedAt=new Date().toISOString(),r[s].title=this.generateTitle(n),this.saveAllChats(r))}static deleteChat(t){const r=this.getAllChats().filter(s=>s.id!==t);this.saveAllChats(r),this.getActiveChat()===t&&localStorage.removeItem(U0)}static getChat(t){return this.getAllChats().find(r=>r.id===t)}static generateTitle(t){if(!t||t.length===0)return"New Chat";const n=t.find(l=>l.type==="request");if(!n)return"New Chat";const{clean:r}=$l(n.content);return r.trim().slice(0,50)||"New Chat"}static clearAll(){try{localStorage.removeItem(Q1),localStorage.removeItem(U0)}catch(t){console.error("Error clearing chat history:",t)}}}async function gz(e){const t=await fetch("/metadata",{method:"GET",credentials:"include",signal:e});if(!t.ok)throw new Error(`Metadata request failed: ${t.status}`);return t.json()}const bz=({children:e})=>P.jsx("div",{className:"not-prose",children:e}),Ez=({href:e,onSend:t,...n})=>{const r=V.useCallback(s=>{t(decodeURIComponent(e.slice(23))),s.preventDefault()},[e,t]);return e.startsWith("https://cycls.com/send/")?P.jsx("a",{...n,className:n.className||"underline decoration-gray-500/40 decoration-2 hover:decoration-gray-500/60",href:"#",onClick:r}):P.jsx("a",{...n,href:e,target:"_blank",rel:"noreferrer"})},Hm=de.memo(({markdown:e,onSend:t})=>{const n=V.useMemo(()=>({raw:bz,a:r=>P.jsx(Ez,{...r,onSend:t}),code:nz}),[t]);return P.jsx("div",{dir:"auto",children:P.jsx(yw,{components:n,remarkPlugins:[Rk,lB],rehypePlugins:[QR,XL,[UD,{ignoreMissing:!0,detect:!0}]],children:e})})}),yz=({open:e,onClose:t,tier:n})=>e?P.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-md px-4",children:P.jsxs("div",{className:"relative w-full max-w-xl rounded-3xl bg-gradient-to-b from-white to-gray-50/50 shadow-2xl border border-gray-200/60 overflow-hidden",children:[P.jsx("div",{className:"absolute top-0 left-0 right-0 h-32 bg-gradient-to-br from-blue-50 via-indigo-50/30 to-transparent pointer-events-none"}),P.jsx("button",{type:"button",onClick:t,className:"absolute right-4 top-4 z-10 inline-flex h-9 w-9 items-center justify-center rounded-full bg-white/80 backdrop-blur-sm text-gray-400 hover:bg-white hover:text-gray-600 transition-all duration-200 shadow-sm border border-gray-200/50","aria-label":"Close",children:P.jsx("span",{className:"text-xl leading-none",children:"×"})}),P.jsxs("div",{className:"relative p-8 md:p-10",children:[P.jsxs("div",{className:"space-y-3 pr-8 mb-6",children:[P.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-blue-100 text-blue-700 border border-blue-200/50",children:[P.jsx("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 20 20",children:P.jsx("path",{fillRule:"evenodd",d:"M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z",clipRule:"evenodd"})}),P.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",children:"Upgrade Available"})]}),P.jsxs("h2",{className:"text-2xl md:text-3xl font-bold text-gray-900 leading-tight",children:["Unlock"," ",P.jsx("span",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 bg-clip-text text-transparent",children:"Cycls Pass"})," ","features"]}),P.jsxs("p",{className:"text-base text-gray-600 leading-relaxed",children:["You've reached your free message limit. Upgrade to access the full"," ",P.jsx("span",{className:"font-semibold text-gray-900",children:"Cycls Pass"})," ","experience, priority AI, and unlimited messages."]})]}),P.jsx("div",{className:"relative -mx-2 mb-6",children:P.jsx("div",{className:"max-h-[420px] overflow-y-auto rounded-2xl bg-white/50 backdrop-blur-sm border border-gray-200/60 shadow-inner",children:P.jsx(EU,{})})}),P.jsx("div",{className:"flex justify-end",children:P.jsx("button",{type:"button",onClick:t,className:"inline-flex items-center gap-2 rounded-xl px-5 py-2.5 text-sm font-medium text-gray-600 hover:text-gray-900 hover:bg-gray-100/80 transition-all duration-200",children:"Maybe later"})})]})]})}):null,vz=(e,t,n,r,s,l,o,d=()=>{},f,h,p,g,y,T,w)=>async x=>{const R=typeof x=="object"&&x!==null,C=R?x.text||"":String(x||""),M=R?x.files||[]:[];if(!C.trim()&&M.length===0){n(!0);return}if(C===":clear"&&M.length===0){t([]),T(null),vn.setActiveChat(""),window.scrollTo(0,0);return}e.length===0&&d(),r(!0),o(!1);let L=[];for(let J=0;J<M.length;J++){const se=M[J];try{s({fileName:se.name,progress:0});const fe=await ez(se);s({fileName:se.name,progress:100}),L.push(fe),setTimeout(()=>s(null),500)}catch(fe){console.error("Upload error:",fe),s(null),r(!1),t(pe=>[...pe,{type:"request",content:C},{type:"response",content:"",error:{type:"server",message:`Failed to upload ${se.name}: ${fe.message}`,status:null}}]);return}}let $=C;if(L.length>0){const J=`<!--cycls:attachments
385
+ ${JSON.stringify(L)}
386
+ cycls:attachments-->`;$=`${C}
387
+
388
+ ${J}`}const G={type:"request",content:$},z={type:"response",content:""};t(J=>[...J,G,z]);const ne=[...e,G];let ce=y;ce?vn.updateChat(ce,ne):(ce=vn.createChat(ne).id,T(ce));const Q=ne.map(({type:J,content:se})=>{const fe=J==="request"?"user":"assistant",{clean:pe,attachments:X}=$l(se);if(X.length===0)return{role:fe,content:pe};const he=[];pe.trim()&&he.push({type:"text",text:pe});for(const be of X)be.mime&&be.mime.startsWith("image/")?he.push({type:"image_url",image_url:{url:be.url}}):he.push({type:"file",text:`[File attached: ${be.name}]
389
+ File URL: ${be.url}
390
+ File type: ${be.mime||"unknown"}`});return{role:fe,content:he}});l.current=new AbortController;let j=!1;const me=setTimeout(()=>{l.current&&(j=!0,l.current.abort())},12e4);try{const J={"Content-Type":"application/json"};if(f&&p)try{const X=await p({template:"template"});if(X&&(J.Authorization=`Bearer ${X}`),g&&h)try{await g({organization:h})}catch{}}catch{}const se=await fetch("/chat/completions",{method:"POST",headers:J,body:JSON.stringify({messages:Q,stream:!0}),signal:l.current.signal});if(clearTimeout(me),!se.ok){let X="server",he=`Server returned ${se.status}`;if(se.status===429){X="rate_limit";const be=se.headers.get("Retry-After");he=be?`Too many requests. Please try again in ${be} seconds.`:"Too many requests. Please wait a moment and try again."}else se.status>=500?he="Server error. Please try again later.":(se.status===401||se.status===403)&&(he="Authentication error. Please refresh and try again.");throw{type:X,status:se.status,message:he}}await zm(se,X=>{const he=Fm(X);t(be=>{const ze=[...be];return ze[ze.length-1].content=he,ze})},{signal:l.current.signal});const pe=[...ne,z];vn.updateChat(ce,pe),w&&w(),r(!1),n(!0)}catch(J){clearTimeout(me);let se={type:"server",message:"An unexpected error occurred",status:null};if(J.name==="AbortError")if(j)se={type:"timeout",message:"Request timed out. The server took too long to respond."};else{console.log("Generation stopped by user"),t(fe=>{var X;const pe=[...fe];if(((X=pe[pe.length-1])==null?void 0:X.type)==="response"){pe[pe.length-1].content+=`
391
+
392
+ *[Generation stopped]*`;const he=e.concat([G,pe[pe.length-1]]);ce&&vn.updateChat(ce,he)}return pe}),r(!1),n(!0);return}else J instanceof TypeError&&J.message.includes("fetch")?se={type:"network",message:"Network error. Please check your connection and try again."}:J.type&&(se=J);console.error("Request error:",J),t(fe=>{var X;const pe=[...fe];return((X=pe[pe.length-1])==null?void 0:X.type)==="response"&&(pe[pe.length-1].error=se),pe}),r(!1),n(!0)}};function Tz(){const[e,t]=de.useState({status:"loading"});return de.useEffect(()=>{const n=new AbortController;return(async()=>{try{const r=await gz(n.signal);t({status:"ready",data:r})}catch(r){t({status:"error",error:r})}})(),()=>n.abort()},[]),e}const _z=()=>{var t,n;const e=Tz();if(e.status==="loading")return P.jsx("div",{className:"min-h-screen grid place-items-center text-sm text-gray-500",children:"Loading…"});if(e.status==="error"){console.error("Failed to load /metadata:",e.error);const r={header:"",intro:"",prod:((n=(t=import.meta)==null?void 0:t.env)==null?void 0:n.PROD)||!1,auth:!1,title:"AI Agent",tier:null};return P.jsx(fE,{meta:r})}return P.jsx(fE,{meta:e.data})},dE=({HEADER:e,INTRO:t,AUTH:n,ORG:r,TITLE:s,TIER:l})=>{const[o,d]=V.useState([]),[f,h]=V.useState(!1),[p,g]=V.useState(!1),[y,T]=V.useState(null),[w,x]=V.useState(!1),[R,C]=V.useState(!1),[M,L]=V.useState(null),$=V.useRef(null),G=V.useRef(null),[z,ne]=V.useState(!1),[ce,Q]=V.useState([]),[j,me]=V.useState(null),J=n?Jo():null,se=n?EP():null;n&&yP();const[fe,pe]=V.useState(!1),[X,he]=V.useState(0),be=5,{data:ze}=TP({enabled:n&&l==="cycls_pass"}),A=V.useCallback(()=>{pe(!1)},[]),le=V.useMemo(()=>{var at,Qe,it;return ze?((it=(Qe=(at=ze==null?void 0:ze.subscriptionItems)==null?void 0:at[0])==null?void 0:Qe.plan)==null?void 0:it.name)==="Cycls Pass":!1},[ze]),ye=V.useMemo(()=>!n||l!=="cycls_pass"||le?!1:X>=be,[n,l,le,X,be]);V.useEffect(()=>{le&&(pz(),he(0),pe(!1))},[le]),V.useEffect(()=>{const at=vn.getAllChats();Q(at),he(Dv());const Qe=vn.getActiveChat();if(Qe){const it=vn.getChat(Qe);it&&(d(it.messages),me(Qe),x(it.messages.length>0))}},[]),V.useEffect(()=>{o.length>0&&j&&(vn.updateChat(j,o),Q(vn.getAllChats()))},[o,j]),V.useEffect(()=>{document.title=s},[s]),V.useEffect(()=>{const at=()=>{const Qe=window.scrollY||document.documentElement.scrollTop,it=document.documentElement.scrollHeight,Rt=window.innerHeight,qe=it-Qe-Rt<100;C(!qe)};return window.addEventListener("scroll",at),()=>window.removeEventListener("scroll",at)},[]),V.useEffect(()=>{!R&&G.current&&G.current.scrollIntoView({behavior:"smooth"})},[o,R]),V.useEffect(()=>{if(f){const at=document.querySelector("textarea");at==null||at.focus(),h(!1)}},[f]);const D=V.useCallback(()=>{if(!n||l!=="cycls_pass"||le)return;const at=mz();he(at),at>=be&&pe(!0)},[n,l,le,be]),Ie=V.useCallback(vz(o,d,h,g,T,$,C,()=>x(!0),n,r,J==null?void 0:J.getToken,se==null?void 0:se.setActive,j,me,D),[o,n,r,J==null?void 0:J.getToken,se==null?void 0:se.setActive,j,D]),Ve=V.useCallback(()=>{$.current&&($.current.abort(),$.current=null)},[]),Be=V.useCallback(()=>{d([]),me(null),x(!1),vn.setActiveChat(""),ne(!1),window.scrollTo(0,0)},[]),Mt=V.useCallback(at=>{const Qe=vn.getChat(at);Qe&&(d(Qe.messages),me(at),x(Qe.messages.length>0),vn.setActiveChat(at),ne(!1),window.scrollTo(0,0))},[]),ot=V.useCallback(at=>{vn.deleteChat(at),Q(vn.getAllChats()),at===j&&Be()},[j,Be]),Qt=V.useCallback(async at=>{const Qe=at-1;if(Qe<0||(d(lt=>{var Zt;const Ze=[...lt];return((Zt=Ze[at])==null?void 0:Zt.type)==="response"&&(Ze[at]={type:"response",content:""}),Ze}),o[Qe].type!=="request"))return;const Rt=o.slice(0,at);g(!0),C(!1);const qe=Rt.map(({type:lt,content:Ze})=>{const Zt=lt==="request"?"user":"assistant",{clean:tt,attachments:Tt}=$l(Ze);if(Tt.length===0)return{role:Zt,content:tt};const _t=[];tt.trim()&&_t.push({type:"text",text:tt});for(const re of Tt)re.mime&&re.mime.startsWith("image/")?_t.push({type:"image_url",image_url:{url:re.url}}):_t.push({type:"file",text:`[File attached: ${re.name}]
393
+ File URL: ${re.url}
394
+ File type: ${re.mime||"unknown"}`});return{role:Zt,content:_t}}),ht=new AbortController;$.current=ht;let jt=!1;const xt=setTimeout(()=>{$.current&&(jt=!0,$.current.abort())},12e4);try{const lt={"Content-Type":"application/json"};if(n&&(J!=null&&J.getToken))try{const tt=await J.getToken({template:"template"});if(tt&&(lt.Authorization=`Bearer ${tt}`),se!=null&&se.setActive&&r)try{await se.setActive({organization:r})}catch{}}catch{}const Ze=await fetch("/chat/completions",{method:"POST",headers:lt,body:JSON.stringify({messages:qe,stream:!0}),signal:ht.signal});if(clearTimeout(xt),!Ze.ok){let tt="server",Tt=`Server returned ${Ze.status}`;if(Ze.status===429){tt="rate_limit";const _t=Ze.headers.get("Retry-After");Tt=_t?`Too many requests. Please try again in ${_t} seconds.`:"Too many requests. Please wait a moment and try again."}else Ze.status>=500?Tt="Server error. Please try again later.":(Ze.status===401||Ze.status===403)&&(Tt="Authentication error. Please refresh and try again.");throw{type:tt,status:Ze.status,message:Tt}}await zm(Ze,tt=>{const Tt=Fm(tt);d(_t=>{const re=[..._t];return re[at].content=Tt,re})},{signal:ht.signal}),j&&d(tt=>{const Tt=[...tt];return vn.updateChat(j,Tt),Q(vn.getAllChats()),Tt}),g(!1),h(!0)}catch(lt){clearTimeout(xt);let Ze={type:"server",message:"An unexpected error occurred",status:null};if(lt.name==="AbortError")if(jt)Ze={type:"timeout",message:"Request timed out. The server took too long to respond."};else{console.log("Regeneration stopped by user"),d(Zt=>{const tt=[...Zt];return tt[at].content+=`
395
+
396
+ *[Generation stopped]*`,j&&(vn.updateChat(j,tt),Q(vn.getAllChats())),tt}),g(!1),h(!0);return}else lt instanceof TypeError&&lt.message.includes("fetch")?Ze={type:"network",message:"Network error. Please check your connection and try again."}:lt.type&&(Ze=lt);console.error("Regeneration error:",lt),d(Zt=>{const tt=[...Zt];return tt[at].error=Ze,tt}),g(!1)}},[o,n,r,J==null?void 0:J.getToken,se==null?void 0:se.setActive,j]),Ft=V.useCallback(async at=>{const Qe=at-1;if(Qe<0)return;if(L(at),d(Rt=>{var ht;const qe=[...Rt];return((ht=qe[at])==null?void 0:ht.type)==="response"&&(qe[at]={type:"response",content:""}),qe}),o[Qe].type==="request"){const Rt=o.slice(0,at);g(!0),C(!1);const qe=Rt.map(({type:lt,content:Ze})=>{const Zt=lt==="request"?"user":"assistant",{clean:tt,attachments:Tt}=$l(Ze);if(Tt.length===0)return{role:Zt,content:tt};const _t=[];tt.trim()&&_t.push({type:"text",text:tt});for(const re of Tt)re.mime&&re.mime.startsWith("image/")?_t.push({type:"image_url",image_url:{url:re.url}}):_t.push({type:"file",text:`[File attached: ${re.name}]
397
+ File URL: ${re.url}
398
+ File type: ${re.mime||"unknown"}`});return{role:Zt,content:_t}}),ht=new AbortController;$.current=ht;let jt=!1;const xt=setTimeout(()=>{$.current&&(jt=!0,$.current.abort())},12e4);try{const lt={"Content-Type":"application/json"};if(n&&(J!=null&&J.getToken))try{const tt=await J.getToken({template:"template"});if(tt&&(lt.Authorization=`Bearer ${tt}`),se!=null&&se.setActive&&r)try{await se.setActive({organization:r})}catch{}}catch{}const Ze=await fetch("/chat/completions",{method:"POST",headers:lt,body:JSON.stringify({messages:qe,stream:!0}),signal:ht.signal});if(clearTimeout(xt),!Ze.ok){let tt="server",Tt=`Server returned ${Ze.status}`;if(Ze.status===429){tt="rate_limit";const _t=Ze.headers.get("Retry-After");Tt=_t?`Too many requests. Please try again in ${_t} seconds.`:"Too many requests. Please wait a moment and try again."}else Ze.status>=500?Tt="Server error. Please try again later.":(Ze.status===401||Ze.status===403)&&(Tt="Authentication error. Please refresh and try again.");throw{type:tt,status:Ze.status,message:Tt}}await zm(Ze,tt=>{const Tt=Fm(tt);d(_t=>{const re=[..._t];return re[at].content=Tt,re})},{signal:ht.signal}),j&&d(tt=>{const Tt=[...tt];return vn.updateChat(j,Tt),Q(vn.getAllChats()),Tt}),g(!1),L(null),h(!0)}catch(lt){clearTimeout(xt);let Ze={type:"server",message:"An unexpected error occurred",status:null};if(lt.name==="AbortError")if(jt)Ze={type:"timeout",message:"Request timed out. The server took too long to respond."};else{console.log("Retry stopped by user"),d(Zt=>{const tt=[...Zt];return tt[at].content+=`
399
+
400
+ *[Generation stopped]*`,j&&(vn.updateChat(j,tt),Q(vn.getAllChats())),tt}),g(!1),L(null),h(!0);return}else lt instanceof TypeError&&lt.message.includes("fetch")?Ze={type:"network",message:"Network error. Please check your connection and try again."}:lt.type&&(Ze=lt);console.error("Retry error:",lt),d(Zt=>{const tt=[...Zt];return tt[at].error=Ze,tt}),g(!1),L(null),h(!0)}}},[o,n,r,J==null?void 0:J.getToken,se==null?void 0:se.setActive,j]),An=o.length===0;return P.jsxs("div",{className:"min-h-screen",children:[P.jsx(hz,{isOpen:z,onClose:()=>ne(!1),chats:ce,activeChat:j,onSelectChat:Mt,onNewChat:Be,onDeleteChat:ot}),P.jsx(yz,{open:fe&&l==="cycls_pass",onClose:A,tier:l||"Pro"}),P.jsx("button",{onClick:()=>ne(!z),className:"fixed top-2 left-4 z-30 ","aria-label":"Toggle chat history",children:P.jsx(dz,{})}),P.jsxs("div",{className:"mx-auto max-w-3xl min-h-screen px-4 pb-[200px] md:pb-[180px]",children:[y&&P.jsx(cz,{fileName:y.fileName,progress:y.progress}),P.jsx("div",{className:"prose m-2 mx-auto max-w-3xl p-2 prose-pre:p-0",children:P.jsx(Hm,{markdown:e,onSend:Ie})}),!An&&P.jsx(P.Fragment,{children:P.jsxs("div",{className:`transition-opacity duration-500 ${w?"opacity-100":"opacity-0"}`,children:[P.jsx(sz,{messages:o,onSend:Ie,onRegenerate:Qt,onRetry:Ft,retryingIndex:M,isGenerating:p}),P.jsx("div",{ref:G})]})}),An&&!w&&t&&t.trim()!==""&&P.jsx("div",{className:"mx-auto max-w-3xl prose prose-sm prose-pre:p-0",children:P.jsx(Hm,{markdown:t,onSend:Ie})}),P.jsx(oz,{onSend:Ie,isLoading:p,onStop:Ve,disabled:ye,onUpgradeClick:()=>pe(!0)})]})]})},Sz=({afterUrl:e})=>{const[t,n]=V.useState("sign-in"),r=vi();V.useEffect(()=>{r.hash==="#sign-up/"?n("sign-up"):n("sign-in")},[r]);const s={elements:{card:"shadow-none border-none",footer:"hidden",formButtonPrimary:"py-2.5 rounded-lg transition-colors",formFieldInput:"border-gray-300 focus:border-blue-500 focus:ring-blue-500 rounded-lg",formFieldLabel:"text-gray-700 font-medium text-sm",dividerLine:"bg-gray-200",dividerText:"text-gray-500 text-sm"}};return P.jsx("div",{className:"min-h-screen flex items-center justify-center px-4 bg-gray-50",children:P.jsx("div",{className:"w-full max-w-md",children:t==="sign-in"?P.jsxs("div",{className:"space-y-4",children:[P.jsx(oU,{routing:"virtual",fallbackRedirectUrl:e,signUpUrl:"#sign-up",appearance:s}),P.jsx("div",{style:{marginLeft:"-30px"},className:"text-center",children:P.jsxs("p",{className:"text-gray-800 text-sm",children:["Don't have an account?"," ",P.jsx("a",{href:"#sign-up/",className:"text-blue-600 hover:text-blue-700 font-medium hover:underline transition-colors",children:"Sign up"})]})})]}):P.jsxs("div",{className:"space-y-4",children:[P.jsx(cU,{routing:"virtual",fallbackRedirectUrl:e,signInUrl:"#sign-in",appearance:s}),P.jsx("div",{style:{marginLeft:"-40px"},className:"text-center",children:P.jsxs("p",{className:"text-gray-800 text-sm",children:["Already have an account?"," ",P.jsx("a",{href:"#sign-in/",className:"text-blue-600 hover:text-blue-700 font-medium hover:underline transition-colors",children:"Sign in"})]})})]})})})},xz=({children:e})=>P.jsxs(P.Fragment,{children:[P.jsx(pv,{children:e}),P.jsx(eU,{children:P.jsx(xE,{to:"/auth",replace:!0})})]}),fE=({meta:e})=>{const t=!!e.prod,n=!!e.auth,r=String(e.header??""),s=String(e.intro??""),l=String(e.title??"AI Agent"),o=e.tier||null,d=t?e.pk_live:e.pk_test,f=e.org||void 0,h=typeof window<"u"?`${window.location.origin}/`:"/";if(!n)return P.jsx(dE,{HEADER:r,INTRO:s,AUTH:n,ORG:f,TITLE:l,TIER:o});const p=t?{isSatellite:!1,domain:"cycls.ai",fallbackRedirectUrl:h,forceRedirectUrl:h}:{fallbackRedirectUrl:h,forceRedirectUrl:h};return P.jsx(Mv,{publishableKey:d,...p,children:P.jsxs(a_,{children:[P.jsx(pv,{children:P.jsx("div",{className:"fixed right-2 top-2 z-50",children:P.jsx(mU,{})})}),P.jsxs(L9,{children:[P.jsx(z0,{path:"/auth",element:P.jsx(Sz,{afterUrl:h})}),P.jsx(z0,{path:"/",element:P.jsx(xz,{children:P.jsx(dE,{HEADER:r,INTRO:s,AUTH:n,ORG:f,TITLE:l,TIER:o})})}),P.jsx(z0,{path:"*",element:P.jsx(xE,{to:"/",replace:!0})})]})]})})},Q0=document.getElementById("root");Q0._reactRoot||(Q0._reactRoot=YT.createRoot(Q0));Q0._reactRoot.render(P.jsx(_z,{}));