cycls 0.0.2.89__py3-none-any.whl → 0.0.2.91__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.
- cycls/app.py +5 -4
- cycls/state.py +6 -0
- cycls/themes/default/assets/index-BbLcHBku.js +435 -0
- cycls/themes/default/index.html +6 -2
- cycls/web.py +33 -25
- {cycls-0.0.2.89.dist-info → cycls-0.0.2.91.dist-info}/METADATA +18 -6
- cycls-0.0.2.91.dist-info/RECORD +15 -0
- cycls/themes/default/assets/index-C2r4Daz3.js +0 -435
- cycls/themes/default/assets/index-DWGS8zpa.css +0 -1
- cycls/themes/defaultN/assets/index-DOmNqb-2.js +0 -435
- cycls/themes/defaultN/index.html +0 -32
- cycls-0.0.2.89.dist-info/RECORD +0 -17
- /cycls/themes/{defaultN → default}/assets/index-oGkkm3Z8.css +0 -0
- {cycls-0.0.2.89.dist-info → cycls-0.0.2.91.dist-info}/WHEEL +0 -0
- {cycls-0.0.2.89.dist-info → cycls-0.0.2.91.dist-info}/entry_points.txt +0 -0
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
var SA=Object.defineProperty;var wA=(e,t,n)=>t in e?SA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qi=(e,t,n)=>wA(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function If(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c1={exports:{}},Tc={};/**
|
|
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 Uy;function AA(){if(Uy)return Tc;Uy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var o=null;if(s!==void 0&&(o=""+s),a.key!==void 0&&(o=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:o,ref:a!==void 0?a:null,props:s}}return Tc.Fragment=t,Tc.jsx=n,Tc.jsxs=n,Tc}var Fy;function kA(){return Fy||(Fy=1,c1.exports=AA()),c1.exports}var R=kA(),d1={exports:{}},St={};/**
|
|
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 zy;function CA(){if(zy)return St;zy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=p&&A[p]||A["@@iterator"],typeof A=="function"?A:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,x={};function C(A,ne,pe){this.props=A,this.context=ne,this.refs=x,this.updater=pe||y}C.prototype.isReactComponent={},C.prototype.setState=function(A,ne){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,ne,"setState")},C.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function w(){}w.prototype=C.prototype;function O(A,ne,pe){this.props=A,this.context=ne,this.refs=x,this.updater=pe||y}var D=O.prototype=new w;D.constructor=O,T(D,C.prototype),D.isPureReactComponent=!0;var j=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},U=Object.prototype.hasOwnProperty;function ee(A,ne,pe,L,Oe,He){return pe=He.ref,{$$typeof:e,type:A,key:ne,ref:pe!==void 0?pe:null,props:He}}function Z(A,ne){return ee(A.type,ne,void 0,void 0,void 0,A.props)}function Q(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function G(A){var ne={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(pe){return ne[pe]})}var se=/\/+/g;function de(A,ne){return typeof A=="object"&&A!==null&&A.key!=null?G(""+A.key):ne.toString(36)}function ve(){}function oe(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ve,ve):(A.status="pending",A.then(function(ne){A.status==="pending"&&(A.status="fulfilled",A.value=ne)},function(ne){A.status==="pending"&&(A.status="rejected",A.reason=ne)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function ye(A,ne,pe,L,Oe){var He=typeof A;(He==="undefined"||He==="boolean")&&(A=null);var Le=!1;if(A===null)Le=!0;else switch(He){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(A.$$typeof){case e:case t:Le=!0;break;case m:return Le=A._init,ye(Le(A._payload),ne,pe,L,Oe)}}if(Le)return Oe=Oe(A),Le=L===""?"."+de(A,0):L,j(Oe)?(pe="",Le!=null&&(pe=Le.replace(se,"$&/")+"/"),ye(Oe,ne,pe,"",function(qt){return qt})):Oe!=null&&(Q(Oe)&&(Oe=Z(Oe,pe+(Oe.key==null||A&&A.key===Oe.key?"":(""+Oe.key).replace(se,"$&/")+"/")+Le)),ne.push(Oe)),1;Le=0;var Mt=L===""?".":L+":";if(j(A))for(var ut=0;ut<A.length;ut++)L=A[ut],He=Mt+de(L,ut),Le+=ye(L,ne,pe,He,Oe);else if(ut=b(A),typeof ut=="function")for(A=ut.call(A),ut=0;!(L=A.next()).done;)L=L.value,He=Mt+de(L,ut++),Le+=ye(L,ne,pe,He,Oe);else if(He==="object"){if(typeof A.then=="function")return ye(oe(A),ne,pe,L,Oe);throw ne=String(A),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.")}return Le}function V(A,ne,pe){if(A==null)return A;var L=[],Oe=0;return ye(A,L,"","",function(He){return ne.call(pe,He,Oe++)}),L}function ue(A){if(A._status===-1){var ne=A._result;ne=ne(),ne.then(function(pe){(A._status===0||A._status===-1)&&(A._status=1,A._result=pe)},function(pe){(A._status===0||A._status===-1)&&(A._status=2,A._result=pe)}),A._status===-1&&(A._status=0,A._result=ne)}if(A._status===1)return A._result.default;throw A._result}var me=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ne=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(ne))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function De(){}return St.Children={map:V,forEach:function(A,ne,pe){V(A,function(){ne.apply(this,arguments)},pe)},count:function(A){var ne=0;return V(A,function(){ne++}),ne},toArray:function(A){return V(A,function(ne){return ne})||[]},only:function(A){if(!Q(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},St.Component=C,St.Fragment=n,St.Profiler=a,St.PureComponent=O,St.StrictMode=r,St.Suspense=d,St.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,St.__COMPILER_RUNTIME={__proto__:null,c:function(A){return z.H.useMemoCache(A)}},St.cache=function(A){return function(){return A.apply(null,arguments)}},St.cloneElement=function(A,ne,pe){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var L=T({},A.props),Oe=A.key,He=void 0;if(ne!=null)for(Le in ne.ref!==void 0&&(He=void 0),ne.key!==void 0&&(Oe=""+ne.key),ne)!U.call(ne,Le)||Le==="key"||Le==="__self"||Le==="__source"||Le==="ref"&&ne.ref===void 0||(L[Le]=ne[Le]);var Le=arguments.length-2;if(Le===1)L.children=pe;else if(1<Le){for(var Mt=Array(Le),ut=0;ut<Le;ut++)Mt[ut]=arguments[ut+2];L.children=Mt}return ee(A.type,Oe,void 0,void 0,He,L)},St.createContext=function(A){return A={$$typeof:o,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:s,_context:A},A},St.createElement=function(A,ne,pe){var L,Oe={},He=null;if(ne!=null)for(L in ne.key!==void 0&&(He=""+ne.key),ne)U.call(ne,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(Oe[L]=ne[L]);var Le=arguments.length-2;if(Le===1)Oe.children=pe;else if(1<Le){for(var Mt=Array(Le),ut=0;ut<Le;ut++)Mt[ut]=arguments[ut+2];Oe.children=Mt}if(A&&A.defaultProps)for(L in Le=A.defaultProps,Le)Oe[L]===void 0&&(Oe[L]=Le[L]);return ee(A,He,void 0,void 0,null,Oe)},St.createRef=function(){return{current:null}},St.forwardRef=function(A){return{$$typeof:c,render:A}},St.isValidElement=Q,St.lazy=function(A){return{$$typeof:m,_payload:{_status:-1,_result:A},_init:ue}},St.memo=function(A,ne){return{$$typeof:f,type:A,compare:ne===void 0?null:ne}},St.startTransition=function(A){var ne=z.T,pe={};z.T=pe;try{var L=A(),Oe=z.S;Oe!==null&&Oe(pe,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(De,me)}catch(He){me(He)}finally{z.T=ne}},St.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},St.use=function(A){return z.H.use(A)},St.useActionState=function(A,ne,pe){return z.H.useActionState(A,ne,pe)},St.useCallback=function(A,ne){return z.H.useCallback(A,ne)},St.useContext=function(A){return z.H.useContext(A)},St.useDebugValue=function(){},St.useDeferredValue=function(A,ne){return z.H.useDeferredValue(A,ne)},St.useEffect=function(A,ne,pe){var L=z.H;if(typeof pe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return L.useEffect(A,ne)},St.useId=function(){return z.H.useId()},St.useImperativeHandle=function(A,ne,pe){return z.H.useImperativeHandle(A,ne,pe)},St.useInsertionEffect=function(A,ne){return z.H.useInsertionEffect(A,ne)},St.useLayoutEffect=function(A,ne){return z.H.useLayoutEffect(A,ne)},St.useMemo=function(A,ne){return z.H.useMemo(A,ne)},St.useOptimistic=function(A,ne){return z.H.useOptimistic(A,ne)},St.useReducer=function(A,ne,pe){return z.H.useReducer(A,ne,pe)},St.useRef=function(A){return z.H.useRef(A)},St.useState=function(A){return z.H.useState(A)},St.useSyncExternalStore=function(A,ne,pe){return z.H.useSyncExternalStore(A,ne,pe)},St.useTransition=function(){return z.H.useTransition()},St.version="19.1.0",St}var Hy;function Df(){return Hy||(Hy=1,d1.exports=CA()),d1.exports}var H=Df();const ce=If(H);var h1={exports:{}},xc={},f1={exports:{}},m1={};/**
|
|
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 qy;function NA(){return qy||(qy=1,function(e){function t(V,ue){var me=V.length;V.push(ue);e:for(;0<me;){var De=me-1>>>1,A=V[De];if(0<a(A,ue))V[De]=ue,V[me]=A,me=De;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var ue=V[0],me=V.pop();if(me!==ue){V[0]=me;e:for(var De=0,A=V.length,ne=A>>>1;De<ne;){var pe=2*(De+1)-1,L=V[pe],Oe=pe+1,He=V[Oe];if(0>a(L,me))Oe<A&&0>a(He,L)?(V[De]=He,V[Oe]=me,De=Oe):(V[De]=L,V[pe]=me,De=pe);else if(Oe<A&&0>a(He,me))V[De]=He,V[Oe]=me,De=Oe;else break e}}return ue}function a(V,ue){var me=V.sortIndex-ue.sortIndex;return me!==0?me:V.id-ue.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var d=[],f=[],m=1,p=null,b=3,y=!1,T=!1,x=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function j(V){for(var ue=n(f);ue!==null;){if(ue.callback===null)r(f);else if(ue.startTime<=V)r(f),ue.sortIndex=ue.expirationTime,t(d,ue);else break;ue=n(f)}}function z(V){if(x=!1,j(V),!T)if(n(d)!==null)T=!0,U||(U=!0,de());else{var ue=n(f);ue!==null&&ye(z,ue.startTime-V)}}var U=!1,ee=-1,Z=5,Q=-1;function G(){return C?!0:!(e.unstable_now()-Q<Z)}function se(){if(C=!1,U){var V=e.unstable_now();Q=V;var ue=!0;try{e:{T=!1,x&&(x=!1,O(ee),ee=-1),y=!0;var me=b;try{t:{for(j(V),p=n(d);p!==null&&!(p.expirationTime>V&&G());){var De=p.callback;if(typeof De=="function"){p.callback=null,b=p.priorityLevel;var A=De(p.expirationTime<=V);if(V=e.unstable_now(),typeof A=="function"){p.callback=A,j(V),ue=!0;break t}p===n(d)&&r(d),j(V)}else r(d);p=n(d)}if(p!==null)ue=!0;else{var ne=n(f);ne!==null&&ye(z,ne.startTime-V),ue=!1}}break e}finally{p=null,b=me,y=!1}ue=void 0}}finally{ue?de():U=!1}}}var de;if(typeof D=="function")de=function(){D(se)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,oe=ve.port2;ve.port1.onmessage=se,de=function(){oe.postMessage(null)}}else de=function(){w(se,0)};function ye(V,ue){ee=w(function(){V(e.unstable_now())},ue)}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(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(V){switch(b){case 1:case 2:case 3:var ue=3;break;default:ue=b}var me=b;b=ue;try{return V()}finally{b=me}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(V,ue){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var me=b;b=V;try{return ue()}finally{b=me}},e.unstable_scheduleCallback=function(V,ue,me){var De=e.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?De+me:De):me=De,V){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=me+A,V={id:m++,callback:ue,priorityLevel:V,startTime:me,expirationTime:A,sortIndex:-1},me>De?(V.sortIndex=me,t(f,V),n(d)===null&&V===n(f)&&(x?(O(ee),ee=-1):x=!0,ye(z,me-De))):(V.sortIndex=A,t(d,V),T||y||(T=!0,U||(U=!0,de()))),V},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(V){var ue=b;return function(){var me=b;b=ue;try{return V.apply(this,arguments)}finally{b=me}}}}(m1)),m1}var jy;function OA(){return jy||(jy=1,f1.exports=NA()),f1.exports}var p1={exports:{}},wr={};/**
|
|
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 $y;function RA(){if($y)return wr;$y=1;var e=Df();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" 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},a=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return wr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,wr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},wr.flushSync=function(d){var f=o.T,m=r.p;try{if(o.T=null,r.p=2,d)return d()}finally{o.T=f,r.p=m,r.d.f()}},wr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},wr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},wr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:b,fetchPriority:y}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:b,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},wr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},wr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},wr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},wr.requestFormReset=function(d){r.d.r(d)},wr.unstable_batchedUpdates=function(d,f){return d(f)},wr.useFormState=function(d,f,m){return o.H.useFormState(d,f,m)},wr.useFormStatus=function(){return o.H.useHostTransitionStatus()},wr.version="19.1.0",wr}var Yy;function q5(){if(Yy)return p1.exports;Yy=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(),p1.exports=RA(),p1.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 Gy;function MA(){if(Gy)return xc;Gy=1;var e=OA(),t=Df(),n=q5();function r(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var l=i,u=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(u=l.return),i=l.return;while(i)}return l.tag===3?u:null}function o(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function c(i){if(s(i)!==i)throw Error(r(188))}function d(i){var l=i.alternate;if(!l){if(l=s(i),l===null)throw Error(r(188));return l!==i?null:i}for(var u=i,h=l;;){var g=u.return;if(g===null)break;var v=g.alternate;if(v===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===u)return c(g),i;if(v===h)return c(g),l;v=v.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=v;else{for(var k=!1,M=g.child;M;){if(M===u){k=!0,u=g,h=v;break}if(M===h){k=!0,h=g,u=v;break}M=M.sibling}if(!k){for(M=v.child;M;){if(M===u){k=!0,u=v,h=g;break}if(M===h){k=!0,h=v,u=g;break}M=M.sibling}if(!k)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:l}function f(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=f(i),l!==null)return l;i=i.sibling}return null}var m=Object.assign,p=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),D=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function de(i){return i===null||typeof i!="object"?null:(i=se&&i[se]||i["@@iterator"],typeof i=="function"?i:null)}var ve=Symbol.for("react.client.reference");function oe(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===ve?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case C:return"Profiler";case x:return"StrictMode";case z:return"Suspense";case U:return"SuspenseList";case Q:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case D:return(i.displayName||"Context")+".Provider";case O:return(i._context.displayName||"Context")+".Consumer";case j:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case ee:return l=i.displayName||null,l!==null?l:oe(i.type)||"Memo";case Z:l=i._payload,i=i._init;try{return oe(i(l))}catch{}}return null}var ye=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},De=[],A=-1;function ne(i){return{current:i}}function pe(i){0>A||(i.current=De[A],De[A]=null,A--)}function L(i,l){A++,De[A]=i.current,i.current=l}var Oe=ne(null),He=ne(null),Le=ne(null),Mt=ne(null);function ut(i,l){switch(L(Le,l),L(He,i),L(Oe,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?hy(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=hy(l),i=fy(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}pe(Oe),L(Oe,i)}function qt(){pe(Oe),pe(He),pe(Le)}function kt(i){i.memoizedState!==null&&L(Mt,i);var l=Oe.current,u=fy(l,i.type);l!==u&&(L(He,i),L(Oe,u))}function En(i){He.current===i&&(pe(Oe),pe(He)),Mt.current===i&&(pe(Mt),bc._currentValue=me)}var pr=Object.prototype.hasOwnProperty,yt=e.unstable_scheduleCallback,bt=e.unstable_cancelCallback,Ft=e.unstable_shouldYield,Je=e.unstable_requestPaint,Et=e.unstable_now,gn=e.unstable_getCurrentPriorityLevel,Bt=e.unstable_ImmediatePriority,un=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,cn=e.unstable_LowPriority,Tn=e.unstable_IdlePriority,lr=e.log,bn=e.unstable_setDisableYieldValue,fe=null,Se=null;function qe(i){if(typeof lr=="function"&&bn(i),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(fe,i)}catch{}}var tt=Math.clz32?Math.clz32:_t,et=Math.log,We=Math.LN2;function _t(i){return i>>>=0,i===0?32:31-(et(i)/We|0)|0}var jt=256,Fn=4194304;function Rr(i){var l=i&42;if(l!==0)return l;switch(i&-i){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 i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Yn(i,l,u){var h=i.pendingLanes;if(h===0)return 0;var g=0,v=i.suspendedLanes,k=i.pingedLanes;i=i.warmLanes;var M=h&134217727;return M!==0?(h=M&~v,h!==0?g=Rr(h):(k&=M,k!==0?g=Rr(k):u||(u=M&~i,u!==0&&(g=Rr(u))))):(M=h&~v,M!==0?g=Rr(M):k!==0?g=Rr(k):u||(u=h&~i,u!==0&&(g=Rr(u)))),g===0?0:l!==0&&l!==g&&(l&v)===0&&(v=g&-g,u=l&-l,v>=u||v===32&&(u&4194048)!==0)?l:g}function Yr(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function Mr(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 xu(){var i=jt;return jt<<=1,(jt&4194048)===0&&(jt=256),i}function Su(){var i=Fn;return Fn<<=1,(Fn&62914560)===0&&(Fn=4194304),i}function wu(i){for(var l=[],u=0;31>u;u++)l.push(i);return l}function hs(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function fs(i,l,u,h,g,v){var k=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var M=i.entanglements,Y=i.expirationTimes,ae=i.hiddenUpdates;for(u=k&~u;0<u;){var _e=31-tt(u),xe=1<<_e;M[_e]=0,Y[_e]=-1;var le=ae[_e];if(le!==null)for(ae[_e]=null,_e=0;_e<le.length;_e++){var he=le[_e];he!==null&&(he.lane&=-536870913)}u&=~xe}h!==0&&K(i,h,0),v!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=v&~(k&~l))}function K(i,l,u){i.pendingLanes|=l,i.suspendedLanes&=~l;var h=31-tt(l);i.entangledLanes|=l,i.entanglements[h]=i.entanglements[h]|1073741824|u&4194090}function Ee(i,l){var u=i.entangledLanes|=l;for(i=i.entanglements;u;){var h=31-tt(u),g=1<<h;g&l|i[h]&l&&(i[h]|=l),u&=~g}}function Ue(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function ft(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function xn(){var i=ue.p;return i!==0?i:(i=window.event,i===void 0?32:My(i.type))}function Nn(i,l){var u=ue.p;try{return ue.p=i,l()}finally{ue.p=u}}var Ge=Math.random().toString(36).slice(2),Be="__reactFiber$"+Ge,nt="__reactProps$"+Ge,vn="__reactContainer$"+Ge,Sn="__reactEvents$"+Ge,cl="__reactListeners$"+Ge,Au="__reactHandles$"+Ge,no="__reactResources$"+Ge,dl="__reactMarker$"+Ge;function hl(i){delete i[Be],delete i[nt],delete i[Sn],delete i[cl],delete i[Au]}function ms(i){var l=i[Be];if(l)return l;for(var u=i.parentNode;u;){if(l=u[vn]||u[Be]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(i=by(i);i!==null;){if(u=i[Be])return u;i=by(i)}return l}i=u,u=i.parentNode}return null}function ps(i){if(i=i[Be]||i[vn]){var l=i.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return i}return null}function fl(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i.stateNode;throw Error(r(33))}function Si(i){var l=i[no];return l||(l=i[no]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function On(i){i[dl]=!0}var G0=new Set,V0={};function wi(i,l){Ir(i,l),Ir(i+"Capture",l)}function Ir(i,l){for(V0[i]=l,i=0;i<l.length;i++)G0.add(l[i])}var K0=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]*$"),ku={},W0={};function dm(i){return pr.call(W0,i)?!0:pr.call(ku,i)?!1:K0.test(i)?W0[i]=!0:(ku[i]=!0,!1)}function ro(i,l,u){if(dm(l))if(u===null)i.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(l);return;case"boolean":var h=l.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(l);return}}i.setAttribute(l,""+u)}}function Ai(i,l,u){if(u===null)i.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttribute(l,""+u)}}function Ha(i,l,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(l,u,""+h)}}var Re,at;function Tt(i){if(Re===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);Re=l&&l[1]||"",at=-1<u.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Re+i+at}var Vt=!1;function Rn(i,l){if(!i||Vt)return"";Vt=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(l){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(he){var le=he}Reflect.construct(i,[],xe)}else{try{xe.call()}catch(he){le=he}i.call(xe.prototype)}}else{try{throw Error()}catch(he){le=he}(xe=i())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch(he){if(he&&le&&typeof he.stack=="string")return[he.stack,le.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=h.DetermineComponentFrameRoot(),k=v[0],M=v[1];if(k&&M){var Y=k.split(`
|
|
44
|
-
`),ae=M.split(`
|
|
45
|
-
`);for(g=h=0;h<Y.length&&!Y[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ae.length&&!ae[g].includes("DetermineComponentFrameRoot");)g++;if(h===Y.length||g===ae.length)for(h=Y.length-1,g=ae.length-1;1<=h&&0<=g&&Y[h]!==ae[g];)g--;for(;1<=h&&0<=g;h--,g--)if(Y[h]!==ae[g]){if(h!==1||g!==1)do if(h--,g--,0>g||Y[h]!==ae[g]){var _e=`
|
|
46
|
-
`+Y[h].replace(" at new "," at ");return i.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",i.displayName)),_e}while(1<=h&&0<=g);break}}}finally{Vt=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Tt(u):""}function ia(i){switch(i.tag){case 26:case 27:case 5:return Tt(i.type);case 16:return Tt("Lazy");case 13:return Tt("Suspense");case 19:return Tt("SuspenseList");case 0:case 15:return Rn(i.type,!1);case 11:return Rn(i.type.render,!1);case 1:return Rn(i.type,!0);case 31:return Tt("Activity");default:return""}}function qa(i){try{var l="";do l+=ia(i),i=i.return;while(i);return l}catch(u){return`
|
|
47
|
-
Error generating stack: `+u.message+`
|
|
48
|
-
`+u.stack}}function gr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function xr(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Ta(i){var l=xr(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),h=""+i[l];if(!i.hasOwnProperty(l)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,v=u.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return g.call(this)},set:function(k){h=""+k,v.call(this,k)}}),Object.defineProperty(i,l,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(k){h=""+k},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function ml(i){i._valueTracker||(i._valueTracker=Ta(i))}function Cu(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var u=l.getValue(),h="";return i&&(h=xr(i)?i.checked?"true":"false":i.value),i=h,i!==u?(l.setValue(i),!0):!1}function pl(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var hm=/[\n"\\]/g;function Gr(i){return i.replace(hm,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Nu(i,l,u,h,g,v,k,M){i.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.type=k:i.removeAttribute("type"),l!=null?k==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+gr(l)):i.value!==""+gr(l)&&(i.value=""+gr(l)):k!=="submit"&&k!=="reset"||i.removeAttribute("value"),l!=null?gs(i,k,gr(l)):u!=null?gs(i,k,gr(u)):h!=null&&i.removeAttribute("value"),g==null&&v!=null&&(i.defaultChecked=!!v),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?i.name=""+gr(M):i.removeAttribute("name")}function X0(i,l,u,h,g,v,k,M){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(i.type=v),l!=null||u!=null){if(!(v!=="submit"&&v!=="reset"||l!=null))return;u=u!=null?""+gr(u):"",l=l!=null?""+gr(l):u,M||l===i.value||(i.value=l),i.defaultValue=l}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=M?i.checked:!!h,i.defaultChecked=!!h,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(i.name=k)}function gs(i,l,u){l==="number"&&pl(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function ki(i,l,u,h){if(i=i.options,l){l={};for(var g=0;g<u.length;g++)l["$"+u[g]]=!0;for(u=0;u<i.length;u++)g=l.hasOwnProperty("$"+i[u].value),i[u].selected!==g&&(i[u].selected=g),g&&h&&(i[u].defaultSelected=!0)}else{for(u=""+gr(u),l=null,g=0;g<i.length;g++){if(i[g].value===u){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}l!==null||i[g].disabled||(l=i[g])}l!==null&&(l.selected=!0)}}function sa(i,l,u){if(l!=null&&(l=""+gr(l),l!==i.value&&(i.value=l),u==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=u!=null?""+gr(u):""}function Q0(i,l,u,h){if(l==null){if(h!=null){if(u!=null)throw Error(r(92));if(ye(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),l=u}u=gr(l),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h)}function ei(i,l){if(l){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=l;return}}i.textContent=l}var vt=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 Ou(i,l,u){var h=l.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="":h?i.setProperty(l,u):typeof u!="number"||u===0||vt.has(l)?l==="float"?i.cssFloat=u:i[l]=(""+u).trim():i[l]=u+"px"}function Gn(i,l,u){if(l!=null&&typeof l!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||l!=null&&l.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in l)h=l[g],l.hasOwnProperty(g)&&u[g]!==h&&Ou(i,g,h)}else for(var v in l)l.hasOwnProperty(v)&&Ou(i,v,l[v])}function Kt(i){if(i.indexOf("-")===-1)return!1;switch(i){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 ao=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"]]),Ci=/^[\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 bs(i){return Ci.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var gl=null;function Fe(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Qe=null,gt=null;function $t(i){var l=ps(i);if(l&&(i=l.stateNode)){var u=i[nt]||null;e:switch(i=l.stateNode,l.type){case"input":if(Nu(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),l=u.name,u.type==="radio"&&l!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Gr(""+l)+'"][type="radio"]'),l=0;l<u.length;l++){var h=u[l];if(h!==i&&h.form===i.form){var g=h[nt]||null;if(!g)throw Error(r(90));Nu(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(l=0;l<u.length;l++)h=u[l],h.form===i.form&&Cu(h)}break e;case"textarea":sa(i,u.value,u.defaultValue);break e;case"select":l=u.value,l!=null&&ki(i,!!u.multiple,l,!1)}}}var Vn=!1;function xa(i,l,u){if(Vn)return i(l,u);Vn=!0;try{var h=i(l);return h}finally{if(Vn=!1,(Qe!==null||gt!==null)&&(Pd(),Qe&&(l=Qe,i=gt,gt=Qe=null,$t(l),i)))for(l=0;l<i.length;l++)$t(i[l])}}function bl(i,l){var u=i.stateNode;if(u===null)return null;var h=u[nt]||null;if(h===null)return null;u=h[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,l,typeof u));return u}var ja=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fm=!1;if(ja)try{var Ru={};Object.defineProperty(Ru,"passive",{get:function(){fm=!0}}),window.addEventListener("test",Ru,Ru),window.removeEventListener("test",Ru,Ru)}catch{fm=!1}var vs=null,mm=null,Z0=null;function gv(){if(Z0)return Z0;var i,l=mm,u=l.length,h,g="value"in vs?vs.value:vs.textContent,v=g.length;for(i=0;i<u&&l[i]===g[i];i++);var k=u-i;for(h=1;h<=k&&l[u-h]===g[v-h];h++);return Z0=g.slice(i,1<h?1-h:void 0)}function J0(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function ed(){return!0}function bv(){return!1}function Vr(i){function l(u,h,g,v,k){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=v,this.target=k,this.currentTarget=null;for(var M in i)i.hasOwnProperty(M)&&(u=i[M],this[M]=u?u(v):v[M]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?ed:bv,this.isPropagationStopped=bv,this}return m(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=ed)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=ed)},persist:function(){},isPersistent:ed}),l}var vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=Vr(vl),Mu=m({},vl,{view:0,detail:0}),S9=Vr(Mu),pm,gm,Iu,nd=m({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Iu&&(Iu&&i.type==="mousemove"?(pm=i.screenX-Iu.screenX,gm=i.screenY-Iu.screenY):gm=pm=0,Iu=i),pm)},movementY:function(i){return"movementY"in i?i.movementY:gm}}),vv=Vr(nd),w9=m({},nd,{dataTransfer:0}),A9=Vr(w9),k9=m({},Mu,{relatedTarget:0}),bm=Vr(k9),C9=m({},vl,{animationName:0,elapsedTime:0,pseudoElement:0}),N9=Vr(C9),O9=m({},vl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),R9=Vr(O9),M9=m({},vl,{data:0}),yv=Vr(M9),I9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D9={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"},L9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P9(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=L9[i])?!!l[i]:!1}function vm(){return P9}var B9=m({},Mu,{key:function(i){if(i.key){var l=I9[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=J0(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?D9[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vm,charCode:function(i){return i.type==="keypress"?J0(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?J0(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),U9=Vr(B9),F9=m({},nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_v=Vr(F9),z9=m({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vm}),H9=Vr(z9),q9=m({},vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),j9=Vr(q9),$9=m({},nd,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Y9=Vr($9),G9=m({},vl,{newState:0,oldState:0}),V9=Vr(G9),K9=[9,13,27,32],ym=ja&&"CompositionEvent"in window,Du=null;ja&&"documentMode"in document&&(Du=document.documentMode);var W9=ja&&"TextEvent"in window&&!Du,Ev=ja&&(!ym||Du&&8<Du&&11>=Du),Tv=" ",xv=!1;function Sv(i,l){switch(i){case"keyup":return K9.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var io=!1;function X9(i,l){switch(i){case"compositionend":return wv(l);case"keypress":return l.which!==32?null:(xv=!0,Tv);case"textInput":return i=l.data,i===Tv&&xv?null:i;default:return null}}function Q9(i,l){if(io)return i==="compositionend"||!ym&&Sv(i,l)?(i=gv(),Z0=mm=vs=null,io=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Ev&&l.locale!=="ko"?null:l.data;default:return null}}var Z9={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 Av(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!Z9[i.type]:l==="textarea"}function kv(i,l,u,h){Qe?gt?gt.push(h):gt=[h]:Qe=h,l=qd(l,"onChange"),0<l.length&&(u=new td("onChange","change",null,u,h),i.push({event:u,listeners:l}))}var Lu=null,Pu=null;function J9(i){ly(i,0)}function rd(i){var l=fl(i);if(Cu(l))return i}function Cv(i,l){if(i==="change")return l}var Nv=!1;if(ja){var _m;if(ja){var Em="oninput"in document;if(!Em){var Ov=document.createElement("div");Ov.setAttribute("oninput","return;"),Em=typeof Ov.oninput=="function"}_m=Em}else _m=!1;Nv=_m&&(!document.documentMode||9<document.documentMode)}function Rv(){Lu&&(Lu.detachEvent("onpropertychange",Mv),Pu=Lu=null)}function Mv(i){if(i.propertyName==="value"&&rd(Pu)){var l=[];kv(l,Pu,i,Fe(i)),xa(J9,l)}}function ew(i,l,u){i==="focusin"?(Rv(),Lu=l,Pu=u,Lu.attachEvent("onpropertychange",Mv)):i==="focusout"&&Rv()}function tw(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return rd(Pu)}function nw(i,l){if(i==="click")return rd(l)}function rw(i,l){if(i==="input"||i==="change")return rd(l)}function aw(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var la=typeof Object.is=="function"?Object.is:aw;function Bu(i,l){if(la(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var u=Object.keys(i),h=Object.keys(l);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!pr.call(l,g)||!la(i[g],l[g]))return!1}return!0}function Iv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Dv(i,l){var u=Iv(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=l&&h>=l)return{node:u,offset:l-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Iv(u)}}function Lv(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?Lv(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function Pv(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=pl(i.document);l instanceof i.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)i=l.contentWindow;else break;l=pl(i.document)}return l}function Tm(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var iw=ja&&"documentMode"in document&&11>=document.documentMode,so=null,xm=null,Uu=null,Sm=!1;function Bv(i,l,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Sm||so==null||so!==pl(h)||(h=so,"selectionStart"in h&&Tm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Uu&&Bu(Uu,h)||(Uu=h,h=qd(xm,"onSelect"),0<h.length&&(l=new td("onSelect","select",null,l,u),i.push({event:l,listeners:h}),l.target=so)))}function yl(i,l){var u={};return u[i.toLowerCase()]=l.toLowerCase(),u["Webkit"+i]="webkit"+l,u["Moz"+i]="moz"+l,u}var lo={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},wm={},Uv={};ja&&(Uv=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);function _l(i){if(wm[i])return wm[i];if(!lo[i])return i;var l=lo[i],u;for(u in l)if(l.hasOwnProperty(u)&&u in Uv)return wm[i]=l[u];return i}var Fv=_l("animationend"),zv=_l("animationiteration"),Hv=_l("animationstart"),sw=_l("transitionrun"),lw=_l("transitionstart"),ow=_l("transitioncancel"),qv=_l("transitionend"),jv=new Map,Am="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(" ");Am.push("scrollEnd");function $a(i,l){jv.set(i,l),wi(l,[i])}var $v=new WeakMap;function Sa(i,l){if(typeof i=="object"&&i!==null){var u=$v.get(i);return u!==void 0?u:(l={value:i,source:l,stack:qa(l)},$v.set(i,l),l)}return{value:i,source:l,stack:qa(l)}}var wa=[],oo=0,km=0;function ad(){for(var i=oo,l=km=oo=0;l<i;){var u=wa[l];wa[l++]=null;var h=wa[l];wa[l++]=null;var g=wa[l];wa[l++]=null;var v=wa[l];if(wa[l++]=null,h!==null&&g!==null){var k=h.pending;k===null?g.next=g:(g.next=k.next,k.next=g),h.pending=g}v!==0&&Yv(u,g,v)}}function id(i,l,u,h){wa[oo++]=i,wa[oo++]=l,wa[oo++]=u,wa[oo++]=h,km|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Cm(i,l,u,h){return id(i,l,u,h),sd(i)}function uo(i,l){return id(i,null,null,l),sd(i)}function Yv(i,l,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var g=!1,v=i.return;v!==null;)v.childLanes|=u,h=v.alternate,h!==null&&(h.childLanes|=u),v.tag===22&&(i=v.stateNode,i===null||i._visibility&1||(g=!0)),i=v,v=v.return;return i.tag===3?(v=i.stateNode,g&&l!==null&&(g=31-tt(u),i=v.hiddenUpdates,h=i[g],h===null?i[g]=[l]:h.push(l),l.lane=u|536870912),v):null}function sd(i){if(50<uc)throw uc=0,Dp=null,Error(r(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var co={};function uw(i,l,u,h){this.tag=i,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=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oa(i,l,u,h){return new uw(i,l,u,h)}function Nm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ni(i,l){var u=i.alternate;return u===null?(u=oa(i.tag,l,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=l,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,l=i.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function Gv(i,l){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=l,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,l=u.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),i}function ld(i,l,u,h,g,v){var k=0;if(h=i,typeof i=="function")Nm(i)&&(k=1);else if(typeof i=="string")k=dA(i,u,Oe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case Q:return i=oa(31,u,l,g),i.elementType=Q,i.lanes=v,i;case T:return El(u.children,g,v,l);case x:k=8,g|=24;break;case C:return i=oa(12,u,l,g|2),i.elementType=C,i.lanes=v,i;case z:return i=oa(13,u,l,g),i.elementType=z,i.lanes=v,i;case U:return i=oa(19,u,l,g),i.elementType=U,i.lanes=v,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case w:case D:k=10;break e;case O:k=9;break e;case j:k=11;break e;case ee:k=14;break e;case Z:k=16,h=null;break e}k=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return l=oa(k,u,l,g),l.elementType=i,l.type=h,l.lanes=v,l}function El(i,l,u,h){return i=oa(7,i,h,l),i.lanes=u,i}function Om(i,l,u){return i=oa(6,i,null,l),i.lanes=u,i}function Rm(i,l,u){return l=oa(4,i.children!==null?i.children:[],i.key,l),l.lanes=u,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var ho=[],fo=0,od=null,ud=0,Aa=[],ka=0,Tl=null,Oi=1,Ri="";function xl(i,l){ho[fo++]=ud,ho[fo++]=od,od=i,ud=l}function Vv(i,l,u){Aa[ka++]=Oi,Aa[ka++]=Ri,Aa[ka++]=Tl,Tl=i;var h=Oi;i=Ri;var g=32-tt(h)-1;h&=~(1<<g),u+=1;var v=32-tt(l)+g;if(30<v){var k=g-g%5;v=(h&(1<<k)-1).toString(32),h>>=k,g-=k,Oi=1<<32-tt(l)+g|u<<g|h,Ri=v+i}else Oi=1<<v|u<<g|h,Ri=i}function Mm(i){i.return!==null&&(xl(i,1),Vv(i,1,0))}function Im(i){for(;i===od;)od=ho[--fo],ho[fo]=null,ud=ho[--fo],ho[fo]=null;for(;i===Tl;)Tl=Aa[--ka],Aa[ka]=null,Ri=Aa[--ka],Aa[ka]=null,Oi=Aa[--ka],Aa[ka]=null}var Dr=null,Pn=null,Gt=!1,Sl=null,ti=!1,Dm=Error(r(519));function wl(i){var l=Error(r(418,""));throw Hu(Sa(l,i)),Dm}function Kv(i){var l=i.stateNode,u=i.type,h=i.memoizedProps;switch(l[Be]=i,l[nt]=h,u){case"dialog":Dt("cancel",l),Dt("close",l);break;case"iframe":case"object":case"embed":Dt("load",l);break;case"video":case"audio":for(u=0;u<dc.length;u++)Dt(dc[u],l);break;case"source":Dt("error",l);break;case"img":case"image":case"link":Dt("error",l),Dt("load",l);break;case"details":Dt("toggle",l);break;case"input":Dt("invalid",l),X0(l,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),ml(l);break;case"select":Dt("invalid",l);break;case"textarea":Dt("invalid",l),Q0(l,h.value,h.defaultValue,h.children),ml(l)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||l.textContent===""+u||h.suppressHydrationWarning===!0||dy(l.textContent,u)?(h.popover!=null&&(Dt("beforetoggle",l),Dt("toggle",l)),h.onScroll!=null&&Dt("scroll",l),h.onScrollEnd!=null&&Dt("scrollend",l),h.onClick!=null&&(l.onclick=jd),l=!0):l=!1,l||wl(i)}function Wv(i){for(Dr=i.return;Dr;)switch(Dr.tag){case 5:case 13:ti=!1;return;case 27:case 3:ti=!0;return;default:Dr=Dr.return}}function Fu(i){if(i!==Dr)return!1;if(!Gt)return Wv(i),Gt=!0,!1;var l=i.tag,u;if((u=l!==3&&l!==27)&&((u=l===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||Xp(i.type,i.memoizedProps)),u=!u),u&&Pn&&wl(i),Wv(i),l===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,l=0;i;){if(i.nodeType===8)if(u=i.data,u==="/$"){if(l===0){Pn=Ga(i.nextSibling);break e}l--}else u!=="$"&&u!=="$!"&&u!=="$?"||l++;i=i.nextSibling}Pn=null}}else l===27?(l=Pn,Ds(i.type)?(i=e1,e1=null,Pn=i):Pn=l):Pn=Dr?Ga(i.stateNode.nextSibling):null;return!0}function zu(){Pn=Dr=null,Gt=!1}function Xv(){var i=Sl;return i!==null&&(Xr===null?Xr=i:Xr.push.apply(Xr,i),Sl=null),i}function Hu(i){Sl===null?Sl=[i]:Sl.push(i)}var Lm=ne(null),Al=null,Mi=null;function ys(i,l,u){L(Lm,l._currentValue),l._currentValue=u}function Ii(i){i._currentValue=Lm.current,pe(Lm)}function Pm(i,l,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,h!==null&&(h.childLanes|=l)):h!==null&&(h.childLanes&l)!==l&&(h.childLanes|=l),i===u)break;i=i.return}}function Bm(i,l,u,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var v=g.dependencies;if(v!==null){var k=g.child;v=v.firstContext;e:for(;v!==null;){var M=v;v=g;for(var Y=0;Y<l.length;Y++)if(M.context===l[Y]){v.lanes|=u,M=v.alternate,M!==null&&(M.lanes|=u),Pm(v.return,u,i),h||(k=null);break e}v=M.next}}else if(g.tag===18){if(k=g.return,k===null)throw Error(r(341));k.lanes|=u,v=k.alternate,v!==null&&(v.lanes|=u),Pm(k,u,i),k=null}else k=g.child;if(k!==null)k.return=g;else for(k=g;k!==null;){if(k===i){k=null;break}if(g=k.sibling,g!==null){g.return=k.return,k=g;break}k=k.return}g=k}}function qu(i,l,u,h){i=null;for(var g=l,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var k=g.alternate;if(k===null)throw Error(r(387));if(k=k.memoizedProps,k!==null){var M=g.type;la(g.pendingProps.value,k.value)||(i!==null?i.push(M):i=[M])}}else if(g===Mt.current){if(k=g.alternate,k===null)throw Error(r(387));k.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(bc):i=[bc])}g=g.return}i!==null&&Bm(l,i,u,h),l.flags|=262144}function cd(i){for(i=i.firstContext;i!==null;){if(!la(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function kl(i){Al=i,Mi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Sr(i){return Qv(Al,i)}function dd(i,l){return Al===null&&kl(i),Qv(i,l)}function Qv(i,l){var u=l._currentValue;if(l={context:l,memoizedValue:u,next:null},Mi===null){if(i===null)throw Error(r(308));Mi=l,i.dependencies={lanes:0,firstContext:l},i.flags|=524288}else Mi=Mi.next=l;return u}var cw=typeof AbortController<"u"?AbortController:function(){var i=[],l=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){l.aborted=!0,i.forEach(function(u){return u()})}},dw=e.unstable_scheduleCallback,hw=e.unstable_NormalPriority,nr={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Um(){return{controller:new cw,data:new Map,refCount:0}}function ju(i){i.refCount--,i.refCount===0&&dw(hw,function(){i.controller.abort()})}var $u=null,Fm=0,mo=0,po=null;function fw(i,l){if($u===null){var u=$u=[];Fm=0,mo=Hp(),po={status:"pending",value:void 0,then:function(h){u.push(h)}}}return Fm++,l.then(Zv,Zv),l}function Zv(){if(--Fm===0&&$u!==null){po!==null&&(po.status="fulfilled");var i=$u;$u=null,mo=0,po=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function mw(i,l){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return i.then(function(){h.status="fulfilled",h.value=l;for(var g=0;g<u.length;g++)(0,u[g])(l)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var Jv=V.S;V.S=function(i,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&fw(i,l),Jv!==null&&Jv(i,l)};var Cl=ne(null);function zm(){var i=Cl.current;return i!==null?i:dn.pooledCache}function hd(i,l){l===null?L(Cl,Cl.current):L(Cl,l.pool)}function e4(){var i=zm();return i===null?null:{parent:nr._currentValue,pool:i}}var Yu=Error(r(460)),t4=Error(r(474)),fd=Error(r(542)),Hm={then:function(){}};function n4(i){return i=i.status,i==="fulfilled"||i==="rejected"}function md(){}function r4(i,l,u){switch(u=i[u],u===void 0?i.push(l):u!==l&&(l.then(md,md),l=u),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,i4(i),i;default:if(typeof l.status=="string")l.then(md,md);else{if(i=dn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=l,i.status="pending",i.then(function(h){if(l.status==="pending"){var g=l;g.status="fulfilled",g.value=h}},function(h){if(l.status==="pending"){var g=l;g.status="rejected",g.reason=h}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,i4(i),i}throw Gu=l,Yu}}var Gu=null;function a4(){if(Gu===null)throw Error(r(459));var i=Gu;return Gu=null,i}function i4(i){if(i===Yu||i===fd)throw Error(r(483))}var _s=!1;function qm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jm(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Es(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ts(i,l,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Qt&2)!==0){var g=h.pending;return g===null?l.next=l:(l.next=g.next,g.next=l),h.pending=l,l=sd(i),Yv(i,null,u),l}return id(i,h,l,u),sd(i)}function Vu(i,l,u){if(l=l.updateQueue,l!==null&&(l=l.shared,(u&4194048)!==0)){var h=l.lanes;h&=i.pendingLanes,u|=h,l.lanes=u,Ee(i,u)}}function $m(i,l){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,v=null;if(u=u.firstBaseUpdate,u!==null){do{var k={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};v===null?g=v=k:v=v.next=k,u=u.next}while(u!==null);v===null?g=v=l:v=v.next=l}else g=v=l;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=l:i.next=l,u.lastBaseUpdate=l}var Ym=!1;function Ku(){if(Ym){var i=po;if(i!==null)throw i}}function Wu(i,l,u,h){Ym=!1;var g=i.updateQueue;_s=!1;var v=g.firstBaseUpdate,k=g.lastBaseUpdate,M=g.shared.pending;if(M!==null){g.shared.pending=null;var Y=M,ae=Y.next;Y.next=null,k===null?v=ae:k.next=ae,k=Y;var _e=i.alternate;_e!==null&&(_e=_e.updateQueue,M=_e.lastBaseUpdate,M!==k&&(M===null?_e.firstBaseUpdate=ae:M.next=ae,_e.lastBaseUpdate=Y))}if(v!==null){var xe=g.baseState;k=0,_e=ae=Y=null,M=v;do{var le=M.lane&-536870913,he=le!==M.lane;if(he?(Ut&le)===le:(h&le)===le){le!==0&&le===mo&&(Ym=!0),_e!==null&&(_e=_e.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var mt=i,ct=M;le=l;var rn=u;switch(ct.tag){case 1:if(mt=ct.payload,typeof mt=="function"){xe=mt.call(rn,xe,le);break e}xe=mt;break e;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=ct.payload,le=typeof mt=="function"?mt.call(rn,xe,le):mt,le==null)break e;xe=m({},xe,le);break e;case 2:_s=!0}}le=M.callback,le!==null&&(i.flags|=64,he&&(i.flags|=8192),he=g.callbacks,he===null?g.callbacks=[le]:he.push(le))}else he={lane:le,tag:M.tag,payload:M.payload,callback:M.callback,next:null},_e===null?(ae=_e=he,Y=xe):_e=_e.next=he,k|=le;if(M=M.next,M===null){if(M=g.shared.pending,M===null)break;he=M,M=he.next,he.next=null,g.lastBaseUpdate=he,g.shared.pending=null}}while(!0);_e===null&&(Y=xe),g.baseState=Y,g.firstBaseUpdate=ae,g.lastBaseUpdate=_e,v===null&&(g.shared.lanes=0),Os|=k,i.lanes=k,i.memoizedState=xe}}function s4(i,l){if(typeof i!="function")throw Error(r(191,i));i.call(l)}function l4(i,l){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)s4(u[i],l)}var go=ne(null),pd=ne(0);function o4(i,l){i=zi,L(pd,i),L(go,l),zi=i|l.baseLanes}function Gm(){L(pd,zi),L(go,go.current)}function Vm(){zi=pd.current,pe(go),pe(pd)}var xs=0,Ct=null,tn=null,Kn=null,gd=!1,bo=!1,Nl=!1,bd=0,Xu=0,vo=null,pw=0;function zn(){throw Error(r(321))}function Km(i,l){if(l===null)return!1;for(var u=0;u<l.length&&u<i.length;u++)if(!la(i[u],l[u]))return!1;return!0}function Wm(i,l,u,h,g,v){return xs=v,Ct=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,V.H=i===null||i.memoizedState===null?Y4:G4,Nl=!1,v=u(h,g),Nl=!1,bo&&(v=c4(l,u,h,g)),u4(i),v}function u4(i){V.H=xd;var l=tn!==null&&tn.next!==null;if(xs=0,Kn=tn=Ct=null,gd=!1,Xu=0,vo=null,l)throw Error(r(300));i===null||or||(i=i.dependencies,i!==null&&cd(i)&&(or=!0))}function c4(i,l,u,h){Ct=i;var g=0;do{if(bo&&(vo=null),Xu=0,bo=!1,25<=g)throw Error(r(301));if(g+=1,Kn=tn=null,i.updateQueue!=null){var v=i.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}V.H=Tw,v=l(u,h)}while(bo);return v}function gw(){var i=V.H,l=i.useState()[0];return l=typeof l.then=="function"?Qu(l):l,i=i.useState()[0],(tn!==null?tn.memoizedState:null)!==i&&(Ct.flags|=1024),l}function Xm(){var i=bd!==0;return bd=0,i}function Qm(i,l,u){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~u}function Zm(i){if(gd){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}gd=!1}xs=0,Kn=tn=Ct=null,bo=!1,Xu=bd=0,vo=null}function Kr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kn===null?Ct.memoizedState=Kn=i:Kn=Kn.next=i,Kn}function Wn(){if(tn===null){var i=Ct.alternate;i=i!==null?i.memoizedState:null}else i=tn.next;var l=Kn===null?Ct.memoizedState:Kn.next;if(l!==null)Kn=l,tn=i;else{if(i===null)throw Ct.alternate===null?Error(r(467)):Error(r(310));tn=i,i={memoizedState:tn.memoizedState,baseState:tn.baseState,baseQueue:tn.baseQueue,queue:tn.queue,next:null},Kn===null?Ct.memoizedState=Kn=i:Kn=Kn.next=i}return Kn}function Jm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qu(i){var l=Xu;return Xu+=1,vo===null&&(vo=[]),i=r4(vo,i,l),l=Ct,(Kn===null?l.memoizedState:Kn.next)===null&&(l=l.alternate,V.H=l===null||l.memoizedState===null?Y4:G4),i}function vd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Qu(i);if(i.$$typeof===D)return Sr(i)}throw Error(r(438,String(i)))}function ep(i){var l=null,u=Ct.updateQueue;if(u!==null&&(l=u.memoCache),l==null){var h=Ct.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(l={data:h.data.map(function(g){return g.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),u===null&&(u=Jm(),Ct.updateQueue=u),u.memoCache=l,u=l.data[l.index],u===void 0)for(u=l.data[l.index]=Array(i),h=0;h<i;h++)u[h]=G;return l.index++,u}function Di(i,l){return typeof l=="function"?l(i):l}function yd(i){var l=Wn();return tp(l,tn,i)}function tp(i,l,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=i.baseQueue,v=h.pending;if(v!==null){if(g!==null){var k=g.next;g.next=v.next,v.next=k}l.baseQueue=g=v,h.pending=null}if(v=i.baseState,g===null)i.memoizedState=v;else{l=g.next;var M=k=null,Y=null,ae=l,_e=!1;do{var xe=ae.lane&-536870913;if(xe!==ae.lane?(Ut&xe)===xe:(xs&xe)===xe){var le=ae.revertLane;if(le===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),xe===mo&&(_e=!0);else if((xs&le)===le){ae=ae.next,le===mo&&(_e=!0);continue}else xe={lane:0,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Y===null?(M=Y=xe,k=v):Y=Y.next=xe,Ct.lanes|=le,Os|=le;xe=ae.action,Nl&&u(v,xe),v=ae.hasEagerState?ae.eagerState:u(v,xe)}else le={lane:xe,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Y===null?(M=Y=le,k=v):Y=Y.next=le,Ct.lanes|=xe,Os|=xe;ae=ae.next}while(ae!==null&&ae!==l);if(Y===null?k=v:Y.next=M,!la(v,i.memoizedState)&&(or=!0,_e&&(u=po,u!==null)))throw u;i.memoizedState=v,i.baseState=k,i.baseQueue=Y,h.lastRenderedState=v}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function np(i){var l=Wn(),u=l.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,g=u.pending,v=l.memoizedState;if(g!==null){u.pending=null;var k=g=g.next;do v=i(v,k.action),k=k.next;while(k!==g);la(v,l.memoizedState)||(or=!0),l.memoizedState=v,l.baseQueue===null&&(l.baseState=v),u.lastRenderedState=v}return[v,h]}function d4(i,l,u){var h=Ct,g=Wn(),v=Gt;if(v){if(u===void 0)throw Error(r(407));u=u()}else u=l();var k=!la((tn||g).memoizedState,u);k&&(g.memoizedState=u,or=!0),g=g.queue;var M=m4.bind(null,h,g,i);if(Zu(2048,8,M,[i]),g.getSnapshot!==l||k||Kn!==null&&Kn.memoizedState.tag&1){if(h.flags|=2048,yo(9,_d(),f4.bind(null,h,g,u,l),null),dn===null)throw Error(r(349));v||(xs&124)!==0||h4(h,l,u)}return u}function h4(i,l,u){i.flags|=16384,i={getSnapshot:l,value:u},l=Ct.updateQueue,l===null?(l=Jm(),Ct.updateQueue=l,l.stores=[i]):(u=l.stores,u===null?l.stores=[i]:u.push(i))}function f4(i,l,u,h){l.value=u,l.getSnapshot=h,p4(l)&&g4(i)}function m4(i,l,u){return u(function(){p4(l)&&g4(i)})}function p4(i){var l=i.getSnapshot;i=i.value;try{var u=l();return!la(i,u)}catch{return!0}}function g4(i){var l=uo(i,2);l!==null&&fa(l,i,2)}function rp(i){var l=Kr();if(typeof i=="function"){var u=i;if(i=u(),Nl){qe(!0);try{u()}finally{qe(!1)}}}return l.memoizedState=l.baseState=i,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:i},l}function b4(i,l,u,h){return i.baseState=u,tp(i,tn,typeof h=="function"?h:Di)}function bw(i,l,u,h,g){if(Td(i))throw Error(r(485));if(i=l.action,i!==null){var v={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){v.listeners.push(k)}};V.T!==null?u(!0):v.isTransition=!1,h(v),u=l.pending,u===null?(v.next=l.pending=v,v4(l,v)):(v.next=u.next,l.pending=u.next=v)}}function v4(i,l){var u=l.action,h=l.payload,g=i.state;if(l.isTransition){var v=V.T,k={};V.T=k;try{var M=u(g,h),Y=V.S;Y!==null&&Y(k,M),y4(i,l,M)}catch(ae){ap(i,l,ae)}finally{V.T=v}}else try{v=u(g,h),y4(i,l,v)}catch(ae){ap(i,l,ae)}}function y4(i,l,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){_4(i,l,h)},function(h){return ap(i,l,h)}):_4(i,l,u)}function _4(i,l,u){l.status="fulfilled",l.value=u,E4(l),i.state=u,l=i.pending,l!==null&&(u=l.next,u===l?i.pending=null:(u=u.next,l.next=u,v4(i,u)))}function ap(i,l,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do l.status="rejected",l.reason=u,E4(l),l=l.next;while(l!==h)}i.action=null}function E4(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function T4(i,l){return l}function x4(i,l){if(Gt){var u=dn.formState;if(u!==null){e:{var h=Ct;if(Gt){if(Pn){t:{for(var g=Pn,v=ti;g.nodeType!==8;){if(!v){g=null;break t}if(g=Ga(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){Pn=Ga(g.nextSibling),h=g.data==="F!";break e}}wl(h)}h=!1}h&&(l=u[0])}}return u=Kr(),u.memoizedState=u.baseState=l,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:T4,lastRenderedState:l},u.queue=h,u=q4.bind(null,Ct,h),h.dispatch=u,h=rp(!1),v=up.bind(null,Ct,!1,h.queue),h=Kr(),g={state:l,dispatch:null,action:i,pending:null},h.queue=g,u=bw.bind(null,Ct,g,v,u),g.dispatch=u,h.memoizedState=i,[l,u,!1]}function S4(i){var l=Wn();return w4(l,tn,i)}function w4(i,l,u){if(l=tp(i,l,T4)[0],i=yd(Di)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var h=Qu(l)}catch(k){throw k===Yu?fd:k}else h=l;l=Wn();var g=l.queue,v=g.dispatch;return u!==l.memoizedState&&(Ct.flags|=2048,yo(9,_d(),vw.bind(null,g,u),null)),[h,v,i]}function vw(i,l){i.action=l}function A4(i){var l=Wn(),u=tn;if(u!==null)return w4(l,u,i);Wn(),l=l.memoizedState,u=Wn();var h=u.queue.dispatch;return u.memoizedState=i,[l,h,!1]}function yo(i,l,u,h){return i={tag:i,create:u,deps:h,inst:l,next:null},l=Ct.updateQueue,l===null&&(l=Jm(),Ct.updateQueue=l),u=l.lastEffect,u===null?l.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,l.lastEffect=i),i}function _d(){return{destroy:void 0,resource:void 0}}function k4(){return Wn().memoizedState}function Ed(i,l,u,h){var g=Kr();h=h===void 0?null:h,Ct.flags|=i,g.memoizedState=yo(1|l,_d(),u,h)}function Zu(i,l,u,h){var g=Wn();h=h===void 0?null:h;var v=g.memoizedState.inst;tn!==null&&h!==null&&Km(h,tn.memoizedState.deps)?g.memoizedState=yo(l,v,u,h):(Ct.flags|=i,g.memoizedState=yo(1|l,v,u,h))}function C4(i,l){Ed(8390656,8,i,l)}function N4(i,l){Zu(2048,8,i,l)}function O4(i,l){return Zu(4,2,i,l)}function R4(i,l){return Zu(4,4,i,l)}function M4(i,l){if(typeof l=="function"){i=i();var u=l(i);return function(){typeof u=="function"?u():l(null)}}if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function I4(i,l,u){u=u!=null?u.concat([i]):null,Zu(4,4,M4.bind(null,l,i),u)}function ip(){}function D4(i,l){var u=Wn();l=l===void 0?null:l;var h=u.memoizedState;return l!==null&&Km(l,h[1])?h[0]:(u.memoizedState=[i,l],i)}function L4(i,l){var u=Wn();l=l===void 0?null:l;var h=u.memoizedState;if(l!==null&&Km(l,h[1]))return h[0];if(h=i(),Nl){qe(!0);try{i()}finally{qe(!1)}}return u.memoizedState=[h,l],h}function sp(i,l,u){return u===void 0||(xs&1073741824)!==0?i.memoizedState=l:(i.memoizedState=u,i=U3(),Ct.lanes|=i,Os|=i,u)}function P4(i,l,u,h){return la(u,l)?u:go.current!==null?(i=sp(i,u,h),la(i,l)||(or=!0),i):(xs&42)===0?(or=!0,i.memoizedState=u):(i=U3(),Ct.lanes|=i,Os|=i,l)}function B4(i,l,u,h,g){var v=ue.p;ue.p=v!==0&&8>v?v:8;var k=V.T,M={};V.T=M,up(i,!1,l,u);try{var Y=g(),ae=V.S;if(ae!==null&&ae(M,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var _e=mw(Y,h);Ju(i,l,_e,ha(i))}else Ju(i,l,h,ha(i))}catch(xe){Ju(i,l,{then:function(){},status:"rejected",reason:xe},ha())}finally{ue.p=v,V.T=k}}function yw(){}function lp(i,l,u,h){if(i.tag!==5)throw Error(r(476));var g=U4(i).queue;B4(i,g,l,me,u===null?yw:function(){return F4(i),u(h)})}function U4(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:me},next:null};var u={};return l.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:u},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function F4(i){var l=U4(i).next.queue;Ju(i,l,{},ha())}function op(){return Sr(bc)}function z4(){return Wn().memoizedState}function H4(){return Wn().memoizedState}function _w(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var u=ha();i=Es(u);var h=Ts(l,i,u);h!==null&&(fa(h,l,u),Vu(h,l,u)),l={cache:Um()},i.payload=l;return}l=l.return}}function Ew(i,l,u){var h=ha();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Td(i)?j4(l,u):(u=Cm(i,l,u,h),u!==null&&(fa(u,i,h),$4(u,l,h)))}function q4(i,l,u){var h=ha();Ju(i,l,u,h)}function Ju(i,l,u,h){var g={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Td(i))j4(l,g);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=l.lastRenderedReducer,v!==null))try{var k=l.lastRenderedState,M=v(k,u);if(g.hasEagerState=!0,g.eagerState=M,la(M,k))return id(i,l,g,0),dn===null&&ad(),!1}catch{}finally{}if(u=Cm(i,l,g,h),u!==null)return fa(u,i,h),$4(u,l,h),!0}return!1}function up(i,l,u,h){if(h={lane:2,revertLane:Hp(),action:h,hasEagerState:!1,eagerState:null,next:null},Td(i)){if(l)throw Error(r(479))}else l=Cm(i,u,h,2),l!==null&&fa(l,i,2)}function Td(i){var l=i.alternate;return i===Ct||l!==null&&l===Ct}function j4(i,l){bo=gd=!0;var u=i.pending;u===null?l.next=l:(l.next=u.next,u.next=l),i.pending=l}function $4(i,l,u){if((u&4194048)!==0){var h=l.lanes;h&=i.pendingLanes,u|=h,l.lanes=u,Ee(i,u)}}var xd={readContext:Sr,use:vd,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useLayoutEffect:zn,useInsertionEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useSyncExternalStore:zn,useId:zn,useHostTransitionStatus:zn,useFormState:zn,useActionState:zn,useOptimistic:zn,useMemoCache:zn,useCacheRefresh:zn},Y4={readContext:Sr,use:vd,useCallback:function(i,l){return Kr().memoizedState=[i,l===void 0?null:l],i},useContext:Sr,useEffect:C4,useImperativeHandle:function(i,l,u){u=u!=null?u.concat([i]):null,Ed(4194308,4,M4.bind(null,l,i),u)},useLayoutEffect:function(i,l){return Ed(4194308,4,i,l)},useInsertionEffect:function(i,l){Ed(4,2,i,l)},useMemo:function(i,l){var u=Kr();l=l===void 0?null:l;var h=i();if(Nl){qe(!0);try{i()}finally{qe(!1)}}return u.memoizedState=[h,l],h},useReducer:function(i,l,u){var h=Kr();if(u!==void 0){var g=u(l);if(Nl){qe(!0);try{u(l)}finally{qe(!1)}}}else g=l;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=Ew.bind(null,Ct,i),[h.memoizedState,i]},useRef:function(i){var l=Kr();return i={current:i},l.memoizedState=i},useState:function(i){i=rp(i);var l=i.queue,u=q4.bind(null,Ct,l);return l.dispatch=u,[i.memoizedState,u]},useDebugValue:ip,useDeferredValue:function(i,l){var u=Kr();return sp(u,i,l)},useTransition:function(){var i=rp(!1);return i=B4.bind(null,Ct,i.queue,!0,!1),Kr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,u){var h=Ct,g=Kr();if(Gt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=l(),dn===null)throw Error(r(349));(Ut&124)!==0||h4(h,l,u)}g.memoizedState=u;var v={value:u,getSnapshot:l};return g.queue=v,C4(m4.bind(null,h,v,i),[i]),h.flags|=2048,yo(9,_d(),f4.bind(null,h,v,u,l),null),u},useId:function(){var i=Kr(),l=dn.identifierPrefix;if(Gt){var u=Ri,h=Oi;u=(h&~(1<<32-tt(h)-1)).toString(32)+u,l="«"+l+"R"+u,u=bd++,0<u&&(l+="H"+u.toString(32)),l+="»"}else u=pw++,l="«"+l+"r"+u.toString(32)+"»";return i.memoizedState=l},useHostTransitionStatus:op,useFormState:x4,useActionState:x4,useOptimistic:function(i){var l=Kr();l.memoizedState=l.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=u,l=up.bind(null,Ct,!0,u),u.dispatch=l,[i,l]},useMemoCache:ep,useCacheRefresh:function(){return Kr().memoizedState=_w.bind(null,Ct)}},G4={readContext:Sr,use:vd,useCallback:D4,useContext:Sr,useEffect:N4,useImperativeHandle:I4,useInsertionEffect:O4,useLayoutEffect:R4,useMemo:L4,useReducer:yd,useRef:k4,useState:function(){return yd(Di)},useDebugValue:ip,useDeferredValue:function(i,l){var u=Wn();return P4(u,tn.memoizedState,i,l)},useTransition:function(){var i=yd(Di)[0],l=Wn().memoizedState;return[typeof i=="boolean"?i:Qu(i),l]},useSyncExternalStore:d4,useId:z4,useHostTransitionStatus:op,useFormState:S4,useActionState:S4,useOptimistic:function(i,l){var u=Wn();return b4(u,tn,i,l)},useMemoCache:ep,useCacheRefresh:H4},Tw={readContext:Sr,use:vd,useCallback:D4,useContext:Sr,useEffect:N4,useImperativeHandle:I4,useInsertionEffect:O4,useLayoutEffect:R4,useMemo:L4,useReducer:np,useRef:k4,useState:function(){return np(Di)},useDebugValue:ip,useDeferredValue:function(i,l){var u=Wn();return tn===null?sp(u,i,l):P4(u,tn.memoizedState,i,l)},useTransition:function(){var i=np(Di)[0],l=Wn().memoizedState;return[typeof i=="boolean"?i:Qu(i),l]},useSyncExternalStore:d4,useId:z4,useHostTransitionStatus:op,useFormState:A4,useActionState:A4,useOptimistic:function(i,l){var u=Wn();return tn!==null?b4(u,tn,i,l):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:ep,useCacheRefresh:H4},_o=null,ec=0;function Sd(i){var l=ec;return ec+=1,_o===null&&(_o=[]),r4(_o,i,l)}function tc(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function wd(i,l){throw l.$$typeof===p?Error(r(525)):(i=Object.prototype.toString.call(l),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i)))}function V4(i){var l=i._init;return l(i._payload)}function K4(i){function l(J,W){if(i){var te=J.deletions;te===null?(J.deletions=[W],J.flags|=16):te.push(W)}}function u(J,W){if(!i)return null;for(;W!==null;)l(J,W),W=W.sibling;return null}function h(J){for(var W=new Map;J!==null;)J.key!==null?W.set(J.key,J):W.set(J.index,J),J=J.sibling;return W}function g(J,W){return J=Ni(J,W),J.index=0,J.sibling=null,J}function v(J,W,te){return J.index=te,i?(te=J.alternate,te!==null?(te=te.index,te<W?(J.flags|=67108866,W):te):(J.flags|=67108866,W)):(J.flags|=1048576,W)}function k(J){return i&&J.alternate===null&&(J.flags|=67108866),J}function M(J,W,te,Te){return W===null||W.tag!==6?(W=Om(te,J.mode,Te),W.return=J,W):(W=g(W,te),W.return=J,W)}function Y(J,W,te,Te){var Ze=te.type;return Ze===T?_e(J,W,te.props.children,Te,te.key):W!==null&&(W.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===Z&&V4(Ze)===W.type)?(W=g(W,te.props),tc(W,te),W.return=J,W):(W=ld(te.type,te.key,te.props,null,J.mode,Te),tc(W,te),W.return=J,W)}function ae(J,W,te,Te){return W===null||W.tag!==4||W.stateNode.containerInfo!==te.containerInfo||W.stateNode.implementation!==te.implementation?(W=Rm(te,J.mode,Te),W.return=J,W):(W=g(W,te.children||[]),W.return=J,W)}function _e(J,W,te,Te,Ze){return W===null||W.tag!==7?(W=El(te,J.mode,Te,Ze),W.return=J,W):(W=g(W,te),W.return=J,W)}function xe(J,W,te){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return W=Om(""+W,J.mode,te),W.return=J,W;if(typeof W=="object"&&W!==null){switch(W.$$typeof){case b:return te=ld(W.type,W.key,W.props,null,J.mode,te),tc(te,W),te.return=J,te;case y:return W=Rm(W,J.mode,te),W.return=J,W;case Z:var Te=W._init;return W=Te(W._payload),xe(J,W,te)}if(ye(W)||de(W))return W=El(W,J.mode,te,null),W.return=J,W;if(typeof W.then=="function")return xe(J,Sd(W),te);if(W.$$typeof===D)return xe(J,dd(J,W),te);wd(J,W)}return null}function le(J,W,te,Te){var Ze=W!==null?W.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Ze!==null?null:M(J,W,""+te,Te);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case b:return te.key===Ze?Y(J,W,te,Te):null;case y:return te.key===Ze?ae(J,W,te,Te):null;case Z:return Ze=te._init,te=Ze(te._payload),le(J,W,te,Te)}if(ye(te)||de(te))return Ze!==null?null:_e(J,W,te,Te,null);if(typeof te.then=="function")return le(J,W,Sd(te),Te);if(te.$$typeof===D)return le(J,W,dd(J,te),Te);wd(J,te)}return null}function he(J,W,te,Te,Ze){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return J=J.get(te)||null,M(W,J,""+Te,Ze);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case b:return J=J.get(Te.key===null?te:Te.key)||null,Y(W,J,Te,Ze);case y:return J=J.get(Te.key===null?te:Te.key)||null,ae(W,J,Te,Ze);case Z:var Nt=Te._init;return Te=Nt(Te._payload),he(J,W,te,Te,Ze)}if(ye(Te)||de(Te))return J=J.get(te)||null,_e(W,J,Te,Ze,null);if(typeof Te.then=="function")return he(J,W,te,Sd(Te),Ze);if(Te.$$typeof===D)return he(J,W,te,dd(W,Te),Ze);wd(W,Te)}return null}function mt(J,W,te,Te){for(var Ze=null,Nt=null,it=W,dt=W=0,cr=null;it!==null&&dt<te.length;dt++){it.index>dt?(cr=it,it=null):cr=it.sibling;var Yt=le(J,it,te[dt],Te);if(Yt===null){it===null&&(it=cr);break}i&&it&&Yt.alternate===null&&l(J,it),W=v(Yt,W,dt),Nt===null?Ze=Yt:Nt.sibling=Yt,Nt=Yt,it=cr}if(dt===te.length)return u(J,it),Gt&&xl(J,dt),Ze;if(it===null){for(;dt<te.length;dt++)it=xe(J,te[dt],Te),it!==null&&(W=v(it,W,dt),Nt===null?Ze=it:Nt.sibling=it,Nt=it);return Gt&&xl(J,dt),Ze}for(it=h(it);dt<te.length;dt++)cr=he(it,J,dt,te[dt],Te),cr!==null&&(i&&cr.alternate!==null&&it.delete(cr.key===null?dt:cr.key),W=v(cr,W,dt),Nt===null?Ze=cr:Nt.sibling=cr,Nt=cr);return i&&it.forEach(function(Fs){return l(J,Fs)}),Gt&&xl(J,dt),Ze}function ct(J,W,te,Te){if(te==null)throw Error(r(151));for(var Ze=null,Nt=null,it=W,dt=W=0,cr=null,Yt=te.next();it!==null&&!Yt.done;dt++,Yt=te.next()){it.index>dt?(cr=it,it=null):cr=it.sibling;var Fs=le(J,it,Yt.value,Te);if(Fs===null){it===null&&(it=cr);break}i&&it&&Fs.alternate===null&&l(J,it),W=v(Fs,W,dt),Nt===null?Ze=Fs:Nt.sibling=Fs,Nt=Fs,it=cr}if(Yt.done)return u(J,it),Gt&&xl(J,dt),Ze;if(it===null){for(;!Yt.done;dt++,Yt=te.next())Yt=xe(J,Yt.value,Te),Yt!==null&&(W=v(Yt,W,dt),Nt===null?Ze=Yt:Nt.sibling=Yt,Nt=Yt);return Gt&&xl(J,dt),Ze}for(it=h(it);!Yt.done;dt++,Yt=te.next())Yt=he(it,J,dt,Yt.value,Te),Yt!==null&&(i&&Yt.alternate!==null&&it.delete(Yt.key===null?dt:Yt.key),W=v(Yt,W,dt),Nt===null?Ze=Yt:Nt.sibling=Yt,Nt=Yt);return i&&it.forEach(function(xA){return l(J,xA)}),Gt&&xl(J,dt),Ze}function rn(J,W,te,Te){if(typeof te=="object"&&te!==null&&te.type===T&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case b:e:{for(var Ze=te.key;W!==null;){if(W.key===Ze){if(Ze=te.type,Ze===T){if(W.tag===7){u(J,W.sibling),Te=g(W,te.props.children),Te.return=J,J=Te;break e}}else if(W.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===Z&&V4(Ze)===W.type){u(J,W.sibling),Te=g(W,te.props),tc(Te,te),Te.return=J,J=Te;break e}u(J,W);break}else l(J,W);W=W.sibling}te.type===T?(Te=El(te.props.children,J.mode,Te,te.key),Te.return=J,J=Te):(Te=ld(te.type,te.key,te.props,null,J.mode,Te),tc(Te,te),Te.return=J,J=Te)}return k(J);case y:e:{for(Ze=te.key;W!==null;){if(W.key===Ze)if(W.tag===4&&W.stateNode.containerInfo===te.containerInfo&&W.stateNode.implementation===te.implementation){u(J,W.sibling),Te=g(W,te.children||[]),Te.return=J,J=Te;break e}else{u(J,W);break}else l(J,W);W=W.sibling}Te=Rm(te,J.mode,Te),Te.return=J,J=Te}return k(J);case Z:return Ze=te._init,te=Ze(te._payload),rn(J,W,te,Te)}if(ye(te))return mt(J,W,te,Te);if(de(te)){if(Ze=de(te),typeof Ze!="function")throw Error(r(150));return te=Ze.call(te),ct(J,W,te,Te)}if(typeof te.then=="function")return rn(J,W,Sd(te),Te);if(te.$$typeof===D)return rn(J,W,dd(J,te),Te);wd(J,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,W!==null&&W.tag===6?(u(J,W.sibling),Te=g(W,te),Te.return=J,J=Te):(u(J,W),Te=Om(te,J.mode,Te),Te.return=J,J=Te),k(J)):u(J,W)}return function(J,W,te,Te){try{ec=0;var Ze=rn(J,W,te,Te);return _o=null,Ze}catch(it){if(it===Yu||it===fd)throw it;var Nt=oa(29,it,null,J.mode);return Nt.lanes=Te,Nt.return=J,Nt}finally{}}}var Eo=K4(!0),W4=K4(!1),Ca=ne(null),ni=null;function Ss(i){var l=i.alternate;L(rr,rr.current&1),L(Ca,i),ni===null&&(l===null||go.current!==null||l.memoizedState!==null)&&(ni=i)}function X4(i){if(i.tag===22){if(L(rr,rr.current),L(Ca,i),ni===null){var l=i.alternate;l!==null&&l.memoizedState!==null&&(ni=i)}}else ws()}function ws(){L(rr,rr.current),L(Ca,Ca.current)}function Li(i){pe(Ca),ni===i&&(ni=null),pe(rr)}var rr=ne(0);function Ad(i){for(var l=i;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||Jp(u)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function cp(i,l,u,h){l=i.memoizedState,u=u(h,l),u=u==null?l:m({},l,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var dp={enqueueSetState:function(i,l,u){i=i._reactInternals;var h=ha(),g=Es(h);g.payload=l,u!=null&&(g.callback=u),l=Ts(i,g,h),l!==null&&(fa(l,i,h),Vu(l,i,h))},enqueueReplaceState:function(i,l,u){i=i._reactInternals;var h=ha(),g=Es(h);g.tag=1,g.payload=l,u!=null&&(g.callback=u),l=Ts(i,g,h),l!==null&&(fa(l,i,h),Vu(l,i,h))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var u=ha(),h=Es(u);h.tag=2,l!=null&&(h.callback=l),l=Ts(i,h,u),l!==null&&(fa(l,i,u),Vu(l,i,u))}};function Q4(i,l,u,h,g,v,k){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,v,k):l.prototype&&l.prototype.isPureReactComponent?!Bu(u,h)||!Bu(g,v):!0}function Z4(i,l,u,h){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,h),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,h),l.state!==i&&dp.enqueueReplaceState(l,l.state,null)}function Ol(i,l){var u=l;if("ref"in l){u={};for(var h in l)h!=="ref"&&(u[h]=l[h])}if(i=i.defaultProps){u===l&&(u=m({},u));for(var g in i)u[g]===void 0&&(u[g]=i[g])}return u}var kd=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function J4(i){kd(i)}function e3(i){console.error(i)}function t3(i){kd(i)}function Cd(i,l){try{var u=i.onUncaughtError;u(l.value,{componentStack:l.stack})}catch(h){setTimeout(function(){throw h})}}function n3(i,l,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function hp(i,l,u){return u=Es(u),u.tag=3,u.payload={element:null},u.callback=function(){Cd(i,l)},u}function r3(i){return i=Es(i),i.tag=3,i}function a3(i,l,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var v=h.value;i.payload=function(){return g(v)},i.callback=function(){n3(l,u,h)}}var k=u.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(i.callback=function(){n3(l,u,h),typeof g!="function"&&(Rs===null?Rs=new Set([this]):Rs.add(this));var M=h.stack;this.componentDidCatch(h.value,{componentStack:M!==null?M:""})})}function xw(i,l,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(l=u.alternate,l!==null&&qu(l,u,g,!0),u=Ca.current,u!==null){switch(u.tag){case 13:return ni===null?Pp():u.alternate===null&&Bn===0&&(Bn=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===Hm?u.flags|=16384:(l=u.updateQueue,l===null?u.updateQueue=new Set([h]):l.add(h),Up(i,h,g)),!1;case 22:return u.flags|=65536,h===Hm?u.flags|=16384:(l=u.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=l):(u=l.retryQueue,u===null?l.retryQueue=new Set([h]):u.add(h)),Up(i,h,g)),!1}throw Error(r(435,u.tag))}return Up(i,h,g),Pp(),!1}if(Gt)return l=Ca.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=g,h!==Dm&&(i=Error(r(422),{cause:h}),Hu(Sa(i,u)))):(h!==Dm&&(l=Error(r(423),{cause:h}),Hu(Sa(l,u))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=Sa(h,u),g=hp(i.stateNode,h,g),$m(i,g),Bn!==4&&(Bn=2)),!1;var v=Error(r(520),{cause:h});if(v=Sa(v,u),oc===null?oc=[v]:oc.push(v),Bn!==4&&(Bn=2),l===null)return!0;h=Sa(h,u),u=l;do{switch(u.tag){case 3:return u.flags|=65536,i=g&-g,u.lanes|=i,i=hp(u.stateNode,h,i),$m(u,i),!1;case 1:if(l=u.type,v=u.stateNode,(u.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Rs===null||!Rs.has(v))))return u.flags|=65536,g&=-g,u.lanes|=g,g=r3(g),a3(g,i,u,h),$m(u,g),!1}u=u.return}while(u!==null);return!1}var i3=Error(r(461)),or=!1;function br(i,l,u,h){l.child=i===null?W4(l,null,u,h):Eo(l,i.child,u,h)}function s3(i,l,u,h,g){u=u.render;var v=l.ref;if("ref"in h){var k={};for(var M in h)M!=="ref"&&(k[M]=h[M])}else k=h;return kl(l),h=Wm(i,l,u,k,v,g),M=Xm(),i!==null&&!or?(Qm(i,l,g),Pi(i,l,g)):(Gt&&M&&Mm(l),l.flags|=1,br(i,l,h,g),l.child)}function l3(i,l,u,h,g){if(i===null){var v=u.type;return typeof v=="function"&&!Nm(v)&&v.defaultProps===void 0&&u.compare===null?(l.tag=15,l.type=v,o3(i,l,v,h,g)):(i=ld(u.type,null,h,l,l.mode,g),i.ref=l.ref,i.return=l,l.child=i)}if(v=i.child,!_p(i,g)){var k=v.memoizedProps;if(u=u.compare,u=u!==null?u:Bu,u(k,h)&&i.ref===l.ref)return Pi(i,l,g)}return l.flags|=1,i=Ni(v,h),i.ref=l.ref,i.return=l,l.child=i}function o3(i,l,u,h,g){if(i!==null){var v=i.memoizedProps;if(Bu(v,h)&&i.ref===l.ref)if(or=!1,l.pendingProps=h=v,_p(i,g))(i.flags&131072)!==0&&(or=!0);else return l.lanes=i.lanes,Pi(i,l,g)}return fp(i,l,u,h,g)}function u3(i,l,u){var h=l.pendingProps,g=h.children,v=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((l.flags&128)!==0){if(h=v!==null?v.baseLanes|u:u,i!==null){for(g=l.child=i.child,v=0;g!==null;)v=v|g.lanes|g.childLanes,g=g.sibling;l.childLanes=v&~h}else l.childLanes=0,l.child=null;return c3(i,l,h,u)}if((u&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&hd(l,v!==null?v.cachePool:null),v!==null?o4(l,v):Gm(),X4(l);else return l.lanes=l.childLanes=536870912,c3(i,l,v!==null?v.baseLanes|u:u,u)}else v!==null?(hd(l,v.cachePool),o4(l,v),ws(),l.memoizedState=null):(i!==null&&hd(l,null),Gm(),ws());return br(i,l,g,u),l.child}function c3(i,l,u,h){var g=zm();return g=g===null?null:{parent:nr._currentValue,pool:g},l.memoizedState={baseLanes:u,cachePool:g},i!==null&&hd(l,null),Gm(),X4(l),i!==null&&qu(i,l,h,!0),null}function Nd(i,l){var u=l.ref;if(u===null)i!==null&&i.ref!==null&&(l.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(l.flags|=4194816)}}function fp(i,l,u,h,g){return kl(l),u=Wm(i,l,u,h,void 0,g),h=Xm(),i!==null&&!or?(Qm(i,l,g),Pi(i,l,g)):(Gt&&h&&Mm(l),l.flags|=1,br(i,l,u,g),l.child)}function d3(i,l,u,h,g,v){return kl(l),l.updateQueue=null,u=c4(l,h,u,g),u4(i),h=Xm(),i!==null&&!or?(Qm(i,l,v),Pi(i,l,v)):(Gt&&h&&Mm(l),l.flags|=1,br(i,l,u,v),l.child)}function h3(i,l,u,h,g){if(kl(l),l.stateNode===null){var v=co,k=u.contextType;typeof k=="object"&&k!==null&&(v=Sr(k)),v=new u(h,v),l.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=dp,l.stateNode=v,v._reactInternals=l,v=l.stateNode,v.props=h,v.state=l.memoizedState,v.refs={},qm(l),k=u.contextType,v.context=typeof k=="object"&&k!==null?Sr(k):co,v.state=l.memoizedState,k=u.getDerivedStateFromProps,typeof k=="function"&&(cp(l,u,k,h),v.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(k=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),k!==v.state&&dp.enqueueReplaceState(v,v.state,null),Wu(l,h,v,g),Ku(),v.state=l.memoizedState),typeof v.componentDidMount=="function"&&(l.flags|=4194308),h=!0}else if(i===null){v=l.stateNode;var M=l.memoizedProps,Y=Ol(u,M);v.props=Y;var ae=v.context,_e=u.contextType;k=co,typeof _e=="object"&&_e!==null&&(k=Sr(_e));var xe=u.getDerivedStateFromProps;_e=typeof xe=="function"||typeof v.getSnapshotBeforeUpdate=="function",M=l.pendingProps!==M,_e||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(M||ae!==k)&&Z4(l,v,h,k),_s=!1;var le=l.memoizedState;v.state=le,Wu(l,h,v,g),Ku(),ae=l.memoizedState,M||le!==ae||_s?(typeof xe=="function"&&(cp(l,u,xe,h),ae=l.memoizedState),(Y=_s||Q4(l,u,Y,h,le,ae,k))?(_e||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(l.flags|=4194308)):(typeof v.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=h,l.memoizedState=ae),v.props=h,v.state=ae,v.context=k,h=Y):(typeof v.componentDidMount=="function"&&(l.flags|=4194308),h=!1)}else{v=l.stateNode,jm(i,l),k=l.memoizedProps,_e=Ol(u,k),v.props=_e,xe=l.pendingProps,le=v.context,ae=u.contextType,Y=co,typeof ae=="object"&&ae!==null&&(Y=Sr(ae)),M=u.getDerivedStateFromProps,(ae=typeof M=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(k!==xe||le!==Y)&&Z4(l,v,h,Y),_s=!1,le=l.memoizedState,v.state=le,Wu(l,h,v,g),Ku();var he=l.memoizedState;k!==xe||le!==he||_s||i!==null&&i.dependencies!==null&&cd(i.dependencies)?(typeof M=="function"&&(cp(l,u,M,h),he=l.memoizedState),(_e=_s||Q4(l,u,_e,h,le,he,Y)||i!==null&&i.dependencies!==null&&cd(i.dependencies))?(ae||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(h,he,Y),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(h,he,Y)),typeof v.componentDidUpdate=="function"&&(l.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof v.componentDidUpdate!="function"||k===i.memoizedProps&&le===i.memoizedState||(l.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&le===i.memoizedState||(l.flags|=1024),l.memoizedProps=h,l.memoizedState=he),v.props=h,v.state=he,v.context=Y,h=_e):(typeof v.componentDidUpdate!="function"||k===i.memoizedProps&&le===i.memoizedState||(l.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&le===i.memoizedState||(l.flags|=1024),h=!1)}return v=h,Nd(i,l),h=(l.flags&128)!==0,v||h?(v=l.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:v.render(),l.flags|=1,i!==null&&h?(l.child=Eo(l,i.child,null,g),l.child=Eo(l,null,u,g)):br(i,l,u,g),l.memoizedState=v.state,i=l.child):i=Pi(i,l,g),i}function f3(i,l,u,h){return zu(),l.flags|=256,br(i,l,u,h),l.child}var mp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pp(i){return{baseLanes:i,cachePool:e4()}}function gp(i,l,u){return i=i!==null?i.childLanes&~u:0,l&&(i|=Na),i}function m3(i,l,u){var h=l.pendingProps,g=!1,v=(l.flags&128)!==0,k;if((k=v)||(k=i!==null&&i.memoizedState===null?!1:(rr.current&2)!==0),k&&(g=!0,l.flags&=-129),k=(l.flags&32)!==0,l.flags&=-33,i===null){if(Gt){if(g?Ss(l):ws(),Gt){var M=Pn,Y;if(Y=M){e:{for(Y=M,M=ti;Y.nodeType!==8;){if(!M){M=null;break e}if(Y=Ga(Y.nextSibling),Y===null){M=null;break e}}M=Y}M!==null?(l.memoizedState={dehydrated:M,treeContext:Tl!==null?{id:Oi,overflow:Ri}:null,retryLane:536870912,hydrationErrors:null},Y=oa(18,null,null,0),Y.stateNode=M,Y.return=l,l.child=Y,Dr=l,Pn=null,Y=!0):Y=!1}Y||wl(l)}if(M=l.memoizedState,M!==null&&(M=M.dehydrated,M!==null))return Jp(M)?l.lanes=32:l.lanes=536870912,null;Li(l)}return M=h.children,h=h.fallback,g?(ws(),g=l.mode,M=Od({mode:"hidden",children:M},g),h=El(h,g,u,null),M.return=l,h.return=l,M.sibling=h,l.child=M,g=l.child,g.memoizedState=pp(u),g.childLanes=gp(i,k,u),l.memoizedState=mp,h):(Ss(l),bp(l,M))}if(Y=i.memoizedState,Y!==null&&(M=Y.dehydrated,M!==null)){if(v)l.flags&256?(Ss(l),l.flags&=-257,l=vp(i,l,u)):l.memoizedState!==null?(ws(),l.child=i.child,l.flags|=128,l=null):(ws(),g=h.fallback,M=l.mode,h=Od({mode:"visible",children:h.children},M),g=El(g,M,u,null),g.flags|=2,h.return=l,g.return=l,h.sibling=g,l.child=h,Eo(l,i.child,null,u),h=l.child,h.memoizedState=pp(u),h.childLanes=gp(i,k,u),l.memoizedState=mp,l=g);else if(Ss(l),Jp(M)){if(k=M.nextSibling&&M.nextSibling.dataset,k)var ae=k.dgst;k=ae,h=Error(r(419)),h.stack="",h.digest=k,Hu({value:h,source:null,stack:null}),l=vp(i,l,u)}else if(or||qu(i,l,u,!1),k=(u&i.childLanes)!==0,or||k){if(k=dn,k!==null&&(h=u&-u,h=(h&42)!==0?1:Ue(h),h=(h&(k.suspendedLanes|u))!==0?0:h,h!==0&&h!==Y.retryLane))throw Y.retryLane=h,uo(i,h),fa(k,i,h),i3;M.data==="$?"||Pp(),l=vp(i,l,u)}else M.data==="$?"?(l.flags|=192,l.child=i.child,l=null):(i=Y.treeContext,Pn=Ga(M.nextSibling),Dr=l,Gt=!0,Sl=null,ti=!1,i!==null&&(Aa[ka++]=Oi,Aa[ka++]=Ri,Aa[ka++]=Tl,Oi=i.id,Ri=i.overflow,Tl=l),l=bp(l,h.children),l.flags|=4096);return l}return g?(ws(),g=h.fallback,M=l.mode,Y=i.child,ae=Y.sibling,h=Ni(Y,{mode:"hidden",children:h.children}),h.subtreeFlags=Y.subtreeFlags&65011712,ae!==null?g=Ni(ae,g):(g=El(g,M,u,null),g.flags|=2),g.return=l,h.return=l,h.sibling=g,l.child=h,h=g,g=l.child,M=i.child.memoizedState,M===null?M=pp(u):(Y=M.cachePool,Y!==null?(ae=nr._currentValue,Y=Y.parent!==ae?{parent:ae,pool:ae}:Y):Y=e4(),M={baseLanes:M.baseLanes|u,cachePool:Y}),g.memoizedState=M,g.childLanes=gp(i,k,u),l.memoizedState=mp,h):(Ss(l),u=i.child,i=u.sibling,u=Ni(u,{mode:"visible",children:h.children}),u.return=l,u.sibling=null,i!==null&&(k=l.deletions,k===null?(l.deletions=[i],l.flags|=16):k.push(i)),l.child=u,l.memoizedState=null,u)}function bp(i,l){return l=Od({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function Od(i,l){return i=oa(22,i,null,l),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function vp(i,l,u){return Eo(l,i.child,null,u),i=bp(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function p3(i,l,u){i.lanes|=l;var h=i.alternate;h!==null&&(h.lanes|=l),Pm(i.return,l,u)}function yp(i,l,u,h,g){var v=i.memoizedState;v===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g}:(v.isBackwards=l,v.rendering=null,v.renderingStartTime=0,v.last=h,v.tail=u,v.tailMode=g)}function g3(i,l,u){var h=l.pendingProps,g=h.revealOrder,v=h.tail;if(br(i,l,h.children,u),h=rr.current,(h&2)!==0)h=h&1|2,l.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&p3(i,u,l);else if(i.tag===19)p3(i,u,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(L(rr,h),g){case"forwards":for(u=l.child,g=null;u!==null;)i=u.alternate,i!==null&&Ad(i)===null&&(g=u),u=u.sibling;u=g,u===null?(g=l.child,l.child=null):(g=u.sibling,u.sibling=null),yp(l,!1,g,u,v);break;case"backwards":for(u=null,g=l.child,l.child=null;g!==null;){if(i=g.alternate,i!==null&&Ad(i)===null){l.child=g;break}i=g.sibling,g.sibling=u,u=g,g=i}yp(l,!0,u,null,v);break;case"together":yp(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Pi(i,l,u){if(i!==null&&(l.dependencies=i.dependencies),Os|=l.lanes,(u&l.childLanes)===0)if(i!==null){if(qu(i,l,u,!1),(u&l.childLanes)===0)return null}else return null;if(i!==null&&l.child!==i.child)throw Error(r(153));if(l.child!==null){for(i=l.child,u=Ni(i,i.pendingProps),l.child=u,u.return=l;i.sibling!==null;)i=i.sibling,u=u.sibling=Ni(i,i.pendingProps),u.return=l;u.sibling=null}return l.child}function _p(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&cd(i)))}function Sw(i,l,u){switch(l.tag){case 3:ut(l,l.stateNode.containerInfo),ys(l,nr,i.memoizedState.cache),zu();break;case 27:case 5:kt(l);break;case 4:ut(l,l.stateNode.containerInfo);break;case 10:ys(l,l.type,l.memoizedProps.value);break;case 13:var h=l.memoizedState;if(h!==null)return h.dehydrated!==null?(Ss(l),l.flags|=128,null):(u&l.child.childLanes)!==0?m3(i,l,u):(Ss(l),i=Pi(i,l,u),i!==null?i.sibling:null);Ss(l);break;case 19:var g=(i.flags&128)!==0;if(h=(u&l.childLanes)!==0,h||(qu(i,l,u,!1),h=(u&l.childLanes)!==0),g){if(h)return g3(i,l,u);l.flags|=128}if(g=l.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),L(rr,rr.current),h)break;return null;case 22:case 23:return l.lanes=0,u3(i,l,u);case 24:ys(l,nr,i.memoizedState.cache)}return Pi(i,l,u)}function b3(i,l,u){if(i!==null)if(i.memoizedProps!==l.pendingProps)or=!0;else{if(!_p(i,u)&&(l.flags&128)===0)return or=!1,Sw(i,l,u);or=(i.flags&131072)!==0}else or=!1,Gt&&(l.flags&1048576)!==0&&Vv(l,ud,l.index);switch(l.lanes=0,l.tag){case 16:e:{i=l.pendingProps;var h=l.elementType,g=h._init;if(h=g(h._payload),l.type=h,typeof h=="function")Nm(h)?(i=Ol(h,i),l.tag=1,l=h3(null,l,h,i,u)):(l.tag=0,l=fp(null,l,h,i,u));else{if(h!=null){if(g=h.$$typeof,g===j){l.tag=11,l=s3(null,l,h,i,u);break e}else if(g===ee){l.tag=14,l=l3(null,l,h,i,u);break e}}throw l=oe(h)||h,Error(r(306,l,""))}}return l;case 0:return fp(i,l,l.type,l.pendingProps,u);case 1:return h=l.type,g=Ol(h,l.pendingProps),h3(i,l,h,g,u);case 3:e:{if(ut(l,l.stateNode.containerInfo),i===null)throw Error(r(387));h=l.pendingProps;var v=l.memoizedState;g=v.element,jm(i,l),Wu(l,h,null,u);var k=l.memoizedState;if(h=k.cache,ys(l,nr,h),h!==v.cache&&Bm(l,[nr],u,!0),Ku(),h=k.element,v.isDehydrated)if(v={element:h,isDehydrated:!1,cache:k.cache},l.updateQueue.baseState=v,l.memoizedState=v,l.flags&256){l=f3(i,l,h,u);break e}else if(h!==g){g=Sa(Error(r(424)),l),Hu(g),l=f3(i,l,h,u);break e}else{switch(i=l.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Pn=Ga(i.firstChild),Dr=l,Gt=!0,Sl=null,ti=!0,u=W4(l,null,h,u),l.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(zu(),h===g){l=Pi(i,l,u);break e}br(i,l,h,u)}l=l.child}return l;case 26:return Nd(i,l),i===null?(u=Ey(l.type,null,l.pendingProps,null))?l.memoizedState=u:Gt||(u=l.type,i=l.pendingProps,h=$d(Le.current).createElement(u),h[Be]=l,h[nt]=i,yr(h,u,i),On(h),l.stateNode=h):l.memoizedState=Ey(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return kt(l),i===null&&Gt&&(h=l.stateNode=vy(l.type,l.pendingProps,Le.current),Dr=l,ti=!0,g=Pn,Ds(l.type)?(e1=g,Pn=Ga(h.firstChild)):Pn=g),br(i,l,l.pendingProps.children,u),Nd(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&Gt&&((g=h=Pn)&&(h=Zw(h,l.type,l.pendingProps,ti),h!==null?(l.stateNode=h,Dr=l,Pn=Ga(h.firstChild),ti=!1,g=!0):g=!1),g||wl(l)),kt(l),g=l.type,v=l.pendingProps,k=i!==null?i.memoizedProps:null,h=v.children,Xp(g,v)?h=null:k!==null&&Xp(g,k)&&(l.flags|=32),l.memoizedState!==null&&(g=Wm(i,l,gw,null,null,u),bc._currentValue=g),Nd(i,l),br(i,l,h,u),l.child;case 6:return i===null&&Gt&&((i=u=Pn)&&(u=Jw(u,l.pendingProps,ti),u!==null?(l.stateNode=u,Dr=l,Pn=null,i=!0):i=!1),i||wl(l)),null;case 13:return m3(i,l,u);case 4:return ut(l,l.stateNode.containerInfo),h=l.pendingProps,i===null?l.child=Eo(l,null,h,u):br(i,l,h,u),l.child;case 11:return s3(i,l,l.type,l.pendingProps,u);case 7:return br(i,l,l.pendingProps,u),l.child;case 8:return br(i,l,l.pendingProps.children,u),l.child;case 12:return br(i,l,l.pendingProps.children,u),l.child;case 10:return h=l.pendingProps,ys(l,l.type,h.value),br(i,l,h.children,u),l.child;case 9:return g=l.type._context,h=l.pendingProps.children,kl(l),g=Sr(g),h=h(g),l.flags|=1,br(i,l,h,u),l.child;case 14:return l3(i,l,l.type,l.pendingProps,u);case 15:return o3(i,l,l.type,l.pendingProps,u);case 19:return g3(i,l,u);case 31:return h=l.pendingProps,u=l.mode,h={mode:h.mode,children:h.children},i===null?(u=Od(h,u),u.ref=l.ref,l.child=u,u.return=l,l=u):(u=Ni(i.child,h),u.ref=l.ref,l.child=u,u.return=l,l=u),l;case 22:return u3(i,l,u);case 24:return kl(l),h=Sr(nr),i===null?(g=zm(),g===null&&(g=dn,v=Um(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=u),g=v),l.memoizedState={parent:h,cache:g},qm(l),ys(l,nr,g)):((i.lanes&u)!==0&&(jm(i,l),Wu(l,null,null,u),Ku()),g=i.memoizedState,v=l.memoizedState,g.parent!==h?(g={parent:h,cache:h},l.memoizedState=g,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=g),ys(l,nr,h)):(h=v.cache,ys(l,nr,h),h!==g.cache&&Bm(l,[nr],u,!0))),br(i,l,l.pendingProps.children,u),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Bi(i){i.flags|=4}function v3(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Ay(l)){if(l=Ca.current,l!==null&&((Ut&4194048)===Ut?ni!==null:(Ut&62914560)!==Ut&&(Ut&536870912)===0||l!==ni))throw Gu=Hm,t4;i.flags|=8192}}function Rd(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?Su():536870912,i.lanes|=l,wo|=l)}function nc(i,l){if(!Gt)switch(i.tailMode){case"hidden":l=i.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function Mn(i){var l=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(l)for(var g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=u,l}function ww(i,l,u){var h=l.pendingProps;switch(Im(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mn(l),null;case 1:return Mn(l),null;case 3:return u=l.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),Ii(nr),qt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Fu(l)?Bi(l):i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Xv())),Mn(l),null;case 26:return u=l.memoizedState,i===null?(Bi(l),u!==null?(Mn(l),v3(l,u)):(Mn(l),l.flags&=-16777217)):u?u!==i.memoizedState?(Bi(l),Mn(l),v3(l,u)):(Mn(l),l.flags&=-16777217):(i.memoizedProps!==h&&Bi(l),Mn(l),l.flags&=-16777217),null;case 27:En(l),u=Le.current;var g=l.type;if(i!==null&&l.stateNode!=null)i.memoizedProps!==h&&Bi(l);else{if(!h){if(l.stateNode===null)throw Error(r(166));return Mn(l),null}i=Oe.current,Fu(l)?Kv(l):(i=vy(g,h,u),l.stateNode=i,Bi(l))}return Mn(l),null;case 5:if(En(l),u=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==h&&Bi(l);else{if(!h){if(l.stateNode===null)throw Error(r(166));return Mn(l),null}if(i=Oe.current,Fu(l))Kv(l);else{switch(g=$d(Le.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(u,{is:h.is}):g.createElement(u)}}i[Be]=l,i[nt]=h;e:for(g=l.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===l)break e;for(;g.sibling===null;){if(g.return===null||g.return===l)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}l.stateNode=i;e:switch(yr(i,u,h),u){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Bi(l)}}return Mn(l),l.flags&=-16777217,null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==h&&Bi(l);else{if(typeof h!="string"&&l.stateNode===null)throw Error(r(166));if(i=Le.current,Fu(l)){if(i=l.stateNode,u=l.memoizedProps,h=null,g=Dr,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[Be]=l,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||dy(i.nodeValue,u)),i||wl(l)}else i=$d(i).createTextNode(h),i[Be]=l,l.stateNode=i}return Mn(l),null;case 13:if(h=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=Fu(l),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=l.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[Be]=l}else zu(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Mn(l),g=!1}else g=Xv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return l.flags&256?(Li(l),l):(Li(l),null)}if(Li(l),(l.flags&128)!==0)return l.lanes=u,l;if(u=h!==null,i=i!==null&&i.memoizedState!==null,u){h=l.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var v=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==g&&(h.flags|=2048)}return u!==i&&u&&(l.child.flags|=8192),Rd(l,l.updateQueue),Mn(l),null;case 4:return qt(),i===null&&Yp(l.stateNode.containerInfo),Mn(l),null;case 10:return Ii(l.type),Mn(l),null;case 19:if(pe(rr),g=l.memoizedState,g===null)return Mn(l),null;if(h=(l.flags&128)!==0,v=g.rendering,v===null)if(h)nc(g,!1);else{if(Bn!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(v=Ad(i),v!==null){for(l.flags|=128,nc(g,!1),i=v.updateQueue,l.updateQueue=i,Rd(l,i),l.subtreeFlags=0,i=u,u=l.child;u!==null;)Gv(u,i),u=u.sibling;return L(rr,rr.current&1|2),l.child}i=i.sibling}g.tail!==null&&Et()>Dd&&(l.flags|=128,h=!0,nc(g,!1),l.lanes=4194304)}else{if(!h)if(i=Ad(v),i!==null){if(l.flags|=128,h=!0,i=i.updateQueue,l.updateQueue=i,Rd(l,i),nc(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!Gt)return Mn(l),null}else 2*Et()-g.renderingStartTime>Dd&&u!==536870912&&(l.flags|=128,h=!0,nc(g,!1),l.lanes=4194304);g.isBackwards?(v.sibling=l.child,l.child=v):(i=g.last,i!==null?i.sibling=v:l.child=v,g.last=v)}return g.tail!==null?(l=g.tail,g.rendering=l,g.tail=l.sibling,g.renderingStartTime=Et(),l.sibling=null,i=rr.current,L(rr,h?i&1|2:i&1),l):(Mn(l),null);case 22:case 23:return Li(l),Vm(),h=l.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(l.flags|=8192):h&&(l.flags|=8192),h?(u&536870912)!==0&&(l.flags&128)===0&&(Mn(l),l.subtreeFlags&6&&(l.flags|=8192)):Mn(l),u=l.updateQueue,u!==null&&Rd(l,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==u&&(l.flags|=2048),i!==null&&pe(Cl),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),l.memoizedState.cache!==u&&(l.flags|=2048),Ii(nr),Mn(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function Aw(i,l){switch(Im(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return Ii(nr),qt(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return En(l),null;case 13:if(Li(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));zu()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return pe(rr),null;case 4:return qt(),null;case 10:return Ii(l.type),null;case 22:case 23:return Li(l),Vm(),i!==null&&pe(Cl),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return Ii(nr),null;case 25:return null;default:return null}}function y3(i,l){switch(Im(l),l.tag){case 3:Ii(nr),qt();break;case 26:case 27:case 5:En(l);break;case 4:qt();break;case 13:Li(l);break;case 19:pe(rr);break;case 10:Ii(l.type);break;case 22:case 23:Li(l),Vm(),i!==null&&pe(Cl);break;case 24:Ii(nr)}}function rc(i,l){try{var u=l.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&i)===i){h=void 0;var v=u.create,k=u.inst;h=v(),k.destroy=h}u=u.next}while(u!==g)}}catch(M){sn(l,l.return,M)}}function As(i,l,u){try{var h=l.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var v=g.next;h=v;do{if((h.tag&i)===i){var k=h.inst,M=k.destroy;if(M!==void 0){k.destroy=void 0,g=l;var Y=u,ae=M;try{ae()}catch(_e){sn(g,Y,_e)}}}h=h.next}while(h!==v)}}catch(_e){sn(l,l.return,_e)}}function _3(i){var l=i.updateQueue;if(l!==null){var u=i.stateNode;try{l4(l,u)}catch(h){sn(i,i.return,h)}}}function E3(i,l,u){u.props=Ol(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){sn(i,l,h)}}function ac(i,l){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(g){sn(i,l,g)}}function ri(i,l){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){sn(i,l,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){sn(i,l,g)}else u.current=null}function T3(i){var l=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){sn(i,i.return,g)}}function Ep(i,l,u){try{var h=i.stateNode;Vw(h,i.type,u,l),h[nt]=l}catch(g){sn(i,i.return,g)}}function x3(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Ds(i.type)||i.tag===4}function Tp(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||x3(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Ds(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function xp(i,l,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,l?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,l):(l=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,l.appendChild(i),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=jd));else if(h!==4&&(h===27&&Ds(i.type)&&(u=i.stateNode,l=null),i=i.child,i!==null))for(xp(i,l,u),i=i.sibling;i!==null;)xp(i,l,u),i=i.sibling}function Md(i,l,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,l?u.insertBefore(i,l):u.appendChild(i);else if(h!==4&&(h===27&&Ds(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Md(i,l,u),i=i.sibling;i!==null;)Md(i,l,u),i=i.sibling}function S3(i){var l=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,g=l.attributes;g.length;)l.removeAttributeNode(g[0]);yr(l,h,u),l[Be]=i,l[nt]=u}catch(v){sn(i,i.return,v)}}var Ui=!1,Hn=!1,Sp=!1,w3=typeof WeakSet=="function"?WeakSet:Set,ur=null;function kw(i,l){if(i=i.containerInfo,Kp=Xd,i=Pv(i),Tm(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,v=h.focusNode;h=h.focusOffset;try{u.nodeType,v.nodeType}catch{u=null;break e}var k=0,M=-1,Y=-1,ae=0,_e=0,xe=i,le=null;t:for(;;){for(var he;xe!==u||g!==0&&xe.nodeType!==3||(M=k+g),xe!==v||h!==0&&xe.nodeType!==3||(Y=k+h),xe.nodeType===3&&(k+=xe.nodeValue.length),(he=xe.firstChild)!==null;)le=xe,xe=he;for(;;){if(xe===i)break t;if(le===u&&++ae===g&&(M=k),le===v&&++_e===h&&(Y=k),(he=xe.nextSibling)!==null)break;xe=le,le=xe.parentNode}xe=he}u=M===-1||Y===-1?null:{start:M,end:Y}}else u=null}u=u||{start:0,end:0}}else u=null;for(Wp={focusedElem:i,selectionRange:u},Xd=!1,ur=l;ur!==null;)if(l=ur,i=l.child,(l.subtreeFlags&1024)!==0&&i!==null)i.return=l,ur=i;else for(;ur!==null;){switch(l=ur,v=l.alternate,i=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&v!==null){i=void 0,u=l,g=v.memoizedProps,v=v.memoizedState,h=u.stateNode;try{var mt=Ol(u.type,g,u.elementType===u.type);i=h.getSnapshotBeforeUpdate(mt,v),h.__reactInternalSnapshotBeforeUpdate=i}catch(ct){sn(u,u.return,ct)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,u=i.nodeType,u===9)Zp(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Zp(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=l.sibling,i!==null){i.return=l.return,ur=i;break}ur=l.return}}function A3(i,l,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:ks(i,u),h&4&&rc(5,u);break;case 1:if(ks(i,u),h&4)if(i=u.stateNode,l===null)try{i.componentDidMount()}catch(k){sn(u,u.return,k)}else{var g=Ol(u.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(g,l,i.__reactInternalSnapshotBeforeUpdate)}catch(k){sn(u,u.return,k)}}h&64&&_3(u),h&512&&ac(u,u.return);break;case 3:if(ks(i,u),h&64&&(i=u.updateQueue,i!==null)){if(l=null,u.child!==null)switch(u.child.tag){case 27:case 5:l=u.child.stateNode;break;case 1:l=u.child.stateNode}try{l4(i,l)}catch(k){sn(u,u.return,k)}}break;case 27:l===null&&h&4&&S3(u);case 26:case 5:ks(i,u),l===null&&h&4&&T3(u),h&512&&ac(u,u.return);break;case 12:ks(i,u);break;case 13:ks(i,u),h&4&&N3(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=Pw.bind(null,u),eA(i,u))));break;case 22:if(h=u.memoizedState!==null||Ui,!h){l=l!==null&&l.memoizedState!==null||Hn,g=Ui;var v=Hn;Ui=h,(Hn=l)&&!v?Cs(i,u,(u.subtreeFlags&8772)!==0):ks(i,u),Ui=g,Hn=v}break;case 30:break;default:ks(i,u)}}function k3(i){var l=i.alternate;l!==null&&(i.alternate=null,k3(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&hl(l)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var wn=null,Wr=!1;function Fi(i,l,u){for(u=u.child;u!==null;)C3(i,l,u),u=u.sibling}function C3(i,l,u){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(fe,u)}catch{}switch(u.tag){case 26:Hn||ri(u,l),Fi(i,l,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Hn||ri(u,l);var h=wn,g=Wr;Ds(u.type)&&(wn=u.stateNode,Wr=!1),Fi(i,l,u),fc(u.stateNode),wn=h,Wr=g;break;case 5:Hn||ri(u,l);case 6:if(h=wn,g=Wr,wn=null,Fi(i,l,u),wn=h,Wr=g,wn!==null)if(Wr)try{(wn.nodeType===9?wn.body:wn.nodeName==="HTML"?wn.ownerDocument.body:wn).removeChild(u.stateNode)}catch(v){sn(u,l,v)}else try{wn.removeChild(u.stateNode)}catch(v){sn(u,l,v)}break;case 18:wn!==null&&(Wr?(i=wn,gy(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),Ec(i)):gy(wn,u.stateNode));break;case 4:h=wn,g=Wr,wn=u.stateNode.containerInfo,Wr=!0,Fi(i,l,u),wn=h,Wr=g;break;case 0:case 11:case 14:case 15:Hn||As(2,u,l),Hn||As(4,u,l),Fi(i,l,u);break;case 1:Hn||(ri(u,l),h=u.stateNode,typeof h.componentWillUnmount=="function"&&E3(u,l,h)),Fi(i,l,u);break;case 21:Fi(i,l,u);break;case 22:Hn=(h=Hn)||u.memoizedState!==null,Fi(i,l,u),Hn=h;break;default:Fi(i,l,u)}}function N3(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Ec(i)}catch(u){sn(l,l.return,u)}}function Cw(i){switch(i.tag){case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new w3),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new w3),l;default:throw Error(r(435,i.tag))}}function wp(i,l){var u=Cw(i);l.forEach(function(h){var g=Bw.bind(null,i,h);u.has(h)||(u.add(h),h.then(g,g))})}function ua(i,l){var u=l.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],v=i,k=l,M=k;e:for(;M!==null;){switch(M.tag){case 27:if(Ds(M.type)){wn=M.stateNode,Wr=!1;break e}break;case 5:wn=M.stateNode,Wr=!1;break e;case 3:case 4:wn=M.stateNode.containerInfo,Wr=!0;break e}M=M.return}if(wn===null)throw Error(r(160));C3(v,k,g),wn=null,Wr=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)O3(l,i),l=l.sibling}var Ya=null;function O3(i,l){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ua(l,i),ca(i),h&4&&(As(3,i,i.return),rc(3,i),As(5,i,i.return));break;case 1:ua(l,i),ca(i),h&512&&(Hn||u===null||ri(u,u.return)),h&64&&Ui&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=Ya;if(ua(l,i),ca(i),h&512&&(Hn||u===null||ri(u,u.return)),h&4){var v=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":v=g.getElementsByTagName("title")[0],(!v||v[dl]||v[Be]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(h),g.head.insertBefore(v,g.querySelector("head > title"))),yr(v,h,u),v[Be]=i,On(v),h=v;break e;case"link":var k=Sy("link","href",g).get(h+(u.href||""));if(k){for(var M=0;M<k.length;M++)if(v=k[M],v.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&v.getAttribute("rel")===(u.rel==null?null:u.rel)&&v.getAttribute("title")===(u.title==null?null:u.title)&&v.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){k.splice(M,1);break t}}v=g.createElement(h),yr(v,h,u),g.head.appendChild(v);break;case"meta":if(k=Sy("meta","content",g).get(h+(u.content||""))){for(M=0;M<k.length;M++)if(v=k[M],v.getAttribute("content")===(u.content==null?null:""+u.content)&&v.getAttribute("name")===(u.name==null?null:u.name)&&v.getAttribute("property")===(u.property==null?null:u.property)&&v.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&v.getAttribute("charset")===(u.charSet==null?null:u.charSet)){k.splice(M,1);break t}}v=g.createElement(h),yr(v,h,u),g.head.appendChild(v);break;default:throw Error(r(468,h))}v[Be]=i,On(v),h=v}i.stateNode=h}else wy(g,i.type,i.stateNode);else i.stateNode=xy(g,h,i.memoizedProps);else v!==h?(v===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):v.count--,h===null?wy(g,i.type,i.stateNode):xy(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Ep(i,i.memoizedProps,u.memoizedProps)}break;case 27:ua(l,i),ca(i),h&512&&(Hn||u===null||ri(u,u.return)),u!==null&&h&4&&Ep(i,i.memoizedProps,u.memoizedProps);break;case 5:if(ua(l,i),ca(i),h&512&&(Hn||u===null||ri(u,u.return)),i.flags&32){g=i.stateNode;try{ei(g,"")}catch(he){sn(i,i.return,he)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,Ep(i,g,u!==null?u.memoizedProps:g)),h&1024&&(Sp=!0);break;case 6:if(ua(l,i),ca(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(he){sn(i,i.return,he)}}break;case 3:if(Vd=null,g=Ya,Ya=Yd(l.containerInfo),ua(l,i),Ya=g,ca(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Ec(l.containerInfo)}catch(he){sn(i,i.return,he)}Sp&&(Sp=!1,R3(i));break;case 4:h=Ya,Ya=Yd(i.stateNode.containerInfo),ua(l,i),ca(i),Ya=h;break;case 12:ua(l,i),ca(i);break;case 13:ua(l,i),ca(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Rp=Et()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,wp(i,h)));break;case 22:g=i.memoizedState!==null;var Y=u!==null&&u.memoizedState!==null,ae=Ui,_e=Hn;if(Ui=ae||g,Hn=_e||Y,ua(l,i),Hn=_e,Ui=ae,ca(i),h&8192)e:for(l=i.stateNode,l._visibility=g?l._visibility&-2:l._visibility|1,g&&(u===null||Y||Ui||Hn||Rl(i)),u=null,l=i;;){if(l.tag===5||l.tag===26){if(u===null){Y=u=l;try{if(v=Y.stateNode,g)k=v.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{M=Y.stateNode;var xe=Y.memoizedProps.style,le=xe!=null&&xe.hasOwnProperty("display")?xe.display:null;M.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(he){sn(Y,Y.return,he)}}}else if(l.tag===6){if(u===null){Y=l;try{Y.stateNode.nodeValue=g?"":Y.memoizedProps}catch(he){sn(Y,Y.return,he)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===i)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break e;for(;l.sibling===null;){if(l.return===null||l.return===i)break e;u===l&&(u=null),l=l.return}u===l&&(u=null),l.sibling.return=l.return,l=l.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,wp(i,u))));break;case 19:ua(l,i),ca(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,wp(i,h)));break;case 30:break;case 21:break;default:ua(l,i),ca(i)}}function ca(i){var l=i.flags;if(l&2){try{for(var u,h=i.return;h!==null;){if(x3(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,v=Tp(i);Md(i,v,g);break;case 5:var k=u.stateNode;u.flags&32&&(ei(k,""),u.flags&=-33);var M=Tp(i);Md(i,M,k);break;case 3:case 4:var Y=u.stateNode.containerInfo,ae=Tp(i);xp(i,ae,Y);break;default:throw Error(r(161))}}catch(_e){sn(i,i.return,_e)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function R3(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;R3(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),i=i.sibling}}function ks(i,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)A3(i,l.alternate,l),l=l.sibling}function Rl(i){for(i=i.child;i!==null;){var l=i;switch(l.tag){case 0:case 11:case 14:case 15:As(4,l,l.return),Rl(l);break;case 1:ri(l,l.return);var u=l.stateNode;typeof u.componentWillUnmount=="function"&&E3(l,l.return,u),Rl(l);break;case 27:fc(l.stateNode);case 26:case 5:ri(l,l.return),Rl(l);break;case 22:l.memoizedState===null&&Rl(l);break;case 30:Rl(l);break;default:Rl(l)}i=i.sibling}}function Cs(i,l,u){for(u=u&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var h=l.alternate,g=i,v=l,k=v.flags;switch(v.tag){case 0:case 11:case 15:Cs(g,v,u),rc(4,v);break;case 1:if(Cs(g,v,u),h=v,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ae){sn(h,h.return,ae)}if(h=v,g=h.updateQueue,g!==null){var M=h.stateNode;try{var Y=g.shared.hiddenCallbacks;if(Y!==null)for(g.shared.hiddenCallbacks=null,g=0;g<Y.length;g++)s4(Y[g],M)}catch(ae){sn(h,h.return,ae)}}u&&k&64&&_3(v),ac(v,v.return);break;case 27:S3(v);case 26:case 5:Cs(g,v,u),u&&h===null&&k&4&&T3(v),ac(v,v.return);break;case 12:Cs(g,v,u);break;case 13:Cs(g,v,u),u&&k&4&&N3(g,v);break;case 22:v.memoizedState===null&&Cs(g,v,u),ac(v,v.return);break;case 30:break;default:Cs(g,v,u)}l=l.sibling}}function Ap(i,l){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&ju(u))}function kp(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&ju(i))}function ai(i,l,u,h){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)M3(i,l,u,h),l=l.sibling}function M3(i,l,u,h){var g=l.flags;switch(l.tag){case 0:case 11:case 15:ai(i,l,u,h),g&2048&&rc(9,l);break;case 1:ai(i,l,u,h);break;case 3:ai(i,l,u,h),g&2048&&(i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&ju(i)));break;case 12:if(g&2048){ai(i,l,u,h),i=l.stateNode;try{var v=l.memoizedProps,k=v.id,M=v.onPostCommit;typeof M=="function"&&M(k,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(Y){sn(l,l.return,Y)}}else ai(i,l,u,h);break;case 13:ai(i,l,u,h);break;case 23:break;case 22:v=l.stateNode,k=l.alternate,l.memoizedState!==null?v._visibility&2?ai(i,l,u,h):ic(i,l):v._visibility&2?ai(i,l,u,h):(v._visibility|=2,To(i,l,u,h,(l.subtreeFlags&10256)!==0)),g&2048&&Ap(k,l);break;case 24:ai(i,l,u,h),g&2048&&kp(l.alternate,l);break;default:ai(i,l,u,h)}}function To(i,l,u,h,g){for(g=g&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var v=i,k=l,M=u,Y=h,ae=k.flags;switch(k.tag){case 0:case 11:case 15:To(v,k,M,Y,g),rc(8,k);break;case 23:break;case 22:var _e=k.stateNode;k.memoizedState!==null?_e._visibility&2?To(v,k,M,Y,g):ic(v,k):(_e._visibility|=2,To(v,k,M,Y,g)),g&&ae&2048&&Ap(k.alternate,k);break;case 24:To(v,k,M,Y,g),g&&ae&2048&&kp(k.alternate,k);break;default:To(v,k,M,Y,g)}l=l.sibling}}function ic(i,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var u=i,h=l,g=h.flags;switch(h.tag){case 22:ic(u,h),g&2048&&Ap(h.alternate,h);break;case 24:ic(u,h),g&2048&&kp(h.alternate,h);break;default:ic(u,h)}l=l.sibling}}var sc=8192;function xo(i){if(i.subtreeFlags&sc)for(i=i.child;i!==null;)I3(i),i=i.sibling}function I3(i){switch(i.tag){case 26:xo(i),i.flags&sc&&i.memoizedState!==null&&fA(Ya,i.memoizedState,i.memoizedProps);break;case 5:xo(i);break;case 3:case 4:var l=Ya;Ya=Yd(i.stateNode.containerInfo),xo(i),Ya=l;break;case 22:i.memoizedState===null&&(l=i.alternate,l!==null&&l.memoizedState!==null?(l=sc,sc=16777216,xo(i),sc=l):xo(i));break;default:xo(i)}}function D3(i){var l=i.alternate;if(l!==null&&(i=l.child,i!==null)){l.child=null;do l=i.sibling,i.sibling=null,i=l;while(i!==null)}}function lc(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var h=l[u];ur=h,P3(h,i)}D3(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)L3(i),i=i.sibling}function L3(i){switch(i.tag){case 0:case 11:case 15:lc(i),i.flags&2048&&As(9,i,i.return);break;case 3:lc(i);break;case 12:lc(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,Id(i)):lc(i);break;default:lc(i)}}function Id(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var h=l[u];ur=h,P3(h,i)}D3(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:As(8,l,l.return),Id(l);break;case 22:u=l.stateNode,u._visibility&2&&(u._visibility&=-3,Id(l));break;default:Id(l)}i=i.sibling}}function P3(i,l){for(;ur!==null;){var u=ur;switch(u.tag){case 0:case 11:case 15:As(8,u,l);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:ju(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,ur=h;else e:for(u=i;ur!==null;){h=ur;var g=h.sibling,v=h.return;if(k3(h),h===u){ur=null;break e}if(g!==null){g.return=v,ur=g;break e}ur=v}}}var Nw={getCacheForType:function(i){var l=Sr(nr),u=l.data.get(i);return u===void 0&&(u=i(),l.data.set(i,u)),u}},Ow=typeof WeakMap=="function"?WeakMap:Map,Qt=0,dn=null,It=null,Ut=0,Zt=0,da=null,Ns=!1,So=!1,Cp=!1,zi=0,Bn=0,Os=0,Ml=0,Np=0,Na=0,wo=0,oc=null,Xr=null,Op=!1,Rp=0,Dd=1/0,Ld=null,Rs=null,vr=0,Ms=null,Ao=null,ko=0,Mp=0,Ip=null,B3=null,uc=0,Dp=null;function ha(){if((Qt&2)!==0&&Ut!==0)return Ut&-Ut;if(V.T!==null){var i=mo;return i!==0?i:Hp()}return xn()}function U3(){Na===0&&(Na=(Ut&536870912)===0||Gt?xu():536870912);var i=Ca.current;return i!==null&&(i.flags|=32),Na}function fa(i,l,u){(i===dn&&(Zt===2||Zt===9)||i.cancelPendingCommit!==null)&&(Co(i,0),Is(i,Ut,Na,!1)),hs(i,u),((Qt&2)===0||i!==dn)&&(i===dn&&((Qt&2)===0&&(Ml|=u),Bn===4&&Is(i,Ut,Na,!1)),ii(i))}function F3(i,l,u){if((Qt&6)!==0)throw Error(r(327));var h=!u&&(l&124)===0&&(l&i.expiredLanes)===0||Yr(i,l),g=h?Iw(i,l):Bp(i,l,!0),v=h;do{if(g===0){So&&!h&&Is(i,l,0,!1);break}else{if(u=i.current.alternate,v&&!Rw(u)){g=Bp(i,l,!1),v=!1;continue}if(g===2){if(v=l,i.errorRecoveryDisabledLanes&v)var k=0;else k=i.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){l=k;e:{var M=i;g=oc;var Y=M.current.memoizedState.isDehydrated;if(Y&&(Co(M,k).flags|=256),k=Bp(M,k,!1),k!==2){if(Cp&&!Y){M.errorRecoveryDisabledLanes|=v,Ml|=v,g=4;break e}v=Xr,Xr=g,v!==null&&(Xr===null?Xr=v:Xr.push.apply(Xr,v))}g=k}if(v=!1,g!==2)continue}}if(g===1){Co(i,0),Is(i,l,0,!0);break}e:{switch(h=i,v=g,v){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Is(h,l,Na,!Ns);break e;case 2:Xr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(g=Rp+300-Et(),10<g)){if(Is(h,l,Na,!Ns),Yn(h,0,!0)!==0)break e;h.timeoutHandle=my(z3.bind(null,h,u,Xr,Ld,Op,l,Na,Ml,wo,Ns,v,2,-0,0),g);break e}z3(h,u,Xr,Ld,Op,l,Na,Ml,wo,Ns,v,0,-0,0)}}break}while(!0);ii(i)}function z3(i,l,u,h,g,v,k,M,Y,ae,_e,xe,le,he){if(i.timeoutHandle=-1,xe=l.subtreeFlags,(xe&8192||(xe&16785408)===16785408)&&(gc={stylesheets:null,count:0,unsuspend:hA},I3(l),xe=mA(),xe!==null)){i.cancelPendingCommit=xe(V3.bind(null,i,l,v,u,h,g,k,M,Y,_e,1,le,he)),Is(i,v,k,!ae);return}V3(i,l,v,u,h,g,k,M,Y)}function Rw(i){for(var l=i;;){var u=l.tag;if((u===0||u===11||u===15)&&l.flags&16384&&(u=l.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],v=g.getSnapshot;g=g.value;try{if(!la(v(),g))return!1}catch{return!1}}if(u=l.child,l.subtreeFlags&16384&&u!==null)u.return=l,l=u;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Is(i,l,u,h){l&=~Np,l&=~Ml,i.suspendedLanes|=l,i.pingedLanes&=~l,h&&(i.warmLanes|=l),h=i.expirationTimes;for(var g=l;0<g;){var v=31-tt(g),k=1<<v;h[v]=-1,g&=~k}u!==0&&K(i,u,l)}function Pd(){return(Qt&6)===0?(cc(0),!1):!0}function Lp(){if(It!==null){if(Zt===0)var i=It.return;else i=It,Mi=Al=null,Zm(i),_o=null,ec=0,i=It;for(;i!==null;)y3(i.alternate,i),i=i.return;It=null}}function Co(i,l){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,Ww(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),Lp(),dn=i,It=u=Ni(i.current,null),Ut=l,Zt=0,da=null,Ns=!1,So=Yr(i,l),Cp=!1,wo=Na=Np=Ml=Os=Bn=0,Xr=oc=null,Op=!1,(l&8)!==0&&(l|=l&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=l;0<h;){var g=31-tt(h),v=1<<g;l|=i[g],h&=~v}return zi=l,ad(),u}function H3(i,l){Ct=null,V.H=xd,l===Yu||l===fd?(l=a4(),Zt=3):l===t4?(l=a4(),Zt=4):Zt=l===i3?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,da=l,It===null&&(Bn=1,Cd(i,Sa(l,i.current)))}function q3(){var i=V.H;return V.H=xd,i===null?xd:i}function j3(){var i=V.A;return V.A=Nw,i}function Pp(){Bn=4,Ns||(Ut&4194048)!==Ut&&Ca.current!==null||(So=!0),(Os&134217727)===0&&(Ml&134217727)===0||dn===null||Is(dn,Ut,Na,!1)}function Bp(i,l,u){var h=Qt;Qt|=2;var g=q3(),v=j3();(dn!==i||Ut!==l)&&(Ld=null,Co(i,l)),l=!1;var k=Bn;e:do try{if(Zt!==0&&It!==null){var M=It,Y=da;switch(Zt){case 8:Lp(),k=6;break e;case 3:case 2:case 9:case 6:Ca.current===null&&(l=!0);var ae=Zt;if(Zt=0,da=null,No(i,M,Y,ae),u&&So){k=0;break e}break;default:ae=Zt,Zt=0,da=null,No(i,M,Y,ae)}}Mw(),k=Bn;break}catch(_e){H3(i,_e)}while(!0);return l&&i.shellSuspendCounter++,Mi=Al=null,Qt=h,V.H=g,V.A=v,It===null&&(dn=null,Ut=0,ad()),k}function Mw(){for(;It!==null;)$3(It)}function Iw(i,l){var u=Qt;Qt|=2;var h=q3(),g=j3();dn!==i||Ut!==l?(Ld=null,Dd=Et()+500,Co(i,l)):So=Yr(i,l);e:do try{if(Zt!==0&&It!==null){l=It;var v=da;t:switch(Zt){case 1:Zt=0,da=null,No(i,l,v,1);break;case 2:case 9:if(n4(v)){Zt=0,da=null,Y3(l);break}l=function(){Zt!==2&&Zt!==9||dn!==i||(Zt=7),ii(i)},v.then(l,l);break e;case 3:Zt=7;break e;case 4:Zt=5;break e;case 7:n4(v)?(Zt=0,da=null,Y3(l)):(Zt=0,da=null,No(i,l,v,7));break;case 5:var k=null;switch(It.tag){case 26:k=It.memoizedState;case 5:case 27:var M=It;if(!k||Ay(k)){Zt=0,da=null;var Y=M.sibling;if(Y!==null)It=Y;else{var ae=M.return;ae!==null?(It=ae,Bd(ae)):It=null}break t}}Zt=0,da=null,No(i,l,v,5);break;case 6:Zt=0,da=null,No(i,l,v,6);break;case 8:Lp(),Bn=6;break e;default:throw Error(r(462))}}Dw();break}catch(_e){H3(i,_e)}while(!0);return Mi=Al=null,V.H=h,V.A=g,Qt=u,It!==null?0:(dn=null,Ut=0,ad(),Bn)}function Dw(){for(;It!==null&&!Ft();)$3(It)}function $3(i){var l=b3(i.alternate,i,zi);i.memoizedProps=i.pendingProps,l===null?Bd(i):It=l}function Y3(i){var l=i,u=l.alternate;switch(l.tag){case 15:case 0:l=d3(u,l,l.pendingProps,l.type,void 0,Ut);break;case 11:l=d3(u,l,l.pendingProps,l.type.render,l.ref,Ut);break;case 5:Zm(l);default:y3(u,l),l=It=Gv(l,zi),l=b3(u,l,zi)}i.memoizedProps=i.pendingProps,l===null?Bd(i):It=l}function No(i,l,u,h){Mi=Al=null,Zm(l),_o=null,ec=0;var g=l.return;try{if(xw(i,g,l,u,Ut)){Bn=1,Cd(i,Sa(u,i.current)),It=null;return}}catch(v){if(g!==null)throw It=g,v;Bn=1,Cd(i,Sa(u,i.current)),It=null;return}l.flags&32768?(Gt||h===1?i=!0:So||(Ut&536870912)!==0?i=!1:(Ns=i=!0,(h===2||h===9||h===3||h===6)&&(h=Ca.current,h!==null&&h.tag===13&&(h.flags|=16384))),G3(l,i)):Bd(l)}function Bd(i){var l=i;do{if((l.flags&32768)!==0){G3(l,Ns);return}i=l.return;var u=ww(l.alternate,l,zi);if(u!==null){It=u;return}if(l=l.sibling,l!==null){It=l;return}It=l=i}while(l!==null);Bn===0&&(Bn=5)}function G3(i,l){do{var u=Aw(i.alternate,i);if(u!==null){u.flags&=32767,It=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!l&&(i=i.sibling,i!==null)){It=i;return}It=i=u}while(i!==null);Bn=6,It=null}function V3(i,l,u,h,g,v,k,M,Y){i.cancelPendingCommit=null;do Ud();while(vr!==0);if((Qt&6)!==0)throw Error(r(327));if(l!==null){if(l===i.current)throw Error(r(177));if(v=l.lanes|l.childLanes,v|=km,fs(i,u,v,k,M,Y),i===dn&&(It=dn=null,Ut=0),Ao=l,Ms=i,ko=u,Mp=v,Ip=g,B3=h,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Uw(Ke,function(){return Z3(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||h){h=V.T,V.T=null,g=ue.p,ue.p=2,k=Qt,Qt|=4;try{kw(i,l,u)}finally{Qt=k,ue.p=g,V.T=h}}vr=1,K3(),W3(),X3()}}function K3(){if(vr===1){vr=0;var i=Ms,l=Ao,u=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||u){u=V.T,V.T=null;var h=ue.p;ue.p=2;var g=Qt;Qt|=4;try{O3(l,i);var v=Wp,k=Pv(i.containerInfo),M=v.focusedElem,Y=v.selectionRange;if(k!==M&&M&&M.ownerDocument&&Lv(M.ownerDocument.documentElement,M)){if(Y!==null&&Tm(M)){var ae=Y.start,_e=Y.end;if(_e===void 0&&(_e=ae),"selectionStart"in M)M.selectionStart=ae,M.selectionEnd=Math.min(_e,M.value.length);else{var xe=M.ownerDocument||document,le=xe&&xe.defaultView||window;if(le.getSelection){var he=le.getSelection(),mt=M.textContent.length,ct=Math.min(Y.start,mt),rn=Y.end===void 0?ct:Math.min(Y.end,mt);!he.extend&&ct>rn&&(k=rn,rn=ct,ct=k);var J=Dv(M,ct),W=Dv(M,rn);if(J&&W&&(he.rangeCount!==1||he.anchorNode!==J.node||he.anchorOffset!==J.offset||he.focusNode!==W.node||he.focusOffset!==W.offset)){var te=xe.createRange();te.setStart(J.node,J.offset),he.removeAllRanges(),ct>rn?(he.addRange(te),he.extend(W.node,W.offset)):(te.setEnd(W.node,W.offset),he.addRange(te))}}}}for(xe=[],he=M;he=he.parentNode;)he.nodeType===1&&xe.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<xe.length;M++){var Te=xe[M];Te.element.scrollLeft=Te.left,Te.element.scrollTop=Te.top}}Xd=!!Kp,Wp=Kp=null}finally{Qt=g,ue.p=h,V.T=u}}i.current=l,vr=2}}function W3(){if(vr===2){vr=0;var i=Ms,l=Ao,u=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||u){u=V.T,V.T=null;var h=ue.p;ue.p=2;var g=Qt;Qt|=4;try{A3(i,l.alternate,l)}finally{Qt=g,ue.p=h,V.T=u}}vr=3}}function X3(){if(vr===4||vr===3){vr=0,Je();var i=Ms,l=Ao,u=ko,h=B3;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?vr=5:(vr=0,Ao=Ms=null,Q3(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(Rs=null),ft(u),l=l.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(fe,l,void 0,(l.current.flags&128)===128)}catch{}if(h!==null){l=V.T,g=ue.p,ue.p=2,V.T=null;try{for(var v=i.onRecoverableError,k=0;k<h.length;k++){var M=h[k];v(M.value,{componentStack:M.stack})}}finally{V.T=l,ue.p=g}}(ko&3)!==0&&Ud(),ii(i),g=i.pendingLanes,(u&4194090)!==0&&(g&42)!==0?i===Dp?uc++:(uc=0,Dp=i):uc=0,cc(0)}}function Q3(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,ju(l)))}function Ud(i){return K3(),W3(),X3(),Z3()}function Z3(){if(vr!==5)return!1;var i=Ms,l=Mp;Mp=0;var u=ft(ko),h=V.T,g=ue.p;try{ue.p=32>u?32:u,V.T=null,u=Ip,Ip=null;var v=Ms,k=ko;if(vr=0,Ao=Ms=null,ko=0,(Qt&6)!==0)throw Error(r(331));var M=Qt;if(Qt|=4,L3(v.current),M3(v,v.current,k,u),Qt=M,cc(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(fe,v)}catch{}return!0}finally{ue.p=g,V.T=h,Q3(i,l)}}function J3(i,l,u){l=Sa(u,l),l=hp(i.stateNode,l,2),i=Ts(i,l,2),i!==null&&(hs(i,2),ii(i))}function sn(i,l,u){if(i.tag===3)J3(i,i,u);else for(;l!==null;){if(l.tag===3){J3(l,i,u);break}else if(l.tag===1){var h=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Rs===null||!Rs.has(h))){i=Sa(u,i),u=r3(2),h=Ts(l,u,2),h!==null&&(a3(u,h,l,i),hs(h,2),ii(h));break}}l=l.return}}function Up(i,l,u){var h=i.pingCache;if(h===null){h=i.pingCache=new Ow;var g=new Set;h.set(l,g)}else g=h.get(l),g===void 0&&(g=new Set,h.set(l,g));g.has(u)||(Cp=!0,g.add(u),i=Lw.bind(null,i,l,u),l.then(i,i))}function Lw(i,l,u){var h=i.pingCache;h!==null&&h.delete(l),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,dn===i&&(Ut&u)===u&&(Bn===4||Bn===3&&(Ut&62914560)===Ut&&300>Et()-Rp?(Qt&2)===0&&Co(i,0):Np|=u,wo===Ut&&(wo=0)),ii(i)}function ey(i,l){l===0&&(l=Su()),i=uo(i,l),i!==null&&(hs(i,l),ii(i))}function Pw(i){var l=i.memoizedState,u=0;l!==null&&(u=l.retryLane),ey(i,u)}function Bw(i,l){var u=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(l),ey(i,u)}function Uw(i,l){return yt(i,l)}var Fd=null,Oo=null,Fp=!1,zd=!1,zp=!1,Il=0;function ii(i){i!==Oo&&i.next===null&&(Oo===null?Fd=Oo=i:Oo=Oo.next=i),zd=!0,Fp||(Fp=!0,zw())}function cc(i,l){if(!zp&&zd){zp=!0;do for(var u=!1,h=Fd;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var v=0;else{var k=h.suspendedLanes,M=h.pingedLanes;v=(1<<31-tt(42|i)+1)-1,v&=g&~(k&~M),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(u=!0,ay(h,v))}else v=Ut,v=Yn(h,h===dn?v:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(v&3)===0||Yr(h,v)||(u=!0,ay(h,v));h=h.next}while(u);zp=!1}}function Fw(){ty()}function ty(){zd=Fp=!1;var i=0;Il!==0&&(Kw()&&(i=Il),Il=0);for(var l=Et(),u=null,h=Fd;h!==null;){var g=h.next,v=ny(h,l);v===0?(h.next=null,u===null?Fd=g:u.next=g,g===null&&(Oo=u)):(u=h,(i!==0||(v&3)!==0)&&(zd=!0)),h=g}cc(i)}function ny(i,l){for(var u=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,v=i.pendingLanes&-62914561;0<v;){var k=31-tt(v),M=1<<k,Y=g[k];Y===-1?((M&u)===0||(M&h)!==0)&&(g[k]=Mr(M,l)):Y<=l&&(i.expiredLanes|=M),v&=~M}if(l=dn,u=Ut,u=Yn(i,i===l?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===l&&(Zt===2||Zt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&bt(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Yr(i,u)){if(l=u&-u,l===i.callbackPriority)return l;switch(h!==null&&bt(h),ft(u)){case 2:case 8:u=un;break;case 32:u=Ke;break;case 268435456:u=Tn;break;default:u=Ke}return h=ry.bind(null,i),u=yt(u,h),i.callbackPriority=l,i.callbackNode=u,l}return h!==null&&h!==null&&bt(h),i.callbackPriority=2,i.callbackNode=null,2}function ry(i,l){if(vr!==0&&vr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Ud()&&i.callbackNode!==u)return null;var h=Ut;return h=Yn(i,i===dn?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(F3(i,h,l),ny(i,Et()),i.callbackNode!=null&&i.callbackNode===u?ry.bind(null,i):null)}function ay(i,l){if(Ud())return null;F3(i,l,!0)}function zw(){Xw(function(){(Qt&6)!==0?yt(Bt,Fw):ty()})}function Hp(){return Il===0&&(Il=xu()),Il}function iy(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:bs(""+i)}function sy(i,l){var u=l.ownerDocument.createElement("input");return u.name=l.name,u.value=l.value,i.id&&u.setAttribute("form",i.id),l.parentNode.insertBefore(u,l),i=new FormData(i),u.parentNode.removeChild(u),i}function Hw(i,l,u,h,g){if(l==="submit"&&u&&u.stateNode===g){var v=iy((g[nt]||null).action),k=h.submitter;k&&(l=(l=k[nt]||null)?iy(l.formAction):k.getAttribute("formAction"),l!==null&&(v=l,k=null));var M=new td("action","action",null,h,g);i.push({event:M,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Il!==0){var Y=k?sy(g,k):new FormData(g);lp(u,{pending:!0,data:Y,method:g.method,action:v},null,Y)}}else typeof v=="function"&&(M.preventDefault(),Y=k?sy(g,k):new FormData(g),lp(u,{pending:!0,data:Y,method:g.method,action:v},v,Y))},currentTarget:g}]})}}for(var qp=0;qp<Am.length;qp++){var jp=Am[qp],qw=jp.toLowerCase(),jw=jp[0].toUpperCase()+jp.slice(1);$a(qw,"on"+jw)}$a(Fv,"onAnimationEnd"),$a(zv,"onAnimationIteration"),$a(Hv,"onAnimationStart"),$a("dblclick","onDoubleClick"),$a("focusin","onFocus"),$a("focusout","onBlur"),$a(sw,"onTransitionRun"),$a(lw,"onTransitionStart"),$a(ow,"onTransitionCancel"),$a(qv,"onTransitionEnd"),Ir("onMouseEnter",["mouseout","mouseover"]),Ir("onMouseLeave",["mouseout","mouseover"]),Ir("onPointerEnter",["pointerout","pointerover"]),Ir("onPointerLeave",["pointerout","pointerover"]),wi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wi("onBeforeInput",["compositionend","keypress","textInput","paste"]),wi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dc="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(" "),$w=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dc));function ly(i,l){l=(l&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],g=h.event;h=h.listeners;e:{var v=void 0;if(l)for(var k=h.length-1;0<=k;k--){var M=h[k],Y=M.instance,ae=M.currentTarget;if(M=M.listener,Y!==v&&g.isPropagationStopped())break e;v=M,g.currentTarget=ae;try{v(g)}catch(_e){kd(_e)}g.currentTarget=null,v=Y}else for(k=0;k<h.length;k++){if(M=h[k],Y=M.instance,ae=M.currentTarget,M=M.listener,Y!==v&&g.isPropagationStopped())break e;v=M,g.currentTarget=ae;try{v(g)}catch(_e){kd(_e)}g.currentTarget=null,v=Y}}}}function Dt(i,l){var u=l[Sn];u===void 0&&(u=l[Sn]=new Set);var h=i+"__bubble";u.has(h)||(oy(l,i,2,!1),u.add(h))}function $p(i,l,u){var h=0;l&&(h|=4),oy(u,i,h,l)}var Hd="_reactListening"+Math.random().toString(36).slice(2);function Yp(i){if(!i[Hd]){i[Hd]=!0,G0.forEach(function(u){u!=="selectionchange"&&($w.has(u)||$p(u,!1,i),$p(u,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[Hd]||(l[Hd]=!0,$p("selectionchange",!1,l))}}function oy(i,l,u,h){switch(My(l)){case 2:var g=bA;break;case 8:g=vA;break;default:g=i1}u=g.bind(null,l,u,i),g=void 0,!fm||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(l,u,{capture:!0,passive:g}):i.addEventListener(l,u,!0):g!==void 0?i.addEventListener(l,u,{passive:g}):i.addEventListener(l,u,!1)}function Gp(i,l,u,h,g){var v=h;if((l&1)===0&&(l&2)===0&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var M=h.stateNode.containerInfo;if(M===g)break;if(k===4)for(k=h.return;k!==null;){var Y=k.tag;if((Y===3||Y===4)&&k.stateNode.containerInfo===g)return;k=k.return}for(;M!==null;){if(k=ms(M),k===null)return;if(Y=k.tag,Y===5||Y===6||Y===26||Y===27){h=v=k;continue e}M=M.parentNode}}h=h.return}xa(function(){var ae=v,_e=Fe(u),xe=[];e:{var le=jv.get(i);if(le!==void 0){var he=td,mt=i;switch(i){case"keypress":if(J0(u)===0)break e;case"keydown":case"keyup":he=U9;break;case"focusin":mt="focus",he=bm;break;case"focusout":mt="blur",he=bm;break;case"beforeblur":case"afterblur":he=bm;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":he=vv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=A9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=H9;break;case Fv:case zv:case Hv:he=N9;break;case qv:he=j9;break;case"scroll":case"scrollend":he=S9;break;case"wheel":he=Y9;break;case"copy":case"cut":case"paste":he=R9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=_v;break;case"toggle":case"beforetoggle":he=V9}var ct=(l&4)!==0,rn=!ct&&(i==="scroll"||i==="scrollend"),J=ct?le!==null?le+"Capture":null:le;ct=[];for(var W=ae,te;W!==null;){var Te=W;if(te=Te.stateNode,Te=Te.tag,Te!==5&&Te!==26&&Te!==27||te===null||J===null||(Te=bl(W,J),Te!=null&&ct.push(hc(W,Te,te))),rn)break;W=W.return}0<ct.length&&(le=new he(le,mt,null,u,_e),xe.push({event:le,listeners:ct}))}}if((l&7)===0){e:{if(le=i==="mouseover"||i==="pointerover",he=i==="mouseout"||i==="pointerout",le&&u!==gl&&(mt=u.relatedTarget||u.fromElement)&&(ms(mt)||mt[vn]))break e;if((he||le)&&(le=_e.window===_e?_e:(le=_e.ownerDocument)?le.defaultView||le.parentWindow:window,he?(mt=u.relatedTarget||u.toElement,he=ae,mt=mt?ms(mt):null,mt!==null&&(rn=s(mt),ct=mt.tag,mt!==rn||ct!==5&&ct!==27&&ct!==6)&&(mt=null)):(he=null,mt=ae),he!==mt)){if(ct=vv,Te="onMouseLeave",J="onMouseEnter",W="mouse",(i==="pointerout"||i==="pointerover")&&(ct=_v,Te="onPointerLeave",J="onPointerEnter",W="pointer"),rn=he==null?le:fl(he),te=mt==null?le:fl(mt),le=new ct(Te,W+"leave",he,u,_e),le.target=rn,le.relatedTarget=te,Te=null,ms(_e)===ae&&(ct=new ct(J,W+"enter",mt,u,_e),ct.target=te,ct.relatedTarget=rn,Te=ct),rn=Te,he&&mt)t:{for(ct=he,J=mt,W=0,te=ct;te;te=Ro(te))W++;for(te=0,Te=J;Te;Te=Ro(Te))te++;for(;0<W-te;)ct=Ro(ct),W--;for(;0<te-W;)J=Ro(J),te--;for(;W--;){if(ct===J||J!==null&&ct===J.alternate)break t;ct=Ro(ct),J=Ro(J)}ct=null}else ct=null;he!==null&&uy(xe,le,he,ct,!1),mt!==null&&rn!==null&&uy(xe,rn,mt,ct,!0)}}e:{if(le=ae?fl(ae):window,he=le.nodeName&&le.nodeName.toLowerCase(),he==="select"||he==="input"&&le.type==="file")var Ze=Cv;else if(Av(le))if(Nv)Ze=rw;else{Ze=tw;var Nt=ew}else he=le.nodeName,!he||he.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?ae&&Kt(ae.elementType)&&(Ze=Cv):Ze=nw;if(Ze&&(Ze=Ze(i,ae))){kv(xe,Ze,u,_e);break e}Nt&&Nt(i,le,ae),i==="focusout"&&ae&&le.type==="number"&&ae.memoizedProps.value!=null&&gs(le,"number",le.value)}switch(Nt=ae?fl(ae):window,i){case"focusin":(Av(Nt)||Nt.contentEditable==="true")&&(so=Nt,xm=ae,Uu=null);break;case"focusout":Uu=xm=so=null;break;case"mousedown":Sm=!0;break;case"contextmenu":case"mouseup":case"dragend":Sm=!1,Bv(xe,u,_e);break;case"selectionchange":if(iw)break;case"keydown":case"keyup":Bv(xe,u,_e)}var it;if(ym)e:{switch(i){case"compositionstart":var dt="onCompositionStart";break e;case"compositionend":dt="onCompositionEnd";break e;case"compositionupdate":dt="onCompositionUpdate";break e}dt=void 0}else io?Sv(i,u)&&(dt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(dt="onCompositionStart");dt&&(Ev&&u.locale!=="ko"&&(io||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&io&&(it=gv()):(vs=_e,mm="value"in vs?vs.value:vs.textContent,io=!0)),Nt=qd(ae,dt),0<Nt.length&&(dt=new yv(dt,i,null,u,_e),xe.push({event:dt,listeners:Nt}),it?dt.data=it:(it=wv(u),it!==null&&(dt.data=it)))),(it=W9?X9(i,u):Q9(i,u))&&(dt=qd(ae,"onBeforeInput"),0<dt.length&&(Nt=new yv("onBeforeInput","beforeinput",null,u,_e),xe.push({event:Nt,listeners:dt}),Nt.data=it)),Hw(xe,i,ae,u,_e)}ly(xe,l)})}function hc(i,l,u){return{instance:i,listener:l,currentTarget:u}}function qd(i,l){for(var u=l+"Capture",h=[];i!==null;){var g=i,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=bl(i,u),g!=null&&h.unshift(hc(i,g,v)),g=bl(i,l),g!=null&&h.push(hc(i,g,v))),i.tag===3)return h;i=i.return}return[]}function Ro(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function uy(i,l,u,h,g){for(var v=l._reactName,k=[];u!==null&&u!==h;){var M=u,Y=M.alternate,ae=M.stateNode;if(M=M.tag,Y!==null&&Y===h)break;M!==5&&M!==26&&M!==27||ae===null||(Y=ae,g?(ae=bl(u,v),ae!=null&&k.unshift(hc(u,ae,Y))):g||(ae=bl(u,v),ae!=null&&k.push(hc(u,ae,Y)))),u=u.return}k.length!==0&&i.push({event:l,listeners:k})}var Yw=/\r\n?/g,Gw=/\u0000|\uFFFD/g;function cy(i){return(typeof i=="string"?i:""+i).replace(Yw,`
|
|
49
|
-
`).replace(Gw,"")}function dy(i,l){return l=cy(l),cy(i)===l}function jd(){}function nn(i,l,u,h,g,v){switch(u){case"children":typeof h=="string"?l==="body"||l==="textarea"&&h===""||ei(i,h):(typeof h=="number"||typeof h=="bigint")&&l!=="body"&&ei(i,""+h);break;case"className":Ai(i,"class",h);break;case"tabIndex":Ai(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Ai(i,u,h);break;case"style":Gn(i,h,v);break;case"data":if(l!=="object"){Ai(i,"data",h);break}case"src":case"href":if(h===""&&(l!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=bs(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.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 v=="function"&&(u==="formAction"?(l!=="input"&&nn(i,l,"name",g.name,g,null),nn(i,l,"formEncType",g.formEncType,g,null),nn(i,l,"formMethod",g.formMethod,g,null),nn(i,l,"formTarget",g.formTarget,g,null)):(nn(i,l,"encType",g.encType,g,null),nn(i,l,"method",g.method,g,null),nn(i,l,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=bs(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=jd);break;case"onScroll":h!=null&&Dt("scroll",i);break;case"onScrollEnd":h!=null&&Dt("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=bs(""+h),i.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":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":Dt("beforetoggle",i),Dt("toggle",i),ro(i,"popover",h);break;case"xlinkActuate":Ha(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Ha(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Ha(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Ha(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Ha(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Ha(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Ha(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Ha(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Ha(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":ro(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=ao.get(u)||u,ro(i,u,h))}}function Vp(i,l,u,h,g,v){switch(u){case"style":Gn(i,h,v);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?ei(i,h):(typeof h=="number"||typeof h=="bigint")&&ei(i,""+h);break;case"onScroll":h!=null&&Dt("scroll",i);break;case"onScrollEnd":h!=null&&Dt("scrollend",i);break;case"onClick":h!=null&&(i.onclick=jd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!V0.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),l=u.slice(2,g?u.length-7:void 0),v=i[nt]||null,v=v!=null?v[u]:null,typeof v=="function"&&i.removeEventListener(l,v,g),typeof h=="function")){typeof v!="function"&&v!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(l,h,g);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):ro(i,u,h)}}}function yr(i,l,u){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Dt("error",i),Dt("load",i);var h=!1,g=!1,v;for(v in u)if(u.hasOwnProperty(v)){var k=u[v];if(k!=null)switch(v){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:nn(i,l,v,k,u,null)}}g&&nn(i,l,"srcSet",u.srcSet,u,null),h&&nn(i,l,"src",u.src,u,null);return;case"input":Dt("invalid",i);var M=v=k=g=null,Y=null,ae=null;for(h in u)if(u.hasOwnProperty(h)){var _e=u[h];if(_e!=null)switch(h){case"name":g=_e;break;case"type":k=_e;break;case"checked":Y=_e;break;case"defaultChecked":ae=_e;break;case"value":v=_e;break;case"defaultValue":M=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,l));break;default:nn(i,l,h,_e,u,null)}}X0(i,v,M,Y,ae,k,g,!1),ml(i);return;case"select":Dt("invalid",i),h=k=v=null;for(g in u)if(u.hasOwnProperty(g)&&(M=u[g],M!=null))switch(g){case"value":v=M;break;case"defaultValue":k=M;break;case"multiple":h=M;default:nn(i,l,g,M,u,null)}l=v,u=k,i.multiple=!!h,l!=null?ki(i,!!h,l,!1):u!=null&&ki(i,!!h,u,!0);return;case"textarea":Dt("invalid",i),v=g=h=null;for(k in u)if(u.hasOwnProperty(k)&&(M=u[k],M!=null))switch(k){case"value":h=M;break;case"defaultValue":g=M;break;case"children":v=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:nn(i,l,k,M,u,null)}Q0(i,h,g,v),ml(i);return;case"option":for(Y in u)if(u.hasOwnProperty(Y)&&(h=u[Y],h!=null))switch(Y){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:nn(i,l,Y,h,u,null)}return;case"dialog":Dt("beforetoggle",i),Dt("toggle",i),Dt("cancel",i),Dt("close",i);break;case"iframe":case"object":Dt("load",i);break;case"video":case"audio":for(h=0;h<dc.length;h++)Dt(dc[h],i);break;case"image":Dt("error",i),Dt("load",i);break;case"details":Dt("toggle",i);break;case"embed":case"source":case"link":Dt("error",i),Dt("load",i);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)&&(h=u[ae],h!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:nn(i,l,ae,h,u,null)}return;default:if(Kt(l)){for(_e in u)u.hasOwnProperty(_e)&&(h=u[_e],h!==void 0&&Vp(i,l,_e,h,u,void 0));return}}for(M in u)u.hasOwnProperty(M)&&(h=u[M],h!=null&&nn(i,l,M,h,u,null))}function Vw(i,l,u,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,k=null,M=null,Y=null,ae=null,_e=null;for(he in u){var xe=u[he];if(u.hasOwnProperty(he)&&xe!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":Y=xe;default:h.hasOwnProperty(he)||nn(i,l,he,null,h,xe)}}for(var le in h){var he=h[le];if(xe=u[le],h.hasOwnProperty(le)&&(he!=null||xe!=null))switch(le){case"type":v=he;break;case"name":g=he;break;case"checked":ae=he;break;case"defaultChecked":_e=he;break;case"value":k=he;break;case"defaultValue":M=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,l));break;default:he!==xe&&nn(i,l,le,he,h,xe)}}Nu(i,k,M,Y,ae,_e,v,g);return;case"select":he=k=M=le=null;for(v in u)if(Y=u[v],u.hasOwnProperty(v)&&Y!=null)switch(v){case"value":break;case"multiple":he=Y;default:h.hasOwnProperty(v)||nn(i,l,v,null,h,Y)}for(g in h)if(v=h[g],Y=u[g],h.hasOwnProperty(g)&&(v!=null||Y!=null))switch(g){case"value":le=v;break;case"defaultValue":M=v;break;case"multiple":k=v;default:v!==Y&&nn(i,l,g,v,h,Y)}l=M,u=k,h=he,le!=null?ki(i,!!u,le,!1):!!h!=!!u&&(l!=null?ki(i,!!u,l,!0):ki(i,!!u,u?[]:"",!1));return;case"textarea":he=le=null;for(M in u)if(g=u[M],u.hasOwnProperty(M)&&g!=null&&!h.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:nn(i,l,M,null,h,g)}for(k in h)if(g=h[k],v=u[k],h.hasOwnProperty(k)&&(g!=null||v!=null))switch(k){case"value":le=g;break;case"defaultValue":he=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==v&&nn(i,l,k,g,h,v)}sa(i,le,he);return;case"option":for(var mt in u)if(le=u[mt],u.hasOwnProperty(mt)&&le!=null&&!h.hasOwnProperty(mt))switch(mt){case"selected":i.selected=!1;break;default:nn(i,l,mt,null,h,le)}for(Y in h)if(le=h[Y],he=u[Y],h.hasOwnProperty(Y)&&le!==he&&(le!=null||he!=null))switch(Y){case"selected":i.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:nn(i,l,Y,le,h,he)}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 ct in u)le=u[ct],u.hasOwnProperty(ct)&&le!=null&&!h.hasOwnProperty(ct)&&nn(i,l,ct,null,h,le);for(ae in h)if(le=h[ae],he=u[ae],h.hasOwnProperty(ae)&&le!==he&&(le!=null||he!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,l));break;default:nn(i,l,ae,le,h,he)}return;default:if(Kt(l)){for(var rn in u)le=u[rn],u.hasOwnProperty(rn)&&le!==void 0&&!h.hasOwnProperty(rn)&&Vp(i,l,rn,void 0,h,le);for(_e in h)le=h[_e],he=u[_e],!h.hasOwnProperty(_e)||le===he||le===void 0&&he===void 0||Vp(i,l,_e,le,h,he);return}}for(var J in u)le=u[J],u.hasOwnProperty(J)&&le!=null&&!h.hasOwnProperty(J)&&nn(i,l,J,null,h,le);for(xe in h)le=h[xe],he=u[xe],!h.hasOwnProperty(xe)||le===he||le==null&&he==null||nn(i,l,xe,le,h,he)}var Kp=null,Wp=null;function $d(i){return i.nodeType===9?i:i.ownerDocument}function hy(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fy(i,l){if(i===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&l==="foreignObject"?0:i}function Xp(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Qp=null;function Kw(){var i=window.event;return i&&i.type==="popstate"?i===Qp?!1:(Qp=i,!0):(Qp=null,!1)}var my=typeof setTimeout=="function"?setTimeout:void 0,Ww=typeof clearTimeout=="function"?clearTimeout:void 0,py=typeof Promise=="function"?Promise:void 0,Xw=typeof queueMicrotask=="function"?queueMicrotask:typeof py<"u"?function(i){return py.resolve(null).then(i).catch(Qw)}:my;function Qw(i){setTimeout(function(){throw i})}function Ds(i){return i==="head"}function gy(i,l){var u=l,h=0,g=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"){if(0<h&&8>h){u=h;var k=i.ownerDocument;if(u&1&&fc(k.documentElement),u&2&&fc(k.body),u&4)for(u=k.head,fc(u),k=u.firstChild;k;){var M=k.nextSibling,Y=k.nodeName;k[dl]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&k.rel.toLowerCase()==="stylesheet"||u.removeChild(k),k=M}}if(g===0){i.removeChild(v),Ec(l);return}g--}else u==="$"||u==="$?"||u==="$!"?g++:h=u.charCodeAt(0)-48;else h=0;u=v}while(u);Ec(l)}function Zp(i){var l=i.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var u=l;switch(l=l.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Zp(u),hl(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function Zw(i,l,u,h){for(;i.nodeType===1;){var g=u;if(i.nodeName.toLowerCase()!==l.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[dl])switch(l){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(v=i.getAttribute("rel"),v==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(v!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(v=i.getAttribute("src"),(v!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(l==="input"&&i.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===v)return i}else return i;if(i=Ga(i.nextSibling),i===null)break}return null}function Jw(i,l,u){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Ga(i.nextSibling),i===null))return null;return i}function Jp(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function eA(i,l){var u=i.ownerDocument;if(i.data!=="$?"||u.readyState==="complete")l();else{var h=function(){l(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function Ga(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return i}var e1=null;function by(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(l===0)return i;l--}else u==="/$"&&l++}i=i.previousSibling}return null}function vy(i,l,u){switch(l=$d(u),i){case"html":if(i=l.documentElement,!i)throw Error(r(452));return i;case"head":if(i=l.head,!i)throw Error(r(453));return i;case"body":if(i=l.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function fc(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);hl(i)}var Oa=new Map,yy=new Set;function Yd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Hi=ue.d;ue.d={f:tA,r:nA,D:rA,C:aA,L:iA,m:sA,X:oA,S:lA,M:uA};function tA(){var i=Hi.f(),l=Pd();return i||l}function nA(i){var l=ps(i);l!==null&&l.tag===5&&l.type==="form"?F4(l):Hi.r(i)}var Mo=typeof document>"u"?null:document;function _y(i,l,u){var h=Mo;if(h&&typeof l=="string"&&l){var g=Gr(l);g='link[rel="'+i+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),yy.has(g)||(yy.add(g),i={rel:i,crossOrigin:u,href:l},h.querySelector(g)===null&&(l=h.createElement("link"),yr(l,"link",i),On(l),h.head.appendChild(l)))}}function rA(i){Hi.D(i),_y("dns-prefetch",i,null)}function aA(i,l){Hi.C(i,l),_y("preconnect",i,l)}function iA(i,l,u){Hi.L(i,l,u);var h=Mo;if(h&&i&&l){var g='link[rel="preload"][as="'+Gr(l)+'"]';l==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+Gr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+Gr(u.imageSizes)+'"]')):g+='[href="'+Gr(i)+'"]';var v=g;switch(l){case"style":v=Io(i);break;case"script":v=Do(i)}Oa.has(v)||(i=m({rel:"preload",href:l==="image"&&u&&u.imageSrcSet?void 0:i,as:l},u),Oa.set(v,i),h.querySelector(g)!==null||l==="style"&&h.querySelector(mc(v))||l==="script"&&h.querySelector(pc(v))||(l=h.createElement("link"),yr(l,"link",i),On(l),h.head.appendChild(l)))}}function sA(i,l){Hi.m(i,l);var u=Mo;if(u&&i){var h=l&&typeof l.as=="string"?l.as:"script",g='link[rel="modulepreload"][as="'+Gr(h)+'"][href="'+Gr(i)+'"]',v=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Do(i)}if(!Oa.has(v)&&(i=m({rel:"modulepreload",href:i},l),Oa.set(v,i),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(pc(v)))return}h=u.createElement("link"),yr(h,"link",i),On(h),u.head.appendChild(h)}}}function lA(i,l,u){Hi.S(i,l,u);var h=Mo;if(h&&i){var g=Si(h).hoistableStyles,v=Io(i);l=l||"default";var k=g.get(v);if(!k){var M={loading:0,preload:null};if(k=h.querySelector(mc(v)))M.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":l},u),(u=Oa.get(v))&&t1(i,u);var Y=k=h.createElement("link");On(Y),yr(Y,"link",i),Y._p=new Promise(function(ae,_e){Y.onload=ae,Y.onerror=_e}),Y.addEventListener("load",function(){M.loading|=1}),Y.addEventListener("error",function(){M.loading|=2}),M.loading|=4,Gd(k,l,h)}k={type:"stylesheet",instance:k,count:1,state:M},g.set(v,k)}}}function oA(i,l){Hi.X(i,l);var u=Mo;if(u&&i){var h=Si(u).hoistableScripts,g=Do(i),v=h.get(g);v||(v=u.querySelector(pc(g)),v||(i=m({src:i,async:!0},l),(l=Oa.get(g))&&n1(i,l),v=u.createElement("script"),On(v),yr(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function uA(i,l){Hi.M(i,l);var u=Mo;if(u&&i){var h=Si(u).hoistableScripts,g=Do(i),v=h.get(g);v||(v=u.querySelector(pc(g)),v||(i=m({src:i,async:!0,type:"module"},l),(l=Oa.get(g))&&n1(i,l),v=u.createElement("script"),On(v),yr(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function Ey(i,l,u,h){var g=(g=Le.current)?Yd(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(l=Io(u.href),u=Si(g).hoistableStyles,h=u.get(l),h||(h={type:"style",instance:null,count:0,state:null},u.set(l,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=Io(u.href);var v=Si(g).hoistableStyles,k=v.get(i);if(k||(g=g.ownerDocument||g,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(i,k),(v=g.querySelector(mc(i)))&&!v._p&&(k.instance=v,k.state.loading=5),Oa.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Oa.set(i,u),v||cA(g,i,u,k.state))),l&&h===null)throw Error(r(528,""));return k}if(l&&h!==null)throw Error(r(529,""));return null;case"script":return l=u.async,u=u.src,typeof u=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Do(u),u=Si(g).hoistableScripts,h=u.get(l),h||(h={type:"script",instance:null,count:0,state:null},u.set(l,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Io(i){return'href="'+Gr(i)+'"'}function mc(i){return'link[rel="stylesheet"]['+i+"]"}function Ty(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function cA(i,l,u,h){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?h.loading=1:(l=i.createElement("link"),h.preload=l,l.addEventListener("load",function(){return h.loading|=1}),l.addEventListener("error",function(){return h.loading|=2}),yr(l,"link",u),On(l),i.head.appendChild(l))}function Do(i){return'[src="'+Gr(i)+'"]'}function pc(i){return"script[async]"+i}function xy(i,l,u){if(l.count++,l.instance===null)switch(l.type){case"style":var h=i.querySelector('style[data-href~="'+Gr(u.href)+'"]');if(h)return l.instance=h,On(h),h;var g=m({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),On(h),yr(h,"style",g),Gd(h,u.precedence,i),l.instance=h;case"stylesheet":g=Io(u.href);var v=i.querySelector(mc(g));if(v)return l.state.loading|=4,l.instance=v,On(v),v;h=Ty(u),(g=Oa.get(g))&&t1(h,g),v=(i.ownerDocument||i).createElement("link"),On(v);var k=v;return k._p=new Promise(function(M,Y){k.onload=M,k.onerror=Y}),yr(v,"link",h),l.state.loading|=4,Gd(v,u.precedence,i),l.instance=v;case"script":return v=Do(u.src),(g=i.querySelector(pc(v)))?(l.instance=g,On(g),g):(h=u,(g=Oa.get(v))&&(h=m({},u),n1(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),On(g),yr(g,"link",h),i.head.appendChild(g),l.instance=g);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(h=l.instance,l.state.loading|=4,Gd(h,u.precedence,i));return l.instance}function Gd(i,l,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,v=g,k=0;k<h.length;k++){var M=h[k];if(M.dataset.precedence===l)v=M;else if(v!==g)break}v?v.parentNode.insertBefore(i,v.nextSibling):(l=u.nodeType===9?u.head:u,l.insertBefore(i,l.firstChild))}function t1(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function n1(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var Vd=null;function Sy(i,l,u){if(Vd===null){var h=new Map,g=Vd=new Map;g.set(u,h)}else g=Vd,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),g=0;g<u.length;g++){var v=u[g];if(!(v[dl]||v[Be]||i==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var k=v.getAttribute(l)||"";k=i+k;var M=h.get(k);M?M.push(v):h.set(k,[v])}}return h}function wy(i,l,u){i=i.ownerDocument||i,i.head.insertBefore(u,l==="title"?i.querySelector("head > title"):null)}function dA(i,l,u){if(u===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function Ay(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var gc=null;function hA(){}function fA(i,l,u){if(gc===null)throw Error(r(475));var h=gc;if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var g=Io(u.href),v=i.querySelector(mc(g));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=Kd.bind(h),i.then(h,h)),l.state.loading|=4,l.instance=v,On(v);return}v=i.ownerDocument||i,u=Ty(u),(g=Oa.get(g))&&t1(u,g),v=v.createElement("link"),On(v);var k=v;k._p=new Promise(function(M,Y){k.onload=M,k.onerror=Y}),yr(v,"link",u),l.instance=v}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(h.count++,l=Kd.bind(h),i.addEventListener("load",l),i.addEventListener("error",l))}}function mA(){if(gc===null)throw Error(r(475));var i=gc;return i.stylesheets&&i.count===0&&r1(i,i.stylesheets),0<i.count?function(l){var u=setTimeout(function(){if(i.stylesheets&&r1(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=l,function(){i.unsuspend=null,clearTimeout(u)}}:null}function Kd(){if(this.count--,this.count===0){if(this.stylesheets)r1(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Wd=null;function r1(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Wd=new Map,l.forEach(pA,i),Wd=null,Kd.call(i))}function pA(i,l){if(!(l.state.loading&4)){var u=Wd.get(i);if(u)var h=u.get(null);else{u=new Map,Wd.set(i,u);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var k=g[v];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(u.set(k.dataset.precedence,k),h=k)}h&&u.set(null,h)}g=l.instance,k=g.getAttribute("data-precedence"),v=u.get(k)||h,v===h&&u.set(null,g),u.set(k,g),this.count++,h=Kd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),v?v.parentNode.insertBefore(g,v.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),l.state.loading|=4}}var bc={$$typeof:D,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function gA(i,l,u,h,g,v,k,M){this.tag=1,this.containerInfo=i,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=wu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wu(0),this.hiddenUpdates=wu(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function ky(i,l,u,h,g,v,k,M,Y,ae,_e,xe){return i=new gA(i,l,u,k,M,Y,ae,xe),l=1,v===!0&&(l|=24),v=oa(3,null,null,l),i.current=v,v.stateNode=i,l=Um(),l.refCount++,i.pooledCache=l,l.refCount++,v.memoizedState={element:h,isDehydrated:u,cache:l},qm(v),i}function Cy(i){return i?(i=co,i):co}function Ny(i,l,u,h,g,v){g=Cy(g),h.context===null?h.context=g:h.pendingContext=g,h=Es(l),h.payload={element:u},v=v===void 0?null:v,v!==null&&(h.callback=v),u=Ts(i,h,l),u!==null&&(fa(u,i,l),Vu(u,i,l))}function Oy(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<l?u:l}}function a1(i,l){Oy(i,l),(i=i.alternate)&&Oy(i,l)}function Ry(i){if(i.tag===13){var l=uo(i,67108864);l!==null&&fa(l,i,67108864),a1(i,67108864)}}var Xd=!0;function bA(i,l,u,h){var g=V.T;V.T=null;var v=ue.p;try{ue.p=2,i1(i,l,u,h)}finally{ue.p=v,V.T=g}}function vA(i,l,u,h){var g=V.T;V.T=null;var v=ue.p;try{ue.p=8,i1(i,l,u,h)}finally{ue.p=v,V.T=g}}function i1(i,l,u,h){if(Xd){var g=s1(h);if(g===null)Gp(i,l,h,Qd,u),Iy(i,h);else if(_A(g,i,l,u,h))h.stopPropagation();else if(Iy(i,h),l&4&&-1<yA.indexOf(i)){for(;g!==null;){var v=ps(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var k=Rr(v.pendingLanes);if(k!==0){var M=v;for(M.pendingLanes|=2,M.entangledLanes|=2;k;){var Y=1<<31-tt(k);M.entanglements[1]|=Y,k&=~Y}ii(v),(Qt&6)===0&&(Dd=Et()+500,cc(0))}}break;case 13:M=uo(v,2),M!==null&&fa(M,v,2),Pd(),a1(v,2)}if(v=s1(h),v===null&&Gp(i,l,h,Qd,u),v===g)break;g=v}g!==null&&h.stopPropagation()}else Gp(i,l,h,null,u)}}function s1(i){return i=Fe(i),l1(i)}var Qd=null;function l1(i){if(Qd=null,i=ms(i),i!==null){var l=s(i);if(l===null)i=null;else{var u=l.tag;if(u===13){if(i=o(l),i!==null)return i;i=null}else if(u===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return Qd=i,null}function My(i){switch(i){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(gn()){case Bt:return 2;case un:return 8;case Ke:case cn:return 32;case Tn:return 268435456;default:return 32}default:return 32}}var o1=!1,Ls=null,Ps=null,Bs=null,vc=new Map,yc=new Map,Us=[],yA="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 Iy(i,l){switch(i){case"focusin":case"focusout":Ls=null;break;case"dragenter":case"dragleave":Ps=null;break;case"mouseover":case"mouseout":Bs=null;break;case"pointerover":case"pointerout":vc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":yc.delete(l.pointerId)}}function _c(i,l,u,h,g,v){return i===null||i.nativeEvent!==v?(i={blockedOn:l,domEventName:u,eventSystemFlags:h,nativeEvent:v,targetContainers:[g]},l!==null&&(l=ps(l),l!==null&&Ry(l)),i):(i.eventSystemFlags|=h,l=i.targetContainers,g!==null&&l.indexOf(g)===-1&&l.push(g),i)}function _A(i,l,u,h,g){switch(l){case"focusin":return Ls=_c(Ls,i,l,u,h,g),!0;case"dragenter":return Ps=_c(Ps,i,l,u,h,g),!0;case"mouseover":return Bs=_c(Bs,i,l,u,h,g),!0;case"pointerover":var v=g.pointerId;return vc.set(v,_c(vc.get(v)||null,i,l,u,h,g)),!0;case"gotpointercapture":return v=g.pointerId,yc.set(v,_c(yc.get(v)||null,i,l,u,h,g)),!0}return!1}function Dy(i){var l=ms(i.target);if(l!==null){var u=s(l);if(u!==null){if(l=u.tag,l===13){if(l=o(u),l!==null){i.blockedOn=l,Nn(i.priority,function(){if(u.tag===13){var h=ha();h=Ue(h);var g=uo(u,h);g!==null&&fa(g,u,h),a1(u,h)}});return}}else if(l===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Zd(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var u=s1(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);gl=h,u.target.dispatchEvent(h),gl=null}else return l=ps(u),l!==null&&Ry(l),i.blockedOn=u,!1;l.shift()}return!0}function Ly(i,l,u){Zd(i)&&u.delete(l)}function EA(){o1=!1,Ls!==null&&Zd(Ls)&&(Ls=null),Ps!==null&&Zd(Ps)&&(Ps=null),Bs!==null&&Zd(Bs)&&(Bs=null),vc.forEach(Ly),yc.forEach(Ly)}function Jd(i,l){i.blockedOn===l&&(i.blockedOn=null,o1||(o1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,EA)))}var eh=null;function Py(i){eh!==i&&(eh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){eh===i&&(eh=null);for(var l=0;l<i.length;l+=3){var u=i[l],h=i[l+1],g=i[l+2];if(typeof h!="function"){if(l1(h||u)===null)continue;break}var v=ps(u);v!==null&&(i.splice(l,3),l-=3,lp(v,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function Ec(i){function l(Y){return Jd(Y,i)}Ls!==null&&Jd(Ls,i),Ps!==null&&Jd(Ps,i),Bs!==null&&Jd(Bs,i),vc.forEach(l),yc.forEach(l);for(var u=0;u<Us.length;u++){var h=Us[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Us.length&&(u=Us[0],u.blockedOn===null);)Dy(u),u.blockedOn===null&&Us.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],v=u[h+1],k=g[nt]||null;if(typeof v=="function")k||Py(u);else if(k){var M=null;if(v&&v.hasAttribute("formAction")){if(g=v,k=v[nt]||null)M=k.formAction;else if(l1(g)!==null)continue}else M=k.action;typeof M=="function"?u[h+1]=M:(u.splice(h,3),h-=3),Py(u)}}}function u1(i){this._internalRoot=i}th.prototype.render=u1.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(r(409));var u=l.current,h=ha();Ny(u,h,i,l,null,null)},th.prototype.unmount=u1.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;Ny(i.current,2,null,i,null,null),Pd(),l[vn]=null}};function th(i){this._internalRoot=i}th.prototype.unstable_scheduleHydration=function(i){if(i){var l=xn();i={blockedOn:null,target:i,priority:l};for(var u=0;u<Us.length&&l!==0&&l<Us[u].priority;u++);Us.splice(u,0,i),u===0&&Dy(i)}};var By=t.version;if(By!=="19.1.0")throw Error(r(527,By,"19.1.0"));ue.findDOMNode=function(i){var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(l),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var TA={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nh.isDisabled&&nh.supportsFiber)try{fe=nh.inject(TA),Se=nh}catch{}}return xc.createRoot=function(i,l){if(!a(i))throw Error(r(299));var u=!1,h="",g=J4,v=e3,k=t3,M=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(M=l.unstable_transitionCallbacks)),l=ky(i,1,!1,null,null,u,h,g,v,k,M,null),i[vn]=l.current,Yp(i),new u1(l)},xc.hydrateRoot=function(i,l,u){if(!a(i))throw Error(r(299));var h=!1,g="",v=J4,k=e3,M=t3,Y=null,ae=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(v=u.onUncaughtError),u.onCaughtError!==void 0&&(k=u.onCaughtError),u.onRecoverableError!==void 0&&(M=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(Y=u.unstable_transitionCallbacks),u.formState!==void 0&&(ae=u.formState)),l=ky(i,1,!0,l,u??null,h,g,v,k,M,Y,ae),l.context=Cy(null),u=l.current,h=ha(),h=Ue(h),g=Es(h),g.callback=null,Ts(u,g,h),u=h,l.current.lanes=u,hs(l,u),ii(l),i[vn]=l.current,Yp(i),new th(l)},xc.version="19.1.0",xc}var Vy;function IA(){if(Vy)return h1.exports;Vy=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(),h1.exports=MA(),h1.exports}var DA=IA();const j5=H.createContext({theme:"system",resolvedTheme:"light",setTheme:()=>{},toggleTheme:()=>{}}),$5=()=>H.useContext(j5),Bg="cycls_theme_preference",Ky=()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Wy=()=>{if(typeof window>"u")return"system";try{return localStorage.getItem(Bg)||"system"}catch{return"system"}},Xy=(e,t)=>{const n=document.documentElement;n.classList.remove("light","dark"),n.removeAttribute("data-theme"),e==="system"?n.setAttribute("data-resolved-theme",t):(n.classList.add(e),n.setAttribute("data-theme",e),n.setAttribute("data-resolved-theme",e))},g1=({children:e})=>{const[t,n]=H.useState(()=>Wy()),[r,a]=H.useState(()=>{const d=Wy();return d==="system"?Ky():d});H.useEffect(()=>{const d=window.matchMedia("(prefers-color-scheme: dark)"),f=m=>{if(t==="system"){const p=m.matches?"dark":"light";a(p),Xy("system",p)}};return d.addEventListener("change",f),()=>d.removeEventListener("change",f)},[t]),H.useEffect(()=>{const d=t==="system"?Ky():t;Xy(t,d),requestAnimationFrame(()=>{a(d)})},[t]);const s=H.useCallback(d=>{n(d);try{d==="system"?localStorage.removeItem(Bg):localStorage.setItem(Bg,d)}catch{}},[]),o=H.useCallback(()=>{s(r==="dark"?"light":"dark")},[r,s]),c={theme:t,resolvedTheme:r,setTheme:s,toggleTheme:o};return R.jsx(j5.Provider,{value:c,children:e})},Y5=({className:e=""})=>{const{resolvedTheme:t,toggleTheme:n}=$5(),r=t==="dark";return R.jsx("button",{onClick:n,className:`
|
|
50
|
-
theme-toggle
|
|
51
|
-
inline-flex items-center justify-center
|
|
52
|
-
rounded-xl p-2
|
|
53
|
-
hover:bg-[var(--bg-hover)] active:bg-[var(--bg-active)]
|
|
54
|
-
focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20
|
|
55
|
-
transition-colors duration-200
|
|
56
|
-
${e}
|
|
57
|
-
`,"aria-label":r?"Switch to light mode":"Switch to dark mode",title:r?"Light mode":"Dark mode",children:r?R.jsxs("svg",{className:"theme-toggle-icon w-5 h-5 text-[var(--text-primary)]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("circle",{cx:"12",cy:"12",r:"4"}),R.jsx("path",{d:"M12 2v2"}),R.jsx("path",{d:"M12 20v2"}),R.jsx("path",{d:"M4.93 4.93l1.41 1.41"}),R.jsx("path",{d:"M17.66 17.66l1.41 1.41"}),R.jsx("path",{d:"M2 12h2"}),R.jsx("path",{d:"M20 12h2"}),R.jsx("path",{d:"M6.34 17.66l-1.41 1.41"}),R.jsx("path",{d:"M19.07 4.93l-1.41 1.41"})]}):R.jsx("svg",{className:"theme-toggle-icon w-5 h-5 text-[var(--text-primary)]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})})},Ug=H.createContext(!1),LA=()=>H.useContext(Ug);/**
|
|
58
|
-
* react-router v7.9.6
|
|
59
|
-
*
|
|
60
|
-
* Copyright (c) Remix Software Inc.
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the MIT license found in the
|
|
63
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
64
|
-
*
|
|
65
|
-
* @license MIT
|
|
66
|
-
*/var Qy="popstate";function PA(e={}){function t(r,a){let{pathname:s,search:o,hash:c}=r.location;return Fg("",{pathname:s,search:o,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:c0(a)}return UA(t,n,null,e)}function kn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ba(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BA(){return Math.random().toString(36).substring(2,10)}function Zy(e,t){return{usr:e.state,key:e.key,idx:t}}function Fg(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?uu(t):t,state:n,key:t&&t.key||r||BA()}}function c0({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 uu(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 UA(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,o=a.history,c="POP",d=null,f=m();f==null&&(f=0,o.replaceState({...o.state,idx:f},""));function m(){return(o.state||{idx:null}).idx}function p(){c="POP";let C=m(),w=C==null?null:C-f;f=C,d&&d({action:c,location:x.location,delta:w})}function b(C,w){c="PUSH";let O=Fg(x.location,C,w);f=m()+1;let D=Zy(O,f),j=x.createHref(O);try{o.pushState(D,"",j)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;a.location.assign(j)}s&&d&&d({action:c,location:x.location,delta:1})}function y(C,w){c="REPLACE";let O=Fg(x.location,C,w);f=m();let D=Zy(O,f),j=x.createHref(O);o.replaceState(D,"",j),s&&d&&d({action:c,location:x.location,delta:0})}function T(C){return FA(C)}let x={get action(){return c},get location(){return e(a,o)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Qy,p),d=C,()=>{a.removeEventListener(Qy,p),d=null}},createHref(C){return t(a,C)},createURL:T,encodeLocation(C){let w=T(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:b,replace:y,go(C){return o.go(C)}};return x}function FA(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),kn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:c0(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function G5(e,t,n="/"){return zA(e,t,n,!1)}function zA(e,t,n,r){let a=typeof t=="string"?uu(t):t,s=ns(a.pathname||"/",n);if(s==null)return null;let o=V5(e);HA(o);let c=null;for(let d=0;c==null&&d<o.length;++d){let f=ZA(s);c=XA(o[d],f,r)}return c}function V5(e,t=[],n=[],r="",a=!1){let s=(o,c,d=a,f)=>{let m={relativePath:f===void 0?o.path||"":f,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&d)return;kn(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let p=Ji([r,m.relativePath]),b=n.concat(m);o.children&&o.children.length>0&&(kn(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),V5(o.children,t,b,p,d)),!(o.path==null&&!o.index)&&t.push({path:p,score:KA(p,o.index),routesMeta:b})};return e.forEach((o,c)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))s(o,c);else for(let f of K5(o.path))s(o,c,!0,f)}),t}function K5(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let o=K5(r.join("/")),c=[];return c.push(...o.map(d=>d===""?s:[s,d].join("/"))),a&&c.push(...o),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function HA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:WA(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var qA=/^:[\w-]+$/,jA=3,$A=2,YA=1,GA=10,VA=-2,Jy=e=>e==="*";function KA(e,t){let n=e.split("/"),r=n.length;return n.some(Jy)&&(r+=VA),t&&(r+=$A),n.filter(a=>!Jy(a)).reduce((a,s)=>a+(qA.test(s)?jA:s===""?YA:GA),r)}function WA(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function XA(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",o=[];for(let c=0;c<r.length;++c){let d=r[c],f=c===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",p=Zh({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),b=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=Zh({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(a,p.params),o.push({params:a,pathname:Ji([s,p.pathname]),pathnameBase:rk(Ji([s,p.pathnameBase])),route:b}),p.pathnameBase!=="/"&&(s=Ji([s,p.pathnameBase]))}return o}function Zh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=QA(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],o=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},b)=>{if(m==="*"){let T=c[b]||"";o=s.slice(0,s.length-T.length).replace(/(.)\/+$/,"$1")}const y=c[b];return p&&!y?f[m]=void 0:f[m]=(y||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:o,pattern:e}}function QA(e,t=!1,n=!0){Ba(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function ZA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ba(!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 ns(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 JA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ek=e=>JA.test(e);function tk(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?uu(e):e,s;if(n)if(ek(n))s=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Ba(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?s=e_(n.substring(1),"/"):s=e_(n,t)}else s=t;return{pathname:s,search:ak(r),hash:ik(a)}}function e_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function b1(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 nk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jb(e){let t=nk(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function e2(e,t,n,r=!1){let a;typeof e=="string"?a=uu(e):(a={...e},kn(!a.pathname||!a.pathname.includes("?"),b1("?","pathname","search",a)),kn(!a.pathname||!a.pathname.includes("#"),b1("#","pathname","hash",a)),kn(!a.search||!a.search.includes("#"),b1("#","search","hash",a)));let s=e===""||a.pathname==="",o=s?"/":a.pathname,c;if(o==null)c=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let b=o.split("/");for(;b[0]==="..";)b.shift(),p-=1;a.pathname=b.join("/")}c=p>=0?t[p]:"/"}let d=tk(a,c),f=o&&o!=="/"&&o.endsWith("/"),m=(s||o===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Ji=e=>e.join("/").replace(/\/\/+/g,"/"),rk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ak=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ik=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sk(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 W5=["POST","PUT","PATCH","DELETE"];new Set(W5);var lk=["GET",...W5];new Set(lk);var cu=H.createContext(null);cu.displayName="DataRouter";var Lf=H.createContext(null);Lf.displayName="DataRouterState";H.createContext(!1);var X5=H.createContext({isTransitioning:!1});X5.displayName="ViewTransition";var ok=H.createContext(new Map);ok.displayName="Fetchers";var uk=H.createContext(null);uk.displayName="Await";var Za=H.createContext(null);Za.displayName="Navigation";var w0=H.createContext(null);w0.displayName="Location";var vi=H.createContext({outlet:null,matches:[],isDataRoute:!1});vi.displayName="Route";var t2=H.createContext(null);t2.displayName="RouteError";function ck(e,{relative:t}={}){kn(du(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=H.useContext(Za),{hash:a,pathname:s,search:o}=A0(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:Ji([n,s])),r.createHref({pathname:c,search:o,hash:a})}function du(){return H.useContext(w0)!=null}function ls(){return kn(du(),"useLocation() may be used only in the context of a <Router> component."),H.useContext(w0).location}var Q5="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Z5(e){H.useContext(Za).static||H.useLayoutEffect(e)}function J5(){let{isDataRoute:e}=H.useContext(vi);return e?xk():dk()}function dk(){kn(du(),"useNavigate() may be used only in the context of a <Router> component.");let e=H.useContext(cu),{basename:t,navigator:n}=H.useContext(Za),{matches:r}=H.useContext(vi),{pathname:a}=ls(),s=JSON.stringify(Jb(r)),o=H.useRef(!1);return Z5(()=>{o.current=!0}),H.useCallback((d,f={})=>{if(Ba(o.current,Q5),!o.current)return;if(typeof d=="number"){n.go(d);return}let m=e2(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ji([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,s,a,e])}H.createContext(null);function A0(e,{relative:t}={}){let{matches:n}=H.useContext(vi),{pathname:r}=ls(),a=JSON.stringify(Jb(n));return H.useMemo(()=>e2(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function hk(e,t){return e8(e,t)}function e8(e,t,n,r,a){var O;kn(du(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=H.useContext(Za),{matches:o}=H.useContext(vi),c=o[o.length-1],d=c?c.params:{},f=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let D=p&&p.path||"";t8(f,!p||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${D}">) 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.
|
|
67
|
-
|
|
68
|
-
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let b=ls(),y;if(t){let D=typeof t=="string"?uu(t):t;kn(m==="/"||((O=D.pathname)==null?void 0:O.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${D.pathname}" was given in the \`location\` prop.`),y=D}else y=b;let T=y.pathname||"/",x=T;if(m!=="/"){let D=m.replace(/^\//,"").split("/");x="/"+T.replace(/^\//,"").split("/").slice(D.length).join("/")}let C=G5(e,{pathname:x});Ba(p||C!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Ba(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=bk(C&&C.map(D=>Object.assign({},D,{params:Object.assign({},d,D.params),pathname:Ji([m,s.encodeLocation?s.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?m:Ji([m,s.encodeLocation?s.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),o,n,r,a);return t&&w?H.createElement(w0.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},w):w}function fk(){let e=Tk(),t=sk(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)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=H.createElement(H.Fragment,null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:s},"ErrorBoundary")," or"," ",H.createElement("code",{style:s},"errorElement")," prop on your route.")),H.createElement(H.Fragment,null,H.createElement("h2",null,"Unexpected Application Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},t),n?H.createElement("pre",{style:a},n):null,o)}var mk=H.createElement(fk,null),pk=class extends H.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?H.createElement(vi.Provider,{value:this.props.routeContext},H.createElement(t2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function gk({routeContext:e,match:t,children:n}){let r=H.useContext(cu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),H.createElement(vi.Provider,{value:e},n)}function bk(e,t=[],n=null,r=null,a=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 s=e,o=n==null?void 0:n.errors;if(o!=null){let m=s.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);kn(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,m+1))}let c=!1,d=-1;if(n)for(let m=0;m<s.length;m++){let p=s[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=m),p.route.id){let{loaderData:b,errors:y}=n,T=p.route.loader&&!b.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||T){c=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}let f=n&&r?(m,p)=>{var b,y;r(m,{location:n.location,params:((y=(b=n.matches)==null?void 0:b[0])==null?void 0:y.params)??{},errorInfo:p})}:void 0;return s.reduceRight((m,p,b)=>{let y,T=!1,x=null,C=null;n&&(y=o&&p.route.id?o[p.route.id]:void 0,x=p.route.errorElement||mk,c&&(d<0&&b===0?(t8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,C=null):d===b&&(T=!0,C=p.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,b+1)),O=()=>{let D;return y?D=x:T?D=C:p.route.Component?D=H.createElement(p.route.Component,null):p.route.element?D=p.route.element:D=m,H.createElement(gk,{match:p,routeContext:{outlet:m,matches:w,isDataRoute:n!=null},children:D})};return n&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?H.createElement(pk,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:O(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:f}):O()},null)}function n2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vk(e){let t=H.useContext(cu);return kn(t,n2(e)),t}function yk(e){let t=H.useContext(Lf);return kn(t,n2(e)),t}function _k(e){let t=H.useContext(vi);return kn(t,n2(e)),t}function r2(e){let t=_k(e),n=t.matches[t.matches.length-1];return kn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ek(){return r2("useRouteId")}function Tk(){var r;let e=H.useContext(t2),t=yk("useRouteError"),n=r2("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function xk(){let{router:e}=vk("useNavigate"),t=r2("useNavigate"),n=H.useRef(!1);return Z5(()=>{n.current=!0}),H.useCallback(async(a,s={})=>{Ba(n.current,Q5),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var t_={};function t8(e,t,n){!t&&!t_[e]&&(t_[e]=!0,Ba(!1,n))}H.memo(Sk);function Sk({routes:e,future:t,state:n,unstable_onError:r}){return e8(e,void 0,n,r,t)}function n8({to:e,replace:t,state:n,relative:r}){kn(du(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=H.useContext(Za);Ba(!a,"<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:s}=H.useContext(vi),{pathname:o}=ls(),c=J5(),d=e2(e,Jb(s),o,r==="path"),f=JSON.stringify(d);return H.useEffect(()=>{c(JSON.parse(f),{replace:t,state:n,relative:r})},[c,f,r,t,n]),null}function Ph(e){kn(!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 wk({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){kn(!du(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),c=H.useMemo(()=>({basename:o,navigator:a,static:s,future:{}}),[o,a,s]);typeof n=="string"&&(n=uu(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:b="default"}=n,y=H.useMemo(()=>{let T=ns(d,o);return T==null?null:{location:{pathname:T,search:f,hash:m,state:p,key:b},navigationType:r}},[o,d,f,m,p,b,r]);return Ba(y!=null,`<Router basename="${o}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:H.createElement(Za.Provider,{value:c},H.createElement(w0.Provider,{children:t,value:y}))}function Ak({children:e,location:t}){return hk(zg(e),t)}function zg(e,t=[]){let n=[];return H.Children.forEach(e,(r,a)=>{if(!H.isValidElement(r))return;let s=[...t,a];if(r.type===H.Fragment){n.push.apply(n,zg(r.props.children,s));return}kn(r.type===Ph,`[${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>`),kn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||s.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=zg(r.props.children,s)),n.push(o)}),n}var Bh="get",Uh="application/x-www-form-urlencoded";function Pf(e){return e!=null&&typeof e.tagName=="string"}function kk(e){return Pf(e)&&e.tagName.toLowerCase()==="button"}function Ck(e){return Pf(e)&&e.tagName.toLowerCase()==="form"}function Nk(e){return Pf(e)&&e.tagName.toLowerCase()==="input"}function Ok(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Rk(e,t){return e.button===0&&(!t||t==="_self")&&!Ok(e)}var rh=null;function Mk(){if(rh===null)try{new FormData(document.createElement("form"),0),rh=!1}catch{rh=!0}return rh}var Ik=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function v1(e){return e!=null&&!Ik.has(e)?(Ba(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Uh}"`),null):e}function Dk(e,t){let n,r,a,s,o;if(Ck(e)){let c=e.getAttribute("action");r=c?ns(c,t):null,n=e.getAttribute("method")||Bh,a=v1(e.getAttribute("enctype"))||Uh,s=new FormData(e)}else if(kk(e)||Nk(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?ns(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Bh,a=v1(e.getAttribute("formenctype"))||v1(c.getAttribute("enctype"))||Uh,s=new FormData(c,e),!Mk()){let{name:f,type:m,value:p}=e;if(m==="image"){let b=f?`${f}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else f&&s.append(f,p)}}else{if(Pf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Bh,r=null,a=Uh,o=e}return s&&a==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function a2(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lk(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&&ns(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Pk(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 Bk(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 Uk(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let o=await Pk(s,n);return o.links?o.links():[]}return[]}));return qk(r.flat(1).filter(Bk).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function n_(e,t,n,r,a,s){let o=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,c=(d,f)=>{var m;return n[f].pathname!==d.pathname||((m=n[f].route.path)==null?void 0:m.endsWith("*"))&&n[f].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,f)=>o(d,f)||c(d,f)):s==="data"?t.filter((d,f)=>{var p;let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(o(d,f)||c(d,f))return!0;if(d.route.shouldRevalidate){let b=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Fk(e,t,{includeHydrateFallback:n}={}){return zk(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function zk(e){return[...new Set(e)]}function Hk(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function qk(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(Hk(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function r8(){let e=H.useContext(cu);return a2(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function jk(){let e=H.useContext(Lf);return a2(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var i2=H.createContext(void 0);i2.displayName="FrameworkContext";function a8(){let e=H.useContext(i2);return a2(e,"You must render this element inside a <HydratedRouter> element"),e}function $k(e,t){let n=H.useContext(i2),[r,a]=H.useState(!1),[s,o]=H.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,b=H.useRef(null);H.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let x=w=>{w.forEach(O=>{o(O.isIntersecting)})},C=new IntersectionObserver(x,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[e]),H.useEffect(()=>{if(r){let x=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(x)}}},[r]);let y=()=>{a(!0)},T=()=>{a(!1),o(!1)};return n?e!=="intent"?[s,b,{}]:[s,b,{onFocus:Sc(c,y),onBlur:Sc(d,T),onMouseEnter:Sc(f,y),onMouseLeave:Sc(m,T),onTouchStart:Sc(p,y)}]:[!1,b,{}]}function Sc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Yk({page:e,...t}){let{router:n}=r8(),r=H.useMemo(()=>G5(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?H.createElement(Vk,{page:e,matches:r,...t}):null}function Gk(e){let{manifest:t,routeModules:n}=a8(),[r,a]=H.useState([]);return H.useEffect(()=>{let s=!1;return Uk(e,t,n).then(o=>{s||a(o)}),()=>{s=!0}},[e,t,n]),r}function Vk({page:e,matches:t,...n}){let r=ls(),{manifest:a,routeModules:s}=a8(),{basename:o}=r8(),{loaderData:c,matches:d}=jk(),f=H.useMemo(()=>n_(e,t,d,a,r,"data"),[e,t,d,a,r]),m=H.useMemo(()=>n_(e,t,d,a,r,"assets"),[e,t,d,a,r]),p=H.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,x=!1;if(t.forEach(w=>{var D;let O=a.routes[w.route.id];!O||!O.hasLoader||(!f.some(j=>j.route.id===w.route.id)&&w.route.id in c&&((D=s[w.route.id])!=null&&D.shouldRevalidate)||O.hasClientLoader?x=!0:T.add(w.route.id))}),T.size===0)return[];let C=Lk(e,o,"data");return x&&T.size>0&&C.searchParams.set("_routes",t.filter(w=>T.has(w.route.id)).map(w=>w.route.id).join(",")),[C.pathname+C.search]},[o,c,r,a,f,t,e,s]),b=H.useMemo(()=>Fk(m,a),[m,a]),y=Gk(m);return H.createElement(H.Fragment,null,p.map(T=>H.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...n})),b.map(T=>H.createElement("link",{key:T,rel:"modulepreload",href:T,...n})),y.map(({key:T,link:x})=>H.createElement("link",{key:T,nonce:n.nonce,...x})))}function Kk(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var i8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{i8&&(window.__reactRouterVersion="7.9.6")}catch{}function Wk({basename:e,children:t,window:n}){let r=H.useRef();r.current==null&&(r.current=PA({window:n,v5Compat:!0}));let a=r.current,[s,o]=H.useState({action:a.action,location:a.location}),c=H.useCallback(d=>{H.startTransition(()=>o(d))},[o]);return H.useLayoutEffect(()=>a.listen(c),[a,c]),H.createElement(wk,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var s8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,l8=H.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:o,state:c,target:d,to:f,preventScrollReset:m,viewTransition:p,...b},y){let{basename:T}=H.useContext(Za),x=typeof f=="string"&&s8.test(f),C,w=!1;if(typeof f=="string"&&x&&(C=f,i8))try{let Q=new URL(window.location.href),G=f.startsWith("//")?new URL(Q.protocol+f):new URL(f),se=ns(G.pathname,T);G.origin===Q.origin&&se!=null?f=se+G.search+G.hash:w=!0}catch{Ba(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let O=ck(f,{relative:a}),[D,j,z]=$k(r,b),U=Jk(f,{replace:o,state:c,target:d,preventScrollReset:m,relative:a,viewTransition:p});function ee(Q){t&&t(Q),Q.defaultPrevented||U(Q)}let Z=H.createElement("a",{...b,...z,href:C||O,onClick:w||s?t:ee,ref:Kk(y,j),target:d,"data-discover":!x&&n==="render"?"true":void 0});return D&&!x?H.createElement(H.Fragment,null,Z,H.createElement(Yk,{page:O})):Z});l8.displayName="Link";var Xk=H.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:o,viewTransition:c,children:d,...f},m){let p=A0(o,{relative:f.relative}),b=ls(),y=H.useContext(Lf),{navigator:T,basename:x}=H.useContext(Za),C=y!=null&&aC(p)&&c===!0,w=T.encodeLocation?T.encodeLocation(p).pathname:p.pathname,O=b.pathname,D=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(O=O.toLowerCase(),D=D?D.toLowerCase():null,w=w.toLowerCase()),D&&x&&(D=ns(D,x)||D);const j=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let z=O===w||!a&&O.startsWith(w)&&O.charAt(j)==="/",U=D!=null&&(D===w||!a&&D.startsWith(w)&&D.charAt(w.length)==="/"),ee={isActive:z,isPending:U,isTransitioning:C},Z=z?t:void 0,Q;typeof r=="function"?Q=r(ee):Q=[r,z?"active":null,U?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let G=typeof s=="function"?s(ee):s;return H.createElement(l8,{...f,"aria-current":Z,className:Q,ref:m,style:G,to:o,viewTransition:c},typeof d=="function"?d(ee):d)});Xk.displayName="NavLink";var Qk=H.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:o=Bh,action:c,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...b},y)=>{let T=nC(),x=rC(c,{relative:f}),C=o.toLowerCase()==="get"?"get":"post",w=typeof c=="string"&&s8.test(c),O=D=>{if(d&&d(D),D.defaultPrevented)return;D.preventDefault();let j=D.nativeEvent.submitter,z=(j==null?void 0:j.getAttribute("formmethod"))||o;T(j||D.currentTarget,{fetcherKey:t,method:z,navigate:n,replace:a,state:s,relative:f,preventScrollReset:m,viewTransition:p})};return H.createElement("form",{ref:y,method:C,action:x,onSubmit:r?d:O,...b,"data-discover":!w&&e==="render"?"true":void 0})});Qk.displayName="Form";function Zk(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function o8(e){let t=H.useContext(cu);return kn(t,Zk(e)),t}function Jk(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:o}={}){let c=J5(),d=ls(),f=A0(e,{relative:s});return H.useCallback(m=>{if(Rk(m,t)){m.preventDefault();let p=n!==void 0?n:c0(d)===c0(f);c(e,{replace:p,state:r,preventScrollReset:a,relative:s,viewTransition:o})}},[d,c,f,n,r,t,e,a,s,o])}var eC=0,tC=()=>`__${String(++eC)}__`;function nC(){let{router:e}=o8("useSubmit"),{basename:t}=H.useContext(Za),n=Ek();return H.useCallback(async(r,a={})=>{let{action:s,method:o,encType:c,formData:d,body:f}=Dk(r,t);if(a.navigate===!1){let m=a.fetcherKey||tC();await e.fetch(m,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||o,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||o,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function rC(e,{relative:t}={}){let{basename:n}=H.useContext(Za),r=H.useContext(vi);kn(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...A0(e||".",{relative:t})},o=ls();if(e==null){s.search=o.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(m=>m==="")){c.delete("index"),d.filter(p=>p).forEach(p=>c.append("index",p));let m=c.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Ji([n,s.pathname])),c0(s)}function aC(e,{relative:t}={}){let n=H.useContext(X5);kn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=o8("useViewTransitionState"),a=A0(e,{relative:t});if(!n.isTransitioning)return!1;let s=ns(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ns(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Zh(a.pathname,o)!=null||Zh(a.pathname,s)!=null}var ql,iC=(ql=class extends Error{constructor(n){super(new.target.formatMessage(new.target.kind,n.message,n.code,n.docsUrl),{cause:n.cause});qi(this,"clerkError",!0);qi(this,"code");qi(this,"longMessage");qi(this,"docsUrl");qi(this,"cause");Object.setPrototypeOf(this,ql.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}]
|
|
69
|
-
Message:${this.message}`}static formatMessage(n,r,a,s){const o="Clerk:",c=new RegExp(o.replace(" ","\\s*"),"i");return r=r.replace(c,""),r=`${o} ${r.trim()}
|
|
70
|
-
|
|
71
|
-
(code="${a}")
|
|
72
|
-
|
|
73
|
-
`,s&&(r+=`
|
|
74
|
-
|
|
75
|
-
Docs: ${s}`),r}},qi(ql,"kind","ClerkError"),ql);const sC=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 u8({packageName:e,customMessages:t}){let n=e;function r(s,o){if(!o)return`${n}: ${s}`;let c=s;const d=s.matchAll(/{{([a-zA-Z0-9-_]+)}}/g);for(const f of d){const m=(o[f[1]]||"").toString();c=c.replace(`{{${f[1]}}}`,m)}return`${n}: ${c}`}const a={...sC,...t};return{setPackageName({packageName:s}){return typeof s=="string"&&(n=s),this},setMessages({customMessages:s}){return Object.assign(a,s||{}),this},throwInvalidPublishableKeyError(s){throw new Error(r(a.InvalidPublishableKeyErrorMessage,s))},throwInvalidProxyUrl(s){throw new Error(r(a.InvalidProxyUrlErrorMessage,s))},throwMissingPublishableKeyError(){throw new Error(r(a.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw new Error(r(a.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(s){throw new Error(r(a.MissingClerkProvider,s))},throw(s){throw new Error(r(s))}}}var jl,Hg=(jl=class extends iC{constructor(n,r){super({...r,message:n});qi(this,"clerkRuntimeError",!0);Object.setPrototypeOf(this,jl.prototype)}},qi(jl,"kind","ClerkRuntimeError"),jl);const lC={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"}},oC=new Set(["first_factor","second_factor","multi_factor"]),uC=new Set(["strict_mfa","strict","moderate","lax"]),cC=e=>typeof e=="number"&&e>0,dC=e=>oC.has(e),hC=e=>uC.has(e),y1=e=>e.replace(/^(org:)*/,"org:"),fC=(e,t)=>{const{orgId:n,orgRole:r,orgPermissions:a}=t;return!e.role&&!e.permission||!n||!r||!a?null:e.permission?a.includes(y1(e.permission)):e.role?y1(r)===y1(e.role):null},r_=(e,t)=>{const{org:n,user:r}=pC(e),[a,s]=t.split(":"),o=s||a;return a==="org"?n.includes(o):a==="user"?r.includes(o):[...n,...r].includes(o)},mC=(e,t)=>{const{features:n,plans:r}=t;return e.feature&&n?r_(n,e.feature):e.plan&&r?r_(r,e.plan):null},pC=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])}},gC=e=>{if(!e)return!1;const t=a=>typeof a=="string"?lC[a]:a,n=typeof e=="string"&&hC(e),r=typeof e=="object"&&dC(e.level)&&cC(e.afterMinutes);return n||r?t.bind(null,e):!1},bC=(e,{factorVerificationAge:t})=>{if(!e.reverification||!t)return null;const n=gC(e.reverification);if(!n)return null;const{level:r,afterMinutes:a}=n(),[s,o]=t,c=s!==-1?a>s:null,d=o!==-1?a>o:null;switch(r){case"first_factor":return c;case"second_factor":return o!==-1?d:c;case"multi_factor":return o===-1?c:c&&d}},vC=e=>t=>{if(!e.userId)return!1;const n=mC(t,e),r=fC(t,e),a=bC(t,e);return[n||r,a].some(s=>s===null)?[n||r,a].some(s=>s===!0):[n||r,a].every(s=>s===!0)},yC=({authObject:{sessionId:e,sessionStatus:t,userId:n,actor:r,orgId:a,orgRole:s,orgSlug:o,signOut:c,getToken:d,has:f,sessionClaims:m},options:{treatPendingAsSignedOut:p=!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:c,getToken:d};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:c,getToken:d};if(p&&t==="pending")return{isLoaded:!0,isSignedIn:!1,sessionId:null,userId:null,sessionClaims:null,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:c,getToken:d};if(e&&m&&n&&a&&s)return{isLoaded:!0,isSignedIn:!0,sessionId:e,sessionClaims:m,userId:n,actor:r||null,orgId:a,orgRole:s,orgSlug:o||null,has:f,signOut:c,getToken:d};if(e&&m&&n&&!a)return{isLoaded:!0,isSignedIn:!0,sessionId:e,sessionClaims:m,userId:n,actor:r||null,orgId:null,orgRole:null,orgSlug:null,has:f,signOut:c,getToken:d}},_C=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],c8=e=>typeof atob<"u"&&typeof atob=="function"?atob(e):typeof global<"u"&&global.Buffer?new global.Buffer(e,"base64").toString():e,d8="pk_live_",EC="pk_test_";function h8(e){if(!e.endsWith("$"))return!1;const t=e.slice(0,-1);return t.includes("$")?!1:t.includes(".")}function a_(e,t={}){if(e=e||"",!e||!qg(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&&!qg(e))throw new Error("Publishable key not valid.");return null}const n=e.startsWith(d8)?"production":"development";let r;try{r=c8(e.split("_")[2])}catch{if(t.fatal)throw new Error("Publishable key not valid: Failed to decode key.");return null}if(!h8(r)){if(t.fatal)throw new Error("Publishable key not valid: Decoded key has invalid format.");return null}let a=r.slice(0,-1);return t.proxyUrl?a=t.proxyUrl:n!=="development"&&t.domain&&t.isSatellite&&(a=`clerk.${t.domain}`),{instanceType:n,frontendApi:a}}function qg(e=""){try{if(!(e.startsWith(d8)||e.startsWith(EC)))return!1;const t=e.split("_");if(t.length!==3)return!1;const n=t[2];return n?h8(c8(n)):!1}catch{return!1}}function TC(){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=_C.some(a=>n.endsWith(a)),e.set(n,r)),r}}}const xC="METHOD_CALLED",SC=.1;function s2(e,t){return{event:xC,eventSamplingRate:SC,payload:{method:e,...t}}}var _1={exports:{}},E1={};/**
|
|
76
|
-
* @license React
|
|
77
|
-
* use-sync-external-store-shim.production.js
|
|
78
|
-
*
|
|
79
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the MIT license found in the
|
|
82
|
-
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var i_;function wC(){if(i_)return E1;i_=1;var e=Df();function t(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,o=e.useDebugValue;function c(p,b){var y=b(),T=r({inst:{value:y,getSnapshot:b}}),x=T[0].inst,C=T[1];return s(function(){x.value=y,x.getSnapshot=b,d(x)&&C({inst:x})},[p,y,b]),a(function(){return d(x)&&C({inst:x}),p(function(){d(x)&&C({inst:x})})},[p]),o(y),y}function d(p){var b=p.getSnapshot;p=p.value;try{var y=b();return!n(p,y)}catch{return!0}}function f(p,b){return b()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return E1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,E1}var s_;function AC(){return s_||(s_=1,_1.exports=wC()),_1.exports}var kC=AC();const f8=0,m8=1,p8=2,l_=3;var o_=Object.prototype.hasOwnProperty;function jg(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--&&jg(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(o_.call(e,n)&&++r&&!o_.call(t,n)||!(n in t)||!jg(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Wi=new WeakMap,Qs=()=>{},kr=Qs(),Jh=Object,zt=e=>e===kr,Wa=e=>typeof e=="function",rs=(e,t)=>({...e,...t}),g8=e=>Wa(e.then),T1={},ah={},l2="undefined",k0=typeof window!=l2,$g=typeof document!=l2,CC=k0&&"Deno"in window,NC=()=>k0&&typeof window.requestAnimationFrame!=l2,b8=(e,t)=>{const n=Wi.get(e);return[()=>!zt(t)&&e.get(t)||T1,r=>{if(!zt(t)){const a=e.get(t);t in ah||(ah[t]=a),n[5](t,rs(a,r),a||T1)}},n[6],()=>!zt(t)&&t in ah?ah[t]:!zt(t)&&e.get(t)||T1]};let Yg=!0;const OC=()=>Yg,[Gg,Vg]=k0&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Qs,Qs],RC=()=>{const e=$g&&document.visibilityState;return zt(e)||e!=="hidden"},MC=e=>($g&&document.addEventListener("visibilitychange",e),Gg("focus",e),()=>{$g&&document.removeEventListener("visibilitychange",e),Vg("focus",e)}),IC=e=>{const t=()=>{Yg=!0,e()},n=()=>{Yg=!1};return Gg("online",t),Gg("offline",n),()=>{Vg("online",t),Vg("offline",n)}},DC={isOnline:OC,isVisible:RC},LC={initFocus:MC,initReconnect:IC},u_=!ce.useId,d0=!k0||CC,PC=e=>NC()?window.requestAnimationFrame(e):setTimeout(e,1),Fh=d0?H.useEffect:H.useLayoutEffect,x1=typeof navigator<"u"&&navigator.connection,c_=!d0&&x1&&(["slow-2g","2g"].includes(x1.effectiveType)||x1.saveData),ih=new WeakMap,BC=e=>Jh.prototype.toString.call(e),S1=(e,t)=>e===`[object ${t}]`;let UC=0;const Kg=e=>{const t=typeof e,n=BC(e),r=S1(n,"Date"),a=S1(n,"RegExp"),s=S1(n,"Object");let o,c;if(Jh(e)===e&&!r&&!a){if(o=ih.get(e),o)return o;if(o=++UC+"~",ih.set(e,o),Array.isArray(e)){for(o="@",c=0;c<e.length;c++)o+=Kg(e[c])+",";ih.set(e,o)}if(s){o="#";const d=Jh.keys(e).sort();for(;!zt(c=d.pop());)zt(e[c])||(o+=c+":"+Kg(e[c])+",");ih.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},o2=e=>{if(Wa(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Kg(e):"",[e,t]};let FC=0;const Wg=()=>++FC;async function v8(...e){const[t,n,r,a]=e,s=rs({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let o=s.populateCache;const c=s.rollbackOnError;let d=s.optimisticData;const f=b=>typeof c=="function"?c(b):c!==!1,m=s.throwOnError;if(Wa(n)){const b=n,y=[],T=t.keys();for(const x of T)!/^\$(inf|sub)\$/.test(x)&&b(t.get(x)._k)&&y.push(x);return Promise.all(y.map(p))}return p(n);async function p(b){const[y]=o2(b);if(!y)return;const[T,x]=b8(t,y),[C,w,O,D]=Wi.get(t),j=()=>{const oe=C[y];return(Wa(s.revalidate)?s.revalidate(T().data,b):s.revalidate!==!1)&&(delete O[y],delete D[y],oe&&oe[0])?oe[0](p8).then(()=>T().data):T().data};if(e.length<3)return j();let z=r,U,ee=!1;const Z=Wg();w[y]=[Z,0];const Q=!zt(d),G=T(),se=G.data,de=G._c,ve=zt(de)?se:de;if(Q&&(d=Wa(d)?d(ve,se):d,x({data:d,_c:ve})),Wa(z))try{z=z(ve)}catch(oe){U=oe,ee=!0}if(z&&g8(z))if(z=await z.catch(oe=>{U=oe,ee=!0}),Z!==w[y][0]){if(ee)throw U;return z}else ee&&Q&&f(U)&&(o=!0,x({data:ve,_c:kr}));if(o&&!ee)if(Wa(o)){const oe=o(z,ve);x({data:oe,error:kr,_c:kr})}else x({data:z,error:kr,_c:kr});if(w[y][1]=Wg(),Promise.resolve(j()).then(()=>{x({_c:kr})}),ee){if(m)throw U;return}return z}}const d_=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},y8=(e,t)=>{if(!Wi.has(e)){const n=rs(LC,t),r=Object.create(null),a=v8.bind(kr,e);let s=Qs;const o=Object.create(null),c=(m,p)=>{const b=o[m]||[];return o[m]=b,b.push(p),()=>b.splice(b.indexOf(p),1)},d=(m,p,b)=>{e.set(m,p);const y=o[m];if(y)for(const T of y)T(p,b)},f=()=>{if(!Wi.has(e)&&(Wi.set(e,[r,Object.create(null),Object.create(null),Object.create(null),a,d,c]),!d0)){const m=n.initFocus(setTimeout.bind(kr,d_.bind(kr,r,f8))),p=n.initReconnect(setTimeout.bind(kr,d_.bind(kr,r,m8)));s=()=>{m&&m(),p&&p(),Wi.delete(e)}}};return f(),[e,a,f,s]}return[e,Wi.get(e)[4]]},zC=(e,t,n,r,a)=>{const s=n.errorRetryCount,o=a.retryCount,c=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!zt(s)&&o>s||setTimeout(r,c,a)},HC=jg,[u2,qC]=y8(new Map),_8=rs({onLoadingSlow:Qs,onSuccess:Qs,onError:Qs,onErrorRetry:zC,onDiscarded:Qs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:c_?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:c_?5e3:3e3,compare:HC,isPaused:()=>!1,cache:u2,mutate:qC,fallback:{}},DC),E8=(e,t)=>{const n=rs(e,t);if(t){const{use:r,fallback:a}=e,{use:s,fallback:o}=t;r&&s&&(n.use=r.concat(s)),a&&o&&(n.fallback=rs(a,o))}return n},Xg=H.createContext({}),jC=e=>{const{value:t}=e,n=H.useContext(Xg),r=Wa(t),a=H.useMemo(()=>r?t(n):t,[r,n,t]),s=H.useMemo(()=>r?a:E8(n,a),[r,n,a]),o=a&&a.provider,c=H.useRef(kr);o&&!c.current&&(c.current=y8(o(s.cache||u2),a));const d=c.current;return d&&(s.cache=d[0],s.mutate=d[1]),Fh(()=>{if(d)return d[2]&&d[2](),d[3]},[]),H.createElement(Xg.Provider,rs(e,{value:s}))},$C="$inf$",T8=k0&&window.__SWR_DEVTOOLS_USE__,YC=T8?window.__SWR_DEVTOOLS_USE__:[],GC=()=>{T8&&(window.__SWR_DEVTOOLS_REACT__=ce)},VC=e=>Wa(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],KC=()=>rs(_8,H.useContext(Xg)),WC=e=>(t,n,r)=>e(t,n&&((...s)=>{const[o]=o2(t),[,,,c]=Wi.get(u2);if(o.startsWith($C))return n(...s);const d=c[o];return zt(d)?n(...s):(delete c[o],d)}),r),XC=YC.concat(WC),QC=e=>function(...n){const r=KC(),[a,s,o]=VC(n),c=E8(r,o);let d=e;const{use:f}=c,m=(f||[]).concat(XC);for(let p=m.length;p--;)d=m[p](d);return d(a,s||c.fetcher||null,c)},ZC=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}};GC();const w1=ce.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}}),A1={dedupe:!0},JC=(e,t,n)=>{const{cache:r,compare:a,suspense:s,fallbackData:o,revalidateOnMount:c,revalidateIfStale:d,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:p,keepPreviousData:b}=n,[y,T,x,C]=Wi.get(r),[w,O]=o2(e),D=H.useRef(!1),j=H.useRef(!1),z=H.useRef(w),U=H.useRef(t),ee=H.useRef(n),Z=()=>ee.current,Q=()=>Z().isVisible()&&Z().isOnline(),[G,se,de,ve]=b8(r,w),oe=H.useRef({}).current,ye=zt(o)?zt(n.fallback)?kr:n.fallback[w]:o,V=(yt,bt)=>{for(const Ft in oe){const Je=Ft;if(Je==="data"){if(!a(yt[Je],bt[Je])&&(!zt(yt[Je])||!a(He,bt[Je])))return!1}else if(bt[Je]!==yt[Je])return!1}return!0},ue=H.useMemo(()=>{const yt=!w||!t?!1:zt(c)?Z().isPaused()||s?!1:d!==!1:c,bt=un=>{const Ke=rs(un);return delete Ke._k,yt?{isValidating:!0,isLoading:!0,...Ke}:Ke},Ft=G(),Je=ve(),Et=bt(Ft),gn=Ft===Je?Et:bt(Je);let Bt=Et;return[()=>{const un=bt(G());return V(un,Bt)?(Bt.data=un.data,Bt.isLoading=un.isLoading,Bt.isValidating=un.isValidating,Bt.error=un.error,Bt):(Bt=un,un)},()=>gn]},[r,w]),me=kC.useSyncExternalStore(H.useCallback(yt=>de(w,(bt,Ft)=>{V(Ft,bt)||yt()}),[r,w]),ue[0],ue[1]),De=!D.current,A=y[w]&&y[w].length>0,ne=me.data,pe=zt(ne)?ye&&g8(ye)?w1(ye):ye:ne,L=me.error,Oe=H.useRef(pe),He=b?zt(ne)?zt(Oe.current)?pe:Oe.current:ne:pe,Le=A&&!zt(L)?!1:De&&!zt(c)?c:Z().isPaused()?!1:s?zt(pe)?!1:d:zt(pe)||d,Mt=!!(w&&t&&De&&Le),ut=zt(me.isValidating)?Mt:me.isValidating,qt=zt(me.isLoading)?Mt:me.isLoading,kt=H.useCallback(async yt=>{const bt=U.current;if(!w||!bt||j.current||Z().isPaused())return!1;let Ft,Je,Et=!0;const gn=yt||{},Bt=!x[w]||!gn.dedupe,un=()=>u_?!j.current&&w===z.current&&D.current:w===z.current,Ke={isValidating:!1,isLoading:!1},cn=()=>{se(Ke)},Tn=()=>{const bn=x[w];bn&&bn[1]===Je&&delete x[w]},lr={isValidating:!0};zt(G().data)&&(lr.isLoading=!0);try{if(Bt&&(se(lr),n.loadingTimeout&&zt(G().data)&&setTimeout(()=>{Et&&un()&&Z().onLoadingSlow(w,n)},n.loadingTimeout),x[w]=[bt(O),Wg()]),[Ft,Je]=x[w],Ft=await Ft,Bt&&setTimeout(Tn,n.dedupingInterval),!x[w]||x[w][1]!==Je)return Bt&&un()&&Z().onDiscarded(w),!1;Ke.error=kr;const bn=T[w];if(!zt(bn)&&(Je<=bn[0]||Je<=bn[1]||bn[1]===0))return cn(),Bt&&un()&&Z().onDiscarded(w),!1;const fe=G().data;Ke.data=a(fe,Ft)?fe:Ft,Bt&&un()&&Z().onSuccess(Ft,w,n)}catch(bn){Tn();const fe=Z(),{shouldRetryOnError:Se}=fe;fe.isPaused()||(Ke.error=bn,Bt&&un()&&(fe.onError(bn,w,fe),(Se===!0||Wa(Se)&&Se(bn))&&(!Z().revalidateOnFocus||!Z().revalidateOnReconnect||Q())&&fe.onErrorRetry(bn,w,fe,qe=>{const tt=y[w];tt&&tt[0]&&tt[0](l_,qe)},{retryCount:(gn.retryCount||0)+1,dedupe:!0})))}return Et=!1,cn(),!0},[w,r]),En=H.useCallback((...yt)=>v8(r,z.current,...yt),[]);if(Fh(()=>{U.current=t,ee.current=n,zt(ne)||(Oe.current=ne)}),Fh(()=>{if(!w)return;const yt=kt.bind(kr,A1);let bt=0;Z().revalidateOnFocus&&(bt=Date.now()+Z().focusThrottleInterval);const Je=ZC(w,y,(Et,gn={})=>{if(Et==f8){const Bt=Date.now();Z().revalidateOnFocus&&Bt>bt&&Q()&&(bt=Bt+Z().focusThrottleInterval,yt())}else if(Et==m8)Z().revalidateOnReconnect&&Q()&&yt();else{if(Et==p8)return kt();if(Et==l_)return kt(gn)}});return j.current=!1,z.current=w,D.current=!0,se({_k:O}),Le&&(x[w]||(zt(pe)||d0?yt():PC(yt))),()=>{j.current=!0,Je()}},[w]),Fh(()=>{let yt;function bt(){const Je=Wa(f)?f(G().data):f;Je&&yt!==-1&&(yt=setTimeout(Ft,Je))}function Ft(){!G().error&&(m||Z().isVisible())&&(p||Z().isOnline())?kt(A1).then(bt):bt()}return bt(),()=>{yt&&(clearTimeout(yt),yt=-1)}},[f,m,p,w]),H.useDebugValue(He),s&&zt(pe)&&w){if(!u_&&d0)throw new Error("Fallback data is required when using Suspense in SSR.");U.current=t,ee.current=n,j.current=!1;const yt=C[w];if(!zt(yt)){const bt=En(yt);w1(bt)}if(zt(L)){const bt=kt(A1);zt(He)||(bt.status="fulfilled",bt.value=!0),w1(bt)}else throw L}return{mutate:En,get data(){return oe.data=!0,He},get error(){return oe.error=!0,L},get isValidating(){return oe.isValidating=!0,ut},get isLoading(){return oe.isLoading=!0,qt}}},eN=Jh.defineProperty(jC,"defaultValue",{value:_8}),tN=QC(JC);var h_=Object.prototype.hasOwnProperty;function f_(e,t,n){for(n of e.keys())if(Qc(n,t))return n}function Qc(e,t){var n,r,a;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--&&Qc(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=f_(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=f_(t,a),!a)||!Qc(r[1],t.get(a)))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(h_.call(e,n)&&++r&&!h_.call(t,n)||!(n in t)||!Qc(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function nN(e,t){if(!e)throw typeof t=="string"?new Error(t):new Error(`${t.displayName} not found`)}const os=(e,t)=>{const{assertCtxFn:n=nN}={},r=ce.createContext(void 0);return r.displayName=e,[r,()=>{const o=ce.useContext(r);return n(o,`${e} not found`),o.value},()=>{const o=ce.useContext(r);return o?o.value:{}}]};function rN({swrConfig:e,children:t}){return ce.createElement(eN,{value:e},t)}const[x8,Bf]=os("ClerkInstanceContext"),[aN,S8]=os("UserContext"),[iN,bK]=os("ClientContext"),[sN,vK]=os("SessionContext");ce.createContext({});const[lN,yK]=os("CheckoutContext"),oN=({children:e,...t})=>ce.createElement(lN.Provider,{value:{value:t}},e),[uN,cN]=os("OrganizationContext"),dN=({children:e,organization:t,swrConfig:n})=>ce.createElement(rN,{swrConfig:n},ce.createElement(uN.Provider,{value:{value:{organization:t}}},e));function Uf(e){if(!ce.useContext(x8)){if(typeof e=="function"){e();return}throw new Error(`${e} can only be used within the <ClerkProvider /> component.
|
|
84
|
-
|
|
85
|
-
Possible fixes:
|
|
86
|
-
1. Ensure that the <ClerkProvider /> is correctly wrapping your application where this component is used.
|
|
87
|
-
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.
|
|
88
|
-
|
|
89
|
-
Learn more: https://clerk.com/docs/components/clerk-provider`.trim())}}const hN="billing-subscription",fN={SUBSCRIPTION_KEY:hN};function mN(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 pN=()=>(Uf("useClerk"),Bf());typeof window<"u"?ce.useLayoutEffect:ce.useEffect;const m_="useUser";function gN(){var t;Uf(m_);const e=S8();return(t=Bf().telemetry)==null||t.record(s2(m_)),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 p_=Qc;function bN(e){const{userId:t,orgId:n,for:r}=e;return H.useMemo(()=>{const a=r==="organization"?n:void 0;return mN({stablePrefix:fN.SUBSCRIPTION_KEY,authenticated:!0,tracked:{userId:t,orgId:a},untracked:{args:{orgId:a}}})},[t,n,r])}const g_="useSubscription";function vN(e){var m;Uf(g_);const t=Bf(),n=S8(),{organization:r}=cN(),a=t.__unstable__environment;(m=t.telemetry)==null||m.record(s2(g_));const s=(e==null?void 0:e.for)==="organization"?a==null?void 0:a.commerceSettings.billing.organization.enabled:a==null?void 0:a.commerceSettings.billing.user.enabled,o=((e==null?void 0:e.enabled)??!0)&&s,{queryKey:c}=bN({userId:n==null?void 0:n.id,orgId:r==null?void 0:r.id,for:e==null?void 0:e.for}),d=tN(o?{queryKey:c}:null,({queryKey:p})=>{const b=p[3].args;return p[2].userId?t.billing.getSubscription(b):null},{dedupingInterval:1e3*60,keepPreviousData:e==null?void 0:e.keepPreviousData}),f=H.useCallback(()=>{d.mutate()},[d]);return{data:d.data,error:d.error,isLoading:d.isLoading,isFetching:d.isValidating,revalidate:f}}const yN=e=>{const t=H.useRef(e);return H.useEffect(()=>{t.current=e},[e]),t.current},ma=(e,t,n)=>{const r=!!n,a=H.useRef(n);H.useEffect(()=>{a.current=n},[n]),H.useEffect(()=>{if(!r||!e)return()=>{};const s=(...o)=>{a.current&&a.current(...o)};return e.on(t,s),()=>{e.off(t,s)}},[r,t,e,a])},w8=ce.createContext(null);w8.displayName="ElementsContext";const _N=(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},ef=e=>e!==null&&typeof e=="object",EN=(e,t,n)=>ef(e)?Object.keys(e).reduce((r,a)=>{const s=!ef(t)||!A8(e[a],t[a]);return n.includes(a)?(s&&console.warn(`Unsupported prop change: options.${a} is not a mutable property.`),r):s?{...r||{},[a]:e[a]}:r},null):null,b_="[object Object]",A8=(e,t)=>{if(!ef(e)||!ef(t))return e===t;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;const r=Object.prototype.toString.call(e)===b_;if(r!==(Object.prototype.toString.call(t)===b_))return!1;if(!r&&!n)return e===t;const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;const o={};for(let p=0;p<a.length;p+=1)o[a[p]]=!0;for(let p=0;p<s.length;p+=1)o[s[p]]=!0;const c=Object.keys(o);if(c.length!==a.length)return!1;const d=e,f=t,m=p=>A8(d[p],f[p]);return c.every(m)},v_=e=>_N(ce.useContext(w8),e),TN=e=>e.charAt(0).toUpperCase()+e.slice(1),xN=(e,t)=>{const n=`${TN(e)}Element`,s=t?o=>{v_(`mounts <${n}>`);const{id:c,className:d}=o;return ce.createElement("div",{id:c,className:d})}:({id:o,className:c,fallback:d,options:f={},onBlur:m,onFocus:p,onReady:b,onChange:y,onEscape:T,onClick:x,onLoadError:C,onLoaderStart:w,onNetworksChange:O,onConfirm:D,onCancel:j,onShippingAddressChange:z,onShippingRateChange:U})=>{const ee=v_(`mounts <${n}>`),Z="elements"in ee?ee.elements:null,[Q,G]=ce.useState(null),se=ce.useRef(null),de=ce.useRef(null),[ve,oe]=H.useState(!1);ma(Q,"blur",m),ma(Q,"focus",p),ma(Q,"escape",T),ma(Q,"click",x),ma(Q,"loaderror",C),ma(Q,"loaderstart",w),ma(Q,"networkschange",O),ma(Q,"confirm",D),ma(Q,"cancel",j),ma(Q,"shippingaddresschange",z),ma(Q,"shippingratechange",U),ma(Q,"change",y);let ye;b&&(ye=()=>{oe(!0),b(Q)}),ma(Q,"ready",ye),ce.useLayoutEffect(()=>{if(se.current===null&&de.current!==null&&Z){let ue=null;Z&&(ue=Z.create(e,f)),se.current=ue,G(ue),ue&&ue.mount(de.current)}},[Z,f]);const V=yN(f);return ce.useEffect(()=>{if(!se.current)return;const ue=EN(f,V,["paymentRequest"]);ue&&"update"in se.current&&se.current.update(ue)},[f,V]),ce.useLayoutEffect(()=>()=>{if(se.current&&typeof se.current.destroy=="function")try{se.current.destroy(),se.current=null}catch{}},[]),ce.createElement(ce.Fragment,null,!ve&&d,ce.createElement("div",{id:o,style:{height:ve?"unset":"0px",visibility:ve?"visible":"hidden"},className:c,ref:de}))};return s.displayName=n,s.__elementType=e,s};xN("payment",typeof window>"u");os("PaymentElementContext");os("StripeUtilsContext");var Xa=u8({packageName:"@clerk/clerk-react"});function SN(e){Xa.setMessages(e).setPackageName(e)}var[wN,AN]=os("AuthContext"),kN=x8,k8=Bf,CN="You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.",NN=e=>`You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,ON="Invalid state. Feel free to submit a bug or reach out to support here: https://clerk.com/support",k1="Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",RN="<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",MN="<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",IN="<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",DN="<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",LN=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.`,PN=e=>`Missing props. <${e}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`,BN=e=>`Missing props. <${e}.Link /> component requires the following props: url, label and labelIcon.`,UN="<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.",FN="<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.",zN="<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`.",HN="<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`.",qN="<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />`.",jN="Missing props. <UserButton.Link /> component requires the following props: href, label and labelIcon.",$N="Missing props. <UserButton.Action /> component requires the following props: label.",Ff=e=>{Uf(()=>{Xa.throwMissingClerkProviderError({source:e})})},C8=e=>new Promise(t=>{const n=r=>{["ready","degraded"].includes(r)&&(t(),e.off("status",n))};e.on("status",n,{notify:!0})}),YN=e=>async t=>(await C8(e),e.session?e.session.getToken(t):null),GN=e=>async(...t)=>(await C8(e),e.signOut(...t)),C0=(e={})=>{var t;Ff("useAuth");const{treatPendingAsSignedOut:n,...r}=e??{},a=r;let o=AN();o.sessionId===void 0&&o.userId===void 0&&(o=a??{});const c=k8(),d=H.useCallback(YN(c),[c]),f=H.useCallback(GN(c),[c]);return(t=c.telemetry)==null||t.record(s2("useAuth",{treatPendingAsSignedOut:n})),VN({...o,getToken:d,signOut:f},{treatPendingAsSignedOut:n})};function VN(e,{treatPendingAsSignedOut:t=!0}={}){const{userId:n,orgId:r,orgRole:a,has:s,signOut:o,getToken:c,orgPermissions:d,factorVerificationAge:f,sessionClaims:m}=e??{},p=H.useCallback(y=>s?s(y):vC({userId:n,orgId:r,orgRole:a,orgPermissions:d,factorVerificationAge:f,features:(m==null?void 0:m.fea)||"",plans:(m==null?void 0:m.pla)||""})(y),[s,n,r,a,d,f,m]),b=yC({authObject:{...e,getToken:c,signOut:o,has:p},options:{treatPendingAsSignedOut:t}});return b||Xa.throw(ON)}var en=(e,t)=>{const r=(typeof t=="string"?t:t==null?void 0:t.component)||e.displayName||e.name||"Component";e.displayName=r;const a=typeof t=="string"?void 0:t,s=o=>{Ff(r||"withClerk");const c=k8();return!c.loaded&&!(a!=null&&a.renderWhileLoading)?null:ce.createElement(e,{...o,component:r,clerk:c})};return s.displayName=`withClerk(${r})`,s};const KN=()=>{try{return!1}catch{}return!1},WN=()=>{try{return!1}catch{}return!1},XN=()=>{try{return!0}catch{}return!1},y_=new Set,c2=(e,t,n)=>{const r=WN()||XN(),a=e;y_.has(a)||r||(y_.add(a),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release.
|
|
90
|
-
${t}`))};var QN=({children:e,treatPendingAsSignedOut:t})=>{Ff("SignedIn");const{userId:n}=C0({treatPendingAsSignedOut:t});return n?e:null},ZN=({children:e,treatPendingAsSignedOut:t})=>{Ff("SignedOut");const{userId:n}=C0({treatPendingAsSignedOut:t});return n===null?e:null};en(({clerk:e,...t})=>{const{client:n,session:r}=e,a=n.signedInSessions?n.signedInSessions.length>0:n.activeSessions&&n.activeSessions.length>0;return ce.useEffect(()=>{r===null&&a?e.redirectToAfterSignOut():e.redirectToSignIn(t)},[]),null},"RedirectToSignIn");en(({clerk:e,...t})=>(ce.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp");en(({clerk:e,...t})=>(ce.useEffect(()=>{e.redirectToTasks(t)},[]),null),"RedirectToTasks");en(({clerk:e})=>(ce.useEffect(()=>{c2("RedirectToUserProfile","Use the `redirectToUserProfile()` method instead."),e.redirectToUserProfile()},[]),null),"RedirectToUserProfile");en(({clerk:e})=>(ce.useEffect(()=>{c2("RedirectToOrganizationProfile","Use the `redirectToOrganizationProfile()` method instead."),e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile");en(({clerk:e})=>(ce.useEffect(()=>{c2("RedirectToCreateOrganization","Use the `redirectToCreateOrganization()` method instead."),e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization");en(({clerk:e,...t})=>(ce.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback");function C1(e,t,n){if(typeof e=="function")return e(t);if(typeof e<"u")return e;if(typeof n<"u")return n}const zr=e=>{KN()&&console.error(`Clerk: ${e}`)};var JN=q5();const __=(e,...t)=>{const n={...e};for(const r of t)delete n[r];return n};var Kl=e=>t=>{try{return ce.Children.only(e)}catch{return Xa.throw(NN(t))}},Wl=(e,t)=>(e||(e=t),typeof e=="string"&&(e=ce.createElement("button",null,e)),e),Xl=e=>(...t)=>{if(e&&typeof e=="function")return e(...t)};function eO(e){return typeof e=="function"}var sh=new Map;function tO(e,t,n=1){ce.useEffect(()=>{const r=sh.get(e)||0;return r==n?Xa.throw(t):(sh.set(e,r+1),()=>{sh.set(e,(sh.get(e)||1)-1)})},[])}function nO(e,t,n){const r=e.displayName||e.name||t||"Component",a=s=>(tO(t,n),ce.createElement(e,{...s}));return a.displayName=`withMaxAllowedInstancesGuard(${r})`,a}var Zc=e=>{const[t,n]=H.useState(new Map);return e.map(r=>({id:r.id,mount:a=>n(s=>new Map(s).set(String(r.id),a)),unmount:()=>n(a=>{const s=new Map(a);return s.set(String(r.id),null),s}),portal:()=>{const a=t.get(String(r.id));return a?JN.createPortal(r.component,a):null}}))},Fr=(e,t)=>!!e&&ce.isValidElement(e)&&(e==null?void 0:e.type)===t,N8=(e,t)=>M8({children:e,reorderItemsLabels:["account","security","billing","apiKeys"],LinkComponent:O0,PageComponent:N0,MenuItemsComponent:Hf,componentName:"UserProfile"},t),O8=(e,t)=>M8({children:e,reorderItemsLabels:["general","members","billing","apiKeys"],LinkComponent:jf,PageComponent:qf,componentName:"OrganizationProfile"},t),R8=e=>{const t=[],n=[jf,qf,Hf,N0,O0];return ce.Children.forEach(e,r=>{n.some(a=>Fr(r,a))||t.push(r)}),t},M8=(e,t)=>{const{children:n,LinkComponent:r,PageComponent:a,MenuItemsComponent:s,reorderItemsLabels:o,componentName:c}=e,{allowForAnyChildren:d=!1}=t||{},f=[];ce.Children.forEach(n,O=>{if(!Fr(O,a)&&!Fr(O,r)&&!Fr(O,s)){O&&!d&&zr(LN(c));return}const{props:D}=O,{children:j,label:z,url:U,labelIcon:ee}=D;if(Fr(O,a))if(E_(D,o))f.push({label:z});else if(N1(D))f.push({label:z,labelIcon:ee,children:j,url:U});else{zr(PN(c));return}if(Fr(O,r))if(O1(D))f.push({label:z,labelIcon:ee,url:U});else{zr(BN(c));return}});const m=[],p=[],b=[];f.forEach((O,D)=>{if(N1(O)){m.push({component:O.children,id:D}),p.push({component:O.labelIcon,id:D});return}O1(O)&&b.push({component:O.labelIcon,id:D})});const y=Zc(m),T=Zc(p),x=Zc(b),C=[],w=[];return f.forEach((O,D)=>{if(E_(O,o)){C.push({label:O.label});return}if(N1(O)){const{portal:j,mount:z,unmount:U}=y.find(G=>G.id===D),{portal:ee,mount:Z,unmount:Q}=T.find(G=>G.id===D);C.push({label:O.label,url:O.url,mount:z,unmount:U,mountIcon:Z,unmountIcon:Q}),w.push(j),w.push(ee);return}if(O1(O)){const{portal:j,mount:z,unmount:U}=x.find(ee=>ee.id===D);C.push({label:O.label,url:O.url,mountIcon:z,unmountIcon:U}),w.push(j);return}}),{customPages:C,customPagesPortals:w}},E_=(e,t)=>{const{children:n,label:r,url:a,labelIcon:s}=e;return!n&&!a&&!s&&t.some(o=>o===r)},N1=e=>{const{children:t,label:n,url:r,labelIcon:a}=e;return!!t&&!!r&&!!a&&!!n},O1=e=>{const{children:t,label:n,url:r,labelIcon:a}=e;return!t&&!!r&&!!a&&!!n},rO=(e,t)=>{var n;return aO({children:e,reorderItemsLabels:["manageAccount","signOut"],MenuItemsComponent:Hf,MenuActionComponent:D8,MenuLinkComponent:L8,UserProfileLinkComponent:O0,UserProfilePageComponent:N0,allowForAnyChildren:(n=t==null?void 0:t.allowForAnyChildren)!=null?n:!1})},aO=({children:e,MenuItemsComponent:t,MenuActionComponent:n,MenuLinkComponent:r,UserProfileLinkComponent:a,UserProfilePageComponent:s,reorderItemsLabels:o,allowForAnyChildren:c=!1})=>{const d=[],f=[],m=[];ce.Children.forEach(e,x=>{if(!Fr(x,t)&&!Fr(x,a)&&!Fr(x,s)){x&&!c&&zr(UN);return}if(Fr(x,a)||Fr(x,s))return;const{props:C}=x;ce.Children.forEach(C.children,w=>{if(!Fr(w,n)&&!Fr(w,r)){w&&zr(FN);return}const{props:O}=w,{label:D,labelIcon:j,href:z,onClick:U,open:ee}=O;if(Fr(w,n))if(T_(O,o))d.push({label:D});else if(R1(O)){const Z={label:D,labelIcon:j};if(U!==void 0)d.push({...Z,onClick:U});else if(ee!==void 0)d.push({...Z,open:ee.startsWith("/")?ee:`/${ee}`});else{zr("Custom menu item must have either onClick or open property");return}}else{zr($N);return}if(Fr(w,r))if(M1(O))d.push({label:D,labelIcon:j,href:z});else{zr(jN);return}})});const p=[],b=[];d.forEach((x,C)=>{R1(x)&&p.push({component:x.labelIcon,id:C}),M1(x)&&b.push({component:x.labelIcon,id:C})});const y=Zc(p),T=Zc(b);return d.forEach((x,C)=>{if(T_(x,o)&&f.push({label:x.label}),R1(x)){const{portal:w,mount:O,unmount:D}=y.find(z=>z.id===C),j={label:x.label,mountIcon:O,unmountIcon:D};"onClick"in x?j.onClick=x.onClick:"open"in x&&(j.open=x.open),f.push(j),m.push(w)}if(M1(x)){const{portal:w,mount:O,unmount:D}=T.find(j=>j.id===C);f.push({label:x.label,href:x.href,mountIcon:O,unmountIcon:D}),m.push(w)}}),{customMenuItems:f,customMenuItemsPortals:m}},T_=(e,t)=>{const{children:n,label:r,onClick:a,labelIcon:s}=e;return!n&&!a&&!s&&t.some(o=>o===r)},R1=e=>{const{label:t,labelIcon:n,onClick:r,open:a}=e;return!!n&&!!t&&(typeof r=="function"||typeof a=="string")},M1=e=>{const{label:t,href:n,labelIcon:r}=e;return!!n&&!!r&&!!t},iO=e=>{const t=e==null?void 0:e.isReady;return n=>new Promise((r,a)=>{const{root:s=document==null?void 0:document.body,selector:o,timeout:c=0}=n;if(!s){a(new Error("No root element provided"));return}let d=s;if(o&&(d=s==null?void 0:s.querySelector(o)),t(d,o)){r();return}const f=new MutationObserver(m=>{for(const p of m)if(!d&&o&&(d=s==null?void 0:s.querySelector(o)),(e.childList&&p.type==="childList"||e.attributes&&p.type==="attributes")&&t(d,o)){f.disconnect(),r();return}});f.observe(s,e),c>0&&setTimeout(()=>{f.disconnect(),a(new Error(`Timeout waiting for ${o}`))},c)})},sO=iO({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 jr(e,t){const n=H.useRef(),[r,a]=H.useState("rendering");return H.useEffect(()=>{if(!e)throw new Error("Clerk: no component name provided, unable to detect mount.");if(typeof window<"u"&&!n.current){const s=`[data-clerk-component="${e}"]`,o=t==null?void 0:t.selector;n.current=sO({selector:o?s+o:s}).then(()=>{a("rendered")}).catch(()=>{a("error")})}},[e,t==null?void 0:t.selector]),r}var lh=e=>"mount"in e,x_=e=>"open"in e,S_=e=>e==null?void 0:e.map(({mountIcon:t,unmountIcon:n,...r})=>r),Tr=class extends ce.PureComponent{constructor(){super(...arguments),this.rootRef=ce.createRef()}componentDidUpdate(e){var t,n,r,a;if(!lh(e)||!lh(this.props))return;const s=__(e.props,"customPages","customMenuItems","children"),o=__(this.props.props,"customPages","customMenuItems","children"),c=((t=s.customPages)==null?void 0:t.length)!==((n=o.customPages)==null?void 0:n.length),d=((r=s.customMenuItems)==null?void 0:r.length)!==((a=o.customMenuItems)==null?void 0:a.length),f=S_(e.props.customMenuItems),m=S_(this.props.props.customMenuItems);(!p_(s,o)||!p_(f,m)||c||d)&&this.rootRef.current&&this.props.updateProps({node:this.rootRef.current,props:this.props.props})}componentDidMount(){this.rootRef.current&&(lh(this.props)&&this.props.mount(this.rootRef.current,this.props.props),x_(this.props)&&this.props.open(this.props.props))}componentWillUnmount(){this.rootRef.current&&(lh(this.props)&&this.props.unmount(this.rootRef.current),x_(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 ce.createElement(ce.Fragment,null,!e&&ce.createElement("div",{...t}),this.props.children)}},zf=e=>{var t,n;return ce.createElement(ce.Fragment,null,(t=e==null?void 0:e.customPagesPortals)==null?void 0:t.map((r,a)=>H.createElement(r,{key:a})),(n=e==null?void 0:e.customMenuItemsPortals)==null?void 0:n.map((r,a)=>H.createElement(r,{key:a})))},lO=en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountSignIn,unmount:e.unmountSignIn,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"SignIn",renderWhileLoading:!0}),oO=en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountSignUp,unmount:e.unmountSignUp,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"SignUp",renderWhileLoading:!0});function N0({children:e}){return zr(RN),ce.createElement(ce.Fragment,null,e)}function O0({children:e}){return zr(MN),ce.createElement(ce.Fragment,null,e)}var uO=en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}},{customPages:c,customPagesPortals:d}=N8(r.children);return ce.createElement(ce.Fragment,null,s&&n,ce.createElement(Tr,{component:t,mount:e.mountUserProfile,unmount:e.unmountUserProfile,updateProps:e.__unstable__updateProps,props:{...r,customPages:c},rootProps:o},ce.createElement(zf,{customPagesPortals:d})))},{component:"UserProfile",renderWhileLoading:!0});Object.assign(uO,{Page:N0,Link:O0});var I8=H.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),cO=en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}},{customPages:c,customPagesPortals:d}=N8(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),f={...r.userProfileProps,customPages:c},{customMenuItems:m,customMenuItemsPortals:p}=rO(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),b=R8(r.children),y={mount:e.mountUserButton,unmount:e.unmountUserButton,updateProps:e.__unstable__updateProps,props:{...r,userProfileProps:f,customMenuItems:m}},T={customPagesPortals:d,customMenuItemsPortals:p};return ce.createElement(I8.Provider,{value:y},s&&n,e.loaded&&ce.createElement(Tr,{component:t,...y,hideRootHtmlElement:!!r.__experimental_asProvider,rootProps:o},r.__experimental_asProvider?b:null,ce.createElement(zf,{...T})))},{component:"UserButton",renderWhileLoading:!0});function Hf({children:e}){return zr(zN),ce.createElement(ce.Fragment,null,e)}function D8({children:e}){return zr(HN),ce.createElement(ce.Fragment,null,e)}function L8({children:e}){return zr(qN),ce.createElement(ce.Fragment,null,e)}function dO(e){const t=H.useContext(I8),n={...t,props:{...t.props,...e}};return ce.createElement(Tr,{...n})}var hO=Object.assign(cO,{UserProfilePage:N0,UserProfileLink:O0,MenuItems:Hf,Action:D8,Link:L8,__experimental_Outlet:dO});function qf({children:e}){return zr(IN),ce.createElement(ce.Fragment,null,e)}function jf({children:e}){return zr(DN),ce.createElement(ce.Fragment,null,e)}var fO=en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}},{customPages:c,customPagesPortals:d}=O8(r.children);return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountOrganizationProfile,unmount:e.unmountOrganizationProfile,updateProps:e.__unstable__updateProps,props:{...r,customPages:c},rootProps:o},ce.createElement(zf,{customPagesPortals:d})))},{component:"OrganizationProfile",renderWhileLoading:!0});Object.assign(fO,{Page:qf,Link:jf});en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountCreateOrganization,unmount:e.unmountCreateOrganization,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"CreateOrganization",renderWhileLoading:!0});var P8=H.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),mO=en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}},{customPages:c,customPagesPortals:d}=O8(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),f={...r.organizationProfileProps,customPages:c},m=R8(r.children),p={mount:e.mountOrganizationSwitcher,unmount:e.unmountOrganizationSwitcher,updateProps:e.__unstable__updateProps,props:{...r,organizationProfileProps:f},rootProps:o,component:t};return e.__experimental_prefetchOrganizationSwitcher(),ce.createElement(P8.Provider,{value:p},ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{...p,hideRootHtmlElement:!!r.__experimental_asProvider},r.__experimental_asProvider?m:null,ce.createElement(zf,{customPagesPortals:d}))))},{component:"OrganizationSwitcher",renderWhileLoading:!0});function pO(e){const t=H.useContext(P8),n={...t,props:{...t.props,...e}};return ce.createElement(Tr,{...n})}Object.assign(mO,{OrganizationProfilePage:qf,OrganizationProfileLink:jf,__experimental_Outlet:pO});en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountOrganizationList,unmount:e.unmountOrganizationList,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"OrganizationList",renderWhileLoading:!0});en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,open:e.openGoogleOneTap,close:e.closeGoogleOneTap,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"GoogleOneTap",renderWhileLoading:!0});en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountWaitlist,unmount:e.unmountWaitlist,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"Waitlist",renderWhileLoading:!0});var gO=en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t,{selector:'[data-component-status="ready"]'})==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountPricingTable,unmount:e.unmountPricingTable,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"PricingTable",renderWhileLoading:!0});en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountAPIKeys,unmount:e.unmountAPIKeys,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"ApiKeys",renderWhileLoading:!0});en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountUserAvatar,unmount:e.unmountUserAvatar,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"UserAvatar",renderWhileLoading:!0});en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountTaskChooseOrganization,unmount:e.unmountTaskChooseOrganization,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"TaskChooseOrganization",renderWhileLoading:!0});en(({clerk:e,component:t,fallback:n,...r})=>{const s=jr(t)==="rendering"||!e.loaded,o={...s&&n&&{style:{display:"none"}}};return ce.createElement(ce.Fragment,null,s&&n,e.loaded&&ce.createElement(Tr,{component:t,mount:e.mountTaskResetPassword,unmount:e.unmountTaskResetPassword,updateProps:e.__unstable__updateProps,props:r,rootProps:o}))},{component:"TaskResetPassword",renderWhileLoading:!0});var B8=e=>{throw TypeError(e)},d2=(e,t,n)=>t.has(e)||B8("Cannot "+n),yn=(e,t,n)=>(d2(e,t,"read from private field"),n?n.call(e):t.get(e)),Ys=(e,t,n)=>t.has(e)?B8("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Dl=(e,t,n,r)=>(d2(e,t,"write to private field"),t.set(e,n),n),I1=(e,t,n)=>(d2(e,t,"access private method"),n);const bO={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},vO=100,U8=async e=>new Promise(t=>setTimeout(t,e)),F8=(e,t)=>t?e*(1+Math.random()):e,yO=e=>{let t=0;const n=()=>{const r=e.initialDelay,a=e.factor;let s=r*Math.pow(a,t);return s=F8(s,e.jitter),Math.min(e.maxDelayBetweenRetries||s,s)};return async()=>{await U8(n()),t++}},_O=async(e,t={})=>{let n=0;const{shouldRetry:r,initialDelay:a,maxDelayBetweenRetries:s,factor:o,retryImmediately:c,jitter:d,onBeforeRetry:f}={...bO,...t},m=yO({initialDelay:a,maxDelayBetweenRetries:s,factor:o,jitter:d});for(;;)try{return await e()}catch(p){if(n++,!r(p,n))throw p;f&&await f(n),c&&n===1?await U8(F8(vO,d)):await m()}},EO="loadScript cannot be called when document does not exist",TO="loadScript cannot be called without a src";async function xO(e="",t){const{async:n,defer:r,beforeLoad:a,crossOrigin:s,nonce:o}=t||{};return _O(()=>new Promise((d,f)=>{e||f(new Error(TO)),(!document||!document.body)&&f(new Error(EO));const m=document.createElement("script");s&&m.setAttribute("crossorigin",s),m.async=n||!1,m.defer=r||!1,m.addEventListener("load",()=>{m.remove(),d(m)}),m.addEventListener("error",p=>{m.remove(),f(p.error??new Error(`failed to load script: ${e}`))}),m.src=e,m.nonce=o,a==null||a(m),document.body.appendChild(m)}),{shouldRetry:(d,f)=>f<=5})}function SO(e){return e?wO(e)||z8(e):!0}function wO(e){return/^http(s)?:\/\//.test(e||"")}function z8(e){return e.startsWith("/")}function AO(e){return e?z8(e)?new URL(e,window.location.origin).toString():e:""}function kO(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 CO=(e,t="5.114.0")=>{if(e)return e;const n=NO(t);return n?n==="snapshot"?"5.114.0":n:OO(t)},NO=e=>{var t;return(t=e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/))==null?void 0:t[1]},OO=e=>e.trim().replace(/^v/,"").split(".")[0],H8="failed_to_load_clerk_js",RO="failed_to_load_clerk_js_timeout",Qg="Failed to load Clerk",{isDevOrStagingUrl:MO}=TC(),q8=u8({packageName:"@clerk/shared"});function IO(e){q8.setPackageName({packageName:e})}function Zg(){if(typeof window>"u"||!window.Clerk)return!1;const e=window.Clerk;return typeof e=="object"&&typeof e.load=="function"}function DO(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 w_(e,t){return new Promise((n,r)=>{let a=!1;const s=(m,p)=>{clearTimeout(m),clearInterval(p)};t==null||t.addEventListener("error",()=>{s(d,f),r(new Hg(Qg,{code:H8}))});const o=()=>{a||Zg()&&(a=!0,s(d,f),n(null))},d=setTimeout(()=>{a||(a=!0,s(d,f),Zg()?n(null):r(new Hg(Qg,{code:RO})))},e);o();const f=setInterval(()=>{if(a){clearInterval(f);return}o()},100)})}const LO=async e=>{const t=(e==null?void 0:e.scriptLoadTimeout)??15e3;if(Zg())return null;if(!(e!=null&&e.publishableKey))return q8.throwMissingPublishableKeyError(),null;const n=PO(e),r=document.querySelector("script[data-clerk-js-script]");if(r)if(DO(n))r.remove();else try{return await w_(t,r),null}catch{r.remove()}const a=w_(t);return xO(n,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:UO(e)}).catch(s=>{throw new Hg(Qg+(s.message?`, ${s.message}`:""),{code:H8,cause:s})}),a},PO=e=>{var m,p;const{clerkJSUrl:t,clerkJSVariant:n,clerkJSVersion:r,proxyUrl:a,domain:s,publishableKey:o}=e;if(t)return t;let c="";a&&SO(a)?c=AO(a).replace(/http(s)?:\/\//,""):s&&!MO(((m=a_(o))==null?void 0:m.frontendApi)||"")?c=kO(s):c=((p=a_(o))==null?void 0:p.frontendApi)||"";const d=n?`${n.replace(/\.+$/,"")}.`:"",f=CO(r);return`https://${c}/npm/@clerk/clerk-js@${f}/dist/clerk.${d}browser.js`},BO=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},UO=e=>t=>{const n=BO(e);for(const r in n)t.setAttribute(r,n[r])},FO=(e,t,n)=>!e&&n?zO(n):HO(t),zO=e=>{const t=e.userId,n=e.user,r=e.sessionId,a=e.sessionStatus,s=e.sessionClaims;return{userId:t,user:n,sessionId:r,session:e.session,sessionStatus:a,sessionClaims:s,organization:e.organization,orgId:e.orgId,orgRole:e.orgRole,orgPermissions:e.orgPermissions,orgSlug:e.orgSlug,actor:e.actor,factorVerificationAge:e.factorVerificationAge}},HO=e=>{var T,x,C,w;const t=e.user?e.user.id:e.user,n=e.user,r=e.session?e.session.id:e.session,a=e.session,s=(T=e.session)==null?void 0:T.status,o=e.session?(C=(x=e.session.lastActiveToken)==null?void 0:x.jwt)==null?void 0:C.claims:null,c=e.session?e.session.factorVerificationAge:null,d=a==null?void 0:a.actor,f=e.organization,m=e.organization?e.organization.id:e.organization,p=f==null?void 0:f.slug,b=f&&((w=n==null?void 0:n.organizationMemberships)==null?void 0:w.find(O=>O.organization.id===m)),y=b&&b.permissions;return{userId:t,user:n,sessionId:r,session:a,sessionStatus:s,sessionClaims:o,organization:f,orgId:m,orgRole:b&&b.role,orgSlug:p,orgPermissions:y,actor:d,factorVerificationAge:c}};function tf(){return typeof window<"u"}const A_=(e,t,n,r,a)=>{const{notify:s}=a||{};let o=e.get(n);o||(o=[],e.set(n,o)),o.push(r),s&&t.has(n)&&r(t.get(n))},k_=(e,t,n)=>(e.get(t)||[]).map(r=>r(n)),C_=(e,t,n)=>{const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},qO=()=>{const e=new Map,t=new Map,n=new Map;return{on:(...a)=>A_(e,t,...a),prioritizedOn:(...a)=>A_(n,t,...a),emit:(a,s)=>{t.set(a,s),k_(n,a,s),k_(e,a,s)},off:(...a)=>C_(e,...a),prioritizedOff:(...a)=>C_(n,...a),internal:{retrieveListeners:a=>e.get(a)||[]}}},oh={Status:"status"},jO=()=>qO();typeof window<"u"&&!window.global&&(window.global=typeof global>"u"?window:global);en(({clerk:e,children:t,...n})=>{const{signUpFallbackRedirectUrl:r,forceRedirectUrl:a,fallbackRedirectUrl:s,signUpForceRedirectUrl:o,mode:c,initialValues:d,withSignUp:f,oauthFlow:m,...p}=n;t=Wl(t,"Sign in");const b=Kl(t)("SignInButton"),y=()=>{const C={forceRedirectUrl:a,fallbackRedirectUrl:s,signUpFallbackRedirectUrl:r,signUpForceRedirectUrl:o,initialValues:d,withSignUp:f,oauthFlow:m};return c==="modal"?e.openSignIn({...C,appearance:n.appearance}):e.redirectToSignIn({...C,signInFallbackRedirectUrl:s,signInForceRedirectUrl:a})},x={...p,onClick:async C=>(b&&typeof b=="object"&&"props"in b&&await Xl(b.props.onClick)(C),y())};return ce.cloneElement(b,x)},{component:"SignInButton",renderWhileLoading:!0});en(({clerk:e,children:t,...n})=>{const{redirectUrl:r,...a}=n;t=Wl(t,"Sign in with Metamask");const s=Kl(t)("SignInWithMetamaskButton"),o=async()=>{async function f(){await e.authenticateWithMetamask({redirectUrl:r||void 0})}f()},d={...a,onClick:async f=>(await Xl(s.props.onClick)(f),o())};return ce.cloneElement(s,d)},{component:"SignInWithMetamask",renderWhileLoading:!0});en(({clerk:e,children:t,...n})=>{const{redirectUrl:r="/",signOutOptions:a,...s}=n;t=Wl(t,"Sign out");const o=Kl(t)("SignOutButton"),c=()=>e.signOut({redirectUrl:r,...a}),f={...s,onClick:async m=>(await Xl(o.props.onClick)(m),c())};return ce.cloneElement(o,f)},{component:"SignOutButton",renderWhileLoading:!0});en(({clerk:e,children:t,...n})=>{const{fallbackRedirectUrl:r,forceRedirectUrl:a,signInFallbackRedirectUrl:s,signInForceRedirectUrl:o,mode:c,initialValues:d,oauthFlow:f,...m}=n;t=Wl(t,"Sign up");const p=Kl(t)("SignUpButton"),b=()=>{const x={fallbackRedirectUrl:r,forceRedirectUrl:a,signInFallbackRedirectUrl:s,signInForceRedirectUrl:o,initialValues:d,oauthFlow:f};return c==="modal"?e.openSignUp({...x,appearance:n.appearance,unsafeMetadata:n.unsafeMetadata}):e.redirectToSignUp({...x,signUpFallbackRedirectUrl:r,signUpForceRedirectUrl:a})},T={...m,onClick:async x=>(p&&typeof p=="object"&&"props"in p&&await Xl(p.props.onClick)(x),b())};return ce.cloneElement(p,T)},{component:"SignUpButton",renderWhileLoading:!0});var $O=()=>({fields:{identifier:null,password:null,code:null},raw:null,global:null}),YO=()=>({fields:{firstName:null,lastName:null,emailAddress:null,phoneNumber:null,password:null,username:null,code:null,captcha:null,legalAccepted:null},raw:null,global:null}),GO=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:$O(),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:YO(),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!tf()||!this.isomorphicClerk.loaded?n:e()[t]}gateMethod(e,t){return async(...n)=>{if(!tf())return Xa.throw(`Attempted to call a method (${t}) that is not supported on the server.`);this.isomorphicClerk.loaded||await new Promise(a=>this.isomorphicClerk.addOnLoaded(a));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 a={};for(const s of t)a[s]=this.gateMethod(e,s);for(const s of n)Object.defineProperty(a,s,{get:()=>this.gateProperty(e,s,r[s]),enumerable:!0});return a}};typeof globalThis.__BUILD_DISABLE_RHC__>"u"&&(globalThis.__BUILD_DISABLE_RHC__=!1);var VO={name:"@clerk/clerk-react",version:"5.58.1",environment:"production"},zh,zo,Ho,Gs,si,Hh,Xs,Hc,qh,j8=class $8{constructor(t){Ys(this,Hc),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=[],Ys(this,zh,"loading"),Ys(this,zo),Ys(this,Ho),Ys(this,Gs),Ys(this,si,jO()),Ys(this,Hh),this.buildSignInUrl=a=>{const s=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildSignInUrl(a))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildSignInUrl",s)},this.buildSignUpUrl=a=>{const s=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildSignUpUrl(a))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildSignUpUrl",s)},this.buildAfterSignInUrl=(...a)=>{const s=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildAfterSignInUrl(...a))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildAfterSignInUrl",s)},this.buildAfterSignUpUrl=(...a)=>{const s=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildAfterSignUpUrl(...a))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildAfterSignUpUrl",s)},this.buildAfterSignOutUrl=()=>{const a=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildAfterSignOutUrl())||""};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildAfterSignOutUrl",a)},this.buildNewSubscriptionRedirectUrl=()=>{const a=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildNewSubscriptionRedirectUrl())||""};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildNewSubscriptionRedirectUrl",a)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{const a=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildAfterMultiSessionSingleSignOutUrl())||""};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",a)},this.buildUserProfileUrl=()=>{const a=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildUserProfileUrl())||""};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildUserProfileUrl",a)},this.buildCreateOrganizationUrl=()=>{const a=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildCreateOrganizationUrl())||""};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildCreateOrganizationUrl",a)},this.buildOrganizationProfileUrl=()=>{const a=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildOrganizationProfileUrl())||""};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildOrganizationProfileUrl",a)},this.buildWaitlistUrl=()=>{const a=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildWaitlistUrl())||""};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildWaitlistUrl",a)},this.buildTasksUrl=()=>{const a=()=>{var s;return((s=this.clerkjs)==null?void 0:s.buildTasksUrl())||""};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildTasksUrl",a)},this.buildUrlWithAuth=a=>{const s=()=>{var o;return((o=this.clerkjs)==null?void 0:o.buildUrlWithAuth(a))||""};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("buildUrlWithAuth",s)},this.handleUnauthenticated=async()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.handleUnauthenticated()};this.clerkjs&&this.loaded?a():this.premountMethodCalls.set("handleUnauthenticated",a)},this.on=(...a)=>{var s;if((s=this.clerkjs)!=null&&s.on)return this.clerkjs.on(...a);yn(this,si).on(...a)},this.off=(...a)=>{var s;if((s=this.clerkjs)!=null&&s.off)return this.clerkjs.off(...a);yn(this,si).off(...a)},this.addOnLoaded=a=>{this.loadedListeners.push(a),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>{this.loadedListeners.forEach(a=>a()),this.loadedListeners=[]},this.beforeLoad=a=>{if(!a)throw new Error("Failed to hydrate latest Clerk JS")},this.hydrateClerkJS=a=>{var s,o;if(!a)throw new Error("Failed to hydrate latest Clerk JS");return this.clerkjs=a,this.premountMethodCalls.forEach(c=>c()),this.premountAddListenerCalls.forEach((c,d)=>{c.nativeUnsubscribe=a.addListener(d)}),(s=yn(this,si).internal.retrieveListeners("status"))==null||s.forEach(c=>{this.on("status",c,{notify:!0})}),(o=yn(this,si).internal.retrieveListeners("queryClientStatus"))==null||o.forEach(c=>{this.on("queryClientStatus",c,{notify:!0})}),this.preopenSignIn!==null&&a.openSignIn(this.preopenSignIn),this.preopenCheckout!==null&&a.__internal_openCheckout(this.preopenCheckout),this.preopenPlanDetails!==null&&a.__internal_openPlanDetails(this.preopenPlanDetails),this.preopenSubscriptionDetails!==null&&a.__internal_openSubscriptionDetails(this.preopenSubscriptionDetails),this.preopenSignUp!==null&&a.openSignUp(this.preopenSignUp),this.preopenUserProfile!==null&&a.openUserProfile(this.preopenUserProfile),this.preopenUserVerification!==null&&a.__internal_openReverification(this.preopenUserVerification),this.preopenOneTap!==null&&a.openGoogleOneTap(this.preopenOneTap),this.preopenOrganizationProfile!==null&&a.openOrganizationProfile(this.preopenOrganizationProfile),this.preopenCreateOrganization!==null&&a.openCreateOrganization(this.preopenCreateOrganization),this.preOpenWaitlist!==null&&a.openWaitlist(this.preOpenWaitlist),this.preopenEnableOrganizationsPrompt&&a.__internal_openEnableOrganizationsPrompt(this.preopenEnableOrganizationsPrompt),this.premountSignInNodes.forEach((c,d)=>{a.mountSignIn(d,c)}),this.premountSignUpNodes.forEach((c,d)=>{a.mountSignUp(d,c)}),this.premountUserProfileNodes.forEach((c,d)=>{a.mountUserProfile(d,c)}),this.premountUserAvatarNodes.forEach((c,d)=>{a.mountUserAvatar(d,c)}),this.premountUserButtonNodes.forEach((c,d)=>{a.mountUserButton(d,c)}),this.premountOrganizationListNodes.forEach((c,d)=>{a.mountOrganizationList(d,c)}),this.premountWaitlistNodes.forEach((c,d)=>{a.mountWaitlist(d,c)}),this.premountPricingTableNodes.forEach((c,d)=>{a.mountPricingTable(d,c)}),this.premountAPIKeysNodes.forEach((c,d)=>{a.mountAPIKeys(d,c)}),this.premountOAuthConsentNodes.forEach((c,d)=>{a.__internal_mountOAuthConsent(d,c)}),this.premountTaskChooseOrganizationNodes.forEach((c,d)=>{a.mountTaskChooseOrganization(d,c)}),this.premountTaskResetPasswordNodes.forEach((c,d)=>{a.mountTaskResetPassword(d,c)}),typeof this.clerkjs.status>"u"&&yn(this,si).emit(oh.Status,"ready"),this.emitLoaded(),this.clerkjs},this.__experimental_checkout=(...a)=>{var s;return(s=this.clerkjs)==null?void 0:s.__experimental_checkout(...a)},this.__unstable__updateProps=async a=>{const s=await I1(this,Hc,qh).call(this);if(s&&"__unstable__updateProps"in s)return s.__unstable__updateProps(a)},this.setActive=a=>this.clerkjs?this.clerkjs.setActive(a):Promise.reject(),this.openSignIn=a=>{this.clerkjs&&this.loaded?this.clerkjs.openSignIn(a):this.preopenSignIn=a},this.closeSignIn=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__internal_openCheckout=a=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openCheckout(a):this.preopenCheckout=a},this.__internal_closeCheckout=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeCheckout():this.preopenCheckout=null},this.__internal_openPlanDetails=a=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openPlanDetails(a):this.preopenPlanDetails=a},this.__internal_closePlanDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closePlanDetails():this.preopenPlanDetails=null},this.__internal_openSubscriptionDetails=a=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openSubscriptionDetails(a):this.preopenSubscriptionDetails=a??null},this.__internal_closeSubscriptionDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeSubscriptionDetails():this.preopenSubscriptionDetails=null},this.__internal_openReverification=a=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openReverification(a):this.preopenUserVerification=a},this.__internal_closeReverification=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeReverification():this.preopenUserVerification=null},this.__internal_openEnableOrganizationsPrompt=a=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openEnableOrganizationsPrompt(a):this.preopenEnableOrganizationsPrompt=a},this.__internal_closeEnableOrganizationsPrompt=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeEnableOrganizationsPrompt():this.preopenEnableOrganizationsPrompt=null},this.openGoogleOneTap=a=>{this.clerkjs&&this.loaded?this.clerkjs.openGoogleOneTap(a):this.preopenOneTap=a},this.closeGoogleOneTap=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=a=>{this.clerkjs&&this.loaded?this.clerkjs.openUserProfile(a):this.preopenUserProfile=a},this.closeUserProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=a=>{this.clerkjs&&this.loaded?this.clerkjs.openOrganizationProfile(a):this.preopenOrganizationProfile=a},this.closeOrganizationProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openCreateOrganization=a=>{this.clerkjs&&this.loaded?this.clerkjs.openCreateOrganization(a):this.preopenCreateOrganization=a},this.closeCreateOrganization=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openWaitlist=a=>{this.clerkjs&&this.loaded?this.clerkjs.openWaitlist(a):this.preOpenWaitlist=a},this.closeWaitlist=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeWaitlist():this.preOpenWaitlist=null},this.openSignUp=a=>{this.clerkjs&&this.loaded?this.clerkjs.openSignUp(a):this.preopenSignUp=a},this.closeSignUp=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignUp():this.preopenSignUp=null},this.mountSignIn=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignIn(a,s):this.premountSignInNodes.set(a,s)},this.unmountSignIn=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignIn(a):this.premountSignInNodes.delete(a)},this.mountSignUp=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignUp(a,s):this.premountSignUpNodes.set(a,s)},this.unmountSignUp=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignUp(a):this.premountSignUpNodes.delete(a)},this.mountUserAvatar=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserAvatar(a,s):this.premountUserAvatarNodes.set(a,s)},this.unmountUserAvatar=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserAvatar(a):this.premountUserAvatarNodes.delete(a)},this.mountUserProfile=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserProfile(a,s):this.premountUserProfileNodes.set(a,s)},this.unmountUserProfile=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserProfile(a):this.premountUserProfileNodes.delete(a)},this.mountOrganizationProfile=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationProfile(a,s):this.premountOrganizationProfileNodes.set(a,s)},this.unmountOrganizationProfile=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationProfile(a):this.premountOrganizationProfileNodes.delete(a)},this.mountCreateOrganization=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountCreateOrganization(a,s):this.premountCreateOrganizationNodes.set(a,s)},this.unmountCreateOrganization=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountCreateOrganization(a):this.premountCreateOrganizationNodes.delete(a)},this.mountOrganizationSwitcher=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationSwitcher(a,s):this.premountOrganizationSwitcherNodes.set(a,s)},this.unmountOrganizationSwitcher=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationSwitcher(a):this.premountOrganizationSwitcherNodes.delete(a)},this.__experimental_prefetchOrganizationSwitcher=()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.__experimental_prefetchOrganizationSwitcher()};this.clerkjs&&this.loaded?a():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",a)},this.mountOrganizationList=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationList(a,s):this.premountOrganizationListNodes.set(a,s)},this.unmountOrganizationList=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationList(a):this.premountOrganizationListNodes.delete(a)},this.mountUserButton=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserButton(a,s):this.premountUserButtonNodes.set(a,s)},this.unmountUserButton=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserButton(a):this.premountUserButtonNodes.delete(a)},this.mountWaitlist=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountWaitlist(a,s):this.premountWaitlistNodes.set(a,s)},this.unmountWaitlist=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountWaitlist(a):this.premountWaitlistNodes.delete(a)},this.mountPricingTable=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountPricingTable(a,s):this.premountPricingTableNodes.set(a,s)},this.unmountPricingTable=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountPricingTable(a):this.premountPricingTableNodes.delete(a)},this.mountAPIKeys=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountAPIKeys(a,s):this.premountAPIKeysNodes.set(a,s)},this.unmountAPIKeys=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountAPIKeys(a):this.premountAPIKeysNodes.delete(a)},this.__internal_mountOAuthConsent=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountOAuthConsent(a,s):this.premountOAuthConsentNodes.set(a,s)},this.__internal_unmountOAuthConsent=a=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountOAuthConsent(a):this.premountOAuthConsentNodes.delete(a)},this.mountTaskChooseOrganization=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskChooseOrganization(a,s):this.premountTaskChooseOrganizationNodes.set(a,s)},this.unmountTaskChooseOrganization=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskChooseOrganization(a):this.premountTaskChooseOrganizationNodes.delete(a)},this.mountTaskResetPassword=(a,s)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskResetPassword(a,s):this.premountTaskResetPasswordNodes.set(a,s)},this.unmountTaskResetPassword=a=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskResetPassword(a):this.premountTaskResetPasswordNodes.delete(a)},this.addListener=a=>{if(this.clerkjs)return this.clerkjs.addListener(a);{const s=()=>{var o;const c=this.premountAddListenerCalls.get(a);c&&((o=c.nativeUnsubscribe)==null||o.call(c),this.premountAddListenerCalls.delete(a))};return this.premountAddListenerCalls.set(a,{unsubscribe:s,nativeUnsubscribe:void 0}),s}},this.navigate=a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.navigate(a)};this.clerkjs&&this.loaded?s():this.premountMethodCalls.set("navigate",s)},this.redirectWithAuth=async(...a)=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.redirectWithAuth(...a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectWithAuth",s)},this.redirectToSignIn=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.redirectToSignIn(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToSignIn",s)},this.redirectToSignUp=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.redirectToSignUp(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToSignUp",s)},this.redirectToUserProfile=async()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToUserProfile()};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectToUserProfile",a)},this.redirectToAfterSignUp=()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToAfterSignUp()};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectToAfterSignUp",a)},this.redirectToAfterSignIn=()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToAfterSignIn()};this.clerkjs&&this.loaded?a():this.premountMethodCalls.set("redirectToAfterSignIn",a)},this.redirectToAfterSignOut=()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToAfterSignOut()};this.clerkjs&&this.loaded?a():this.premountMethodCalls.set("redirectToAfterSignOut",a)},this.redirectToOrganizationProfile=async()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToOrganizationProfile()};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectToOrganizationProfile",a)},this.redirectToCreateOrganization=async()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToCreateOrganization()};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectToCreateOrganization",a)},this.redirectToWaitlist=async()=>{const a=()=>{var s;return(s=this.clerkjs)==null?void 0:s.redirectToWaitlist()};if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectToWaitlist",a)},this.redirectToTasks=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.redirectToTasks(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("redirectToTasks",s)},this.handleRedirectCallback=async a=>{var s;const o=()=>{var c;return(c=this.clerkjs)==null?void 0:c.handleRedirectCallback(a)};this.clerkjs&&this.loaded?(s=o())==null||s.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",o)},this.handleGoogleOneTapCallback=async(a,s)=>{var o;const c=()=>{var d;return(d=this.clerkjs)==null?void 0:d.handleGoogleOneTapCallback(a,s)};this.clerkjs&&this.loaded?(o=c())==null||o.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",c)},this.handleEmailLinkVerification=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.handleEmailLinkVerification(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("handleEmailLinkVerification",s)},this.authenticateWithMetamask=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithMetamask(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithMetamask",s)},this.authenticateWithCoinbaseWallet=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithCoinbaseWallet(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",s)},this.authenticateWithBase=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithBase(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithBase",s)},this.authenticateWithOKXWallet=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithOKXWallet(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithOKXWallet",s)},this.authenticateWithWeb3=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.authenticateWithWeb3(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("authenticateWithWeb3",s)},this.authenticateWithGoogleOneTap=async a=>(await I1(this,Hc,qh).call(this)).authenticateWithGoogleOneTap(a),this.__internal_loadStripeJs=async()=>(await I1(this,Hc,qh).call(this)).__internal_loadStripeJs(),this.createOrganization=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.createOrganization(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("createOrganization",s)},this.getOrganization=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.getOrganization(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("getOrganization",s)},this.joinWaitlist=async a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.joinWaitlist(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("joinWaitlist",s)},this.signOut=async(...a)=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.signOut(...a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("signOut",s)},this.__internal_attemptToEnableEnvironmentSetting=a=>{const s=()=>{var o;return(o=this.clerkjs)==null?void 0:o.__internal_attemptToEnableEnvironmentSetting(a)};if(this.clerkjs&&this.loaded)return s();this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting",s)};const{Clerk:n=null,publishableKey:r}=t||{};Dl(this,Gs,r),Dl(this,Ho,t==null?void 0:t.proxyUrl),Dl(this,zo,t==null?void 0:t.domain),this.options=t,this.Clerk=n,this.mode=tf()?"browser":"server",Dl(this,Hh,new GO(this)),this.options.sdkMetadata||(this.options.sdkMetadata=VO),yn(this,si).emit(oh.Status,"loading"),yn(this,si).prioritizedOn(oh.Status,a=>Dl(this,zh,a)),yn(this,Gs)&&this.loadClerkJS()}get publishableKey(){return yn(this,Gs)}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"):yn(this,zh)}static getOrCreateInstance(t){return(!tf()||!yn(this,Xs)||t.Clerk&&yn(this,Xs).Clerk!==t.Clerk||yn(this,Xs).publishableKey!==t.publishableKey)&&Dl(this,Xs,new $8(t)),yn(this,Xs)}static clearInstance(){Dl(this,Xs,null)}get domain(){return typeof window<"u"&&window.location?C1(yn(this,zo),new URL(window.location.href),""):typeof yn(this,zo)=="function"?Xa.throw(k1):yn(this,zo)||""}get proxyUrl(){return typeof window<"u"&&window.location?C1(yn(this,Ho),new URL(window.location.href),""):typeof yn(this,Ho)=="function"?Xa.throw(k1):yn(this,Ho)||""}__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?C1(this.options.isSatellite,new URL(window.location.href),!1):typeof this.options.isSatellite=="function"?Xa.throw(k1):!1}async loadClerkJS(){var t;if(!(this.mode!=="browser"||this.loaded)){typeof window<"u"&&(window.__clerk_publishable_key=yn(this,Gs),window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{if(this.Clerk){let n;eO(this.Clerk)?(n=new this.Clerk(yn(this,Gs),{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 LO({...this.options,publishableKey:yn(this,Gs),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;yn(this,si).emit(oh.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:yn(this,Hh)}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}};zh=new WeakMap;zo=new WeakMap;Ho=new WeakMap;Gs=new WeakMap;si=new WeakMap;Hh=new WeakMap;Xs=new WeakMap;Hc=new WeakSet;qh=function(){return new Promise(e=>{this.addOnLoaded(()=>e(this.clerkjs))})};Ys(j8,Xs);var N_=j8;function KO(e){const{isomorphicClerkOptions:t,initialState:n,children:r}=e,{isomorphicClerk:a,clerkStatus:s}=WO(t),[o,c]=ce.useState({client:a.client,session:a.session,user:a.user,organization:a.organization});ce.useEffect(()=>a.addListener(de=>c({...de})),[]);const d=FO(a.loaded,o,n),f=ce.useMemo(()=>({value:a}),[s]),m=ce.useMemo(()=>({value:o.client}),[o.client]),{sessionId:p,sessionStatus:b,sessionClaims:y,session:T,userId:x,user:C,orgId:w,actor:O,organization:D,orgRole:j,orgSlug:z,orgPermissions:U,factorVerificationAge:ee}=d,Z=ce.useMemo(()=>({value:{sessionId:p,sessionStatus:b,sessionClaims:y,userId:x,actor:O,orgId:w,orgRole:j,orgSlug:z,orgPermissions:U,factorVerificationAge:ee}}),[p,b,x,O,w,j,z,ee,y==null?void 0:y.__raw]),Q=ce.useMemo(()=>({value:T}),[p,T]),G=ce.useMemo(()=>({value:C}),[x,C]),se=ce.useMemo(()=>({value:{organization:D}}),[w,D]);return ce.createElement(kN.Provider,{value:f},ce.createElement(iN.Provider,{value:m},ce.createElement(sN.Provider,{value:Q},ce.createElement(dN,{...se.value},ce.createElement(wN.Provider,{value:Z},ce.createElement(aN.Provider,{value:G},ce.createElement(oN,{value:void 0},r)))))))}var WO=e=>{const t=ce.useRef(N_.getOrCreateInstance(e)),[n,r]=ce.useState(t.current.status);return ce.useEffect(()=>{t.current.__unstable__updateProps({appearance:e.appearance})},[e.appearance]),ce.useEffect(()=>{t.current.__unstable__updateProps({options:e})},[e.localization]),ce.useEffect(()=>(t.current.on("status",r),()=>{t.current&&t.current.off("status",r),N_.clearInstance()}),[]),{isomorphicClerk:t.current,clerkStatus:n}};function XO(e){const{initialState:t,children:n,__internal_bypassMissingPublishableKey:r,...a}=e,{publishableKey:s="",Clerk:o}=a;return!o&&!r&&(s?s&&!qg(s)&&Xa.throwInvalidPublishableKeyError({key:s}):Xa.throwMissingPublishableKeyError()),ce.createElement(KO,{initialState:t,isomorphicClerkOptions:a},n)}var Y8=nO(XO,"ClerkProvider",CN);Y8.displayName="ClerkProvider";SN({packageName:"@clerk/clerk-react"});IO("@clerk/clerk-react");function O_(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const o=n.slice(a,r).trim();(o||!s)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function G8(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const QO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JO={};function R_(e,t){return(JO.jsx?ZO:QO).test(e)}const eR=/[ \t\n\f\r]/g;function tR(e){return typeof e=="object"?e.type==="text"?M_(e.value):!1:M_(e)}function M_(e){return e.replace(eR,"")===""}let R0=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};R0.prototype.normal={};R0.prototype.property={};R0.prototype.space=void 0;function V8(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new R0(n,r,t)}function h0(e){return e.toLowerCase()}let ra=class{constructor(t,n){this.attribute=n,this.property=t}};ra.prototype.attribute="";ra.prototype.booleanish=!1;ra.prototype.boolean=!1;ra.prototype.commaOrSpaceSeparated=!1;ra.prototype.commaSeparated=!1;ra.prototype.defined=!1;ra.prototype.mustUseProperty=!1;ra.prototype.number=!1;ra.prototype.overloadedBoolean=!1;ra.prototype.property="";ra.prototype.spaceSeparated=!1;ra.prototype.space=void 0;let nR=0;const wt=Ql(),Xn=Ql(),Jg=Ql(),Me=Ql(),hn=Ql(),Wo=Ql(),pa=Ql();function Ql(){return 2**++nR}const eb=Object.freeze(Object.defineProperty({__proto__:null,boolean:wt,booleanish:Xn,commaOrSpaceSeparated:pa,commaSeparated:Wo,number:Me,overloadedBoolean:Jg,spaceSeparated:hn},Symbol.toStringTag,{value:"Module"})),D1=Object.keys(eb);let h2=class extends ra{constructor(t,n,r,a){let s=-1;if(super(t,n),I_(this,"space",a),typeof r=="number")for(;++s<D1.length;){const o=D1[s];I_(this,D1[s],(r&eb[o])===eb[o])}}};h2.prototype.defined=!0;function I_(e,t,n){n&&(e[t]=n)}function hu(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new h2(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[h0(r)]=r,n[h0(s.attribute)]=r}return new R0(t,n,e.space)}const K8=hu({properties:{ariaActiveDescendant:null,ariaAtomic:Xn,ariaAutoComplete:null,ariaBusy:Xn,ariaChecked:Xn,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:hn,ariaCurrent:null,ariaDescribedBy:hn,ariaDetails:null,ariaDisabled:Xn,ariaDropEffect:hn,ariaErrorMessage:null,ariaExpanded:Xn,ariaFlowTo:hn,ariaGrabbed:Xn,ariaHasPopup:null,ariaHidden:Xn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hn,ariaLevel:Me,ariaLive:null,ariaModal:Xn,ariaMultiLine:Xn,ariaMultiSelectable:Xn,ariaOrientation:null,ariaOwns:hn,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:Xn,ariaReadOnly:Xn,ariaRelevant:null,ariaRequired:Xn,ariaRoleDescription:hn,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:Xn,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function W8(e,t){return t in e?e[t]:t}function X8(e,t){return W8(e,t.toLowerCase())}const rR=hu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wo,acceptCharset:hn,accessKey:hn,action:null,allow:null,allowFullScreen:wt,allowPaymentRequest:wt,allowUserMedia:wt,alt:null,as:null,async:wt,autoCapitalize:null,autoComplete:hn,autoFocus:wt,autoPlay:wt,blocking:hn,capture:null,charSet:null,checked:wt,cite:null,className:hn,cols:Me,colSpan:null,content:null,contentEditable:Xn,controls:wt,controlsList:hn,coords:Me|Wo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wt,defer:wt,dir:null,dirName:null,disabled:wt,download:Jg,draggable:Xn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wt,formTarget:null,headers:hn,height:Me,hidden:Jg,high:Me,href:null,hrefLang:null,htmlFor:hn,httpEquiv:hn,id:null,imageSizes:null,imageSrcSet:null,inert:wt,inputMode:null,integrity:null,is:null,isMap:wt,itemId:null,itemProp:hn,itemRef:hn,itemScope:wt,itemType:hn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wt,low:Me,manifest:null,max:null,maxLength:Me,media:null,method:null,min:null,minLength:Me,multiple:wt,muted:wt,name:null,nonce:null,noModule:wt,noValidate:wt,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:wt,optimum:Me,pattern:null,ping:hn,placeholder:null,playsInline:wt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wt,referrerPolicy:null,rel:hn,required:wt,reversed:wt,rows:Me,rowSpan:Me,sandbox:hn,scope:null,scoped:wt,seamless:wt,selected:wt,shadowRootClonable:wt,shadowRootDelegatesFocus:wt,shadowRootMode:null,shape:null,size:Me,sizes:null,slot:null,span:Me,spellCheck:Xn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Me,step:null,style:null,tabIndex:Me,target:null,title:null,translate:null,type:null,typeMustMatch:wt,useMap:null,value:Xn,width:Me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hn,axis:null,background:null,bgColor:null,border:Me,borderColor:null,bottomMargin:Me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wt,declare:wt,event:null,face:null,frame:null,frameBorder:null,hSpace:Me,leftMargin:Me,link:null,longDesc:null,lowSrc:null,marginHeight:Me,marginWidth:Me,noResize:wt,noHref:wt,noShade:wt,noWrap:wt,object:null,profile:null,prompt:null,rev:null,rightMargin:Me,rules:null,scheme:null,scrolling:Xn,standby:null,summary:null,text:null,topMargin:Me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:wt,disableRemotePlayback:wt,prefix:null,property:null,results:Me,security:null,unselectable:null},space:"html",transform:X8}),aR=hu({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:pa,accentHeight:Me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Me,amplitude:Me,arabicForm:null,ascent:Me,attributeName:null,attributeType:null,azimuth:Me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Me,by:null,calcMode:null,capHeight:Me,className:hn,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:Me,diffuseConstant:Me,direction:null,display:null,dur:null,divisor:Me,dominantBaseline:null,download:wt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Me,enableBackground:null,end:null,event:null,exponent:Me,externalResourcesRequired:null,fill:null,fillOpacity:Me,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:Wo,g2:Wo,glyphName:Wo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Me,horizOriginX:Me,horizOriginY:Me,id:null,ideographic:Me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Me,k:Me,k1:Me,k2:Me,k3:Me,k4:Me,kernelMatrix:pa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Me,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:Me,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:Me,overlineThickness:Me,paintOrder:null,panose1:null,path:null,pathLength:Me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:hn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Me,pointsAtY:Me,pointsAtZ:Me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pa,rev:pa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pa,requiredFeatures:pa,requiredFonts:pa,requiredFormats:pa,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:Me,specularExponent:Me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Me,strikethroughThickness:Me,string:null,stroke:null,strokeDashArray:pa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Me,strokeOpacity:Me,strokeWidth:null,style:null,surfaceScale:Me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pa,tabIndex:Me,tableValues:null,target:null,targetX:Me,targetY:Me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Me,underlineThickness:Me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Me,values:null,vAlphabetic:Me,vMathematical:Me,vectorEffect:null,vHanging:Me,vIdeographic:Me,version:null,vertAdvY:Me,vertOriginX:Me,vertOriginY:Me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:W8}),Q8=hu({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()}}),Z8=hu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:X8}),J8=hu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iR={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"},sR=/[A-Z]/g,D_=/-[a-z]/g,lR=/^data[-\w.:]+$/i;function f2(e,t){const n=h0(t);let r=t,a=ra;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lR.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(D_,uR);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!D_.test(s)){let o=s.replace(sR,oR);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=h2}return new a(r,t)}function oR(e){return"-"+e.toLowerCase()}function uR(e){return e.charAt(1).toUpperCase()}const $f=V8([K8,rR,Q8,Z8,J8],"html"),fu=V8([K8,aR,Q8,Z8,J8],"svg");function L_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function e7(e){return e.join(" ").trim()}var Lo={},L1,P_;function cR(){if(P_)return L1;P_=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
91
|
-
`,f="/",m="*",p="",b="comment",y="declaration";L1=function(x,C){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];C=C||{};var w=1,O=1;function D(ve){var oe=ve.match(t);oe&&(w+=oe.length);var ye=ve.lastIndexOf(d);O=~ye?ve.length-ye:O+ve.length}function j(){var ve={line:w,column:O};return function(oe){return oe.position=new z(ve),Z(),oe}}function z(ve){this.start=ve,this.end={line:w,column:O},this.source=C.source}z.prototype.content=x;function U(ve){var oe=new Error(C.source+":"+w+":"+O+": "+ve);if(oe.reason=ve,oe.filename=C.source,oe.line=w,oe.column=O,oe.source=x,!C.silent)throw oe}function ee(ve){var oe=ve.exec(x);if(oe){var ye=oe[0];return D(ye),x=x.slice(ye.length),oe}}function Z(){ee(n)}function Q(ve){var oe;for(ve=ve||[];oe=G();)oe!==!1&&ve.push(oe);return ve}function G(){var ve=j();if(!(f!=x.charAt(0)||m!=x.charAt(1))){for(var oe=2;p!=x.charAt(oe)&&(m!=x.charAt(oe)||f!=x.charAt(oe+1));)++oe;if(oe+=2,p===x.charAt(oe-1))return U("End of comment missing");var ye=x.slice(2,oe-2);return O+=2,D(ye),x=x.slice(oe),O+=2,ve({type:b,comment:ye})}}function se(){var ve=j(),oe=ee(r);if(oe){if(G(),!ee(a))return U("property missing ':'");var ye=ee(s),V=ve({type:y,property:T(oe[0].replace(e,p)),value:ye?T(ye[0].replace(e,p)):p});return ee(o),V}}function de(){var ve=[];Q(ve);for(var oe;oe=se();)oe!==!1&&(ve.push(oe),Q(ve));return ve}return Z(),de()};function T(x){return x?x.replace(c,p):p}return L1}var B_;function dR(){if(B_)return Lo;B_=1;var e=Lo&&Lo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=n;var t=e(cR());function n(r,a){var s=null;if(!r||typeof r!="string")return s;var o=(0,t.default)(r),c=typeof a=="function";return o.forEach(function(d){if(d.type==="declaration"){var f=d.property,m=d.value;c?a(f,m,d):m&&(s=s||{},s[f]=m)}}),s}return Lo}var wc={},U_;function hR(){if(U_)return wc;U_=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(f){return!f||n.test(f)||e.test(f)},o=function(f,m){return m.toUpperCase()},c=function(f,m){return"".concat(m,"-")},d=function(f,m){return m===void 0&&(m={}),s(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(a,c):f=f.replace(r,c),f.replace(t,o))};return wc.camelCase=d,wc}var Ac,F_;function fR(){if(F_)return Ac;F_=1;var e=Ac&&Ac.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(dR()),n=hR();function r(a,s){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(c,d){c&&d&&(o[(0,n.camelCase)(c,s)]=d)}),o}return r.default=r,Ac=r,Ac}var mR=fR();const pR=If(mR),Yf=t7("end"),yi=t7("start");function t7(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 gR(e){const t=yi(e),n=Yf(e);if(t&&n)return{start:t,end:n}}function Jc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?z_(e.position):"start"in e||"end"in e?z_(e):"line"in e||"column"in e?tb(e):""}function tb(e){return H_(e&&e.line)+":"+H_(e&&e.column)}function z_(e){return tb(e&&e.start)+"-"+tb(e&&e.end)}function H_(e){return e&&typeof e=="number"?e:1}class Nr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?a=t:!s.cause&&t&&(o=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?s.ruleId=r:(s.source=r.slice(0,d),s.ruleId=r.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=c?c.line:void 0,this.name=Jc(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Nr.prototype.file="";Nr.prototype.name="";Nr.prototype.reason="";Nr.prototype.message="";Nr.prototype.stack="";Nr.prototype.column=void 0;Nr.prototype.line=void 0;Nr.prototype.ancestors=void 0;Nr.prototype.cause=void 0;Nr.prototype.fatal=void 0;Nr.prototype.place=void 0;Nr.prototype.ruleId=void 0;Nr.prototype.source=void 0;const m2={}.hasOwnProperty,bR=new Map,vR=/[A-Z]/g,yR=new Set(["table","tbody","thead","tfoot","tr"]),_R=new Set(["td","th"]),n7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ER(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=NR(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=CR(n,t.jsx,t.jsxs)}const a={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"?fu:$f,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=r7(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function r7(e,t,n){if(t.type==="element")return TR(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xR(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return wR(e,t,n);if(t.type==="mdxjsEsm")return SR(e,t);if(t.type==="root")return AR(e,t,n);if(t.type==="text")return kR(e,t)}function TR(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=fu,e.schema=a),e.ancestors.push(t);const s=i7(e,t.tagName,!1),o=OR(e,t);let c=g2(e,t);return yR.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!tR(d):!0})),a7(e,o,s,t),p2(o,c),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function xR(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)}f0(e,t.position)}function SR(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);f0(e,t.position)}function wR(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=fu,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:i7(e,t.name,!0),o=RR(e,t),c=g2(e,t);return a7(e,o,s,t),p2(o,c),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function AR(e,t,n){const r={};return p2(r,g2(e,t)),e.create(t,e.Fragment,r,n)}function kR(e,t){return t.value}function a7(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function p2(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function CR(e,t,n){return r;function r(a,s,o,c){const f=Array.isArray(o.children)?n:t;return c?f(s,o,c):f(s,o)}}function NR(e,t){return n;function n(r,a,s,o){const c=Array.isArray(s.children),d=yi(r);return t(a,s,o,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function OR(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&m2.call(t.properties,a)){const s=MR(e,a,t.properties[a]);if(s){const[o,c]=s;e.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&_R.has(t.tagName)?r=c:n[o]=c}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function RR(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const c=o.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else f0(e,t.position);else{const a=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,s=e.evaluater.evaluateExpression(c.expression)}else f0(e,t.position);else s=r.value===null?!0:r.value;n[a]=s}return n}function g2(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:bR;for(;++r<t.children.length;){const s=t.children[r];let o;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const f=a.get(d)||0;o=d+"-"+f,a.set(d,f+1)}}const c=r7(e,s,o);c!==void 0&&n.push(c)}return n}function MR(e,t,n){const r=f2(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?G8(n):e7(n)),r.property==="style"){let a=typeof n=="object"?n:IR(e,String(n));return e.stylePropertyNameCase==="css"&&(a=DR(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?iR[r.property]||r.property:r.attribute,n]}}function IR(e,t){try{return pR(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Nr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=n7+"#cannot-parse-style-attribute",a}}function i7(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,o;for(;++s<a.length;){const c=R_(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}r=o}else r=R_(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return m2.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);f0(e)}function f0(e,t){const n=new Nr("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=n7+"#cannot-handle-mdx-estrees-without-createevaluater",n}function DR(e){const t={};let n;for(n in e)m2.call(e,n)&&(t[LR(n)]=e[n]);return t}function LR(e){let t=e.replace(vR,PR);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function PR(e){return"-"+e.toLowerCase()}const P1={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"]},BR={};function b2(e,t){const n=BR,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return s7(e,r,a)}function s7(e,t,n){if(UR(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 q_(e.children,t,n)}return Array.isArray(e)?q_(e,t,n):""}function q_(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=s7(e[a],t,n);return r.join("")}function UR(e){return!!(e&&typeof e=="object")}const j_=document.createElement("i");function v2(e){const t="&"+e+";";j_.innerHTML=t;const n=j_.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function _a(e,t,n,r){const a=e.length;let s=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a: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);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Ra(e,t){return e.length>0?(_a(e,e.length,0,t),e):t}const $_={}.hasOwnProperty;function l7(e){const t={};let n=-1;for(;++n<e.length;)FR(t,e[n]);return t}function FR(e,t){let n;for(n in t){const a=($_.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){$_.call(a,o)||(a[o]=[]);const c=s[o];zR(a[o],Array.isArray(c)?c:c?[c]:[])}}}function zR(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);_a(e,0,0,r)}function o7(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 Qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hr=ol(/[A-Za-z]/),Cr=ol(/[\dA-Za-z]/),HR=ol(/[#-'*+\--9=?A-Z^-~]/);function nf(e){return e!==null&&(e<32||e===127)}const nb=ol(/\d/),qR=ol(/[\dA-Fa-f]/),jR=ol(/[!-/:-@[-`{-~]/);function rt(e){return e!==null&&e<-2}function ln(e){return e!==null&&(e<0||e===32)}function Pt(e){return e===-2||e===-1||e===32}const Gf=ol(new RegExp("\\p{P}|\\p{S}","u")),Yl=ol(/\s/);function ol(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function mu(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&Cr(e.charCodeAt(n+1))&&Cr(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const c=e.charCodeAt(n+1);s<56320&&c>56319&&c<57344?(o=String.fromCharCode(s,c),a=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Rt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(d){return Pt(d)?(e.enter(n),c(d)):t(d)}function c(d){return Pt(d)&&s++<a?(e.consume(d),c):(e.exit(n),t(d))}}const $R={tokenize:YR};function YR(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Rt(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),s(c)}function s(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,o(c)}function o(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return rt(c)?(e.consume(c),e.exit("chunkText"),s):(e.consume(c),o)}}const GR={tokenize:VR},Y_={tokenize:KR};function VR(e){const t=this,n=[];let r=0,a,s,o;return c;function c(D){if(r<n.length){const j=n[r];return t.containerState=j[1],e.attempt(j[0].continuation,d,f)(D)}return f(D)}function d(D){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&O();const j=t.events.length;let z=j,U;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){U=t.events[z][1].end;break}w(r);let ee=j;for(;ee<t.events.length;)t.events[ee][1].end={...U},ee++;return _a(t.events,z+1,0,t.events.slice(j)),t.events.length=ee,f(D)}return c(D)}function f(D){if(r===n.length){if(!a)return b(D);if(a.currentConstruct&&a.currentConstruct.concrete)return T(D);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Y_,m,p)(D)}function m(D){return a&&O(),w(r),b(D)}function p(D){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,T(D)}function b(D){return t.containerState={},e.attempt(Y_,y,T)(D)}function y(D){return r++,n.push([t.currentConstruct,t.containerState]),b(D)}function T(D){if(D===null){a&&O(),w(0),e.consume(D);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),x(D)}function x(D){if(D===null){C(e.exit("chunkFlow"),!0),w(0),e.consume(D);return}return rt(D)?(e.consume(D),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(D),x)}function C(D,j){const z=t.sliceStream(D);if(j&&z.push(null),D.previous=s,s&&(s.next=D),s=D,a.defineSkip(D.start),a.write(z),t.parser.lazy[D.start.line]){let U=a.events.length;for(;U--;)if(a.events[U][1].start.offset<o&&(!a.events[U][1].end||a.events[U][1].end.offset>o))return;const ee=t.events.length;let Z=ee,Q,G;for(;Z--;)if(t.events[Z][0]==="exit"&&t.events[Z][1].type==="chunkFlow"){if(Q){G=t.events[Z][1].end;break}Q=!0}for(w(r),U=ee;U<t.events.length;)t.events[U][1].end={...G},U++;_a(t.events,Z+1,0,t.events.slice(ee)),t.events.length=U}}function w(D){let j=n.length;for(;j-- >D;){const z=n[j];t.containerState=z[1],z[0].exit.call(t,e)}n.length=D}function O(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function KR(e,t,n){return Rt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tu(e){if(e===null||ln(e)||Yl(e))return 1;if(Gf(e))return 2}function Vf(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const rb={name:"attention",resolveAll:WR,tokenize:XR};function WR(e,t){let n=-1,r,a,s,o,c,d,f,m;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;d=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 p={...e[r][1].end},b={...e[n][1].start};G_(p,-d),G_(b,d),o={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},s={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},e[r][1].end={...o.start},e[n][1].start={...c.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=Ra(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=Ra(f,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",s,t]]),f=Ra(f,Vf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=Ra(f,[["exit",s,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,f=Ra(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,_a(e,r-1,n-r+3,f),n=r+f.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function XR(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=tu(r);let s;return o;function o(d){return s=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===s)return e.consume(d),c;const f=e.exit("attentionSequence"),m=tu(d),p=!m||m===2&&a||n.includes(d),b=!a||a===2&&m||n.includes(r);return f._open=!!(s===42?p:p&&(a||!b)),f._close=!!(s===42?b:b&&(m||!p)),t(d)}}function G_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const QR={name:"autolink",tokenize:ZR};function ZR(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return Hr(y)?(e.consume(y),o):y===64?n(y):f(y)}function o(y){return y===43||y===45||y===46||Cr(y)?(r=1,c(y)):f(y)}function c(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||Cr(y))&&r++<32?(e.consume(y),c):(r=0,f(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||nf(y)?n(y):(e.consume(y),d)}function f(y){return y===64?(e.consume(y),m):HR(y)?(e.consume(y),f):n(y)}function m(y){return Cr(y)?p(y):n(y)}function p(y){return y===46?(e.consume(y),r=0,m):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||Cr(y))&&r++<63){const T=y===45?b:p;return e.consume(y),T}return n(y)}}const M0={partial:!0,tokenize:JR};function JR(e,t,n){return r;function r(s){return Pt(s)?Rt(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||rt(s)?t(s):n(s)}}const u7={continuation:{tokenize:tM},exit:nM,name:"blockQuote",tokenize:eM};function eM(e,t,n){const r=this;return a;function a(o){if(o===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return Pt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function tM(e,t,n){const r=this;return a;function a(o){return Pt(o)?Rt(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(u7,t,n)(o)}}function nM(e){e.exit("blockQuote")}const c7={name:"characterEscape",tokenize:rM};function rM(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return jR(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const d7={name:"characterReference",tokenize:aM};function aM(e,t,n){const r=this;let a=0,s,o;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),s=31,o=Cr,m(p))}function f(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=qR,m):(e.enter("characterReferenceValue"),s=7,o=nb,m(p))}function m(p){if(p===59&&a){const b=e.exit("characterReferenceValue");return o===Cr&&!v2(r.sliceSerialize(b))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&a++<s?(e.consume(p),m):n(p)}}const V_={partial:!0,tokenize:sM},K_={concrete:!0,name:"codeFenced",tokenize:iM};function iM(e,t,n){const r=this,a={partial:!0,tokenize:z};let s=0,o=0,c;return d;function d(U){return f(U)}function f(U){const ee=r.events[r.events.length-1];return s=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,c=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(U)}function m(U){return U===c?(o++,e.consume(U),m):o<3?n(U):(e.exit("codeFencedFenceSequence"),Pt(U)?Rt(e,p,"whitespace")(U):p(U))}function p(U){return U===null||rt(U)?(e.exit("codeFencedFence"),r.interrupt?t(U):e.check(V_,x,j)(U)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(U))}function b(U){return U===null||rt(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(U)):Pt(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Rt(e,y,"whitespace")(U)):U===96&&U===c?n(U):(e.consume(U),b)}function y(U){return U===null||rt(U)?p(U):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(U))}function T(U){return U===null||rt(U)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(U)):U===96&&U===c?n(U):(e.consume(U),T)}function x(U){return e.attempt(a,j,C)(U)}function C(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),w}function w(U){return s>0&&Pt(U)?Rt(e,O,"linePrefix",s+1)(U):O(U)}function O(U){return U===null||rt(U)?e.check(V_,x,j)(U):(e.enter("codeFlowValue"),D(U))}function D(U){return U===null||rt(U)?(e.exit("codeFlowValue"),O(U)):(e.consume(U),D)}function j(U){return e.exit("codeFenced"),t(U)}function z(U,ee,Z){let Q=0;return G;function G(ye){return U.enter("lineEnding"),U.consume(ye),U.exit("lineEnding"),se}function se(ye){return U.enter("codeFencedFence"),Pt(ye)?Rt(U,de,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ye):de(ye)}function de(ye){return ye===c?(U.enter("codeFencedFenceSequence"),ve(ye)):Z(ye)}function ve(ye){return ye===c?(Q++,U.consume(ye),ve):Q>=o?(U.exit("codeFencedFenceSequence"),Pt(ye)?Rt(U,oe,"whitespace")(ye):oe(ye)):Z(ye)}function oe(ye){return ye===null||rt(ye)?(U.exit("codeFencedFence"),ee(ye)):Z(ye)}}}function sM(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const B1={name:"codeIndented",tokenize:oM},lM={partial:!0,tokenize:uM};function oM(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),Rt(e,s,"linePrefix",5)(f)}function s(f){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?o(f):n(f)}function o(f){return f===null?d(f):rt(f)?e.attempt(lM,o,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||rt(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function uM(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):rt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Rt(e,s,"linePrefix",5)(o)}function s(o){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):rt(o)?a(o):n(o)}}const cM={name:"codeText",previous:hM,resolve:dM,tokenize:fM};function dM(e){let t=e.length-4,n=3,r,a;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;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function hM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fM(e,t,n){let r=0,a,s;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),r++,c):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(s=e.enter("codeTextSequence"),a=0,m(p)):rt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(p))}function f(p){return p===null||p===32||p===96||rt(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),f)}function m(p){return p===96?(e.consume(p),a++,m):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",f(p))}}class mM{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 a=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&kc(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),kc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),kc(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);kc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);kc(this.left,n.reverse())}}}function kc(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 h7(e){const t={};let n=-1,r,a,s,o,c,d,f;const m=new mM(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,pM(m,n)),n=t[n],f=!0);else if(r[1]._container){for(s=n,a=void 0;s--;)if(o=m.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...m.get(a)[1].start},c=m.slice(a,n),c.unshift(r),m.splice(a,n-a+1,c))}}return _a(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!f}function pM(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,d=[],f={};let m,p,b=-1,y=n,T=0,x=0;const C=[x];for(;y;){for(;e.get(++a)[1]!==y;);s.push(a),y._tokenizer||(m=r.sliceStream(y),y.next||m.push(null),p&&o.defineSkip(y.start),y._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(m),y._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=y,y=y.next}for(y=n;++b<c.length;)c[b][0]==="exit"&&c[b-1][0]==="enter"&&c[b][1].type===c[b-1][1].type&&c[b][1].start.line!==c[b][1].end.line&&(x=b+1,C.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(o.events=[],y?(y._tokenizer=void 0,y.previous=void 0):C.pop(),b=C.length;b--;){const w=c.slice(C[b],C[b+1]),O=s.pop();d.push([O,O+w.length-1]),e.splice(O,2,w)}for(d.reverse(),b=-1;++b<d.length;)f[T+d[b][0]]=T+d[b][1],T+=d[b][1]-d[b][0]-1;return f}const gM={resolve:vM,tokenize:yM},bM={partial:!0,tokenize:_M};function vM(e){return h7(e),e}function yM(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?s(c):rt(c)?e.check(bM,o,s)(c):(e.consume(c),a)}function s(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function o(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function _M(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Rt(e,s,"linePrefix")}function s(o){if(o===null||rt(o))return n(o);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function f7(e,t,n,r,a,s,o,c,d){const f=d||Number.POSITIVE_INFINITY;let m=0;return p;function p(w){return w===60?(e.enter(r),e.enter(a),e.enter(s),e.consume(w),e.exit(s),b):w===null||w===32||w===41||nf(w)?n(w):(e.enter(r),e.enter(o),e.enter(c),e.enter("chunkString",{contentType:"string"}),x(w))}function b(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===62?(e.exit("chunkString"),e.exit(c),b(w)):w===null||w===60||rt(w)?n(w):(e.consume(w),w===92?T:y)}function T(w){return w===60||w===62||w===92?(e.consume(w),y):y(w)}function x(w){return!m&&(w===null||w===41||ln(w))?(e.exit("chunkString"),e.exit(c),e.exit(o),e.exit(r),t(w)):m<f&&w===40?(e.consume(w),m++,x):w===41?(e.consume(w),m--,x):w===null||w===32||w===40||nf(w)?n(w):(e.consume(w),w===92?C:x)}function C(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function m7(e,t,n,r,a,s){const o=this;let c=0,d;return f;function f(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(s),m}function m(y){return c>999||y===null||y===91||y===93&&!d||y===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(y):y===93?(e.exit(s),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):rt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||y===91||y===93||rt(y)||c++>999?(e.exit("chunkString"),m(y)):(e.consume(y),d||(d=!Pt(y)),y===92?b:p)}function b(y){return y===91||y===92||y===93?(e.consume(y),c++,p):p(y)}}function p7(e,t,n,r,a,s){let o;return c;function c(b){return b===34||b===39||b===40?(e.enter(r),e.enter(a),e.consume(b),e.exit(a),o=b===40?41:b,d):n(b)}function d(b){return b===o?(e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):(e.enter(s),f(b))}function f(b){return b===o?(e.exit(s),d(o)):b===null?n(b):rt(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Rt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===o||b===null||rt(b)?(e.exit("chunkString"),f(b)):(e.consume(b),b===92?p:m)}function p(b){return b===o||b===92?(e.consume(b),m):m(b)}}function e0(e,t){let n;return r;function r(a){return rt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Pt(a)?Rt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const EM={name:"definition",tokenize:xM},TM={partial:!0,tokenize:SM};function xM(e,t,n){const r=this;let a;return s;function s(y){return e.enter("definition"),o(y)}function o(y){return m7.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return a=Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return ln(y)?e0(e,f)(y):f(y)}function f(y){return f7(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return e.attempt(TM,p,p)(y)}function p(y){return Pt(y)?Rt(e,b,"whitespace")(y):b(y)}function b(y){return y===null||rt(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function SM(e,t,n){return r;function r(c){return ln(c)?e0(e,a)(c):n(c)}function a(c){return p7(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return Pt(c)?Rt(e,o,"whitespace")(c):o(c)}function o(c){return c===null||rt(c)?t(c):n(c)}}const wM={name:"hardBreakEscape",tokenize:AM};function AM(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return rt(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const kM={name:"headingAtx",resolve:CM,tokenize:NM};function CM(e,t){let n=e.length-2,r=3,a,s;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&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},_a(e,r,n-r+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function NM(e,t,n){let r=0;return a;function a(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),o(m)}function o(m){return m===35&&r++<6?(e.consume(m),o):m===null||ln(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||rt(m)?(e.exit("atxHeading"),t(m)):Pt(m)?Rt(e,c,"whitespace")(m):(e.enter("atxHeadingText"),f(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function f(m){return m===null||m===35||ln(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),f)}}const OM=["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"],W_=["pre","script","style","textarea"],RM={concrete:!0,name:"htmlFlow",resolveTo:DM,tokenize:LM},MM={partial:!0,tokenize:BM},IM={partial:!0,tokenize:PM};function DM(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 LM(e,t,n){const r=this;let a,s,o,c,d;return f;function f(L){return m(L)}function m(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),p}function p(L){return L===33?(e.consume(L),b):L===47?(e.consume(L),s=!0,x):L===63?(e.consume(L),a=3,r.interrupt?t:A):Hr(L)?(e.consume(L),o=String.fromCharCode(L),C):n(L)}function b(L){return L===45?(e.consume(L),a=2,y):L===91?(e.consume(L),a=5,c=0,T):Hr(L)?(e.consume(L),a=4,r.interrupt?t:A):n(L)}function y(L){return L===45?(e.consume(L),r.interrupt?t:A):n(L)}function T(L){const Oe="CDATA[";return L===Oe.charCodeAt(c++)?(e.consume(L),c===Oe.length?r.interrupt?t:de:T):n(L)}function x(L){return Hr(L)?(e.consume(L),o=String.fromCharCode(L),C):n(L)}function C(L){if(L===null||L===47||L===62||ln(L)){const Oe=L===47,He=o.toLowerCase();return!Oe&&!s&&W_.includes(He)?(a=1,r.interrupt?t(L):de(L)):OM.includes(o.toLowerCase())?(a=6,Oe?(e.consume(L),w):r.interrupt?t(L):de(L)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):s?O(L):D(L))}return L===45||Cr(L)?(e.consume(L),o+=String.fromCharCode(L),C):n(L)}function w(L){return L===62?(e.consume(L),r.interrupt?t:de):n(L)}function O(L){return Pt(L)?(e.consume(L),O):G(L)}function D(L){return L===47?(e.consume(L),G):L===58||L===95||Hr(L)?(e.consume(L),j):Pt(L)?(e.consume(L),D):G(L)}function j(L){return L===45||L===46||L===58||L===95||Cr(L)?(e.consume(L),j):z(L)}function z(L){return L===61?(e.consume(L),U):Pt(L)?(e.consume(L),z):D(L)}function U(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),d=L,ee):Pt(L)?(e.consume(L),U):Z(L)}function ee(L){return L===d?(e.consume(L),d=null,Q):L===null||rt(L)?n(L):(e.consume(L),ee)}function Z(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||ln(L)?z(L):(e.consume(L),Z)}function Q(L){return L===47||L===62||Pt(L)?D(L):n(L)}function G(L){return L===62?(e.consume(L),se):n(L)}function se(L){return L===null||rt(L)?de(L):Pt(L)?(e.consume(L),se):n(L)}function de(L){return L===45&&a===2?(e.consume(L),V):L===60&&a===1?(e.consume(L),ue):L===62&&a===4?(e.consume(L),ne):L===63&&a===3?(e.consume(L),A):L===93&&a===5?(e.consume(L),De):rt(L)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(MM,pe,ve)(L)):L===null||rt(L)?(e.exit("htmlFlowData"),ve(L)):(e.consume(L),de)}function ve(L){return e.check(IM,oe,pe)(L)}function oe(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ye}function ye(L){return L===null||rt(L)?ve(L):(e.enter("htmlFlowData"),de(L))}function V(L){return L===45?(e.consume(L),A):de(L)}function ue(L){return L===47?(e.consume(L),o="",me):de(L)}function me(L){if(L===62){const Oe=o.toLowerCase();return W_.includes(Oe)?(e.consume(L),ne):de(L)}return Hr(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),me):de(L)}function De(L){return L===93?(e.consume(L),A):de(L)}function A(L){return L===62?(e.consume(L),ne):L===45&&a===2?(e.consume(L),A):de(L)}function ne(L){return L===null||rt(L)?(e.exit("htmlFlowData"),pe(L)):(e.consume(L),ne)}function pe(L){return e.exit("htmlFlow"),t(L)}}function PM(e,t,n){const r=this;return a;function a(o){return rt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function BM(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(M0,t,n)}}const UM={name:"htmlText",tokenize:FM};function FM(e,t,n){const r=this;let a,s,o;return c;function c(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),f):A===47?(e.consume(A),z):A===63?(e.consume(A),D):Hr(A)?(e.consume(A),Z):n(A)}function f(A){return A===45?(e.consume(A),m):A===91?(e.consume(A),s=0,T):Hr(A)?(e.consume(A),O):n(A)}function m(A){return A===45?(e.consume(A),y):n(A)}function p(A){return A===null?n(A):A===45?(e.consume(A),b):rt(A)?(o=p,ue(A)):(e.consume(A),p)}function b(A){return A===45?(e.consume(A),y):p(A)}function y(A){return A===62?V(A):A===45?b(A):p(A)}function T(A){const ne="CDATA[";return A===ne.charCodeAt(s++)?(e.consume(A),s===ne.length?x:T):n(A)}function x(A){return A===null?n(A):A===93?(e.consume(A),C):rt(A)?(o=x,ue(A)):(e.consume(A),x)}function C(A){return A===93?(e.consume(A),w):x(A)}function w(A){return A===62?V(A):A===93?(e.consume(A),w):x(A)}function O(A){return A===null||A===62?V(A):rt(A)?(o=O,ue(A)):(e.consume(A),O)}function D(A){return A===null?n(A):A===63?(e.consume(A),j):rt(A)?(o=D,ue(A)):(e.consume(A),D)}function j(A){return A===62?V(A):D(A)}function z(A){return Hr(A)?(e.consume(A),U):n(A)}function U(A){return A===45||Cr(A)?(e.consume(A),U):ee(A)}function ee(A){return rt(A)?(o=ee,ue(A)):Pt(A)?(e.consume(A),ee):V(A)}function Z(A){return A===45||Cr(A)?(e.consume(A),Z):A===47||A===62||ln(A)?Q(A):n(A)}function Q(A){return A===47?(e.consume(A),V):A===58||A===95||Hr(A)?(e.consume(A),G):rt(A)?(o=Q,ue(A)):Pt(A)?(e.consume(A),Q):V(A)}function G(A){return A===45||A===46||A===58||A===95||Cr(A)?(e.consume(A),G):se(A)}function se(A){return A===61?(e.consume(A),de):rt(A)?(o=se,ue(A)):Pt(A)?(e.consume(A),se):Q(A)}function de(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),a=A,ve):rt(A)?(o=de,ue(A)):Pt(A)?(e.consume(A),de):(e.consume(A),oe)}function ve(A){return A===a?(e.consume(A),a=void 0,ye):A===null?n(A):rt(A)?(o=ve,ue(A)):(e.consume(A),ve)}function oe(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||ln(A)?Q(A):(e.consume(A),oe)}function ye(A){return A===47||A===62||ln(A)?Q(A):n(A)}function V(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function ue(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),me}function me(A){return Pt(A)?Rt(e,De,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):De(A)}function De(A){return e.enter("htmlTextData"),o(A)}}const y2={name:"labelEnd",resolveAll:jM,resolveTo:$M,tokenize:YM},zM={tokenize:GM},HM={tokenize:VM},qM={tokenize:KM};function jM(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 a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&_a(e,0,e.length,n),e}function $M(e,t){let n=e.length,r=0,a,s,o,c;for(;n--;)if(a=e[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},m={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",d,t],["enter",f,t]],c=Ra(c,e.slice(s+1,s+r+3)),c=Ra(c,[["enter",m,t]]),c=Ra(c,Vf(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),c=Ra(c,[["exit",m,t],e[o-2],e[o-1],["exit",f,t]]),c=Ra(c,e.slice(o+1)),c=Ra(c,[["exit",d,t]]),_a(e,s,e.length,c),e}function YM(e,t,n){const r=this;let a=r.events.length,s,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){s=r.events[a][1];break}return c;function c(b){return s?s._inactive?p(b):(o=r.parser.defined.includes(Qa(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(zM,m,o?m:p)(b):b===91?e.attempt(HM,m,o?f:p)(b):o?m(b):p(b)}function f(b){return e.attempt(qM,m,p)(b)}function m(b){return t(b)}function p(b){return s._balanced=!0,n(b)}}function GM(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return ln(p)?e0(e,s)(p):s(p)}function s(p){return p===41?m(p):f7(e,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return ln(p)?e0(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?p7(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function f(p){return ln(p)?e0(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function VM(e,t,n){const r=this;return a;function a(c){return m7.call(r,e,s,o,"reference","referenceMarker","referenceString")(c)}function s(c){return r.parser.defined.includes(Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function o(c){return n(c)}}function KM(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const WM={name:"labelStartImage",resolveAll:y2.resolveAll,tokenize:XM};function XM(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),s}function s(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),o):n(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const QM={name:"labelStartLink",resolveAll:y2.resolveAll,tokenize:ZM};function ZM(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const U1={name:"lineEnding",tokenize:JM};function JM(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Rt(e,t,"linePrefix")}}const jh={name:"thematicBreak",tokenize:eI};function eI(e,t,n){let r=0,a;return s;function s(f){return e.enter("thematicBreak"),o(f)}function o(f){return a=f,c(f)}function c(f){return f===a?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||rt(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===a?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),Pt(f)?Rt(e,c,"whitespace")(f):c(f))}}const Zr={continuation:{tokenize:aI},exit:sI,name:"list",tokenize:rI},tI={partial:!0,tokenize:lI},nI={partial:!0,tokenize:iI};function rI(e,t,n){const r=this,a=r.events[r.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return c;function c(y){const T=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:nb(y)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(jh,n,f)(y):f(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return nb(y)&&++o<10?(e.consume(y),d):(!r.interrupt||o<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):n(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(M0,r.interrupt?n:m,e.attempt(tI,b,p))}function m(y){return r.containerState.initialBlankLine=!0,s++,b(y)}function p(y){return Pt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):n(y)}function b(y){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function aI(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(M0,a,s);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Rt(e,t,"listItemIndent",r.containerState.size+1)(c)}function s(c){return r.containerState.furtherBlankLines||!Pt(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(nI,t,o)(c))}function o(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Rt(e,e.attempt(Zr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function iI(e,t,n){const r=this;return Rt(e,a,"listItemIndent",r.containerState.size+1);function a(s){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(s):n(s)}}function sI(e){e.exit(this.containerState.type)}function lI(e,t,n){const r=this;return Rt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const o=r.events[r.events.length-1];return!Pt(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const X_={name:"setextUnderline",resolveTo:oI,tokenize:uI};function oI(e,t){let n=e.length,r,a,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function uI(e,t,n){const r=this;let a;return s;function s(f){let m=r.events.length,p;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){p=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=f,o(f)):n(f)}function o(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===a?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),Pt(f)?Rt(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||rt(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const cI={tokenize:dI};function dI(e){const t=this,n=e.attempt(M0,r,e.attempt(this.parser.constructs.flowInitial,a,Rt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(gM,a)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const hI={resolveAll:b7()},fI=g7("string"),mI=g7("text");function g7(e){return{resolveAll:b7(e==="text"?pI:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],s=n.attempt(a,o,c);return o;function o(m){return f(m)?s(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return f(m)?(n.exit("data"),s(m)):(n.consume(m),d)}function f(m){if(m===null)return!0;const p=a[m];let b=-1;if(p)for(;++b<p.length;){const y=p[b];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function b7(e){return t;function t(n,r){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(n,r):n}}function pI(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],a=t.sliceStream(r);let s=a.length,o=-1,c=0,d;for(;s--;){const f=a[s];if(typeof f=="string"){for(o=f.length;f.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(f===-2)d=!0,c++;else if(f!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const gI={42:Zr,43:Zr,45:Zr,48:Zr,49:Zr,50:Zr,51:Zr,52:Zr,53:Zr,54:Zr,55:Zr,56:Zr,57:Zr,62:u7},bI={91:EM},vI={[-2]:B1,[-1]:B1,32:B1},yI={35:kM,42:jh,45:[X_,jh],60:RM,61:X_,95:jh,96:K_,126:K_},_I={38:d7,92:c7},EI={[-5]:U1,[-4]:U1,[-3]:U1,33:WM,38:d7,42:rb,60:[QR,UM],91:QM,92:[wM,c7],93:y2,95:rb,96:cM},TI={null:[rb,hI]},xI={null:[42,95]},SI={null:[]},wI=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xI,contentInitial:bI,disable:SI,document:gI,flow:yI,flowInitial:vI,insideSpan:TI,string:_I,text:EI},Symbol.toStringTag,{value:"Module"}));function AI(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 a={},s=[];let o=[],c=[];const d={attempt:ee(z),check:ee(U),consume:O,enter:D,exit:j,interrupt:ee(U,{interrupt:!0})},f={code:null,containerState:{},defineSkip:x,events:[],now:T,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:p};let m=t.tokenize.call(f,d);return t.resolveAll&&s.push(t),f;function p(se){return o=Ra(o,se),C(),o[o.length-1]!==null?[]:(Z(t,0),f.events=Vf(s,f.events,f),f.events)}function b(se,de){return CI(y(se),de)}function y(se){return kI(o,se)}function T(){const{_bufferIndex:se,_index:de,line:ve,column:oe,offset:ye}=r;return{_bufferIndex:se,_index:de,line:ve,column:oe,offset:ye}}function x(se){a[se.line]=se.column,G()}function C(){let se;for(;r._index<o.length;){const de=o[r._index];if(typeof de=="string")for(se=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===se&&r._bufferIndex<de.length;)w(de.charCodeAt(r._bufferIndex));else w(de)}}function w(se){m=m(se)}function O(se){rt(se)?(r.line++,r.column=1,r.offset+=se===-3?2:1,G()):se!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=se}function D(se,de){const ve=de||{};return ve.type=se,ve.start=T(),f.events.push(["enter",ve,f]),c.push(ve),ve}function j(se){const de=c.pop();return de.end=T(),f.events.push(["exit",de,f]),de}function z(se,de){Z(se,de.from)}function U(se,de){de.restore()}function ee(se,de){return ve;function ve(oe,ye,V){let ue,me,De,A;return Array.isArray(oe)?pe(oe):"tokenize"in oe?pe([oe]):ne(oe);function ne(Le){return Mt;function Mt(ut){const qt=ut!==null&&Le[ut],kt=ut!==null&&Le.null,En=[...Array.isArray(qt)?qt:qt?[qt]:[],...Array.isArray(kt)?kt:kt?[kt]:[]];return pe(En)(ut)}}function pe(Le){return ue=Le,me=0,Le.length===0?V:L(Le[me])}function L(Le){return Mt;function Mt(ut){return A=Q(),De=Le,Le.partial||(f.currentConstruct=Le),Le.name&&f.parser.constructs.disable.null.includes(Le.name)?He():Le.tokenize.call(de?Object.assign(Object.create(f),de):f,d,Oe,He)(ut)}}function Oe(Le){return se(De,A),ye}function He(Le){return A.restore(),++me<ue.length?L(ue[me]):V}}}function Z(se,de){se.resolveAll&&!s.includes(se)&&s.push(se),se.resolve&&_a(f.events,de,f.events.length-de,se.resolve(f.events.slice(de),f)),se.resolveTo&&(f.events=se.resolveTo(f.events,f))}function Q(){const se=T(),de=f.previous,ve=f.currentConstruct,oe=f.events.length,ye=Array.from(c);return{from:oe,restore:V};function V(){r=se,f.previous=de,f.currentConstruct=ve,f.events.length=oe,c=ye,G()}}function G(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function kI(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,s)];else{if(o=e.slice(n,a),r>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(r):o.shift()}s>0&&o.push(e[a].slice(0,s))}return o}function CI(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
92
|
-
`;break}case-3:{o=`\r
|
|
93
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(s)}a=s===-2,r.push(o)}return r.join("")}function NI(e){const r={constructs:l7([wI,...(e||{}).extensions||[]]),content:a($R),defined:[],document:a(GR),flow:a(cI),lazy:{},string:a(fI),text:a(mI)};return r;function a(s){return o;function o(c){return AI(r,s,c)}}}function OI(e){for(;!h7(e););return e}const Q_=/[\0\t\n\r]/g;function RI(){let e=1,t="",n=!0,r;return a;function a(s,o,c){const d=[];let f,m,p,b,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),p=0,t="",n&&(s.charCodeAt(0)===65279&&p++,n=void 0);p<s.length;){if(Q_.lastIndex=p,f=Q_.exec(s),b=f&&f.index!==void 0?f.index:s.length,y=s.charCodeAt(b),!f){t=s.slice(p);break}if(y===10&&p===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),p<b&&(d.push(s.slice(p,b)),e+=b-p),y){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}p=b+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const MI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function II(e){return e.replace(MI,DI)}function DI(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),s=a===120||a===88;return o7(n.slice(s?2:1),s?16:10)}return v2(n)||e}const v7={}.hasOwnProperty;function LI(e,t,n){return typeof t!="string"&&(n=t,t=void 0),PI(n)(OI(NI(n).document().write(RI()(e,t,!0))))}function PI(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Bt),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(Ft),blockQuote:s(kt),characterEscape:Q,characterReference:Q,codeFenced:s(En),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(En,o),codeText:s(pr,o),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(yt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(bt),hardBreakEscape:s(Je),hardBreakTrailing:s(Je),htmlFlow:s(Et,o),htmlFlowData:Q,htmlText:s(Et,o),htmlTextData:Q,image:s(gn),label:o,link:s(Bt),listItem:s(Ke),listItemValue:b,listOrdered:s(un,p),listUnordered:s(un),paragraph:s(cn),reference:L,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Ft),strong:s(Tn),thematicBreak:s(bn)},exit:{atxHeading:d(),atxHeadingSequence:z,autolink:d(),autolinkEmail:qt,autolinkProtocol:ut,blockQuote:d(),characterEscapeValue:G,characterReferenceMarkerHexadecimal:He,characterReferenceMarkerNumeric:He,characterReferenceValue:Le,characterReference:Mt,codeFenced:d(C),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:G,codeIndented:d(w),codeText:d(ye),codeTextData:G,data:G,definition:d(),definitionDestinationString:j,definitionLabelString:O,definitionTitleString:D,emphasis:d(),hardBreakEscape:d(de),hardBreakTrailing:d(de),htmlFlow:d(ve),htmlFlowData:G,htmlText:d(oe),htmlTextData:G,image:d(ue),label:De,labelText:me,lineEnding:se,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Oe,resourceDestinationString:A,resourceTitleString:ne,resource:pe,setextHeading:d(Z),setextHeadingLineSequence:ee,setextHeadingText:U,strong:d(),thematicBreak:d()}};y7(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(fe){let Se={type:"root",children:[]};const qe={stack:[Se],tokenStack:[],config:t,enter:c,exit:f,buffer:o,resume:m,data:n},tt=[];let et=-1;for(;++et<fe.length;)if(fe[et][1].type==="listOrdered"||fe[et][1].type==="listUnordered")if(fe[et][0]==="enter")tt.push(et);else{const We=tt.pop();et=a(fe,We,et)}for(et=-1;++et<fe.length;){const We=t[fe[et][0]];v7.call(We,fe[et][1].type)&&We[fe[et][1].type].call(Object.assign({sliceSerialize:fe[et][2].sliceSerialize},qe),fe[et][1])}if(qe.tokenStack.length>0){const We=qe.tokenStack[qe.tokenStack.length-1];(We[1]||Z_).call(qe,void 0,We[0])}for(Se.position={start:zs(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:zs(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},et=-1;++et<t.transforms.length;)Se=t.transforms[et](Se)||Se;return Se}function a(fe,Se,qe){let tt=Se-1,et=-1,We=!1,_t,jt,Fn,Rr;for(;++tt<=qe;){const Yn=fe[tt];switch(Yn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Yn[0]==="enter"?et++:et--,Rr=void 0;break}case"lineEndingBlank":{Yn[0]==="enter"&&(_t&&!Rr&&!et&&!Fn&&(Fn=tt),Rr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rr=void 0}if(!et&&Yn[0]==="enter"&&Yn[1].type==="listItemPrefix"||et===-1&&Yn[0]==="exit"&&(Yn[1].type==="listUnordered"||Yn[1].type==="listOrdered")){if(_t){let Yr=tt;for(jt=void 0;Yr--;){const Mr=fe[Yr];if(Mr[1].type==="lineEnding"||Mr[1].type==="lineEndingBlank"){if(Mr[0]==="exit")continue;jt&&(fe[jt][1].type="lineEndingBlank",We=!0),Mr[1].type="lineEnding",jt=Yr}else if(!(Mr[1].type==="linePrefix"||Mr[1].type==="blockQuotePrefix"||Mr[1].type==="blockQuotePrefixWhitespace"||Mr[1].type==="blockQuoteMarker"||Mr[1].type==="listItemIndent"))break}Fn&&(!jt||Fn<jt)&&(_t._spread=!0),_t.end=Object.assign({},jt?fe[jt][1].start:Yn[1].end),fe.splice(jt||tt,0,["exit",_t,Yn[2]]),tt++,qe++}if(Yn[1].type==="listItemPrefix"){const Yr={type:"listItem",_spread:!1,start:Object.assign({},Yn[1].start),end:void 0};_t=Yr,fe.splice(tt,0,["enter",Yr,Yn[2]]),tt++,qe++,Fn=void 0,Rr=!0}}}return fe[Se][1]._spread=We,qe}function s(fe,Se){return qe;function qe(tt){c.call(this,fe(tt),tt),Se&&Se.call(this,tt)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(fe,Se,qe){this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([Se,qe||void 0]),fe.position={start:zs(Se.start),end:void 0}}function d(fe){return Se;function Se(qe){fe&&fe.call(this,qe),f.call(this,qe)}}function f(fe,Se){const qe=this.stack.pop(),tt=this.tokenStack.pop();if(tt)tt[0].type!==fe.type&&(Se?Se.call(this,fe,tt[0]):(tt[1]||Z_).call(this,fe,tt[0]));else throw new Error("Cannot close `"+fe.type+"` ("+Jc({start:fe.start,end:fe.end})+"): it’s not open");qe.position.end=zs(fe.end)}function m(){return b2(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function b(fe){if(this.data.expectingFirstListItemValue){const Se=this.stack[this.stack.length-2];Se.start=Number.parseInt(this.sliceSerialize(fe),10),this.data.expectingFirstListItemValue=void 0}}function y(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.lang=fe}function T(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.meta=fe}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=fe.replace(/(\r?\n|\r)$/g,"")}function O(fe){const Se=this.resume(),qe=this.stack[this.stack.length-1];qe.label=Se,qe.identifier=Qa(this.sliceSerialize(fe)).toLowerCase()}function D(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.title=fe}function j(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.url=fe}function z(fe){const Se=this.stack[this.stack.length-1];if(!Se.depth){const qe=this.sliceSerialize(fe).length;Se.depth=qe}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function ee(fe){const Se=this.stack[this.stack.length-1];Se.depth=this.sliceSerialize(fe).codePointAt(0)===61?1:2}function Z(){this.data.setextHeadingSlurpLineEnding=void 0}function Q(fe){const qe=this.stack[this.stack.length-1].children;let tt=qe[qe.length-1];(!tt||tt.type!=="text")&&(tt=lr(),tt.position={start:zs(fe.start),end:void 0},qe.push(tt)),this.stack.push(tt)}function G(fe){const Se=this.stack.pop();Se.value+=this.sliceSerialize(fe),Se.position.end=zs(fe.end)}function se(fe){const Se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const qe=Se.children[Se.children.length-1];qe.position.end=zs(fe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Se.type)&&(Q.call(this,fe),G.call(this,fe))}function de(){this.data.atHardBreak=!0}function ve(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=fe}function oe(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=fe}function ye(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=fe}function V(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=Se,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function ue(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=Se,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function me(fe){const Se=this.sliceSerialize(fe),qe=this.stack[this.stack.length-2];qe.label=II(Se),qe.identifier=Qa(Se).toLowerCase()}function De(){const fe=this.stack[this.stack.length-1],Se=this.resume(),qe=this.stack[this.stack.length-1];if(this.data.inReference=!0,qe.type==="link"){const tt=fe.children;qe.children=tt}else qe.alt=Se}function A(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.url=fe}function ne(){const fe=this.resume(),Se=this.stack[this.stack.length-1];Se.title=fe}function pe(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function Oe(fe){const Se=this.resume(),qe=this.stack[this.stack.length-1];qe.label=Se,qe.identifier=Qa(this.sliceSerialize(fe)).toLowerCase(),this.data.referenceType="full"}function He(fe){this.data.characterReferenceType=fe.type}function Le(fe){const Se=this.sliceSerialize(fe),qe=this.data.characterReferenceType;let tt;qe?(tt=o7(Se,qe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):tt=v2(Se);const et=this.stack[this.stack.length-1];et.value+=tt}function Mt(fe){const Se=this.stack.pop();Se.position.end=zs(fe.end)}function ut(fe){G.call(this,fe);const Se=this.stack[this.stack.length-1];Se.url=this.sliceSerialize(fe)}function qt(fe){G.call(this,fe);const Se=this.stack[this.stack.length-1];Se.url="mailto:"+this.sliceSerialize(fe)}function kt(){return{type:"blockquote",children:[]}}function En(){return{type:"code",lang:null,meta:null,value:""}}function pr(){return{type:"inlineCode",value:""}}function yt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bt(){return{type:"emphasis",children:[]}}function Ft(){return{type:"heading",depth:0,children:[]}}function Je(){return{type:"break"}}function Et(){return{type:"html",value:""}}function gn(){return{type:"image",title:null,url:"",alt:null}}function Bt(){return{type:"link",title:null,url:"",children:[]}}function un(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function Ke(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function cn(){return{type:"paragraph",children:[]}}function Tn(){return{type:"strong",children:[]}}function lr(){return{type:"text",value:""}}function bn(){return{type:"thematicBreak"}}}function zs(e){return{line:e.line,column:e.column,offset:e.offset}}function y7(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?y7(e,r):BI(e,r)}}function BI(e,t){let n;for(n in t)if(v7.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 Z_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Jc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Jc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Jc({start:t.start,end:t.end})+") is still open")}function UI(e){const t=this;t.parser=n;function n(r){return LI(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function FI(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 zI(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
94
|
-
`}]}function HI(e,t){const n=t.value?t.value+`
|
|
95
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function qI(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jI(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $I(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=mu(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let o,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=s+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function YI(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 GI(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _7(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 a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function VI(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _7(e,t);const a={src:mu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function KI(e,t){const n={src:mu(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 WI(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 XI(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _7(e,t);const a={href:mu(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function QI(e,t){const n={href:mu(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 ZI(e,t,n){const r=e.all(t),a=n?JI(n):E7(t),s={},o=[];if(typeof t.checked=="boolean"){const m=r[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const m=r[c];(a||c!==0||m.type!=="element"||m.tagName!=="p")&&o.push({type:"text",value:`
|
|
96
|
-
`}),m.type==="element"&&m.tagName==="p"&&!a?o.push(...m.children):o.push(m)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
97
|
-
`});const f={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,f),e.applyData(t,f)}function JI(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=E7(n[r])}return t}function E7(e){const t=e.spread;return t??e.children.length>1}function eD(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const o=r[a];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 s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function tD(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nD(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function rD(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aD(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=yi(t.children[1]),d=Yf(t.children[t.children.length-1]);c&&d&&(o.position={start:c,end:d}),a.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function iD(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,c=o?o.length:t.children.length;let d=-1;const f=[];for(;++d<c;){const p=t.children[d],b={},y=o?o[d]:void 0;y&&(b.align=y);let T={type:"element",tagName:s,properties:b,children:[]};p&&(T.children=e.all(p),e.patch(p,T),T=e.applyData(p,T)),f.push(T)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,m),e.applyData(t,m)}function sD(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const J_=9,eE=32;function lD(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(tE(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(tE(t.slice(a),a>0,!1)),s.join("")}function tE(e,t,n){let r=0,a=e.length;if(t){let s=e.codePointAt(r);for(;s===J_||s===eE;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(a-1);for(;s===J_||s===eE;)a--,s=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function oD(e,t){const n={type:"text",value:lD(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function uD(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const cD={blockquote:FI,break:zI,code:HI,delete:qI,emphasis:jI,footnoteReference:$I,heading:YI,html:GI,imageReference:VI,image:KI,inlineCode:WI,linkReference:XI,link:QI,listItem:ZI,list:eD,paragraph:tD,root:nD,strong:rD,table:aD,tableCell:sD,tableRow:iD,text:oD,thematicBreak:uD,toml:uh,yaml:uh,definition:uh,footnoteDefinition:uh};function uh(){}const T7=-1,Kf=0,t0=1,rf=2,_2=3,E2=4,T2=5,x2=6,x7=7,S7=8,nE=typeof self=="object"?self:globalThis,dD=(e,t)=>{const n=(a,s)=>(e.set(s,a),a),r=a=>{if(e.has(a))return e.get(a);const[s,o]=t[a];switch(s){case Kf:case T7:return n(o,a);case t0:{const c=n([],a);for(const d of o)c.push(r(d));return c}case rf:{const c=n({},a);for(const[d,f]of o)c[r(d)]=r(f);return c}case _2:return n(new Date(o),a);case E2:{const{source:c,flags:d}=o;return n(new RegExp(c,d),a)}case T2:{const c=n(new Map,a);for(const[d,f]of o)c.set(r(d),r(f));return c}case x2:{const c=n(new Set,a);for(const d of o)c.add(r(d));return c}case x7:{const{name:c,message:d}=o;return n(new nE[c](d),a)}case S7:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return n(new DataView(c),o)}}return n(new nE[s](o),a)};return r},rE=e=>dD(new Map,e)(0),Po="",{toString:hD}={},{keys:fD}=Object,Cc=e=>{const t=typeof e;if(t!=="object"||!e)return[Kf,t];const n=hD.call(e).slice(8,-1);switch(n){case"Array":return[t0,Po];case"Object":return[rf,Po];case"Date":return[_2,Po];case"RegExp":return[E2,Po];case"Map":return[T2,Po];case"Set":return[x2,Po];case"DataView":return[t0,n]}return n.includes("Array")?[t0,n]:n.includes("Error")?[x7,n]:[rf,n]},ch=([e,t])=>e===Kf&&(t==="function"||t==="symbol"),mD=(e,t,n,r)=>{const a=(o,c)=>{const d=r.push(o)-1;return n.set(c,d),d},s=o=>{if(n.has(o))return n.get(o);let[c,d]=Cc(o);switch(c){case Kf:{let m=o;switch(d){case"bigint":c=S7,m=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return a([T7],o)}return a([c,m],o)}case t0:{if(d){let b=o;return d==="DataView"?b=new Uint8Array(o.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(o)),a([d,[...b]],o)}const m=[],p=a([c,m],o);for(const b of o)m.push(s(b));return p}case rf:{if(d)switch(d){case"BigInt":return a([d,o.toString()],o);case"Boolean":case"Number":case"String":return a([d,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const m=[],p=a([c,m],o);for(const b of fD(o))(e||!ch(Cc(o[b])))&&m.push([s(b),s(o[b])]);return p}case _2:return a([c,o.toISOString()],o);case E2:{const{source:m,flags:p}=o;return a([c,{source:m,flags:p}],o)}case T2:{const m=[],p=a([c,m],o);for(const[b,y]of o)(e||!(ch(Cc(b))||ch(Cc(y))))&&m.push([s(b),s(y)]);return p}case x2:{const m=[],p=a([c,m],o);for(const b of o)(e||!ch(Cc(b)))&&m.push(s(b));return p}}const{message:f}=o;return a([c,{name:d,message:f}],o)};return s},aE=(e,{json:t,lossy:n}={})=>{const r=[];return mD(!(t||n),!!t,new Map,r)(e),r},nu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?rE(aE(e,t)):structuredClone(e):(e,t)=>rE(aE(e,t));function pD(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 gD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function bD(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||pD,r=e.options.footnoteBackLabel||gD,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const m=e.all(f),p=String(f.identifier).toUpperCase(),b=mu(p.toLowerCase());let y=0;const T=[],x=e.footnoteCounts.get(p);for(;x!==void 0&&++y<=x;){T.length>0&&T.push({type:"text",value:" "});let O=typeof n=="string"?n:n(d,y);typeof O=="string"&&(O={type:"text",value:O}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,y),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const C=m[m.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const O=C.children[C.children.length-1];O&&O.type==="text"?O.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...T)}else m.push(...T);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(m,!0)};e.patch(f,w),c.push(w)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...nu(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
98
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
99
|
-
`}]}}const I0=function(e){if(e==null)return ED;if(typeof e=="function")return Wf(e);if(typeof e=="object")return Array.isArray(e)?vD(e):yD(e);if(typeof e=="string")return _D(e);throw new Error("Expected function, string, or object as test")};function vD(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=I0(e[n]);return Wf(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function yD(e){const t=e;return Wf(n);function n(r){const a=r;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function _D(e){return Wf(t);function t(n){return n&&n.type===e}}function Wf(e){return t;function t(n,r,a){return!!(TD(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function ED(){return!0}function TD(e){return e!==null&&typeof e=="object"&&"type"in e}const w7=[],xD=!0,ab=!1,A7="skip";function S2(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const s=I0(a),o=r?-1:1;c(e,void 0,[])();function c(d,f,m){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const y=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=w7,T,x,C;if((!t||s(d,f,m[m.length-1]||void 0))&&(y=SD(n(d,m)),y[0]===ab))return y;if("children"in d&&d.children){const w=d;if(w.children&&y[0]!==A7)for(x=(r?w.children.length:-1)+o,C=m.concat(w);x>-1&&x<w.children.length;){const O=w.children[x];if(T=c(O,x,C)(),T[0]===ab)return T;x=typeof T[1]=="number"?T[1]:x+o}}return y}}}function SD(e){return Array.isArray(e)?e:typeof e=="number"?[xD,e]:e==null?w7:[e]}function D0(e,t,n,r){let a,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,a=n):(s=t,o=n,a=r),S2(e,s,c,a);function c(d,f){const m=f[f.length-1],p=m?m.children.indexOf(d):void 0;return o(d,p,m)}}const ib={}.hasOwnProperty,wD={};function AD(e,t){const n=t||wD,r=new Map,a=new Map,s=new Map,o={...cD,...n.handlers},c={all:f,applyData:CD,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:o,one:d,options:n,patch:kD,wrap:OD};return D0(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?r:a,b=String(m.identifier).toUpperCase();p.has(b)||p.set(b,m)}}),c;function d(m,p){const b=m.type,y=c.handlers[b];if(ib.call(c.handlers,b)&&y)return y(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(b)){if("children"in m){const{children:x,...C}=m,w=nu(C);return w.children=c.all(m),w}return nu(m)}return(c.options.unknownHandler||ND)(c,m,p)}function f(m){const p=[];if("children"in m){const b=m.children;let y=-1;for(;++y<b.length;){const T=c.one(b[y],m);if(T){if(y&&b[y-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=iE(T.value)),!Array.isArray(T)&&T.type==="element")){const x=T.children[0];x&&x.type==="text"&&(x.value=iE(x.value))}Array.isArray(T)?p.push(...T):p.push(T)}}}return p}}function kD(e,t){e.position&&(t.position=gR(e))}function CD(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,s=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"&&s&&Object.assign(n.properties,nu(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function ND(e,t){const n=t.data||{},r="value"in t&&!(ib.call(n,"hProperties")||ib.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 OD(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
100
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
101
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
102
|
-
`}),n}function iE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function sE(e,t){const n=AD(e,t),r=n.one(e,void 0),a=bD(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&s.children.push({type:"text",value:`
|
|
103
|
-
`},a),s}function RD(e,t){return e&&"run"in e?async function(n,r){const a=sE(n,{file:r,...t});await e.run(a,r)}:function(n,r){return sE(n,{file:r,...e||t})}}function lE(e){if(e)throw e}var F1,oE;function MD(){if(oE)return F1;oE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},s=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var m=e.call(f,"constructor"),p=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!p)return!1;var b;for(b in f);return typeof b>"u"||e.call(f,b)},o=function(f,m){n&&m.name==="__proto__"?n(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},c=function(f,m){if(m==="__proto__")if(e.call(f,m)){if(r)return r(f,m).value}else return;return f[m]};return F1=function d(){var f,m,p,b,y,T,x=arguments[0],C=1,w=arguments.length,O=!1;for(typeof x=="boolean"&&(O=x,x=arguments[1]||{},C=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});C<w;++C)if(f=arguments[C],f!=null)for(m in f)p=c(x,m),b=c(f,m),x!==b&&(O&&b&&(s(b)||(y=a(b)))?(y?(y=!1,T=p&&a(p)?p:[]):T=p&&s(p)?p:{},o(x,{name:m,newValue:d(O,T,b)})):typeof b<"u"&&o(x,{name:m,newValue:b}));return x},F1}var ID=MD();const z1=If(ID);function sb(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 DD(){const e=[],t={run:n,use:r};return t;function n(...a){let s=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...a);function c(d,...f){const m=e[++s];let p=-1;if(d){o(d);return}for(;++p<a.length;)(f[p]===null||f[p]===void 0)&&(f[p]=a[p]);a=f,m?LD(m,c)(...f):o(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function LD(e,t){let n;return r;function r(...o){const c=e.length>o.length;let d;c&&o.push(a);try{d=e.apply(this,o)}catch(f){const m=f;if(c&&n)throw m;return a(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(s,a):d instanceof Error?a(d):s(d))}function a(o,...c){n||(n=!0,t(o,...c))}function s(o){a(null,o)}}const oi={basename:PD,dirname:BD,extname:UD,join:FD,sep:"/"};function PD(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');L0(e);let n=0,r=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else r<0&&(s=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else o<0&&(s=!0,o=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function BD(e){if(L0(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 UD(e){L0(e);let t=e.length,n=-1,r=0,a=-1,s=0,o;for(;t--;){const c=e.codePointAt(t);if(c===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),c===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function FD(...e){let t=-1,n;for(;++t<e.length;)L0(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":zD(n)}function zD(e){L0(e);const t=e.codePointAt(0)===47;let n=HD(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function HD(e,t){let n="",r=0,a=-1,s=0,o=-1,c,d;for(;++o<=e.length;){if(o<e.length)c=e.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(a===o-1||s===1))if(a!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=o,s=0;continue}}else if(n.length>0){n="",r=0,a=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,s=0}else c===46&&s>-1?s++:s=-1}return n}function L0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qD={cwd:jD};function jD(){return"/"}function lb(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $D(e){if(typeof e=="string")e=new URL(e);else if(!lb(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 YD(e)}function YD(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 a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const H1=["history","path","basename","stem","extname","dirname"];class k7{constructor(t){let n;t?lb(t)?n={path:t}:typeof t=="string"||GD(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":qD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<H1.length;){const s=H1[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)H1.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?oi.basename(this.path):void 0}set basename(t){j1(t,"basename"),q1(t,"basename"),this.path=oi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?oi.dirname(this.path):void 0}set dirname(t){uE(this.basename,"dirname"),this.path=oi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?oi.extname(this.path):void 0}set extname(t){if(q1(t,"extname"),uE(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=oi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lb(t)&&(t=$D(t)),j1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?oi.basename(this.path,this.extname):void 0}set stem(t){j1(t,"stem"),q1(t,"stem"),this.path=oi.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Nr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function q1(e,t){if(e&&e.includes(oi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+oi.sep+"`")}function j1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function uE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function GD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const VD=function(e){const r=this.constructor.prototype,a=r[e],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},KD={}.hasOwnProperty;class w2 extends VD{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=DD()}copy(){const t=new w2;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(z1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(G1("data",this.frozen),this.namespace[t]=n,this):KD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(G1("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 a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=dh(t),r=this.parser||this.Parser;return $1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),$1("process",this.parser||this.Parser),Y1("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,o){const c=dh(t),d=r.parse(c);r.run(d,c,function(m,p,b){if(m||!p||!b)return f(m);const y=p,T=r.stringify(y,b);QD(T)?b.value=T:b.result=T,f(m,b)});function f(m,p){m||!p?o(m):s?s(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),$1("processSync",this.parser||this.Parser),Y1("processSync",this.compiler||this.Compiler),this.process(t,a),dE("processSync","process",n),r;function a(s,o){n=!0,lE(s),r=o}}run(t,n,r){cE(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,c){const d=dh(n);a.run(t,d,f);function f(m,p,b){const y=p||t;m?c(m):o?o(y):r(void 0,y,b)}}}runSync(t,n){let r=!1,a;return this.run(t,n,s),dE("runSync","run",r),a;function s(o,c){lE(o),a=c,r=!0}}stringify(t,n){this.freeze();const r=dh(n),a=this.compiler||this.Compiler;return Y1("stringify",a),cE(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(G1("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[m,...p]=f;d(m,p)}else o(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function o(f){if(!("plugins"in f)&&!("settings"in f))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");c(f.plugins),f.settings&&(a.settings=z1(!0,a.settings,f.settings))}function c(f){let m=-1;if(f!=null)if(Array.isArray(f))for(;++m<f.length;){const p=f[m];s(p)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,m){let p=-1,b=-1;for(;++p<r.length;)if(r[p][0]===f){b=p;break}if(b===-1)r.push([f,...m]);else if(m.length>0){let[y,...T]=m;const x=r[b][1];sb(x)&&sb(y)&&(y=z1(!0,x,y)),r[b]=[f,y,...T]}}}}const WD=new w2().freeze();function $1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Y1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function G1(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 cE(e){if(!sb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function dE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function dh(e){return XD(e)?e:new k7(e)}function XD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function QD(e){return typeof e=="string"||ZD(e)}function ZD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const JD="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",hE=[],fE={allowDangerousHtml:!0},eL=/^(https?|ircs?|mailto|xmpp)$/i,tL=[{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 nL(e){const t=rL(e),n=aL(e);return iL(t.runSync(t.parse(n),n),e)}function rL(e){const t=e.rehypePlugins||hE,n=e.remarkPlugins||hE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fE}:fE;return WD().use(UI).use(n).use(RD,r).use(t)}function aL(e){const t=e.children||"",n=new k7;return typeof t=="string"&&(n.value=t),n}function iL(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,s=t.disallowedElements,o=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||sL;for(const m of tL)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+JD+m.id,void 0);return D0(e,f),ER(e,{Fragment:R.Fragment,components:a,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.jsxs,passKeys:!0,passNode:!0});function f(m,p,b){if(m.type==="raw"&&b&&typeof p=="number")return o?b.children.splice(p,1):b.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let y;for(y in P1)if(Object.hasOwn(P1,y)&&Object.hasOwn(m.properties,y)){const T=m.properties[y],x=P1[y];(x===null||x.includes(m.tagName))&&(m.properties[y]=d(String(T||""),y,m))}}if(m.type==="element"){let y=n?!n.includes(m.tagName):s?s.includes(m.tagName):!1;if(!y&&r&&typeof p=="number"&&(y=!r(m,p,b)),y&&b&&typeof p=="number")return c&&m.children?b.children.splice(p,1,...m.children):b.children.splice(p,1),p}}}function sL(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||eL.test(e.slice(0,t))?e:""}function mE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function lL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oL(e,t,n){const a=I0((n||{}).ignore||[]),s=uL(t);let o=-1;for(;++o<s.length;)S2(e,"text",c);function c(f,m){let p=-1,b;for(;++p<m.length;){const y=m[p],T=b?b.children:void 0;if(a(y,T?T.indexOf(y):void 0,b))return;b=y}if(b)return d(f,m)}function d(f,m){const p=m[m.length-1],b=s[o][0],y=s[o][1];let T=0;const C=p.children.indexOf(f);let w=!1,O=[];b.lastIndex=0;let D=b.exec(f.value);for(;D;){const j=D.index,z={index:D.index,input:D.input,stack:[...m,f]};let U=y(...D,z);if(typeof U=="string"&&(U=U.length>0?{type:"text",value:U}:void 0),U===!1?b.lastIndex=j+1:(T!==j&&O.push({type:"text",value:f.value.slice(T,j)}),Array.isArray(U)?O.push(...U):U&&O.push(U),T=j+D[0].length,w=!0),!b.global)break;D=b.exec(f.value)}return w?(T<f.value.length&&O.push({type:"text",value:f.value.slice(T)}),p.children.splice(C,1,...O)):O=[f],C+O.length}}function uL(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 a=n[r];t.push([cL(a[0]),dL(a[1])])}return t}function cL(e){return typeof e=="string"?new RegExp(lL(e),"g"):e}function dL(e){return typeof e=="function"?e:function(){return e}}const V1="phrasing",K1=["autolink","link","image","label"];function hL(){return{transforms:[yL],enter:{literalAutolink:mL,literalAutolinkEmail:W1,literalAutolinkHttp:W1,literalAutolinkWww:W1},exit:{literalAutolink:vL,literalAutolinkEmail:bL,literalAutolinkHttp:pL,literalAutolinkWww:gL}}}function fL(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:V1,notInConstruct:K1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:V1,notInConstruct:K1},{character:":",before:"[ps]",after:"\\/",inConstruct:V1,notInConstruct:K1}]}}function mL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function W1(e){this.config.enter.autolinkProtocol.call(this,e)}function pL(e){this.config.exit.autolinkProtocol.call(this,e)}function gL(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 bL(e){this.config.exit.autolinkEmail.call(this,e)}function vL(e){this.exit(e)}function yL(e){oL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_L],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),EL]],{ignore:["link","linkReference"]})}function _L(e,t,n,r,a){let s="";if(!C7(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!TL(n)))return!1;const o=xL(n+r);if(!o[0])return!1;const c={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[c,{type:"text",value:o[1]}]:c}function EL(e,t,n,r){return!C7(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function TL(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 xL(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 a=mE(e,"(");let s=mE(e,")");for(;r!==-1&&a>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function C7(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Yl(n)||Gf(n))&&(!t||n!==47)}N7.peek=ML;function SL(){this.buffer()}function wL(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function AL(){this.buffer()}function kL(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function CL(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function NL(e){this.exit(e)}function OL(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function RL(e){this.exit(e)}function ML(){return"["}function N7(e,t,n,r){const a=n.createTracker(r);let s=a.move("[^");const o=n.enter("footnoteReference"),c=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),c(),o(),s+=a.move("]"),s}function IL(){return{enter:{gfmFootnoteCallString:SL,gfmFootnoteCall:wL,gfmFootnoteDefinitionLabelString:AL,gfmFootnoteDefinition:kL},exit:{gfmFootnoteCallString:CL,gfmFootnoteCall:NL,gfmFootnoteDefinitionLabelString:OL,gfmFootnoteDefinition:RL}}}function DL(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:N7},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,s,o){const c=s.createTracker(o);let d=c.move("[^");const f=s.enter("footnoteDefinition"),m=s.enter("label");return d+=c.move(s.safe(s.associationId(r),{before:d,after:"]"})),m(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
104
|
-
`:" ")+s.indentLines(s.containerFlow(r,c.current()),t?O7:LL))),f(),d}}function LL(e,t,n){return t===0?e:O7(e,t,n)}function O7(e,t,n){return(n?"":" ")+e}const PL=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];R7.peek=HL;function BL(){return{canContainEols:["delete"],enter:{strikethrough:FL},exit:{strikethrough:zL}}}function UL(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:PL}],handlers:{delete:R7}}}function FL(e){this.enter({type:"delete",children:[]},e)}function zL(e){this.exit(e)}function R7(e,t,n,r){const a=n.createTracker(r),s=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),s(),o}function HL(){return"~"}function qL(e){return e.length}function jL(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||qL,s=[],o=[],c=[],d=[];let f=0,m=-1;for(;++m<e.length;){const x=[],C=[];let w=-1;for(e[m].length>f&&(f=e[m].length);++w<e[m].length;){const O=$L(e[m][w]);if(n.alignDelimiters!==!1){const D=a(O);C[w]=D,(d[w]===void 0||D>d[w])&&(d[w]=D)}x.push(O)}o[m]=x,c[m]=C}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<f;)s[p]=pE(r[p]);else{const x=pE(r);for(;++p<f;)s[p]=x}p=-1;const b=[],y=[];for(;++p<f;){const x=s[p];let C="",w="";x===99?(C=":",w=":"):x===108?C=":":x===114&&(w=":");let O=n.alignDelimiters===!1?1:Math.max(1,d[p]-C.length-w.length);const D=C+"-".repeat(O)+w;n.alignDelimiters!==!1&&(O=C.length+O+w.length,O>d[p]&&(d[p]=O),y[p]=O),b[p]=D}o.splice(1,0,b),c.splice(1,0,y),m=-1;const T=[];for(;++m<o.length;){const x=o[m],C=c[m];p=-1;const w=[];for(;++p<f;){const O=x[p]||"";let D="",j="";if(n.alignDelimiters!==!1){const z=d[p]-(C[p]||0),U=s[p];U===114?D=" ".repeat(z):U===99?z%2?(D=" ".repeat(z/2+.5),j=" ".repeat(z/2-.5)):(D=" ".repeat(z/2),j=D):j=" ".repeat(z)}n.delimiterStart!==!1&&!p&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&O==="")&&(n.delimiterStart!==!1||p)&&w.push(" "),n.alignDelimiters!==!1&&w.push(D),w.push(O),n.alignDelimiters!==!1&&w.push(j),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||p!==f-1)&&w.push("|")}T.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return T.join(`
|
|
105
|
-
`)}function $L(e){return e==null?"":String(e)}function pE(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 gE={}.hasOwnProperty;function M7(e,t){const n=t||{};function r(a,...s){let o=r.invalid;const c=r.handlers;if(a&&gE.call(a,e)){const d=String(a[e]);o=gE.call(c,d)?c[d]:r.unknown}if(o)return o.call(this,a,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function YL(e,t,n,r){const a=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),GL);return a(),o}function GL(e,t,n){return">"+(n?"":" ")+e}function VL(e,t){return bE(e,t.inConstruct,!0)&&!bE(e,t.notInConstruct,!1)}function bE(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 vE(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
106
|
-
`&&VL(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
107
|
-
`}function I7(e,t){const n=String(e);let r=n.indexOf(t),a=r,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++s>o&&(o=s):s=1,a=r+t.length,r=n.indexOf(t,a);return o}function KL(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 WL(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 XL(e,t,n,r){const a=WL(n),s=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(KL(e,n)){const p=n.enter("codeIndented"),b=n.indentLines(s,QL);return p(),b}const c=n.createTracker(r),d=a.repeat(Math.max(I7(s,a)+1,3)),f=n.enter("codeFenced");let m=c.move(d);if(e.lang){const p=n.enter(`codeFencedLang${o}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${o}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
|
|
108
|
-
`,encode:["`"],...c.current()})),p()}return m+=c.move(`
|
|
109
|
-
`),s&&(m+=c.move(s+`
|
|
110
|
-
`)),m+=c.move(d),f(),m}function QL(e,t,n){return(n?"":" ")+e}function A2(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 ZL(e,t,n,r){const a=A2(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("[");return f+=d.move(n.safe(n.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
111
|
-
`,...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),o(),f}function JL(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 m0(e){return"&#x"+e.toString(16).toUpperCase()+";"}function af(e,t,n){const r=tu(e),a=tu(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}D7.peek=eP;function D7(e,t,n,r){const a=JL(n),s=n.enter("emphasis"),o=n.createTracker(r),c=o.move(a);let d=o.move(n.containerPhrasing(e,{after:a,before:c,...o.current()}));const f=d.charCodeAt(0),m=af(r.before.charCodeAt(r.before.length-1),f,a);m.inside&&(d=m0(f)+d.slice(1));const p=d.charCodeAt(d.length-1),b=af(r.after.charCodeAt(0),p,a);b.inside&&(d=d.slice(0,-1)+m0(p));const y=o.move(a);return s(),n.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},c+d+y}function eP(e,t,n){return n.options.emphasis||"*"}function tP(e,t){let n=!1;return D0(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ab}),!!((!e.depth||e.depth<3)&&b2(e)&&(t.options.setext||n))}function nP(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(tP(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),b=n.containerPhrasing(e,{...s.current(),before:`
|
|
112
|
-
`,after:`
|
|
113
|
-
`});return p(),m(),b+`
|
|
114
|
-
`+(a===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
115
|
-
`))+1))}const o="#".repeat(a),c=n.enter("headingAtx"),d=n.enter("phrasing");s.move(o+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
116
|
-
`,...s.current()});return/^[\t ]/.test(f)&&(f=m0(f.charCodeAt(0))+f.slice(1)),f=f?o+" "+f:o,n.options.closeAtx&&(f+=" "+o),d(),c(),f}L7.peek=rP;function L7(e){return e.value||""}function rP(){return"<"}P7.peek=aP;function P7(e,t,n,r){const a=A2(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("![");return f+=d.move(n.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),f+=d.move(")"),o(),f}function aP(){return"!"}B7.peek=iP;function B7(e,t,n,r){const a=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const f=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return o(),n.stack=m,s(),a==="full"||!f||f!==p?d+=c.move(p+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function iP(){return"!"}U7.peek=sP;function U7(e,t,n){let r=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],c=n.compilePattern(o);let d;if(o.atBreak)for(;d=c.exec(r);){let f=d.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(d.index+1)}}return a+r+a}function sP(){return"`"}function F7(e,t){const n=b2(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))}z7.peek=lP;function z7(e,t,n,r){const a=A2(n),s=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let c,d;if(F7(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let p=o.move("<");return p+=o.move(n.containerPhrasing(e,{before:p,after:">",...o.current()})),p+=o.move(">"),c(),n.stack=m,p}c=n.enter("link"),d=n.enter("label");let f=o.move("[");return f+=o.move(n.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(n.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(d=n.enter("destinationRaw"),f+=o.move(n.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),d(),e.title&&(d=n.enter(`title${s}`),f+=o.move(" "+a),f+=o.move(n.safe(e.title,{before:f,after:a,...o.current()})),f+=o.move(a),d()),f+=o.move(")"),c(),f}function lP(e,t,n){return F7(e,n)?"<":"["}H7.peek=oP;function H7(e,t,n,r){const a=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const f=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return o(),n.stack=m,s(),a==="full"||!f||f!==p?d+=c.move(p+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function oP(){return"["}function k2(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 uP(e){const t=k2(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 cP(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 q7(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 dP(e,t,n,r){const a=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?cP(n):k2(n);const c=e.ordered?o==="."?")":".":uP(n);let d=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&m&&(!m.children||!m.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&&(d=!0),q7(n)===o&&m){let p=-1;for(;++p<e.children.length;){const b=e.children[p];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(o=c),n.bulletCurrent=o;const f=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,a(),f}function hP(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 fP(e,t,n,r){const a=hP(n);let s=n.bulletCurrent||k2(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const c=n.createTracker(r);c.move(s+" ".repeat(o-s.length)),c.shift(o);const d=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),m);return d(),f;function m(p,b,y){return b?(y?"":" ".repeat(o))+p:(y?s:s+" ".repeat(o-s.length))+p}}function mP(e,t,n,r){const a=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),a(),o}const pP=I0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gP(e,t,n,r){return(e.children.some(function(o){return pP(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function bP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}j7.peek=vP;function j7(e,t,n,r){const a=bP(n),s=n.enter("strong"),o=n.createTracker(r),c=o.move(a+a);let d=o.move(n.containerPhrasing(e,{after:a,before:c,...o.current()}));const f=d.charCodeAt(0),m=af(r.before.charCodeAt(r.before.length-1),f,a);m.inside&&(d=m0(f)+d.slice(1));const p=d.charCodeAt(d.length-1),b=af(r.after.charCodeAt(0),p,a);b.inside&&(d=d.slice(0,-1)+m0(p));const y=o.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},c+d+y}function vP(e,t,n){return n.options.strong||"*"}function yP(e,t,n,r){return n.safe(e.value,r)}function _P(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 EP(e,t,n){const r=(q7(n)+(n.options.ruleSpaces?" ":"")).repeat(_P(n));return n.options.ruleSpaces?r.slice(0,-1):r}const $7={blockquote:YL,break:vE,code:XL,definition:ZL,emphasis:D7,hardBreak:vE,heading:nP,html:L7,image:P7,imageReference:B7,inlineCode:U7,link:z7,linkReference:H7,list:dP,listItem:fP,paragraph:mP,root:gP,strong:j7,text:yP,thematicBreak:EP};function TP(){return{enter:{table:xP,tableData:yE,tableHeader:yE,tableRow:wP},exit:{codeText:AP,table:SP,tableData:X1,tableHeader:X1,tableRow:X1}}}function xP(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 SP(e){this.exit(e),this.data.inTable=void 0}function wP(e){this.enter({type:"tableRow",children:[]},e)}function X1(e){this.exit(e)}function yE(e){this.enter({type:"tableCell",children:[]},e)}function AP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,kP));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function kP(e,t){return t==="|"?t:e}function CP(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
117
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:o,tableCell:d,tableRow:c}};function o(y,T,x,C){return f(m(y,x,C),y.align)}function c(y,T,x,C){const w=p(y,x,C),O=f([w]);return O.slice(0,O.indexOf(`
|
|
118
|
-
`))}function d(y,T,x,C){const w=x.enter("tableCell"),O=x.enter("phrasing"),D=x.containerPhrasing(y,{...C,before:s,after:s});return O(),w(),D}function f(y,T){return jL(y,{align:T,alignDelimiters:r,padding:n,stringLength:a})}function m(y,T,x){const C=y.children;let w=-1;const O=[],D=T.enter("table");for(;++w<C.length;)O[w]=p(C[w],T,x);return D(),O}function p(y,T,x){const C=y.children;let w=-1;const O=[],D=T.enter("tableRow");for(;++w<C.length;)O[w]=d(C[w],y,T,x);return D(),O}function b(y,T,x){let C=$7.inlineCode(y,T,x);return x.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function NP(){return{exit:{taskListCheckValueChecked:_E,taskListCheckValueUnchecked:_E,paragraph:RP}}}function OP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:MP}}}function _E(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function RP(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 a=t.children;let s=-1,o;for(;++s<a.length;){const c=a[s];if(c.type==="paragraph"){o=c;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 MP(e,t,n,r){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);s&&c.move(o);let d=$7.listItem(e,t,n,{...r,...c.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(m){return m+o}}function IP(){return[hL(),IL(),BL(),TP(),NP()]}function DP(e){return{extensions:[fL(),DL(e),UL(),CP(e),OP()]}}const LP={tokenize:HP,partial:!0},Y7={tokenize:qP,partial:!0},G7={tokenize:jP,partial:!0},V7={tokenize:$P,partial:!0},PP={tokenize:YP,partial:!0},K7={name:"wwwAutolink",tokenize:FP,previous:X7},W7={name:"protocolAutolink",tokenize:zP,previous:Q7},us={name:"emailAutolink",tokenize:UP,previous:Z7},_i={};function BP(){return{text:_i}}let Ll=48;for(;Ll<123;)_i[Ll]=us,Ll++,Ll===58?Ll=65:Ll===91&&(Ll=97);_i[43]=us;_i[45]=us;_i[46]=us;_i[95]=us;_i[72]=[us,W7];_i[104]=[us,W7];_i[87]=[us,K7];_i[119]=[us,K7];function UP(e,t,n){const r=this;let a,s;return o;function o(p){return!ob(p)||!Z7.call(r,r.previous)||C2(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return ob(p)?(e.consume(p),c):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(PP,m,f)(p):p===45||p===95||Cr(p)?(s=!0,e.consume(p),d):m(p)}function f(p){return e.consume(p),a=!0,d}function m(p){return s&&a&&Hr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function FP(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!X7.call(r,r.previous)||C2(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(LP,e.attempt(Y7,e.attempt(G7,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function zP(e,t,n){const r=this;let a="",s=!1;return o;function o(p){return(p===72||p===104)&&Q7.call(r,r.previous)&&!C2(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(Hr(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const b=a.toLowerCase();if(b==="http"||b==="https")return e.consume(p),d}return n(p)}function d(p){return p===47?(e.consume(p),s?f:(s=!0,d)):n(p)}function f(p){return p===null||nf(p)||ln(p)||Yl(p)||Gf(p)?n(p):e.attempt(Y7,e.attempt(G7,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function HP(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function qP(e,t,n){let r,a,s;return o;function o(f){return f===46||f===95?e.check(V7,d,c)(f):f===null||ln(f)||Yl(f)||f!==45&&Gf(f)?d(f):(s=!0,e.consume(f),o)}function c(f){return f===95?r=!0:(a=r,r=void 0),e.consume(f),o}function d(f){return a||r||!s?n(f):t(f)}}function jP(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?s(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(V7,t,s)(o):o===null||ln(o)||Yl(o)?t(o):(e.consume(o),a)}function s(o){return o===41&&r++,e.consume(o),a}}function $P(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),s):c===93?(e.consume(c),a):c===60||c===null||ln(c)||Yl(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||ln(c)||Yl(c)?t(c):r(c)}function s(c){return Hr(c)?o(c):n(c)}function o(c){return c===59?(e.consume(c),r):Hr(c)?(e.consume(c),o):n(c)}}function YP(e,t,n){return r;function r(s){return e.consume(s),a}function a(s){return Cr(s)?n(s):t(s)}}function X7(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ln(e)}function Q7(e){return!Hr(e)}function Z7(e){return!(e===47||ob(e))}function ob(e){return e===43||e===45||e===46||e===95||Cr(e)}function C2(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 GP={tokenize:eB,partial:!0};function VP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:QP,continuation:{tokenize:ZP},exit:JP}},text:{91:{name:"gfmFootnoteCall",tokenize:XP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:KP,resolveTo:WP}}}}function KP(e,t,n){const r=this;let a=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){o=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!o||!o._balanced)return n(d);const f=Qa(r.sliceSerialize({start:o.end,end:r.now()}));return f.codePointAt(0)!==94||!s.includes(f.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function WP(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)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function XP(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),d}function d(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(p){if(s>999||p===93&&!o||p===null||p===91||ln(p))return n(p);if(p===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return a.includes(Qa(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return ln(p)||(o=!0),s++,e.consume(p),p===92?m:f}function m(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function QP(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,c;return d;function d(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(T)}function m(T){if(o>999||T===93&&!c||T===null||T===91||ln(T))return n(T);if(T===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return s=Qa(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return ln(T)||(c=!0),o++,e.consume(T),T===92?p:m}function p(T){return T===91||T===92||T===93?(e.consume(T),o++,m):m(T)}function b(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),a.includes(s)||a.push(s),Rt(e,y,"gfmFootnoteDefinitionWhitespace")):n(T)}function y(T){return t(T)}}function ZP(e,t,n){return e.check(M0,t,e.attempt(GP,t,n))}function JP(e){e.exit("gfmFootnoteDefinition")}function eB(e,t,n){const r=this;return Rt(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function tB(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,c){let d=-1;for(;++d<o.length;)if(o[d][0]==="enter"&&o[d][1].type==="strikethroughSequenceTemporary"&&o[d][1]._close){let f=d;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[d][1].end.offset-o[d][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[d][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[d][1].end)},p={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[d][1].start)},b=[["enter",m,c],["enter",o[f][1],c],["exit",o[f][1],c],["enter",p,c]],y=c.parser.constructs.insideSpan.null;y&&_a(b,b.length,0,Vf(y,o.slice(f+1,d),c)),_a(b,b.length,0,[["exit",p,c],["enter",o[d][1],c],["exit",o[d][1],c],["exit",m,c]]),_a(o,f-1,d-f+3,b),d=f+b.length-2;break}}for(d=-1;++d<o.length;)o[d][1].type==="strikethroughSequenceTemporary"&&(o[d][1].type="data");return o}function s(o,c,d){const f=this.previous,m=this.events;let p=0;return b;function b(T){return f===126&&m[m.length-1][1].type!=="characterEscape"?d(T):(o.enter("strikethroughSequenceTemporary"),y(T))}function y(T){const x=tu(f);if(T===126)return p>1?d(T):(o.consume(T),p++,y);if(p<2&&!n)return d(T);const C=o.exit("strikethroughSequenceTemporary"),w=tu(T);return C._open=!w||w===2&&!!x,C._close=!x||x===2&&!!w,c(T)}}}class nB{constructor(){this.map=[]}add(t,n,r){rB(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[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 a=r.pop();for(;a;){for(const s of a)t.push(s);a=r.pop()}this.map.length=0}}function rB(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function aB(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function iB(){return{flow:{null:{name:"table",tokenize:sB,resolveAll:lB}}}}function sB(e,t,n){const r=this;let a=0,s=0,o;return c;function c(G){let se=r.events.length-1;for(;se>-1;){const oe=r.events[se][1].type;if(oe==="lineEnding"||oe==="linePrefix")se--;else break}const de=se>-1?r.events[se][1].type:null,ve=de==="tableHead"||de==="tableRow"?U:d;return ve===U&&r.parser.lazy[r.now().line]?n(G):ve(G)}function d(G){return e.enter("tableHead"),e.enter("tableRow"),f(G)}function f(G){return G===124||(o=!0,s+=1),m(G)}function m(G){return G===null?n(G):rt(G)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),y):n(G):Pt(G)?Rt(e,m,"whitespace")(G):(s+=1,o&&(o=!1,a+=1),G===124?(e.enter("tableCellDivider"),e.consume(G),e.exit("tableCellDivider"),o=!0,m):(e.enter("data"),p(G)))}function p(G){return G===null||G===124||ln(G)?(e.exit("data"),m(G)):(e.consume(G),G===92?b:p)}function b(G){return G===92||G===124?(e.consume(G),p):p(G)}function y(G){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(G):(e.enter("tableDelimiterRow"),o=!1,Pt(G)?Rt(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):T(G))}function T(G){return G===45||G===58?C(G):G===124?(o=!0,e.enter("tableCellDivider"),e.consume(G),e.exit("tableCellDivider"),x):z(G)}function x(G){return Pt(G)?Rt(e,C,"whitespace")(G):C(G)}function C(G){return G===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(G),e.exit("tableDelimiterMarker"),w):G===45?(s+=1,w(G)):G===null||rt(G)?j(G):z(G)}function w(G){return G===45?(e.enter("tableDelimiterFiller"),O(G)):z(G)}function O(G){return G===45?(e.consume(G),O):G===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(G),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(G))}function D(G){return Pt(G)?Rt(e,j,"whitespace")(G):j(G)}function j(G){return G===124?T(G):G===null||rt(G)?!o||a!==s?z(G):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(G)):z(G)}function z(G){return n(G)}function U(G){return e.enter("tableRow"),ee(G)}function ee(G){return G===124?(e.enter("tableCellDivider"),e.consume(G),e.exit("tableCellDivider"),ee):G===null||rt(G)?(e.exit("tableRow"),t(G)):Pt(G)?Rt(e,ee,"whitespace")(G):(e.enter("data"),Z(G))}function Z(G){return G===null||G===124||ln(G)?(e.exit("data"),ee(G)):(e.consume(G),G===92?Q:Z)}function Q(G){return G===92||G===124?(e.consume(G),Z):Z(G)}}function lB(e,t){let n=-1,r=!0,a=0,s=[0,0,0,0],o=[0,0,0,0],c=!1,d=0,f,m,p;const b=new nB;for(;++n<e.length;){const y=e[n],T=y[1];y[0]==="enter"?T.type==="tableHead"?(c=!1,d!==0&&(EE(b,t,d,f,m),m=void 0,d=0),f={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},b.add(n,0,[["enter",f,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(r=!0,p=void 0,s=[0,0,0,0],o=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},b.add(n,0,[["enter",m,t]])),a=T.type==="tableDelimiterRow"?2:m?3:1):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],p=hh(b,t,s,a,void 0,p),s=[0,0,0,0]),o[2]=n)):T.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],p=hh(b,t,s,a,void 0,p)),s=o,o=[s[1],n,0,0])):T.type==="tableHead"?(c=!0,d=n):T.type==="tableRow"||T.type==="tableDelimiterRow"?(d=n,s[1]!==0?(o[0]=o[1],p=hh(b,t,s,a,n,p)):o[1]!==0&&(p=hh(b,t,o,a,n,p)),a=0):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(o[3]=n)}for(d!==0&&EE(b,t,d,f,m),b.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=aB(t.events,n))}return e}function hh(e,t,n,r,a,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(s.end=Object.assign({},qo(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const d=qo(t.events,n[1]);if(s={type:o,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const f=qo(t.events,n[2]),m=qo(t.events,n[3]),p={type:c,start:Object.assign({},f),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const b=t.events[n[2]],y=t.events[n[3]];if(b[1].end=Object.assign({},y[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const T=n[2]+1,x=n[3]-n[2]-1;e.add(T,x,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return a!==void 0&&(s.end=Object.assign({},qo(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function EE(e,t,n,r,a){const s=[],o=qo(t.events,n);a&&(a.end=Object.assign({},o),s.push(["exit",a,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function qo(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const oB={name:"tasklistCheck",tokenize:cB};function uB(){return{text:{91:oB}}}function cB(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return ln(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),o):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),o):n(d)}function o(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return rt(d)?t(d):Pt(d)?e.check({tokenize:dB},t,n)(d):n(d)}}function dB(e,t,n){return Rt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function hB(e){return l7([BP(),VP(),tB(e),iB(),uB()])}const fB={};function mB(e){const t=this,n=e||fB,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(hB(n)),s.push(IP()),o.push(DP(n))}const TE=/[#.]/g;function pB(e,t){const n=e||"",r={};let a=0,s,o;for(;a<n.length;){TE.lastIndex=a;const c=TE.exec(n),d=n.slice(a,c?c.index:n.length);d&&(s?s==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:o=d,a+=d.length),c&&(s=c[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function J7(e,t,n){const r=n?yB(n):void 0;function a(s,o,...c){let d;if(s==null){d={type:"root",children:[]};const f=o;c.unshift(f)}else{d=pB(s,t);const f=d.tagName.toLowerCase(),m=r?r.get(f):void 0;if(d.tagName=m||f,gB(o))c.unshift(o);else for(const[p,b]of Object.entries(o))bB(e,d.properties,p,b)}for(const f of c)ub(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function gB(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 a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const s=a;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function bB(e,t,n,r){const a=f2(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=L_(r):a.commaSeparated?s=O_(r):a.commaOrSpaceSeparated?s=L_(O_(r).join(" ")):s=xE(a,a.property,r):Array.isArray(r)?s=[...r]:s=a.property==="style"?vB(r):String(r);if(Array.isArray(s)){const o=[];for(const c of s)o.push(xE(a,a.property,c));s=o}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function ub(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)ub(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ub(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function xE(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||h0(n)===h0(t)))return!0}return n}function vB(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function yB(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const _B=["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"],eT=J7($f,"div"),tT=J7(fu,"g",_B);function EB(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let o=0;for(;;){let c=n[o];if(c===void 0){const d=SE(t,n[o-1]);c=d===-1?t.length+1:d+1,n[o]=c}if(c>s)return{line:o+1,column:s-(o>0?n[o-1]:0)+1,offset:s};o++}}}function a(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const c=n[n.length-1],d=SE(t,c),f=d===-1?t.length+1:d+1;if(c===f)break;n.push(f)}const o=(s.line>1?n[s.line-2]:0)+s.column-1;if(o<n[s.line-1])return o}}}function SE(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
119
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const di={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/"},nT={}.hasOwnProperty,TB=Object.prototype;function xB(e,t){const n=t||{};return N2({file:n.file||void 0,location:!1,schema:n.space==="svg"?fu:$f,verbose:n.verbose||!1},e)}function N2(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},$h(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:rT(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const s=String(e.file),o=EB(s),c=o.toPoint(0),d=o.toPoint(s.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},$h(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},$h(e,r,n),n}default:return n=SB(e,t),n}}function rT(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=N2(e,t[n]);r.push(a)}return r}function SB(e,t){const n=e.schema;e.schema=t.namespaceURI===di.svg?fu:$f;let r=-1;const a={};for(;++r<t.attrs.length;){const c=t.attrs[r],d=(c.prefix?c.prefix+":":"")+c.name;nT.call(TB,d)||(a[d]=c.value)}const o=(e.schema.space==="svg"?tT:eT)(t.tagName,a,rT(e,t.childNodes));if($h(e,t,o),o.tagName==="template"){const c=t,d=c.sourceCodeLocation,f=d&&d.startTag&&Go(d.startTag),m=d&&d.endTag&&Go(d.endTag),p=N2(e,c.content);f&&m&&e.file&&(p.position={start:f.end,end:m.start}),o.content=p}return e.schema=n,o}function $h(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=wB(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function wB(e,t,n){const r=Go(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const s={};let o;if(n.attrs)for(o in n.attrs)nT.call(n.attrs,o)&&(s[f2(e.schema,o).property]=Go(n.attrs[o]));n.startTag;const c=Go(n.startTag),d=n.endTag?Go(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=s,t.data={position:f}}}return r}function Go(e){const t=wE({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=wE({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function wE(e){return e.line&&e.column?e:void 0}class P0{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}P0.prototype.property={};P0.prototype.normal={};P0.prototype.space=null;function aT(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new P0(n,r,t)}function cb(e){return e.toLowerCase()}class za{constructor(t,n){this.property=t,this.attribute=n}}za.prototype.space=null;za.prototype.boolean=!1;za.prototype.booleanish=!1;za.prototype.overloadedBoolean=!1;za.prototype.number=!1;za.prototype.commaSeparated=!1;za.prototype.spaceSeparated=!1;za.prototype.commaOrSpaceSeparated=!1;za.prototype.mustUseProperty=!1;za.prototype.defined=!1;let AB=0;const xt=Zl(),Qn=Zl(),iT=Zl(),Ie=Zl(),fn=Zl(),Xo=Zl(),ga=Zl();function Zl(){return 2**++AB}const db=Object.freeze(Object.defineProperty({__proto__:null,boolean:xt,booleanish:Qn,commaOrSpaceSeparated:ga,commaSeparated:Xo,number:Ie,overloadedBoolean:iT,spaceSeparated:fn},Symbol.toStringTag,{value:"Module"})),Q1=Object.keys(db);class O2 extends za{constructor(t,n,r,a){let s=-1;if(super(t,n),AE(this,"space",a),typeof r=="number")for(;++s<Q1.length;){const o=Q1[s];AE(this,Q1[s],(r&db[o])===db[o])}}}O2.prototype.defined=!0;function AE(e,t,n){n&&(e[t]=n)}const kB={}.hasOwnProperty;function pu(e){const t={},n={};let r;for(r in e.properties)if(kB.call(e.properties,r)){const a=e.properties[r],s=new O2(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[cb(r)]=r,n[cb(s.attribute)]=r}return new P0(t,n,e.space)}const sT=pu({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}}),lT=pu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function oT(e,t){return t in e?e[t]:t}function uT(e,t){return oT(e,t.toLowerCase())}const cT=pu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:uT,properties:{xmlns:null,xmlnsXLink:null}}),dT=pu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Qn,ariaAutoComplete:null,ariaBusy:Qn,ariaChecked:Qn,ariaColCount:Ie,ariaColIndex:Ie,ariaColSpan:Ie,ariaControls:fn,ariaCurrent:null,ariaDescribedBy:fn,ariaDetails:null,ariaDisabled:Qn,ariaDropEffect:fn,ariaErrorMessage:null,ariaExpanded:Qn,ariaFlowTo:fn,ariaGrabbed:Qn,ariaHasPopup:null,ariaHidden:Qn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fn,ariaLevel:Ie,ariaLive:null,ariaModal:Qn,ariaMultiLine:Qn,ariaMultiSelectable:Qn,ariaOrientation:null,ariaOwns:fn,ariaPlaceholder:null,ariaPosInSet:Ie,ariaPressed:Qn,ariaReadOnly:Qn,ariaRelevant:null,ariaRequired:Qn,ariaRoleDescription:fn,ariaRowCount:Ie,ariaRowIndex:Ie,ariaRowSpan:Ie,ariaSelected:Qn,ariaSetSize:Ie,ariaSort:null,ariaValueMax:Ie,ariaValueMin:Ie,ariaValueNow:Ie,ariaValueText:null,role:null}}),CB=pu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:uT,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xo,acceptCharset:fn,accessKey:fn,action:null,allow:null,allowFullScreen:xt,allowPaymentRequest:xt,allowUserMedia:xt,alt:null,as:null,async:xt,autoCapitalize:null,autoComplete:fn,autoFocus:xt,autoPlay:xt,blocking:fn,capture:null,charSet:null,checked:xt,cite:null,className:fn,cols:Ie,colSpan:null,content:null,contentEditable:Qn,controls:xt,controlsList:fn,coords:Ie|Xo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xt,defer:xt,dir:null,dirName:null,disabled:xt,download:iT,draggable:Qn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xt,formTarget:null,headers:fn,height:Ie,hidden:xt,high:Ie,href:null,hrefLang:null,htmlFor:fn,httpEquiv:fn,id:null,imageSizes:null,imageSrcSet:null,inert:xt,inputMode:null,integrity:null,is:null,isMap:xt,itemId:null,itemProp:fn,itemRef:fn,itemScope:xt,itemType:fn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xt,low:Ie,manifest:null,max:null,maxLength:Ie,media:null,method:null,min:null,minLength:Ie,multiple:xt,muted:xt,name:null,nonce:null,noModule:xt,noValidate:xt,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:xt,optimum:Ie,pattern:null,ping:fn,placeholder:null,playsInline:xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xt,referrerPolicy:null,rel:fn,required:xt,reversed:xt,rows:Ie,rowSpan:Ie,sandbox:fn,scope:null,scoped:xt,seamless:xt,selected:xt,shadowRootClonable:xt,shadowRootDelegatesFocus:xt,shadowRootMode:null,shape:null,size:Ie,sizes:null,slot:null,span:Ie,spellCheck:Qn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ie,step:null,style:null,tabIndex:Ie,target:null,title:null,translate:null,type:null,typeMustMatch:xt,useMap:null,value:Qn,width:Ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fn,axis:null,background:null,bgColor:null,border:Ie,borderColor:null,bottomMargin:Ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xt,declare:xt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ie,leftMargin:Ie,link:null,longDesc:null,lowSrc:null,marginHeight:Ie,marginWidth:Ie,noResize:xt,noHref:xt,noShade:xt,noWrap:xt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ie,rules:null,scheme:null,scrolling:Qn,standby:null,summary:null,text:null,topMargin:Ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xt,disableRemotePlayback:xt,prefix:null,property:null,results:Ie,security:null,unselectable:null}}),NB=pu({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:oT,properties:{about:ga,accentHeight:Ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ie,amplitude:Ie,arabicForm:null,ascent:Ie,attributeName:null,attributeType:null,azimuth:Ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ie,by:null,calcMode:null,capHeight:Ie,className:fn,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:Ie,diffuseConstant:Ie,direction:null,display:null,dur:null,divisor:Ie,dominantBaseline:null,download:xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ie,enableBackground:null,end:null,event:null,exponent:Ie,externalResourcesRequired:null,fill:null,fillOpacity:Ie,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:Xo,g2:Xo,glyphName:Xo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ie,horizOriginX:Ie,horizOriginY:Ie,id:null,ideographic:Ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ie,k:Ie,k1:Ie,k2:Ie,k3:Ie,k4:Ie,kernelMatrix:ga,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ie,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:Ie,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:Ie,overlineThickness:Ie,paintOrder:null,panose1:null,path:null,pathLength:Ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ie,pointsAtY:Ie,pointsAtZ:Ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ga,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ga,rev:ga,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ga,requiredFeatures:ga,requiredFonts:ga,requiredFormats:ga,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:Ie,specularExponent:Ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ie,strikethroughThickness:Ie,string:null,stroke:null,strokeDashArray:ga,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ie,strokeOpacity:Ie,strokeWidth:null,style:null,surfaceScale:Ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ga,tabIndex:Ie,tableValues:null,target:null,targetX:Ie,targetY:Ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ga,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ie,underlineThickness:Ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ie,values:null,vAlphabetic:Ie,vMathematical:Ie,vectorEffect:null,vHanging:Ie,vIdeographic:Ie,version:null,vertAdvY:Ie,vertOriginX:Ie,vertOriginY:Ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),OB=/^data[-\w.:]+$/i,kE=/-[a-z]/g,RB=/[A-Z]/g;function MB(e,t){const n=cb(t);let r=t,a=za;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&OB.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(kE,DB);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!kE.test(s)){let o=s.replace(RB,IB);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=O2}return new a(r,t)}function IB(e){return"-"+e.toLowerCase()}function DB(e){return e.charAt(1).toUpperCase()}const LB=aT([lT,sT,cT,dT,CB],"html"),hT=aT([lT,sT,cT,dT,NB],"svg"),PB={},BB={}.hasOwnProperty,fT=M7("type",{handlers:{root:FB,element:$B,text:qB,comment:jB,doctype:HB}});function UB(e,t){const r=(t||PB).space;return fT(e,r==="svg"?hT:LB)}function FB(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=R2(e.children,n,t),gu(e,n),n}function zB(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=R2(e.children,n,t),gu(e,n),n}function HB(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return gu(e,t),t}function qB(e){const t={nodeName:"#text",value:e.value,parentNode:null};return gu(e,t),t}function jB(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return gu(e,t),t}function $B(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=hT);const a=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&BB.call(e.properties,s)){const d=YB(r,s,e.properties[s]);d&&a.push(d)}}const o=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:di[o],childNodes:[],parentNode:null};return c.childNodes=R2(e.children,c,r),gu(e,c),e.tagName==="template"&&e.content&&(c.content=zB(e.content,r)),c}function YB(e,t,n){const r=MB(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?G8(n):e7(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=a.name.indexOf(":");s<0?a.prefix="":(a.name=a.name.slice(s+1),a.prefix=r.attribute.slice(0,s)),a.namespace=di[r.space]}return a}function R2(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const s=fT(e[r],n);s.parentNode=t,a.push(s)}return a}function gu(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 GB=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],VB=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]),An="�";var P;(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"})(P||(P={}));const Qr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function mT(e){return e>=55296&&e<=57343}function KB(e){return e>=56320&&e<=57343}function WB(e,t){return(e-55296)*1024+9216+t}function pT(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function gT(e){return e>=64976&&e<=65007||VB.has(e)}var be;(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"})(be||(be={}));const XB=65536;class QB{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=XB,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:a,offset:s}=this,o=a+n,c=s+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:c,endOffset:c}}_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(KB(n))return this.pos++,this._addGap(),WB(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,P.EOF;return this._err(be.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,P.EOF;const r=this.html.charCodeAt(n);return r===P.CARRIAGE_RETURN?P.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,P.EOF;let t=this.html.charCodeAt(this.pos);return t===P.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,P.LINE_FEED):t===P.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,mT(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===P.LINE_FEED||t===P.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){pT(t)?this._err(be.controlCharacterInInputStream):gT(t)&&this._err(be.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ot;(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"})(Ot||(Ot={}));function bT(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 ZB=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),JB=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 eU(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=JB.get(e))!==null&&t!==void 0?t:e}var mr;(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"})(mr||(mr={}));const tU=32;var Zs;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Zs||(Zs={}));function hb(e){return e>=mr.ZERO&&e<=mr.NINE}function nU(e){return e>=mr.UPPER_A&&e<=mr.UPPER_F||e>=mr.LOWER_A&&e<=mr.LOWER_F}function rU(e){return e>=mr.UPPER_A&&e<=mr.UPPER_Z||e>=mr.LOWER_A&&e<=mr.LOWER_Z||hb(e)}function aU(e){return e===mr.EQUALS||rU(e)}var dr;(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"})(dr||(dr={}));var Xi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Xi||(Xi={}));class iU{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=dr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Xi.Strict}startEntity(t){this.decodeMode=t,this.state=dr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case dr.EntityStart:return t.charCodeAt(n)===mr.NUM?(this.state=dr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=dr.NamedEntity,this.stateNamedEntity(t,n));case dr.NumericStart:return this.stateNumericStart(t,n);case dr.NumericDecimal:return this.stateNumericDecimal(t,n);case dr.NumericHex:return this.stateNumericHex(t,n);case dr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|tU)===mr.LOWER_X?(this.state=dr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=dr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const s=r-n;this.result=this.result*Math.pow(a,s)+Number.parseInt(t.substr(n,s),a),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(hb(a)||nU(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(hb(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,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===mr.SEMI)this.consumed+=1;else if(this.decodeMode===Xi.Strict)return 0;return this.emitCodePoint(eU(this.result),this.consumed),this.errors&&(t!==mr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],s=(a&Zs.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=sU(r,a,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Xi.Attribute&&(s===0||aU(o))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],s=(a&Zs.VALUE_LENGTH)>>14,s!==0){if(o===mr.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Xi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Zs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Zs.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case dr.NamedEntity:return this.result!==0&&(this.decodeMode!==Xi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case dr.NumericDecimal:return this.emitNumericEntity(0,2);case dr.NumericHex:return this.emitNumericEntity(0,3);case dr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case dr.EntityStart:return 0}}}function sU(e,t,n,r){const a=(t&Zs.BRANCH_LENGTH)>>7,s=t&Zs.JUMP_TABLE;if(a===0)return s!==0&&r===s?n:-1;if(s){const d=r-s;return d<0||d>=a?-1:e[n+d]-1}let o=n,c=o+a-1;for(;o<=c;){const d=o+c>>>1,f=e[d];if(f<r)o=d+1;else if(f>r)c=d-1;else return e[d+a]}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 $l;(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"})($l||($l={}));var Ma;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ma||(Ma={}));var re;(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"})(re||(re={}));var _;(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"})(_||(_={}));const lU=new Map([[re.A,_.A],[re.ADDRESS,_.ADDRESS],[re.ANNOTATION_XML,_.ANNOTATION_XML],[re.APPLET,_.APPLET],[re.AREA,_.AREA],[re.ARTICLE,_.ARTICLE],[re.ASIDE,_.ASIDE],[re.B,_.B],[re.BASE,_.BASE],[re.BASEFONT,_.BASEFONT],[re.BGSOUND,_.BGSOUND],[re.BIG,_.BIG],[re.BLOCKQUOTE,_.BLOCKQUOTE],[re.BODY,_.BODY],[re.BR,_.BR],[re.BUTTON,_.BUTTON],[re.CAPTION,_.CAPTION],[re.CENTER,_.CENTER],[re.CODE,_.CODE],[re.COL,_.COL],[re.COLGROUP,_.COLGROUP],[re.DD,_.DD],[re.DESC,_.DESC],[re.DETAILS,_.DETAILS],[re.DIALOG,_.DIALOG],[re.DIR,_.DIR],[re.DIV,_.DIV],[re.DL,_.DL],[re.DT,_.DT],[re.EM,_.EM],[re.EMBED,_.EMBED],[re.FIELDSET,_.FIELDSET],[re.FIGCAPTION,_.FIGCAPTION],[re.FIGURE,_.FIGURE],[re.FONT,_.FONT],[re.FOOTER,_.FOOTER],[re.FOREIGN_OBJECT,_.FOREIGN_OBJECT],[re.FORM,_.FORM],[re.FRAME,_.FRAME],[re.FRAMESET,_.FRAMESET],[re.H1,_.H1],[re.H2,_.H2],[re.H3,_.H3],[re.H4,_.H4],[re.H5,_.H5],[re.H6,_.H6],[re.HEAD,_.HEAD],[re.HEADER,_.HEADER],[re.HGROUP,_.HGROUP],[re.HR,_.HR],[re.HTML,_.HTML],[re.I,_.I],[re.IMG,_.IMG],[re.IMAGE,_.IMAGE],[re.INPUT,_.INPUT],[re.IFRAME,_.IFRAME],[re.KEYGEN,_.KEYGEN],[re.LABEL,_.LABEL],[re.LI,_.LI],[re.LINK,_.LINK],[re.LISTING,_.LISTING],[re.MAIN,_.MAIN],[re.MALIGNMARK,_.MALIGNMARK],[re.MARQUEE,_.MARQUEE],[re.MATH,_.MATH],[re.MENU,_.MENU],[re.META,_.META],[re.MGLYPH,_.MGLYPH],[re.MI,_.MI],[re.MO,_.MO],[re.MN,_.MN],[re.MS,_.MS],[re.MTEXT,_.MTEXT],[re.NAV,_.NAV],[re.NOBR,_.NOBR],[re.NOFRAMES,_.NOFRAMES],[re.NOEMBED,_.NOEMBED],[re.NOSCRIPT,_.NOSCRIPT],[re.OBJECT,_.OBJECT],[re.OL,_.OL],[re.OPTGROUP,_.OPTGROUP],[re.OPTION,_.OPTION],[re.P,_.P],[re.PARAM,_.PARAM],[re.PLAINTEXT,_.PLAINTEXT],[re.PRE,_.PRE],[re.RB,_.RB],[re.RP,_.RP],[re.RT,_.RT],[re.RTC,_.RTC],[re.RUBY,_.RUBY],[re.S,_.S],[re.SCRIPT,_.SCRIPT],[re.SEARCH,_.SEARCH],[re.SECTION,_.SECTION],[re.SELECT,_.SELECT],[re.SOURCE,_.SOURCE],[re.SMALL,_.SMALL],[re.SPAN,_.SPAN],[re.STRIKE,_.STRIKE],[re.STRONG,_.STRONG],[re.STYLE,_.STYLE],[re.SUB,_.SUB],[re.SUMMARY,_.SUMMARY],[re.SUP,_.SUP],[re.TABLE,_.TABLE],[re.TBODY,_.TBODY],[re.TEMPLATE,_.TEMPLATE],[re.TEXTAREA,_.TEXTAREA],[re.TFOOT,_.TFOOT],[re.TD,_.TD],[re.TH,_.TH],[re.THEAD,_.THEAD],[re.TITLE,_.TITLE],[re.TR,_.TR],[re.TRACK,_.TRACK],[re.TT,_.TT],[re.U,_.U],[re.UL,_.UL],[re.SVG,_.SVG],[re.VAR,_.VAR],[re.WBR,_.WBR],[re.XMP,_.XMP]]);function bu(e){var t;return(t=lU.get(e))!==null&&t!==void 0?t:_.UNKNOWN}const ke=_,oU={[Ae.HTML]:new Set([ke.ADDRESS,ke.APPLET,ke.AREA,ke.ARTICLE,ke.ASIDE,ke.BASE,ke.BASEFONT,ke.BGSOUND,ke.BLOCKQUOTE,ke.BODY,ke.BR,ke.BUTTON,ke.CAPTION,ke.CENTER,ke.COL,ke.COLGROUP,ke.DD,ke.DETAILS,ke.DIR,ke.DIV,ke.DL,ke.DT,ke.EMBED,ke.FIELDSET,ke.FIGCAPTION,ke.FIGURE,ke.FOOTER,ke.FORM,ke.FRAME,ke.FRAMESET,ke.H1,ke.H2,ke.H3,ke.H4,ke.H5,ke.H6,ke.HEAD,ke.HEADER,ke.HGROUP,ke.HR,ke.HTML,ke.IFRAME,ke.IMG,ke.INPUT,ke.LI,ke.LINK,ke.LISTING,ke.MAIN,ke.MARQUEE,ke.MENU,ke.META,ke.NAV,ke.NOEMBED,ke.NOFRAMES,ke.NOSCRIPT,ke.OBJECT,ke.OL,ke.P,ke.PARAM,ke.PLAINTEXT,ke.PRE,ke.SCRIPT,ke.SECTION,ke.SELECT,ke.SOURCE,ke.STYLE,ke.SUMMARY,ke.TABLE,ke.TBODY,ke.TD,ke.TEMPLATE,ke.TEXTAREA,ke.TFOOT,ke.TH,ke.THEAD,ke.TITLE,ke.TR,ke.TRACK,ke.UL,ke.WBR,ke.XMP]),[Ae.MATHML]:new Set([ke.MI,ke.MO,ke.MN,ke.MS,ke.MTEXT,ke.ANNOTATION_XML]),[Ae.SVG]:new Set([ke.TITLE,ke.FOREIGN_OBJECT,ke.DESC]),[Ae.XLINK]:new Set,[Ae.XML]:new Set,[Ae.XMLNS]:new Set},fb=new Set([ke.H1,ke.H2,ke.H3,ke.H4,ke.H5,ke.H6]);re.STYLE,re.SCRIPT,re.XMP,re.IFRAME,re.NOEMBED,re.NOFRAMES,re.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 jn={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function uU(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function qc(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function cU(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function Vs(e){return cU(e)||qc(e)}function CE(e){return Vs(e)||uU(e)}function fh(e){return e+32}function vT(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function NE(e){return vT(e)||e===P.SOLIDUS||e===P.GREATER_THAN_SIGN}function dU(e){return e===P.NULL?be.nullCharacterReference:e>1114111?be.characterReferenceOutsideUnicodeRange:mT(e)?be.surrogateCharacterReference:gT(e)?be.noncharacterCharacterReference:pT(e)||e===P.CARRIAGE_RETURN?be.controlCharacterReference:null}class hU{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 QB(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new iU(ZB,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(be.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(be.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=dU(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.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:Ot.START_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ot.END_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ot.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ot.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(bT(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(be.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=bu(t.tagName),t.type===Ot.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(be.endTagWithAttributes),t.selfClosing&&this._err(be.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 Ot.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ot.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ot.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:Ot.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=vT(t)?Ot.WHITESPACE_CHARACTER:t===P.NULL?Ot.NULL_CHARACTER:Ot.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ot.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Xi.Attribute:Xi.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 P.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(be.unexpectedNullCharacter),this._emitCodePoint(t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case P.AMPERSAND:{this._startCharacterReference();break}case P.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(be.unexpectedNullCharacter),this._emitChars(An);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case P.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case P.NULL:{this._err(be.unexpectedNullCharacter),this._emitChars(An);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(be.unexpectedNullCharacter),this._emitChars(An);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case P.NULL:{this._err(be.unexpectedNullCharacter),this._emitChars(An);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Vs(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case P.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case P.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case P.QUESTION_MARK:{this._err(be.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case P.EOF:{this._err(be.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(be.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Vs(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case P.GREATER_THAN_SIGN:{this._err(be.missingEndTagName),this.state=B.DATA;break}case P.EOF:{this._err(be.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(be.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(be.unexpectedNullCharacter),n.tagName+=An;break}case P.EOF:{this._err(be.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(qc(t)?fh(t):t)}}_stateRcdataLessThanSign(t){t===P.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Vs(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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case P.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case P.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===P.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Vs(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 P.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case P.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){Vs(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===P.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===P.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 P.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(be.unexpectedNullCharacter),this._emitChars(An);break}case P.EOF:{this._err(be.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(be.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(An);break}case P.EOF:{this._err(be.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(be.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(An);break}case P.EOF:{this._err(be.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===P.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Vs(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){Vs(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(Qr.SCRIPT,!1)&&NE(this.preprocessor.peek(Qr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Qr.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 P.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(be.unexpectedNullCharacter),this._emitChars(An);break}case P.EOF:{this._err(be.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(be.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(An);break}case P.EOF:{this._err(be.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(be.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(An);break}case P.EOF:{this._err(be.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===P.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(Qr.SCRIPT,!1)&&NE(this.preprocessor.peek(Qr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Qr.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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._err(be.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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:{this._err(be.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case P.NULL:{this._err(be.unexpectedNullCharacter),this.currentAttr.name+=An;break}default:this.currentAttr.name+=String.fromCodePoint(qc(t)?fh(t):t)}}_stateAfterAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case P.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case P.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(be.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(be.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case P.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(be.unexpectedNullCharacter),this.currentAttr.value+=An;break}case P.EOF:{this._err(be.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case P.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(be.unexpectedNullCharacter),this.currentAttr.value+=An;break}case P.EOF:{this._err(be.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(be.unexpectedNullCharacter),this.currentAttr.value+=An;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:case P.EQUALS_SIGN:case P.GRAVE_ACCENT:{this._err(be.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case P.EOF:{this._err(be.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(be.eofInTag),this._emitEOFToken();break}default:this._err(be.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case P.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(be.eofInTag),this._emitEOFToken();break}default:this._err(be.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case P.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case P.NULL:{this._err(be.unexpectedNullCharacter),n.data+=An;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Qr.DASH_DASH,!0)?(this._createCommentToken(Qr.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(Qr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Qr.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(Qr.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(be.cdataInHtmlContent),this._createCommentToken(Qr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(be.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case P.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case P.GREATER_THAN_SIGN:{this._err(be.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 P.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case P.GREATER_THAN_SIGN:{this._err(be.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(be.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 P.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case P.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case P.NULL:{this._err(be.unexpectedNullCharacter),n.data+=An;break}case P.EOF:{this._err(be.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case P.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case P.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===P.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===P.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(be.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case P.EOF:{this._err(be.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 P.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case P.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case P.HYPHEN_MINUS:{n.data+="-";break}case P.EOF:{this._err(be.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 P.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case P.GREATER_THAN_SIGN:{this._err(be.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(be.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case P.EOF:{this._err(be.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(be.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(qc(t))this._createDoctypeToken(String.fromCharCode(fh(t))),this.state=B.DOCTYPE_NAME;else switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.NULL:{this._err(be.unexpectedNullCharacter),this._createDoctypeToken(An),this.state=B.DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this._err(be.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case P.EOF:{this._err(be.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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case P.NULL:{this._err(be.unexpectedNullCharacter),n.name+=An;break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(qc(t)?fh(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Qr.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Qr.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(be.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(be.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(be.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(be.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(be.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(be.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(be.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(be.unexpectedNullCharacter),n.publicId+=An;break}case P.GREATER_THAN_SIGN:{this._err(be.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case P.EOF:{this._err(be.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 P.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(be.unexpectedNullCharacter),n.publicId+=An;break}case P.GREATER_THAN_SIGN:{this._err(be.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case P.EOF:{this._err(be.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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case P.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case P.QUOTATION_MARK:{this._err(be.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(be.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(be.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case P.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(be.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(be.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(be.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(be.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(be.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(be.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(be.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(be.unexpectedNullCharacter),n.systemId+=An;break}case P.GREATER_THAN_SIGN:{this._err(be.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case P.EOF:{this._err(be.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 P.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(be.unexpectedNullCharacter),n.systemId+=An;break}case P.GREATER_THAN_SIGN:{this._err(be.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case P.EOF:{this._err(be.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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case P.EOF:{this._err(be.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(be.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case P.NULL:{this._err(be.unexpectedNullCharacter);break}case P.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case P.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case P.EOF:{this._err(be.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===P.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case P.GREATER_THAN_SIGN:{this.state=B.DATA;break}case P.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(P.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&CE(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){CE(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===P.SEMICOLON&&this._err(be.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const yT=new Set([_.DD,_.DT,_.LI,_.OPTGROUP,_.OPTION,_.P,_.RB,_.RP,_.RT,_.RTC]),OE=new Set([...yT,_.CAPTION,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]),sf=new Set([_.APPLET,_.CAPTION,_.HTML,_.MARQUEE,_.OBJECT,_.TABLE,_.TD,_.TEMPLATE,_.TH]),fU=new Set([...sf,_.OL,_.UL]),mU=new Set([...sf,_.BUTTON]),RE=new Set([_.ANNOTATION_XML,_.MI,_.MN,_.MO,_.MS,_.MTEXT]),ME=new Set([_.DESC,_.FOREIGN_OBJECT,_.TITLE]),pU=new Set([_.TR,_.TEMPLATE,_.HTML]),gU=new Set([_.TBODY,_.TFOOT,_.THEAD,_.TEMPLATE,_.HTML]),bU=new Set([_.TABLE,_.TEMPLATE,_.HTML]),vU=new Set([_.TD,_.TH]);class yU{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=_.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===_.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 a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===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(fb,Ae.HTML)}popUntilTableCellPopped(){this.popUntilPopped(vU,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(bU,Ae.HTML)}clearBackToTableBodyContext(){this.clearBackTo(gU,Ae.HTML)}clearBackToTableRowContext(){this.clearBackTo(pU,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]===_.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]===_.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Ae.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Ae.SVG:{if(ME.has(a))return!1;break}case Ae.MATHML:{if(RE.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,sf)}hasInListItemScope(t){return this.hasInDynamicScope(t,fU)}hasInButtonScope(t){return this.hasInDynamicScope(t,mU)}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(fb.has(n))return!0;if(sf.has(n))return!1;break}case Ae.SVG:{if(ME.has(n))return!1;break}case Ae.MATHML:{if(RE.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 _.TABLE:case _.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 _.TBODY:case _.THEAD:case _.TFOOT:return!0;case _.TABLE:case _.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 _.OPTION:case _.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&yT.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&OE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&OE.has(this.currentTagId);)this.pop()}}const Z1=3;var ui;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ui||(ui={}));const IE={type:ui.Marker};class _U{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,s=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===ui.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===s&&this.treeAdapter.getNamespaceURI(f)===o){const m=this.treeAdapter.getAttrList(f);m.length===a&&r.push({idx:c,attrs:m})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Z1)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Z1)return;const a=new Map(n.map(o=>[o.name,o.value]));let s=0;for(let o=0;o<r.length;o++){const c=r[o];c.attrs.every(d=>a.get(d.name)===d.value)&&(s+=1,s>=Z1&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(IE)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ui.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ui.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(IE);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ui.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ui.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ui.Element&&n.element===t)}}const Ks={createDocument(){return{nodeName:"#document",mode:Ma.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 a=e.childNodes.find(s=>s.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ks.appendChild(e,s)}},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(Ks.isTextNode(n)){n.value+=t;return}}Ks.appendChild(e,Ks.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ks.isTextNode(r)?r.value+=t:Ks.insertBefore(e,Ks.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}}},_T="html",EU="about:legacy-compat",TU="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ET=["+//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//"],xU=[...ET,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],SU=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),TT=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],wU=[...TT,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function DE(e,t){return t.some(n=>e.startsWith(n))}function AU(e){return e.name===_T&&e.publicId===null&&(e.systemId===null||e.systemId===EU)}function kU(e){if(e.name!==_T)return Ma.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===TU)return Ma.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),SU.has(n))return Ma.QUIRKS;let r=t===null?xU:ET;if(DE(n,r))return Ma.QUIRKS;if(r=t===null?TT:wU,DE(n,r))return Ma.LIMITED_QUIRKS}return Ma.NO_QUIRKS}const LE={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},CU="definitionurl",NU="definitionURL",OU=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])),RU=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}]]),MU=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])),IU=new Set([_.B,_.BIG,_.BLOCKQUOTE,_.BODY,_.BR,_.CENTER,_.CODE,_.DD,_.DIV,_.DL,_.DT,_.EM,_.EMBED,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HR,_.I,_.IMG,_.LI,_.LISTING,_.MENU,_.META,_.NOBR,_.OL,_.P,_.PRE,_.RUBY,_.S,_.SMALL,_.SPAN,_.STRONG,_.STRIKE,_.SUB,_.SUP,_.TABLE,_.TT,_.U,_.UL,_.VAR]);function DU(e){const t=e.tagID;return t===_.FONT&&e.attrs.some(({name:r})=>r===$l.COLOR||r===$l.SIZE||r===$l.FACE)||IU.has(t)}function xT(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===CU){e.attrs[t].name=NU;break}}function ST(e){for(let t=0;t<e.attrs.length;t++){const n=OU.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function M2(e){for(let t=0;t<e.attrs.length;t++){const n=RU.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 LU(e){const t=MU.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=bu(e.tagName))}function PU(e,t){return t===Ae.MATHML&&(e===_.MI||e===_.MO||e===_.MN||e===_.MS||e===_.MTEXT)}function BU(e,t,n){if(t===Ae.MATHML&&e===_.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===$l.ENCODING){const a=n[r].value.toLowerCase();return a===LE.TEXT_HTML||a===LE.APPLICATION_XML}}return t===Ae.SVG&&(e===_.FOREIGN_OBJECT||e===_.DESC||e===_.TITLE)}function UU(e,t,n,r){return(!r||r===Ae.HTML)&&BU(e,t,n)||(!r||r===Ae.MATHML)&&PU(e,t)}const FU="hidden",zU=8,HU=3;var $;(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"})($||($={}));const qU={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},wT=new Set([_.TABLE,_.TBODY,_.TFOOT,_.THEAD,_.TR]),PE={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ks,onParseError:null};let BE=class{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=$.INITIAL,this.originalInsertionMode=$.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={...PE,...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 hU(this.options,this),this.activeFormattingElements=new _U(this.treeAdapter),this.fragmentContextID=r?bu(this.treeAdapter.getTagName(r)):_.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new yU(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={...PE,...n};t??(t=r.treeAdapter.createElement(re.TEMPLATE,Ae.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Ae.HTML,[]),s=new this(r,a,t);return s.fragmentContextID===_.TEMPLATE&&s.tmplInsertionModeStack.unshift($.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const s=(a=t.location)!==null&&a!==void 0?a:qU,o={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(o)}onItemPush(t,n,r){var a,s;(s=(a=this.treeAdapter).onItemPush)===null||s===void 0||s.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let s,o;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,o=this.fragmentContextID):{current:s,currentTagId:o}=this.openElements,this._setContextModes(s,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=$.TEXT}switchToPlaintextParsing(){this.insertionMode=$.TEXT,this.originalInsertionMode=$.IN_BODY,this.tokenizer.state=jn.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)===re.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 _.TITLE:case _.TEXTAREA:{this.tokenizer.state=jn.RCDATA;break}case _.STYLE:case _.XMP:case _.IFRAME:case _.NOEMBED:case _.NOFRAMES:case _.NOSCRIPT:{this.tokenizer.state=jn.RAWTEXT;break}case _.SCRIPT:{this.tokenizer.state=jn.SCRIPT_DATA;break}case _.PLAINTEXT:{this.tokenizer.state=jn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));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(re.HTML,Ae.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,_.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 a=this.treeAdapter.getChildNodes(n),s=r?a.lastIndexOf(r):a.length,o=a[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:d,endCol:f,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:d,endCol:f,endOffset:m})}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,a=this.treeAdapter.getTagName(t),s=n.type===Ot.END_TAG&&a===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,s)}}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===_.SVG&&this.treeAdapter.getTagName(n)===re.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Ae.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===_.MGLYPH||t.tagID===_.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Ae.HTML)}_processToken(t){switch(t.type){case Ot.CHARACTER:{this.onCharacter(t);break}case Ot.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ot.COMMENT:{this.onComment(t);break}case Ot.DOCTYPE:{this.onDoctype(t);break}case Ot.START_TAG:{this._processStartTag(t);break}case Ot.END_TAG:{this.onEndTag(t);break}case Ot.EOF:{this.onEof(t);break}case Ot.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return UU(t,a,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ui.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const s=this.activeFormattingElements.entries[a];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=$.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_.P),this.openElements.popUntilTagNamePopped(_.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case _.TR:{this.insertionMode=$.IN_ROW;return}case _.TBODY:case _.THEAD:case _.TFOOT:{this.insertionMode=$.IN_TABLE_BODY;return}case _.CAPTION:{this.insertionMode=$.IN_CAPTION;return}case _.COLGROUP:{this.insertionMode=$.IN_COLUMN_GROUP;return}case _.TABLE:{this.insertionMode=$.IN_TABLE;return}case _.BODY:{this.insertionMode=$.IN_BODY;return}case _.FRAMESET:{this.insertionMode=$.IN_FRAMESET;return}case _.SELECT:{this._resetInsertionModeForSelect(t);return}case _.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _.HTML:{this.insertionMode=this.headElement?$.AFTER_HEAD:$.BEFORE_HEAD;return}case _.TD:case _.TH:{if(t>0){this.insertionMode=$.IN_CELL;return}break}case _.HEAD:{if(t>0){this.insertionMode=$.IN_HEAD;return}break}}this.insertionMode=$.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===_.TEMPLATE)break;if(r===_.TABLE){this.insertionMode=$.IN_SELECT_IN_TABLE;return}}this.insertionMode=$.IN_SELECT}_isElementCausesFosterParenting(t){return wT.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 _.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Ae.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case _.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 oU[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){vz(this,t);return}switch(this.insertionMode){case $.INITIAL:{Nc(this,t);break}case $.BEFORE_HTML:{n0(this,t);break}case $.BEFORE_HEAD:{r0(this,t);break}case $.IN_HEAD:{a0(this,t);break}case $.IN_HEAD_NO_SCRIPT:{i0(this,t);break}case $.AFTER_HEAD:{s0(this,t);break}case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:{kT(this,t);break}case $.TEXT:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:{J1(this,t);break}case $.IN_TABLE_TEXT:{IT(this,t);break}case $.IN_COLUMN_GROUP:{lf(this,t);break}case $.AFTER_BODY:{of(this,t);break}case $.AFTER_AFTER_BODY:{Yh(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){bz(this,t);return}switch(this.insertionMode){case $.INITIAL:{Nc(this,t);break}case $.BEFORE_HTML:{n0(this,t);break}case $.BEFORE_HEAD:{r0(this,t);break}case $.IN_HEAD:{a0(this,t);break}case $.IN_HEAD_NO_SCRIPT:{i0(this,t);break}case $.AFTER_HEAD:{s0(this,t);break}case $.TEXT:{this._insertCharacters(t);break}case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:{J1(this,t);break}case $.IN_COLUMN_GROUP:{lf(this,t);break}case $.AFTER_BODY:{of(this,t);break}case $.AFTER_AFTER_BODY:{Yh(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){mb(this,t);return}switch(this.insertionMode){case $.INITIAL:case $.BEFORE_HTML:case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_TEMPLATE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:{mb(this,t);break}case $.IN_TABLE_TEXT:{Oc(this,t);break}case $.AFTER_BODY:{WU(this,t);break}case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:{XU(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case $.INITIAL:{QU(this,t);break}case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:{this._err(t,be.misplacedDoctype);break}case $.IN_TABLE_TEXT:{Oc(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,be.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?yz(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case $.INITIAL:{Nc(this,t);break}case $.BEFORE_HTML:{ZU(this,t);break}case $.BEFORE_HEAD:{eF(this,t);break}case $.IN_HEAD:{Ja(this,t);break}case $.IN_HEAD_NO_SCRIPT:{rF(this,t);break}case $.AFTER_HEAD:{iF(this,t);break}case $.IN_BODY:{Or(this,t);break}case $.IN_TABLE:{ru(this,t);break}case $.IN_TABLE_TEXT:{Oc(this,t);break}case $.IN_CAPTION:{tz(this,t);break}case $.IN_COLUMN_GROUP:{L2(this,t);break}case $.IN_TABLE_BODY:{Zf(this,t);break}case $.IN_ROW:{Jf(this,t);break}case $.IN_CELL:{az(this,t);break}case $.IN_SELECT:{PT(this,t);break}case $.IN_SELECT_IN_TABLE:{sz(this,t);break}case $.IN_TEMPLATE:{oz(this,t);break}case $.AFTER_BODY:{cz(this,t);break}case $.IN_FRAMESET:{dz(this,t);break}case $.AFTER_FRAMESET:{fz(this,t);break}case $.AFTER_AFTER_BODY:{pz(this,t);break}case $.AFTER_AFTER_FRAMESET:{gz(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?_z(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case $.INITIAL:{Nc(this,t);break}case $.BEFORE_HTML:{JU(this,t);break}case $.BEFORE_HEAD:{tF(this,t);break}case $.IN_HEAD:{nF(this,t);break}case $.IN_HEAD_NO_SCRIPT:{aF(this,t);break}case $.AFTER_HEAD:{sF(this,t);break}case $.IN_BODY:{Qf(this,t);break}case $.TEXT:{YF(this,t);break}case $.IN_TABLE:{p0(this,t);break}case $.IN_TABLE_TEXT:{Oc(this,t);break}case $.IN_CAPTION:{nz(this,t);break}case $.IN_COLUMN_GROUP:{rz(this,t);break}case $.IN_TABLE_BODY:{pb(this,t);break}case $.IN_ROW:{LT(this,t);break}case $.IN_CELL:{iz(this,t);break}case $.IN_SELECT:{BT(this,t);break}case $.IN_SELECT_IN_TABLE:{lz(this,t);break}case $.IN_TEMPLATE:{uz(this,t);break}case $.AFTER_BODY:{FT(this,t);break}case $.IN_FRAMESET:{hz(this,t);break}case $.AFTER_FRAMESET:{mz(this,t);break}case $.AFTER_AFTER_BODY:{Yh(this,t);break}}}onEof(t){switch(this.insertionMode){case $.INITIAL:{Nc(this,t);break}case $.BEFORE_HTML:{n0(this,t);break}case $.BEFORE_HEAD:{r0(this,t);break}case $.IN_HEAD:{a0(this,t);break}case $.IN_HEAD_NO_SCRIPT:{i0(this,t);break}case $.AFTER_HEAD:{s0(this,t);break}case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:{RT(this,t);break}case $.TEXT:{GF(this,t);break}case $.IN_TABLE_TEXT:{Oc(this,t);break}case $.IN_TEMPLATE:{UT(this,t);break}case $.AFTER_BODY:case $.IN_FRAMESET:case $.AFTER_FRAMESET:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:{D2(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===P.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 $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.TEXT:case $.IN_COLUMN_GROUP:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:{this._insertCharacters(t);break}case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:case $.AFTER_BODY:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:{AT(this,t);break}case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:{J1(this,t);break}case $.IN_TABLE_TEXT:{MT(this,t);break}}}};function jU(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):OT(e,t),n}function $U(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function YU(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let s=0,o=a;o!==n;s++,o=a){a=e.openElements.getCommonAncestor(o);const c=e.activeFormattingElements.getElementEntry(o),d=c&&s>=HU;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(o)):(o=GU(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function GU(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 VU(e,t,n){const r=e.treeAdapter.getTagName(t),a=bu(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);a===_.TEMPLATE&&s===Ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function KU(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,s=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,a.tagID)}function I2(e,t){for(let n=0;n<zU;n++){const r=jU(e,t);if(!r)break;const a=$U(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const s=YU(e,a,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),o&&VU(e,o,s),KU(e,a,r)}}function mb(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function WU(e,t){e._appendCommentNode(t,e.openElements.items[0])}function XU(e,t){e._appendCommentNode(t,e.document)}function D2(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],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(s);o&&!o.endTag&&e._setEndLocation(s,t)}}}}function QU(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ma.QUIRKS:kU(t);AU(t)||e._err(t,be.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=$.BEFORE_HTML}function Nc(e,t){e._err(t,be.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ma.QUIRKS),e.insertionMode=$.BEFORE_HTML,e._processToken(t)}function ZU(e,t){t.tagID===_.HTML?(e._insertElement(t,Ae.HTML),e.insertionMode=$.BEFORE_HEAD):n0(e,t)}function JU(e,t){const n=t.tagID;(n===_.HTML||n===_.HEAD||n===_.BODY||n===_.BR)&&n0(e,t)}function n0(e,t){e._insertFakeRootElement(),e.insertionMode=$.BEFORE_HEAD,e._processToken(t)}function eF(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.HEAD:{e._insertElement(t,Ae.HTML),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD;break}default:r0(e,t)}}function tF(e,t){const n=t.tagID;n===_.HEAD||n===_.BODY||n===_.HTML||n===_.BR?r0(e,t):e._err(t,be.endTagWithoutMatchingOpenElement)}function r0(e,t){e._insertFakeElement(re.HEAD,_.HEAD),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD,e._processToken(t)}function Ja(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case _.TITLE:{e._switchToTextParsing(t,jn.RCDATA);break}case _.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,jn.RAWTEXT):(e._insertElement(t,Ae.HTML),e.insertionMode=$.IN_HEAD_NO_SCRIPT);break}case _.NOFRAMES:case _.STYLE:{e._switchToTextParsing(t,jn.RAWTEXT);break}case _.SCRIPT:{e._switchToTextParsing(t,jn.SCRIPT_DATA);break}case _.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=$.IN_TEMPLATE,e.tmplInsertionModeStack.unshift($.IN_TEMPLATE);break}case _.HEAD:{e._err(t,be.misplacedStartTagForHeadElement);break}default:a0(e,t)}}function nF(e,t){switch(t.tagID){case _.HEAD:{e.openElements.pop(),e.insertionMode=$.AFTER_HEAD;break}case _.BODY:case _.BR:case _.HTML:{a0(e,t);break}case _.TEMPLATE:{Jl(e,t);break}default:e._err(t,be.endTagWithoutMatchingOpenElement)}}function Jl(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==_.TEMPLATE&&e._err(t,be.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,be.endTagWithoutMatchingOpenElement)}function a0(e,t){e.openElements.pop(),e.insertionMode=$.AFTER_HEAD,e._processToken(t)}function rF(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.BASEFONT:case _.BGSOUND:case _.HEAD:case _.LINK:case _.META:case _.NOFRAMES:case _.STYLE:{Ja(e,t);break}case _.NOSCRIPT:{e._err(t,be.nestedNoscriptInHead);break}default:i0(e,t)}}function aF(e,t){switch(t.tagID){case _.NOSCRIPT:{e.openElements.pop(),e.insertionMode=$.IN_HEAD;break}case _.BR:{i0(e,t);break}default:e._err(t,be.endTagWithoutMatchingOpenElement)}}function i0(e,t){const n=t.type===Ot.EOF?be.openElementsLeftAfterEof:be.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=$.IN_HEAD,e._processToken(t)}function iF(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.BODY:{e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=$.IN_BODY;break}case _.FRAMESET:{e._insertElement(t,Ae.HTML),e.insertionMode=$.IN_FRAMESET;break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{e._err(t,be.abandonedHeadElementChild),e.openElements.push(e.headElement,_.HEAD),Ja(e,t),e.openElements.remove(e.headElement);break}case _.HEAD:{e._err(t,be.misplacedStartTagForHeadElement);break}default:s0(e,t)}}function sF(e,t){switch(t.tagID){case _.BODY:case _.HTML:case _.BR:{s0(e,t);break}case _.TEMPLATE:{Jl(e,t);break}default:e._err(t,be.endTagWithoutMatchingOpenElement)}}function s0(e,t){e._insertFakeElement(re.BODY,_.BODY),e.insertionMode=$.IN_BODY,Xf(e,t)}function Xf(e,t){switch(t.type){case Ot.CHARACTER:{kT(e,t);break}case Ot.WHITESPACE_CHARACTER:{AT(e,t);break}case Ot.COMMENT:{mb(e,t);break}case Ot.START_TAG:{Or(e,t);break}case Ot.END_TAG:{Qf(e,t);break}case Ot.EOF:{RT(e,t);break}}}function AT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function kT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function lF(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function oF(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function uF(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ae.HTML),e.insertionMode=$.IN_FRAMESET)}function cF(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Ae.HTML)}function dF(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&fb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ae.HTML)}function hF(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function fF(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),n||(e.formElement=e.openElements.current))}function mF(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===_.LI&&a===_.LI||(n===_.DD||n===_.DT)&&(a===_.DD||a===_.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==_.ADDRESS&&a!==_.DIV&&a!==_.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Ae.HTML)}function pF(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.tokenizer.state=jn.PLAINTEXT}function gF(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.framesetOk=!1}function bF(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(re.A);n&&(I2(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 vF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function yF(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(I2(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _F(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function EF(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ma.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=$.IN_TABLE}function CT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function NT(e){const t=bT(e,$l.TYPE);return t!=null&&t.toLowerCase()===FU}function TF(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ae.HTML),NT(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function xF(e,t){e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0}function SF(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,Ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wF(e,t){t.tagName=re.IMG,t.tagID=_.IMG,CT(e,t)}function AF(e,t){e._insertElement(t,Ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=jn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=$.TEXT}function kF(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,jn.RAWTEXT)}function CF(e,t){e.framesetOk=!1,e._switchToTextParsing(t,jn.RAWTEXT)}function UE(e,t){e._switchToTextParsing(t,jn.RAWTEXT)}function NF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===$.IN_TABLE||e.insertionMode===$.IN_CAPTION||e.insertionMode===$.IN_TABLE_BODY||e.insertionMode===$.IN_ROW||e.insertionMode===$.IN_CELL?$.IN_SELECT_IN_TABLE:$.IN_SELECT}function OF(e,t){e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML)}function RF(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ae.HTML)}function MF(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,Ae.HTML)}function IF(e,t){e._reconstructActiveFormattingElements(),xT(t),M2(t),t.selfClosing?e._appendElement(t,Ae.MATHML):e._insertElement(t,Ae.MATHML),t.ackSelfClosing=!0}function DF(e,t){e._reconstructActiveFormattingElements(),ST(t),M2(t),t.selfClosing?e._appendElement(t,Ae.SVG):e._insertElement(t,Ae.SVG),t.ackSelfClosing=!0}function FE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ae.HTML)}function Or(e,t){switch(t.tagID){case _.I:case _.S:case _.B:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.SMALL:case _.STRIKE:case _.STRONG:{vF(e,t);break}case _.A:{bF(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{dF(e,t);break}case _.P:case _.DL:case _.OL:case _.UL:case _.DIV:case _.DIR:case _.NAV:case _.MAIN:case _.MENU:case _.ASIDE:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.DETAILS:case _.ADDRESS:case _.ARTICLE:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{cF(e,t);break}case _.LI:case _.DD:case _.DT:{mF(e,t);break}case _.BR:case _.IMG:case _.WBR:case _.AREA:case _.EMBED:case _.KEYGEN:{CT(e,t);break}case _.HR:{SF(e,t);break}case _.RB:case _.RTC:{RF(e,t);break}case _.RT:case _.RP:{MF(e,t);break}case _.PRE:case _.LISTING:{hF(e,t);break}case _.XMP:{kF(e,t);break}case _.SVG:{DF(e,t);break}case _.HTML:{lF(e,t);break}case _.BASE:case _.LINK:case _.META:case _.STYLE:case _.TITLE:case _.SCRIPT:case _.BGSOUND:case _.BASEFONT:case _.TEMPLATE:{Ja(e,t);break}case _.BODY:{oF(e,t);break}case _.FORM:{fF(e,t);break}case _.NOBR:{yF(e,t);break}case _.MATH:{IF(e,t);break}case _.TABLE:{EF(e,t);break}case _.INPUT:{TF(e,t);break}case _.PARAM:case _.TRACK:case _.SOURCE:{xF(e,t);break}case _.IMAGE:{wF(e,t);break}case _.BUTTON:{gF(e,t);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{_F(e,t);break}case _.IFRAME:{CF(e,t);break}case _.SELECT:{NF(e,t);break}case _.OPTION:case _.OPTGROUP:{OF(e,t);break}case _.NOEMBED:case _.NOFRAMES:{UE(e,t);break}case _.FRAMESET:{uF(e,t);break}case _.TEXTAREA:{AF(e,t);break}case _.NOSCRIPT:{e.options.scriptingEnabled?UE(e,t):FE(e,t);break}case _.PLAINTEXT:{pF(e,t);break}case _.COL:case _.TH:case _.TD:case _.TR:case _.HEAD:case _.FRAME:case _.TBODY:case _.TFOOT:case _.THEAD:case _.CAPTION:case _.COLGROUP:break;default:FE(e,t)}}function LF(e,t){if(e.openElements.hasInScope(_.BODY)&&(e.insertionMode=$.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function PF(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=$.AFTER_BODY,FT(e,t))}function BF(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function UF(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):n&&e.openElements.remove(n))}function FF(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(re.P,_.P),e._closePElement()}function zF(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function HF(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function qF(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function jF(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function $F(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(re.BR,_.BR),e.openElements.pop(),e.framesetOk=!1}function OT(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==_.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(s,o))break}}function Qf(e,t){switch(t.tagID){case _.A:case _.B:case _.I:case _.S:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.NOBR:case _.SMALL:case _.STRIKE:case _.STRONG:{I2(e,t);break}case _.P:{FF(e);break}case _.DL:case _.UL:case _.OL:case _.DIR:case _.DIV:case _.NAV:case _.PRE:case _.MAIN:case _.MENU:case _.ASIDE:case _.BUTTON:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.ADDRESS:case _.ARTICLE:case _.DETAILS:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.LISTING:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{BF(e,t);break}case _.LI:{zF(e);break}case _.DD:case _.DT:{HF(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{qF(e);break}case _.BR:{$F(e);break}case _.BODY:{LF(e,t);break}case _.HTML:{PF(e,t);break}case _.FORM:{UF(e);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{jF(e,t);break}case _.TEMPLATE:{Jl(e,t);break}default:OT(e,t)}}function RT(e,t){e.tmplInsertionModeStack.length>0?UT(e,t):D2(e,t)}function YF(e,t){var n;t.tagID===_.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function GF(e,t){e._err(t,be.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function J1(e,t){if(e.openElements.currentTagId!==void 0&&wT.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=$.IN_TABLE_TEXT,t.type){case Ot.CHARACTER:{IT(e,t);break}case Ot.WHITESPACE_CHARACTER:{MT(e,t);break}}else B0(e,t)}function VF(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ae.HTML),e.insertionMode=$.IN_CAPTION}function KF(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ae.HTML),e.insertionMode=$.IN_COLUMN_GROUP}function WF(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(re.COLGROUP,_.COLGROUP),e.insertionMode=$.IN_COLUMN_GROUP,L2(e,t)}function XF(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ae.HTML),e.insertionMode=$.IN_TABLE_BODY}function QF(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(re.TBODY,_.TBODY),e.insertionMode=$.IN_TABLE_BODY,Zf(e,t)}function ZF(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function JF(e,t){NT(t)?e._appendElement(t,Ae.HTML):B0(e,t),t.ackSelfClosing=!0}function ez(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ru(e,t){switch(t.tagID){case _.TD:case _.TH:case _.TR:{QF(e,t);break}case _.STYLE:case _.SCRIPT:case _.TEMPLATE:{Ja(e,t);break}case _.COL:{WF(e,t);break}case _.FORM:{ez(e,t);break}case _.TABLE:{ZF(e,t);break}case _.TBODY:case _.TFOOT:case _.THEAD:{XF(e,t);break}case _.INPUT:{JF(e,t);break}case _.CAPTION:{VF(e,t);break}case _.COLGROUP:{KF(e,t);break}default:B0(e,t)}}function p0(e,t){switch(t.tagID){case _.TABLE:{e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode());break}case _.TEMPLATE:{Jl(e,t);break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:B0(e,t)}}function B0(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Xf(e,t),e.fosterParentingEnabled=n}function MT(e,t){e.pendingCharacterTokens.push(t)}function IT(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Oc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)B0(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const DT=new Set([_.CAPTION,_.COL,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]);function tz(e,t){const n=t.tagID;DT.has(n)?e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,ru(e,t)):Or(e,t)}function nz(e,t){const n=t.tagID;switch(n){case _.CAPTION:case _.TABLE:{e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,n===_.TABLE&&p0(e,t));break}case _.BODY:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Qf(e,t)}}function L2(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.COL:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case _.TEMPLATE:{Ja(e,t);break}default:lf(e,t)}}function rz(e,t){switch(t.tagID){case _.COLGROUP:{e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE);break}case _.TEMPLATE:{Jl(e,t);break}case _.COL:break;default:lf(e,t)}}function lf(e,t){e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE,e._processToken(t))}function Zf(e,t){switch(t.tagID){case _.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ae.HTML),e.insertionMode=$.IN_ROW;break}case _.TH:case _.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(re.TR,_.TR),e.insertionMode=$.IN_ROW,Jf(e,t);break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE,ru(e,t));break}default:ru(e,t)}}function pb(e,t){const n=t.tagID;switch(t.tagID){case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE);break}case _.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE,p0(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:case _.TR:break;default:p0(e,t)}}function Jf(e,t){switch(t.tagID){case _.TH:case _.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ae.HTML),e.insertionMode=$.IN_CELL,e.activeFormattingElements.insertMarker();break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,Zf(e,t));break}default:ru(e,t)}}function LT(e,t){switch(t.tagID){case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY);break}case _.TABLE:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,pb(e,t));break}case _.TBODY:case _.TFOOT:case _.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,pb(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:break;default:p0(e,t)}}function az(e,t){const n=t.tagID;DT.has(n)?(e.openElements.hasInTableScope(_.TD)||e.openElements.hasInTableScope(_.TH))&&(e._closeTableCell(),Jf(e,t)):Or(e,t)}function iz(e,t){const n=t.tagID;switch(n){case _.TD:case _.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_ROW);break}case _.TABLE:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),LT(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:break;default:Qf(e,t)}}function PT(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._insertElement(t,Ae.HTML);break}case _.OPTGROUP:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ae.HTML);break}case _.HR:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case _.INPUT:case _.KEYGEN:case _.TEXTAREA:case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),t.tagID!==_.SELECT&&e._processStartTag(t));break}case _.SCRIPT:case _.TEMPLATE:{Ja(e,t);break}}}function BT(e,t){switch(t.tagID){case _.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===_.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop();break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop();break}case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode());break}case _.TEMPLATE:{Jl(e,t);break}}}function sz(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e._processStartTag(t)):PT(e,t)}function lz(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e.onEndTag(t)):BT(e,t)}function oz(e,t){switch(t.tagID){case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{Ja(e,t);break}case _.CAPTION:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.tmplInsertionModeStack[0]=$.IN_TABLE,e.insertionMode=$.IN_TABLE,ru(e,t);break}case _.COL:{e.tmplInsertionModeStack[0]=$.IN_COLUMN_GROUP,e.insertionMode=$.IN_COLUMN_GROUP,L2(e,t);break}case _.TR:{e.tmplInsertionModeStack[0]=$.IN_TABLE_BODY,e.insertionMode=$.IN_TABLE_BODY,Zf(e,t);break}case _.TD:case _.TH:{e.tmplInsertionModeStack[0]=$.IN_ROW,e.insertionMode=$.IN_ROW,Jf(e,t);break}default:e.tmplInsertionModeStack[0]=$.IN_BODY,e.insertionMode=$.IN_BODY,Or(e,t)}}function uz(e,t){t.tagID===_.TEMPLATE&&Jl(e,t)}function UT(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):D2(e,t)}function cz(e,t){t.tagID===_.HTML?Or(e,t):of(e,t)}function FT(e,t){var n;if(t.tagID===_.HTML){if(e.fragmentContext||(e.insertionMode=$.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_.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 of(e,t)}function of(e,t){e.insertionMode=$.IN_BODY,Xf(e,t)}function dz(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.FRAMESET:{e._insertElement(t,Ae.HTML);break}case _.FRAME:{e._appendElement(t,Ae.HTML),t.ackSelfClosing=!0;break}case _.NOFRAMES:{Ja(e,t);break}}}function hz(e,t){t.tagID===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==_.FRAMESET&&(e.insertionMode=$.AFTER_FRAMESET))}function fz(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.NOFRAMES:{Ja(e,t);break}}}function mz(e,t){t.tagID===_.HTML&&(e.insertionMode=$.AFTER_AFTER_FRAMESET)}function pz(e,t){t.tagID===_.HTML?Or(e,t):Yh(e,t)}function Yh(e,t){e.insertionMode=$.IN_BODY,Xf(e,t)}function gz(e,t){switch(t.tagID){case _.HTML:{Or(e,t);break}case _.NOFRAMES:{Ja(e,t);break}}}function bz(e,t){t.chars=An,e._insertCharacters(t)}function vz(e,t){e._insertCharacters(t),e.framesetOk=!1}function zT(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 yz(e,t){if(DU(t))zT(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ae.MATHML?xT(t):r===Ae.SVG&&(LU(t),ST(t)),M2(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function _z(e,t){if(t.tagID===_.P||t.tagID===_.BR){zT(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 a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}re.AREA,re.BASE,re.BASEFONT,re.BGSOUND,re.BR,re.COL,re.EMBED,re.FRAME,re.HR,re.IMG,re.INPUT,re.KEYGEN,re.LINK,re.META,re.PARAM,re.SOURCE,re.TRACK,re.WBR;const Ez=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Tz=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),zE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function HT(e,t){const n=Mz(e),r=M7("type",{handlers:{root:xz,element:Sz,text:wz,comment:jT,doctype:Az,raw:Cz},unknown:Nz}),a={parser:n?new BE(zE):BE.getFragmentParser(void 0,zE),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),vu(a,yi());const s=n?a.parser.document:a.parser.getFragment(),o=xB(s,{file:a.options.file});return a.stitches&&D0(o,"comment",function(c,d,f){const m=c;if(m.value.stitch&&f&&d!==void 0){const p=f.children;return p[d]=m.value.stitch,d}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function qT(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function xz(e,t){qT(e.children,t)}function Sz(e,t){Oz(e,t),qT(e.children,t),Rz(e,t)}function wz(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ot.CHARACTER,chars:e.value,location:U0(e)};vu(t,yi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Az(e,t){const n={type:Ot.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:U0(e)};vu(t,yi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function kz(e,t){t.stitches=!0;const n=Iz(e);if("children"in e&&"children"in n){const r=HT({type:"root",children:e.children},t.options);n.children=r.children}jT({type:"comment",value:{stitch:n}},t)}function jT(e,t){const n=e.value,r={type:Ot.COMMENT,data:n,location:U0(e)};vu(t,yi(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Cz(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,$T(t,yi(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Ez,"<$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 Nz(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))kz(n,t);else{let r="";throw Tz.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 vu(e,t){$T(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=jn.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 $T(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 Oz(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===jn.PLAINTEXT)return;vu(t,yi(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:di.html;a===di.html&&n==="svg"&&(a=di.svg);const s=UB({...e,children:[]},{space:a===di.svg?"svg":"html"}),o={type:Ot.START_TAG,tagName:n,tagID:bu(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:U0(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Rz(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&GB.includes(n)||t.parser.tokenizer.state===jn.PLAINTEXT)return;vu(t,Yf(e));const r={type:Ot.END_TAG,tagName:n,tagID:bu(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:U0(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===jn.RCDATA||t.parser.tokenizer.state===jn.RAWTEXT||t.parser.tokenizer.state===jn.SCRIPT_DATA)&&(t.parser.tokenizer.state=jn.DATA)}function Mz(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function U0(e){const t=yi(e)||{line:void 0,column:void 0,offset:void 0},n=Yf(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 Iz(e){return"children"in e?nu({...e,children:[]}):nu(e)}function Dz(e){return function(t,n){return HT(t,{...e,file:n})}}const HE=function(e,t,n){const r=I0(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]},eo=function(e){if(e==null)return Bz;if(typeof e=="string")return Pz(e);if(typeof e=="object")return Lz(e);if(typeof e=="function")return P2(e);throw new Error("Expected function, string, or array as `test`")};function Lz(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=eo(e[n]);return P2(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function Pz(e){return P2(t);function t(n){return n.tagName===e}}function P2(e){return t;function t(n,r,a){return!!(Uz(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Bz(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Uz(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const qE=/\n/g,jE=/[\t ]+/g,gb=eo("br"),$E=eo(Yz),Fz=eo("p"),YE=eo("tr"),zz=eo(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",$z,Gz]),YT=eo(["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 GT(e,t){const n=t||{},r="children"in e?e.children:[],a=YT(e),s=WT(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...KT(e,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<r.length;)o.push(...VT(r[c],e,{whitespace:s,breakBefore:c?void 0:a,breakAfter:c<r.length-1?gb(r[c+1]):a}));const d=[];let f;for(c=-1;++c<o.length;){const m=o[c];typeof m=="number"?f!==void 0&&m>f&&(f=m):m&&(f!==void 0&&f>-1&&d.push(`
|
|
120
|
-
`.repeat(f)||" "),f=-1,d.push(m))}return d.join("")}function VT(e,t,n){return e.type==="element"?Hz(e,t,n):e.type==="text"?n.whitespace==="normal"?KT(e,n):qz(e):[]}function Hz(e,t,n){const r=WT(e,n),a=e.children||[];let s=-1,o=[];if(zz(e))return o;let c,d;for(gb(e)||YE(e)&&HE(t,e,YE)?d=`
|
|
121
|
-
`:Fz(e)?(c=2,d=2):YT(e)&&(c=1,d=1);++s<a.length;)o=o.concat(VT(a[s],e,{whitespace:r,breakBefore:s?void 0:c,breakAfter:s<a.length-1?gb(a[s+1]):d}));return $E(e)&&HE(t,e,$E)&&o.push(" "),c&&o.unshift(c),d&&o.push(d),o}function KT(e,t){const n=String(e.value),r=[],a=[];let s=0;for(;s<=n.length;){qE.lastIndex=s;const d=qE.exec(n),f=d&&"index"in d?d.index:n.length;r.push(jz(n.slice(s,f).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,f===n.length?t.breakAfter:!0)),s=f+1}let o=-1,c;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(a.push(r[o]),c=void 0):r[o]?(typeof c=="number"&&a.push(c),a.push(r[o]),c=0):(o===0||o===r.length-1)&&a.push(0);return a}function qz(e){return[String(e.value)]}function jz(e,t,n){const r=[];let a=0,s;for(;a<e.length;){jE.lastIndex=a;const o=jE.exec(e);s=o?o.index:e.length,!a&&!s&&o&&!t&&r.push(""),a!==s&&r.push(e.slice(a,s)),a=o?s+o[0].length:s}return a!==s&&!n&&r.push(""),r.join(" ")}function WT(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 $z(e){return!!(e.properties||{}).hidden}function Yz(e){return e.tagName==="td"||e.tagName==="th"}function Gz(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function Vz(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={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})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={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(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},y=t.optional(a)+e.IDENT_RE+"\\s*\\(",T=["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"],C=["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"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],j={type:x,keyword:T,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:C},z={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},U=[z,p,c,n,e.C_BLOCK_COMMENT_MODE,m,f],ee={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:j,contains:U.concat([{begin:/\(/,end:/\)/,keywords:j,contains:U.concat(["self"]),relevance:0}]),relevance:0},Z={className:"function",begin:"("+o+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:j,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:j,relevance:0},{begin:y,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:j,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:j,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:j,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ee,Z,z,U,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:j,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:j},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Kz(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=Vz(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 Wz(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 a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=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"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,a]};a.contains.push(c);const d={match:/\\"/},f={className:"string",begin:/'/,end:/'/},m={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},b=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],y=e.SHEBANG({binary:`(${b.join("|")})`,relevance:10}),T={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"],C=["true","false"],w={match:/(\/[a-z._-]+)+/},O=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],D=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],j=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],z=["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:C,built_in:[...O,...D,"set","shopt",...j,...z]},contains:[y,e.SHEBANG(),T,p,s,o,w,c,d,f,m,n]}}function Xz(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},f={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})"/})]},m={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={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(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},y=t.optional(a)+e.IDENT_RE+"\\s*\\(",C={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"},w=[p,c,n,e.C_BLOCK_COMMENT_MODE,m,f],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:w.concat([{begin:/\(/,end:/\)/,keywords:C,contains:w.concat(["self"]),relevance:0}]),relevance:0},D={begin:"("+o+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:y,returnBegin:!0,contains:[e.inherit(b,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:C,disableAutodetect:!0,illegal:"</",contains:[].concat(O,D,w,[p,{begin:e.IDENT_RE+"::",keywords:C},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:f,keywords:C}}}function Qz(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={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})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={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(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},y=t.optional(a)+e.IDENT_RE+"\\s*\\(",T=["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"],C=["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"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],j={type:x,keyword:T,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:C},z={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},U=[z,p,c,n,e.C_BLOCK_COMMENT_MODE,m,f],ee={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:j,contains:U.concat([{begin:/\(/,end:/\)/,keywords:j,contains:U.concat(["self"]),relevance:0}]),relevance:0},Z={className:"function",begin:"("+o+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:j,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:j,relevance:0},{begin:y,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:j,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:j,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:j,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ee,Z,z,U,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:j,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:j},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Zz(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"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:a.concat(s),built_in:t,literal:r},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},f={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(m,{illegal:/\n/}),b={className:"subst",begin:/\{/,end:/\}/,keywords:o},y=e.inherit(b,{illegal:/\n/}),T={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,y]},x={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]},C=e.inherit(x,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]});b.contains=[x,T,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],y.contains=[C,T,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const w={variants:[f,x,T,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},O={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},D=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",j={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"}},w,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,O,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,O,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:"("+D+"\\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,O],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[w,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},j]}}const Jz=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_-]*/}}),eH=["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"],tH=["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"],nH=[...eH,...tH],rH=["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(),aH=["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(),iH=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),sH=["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 lH(e){const t=e.regex,n=Jz(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",c=[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:":("+aH.join("|")+")"},{begin:":(:)?("+iH.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+sH.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...c,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...c,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:rH.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...c,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+nH.join("|")+")\\b"}]}}function oH(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 uH(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[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:s,illegal:/["']/}]}]}}function cH(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 dH(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 a={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={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:"'"}]},c={begin:/\[/,end:/\]/,contains:[r,s,a,o,n,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,f=/"(\\"|[^"])*"/,m=/'[^']*'/,p=t.either(d,f,m),b=t.concat(p,"(\\s*\\.\\s*",p,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:b,className:"attr",starts:{end:/$/,contains:[r,c,s,a,o,n]}}]}}var jo="[0-9](_*[0-9])*",mh=`\\.(${jo})`,ph="[0-9a-fA-F](_*[0-9a-fA-F])*",GE={className:"number",variants:[{begin:`(\\b(${jo})((${mh})|\\.)?|(${mh}))[eE][+-]?(${jo})[fFdD]?\\b`},{begin:`\\b(${jo})((${mh})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${mh})[fFdD]?\\b`},{begin:`\\b(${jo})[fFdD]\\b`},{begin:`\\b0[xX]((${ph})\\.?|(${ph})?\\.(${ph}))[pP][+-]?(${jo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ph})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function XT(e,t,n){return n===-1?"":e.replace(t,r=>XT(e,t,n-1))}function hH(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+XT("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),d={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},f={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},m={className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:d,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:[m,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:d,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,GE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},GE,f]}}const VE="[A-Za-z$_][0-9A-Za-z$_]*",fH=["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"],mH=["true","false","null","undefined","NaN","Infinity"],QT=["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"],ZT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],JT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],pH=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],gH=[].concat(JT,QT,ZT);function bH(e){const t=e.regex,n=(me,{after:De})=>{const A="</"+me[0].slice(1);return me.input.indexOf(A,De)!==-1},r=VE,a={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(me,De)=>{const A=me[0].length+me.index,ne=me.input[A];if(ne==="<"||ne===","){De.ignoreMatch();return}ne===">"&&(n(me,{after:A})||De.ignoreMatch());let pe;const L=me.input.substring(A);if(pe=L.match(/^\s*=/)){De.ignoreMatch();return}if((pe=L.match(/^\s+extends\s+/))&&pe.index===0){De.ignoreMatch();return}}},c={$pattern:VE,keyword:fH,literal:mH,built_in:gH,"variable.language":pH},d="[0-9](_?[0-9])*",f=`\\.(${d})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${m})((${f})|\\.)?|(${f}))[eE][+-]?(${d})\\b`},{begin:`\\b(${m})\\b((${f})\\b|\\.)?|(${f})\\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},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},O={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]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,T,x,C,{match:/\$\d+/},p];b.contains=D.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(D)});const j=[].concat(O,b.contains),z=j.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(j)}]),U={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:z},ee={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"}}]},Z={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:{_:[...QT,...ZT]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},G={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[U],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function de(me){return t.concat("(?!",me.join("|"),")")}const ve={match:t.concat(/\b/,de([...JT,"super","import"].map(me=>`${me}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ye={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},U]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",ue={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[U]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:z,CLASS_REFERENCE:Z},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,T,x,C,O,{match:/\$\d+/},p,Z,{scope:"attr",match:r+t.lookahead(":"),relevance:0},ue,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,e.REGEXP_MODE,{className:"function",begin:V,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:c,contains:z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},G,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[U,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[U]},ve,se,ee,ye,{match:/\$[(.]/}]}}function vH(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],a={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var $o="[0-9](_*[0-9])*",gh=`\\.(${$o})`,bh="[0-9a-fA-F](_*[0-9a-fA-F])*",yH={className:"number",variants:[{begin:`(\\b(${$o})((${gh})|\\.)?|(${gh}))[eE][+-]?(${$o})[fFdD]?\\b`},{begin:`\\b(${$o})((${gh})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${gh})[fFdD]?\\b`},{begin:`\\b(${$o})[fFdD]\\b`},{begin:`\\b0[xX]((${bh})\\.?|(${bh})?\\.(${bh}))[pP][+-]?(${$o})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${bh})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function _H(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+"@"},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,s,a]}]};a.contains.push(o);const c={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},d={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},f=yH,m=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),p={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=p;return b.variants[1].contains=[p],p.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,m,n,r,c,d,{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:[p,e.C_LINE_COMMENT_MODE,m],relevance:0},e.C_LINE_COMMENT_MODE,m,c,d,o,e.C_NUMBER_MODE]},m]},{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},c,d]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
122
|
-
`},f]}}const EH=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_-]*/}}),TH=["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"],xH=["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"],SH=[...TH,...xH],wH=["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(),ex=["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(),tx=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),AH=["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(),kH=ex.concat(tx).sort().reverse();function CH(e){const t=EH(e),n=kH,r="and or not only",a="[\\w-]+",s="("+a+"|@\\{"+a+"\\})",o=[],c=[],d=function(D){return{className:"string",begin:"~?"+D+".*?"+D}},f=function(D,j,z){return{className:D,begin:j,relevance:z}},m={$pattern:/[a-z-]+/,keyword:r,attribute:wH.join(" ")},p={begin:"\\(",end:"\\)",contains:c,keywords:m,relevance:0};c.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,d("'"),d('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,p,f("variable","@@?"+a,10),f("variable","@\\{"+a+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:a+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const b=c.concat({begin:/\{/,end:/\}/,contains:o}),y={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(c)},T={begin:s+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+AH.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:c}}]},x={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:m,returnEnd:!0,contains:c,relevance:0}},C={className:"variable",variants:[{begin:"@"+a+"\\s*:",relevance:15},{begin:"@"+a}],starts:{end:"[;}]",returnEnd:!0,contains:b}},w={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:s,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,f("keyword","all\\b"),f("variable","@\\{"+a+"\\}"),{begin:"\\b("+SH.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,f("selector-tag",s,0),f("selector-id","#"+s),f("selector-class","\\."+s,0),f("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+ex.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+tx.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:b},{begin:"!important"},t.FUNCTION_DISPATCH]},O={begin:a+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[w]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,C,O,T,w,y,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function NH(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},a=[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:a.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:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function OH(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]},a={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={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,a,s,o]}}function RH(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),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}]},f={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(f,{contains:[]}),b=e.inherit(m,{contains:[]});f.contains.push(b),m.contains.push(p);let y=[n,d];return[f,m,p,b].forEach(w=>{w.contains=w.contains.concat(y)}),y=y.concat(f,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:y},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:y}]}]},n,s,f,m,{className:"quote",begin:"^>\\s+",contains:y,end:"$"},a,r,d,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function MH(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_]*/,c={"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"]},d={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,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:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function IH(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}/,a={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},o={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},f={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},m=[e.BACKSLASH_ESCAPE,s,d],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],b=(x,C,w="\\1")=>{const O=w==="\\1"?w:t.concat(w,C);return t.concat(t.concat("(?:",x,")"),C,/(?:\\.|[^\\\/])*?/,O,/(?:\\.|[^\\\/])*?/,w,r)},y=(x,C,w)=>t.concat(t.concat("(?:",x,")"),C,/(?:\\.|[^\\\/])*?/,w,r),T=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:m,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},f,{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:b("s|tr|y",t.either(...p,{capture:!0}))},{begin:b("s|tr|y","\\(","\\)")},{begin:b("s|tr|y","\\[","\\]")},{begin:b("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:y("(?:m|qr)?",/\//,/\//)},{begin:y("m|qr",t.either(...p,{capture:!0}),/\1/)},{begin:y("m|qr",/\(/,/\)/)},{begin:y("m|qr",/\[/,/\]/)},{begin:y("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,f]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=T,o.contains=T,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:T}}function DH(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),a=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),s=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+r},c={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},d={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},f=e.inherit(e.APOS_STRING_MODE,{illegal:null}),m=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(d)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(d),"on:begin":(oe,ye)=>{ye.data._beginMatch=oe[1]||oe[2]},"on:end":(oe,ye)=>{ye.data._beginMatch!==oe[1]&&ye.ignoreMatch()}},b=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),y=`[
|
|
123
|
-
]`,T={scope:"string",variants:[m,f,p,b]},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},C=["false","null","true"],w=["__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"],O=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],j={keyword:w,literal:(oe=>{const ye=[];return oe.forEach(V=>{ye.push(V),V.toLowerCase()===V?ye.push(V.toUpperCase()):ye.push(V.toLowerCase())}),ye})(C),built_in:O},z=oe=>oe.map(ye=>ye.replace(/\|\d+$/,"")),U={variants:[{match:[/new/,t.concat(y,"+"),t.concat("(?!",z(O).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},ee=t.concat(r,"\\b(?!\\()"),Z={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),ee],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,t.concat(/::/,t.lookahead(/(?!class\b)/)),ee],scope:{1:"title.class",3:"variable.constant"}},{match:[a,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Q={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},G={relevance:0,begin:/\(/,end:/\)/,keywords:j,contains:[Q,o,Z,e.C_BLOCK_COMMENT_MODE,T,x,U]},se={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",z(w).join("\\b|"),"|",z(O).join("\\b|"),"\\b)"),r,t.concat(y,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[G]};G.contains.push(se);const de=[Q,Z,e.C_BLOCK_COMMENT_MODE,T,x,U],ve={begin:t.concat(/#\[\s*\\?/,t.either(a,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:C,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:C,keyword:["new","array"]},contains:["self",...de]},...de,{scope:"meta",variants:[{match:a},{match:s}]}]};return{case_insensitive:!1,keywords:j,contains:[ve,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}]}},c,{scope:"variable.language",match:/\$this\b/},o,se,Z,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},U,{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:j,contains:["self",ve,o,Z,e.C_BLOCK_COMMENT_MODE,T,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]},T,x]}}function LH(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 PH(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function BH(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"],c={$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"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},m={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,m,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,m,f]},{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,m,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,m,f]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",y=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,T=`\\b|${r.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${y}))[eE][+-]?(${b})[jJ]?(?=${T})`},{begin:`(${y})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${T})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${T})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${T})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${T})`},{begin:`\\b(${b})[jJ](?=${T})`}]},C={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},w={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",d,x,p,e.HASH_COMMENT_MODE]}]};return f.contains=[p,x,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[d,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,C,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[w]},{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,w,p]}]}}function UH(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function FH(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]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=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:[a,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[s,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function zH(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]+/),a=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"]},c={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},f=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:o},p={className:"string",contains:[e.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,m]})]}]},b="[1-9](_?[0-9])*|0",y="[0-9](_?[0-9])*",T={className:"number",relevance:0,variants:[{begin:`\\b(${b})(\\.(${y}))?([eE][+-]?(${y})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},x={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},U=[p,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.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:[p,{begin:n}],relevance:0},T,{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,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,f),relevance:0}].concat(d,f);m.contains=U,x.contains=U;const G=[{begin:/^\s*=>/,starts:{end:"$",contains:U}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:U}}];return f.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(G).concat(f).concat(U)}}function HH(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),a=t.concat(n,e.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,a,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",c=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],d=["true","false","Some","None","Ok","Err"],f=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],m=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:m,keyword:c,literal:d,built_in:f},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:f,type:m}},{className:"punctuation",begin:"->"},s]}}const qH=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_-]*/}}),jH=["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"],$H=["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"],YH=[...jH,...$H],GH=["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(),VH=["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(),KH=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),WH=["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 XH(e){const t=qH(e),n=KH,r=VH,a="@[a-z-]+",s="and or not only",c={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("+YH.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},c,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+WH.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,c,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:a,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:GH.join(" ")},contains:[{begin:a,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},c,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function QH(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function ZH(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],f=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["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"],b=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],y=m,T=[...f,...d].filter(z=>!m.includes(z)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},C={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:t.concat(/\b/,t.either(...y),/\s*\(/),relevance:0,keywords:{built_in:y}};function O(z){return t.concat(/\b/,t.either(...z.map(U=>U.replace(/\s+/,"\\s+"))),/\b/)}const D={scope:"keyword",match:O(b),relevance:0};function j(z,{exceptions:U,when:ee}={}){const Z=ee;return U=U||[],z.map(Q=>Q.match(/\|\d+$/)||U.includes(Q)?Q:Z(Q)?`${Q}|0`:Q)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:j(T,{when:z=>z.length<3}),literal:s,type:c,built_in:p},contains:[{scope:"type",match:O(o)},D,w,x,r,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,C]}}function nx(e){return e?typeof e=="string"?e:e.source:null}function Rc(e){return an("(?=",e,")")}function an(...e){return e.map(n=>nx(n)).join("")}function JH(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ur(...e){return"("+(JH(e).capture?"":"?:")+e.map(r=>nx(r)).join("|")+")"}const B2=e=>an(/\b/,e,/\w$/.test(e)?/\b/:/\B/),eq=["Protocol","Type"].map(B2),KE=["init","self"].map(B2),tq=["Any","Self"],eg=["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"],WE=["false","nil","true"],nq=["assignment","associativity","higherThan","left","lowerThan","none","right"],rq=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],XE=["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"],rx=Ur(/[/=\-+!*%<>&|^~?]/,/[\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]/),ax=Ur(rx,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),tg=an(rx,ax,"*"),ix=Ur(/[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]/),uf=Ur(ix,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),li=an(ix,uf,"*"),vh=an(/[A-Z]/,uf,"*"),aq=["attached","autoclosure",an(/convention\(/,Ur("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",an(/objc\(/,li,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],iq=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function sq(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],a={match:[/\./,Ur(...eq,...KE)],className:{2:"keyword"}},s={match:an(/\./,Ur(...eg)),relevance:0},o=eg.filter(Je=>typeof Je=="string").concat(["_|0"]),c=eg.filter(Je=>typeof Je!="string").concat(tq).map(B2),d={variants:[{className:"keyword",match:Ur(...c,...KE)}]},f={$pattern:Ur(/\b\w+/,/#\w+/),keyword:o.concat(rq),literal:WE},m=[a,s,d],p={match:an(/\./,Ur(...XE)),relevance:0},b={className:"built_in",match:an(/\b/,Ur(...XE),/(?=\()/)},y=[p,b],T={match:/->/,relevance:0},x={className:"operator",relevance:0,variants:[{match:tg},{match:`\\.(\\.|${ax})+`}]},C=[T,x],w="([0-9]_*)+",O="([0-9a-fA-F]_*)+",D={className:"number",relevance:0,variants:[{match:`\\b(${w})(\\.(${w}))?([eE][+-]?(${w}))?\\b`},{match:`\\b0x(${O})(\\.(${O}))?([pP][+-]?(${w}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},j=(Je="")=>({className:"subst",variants:[{match:an(/\\/,Je,/[0\\tnr"']/)},{match:an(/\\/,Je,/u\{[0-9a-fA-F]{1,8}\}/)}]}),z=(Je="")=>({className:"subst",match:an(/\\/,Je,/[\t ]*(?:[\r\n]|\r\n)/)}),U=(Je="")=>({className:"subst",label:"interpol",begin:an(/\\/,Je,/\(/),end:/\)/}),ee=(Je="")=>({begin:an(Je,/"""/),end:an(/"""/,Je),contains:[j(Je),z(Je),U(Je)]}),Z=(Je="")=>({begin:an(Je,/"/),end:an(/"/,Je),contains:[j(Je),U(Je)]}),Q={className:"string",variants:[ee(),ee("#"),ee("##"),ee("###"),Z(),Z("#"),Z("##"),Z("###")]},G=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],se={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:G},de=Je=>{const Et=an(Je,/\//),gn=an(/\//,Je);return{begin:Et,end:gn,contains:[...G,{scope:"comment",begin:`#(?!.*${gn})`,end:/$/}]}},ve={scope:"regexp",variants:[de("###"),de("##"),de("#"),se]},oe={match:an(/`/,li,/`/)},ye={className:"variable",match:/\$\d+/},V={className:"variable",match:`\\$${uf}+`},ue=[oe,ye,V],me={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:iq,contains:[...C,D,Q]}]}},De={scope:"keyword",match:an(/@/,Ur(...aq),Rc(Ur(/\(/,/\s+/)))},A={scope:"meta",match:an(/@/,li)},ne=[me,De,A],pe={match:Rc(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:an(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,uf,"+")},{className:"type",match:vh,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:an(/\s+&\s+/,Rc(vh)),relevance:0}]},L={begin:/</,end:/>/,keywords:f,contains:[...r,...m,...ne,T,pe]};pe.contains.push(L);const Oe={match:an(li,/\s*:/),keywords:"_|0",relevance:0},He={begin:/\(/,end:/\)/,relevance:0,keywords:f,contains:["self",Oe,...r,ve,...m,...y,...C,D,Q,...ue,...ne,pe]},Le={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,pe]},Mt={begin:Ur(Rc(an(li,/\s*:/)),Rc(an(li,/\s+/,li,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:li}]},ut={begin:/\(/,end:/\)/,keywords:f,contains:[Mt,...r,...m,...C,D,Q,...ne,pe,He],endsParent:!0,illegal:/["']/},qt={match:[/(func|macro)/,/\s+/,Ur(oe.match,li,tg)],className:{1:"keyword",3:"title.function"},contains:[Le,ut,t],illegal:[/\[/,/%/]},kt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Le,ut,t],illegal:/\[|%/},En={match:[/operator/,/\s+/,tg],className:{1:"keyword",3:"title"}},pr={begin:[/precedencegroup/,/\s+/,vh],className:{1:"keyword",3:"title"},contains:[pe],keywords:[...nq,...WE],end:/}/},yt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},bt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Ft={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,li,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:f,contains:[Le,...m,{begin:/:/,end:/\{/,keywords:f,contains:[{scope:"title.class.inherited",match:vh},...m],relevance:0}]};for(const Je of Q.variants){const Et=Je.contains.find(Bt=>Bt.label==="interpol");Et.keywords=f;const gn=[...m,...y,...C,D,Q,...ue];Et.contains=[...gn,{begin:/\(/,end:/\)/,contains:["self",...gn]}]}return{name:"Swift",keywords:f,contains:[...r,qt,kt,yt,bt,Ft,En,pr,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},ve,...m,...y,...C,D,Q,...ue,...ne,pe,He]}}const cf="[A-Za-z$_][0-9A-Za-z$_]*",sx=["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"],lx=["true","false","null","undefined","NaN","Infinity"],ox=["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"],ux=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],cx=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],dx=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],hx=[].concat(cx,ox,ux);function lq(e){const t=e.regex,n=(me,{after:De})=>{const A="</"+me[0].slice(1);return me.input.indexOf(A,De)!==-1},r=cf,a={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(me,De)=>{const A=me[0].length+me.index,ne=me.input[A];if(ne==="<"||ne===","){De.ignoreMatch();return}ne===">"&&(n(me,{after:A})||De.ignoreMatch());let pe;const L=me.input.substring(A);if(pe=L.match(/^\s*=/)){De.ignoreMatch();return}if((pe=L.match(/^\s+extends\s+/))&&pe.index===0){De.ignoreMatch();return}}},c={$pattern:cf,keyword:sx,literal:lx,built_in:hx,"variable.language":dx},d="[0-9](_?[0-9])*",f=`\\.(${d})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${m})((${f})|\\.)?|(${f}))[eE][+-]?(${d})\\b`},{begin:`\\b(${m})\\b((${f})\\b|\\.)?|(${f})\\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},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},O={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]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,T,x,C,{match:/\$\d+/},p];b.contains=D.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(D)});const j=[].concat(O,b.contains),z=j.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(j)}]),U={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:z},ee={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"}}]},Z={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:{_:[...ox,...ux]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},G={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[U],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function de(me){return t.concat("(?!",me.join("|"),")")}const ve={match:t.concat(/\b/,de([...cx,"super","import"].map(me=>`${me}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ye={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},U]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",ue={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[U]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:z,CLASS_REFERENCE:Z},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,T,x,C,O,{match:/\$\d+/},p,Z,{scope:"attr",match:r+t.lookahead(":"),relevance:0},ue,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,e.REGEXP_MODE,{className:"function",begin:V,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:c,contains:z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},G,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[U,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[U]},ve,se,ee,ye,{match:/\$[(.]/}]}}function oq(e){const t=e.regex,n=lq(e),r=cf,a=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:a},contains:[n.exports.CLASS_REFERENCE]},c={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},d=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],f={$pattern:cf,keyword:sx.concat(d),literal:lx,built_in:hx.concat(a),"variable.language":dx},m={className:"meta",begin:"@"+r},p=(x,C,w)=>{const O=x.contains.findIndex(D=>D.label===C);if(O===-1)throw new Error("can not find mode to replace");x.contains.splice(O,1,w)};Object.assign(n.keywords,f),n.exports.PARAMS_CONTAINS.push(m);const b=n.contains.find(x=>x.scope==="attr"),y=Object.assign({},b,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,b,y]),n.contains=n.contains.concat([m,s,o,y]),p(n,"shebang",e.SHEBANG()),p(n,"use_strict",c);const T=n.contains.find(x=>x.label==="func.def");return T.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function uq(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:t.concat(/# */,t.either(s,a),/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(s,a),/ +/,t.either(o,c),/ *#/)}]},f={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},m={className:"label",begin:/^\w+:/},p=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),b=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,d,f,m,p,b,{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:[b]}]}}function cq(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"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},f={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"}},s,o,a,e.QUOTE_STRING_MODE,d,f,c]}}function dq(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,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={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:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,d,c,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,d,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],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:f}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function hq(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]|$)/}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={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,a]},c=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),b={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},y={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},T={begin:/\{/,end:/\}/,contains:[y],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[y],illegal:"\\n",relevance:0},C=[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}},b,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},T,x,s,o],w=[...C];return w.pop(),w.push(c),y.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:C}}const fq={arduino:Kz,bash:Wz,c:Xz,cpp:Qz,csharp:Zz,css:lH,diff:oH,go:uH,graphql:cH,ini:dH,java:hH,javascript:bH,json:vH,kotlin:_H,less:CH,lua:NH,makefile:OH,markdown:RH,objectivec:MH,perl:IH,php:DH,"php-template":LH,plaintext:PH,python:BH,"python-repl":UH,r:FH,ruby:zH,rust:HH,scss:XH,shell:QH,sql:ZH,swift:sq,typescript:oq,vbnet:uq,wasm:cq,xml:dq,yaml:hq};var ng,QE;function mq(){if(QE)return ng;QE=1;function e(K){return K instanceof Map?K.clear=K.delete=K.set=function(){throw new Error("map is read-only")}:K instanceof Set&&(K.add=K.clear=K.delete=function(){throw new Error("set is read-only")}),Object.freeze(K),Object.getOwnPropertyNames(K).forEach(Ee=>{const Ue=K[Ee],ft=typeof Ue;(ft==="object"||ft==="function")&&!Object.isFrozen(Ue)&&e(Ue)}),K}class t{constructor(Ee){Ee.data===void 0&&(Ee.data={}),this.data=Ee.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(K){return K.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(K,...Ee){const Ue=Object.create(null);for(const ft in K)Ue[ft]=K[ft];return Ee.forEach(function(ft){for(const xn in ft)Ue[xn]=ft[xn]}),Ue}const a="</span>",s=K=>!!K.scope,o=(K,{prefix:Ee})=>{if(K.startsWith("language:"))return K.replace("language:","language-");if(K.includes(".")){const Ue=K.split(".");return[`${Ee}${Ue.shift()}`,...Ue.map((ft,xn)=>`${ft}${"_".repeat(xn+1)}`)].join(" ")}return`${Ee}${K}`};class c{constructor(Ee,Ue){this.buffer="",this.classPrefix=Ue.classPrefix,Ee.walk(this)}addText(Ee){this.buffer+=n(Ee)}openNode(Ee){if(!s(Ee))return;const Ue=o(Ee.scope,{prefix:this.classPrefix});this.span(Ue)}closeNode(Ee){s(Ee)&&(this.buffer+=a)}value(){return this.buffer}span(Ee){this.buffer+=`<span class="${Ee}">`}}const d=(K={})=>{const Ee={children:[]};return Object.assign(Ee,K),Ee};class f{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ee){this.top.children.push(Ee)}openNode(Ee){const Ue=d({scope:Ee});this.add(Ue),this.stack.push(Ue)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ee){return this.constructor._walk(Ee,this.rootNode)}static _walk(Ee,Ue){return typeof Ue=="string"?Ee.addText(Ue):Ue.children&&(Ee.openNode(Ue),Ue.children.forEach(ft=>this._walk(Ee,ft)),Ee.closeNode(Ue)),Ee}static _collapse(Ee){typeof Ee!="string"&&Ee.children&&(Ee.children.every(Ue=>typeof Ue=="string")?Ee.children=[Ee.children.join("")]:Ee.children.forEach(Ue=>{f._collapse(Ue)}))}}class m extends f{constructor(Ee){super(),this.options=Ee}addText(Ee){Ee!==""&&this.add(Ee)}startScope(Ee){this.openNode(Ee)}endScope(){this.closeNode()}__addSublanguage(Ee,Ue){const ft=Ee.root;Ue&&(ft.scope=`language:${Ue}`),this.add(ft)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(K){return K?typeof K=="string"?K:K.source:null}function b(K){return x("(?=",K,")")}function y(K){return x("(?:",K,")*")}function T(K){return x("(?:",K,")?")}function x(...K){return K.map(Ue=>p(Ue)).join("")}function C(K){const Ee=K[K.length-1];return typeof Ee=="object"&&Ee.constructor===Object?(K.splice(K.length-1,1),Ee):{}}function w(...K){return"("+(C(K).capture?"":"?:")+K.map(ft=>p(ft)).join("|")+")"}function O(K){return new RegExp(K.toString()+"|").exec("").length-1}function D(K,Ee){const Ue=K&&K.exec(Ee);return Ue&&Ue.index===0}const j=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function z(K,{joinWith:Ee}){let Ue=0;return K.map(ft=>{Ue+=1;const xn=Ue;let Nn=p(ft),Ge="";for(;Nn.length>0;){const Be=j.exec(Nn);if(!Be){Ge+=Nn;break}Ge+=Nn.substring(0,Be.index),Nn=Nn.substring(Be.index+Be[0].length),Be[0][0]==="\\"&&Be[1]?Ge+="\\"+String(Number(Be[1])+xn):(Ge+=Be[0],Be[0]==="("&&Ue++)}return Ge}).map(ft=>`(${ft})`).join(Ee)}const U=/\b\B/,ee="[a-zA-Z]\\w*",Z="[a-zA-Z_]\\w*",Q="\\b\\d+(\\.\\d+)?",G="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",se="\\b(0b[01]+)",de="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ve=(K={})=>{const Ee=/^#![ ]*\//;return K.binary&&(K.begin=x(Ee,/.*\b/,K.binary,/\b.*/)),r({scope:"meta",begin:Ee,end:/$/,relevance:0,"on:begin":(Ue,ft)=>{Ue.index!==0&&ft.ignoreMatch()}},K)},oe={begin:"\\\\[\\s\\S]",relevance:0},ye={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[oe]},V={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[oe]},ue={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/},me=function(K,Ee,Ue={}){const ft=r({scope:"comment",begin:K,end:Ee,contains:[]},Ue);ft.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 xn=w("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 ft.contains.push({begin:x(/[ ]+/,"(",xn,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ft},De=me("//","$"),A=me("/\\*","\\*/"),ne=me("#","$"),pe={scope:"number",begin:Q,relevance:0},L={scope:"number",begin:G,relevance:0},Oe={scope:"number",begin:se,relevance:0},He={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[oe,{begin:/\[/,end:/\]/,relevance:0,contains:[oe]}]},Le={scope:"title",begin:ee,relevance:0},Mt={scope:"title",begin:Z,relevance:0},ut={begin:"\\.\\s*"+Z,relevance:0};var kt=Object.freeze({__proto__:null,APOS_STRING_MODE:ye,BACKSLASH_ESCAPE:oe,BINARY_NUMBER_MODE:Oe,BINARY_NUMBER_RE:se,COMMENT:me,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:De,C_NUMBER_MODE:L,C_NUMBER_RE:G,END_SAME_AS_BEGIN:function(K){return Object.assign(K,{"on:begin":(Ee,Ue)=>{Ue.data._beginMatch=Ee[1]},"on:end":(Ee,Ue)=>{Ue.data._beginMatch!==Ee[1]&&Ue.ignoreMatch()}})},HASH_COMMENT_MODE:ne,IDENT_RE:ee,MATCH_NOTHING_RE:U,METHOD_GUARD:ut,NUMBER_MODE:pe,NUMBER_RE:Q,PHRASAL_WORDS_MODE:ue,QUOTE_STRING_MODE:V,REGEXP_MODE:He,RE_STARTERS_RE:de,SHEBANG:ve,TITLE_MODE:Le,UNDERSCORE_IDENT_RE:Z,UNDERSCORE_TITLE_MODE:Mt});function En(K,Ee){K.input[K.index-1]==="."&&Ee.ignoreMatch()}function pr(K,Ee){K.className!==void 0&&(K.scope=K.className,delete K.className)}function yt(K,Ee){Ee&&K.beginKeywords&&(K.begin="\\b("+K.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",K.__beforeBegin=En,K.keywords=K.keywords||K.beginKeywords,delete K.beginKeywords,K.relevance===void 0&&(K.relevance=0))}function bt(K,Ee){Array.isArray(K.illegal)&&(K.illegal=w(...K.illegal))}function Ft(K,Ee){if(K.match){if(K.begin||K.end)throw new Error("begin & end are not supported with match");K.begin=K.match,delete K.match}}function Je(K,Ee){K.relevance===void 0&&(K.relevance=1)}const Et=(K,Ee)=>{if(!K.beforeMatch)return;if(K.starts)throw new Error("beforeMatch cannot be used with starts");const Ue=Object.assign({},K);Object.keys(K).forEach(ft=>{delete K[ft]}),K.keywords=Ue.keywords,K.begin=x(Ue.beforeMatch,b(Ue.begin)),K.starts={relevance:0,contains:[Object.assign(Ue,{endsParent:!0})]},K.relevance=0,delete Ue.beforeMatch},gn=["of","and","for","in","not","or","if","then","parent","list","value"],Bt="keyword";function un(K,Ee,Ue=Bt){const ft=Object.create(null);return typeof K=="string"?xn(Ue,K.split(" ")):Array.isArray(K)?xn(Ue,K):Object.keys(K).forEach(function(Nn){Object.assign(ft,un(K[Nn],Ee,Nn))}),ft;function xn(Nn,Ge){Ee&&(Ge=Ge.map(Be=>Be.toLowerCase())),Ge.forEach(function(Be){const nt=Be.split("|");ft[nt[0]]=[Nn,Ke(nt[0],nt[1])]})}}function Ke(K,Ee){return Ee?Number(Ee):cn(K)?0:1}function cn(K){return gn.includes(K.toLowerCase())}const Tn={},lr=K=>{console.error(K)},bn=(K,...Ee)=>{console.log(`WARN: ${K}`,...Ee)},fe=(K,Ee)=>{Tn[`${K}/${Ee}`]||(console.log(`Deprecated as of ${K}. ${Ee}`),Tn[`${K}/${Ee}`]=!0)},Se=new Error;function qe(K,Ee,{key:Ue}){let ft=0;const xn=K[Ue],Nn={},Ge={};for(let Be=1;Be<=Ee.length;Be++)Ge[Be+ft]=xn[Be],Nn[Be+ft]=!0,ft+=O(Ee[Be-1]);K[Ue]=Ge,K[Ue]._emit=Nn,K[Ue]._multi=!0}function tt(K){if(Array.isArray(K.begin)){if(K.skip||K.excludeBegin||K.returnBegin)throw lr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Se;if(typeof K.beginScope!="object"||K.beginScope===null)throw lr("beginScope must be object"),Se;qe(K,K.begin,{key:"beginScope"}),K.begin=z(K.begin,{joinWith:""})}}function et(K){if(Array.isArray(K.end)){if(K.skip||K.excludeEnd||K.returnEnd)throw lr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Se;if(typeof K.endScope!="object"||K.endScope===null)throw lr("endScope must be object"),Se;qe(K,K.end,{key:"endScope"}),K.end=z(K.end,{joinWith:""})}}function We(K){K.scope&&typeof K.scope=="object"&&K.scope!==null&&(K.beginScope=K.scope,delete K.scope)}function _t(K){We(K),typeof K.beginScope=="string"&&(K.beginScope={_wrap:K.beginScope}),typeof K.endScope=="string"&&(K.endScope={_wrap:K.endScope}),tt(K),et(K)}function jt(K){function Ee(Ge,Be){return new RegExp(p(Ge),"m"+(K.case_insensitive?"i":"")+(K.unicodeRegex?"u":"")+(Be?"g":""))}class Ue{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Be,nt){nt.position=this.position++,this.matchIndexes[this.matchAt]=nt,this.regexes.push([nt,Be]),this.matchAt+=O(Be)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Be=this.regexes.map(nt=>nt[1]);this.matcherRe=Ee(z(Be,{joinWith:"|"}),!0),this.lastIndex=0}exec(Be){this.matcherRe.lastIndex=this.lastIndex;const nt=this.matcherRe.exec(Be);if(!nt)return null;const vn=nt.findIndex((cl,Au)=>Au>0&&cl!==void 0),Sn=this.matchIndexes[vn];return nt.splice(0,vn),Object.assign(nt,Sn)}}class ft{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Be){if(this.multiRegexes[Be])return this.multiRegexes[Be];const nt=new Ue;return this.rules.slice(Be).forEach(([vn,Sn])=>nt.addRule(vn,Sn)),nt.compile(),this.multiRegexes[Be]=nt,nt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Be,nt){this.rules.push([Be,nt]),nt.type==="begin"&&this.count++}exec(Be){const nt=this.getMatcher(this.regexIndex);nt.lastIndex=this.lastIndex;let vn=nt.exec(Be);if(this.resumingScanAtSamePosition()&&!(vn&&vn.index===this.lastIndex)){const Sn=this.getMatcher(0);Sn.lastIndex=this.lastIndex+1,vn=Sn.exec(Be)}return vn&&(this.regexIndex+=vn.position+1,this.regexIndex===this.count&&this.considerAll()),vn}}function xn(Ge){const Be=new ft;return Ge.contains.forEach(nt=>Be.addRule(nt.begin,{rule:nt,type:"begin"})),Ge.terminatorEnd&&Be.addRule(Ge.terminatorEnd,{type:"end"}),Ge.illegal&&Be.addRule(Ge.illegal,{type:"illegal"}),Be}function Nn(Ge,Be){const nt=Ge;if(Ge.isCompiled)return nt;[pr,Ft,_t,Et].forEach(Sn=>Sn(Ge,Be)),K.compilerExtensions.forEach(Sn=>Sn(Ge,Be)),Ge.__beforeBegin=null,[yt,bt,Je].forEach(Sn=>Sn(Ge,Be)),Ge.isCompiled=!0;let vn=null;return typeof Ge.keywords=="object"&&Ge.keywords.$pattern&&(Ge.keywords=Object.assign({},Ge.keywords),vn=Ge.keywords.$pattern,delete Ge.keywords.$pattern),vn=vn||/\w+/,Ge.keywords&&(Ge.keywords=un(Ge.keywords,K.case_insensitive)),nt.keywordPatternRe=Ee(vn,!0),Be&&(Ge.begin||(Ge.begin=/\B|\b/),nt.beginRe=Ee(nt.begin),!Ge.end&&!Ge.endsWithParent&&(Ge.end=/\B|\b/),Ge.end&&(nt.endRe=Ee(nt.end)),nt.terminatorEnd=p(nt.end)||"",Ge.endsWithParent&&Be.terminatorEnd&&(nt.terminatorEnd+=(Ge.end?"|":"")+Be.terminatorEnd)),Ge.illegal&&(nt.illegalRe=Ee(Ge.illegal)),Ge.contains||(Ge.contains=[]),Ge.contains=[].concat(...Ge.contains.map(function(Sn){return Rr(Sn==="self"?Ge:Sn)})),Ge.contains.forEach(function(Sn){Nn(Sn,nt)}),Ge.starts&&Nn(Ge.starts,Be),nt.matcher=xn(nt),nt}if(K.compilerExtensions||(K.compilerExtensions=[]),K.contains&&K.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return K.classNameAliases=r(K.classNameAliases||{}),Nn(K)}function Fn(K){return K?K.endsWithParent||Fn(K.starts):!1}function Rr(K){return K.variants&&!K.cachedVariants&&(K.cachedVariants=K.variants.map(function(Ee){return r(K,{variants:null},Ee)})),K.cachedVariants?K.cachedVariants:Fn(K)?r(K,{starts:K.starts?r(K.starts):null}):Object.isFrozen(K)?r(K):K}var Yn="11.11.1";class Yr extends Error{constructor(Ee,Ue){super(Ee),this.name="HTMLInjectionError",this.html=Ue}}const Mr=n,xu=r,Su=Symbol("nomatch"),wu=7,hs=function(K){const Ee=Object.create(null),Ue=Object.create(null),ft=[];let xn=!0;const Nn="Could not find the language '{}', did you forget to load/include a language module?",Ge={disableAutodetect:!0,name:"Plain text",contains:[]};let Be={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function nt(Re){return Be.noHighlightRe.test(Re)}function vn(Re){let at=Re.className+" ";at+=Re.parentNode?Re.parentNode.className:"";const Tt=Be.languageDetectRe.exec(at);if(Tt){const Vt=Ir(Tt[1]);return Vt||(bn(Nn.replace("{}",Tt[1])),bn("Falling back to no-highlight mode for this block.",Re)),Vt?Tt[1]:"no-highlight"}return at.split(/\s+/).find(Vt=>nt(Vt)||Ir(Vt))}function Sn(Re,at,Tt){let Vt="",Rn="";typeof at=="object"?(Vt=Re,Tt=at.ignoreIllegals,Rn=at.language):(fe("10.7.0","highlight(lang, code, ...args) has been deprecated."),fe("10.7.0",`Please use highlight(code, options) instead.
|
|
124
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Rn=Re,Vt=at),Tt===void 0&&(Tt=!0);const ia={code:Vt,language:Rn};Ai("before:highlight",ia);const qa=ia.result?ia.result:cl(ia.language,ia.code,Tt);return qa.code=ia.code,Ai("after:highlight",qa),qa}function cl(Re,at,Tt,Vt){const Rn=Object.create(null);function ia(Fe,Qe){return Fe.keywords[Qe]}function qa(){if(!vt.keywords){Gn.addText(Kt);return}let Fe=0;vt.keywordPatternRe.lastIndex=0;let Qe=vt.keywordPatternRe.exec(Kt),gt="";for(;Qe;){gt+=Kt.substring(Fe,Qe.index);const $t=sa.case_insensitive?Qe[0].toLowerCase():Qe[0],Vn=ia(vt,$t);if(Vn){const[xa,bl]=Vn;if(Gn.addText(gt),gt="",Rn[$t]=(Rn[$t]||0)+1,Rn[$t]<=wu&&(ao+=bl),xa.startsWith("_"))gt+=Qe[0];else{const ja=sa.classNameAliases[xa]||xa;Ta(Qe[0],ja)}}else gt+=Qe[0];Fe=vt.keywordPatternRe.lastIndex,Qe=vt.keywordPatternRe.exec(Kt)}gt+=Kt.substring(Fe),Gn.addText(gt)}function gr(){if(Kt==="")return;let Fe=null;if(typeof vt.subLanguage=="string"){if(!Ee[vt.subLanguage]){Gn.addText(Kt);return}Fe=cl(vt.subLanguage,Kt,!0,Ou[vt.subLanguage]),Ou[vt.subLanguage]=Fe._top}else Fe=no(Kt,vt.subLanguage.length?vt.subLanguage:null);vt.relevance>0&&(ao+=Fe.relevance),Gn.__addSublanguage(Fe._emitter,Fe.language)}function xr(){vt.subLanguage!=null?gr():qa(),Kt=""}function Ta(Fe,Qe){Fe!==""&&(Gn.startScope(Qe),Gn.addText(Fe),Gn.endScope())}function ml(Fe,Qe){let gt=1;const $t=Qe.length-1;for(;gt<=$t;){if(!Fe._emit[gt]){gt++;continue}const Vn=sa.classNameAliases[Fe[gt]]||Fe[gt],xa=Qe[gt];Vn?Ta(xa,Vn):(Kt=xa,qa(),Kt=""),gt++}}function Cu(Fe,Qe){return Fe.scope&&typeof Fe.scope=="string"&&Gn.openNode(sa.classNameAliases[Fe.scope]||Fe.scope),Fe.beginScope&&(Fe.beginScope._wrap?(Ta(Kt,sa.classNameAliases[Fe.beginScope._wrap]||Fe.beginScope._wrap),Kt=""):Fe.beginScope._multi&&(ml(Fe.beginScope,Qe),Kt="")),vt=Object.create(Fe,{parent:{value:vt}}),vt}function pl(Fe,Qe,gt){let $t=D(Fe.endRe,gt);if($t){if(Fe["on:end"]){const Vn=new t(Fe);Fe["on:end"](Qe,Vn),Vn.isMatchIgnored&&($t=!1)}if($t){for(;Fe.endsParent&&Fe.parent;)Fe=Fe.parent;return Fe}}if(Fe.endsWithParent)return pl(Fe.parent,Qe,gt)}function hm(Fe){return vt.matcher.regexIndex===0?(Kt+=Fe[0],1):(gl=!0,0)}function Gr(Fe){const Qe=Fe[0],gt=Fe.rule,$t=new t(gt),Vn=[gt.__beforeBegin,gt["on:begin"]];for(const xa of Vn)if(xa&&(xa(Fe,$t),$t.isMatchIgnored))return hm(Qe);return gt.skip?Kt+=Qe:(gt.excludeBegin&&(Kt+=Qe),xr(),!gt.returnBegin&&!gt.excludeBegin&&(Kt=Qe)),Cu(gt,Fe),gt.returnBegin?0:Qe.length}function Nu(Fe){const Qe=Fe[0],gt=at.substring(Fe.index),$t=pl(vt,Fe,gt);if(!$t)return Su;const Vn=vt;vt.endScope&&vt.endScope._wrap?(xr(),Ta(Qe,vt.endScope._wrap)):vt.endScope&&vt.endScope._multi?(xr(),ml(vt.endScope,Fe)):Vn.skip?Kt+=Qe:(Vn.returnEnd||Vn.excludeEnd||(Kt+=Qe),xr(),Vn.excludeEnd&&(Kt=Qe));do vt.scope&&Gn.closeNode(),!vt.skip&&!vt.subLanguage&&(ao+=vt.relevance),vt=vt.parent;while(vt!==$t.parent);return $t.starts&&Cu($t.starts,Fe),Vn.returnEnd?0:Qe.length}function X0(){const Fe=[];for(let Qe=vt;Qe!==sa;Qe=Qe.parent)Qe.scope&&Fe.unshift(Qe.scope);Fe.forEach(Qe=>Gn.openNode(Qe))}let gs={};function ki(Fe,Qe){const gt=Qe&&Qe[0];if(Kt+=Fe,gt==null)return xr(),0;if(gs.type==="begin"&&Qe.type==="end"&&gs.index===Qe.index&>===""){if(Kt+=at.slice(Qe.index,Qe.index+1),!xn){const $t=new Error(`0 width match regex (${Re})`);throw $t.languageName=Re,$t.badRule=gs.rule,$t}return 1}if(gs=Qe,Qe.type==="begin")return Gr(Qe);if(Qe.type==="illegal"&&!Tt){const $t=new Error('Illegal lexeme "'+gt+'" for mode "'+(vt.scope||"<unnamed>")+'"');throw $t.mode=vt,$t}else if(Qe.type==="end"){const $t=Nu(Qe);if($t!==Su)return $t}if(Qe.type==="illegal"&>==="")return Kt+=`
|
|
125
|
-
`,1;if(bs>1e5&&bs>Qe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Kt+=gt,gt.length}const sa=Ir(Re);if(!sa)throw lr(Nn.replace("{}",Re)),new Error('Unknown language: "'+Re+'"');const Q0=jt(sa);let ei="",vt=Vt||Q0;const Ou={},Gn=new Be.__emitter(Be);X0();let Kt="",ao=0,Ci=0,bs=0,gl=!1;try{if(sa.__emitTokens)sa.__emitTokens(at,Gn);else{for(vt.matcher.considerAll();;){bs++,gl?gl=!1:vt.matcher.considerAll(),vt.matcher.lastIndex=Ci;const Fe=vt.matcher.exec(at);if(!Fe)break;const Qe=at.substring(Ci,Fe.index),gt=ki(Qe,Fe);Ci=Fe.index+gt}ki(at.substring(Ci))}return Gn.finalize(),ei=Gn.toHTML(),{language:Re,value:ei,relevance:ao,illegal:!1,_emitter:Gn,_top:vt}}catch(Fe){if(Fe.message&&Fe.message.includes("Illegal"))return{language:Re,value:Mr(at),illegal:!0,relevance:0,_illegalBy:{message:Fe.message,index:Ci,context:at.slice(Ci-100,Ci+100),mode:Fe.mode,resultSoFar:ei},_emitter:Gn};if(xn)return{language:Re,value:Mr(at),illegal:!1,relevance:0,errorRaised:Fe,_emitter:Gn,_top:vt};throw Fe}}function Au(Re){const at={value:Mr(Re),illegal:!1,relevance:0,_top:Ge,_emitter:new Be.__emitter(Be)};return at._emitter.addText(Re),at}function no(Re,at){at=at||Be.languages||Object.keys(Ee);const Tt=Au(Re),Vt=at.filter(Ir).filter(ku).map(xr=>cl(xr,Re,!1));Vt.unshift(Tt);const Rn=Vt.sort((xr,Ta)=>{if(xr.relevance!==Ta.relevance)return Ta.relevance-xr.relevance;if(xr.language&&Ta.language){if(Ir(xr.language).supersetOf===Ta.language)return 1;if(Ir(Ta.language).supersetOf===xr.language)return-1}return 0}),[ia,qa]=Rn,gr=ia;return gr.secondBest=qa,gr}function dl(Re,at,Tt){const Vt=at&&Ue[at]||Tt;Re.classList.add("hljs"),Re.classList.add(`language-${Vt}`)}function hl(Re){let at=null;const Tt=vn(Re);if(nt(Tt))return;if(Ai("before:highlightElement",{el:Re,language:Tt}),Re.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Re);return}if(Re.children.length>0&&(Be.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(Re)),Be.throwUnescapedHTML))throw new Yr("One of your code blocks includes unescaped HTML.",Re.innerHTML);at=Re;const Vt=at.textContent,Rn=Tt?Sn(Vt,{language:Tt,ignoreIllegals:!0}):no(Vt);Re.innerHTML=Rn.value,Re.dataset.highlighted="yes",dl(Re,Tt,Rn.language),Re.result={language:Rn.language,re:Rn.relevance,relevance:Rn.relevance},Rn.secondBest&&(Re.secondBest={language:Rn.secondBest.language,relevance:Rn.secondBest.relevance}),Ai("after:highlightElement",{el:Re,result:Rn,text:Vt})}function ms(Re){Be=xu(Be,Re)}const ps=()=>{On(),fe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function fl(){On(),fe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Si=!1;function On(){function Re(){On()}if(document.readyState==="loading"){Si||window.addEventListener("DOMContentLoaded",Re,!1),Si=!0;return}document.querySelectorAll(Be.cssSelector).forEach(hl)}function G0(Re,at){let Tt=null;try{Tt=at(K)}catch(Vt){if(lr("Language definition for '{}' could not be registered.".replace("{}",Re)),xn)lr(Vt);else throw Vt;Tt=Ge}Tt.name||(Tt.name=Re),Ee[Re]=Tt,Tt.rawDefinition=at.bind(null,K),Tt.aliases&&K0(Tt.aliases,{languageName:Re})}function V0(Re){delete Ee[Re];for(const at of Object.keys(Ue))Ue[at]===Re&&delete Ue[at]}function wi(){return Object.keys(Ee)}function Ir(Re){return Re=(Re||"").toLowerCase(),Ee[Re]||Ee[Ue[Re]]}function K0(Re,{languageName:at}){typeof Re=="string"&&(Re=[Re]),Re.forEach(Tt=>{Ue[Tt.toLowerCase()]=at})}function ku(Re){const at=Ir(Re);return at&&!at.disableAutodetect}function W0(Re){Re["before:highlightBlock"]&&!Re["before:highlightElement"]&&(Re["before:highlightElement"]=at=>{Re["before:highlightBlock"](Object.assign({block:at.el},at))}),Re["after:highlightBlock"]&&!Re["after:highlightElement"]&&(Re["after:highlightElement"]=at=>{Re["after:highlightBlock"](Object.assign({block:at.el},at))})}function dm(Re){W0(Re),ft.push(Re)}function ro(Re){const at=ft.indexOf(Re);at!==-1&&ft.splice(at,1)}function Ai(Re,at){const Tt=Re;ft.forEach(function(Vt){Vt[Tt]&&Vt[Tt](at)})}function Ha(Re){return fe("10.7.0","highlightBlock will be removed entirely in v12.0"),fe("10.7.0","Please use highlightElement now."),hl(Re)}Object.assign(K,{highlight:Sn,highlightAuto:no,highlightAll:On,highlightElement:hl,highlightBlock:Ha,configure:ms,initHighlighting:ps,initHighlightingOnLoad:fl,registerLanguage:G0,unregisterLanguage:V0,listLanguages:wi,getLanguage:Ir,registerAliases:K0,autoDetection:ku,inherit:xu,addPlugin:dm,removePlugin:ro}),K.debugMode=function(){xn=!1},K.safeMode=function(){xn=!0},K.versionString=Yn,K.regex={concat:x,lookahead:b,either:w,optional:T,anyNumberOfTimes:y};for(const Re in kt)typeof kt[Re]=="object"&&e(kt[Re]);return Object.assign(K,kt),K},fs=hs({});return fs.newInstance=()=>hs({}),ng=fs,fs.HighlightJS=fs,fs.default=fs,ng}var pq=mq();const gq=If(pq),ZE={},bq="hljs-";function vq(e){const t=gq.newInstance();return e&&s(e),{highlight:n,highlightAuto:r,listLanguages:a,register:s,registerAlias:o,registered:c};function n(d,f,m){const p=m||ZE,b=typeof p.prefix=="string"?p.prefix:bq;if(!t.getLanguage(d))throw new Error("Unknown language: `"+d+"` is not registered");t.configure({__emitter:yq,classPrefix:b});const y=t.highlight(f,{ignoreIllegals:!0,language:d});if(y.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:y.errorRaised});const T=y._emitter.root,x=T.data;return x.language=y.language,x.relevance=y.relevance,T}function r(d,f){const p=(f||ZE).subset||a();let b=-1,y=0,T;for(;++b<p.length;){const x=p[b];if(!t.getLanguage(x))continue;const C=n(x,d,f);C.data&&C.data.relevance!==void 0&&C.data.relevance>y&&(y=C.data.relevance,T=C)}return T||{type:"root",children:[],data:{language:void 0,relevance:y}}}function a(){return t.listLanguages()}function s(d,f){if(typeof d=="string")t.registerLanguage(d,f);else{let m;for(m in d)Object.hasOwn(d,m)&&t.registerLanguage(m,d[m])}}function o(d,f){if(typeof d=="string")t.registerAliases(typeof f=="string"?f:[...f],{languageName:d});else{let m;for(m in d)if(Object.hasOwn(d,m)){const p=d[m];t.registerAliases(typeof p=="string"?p:[...p],{languageName:m})}}}function c(d){return!!t.getLanguage(d)}}class yq{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],a=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:a}):r.children.push(...a)}openNode(t){const n=this,r=t.split(".").map(function(o,c){return c?o+"_".repeat(c):n.options.classPrefix+o}),a=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:r},children:[]};a.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const _q={};function Eq(e){const t=e||_q,n=t.aliases,r=t.detect||!1,a=t.languages||fq,s=t.plainText,o=t.prefix,c=t.subset;let d="hljs";const f=vq(a);if(n&&f.registerAlias(n),o){const m=o.indexOf("-");d=m===-1?o:o.slice(0,m)}return function(m,p){D0(m,"element",function(b,y,T){if(b.tagName!=="code"||!T||T.type!=="element"||T.tagName!=="pre")return;const x=Tq(b);if(x===!1||!x&&!r||x&&s&&s.includes(x))return;Array.isArray(b.properties.className)||(b.properties.className=[]),b.properties.className.includes(d)||b.properties.className.unshift(d);const C=GT(b,{whitespace:"pre"});let w;try{w=x?f.highlight(x,C,{prefix:o}):f.highlightAuto(C,{prefix:o,subset:c})}catch(O){const D=O;if(x&&/Unknown language/.test(D.message)){p.message("Cannot highlight as `"+x+"`, it’s not registered",{ancestors:[T,b],cause:D,place:b.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw D}!x&&w.data&&w.data.language&&b.properties.className.push("language-"+w.data.language),w.children.length>0&&(b.children=w.children)})}}function Tq(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const a=String(t[n]);if(a==="no-highlight"||a==="nohighlight")return!1;!r&&a.slice(0,5)==="lang-"&&(r=a.slice(5)),!r&&a.slice(0,9)==="language-"&&(r=a.slice(9))}return r}function xq(e,t){return fx(e,{})||{type:"root",children:[]}}function fx(e,t){const n=Sq(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Sq(e,t){switch(e.nodeType){case 1:return Cq(e,t);case 3:return Aq(e);case 8:return kq(e);case 9:return JE(e,t);case 10:return wq();case 11:return JE(e,t);default:return}}function JE(e,t){return{type:"root",children:mx(e,t)}}function wq(){return{type:"doctype"}}function Aq(e){return{type:"text",value:e.nodeValue||""}}function kq(e){return{type:"comment",value:e.nodeValue||""}}function Cq(e,t){const n=e.namespaceURI,r=n===di.svg?tT:eT,a=n===di.html?e.tagName.toLowerCase():e.tagName,s=n===di.html&&a==="template"?e.content:e,o=e.getAttributeNames(),c={};let d=-1;for(;++d<o.length;)c[o[d]]=e.getAttribute(o[d])||"";return r(a,c,mx(s,t))}function mx(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const s=fx(n[a],t);s!==void 0&&r.push(s)}return r}new DOMParser;function Nq(e,t){const n=Oq(e);return xq(n)}function Oq(e){const t=document.createElement("template");return t.innerHTML=e,t.content}class ba{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 ba(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Da{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 Da(n,ba.range(this,t))}}class Ne{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,a,s,o=n&&n.loc;if(o&&o.start<=o.end){var c=o.lexer.input;a=o.start,s=o.end,a===c.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var d=c.slice(a,s).replace(/[^]/g,"$&̲"),f;a>15?f="…"+c.slice(a-15,a):f=c.slice(0,a);var m;s+15<c.length?m=c.slice(s,s+15)+"…":m=c.slice(s),r+=f+d+m}var p=new Error(r);return p.name="ParseError",p.__proto__=Ne.prototype,p.position=a,a!=null&&s!=null&&(p.length=s-a),p.rawMessage=t,p}}Ne.prototype.__proto__=Error.prototype;var Rq=function(t,n){return t.indexOf(n)!==-1},Mq=function(t,n){return t===void 0?n:t},Iq=/([A-Z])/g,Dq=function(t){return t.replace(Iq,"-$1").toLowerCase()},Lq={"&":"&",">":">","<":"<",'"':""","'":"'"},Pq=/[&><"']/g;function Bq(e){return String(e).replace(Pq,t=>Lq[t])}var px=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},Uq=function(t){var n=px(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Fq=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},zq=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},st={contains:Rq,deflt:Mq,escape:Bq,hyphenate:Dq,getBaseElem:px,isCharacterBox:Uq,protocolFromUrl:zq},Gh={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 Hq(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 U2{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 Gh)if(Gh.hasOwnProperty(n)){var r=Gh[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:Hq(r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Ne("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);a==="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 '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="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 '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=st.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 Hs{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 ci[qq[this.id]]}sub(){return ci[jq[this.id]]}fracNum(){return ci[$q[this.id]]}fracDen(){return ci[Yq[this.id]]}cramp(){return ci[Gq[this.id]]}text(){return ci[Vq[this.id]]}isTight(){return this.size>=2}}var F2=0,df=1,Qo=2,es=3,g0=4,Ia=5,au=6,qr=7,ci=[new Hs(F2,0,!1),new Hs(df,0,!0),new Hs(Qo,1,!1),new Hs(es,1,!0),new Hs(g0,2,!1),new Hs(Ia,2,!0),new Hs(au,3,!1),new Hs(qr,3,!0)],qq=[g0,Ia,g0,Ia,au,qr,au,qr],jq=[Ia,Ia,Ia,Ia,qr,qr,qr,qr],$q=[Qo,es,g0,Ia,au,qr,au,qr],Yq=[es,es,Ia,Ia,qr,qr,qr,qr],Gq=[df,df,es,es,Ia,Ia,qr,qr],Vq=[F2,df,Qo,es,Qo,es,Qo,es],ot={DISPLAY:ci[F2],TEXT:ci[Qo],SCRIPT:ci[g0],SCRIPTSCRIPT:ci[au]},bb=[{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 Kq(e){for(var t=0;t<bb.length;t++)for(var n=bb[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var Vh=[];bb.forEach(e=>e.blocks.forEach(t=>Vh.push(...t)));function gx(e){for(var t=0;t<Vh.length;t+=2)if(e>=Vh[t]&&e<=Vh[t+1])return!0;return!1}var Bo=80,Wq=function(t,n){return"M95,"+(622+t+n)+`
|
|
126
|
-
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
127
|
-
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
128
|
-
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
|
|
129
|
-
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
130
|
-
c69,-144,104.5,-217.7,106.5,-221
|
|
131
|
-
l`+t/2.075+" -"+t+`
|
|
132
|
-
c5.3,-9.3,12,-14,20,-14
|
|
133
|
-
H400000v`+(40+t)+`H845.2724
|
|
134
|
-
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
135
|
-
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
136
|
-
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Xq=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
|
|
137
|
-
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
138
|
-
c340,-704.7,510.7,-1060.3,512,-1067
|
|
139
|
-
l`+t/2.084+" -"+t+`
|
|
140
|
-
c4.7,-7.3,11,-11,19,-11
|
|
141
|
-
H40000v`+(40+t)+`H1012.3
|
|
142
|
-
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
143
|
-
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
|
|
144
|
-
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
145
|
-
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
146
|
-
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Qq=function(t,n){return"M983 "+(10+t+n)+`
|
|
147
|
-
l`+t/3.13+" -"+t+`
|
|
148
|
-
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
149
|
-
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
|
|
150
|
-
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
|
|
151
|
-
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
152
|
-
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
153
|
-
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
154
|
-
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
155
|
-
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Zq=function(t,n){return"M424,"+(2398+t+n)+`
|
|
156
|
-
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
157
|
-
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
|
|
158
|
-
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
159
|
-
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
160
|
-
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
161
|
-
v`+(40+t)+`H1014.6
|
|
162
|
-
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
163
|
-
c-2,6,-10,9,-24,9
|
|
164
|
-
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
|
|
165
|
-
h400000v`+(40+t)+"h-400000z"},Jq=function(t,n){return"M473,"+(2713+t+n)+`
|
|
166
|
-
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
167
|
-
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
168
|
-
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
169
|
-
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
|
|
170
|
-
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
|
|
171
|
-
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
172
|
-
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},ej=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},tj=function(t,n,r){var a=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
|
|
173
|
-
H742v`+a+`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
|
|
174
|
-
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
175
|
-
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
176
|
-
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},nj=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=Wq(n,Bo);break;case"sqrtSize1":a=Xq(n,Bo);break;case"sqrtSize2":a=Qq(n,Bo);break;case"sqrtSize3":a=Zq(n,Bo);break;case"sqrtSize4":a=Jq(n,Bo);break;case"sqrtTall":a=tj(n,Bo,r)}return a},rj=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""}},e6={doubleleftarrow:`M262 157
|
|
177
|
-
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
|
|
178
|
-
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
|
|
179
|
-
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
|
|
180
|
-
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
|
|
181
|
-
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
|
|
182
|
-
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
183
|
-
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
184
|
-
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
185
|
-
-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
|
|
186
|
-
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
|
|
187
|
-
-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
|
|
188
|
-
-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
|
|
189
|
-
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
190
|
-
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
|
|
191
|
-
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
192
|
-
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
|
|
193
|
-
-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
|
|
194
|
-
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
|
|
195
|
-
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
|
|
196
|
-
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
|
|
197
|
-
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
198
|
-
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
199
|
-
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
|
|
200
|
-
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
|
|
201
|
-
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
202
|
-
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
203
|
-
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
|
|
204
|
-
435 0h399565z`,leftgroupunder:`M400000 262
|
|
205
|
-
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
|
|
206
|
-
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
207
|
-
-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
|
|
208
|
-
-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
|
|
209
|
-
-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
|
|
210
|
-
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
|
|
211
|
-
-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
|
|
212
|
-
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
213
|
-
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
214
|
-
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
215
|
-
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
|
|
216
|
-
-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
|
|
217
|
-
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
|
|
218
|
-
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
219
|
-
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
|
|
220
|
-
-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
|
|
221
|
-
-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
|
|
222
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
223
|
-
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
224
|
-
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
225
|
-
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
226
|
-
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
|
|
227
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
228
|
-
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
229
|
-
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
|
|
230
|
-
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
231
|
-
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
|
|
232
|
-
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
233
|
-
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
|
|
234
|
-
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
235
|
-
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
|
|
236
|
-
-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
|
|
237
|
-
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
238
|
-
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
|
|
239
|
-
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
|
|
240
|
-
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
241
|
-
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
242
|
-
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
|
|
243
|
-
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
244
|
-
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
|
|
245
|
-
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
|
|
246
|
-
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
247
|
-
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
248
|
-
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
|
|
249
|
-
-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
|
|
250
|
-
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
|
|
251
|
-
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
|
|
252
|
-
-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
|
|
253
|
-
-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
|
|
254
|
-
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
255
|
-
-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
|
|
256
|
-
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
|
|
257
|
-
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
|
|
258
|
-
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
259
|
-
-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
|
|
260
|
-
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
|
|
261
|
-
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
|
|
262
|
-
-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
|
|
263
|
-
-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
|
|
264
|
-
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
|
|
265
|
-
-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
|
|
266
|
-
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
|
|
267
|
-
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
|
|
268
|
-
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
|
|
269
|
-
-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
|
|
270
|
-
-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
|
|
271
|
-
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
|
|
272
|
-
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
|
|
273
|
-
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
274
|
-
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
|
|
275
|
-
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
|
|
276
|
-
-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
|
|
277
|
-
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
|
|
278
|
-
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
|
|
279
|
-
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
280
|
-
-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
|
|
281
|
-
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
282
|
-
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
|
|
283
|
-
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
284
|
-
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
285
|
-
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
286
|
-
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
|
|
287
|
-
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
|
|
288
|
-
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
|
|
289
|
-
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
290
|
-
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
291
|
-
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
|
|
292
|
-
-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
|
|
293
|
-
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
|
|
294
|
-
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
295
|
-
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
296
|
-
-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
|
|
297
|
-
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
298
|
-
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
|
|
299
|
-
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
|
|
300
|
-
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
301
|
-
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
302
|
-
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
303
|
-
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
304
|
-
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
305
|
-
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
306
|
-
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
307
|
-
-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
|
|
308
|
-
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
309
|
-
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
|
|
310
|
-
-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
|
|
311
|
-
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
312
|
-
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
313
|
-
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
|
|
314
|
-
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
|
|
315
|
-
-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
|
|
316
|
-
-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
|
|
317
|
-
-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,
|
|
318
|
-
-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,
|
|
319
|
-
-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,
|
|
320
|
-
-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,
|
|
321
|
-
-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
|
|
322
|
-
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
323
|
-
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
|
|
324
|
-
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
|
|
325
|
-
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
|
|
326
|
-
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
|
|
327
|
-
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
328
|
-
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
329
|
-
-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
|
|
330
|
-
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
|
|
331
|
-
-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
|
|
332
|
-
-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
|
|
333
|
-
-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
|
|
334
|
-
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
335
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
336
|
-
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
|
|
337
|
-
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
338
|
-
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
339
|
-
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
340
|
-
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,
|
|
341
|
-
-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
|
|
342
|
-
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
|
|
343
|
-
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
|
|
344
|
-
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,
|
|
345
|
-
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,
|
|
346
|
-
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
347
|
-
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
|
|
348
|
-
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,
|
|
349
|
-
-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
|
|
350
|
-
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
|
|
351
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},aj=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
|
|
352
|
-
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
|
|
353
|
-
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
|
|
354
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
355
|
-
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
|
|
356
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
357
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
|
|
358
|
-
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
|
|
359
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
360
|
-
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
|
|
361
|
-
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
|
|
362
|
-
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
|
|
363
|
-
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
|
|
364
|
-
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
|
|
365
|
-
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,
|
|
366
|
-
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
367
|
-
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
|
|
368
|
-
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,
|
|
369
|
-
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
370
|
-
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
371
|
-
-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,
|
|
372
|
-
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
373
|
-
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
|
|
374
|
-
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
|
|
375
|
-
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
|
|
376
|
-
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
|
|
377
|
-
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
378
|
-
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
379
|
-
-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 F0{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 st.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 hi={"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]}},yh={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]},t6={Å:"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 ij(e,t){hi[e]=t}function z2(e,t,n){if(!hi[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=hi[t][r];if(!a&&e[0]in t6&&(r=t6[e[0]].charCodeAt(0),a=hi[t][r]),!a&&n==="text"&&gx(r)&&(a=hi[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var rg={};function sj(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!rg[t]){var n=rg[t]={cssEmPerMu:yh.quad[t]/18};for(var r in yh)yh.hasOwnProperty(r)&&(n[r]=yh[r][t])}return rg[t]}var lj=[[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]],n6=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],r6=function(t,n){return n.size<2?t:lj[t-1][n.size-1]};class Ki{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||Ki.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=n6[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 Ki(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:r6(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:n6[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=r6(Ki.BASESIZE,t);return this.size===n&&this.textSize===Ki.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!==Ki.BASESIZE?["sizing","reset-size"+this.size,"size"+Ki.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=sj(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ki.BASESIZE=6;var vb={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},oj={ex:!0,em:!0,mu:!0},bx=function(t){return typeof t!="string"&&(t=t.unit),t in vb||t in oj||t==="ex"},Ln=function(t,n){var r;if(t.unit in vb)r=vb[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new Ne("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Pe=function(t){return+t.toFixed(4)+"em"},il=function(t){return t.filter(n=>n).join(" ")},vx=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 a=n.getColor();a&&(this.style.color=a)}},yx=function(t){var n=document.createElement(t);n.className=il(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&n.setAttribute(a,this.attributes[a]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n},uj=/[\s"'>/=\x00-\x1f]/,_x=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+st.escape(il(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=st.hyphenate(a)+":"+this.style[a]+";");r&&(n+=' style="'+st.escape(r)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(uj.test(s))throw new Ne("Invalid attribute name '"+s+"'");n+=" "+s+'="'+st.escape(this.attributes[s])+'"'}n+=">";for(var o=0;o<this.children.length;o++)n+=this.children[o].toMarkup();return n+="</"+t+">",n};class z0{constructor(t,n,r,a){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,vx.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return st.contains(this.classes,t)}toNode(){return yx.call(this,"span")}toMarkup(){return _x.call(this,"span")}}class H2{constructor(t,n,r,a){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,vx.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return st.contains(this.classes,t)}toNode(){return yx.call(this,"a")}toMarkup(){return _x.call(this,"a")}}class cj{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 st.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="'+st.escape(this.src)+'"'+(' alt="'+st.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=st.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+st.escape(n)+'"'),t+="'/>",t}}var dj={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Ua{constructor(t,n,r,a,s,o,c,d){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=a||0,this.skew=s||0,this.width=o||0,this.classes=c||[],this.style=d||{},this.maxFontSize=0;var f=Kq(this.text.charCodeAt(0));f&&this.classes.push(f+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=dj[this.text])}hasClass(t){return st.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Pe(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=il(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+=st.escape(il(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=st.hyphenate(a)+":"+this.style[a]+";");r&&(t=!0,n+=' style="'+st.escape(r)+'"');var s=st.escape(this.text);return t?(n+=">",n+=s,n+="</span>",n):s}}class as{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 a=0;a<this.children.length;a++)n.appendChild(this.children[a].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+'="'+st.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class sl{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",e6[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+st.escape(this.alternate)+'"/>':'<path d="'+st.escape(e6[this.pathName])+'"/>'}}class yb{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+'="'+st.escape(this.attributes[n])+'"');return t+="/>",t}}function a6(e){if(e instanceof Ua)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function hj(e){if(e instanceof z0)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var fj={bin:1,close:1,inner:1,open:1,punct:1,rel:1},mj={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},pn={math:{},text:{}};function E(e,t,n,r,a,s){pn[e][a]={font:t,group:n,replace:r},s&&r&&(pn[e][r]=pn[e][a])}var S="math",we="text",N="main",F="ams",Cn="accent-token",Ve="bin",$r="close",yu="inner",lt="mathord",Jn="op-token",Ea="open",em="punct",q="rel",cs="spacing",X="textord";E(S,N,q,"≡","\\equiv",!0);E(S,N,q,"≺","\\prec",!0);E(S,N,q,"≻","\\succ",!0);E(S,N,q,"∼","\\sim",!0);E(S,N,q,"⊥","\\perp");E(S,N,q,"⪯","\\preceq",!0);E(S,N,q,"⪰","\\succeq",!0);E(S,N,q,"≃","\\simeq",!0);E(S,N,q,"∣","\\mid",!0);E(S,N,q,"≪","\\ll",!0);E(S,N,q,"≫","\\gg",!0);E(S,N,q,"≍","\\asymp",!0);E(S,N,q,"∥","\\parallel");E(S,N,q,"⋈","\\bowtie",!0);E(S,N,q,"⌣","\\smile",!0);E(S,N,q,"⊑","\\sqsubseteq",!0);E(S,N,q,"⊒","\\sqsupseteq",!0);E(S,N,q,"≐","\\doteq",!0);E(S,N,q,"⌢","\\frown",!0);E(S,N,q,"∋","\\ni",!0);E(S,N,q,"∝","\\propto",!0);E(S,N,q,"⊢","\\vdash",!0);E(S,N,q,"⊣","\\dashv",!0);E(S,N,q,"∋","\\owns");E(S,N,em,".","\\ldotp");E(S,N,em,"⋅","\\cdotp");E(S,N,X,"#","\\#");E(we,N,X,"#","\\#");E(S,N,X,"&","\\&");E(we,N,X,"&","\\&");E(S,N,X,"ℵ","\\aleph",!0);E(S,N,X,"∀","\\forall",!0);E(S,N,X,"ℏ","\\hbar",!0);E(S,N,X,"∃","\\exists",!0);E(S,N,X,"∇","\\nabla",!0);E(S,N,X,"♭","\\flat",!0);E(S,N,X,"ℓ","\\ell",!0);E(S,N,X,"♮","\\natural",!0);E(S,N,X,"♣","\\clubsuit",!0);E(S,N,X,"℘","\\wp",!0);E(S,N,X,"♯","\\sharp",!0);E(S,N,X,"♢","\\diamondsuit",!0);E(S,N,X,"ℜ","\\Re",!0);E(S,N,X,"♡","\\heartsuit",!0);E(S,N,X,"ℑ","\\Im",!0);E(S,N,X,"♠","\\spadesuit",!0);E(S,N,X,"§","\\S",!0);E(we,N,X,"§","\\S");E(S,N,X,"¶","\\P",!0);E(we,N,X,"¶","\\P");E(S,N,X,"†","\\dag");E(we,N,X,"†","\\dag");E(we,N,X,"†","\\textdagger");E(S,N,X,"‡","\\ddag");E(we,N,X,"‡","\\ddag");E(we,N,X,"‡","\\textdaggerdbl");E(S,N,$r,"⎱","\\rmoustache",!0);E(S,N,Ea,"⎰","\\lmoustache",!0);E(S,N,$r,"⟯","\\rgroup",!0);E(S,N,Ea,"⟮","\\lgroup",!0);E(S,N,Ve,"∓","\\mp",!0);E(S,N,Ve,"⊖","\\ominus",!0);E(S,N,Ve,"⊎","\\uplus",!0);E(S,N,Ve,"⊓","\\sqcap",!0);E(S,N,Ve,"∗","\\ast");E(S,N,Ve,"⊔","\\sqcup",!0);E(S,N,Ve,"◯","\\bigcirc",!0);E(S,N,Ve,"∙","\\bullet",!0);E(S,N,Ve,"‡","\\ddagger");E(S,N,Ve,"≀","\\wr",!0);E(S,N,Ve,"⨿","\\amalg");E(S,N,Ve,"&","\\And");E(S,N,q,"⟵","\\longleftarrow",!0);E(S,N,q,"⇐","\\Leftarrow",!0);E(S,N,q,"⟸","\\Longleftarrow",!0);E(S,N,q,"⟶","\\longrightarrow",!0);E(S,N,q,"⇒","\\Rightarrow",!0);E(S,N,q,"⟹","\\Longrightarrow",!0);E(S,N,q,"↔","\\leftrightarrow",!0);E(S,N,q,"⟷","\\longleftrightarrow",!0);E(S,N,q,"⇔","\\Leftrightarrow",!0);E(S,N,q,"⟺","\\Longleftrightarrow",!0);E(S,N,q,"↦","\\mapsto",!0);E(S,N,q,"⟼","\\longmapsto",!0);E(S,N,q,"↗","\\nearrow",!0);E(S,N,q,"↩","\\hookleftarrow",!0);E(S,N,q,"↪","\\hookrightarrow",!0);E(S,N,q,"↘","\\searrow",!0);E(S,N,q,"↼","\\leftharpoonup",!0);E(S,N,q,"⇀","\\rightharpoonup",!0);E(S,N,q,"↙","\\swarrow",!0);E(S,N,q,"↽","\\leftharpoondown",!0);E(S,N,q,"⇁","\\rightharpoondown",!0);E(S,N,q,"↖","\\nwarrow",!0);E(S,N,q,"⇌","\\rightleftharpoons",!0);E(S,F,q,"≮","\\nless",!0);E(S,F,q,"","\\@nleqslant");E(S,F,q,"","\\@nleqq");E(S,F,q,"⪇","\\lneq",!0);E(S,F,q,"≨","\\lneqq",!0);E(S,F,q,"","\\@lvertneqq");E(S,F,q,"⋦","\\lnsim",!0);E(S,F,q,"⪉","\\lnapprox",!0);E(S,F,q,"⊀","\\nprec",!0);E(S,F,q,"⋠","\\npreceq",!0);E(S,F,q,"⋨","\\precnsim",!0);E(S,F,q,"⪹","\\precnapprox",!0);E(S,F,q,"≁","\\nsim",!0);E(S,F,q,"","\\@nshortmid");E(S,F,q,"∤","\\nmid",!0);E(S,F,q,"⊬","\\nvdash",!0);E(S,F,q,"⊭","\\nvDash",!0);E(S,F,q,"⋪","\\ntriangleleft");E(S,F,q,"⋬","\\ntrianglelefteq",!0);E(S,F,q,"⊊","\\subsetneq",!0);E(S,F,q,"","\\@varsubsetneq");E(S,F,q,"⫋","\\subsetneqq",!0);E(S,F,q,"","\\@varsubsetneqq");E(S,F,q,"≯","\\ngtr",!0);E(S,F,q,"","\\@ngeqslant");E(S,F,q,"","\\@ngeqq");E(S,F,q,"⪈","\\gneq",!0);E(S,F,q,"≩","\\gneqq",!0);E(S,F,q,"","\\@gvertneqq");E(S,F,q,"⋧","\\gnsim",!0);E(S,F,q,"⪊","\\gnapprox",!0);E(S,F,q,"⊁","\\nsucc",!0);E(S,F,q,"⋡","\\nsucceq",!0);E(S,F,q,"⋩","\\succnsim",!0);E(S,F,q,"⪺","\\succnapprox",!0);E(S,F,q,"≆","\\ncong",!0);E(S,F,q,"","\\@nshortparallel");E(S,F,q,"∦","\\nparallel",!0);E(S,F,q,"⊯","\\nVDash",!0);E(S,F,q,"⋫","\\ntriangleright");E(S,F,q,"⋭","\\ntrianglerighteq",!0);E(S,F,q,"","\\@nsupseteqq");E(S,F,q,"⊋","\\supsetneq",!0);E(S,F,q,"","\\@varsupsetneq");E(S,F,q,"⫌","\\supsetneqq",!0);E(S,F,q,"","\\@varsupsetneqq");E(S,F,q,"⊮","\\nVdash",!0);E(S,F,q,"⪵","\\precneqq",!0);E(S,F,q,"⪶","\\succneqq",!0);E(S,F,q,"","\\@nsubseteqq");E(S,F,Ve,"⊴","\\unlhd");E(S,F,Ve,"⊵","\\unrhd");E(S,F,q,"↚","\\nleftarrow",!0);E(S,F,q,"↛","\\nrightarrow",!0);E(S,F,q,"⇍","\\nLeftarrow",!0);E(S,F,q,"⇏","\\nRightarrow",!0);E(S,F,q,"↮","\\nleftrightarrow",!0);E(S,F,q,"⇎","\\nLeftrightarrow",!0);E(S,F,q,"△","\\vartriangle");E(S,F,X,"ℏ","\\hslash");E(S,F,X,"▽","\\triangledown");E(S,F,X,"◊","\\lozenge");E(S,F,X,"Ⓢ","\\circledS");E(S,F,X,"®","\\circledR");E(we,F,X,"®","\\circledR");E(S,F,X,"∡","\\measuredangle",!0);E(S,F,X,"∄","\\nexists");E(S,F,X,"℧","\\mho");E(S,F,X,"Ⅎ","\\Finv",!0);E(S,F,X,"⅁","\\Game",!0);E(S,F,X,"‵","\\backprime");E(S,F,X,"▲","\\blacktriangle");E(S,F,X,"▼","\\blacktriangledown");E(S,F,X,"■","\\blacksquare");E(S,F,X,"⧫","\\blacklozenge");E(S,F,X,"★","\\bigstar");E(S,F,X,"∢","\\sphericalangle",!0);E(S,F,X,"∁","\\complement",!0);E(S,F,X,"ð","\\eth",!0);E(we,N,X,"ð","ð");E(S,F,X,"╱","\\diagup");E(S,F,X,"╲","\\diagdown");E(S,F,X,"□","\\square");E(S,F,X,"□","\\Box");E(S,F,X,"◊","\\Diamond");E(S,F,X,"¥","\\yen",!0);E(we,F,X,"¥","\\yen",!0);E(S,F,X,"✓","\\checkmark",!0);E(we,F,X,"✓","\\checkmark");E(S,F,X,"ℶ","\\beth",!0);E(S,F,X,"ℸ","\\daleth",!0);E(S,F,X,"ℷ","\\gimel",!0);E(S,F,X,"ϝ","\\digamma",!0);E(S,F,X,"ϰ","\\varkappa");E(S,F,Ea,"┌","\\@ulcorner",!0);E(S,F,$r,"┐","\\@urcorner",!0);E(S,F,Ea,"└","\\@llcorner",!0);E(S,F,$r,"┘","\\@lrcorner",!0);E(S,F,q,"≦","\\leqq",!0);E(S,F,q,"⩽","\\leqslant",!0);E(S,F,q,"⪕","\\eqslantless",!0);E(S,F,q,"≲","\\lesssim",!0);E(S,F,q,"⪅","\\lessapprox",!0);E(S,F,q,"≊","\\approxeq",!0);E(S,F,Ve,"⋖","\\lessdot");E(S,F,q,"⋘","\\lll",!0);E(S,F,q,"≶","\\lessgtr",!0);E(S,F,q,"⋚","\\lesseqgtr",!0);E(S,F,q,"⪋","\\lesseqqgtr",!0);E(S,F,q,"≑","\\doteqdot");E(S,F,q,"≓","\\risingdotseq",!0);E(S,F,q,"≒","\\fallingdotseq",!0);E(S,F,q,"∽","\\backsim",!0);E(S,F,q,"⋍","\\backsimeq",!0);E(S,F,q,"⫅","\\subseteqq",!0);E(S,F,q,"⋐","\\Subset",!0);E(S,F,q,"⊏","\\sqsubset",!0);E(S,F,q,"≼","\\preccurlyeq",!0);E(S,F,q,"⋞","\\curlyeqprec",!0);E(S,F,q,"≾","\\precsim",!0);E(S,F,q,"⪷","\\precapprox",!0);E(S,F,q,"⊲","\\vartriangleleft");E(S,F,q,"⊴","\\trianglelefteq");E(S,F,q,"⊨","\\vDash",!0);E(S,F,q,"⊪","\\Vvdash",!0);E(S,F,q,"⌣","\\smallsmile");E(S,F,q,"⌢","\\smallfrown");E(S,F,q,"≏","\\bumpeq",!0);E(S,F,q,"≎","\\Bumpeq",!0);E(S,F,q,"≧","\\geqq",!0);E(S,F,q,"⩾","\\geqslant",!0);E(S,F,q,"⪖","\\eqslantgtr",!0);E(S,F,q,"≳","\\gtrsim",!0);E(S,F,q,"⪆","\\gtrapprox",!0);E(S,F,Ve,"⋗","\\gtrdot");E(S,F,q,"⋙","\\ggg",!0);E(S,F,q,"≷","\\gtrless",!0);E(S,F,q,"⋛","\\gtreqless",!0);E(S,F,q,"⪌","\\gtreqqless",!0);E(S,F,q,"≖","\\eqcirc",!0);E(S,F,q,"≗","\\circeq",!0);E(S,F,q,"≜","\\triangleq",!0);E(S,F,q,"∼","\\thicksim");E(S,F,q,"≈","\\thickapprox");E(S,F,q,"⫆","\\supseteqq",!0);E(S,F,q,"⋑","\\Supset",!0);E(S,F,q,"⊐","\\sqsupset",!0);E(S,F,q,"≽","\\succcurlyeq",!0);E(S,F,q,"⋟","\\curlyeqsucc",!0);E(S,F,q,"≿","\\succsim",!0);E(S,F,q,"⪸","\\succapprox",!0);E(S,F,q,"⊳","\\vartriangleright");E(S,F,q,"⊵","\\trianglerighteq");E(S,F,q,"⊩","\\Vdash",!0);E(S,F,q,"∣","\\shortmid");E(S,F,q,"∥","\\shortparallel");E(S,F,q,"≬","\\between",!0);E(S,F,q,"⋔","\\pitchfork",!0);E(S,F,q,"∝","\\varpropto");E(S,F,q,"◀","\\blacktriangleleft");E(S,F,q,"∴","\\therefore",!0);E(S,F,q,"∍","\\backepsilon");E(S,F,q,"▶","\\blacktriangleright");E(S,F,q,"∵","\\because",!0);E(S,F,q,"⋘","\\llless");E(S,F,q,"⋙","\\gggtr");E(S,F,Ve,"⊲","\\lhd");E(S,F,Ve,"⊳","\\rhd");E(S,F,q,"≂","\\eqsim",!0);E(S,N,q,"⋈","\\Join");E(S,F,q,"≑","\\Doteq",!0);E(S,F,Ve,"∔","\\dotplus",!0);E(S,F,Ve,"∖","\\smallsetminus");E(S,F,Ve,"⋒","\\Cap",!0);E(S,F,Ve,"⋓","\\Cup",!0);E(S,F,Ve,"⩞","\\doublebarwedge",!0);E(S,F,Ve,"⊟","\\boxminus",!0);E(S,F,Ve,"⊞","\\boxplus",!0);E(S,F,Ve,"⋇","\\divideontimes",!0);E(S,F,Ve,"⋉","\\ltimes",!0);E(S,F,Ve,"⋊","\\rtimes",!0);E(S,F,Ve,"⋋","\\leftthreetimes",!0);E(S,F,Ve,"⋌","\\rightthreetimes",!0);E(S,F,Ve,"⋏","\\curlywedge",!0);E(S,F,Ve,"⋎","\\curlyvee",!0);E(S,F,Ve,"⊝","\\circleddash",!0);E(S,F,Ve,"⊛","\\circledast",!0);E(S,F,Ve,"⋅","\\centerdot");E(S,F,Ve,"⊺","\\intercal",!0);E(S,F,Ve,"⋒","\\doublecap");E(S,F,Ve,"⋓","\\doublecup");E(S,F,Ve,"⊠","\\boxtimes",!0);E(S,F,q,"⇢","\\dashrightarrow",!0);E(S,F,q,"⇠","\\dashleftarrow",!0);E(S,F,q,"⇇","\\leftleftarrows",!0);E(S,F,q,"⇆","\\leftrightarrows",!0);E(S,F,q,"⇚","\\Lleftarrow",!0);E(S,F,q,"↞","\\twoheadleftarrow",!0);E(S,F,q,"↢","\\leftarrowtail",!0);E(S,F,q,"↫","\\looparrowleft",!0);E(S,F,q,"⇋","\\leftrightharpoons",!0);E(S,F,q,"↶","\\curvearrowleft",!0);E(S,F,q,"↺","\\circlearrowleft",!0);E(S,F,q,"↰","\\Lsh",!0);E(S,F,q,"⇈","\\upuparrows",!0);E(S,F,q,"↿","\\upharpoonleft",!0);E(S,F,q,"⇃","\\downharpoonleft",!0);E(S,N,q,"⊶","\\origof",!0);E(S,N,q,"⊷","\\imageof",!0);E(S,F,q,"⊸","\\multimap",!0);E(S,F,q,"↭","\\leftrightsquigarrow",!0);E(S,F,q,"⇉","\\rightrightarrows",!0);E(S,F,q,"⇄","\\rightleftarrows",!0);E(S,F,q,"↠","\\twoheadrightarrow",!0);E(S,F,q,"↣","\\rightarrowtail",!0);E(S,F,q,"↬","\\looparrowright",!0);E(S,F,q,"↷","\\curvearrowright",!0);E(S,F,q,"↻","\\circlearrowright",!0);E(S,F,q,"↱","\\Rsh",!0);E(S,F,q,"⇊","\\downdownarrows",!0);E(S,F,q,"↾","\\upharpoonright",!0);E(S,F,q,"⇂","\\downharpoonright",!0);E(S,F,q,"⇝","\\rightsquigarrow",!0);E(S,F,q,"⇝","\\leadsto");E(S,F,q,"⇛","\\Rrightarrow",!0);E(S,F,q,"↾","\\restriction");E(S,N,X,"‘","`");E(S,N,X,"$","\\$");E(we,N,X,"$","\\$");E(we,N,X,"$","\\textdollar");E(S,N,X,"%","\\%");E(we,N,X,"%","\\%");E(S,N,X,"_","\\_");E(we,N,X,"_","\\_");E(we,N,X,"_","\\textunderscore");E(S,N,X,"∠","\\angle",!0);E(S,N,X,"∞","\\infty",!0);E(S,N,X,"′","\\prime");E(S,N,X,"△","\\triangle");E(S,N,X,"Γ","\\Gamma",!0);E(S,N,X,"Δ","\\Delta",!0);E(S,N,X,"Θ","\\Theta",!0);E(S,N,X,"Λ","\\Lambda",!0);E(S,N,X,"Ξ","\\Xi",!0);E(S,N,X,"Π","\\Pi",!0);E(S,N,X,"Σ","\\Sigma",!0);E(S,N,X,"Υ","\\Upsilon",!0);E(S,N,X,"Φ","\\Phi",!0);E(S,N,X,"Ψ","\\Psi",!0);E(S,N,X,"Ω","\\Omega",!0);E(S,N,X,"A","Α");E(S,N,X,"B","Β");E(S,N,X,"E","Ε");E(S,N,X,"Z","Ζ");E(S,N,X,"H","Η");E(S,N,X,"I","Ι");E(S,N,X,"K","Κ");E(S,N,X,"M","Μ");E(S,N,X,"N","Ν");E(S,N,X,"O","Ο");E(S,N,X,"P","Ρ");E(S,N,X,"T","Τ");E(S,N,X,"X","Χ");E(S,N,X,"¬","\\neg",!0);E(S,N,X,"¬","\\lnot");E(S,N,X,"⊤","\\top");E(S,N,X,"⊥","\\bot");E(S,N,X,"∅","\\emptyset");E(S,F,X,"∅","\\varnothing");E(S,N,lt,"α","\\alpha",!0);E(S,N,lt,"β","\\beta",!0);E(S,N,lt,"γ","\\gamma",!0);E(S,N,lt,"δ","\\delta",!0);E(S,N,lt,"ϵ","\\epsilon",!0);E(S,N,lt,"ζ","\\zeta",!0);E(S,N,lt,"η","\\eta",!0);E(S,N,lt,"θ","\\theta",!0);E(S,N,lt,"ι","\\iota",!0);E(S,N,lt,"κ","\\kappa",!0);E(S,N,lt,"λ","\\lambda",!0);E(S,N,lt,"μ","\\mu",!0);E(S,N,lt,"ν","\\nu",!0);E(S,N,lt,"ξ","\\xi",!0);E(S,N,lt,"ο","\\omicron",!0);E(S,N,lt,"π","\\pi",!0);E(S,N,lt,"ρ","\\rho",!0);E(S,N,lt,"σ","\\sigma",!0);E(S,N,lt,"τ","\\tau",!0);E(S,N,lt,"υ","\\upsilon",!0);E(S,N,lt,"ϕ","\\phi",!0);E(S,N,lt,"χ","\\chi",!0);E(S,N,lt,"ψ","\\psi",!0);E(S,N,lt,"ω","\\omega",!0);E(S,N,lt,"ε","\\varepsilon",!0);E(S,N,lt,"ϑ","\\vartheta",!0);E(S,N,lt,"ϖ","\\varpi",!0);E(S,N,lt,"ϱ","\\varrho",!0);E(S,N,lt,"ς","\\varsigma",!0);E(S,N,lt,"φ","\\varphi",!0);E(S,N,Ve,"∗","*",!0);E(S,N,Ve,"+","+");E(S,N,Ve,"−","-",!0);E(S,N,Ve,"⋅","\\cdot",!0);E(S,N,Ve,"∘","\\circ",!0);E(S,N,Ve,"÷","\\div",!0);E(S,N,Ve,"±","\\pm",!0);E(S,N,Ve,"×","\\times",!0);E(S,N,Ve,"∩","\\cap",!0);E(S,N,Ve,"∪","\\cup",!0);E(S,N,Ve,"∖","\\setminus",!0);E(S,N,Ve,"∧","\\land");E(S,N,Ve,"∨","\\lor");E(S,N,Ve,"∧","\\wedge",!0);E(S,N,Ve,"∨","\\vee",!0);E(S,N,X,"√","\\surd");E(S,N,Ea,"⟨","\\langle",!0);E(S,N,Ea,"∣","\\lvert");E(S,N,Ea,"∥","\\lVert");E(S,N,$r,"?","?");E(S,N,$r,"!","!");E(S,N,$r,"⟩","\\rangle",!0);E(S,N,$r,"∣","\\rvert");E(S,N,$r,"∥","\\rVert");E(S,N,q,"=","=");E(S,N,q,":",":");E(S,N,q,"≈","\\approx",!0);E(S,N,q,"≅","\\cong",!0);E(S,N,q,"≥","\\ge");E(S,N,q,"≥","\\geq",!0);E(S,N,q,"←","\\gets");E(S,N,q,">","\\gt",!0);E(S,N,q,"∈","\\in",!0);E(S,N,q,"","\\@not");E(S,N,q,"⊂","\\subset",!0);E(S,N,q,"⊃","\\supset",!0);E(S,N,q,"⊆","\\subseteq",!0);E(S,N,q,"⊇","\\supseteq",!0);E(S,F,q,"⊈","\\nsubseteq",!0);E(S,F,q,"⊉","\\nsupseteq",!0);E(S,N,q,"⊨","\\models");E(S,N,q,"←","\\leftarrow",!0);E(S,N,q,"≤","\\le");E(S,N,q,"≤","\\leq",!0);E(S,N,q,"<","\\lt",!0);E(S,N,q,"→","\\rightarrow",!0);E(S,N,q,"→","\\to");E(S,F,q,"≱","\\ngeq",!0);E(S,F,q,"≰","\\nleq",!0);E(S,N,cs," ","\\ ");E(S,N,cs," ","\\space");E(S,N,cs," ","\\nobreakspace");E(we,N,cs," ","\\ ");E(we,N,cs," "," ");E(we,N,cs," ","\\space");E(we,N,cs," ","\\nobreakspace");E(S,N,cs,null,"\\nobreak");E(S,N,cs,null,"\\allowbreak");E(S,N,em,",",",");E(S,N,em,";",";");E(S,F,Ve,"⊼","\\barwedge",!0);E(S,F,Ve,"⊻","\\veebar",!0);E(S,N,Ve,"⊙","\\odot",!0);E(S,N,Ve,"⊕","\\oplus",!0);E(S,N,Ve,"⊗","\\otimes",!0);E(S,N,X,"∂","\\partial",!0);E(S,N,Ve,"⊘","\\oslash",!0);E(S,F,Ve,"⊚","\\circledcirc",!0);E(S,F,Ve,"⊡","\\boxdot",!0);E(S,N,Ve,"△","\\bigtriangleup");E(S,N,Ve,"▽","\\bigtriangledown");E(S,N,Ve,"†","\\dagger");E(S,N,Ve,"⋄","\\diamond");E(S,N,Ve,"⋆","\\star");E(S,N,Ve,"◃","\\triangleleft");E(S,N,Ve,"▹","\\triangleright");E(S,N,Ea,"{","\\{");E(we,N,X,"{","\\{");E(we,N,X,"{","\\textbraceleft");E(S,N,$r,"}","\\}");E(we,N,X,"}","\\}");E(we,N,X,"}","\\textbraceright");E(S,N,Ea,"{","\\lbrace");E(S,N,$r,"}","\\rbrace");E(S,N,Ea,"[","\\lbrack",!0);E(we,N,X,"[","\\lbrack",!0);E(S,N,$r,"]","\\rbrack",!0);E(we,N,X,"]","\\rbrack",!0);E(S,N,Ea,"(","\\lparen",!0);E(S,N,$r,")","\\rparen",!0);E(we,N,X,"<","\\textless",!0);E(we,N,X,">","\\textgreater",!0);E(S,N,Ea,"⌊","\\lfloor",!0);E(S,N,$r,"⌋","\\rfloor",!0);E(S,N,Ea,"⌈","\\lceil",!0);E(S,N,$r,"⌉","\\rceil",!0);E(S,N,X,"\\","\\backslash");E(S,N,X,"∣","|");E(S,N,X,"∣","\\vert");E(we,N,X,"|","\\textbar",!0);E(S,N,X,"∥","\\|");E(S,N,X,"∥","\\Vert");E(we,N,X,"∥","\\textbardbl");E(we,N,X,"~","\\textasciitilde");E(we,N,X,"\\","\\textbackslash");E(we,N,X,"^","\\textasciicircum");E(S,N,q,"↑","\\uparrow",!0);E(S,N,q,"⇑","\\Uparrow",!0);E(S,N,q,"↓","\\downarrow",!0);E(S,N,q,"⇓","\\Downarrow",!0);E(S,N,q,"↕","\\updownarrow",!0);E(S,N,q,"⇕","\\Updownarrow",!0);E(S,N,Jn,"∐","\\coprod");E(S,N,Jn,"⋁","\\bigvee");E(S,N,Jn,"⋀","\\bigwedge");E(S,N,Jn,"⨄","\\biguplus");E(S,N,Jn,"⋂","\\bigcap");E(S,N,Jn,"⋃","\\bigcup");E(S,N,Jn,"∫","\\int");E(S,N,Jn,"∫","\\intop");E(S,N,Jn,"∬","\\iint");E(S,N,Jn,"∭","\\iiint");E(S,N,Jn,"∏","\\prod");E(S,N,Jn,"∑","\\sum");E(S,N,Jn,"⨂","\\bigotimes");E(S,N,Jn,"⨁","\\bigoplus");E(S,N,Jn,"⨀","\\bigodot");E(S,N,Jn,"∮","\\oint");E(S,N,Jn,"∯","\\oiint");E(S,N,Jn,"∰","\\oiiint");E(S,N,Jn,"⨆","\\bigsqcup");E(S,N,Jn,"∫","\\smallint");E(we,N,yu,"…","\\textellipsis");E(S,N,yu,"…","\\mathellipsis");E(we,N,yu,"…","\\ldots",!0);E(S,N,yu,"…","\\ldots",!0);E(S,N,yu,"⋯","\\@cdots",!0);E(S,N,yu,"⋱","\\ddots",!0);E(S,N,X,"⋮","\\varvdots");E(we,N,X,"⋮","\\varvdots");E(S,N,Cn,"ˊ","\\acute");E(S,N,Cn,"ˋ","\\grave");E(S,N,Cn,"¨","\\ddot");E(S,N,Cn,"~","\\tilde");E(S,N,Cn,"ˉ","\\bar");E(S,N,Cn,"˘","\\breve");E(S,N,Cn,"ˇ","\\check");E(S,N,Cn,"^","\\hat");E(S,N,Cn,"⃗","\\vec");E(S,N,Cn,"˙","\\dot");E(S,N,Cn,"˚","\\mathring");E(S,N,lt,"","\\@imath");E(S,N,lt,"","\\@jmath");E(S,N,X,"ı","ı");E(S,N,X,"ȷ","ȷ");E(we,N,X,"ı","\\i",!0);E(we,N,X,"ȷ","\\j",!0);E(we,N,X,"ß","\\ss",!0);E(we,N,X,"æ","\\ae",!0);E(we,N,X,"œ","\\oe",!0);E(we,N,X,"ø","\\o",!0);E(we,N,X,"Æ","\\AE",!0);E(we,N,X,"Œ","\\OE",!0);E(we,N,X,"Ø","\\O",!0);E(we,N,Cn,"ˊ","\\'");E(we,N,Cn,"ˋ","\\`");E(we,N,Cn,"ˆ","\\^");E(we,N,Cn,"˜","\\~");E(we,N,Cn,"ˉ","\\=");E(we,N,Cn,"˘","\\u");E(we,N,Cn,"˙","\\.");E(we,N,Cn,"¸","\\c");E(we,N,Cn,"˚","\\r");E(we,N,Cn,"ˇ","\\v");E(we,N,Cn,"¨",'\\"');E(we,N,Cn,"˝","\\H");E(we,N,Cn,"◯","\\textcircled");var Ex={"--":!0,"---":!0,"``":!0,"''":!0};E(we,N,X,"–","--",!0);E(we,N,X,"–","\\textendash");E(we,N,X,"—","---",!0);E(we,N,X,"—","\\textemdash");E(we,N,X,"‘","`",!0);E(we,N,X,"‘","\\textquoteleft");E(we,N,X,"’","'",!0);E(we,N,X,"’","\\textquoteright");E(we,N,X,"“","``",!0);E(we,N,X,"“","\\textquotedblleft");E(we,N,X,"”","''",!0);E(we,N,X,"”","\\textquotedblright");E(S,N,X,"°","\\degree",!0);E(we,N,X,"°","\\degree");E(we,N,X,"°","\\textdegree",!0);E(S,N,X,"£","\\pounds");E(S,N,X,"£","\\mathsterling",!0);E(we,N,X,"£","\\pounds");E(we,N,X,"£","\\textsterling",!0);E(S,F,X,"✠","\\maltese");E(we,F,X,"✠","\\maltese");var i6='0123456789/@."';for(var ag=0;ag<i6.length;ag++){var s6=i6.charAt(ag);E(S,N,X,s6,s6)}var l6='0123456789!@*()-=+";:?/.,';for(var ig=0;ig<l6.length;ig++){var o6=l6.charAt(ig);E(we,N,X,o6,o6)}var hf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var sg=0;sg<hf.length;sg++){var _h=hf.charAt(sg);E(S,N,lt,_h,_h),E(we,N,X,_h,_h)}E(S,F,X,"C","ℂ");E(we,F,X,"C","ℂ");E(S,F,X,"H","ℍ");E(we,F,X,"H","ℍ");E(S,F,X,"N","ℕ");E(we,F,X,"N","ℕ");E(S,F,X,"P","ℙ");E(we,F,X,"P","ℙ");E(S,F,X,"Q","ℚ");E(we,F,X,"Q","ℚ");E(S,F,X,"R","ℝ");E(we,F,X,"R","ℝ");E(S,F,X,"Z","ℤ");E(we,F,X,"Z","ℤ");E(S,N,lt,"h","ℎ");E(we,N,lt,"h","ℎ");var pt="";for(var Lr=0;Lr<hf.length;Lr++){var Un=hf.charAt(Lr);pt=String.fromCharCode(55349,56320+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56372+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56424+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56580+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56684+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56736+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56788+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56840+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56944+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),Lr<26&&(pt=String.fromCharCode(55349,56632+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt),pt=String.fromCharCode(55349,56476+Lr),E(S,N,lt,Un,pt),E(we,N,X,Un,pt))}pt="𝕜";E(S,N,lt,"k",pt);E(we,N,X,"k",pt);for(var Pl=0;Pl<10;Pl++){var qs=Pl.toString();pt=String.fromCharCode(55349,57294+Pl),E(S,N,lt,qs,pt),E(we,N,X,qs,pt),pt=String.fromCharCode(55349,57314+Pl),E(S,N,lt,qs,pt),E(we,N,X,qs,pt),pt=String.fromCharCode(55349,57324+Pl),E(S,N,lt,qs,pt),E(we,N,X,qs,pt),pt=String.fromCharCode(55349,57334+Pl),E(S,N,lt,qs,pt),E(we,N,X,qs,pt)}var _b="ÐÞþ";for(var lg=0;lg<_b.length;lg++){var Eh=_b.charAt(lg);E(S,N,lt,Eh,Eh),E(we,N,X,Eh,Eh)}var Th=[["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"]],u6=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],pj=function(t,n){var r=t.charCodeAt(0),a=t.charCodeAt(1),s=(r-55296)*1024+(a-56320)+65536,o=n==="math"?0:1;if(119808<=s&&s<120484){var c=Math.floor((s-119808)/26);return[Th[c][2],Th[c][o]]}else if(120782<=s&&s<=120831){var d=Math.floor((s-120782)/10);return[u6[d][2],u6[d][o]]}else{if(s===120485||s===120486)return[Th[0][2],Th[0][o]];if(120486<s&&s<120782)return["",""];throw new Ne("Unsupported character: "+t)}},tm=function(t,n,r){return pn[r][t]&&pn[r][t].replace&&(t=pn[r][t].replace),{value:t,metrics:z2(t,n,r)}},Ka=function(t,n,r,a,s){var o=tm(t,n,r),c=o.metrics;t=o.value;var d;if(c){var f=c.italic;(r==="text"||a&&a.font==="mathit")&&(f=0),d=new Ua(t,c.height,c.depth,f,c.skew,c.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),d=new Ua(t,0,0,0,0,0,s);if(a){d.maxFontSize=a.sizeMultiplier,a.style.isTight()&&d.classes.push("mtight");var m=a.getColor();m&&(d.style.color=m)}return d},gj=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&tm(t,"Main-Bold",n).metrics?Ka(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||pn[n][t].font==="main"?Ka(t,"Main-Regular",n,r,a):Ka(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},bj=function(t,n,r,a,s){return s!=="textord"&&tm(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},vj=function(t,n,r){var a=t.mode,s=t.text,o=["mord"],c=a==="math"||a==="text"&&n.font,d=c?n.font:n.fontFamily,f="",m="";if(s.charCodeAt(0)===55349&&([f,m]=pj(s,a)),f.length>0)return Ka(s,f,a,n,o.concat(m));if(d){var p,b;if(d==="boldsymbol"){var y=bj(s,a,n,o,r);p=y.fontName,b=[y.fontClass]}else c?(p=Sx[d].fontName,b=[d]):(p=xh(d,n.fontWeight,n.fontShape),b=[d,n.fontWeight,n.fontShape]);if(tm(s,p,a).metrics)return Ka(s,p,a,n,o.concat(b));if(Ex.hasOwnProperty(s)&&p.slice(0,10)==="Typewriter"){for(var T=[],x=0;x<s.length;x++)T.push(Ka(s[x],p,a,n,o.concat(b)));return xx(T)}}if(r==="mathord")return Ka(s,"Math-Italic",a,n,o.concat(["mathnormal"]));if(r==="textord"){var C=pn[a][s]&&pn[a][s].font;if(C==="ams"){var w=xh("amsrm",n.fontWeight,n.fontShape);return Ka(s,w,a,n,o.concat("amsrm",n.fontWeight,n.fontShape))}else if(C==="main"||!C){var O=xh("textrm",n.fontWeight,n.fontShape);return Ka(s,O,a,n,o.concat(n.fontWeight,n.fontShape))}else{var D=xh(C,n.fontWeight,n.fontShape);return Ka(s,D,a,n,o.concat(D,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},yj=(e,t)=>{if(il(e.classes)!==il(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 a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},_j=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Ua&&r instanceof Ua&&yj(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},q2=function(t){for(var n=0,r=0,a=0,s=0;s<t.children.length;s++){var o=t.children[s];o.height>n&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>a&&(a=o.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},Jr=function(t,n,r,a){var s=new z0(t,n,r,a);return q2(s),s},Tx=(e,t,n,r)=>new z0(e,t,n,r),Ej=function(t,n,r){var a=Jr([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=Pe(a.height),a.maxFontSize=1,a},Tj=function(t,n,r,a){var s=new H2(t,n,r,a);return q2(s),s},xx=function(t){var n=new F0(t);return q2(n),n},xj=function(t,n){return t instanceof F0?Jr([],[t],n):t},Sj=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,s=a,o=1;o<n.length;o++){var c=-n[o].shift-s-n[o].elem.depth,d=c-(n[o-1].elem.height+n[o-1].elem.depth);s=s+c,r.push({type:"kern",size:d}),r.push(n[o])}return{children:r,depth:a}}var f;if(t.positionType==="top"){for(var m=t.positionData,p=0;p<t.children.length;p++){var b=t.children[p];m-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}f=m}else if(t.positionType==="bottom")f=-t.positionData;else{var y=t.children[0];if(y.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")f=-y.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")f=-y.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:f}},wj=function(t,n){for(var{children:r,depth:a}=Sj(t),s=0,o=0;o<r.length;o++){var c=r[o];if(c.type==="elem"){var d=c.elem;s=Math.max(s,d.maxFontSize,d.height)}}s+=2;var f=Jr(["pstrut"],[]);f.style.height=Pe(s);for(var m=[],p=a,b=a,y=a,T=0;T<r.length;T++){var x=r[T];if(x.type==="kern")y+=x.size;else{var C=x.elem,w=x.wrapperClasses||[],O=x.wrapperStyle||{},D=Jr(w,[f,C],void 0,O);D.style.top=Pe(-s-y-C.depth),x.marginLeft&&(D.style.marginLeft=x.marginLeft),x.marginRight&&(D.style.marginRight=x.marginRight),m.push(D),y+=C.height+C.depth}p=Math.min(p,y),b=Math.max(b,y)}var j=Jr(["vlist"],m);j.style.height=Pe(b);var z;if(p<0){var U=Jr([],[]),ee=Jr(["vlist"],[U]);ee.style.height=Pe(-p);var Z=Jr(["vlist-s"],[new Ua("")]);z=[Jr(["vlist-r"],[j,Z]),Jr(["vlist-r"],[ee])]}else z=[Jr(["vlist-r"],[j])];var Q=Jr(["vlist-t"],z);return z.length===2&&Q.classes.push("vlist-t2"),Q.height=b,Q.depth=-p,Q},Aj=(e,t)=>{var n=Jr(["mspace"],[],t),r=Ln(e,t);return n.style.marginRight=Pe(r),n},xh=function(t,n,r){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var s;return n==="textbf"&&r==="textit"?s="BoldItalic":n==="textbf"?s="Bold":n==="textit"?s="Italic":s="Regular",a+"-"+s},Sx={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"}},wx={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},kj=function(t,n){var[r,a,s]=wx[t],o=new sl(r),c=new as([o],{width:Pe(a),height:Pe(s),style:"width:"+Pe(a),viewBox:"0 0 "+1e3*a+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),d=Tx(["overlay"],[c],n);return d.height=s,d.style.height=Pe(s),d.style.width=Pe(a),d},ie={fontMap:Sx,makeSymbol:Ka,mathsym:gj,makeSpan:Jr,makeSvgSpan:Tx,makeLineSpan:Ej,makeAnchor:Tj,makeFragment:xx,wrapFragment:xj,makeVList:wj,makeOrd:vj,makeGlue:Aj,staticSvg:kj,svgData:wx,tryCombineChars:_j},In={number:3,unit:"mu"},Bl={number:4,unit:"mu"},ji={number:5,unit:"mu"},Cj={mord:{mop:In,mbin:Bl,mrel:ji,minner:In},mop:{mord:In,mop:In,mrel:ji,minner:In},mbin:{mord:Bl,mop:Bl,mopen:Bl,minner:Bl},mrel:{mord:ji,mop:ji,mopen:ji,minner:ji},mopen:{},mclose:{mop:In,mbin:Bl,mrel:ji,minner:In},mpunct:{mord:In,mop:In,mrel:ji,mopen:In,mclose:In,mpunct:In,minner:In},minner:{mord:In,mop:In,mbin:Bl,mrel:ji,mopen:In,mpunct:In,minner:In}},Nj={mord:{mop:In},mop:{mord:In,mop:In},mbin:{},mrel:{},mopen:{},mclose:{mop:In},mpunct:{},minner:{mop:In}},Ax={},ff={},mf={};function $e(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:s,mathmlBuilder:o}=e,c={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:a},d=0;d<n.length;++d)Ax[n[d]]=c;t&&(s&&(ff[t]=s),o&&(mf[t]=o))}function to(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;$e({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var pf=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},$n=function(t){return t.type==="ordgroup"?t.body:[t]},is=ie.makeSpan,Oj=["leftmost","mbin","mopen","mrel","mop","mpunct"],Rj=["rightmost","mrel","mclose","mpunct"],Mj={display:ot.DISPLAY,text:ot.TEXT,script:ot.SCRIPT,scriptscript:ot.SCRIPTSCRIPT},Ij={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},sr=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var s=[],o=0;o<t.length;o++){var c=Ht(t[o],n);if(c instanceof F0){var d=c.children;s.push(...d)}else s.push(c)}if(ie.tryCombineChars(s),!r)return s;var f=n;if(t.length===1){var m=t[0];m.type==="sizing"?f=n.havingSize(m.size):m.type==="styling"&&(f=n.havingStyle(Mj[m.style]))}var p=is([a[0]||"leftmost"],[],n),b=is([a[1]||"rightmost"],[],n),y=r==="root";return c6(s,(T,x)=>{var C=x.classes[0],w=T.classes[0];C==="mbin"&&st.contains(Rj,w)?x.classes[0]="mord":w==="mbin"&&st.contains(Oj,C)&&(T.classes[0]="mord")},{node:p},b,y),c6(s,(T,x)=>{var C=Eb(x),w=Eb(T),O=C&&w?T.hasClass("mtight")?Nj[C][w]:Cj[C][w]:null;if(O)return ie.makeGlue(O,f)},{node:p},b,y),s},c6=function e(t,n,r,a,s){a&&t.push(a);for(var o=0;o<t.length;o++){var c=t[o],d=kx(c);if(d){e(d.children,n,r,null,s);continue}var f=!c.hasClass("mspace");if(f){var m=n(c,r.node);m&&(r.insertAfter?r.insertAfter(m):(t.unshift(m),o++))}f?r.node=c:s&&c.hasClass("newline")&&(r.node=is(["leftmost"])),r.insertAfter=(p=>b=>{t.splice(p+1,0,b),o++})(o)}a&&t.pop()},kx=function(t){return t instanceof F0||t instanceof H2||t instanceof z0&&t.hasClass("enclosing")?t:null},Dj=function e(t,n){var r=kx(t);if(r){var a=r.children;if(a.length){if(n==="right")return e(a[a.length-1],"right");if(n==="left")return e(a[0],"left")}}return t},Eb=function(t,n){return t?(n&&(t=Dj(t,n)),Ij[t.classes[0]]||null):null},b0=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return is(n.concat(r))},Ht=function(t,n,r){if(!t)return is();if(ff[t.type]){var a=ff[t.type](t,n);if(r&&n.size!==r.size){a=is(n.sizingClasses(r),[a],n);var s=n.sizeMultiplier/r.sizeMultiplier;a.height*=s,a.depth*=s}return a}else throw new Ne("Got group of unknown type: '"+t.type+"'")};function Sh(e,t){var n=is(["base"],e,t),r=is(["strut"]);return r.style.height=Pe(n.height+n.depth),n.depth&&(r.style.verticalAlign=Pe(-n.depth)),n.children.unshift(r),n}function Tb(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=sr(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var s=[],o=[],c=0;c<r.length;c++)if(o.push(r[c]),r[c].hasClass("mbin")||r[c].hasClass("mrel")||r[c].hasClass("allowbreak")){for(var d=!1;c<r.length-1&&r[c+1].hasClass("mspace")&&!r[c+1].hasClass("newline");)c++,o.push(r[c]),r[c].hasClass("nobreak")&&(d=!0);d||(s.push(Sh(o,t)),o=[])}else r[c].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(Sh(o,t)),o=[]),s.push(r[c]));o.length>0&&s.push(Sh(o,t));var f;n?(f=Sh(sr(n,t,!0)),f.classes=["tag"],s.push(f)):a&&s.push(a);var m=is(["katex-html"],s);if(m.setAttribute("aria-hidden","true"),f){var p=f.children[0];p.style.height=Pe(m.height+m.depth),m.depth&&(p.style.verticalAlign=Pe(-m.depth))}return m}function Cx(e){return new F0(e)}class va{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=il(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof fi&&this.children[r+1]instanceof fi){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof fi;)a+=this.children[++r].toText();t.appendChild(new fi(a).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+=st.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+st.escape(il(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 fi{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return st.escape(this.toText())}toText(){return this.text}}class Lj{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",Pe(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Pe(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Ce={MathNode:va,TextNode:fi,SpaceNode:Lj,newDocumentFragment:Cx},Fa=function(t,n,r){return pn[n][t]&&pn[n][t].replace&&t.charCodeAt(0)!==55349&&!(Ex.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=pn[n][t].replace),new Ce.TextNode(t)},j2=function(t){return t.length===1?t[0]:new Ce.MathNode("mrow",t)},$2=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 a=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 s=t.text;if(st.contains(["\\imath","\\jmath"],s))return null;pn[a][s]&&pn[a][s].replace&&(s=pn[a][s].replace);var o=ie.fontMap[r].fontName;return z2(s,o,a)?ie.fontMap[r].variant:null};function og(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof fi&&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 fi&&n.text===","}else return!1}var aa=function(t,n,r){if(t.length===1){var a=on(t[0],n);return r&&a instanceof va&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var s=[],o,c=0;c<t.length;c++){var d=on(t[c],n);if(d instanceof va&&o instanceof va){if(d.type==="mtext"&&o.type==="mtext"&&d.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...d.children);continue}else if(d.type==="mn"&&o.type==="mn"){o.children.push(...d.children);continue}else if(og(d)&&o.type==="mn"){o.children.push(...d.children);continue}else if(d.type==="mn"&&og(o))d.children=[...o.children,...d.children],s.pop();else if((d.type==="msup"||d.type==="msub")&&d.children.length>=1&&(o.type==="mn"||og(o))){var f=d.children[0];f instanceof va&&f.type==="mn"&&(f.children=[...o.children,...f.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var m=o.children[0];if(m instanceof fi&&m.text==="̸"&&(d.type==="mo"||d.type==="mi"||d.type==="mn")){var p=d.children[0];p instanceof fi&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),s.pop())}}}s.push(d),o=d}return s},ll=function(t,n,r){return j2(aa(t,n,r))},on=function(t,n){if(!t)return new Ce.MathNode("mrow");if(mf[t.type]){var r=mf[t.type](t,n);return r}else throw new Ne("Got group of unknown type: '"+t.type+"'")};function d6(e,t,n,r,a){var s=aa(e,n),o;s.length===1&&s[0]instanceof va&&st.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new Ce.MathNode("mrow",s);var c=new Ce.MathNode("annotation",[new Ce.TextNode(t)]);c.setAttribute("encoding","application/x-tex");var d=new Ce.MathNode("semantics",[o,c]),f=new Ce.MathNode("math",[d]);f.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&f.setAttribute("display","block");var m=a?"katex":"katex-mathml";return ie.makeSpan([m],[f])}var Nx=function(t){return new Ki({style:t.displayMode?ot.DISPLAY:ot.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Ox=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},Pj=function(t,n,r){var a=Nx(r),s;if(r.output==="mathml")return d6(t,n,a,r.displayMode,!0);if(r.output==="html"){var o=Tb(t,a);s=ie.makeSpan(["katex"],[o])}else{var c=d6(t,n,a,r.displayMode,!1),d=Tb(t,a);s=ie.makeSpan(["katex"],[c,d])}return Ox(s,r)},Bj=function(t,n,r){var a=Nx(r),s=Tb(t,a),o=ie.makeSpan(["katex"],[s]);return Ox(o,r)},Uj={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":"="},Fj=function(t){var n=new Ce.MathNode("mo",[new Ce.TextNode(Uj[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},zj={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]},Hj=function(t){return t.type==="ordgroup"?t.body.length:1},qj=function(t,n){function r(){var c=4e5,d=t.label.slice(1);if(st.contains(["widehat","widecheck","widetilde","utilde"],d)){var f=t,m=Hj(f.base),p,b,y;if(m>5)d==="widehat"||d==="widecheck"?(p=420,c=2364,y=.42,b=d+"4"):(p=312,c=2340,y=.34,b="tilde4");else{var T=[1,1,2,2,3,3][m];d==="widehat"||d==="widecheck"?(c=[0,1062,2364,2364,2364][T],p=[0,239,300,360,420][T],y=[0,.24,.3,.3,.36,.42][T],b=d+T):(c=[0,600,1033,2339,2340][T],p=[0,260,286,306,312][T],y=[0,.26,.286,.3,.306,.34][T],b="tilde"+T)}var x=new sl(b),C=new as([x],{width:"100%",height:Pe(y),viewBox:"0 0 "+c+" "+p,preserveAspectRatio:"none"});return{span:ie.makeSvgSpan([],[C],n),minWidth:0,height:y}}else{var w=[],O=zj[d],[D,j,z]=O,U=z/1e3,ee=D.length,Z,Q;if(ee===1){var G=O[3];Z=["hide-tail"],Q=[G]}else if(ee===2)Z=["halfarrow-left","halfarrow-right"],Q=["xMinYMin","xMaxYMin"];else if(ee===3)Z=["brace-left","brace-center","brace-right"],Q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
380
|
-
`+ee+" children.");for(var se=0;se<ee;se++){var de=new sl(D[se]),ve=new as([de],{width:"400em",height:Pe(U),viewBox:"0 0 "+c+" "+z,preserveAspectRatio:Q[se]+" slice"}),oe=ie.makeSvgSpan([Z[se]],[ve],n);if(ee===1)return{span:oe,minWidth:j,height:U};oe.style.height=Pe(U),w.push(oe)}return{span:ie.makeSpan(["stretchy"],w,n),minWidth:j,height:U}}}var{span:a,minWidth:s,height:o}=r();return a.height=o,a.style.height=Pe(o),s>0&&(a.style.minWidth=Pe(s)),a},jj=function(t,n,r,a,s){var o,c=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(o=ie.makeSpan(["stretchy",n],[],s),n==="fbox"){var d=s.color&&s.getColor();d&&(o.style.borderColor=d)}}else{var f=[];/^[bx]cancel$/.test(n)&&f.push(new yb({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&f.push(new yb({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new as(f,{width:"100%",height:Pe(c)});o=ie.makeSvgSpan([],[m],s)}return o.height=c,o.style.height=Pe(c),o},ss={encloseSpan:jj,mathMLnode:Fj,svgSpan:qj};function At(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 Y2(e){var t=nm(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 nm(e){return e&&(e.type==="atom"||mj.hasOwnProperty(e.type))?e:null}var G2=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=At(e.base,"accent"),n=r.base,e.base=n,a=hj(Ht(e,t)),e.base=r):(r=At(e,"accent"),n=r.base);var s=Ht(n,t.havingCrampedStyle()),o=r.isShifty&&st.isCharacterBox(n),c=0;if(o){var d=st.getBaseElem(n),f=Ht(d,t.havingCrampedStyle());c=a6(f).skew}var m=r.label==="\\c",p=m?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),b;if(r.isStretchy)b=ss.svgSpan(r,t),b=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+Pe(2*c)+")",marginLeft:Pe(2*c)}:void 0}]},t);else{var y,T;r.label==="\\vec"?(y=ie.staticSvg("vec",t),T=ie.svgData.vec[1]):(y=ie.makeOrd({mode:r.mode,text:r.label},t,"textord"),y=a6(y),y.italic=0,T=y.width,m&&(p+=y.depth)),b=ie.makeSpan(["accent-body"],[y]);var x=r.label==="\\textcircled";x&&(b.classes.push("accent-full"),p=s.height);var C=c;x||(C-=T/2),b.style.left=Pe(C),r.label==="\\textcircled"&&(b.style.top=".2em"),b=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-p},{type:"elem",elem:b}]},t)}var w=ie.makeSpan(["mord","accent"],[b],t);return a?(a.children[0]=w,a.height=Math.max(w.height,a.height),a.classes[0]="mord",a):w},Rx=(e,t)=>{var n=e.isStretchy?ss.mathMLnode(e.label):new Ce.MathNode("mo",[Fa(e.label,e.mode)]),r=new Ce.MathNode("mover",[on(e.base,t),n]);return r.setAttribute("accent","true"),r},$j=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));$e({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=pf(t[0]),r=!$j.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:G2,mathmlBuilder:Rx});$e({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:G2,mathmlBuilder:Rx});$e({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=Ht(e.base,t),r=ss.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,s=ie.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]},t);return ie.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=ss.mathMLnode(e.label),r=new Ce.MathNode("munder",[on(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var wh=e=>{var t=new Ce.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};$e({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:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=ie.wrapFragment(Ht(e.body,r,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(s+"-arrow-pad");var o;e.below&&(r=t.havingStyle(n.sub()),o=ie.wrapFragment(Ht(e.below,r,t),t),o.classes.push(s+"-arrow-pad"));var c=ss.svgSpan(e,t),d=-t.fontMetrics().axisHeight+.5*c.height,f=-t.fontMetrics().axisHeight-.5*c.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(f-=a.depth);var m;if(o){var p=-t.fontMetrics().axisHeight+o.height+.5*c.height+.111;m=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:f},{type:"elem",elem:c,shift:d},{type:"elem",elem:o,shift:p}]},t)}else m=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:f},{type:"elem",elem:c,shift:d}]},t);return m.children[0].children[0].children[1].classes.push("svg-align"),ie.makeSpan(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var n=ss.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=wh(on(e.body,t));if(e.below){var s=wh(on(e.below,t));r=new Ce.MathNode("munderover",[n,s,a])}else r=new Ce.MathNode("mover",[n,a])}else if(e.below){var o=wh(on(e.below,t));r=new Ce.MathNode("munder",[n,o])}else r=wh(),r=new Ce.MathNode("mover",[n,r]);return r}});var Yj=ie.makeSpan;function Mx(e,t){var n=sr(e.body,t,!0);return Yj([e.mclass],n,t)}function Ix(e,t){var n,r=aa(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}$e({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:$n(a),isCharacterBox:st.isCharacterBox(a)}},htmlBuilder:Mx,mathmlBuilder:Ix});var rm=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"};$e({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:rm(t[0]),body:$n(t[1]),isCharacterBox:st.isCharacterBox(t[1])}}});$e({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],s=t[0],o;r!=="\\stackrel"?o=rm(a):o="mrel";var c={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:$n(a)},d={type:"supsub",mode:s.mode,base:c,sup:r==="\\underset"?null:s,sub:r==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:o,body:[d],isCharacterBox:st.isCharacterBox(d)}},htmlBuilder:Mx,mathmlBuilder:Ix});$e({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:rm(t[0]),body:$n(t[0])}},htmlBuilder(e,t){var n=sr(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=aa(e.body,t),r=new Ce.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Gj={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},h6=()=>({type:"styling",body:[],mode:"math",style:"display"}),f6=e=>e.type==="textord"&&e.text==="@",Vj=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Kj(e,t,n){var r=Gj[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[s],[]),c=n.callFunction("\\\\cdright",[t[1]],[]),d={type:"ordgroup",mode:"math",body:[a,o,c]};return n.callFunction("\\\\cdparent",[d],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var f={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[f],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Wj(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 Ne("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],s=0;s<t.length;s++){for(var o=t[s],c=h6(),d=0;d<o.length;d++)if(!f6(o[d]))c.body.push(o[d]);else{r.push(c),d+=1;var f=Y2(o[d]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(f)>-1))if("<>AV".indexOf(f)>-1)for(var p=0;p<2;p++){for(var b=!0,y=d+1;y<o.length;y++){if(Vj(o[y],f)){b=!1,d=y;break}if(f6(o[y]))throw new Ne("Missing a "+f+" character to complete a CD arrow.",o[y]);m[p].body.push(o[y])}if(b)throw new Ne("Missing a "+f+" character to complete a CD arrow.",o[d])}else throw new Ne('Expected one of "<>AV=|." after @',o[d]);var T=Kj(f,m,e),x={type:"styling",body:[T],mode:"math",style:"display"};r.push(x),c=h6()}s%2===0?r.push(c):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}$e({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(Ht(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Pe(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Ce.MathNode("mrow",[on(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}});$e({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(Ht(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ce.MathNode("mrow",[on(e.fragment,t)])}});$e({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=At(t[0],"ordgroup"),a=r.body,s="",o=0;o<a.length;o++){var c=At(a[o],"textord");s+=c.text}var d=parseInt(s),f;if(isNaN(d))throw new Ne("\\@char has non-numeric argument "+s);if(d<0||d>=1114111)throw new Ne("\\@char with invalid code point "+s);return d<=65535?f=String.fromCharCode(d):(d-=65536,f=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:n.mode,text:f}}});var Dx=(e,t)=>{var n=sr(e.body,t.withColor(e.color),!1);return ie.makeFragment(n)},Lx=(e,t)=>{var n=aa(e.body,t.withColor(e.color)),r=new Ce.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};$e({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=At(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:$n(a)}},htmlBuilder:Dx,mathmlBuilder:Lx});$e({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=At(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var s=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:s}},htmlBuilder:Dx,mathmlBuilder:Lx});$e({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:s,size:a&&At(a,"size").value}},htmlBuilder(e,t){var n=ie.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Pe(Ln(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",Pe(Ln(e.size,t)))),n}});var xb={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Px=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ne("Expected a control sequence",e);return t},Xj=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Bx=(e,t,n,r)=>{var a=e.gullet.macros.get(n.text);a==null&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,r)};$e({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(xb[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=xb[r.text]),At(t.parseFunction(),"internal");throw new Ne("Invalid token after macro prefix",r)}});$e({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(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Ne("Expected a control sequence",r);for(var s=0,o,c=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),c[s].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ne('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new Ne('Argument number "'+r.text+'" out of order');s++,c.push([])}else{if(r.text==="EOF")throw new Ne("Expected a macro definition");c[s].push(r.text)}var{tokens:d}=t.gullet.consumeArg();return o&&d.unshift(o),(n==="\\edef"||n==="\\xdef")&&(d=t.gullet.expandTokens(d),d.reverse()),t.gullet.macros.set(a,{tokens:d,numArgs:s,delimiters:c},n===xb[n]),{type:"internal",mode:t.mode}}});$e({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Px(t.gullet.popToken());t.gullet.consumeSpaces();var a=Xj(t);return Bx(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});$e({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Px(t.gullet.popToken()),a=t.gullet.popToken(),s=t.gullet.popToken();return Bx(t,r,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var jc=function(t,n,r){var a=pn.math[t]&&pn.math[t].replace,s=z2(a||t,n,r);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},V2=function(t,n,r,a){var s=r.havingBaseStyle(n),o=ie.makeSpan(a.concat(s.sizingClasses(r)),[t],r),c=s.sizeMultiplier/r.sizeMultiplier;return o.height*=c,o.depth*=c,o.maxFontSize=s.sizeMultiplier,o},Ux=function(t,n,r){var a=n.havingBaseStyle(r),s=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Pe(s),t.height-=s,t.depth+=s},Qj=function(t,n,r,a,s,o){var c=ie.makeSymbol(t,"Main-Regular",s,a),d=V2(c,n,a,o);return r&&Ux(d,a,n),d},Zj=function(t,n,r,a){return ie.makeSymbol(t,"Size"+n+"-Regular",r,a)},Fx=function(t,n,r,a,s,o){var c=Zj(t,n,s,a),d=V2(ie.makeSpan(["delimsizing","size"+n],[c],a),ot.TEXT,a,o);return r&&Ux(d,a,ot.TEXT),d},ug=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var s=ie.makeSpan(["delimsizinginner",a],[ie.makeSpan([],[ie.makeSymbol(t,n,r)])]);return{type:"elem",elem:s}},cg=function(t,n,r){var a=hi["Size4-Regular"][t.charCodeAt(0)]?hi["Size4-Regular"][t.charCodeAt(0)][4]:hi["Size1-Regular"][t.charCodeAt(0)][4],s=new sl("inner",rj(t,Math.round(1e3*n))),o=new as([s],{width:Pe(a),height:Pe(n),style:"width:"+Pe(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),c=ie.makeSvgSpan([],[o],r);return c.height=n,c.style.height=Pe(n),c.style.width=Pe(a),{type:"elem",elem:c}},Sb=.008,Ah={type:"kern",size:-1*Sb},Jj=["|","\\lvert","\\rvert","\\vert"],e$=["\\|","\\lVert","\\rVert","\\Vert"],zx=function(t,n,r,a,s,o){var c,d,f,m,p="",b=0;c=f=m=t,d=null;var y="Size1-Regular";t==="\\uparrow"?f=m="⏐":t==="\\Uparrow"?f=m="‖":t==="\\downarrow"?c=f="⏐":t==="\\Downarrow"?c=f="‖":t==="\\updownarrow"?(c="\\uparrow",f="⏐",m="\\downarrow"):t==="\\Updownarrow"?(c="\\Uparrow",f="‖",m="\\Downarrow"):st.contains(Jj,t)?(f="∣",p="vert",b=333):st.contains(e$,t)?(f="∥",p="doublevert",b=556):t==="["||t==="\\lbrack"?(c="⎡",f="⎢",m="⎣",y="Size4-Regular",p="lbrack",b=667):t==="]"||t==="\\rbrack"?(c="⎤",f="⎥",m="⎦",y="Size4-Regular",p="rbrack",b=667):t==="\\lfloor"||t==="⌊"?(f=c="⎢",m="⎣",y="Size4-Regular",p="lfloor",b=667):t==="\\lceil"||t==="⌈"?(c="⎡",f=m="⎢",y="Size4-Regular",p="lceil",b=667):t==="\\rfloor"||t==="⌋"?(f=c="⎥",m="⎦",y="Size4-Regular",p="rfloor",b=667):t==="\\rceil"||t==="⌉"?(c="⎤",f=m="⎥",y="Size4-Regular",p="rceil",b=667):t==="("||t==="\\lparen"?(c="⎛",f="⎜",m="⎝",y="Size4-Regular",p="lparen",b=875):t===")"||t==="\\rparen"?(c="⎞",f="⎟",m="⎠",y="Size4-Regular",p="rparen",b=875):t==="\\{"||t==="\\lbrace"?(c="⎧",d="⎨",m="⎩",f="⎪",y="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(c="⎫",d="⎬",m="⎭",f="⎪",y="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(c="⎧",m="⎩",f="⎪",y="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(c="⎫",m="⎭",f="⎪",y="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(c="⎧",m="⎭",f="⎪",y="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(c="⎫",m="⎩",f="⎪",y="Size4-Regular");var T=jc(c,y,s),x=T.height+T.depth,C=jc(f,y,s),w=C.height+C.depth,O=jc(m,y,s),D=O.height+O.depth,j=0,z=1;if(d!==null){var U=jc(d,y,s);j=U.height+U.depth,z=2}var ee=x+D+j,Z=Math.max(0,Math.ceil((n-ee)/(z*w))),Q=ee+Z*z*w,G=a.fontMetrics().axisHeight;r&&(G*=a.sizeMultiplier);var se=Q/2-G,de=[];if(p.length>0){var ve=Q-x-D,oe=Math.round(Q*1e3),ye=aj(p,Math.round(ve*1e3)),V=new sl(p,ye),ue=(b/1e3).toFixed(3)+"em",me=(oe/1e3).toFixed(3)+"em",De=new as([V],{width:ue,height:me,viewBox:"0 0 "+b+" "+oe}),A=ie.makeSvgSpan([],[De],a);A.height=oe/1e3,A.style.width=ue,A.style.height=me,de.push({type:"elem",elem:A})}else{if(de.push(ug(m,y,s)),de.push(Ah),d===null){var ne=Q-x-D+2*Sb;de.push(cg(f,ne,a))}else{var pe=(Q-x-D-j)/2+2*Sb;de.push(cg(f,pe,a)),de.push(Ah),de.push(ug(d,y,s)),de.push(Ah),de.push(cg(f,pe,a))}de.push(Ah),de.push(ug(c,y,s))}var L=a.havingBaseStyle(ot.TEXT),Oe=ie.makeVList({positionType:"bottom",positionData:se,children:de},L);return V2(ie.makeSpan(["delimsizing","mult"],[Oe],L),ot.TEXT,a,o)},dg=80,hg=.08,fg=function(t,n,r,a,s){var o=nj(t,a,r),c=new sl(t,o),d=new as([c],{width:"400em",height:Pe(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ie.makeSvgSpan(["hide-tail"],[d],s)},t$=function(t,n){var r=n.havingBaseSizing(),a=$x("\\surd",t*r.sizeMultiplier,jx,r),s=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),c,d=0,f=0,m=0,p;return a.type==="small"?(m=1e3+1e3*o+dg,t<1?s=1:t<1.4&&(s=.7),d=(1+o+hg)/s,f=(1+o)/s,c=fg("sqrtMain",d,m,o,n),c.style.minWidth="0.853em",p=.833/s):a.type==="large"?(m=(1e3+dg)*l0[a.size],f=(l0[a.size]+o)/s,d=(l0[a.size]+o+hg)/s,c=fg("sqrtSize"+a.size,d,m,o,n),c.style.minWidth="1.02em",p=1/s):(d=t+o+hg,f=t+o,m=Math.floor(1e3*t+o)+dg,c=fg("sqrtTall",d,m,o,n),c.style.minWidth="0.742em",p=1.056),c.height=f,c.style.height=Pe(d),{span:c,advanceWidth:p,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*s}},Hx=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],n$=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],qx=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],l0=[0,1.2,1.8,2.4,3],r$=function(t,n,r,a,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),st.contains(Hx,t)||st.contains(qx,t))return Fx(t,n,!1,r,a,s);if(st.contains(n$,t))return zx(t,l0[n],!1,r,a,s);throw new Ne("Illegal delimiter: '"+t+"'")},a$=[{type:"small",style:ot.SCRIPTSCRIPT},{type:"small",style:ot.SCRIPT},{type:"small",style:ot.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],i$=[{type:"small",style:ot.SCRIPTSCRIPT},{type:"small",style:ot.SCRIPT},{type:"small",style:ot.TEXT},{type:"stack"}],jx=[{type:"small",style:ot.SCRIPTSCRIPT},{type:"small",style:ot.SCRIPT},{type:"small",style:ot.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],s$=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.")},$x=function(t,n,r,a){for(var s=Math.min(2,3-a.style.size),o=s;o<r.length&&r[o].type!=="stack";o++){var c=jc(t,s$(r[o]),"math"),d=c.height+c.depth;if(r[o].type==="small"){var f=a.havingBaseStyle(r[o].style);d*=f.sizeMultiplier}if(d>n)return r[o]}return r[r.length-1]},Yx=function(t,n,r,a,s,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var c;st.contains(qx,t)?c=a$:st.contains(Hx,t)?c=jx:c=i$;var d=$x(t,n,c,a);return d.type==="small"?Qj(t,d.style,r,a,s,o):d.type==="large"?Fx(t,d.size,r,a,s,o):zx(t,n,r,a,s,o)},l$=function(t,n,r,a,s,o){var c=a.fontMetrics().axisHeight*a.sizeMultiplier,d=901,f=5/a.fontMetrics().ptPerEm,m=Math.max(n-c,r+c),p=Math.max(m/500*d,2*m-f);return Yx(t,p,!0,a,s,o)},ts={sqrtImage:t$,sizedDelim:r$,sizeToMaxHeight:l0,customSizedDelim:Yx,leftRightDelim:l$},m6={"\\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}},o$=["(","\\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 am(e,t){var n=nm(e);if(n&&st.contains(o$,n.text))return n;throw n?new Ne("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ne("Invalid delimiter type '"+e.type+"'",e)}$e({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=am(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:m6[e.funcName].size,mclass:m6[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?ie.makeSpan([e.mclass]):ts.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Fa(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=Pe(ts.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function p6(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}$e({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 Ne("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:am(t[0],e).text,color:n}}});$e({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=am(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var s=At(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{p6(e);for(var n=sr(e.body,t,!0,["mopen","mclose"]),r=0,a=0,s=!1,o=0;o<n.length;o++)n[o].isMiddle?s=!0:(r=Math.max(n[o].height,r),a=Math.max(n[o].depth,a));r*=t.sizeMultiplier,a*=t.sizeMultiplier;var c;if(e.left==="."?c=b0(t,["mopen"]):c=ts.leftRightDelim(e.left,r,a,t,e.mode,["mopen"]),n.unshift(c),s)for(var d=1;d<n.length;d++){var f=n[d],m=f.isMiddle;m&&(n[d]=ts.leftRightDelim(m.delim,r,a,m.options,e.mode,[]))}var p;if(e.right===".")p=b0(t,["mclose"]);else{var b=e.rightColor?t.withColor(e.rightColor):t;p=ts.leftRightDelim(e.right,r,a,b,e.mode,["mclose"])}return n.push(p),ie.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{p6(e);var n=aa(e.body,t);if(e.left!=="."){var r=new Ce.MathNode("mo",[Fa(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new Ce.MathNode("mo",[Fa(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return j2(n)}});$e({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=am(t[0],e);if(!e.parser.leftrightDepth)throw new Ne("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=b0(t,[]);else{n=ts.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==="|"?Fa("|","text"):Fa(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 K2=(e,t)=>{var n=ie.wrapFragment(Ht(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,s,o=0,c=st.isCharacterBox(e.body);if(r==="sout")s=ie.makeSpan(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/a,o=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var d=Ln({number:.6,unit:"pt"},t),f=Ln({number:.35,unit:"ex"},t),m=t.havingBaseSizing();a=a/m.sizeMultiplier;var p=n.height+n.depth+d+f;n.style.paddingLeft=Pe(p/2+d);var b=Math.floor(1e3*p*a),y=ej(b),T=new as([new sl("phase",y)],{width:"400em",height:Pe(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});s=ie.makeSvgSpan(["hide-tail"],[T],t),s.style.height=Pe(p),o=n.depth+d+f}else{/cancel/.test(r)?c||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var x=0,C=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),C=x):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*w,C=Math.max(0,.25-n.depth)):(x=c?.2:0,C=x),s=ss.encloseSpan(n,r,x,C,t),/fbox|boxed|fcolorbox/.test(r)?(s.style.borderStyle="solid",s.style.borderWidth=Pe(w)):r==="angl"&&w!==.049&&(s.style.borderTopWidth=Pe(w),s.style.borderRightWidth=Pe(w)),o=n.depth+C,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var O;if(e.backgroundColor)O=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var D=/cancel|phase/.test(r)?["svg-align"]:[];O=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:D}]},t)}return/cancel/.test(r)&&(O.height=n.height,O.depth=n.depth),/cancel/.test(r)&&!c?ie.makeSpan(["mord","cancel-lap"],[O],t):ie.makeSpan(["mord"],[O],t)},W2=(e,t)=>{var n=0,r=new Ce.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[on(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 a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};$e({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,s=At(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:s,body:o}},htmlBuilder:K2,mathmlBuilder:W2});$e({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,s=At(t[0],"color-token").color,o=At(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:o,borderColor:s,body:c}},htmlBuilder:K2,mathmlBuilder:W2});$e({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]}}});$e({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:K2,mathmlBuilder:W2});$e({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 Gx={};function Ei(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:s,mathmlBuilder:o}=e,c={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},d=0;d<n.length;++d)Gx[n[d]]=c;s&&(ff[t]=s),o&&(mf[t]=o)}var Vx={};function I(e,t){Vx[e]=t}function g6(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 im=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Ne("{"+e.envName+"} can be used only in display mode.")};function X2(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function ul(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:s,arraystretch:o,colSeparationType:c,autoTag:d,singleRow:f,emptySingleRow:m,maxNumCols:p,leqno:b}=t;if(e.gullet.beginGroup(),f||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var y=e.gullet.expandMacroAsText("\\arraystretch");if(y==null)o=1;else if(o=parseFloat(y),!o||o<0)throw new Ne("Invalid \\arraystretch: "+y)}e.gullet.beginGroup();var T=[],x=[T],C=[],w=[],O=d!=null?[]:void 0;function D(){d&&e.gullet.macros.set("\\@eqnsw","1",!0)}function j(){O&&(e.gullet.macros.get("\\df@tag")?(O.push(e.subparse([new Da("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):O.push(!!d&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(D(),w.push(g6(e));;){var z=e.parseExpression(!1,f?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),z={type:"ordgroup",mode:e.mode,body:z},n&&(z={type:"styling",mode:e.mode,style:n,body:[z]}),T.push(z);var U=e.fetch().text;if(U==="&"){if(p&&T.length===p){if(f||c)throw new Ne("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(U==="\\end"){j(),T.length===1&&z.type==="styling"&&z.body[0].body.length===0&&(x.length>1||!m)&&x.pop(),w.length<x.length+1&&w.push([]);break}else if(U==="\\\\"){e.consume();var ee=void 0;e.gullet.future().text!==" "&&(ee=e.parseSizeGroup(!0)),C.push(ee?ee.value:null),j(),w.push(g6(e)),T=[],x.push(T),D()}else throw new Ne("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:o,body:x,cols:s,rowGaps:C,hskipBeforeAndAfter:r,hLinesBeforeRow:w,colSeparationType:c,tags:O,leqno:b}}function Q2(e){return e.slice(0,1)==="d"?"display":"text"}var Ti=function(t,n){var r,a,s=t.body.length,o=t.hLinesBeforeRow,c=0,d=new Array(s),f=[],m=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),p=1/n.fontMetrics().ptPerEm,b=5*p;if(t.colSeparationType&&t.colSeparationType==="small"){var y=n.havingStyle(ot.SCRIPT).sizeMultiplier;b=.2778*(y/n.sizeMultiplier)}var T=t.colSeparationType==="CD"?Ln({number:3,unit:"ex"},n):12*p,x=3*p,C=t.arraystretch*T,w=.7*C,O=.3*C,D=0;function j(gn){for(var Bt=0;Bt<gn.length;++Bt)Bt>0&&(D+=.25),f.push({pos:D,isDashed:gn[Bt]})}for(j(o[0]),r=0;r<t.body.length;++r){var z=t.body[r],U=w,ee=O;c<z.length&&(c=z.length);var Z=new Array(z.length);for(a=0;a<z.length;++a){var Q=Ht(z[a],n);ee<Q.depth&&(ee=Q.depth),U<Q.height&&(U=Q.height),Z[a]=Q}var G=t.rowGaps[r],se=0;G&&(se=Ln(G,n),se>0&&(se+=O,ee<se&&(ee=se),se=0)),t.addJot&&(ee+=x),Z.height=U,Z.depth=ee,D+=U,Z.pos=D,D+=ee+se,d[r]=Z,j(o[r+1])}var de=D/2+n.fontMetrics().axisHeight,ve=t.cols||[],oe=[],ye,V,ue=[];if(t.tags&&t.tags.some(gn=>gn))for(r=0;r<s;++r){var me=d[r],De=me.pos-de,A=t.tags[r],ne=void 0;A===!0?ne=ie.makeSpan(["eqn-num"],[],n):A===!1?ne=ie.makeSpan([],[],n):ne=ie.makeSpan([],sr(A,n,!0),n),ne.depth=me.depth,ne.height=me.height,ue.push({type:"elem",elem:ne,shift:De})}for(a=0,V=0;a<c||V<ve.length;++a,++V){for(var pe=ve[V]||{},L=!0;pe.type==="separator";){if(L||(ye=ie.makeSpan(["arraycolsep"],[]),ye.style.width=Pe(n.fontMetrics().doubleRuleSep),oe.push(ye)),pe.separator==="|"||pe.separator===":"){var Oe=pe.separator==="|"?"solid":"dashed",He=ie.makeSpan(["vertical-separator"],[],n);He.style.height=Pe(D),He.style.borderRightWidth=Pe(m),He.style.borderRightStyle=Oe,He.style.margin="0 "+Pe(-m/2);var Le=D-de;Le&&(He.style.verticalAlign=Pe(-Le)),oe.push(He)}else throw new Ne("Invalid separator type: "+pe.separator);V++,pe=ve[V]||{},L=!1}if(!(a>=c)){var Mt=void 0;(a>0||t.hskipBeforeAndAfter)&&(Mt=st.deflt(pe.pregap,b),Mt!==0&&(ye=ie.makeSpan(["arraycolsep"],[]),ye.style.width=Pe(Mt),oe.push(ye)));var ut=[];for(r=0;r<s;++r){var qt=d[r],kt=qt[a];if(kt){var En=qt.pos-de;kt.depth=qt.depth,kt.height=qt.height,ut.push({type:"elem",elem:kt,shift:En})}}ut=ie.makeVList({positionType:"individualShift",children:ut},n),ut=ie.makeSpan(["col-align-"+(pe.align||"c")],[ut]),oe.push(ut),(a<c-1||t.hskipBeforeAndAfter)&&(Mt=st.deflt(pe.postgap,b),Mt!==0&&(ye=ie.makeSpan(["arraycolsep"],[]),ye.style.width=Pe(Mt),oe.push(ye)))}}if(d=ie.makeSpan(["mtable"],oe),f.length>0){for(var pr=ie.makeLineSpan("hline",n,m),yt=ie.makeLineSpan("hdashline",n,m),bt=[{type:"elem",elem:d,shift:0}];f.length>0;){var Ft=f.pop(),Je=Ft.pos-de;Ft.isDashed?bt.push({type:"elem",elem:yt,shift:Je}):bt.push({type:"elem",elem:pr,shift:Je})}d=ie.makeVList({positionType:"individualShift",children:bt},n)}if(ue.length===0)return ie.makeSpan(["mord"],[d],n);var Et=ie.makeVList({positionType:"individualShift",children:ue},n);return Et=ie.makeSpan(["tag"],[Et],n),ie.makeFragment([d,Et])},u$={c:"center ",l:"left ",r:"right "},xi=function(t,n){for(var r=[],a=new Ce.MathNode("mtd",[],["mtr-glue"]),s=new Ce.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var c=t.body[o],d=[],f=0;f<c.length;f++)d.push(new Ce.MathNode("mtd",[on(c[f],n)]));t.tags&&t.tags[o]&&(d.unshift(a),d.push(a),t.leqno?d.unshift(s):d.push(s)),r.push(new Ce.MathNode("mtr",d))}var m=new Ce.MathNode("mtable",r),p=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);m.setAttribute("rowspacing",Pe(p));var b="",y="";if(t.cols&&t.cols.length>0){var T=t.cols,x="",C=!1,w=0,O=T.length;T[0].type==="separator"&&(b+="top ",w=1),T[T.length-1].type==="separator"&&(b+="bottom ",O-=1);for(var D=w;D<O;D++)T[D].type==="align"?(y+=u$[T[D].align],C&&(x+="none "),C=!0):T[D].type==="separator"&&C&&(x+=T[D].separator==="|"?"solid ":"dashed ",C=!1);m.setAttribute("columnalign",y.trim()),/[sd]/.test(x)&&m.setAttribute("columnlines",x.trim())}if(t.colSeparationType==="align"){for(var j=t.cols||[],z="",U=1;U<j.length;U++)z+=U%2?"0em ":"1em ";m.setAttribute("columnspacing",z.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");var ee="",Z=t.hLinesBeforeRow;b+=Z[0].length>0?"left ":"",b+=Z[Z.length-1].length>0?"right ":"";for(var Q=1;Q<Z.length-1;Q++)ee+=Z[Q].length===0?"none ":Z[Q][0]?"dashed ":"solid ";return/[sd]/.test(ee)&&m.setAttribute("rowlines",ee.trim()),b!==""&&(m=new Ce.MathNode("menclose",[m]),m.setAttribute("notation",b.trim())),t.arraystretch&&t.arraystretch<1&&(m=new Ce.MathNode("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},Kx=function(t,n){t.envName.indexOf("ed")===-1&&im(t);var r=[],a=t.envName.indexOf("at")>-1?"alignat":"align",s=t.envName==="split",o=ul(t.parser,{cols:r,addJot:!0,autoTag:s?void 0:X2(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),c,d=0,f={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var m="",p=0;p<n[0].body.length;p++){var b=At(n[0].body[p],"textord");m+=b.text}c=Number(m),d=c*2}var y=!d;o.body.forEach(function(w){for(var O=1;O<w.length;O+=2){var D=At(w[O],"styling"),j=At(D.body[0],"ordgroup");j.body.unshift(f)}if(y)d<w.length&&(d=w.length);else{var z=w.length/2;if(c<z)throw new Ne("Too many math in a row: "+("expected "+c+", but got "+z),w[0])}});for(var T=0;T<d;++T){var x="r",C=0;T%2===1?x="l":T>0&&y&&(C=1),r[T]={type:"align",align:x,pregap:C,postgap:0}}return o.colSeparationType=y?"align":"alignat",o};Ei({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=nm(t[0]),r=n?[t[0]]:At(t[0],"ordgroup").body,a=r.map(function(o){var c=Y2(o),d=c.text;if("lcr".indexOf(d)!==-1)return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new Ne("Unknown column alignment: "+d,o)}),s={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return ul(e.parser,s,Q2(e.envName))},htmlBuilder:Ti,mathmlBuilder:xi});Ei({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 a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,"lcr".indexOf(n)===-1)throw new Ne("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var s=ul(e.parser,r,Q2(e.envName)),o=Math.max(0,...s.body.map(c=>c.length));return s.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:Ti,mathmlBuilder:xi});Ei({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=ul(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Ti,mathmlBuilder:xi});Ei({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=nm(t[0]),r=n?[t[0]]:At(t[0],"ordgroup").body,a=r.map(function(o){var c=Y2(o),d=c.text;if("lc".indexOf(d)!==-1)return{type:"align",align:d};throw new Ne("Unknown column alignment: "+d,o)});if(a.length>1)throw new Ne("{subarray} can contain only one column");var s={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=ul(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new Ne("{subarray} can contain only one column");return s},htmlBuilder:Ti,mathmlBuilder:xi});Ei({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=ul(e.parser,t,Q2(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:Ti,mathmlBuilder:xi});Ei({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Kx,htmlBuilder:Ti,mathmlBuilder:xi});Ei({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){st.contains(["gather","gather*"],e.envName)&&im(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:X2(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ul(e.parser,t,"display")},htmlBuilder:Ti,mathmlBuilder:xi});Ei({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Kx,htmlBuilder:Ti,mathmlBuilder:xi});Ei({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){im(e);var t={autoTag:X2(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ul(e.parser,t,"display")},htmlBuilder:Ti,mathmlBuilder:xi});Ei({type:"array",names:["CD"],props:{numArgs:0},handler(e){return im(e),Wj(e.parser)},htmlBuilder:Ti,mathmlBuilder:xi});I("\\nonumber","\\gdef\\@eqnsw{0}");I("\\notag","\\nonumber");$e({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ne(e.funcName+" valid only within array environment")}});var b6=Gx;$e({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new Ne("Invalid environment name",a);for(var s="",o=0;o<a.body.length;++o)s+=At(a.body[o],"textord").text;if(r==="\\begin"){if(!b6.hasOwnProperty(s))throw new Ne("No such environment: "+s,a);var c=b6[s],{args:d,optArgs:f}=n.parseArguments("\\begin{"+s+"}",c),m={mode:n.mode,envName:s,parser:n},p=c.handler(m,d,f);n.expect("\\end",!1);var b=n.nextToken,y=At(n.parseFunction(),"environment");if(y.name!==s)throw new Ne("Mismatch: \\begin{"+s+"} matched by \\end{"+y.name+"}",b);return p}return{type:"environment",mode:n.mode,name:s,nameGroup:a}}});var Wx=(e,t)=>{var n=e.font,r=t.withFont(n);return Ht(e.body,r)},Xx=(e,t)=>{var n=e.font,r=t.withFont(n);return on(e.body,r)},v6={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};$e({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,a=pf(t[0]),s=r;return s in v6&&(s=v6[s]),{type:"font",mode:n.mode,font:s.slice(1),body:a}},htmlBuilder:Wx,mathmlBuilder:Xx});$e({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],a=st.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:rm(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:a}}});$e({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:s}=n,o=n.parseExpression(!0,a),c="math"+r.slice(1);return{type:"font",mode:s,font:c,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:Wx,mathmlBuilder:Xx});var Qx=(e,t)=>{var n=t;return e==="display"?n=n.id>=ot.SCRIPT.id?n.text():ot.DISPLAY:e==="text"&&n.size===ot.DISPLAY.size?n=ot.TEXT:e==="script"?n=ot.SCRIPT:e==="scriptscript"&&(n=ot.SCRIPTSCRIPT),n},Z2=(e,t)=>{var n=Qx(e.size,t.style),r=n.fracNum(),a=n.fracDen(),s;s=t.havingStyle(r);var o=Ht(e.numer,s,t);if(e.continued){var c=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;o.height=o.height<c?c:o.height,o.depth=o.depth<d?d:o.depth}s=t.havingStyle(a);var f=Ht(e.denom,s,t),m,p,b;e.hasBarLine?(e.barSize?(p=Ln(e.barSize,t),m=ie.makeLineSpan("frac-line",t,p)):m=ie.makeLineSpan("frac-line",t),p=m.height,b=m.height):(m=null,p=0,b=t.fontMetrics().defaultRuleThickness);var y,T,x;n.size===ot.DISPLAY.size||e.size==="display"?(y=t.fontMetrics().num1,p>0?T=3*b:T=7*b,x=t.fontMetrics().denom1):(p>0?(y=t.fontMetrics().num2,T=b):(y=t.fontMetrics().num3,T=3*b),x=t.fontMetrics().denom2);var C;if(m){var O=t.fontMetrics().axisHeight;y-o.depth-(O+.5*p)<T&&(y+=T-(y-o.depth-(O+.5*p))),O-.5*p-(f.height-x)<T&&(x+=T-(O-.5*p-(f.height-x)));var D=-(O-.5*p);C=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:x},{type:"elem",elem:m,shift:D},{type:"elem",elem:o,shift:-y}]},t)}else{var w=y-o.depth-(f.height-x);w<T&&(y+=.5*(T-w),x+=.5*(T-w)),C=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:x},{type:"elem",elem:o,shift:-y}]},t)}s=t.havingStyle(n),C.height*=s.sizeMultiplier/t.sizeMultiplier,C.depth*=s.sizeMultiplier/t.sizeMultiplier;var j;n.size===ot.DISPLAY.size?j=t.fontMetrics().delim1:n.size===ot.SCRIPTSCRIPT.size?j=t.havingStyle(ot.SCRIPT).fontMetrics().delim2:j=t.fontMetrics().delim2;var z,U;return e.leftDelim==null?z=b0(t,["mopen"]):z=ts.customSizedDelim(e.leftDelim,j,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?U=ie.makeSpan([]):e.rightDelim==null?U=b0(t,["mclose"]):U=ts.customSizedDelim(e.rightDelim,j,!0,t.havingStyle(n),e.mode,["mclose"]),ie.makeSpan(["mord"].concat(s.sizingClasses(t)),[z,ie.makeSpan(["mfrac"],[C]),U],t)},J2=(e,t)=>{var n=new Ce.MathNode("mfrac",[on(e.numer,t),on(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Ln(e.barSize,t);n.setAttribute("linethickness",Pe(r))}var a=Qx(e.size,t.style);if(a.size!==t.style.size){n=new Ce.MathNode("mstyle",[n]);var s=a.size===ot.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",s),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var c=new Ce.MathNode("mo",[new Ce.TextNode(e.leftDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}if(o.push(n),e.rightDelim!=null){var d=new Ce.MathNode("mo",[new Ce.TextNode(e.rightDelim.replace("\\",""))]);d.setAttribute("fence","true"),o.push(d)}return j2(o)}return n};$e({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,a=t[0],s=t[1],o,c=null,d=null,f="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,c="(",d=")";break;case"\\\\bracefrac":o=!1,c="\\{",d="\\}";break;case"\\\\brackfrac":o=!1,c="[",d="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":f="display";break;case"\\tfrac":case"\\tbinom":f="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:a,denom:s,hasBarLine:o,leftDelim:c,rightDelim:d,size:f,barSize:null}},htmlBuilder:Z2,mathmlBuilder:J2});$e({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],s=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:a,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});$e({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,a;switch(n){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:r}}});var y6=["display","text","script","scriptscript"],_6=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};$e({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],a=t[5],s=pf(t[0]),o=s.type==="atom"&&s.family==="open"?_6(s.text):null,c=pf(t[1]),d=c.type==="atom"&&c.family==="close"?_6(c.text):null,f=At(t[2],"size"),m,p=null;f.isBlank?m=!0:(p=f.value,m=p.number>0);var b="auto",y=t[3];if(y.type==="ordgroup"){if(y.body.length>0){var T=At(y.body[0],"textord");b=y6[Number(T.text)]}}else y=At(y,"textord"),b=y6[Number(y.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:m,barSize:p,leftDelim:o,rightDelim:d,size:b}},htmlBuilder:Z2,mathmlBuilder:J2});$e({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:At(t[0],"size").value,token:a}}});$e({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],s=Fq(At(t[1],"infix").size),o=t[2],c=s.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:o,continued:!1,hasBarLine:c,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Z2,mathmlBuilder:J2});var Zx=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?Ht(e.sup,t.havingStyle(n.sup()),t):Ht(e.sub,t.havingStyle(n.sub()),t),a=At(e.base,"horizBrace")):a=At(e,"horizBrace");var s=Ht(a.base,t.havingBaseStyle(ot.DISPLAY)),o=ss.svgSpan(a,t),c;if(a.isOver?(c=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t),c.children[0].children[0].children[1].classes.push("svg-align")):(c=ie.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t),c.children[0].children[0].children[0].classes.push("svg-align")),r){var d=ie.makeSpan(["mord",a.isOver?"mover":"munder"],[c],t);a.isOver?c=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:r}]},t):c=ie.makeVList({positionType:"bottom",positionData:d.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:d}]},t)}return ie.makeSpan(["mord",a.isOver?"mover":"munder"],[c],t)},c$=(e,t)=>{var n=ss.mathMLnode(e.label);return new Ce.MathNode(e.isOver?"mover":"munder",[on(e.base,t),n])};$e({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:Zx,mathmlBuilder:c$});$e({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=At(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:$n(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=sr(e.body,t,!1);return ie.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=ll(e.body,t);return n instanceof va||(n=new va("mrow",[n])),n.setAttribute("href",e.href),n}});$e({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=At(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],s=0;s<r.length;s++){var o=r[s];o==="~"&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var c={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:$n(c)}}});$e({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:$n(t[0])}},htmlBuilder(e,t){var n=sr(e.body,t,!1);return ie.makeFragment(n)},mathmlBuilder(e,t){return new Ce.MathNode("mrow",aa(e.body,t))}});$e({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,s=At(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,d={};switch(r){case"\\htmlClass":d.class=s,c={command:"\\htmlClass",class:s};break;case"\\htmlId":d.id=s,c={command:"\\htmlId",id:s};break;case"\\htmlStyle":d.style=s,c={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var f=s.split(","),m=0;m<f.length;m++){var p=f[m].split("=");if(p.length!==2)throw new Ne("Error parsing key-value for \\htmlData");d["data-"+p[0].trim()]=p[1].trim()}c={command:"\\htmlData",attributes:d};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(c)?{type:"html",mode:n.mode,attributes:d,body:$n(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=sr(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=ie.makeSpan(r,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&a.setAttribute(s,e.attributes[s]);return a},mathmlBuilder:(e,t)=>ll(e.body,t)});$e({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:$n(t[0]),mathml:$n(t[1])}},htmlBuilder:(e,t)=>{var n=sr(e.html,t,!1);return ie.makeFragment(n)},mathmlBuilder:(e,t)=>ll(e.mathml,t)});var mg=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 Ne("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!bx(r))throw new Ne("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};$e({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},c="";if(n[0])for(var d=At(n[0],"raw").string,f=d.split(","),m=0;m<f.length;m++){var p=f[m].split("=");if(p.length===2){var b=p[1].trim();switch(p[0].trim()){case"alt":c=b;break;case"width":a=mg(b);break;case"height":s=mg(b);break;case"totalheight":o=mg(b);break;default:throw new Ne("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var y=At(t[0],"url").url;return c===""&&(c=y,c=c.replace(/^.*[\\/]/,""),c=c.substring(0,c.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:y})?{type:"includegraphics",mode:r.mode,alt:c,width:a,height:s,totalheight:o,src:y}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Ln(e.height,t),r=0;e.totalheight.number>0&&(r=Ln(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=Ln(e.width,t));var s={height:Pe(n+r)};a>0&&(s.width=Pe(a)),r>0&&(s.verticalAlign=Pe(-r));var o=new cj(e.src,e.alt,s);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Ce.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Ln(e.height,t),a=0;if(e.totalheight.number>0&&(a=Ln(e.totalheight,t)-r,n.setAttribute("valign",Pe(-a))),n.setAttribute("height",Pe(r+a)),e.width.number>0){var s=Ln(e.width,t);n.setAttribute("width",Pe(s))}return n.setAttribute("src",e.src),n}});$e({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,a=At(t[0],"size");if(n.settings.strict){var s=r[1]==="m",o=a.value.unit==="mu";s?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.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:a.value}},htmlBuilder(e,t){return ie.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Ln(e.dimension,t);return new Ce.SpaceNode(n)}});$e({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=ie.makeSpan([],[Ht(e.body,t)]),n=ie.makeSpan(["inner"],[n],t)):n=ie.makeSpan(["inner"],[Ht(e.body,t)]);var r=ie.makeSpan(["fix"],[]),a=ie.makeSpan([e.alignment],[n,r],t),s=ie.makeSpan(["strut"]);return s.style.height=Pe(a.height+a.depth),a.depth&&(s.style.verticalAlign=Pe(-a.depth)),a.children.unshift(s),a=ie.makeSpan(["thinbox"],[a],t),ie.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new Ce.MathNode("mpadded",[on(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}});$e({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var s=n==="\\("?"\\)":"$",o=r.parseExpression(!1,s);return r.expect(s),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",body:o}}});$e({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ne("Mismatched "+e.funcName)}});var E6=(e,t)=>{switch(t.style.size){case ot.DISPLAY.size:return e.display;case ot.TEXT.size:return e.text;case ot.SCRIPT.size:return e.script;case ot.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};$e({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:$n(t[0]),text:$n(t[1]),script:$n(t[2]),scriptscript:$n(t[3])}},htmlBuilder:(e,t)=>{var n=E6(e,t),r=sr(n,t,!1);return ie.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=E6(e,t);return ll(n,t)}});var Jx=(e,t,n,r,a,s,o)=>{e=ie.makeSpan([],[e]);var c=n&&st.isCharacterBox(n),d,f;if(t){var m=Ht(t,r.havingStyle(a.sup()),r);f={elem:m,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-m.depth)}}if(n){var p=Ht(n,r.havingStyle(a.sub()),r);d={elem:p,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-p.height)}}var b;if(f&&d){var y=r.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+e.depth+o;b=ie.makeVList({positionType:"bottom",positionData:y,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:Pe(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:f.kern},{type:"elem",elem:f.elem,marginLeft:Pe(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(d){var T=e.height-o;b=ie.makeVList({positionType:"top",positionData:T,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:Pe(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e}]},r)}else if(f){var x=e.depth+o;b=ie.makeVList({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:f.kern},{type:"elem",elem:f.elem,marginLeft:Pe(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[b];if(d&&s!==0&&!c){var w=ie.makeSpan(["mspace"],[],r);w.style.marginRight=Pe(s),C.unshift(w)}return ie.makeSpan(["mop","op-limits"],C,r)},eS=["\\smallint"],_u=(e,t)=>{var n,r,a=!1,s;e.type==="supsub"?(n=e.sup,r=e.sub,s=At(e.base,"op"),a=!0):s=At(e,"op");var o=t.style,c=!1;o.size===ot.DISPLAY.size&&s.symbol&&!st.contains(eS,s.name)&&(c=!0);var d;if(s.symbol){var f=c?"Size2-Regular":"Size1-Regular",m="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(m=s.name.slice(1),s.name=m==="oiint"?"\\iint":"\\iiint"),d=ie.makeSymbol(s.name,f,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),m.length>0){var p=d.italic,b=ie.staticSvg(m+"Size"+(c?"2":"1"),t);d=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:b,shift:c?.08:0}]},t),s.name="\\"+m,d.classes.unshift("mop"),d.italic=p}}else if(s.body){var y=sr(s.body,t,!0);y.length===1&&y[0]instanceof Ua?(d=y[0],d.classes[0]="mop"):d=ie.makeSpan(["mop"],y,t)}else{for(var T=[],x=1;x<s.name.length;x++)T.push(ie.mathsym(s.name[x],s.mode,t));d=ie.makeSpan(["mop"],T,t)}var C=0,w=0;return(d instanceof Ua||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(C=(d.height-d.depth)/2-t.fontMetrics().axisHeight,w=d.italic),a?Jx(d,n,r,t,o,w,C):(C&&(d.style.position="relative",d.style.top=Pe(C)),d)},H0=(e,t)=>{var n;if(e.symbol)n=new va("mo",[Fa(e.name,e.mode)]),st.contains(eS,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new va("mo",aa(e.body,t));else{n=new va("mi",[new fi(e.name.slice(1))]);var r=new va("mo",[Fa("","text")]);e.parentIsSupSub?n=new va("mrow",[n,r]):n=Cx([n,r])}return n},d$={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};$e({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,a=r;return a.length===1&&(a=d$[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:_u,mathmlBuilder:H0});$e({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:$n(r)}},htmlBuilder:_u,mathmlBuilder:H0});var h$={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};$e({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:_u,mathmlBuilder:H0});$e({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:_u,mathmlBuilder:H0});$e({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=h$[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:_u,mathmlBuilder:H0});var tS=(e,t)=>{var n,r,a=!1,s;e.type==="supsub"?(n=e.sup,r=e.sub,s=At(e.base,"operatorname"),a=!0):s=At(e,"operatorname");var o;if(s.body.length>0){for(var c=s.body.map(p=>{var b=p.text;return typeof b=="string"?{type:"textord",mode:p.mode,text:b}:p}),d=sr(c,t.withFont("mathrm"),!0),f=0;f<d.length;f++){var m=d[f];m instanceof Ua&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=ie.makeSpan(["mop"],d,t)}else o=ie.makeSpan(["mop"],[],t);return a?Jx(o,n,r,t,t.style,0,0):o},f$=(e,t)=>{for(var n=aa(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var s=n[a];if(!(s instanceof Ce.SpaceNode))if(s instanceof Ce.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.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 c=n.map(m=>m.toText()).join("");n=[new Ce.TextNode(c)]}var d=new Ce.MathNode("mi",n);d.setAttribute("mathvariant","normal");var f=new Ce.MathNode("mo",[Fa("","text")]);return e.parentIsSupSub?new Ce.MathNode("mrow",[d,f]):Ce.newDocumentFragment([d,f])};$e({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:$n(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:tS,mathmlBuilder:f$});I("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");to({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ie.makeFragment(sr(e.body,t,!1)):ie.makeSpan(["mord"],sr(e.body,t,!0),t)},mathmlBuilder(e,t){return ll(e.body,t,!0)}});$e({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=Ht(e.body,t.havingCrampedStyle()),r=ie.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,s=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]},t);return ie.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new Ce.MathNode("mo",[new Ce.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ce.MathNode("mover",[on(e.body,t),n]);return r.setAttribute("accent","true"),r}});$e({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:$n(r)}},htmlBuilder:(e,t)=>{var n=sr(e.body,t.withPhantom(),!1);return ie.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=aa(e.body,t);return new Ce.MathNode("mphantom",n)}});$e({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([],[Ht(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=aa($n(e.body),t),r=new Ce.MathNode("mphantom",n),a=new Ce.MathNode("mpadded",[r]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});$e({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"],[Ht(e.body,t.withPhantom())]),r=ie.makeSpan(["fix"],[]);return ie.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=aa($n(e.body),t),r=new Ce.MathNode("mphantom",n),a=new Ce.MathNode("mpadded",[r]);return a.setAttribute("width","0px"),a}});$e({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=At(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=Ht(e.body,t),r=Ln(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",[on(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});$e({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});$e({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,a=n[0],s=At(t[0],"size"),o=At(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&At(a,"size").value,width:s.value,height:o.value}},htmlBuilder(e,t){var n=ie.makeSpan(["mord","rule"],[],t),r=Ln(e.width,t),a=Ln(e.height,t),s=e.shift?Ln(e.shift,t):0;return n.style.borderRightWidth=Pe(r),n.style.borderTopWidth=Pe(a),n.style.bottom=Pe(s),n.width=r,n.height=a+s,n.depth=-s,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Ln(e.width,t),r=Ln(e.height,t),a=e.shift?Ln(e.shift,t):0,s=t.color&&t.getColor()||"black",o=new Ce.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",Pe(n)),o.setAttribute("height",Pe(r));var c=new Ce.MathNode("mpadded",[o]);return a>=0?c.setAttribute("height",Pe(a)):(c.setAttribute("height",Pe(a)),c.setAttribute("depth",Pe(-a))),c.setAttribute("voffset",Pe(a)),c}});function nS(e,t,n){for(var r=sr(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,s=0;s<r.length;s++){var o=r[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[s].classes,t.sizingClasses(n)):r[s].classes[o+1]==="reset-size"+t.size&&(r[s].classes[o+1]="reset-size"+n.size),r[s].height*=a,r[s].depth*=a}return ie.makeFragment(r)}var T6=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],m$=(e,t)=>{var n=t.havingSize(e.size);return nS(e.body,n,t)};$e({type:"sizing",names:T6,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,s=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:T6.indexOf(r)+1,body:s}},htmlBuilder:m$,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=aa(e.body,n),a=new Ce.MathNode("mstyle",r);return a.setAttribute("mathsize",Pe(n.sizeMultiplier)),a}});$e({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,s=!1,o=n[0]&&At(n[0],"ordgroup");if(o)for(var c="",d=0;d<o.body.length;++d){var f=o.body[d];if(c=f.text,c==="t")a=!0;else if(c==="b")s=!0;else{a=!1,s=!1;break}}else a=!0,s=!0;var m=t[0];return{type:"smash",mode:r.mode,body:m,smashHeight:a,smashDepth:s}},htmlBuilder:(e,t)=>{var n=ie.makeSpan([],[Ht(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 a=0;a<n.children.length;a++)n.children[a].depth=0;var s=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return ie.makeSpan(["mord"],[s],t)},mathmlBuilder:(e,t)=>{var n=new Ce.MathNode("mpadded",[on(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});$e({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],s=t[0];return{type:"sqrt",mode:r.mode,body:s,index:a}},htmlBuilder(e,t){var n=Ht(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=ie.wrapFragment(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,s=a;t.style.id<ot.TEXT.id&&(s=t.fontMetrics().xHeight);var o=a+s/4,c=n.height+n.depth+o+a,{span:d,ruleWidth:f,advanceWidth:m}=ts.sqrtImage(c,t),p=d.height-f;p>n.height+n.depth+o&&(o=(o+p-n.height-n.depth)/2);var b=d.height-n.height-o-f;n.style.paddingLeft=Pe(m);var y=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+b)},{type:"elem",elem:d},{type:"kern",size:f}]},t);if(e.index){var T=t.havingStyle(ot.SCRIPTSCRIPT),x=Ht(e.index,T,t),C=.6*(y.height-y.depth),w=ie.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:x}]},t),O=ie.makeSpan(["root"],[w]);return ie.makeSpan(["mord","sqrt"],[O,y],t)}else return ie.makeSpan(["mord","sqrt"],[y],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Ce.MathNode("mroot",[on(n,t),on(r,t)]):new Ce.MathNode("msqrt",[on(n,t)])}});var x6={display:ot.DISPLAY,text:ot.TEXT,script:ot.SCRIPT,scriptscript:ot.SCRIPTSCRIPT};$e({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,s=a.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:a.mode,style:o,body:s}},htmlBuilder(e,t){var n=x6[e.style],r=t.havingStyle(n).withFont("");return nS(e.body,r,t)},mathmlBuilder(e,t){var n=x6[e.style],r=t.havingStyle(n),a=aa(e.body,r),s=new Ce.MathNode("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=o[e.style];return s.setAttribute("scriptlevel",c[0]),s.setAttribute("displaystyle",c[1]),s}});var p$=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===ot.DISPLAY.size||r.alwaysHandleSupSub);return a?_u:null}else if(r.type==="operatorname"){var s=r.alwaysHandleSupSub&&(n.style.size===ot.DISPLAY.size||r.limits);return s?tS:null}else{if(r.type==="accent")return st.isCharacterBox(r.base)?G2:null;if(r.type==="horizBrace"){var o=!t.sub;return o===r.isOver?Zx:null}else return null}else return null};to({type:"supsub",htmlBuilder(e,t){var n=p$(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:s}=e,o=Ht(r,t),c,d,f=t.fontMetrics(),m=0,p=0,b=r&&st.isCharacterBox(r);if(a){var y=t.havingStyle(t.style.sup());c=Ht(a,y,t),b||(m=o.height-y.fontMetrics().supDrop*y.sizeMultiplier/t.sizeMultiplier)}if(s){var T=t.havingStyle(t.style.sub());d=Ht(s,T,t),b||(p=o.depth+T.fontMetrics().subDrop*T.sizeMultiplier/t.sizeMultiplier)}var x;t.style===ot.DISPLAY?x=f.sup1:t.style.cramped?x=f.sup3:x=f.sup2;var C=t.sizeMultiplier,w=Pe(.5/f.ptPerEm/C),O=null;if(d){var D=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof Ua||D)&&(O=Pe(-o.italic))}var j;if(c&&d){m=Math.max(m,x,c.depth+.25*f.xHeight),p=Math.max(p,f.sub2);var z=f.defaultRuleThickness,U=4*z;if(m-c.depth-(d.height-p)<U){p=U-(m-c.depth)+d.height;var ee=.8*f.xHeight-(m-c.depth);ee>0&&(m+=ee,p-=ee)}var Z=[{type:"elem",elem:d,shift:p,marginRight:w,marginLeft:O},{type:"elem",elem:c,shift:-m,marginRight:w}];j=ie.makeVList({positionType:"individualShift",children:Z},t)}else if(d){p=Math.max(p,f.sub1,d.height-.8*f.xHeight);var Q=[{type:"elem",elem:d,marginLeft:O,marginRight:w}];j=ie.makeVList({positionType:"shift",positionData:p,children:Q},t)}else if(c)m=Math.max(m,x,c.depth+.25*f.xHeight),j=ie.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:c,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var G=Eb(o,"right")||"mord";return ie.makeSpan([G],[o,ie.makeSpan(["msupsub"],[j])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[on(e.base,t)];e.sub&&s.push(on(e.sub,t)),e.sup&&s.push(on(e.sup,t));var o;if(n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var f=e.base;f&&f.type==="op"&&f.limits&&t.style===ot.DISPLAY||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(t.style===ot.DISPLAY||f.limits)?o="munderover":o="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===ot.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===ot.DISPLAY)?o="munder":o="msub"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===ot.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===ot.DISPLAY)?o="mover":o="msup"}return new Ce.MathNode(o,s)}});to({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",[Fa(e.text,e.mode)]);if(e.family==="bin"){var r=$2(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 rS={mi:"italic",mn:"normal",mtext:"normal"};to({type:"mathord",htmlBuilder(e,t){return ie.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ce.MathNode("mi",[Fa(e.text,e.mode,t)]),r=$2(e,t)||"italic";return r!==rS[n.type]&&n.setAttribute("mathvariant",r),n}});to({type:"textord",htmlBuilder(e,t){return ie.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Fa(e.text,e.mode,t),r=$2(e,t)||"normal",a;return e.mode==="text"?a=new Ce.MathNode("mtext",[n]):/[0-9]/.test(e.text)?a=new Ce.MathNode("mn",[n]):e.text==="\\prime"?a=new Ce.MathNode("mo",[n]):a=new Ce.MathNode("mi",[n]),r!==rS[a.type]&&a.setAttribute("mathvariant",r),a}});var pg={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},gg={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};to({type:"spacing",htmlBuilder(e,t){if(gg.hasOwnProperty(e.text)){var n=gg[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(pg.hasOwnProperty(e.text))return ie.makeSpan(["mspace",pg[e.text]],[],t);throw new Ne('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(gg.hasOwnProperty(e.text))n=new Ce.MathNode("mtext",[new Ce.TextNode(" ")]);else{if(pg.hasOwnProperty(e.text))return new Ce.MathNode("mspace");throw new Ne('Unknown type of space "'+e.text+'"')}return n}});var S6=()=>{var e=new Ce.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};to({type:"tag",mathmlBuilder(e,t){var n=new Ce.MathNode("mtable",[new Ce.MathNode("mtr",[S6(),new Ce.MathNode("mtd",[ll(e.body,t)]),S6(),new Ce.MathNode("mtd",[ll(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var w6={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},A6={"\\textbf":"textbf","\\textmd":"textmd"},g$={"\\textit":"textit","\\textup":"textup"},k6=(e,t)=>{var n=e.font;if(n){if(w6[n])return t.withTextFontFamily(w6[n]);if(A6[n])return t.withTextFontWeight(A6[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(g$[n])};$e({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,a=t[0];return{type:"text",mode:n.mode,body:$n(a),font:r}},htmlBuilder(e,t){var n=k6(e,t),r=sr(e.body,n,!0);return ie.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=k6(e,t);return ll(e.body,n)}});$e({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=Ht(e.body,t),r=ie.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,s=ie.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]},t);return ie.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new Ce.MathNode("mo",[new Ce.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ce.MathNode("munder",[on(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});$e({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=Ht(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return ie.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Ce.MathNode("mpadded",[on(e.body,t)],["vcenter"])}});$e({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ne("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=C6(e),r=[],a=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var o=n[s];o==="~"&&(o="\\textasciitilde"),r.push(ie.makeSymbol(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return ie.makeSpan(["mord","text"].concat(a.sizingClasses(t)),ie.tryCombineChars(r),a)},mathmlBuilder(e,t){var n=new Ce.TextNode(C6(e)),r=new Ce.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var C6=e=>e.body.replace(/ /g,e.star?"␣":" "),Js=Ax,aS=`[ \r
|
|
381
|
-
]`,b$="\\\\[a-zA-Z@]+",v$="\\\\[^\uD800-\uDFFF]",y$="("+b$+")"+aS+"*",_$=`\\\\(
|
|
382
|
-
|[ \r ]+
|
|
383
|
-
?)[ \r ]*`,wb="[̀-ͯ]",E$=new RegExp(wb+"+$"),T$="("+aS+"+)|"+(_$+"|")+"([!-\\[\\]-‧-豈-]"+(wb+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(wb+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+y$)+("|"+v$+")");class N6{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(T$,"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 Da("EOF",new ba(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Ne("Unexpected character: '"+t[n]+"'",new Da(t[n],new ba(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var s=t.indexOf(`
|
|
384
|
-
`,this.tokenRegex.lastIndex);return s===-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=s+1,this.lex()}return new Da(a,new ba(this,n,this.tokenRegex.lastIndex))}}class x${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 Ne("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 a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var S$=Vx;I("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});I("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});I("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});I("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});I("\\@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}});I("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");I("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var O6={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};I("\\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 Ne("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=O6[t.text],r==null||r>=n)throw new Ne("Invalid base-"+n+" digit "+t.text);for(var a;(a=O6[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var ev=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new Ne("\\newcommand's first argument must be a macro name");var s=a[0].text,o=e.isDefined(s);if(o&&!t)throw new Ne("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!n)throw new Ne("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var c=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var d="",f=e.expandNextToken();f.text!=="]"&&f.text!=="EOF";)d+=f.text,f=e.expandNextToken();if(!d.match(/^\s*[0-9]+\s*$/))throw new Ne("Invalid number of arguments: "+d);c=parseInt(d),a=e.consumeArg().tokens}return o&&r||e.macros.set(s,{tokens:a,numArgs:c}),""};I("\\newcommand",e=>ev(e,!1,!0,!1));I("\\renewcommand",e=>ev(e,!0,!1,!1));I("\\providecommand",e=>ev(e,!0,!0,!0));I("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});I("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});I("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Js[n],pn.math[n],pn.text[n]),""});I("\\bgroup","{");I("\\egroup","}");I("~","\\nobreakspace");I("\\lq","`");I("\\rq","'");I("\\aa","\\r a");I("\\AA","\\r A");I("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");I("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");I("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");I("ℬ","\\mathscr{B}");I("ℰ","\\mathscr{E}");I("ℱ","\\mathscr{F}");I("ℋ","\\mathscr{H}");I("ℐ","\\mathscr{I}");I("ℒ","\\mathscr{L}");I("ℳ","\\mathscr{M}");I("ℛ","\\mathscr{R}");I("ℭ","\\mathfrak{C}");I("ℌ","\\mathfrak{H}");I("ℨ","\\mathfrak{Z}");I("\\Bbbk","\\Bbb{k}");I("·","\\cdotp");I("\\llap","\\mathllap{\\textrm{#1}}");I("\\rlap","\\mathrlap{\\textrm{#1}}");I("\\clap","\\mathclap{\\textrm{#1}}");I("\\mathstrut","\\vphantom{(}");I("\\underbar","\\underline{\\text{#1}}");I("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');I("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");I("\\ne","\\neq");I("≠","\\neq");I("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");I("∉","\\notin");I("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");I("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");I("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");I("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");I("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");I("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");I("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");I("⟂","\\perp");I("‼","\\mathclose{!\\mkern-0.8mu!}");I("∌","\\notni");I("⌜","\\ulcorner");I("⌝","\\urcorner");I("⌞","\\llcorner");I("⌟","\\lrcorner");I("©","\\copyright");I("®","\\textregistered");I("️","\\textregistered");I("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');I("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');I("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');I("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');I("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");I("⋮","\\vdots");I("\\varGamma","\\mathit{\\Gamma}");I("\\varDelta","\\mathit{\\Delta}");I("\\varTheta","\\mathit{\\Theta}");I("\\varLambda","\\mathit{\\Lambda}");I("\\varXi","\\mathit{\\Xi}");I("\\varPi","\\mathit{\\Pi}");I("\\varSigma","\\mathit{\\Sigma}");I("\\varUpsilon","\\mathit{\\Upsilon}");I("\\varPhi","\\mathit{\\Phi}");I("\\varPsi","\\mathit{\\Psi}");I("\\varOmega","\\mathit{\\Omega}");I("\\substack","\\begin{subarray}{c}#1\\end{subarray}");I("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");I("\\boxed","\\fbox{$\\displaystyle{#1}$}");I("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");I("\\implies","\\DOTSB\\;\\Longrightarrow\\;");I("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");I("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");I("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var R6={",":"\\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"};I("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in R6?t=R6[n]:(n.slice(0,4)==="\\not"||n in pn.math&&st.contains(["bin","rel"],pn.math[n].group))&&(t="\\dotsb"),t});var tv={")":!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};I("\\dotso",function(e){var t=e.future().text;return t in tv?"\\ldots\\,":"\\ldots"});I("\\dotsc",function(e){var t=e.future().text;return t in tv&&t!==","?"\\ldots\\,":"\\ldots"});I("\\cdots",function(e){var t=e.future().text;return t in tv?"\\@cdots\\,":"\\@cdots"});I("\\dotsb","\\cdots");I("\\dotsm","\\cdots");I("\\dotsi","\\!\\cdots");I("\\dotsx","\\ldots\\,");I("\\DOTSI","\\relax");I("\\DOTSB","\\relax");I("\\DOTSX","\\relax");I("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");I("\\,","\\tmspace+{3mu}{.1667em}");I("\\thinspace","\\,");I("\\>","\\mskip{4mu}");I("\\:","\\tmspace+{4mu}{.2222em}");I("\\medspace","\\:");I("\\;","\\tmspace+{5mu}{.2777em}");I("\\thickspace","\\;");I("\\!","\\tmspace-{3mu}{.1667em}");I("\\negthinspace","\\!");I("\\negmedspace","\\tmspace-{4mu}{.2222em}");I("\\negthickspace","\\tmspace-{5mu}{.277em}");I("\\enspace","\\kern.5em ");I("\\enskip","\\hskip.5em\\relax");I("\\quad","\\hskip1em\\relax");I("\\qquad","\\hskip2em\\relax");I("\\tag","\\@ifstar\\tag@literal\\tag@paren");I("\\tag@paren","\\tag@literal{({#1})}");I("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ne("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});I("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");I("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");I("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");I("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");I("\\newline","\\\\\\relax");I("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var iS=Pe(hi["Main-Regular"][84][1]-.7*hi["Main-Regular"][65][1]);I("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+iS+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");I("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+iS+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");I("\\hspace","\\@ifstar\\@hspacer\\@hspace");I("\\@hspace","\\hskip #1\\relax");I("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");I("\\ordinarycolon",":");I("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");I("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');I("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');I("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');I("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');I("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');I("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');I("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');I("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');I("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');I("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');I("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');I("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');I("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');I("∷","\\dblcolon");I("∹","\\eqcolon");I("≔","\\coloneqq");I("≕","\\eqqcolon");I("⩴","\\Coloneqq");I("\\ratio","\\vcentcolon");I("\\coloncolon","\\dblcolon");I("\\colonequals","\\coloneqq");I("\\coloncolonequals","\\Coloneqq");I("\\equalscolon","\\eqqcolon");I("\\equalscoloncolon","\\Eqqcolon");I("\\colonminus","\\coloneq");I("\\coloncolonminus","\\Coloneq");I("\\minuscolon","\\eqcolon");I("\\minuscoloncolon","\\Eqcolon");I("\\coloncolonapprox","\\Colonapprox");I("\\coloncolonsim","\\Colonsim");I("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");I("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");I("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");I("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");I("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");I("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");I("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");I("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");I("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");I("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");I("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");I("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");I("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");I("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");I("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");I("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");I("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");I("\\nleqq","\\html@mathml{\\@nleqq}{≰}");I("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");I("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");I("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");I("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");I("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");I("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");I("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");I("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");I("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");I("\\imath","\\html@mathml{\\@imath}{ı}");I("\\jmath","\\html@mathml{\\@jmath}{ȷ}");I("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");I("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");I("⟦","\\llbracket");I("⟧","\\rrbracket");I("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");I("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");I("⦃","\\lBrace");I("⦄","\\rBrace");I("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");I("⦵","\\minuso");I("\\darr","\\downarrow");I("\\dArr","\\Downarrow");I("\\Darr","\\Downarrow");I("\\lang","\\langle");I("\\rang","\\rangle");I("\\uarr","\\uparrow");I("\\uArr","\\Uparrow");I("\\Uarr","\\Uparrow");I("\\N","\\mathbb{N}");I("\\R","\\mathbb{R}");I("\\Z","\\mathbb{Z}");I("\\alef","\\aleph");I("\\alefsym","\\aleph");I("\\Alpha","\\mathrm{A}");I("\\Beta","\\mathrm{B}");I("\\bull","\\bullet");I("\\Chi","\\mathrm{X}");I("\\clubs","\\clubsuit");I("\\cnums","\\mathbb{C}");I("\\Complex","\\mathbb{C}");I("\\Dagger","\\ddagger");I("\\diamonds","\\diamondsuit");I("\\empty","\\emptyset");I("\\Epsilon","\\mathrm{E}");I("\\Eta","\\mathrm{H}");I("\\exist","\\exists");I("\\harr","\\leftrightarrow");I("\\hArr","\\Leftrightarrow");I("\\Harr","\\Leftrightarrow");I("\\hearts","\\heartsuit");I("\\image","\\Im");I("\\infin","\\infty");I("\\Iota","\\mathrm{I}");I("\\isin","\\in");I("\\Kappa","\\mathrm{K}");I("\\larr","\\leftarrow");I("\\lArr","\\Leftarrow");I("\\Larr","\\Leftarrow");I("\\lrarr","\\leftrightarrow");I("\\lrArr","\\Leftrightarrow");I("\\Lrarr","\\Leftrightarrow");I("\\Mu","\\mathrm{M}");I("\\natnums","\\mathbb{N}");I("\\Nu","\\mathrm{N}");I("\\Omicron","\\mathrm{O}");I("\\plusmn","\\pm");I("\\rarr","\\rightarrow");I("\\rArr","\\Rightarrow");I("\\Rarr","\\Rightarrow");I("\\real","\\Re");I("\\reals","\\mathbb{R}");I("\\Reals","\\mathbb{R}");I("\\Rho","\\mathrm{P}");I("\\sdot","\\cdot");I("\\sect","\\S");I("\\spades","\\spadesuit");I("\\sub","\\subset");I("\\sube","\\subseteq");I("\\supe","\\supseteq");I("\\Tau","\\mathrm{T}");I("\\thetasym","\\vartheta");I("\\weierp","\\wp");I("\\Zeta","\\mathrm{Z}");I("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");I("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");I("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");I("\\bra","\\mathinner{\\langle{#1}|}");I("\\ket","\\mathinner{|{#1}\\rangle}");I("\\braket","\\mathinner{\\langle{#1}\\rangle}");I("\\Bra","\\left\\langle#1\\right|");I("\\Ket","\\left|#1\\right\\rangle");var sS=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.consumeArg().tokens,o=t.macros.get("|"),c=t.macros.get("\\|");t.macros.beginGroup();var d=p=>b=>{e&&(b.macros.set("|",o),a.length&&b.macros.set("\\|",c));var y=p;if(!p&&a.length){var T=b.future();T.text==="|"&&(b.popToken(),y=!0)}return{tokens:y?a:r,numArgs:0}};t.macros.set("|",d(!1)),a.length&&t.macros.set("\\|",d(!0));var f=t.consumeArg().tokens,m=t.expandTokens([...s,...f,...n]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};I("\\bra@ket",sS(!1));I("\\bra@set",sS(!0));I("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");I("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");I("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");I("\\angln","{\\angl n}");I("\\blue","\\textcolor{##6495ed}{#1}");I("\\orange","\\textcolor{##ffa500}{#1}");I("\\pink","\\textcolor{##ff00af}{#1}");I("\\red","\\textcolor{##df0030}{#1}");I("\\green","\\textcolor{##28ae7b}{#1}");I("\\gray","\\textcolor{gray}{#1}");I("\\purple","\\textcolor{##9d38bd}{#1}");I("\\blueA","\\textcolor{##ccfaff}{#1}");I("\\blueB","\\textcolor{##80f6ff}{#1}");I("\\blueC","\\textcolor{##63d9ea}{#1}");I("\\blueD","\\textcolor{##11accd}{#1}");I("\\blueE","\\textcolor{##0c7f99}{#1}");I("\\tealA","\\textcolor{##94fff5}{#1}");I("\\tealB","\\textcolor{##26edd5}{#1}");I("\\tealC","\\textcolor{##01d1c1}{#1}");I("\\tealD","\\textcolor{##01a995}{#1}");I("\\tealE","\\textcolor{##208170}{#1}");I("\\greenA","\\textcolor{##b6ffb0}{#1}");I("\\greenB","\\textcolor{##8af281}{#1}");I("\\greenC","\\textcolor{##74cf70}{#1}");I("\\greenD","\\textcolor{##1fab54}{#1}");I("\\greenE","\\textcolor{##0d923f}{#1}");I("\\goldA","\\textcolor{##ffd0a9}{#1}");I("\\goldB","\\textcolor{##ffbb71}{#1}");I("\\goldC","\\textcolor{##ff9c39}{#1}");I("\\goldD","\\textcolor{##e07d10}{#1}");I("\\goldE","\\textcolor{##a75a05}{#1}");I("\\redA","\\textcolor{##fca9a9}{#1}");I("\\redB","\\textcolor{##ff8482}{#1}");I("\\redC","\\textcolor{##f9685d}{#1}");I("\\redD","\\textcolor{##e84d39}{#1}");I("\\redE","\\textcolor{##bc2612}{#1}");I("\\maroonA","\\textcolor{##ffbde0}{#1}");I("\\maroonB","\\textcolor{##ff92c6}{#1}");I("\\maroonC","\\textcolor{##ed5fa6}{#1}");I("\\maroonD","\\textcolor{##ca337c}{#1}");I("\\maroonE","\\textcolor{##9e034e}{#1}");I("\\purpleA","\\textcolor{##ddd7ff}{#1}");I("\\purpleB","\\textcolor{##c6b9fc}{#1}");I("\\purpleC","\\textcolor{##aa87ff}{#1}");I("\\purpleD","\\textcolor{##7854ab}{#1}");I("\\purpleE","\\textcolor{##543b78}{#1}");I("\\mintA","\\textcolor{##f5f9e8}{#1}");I("\\mintB","\\textcolor{##edf2df}{#1}");I("\\mintC","\\textcolor{##e0e5cc}{#1}");I("\\grayA","\\textcolor{##f6f7f7}{#1}");I("\\grayB","\\textcolor{##f0f1f2}{#1}");I("\\grayC","\\textcolor{##e3e5e6}{#1}");I("\\grayD","\\textcolor{##d6d8da}{#1}");I("\\grayE","\\textcolor{##babec2}{#1}");I("\\grayF","\\textcolor{##888d93}{#1}");I("\\grayG","\\textcolor{##626569}{#1}");I("\\grayH","\\textcolor{##3b3e40}{#1}");I("\\grayI","\\textcolor{##21242c}{#1}");I("\\kaBlue","\\textcolor{##314453}{#1}");I("\\kaGreen","\\textcolor{##71B307}{#1}");var lS={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class w${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 x$(S$,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new N6(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,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new Da("EOF",r.loc)),this.pushTokens(a),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 a=this.future(),s,o=0,c=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new Ne("Extra }",s)}else if(s.text==="EOF")throw new Ne("Unexpected end of input in a macro argument, expected '"+(t&&r?t[c]:"}")+"'",s);if(t&&r)if((o===0||o===1&&t[c]==="{")&&s.text===t[c]){if(++c,c===t.length){n.splice(-c,c);break}}else c=0}while(o!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:s}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ne("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var s=this.popToken();if(r[a]!==s.text)throw new Ne("Use of the macro doesn't match its definition",s)}}for(var o=[],c=0;c<t;c++)o.push(this.consumeArg(n&&n[c+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Ne("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new Ne("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var s=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){s=s.slice();for(var c=s.length-1;c>=0;--c){var d=s[c];if(d.text==="#"){if(c===0)throw new Ne("Incomplete placeholder at end of macro body",d);if(d=s[--c],d.text==="#")s.splice(c+1,1);else if(/^[1-9]$/.test(d.text))s.splice(c,2,...o[+d.text-1]);else throw new Ne("Not a valid argument number",d)}}}return this.pushTokens(s),s.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 Da(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 a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),n.push(a)}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 a=typeof n=="function"?n(this):n;if(typeof a=="string"){var s=0;if(a.indexOf("#")!==-1)for(var o=a.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var c=new N6(a,this.settings),d=[],f=c.lex();f.text!=="EOF";)d.push(f),f=c.lex();d.reverse();var m={tokens:d,numArgs:s};return m}return a}isDefined(t){return this.macros.has(t)||Js.hasOwnProperty(t)||pn.math.hasOwnProperty(t)||pn.text.hasOwnProperty(t)||lS.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Js.hasOwnProperty(t)&&!Js[t].primitive}}var M6=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,kh=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),bg={"́":{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"}},I6={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class sm{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 w$(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 Ne("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 Da("}")),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 a=this.fetch();if(sm.endOfExpression.indexOf(a.text)!==-1||n&&a.text===n||t&&Js[a.text]&&Js[a.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;r.push(s)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++)if(t[a].type==="infix"){if(n!==-1)throw new Ne("only one infix operator per group",t[a].token);n=a,r=t[a].replaceWith}if(n!==-1&&r){var s,o,c=t.slice(0,n),d=t.slice(n+1);c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c},d.length===1&&d[0].type==="ordgroup"?o=d[0]:o={type:"ordgroup",mode:this.mode,body:d};var f;return r==="\\\\abovefrac"?f=this.callFunction(r,[s,t[n],o],[]):f=this.callFunction(r,[s,o],[]),[f]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var s;a=this.parseGroup(t)}while(((s=a)==null?void 0:s.type)==="internal");if(!a)throw new Ne("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return s}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var o=s.text==="\\limits";n.limits=o,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new Ne("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(r)throw new Ne("Double superscript",s);r=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(a)throw new Ne("Double subscript",s);a=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(r)throw new Ne("Double superscript",s);var c={type:"textord",mode:this.mode,text:"\\prime"},d=[c];for(this.consume();this.fetch().text==="'";)d.push(c),this.consume();this.fetch().text==="^"&&d.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:d}}else if(kh[s.text]){var f=M6.test(s.text),m=[];for(m.push(new Da(kh[s.text])),this.consume();;){var p=this.fetch().text;if(!kh[p]||M6.test(p)!==f)break;m.unshift(new Da(kh[p])),this.consume()}var b=this.subparse(m);f?a={type:"ordgroup",mode:"math",body:b}:r={type:"ordgroup",mode:"math",body:b}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,s=Js[a];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new Ne("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!s.allowedInText)throw new Ne("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&s.allowedInMath===!1)throw new Ne("Can't use function '"+a+"' in math mode",r);var{args:o,optArgs:c}=this.parseArguments(a,s);return this.callFunction(a,o,c,r,t)}callFunction(t,n,r,a,s){var o={funcName:t,parser:this,token:a,breakOnTokenText:s},c=Js[t];if(c&&c.handler)return c.handler(o,n,r);throw new Ne("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],s=[],o=0;o<r;o++){var c=n.argTypes&&n.argTypes[o],d=o<n.numOptionalArgs;(n.primitive&&c==null||n.type==="sqrt"&&o===1&&s[0]==null)&&(c="primitive");var f=this.parseGroupOfType("argument to '"+t+"'",c,d);if(d)s.push(f);else if(f!=null)a.push(f);else throw new Ne("Null argument, please report this as a bug")}return{args:a,optArgs:s}}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 a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",r);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(r)throw new Ne("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new Ne("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Ne("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 a="",s;(s=this.fetch()).text!=="EOF";)a+=s.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,s="",o;(o=this.fetch()).text!=="EOF"&&t.test(s+o.text);)a=o,s+=a.text,this.consume();if(s==="")throw new Ne("Invalid "+n+": '"+r.text+"'",r);return r.range(a,s)}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 Ne("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}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 a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new Ne("Invalid size: '"+n.text+"'",n);var s={number:+(a[1]+a[2]),unit:a[3]};if(!bx(s))throw new Ne("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,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 a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:r.loc,body:s};return n&&this.switchMode(a),o}parseGroup(t,n){var r=this.fetch(),a=r.text,s;if(a==="{"||a==="\\begingroup"){this.consume();var o=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var c=this.parseExpression(!1,o),d=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:ba.range(r,d),body:c,semisimple:a==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,t)||this.parseSymbol(),s==null&&a[0]==="\\"&&!lS.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Ne("Undefined control sequence: "+a,r);s=this.formatUnsupportedCmd(a),this.consume()}return s}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r],s=a.text;s==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:ba.range(a,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:ba.range(a,t[r+1]),text:"--"}),n-=1)),(s==="'"||s==="`")&&t[r+1].text===s&&(t.splice(r,2,{type:"textord",mode:"text",loc:ba.range(a,t[r+1]),text:s+s}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Ne(`\\verb assertion failed --
|
|
385
|
-
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}I6.hasOwnProperty(n[0])&&!pn[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=I6[n[0]]+n.slice(1));var s=E$.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var o;if(pn[this.mode][n]){this.settings.strict&&this.mode==="math"&&_b.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var c=pn[this.mode][n].group,d=ba.range(t),f;if(fj.hasOwnProperty(c)){var m=c;f={type:"atom",mode:this.mode,family:m,loc:d,text:n}}else f={type:c,mode:this.mode,loc:d,text:n};o=f}else if(n.charCodeAt(0)>=128)this.settings.strict&&(gx(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:ba.range(t),text:n};else return null;if(this.consume(),s)for(var p=0;p<s[0].length;p++){var b=s[0][p];if(!bg[b])throw new Ne("Unknown accent ' "+b+"'",t);var y=bg[b][this.mode]||bg[b].text;if(!y)throw new Ne("Accent "+b+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:ba.range(t),label:y,isStretchy:!1,isShifty:!0,base:o}}return o}}sm.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var nv=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new sm(t,n);delete r.gullet.macros.current["\\df@tag"];var a=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 Ne("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new Da("\\df@tag")])}]}return a},oS=function(t,n,r){n.textContent="";var a=rv(t,r).toNode();n.appendChild(a)};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."),oS=function(){throw new Ne("KaTeX doesn't work in quirks mode.")});var A$=function(t,n){var r=rv(t,n).toMarkup();return r},k$=function(t,n){var r=new U2(n);return nv(t,r)},uS=function(t,n,r){if(r.throwOnError||!(t instanceof Ne))throw t;var a=ie.makeSpan(["katex-error"],[new Ua(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},rv=function(t,n){var r=new U2(n);try{var a=nv(t,r);return Pj(a,t,r)}catch(s){return uS(s,t,r)}},C$=function(t,n){var r=new U2(n);try{var a=nv(t,r);return Bj(a,t,r)}catch(s){return uS(s,t,r)}},N$="0.16.22",O$={Span:z0,Anchor:H2,SymbolNode:Ua,SvgNode:as,PathNode:sl,LineNode:yb},D6={version:N$,render:oS,renderToString:A$,ParseError:Ne,SETTINGS_SCHEMA:Gh,__parse:k$,__renderToDomTree:rv,__renderToHTMLTree:C$,__setFontMetrics:ij,__defineSymbol:E,__defineFunction:$e,__defineMacro:I,__domTree:O$};const R$={},M$=[];function I$(e){const t=e||R$;return function(n,r){S2(n,"element",function(a,s){const o=Array.isArray(a.properties.className)?a.properties.className:M$,c=o.includes("language-math"),d=o.includes("math-display"),f=o.includes("math-inline");let m=d;if(!c&&!d&&!f)return;let p=s[s.length-1],b=a;if(a.tagName==="code"&&c&&p&&p.type==="element"&&p.tagName==="pre"&&(b=p,p=s[s.length-2],m=!0),!p)return;const y=GT(b,{whitespace:"pre"});let T;try{T=D6.renderToString(y,{...t,displayMode:m,throwOnError:!0})}catch(C){const w=C,O=w.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...s,a],cause:w,place:a.position,ruleId:O,source:"rehype-katex"});try{T=D6.renderToString(y,{...t,displayMode:m,strict:"ignore",throwOnError:!1})}catch{T=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:y}]}]}}typeof T=="string"&&(T=Nq(T).children);const x=p.children.indexOf(b);return p.children.splice(x,1,...T),A7})}}function D$(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:c,mathText:o,mathTextData:c}};function e(d){const f={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[f]}},d)}function t(){this.buffer()}function n(){const d=this.resume(),f=this.stack[this.stack.length-1];f.type,f.meta=d}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(d){const f=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),m=this.stack[this.stack.length-1];m.type,this.exit(d),m.value=f;const p=m.data.hChildren[0];p.type,p.tagName,p.children.push({type:"text",value:f}),this.data.mathFlowInside=void 0}function s(d){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},d),this.buffer()}function o(d){const f=this.resume(),m=this.stack[this.stack.length-1];m.type,this.exit(d),m.value=f,m.data.hChildren.push({type:"text",value:f})}function c(d){this.config.enter.data.call(this,d),this.config.exit.data.call(this,d)}}function L$(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
386
|
-
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(s,o,c,d){const f=s.value||"",m=c.createTracker(d),p="$".repeat(Math.max(I7(f,"$")+1,2)),b=c.enter("mathFlow");let y=m.move(p);if(s.meta){const T=c.enter("mathFlowMeta");y+=m.move(c.safe(s.meta,{after:`
|
|
387
|
-
`,before:y,encode:["$"],...m.current()})),T()}return y+=m.move(`
|
|
388
|
-
`),f&&(y+=m.move(f+`
|
|
389
|
-
`)),y+=m.move(p),b(),y}function r(s,o,c){let d=s.value||"",f=1;for(t||f++;new RegExp("(^|[^$])"+"\\$".repeat(f)+"([^$]|$)").test(d);)f++;const m="$".repeat(f);/[^ \r\n]/.test(d)&&(/^[ \r\n]/.test(d)&&/[ \r\n]$/.test(d)||/^\$|\$$/.test(d))&&(d=" "+d+" ");let p=-1;for(;++p<c.unsafe.length;){const b=c.unsafe[p];if(!b.atBreak)continue;const y=c.compilePattern(b);let T;for(;T=y.exec(d);){let x=T.index;d.codePointAt(x)===10&&d.codePointAt(x-1)===13&&x--,d=d.slice(0,x)+" "+d.slice(T.index+1)}}return m+d+m}function a(){return"$"}}const P$={tokenize:B$,concrete:!0,name:"mathFlow"},L6={tokenize:U$,partial:!0};function B$(e,t,n){const r=this,a=r.events[r.events.length-1],s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let o=0;return c;function c(O){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),d(O)}function d(O){return O===36?(e.consume(O),o++,d):o<2?n(O):(e.exit("mathFlowFenceSequence"),Rt(e,f,"whitespace")(O))}function f(O){return O===null||rt(O)?p(O):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(O))}function m(O){return O===null||rt(O)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),p(O)):O===36?n(O):(e.consume(O),m)}function p(O){return e.exit("mathFlowFence"),r.interrupt?t(O):e.attempt(L6,b,C)(O)}function b(O){return e.attempt({tokenize:w,partial:!0},C,y)(O)}function y(O){return(s?Rt(e,T,"linePrefix",s+1):T)(O)}function T(O){return O===null?C(O):rt(O)?e.attempt(L6,b,C)(O):(e.enter("mathFlowValue"),x(O))}function x(O){return O===null||rt(O)?(e.exit("mathFlowValue"),T(O)):(e.consume(O),x)}function C(O){return e.exit("mathFlow"),t(O)}function w(O,D,j){let z=0;return Rt(O,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function U(Q){return O.enter("mathFlowFence"),O.enter("mathFlowFenceSequence"),ee(Q)}function ee(Q){return Q===36?(z++,O.consume(Q),ee):z<o?j(Q):(O.exit("mathFlowFenceSequence"),Rt(O,Z,"whitespace")(Q))}function Z(Q){return Q===null||rt(Q)?(O.exit("mathFlowFence"),D(Q)):j(Q)}}}function U$(e,t,n){const r=this;return a;function a(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function F$(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:z$,previous:H$,name:"mathText"};function r(a,s,o){let c=0,d,f;return m;function m(x){return a.enter("mathText"),a.enter("mathTextSequence"),p(x)}function p(x){return x===36?(a.consume(x),c++,p):c<2&&!n?o(x):(a.exit("mathTextSequence"),b(x))}function b(x){return x===null?o(x):x===36?(f=a.enter("mathTextSequence"),d=0,T(x)):x===32?(a.enter("space"),a.consume(x),a.exit("space"),b):rt(x)?(a.enter("lineEnding"),a.consume(x),a.exit("lineEnding"),b):(a.enter("mathTextData"),y(x))}function y(x){return x===null||x===32||x===36||rt(x)?(a.exit("mathTextData"),b(x)):(a.consume(x),y)}function T(x){return x===36?(a.consume(x),d++,T):d===c?(a.exit("mathTextSequence"),a.exit("mathText"),s(x)):(f.type="mathTextData",y(x))}}}function z$(e){let t=e.length-4,n=3,r,a;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;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function H$(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function q$(e){return{flow:{36:P$},text:{36:F$(e)}}}const j$={};function $$(e){const t=this,n=e||j$,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(q$(n)),s.push(D$()),o.push(L$(n))}const Y$=({children:e,className:t,node:n,inline:r,...a})=>{const[s,o]=H.useState(!1),c=H.useRef(null),d=async()=>{var b;try{const y=((b=c.current)==null?void 0:b.textContent)||"";await navigator.clipboard.writeText(y),o(!0),setTimeout(()=>o(!1),2e3)}catch(y){console.error("Failed to copy code:",y)}},f=b=>{var y;return typeof b=="string"?b:Array.isArray(b)?b.map(f).join(""):(y=b==null?void 0:b.props)!=null&&y.children?f(b.props.children):""},m=f(e);return r||!m.includes(`
|
|
390
|
-
`)?R.jsx("code",{className:t,...a,children:e}):R.jsxs("div",{className:"relative group",children:[R.jsx("button",{onClick:d,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:s?R.jsxs(R.Fragment,{children:[R.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("polyline",{points:"20 6 9 17 4 12"})}),R.jsx("span",{children:"Copied!"})]}):R.jsx(R.Fragment,{children:R.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),R.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}),R.jsx("code",{ref:c,className:t,...a,children:e})]})},G$=({children:e})=>R.jsx("div",{className:"not-prose",children:e}),V$=({src:e,alt:t,...n})=>{const[r,a]=H.useState(!1),s=H.useCallback(async()=>{try{const c=await(await fetch(e)).blob(),d=window.URL.createObjectURL(c),f=document.createElement("a");f.href=d,f.download=t||"image",document.body.appendChild(f),f.click(),document.body.removeChild(f),window.URL.revokeObjectURL(d)}catch(o){console.error("Failed to download image:",o)}},[e,t]);return R.jsxs("div",{className:"relative inline-block group",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[R.jsx("img",{src:e,alt:t,...n}),r&&R.jsx("button",{onClick:s,className:"absolute top-8 right-2 p-2 rounded-lg transition-all duration-200",style:{backgroundColor:"var(--bg-primary)",border:"1px solid var(--border-primary)",color:"var(--text-primary)",boxShadow:"var(--shadow-md)"},title:"Download image","aria-label":"Download image",children:R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.jsx("polyline",{points:"7 10 12 15 17 10"}),R.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})})]})},K$=({href:e,onSend:t,...n})=>{const r=H.useCallback(a=>{t(decodeURIComponent(e.slice(23))),a.preventDefault()},[e,t]);return e.startsWith("https://cycls.com/send/")?R.jsx("a",{...n,className:n.className||"underline decoration-[var(--text-tertiary)]/40 decoration-2 hover:decoration-[var(--text-tertiary)]/60",href:"#",onClick:r}):R.jsx("a",{...n,href:e,target:"_blank",rel:"noreferrer"})},W$=({children:e,...t})=>{const n=H.useRef(null),[r,a]=H.useState(!1),s=H.useCallback(()=>{try{if(!n.current)return;const c=[],d=n.current,f=Array.from(d.querySelectorAll("thead th")).map(x=>{var C;return((C=x.textContent)==null?void 0:C.trim())||""});f.length>0&&c.push(f),Array.from(d.querySelectorAll("tbody tr")).forEach(x=>{const C=Array.from(x.querySelectorAll("td")).map(w=>{var O;return((O=w.textContent)==null?void 0:O.trim())||""});C.length>0&&c.push(C)});const p=c.map(x=>x.map(C=>{const w=String(C);return w.includes(",")||w.includes('"')||w.includes(`
|
|
391
|
-
`)?`"${w.replace(/"/g,'""')}"`:w}).join(",")).join(`
|
|
392
|
-
`),b=new Blob([p],{type:"text/csv;charset=utf-8;"}),y=window.URL.createObjectURL(b),T=document.createElement("a");T.href=y,T.download=`table-export-${Date.now()}.csv`,document.body.appendChild(T),T.click(),document.body.removeChild(T),window.URL.revokeObjectURL(y)}catch(c){console.error("Failed to export table as CSV:",c)}},[]),o=H.useCallback(async()=>{try{if(!n.current)return;const c=[],d=n.current,f=Array.from(d.querySelectorAll("thead th")).map(p=>{var b;return((b=p.textContent)==null?void 0:b.trim())||""});f.length>0&&c.push(f.join(" ")),Array.from(d.querySelectorAll("tbody tr")).forEach(p=>{const b=Array.from(p.querySelectorAll("td")).map(y=>{var T;return((T=y.textContent)==null?void 0:T.trim())||""});b.length>0&&c.push(b.join(" "))}),await navigator.clipboard.writeText(c.join(`
|
|
393
|
-
`)),a(!0),setTimeout(()=>a(!1),2e3)}catch(c){console.error("Failed to copy table:",c)}},[]);return R.jsxs("div",{className:"table-wrapper",children:[R.jsx("table",{ref:n,...t,children:e}),R.jsxs("div",{className:"!-mt-2",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",marginTop:"8px",borderRadius:"8px",backgroundColor:"var(--bg-secondary)",border:"1px solid var(--border-primary)"},children:[R.jsxs("button",{onClick:s,style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",color:"var(--text-secondary)",background:"none",border:"none",cursor:"pointer",padding:"0"},"aria-label":"Export table as CSV",children:[R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),R.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),R.jsx("line",{x1:"3",y1:"15",x2:"21",y2:"15"}),R.jsx("line",{x1:"9",y1:"3",x2:"9",y2:"21"}),R.jsx("line",{x1:"15",y1:"3",x2:"15",y2:"21"})]}),R.jsx("span",{children:"Export as CSV"})]}),R.jsx("button",{onClick:o,style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px",borderRadius:"4px",background:"none",border:"none",cursor:"pointer",color:r?"var(--text-success, #22c55e)":"var(--text-tertiary)"},title:r?"Copied!":"Copy table","aria-label":"Copy table",children:r?R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("polyline",{points:"20 6 9 17 4 12"})}):R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),R.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]})},v0=ce.memo(({markdown:e,onSend:t})=>{const n=H.useMemo(()=>({raw:G$,a:r=>R.jsx(K$,{...r,onSend:t}),code:Y$,img:V$,table:W$}),[t]);return R.jsx("div",{dir:"auto",children:R.jsx(nL,{components:n,remarkPlugins:[mB,$$],rehypePlugins:[Dz,I$,[Eq,{ignoreMissing:!0,detect:!0}]],children:e})})});v0.displayName="MarkdownRenderer";const Zi={MAX_FILE_BYTES:10*1024*1024,ALLOWED_MIME:new Set(["image/jpeg","image/png","image/webp","application/pdf","text/plain","text/markdown","text/csv","video/mp4","video/webm","video/ogg","video/quicktime"]),MAX_CHATS:15};function y0(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 X$(e){return e?e.startsWith("image/")?"image":e.startsWith("video/")?"video":e==="application/pdf"?"pdf":e==="text/csv"?"csv":e==="text/markdown"?"md":e==="text/plain"?"txt":"file":"file"}async function Q$(e,t="anon",n="anon"){if(e.size>Zi.MAX_FILE_BYTES)throw new Error("File too large (max 10MB)");if(!Zi.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 a=await fetch("https://cfywthfcvbajcekvwajz.supabase.co/functions/v1/upload",{method:"POST",body:r});if(!a.ok)throw new Error(`Upload failed (${a.status})`);return await a.json()}const gf=e=>e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(2)}kB`:`${(e/(1024*1024)).toFixed(2)}MB`,Z$=e=>{if(e.size>Zi.MAX_FILE_BYTES)return{valid:!1,error:`File "${e.name}" is too large (${gf(e.size)}). Maximum size is ${gf(Zi.MAX_FILE_BYTES)}.`};if(!Zi.ALLOWED_MIME.has(e.type)){const t=Array.from(Zi.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}},J$=({attachments:e=[]})=>e.length?R.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:e.map((t,n)=>{const r=X$(t.mime);if(r==="image")return R.jsx("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"group relative overflow-hidden rounded-lg shadow-sm transition-all duration-200 theme-transition",style:{border:"1px solid var(--border-primary)"},children:R.jsx("img",{src:t.url,alt:"",loading:"lazy",className:"mb-1 w-40 rounded-md"})},n);const a={pdf:"📄",csv:"📊",md:"📝",txt:"📝"}[r]||"📎";return R.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2.5 rounded-xl backdrop-blur-sm px-4 py-2.5 text-sm transition-all shadow-sm hover:bg-[var(--bg-hover)] theme-transition",style:{border:"1px solid var(--border-primary)",backgroundColor:"var(--bg-primary)"},children:[R.jsx("span",{className:"text-xl",children:a}),R.jsx("span",{className:"text-xs uppercase font-semibold tracking-wide",style:{color:"var(--text-tertiary)"},children:r||"file"})]},n)})}):null,eY=({error:e,onRetry:t,isRetrying:n})=>{const r=a=>a?a.type==="network"?"Network error. Please check your connection and try again.":a.type==="timeout"?"Request timed out. The server took too long to respond.":a.type==="rate_limit"?a.message||"Too many requests. Please wait a moment and try again.":a.type==="server"?`Server error (${a.status||"unknown"}). Please try again later.`:a.type==="abort"?"Request was cancelled.":a.message||"An error occurred while processing your request.":"An unexpected error occurred";return R.jsx("div",{className:"rounded-lg p-4 my-2 theme-transition",style:{backgroundColor:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)"},children:R.jsxs("div",{className:"flex items-start gap-3",children:[R.jsx("div",{className:"flex-shrink-0 mt-0.5",children:R.jsxs("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[R.jsx("circle",{cx:"12",cy:"12",r:"10"}),R.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),R.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),R.jsxs("div",{className:"flex-1 min-w-0",children:[R.jsx("p",{className:"text-sm font-medium text-red-500",children:"Error"}),R.jsx("p",{className:"text-sm mt-1",style:{color:"var(--text-secondary)"},children:r(e)}),t&&e.type!=="abort"&&R.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-500 hover:text-red-400 border border-red-500/30 hover:border-red-500/50 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed theme-transition",style:{backgroundColor:"var(--bg-primary)"},children:n?R.jsxs(R.Fragment,{children:[R.jsxs("svg",{className:"animate-spin h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[R.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),R.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"})]}),R.jsx("span",{children:"Retrying..."})]}):R.jsxs(R.Fragment,{children:[R.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("polyline",{points:"23 4 23 10 17 10"}),R.jsx("polyline",{points:"1 20 1 14 7 14"}),R.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"})]}),R.jsx("span",{children:"Retry"})]})})]})]})})},tY=({message:e,onCopy:t,onRegenerate:n,isLastAssistant:r})=>{const[a,s]=H.useState(!1),o=async()=>{try{const{clean:c}=y0(e.content);await navigator.clipboard.writeText(c),s(!0),setTimeout(()=>s(!1),2e3)}catch(c){console.error("Failed to copy:",c)}};return R.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:[R.jsx("button",{onClick:o,className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg transition-colors hover:bg-[var(--bg-hover)] theme-transition",style:{color:"var(--text-tertiary)"},title:"Copy message",children:a?R.jsxs(R.Fragment,{children:[R.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("polyline",{points:"20 6 9 17 4 12"})}),R.jsx("span",{children:"Copied!"})]}):R.jsxs(R.Fragment,{children:[R.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),R.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),R.jsx("span",{children:"Copy"})]})}),r&&R.jsxs("button",{onClick:n,className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg transition-colors hover:bg-[var(--bg-hover)] theme-transition",style:{color:"var(--text-tertiary)"},title:"Regenerate response",children:[R.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("polyline",{points:"23 4 23 10 17 10"}),R.jsx("polyline",{points:"1 20 1 14 7 14"}),R.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"})]}),R.jsx("span",{children:"Regenerate"})]})]})},Zo=(...e)=>e.filter(Boolean).join(" "),nY={spark:R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("path",{d:"M12 2l1.5 6L20 10l-6.5 2L12 20l-1.5-8L4 10l6.5-2L12 2z"})})};function rY({className:e,style:t,children:n}){return R.jsx("div",{className:Zo("theme-transition rounded-2xl border shadow-sm","backdrop-blur-[2px]",e),style:{backgroundColor:"var(--bg-secondary)",borderColor:"var(--border-primary)",color:"var(--text-primary)",...t},children:n})}function aY({children:e,style:t,className:n}){return R.jsx("span",{className:Zo("inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[11px] font-medium","border",n),style:{borderColor:"var(--border-primary)",backgroundColor:"var(--bg-tertiary, var(--bg-secondary))",color:"var(--text-secondary)",...t},children:e})}function iY({thinking:e}){const[t,n]=ce.useState(!1);return R.jsxs(rY,{className:"my-3",children:[R.jsxs("button",{type:"button",onClick:()=>n(r=>!r),className:Zo("w-full text-left p-2 md:p-2.5","flex items-center justify-between gap-3"),style:{color:"var(--text-primary)"},children:[R.jsxs("div",{className:"flex items-center gap-2.5",children:[R.jsx("span",{className:"inline-flex h-9 w-9 items-center justify-center rounded-xl border",style:{borderColor:"var(--border-primary)",backgroundColor:"var(--bg-tertiary, var(--bg-secondary))",color:"var(--text-secondary)"},children:nY.spark}),R.jsxs("div",{className:"flex flex-col",children:[R.jsx("span",{className:"text-sm font-semibold leading-tight",children:"Reasoning"}),R.jsx("span",{className:"text-xs leading-tight",style:{color:"var(--text-secondary)"},children:t?"Tap to hide":"Tap to view"})]}),R.jsx("div",{className:"ml-2",children:R.jsx(aY,{children:"Thinking"})})]}),R.jsx("span",{className:Zo("inline-flex h-8 w-8 items-center justify-center rounded-xl border","transition-transform duration-200",t?"rotate-180":"rotate-0"),style:{borderColor:"var(--border-primary)",backgroundColor:"var(--bg-tertiary, var(--bg-secondary))",color:"var(--text-secondary)"},"aria-hidden":!0,children:R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),t&&R.jsx("div",{className:"px-3 pb-3 md:px-4 md:pb-4",children:R.jsx("div",{className:Zo("rounded-xl border p-3 text-sm","whitespace-pre-wrap"),style:{borderColor:"var(--border-primary)",backgroundColor:"var(--bg-primary)",color:"var(--text-secondary)"},children:R.jsx("code",{className:"font-mono text-[13px] leading-relaxed",style:{color:"var(--text-secondary)"},children:e})})})]})}const sY=ce.memo(function({part:t,onSend:n}){if(!t||!t.type)return null;if(t.type==="thinking")return R.jsx(iY,{thinking:t.thinking||""});let r="";switch(t.type){case"text":r=t.text||"";break;case"code":r="```"+(t.language||"")+`
|
|
394
|
-
`+(t.code||"")+"\n```";break;case"table":t.headers&&t.headers.length>0&&(r+="| "+t.headers.join(" | ")+` |
|
|
395
|
-
`,r+="| "+t.headers.map(()=>"---").join(" | ")+` |
|
|
396
|
-
`),t.rows&&t.rows.length>0&&t.rows.forEach(o=>{r+="| "+o.join(" | ")+` |
|
|
397
|
-
`});break;case"callout":r=`> ${{info:"ℹ️",success:"✅",warning:"⚠️",error:"❌"}[t.style||"info"]||"ℹ️"} **${t.title||t.style||"Info"}**
|
|
398
|
-
>
|
|
399
|
-
> ${t.callout||""}`;break;case"image":r=``,t.caption&&(r+=`
|
|
400
|
-
|
|
401
|
-
*${t.caption}*`);break;default:return console.warn("Unknown part type:",t.type),null}return R.jsx("div",{className:Zo("prose prose-sm max-w-none","prose-headings:scroll-mt-24","prose-pre:p-0","theme-transition"),style:{color:"var(--text-primary)"},children:R.jsx(v0,{markdown:r,onSend:n})})}),cS=ce.memo(({messages:e,onSend:t,onRegenerate:n,isGenerating:r,onRetry:a,retryingIndex:s})=>{const o=H.useMemo(()=>e.map((c,d)=>{if(c.type==="request"||c.role==="user"){const y=c.content||"",{clean:T,attachments:x}=y0(y),C=/[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(T);return R.jsx("div",{className:`flex mb-4 ${C?"justify-start":"justify-end"}`,children:R.jsxs("div",{className:"max-w-[85%] md:max-w-[75%]",children:[x.length>0&&R.jsx("div",{className:"mb-1",children:R.jsx(J$,{attachments:x})}),T&&R.jsx("div",{className:"px-4 py-2 rounded-3xl shadow-sm theme-transition",style:{backgroundColor:"var(--msg-user-bg)",color:"var(--text-primary)"},children:R.jsx("div",{dir:"auto",className:"text-[15px] leading-relaxed whitespace-pre-wrap",children:T})})]})},d)}const m=(c.type==="response"||c.role==="assistant")&&d===e.length-1&&!r,p=c.parts&&Array.isArray(c.parts),b=!p&&(c.content||c.content==="");return R.jsx("div",{className:"flex mb-4 justify-start group",children:R.jsx("div",{className:"w-full",children:c.error?R.jsx(eY,{error:c.error,onRetry:()=>a(d),isRetrying:s===d}):R.jsxs(R.Fragment,{children:[p&&R.jsxs("div",{className:"space-y-2",children:[c.parts.map((y,T)=>R.jsx(sY,{part:y,onSend:t},T)),c.parts.length===0&&R.jsx("div",{className:"h-4 w-32 rounded animate-pulse",style:{backgroundColor:"var(--bg-tertiary)"}})]}),b&&R.jsxs("div",{className:"prose prose-sm max-w-none",children:[R.jsx(v0,{markdown:c.content,onSend:t}),c.content===""&&R.jsx("div",{className:"h-4 w-32 rounded animate-pulse",style:{backgroundColor:"var(--bg-tertiary)"}})]}),(p&&c.parts.length>0||b&&c.content&&c.content!=="")&&R.jsx(tY,{message:c,onRegenerate:()=>n(d),isLastAssistant:m})]})})},d)}),[e,t,n,r,a,s]);return R.jsx("div",{className:"space-y-1",children:o})});cS.displayName="MessageList";const lY=({file:e,onRemove:t})=>{const[n,r]=H.useState(null),a=e.type.startsWith("image/");return H.useEffect(()=>{if(!a)return;const s=new FileReader;s.onloadend=()=>r(String(s.result)),s.readAsDataURL(e)},[e,a]),R.jsxs("div",{className:"group inline-flex items-start gap-2 rounded-xl shadow-sm px-2.5 py-1 theme-transition",style:{backgroundColor:"var(--bg-primary)",border:"1px solid var(--border-primary)"},title:e.name,children:[R.jsx("div",{className:"w-10 h-10 rounded-md overflow-hidden flex items-center justify-center",style:{backgroundColor:"var(--bg-tertiary)"},children:a&&n?R.jsx("img",{src:n,alt:e.name,className:"w-full h-full object-cover"}):R.jsx("span",{className:"text-xs",children:"📄"})}),R.jsxs("div",{className:"min-w-0 leading-tight",children:[R.jsx("div",{className:"text-xs font-medium truncate max-w-[100px]",style:{color:"var(--text-primary)"},children:e.name}),R.jsx("div",{className:"text-xs text-left",style:{color:"var(--text-tertiary)"},children:gf(e.size)})]}),R.jsx("button",{onClick:t,className:"ml-1 h-5 w-5 rounded-full grid place-items-center hover:bg-[var(--bg-hover)] theme-transition",style:{backgroundColor:"var(--bg-tertiary)",color:"var(--text-secondary)"},"aria-label":"Remove attachment",children:R.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:R.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]})},oY=({error:e,onDismiss:t})=>(H.useEffect(()=>{const n=setTimeout(t,5e3);return()=>clearTimeout(n)},[t]),R.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:R.jsxs("div",{className:"flex items-start gap-3",children:[R.jsx("div",{className:"flex-shrink-0 mt-0.5",children:R.jsxs("svg",{className:"h-5 w-5 text-red-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[R.jsx("circle",{cx:"12",cy:"12",r:"10"}),R.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),R.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),R.jsxs("div",{className:"flex-1 min-w-0",children:[R.jsx("p",{className:"text-sm font-medium text-red-900",children:"Upload Error"}),R.jsx("p",{className:"text-sm text-red-700 mt-1",children:e})]}),R.jsx("button",{onClick:t,className:"flex-shrink-0 text-red-400 hover:text-red-600 transition-colors","aria-label":"Dismiss",children:R.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:R.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"})})})]})})),uY=({onSend:e,isLoading:t=!1,onStop:n,disabled:r=!1,onUpgradeClick:a,sidebarWidth:s=0})=>{const[o,c]=H.useState(""),[d,f]=H.useState([]),[m,p]=H.useState(!1),[b,y]=H.useState(null),[T,x]=H.useState(!1),C=H.useRef(null),w=H.useRef(null),O=H.useRef(0);H.useEffect(()=>{const Q=()=>p(window.innerWidth<=768);return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[]);const D=H.useCallback(Q=>{if(r)return;const G=[];for(const se of Q){const de=Z$(se);if(de.valid)G.push(se);else{y(de.error);break}}G.length>0&&f(se=>[...se,...G])},[r]);H.useEffect(()=>{const Q=ve=>{ve.preventDefault(),ve.stopPropagation(),!r&&(O.current++,ve.dataTransfer.types.includes("Files")&&x(!0))},G=ve=>{ve.preventDefault(),ve.stopPropagation(),O.current--,O.current===0&&x(!1)},se=ve=>{ve.preventDefault(),ve.stopPropagation()},de=ve=>{if(ve.preventDefault(),ve.stopPropagation(),x(!1),O.current=0,r)return;const oe=Array.from(ve.dataTransfer.files||[]);oe.length>0&&D(oe)};return document.addEventListener("dragenter",Q),document.addEventListener("dragleave",G),document.addEventListener("dragover",se),document.addEventListener("drop",de),()=>{document.removeEventListener("dragenter",Q),document.removeEventListener("dragleave",G),document.removeEventListener("dragover",se),document.removeEventListener("drop",de)}},[D,r]),H.useEffect(()=>{const Q=G=>{var oe;if(r||!(document.activeElement===w.current))return;const ve=Array.from(((oe=G.clipboardData)==null?void 0:oe.items)||[]).filter(ye=>ye.type.startsWith("image/"));if(ve.length>0){G.preventDefault();const ye=ve.map(V=>V.getAsFile()).filter(V=>V!==null);ye.length>0&&D(ye)}};return document.addEventListener("paste",Q),()=>document.removeEventListener("paste",Q)},[D,r]);const j=()=>{var Q;r||(Q=C.current)==null||Q.click()},z=Q=>{if(r)return;const G=Array.from(Q.target.files||[]);D(G),Q.target.value=""},U=Q=>f(G=>G.filter((se,de)=>de!==Q)),ee=async()=>{t||r||(e({text:o,files:d}),c(""),f([]))},Z=Q=>{Q.key==="Enter"&&!Q.shiftKey&&!m&&!t&&!r&&(Q.preventDefault(),ee())};return R.jsxs(R.Fragment,{children:[b&&R.jsx(oY,{error:b,onDismiss:()=>y(null)}),T&&!r&&R.jsx("div",{className:"fixed inset-0 z-50 backdrop-blur-sm flex items-center justify-center pointer-events-none",style:{backgroundColor:"var(--bg-overlay)"},children:R.jsx("div",{className:"rounded-2xl shadow-2xl p-8 max-w-md mx-4 border-2 border-dashed theme-transition",style:{backgroundColor:"var(--bg-primary)",borderColor:"var(--text-primary)"},children:R.jsxs("div",{className:"text-center",children:[R.jsx("div",{className:"mx-auto w-16 h-16 rounded-full flex items-center justify-center mb-4",style:{backgroundColor:"var(--bg-tertiary)"},children:R.jsx("svg",{className:"w-8 h-8",style:{color:"var(--text-primary)"},fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:R.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"})})}),R.jsx("h3",{className:"text-lg font-semibold mb-2",style:{color:"var(--text-primary)"},children:"Drop files to upload"}),R.jsx("p",{className:"text-sm",style:{color:"var(--text-secondary)"},children:"Images, PDFs, and text files supported"}),R.jsxs("p",{className:"text-xs mt-2",style:{color:"var(--text-tertiary)"},children:["Max ",gf(Zi.MAX_FILE_BYTES)," per file"]})]})})}),R.jsx("div",{className:"fixed right-0 z-40 transition-all duration-300 ease-in-out bottom-[max(0.75rem,env(safe-area-inset-bottom))] md:bottom-[max(1rem,env(safe-area-inset-bottom))]",style:{left:m?"0px":`${s}px`},children:R.jsxs("div",{className:"mx-auto max-w-3xl px-3 md:px-4",children:[R.jsxs("div",{className:`cursor-text rounded-3xl relative p-0 pt-1 backdrop-blur-xl w-full theme-transition ${r?"opacity-75":""}`,style:{backgroundColor:"var(--input-bg)",border:"1px solid var(--border-primary)"},children:[d.length>0&&R.jsx("div",{className:"px-3 pt-3",children:R.jsx("div",{className:"flex flex-wrap gap-2",children:d.map((Q,G)=>R.jsx(lY,{file:Q,onRemove:()=>U(G)},G))})}),R.jsxs("div",{className:"px-3 pb-3 pt-2",children:[R.jsx("textarea",{ref:w,className:`w-full resize-none border-0 bg-transparent focus:ring-0 focus:outline-none text-base leading-6 max-h-40 mb-2 disabled:opacity-50 disabled:cursor-not-allowed ${r?"cursor-not-allowed":""}`,style:{color:"var(--text-primary)",caretColor:"var(--accent-primary)"},dir:"auto",autoFocus:!r,tabIndex:0,rows:Math.max(1,Math.min(6,o.split(`
|
|
402
|
-
`).length)),placeholder:r?"Upgrade to continue chatting...":t?"Waiting for response...":"What's on your mind?",onChange:Q=>c(Q.target.value),onKeyDown:Z,value:o,disabled:t||r}),R.jsxs("div",{className:"flex items-center gap-2",children:[R.jsx("button",{onClick:j,disabled:r,className:`rounded-full w-8 h-8 inline-flex items-center justify-center p-1 theme-transition ${r?"opacity-50 cursor-not-allowed":"hover:bg-[var(--bg-hover)] active:scale-[0.98]"}`,style:{backgroundColor:"var(--bg-primary)",border:"1px solid var(--border-primary)",color:"var(--text-primary)"},"aria-label":"Attach file",title:r?"Upgrade to attach files":"Attach files",children:R.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:R.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"})})}),R.jsx("input",{ref:C,type:"file",multiple:!0,className:"hidden",onChange:z,accept:".jpg,.jpeg,.png,.webp,.pdf,.txt,.md,.csv",disabled:r}),R.jsx("div",{className:"flex-1"}),t&&!r&&R.jsx("button",{onClick:n,className:"rounded-full hover:bg-[var(--bg-hover)] active:scale-95 transition-all inline-flex items-center justify-center w-8 h-8 flex-shrink-0 theme-transition",style:{backgroundColor:"var(--bg-primary)",border:"1px solid var(--border-primary)",color:"var(--text-primary)",boxShadow:"var(--shadow-sm)"},"aria-label":"Stop generating",title:"Stop",children:R.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:R.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}),r&&R.jsxs("button",{onClick:a,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:[R.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:R.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&&R.jsx("button",{onClick:ee,disabled:t,className:"rounded-full 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 theme-transition",style:{backgroundColor:"var(--btn-primary-bg)",color:"var(--btn-primary-text)"},"aria-label":"Send message",title:"Send",children:R.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:R.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&&R.jsx("p",{className:"text-xs text-center mt-2",style:{color:"var(--text-tertiary)"},children:"You've reached your free message limit"})]})}),R.jsx("style",{children:`
|
|
403
|
-
textarea::placeholder {
|
|
404
|
-
color: var(--text-muted);
|
|
405
|
-
}
|
|
406
|
-
`})]})},cY=({fileName:e,progress:t})=>R.jsx("div",{className:"fixed bottom-40 left-1/2 transform -translate-x-1/2 rounded-xl shadow-lg px-4 py-3 min-w-[280px] theme-transition",style:{backgroundColor:"var(--bg-primary)",border:"1px solid var(--border-primary)",boxShadow:"var(--shadow-lg)"},children:R.jsxs("div",{className:"flex items-center gap-3",children:[R.jsx("div",{className:"flex-shrink-0",children:R.jsxs("svg",{className:"animate-spin h-5 w-5",style:{color:"var(--text-secondary)"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[R.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),R.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"})]})}),R.jsxs("div",{className:"flex-1 min-w-0",children:[R.jsx("p",{className:"text-sm font-medium truncate",style:{color:"var(--text-primary)"},children:e}),R.jsx("div",{className:"mt-1 w-full rounded-full h-1.5",style:{backgroundColor:"var(--bg-tertiary)"},children:R.jsx("div",{className:"h-1.5 rounded-full transition-all duration-300",style:{width:`${t}%`,backgroundColor:"var(--text-primary)"}})})]})]})}),bf={collapsed:56,expanded:275},hr=(...e)=>e.filter(Boolean).join(" "),P6=({children:e})=>R.jsx("span",{className:"grid place-items-center w-5 h-5",children:e}),B6=e=>R.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:hr("w-5 h-5",e==null?void 0:e.className),fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M12 3a9 9 0 1 1-6.22 15.5"}),R.jsx("path",{d:"M12 8v8"}),R.jsx("path",{d:"M16 12H8"})]}),U6=e=>R.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:hr("w-[18px] h-[18px]",e==null?void 0:e.className),fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),R.jsx("path",{d:"M9 3v18"})]}),dY=e=>R.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:hr("w-5 h-5",e==null?void 0:e.className),fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("path",{d:"M10 7l5 5-5 5"})}),hY=e=>R.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:hr("w-4 h-4",e==null?void 0:e.className),fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M3 6h18"}),R.jsx("path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),R.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),R.jsx("path",{d:"M10 11v6"}),R.jsx("path",{d:"M14 11v6"})]}),fY=e=>R.jsxs("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",className:hr("lucide lucide-ellipsis-icon lucide-ellipsis",e==null?void 0:e.className),children:[R.jsx("circle",{cx:"12",cy:"12",r:"1"}),R.jsx("circle",{cx:"19",cy:"12",r:"1"}),R.jsx("circle",{cx:"5",cy:"12",r:"1"})]});function mY(e,t,n=!0){H.useEffect(()=>{if(!n)return;const r=a=>{(Array.isArray(e)?e:[e]).some(c=>(c==null?void 0:c.current)&&c.current.contains(a.target))||t(a)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r,{passive:!0}),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t,n])}const pY=({icon:e,children:t,isCollapsed:n,...r})=>R.jsxs("button",{...r,className:hr("group w-full flex items-center gap-3 rounded-xl px-2.5 py-2 text-left","hover:bg-[var(--bg-hover)] active:bg-[var(--bg-active)]","focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20","theme-transition",n&&"justify-center px-2"),style:{color:"var(--text-primary)"},children:[R.jsx("span",{className:"shrink-0",style:{color:"var(--text-primary)"},children:e}),!n&&R.jsx("span",{className:"text-sm font-medium leading-5",children:t})]}),gY=({children:e})=>R.jsx("div",{className:"px-2.5 py-1.5 text-[11px] font-semibold tracking-wide uppercase",style:{color:"var(--text-tertiary)"},children:e}),bY=({chat:e,isActive:t,onSelect:n,onDelete:r})=>{const[a,s]=H.useState(!1),o=H.useRef(null),c=H.useRef(null),d=H.useId();return mY([o,c],()=>s(!1),a),R.jsxs("div",{className:"relative",children:[R.jsxs("button",{onClick:()=>n(e.id),className:hr("group w-full flex items-center gap-2 rounded-xl px-2.5 py-2 text-left","hover:bg-[var(--bg-hover)] active:bg-[var(--bg-active)]","focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20","theme-transition"),style:{backgroundColor:t?"var(--bg-active)":"transparent"},"aria-current":t?"page":void 0,children:[R.jsx("span",{className:"min-w-0 flex-1 truncate text-sm",style:{color:"var(--text-primary)"},children:e.title||"Untitled"}),R.jsx("button",{ref:c,type:"button",onClick:f=>{f.stopPropagation(),s(m=>!m)},className:hr("shrink-0 rounded-lg p-1.5","hover:bg-[var(--bg-hover)] active:bg-[var(--bg-active)]","opacity-0 group-hover:opacity-100 focus:opacity-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20","theme-transition"),style:{color:"var(--text-tertiary)"},"aria-label":"Chat options","aria-haspopup":"menu","aria-expanded":a,"aria-controls":d,children:R.jsx(fY,{})})]}),a&&R.jsx("div",{id:d,ref:o,role:"menu",className:hr("absolute right-2 top-[calc(100%+6px)] z-50 min-w-[170px]","rounded-xl shadow-lg","overflow-hidden dropdown-menu"),style:{backgroundColor:"var(--bg-primary)",border:"1px solid var(--border-primary)"},children:R.jsxs("button",{role:"menuitem",onClick:f=>{f.stopPropagation(),r(e.id),s(!1)},className:hr("w-full flex items-center gap-2 px-3 py-2.5 text-sm","text-red-500 hover:bg-red-500/10 focus:bg-red-500/10","focus:outline-none theme-transition"),children:[R.jsx(hY,{}),"Delete"]})})]})},vY=({user:e,isOnPaidPlan:t,tierName:n,UserButtonComponent:r})=>{var o,c;const a=(e==null?void 0:e.fullName)||(e==null?void 0:e.firstName)||((c=(o=e==null?void 0:e.emailAddresses)==null?void 0:o[0])==null?void 0:c.emailAddress)||"User",s=t?n||"Pro":"Free plan";return R.jsxs("div",{className:"flex items-center gap-3 rounded-xl p-2 hover:bg-[var(--bg-hover)] transition-colors theme-transition",children:[R.jsx("div",{className:"shrink-0",children:r}),R.jsxs("div",{className:"min-w-0 flex-1",children:[R.jsx("div",{className:"truncate text-sm font-semibold",style:{color:"var(--text-primary)"},children:a}),R.jsx("div",{className:"truncate text-xs",style:{color:"var(--text-tertiary)"},children:s})]})]})},yY=({UserButtonComponent:e})=>R.jsx("div",{className:"grid place-items-center p-1",children:e}),_Y=({isOpen:e,onClose:t,onToggle:n,chats:r,activeChat:a,onSelectChat:s,onNewChat:o,onDeleteChat:c,user:d,isOnPaidPlan:f,tierName:m,UserButtonComponent:p,isAuthenticated:b})=>{const y=H.useMemo(()=>[...r||[]].sort((C,w)=>new Date(w.updatedAt)-new Date(C.updatedAt)),[r]),T=H.useMemo(()=>{const C={today:[],yesterday:[],previous7Days:[],previous30Days:[],older:[]},w=new Date,O=new Date(w.getFullYear(),w.getMonth(),w.getDate()),D=new Date(O);D.setDate(D.getDate()-1);const j=new Date(O);j.setDate(j.getDate()-7);const z=new Date(O);return z.setDate(z.getDate()-30),y.forEach(U=>{const ee=new Date(U.updatedAt);ee>=O?C.today.push(U):ee>=D?C.yesterday.push(U):ee>=j?C.previous7Days.push(U):ee>=z?C.previous30Days.push(U):C.older.push(U)}),C},[y]),x=(C,w)=>w!=null&&w.length?R.jsxs("div",{className:"mb-4",children:[R.jsx(gY,{children:C}),R.jsx("div",{className:"space-y-1",children:w.map(O=>R.jsx(bY,{chat:O,isActive:a===O.id,onSelect:s,onDelete:c},O.id))})]}):null;return R.jsxs(R.Fragment,{children:[R.jsx("div",{className:hr("fixed inset-0 z-40 md:hidden transition-opacity duration-300 ease-in-out",e?"opacity-100":"opacity-0 pointer-events-none"),style:{backgroundColor:"var(--bg-overlay)"},onClick:t,"aria-hidden":"true"}),R.jsxs("aside",{className:hr("fixed left-0 top-0 z-50 h-full","backdrop-blur supports-[backdrop-filter]:backdrop-blur-xl","transition-all duration-300 ease-in-out","flex flex-col",e?"translate-x-0":"-translate-x-full md:translate-x-0"),style:{width:`${e?bf.expanded:bf.collapsed}px`,backgroundColor:"var(--bg-sidebar)",borderRight:"1px solid var(--border-primary)"},children:[R.jsxs("div",{className:hr("flex h-full w-full flex-col","transition-opacity duration-200",e?"opacity-100":"opacity-0 pointer-events-none absolute inset-0"),children:[R.jsxs("div",{className:"flex h-14 items-center justify-between px-2",children:[R.jsxs("button",{onClick:o,className:hr("inline-flex items-center gap-2 rounded-xl px-2.5 py-2","hover:bg-[var(--bg-hover)] active:bg-[var(--bg-active)]","focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20","theme-transition"),style:{color:"var(--text-primary)"},"aria-label":"New chat",title:"New chat",children:[R.jsx(P6,{children:R.jsx(B6,{})}),R.jsx("span",{className:"text-sm font-semibold",children:"New"})]}),R.jsx("button",{onClick:n,className:hr("rounded-xl p-2 hover:bg-[var(--bg-hover)] active:bg-[var(--bg-active)]","focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20","theme-transition"),style:{color:"var(--text-primary)"},"aria-label":"Collapse sidebar",title:"Collapse",children:R.jsx(U6,{})})]}),R.jsx("div",{className:"mx-3",style:{borderTop:"1px solid var(--border-primary)"}}),R.jsx("div",{className:"flex-1 overflow-y-auto px-2 py-3 scrollbar-thin",children:y.length===0?R.jsx("div",{className:"px-2 py-10 text-center text-sm",style:{color:"var(--text-tertiary)"},children:"No chats yet"}):R.jsxs(R.Fragment,{children:[x("Today",T.today),x("Yesterday",T.yesterday),x("Previous 7 days",T.previous7Days),x("Previous 30 days",T.previous30Days),x("Older",T.older)]})}),R.jsx("div",{className:"p-2",style:{borderTop:"1px solid var(--border-primary)"},children:b&&d?R.jsx(vY,{user:d,isOnPaidPlan:f,tierName:m,UserButtonComponent:p}):R.jsxs("div",{className:"px-2 py-2 text-center text-xs",style:{color:"var(--text-tertiary)"},children:[r.length," / ",Zi.MAX_CHATS," chats"]})})]}),R.jsxs("div",{className:hr("hidden md:flex h-full w-full flex-col","transition-opacity duration-200",e?"opacity-0 pointer-events-none absolute inset-0":"opacity-100"),children:[R.jsx("div",{className:"flex h-14 items-center justify-center",children:R.jsx("button",{onClick:n,className:hr("rounded-xl p-2 hover:bg-[var(--bg-hover)] active:bg-[var(--bg-active)]","focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20","theme-transition"),style:{color:"var(--text-primary)"},"aria-label":"Expand sidebar",title:"Expand",children:R.jsx(U6,{})})}),R.jsx("div",{className:"px-1 py-2",children:R.jsx(pY,{onClick:o,icon:R.jsx(P6,{children:R.jsx(B6,{})}),isCollapsed:!0,"aria-label":"New chat",title:"New chat"})}),R.jsx("div",{className:"flex-1"}),b&&p&&R.jsx("div",{className:"p-2",style:{borderTop:"1px solid var(--border-primary)"},children:R.jsx(yY,{UserButtonComponent:p})})]})]}),R.jsx("button",{onClick:n,className:hr("fixed left-3 top-3 z-30 md:hidden","rounded-xl backdrop-blur","p-2 hover:bg-[var(--bg-hover)] active:bg-[var(--bg-active)]","focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20","theme-transition transition-opacity duration-300 ease-in-out",e?"opacity-0 pointer-events-none":"opacity-100"),style:{backgroundColor:"var(--bg-sidebar)",border:"1px solid var(--border-primary)",color:"var(--text-primary)"},"aria-label":"Open sidebar",title:"Open",children:R.jsx(dY,{})})]})},EY=({open:e,onClose:t,tier:n})=>e?R.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center backdrop-blur-md px-4",style:{backgroundColor:"var(--bg-overlay)"},children:R.jsxs("div",{className:"relative w-full max-w-xl rounded-3xl shadow-2xl overflow-hidden theme-transition",style:{background:"linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary))",border:"1px solid var(--border-primary)"},children:[R.jsx("div",{className:"absolute top-0 left-0 right-0 h-32 pointer-events-none opacity-50",style:{background:"linear-gradient(to bottom right, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05), transparent)"}}),R.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 backdrop-blur-sm transition-all duration-200 shadow-sm theme-transition",style:{backgroundColor:"var(--bg-primary)",border:"1px solid var(--border-primary)",color:"var(--text-tertiary)"},"aria-label":"Close",children:R.jsx("span",{className:"text-xl leading-none",children:"×"})}),R.jsxs("div",{className:"relative p-8 md:p-10",children:[R.jsxs("div",{className:"space-y-3 pr-8 mb-6",children:[R.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-blue-500/10 text-blue-500 border border-blue-500/20",children:[R.jsx("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 20 20",children:R.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"})}),R.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",children:"Upgrade Available"})]}),R.jsxs("h2",{className:"text-2xl md:text-3xl font-bold leading-tight",style:{color:"var(--text-primary)"},children:["Unlock"," ",R.jsx("span",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 bg-clip-text text-transparent",children:"Cycls Pass"})," ","features"]}),R.jsxs("p",{className:"text-base leading-relaxed",style:{color:"var(--text-secondary)"},children:["You've reached your free message limit. Upgrade to access the full"," ",R.jsx("span",{className:"font-semibold",style:{color:"var(--text-primary)"},children:"Cycls Pass"})," ","experience, priority AI, and unlimited messages."]})]}),R.jsx("div",{className:"relative -mx-2 mb-6",children:R.jsx("div",{className:"max-h-[420px] overflow-y-auto rounded-2xl backdrop-blur-sm shadow-inner scrollbar-thin",style:{backgroundColor:"var(--bg-tertiary)",border:"1px solid var(--border-primary)"},children:R.jsx(gO,{})})}),R.jsx("div",{className:"flex justify-end",children:R.jsx("button",{type:"button",onClick:t,className:"inline-flex items-center gap-2 rounded-xl px-5 py-2.5 text-sm font-medium transition-all duration-200 hover:bg-[var(--bg-hover)] theme-transition",style:{color:"var(--text-secondary)"},children:"Maybe later"})})]})]})}):null,TY=({afterUrl:e})=>{const t=ls(),{resolvedTheme:n}=$5(),r=t.hash==="#sign-up/"||t.hash==="#sign-up"?"sign-up":"sign-in",a={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 R.jsxs("div",{className:"min-h-screen flex items-center justify-center px-4 theme-transition",style:{backgroundColor:"var(--bg-secondary)"},children:[R.jsx("div",{className:"fixed top-4 right-4",children:R.jsx(Y5,{})}),R.jsx("div",{className:"w-full max-w-md",children:r==="sign-in"?R.jsxs("div",{className:"space-y-4",children:[R.jsx(lO,{routing:"virtual",fallbackRedirectUrl:e,signUpUrl:"#sign-up",appearance:a}),R.jsx("div",{style:{marginLeft:"-30px"},className:"text-center",children:R.jsxs("p",{className:"text-sm",style:{color:"var(--text-secondary)"},children:["Don't have an account?"," ",R.jsx("a",{href:"#sign-up/",className:"font-medium hover:underline transition-colors",style:{color:"var(--accent-primary)"},children:"Sign up"})]})})]}):R.jsxs("div",{className:"space-y-4",children:[R.jsx(oO,{routing:"virtual",fallbackRedirectUrl:e,signInUrl:"#sign-in",appearance:a}),R.jsx("div",{style:{marginLeft:"-40px"},className:"text-center",children:R.jsxs("p",{className:"text-sm",style:{color:"var(--text-secondary)"},children:["Already have an account?"," ",R.jsx("a",{href:"#sign-in/",className:"font-medium hover:underline transition-colors",style:{color:"var(--accent-primary)"},children:"Sign in"})]})})]})})]})},xY=({children:e})=>R.jsxs(R.Fragment,{children:[R.jsx(QN,{children:e}),R.jsx(ZN,{children:R.jsx(n8,{to:"/auth",replace:!0})})]});en(({clerk:e,children:t,...n})=>{const{planId:r,planPeriod:a,for:s,onSubscriptionComplete:o,newSubscriptionRedirectUrl:c,checkoutProps:d,...f}=n,{userId:m,orgId:p}=C0();if(m===null)throw new Error("Clerk: Ensure that `<CheckoutButton />` is rendered inside a `<SignedIn />` component.");if(p===null&&s==="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=Wl(t,"Checkout");const b=Kl(t)("CheckoutButton"),y=()=>{if(e)return e.__internal_openCheckout({planId:r,planPeriod:a,for:s,onSubscriptionComplete:o,newSubscriptionRedirectUrl:c,...d})},x={...f,onClick:async C=>(b&&typeof b=="object"&&"props"in b&&await Xl(b.props.onClick)(C),y())};return ce.cloneElement(b,x)},{component:"CheckoutButton",renderWhileLoading:!0});en(({clerk:e,children:t,...n})=>{const{plan:r,planId:a,initialPlanPeriod:s,planDetailsProps:o,...c}=n;t=Wl(t,"Plan details");const d=Kl(t)("PlanDetailsButton"),f=()=>{if(e)return e.__internal_openPlanDetails({plan:r,planId:a,initialPlanPeriod:s,...o})},p={...c,onClick:async b=>(d&&typeof d=="object"&&"props"in d&&await Xl(d.props.onClick)(b),f())};return ce.cloneElement(d,p)},{component:"PlanDetailsButton",renderWhileLoading:!0});en(({clerk:e,children:t,...n})=>{const{for:r,subscriptionDetailsProps:a,onSubscriptionCancel:s,...o}=n;t=Wl(t,"Subscription details");const c=Kl(t)("SubscriptionDetailsButton"),{userId:d,orgId:f}=C0();if(d===null)throw new Error("Clerk: Ensure that `<SubscriptionDetailsButton />` is rendered inside a `<SignedIn />` component.");if(f===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 m=()=>{if(e)return e.__internal_openSubscriptionDetails({for:r,onSubscriptionCancel:s,...a})},b={...o,onClick:async y=>(c&&typeof c=="object"&&"props"in c&&await Xl(c.props.onClick)(y),m())};return ce.cloneElement(c,b)},{component:"SubscriptionDetailsButton",renderWhileLoading:!0});const dS=H.createContext({subscription:null,isLoading:!1,error:null,revalidate:()=>{}}),SY=()=>H.useContext(dS),wY=({tier:e,children:t})=>{const{data:n,isLoading:r,error:a,revalidate:s}=vN({enabled:e==="cycls_pass"}),o=H.useMemo(()=>({subscription:n,isLoading:r,error:a,revalidate:s}),[n,r,a,s]);return R.jsx(dS.Provider,{value:o,children:t})};async function AY(e,t,{signal:n}={}){const r=e.body.getReader(),a=new TextDecoder;let s="";for(;;){if(n!=null&&n.aborted)throw new DOMException("Aborted","AbortError");const{value:o,done:c}=await r.read();if(c)break;if(o){const d=a.decode(o,{stream:!0});s+=d;let f;for(;(f=s.indexOf(`
|
|
407
|
-
`))!==-1;){const m=s.slice(0,f).trim();if(s=s.slice(f+1),!m||!m.startsWith("data: "))continue;const p=m.slice(6);if(p==="[DONE]")return;try{const b=JSON.parse(p);t(b)}catch(b){console.error("Failed to parse SSE payload:",b,p)}}}}}async function kY(e){const t=await fetch("/config",{method:"GET",credentials:"include",signal:e});if(!t.ok)throw new Error("Metadata request failed: "+t.status);return t.json()}async function Ab({messages:e,auth:t,getToken:n,setActive:r,org:a,onPart:s,signal:o}){const c=e.map(({role:m,content:p,parts:b})=>{if(m){if(b){const j=b.map(z=>z.type==="text"?z.text:z.type==="thinking"?`<thinking>${z.thinking}</thinking>`:z.type==="code"?"```"+(z.language||"")+`
|
|
408
|
-
`+z.code+"\n```":"").join(`
|
|
409
|
-
|
|
410
|
-
`);return{role:m,content:j}}const{clean:w,attachments:O}=y0(p);if(O.length===0)return{role:m,content:w};const D=[];w.trim()&&D.push({type:"text",text:w});for(const j of O)j.mime&&j.mime.startsWith("image/")?D.push({type:"image_url",image_url:{url:j.url}}):D.push({type:"file",text:"[File attached: "+j.name+`]
|
|
411
|
-
File URL: `+j.url+`
|
|
412
|
-
File type: `+(j.mime||"unknown")});return{role:m,content:D}}const y=m||(e.type==="request"?"user":"assistant"),{clean:T,attachments:x}=y0(p);if(x.length===0)return{role:y,content:T};const C=[];T.trim()&&C.push({type:"text",text:T});for(const w of x)w.mime&&w.mime.startsWith("image/")?C.push({type:"image_url",image_url:{url:w.url}}):C.push({type:"file",text:"[File attached: "+w.name+`]
|
|
413
|
-
File URL: `+w.url+`
|
|
414
|
-
File type: `+(w.mime||"unknown")});return{role:y,content:C}}),d={"Content-Type":"application/json"};if(t&&n)try{const m=await n({template:"template"});if(m&&(d.Authorization="Bearer "+m),r&&a)try{await r({organization:a})}catch{}}catch{}const f=await fetch("/chat/cycls",{method:"POST",headers:d,body:JSON.stringify({messages:c}),signal:o});if(!f.ok){let m="server",p="Server returned "+f.status;if(f.status===429){m="rate_limit";const b=f.headers.get("Retry-After");p=b?"Too many requests. Please try again in "+b+" seconds.":"Too many requests. Please wait a moment and try again."}else f.status>=500?p="Server error. Please try again later.":(f.status===401||f.status===403)&&(p="Authentication error. Please refresh and try again.");throw{type:m,status:f.status,message:p}}await AY(f,s,{signal:o})}const vg="cycls_chat_history",Ch="cycls_active_chat",av="cycls_message_count";function hS(){try{const e=localStorage.getItem(av);return e?parseInt(e,10):0}catch{return 0}}function CY(){try{const e=hS();return localStorage.setItem(av,String(e+1)),e+1}catch{return 0}}function NY(){try{localStorage.removeItem(av)}catch{}}class ar{static getAllChats(){try{const t=localStorage.getItem(vg);return t?JSON.parse(t):[]}catch(t){return console.error("Error loading chat history:",t),[]}}static saveAllChats(t){try{localStorage.setItem(vg,JSON.stringify(t))}catch(n){console.error("Error saving chat history:",n)}}static getActiveChat(){try{return localStorage.getItem(Ch)}catch{return null}}static setActiveChat(t){try{localStorage.setItem(Ch,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>=Zi.MAX_CHATS&&(n.sort((a,s)=>new Date(a.createdAt)-new Date(s.createdAt)),n.shift()),n.push(r),this.saveAllChats(n),this.setActiveChat(r.id),r}static updateChat(t,n){const r=this.getAllChats(),a=r.findIndex(s=>s.id===t);a!==-1&&(r[a].messages=n,r[a].updatedAt=new Date().toISOString(),r[a].title=this.generateTitle(n),this.saveAllChats(r))}static deleteChat(t){const r=this.getAllChats().filter(a=>a.id!==t);this.saveAllChats(r),this.getActiveChat()===t&&localStorage.removeItem(Ch)}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(s=>s.type==="request");if(!n)return"New Chat";const{clean:r}=y0(n.content);return r.trim().slice(0,50)||"New Chat"}static clearAll(){try{localStorage.removeItem(vg),localStorage.removeItem(Ch)}catch(t){console.error("Error clearing chat history:",t)}}}var ge=typeof window<"u"?window:void 0,Er=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(Er.self=Er),typeof File>"u"&&(Er.File=function(){});var fS=Array.prototype,F6=fS.forEach,z6=fS.indexOf,ya=Er==null?void 0:Er.navigator,je=Er==null?void 0:Er.document,ta=Er==null?void 0:Er.location,kb=Er==null?void 0:Er.fetch,Cb=Er!=null&&Er.XMLHttpRequest&&"withCredentials"in new Er.XMLHttpRequest?Er.XMLHttpRequest:void 0,H6=Er==null?void 0:Er.AbortController,ea=ya==null?void 0:ya.userAgent,ht=ge??{},Yi={DEBUG:!1,LIB_VERSION:"1.306.2"};function q6(e,t,n,r,a,s,o){try{var c=e[s](o),d=c.value}catch(f){return void n(f)}c.done?t(d):Promise.resolve(d).then(r,a)}function j6(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var s=e.apply(t,n);function o(d){q6(s,r,a,o,c,"next",d)}function c(d){q6(s,r,a,o,c,"throw",d)}o(void 0)})}}function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xe.apply(null,arguments)}function mS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var OY=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],$6=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return OY.concat(t).some(r=>{var a=r.toLowerCase();return n.indexOf(a)!==-1})},RY=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Lt(e,t){return e.indexOf(t)!==-1}var lm=function(e){return e.trim()},Nb=function(e){return e.replace(/^\$/,"")},MY=Array.isArray,pS=Object.prototype,gS=pS.hasOwnProperty,om=pS.toString,Xt=MY||function(e){return om.call(e)==="[object Array]"},tl=e=>typeof e=="function",fr=e=>e===Object(e)&&!Xt(e),Vo=e=>{if(fr(e)){for(var t in e)if(gS.call(e,t))return!1;return!0}return!1},ze=e=>e===void 0,ir=e=>om.call(e)=="[object String]",Ob=e=>ir(e)&&e.trim().length===0,ds=e=>e===null,Wt=e=>ze(e)||ds(e),bi=e=>om.call(e)=="[object Number]",nl=e=>om.call(e)==="[object Boolean]",IY=e=>e instanceof FormData,DY=e=>Lt(RY,e);function Rb(e){return e===null||typeof e!="object"}function vf(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function bS(e){return!ze(Event)&&function(t,n){try{return t instanceof n}catch{return!1}}(e,Event)}var LY=[!0,"true",1,"1","yes"],yg=e=>Lt(LY,e),PY=[!1,"false",0,"0","no"];function mi(e,t,n,r,a){return t>n&&(r.warn("min cannot be greater than max."),t=n),bi(e)?e>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):e<t?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+a),mi(a||n,t,n,r))}class BY{constructor(t){this.t={},this.i=t.i,this.o=mi(t.bucketSize,0,100,t.h),this.m=mi(t.refillRate,0,this.o,t.h),this.S=mi(t.refillInterval,0,864e5,t.h)}$(t,n){var r=n-t.lastAccess,a=Math.floor(r/this.S);if(a>0){var s=a*this.m;t.tokens=Math.min(t.tokens+s,this.o),t.lastAccess=t.lastAccess+a*this.S}}consumeRateLimit(t){var n,r=Date.now(),a=String(t),s=this.t[a];return s?this.$(s,r):(s={tokens:this.o,lastAccess:r},this.t[a]=s),s.tokens===0||(s.tokens--,s.tokens===0&&((n=this.i)==null||n.call(this,t)),s.tokens===0)}stop(){this.t={}}}var Nh,Y6,_g,UY=e=>e instanceof Error;function FY(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return _g&&n.length===Y6||(Y6=n.length,_g=n.reduce((r,a)=>{Nh||(Nh={});var s=Nh[a];if(s)r[s[0]]=s[1];else for(var o=e(a),c=o.length-1;c>=0;c--){var d=o[c],f=d==null?void 0:d.filename,m=t[a];if(f&&m){r[f]=m,Nh[a]=[f,m];break}}return r},{})),_g}}class zY{constructor(t,n,r){r===void 0&&(r=[]),this.coercers=t,this.stackParser=n,this.modifiers=r}buildFromUnknown(t,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},a=this.buildCoercingContext(r,n,0).apply(t),s=this.buildParsingContext(),o=this.parseStacktrace(a,s);return{$exception_list:this.convertToExceptionList(o,r),$exception_level:"error"}}modifyFrames(t){var n=this;return j6(function*(){for(var r of t)r.stacktrace&&r.stacktrace.frames&&Xt(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return t})()}coerceFallback(t){var n;return{type:"Error",value:"Unknown error",stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(t,n){var r,a;return t.cause!=null&&(r=this.parseStacktrace(t.cause,n)),t.stack!=""&&t.stack!=null&&(a=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?1:0),n.chunkIdMap)),Xe({},t,{cause:r,stack:a})}applyChunkIds(t,n){return t.map(r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r))}applyCoercers(t,n){for(var r of this.coercers)if(r.match(t))return r.coerce(t,n);return this.coerceFallback(n)}applyModifiers(t){var n=this;return j6(function*(){var r=t;for(var a of n.modifiers)r=yield a(r);return r})()}convertToExceptionList(t,n){var r,a,s,o={type:t.type,value:t.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(a=n.handled)===null||a===void 0||a,synthetic:(s=t.synthetic)!==null&&s!==void 0&&s}};t.stack&&(o.stacktrace={type:"raw",frames:t.stack});var c=[o];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Xe({},n,{handled:!0}))),c}buildParsingContext(){return{chunkIdMap:FY(this.stackParser)}}buildCoercingContext(t,n,r){r===void 0&&(r=0);var a=(s,o)=>{if(o<=4){var c=this.buildCoercingContext(t,n,o);return this.applyCoercers(s,c)}};return Xe({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:t,apply:s=>a(s,r),next:s=>a(s,r+1)})}}var iu="?";function Mb(e,t,n,r,a){var s={platform:e,filename:t,function:n==="<anonymous>"?iu:n,in_app:!0};return ze(r)||(s.lineno=r),ze(a)||(s.colno=a),s}var vS=(e,t)=>{var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:iu,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},HY=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qY=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,jY=/\((\S*)(?::(\d+))(?::(\d+))\)/,$Y=(e,t)=>{var n=HY.exec(e);if(n){var[,r,a,s]=n;return Mb(t,r,iu,+a,+s)}var o=qY.exec(e);if(o){if(o[2]&&o[2].indexOf("eval")===0){var c=jY.exec(o[2]);c&&(o[2]=c[1],o[3]=c[2],o[4]=c[3])}var[d,f]=vS(o[1]||iu,o[2]);return Mb(t,f,d,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},YY=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,GY=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,VY=(e,t)=>{var n=YY.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=GY.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var a=n[3],s=n[1]||iu;return[s,a]=vS(s,a),Mb(t,a,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},G6=/\(error: (.*)\)/,V6=50;function KY(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(a,s){s===void 0&&(s=0);for(var o=[],c=a.split(`
|
|
415
|
-
`),d=s;d<c.length;d++){var f=c[d];if(!(f.length>1024)){var m=G6.test(f)?f.replace(G6,"$1"):f;if(!m.match(/\S*Error: /)){for(var p of n){var b=p(m,e);if(b){o.push(b);break}}if(o.length>=V6)break}}}return function(y){if(!y.length)return[];var T=Array.from(y);return T.reverse(),T.slice(0,V6).map(x=>{return Xe({},x,{filename:x.filename||(C=T,C[C.length-1]||{}).filename,function:x.function||iu});var C})}(o)}}class WY{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,n){var r=ir(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:r?t.stack:void 0,cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var n=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?n+": "+t.message:n}isDOMException(t){return vf(t,"DOMException")}isDOMError(t){return vf(t,"DOMError")}}class XY{match(t){return(n=>n instanceof Error)(t)}coerce(t,n){return{type:this.getType(t),value:this.getMessage(t,n),stack:this.getStack(t),cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,n){var r=t.message;return r.error&&typeof r.error.message=="string"?String(r.error.message):String(r)}getStack(t){return t.stacktrace||t.stack||void 0}}class QY{constructor(){}match(t){return vf(t,"ErrorEvent")&&t.error!=null}coerce(t,n){var r,a=n.apply(t.error);return a||{type:"ErrorEvent",value:t.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var ZY=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class JY{match(t){return typeof t=="string"}coerce(t,n){var r,[a,s]=this.getInfos(t);return{type:a??"Error",value:s??t,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(t){var n="Error",r=t,a=t.match(ZY);return a&&(n=a[1],r=a[2]),[n,r]}}var eG=["fatal","error","warning","log","info","debug"];function yS(e,t){t===void 0&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var a=n.slice(0,r).join(", ");if(!(a.length>t))return r===n.length||a.length<=t?a:a.slice(0,t)+"..."}return""}class tG{match(t){return typeof t=="object"&&t!==null}coerce(t,n){var r,a=this.getErrorPropertyFromObject(t);return a?n.apply(a):{type:this.getType(t),value:this.getValue(t),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return bS(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var n="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(n+=" with message: '"+t.message+"'"),n}if("message"in t&&typeof t.message=="string")return t.message;var r=this.getObjectClassName(t);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+yS(t)}isSeverityLevel(t){return ir(t)&&!Ob(t)&&eG.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];if(UY(r))return r}}getObjectClassName(t){try{var n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{return}}}class nG{match(t){return bS(t)}coerce(t,n){var r,a=t.constructor.name;return{type:a,value:a+" captured as exception with keys: "+yS(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class rG{match(t){return Rb(t)}coerce(t,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class aG{match(t){return vf(t,"PromiseRejectionEvent")}coerce(t,n){var r,a=this.getUnhandledRejectionReason(t);return Rb(a)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(a),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(a)}getUnhandledRejectionReason(t){if(Rb(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var _S=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,r={k:function(a){if(ge&&(Yi.DEBUG||ht.POSTHOG_DEBUG||n)&&!ze(ge.console)&&ge.console){for(var s=("__rrweb_original__"in ge.console[a])?ge.console[a].__rrweb_original__:ge.console[a],o=arguments.length,c=new Array(o>1?o-1:0),d=1;d<o;d++)c[d-1]=arguments[d];s(e,...c)}},info:function(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];r.k("log",...s)},warn:function(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];r.k("warn",...s)},error:function(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];r.k("error",...s)},critical:function(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];console.error(e,...s)},uninitializedWarning:a=>{r.error("You must initialize PostHog before calling "+a)},createLogger:(a,s)=>_S(e+" "+a,s)};return r},Ye=_S("[PostHog.js]"),er=Ye.createLogger,iG=er("[ExternalScriptsLoader]"),K6=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return iG.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=je==null?void 0:je.querySelectorAll("script");if(r){for(var a,s=function(){if(r[o].src===t){var d=r[o];return d.__posthog_loading_callback_fired?{v:n()}:(d.addEventListener("load",f=>{d.__posthog_loading_callback_fired=!0,n(void 0,f)}),d.onerror=f=>n(f),{v:void 0})}},o=0;o<r.length;o++)if(a=s())return a.v}var c=()=>{if(!je)return n("document not found");var d=je.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=t,d.onload=p=>{d.__posthog_loading_callback_fired=!0,n(void 0,p)},d.onerror=p=>n(p),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return n("prepare_external_dependency_script returned null");var f,m=je.querySelectorAll("body > script");m.length>0?(f=m[0].parentNode)==null||f.insertBefore(d,m[0]):je.body.appendChild(d)};je!=null&&je.body?c():je==null||je.addEventListener("DOMContentLoaded",c)};ht.__PosthogExtensions__=ht.__PosthogExtensions__||{},ht.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{var r="/static/"+t+".js?v="+e.version;if(t==="remote-config"&&(r="/array/"+e.config.token+"/config.js"),t==="toolbar"){var a=3e5;r=r+"&t="+Math.floor(Date.now()/a)*a}var s=e.requestRouter.endpointFor("assets",r);K6(e,s,n)},ht.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);K6(e,r,n)};var yf={};function rl(e,t,n){if(Xt(e)){if(F6&&e.forEach===F6)e.forEach(t,n);else if("length"in e&&e.length===+e.length){for(var r=0,a=e.length;r<a;r++)if(r in e&&t.call(n,e[r],r)===yf)return}}}function mn(e,t,n){if(!Wt(e)){if(Xt(e))return rl(e,t,n);if(IY(e)){for(var r of e.entries())if(t.call(n,r[1],r[0])===yf)return}else for(var a in e)if(gS.call(e,a)&&t.call(n,e[a],a)===yf)return}}var qn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return rl(n,function(a){for(var s in a)a[s]!==void 0&&(e[s]=a[s])}),e},Eu=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return rl(n,function(a){rl(a,function(s){e.push(s)})}),e};function Kh(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var W6=function(e){try{return e()}catch{return}},sG=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(a){Ye.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ye.critical(a)}}},iv=function(e){var t={};return mn(e,function(n,r){(ir(n)&&n.length>0||bi(n))&&(t[r]=n)}),t};function lG(e,t){return n=e,r=s=>ir(s)&&!ds(t)?s.slice(0,t):s,a=new Set,function s(o,c){return o!==Object(o)?r?r(o,c):o:a.has(o)?void 0:(a.add(o),Xt(o)?(d=[],rl(o,f=>{d.push(s(f))})):(d={},mn(o,(f,m)=>{a.has(f)||(d[m]=s(f,m))})),d);var d}(n);var n,r,a}var oG=["herokuapp.com","vercel.app","netlify.app"];function uG(e){var t=e==null?void 0:e.hostname;if(!ir(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of oG)if(n===r)return!1;return!0}function ES(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function Zn(e,t,n,r){var{capture:a=!1,passive:s=!0}=r??{};e==null||e.addEventListener(t,n,{capture:a,passive:s})}var TS="$people_distinct_id",$c="__alias",Yc="__timers",X6="$autocapture_disabled_server_side",Ib="$heatmaps_enabled_server_side",Q6="$exception_capture_enabled_server_side",Db="$error_tracking_suppression_rules",Z6="$error_tracking_capture_extension_exceptions",J6="$web_vitals_enabled_server_side",xS="$dead_clicks_enabled_server_side",e5="$web_vitals_allowed_metrics",Eg="$session_recording_remote_config",_f="$sesid",SS="$session_is_sampled",Ko="$enabled_feature_flags",Gc="$early_access_features",Lb="$feature_flag_details",Vc="$stored_person_properties",Hl="$stored_group_properties",Pb="$surveys",Oh="$surveys_activated",Ef="$flag_call_reported",Gi="$user_state",Bb="$client_session_props",Ub="$capture_rate_limit",Fb="$initial_campaign_params",zb="$initial_referrer_info",Tf="$initial_person_info",xf="$epp",wS="__POSTHOG_TOOLBAR__",Mc="$posthog_cookieless",cG=[TS,$c,"__cmpns",Yc,"$session_recording_enabled_server_side",Ib,_f,Ko,Db,Gi,Gc,Lb,Hl,Vc,Pb,Ef,Bb,Ub,Fb,zb,xf,Tf];function t5(e){return e instanceof Element&&(e.id===wS||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function um(e){return!!e&&e.nodeType===1}function al(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function AS(e){return!!e&&e.nodeType===3}function kS(e){return!!e&&e.nodeType===11}function sv(e){return e?lm(e).split(/\s+/):[]}function n5(e){var t=ge==null?void 0:ge.location.href;return!!(t&&e&&e.some(n=>t.match(n)))}function Sf(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return sv(t)}function CS(e){return Wt(e)?null:lm(e).split(/(\s+)/).filter(t=>_0(t)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function q0(e){var t="";return Hb(e)&&!IS(e)&&e.childNodes&&e.childNodes.length&&mn(e.childNodes,function(n){var r;AS(n)&&n.textContent&&(t+=(r=CS(n.textContent))!==null&&r!==void 0?r:"")}),lm(t)}function NS(e){return ze(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var lv=["a","button","form","input","select","textarea","label"];function OS(e,t){if(ze(t))return!0;var n,r=function(s){if(t.some(o=>s.matches(o)))return{v:!0}};for(var a of e)if(n=r(a))return n.v;return!1}function RS(e){var t=e.parentNode;return!(!t||!um(t))&&t}var dG=["next","previous","prev",">","<"],r5=10,a5=[".ph-no-rageclick",".ph-no-capture"];function hG(e,t){if(!ge||ov(e))return!1;var n,r,a;if(nl(t)?(n=!!t&&a5,r=void 0):(n=(a=t==null?void 0:t.css_selector_ignorelist)!==null&&a!==void 0?a:a5,r=t==null?void 0:t.content_ignorelist),n===!1)return!1;var{targetElementList:s}=MS(e,!1);return!function(o,c){if(o===!1||ze(o))return!1;var d;if(o===!0)d=dG;else{if(!Xt(o))return!1;if(o.length>r5)return Ye.error("[PostHog] content_ignorelist array cannot exceed "+r5+" items. Use css_selector_ignorelist for more complex matching."),!1;d=o.map(f=>f.toLowerCase())}return c.some(f=>{var{safeText:m,ariaLabel:p}=f;return d.some(b=>m.includes(b)||p.includes(b))})}(r,s.map(o=>{var c;return{safeText:q0(o).toLowerCase(),ariaLabel:((c=o.getAttribute("aria-label"))==null?void 0:c.toLowerCase().trim())||""}}))&&!OS(s,n)}var ov=e=>!e||al(e,"html")||!um(e),MS=(e,t)=>{if(!ge||ov(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],a=e;a.parentNode&&!al(a,"body");)if(kS(a.parentNode))r.push(a.parentNode.host),a=a.parentNode.host;else{var s=RS(a);if(!s)break;if(t||lv.indexOf(s.tagName.toLowerCase())>-1)n=!0;else{var o=ge.getComputedStyle(s);o&&o.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(s),a=s}return{parentIsUsefulElement:n,targetElementList:r}};function fG(e,t,n,r,a){var s,o,c,d;if(n===void 0&&(n=void 0),!ge||ov(e)||(s=n)!=null&&s.url_allowlist&&!n5(n.url_allowlist)||(o=n)!=null&&o.url_ignorelist&&n5(n.url_ignorelist))return!1;if((c=n)!=null&&c.dom_event_allowlist){var f=n.dom_event_allowlist;if(f&&!f.some(T=>t.type===T))return!1}var{parentIsUsefulElement:m,targetElementList:p}=MS(e,r);if(!function(T,x){var C=x==null?void 0:x.element_allowlist;if(ze(C))return!0;var w,O=function(j){if(C.some(z=>j.tagName.toLowerCase()===z))return{v:!0}};for(var D of T)if(w=O(D))return w.v;return!1}(p,n)||!OS(p,(d=n)==null?void 0:d.css_selector_allowlist))return!1;var b=ge.getComputedStyle(e);if(b&&b.getPropertyValue("cursor")==="pointer"&&t.type==="click")return!0;var y=e.tagName.toLowerCase();switch(y){case"html":return!1;case"form":return(a||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(a||["change","click"]).indexOf(t.type)>=0;default:return m?(a||["click"]).indexOf(t.type)>=0:(a||["click"]).indexOf(t.type)>=0&&(lv.indexOf(y)>-1||e.getAttribute("contenteditable")==="true")}}function Hb(e){for(var t=e;t.parentNode&&!al(t,"body");t=t.parentNode){var n=Sf(t);if(Lt(n,"ph-sensitive")||Lt(n,"ph-no-capture"))return!1}if(Lt(Sf(e),"ph-include"))return!0;var r=e.type||"";if(ir(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var a=e.name||e.id||"";return!(ir(a)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,"")))}function IS(e){return!!(al(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||al(e,"select")||al(e,"textarea")||e.getAttribute("contenteditable")==="true")}var DS="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",mG=new RegExp("^(?:"+DS+")$"),pG=new RegExp(DS),LS="\\d{3}-?\\d{2}-?\\d{4}",gG=new RegExp("^("+LS+")$"),bG=new RegExp("("+LS+")");function _0(e,t){return t===void 0&&(t=!0),!(Wt(e)||ir(e)&&(e=lm(e),(t?mG:pG).test((e||"").replace(/[- ]/g,""))||(t?gG:bG).test(e)))}function PS(e){var t=q0(e);return _0(t=(t+" "+BS(e)).trim())?t:""}function BS(e){var t="";return e&&e.childNodes&&e.childNodes.length&&mn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var a=q0(n);t=(t+" "+a).trim(),n.childNodes&&n.childNodes.length&&(t=(t+" "+BS(n)).trim())}catch(s){Ye.error("[AutoCapture]",s)}}),t}function vG(e){return function(t){var n=t.map(r=>{var a,s,o="";if(r.tag_name&&(o+=r.tag_name),r.attr_class)for(var c of(r.attr_class.sort(),r.attr_class))o+="."+c.replace(/"/g,"");var d=Xe({},r.text?{text:r.text}:{},{"nth-child":(a=r.nth_child)!==null&&a!==void 0?a:0,"nth-of-type":(s=r.nth_of_type)!==null&&s!==void 0?s:0},r.href?{href:r.href}:{},r.attr_id?{attr_id:r.attr_id}:{},r.attributes),f={};return Kh(d).sort((m,p)=>{var[b]=m,[y]=p;return b.localeCompare(y)}).forEach(m=>{var[p,b]=m;return f[i5(p.toString())]=i5(b.toString())}),o+=":",o+=Kh(f).map(m=>{var[p,b]=m;return p+'="'+b+'"'}).join("")});return n.join(";")}(function(t){return t.map(n=>{var r,a,s={text:(r=n.$el_text)==null?void 0:r.slice(0,400),tag_name:n.tag_name,href:(a=n.attr__href)==null?void 0:a.slice(0,2048),attr_class:yG(n),attr_id:n.attr__id,nth_child:n.nth_child,nth_of_type:n.nth_of_type,attributes:{}};return Kh(n).filter(o=>{var[c]=o;return c.indexOf("attr__")===0}).forEach(o=>{var[c,d]=o;return s.attributes[c]=d}),s})}(e))}function i5(e){return e.replace(/"|\\"/g,'\\"')}function yG(e){var t=e.attr__class;return t?Xt(t)?t:sv(t):void 0}class US{constructor(t){this.disabled=t===!1;var n=fr(t)?t:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(t,n,r){if(this.disabled)return!1;var a=this.clicks[this.clicks.length-1];if(a&&Math.abs(t-a.x)+Math.abs(n-a.y)<this.thresholdPx&&r-a.timestamp<this.timeoutMs){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}var Tg="$copy_autocapture",Qi=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),wf=e=>{var t=je==null?void 0:je.createElement("a");return ze(t)?null:(t.href=e,t)},_G=function(e,t){var n,r;t===void 0&&(t="&");var a=[];return mn(e,function(s,o){ze(s)||ze(o)||o==="undefined"||(n=encodeURIComponent((c=>c instanceof File)(s)?s.name:s.toString()),r=encodeURIComponent(o),a[a.length]=r+"="+n)}),a.join(t)},Af=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),a=0;a<r.length;a++){var s=r[a].split("=");if(s[0]===t){n=s;break}}if(!Xt(n)||n.length<2)return"";var o=n[1];try{o=decodeURIComponent(o)}catch{Ye.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},j0=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),a=r[0]||"",s=r[1],o=a.split("?"),c=o[1],d=o[0],f=(c||"").split("&"),m=[],p=0;p<f.length;p++){var b=f[p].split("=");Xt(b)&&(t.includes(b[0])?m.push(b[0]+"="+n):m.push(f[p]))}var y=d;return c!=null&&(y+="?"+m.join("&")),s!=null&&(y+="#"+s),y},kf=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},s5=er("[AutoCapture]");function xg(e,t){return t.length>e?t.slice(0,e)+"...":t}function EG(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!um(t));return t}function TG(e,t,n,r){var a=e.tagName.toLowerCase(),s={tag_name:a};lv.indexOf(a)>-1&&!n&&(a.toLowerCase()==="a"||a.toLowerCase()==="button"?s.$el_text=xg(1024,PS(e)):s.$el_text=xg(1024,q0(e)));var o=Sf(e);o.length>0&&(s.classes=o.filter(function(m){return m!==""})),mn(e.attributes,function(m){var p;if((!IS(e)||["name","id","class","aria-label"].indexOf(m.name)!==-1)&&(r==null||!r.includes(m.name))&&!t&&_0(m.value)&&(p=m.name,!ir(p)||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")){var b=m.value;m.name==="class"&&(b=sv(b).join(" ")),s["attr__"+m.name]=xg(1024,b)}});for(var c=1,d=1,f=e;f=EG(f);)c++,f.tagName===e.tagName&&d++;return s.nth_child=c,s.nth_of_type=d,s}function xG(e,t){for(var n,r,{e:a,maskAllElementAttributes:s,maskAllText:o,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,f=[e],m=e;m.parentNode&&!al(m,"body");)kS(m.parentNode)?(f.push(m.parentNode.host),m=m.parentNode.host):(f.push(m.parentNode),m=m.parentNode);var p,b=[],y={},T=!1,x=!1;if(mn(f,j=>{var z=Hb(j);j.tagName.toLowerCase()==="a"&&(T=j.getAttribute("href"),T=z&&T&&_0(T)&&T),Lt(Sf(j),"ph-no-capture")&&(x=!0),b.push(TG(j,s,o,c));var U=function(ee){if(!Hb(ee))return{};var Z={};return mn(ee.attributes,function(Q){if(Q.name&&Q.name.indexOf("data-ph-capture-attribute")===0){var G=Q.name.replace("data-ph-capture-attribute-",""),se=Q.value;G&&se&&_0(se)&&(Z[G]=se)}}),Z}(j);qn(y,U)}),x)return{props:{},explicitNoCapture:x};if(o||(e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?b[0].$el_text=PS(e):b[0].$el_text=q0(e)),T){var C,w;b[0].attr__href=T;var O=(C=wf(T))==null?void 0:C.host,D=ge==null||(w=ge.location)==null?void 0:w.host;O&&D&&O!==D&&(p=T)}return{props:qn({$event_type:a.type,$ce_version:1},d?{}:{$elements:b},{$elements_chain:vG(b)},(n=b[0])!=null&&n.$el_text?{$el_text:(r=b[0])==null?void 0:r.$el_text}:{},p&&a.type==="click"?{$external_click_url:p}:{},y)}}class SG{constructor(t){this.P=!1,this.T=null,this.R=!1,this.instance=t,this.rageclicks=new US(t.config.rageclick),this.C=null}get I(){var t,n,r=fr(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=(t=r.url_allowlist)==null?void 0:t.map(a=>new RegExp(a)),r.url_ignorelist=(n=r.url_ignorelist)==null?void 0:n.map(a=>new RegExp(a)),r}F(){if(this.isBrowserSupported()){if(ge&&je){var t=r=>{r=r||(ge==null?void 0:ge.event);try{this.M(r)}catch(a){s5.error("Failed to capture event",a)}};if(Zn(je,"submit",t,{capture:!0}),Zn(je,"change",t,{capture:!0}),Zn(je,"click",t,{capture:!0}),this.I.capture_copied_text){var n=r=>{r=r||(ge==null?void 0:ge.event),this.M(r,Tg)};Zn(je,"copy",n,{capture:!0}),Zn(je,"cut",n,{capture:!0})}}}else s5.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.F(),this.P=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.R=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[X6]:!!t.autocapture_opt_out}),this.T=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.C=t}getElementSelectors(t){var n,r=[];return(n=this.C)==null||n.forEach(a=>{var s=je==null?void 0:je.querySelectorAll(a);s==null||s.forEach(o=>{t===o&&r.push(a)})}),r}get isEnabled(){var t,n,r=(t=this.instance.persistence)==null?void 0:t.props[X6],a=this.T;if(ds(a)&&!nl(r)&&!this.instance.O())return!1;var s=(n=this.T)!==null&&n!==void 0?n:!!r;return!!this.instance.config.autocapture&&!s}M(t,n){if(n===void 0&&(n="$autocapture"),this.isEnabled){var r,a=NS(t);AS(a)&&(a=a.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(r=this.rageclicks)!=null&&r.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&hG(a,this.instance.config.rageclick)&&this.M(t,"$rageclick");var s=n===Tg;if(a&&fG(a,t,this.I,s,s?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:c}=xG(a,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.I.element_attribute_ignorelist,elementsChainAsString:this.R});if(c)return!1;var d=this.getElementSelectors(a);if(d&&d.length>0&&(o.$element_selectors=d),n===Tg){var f,m=CS(ge==null||(f=ge.getSelection())==null?void 0:f.toString()),p=t.type||"clipboard";if(!m)return!1;o.$selected_content=m,o.$copy_type=p}return this.instance.capture(n,o),!0}}}isBrowserSupported(){return tl(je==null?void 0:je.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return bi(e)&&isFinite(e)&&Math.floor(e)===e});var l5="0123456789abcdef";class Cf{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,r,a){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(a)||t<0||n<0||r<0||a<0||t>0xffffffffffff||n>4095||r>1073741823||a>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=t/Math.pow(2,40),s[1]=t/Math.pow(2,32),s[2]=t/Math.pow(2,24),s[3]=t/Math.pow(2,16),s[4]=t/Math.pow(2,8),s[5]=t,s[6]=112|n>>>8,s[7]=n,s[8]=128|r>>>24,s[9]=r>>>16,s[10]=r>>>8,s[11]=r,s[12]=a>>>24,s[13]=a>>>16,s[14]=a>>>8,s[15]=a,new Cf(s)}toString(){for(var t="",n=0;n<this.bytes.length;n++)t=t+l5.charAt(this.bytes[n]>>>4)+l5.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Cf(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class wG{constructor(){this.A=0,this.D=0,this.j=new AG}generate(){var t=this.generateOrAbort();if(ze(t)){this.A=0;var n=this.generateOrAbort();if(ze(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){var t=Date.now();if(t>this.A)this.A=t,this.L();else{if(!(t+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return Cf.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var o5,FS=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};ge&&!ze(ge.crypto)&&crypto.getRandomValues&&(FS=e=>crypto.getRandomValues(e));class AG{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(FS(this.N),this.U=0),this.N[this.U++]}}var el=()=>kG().toString(),kG=()=>(o5||(o5=new wG)).generate(),Ic="",CG=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function NG(e,t){if(t){var n=function(a,s){if(s===void 0&&(s=je),Ic)return Ic;if(!s||["localhost","127.0.0.1"].includes(a))return"";for(var o=a.split("."),c=Math.min(o.length,8),d="dmn_chk_"+el();!Ic&&c--;){var f=o.slice(c).join("."),m=d+"=1;domain=."+f+";path=/";s.cookie=m+";max-age=3",s.cookie.includes(d)&&(s.cookie=m+";max-age=0",Ic=f)}return Ic}(e);if(!n){var r=(a=>{var s=a.match(CG);return s?s[0]:""})(e);r!==n&&Ye.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}var gi={H:()=>!!je,B:function(e){Ye.error("cookieStore error: "+e)},q:function(e){if(je){try{for(var t=e+"=",n=je.cookie.split(";").filter(s=>s.length),r=0;r<n.length;r++){for(var a=n[r];a.charAt(0)==" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return decodeURIComponent(a.substring(t.length,a.length))}}catch{}return null}},W:function(e){var t;try{t=JSON.parse(gi.q(e))||{}}catch{}return t},G:function(e,t,n,r,a){if(je)try{var s="",o="",c=NG(je.location.hostname,r);if(n){var d=new Date;d.setTime(d.getTime()+24*n*60*60*1e3),s="; expires="+d.toUTCString()}a&&(o="; secure");var f=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+c+o;return f.length>3686.4&&Ye.warn("cookieStore warning: large cookie, len="+f.length),je.cookie=f,f}catch{return}},V:function(e,t){if(je!=null&&je.cookie)try{gi.G(e,"",-1,t)}catch{return}}},Sg=null,Dn={H:function(){if(!ds(Sg))return Sg;var e=!0;if(ze(ge))e=!1;else try{var t="__mplssupport__";Dn.G(t,"xyz"),Dn.q(t)!=='"xyz"'&&(e=!1),Dn.V(t)}catch{e=!1}return e||Ye.error("localStorage unsupported; falling back to cookie store"),Sg=e,e},B:function(e){Ye.error("localStorage error: "+e)},q:function(e){try{return ge==null?void 0:ge.localStorage.getItem(e)}catch(t){Dn.B(t)}return null},W:function(e){try{return JSON.parse(Dn.q(e))||{}}catch{}return null},G:function(e,t){try{ge==null||ge.localStorage.setItem(e,JSON.stringify(t))}catch(n){Dn.B(n)}},V:function(e){try{ge==null||ge.localStorage.removeItem(e)}catch(t){Dn.B(t)}}},OG=["distinct_id",_f,SS,xf,Tf],Rh=Xe({},Dn,{W:function(e){try{var t={};try{t=gi.W(e)||{}}catch{}var n=qn(t,JSON.parse(Dn.q(e)||"{}"));return Dn.G(e,n),n}catch{}return null},G:function(e,t,n,r,a,s){try{Dn.G(e,t,void 0,void 0,s);var o={};OG.forEach(c=>{t[c]&&(o[c]=t[c])}),Object.keys(o).length&&gi.G(e,o,n,r,a,s)}catch(c){Dn.B(c)}},V:function(e,t){try{ge==null||ge.localStorage.removeItem(e),gi.V(e,t)}catch(n){Dn.B(n)}}}),Mh={},RG={H:function(){return!0},B:function(e){Ye.error("memoryStorage error: "+e)},q:function(e){return Mh[e]||null},W:function(e){return Mh[e]||null},G:function(e,t){Mh[e]=t},V:function(e){delete Mh[e]}},Ul=null,_r={H:function(){if(!ds(Ul))return Ul;if(Ul=!0,ze(ge))Ul=!1;else try{var e="__support__";_r.G(e,"xyz"),_r.q(e)!=='"xyz"'&&(Ul=!1),_r.V(e)}catch{Ul=!1}return Ul},B:function(e){Ye.error("sessionStorage error: ",e)},q:function(e){try{return ge==null?void 0:ge.sessionStorage.getItem(e)}catch(t){_r.B(t)}return null},W:function(e){try{return JSON.parse(_r.q(e))||null}catch{}return null},G:function(e,t){try{ge==null||ge.sessionStorage.setItem(e,JSON.stringify(t))}catch(n){_r.B(n)}},V:function(e){try{ge==null||ge.sessionStorage.removeItem(e)}catch(t){_r.B(t)}}},Vi=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class MG{constructor(t){this._instance=t}get I(){return this._instance.config}get consent(){return this.J()?Vi.DENIED:this.K}isOptedOut(){return this.I.cookieless_mode==="always"||this.consent===Vi.DENIED||this.consent===Vi.PENDING&&(this.I.opt_out_capturing_by_default||this.I.cookieless_mode==="on_reject")}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===Vi.DENIED}optInOut(t){this.Y.G(this.X,t?1:0,this.I.cookie_expiration,this.I.cross_subdomain_cookie,this.I.secure_cookie)}reset(){this.Y.V(this.X,this.I.cross_subdomain_cookie)}get X(){var{token:t,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;return r||(n?n+t:"__ph_opt_in_out_"+t)}get K(){var t=this.Y.q(this.X);return yg(t)?Vi.GRANTED:Lt(PY,t)?Vi.DENIED:Vi.PENDING}get Y(){if(!this.Z){var t=this.I.opt_out_capturing_persistence_type;this.Z=t==="localStorage"?Dn:gi;var n=t==="localStorage"?gi:Dn;n.q(this.X)&&(this.Z.q(this.X)||this.optInOut(yg(n.q(this.X))),n.V(this.X,this.I.cross_subdomain_cookie))}return this.Z}J(){return!!this.I.respect_dnt&&!!ES([ya==null?void 0:ya.doNotTrack,ya==null?void 0:ya.msDoNotTrack,ht.doNotTrack],t=>yg(t))}}var Ih=er("[Dead Clicks]"),IG=()=>!0,DG=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(xS)),r=e.instance.config.capture_dead_clicks;return nl(r)?r:!!fr(r)||n};class zS{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(t,n,r){this.instance=t,this.isEnabled=n,this.onCapture=r,this.startIfEnabled()}onRemoteConfig(t){this.instance.persistence&&this.instance.persistence.register({[xS]:t==null?void 0:t.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(t){var n,r;(n=ht.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&t(),(r=ht.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",a=>{a?Ih.error("failed to load script",a):t()})}et(){var t;if(je){if(!this.tt&&(t=ht.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var n=fr(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.tt=ht.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.tt.start(je),Ih.info("starting...")}}else Ih.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,Ih.info("stopping..."))}}var Dc=er("[ExceptionAutocapture]");class LG{constructor(t){var n,r,a;this.rt=()=>{var s;if(ge&&this.isEnabled&&(s=ht.__PosthogExtensions__)!=null&&s.errorWrappingFunctions){var o=ht.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,c=ht.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,d=ht.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.I.capture_unhandled_errors&&(this.st=o(this.captureException.bind(this))),!this.nt&&this.I.capture_unhandled_rejections&&(this.nt=c(this.captureException.bind(this))),!this.ot&&this.I.capture_console_errors&&(this.ot=d(this.captureException.bind(this)))}catch(f){Dc.error("failed to start",f),this.lt()}}},this._instance=t,this.ut=!((n=this._instance.persistence)==null||!n.props[Q6]),this.I=this.ht(),this.dt=new BY({refillRate:(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&r!==void 0?r:1,bucketSize:(a=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&a!==void 0?a:10,refillInterval:1e4,h:Dc}),this.startIfEnabled()}ht(){var t=this._instance.config.capture_exceptions,n={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return fr(t)?n=Xe({},n,t):(ze(t)?this.ut:t)&&(n=Xe({},n,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),n}get isEnabled(){return this.I.capture_console_errors||this.I.capture_unhandled_errors||this.I.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(Dc.info("enabled"),this.it(this.rt))}it(t){var n,r;(n=ht.__PosthogExtensions__)!=null&&n.errorWrappingFunctions&&t(),(r=ht.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"exception-autocapture",a=>{if(a)return Dc.error("failed to load script",a);t()})}lt(){var t,n,r;(t=this.st)==null||t.call(this),this.st=void 0,(n=this.nt)==null||n.call(this),this.nt=void 0,(r=this.ot)==null||r.call(this),this.ot=void 0}onRemoteConfig(t){var n=t.autocaptureExceptions;this.ut=!!n||!1,this.I=this.ht(),this._instance.persistence&&this._instance.persistence.register({[Q6]:this.ut}),this.startIfEnabled()}captureException(t){var n,r,a=(n=t==null||(r=t.$exception_list)==null||(r=r[0])==null?void 0:r.type)!==null&&n!==void 0?n:"Exception";this.dt.consumeRateLimit(a)?Dc.info("Skipping exception capture because of client rate limiting.",{exception:a}):this._instance.exceptions.sendExceptionEvent(t)}}function u5(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],a=n(r);return tl(a)&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}class PG{constructor(t){var n;this._instance=t,this.vt=(ge==null||(n=ge.location)==null?void 0:n.pathname)||""}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ye.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,Ye.info("History API monitoring stopped")}monitorHistoryChanges(){var t,n;if(ge&&ge.history){var r=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||u5(ge.history,"pushState",a=>function(s,o,c){a.call(this,s,o,c),r.ft("pushState")}),(n=ge.history.replaceState)!=null&&n.__posthog_wrapped__||u5(ge.history,"replaceState",a=>function(s,o,c){a.call(this,s,o,c),r.ft("replaceState")}),this.gt()}}ft(t){try{var n,r=ge==null||(n=ge.location)==null?void 0:n.pathname;if(!r)return;r!==this.vt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:t}),this.vt=r}catch(a){Ye.error("Error capturing "+t+" pageview",a)}}gt(){if(!this.ct){var t=()=>{this.ft("popstate")};Zn(ge,"popstate",t),this.ct=()=>{ge&&ge.removeEventListener("popstate",t)}}}}var wg=er("[SegmentIntegration]");function BG(e,t){var n=e.config.segment;if(!n)return t();(function(r,a){var s=r.config.segment;if(!s)return a();var o=d=>{var f=()=>d.anonymousId()||el();r.config.get_device_id=f,d.id()&&(r.register({distinct_id:d.id(),$device_id:f()}),r.persistence.set_property(Gi,"identified")),a()},c=s.user();"then"in c&&tl(c.then)?c.then(d=>o(d)):o(c)})(e,()=>{n.register((r=>{Promise&&Promise.resolve||wg.warn("This browser does not have Promise support, and can not use the segment integration");var a=(s,o)=>{if(!o)return s;s.event.userId||s.event.anonymousId===r.get_distinct_id()||(wg.info("No userId set, resetting PostHog"),r.reset()),s.event.userId&&s.event.userId!==r.get_distinct_id()&&(wg.info("UserId set, identifying with PostHog"),r.identify(s.event.userId));var c=r.calculateEventProperties(o,s.event.properties);return s.event.properties=Object.assign({},c,s.event.properties),s};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:s=>a(s,s.event.event),page:s=>a(s,"$pageview"),identify:s=>a(s,"$identify"),screen:s=>a(s,"$screen")}})(e)).then(()=>{t()})})}var HS="posthog-js";function qS(e,t){var{organization:n,projectId:r,prefix:a,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=t===void 0?{}:t;return c=>{var d,f,m,p,b;if(!(s==="*"||s.includes(c.level))||!e.__loaded)return c;c.tags||(c.tags={});var y=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=y,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var T=((d=c.exception)==null?void 0:d.values)||[],x=T.map(w=>Xe({},w,{stacktrace:w.stacktrace?Xe({},w.stacktrace,{type:"raw",frames:(w.stacktrace.frames||[]).map(O=>Xe({},O,{platform:"web:javascript"}))}):void 0})),C={$exception_message:((f=T[0])==null?void 0:f.value)||c.message,$exception_type:(m=T[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:x,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((p=T[0])==null?void 0:p.value)||c.message,$sentry_exception_type:(b=T[0])==null?void 0:b.type,$sentry_tags:c.tags};return n&&r&&(C.$sentry_url=(a||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+c.event_id),o&&e.exceptions.sendExceptionEvent(C),c}}class UG{constructor(t,n,r,a,s,o){this.name=HS,this.setupOnce=function(c){c(qS(t,{organization:n,projectId:r,prefix:a,severityAllowList:s,sendExceptionsToPostHog:o==null||o}))}}}var FG=ge!=null&&ge.location?kf(ge.location.hash,"__posthog")||kf(location.hash,"state"):null,c5="_postHogToolbarParams",d5=er("[Toolbar]"),Ws=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(Ws||{});class zG{constructor(t){this.instance=t}_t(t){ht.ph_toolbar_state=t}yt(){var t;return(t=ht.ph_toolbar_state)!==null&&t!==void 0?t:Ws.UNINITIALIZED}maybeLoadToolbar(t,n,r){if(t===void 0&&(t=void 0),n===void 0&&(n=void 0),r===void 0&&(r=void 0),!ge||!je)return!1;t=t??ge.location,r=r??ge.history;try{if(!n){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}n=ge==null?void 0:ge.localStorage}var a,s=FG||kf(t.hash,"__posthog")||kf(t.hash,"state"),o=s?W6(()=>JSON.parse(atob(decodeURIComponent(s))))||W6(()=>JSON.parse(decodeURIComponent(s))):null;return o&&o.action==="ph_authorize"?((a=o).source="url",a&&Object.keys(a).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState(r.state,"",t.pathname+t.search):t.hash="")):((a=JSON.parse(n.getItem(c5)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token)&&(this.loadToolbar(a),!0)}catch{return!1}}bt(t){var n=ht.ph_load_toolbar||ht.ph_load_editor;!Wt(n)&&tl(n)?n(t,this.instance):d5.warn("No toolbar load function found")}loadToolbar(t){var n=!(je==null||!je.getElementById(wS));if(!ge||n)return!1;var r=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Xe({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(ge.localStorage.setItem(c5,JSON.stringify(Xe({},a,{source:void 0}))),this.yt()===Ws.LOADED)this.bt(a);else if(this.yt()===Ws.UNINITIALIZED){var s;this._t(Ws.LOADING),(s=ht.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"toolbar",o=>{if(o)return d5.error("[Toolbar] Failed to load",o),void this._t(Ws.UNINITIALIZED);this._t(Ws.LOADED),this.bt(a)}),Zn(ge,"turbolinks:load",()=>{this._t(Ws.UNINITIALIZED),this.loadToolbar(a)})}return!0}wt(t){return this.loadToolbar(t)}maybeLoadEditor(t,n,r){return t===void 0&&(t=void 0),n===void 0&&(n=void 0),r===void 0&&(r=void 0),this.maybeLoadToolbar(t,n,r)}}var HG=er("[TracingHeaders]");class qG{constructor(t){this.xt=void 0,this.Et=void 0,this.rt=()=>{var n,r;ze(this.xt)&&((n=ht.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),ze(this.Et)&&((r=ht.__PosthogExtensions__)==null||(r=r.tracingHeadersPatchFns)==null||r._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}it(t){var n,r;(n=ht.__PosthogExtensions__)!=null&&n.tracingHeadersPatchFns&&t(),(r=ht.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"tracing-headers",a=>{if(a)return HG.error("failed to load script",a);t()})}startIfEnabledOrStop(){var t,n;this._instance.config.__add_tracing_headers?this.it(this.rt):((t=this.xt)==null||t.call(this),(n=this.Et)==null||n.call(this),this.xt=void 0,this.Et=void 0)}}var La="Mobile",Nf="iOS",pi="Android",E0="Tablet",jS=pi+" "+E0,$S="iPad",YS="Apple",GS=YS+" Watch",T0="Safari",su="BlackBerry",VS="Samsung",KS=VS+"Browser",WS=VS+" Internet",Gl="Chrome",jG=Gl+" OS",XS=Gl+" "+Nf,uv="Internet Explorer",QS=uv+" "+La,cv="Opera",$G=cv+" Mini",dv="Edge",ZS="Microsoft "+dv,Jo="Firefox",JS=Jo+" "+Nf,x0="Nintendo",S0="PlayStation",eu="Xbox",e9=pi+" "+La,t9=La+" "+T0,Kc="Windows",qb=Kc+" Phone",h5="Nokia",jb="Ouya",n9="Generic",YG=n9+" "+La.toLowerCase(),r9=n9+" "+E0.toLowerCase(),$b="Konqueror",Br="(\\d+(\\.\\d+)?)",Ag=new RegExp("Version/"+Br),GG=new RegExp(eu,"i"),VG=new RegExp(S0+" \\w+","i"),KG=new RegExp(x0+" \\w+","i"),hv=new RegExp(su+"|PlayBook|BB10","i"),WG={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},XG=(e,t)=>t&&Lt(t,YS)||function(n){return Lt(n,T0)&&!Lt(n,Gl)&&!Lt(n,pi)}(e),a9=function(e,t){return t=t||"",Lt(e," OPR/")&&Lt(e,"Mini")?$G:Lt(e," OPR/")?cv:hv.test(e)?su:Lt(e,"IE"+La)||Lt(e,"WPDesktop")?QS:Lt(e,KS)?WS:Lt(e,dv)||Lt(e,"Edg/")?ZS:Lt(e,"FBIOS")?"Facebook "+La:Lt(e,"UCWEB")||Lt(e,"UCBrowser")?"UC Browser":Lt(e,"CriOS")?XS:Lt(e,"CrMo")||Lt(e,Gl)?Gl:Lt(e,pi)&&Lt(e,T0)?e9:Lt(e,"FxiOS")?JS:Lt(e.toLowerCase(),$b.toLowerCase())?$b:XG(e,t)?Lt(e,La)?t9:T0:Lt(e,Jo)?Jo:Lt(e,"MSIE")||Lt(e,"Trident/")?uv:Lt(e,"Gecko")?Jo:""},QG={[QS]:[new RegExp("rv:"+Br)],[ZS]:[new RegExp(dv+"?\\/"+Br)],[Gl]:[new RegExp("("+Gl+"|CrMo)\\/"+Br)],[XS]:[new RegExp("CriOS\\/"+Br)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Br)],[T0]:[Ag],[t9]:[Ag],[cv]:[new RegExp("(Opera|OPR)\\/"+Br)],[Jo]:[new RegExp(Jo+"\\/"+Br)],[JS]:[new RegExp("FxiOS\\/"+Br)],[$b]:[new RegExp("Konqueror[:/]?"+Br,"i")],[su]:[new RegExp(su+" "+Br),Ag],[e9]:[new RegExp("android\\s"+Br,"i")],[WS]:[new RegExp(KS+"\\/"+Br)],[uv]:[new RegExp("(rv:|MSIE )"+Br)],Mozilla:[new RegExp("rv:"+Br)]},ZG=function(e,t){var n=a9(e,t),r=QG[n];if(ze(r))return null;for(var a=0;a<r.length;a++){var s=r[a],o=e.match(s);if(o)return parseFloat(o[o.length-2])}return null},f5=[[new RegExp(eu+"; "+eu+" (.*?)[);]","i"),e=>[eu,e&&e[1]||""]],[new RegExp(x0,"i"),[x0,""]],[new RegExp(S0,"i"),[S0,""]],[hv,[su,""]],[new RegExp(Kc,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[qb,""];if(new RegExp(La).test(t)&&!/IEMobile\b/.test(t))return[Kc+" "+La,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=n[1],a=WG[r]||"";return/arm/i.test(t)&&(a="RT"),[Kc,a]}return[Kc,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[Nf,t.join(".")]}return[Nf,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ze(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+pi+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+pi+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[pi,t.join(".")]}return[pi,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[jG,""]],[/Linux|debian/i,["Linux",""]]],m5=function(e){return KG.test(e)?x0:VG.test(e)?S0:GG.test(e)?eu:new RegExp(jb,"i").test(e)?jb:new RegExp("("+qb+"|WPDesktop)","i").test(e)?qb:/iPad/.test(e)?$S:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?GS:hv.test(e)?su:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(h5,"i").test(e)?h5:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(La).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?pi:jS:pi:new RegExp("(pda|"+La+")","i").test(e)?YG:new RegExp(E0,"i").test(e)&&!new RegExp(E0+" pc","i").test(e)?r9:""},Dh="https?://(.*)",Tu=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],JG=Eu(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],Tu),$0="<masked>",eV=["li_fat_id"];function i9(e,t,n){if(!je)return{};var r,a=t?Eu([],Tu,n||[]):[],s=s9(j0(je.URL,a,$0),e),o=(r={},mn(eV,function(c){var d=gi.q(c);r[c]=d||null}),r);return qn(o,s)}function s9(e,t){var n=JG.concat(t||[]),r={};return mn(n,function(a){var s=Af(e,a);r[a]=s||null}),r}function l9(e){var t=function(s){return s?s.search(Dh+"google.([^/?]*)")===0?"google":s.search(Dh+"bing.com")===0?"bing":s.search(Dh+"yahoo.com")===0?"yahoo":s.search(Dh+"duckduckgo.com")===0?"duckduckgo":null:null}(e),n=t!="yahoo"?"q":"p",r={};if(!ds(t)){r.$search_engine=t;var a=je?Af(je.referrer,n):"";a.length&&(r.ph_keyword=a)}return r}function p5(){return navigator.language||navigator.userLanguage}function o9(){return(je==null?void 0:je.referrer)||"$direct"}function u9(e,t){var n=e?Eu([],Tu,t||[]):[],r=ta==null?void 0:ta.href.substring(0,1e3);return{r:o9().substring(0,1e3),u:r?j0(r,n,$0):void 0}}function c9(e){var t,{r:n,u:r}=e,a={$referrer:n,$referring_domain:n==null?void 0:n=="$direct"?"$direct":(t=wf(n))==null?void 0:t.host};if(r){a.$current_url=r;var s=wf(r);a.$host=s==null?void 0:s.host,a.$pathname=s==null?void 0:s.pathname;var o=s9(r);qn(a,o)}if(n){var c=l9(n);qn(a,c)}return a}function d9(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function tV(){try{return new Date().getTimezoneOffset()}catch{return}}function nV(e,t){if(!ea)return{};var n,r,a,s=e?Eu([],Tu,t||[]):[],[o,c]=function(d){for(var f=0;f<f5.length;f++){var[m,p]=f5[f],b=m.exec(d),y=b&&(tl(p)?p(b,d):p);if(y)return y}return["",""]}(ea);return qn(iv({$os:o,$os_version:c,$browser:a9(ea,navigator.vendor),$device:m5(ea),$device_type:(r=ea,a=m5(r),a===$S||a===jS||a==="Kobo"||a==="Kindle Fire"||a===r9?E0:a===x0||a===eu||a===S0||a===jb?"Console":a===GS?"Wearable":a?La:"Desktop"),$timezone:d9(),$timezone_offset:tV()}),{$current_url:j0(ta==null?void 0:ta.href,s,$0),$host:ta==null?void 0:ta.host,$pathname:ta==null?void 0:ta.pathname,$raw_user_agent:ea.length>1e3?ea.substring(0,997)+"...":ea,$browser_version:ZG(ea,navigator.vendor),$browser_language:p5(),$browser_language_prefix:(n=p5(),typeof n=="string"?n.split("-")[0]:void 0),$screen_height:ge==null?void 0:ge.screen.height,$screen_width:ge==null?void 0:ge.screen.width,$viewport_height:ge==null?void 0:ge.innerHeight,$viewport_width:ge==null?void 0:ge.innerWidth,$lib:"web",$lib_version:Yi.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var js=er("[Web Vitals]"),g5=9e5;class rV{constructor(t){var n;this.St=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.$t=()=>{clearTimeout(this.kt),this.N.metrics.length!==0&&(this._instance.capture("$web_vitals",this.N.metrics.reduce((r,a)=>Xe({},r,{["$web_vitals_"+a.name+"_event"]:Xe({},a),["$web_vitals_"+a.name+"_value"]:a.value}),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=r=>{var a,s=(a=this._instance.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0);if(ze(s))js.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.Tt();ze(o)||(Wt(r==null?void 0:r.name)||Wt(r==null?void 0:r.value)?js.error("Invalid metric received",r):this.Rt&&r.value>=this.Rt?js.error("Ignoring metric with value >= "+this.Rt,r):(this.N.url!==o&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),ze(this.N.url)&&(this.N.url=o),this.N.firstMetricTimestamp=ze(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,r.attribution&&r.attribution.interactionTargetElement&&(r.attribution.interactionTargetElement=void 0),this.N.metrics.push(Xe({},r,{$current_url:o,$session_id:s.sessionId,$window_id:s.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.$t()))}},this.rt=()=>{var r,a,s,o,c=ht.__PosthogExtensions__;ze(c)||ze(c.postHogWebVitalsCallbacks)||({onLCP:r,onCLS:a,onFCP:s,onINP:o}=c.postHogWebVitalsCallbacks),r&&a&&s&&o?(this.allowedMetrics.indexOf("LCP")>-1&&r(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&a(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&s(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&o(this.Pt.bind(this)),this.P=!0):js.error("web vitals callbacks not loaded - not starting")},this._instance=t,this.St=!((n=this._instance.persistence)==null||!n.props[J6]),this.startIfEnabled()}get allowedMetrics(){var t,n,r=fr(this._instance.config.capture_performance)?(t=this._instance.config.capture_performance)==null?void 0:t.web_vitals_allowed_metrics:void 0;return ze(r)?((n=this._instance.persistence)==null?void 0:n.props[e5])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(fr(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var t=fr(this._instance.config.capture_performance)&&bi(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:g5;return 0<t&&t<=6e4?g5:t}get isEnabled(){var t=ta==null?void 0:ta.protocol;if(t!=="http:"&&t!=="https:")return js.info("Web Vitals are disabled on non-http/https protocols"),!1;var n=fr(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:nl(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return nl(n)?n:this.St}startIfEnabled(){this.isEnabled&&!this.P&&(js.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(t){var n=fr(t.capturePerformance)&&!!t.capturePerformance.web_vitals,r=fr(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[J6]:n}),this._instance.persistence.register({[e5]:r})),this.St=n,this.startIfEnabled()}it(t){var n,r;(n=ht.__PosthogExtensions__)!=null&&n.postHogWebVitalsCallbacks&&t(),(r=ht.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"web-vitals",a=>{a?js.error("failed to load script",a):t()})}Tt(){var t=ge?ge.location.href:void 0;if(t){var n=this._instance.config.mask_personal_data_properties,r=this._instance.config.custom_personal_data_properties,a=n?Eu([],Tu,r||[]):[];return j0(t,a,$0)}js.error("Could not determine current URL")}}var aV=er("[Heatmaps]");function b5(e){return fr(e)&&"clientX"in e&&"clientY"in e&&bi(e.clientX)&&bi(e.clientY)}class iV{constructor(t){var n;this.St=!1,this.P=!1,this.Ct=null,this.instance=t,this.St=!((n=this.instance.persistence)==null||!n.props[Ib]),this.rageclicks=new US(t.config.rageclick)}get flushIntervalMilliseconds(){var t=5e3;return fr(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return ze(this.instance.config.capture_heatmaps)?ze(this.instance.config.enable_heatmaps)?this.St:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.P)return;aV.info("starting..."),this.It(),this.Ft()}else{var t;clearInterval((t=this.Ct)!==null&&t!==void 0?t:void 0),this.Mt(),this.getAndClearBuffer()}}onRemoteConfig(t){var n=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Ib]:n}),this.St=n,this.startIfEnabled()}getAndClearBuffer(){var t=this.N;return this.N=void 0,t}Ot(t){this.At(t.originalEvent,"deadclick")}Ft(){this.Ct&&clearInterval(this.Ct),this.Ct=function(t){return(t==null?void 0:t.visibilityState)==="visible"}(je)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}It(){ge&&je&&(this.jt=this.Dt.bind(this),Zn(ge,"beforeunload",this.jt),this.Lt=t=>this.At(t||(ge==null?void 0:ge.event)),Zn(je,"click",this.Lt,{capture:!0}),this.Nt=t=>this.Ut(t||(ge==null?void 0:ge.event)),Zn(je,"mousemove",this.Nt,{capture:!0}),this.zt=new zS(this.instance,IG,this.Ot.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ft.bind(this),Zn(je,"visibilitychange",this.Ht),this.P=!0)}Mt(){var t;ge&&je&&(this.jt&&ge.removeEventListener("beforeunload",this.jt),this.Lt&&je.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&je.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&je.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),(t=this.zt)==null||t.stop(),this.P=!1)}qt(t,n){var r=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),o=function(c,d,f){for(var m=c;m&&um(m)&&!al(m,"body");){if(m===f)return!1;if(Lt(d,ge==null?void 0:ge.getComputedStyle(m).position))return!0;m=RS(m)}return!1}(NS(t),["fixed","sticky"],s);return{x:t.clientX+(o?0:a),y:t.clientY+(o?0:r),target_fixed:o,type:n}}At(t,n){var r;if(n===void 0&&(n="click"),!t5(t.target)&&b5(t)){var a=this.qt(t,n);(r=this.rageclicks)!=null&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Wt(Xe({},a,{type:"rageclick"})),this.Wt(a)}}Ut(t){!t5(t.target)&&b5(t)&&(clearTimeout(this.Bt),this.Bt=setTimeout(()=>{this.Wt(this.qt(t,"mousemove"))},500))}Wt(t){if(ge){var n=ge.location.href,r=this.instance.config.mask_personal_data_properties,a=this.instance.config.custom_personal_data_properties,s=r?Eu([],Tu,a||[]):[],o=j0(n,s,$0);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(t)}}Dt(){this.N&&!Vo(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class sV{constructor(t){this._instance=t}doPageView(t,n){var r,a=this.Gt(t,n);return this.Vt={pathname:(r=ge==null?void 0:ge.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:t},this._instance.scrollManager.resetContext(),a}doPageLeave(t){var n;return this.Gt(t,(n=this.Vt)==null?void 0:n.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.Vt)==null?void 0:t.pageViewId}}Gt(t,n){var r=this.Vt;if(!r)return{$pageview_id:n};var a={$pageview_id:n,$prev_pageview_id:r.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:c,maxScrollY:d,maxContentHeight:f,lastContentY:m,maxContentY:p}=s;if(!(ze(o)||ze(c)||ze(d)||ze(f)||ze(m)||ze(p))){o=Math.ceil(o),c=Math.ceil(c),d=Math.ceil(d),f=Math.ceil(f),m=Math.ceil(m),p=Math.ceil(p);var b=o<=1?1:mi(c/o,0,1,Ye),y=o<=1?1:mi(d/o,0,1,Ye),T=f<=1?1:mi(m/f,0,1,Ye),x=f<=1?1:mi(p/f,0,1,Ye);a=qn(a,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:b,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:y,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:T,$prev_pageview_max_content:p,$prev_pageview_max_content_percentage:x})}}return r.pathname&&(a.$prev_pageview_pathname=r.pathname),r.timestamp&&(a.$prev_pageview_duration=(t.getTime()-r.timestamp.getTime())/1e3),a}}var Pa=Uint8Array,na=Uint16Array,lu=Uint32Array,fv=new Pa([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mv=new Pa([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),v5=new Pa([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h9=function(e,t){for(var n=new na(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var a=new lu(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)a[s]=s-n[r]<<5|r;return[n,a]},f9=h9(fv,2),lV=f9[0],Yb=f9[1];lV[28]=258,Yb[258]=28;for(var y5=h9(mv,0)[1],m9=new na(32768),_n=0;_n<32768;++_n){var Fl=(43690&_n)>>>1|(21845&_n)<<1;Fl=(61680&(Fl=(52428&Fl)>>>2|(13107&Fl)<<2))>>>4|(3855&Fl)<<4,m9[_n]=((65280&Fl)>>>8|(255&Fl)<<8)>>>1}var o0=function(e,t,n){for(var r=e.length,a=0,s=new na(t);a<r;++a)++s[e[a]-1];var o,c=new na(t);for(a=0;a<t;++a)c[a]=c[a-1]+s[a-1]<<1;for(o=new na(r),a=0;a<r;++a)o[a]=m9[c[e[a]-1]++]>>>15-e[a];return o},Vl=new Pa(288);for(_n=0;_n<144;++_n)Vl[_n]=8;for(_n=144;_n<256;++_n)Vl[_n]=9;for(_n=256;_n<280;++_n)Vl[_n]=7;for(_n=280;_n<288;++_n)Vl[_n]=8;var Of=new Pa(32);for(_n=0;_n<32;++_n)Of[_n]=5;var oV=o0(Vl,9),uV=o0(Of,5),p9=function(e){return(e/8>>0)+(7&e&&1)},g9=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof na?na:e instanceof lu?lu:Pa)(n-t);return r.set(e.subarray(t,n)),r},$i=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Lc=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},kg=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var a=n.length,s=n.slice();if(!a)return[new Pa(0),0];if(a==1){var o=new Pa(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort(function(z,U){return z.f-U.f}),n.push({s:-1,f:25001});var c=n[0],d=n[1],f=0,m=1,p=2;for(n[0]={s:-1,f:c.f+d.f,l:c,r:d};m!=a-1;)c=n[n[f].f<n[p].f?f++:p++],d=n[f!=m&&n[f].f<n[p].f?f++:p++],n[m++]={s:-1,f:c.f+d.f,l:c,r:d};var b=s[0].s;for(r=1;r<a;++r)s[r].s>b&&(b=s[r].s);var y=new na(b+1),T=Gb(n[m-1],y,0);if(T>t){r=0;var x=0,C=T-t,w=1<<C;for(s.sort(function(z,U){return y[U.s]-y[z.s]||z.f-U.f});r<a;++r){var O=s[r].s;if(!(y[O]>t))break;x+=w-(1<<T-y[O]),y[O]=t}for(x>>>=C;x>0;){var D=s[r].s;y[D]<t?x-=1<<t-y[D]++-1:++r}for(;r>=0&&x;--r){var j=s[r].s;y[j]==t&&(--y[j],++x)}T=t}return[new Pa(y),T]},Gb=function(e,t,n){return e.s==-1?Math.max(Gb(e.l,t,n+1),Gb(e.r,t,n+1)):t[e.s]=n},_5=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new na(++t),r=0,a=e[0],s=1,o=function(d){n[r++]=d},c=1;c<=t;++c)if(e[c]==a&&c!=t)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=e[c]}return[n.subarray(0,r),t]},Pc=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Vb=function(e,t,n){var r=n.length,a=p9(t+2);e[a]=255&r,e[a+1]=r>>>8,e[a+2]=255^e[a],e[a+3]=255^e[a+1];for(var s=0;s<r;++s)e[a+s+4]=n[s];return 8*(a+4+r)},E5=function(e,t,n,r,a,s,o,c,d,f,m){$i(t,m++,n),++a[256];for(var p=kg(a,15),b=p[0],y=p[1],T=kg(s,15),x=T[0],C=T[1],w=_5(b),O=w[0],D=w[1],j=_5(x),z=j[0],U=j[1],ee=new na(19),Z=0;Z<O.length;++Z)ee[31&O[Z]]++;for(Z=0;Z<z.length;++Z)ee[31&z[Z]]++;for(var Q=kg(ee,7),G=Q[0],se=Q[1],de=19;de>4&&!G[v5[de-1]];--de);var ve,oe,ye,V,ue=f+5<<3,me=Pc(a,Vl)+Pc(s,Of)+o,De=Pc(a,b)+Pc(s,x)+o+14+3*de+Pc(ee,G)+(2*ee[16]+3*ee[17]+7*ee[18]);if(ue<=me&&ue<=De)return Vb(t,m,e.subarray(d,d+f));if($i(t,m,1+(De<me)),m+=2,De<me){ve=o0(b,y),oe=b,ye=o0(x,C),V=x;var A=o0(G,se);for($i(t,m,D-257),$i(t,m+5,U-1),$i(t,m+10,de-4),m+=14,Z=0;Z<de;++Z)$i(t,m+3*Z,G[v5[Z]]);m+=3*de;for(var ne=[O,z],pe=0;pe<2;++pe){var L=ne[pe];for(Z=0;Z<L.length;++Z){var Oe=31&L[Z];$i(t,m,A[Oe]),m+=G[Oe],Oe>15&&($i(t,m,L[Z]>>>5&127),m+=L[Z]>>>12)}}}else ve=oV,oe=Vl,ye=uV,V=Of;for(Z=0;Z<c;++Z)if(r[Z]>255){Oe=r[Z]>>>18&31,Lc(t,m,ve[Oe+257]),m+=oe[Oe+257],Oe>7&&($i(t,m,r[Z]>>>23&31),m+=fv[Oe]);var He=31&r[Z];Lc(t,m,ye[He]),m+=V[He],He>3&&(Lc(t,m,r[Z]>>>5&8191),m+=mv[He])}else Lc(t,m,ve[r[Z]]),m+=oe[r[Z]];return Lc(t,m,ve[256]),m+oe[256]},cV=new lu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),dV=function(){for(var e=new lu(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),hV=function(e,t,n,r,a){return function(s,o,c,d,f,m){var p=s.length,b=new Pa(d+p+5*(1+Math.floor(p/7e3))+f),y=b.subarray(d,b.length-f),T=0;if(!o||p<8)for(var x=0;x<=p;x+=65535){var C=x+65535;C<p?T=Vb(y,T,s.subarray(x,C)):(y[x]=m,T=Vb(y,T,s.subarray(x,p)))}else{for(var w=cV[o-1],O=w>>>13,D=8191&w,j=(1<<c)-1,z=new na(32768),U=new na(j+1),ee=Math.ceil(c/3),Z=2*ee,Q=function(Et){return(s[Et]^s[Et+1]<<ee^s[Et+2]<<Z)&j},G=new lu(25e3),se=new na(288),de=new na(32),ve=0,oe=0,ye=(x=0,0),V=0,ue=0;x<p;++x){var me=Q(x),De=32767&x,A=U[me];if(z[De]=A,U[me]=De,V<=x){var ne=p-x;if((ve>7e3||ye>24576)&&ne>423){T=E5(s,y,0,G,se,de,oe,ye,ue,x-ue,T),ye=ve=oe=0,ue=x;for(var pe=0;pe<286;++pe)se[pe]=0;for(pe=0;pe<30;++pe)de[pe]=0}var L=2,Oe=0,He=D,Le=De-A&32767;if(ne>2&&me==Q(x-Le))for(var Mt=Math.min(O,ne)-1,ut=Math.min(32767,x),qt=Math.min(258,ne);Le<=ut&&--He&&De!=A;){if(s[x+L]==s[x+L-Le]){for(var kt=0;kt<qt&&s[x+kt]==s[x+kt-Le];++kt);if(kt>L){if(L=kt,Oe=Le,kt>Mt)break;var En=Math.min(Le,kt-2),pr=0;for(pe=0;pe<En;++pe){var yt=x-Le+pe+32768&32767,bt=yt-z[yt]+32768&32767;bt>pr&&(pr=bt,A=yt)}}}Le+=(De=A)-(A=z[De])+32768&32767}if(Oe){G[ye++]=268435456|Yb[L]<<18|y5[Oe];var Ft=31&Yb[L],Je=31&y5[Oe];oe+=fv[Ft]+mv[Je],++se[257+Ft],++de[Je],V=x+L,++ve}else G[ye++]=s[x],++se[s[x]]}}T=E5(s,y,m,G,se,de,oe,ye,ue,x-ue,T)}return g9(b,0,d+p9(T)+f)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!0)},Cg=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function fV(e,t){t===void 0&&(t={});var n=function(){var c=4294967295;return{p:function(d){for(var f=c,m=0;m<d.length;++m)f=dV[255&f^d[m]]^f>>>8;c=f},d:function(){return 4294967295^c}}}(),r=e.length;n.p(e);var a,s=hV(e,t,10+((a=t).filename&&a.filename.length+1||0),8),o=s.length;return function(c,d){var f=d.filename;if(c[0]=31,c[1]=139,c[2]=8,c[8]=d.level<2?4:d.level==9?2:0,c[9]=3,d.mtime!=0&&Cg(c,4,Math.floor(new Date(d.mtime||Date.now())/1e3)),f){c[3]=8;for(var m=0;m<=f.length;++m)c[m+10]=f.charCodeAt(m)}}(s,t),Cg(s,o-8,n.d()),Cg(s,o-4,r),s}var mV=function(e){var t,n,r,a,s="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,`
|
|
416
|
-
`).replace(/\r/g,`
|
|
417
|
-
`)).length,a=0;a<r;a++){var o=e.charCodeAt(a),c=null;o<128?n++:c=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),ds(c)||(n>t&&(s+=e.substring(t,n)),s+=c,t=n=a+1)}return n>t&&(s+=e.substring(t,e.length)),s},pV=!!Cb||!!kb,T5="text/plain",Rf=function(e,t,n){var r;n===void 0&&(n=!0);var[a,s]=e.split("?"),o=Xe({},t),c=(r=s==null?void 0:s.split("&").map(f=>{var m,[p,b]=f.split("="),y=n&&(m=o[p])!==null&&m!==void 0?m:b;return delete o[p],p+"="+y}))!==null&&r!==void 0?r:[],d=_G(o);return d&&c.push(d),a+"?"+c.join("&")},Wc=(e,t)=>JSON.stringify(e,(n,r)=>typeof r=="bigint"?r.toString():r,t),Ng=e=>{var{data:t,compression:n}=e;if(t){if(n===Qi.GZipJS){var r=fV(function(d,f){var m=d.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(d);for(var p=new Pa(d.length+(d.length>>>1)),b=0,y=function(w){p[b++]=w},T=0;T<m;++T){if(b+5>p.length){var x=new Pa(b+8+(m-T<<1));x.set(p),p=x}var C=d.charCodeAt(T);C<128||f?y(C):C<2048?(y(192|C>>>6),y(128|63&C)):C>55295&&C<57344?(y(240|(C=65536+(1047552&C)|1023&d.charCodeAt(++T))>>>18),y(128|C>>>12&63),y(128|C>>>6&63),y(128|63&C)):(y(224|C>>>12),y(128|C>>>6&63),y(128|63&C))}return g9(p,0,b)}(Wc(t)),{mtime:0}),a=new Blob([r],{type:T5});return{contentType:T5,body:a,estimatedSize:a.size}}if(n===Qi.Base64){var s=function(d){var f,m,p,b,y,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",x=0,C=0,w="",O=[];if(!d)return d;d=mV(d);do f=(y=d.charCodeAt(x++)<<16|d.charCodeAt(x++)<<8|d.charCodeAt(x++))>>18&63,m=y>>12&63,p=y>>6&63,b=63&y,O[C++]=T.charAt(f)+T.charAt(m)+T.charAt(p)+T.charAt(b);while(x<d.length);switch(w=O.join(""),d.length%3){case 1:w=w.slice(0,-2)+"==";break;case 2:w=w.slice(0,-1)+"="}return w}(Wc(t)),o=(d=>"data="+encodeURIComponent(typeof d=="string"?d:Wc(d)))(s);return{contentType:"application/x-www-form-urlencoded",body:o,estimatedSize:new Blob([o]).size}}var c=Wc(t);return{contentType:"application/json",body:c,estimatedSize:new Blob([c]).size}}},Wh=[];kb&&Wh.push({transport:"fetch",method:e=>{var t,n,{contentType:r,body:a,estimatedSize:s}=(t=Ng(e))!==null&&t!==void 0?t:{},o=new Headers;mn(e.headers,function(m,p){o.append(p,m)}),r&&o.append("Content-Type",r);var c=e.url,d=null;if(H6){var f=new H6;d={signal:f.signal,timeout:setTimeout(()=>f.abort(),e.timeout)}}kb(c,Xe({method:(e==null?void 0:e.method)||"GET",headers:o,keepalive:e.method==="POST"&&(s||0)<52428.8,body:a,signal:(n=d)==null?void 0:n.signal},e.fetchOptions)).then(m=>m.text().then(p=>{var b={statusCode:m.status,text:p};if(m.status===200)try{b.json=JSON.parse(p)}catch(y){Ye.error(y)}e.callback==null||e.callback(b)})).catch(m=>{Ye.error(m),e.callback==null||e.callback({statusCode:0,text:m})}).finally(()=>d?clearTimeout(d.timeout):null)}}),Cb&&Wh.push({transport:"XHR",method:e=>{var t,n=new Cb;n.open(e.method||"GET",e.url,!0);var{contentType:r,body:a}=(t=Ng(e))!==null&&t!==void 0?t:{};mn(e.headers,function(s,o){n.setRequestHeader(o,s)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),e.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(n.readyState===4){var s={statusCode:n.status,text:n.responseText};if(n.status===200)try{s.json=JSON.parse(n.responseText)}catch{}e.callback==null||e.callback(s)}},n.send(a)}}),ya!=null&&ya.sendBeacon&&Wh.push({transport:"sendBeacon",method:e=>{var t=Rf(e.url,{beacon:"1"});try{var n,{contentType:r,body:a}=(n=Ng(e))!==null&&n!==void 0?n:{},s=typeof a=="string"?new Blob([a],{type:r}):a;ya.sendBeacon(t,s)}catch{}}});var Mf=function(e,t){if(!function(n){try{new RegExp(n)}catch{return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function x5(e,t,n){return Wc({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var b9={exact:(e,t)=>t.some(n=>e.some(r=>n===r)),is_not:(e,t)=>t.every(n=>e.every(r=>n!==r)),regex:(e,t)=>t.some(n=>e.some(r=>Mf(n,r))),not_regex:(e,t)=>t.every(n=>e.every(r=>!Mf(n,r))),icontains:(e,t)=>t.map(Lh).some(n=>e.map(Lh).some(r=>n.includes(r))),not_icontains:(e,t)=>t.map(Lh).every(n=>e.map(Lh).every(r=>!n.includes(r)))},Lh=e=>e.toLowerCase();function v9(e,t){return!e||Object.entries(e).every(n=>{var[r,a]=n,s=t==null?void 0:t[r];if(ze(s)||ds(s))return!1;var o=[String(s)],c=b9[a.operator];return!!c&&c(a.values,o)})}var Og=er("[Error tracking]");class gV{constructor(t){var n,r;this.Jt=[],this.Kt=new zY([new WY,new aG,new QY,new XY,new nG,new tG,new JY,new rG],KY("web:javascript",$Y,VY)),this._instance=t,this.Jt=(n=(r=this._instance.persistence)==null?void 0:r.get_property(Db))!==null&&n!==void 0?n:[]}onRemoteConfig(t){var n,r,a,s=(n=(r=t.errorTracking)==null?void 0:r.suppressionRules)!==null&&n!==void 0?n:[],o=(a=t.errorTracking)==null?void 0:a.captureExtensionExceptions;this.Jt=s,this._instance.persistence&&this._instance.persistence.register({[Db]:this.Jt,[Z6]:o})}get Yt(){var t,n=!!this._instance.get_property(Z6),r=this._instance.config.error_tracking.captureExtensionExceptions;return(t=r??n)!==null&&t!==void 0&&t}buildProperties(t,n){return this.Kt.buildFromUnknown(t,{syntheticException:n==null?void 0:n.syntheticException,mechanism:{handled:n==null?void 0:n.handled}})}sendExceptionEvent(t){var n=t.$exception_list;if(this.Xt(n)){if(this.Qt(n))return void Og.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(n))return void Og.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(n))return void Og.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(t){if(t.length===0)return!1;var n=t.reduce((r,a)=>{var{type:s,value:o}=a;return ir(s)&&s.length>0&&r.$exception_types.push(s),ir(o)&&o.length>0&&r.$exception_values.push(o),r},{$exception_types:[],$exception_values:[]});return this.Jt.some(r=>{var a=r.values.map(s=>{var o,c=b9[s.operator],d=Xt(s.value)?s.value:[s.value],f=(o=n[s.key])!==null&&o!==void 0?o:[];return d.length>0&&c(d,f)});return r.type==="OR"?a.some(Boolean):a.every(Boolean)})}Zt(t){return t.flatMap(n=>{var r,a;return(r=(a=n.stacktrace)==null?void 0:a.frames)!==null&&r!==void 0?r:[]}).some(n=>n.filename&&n.filename.startsWith("chrome-extension://"))}ti(t){if(t.length>0){var n,r,a,s,o=(n=(r=t[0].stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[],c=o[o.length-1];return(a=c==null||(s=c.filename)==null?void 0:s.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Xt(t){return!Wt(t)&&Xt(t)}}var Va=er("[FeatureFlags]"),Bc=er("[FeatureFlags]",{debugEnabled:!0}),Rg="$active_feature_flags",Uo="$override_feature_flags",S5="$feature_flag_payloads",Uc="$override_feature_flag_payloads",w5="$feature_flag_request_id",A5="$feature_flag_evaluated_at",k5=e=>{var t={};for(var[n,r]of Kh(e||{}))r&&(t[n]=r);return t},bV=e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(n=>{var r;return[n,(r=t[n].variant)!==null&&r!==void 0?r:t[n].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(n=>t[n].enabled).filter(n=>{var r;return(r=t[n].metadata)==null?void 0:r.payload}).map(n=>{var r;return[n,(r=t[n].metadata)==null?void 0:r.payload]}))):Va.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e},vV=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class yV{constructor(t){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=t,this.featureFlagEventHandlers=[]}li(){var t=this._instance.config.evaluation_environments;return t!=null&&t.length?t.filter(n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||Va.error("Invalid evaluation environment found:",n,"Expected non-empty string"),r}):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var t=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.di({disableFlags:t})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._instance.get_property(Lb),n=this._instance.get_property(Uo),r=this._instance.get_property(Uc);if(!r&&!n)return t||{};var a=qn({},t||{}),s=[...new Set([...Object.keys(r||{}),...Object.keys(n||{})])];for(var o of s){var c,d,f=a[o],m=n==null?void 0:n[o],p=ze(m)?(c=f==null?void 0:f.enabled)!==null&&c!==void 0&&c:!!m,b=ze(m)?f.variant:typeof m=="string"?m:void 0,y=r==null?void 0:r[o],T=Xe({},f,{enabled:p,variant:p?b??(f==null?void 0:f.variant):void 0});p!==(f==null?void 0:f.enabled)&&(T.original_enabled=f==null?void 0:f.enabled),b!==(f==null?void 0:f.variant)&&(T.original_variant=f==null?void 0:f.variant),y&&(T.metadata=Xe({},f==null?void 0:f.metadata,{payload:y,original_payload:f==null||(d=f.metadata)==null?void 0:d.payload})),a[o]=T}return this.ii||(Va.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:r,finalDetails:a}),this.ii=!0),a}getFlagVariants(){var t=this._instance.get_property(Ko),n=this._instance.get_property(Uo);if(!n)return t||{};for(var r=qn({},t),a=Object.keys(n),s=0;s<a.length;s++)r[a[s]]=n[a[s]];return this.ii||(Va.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:n,finalFlags:r}),this.ii=!0),r}getFlagPayloads(){var t=this._instance.get_property(S5),n=this._instance.get_property(Uc);if(!n)return t||{};for(var r=qn({},t||{}),a=Object.keys(n),s=0;s<a.length;s++)r[a[s]]=n[a[s]];return this.ii||(Va.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:n,finalPayloads:r}),this.ii=!0),r}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout(()=>{this.di()},5))}vi(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.si=t}di(t){var n;if(this.vi(),!this._instance.O())if(this.ri)this.ni=!0;else{var r={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Xe({},((n=this._instance.persistence)==null?void 0:n.get_initial_props())||{},this._instance.get_property(Vc)||{}),group_properties:this._instance.get_property(Hl)};(t!=null&&t.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.ui()&&(r.evaluation_environments=this.li());var a=this._instance.config.__preview_remote_config,s=a?"/flags/?v=2":"/flags/?v=2&config=true",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",c=this._instance.requestRouter.endpointFor("flags",s+o);a&&(r.timezone=d9()),this.ri=!0,this._instance.ci({method:"POST",url:c,data:r,compression:this._instance.config.disable_compression?void 0:Qi.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:d=>{var f,m,p=!0;if(d.statusCode===200&&(this.ni||(this.$anon_distinct_id=void 0),p=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi((m=d.json)!==null&&m!==void 0?m:{})),!r.disable_flags||this.ni)if(this.ai=!p,d.json&&(f=d.json.quotaLimited)!=null&&f.includes(vV.FeatureFlags))Va.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var b;r.disable_flags||this.receivedFeatureFlags((b=d.json)!==null&&b!==void 0?b:{},p),this.ni&&(this.ni=!1,this.di())}}})}}getFeatureFlag(t,n){if(n===void 0&&(n={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],a=""+r,s=this._instance.get_property(w5)||void 0,o=this._instance.get_property(A5)||void 0,c=this._instance.get_property(Ef)||{};if((n.send_event||!("send_event"in n))&&(!(t in c)||!c[t].includes(a))){var d,f,m,p,b,y,T,x,C;Xt(c[t])?c[t].push(a):c[t]=[a],(d=this._instance.persistence)==null||d.register({[Ef]:c});var w=this.getFeatureFlagDetails(t),O={$feature_flag:t,$feature_flag_response:r,$feature_flag_payload:this.getFeatureFlagPayload(t)||null,$feature_flag_request_id:s,$feature_flag_evaluated_at:o,$feature_flag_bootstrapped_response:((f=this._instance.config.bootstrap)==null||(f=f.featureFlags)==null?void 0:f[t])||null,$feature_flag_bootstrapped_payload:((m=this._instance.config.bootstrap)==null||(m=m.featureFlagPayloads)==null?void 0:m[t])||null,$used_bootstrap_value:!this.ai};ze(w==null||(p=w.metadata)==null?void 0:p.version)||(O.$feature_flag_version=w.metadata.version);var D,j=(b=w==null||(y=w.reason)==null?void 0:y.description)!==null&&b!==void 0?b:w==null||(T=w.reason)==null?void 0:T.code;j&&(O.$feature_flag_reason=j),w!=null&&(x=w.metadata)!=null&&x.id&&(O.$feature_flag_id=w.metadata.id),ze(w==null?void 0:w.original_variant)&&ze(w==null?void 0:w.original_enabled)||(O.$feature_flag_original_response=ze(w.original_variant)?w.original_enabled:w.original_variant),w!=null&&(C=w.metadata)!=null&&C.original_payload&&(O.$feature_flag_original_payload=w==null||(D=w.metadata)==null?void 0:D.original_payload),this._instance.capture("$feature_flag_called",O)}return r}Va.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}getRemoteConfigPayload(t,n){var r=this._instance.config.token,a={distinct_id:this._instance.get_distinct_id(),token:r};this.ui()&&(a.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2&config=true"),data:a,compression:this._instance.config.disable_compression?void 0:Qi.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:s=>{var o,c=(o=s.json)==null?void 0:o.featureFlagPayloads;n((c==null?void 0:c[t])||void 0)}})}isFeatureEnabled(t,n){if(n===void 0&&(n={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(t,n);return ze(r)?void 0:!!r}Va.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(n=>n!==t)}receivedFeatureFlags(t,n){if(this._instance.persistence){this.ei=!0;var r=this.getFlagVariants(),a=this.getFlagPayloads(),s=this.getFlagsWithDetails();(function(o,c,d,f,m){d===void 0&&(d={}),f===void 0&&(f={}),m===void 0&&(m={});var p=bV(o),b=p.flags,y=p.featureFlags,T=p.featureFlagPayloads;if(y){var x=o.requestId,C=o.evaluatedAt;if(Xt(y)){Va.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var w={};if(y)for(var O=0;O<y.length;O++)w[y[O]]=!0;c&&c.register({[Rg]:y,[Ko]:w})}else{var D=y,j=T,z=b;o.errorsWhileComputingFlags&&(D=Xe({},d,D),j=Xe({},f,j),z=Xe({},m,z)),c&&c.register(Xe({[Rg]:Object.keys(k5(D)),[Ko]:D||{},[S5]:j||{},[Lb]:z||{}},x?{[w5]:x}:{},C?{[A5]:C}:{}))}}})(t,this._instance.persistence,r,a,s),this.pi(n)}}override(t,n){n===void 0&&(n=!1),Va.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:n})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._instance.persistence)return Va.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this._instance.persistence.unregister(Uo),this._instance.persistence.unregister(Uc),this.pi(),Bc.info("All overrides cleared");if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,r=t;if(this.ii=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this._instance.persistence.unregister(Uo),Bc.info("Flag overrides cleared");else if(r.flags){if(Xt(r.flags)){for(var a={},s=0;s<r.flags.length;s++)a[r.flags[s]]=!0;this._instance.persistence.register({[Uo]:a})}else this._instance.persistence.register({[Uo]:r.flags});Bc.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this._instance.persistence.unregister(Uc),Bc.info("Payload overrides cleared")):r.payloads&&(this._instance.persistence.register({[Uc]:r.payloads}),Bc.info("Payload overrides set",{payloads:r.payloads}))),void this.pi()}this.pi()}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.ei){var{flags:n,flagVariants:r}=this.gi();t(n,r)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,n,r){var a,s=(this._instance.get_property(Gc)||[]).find(f=>f.flagKey===t),o={["$feature_enrollment/"+t]:n},c={$feature_flag:t,$feature_enrollment:n,$set:o};s&&(c.$early_access_feature_name=s.name),r&&(c.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",c),this.setPersonPropertiesForFlags(o,!1);var d=Xe({},this.getFlagVariants(),{[t]:n});(a=this._instance.persistence)==null||a.register({[Rg]:Object.keys(k5(d)),[Ko]:d}),this.pi()}getEarlyAccessFeatures(t,n,r){n===void 0&&(n=!1);var a=this._instance.get_property(Gc),s=r?"&"+r.map(o=>"stage="+o).join("&"):"";if(a&&!n)return t(a);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+s),method:"GET",callback:o=>{var c,d;if(o.json){var f=o.json.earlyAccessFeatures;return(c=this._instance.persistence)==null||c.unregister(Gc),(d=this._instance.persistence)==null||d.register({[Gc]:f}),t(f)}}})}gi(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(r=>n[r]),flagVariants:Object.keys(n).filter(r=>n[r]).reduce((r,a)=>(r[a]=n[a],r),{})}}pi(t){var{flags:n,flagVariants:r}=this.gi();this.featureFlagEventHandlers.forEach(a=>a(n,r,{errorsLoading:t}))}setPersonPropertiesForFlags(t,n){n===void 0&&(n=!0);var r=this._instance.get_property(Vc)||{};this._instance.register({[Vc]:Xe({},r,t)}),n&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Vc)}setGroupPropertiesForFlags(t,n){n===void 0&&(n=!0);var r=this._instance.get_property(Hl)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(a=>{r[a]=Xe({},r[a],t[a]),delete t[a]}),this._instance.register({[Hl]:Xe({},r,t)}),n&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var n=this._instance.get_property(Hl)||{};this._instance.register({[Hl]:Xe({},n,{[t]:{}})})}else this._instance.unregister(Hl)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.vi(),this.ii=!1}}var _V=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Mg{constructor(t,n){this.I=t,this.props={},this.mi=!1,this.yi=(r=>{var a="";return r.token&&(a=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+a+"_posthog"})(t),this.Y=this.bi(t),this.load(),t.debug&&Ye.info("Persistence loaded",t.persistence,Xe({},this.props)),this.update_config(t,t,n),this.save()}isDisabled(){return!!this.wi}bi(t){_V.indexOf(t.persistence.toLowerCase())===-1&&(Ye.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n=t.persistence.toLowerCase();return n==="localstorage"&&Dn.H()?Dn:n==="localstorage+cookie"&&Rh.H()?Rh:n==="sessionstorage"&&_r.H()?_r:n==="memory"?RG:n==="cookie"?gi:Rh.H()?Rh:gi}properties(){var t={};return mn(this.props,function(n,r){if(r===Ko&&fr(n))for(var a=Object.keys(n),s=0;s<a.length;s++)t["$feature/"+a[s]]=n[a[s]];else c=r,d=!1,(ds(o=cG)?d:z6&&o.indexOf===z6?o.indexOf(c)!=-1:(mn(o,function(f){if(d||(d=f===c))return yf}),d))||(t[r]=n);var o,c,d}),t}load(){if(!this.wi){var t=this.Y.W(this.yi);t&&(this.props=qn({},t))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.Ei,this.Si,this.I.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(t,n,r){if(fr(t)){ze(n)&&(n="None"),this.xi=ze(r)?this.$i:r;var a=!1;if(mn(t,(s,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.props[o]=s,a=!0)}),a)return this.save(),!0}return!1}register(t,n){if(fr(t)){this.xi=ze(n)?this.$i:n;var r=!1;if(mn(t,(a,s)=>{t.hasOwnProperty(s)&&this.props[s]!==a&&(this.props[s]=a,r=!0)}),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){if(!this.mi){var t=i9(this.I.custom_campaign_params,this.I.mask_personal_data_properties,this.I.custom_personal_data_properties);Vo(iv(t))||this.register(t),this.mi=!0}}update_search_keyword(){var t;this.register((t=je==null?void 0:je.referrer)?l9(t):{})}update_referrer_info(){var t;this.register_once({$referrer:o9(),$referring_domain:je!=null&&je.referrer&&((t=wf(je.referrer))==null?void 0:t.host)||"$direct"},void 0)}set_initial_person_info(){this.props[Fb]||this.props[zb]||this.register_once({[Tf]:u9(this.I.mask_personal_data_properties,this.I.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};mn([zb,Fb],o=>{var c=this.props[o];c&&mn(c,function(d,f){t["$initial_"+Nb(f)]=d})});var n,r,a=this.props[Tf];if(a){var s=(n=c9(a),r={},mn(n,function(o,c){r["$initial_"+Nb(c)]=o}),r);qn(t,s)}return t}safe_merge(t){return mn(this.props,function(n,r){r in t||(t[r]=n)}),t}update_config(t,n,r){if(this.$i=this.xi=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!r),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==n.persistence){var a=this.bi(t),s=this.props;this.clear(),this.Y=a,this.props=s,this.save()}}set_disabled(t){this.wi=t,this.wi?this.remove():this.save()}set_cross_subdomain(t){t!==this.Ei&&(this.Ei=t,this.remove(),this.save())}set_secure(t){t!==this.Si&&(this.Si=t,this.remove(),this.save())}set_event_timer(t,n){var r=this.props[Yc]||{};r[t]=n,this.props[Yc]=r,this.save()}remove_event_timer(t){var n=(this.props[Yc]||{})[t];return ze(n)||(delete this.props[Yc][t],this.save()),n}get_property(t){return this.props[t]}set_property(t,n){this.props[t]=n,this.save()}}var Pr=er("[Product Tours]"),Ig="ph_product_tours";class EV{constructor(t){this.ki=null,this.Pi=null,this.Ti=void 0,this.Ri=!1,this._instance=t}onRemoteConfig(t){if(this._instance.config.disable_product_tours)Pr.info("Product tours disabled via config");else{var n=t.productTours;Wt(n)?Pr.info("Product tours not enabled in remote config"):(this.Ti=n,Pr.info("Remote config received, isProductToursEnabled: "+this.Ti),this.loadIfEnabled())}}loadIfEnabled(){var t;if(!this.Pi)if(this.Ri)Pr.info("Already initializing product tours, skipping...");else if(this._instance.config.disable_product_tours)Pr.info("Product tours disabled via config");else{var n=ht==null?void 0:ht.__PosthogExtensions__;if(n){var r=(t=this._instance.featureFlags)==null?void 0:t.isFeatureEnabled("product-tours-2025");if(!ze(this.Ti)||r){var a=this.Ti||r;if(a){this.Ri=!0;try{var s=n.generateProductTours;if(s)return void this.Ci(s,a);var o=n.loadExternalDependency;if(!o)return Pr.error("PostHog loadExternalDependency extension not found."),void(this.Ri=!1);o(this._instance,"product-tours",c=>{c||!n.generateProductTours?Pr.error("Could not load product tours script",c):this.Ci(n.generateProductTours,a),this.Ri=!1})}catch(c){Pr.error("Error initializing product tours",c),this.Ri=!1}}else Pr.info("Product tours not enabled")}else Pr.info("Waiting for remote config or feature flag to enable product tours")}else Pr.error("PostHog Extensions not found.")}}Ci(t,n){this.Pi=t(this._instance,n)||null,Pr.info("Product tours loaded successfully")}getProductTours(t,n){if(n===void 0&&(n=!1),!Xt(this.ki)||n){var r=this._instance.persistence;if(r){var a=r.props[Ig];if(Xt(a)&&!n)return this.ki=a,void t(a,{isLoaded:!0})}this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:s=>{var o=s.statusCode;if(o!==200||!s.json){var c="Product Tours API could not be loaded, status: "+o;return Pr.error(c),void t([],{isLoaded:!1,error:c})}var d=Xt(s.json.product_tours)?s.json.product_tours:[];this.ki=d,r&&r.register({[Ig]:d}),t(d,{isLoaded:!0})}})}else t(this.ki,{isLoaded:!0})}getActiveProductTours(t){if(Wt(this.Pi))return Pr.warn("Product tours not loaded yet"),void t([],{isLoaded:!1,error:"Product tours not loaded"});this.Pi.getActiveProductTours(t)}showProductTour(t){var n;Pr.info("showProductTour("+t+")"),(n=this.Pi)==null||n.showTourById(t)}dismissProductTour(){var t;(t=this.Pi)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Pi)==null||t.nextStep()}previousStep(){var t;(t=this.Pi)==null||t.previousStep()}clearCache(){this.ki=null;var t=this._instance.persistence;t&&t.unregister(Ig)}resetTour(t){var n;(n=this.Pi)==null||n.resetTour(t)}resetAllTours(){var t;(t=this.Pi)==null||t.resetAllTours()}}var Fc=function(e){return e.Activation="events",e.Cancellation="cancelEvents",e}({});(function(e){return e.Button="button",e.Tab="tab",e.Selector="selector",e})({});(function(e){return e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger",e})({});(function(e){return e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom",e})({});var Dg=function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e}({});(function(e){return e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link",e})({});(function(e){return e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question",e})({});(function(e){return e.Once="once",e.Recurring="recurring",e.Always="always",e})({});var Xh=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),C5=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),y9=function(e){return e.Popover="popover",e.Inline="inline",e}({});class pv{constructor(){this.Ii={},this.Ii={}}on(t,n){return this.Ii[t]||(this.Ii[t]=[]),this.Ii[t].push(n),()=>{this.Ii[t]=this.Ii[t].filter(r=>r!==n)}}emit(t,n){for(var r of this.Ii[t]||[])r(n);for(var a of this.Ii["*"]||[])a(t,n)}}function Fo(e,t,n){if(Wt(e))return!1;switch(n){case"exact":return e===t;case"contains":var r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class TV{constructor(t){this.Fi=new pv,this.Mi=(n,r)=>this.Oi(n,r)&&this.Ai(n,r)&&this.Di(n,r)&&this.ji(n,r),this.Oi=(n,r)=>r==null||!r.event||(n==null?void 0:n.event)===(r==null?void 0:r.event),this._instance=t,this.Li=new Set,this.Ni=new Set}init(){var t;if(!ze((t=this._instance)==null?void 0:t.Ui)){var n;(n=this._instance)==null||n.Ui((r,a)=>{this.on(r,a)})}}register(t){var n,r;if(!ze((n=this._instance)==null?void 0:n.Ui)&&(t.forEach(o=>{var c,d;(c=this.Ni)==null||c.add(o),(d=o.steps)==null||d.forEach(f=>{var m;(m=this.Li)==null||m.add((f==null?void 0:f.event)||"")})}),(r=this._instance)!=null&&r.autocapture)){var a,s=new Set;t.forEach(o=>{var c;(c=o.steps)==null||c.forEach(d=>{d!=null&&d.selector&&s.add(d==null?void 0:d.selector)})}),(a=this._instance)==null||a.autocapture.setElementSelectors(s)}}on(t,n){var r;n!=null&&t.length!=0&&(this.Li.has(t)||this.Li.has(n==null?void 0:n.event))&&this.Ni&&((r=this.Ni)==null?void 0:r.size)>0&&this.Ni.forEach(a=>{this.zi(n,a)&&this.Fi.emit("actionCaptured",a.name)})}Hi(t){this.onAction("actionCaptured",n=>t(n))}zi(t,n){if((n==null?void 0:n.steps)==null)return!1;for(var r of n.steps)if(this.Mi(t,r))return!0;return!1}onAction(t,n){return this.Fi.on(t,n)}Ai(t,n){if(n!=null&&n.url){var r,a=t==null||(r=t.properties)==null?void 0:r.$current_url;if(!a||typeof a!="string"||!Fo(a,n.url,n.url_matching||"contains"))return!1}return!0}Di(t,n){return!!this.Bi(t,n)&&!!this.qi(t,n)&&!!this.Wi(t,n)}Bi(t,n){var r;if(n==null||!n.href)return!0;var a=this.Gi(t);if(a.length>0)return a.some(c=>Fo(c.href,n.href,n.href_matching||"exact"));var s,o=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!o&&Fo((s=o.match(/(?::|")href="(.*?)"/))?s[1]:"",n.href,n.href_matching||"exact")}qi(t,n){var r;if(n==null||!n.text)return!0;var a=this.Gi(t);if(a.length>0)return a.some(f=>Fo(f.text,n.text,n.text_matching||"exact")||Fo(f.$el_text,n.text,n.text_matching||"exact"));var s,o,c,d=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!d&&(s=function(f){for(var m,p=[],b=/(?::|")text="(.*?)"/g;!Wt(m=b.exec(f));)p.includes(m[1])||p.push(m[1]);return p}(d),o=n.text,c=n.text_matching||"exact",s.some(f=>Fo(f,o,c)))}Wi(t,n){var r,a;if(n==null||!n.selector)return!0;var s=t==null||(r=t.properties)==null?void 0:r.$element_selectors;if(s!=null&&s.includes(n.selector))return!0;var o=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";if(n.selector_regex&&o)try{return new RegExp(n.selector_regex).test(o)}catch{return!1}return!1}Gi(t){var n;return(t==null||(n=t.properties)==null?void 0:n.$elements)==null?[]:t==null?void 0:t.properties.$elements}ji(t,n){return n==null||!n.properties||n.properties.length===0||v9(n.properties.reduce((r,a)=>{var s=Xt(a.value)?a.value.map(String):a.value!=null?[String(a.value)]:[];return r[a.key]={values:s,operator:a.operator||"exact"},r},{}),t==null?void 0:t.properties)}}var Jt=er("[Surveys]"),Kb="seenSurvey_",xV=(e,t)=>{var n="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(n="$survey_"+t+"/"+e.id+"/"+e.current_iteration),n},N5=e=>{var t=""+Kb+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+Kb+e.id+"_"+e.current_iteration),t},SV=[Dg.Popover,Dg.Widget,Dg.API],wV={ignoreConditions:!1,ignoreDelay:!1,displayType:y9.Popover};class AV{constructor(t){this._instance=t,this.Vi=new Map,this.Ji=new Map,this.Ki=new Map}Yi(t,n){return!!t&&v9(t.propertyFilters,n==null?void 0:n.properties)}Xi(t,n){var r=new Map;return t.forEach(a=>{var s;(s=a.conditions)==null||(s=s[n])==null||(s=s.values)==null||s.forEach(o=>{if(o!=null&&o.name){var c=r.get(o.name)||[];c.push(a.id),r.set(o.name,c)}})}),r}Qi(t,n,r){var a,s=(r===Fc.Activation?this.Vi:this.Ji).get(t),o=[];return(a=this._instance)==null||a.getSurveys(c=>{o=c.filter(d=>s==null?void 0:s.includes(d.id))}),o.filter(c=>{var d,f=(d=c.conditions)==null||(d=d[r])==null||(d=d.values)==null?void 0:d.find(m=>m.name===t);return this.Yi(f,n)})}register(t){var n;ze((n=this._instance)==null?void 0:n.Ui)||(this.Zi(t),this.te(t))}te(t){var n=t.filter(r=>{var a,s;return((a=r.conditions)==null?void 0:a.actions)&&((s=r.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0});n.length!==0&&(this.ie==null&&(this.ie=new TV(this._instance),this.ie.init(),this.ie.Hi(r=>{this.onAction(r)})),n.forEach(r=>{var a,s,o,c,d;r.conditions&&(a=r.conditions)!=null&&a.actions&&(s=r.conditions)!=null&&(s=s.actions)!=null&&s.values&&((o=r.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((c=this.ie)==null||c.register(r.conditions.actions.values),(d=r.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach(f=>{if(f&&f.name){var m=this.Ki.get(f.name);m&&m.push(r.id),this.Ki.set(f.name,m||[r.id])}}))}))}Zi(t){var n,r=t.filter(s=>{var o,c;return((o=s.conditions)==null?void 0:o.events)&&((c=s.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0}),a=t.filter(s=>{var o,c;return((o=s.conditions)==null?void 0:o.cancelEvents)&&((c=s.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0});(r.length!==0||a.length!==0)&&((n=this._instance)==null||n.Ui((s,o)=>{this.onEvent(s,o)}),this.Vi=this.Xi(t,Fc.Activation),this.Ji=this.Xi(t,Fc.Cancellation))}onEvent(t,n){var r,a=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[Oh])||[];if(Xh.SHOWN===t&&n&&a.length>0){var s;Jt.info("survey event matched, removing survey from activated surveys",{event:t,eventPayload:n,existingActivatedSurveys:a});var o=n==null||(s=n.properties)==null?void 0:s.$survey_id;if(o){var c=a.indexOf(o);c>=0&&(a.splice(c,1),this.ee(a))}}else{if(this.Ji.has(t)){var d=this.Qi(t,n,Fc.Cancellation);d.length>0&&(Jt.info("cancel event matched, cancelling surveys",{event:t,surveysToCancel:d.map(m=>m.id)}),d.forEach(m=>{var p,b=a.indexOf(m.id);b>=0&&a.splice(b,1),(p=this._instance)==null||p.cancelPendingSurvey(m.id)}),this.ee(a))}if(this.Vi.has(t)){Jt.info("survey event name matched",{event:t,eventPayload:n,surveys:this.Vi.get(t)});var f=this.Qi(t,n,Fc.Activation);this.ee(a.concat(f.map(m=>m.id)||[]))}}}onAction(t){var n,r=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[Oh])||[];this.Ki.has(t)&&this.ee(r.concat(this.Ki.get(t)||[]))}ee(t){var n;Jt.info("updating activated surveys",{activatedSurveys:t}),(n=this._instance)==null||(n=n.persistence)==null||n.register({[Oh]:[...new Set(t)]})}getSurveys(){var t,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[Oh];return n||[]}getEventToSurveys(){return this.Vi}re(){return this.ie}}class kV{constructor(t){this.se=void 0,this._surveyManager=null,this.ne=!1,this.oe=!1,this.ae=[],this._instance=t,this._surveyEventReceiver=null}onRemoteConfig(t){if(!this._instance.config.disable_surveys){var n=t.surveys;if(Wt(n))return Jt.warn("Flags not loaded yet. Not loading surveys.");var r=Xt(n);this.se=r?n.length>0:n,Jt.info("flags response received, isSurveysEnabled: "+this.se),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);(r!=null&&r.startsWith(Kb)||r!=null&&r.startsWith("inProgressSurvey_"))&&t.push(r)}t.forEach(a=>localStorage.removeItem(a))}loadIfEnabled(){if(!this._surveyManager)if(this.oe)Jt.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Jt.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Jt.info("Not loading surveys in cookieless mode without consent.");else{var t=ht==null?void 0:ht.__PosthogExtensions__;if(t){if(!ze(this.se)||this._instance.config.advanced_enable_surveys){var n=this.se||this._instance.config.advanced_enable_surveys;this.oe=!0;try{var r=t.generateSurveys;if(r)return void this.le(r,n);var a=t.loadExternalDependency;if(!a)return void this.ue("PostHog loadExternalDependency extension not found.");a(this._instance,"surveys",s=>{s||!t.generateSurveys?this.ue("Could not load surveys script",s):this.le(t.generateSurveys,n)})}catch(s){throw this.ue("Error initializing surveys",s),s}finally{this.oe=!1}}}else Jt.error("PostHog Extensions not found.")}}le(t,n){this._surveyManager=t(this._instance,n),this._surveyEventReceiver=new AV(this._instance),Jt.info("Surveys loaded successfully"),this.he({isLoaded:!0})}ue(t,n){Jt.error(t,n),this.he({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.ae.push(t),this._surveyManager&&this.he({isLoaded:!0}),()=>{this.ae=this.ae.filter(n=>n!==t)}}getSurveys(t,n){if(n===void 0&&(n=!1),this._instance.config.disable_surveys)return Jt.info("Disabled. Not loading surveys."),t([]);var r=this._instance.get_property(Pb);if(r&&!n)return t(r,{isLoaded:!0});if(this.ne)return t([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.ne=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:a=>{var s;this.ne=!1;var o=a.statusCode;if(o!==200||!a.json){var c="Surveys API could not be loaded, status: "+o;return Jt.error(c),t([],{isLoaded:!1,error:c})}var d,f=a.json.surveys||[],m=f.filter(p=>function(b){return!(!b.start_date||b.end_date)}(p)&&(function(b){var y;return!((y=b.conditions)==null||(y=y.events)==null||(y=y.values)==null||!y.length)}(p)||function(b){var y;return!((y=b.conditions)==null||(y=y.actions)==null||(y=y.values)==null||!y.length)}(p)));return m.length>0&&((d=this._surveyEventReceiver)==null||d.register(m)),(s=this._instance.persistence)==null||s.register({[Pb]:f}),t(f,{isLoaded:!0})}})}catch(a){throw this.ne=!1,a}}he(t){for(var n of this.ae)try{if(!t.isLoaded)return n([],t);this.getSurveys(n)}catch(r){Jt.error("Error in survey callback",r)}}getActiveMatchingSurveys(t,n){if(n===void 0&&(n=!1),!Wt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,n);Jt.warn("init was not called")}de(t){var n=null;return this.getSurveys(r=>{var a;n=(a=r.find(s=>s.id===t))!==null&&a!==void 0?a:null}),n}ve(t){if(Wt(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var n=typeof t=="string"?this.de(t):t;return n?this._surveyManager.checkSurveyEligibility(n):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(Wt(this._surveyManager))return Jt.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var n=this.ve(t);return{visible:n.eligible,disabledReason:n.reason}}canRenderSurveyAsync(t,n){return Wt(this._surveyManager)?(Jt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(r=>{this.getSurveys(a=>{var s,o=(s=a.find(d=>d.id===t))!==null&&s!==void 0?s:null;if(o){var c=this.ve(o);r({visible:c.eligible,disabledReason:c.reason})}else r({visible:!1,disabledReason:"Survey not found"})},n)})}renderSurvey(t,n){var r;if(Wt(this._surveyManager))Jt.warn("init was not called");else{var a=typeof t=="string"?this.de(t):t;if(a!=null&&a.id)if(SV.includes(a.type)){var s=je==null?void 0:je.querySelector(n);if(s)return(r=a.appearance)!=null&&r.surveyPopupDelaySeconds?(Jt.info("Rendering survey "+a.id+" with delay of "+a.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var o,c;Jt.info("Rendering survey "+a.id+" with delay of "+((o=a.appearance)==null?void 0:o.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(a,s),Jt.info("Survey "+a.id+" rendered")},1e3*a.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(a,s);Jt.warn("Survey element not found")}else Jt.warn("Surveys of type "+a.type+" cannot be rendered in the app");else Jt.warn("Survey not found")}}displaySurvey(t,n){var r;if(Wt(this._surveyManager))Jt.warn("init was not called");else{var a=this.de(t);if(a){var s=a;if((r=a.appearance)!=null&&r.surveyPopupDelaySeconds&&n.ignoreDelay&&(s=Xe({},a,{appearance:Xe({},a.appearance,{surveyPopupDelaySeconds:0})})),n.ignoreConditions===!1){var o=this.canRenderSurvey(a);if(!o.visible)return void Jt.warn("Survey is not eligible to be displayed: ",o.disabledReason)}n.displayType!==y9.Inline?this._surveyManager.handlePopoverSurvey(s):this.renderSurvey(s,n.selector)}else Jt.warn("Survey not found")}}cancelPendingSurvey(t){Wt(this._surveyManager)?Jt.warn("init was not called"):this._surveyManager.cancelSurvey(t)}}var O5=er("[RateLimiter]");class CV{constructor(t){var n,r;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=a=>{var s=a.text;if(s&&s.length)try{(JSON.parse(s).quota_limited||[]).forEach(o=>{O5.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4})}catch(o){return void O5.warn('could not rate limit - continuing. Error: "'+(o==null?void 0:o.message)+'"',{text:s})}},this.instance=t,this.captureEventsPerSecond=((n=t.config.rate_limiting)==null?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max(((r=t.config.rate_limiting)==null?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(t){var n,r,a;t===void 0&&(t=!1);var s=new Date().getTime(),o=(n=(r=this.instance.persistence)==null?void 0:r.get_property(Ub))!==null&&n!==void 0?n:{tokens:this.captureEventsBurstLimit,last:s};o.tokens+=(s-o.last)/1e3*this.captureEventsPerSecond,o.last=s,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var c=o.tokens<1;return c||t||(o.tokens=Math.max(0,o.tokens-1)),!c||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=c,(a=this.instance.persistence)==null||a.set_property(Ub,o),{isRateLimited:c,remainingTokens:o.tokens}}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var zl=er("[RemoteConfig]");class NV{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=ht._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}ce(t){var n,r;(n=ht.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=ht.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",()=>t(this.remoteConfig)):(zl.error("PostHog Extensions not found. Cannot load remote config."),t())}fe(t){this._instance.ci({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:n=>{t(n.json)}})}load(){try{if(this.remoteConfig)return zl.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.O())return void zl.warn("Remote config is disabled. Falling back to local config.");this.ce(t=>{if(!t)return zl.info("No config found after loading remote JS config. Falling back to JSON."),void this.fe(n=>{this.fi(n)});this.fi(t)})}catch(t){zl.error("Error loading remote config",t)}}fi(t){t?this._instance.config.__preview_remote_config?(this._instance.fi(t),t.hasFeatureFlags!==!1&&this._instance.featureFlags.ensureFlagsLoaded()):zl.info("__preview_remote_config is disabled. Logging config instead",t):zl.error("Failed to fetch remote config from PostHog.")}}var Wb=3e3;class OV{constructor(t,n){this.pe=!0,this.ge=[],this._e=mi((n==null?void 0:n.flush_interval_ms)||Wb,250,5e3,Ye.createLogger("flush interval"),Wb),this.me=t}enqueue(t){this.ge.push(t),this.ye||this.be()}unload(){this.we();var t=this.ge.length>0?this.xe():{},n=Object.values(t);[...n.filter(r=>r.url.indexOf("/e")===0),...n.filter(r=>r.url.indexOf("/e")!==0)].map(r=>{this.me(Xe({},r,{transport:"sendBeacon"}))})}enable(){this.pe=!1,this.be()}be(){var t=this;this.pe||(this.ye=setTimeout(()=>{if(this.we(),this.ge.length>0){var n=this.xe(),r=function(){var s=n[a],o=new Date().getTime();s.data&&Xt(s.data)&&mn(s.data,c=>{c.offset=Math.abs(c.timestamp-o),delete c.timestamp}),t.me(s)};for(var a in n)r()}},this._e))}we(){clearTimeout(this.ye),this.ye=void 0}xe(){var t={};return mn(this.ge,n=>{var r,a=n,s=(a?a.batchKey:null)||a.url;ze(t[s])&&(t[s]=Xe({},a,{data:[]})),(r=t[s].data)==null||r.push(a.data)}),this.ge=[],t}}var RV=["retriesPerformedSoFar"];class MV{constructor(t){this.Ee=!1,this.Se=3e3,this.ge=[],this._instance=t,this.ge=[],this.$e=!0,!ze(ge)&&"onLine"in ge.navigator&&(this.$e=ge.navigator.onLine,this.ke=()=>{this.$e=!0,this.Dt()},this.Pe=()=>{this.$e=!1},Zn(ge,"online",this.ke),Zn(ge,"offline",this.Pe))}get length(){return this.ge.length}retriableRequest(t){var{retriesPerformedSoFar:n}=t,r=mS(t,RV);bi(n)&&n>0&&(r.url=Rf(r.url,{retry_count:n})),this._instance.ci(Xe({},r,{callback:a=>{a.statusCode!==200&&(a.statusCode<400||a.statusCode>=500)&&(n??0)<10?this.Te(Xe({retriesPerformedSoFar:n},r)):r.callback==null||r.callback(a)}}))}Te(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var r=function(o){var c=3e3*Math.pow(2,o),d=c/2,f=Math.min(18e5,c),m=(Math.random()-.5)*(f-d);return Math.ceil(f+m)}(n),a=Date.now()+r;this.ge.push({retryAt:a,requestOptions:t});var s="Enqueued failed request for retry in "+r;navigator.onLine||(s+=" (Browser is offline)"),Ye.warn(s),this.Ee||(this.Ee=!0,this.Re())}Re(){if(this.Ce&&clearTimeout(this.Ce),this.ge.length===0)return this.Ee=!1,void(this.Ce=void 0);this.Ce=setTimeout(()=>{this.$e&&this.ge.length>0&&this.Dt(),this.Re()},this.Se)}Dt(){var t=Date.now(),n=[],r=this.ge.filter(s=>s.retryAt<t||(n.push(s),!1));if(this.ge=n,r.length>0)for(var{requestOptions:a}of r)this.retriableRequest(a)}unload(){for(var{requestOptions:t}of(this.Ce&&(clearTimeout(this.Ce),this.Ce=void 0),this.Ee=!1,ze(ge)||(this.ke&&(ge.removeEventListener("online",this.ke),this.ke=void 0),this.Pe&&(ge.removeEventListener("offline",this.Pe),this.Pe=void 0)),this.ge))try{this._instance.ci(Xe({},t,{transport:"sendBeacon"}))}catch(n){Ye.error(n)}this.ge=[]}}class IV{constructor(t){this.Ie=()=>{var n,r,a,s;this.Fe||(this.Fe={});var o=this.scrollElement(),c=this.scrollY(),d=o?Math.max(0,o.scrollHeight-o.clientHeight):0,f=c+((o==null?void 0:o.clientHeight)||0),m=(o==null?void 0:o.scrollHeight)||0;this.Fe.lastScrollY=Math.ceil(c),this.Fe.maxScrollY=Math.max(c,(n=this.Fe.maxScrollY)!==null&&n!==void 0?n:0),this.Fe.maxScrollHeight=Math.max(d,(r=this.Fe.maxScrollHeight)!==null&&r!==void 0?r:0),this.Fe.lastContentY=f,this.Fe.maxContentY=Math.max(f,(a=this.Fe.maxContentY)!==null&&a!==void 0?a:0),this.Fe.maxContentHeight=Math.max(m,(s=this.Fe.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=t}getContext(){return this.Fe}resetContext(){var t=this.Fe;return setTimeout(this.Ie,0),t}startMeasuringScrollPosition(){Zn(ge,"scroll",this.Ie,{capture:!0}),Zn(ge,"scrollend",this.Ie,{capture:!0}),Zn(ge,"resize",this.Ie)}scrollElement(){if(!this._instance.config.scroll_root_selector)return ge==null?void 0:ge.document.documentElement;var t=Xt(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var n of t){var r=ge==null?void 0:ge.document.querySelector(n);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var DV=e=>u9(e==null?void 0:e.config.mask_personal_data_properties,e==null?void 0:e.config.custom_personal_data_properties);class R5{constructor(t,n,r,a){this.Me=s=>{var o=this.Oe();if(!o||o.sessionId!==s){var c={sessionId:s,props:this.Ae(this._instance)};this.De.register({[Bb]:c})}},this._instance=t,this.je=n,this.De=r,this.Ae=a||DV,this.je.onSessionId(this.Me)}Oe(){return this.De.props[Bb]}getSetOnceProps(){var t,n=(t=this.Oe())==null?void 0:t.props;return n?"r"in n?c9(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return mn(iv(this.getSetOnceProps()),(n,r)=>{r==="$current_url"&&(r="url"),t["$session_entry_"+Nb(r)]=n}),t}}var Lg=er("[SessionId]");class M5{on(t,n){return this.Le.on(t,n)}constructor(t,n,r){var a;if(this.Ne=[],this.Ue=void 0,this.Le=new pv,this.ze=(m,p)=>Math.abs(m-p)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode==="always")throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.I=t.config,this.De=t.persistence,this.He=void 0,this.Be=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.qe=n||el,this.We=r||el;var s=this.I.persistence_name||this.I.token,o=this.I.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*mi(o,60,36e3,Lg.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ge(),this.Ve="ph_"+s+"_window_id",this.Je="ph_"+s+"_primary_window_exists",this.Ke()){var c=_r.W(this.Ve),d=_r.W(this.Je);c&&!d?this.He=c:_r.V(this.Ve),_r.G(this.Je,!0)}if((a=this.I.bootstrap)!=null&&a.sessionID)try{var f=(m=>{var p=m.replace(/-/g,"");if(p.length!==32)throw new Error("Not a valid UUID");if(p[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(p.substring(0,12),16)})(this.I.bootstrap.sessionID);this.Ye(this.I.bootstrap.sessionID,new Date().getTime(),f)}catch(m){Lg.error("Invalid sessionID in bootstrap",m)}this.Xe()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return ze(this.Ne)&&(this.Ne=[]),this.Ne.push(t),this.Be&&t(this.Be,this.He),()=>{this.Ne=this.Ne.filter(n=>n!==t)}}Ke(){return this.I.persistence!=="memory"&&!this.De.wi&&_r.H()}Qe(t){t!==this.He&&(this.He=t,this.Ke()&&_r.G(this.Ve,t))}Ze(){return this.He?this.He:this.Ke()?_r.W(this.Ve):null}Ye(t,n,r){t===this.Be&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.Be=t,this.De.register({[_f]:[n,t,r]}))}tr(){var t=this.De.props[_f];return Xt(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.Ye(null,null,null)}destroy(){clearTimeout(this.ir),this.ir=void 0,this.Ue&&ge&&(ge.removeEventListener("beforeunload",this.Ue,{capture:!1}),this.Ue=void 0),this.Ne=[]}Xe(){this.Ue=()=>{this.Ke()&&_r.V(this.Je)},Zn(ge,"beforeunload",this.Ue,{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.I.cookieless_mode==="always")throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[a,s,o]=this.tr(),c=this.Ze(),d=bi(o)&&o>0&&Math.abs(r-o)>864e5,f=!1,m=!s,p=!m&&!t&&this.ze(r,a);m||p||d?(s=this.qe(),c=this.We(),Lg.info("new session ID generated",{sessionId:s,windowId:c,changeReason:{noSessionId:m,activityTimeout:p,sessionPastMaximumLength:d}}),o=r,f=!0):c||(c=this.We(),f=!0);var b=a===0||!t||d?r:a,y=o===0?new Date().getTime():o;return this.Qe(c),this.Ye(s,b,y),t||this.Ge(),f&&this.Ne.forEach(T=>T(s,c,f?{noSessionId:m,activityTimeout:p,sessionPastMaximumLength:d}:void 0)),{sessionId:s,windowId:c,sessionStartTimestamp:y,changeReason:f?{noSessionId:m,activityTimeout:p,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:a}}Ge(){clearTimeout(this.ir),this.ir=setTimeout(()=>{var[t]=this.tr();if(this.ze(new Date().getTime(),t)){var n=this.Be;this.resetSessionId(),this.Le.emit("forcedIdleReset",{idleSessionId:n})}},1.1*this.sessionTimeoutMs)}}var LV=["$set_once","$set"],$s=er("[SiteApps]");class PV{constructor(t){this._instance=t,this.er=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}rr(t,n){if(n){var r=this.globalsForEvent(n);this.er.push(r),this.er.length>1e3&&(this.er=this.er.slice(10))}}get siteAppLoaders(){var t;return(t=ht._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}init(){if(this.isEnabled){var t=this._instance.Ui(this.rr.bind(this));this.sr=()=>{t(),this.er=[],this.sr=void 0}}}globalsForEvent(t){var n,r,a,s,o,c,d;if(!t)throw new Error("Event payload is required");var f={},m=this._instance.get_property("$groups")||[],p=this._instance.get_property("$stored_group_properties")||{};for(var[b,y]of Object.entries(p))f[b]={id:m[b],type:b,properties:y};var{$set_once:T,$set:x}=t;return{event:Xe({},mS(t,LV),{properties:Xe({},t.properties,x?{$set:Xe({},(n=(r=t.properties)==null?void 0:r.$set)!==null&&n!==void 0?n:{},x)}:{},T?{$set_once:Xe({},(a=(s=t.properties)==null?void 0:s.$set_once)!==null&&a!==void 0?a:{},T)}:{}),elements_chain:(o=(c=t.properties)==null?void 0:c.$elements_chain)!==null&&o!==void 0?o:"",distinct_id:(d=t.properties)==null?void 0:d.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:f}}setupSiteApp(t){var n=this.apps[t.id],r=()=>{var c;!n.errored&&this.er.length&&($s.info("Processing "+this.er.length+" events for site app with id "+t.id),this.er.forEach(d=>n.processEvent==null?void 0:n.processEvent(d)),n.processedBuffer=!0),Object.values(this.apps).every(d=>d.processedBuffer||d.errored)&&((c=this.sr)==null||c.call(this))},a=!1,s=c=>{n.errored=!c,n.loaded=!0,$s.info("Site app with id "+t.id+" "+(c?"loaded":"errored")),a&&r()};try{var{processEvent:o}=t.init({posthog:this._instance,callback:c=>{s(c)}});o&&(n.processEvent=o),a=!0}catch(c){$s.error("Error while initializing PostHog app with config id "+t.id,c),s(!1)}if(a&&n.loaded)try{r()}catch(c){$s.error("Error while processing buffered events PostHog app with config id "+t.id,c),n.errored=!0}}nr(){var t=this.siteAppLoaders||[];for(var n of t)this.apps[n.id]={id:n.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of t)this.setupSiteApp(r)}ar(t){if(Object.keys(this.apps).length!==0){var n=this.globalsForEvent(t);for(var r of Object.values(this.apps))try{r.processEvent==null||r.processEvent(n)}catch(a){$s.error("Error while processing event "+t.event+" for site app "+r.id,a)}}}onRemoteConfig(t){var n,r,a,s=this;if((n=this.siteAppLoaders)!=null&&n.length)return this.isEnabled?(this.nr(),void this._instance.on("eventCaptured",f=>this.ar(f))):void $s.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((r=this.sr)==null||r.call(this),(a=t.siteApps)!=null&&a.length)if(this.isEnabled){var o=function(f){var m;ht["__$$ph_site_app_"+f]=s._instance,(m=ht.__PosthogExtensions__)==null||m.loadSiteApp==null||m.loadSiteApp(s._instance,d,p=>{if(p)return $s.error("Error while initializing PostHog app with config id "+f,p)})};for(var{id:c,url:d}of t.siteApps)o(c)}else $s.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var _9=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&$6(n,t))return!0;try{var r=e==null?void 0:e.userAgentData;if(r!=null&&r.brands&&r.brands.some(a=>$6(a==null?void 0:a.brand,t)))return!0}catch{}return!!e.webdriver},Xc=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),I5="i.posthog.com";class BV{constructor(t){this.lr={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+I5,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.lr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.lr[this.apiHost]=Xc.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.lr[this.apiHost]=Xc.EU:this.lr[this.apiHost]=Xc.CUSTOM),this.lr[this.apiHost]}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(t==="flags")return this.flagsApiHost+n;if(this.region===Xc.CUSTOM)return this.apiHost+n;var r=I5+n;switch(t){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var UV={icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!ge&&Mf(t.href,e),not_regex:(e,t)=>!!ge&&!Mf(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Ar{constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments(a=>{Ar.ur("retrieved web experiments from the server"),n.hr=new Map,a.forEach(s=>{if(s.feature_flag_key){var o;n.hr&&(Ar.ur("setting flag key ",s.feature_flag_key," to web experiment ",s),(o=n.hr)==null||o.set(s.feature_flag_key,s));var c=n._instance.getFeatureFlag(s.feature_flag_key);ir(c)&&s.variants[c]&&n.dr(s.name,c,s.variants[c].transforms)}else if(s.variants)for(var d in s.variants){var f=s.variants[d];Ar.vr(f)&&n.dr(s.name,d,f.transforms)}})},r)},this._instance=t,this._instance.onFeatureFlags(r=>{this.onFeatureFlags(r)})}onFeatureFlags(t){if(this._is_bot())Ar.ur("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(Wt(this.hr))return this.hr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Ar.ur("applying feature flags",t),t.forEach(n=>{var r;if(this.hr&&(r=this.hr)!=null&&r.has(n)){var a,s=this._instance.getFeatureFlag(n),o=(a=this.hr)==null?void 0:a.get(n);s&&o!=null&&o.variants[s]&&this.dr(o.name,s,o.variants[s].transforms)}})}}previewWebExperiment(){var t=Ar.getWindowLocation();if(t!=null&&t.search){var n=Af(t==null?void 0:t.search,"__experiment_id"),r=Af(t==null?void 0:t.search,"__experiment_variant");n&&r&&(Ar.ur("previewing web experiments "+n+" && "+r),this.getWebExperiments(a=>{this.cr(parseInt(n),r,a)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this._instance.config.disable_web_experiments&&!r)return t([]);var a=this._instance.get_property("$web_experiments");if(a&&!n)return t(a);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:s=>{if(s.statusCode!==200||!s.json)return t([]);var o=s.json.experiments||[];return t(o)}})}cr(t,n,r){var a=r.filter(s=>s.id===t);a&&a.length>0&&(Ar.ur("Previewing web experiment ["+a[0].name+"] with variant ["+n+"]"),this.dr(a[0].name,n,a[0].variants[n].transforms))}static vr(t){return!Wt(t.conditions)&&Ar.pr(t)&&Ar.gr(t)}static pr(t){var n;if(Wt(t.conditions)||Wt((n=t.conditions)==null?void 0:n.url))return!0;var r,a,s,o=Ar.getWindowLocation();return!!o&&((r=t.conditions)==null||!r.url||UV[(a=(s=t.conditions)==null?void 0:s.urlMatchType)!==null&&a!==void 0?a:"icontains"](t.conditions.url,o))}static getWindowLocation(){return ge==null?void 0:ge.location}static gr(t){var n;if(Wt(t.conditions)||Wt((n=t.conditions)==null?void 0:n.utm))return!0;var r=i9();if(r.utm_source){var a,s,o,c,d,f,m,p,b=(a=t.conditions)==null||(a=a.utm)==null||!a.utm_campaign||((s=t.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==r.utm_campaign,y=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==r.utm_source,T=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((f=t.conditions)==null||(f=f.utm)==null?void 0:f.utm_medium)==r.utm_medium,x=(m=t.conditions)==null||(m=m.utm)==null||!m.utm_term||((p=t.conditions)==null||(p=p.utm)==null?void 0:p.utm_term)==r.utm_term;return b&&T&&x&&y}return!1}static ur(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];Ye.info("[WebExperiments] "+t,r)}dr(t,n,r){this._is_bot()?Ar.ur("Refusing to render web experiment since the viewer is a likely bot"):n!=="control"?r.forEach(a=>{if(a.selector){var s;Ar.ur("applying transform of variant "+n+" for experiment "+t+" ",a);var o=(s=document)==null?void 0:s.querySelectorAll(a.selector);o==null||o.forEach(c=>{var d=c;a.html&&(d.innerHTML=a.html),a.css&&d.setAttribute("style",a.css)})}}):Ar.ur("Control variants leave the page unmodified.")}_is_bot(){return ya&&this._instance?_9(ya,this._instance.config.custom_blocked_useragents):void 0}}var FV=er("[PostHog ExternalIntegrations]"),zV={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class HV{constructor(t){this._instance=t}it(t,n){var r;(r=ht.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,t,a=>{if(a)return FV.error("failed to load script",a);n()})}startIfEnabledOrStop(){var t=this,n=function(o){var c,d,f;!a||(c=ht.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[o]||t.it(zV[o],()=>{var m;(m=ht.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[o])==null||m.start(t._instance)}),!a&&(d=ht.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[o]&&((f=ht.__PosthogExtensions__)==null||(f=f.integrations)==null||(f=f[o])==null||f.stop())};for(var[r,a]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;n(r)}}}var Xb="[SessionRecording]",zc=er(Xb);class D5{get started(){var t;return!((t=this._r)==null||!t.isStarted)}get status(){return this._r?this._r.status:this.mr&&!this.yr?"disabled":"lazy_loading"}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.mr=!1,this.br=void 0,this._instance=t,!this._instance.sessionManager)throw zc.error("started without valid sessionManager"),new Error(Xb+" started without valid sessionManager. This is a bug.");if(this._instance.config.cookieless_mode==="always")throw new Error(Xb+' cannot be used with cookieless_mode="always"')}get yr(){var t,n=!((t=this._instance.get_property(Eg))==null||!t.enabled),r=!this._instance.config.disable_session_recording,a=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return ge&&n&&r&&!a}startIfEnabledOrStop(t){var n;if(!this.yr||(n=this._r)==null||!n.isStarted){var r=!ze(Object.assign)&&!ze(Array.from);this.yr&&r?(this.wr(t),zc.info("starting")):this.stopRecording()}}wr(t){var n,r,a;this.yr&&(ht!=null&&(n=ht.__PosthogExtensions__)!=null&&(n=n.rrweb)!=null&&n.record&&(r=ht.__PosthogExtensions__)!=null&&r.initSessionRecording?this.Er(t):(a=ht.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Sr,s=>{if(s)return zc.error("could not load recorder",s);this.Er(t)}))}stopRecording(){var t,n;(t=this.br)==null||t.call(this),this.br=void 0,(n=this._r)==null||n.stop()}$r(){var t;(t=this._instance.persistence)==null||t.unregister(SS)}kr(t){if(this._instance.persistence){var n,r,a=this._instance.persistence,s=()=>{var o=t.sessionRecording===!1?void 0:t.sessionRecording,c=o==null?void 0:o.sampleRate,d=Wt(c)?null:parseFloat(c);Wt(d)&&this.$r();var f=o==null?void 0:o.minimumDurationMilliseconds;a.register({[Eg]:Xe({enabled:!!o},o,{networkPayloadCapture:Xe({capturePerformance:t.capturePerformance},o==null?void 0:o.networkPayloadCapture),canvasRecording:{enabled:o==null?void 0:o.recordCanvas,fps:o==null?void 0:o.canvasFps,quality:o==null?void 0:o.canvasQuality},sampleRate:d,minimumDurationMilliseconds:ze(f)?null:f,endpoint:o==null?void 0:o.endpoint,triggerMatchType:o==null?void 0:o.triggerMatchType,masking:o==null?void 0:o.masking,urlTriggers:o==null?void 0:o.urlTriggers})})};s(),(n=this.br)==null||n.call(this),this.br=(r=this._instance.sessionManager)==null?void 0:r.onSessionId(s)}}onRemoteConfig(t){"sessionRecording"in t?t.sessionRecording!==!1?(this.kr(t),this.mr=!0,this.startIfEnabledOrStop()):this.mr=!0:zc.info("skipping remote config with no sessionRecording",t)}log(t,n){var r;n===void 0&&(n="log"),(r=this._r)!=null&&r.log?this._r.log(t,n):zc.warn("log called before recorder was ready")}get Sr(){var t,n,r=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(Eg);return(r==null||(n=r.scriptConfig)==null?void 0:n.script)||"lazy-recorder"}Er(t){var n,r;if((n=ht.__PosthogExtensions__)==null||!n.initSessionRecording)throw Error("Called on script loaded before session recording is available");this._r||(this._r=(r=ht.__PosthogExtensions__)==null?void 0:r.initSessionRecording(this._instance),this._r._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this._r.start(t)}onRRwebEmit(t){var n;(n=this._r)==null||n.onRRwebEmit==null||n.onRRwebEmit(t)}overrideLinkedFlag(){var t,n;this._r||(n=this._instance.persistence)==null||n.register({$replay_override_linked_flag:!0}),(t=this._r)==null||t.overrideLinkedFlag()}overrideSampling(){var t,n;this._r||(n=this._instance.persistence)==null||n.register({$replay_override_sampling:!0}),(t=this._r)==null||t.overrideSampling()}overrideTrigger(t){var n,r;this._r||(r=this._instance.persistence)==null||r.register({[t==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}),(n=this._r)==null||n.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this._r)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,n){var r;return!((r=this._r)==null||!r.tryAddCustomEvent(t,n))}}var u0={},Qb=()=>{},Yo="posthog",E9=!pV&&(ea==null?void 0:ea.indexOf("MSIE"))===-1&&(ea==null?void 0:ea.indexOf("Mozilla"))===-1,L5=e=>{var t;return Xe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:uG(je==null?void 0:je.location),persistence:"localStorage+cookie",persistence_name:"",loaded:Qb,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,debug:ta&&ir(ta==null?void 0:ta.search)&&ta.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_product_tours:!0,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(ge==null||(t=ge.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:n=>{var r="Bad HTTP status: "+n.statusCode+" "+n.text;Ye.error(r)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:Wb},error_tracking:{},_onCapture:Qb,__preview_eager_load_replay:!1},(n=>({rageclick:!(n&&n>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(n&&n>="2025-05-24")||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{}}))(e))},P5=e=>{var t={};ze(e.process_person)||(t.person_profiles=e.process_person),ze(e.xhr_headers)||(t.request_headers=e.xhr_headers),ze(e.cookie_name)||(t.persistence_name=e.cookie_name),ze(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),ze(e.store_google)||(t.save_campaign_params=e.store_google),ze(e.verbose)||(t.debug=e.verbose);var n=qn({},t,e);return Xt(e.property_blacklist)&&(ze(e.property_denylist)?n.property_denylist=e.property_blacklist:Xt(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Ye.error("Invalid value for property_denylist config: "+e.property_denylist)),n};class qV{constructor(){this.__forceAllowLocalhost=!1}get Pr(){return this.__forceAllowLocalhost}set Pr(t){Ye.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class cm{get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){this.webPerformance=new qV,this.Tr=!1,this.version=Yi.LIB_VERSION,this.Rr=new pv,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=L5(),this.SentryIntegration=UG,this.sentryIntegration=t=>function(n,r){var a=qS(n,r);return{name:HS,processEvent:s=>a(s)}}(this,t),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Cr=!1,this.Ir=null,this.Fr=null,this.Mr=null,this.featureFlags=new yV(this),this.toolbar=new zG(this),this.scrollManager=new IV(this),this.pageViewManager=new sV(this),this.surveys=new kV(this),this.productTours=new EV(this),this.experiments=new Ar(this),this.exceptions=new gV(this),this.rateLimiter=new CV(this),this.requestRouter=new BV(this),this.consent=new MG(this),this.externalIntegrations=new HV(this),this.people={set:(t,n,r)=>{var a=ir(t)?{[t]:n}:t;this.setPersonProperties(a),r==null||r({})},set_once:(t,n,r)=>{var a=ir(t)?{[t]:n}:t;this.setPersonProperties(void 0,a),r==null||r({})}},this.on("eventCaptured",t=>Ye.info('send "'+(t==null?void 0:t.event)+'"',t))}init(t,n,r){if(r&&r!==Yo){var a,s=(a=u0[r])!==null&&a!==void 0?a:new cm;return s._init(t,n,r),u0[r]=s,u0[Yo][r]=s,s}return this._init(t,n,r)}_init(t,n,r){var a;if(n===void 0&&(n={}),ze(t)||Ob(t))return Ye.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.Or(n.debug),this.Ar=n,this.Dr=[],n.person_profiles&&(this.Fr=n.person_profiles),this.set_config(qn({},L5(n.defaults),P5(n),{name:r,token:t})),this.config.on_xhr_error&&Ye.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:Qi.GZipJS;var s=this.jr();this.persistence=new Mg(this.config,s),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Mg(Xe({},this.config,{persistence:"sessionStorage"}),s);var o=Xe({},this.persistence.props),c=Xe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Lr=new OV(O=>this.Nr(O),this.config.request_queue_config),this.Ur=new MV(this),this.__request_queue=[];var d=this.config.cookieless_mode==="always"||this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut();if(d||(this.sessionManager=new M5(this),this.sessionPropsManager=new R5(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ye.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.zr(d)},0)):(Ye.info("Initializing extensions synchronously"),this.zr(d)),Yi.DEBUG=Yi.DEBUG||this.config.debug,Yi.DEBUG&&Ye.info("Starting in debug mode",{this:this,config:n,thisC:Xe({},this.config),p:o,s:c}),((a=n.bootstrap)==null?void 0:a.distinctID)!==void 0){var f,m,p=this.config.get_device_id(el()),b=(f=n.bootstrap)!=null&&f.isIdentifiedID?p:n.bootstrap.distinctID;this.persistence.set_property(Gi,(m=n.bootstrap)!=null&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:n.bootstrap.distinctID,$device_id:b})}if(this.Hr()){var y,T,x=Object.keys(((y=n.bootstrap)==null?void 0:y.featureFlags)||{}).filter(O=>{var D;return!((D=n.bootstrap)==null||(D=D.featureFlags)==null||!D[O])}).reduce((O,D)=>{var j;return O[D]=((j=n.bootstrap)==null||(j=j.featureFlags)==null?void 0:j[D])||!1,O},{}),C=Object.keys(((T=n.bootstrap)==null?void 0:T.featureFlagPayloads)||{}).filter(O=>x[O]).reduce((O,D)=>{var j,z;return(j=n.bootstrap)!=null&&(j=j.featureFlagPayloads)!=null&&j[D]&&(O[D]=(z=n.bootstrap)==null||(z=z.featureFlagPayloads)==null?void 0:z[D]),O},{});this.featureFlags.receivedFeatureFlags({featureFlags:x,featureFlagPayloads:C})}if(d)this.register_once({distinct_id:Mc,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id(el());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(Gi,"anonymous")}return Zn(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),n.segment?BG(this,()=>this.Br()):this.Br(),tl(this.config._onCapture)&&this.config._onCapture!==Qb&&(Ye.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",O=>this.config._onCapture(O.event,O))),this.config.ip&&Ye.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zr(t){var n=performance.now();this.historyAutocapture=new PG(this),this.historyAutocapture.startIfEnabled();var r=[];r.push(()=>{new qG(this).startIfEnabledOrStop()}),r.push(()=>{var a;this.siteApps=new PV(this),(a=this.siteApps)==null||a.init()}),t||r.push(()=>{this.sessionRecording=new D5(this),this.sessionRecording.startIfEnabledOrStop()}),this.config.disable_scroll_properties||r.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),r.push(()=>{this.autocapture=new SG(this),this.autocapture.startIfEnabled()}),r.push(()=>{this.surveys.loadIfEnabled()}),r.push(()=>{this.productTours.loadIfEnabled()}),r.push(()=>{this.heatmaps=new iV(this),this.heatmaps.startIfEnabled()}),r.push(()=>{this.webVitalsAutocapture=new rV(this)}),r.push(()=>{this.exceptionObserver=new LG(this),this.exceptionObserver.startIfEnabled()}),r.push(()=>{this.deadClicksAutocapture=new zS(this,DG),this.deadClicksAutocapture.startIfEnabled()}),r.push(()=>{if(this.qr){var a=this.qr;this.qr=void 0,this.fi(a)}}),this.Wr(r,n)}Wr(t,n){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&t.length>0)return void setTimeout(()=>{this.Wr(t,n)},0);var r=t.shift();if(r)try{r()}catch(s){Ye.error("Error initializing extension:",s)}}var a=Math.round(performance.now()-n);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:a}),this.config.__preview_deferred_init_extensions&&Ye.info("PostHog extensions initialized ("+a+"ms)")}fi(t){var n,r,a,s,o,c,d,f;if(!je||!je.body)return Ye.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.fi(t)},500);this.config.__preview_deferred_init_extensions&&(this.qr=t),this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Lt(t.supportedCompression,Qi.GZipJS)?Qi.GZipJS:Lt(t.supportedCompression,Qi.Base64)?Qi.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Fr?this.Fr:"identified_only"}),(r=this.siteApps)==null||r.onRemoteConfig(t),(a=this.sessionRecording)==null||a.onRemoteConfig(t),(s=this.autocapture)==null||s.onRemoteConfig(t),(o=this.heatmaps)==null||o.onRemoteConfig(t),this.surveys.onRemoteConfig(t),this.productTours.onRemoteConfig(t),(c=this.webVitalsAutocapture)==null||c.onRemoteConfig(t),(d=this.exceptionObserver)==null||d.onRemoteConfig(t),this.exceptions.onRemoteConfig(t),(f=this.deadClicksAutocapture)==null||f.onRemoteConfig(t)}Br(){try{this.config.loaded(this)}catch(t){Ye.critical("`loaded` function failed",t)}this.Gr(),this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.config.cookieless_mode==="always")&&this.Vr()},1),new NV(this).load(),this.featureFlags.flags()}Gr(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Lr)==null||t.enable())}_dom_loaded(){this.is_capturing()&&rl(this.__request_queue,t=>this.Nr(t)),this.__request_queue=[],this.Gr()}_handle_unload(){var t,n;this.config.request_batching?(this.Jr()&&this.capture("$pageleave"),(t=this.Lr)==null||t.unload(),(n=this.Ur)==null||n.unload()):this.Jr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(t){this.__loaded&&(E9?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=Rf(t.url,{ip:this.config.ip?1:0}),t.headers=Xe({},this.config.request_headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(n=>{var r,a,s,o=Xe({},n);o.timeout=o.timeout||6e4,o.url=Rf(o.url,{_:new Date().getTime().toString(),ver:Yi.LIB_VERSION,compression:o.compression});var c=(r=o.transport)!==null&&r!==void 0?r:"fetch",d=Wh.filter(m=>!o.disableTransport||!m.transport||!o.disableTransport.includes(m.transport)),f=(a=(s=ES(d,m=>m.transport===c))==null?void 0:s.method)!==null&&a!==void 0?a:d[0].method;if(!f)throw new Error("No available transport method");f(o)})(Xe({},t,{callback:n=>{var r,a;this.rateLimiter.checkForLimiting(n),n.statusCode>=400&&((r=(a=this.config).on_request_error)==null||r.call(a,n)),t.callback==null||t.callback(n)}}))))}Nr(t){this.Ur?this.Ur.retriableRequest(t):this.ci(t)}_execute_array(t){var n,r=[],a=[],s=[];rl(t,c=>{c&&(n=c[0],Xt(n)?s.push(c):tl(c)?c.call(this):Xt(c)&&n==="alias"?r.push(c):Xt(c)&&n.indexOf("capture")!==-1&&tl(this[n])?s.push(c):a.push(c))});var o=function(c,d){rl(c,function(f){if(Xt(f[0])){var m=d;mn(f,function(p){m=m[p[0]].apply(m,p.slice(1))})}else this[f[0]].apply(this,f.slice(1))},d)};o(r,this),o(a,this),o(s,this)}Hr(){var t,n;return((t=this.config.bootstrap)==null?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)==null?void 0:n.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,n,r){var a;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Lr){if(this.is_capturing())if(!ze(t)&&ir(t)){var s=!this.config.opt_out_useragent_filter&&this._is_bot();if(!(s&&!this.config.__preview_capture_bot_pageviews)){var o=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(o==null||!o.isRateLimited){n!=null&&n.$current_url&&!ir(n==null?void 0:n.$current_url)&&(Ye.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var c=new Date,d=(r==null?void 0:r.timestamp)||c,f=el(),m={uuid:f,event:t,properties:this.calculateEventProperties(t,n||{},d,f)};t==="$pageview"&&this.config.__preview_capture_bot_pageviews&&s&&(m.event="$bot_pageview",m.properties.$browser_type="bot"),o&&(m.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),r!=null&&r.$set&&(m.$set=r==null?void 0:r.$set);var p,b=t!=="$groupidentify",y=this.Kr(r==null?void 0:r.$set_once,b);if(y&&(m.$set_once=y),(m=lG(m,r!=null&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=d,ze(r==null?void 0:r.timestamp)||(m.properties.$event_time_override_provided=!0,m.properties.$event_time_override_system_time=c),t===Xh.DISMISSED||t===Xh.SENT){var T=n==null?void 0:n[C5.SURVEY_ID],x=n==null?void 0:n[C5.SURVEY_ITERATION];p={id:T,current_iteration:x},localStorage.getItem(N5(p))||localStorage.setItem(N5(p),"true"),m.$set=Xe({},m.$set,{[xV({id:T,current_iteration:x},t===Xh.SENT?"responded":"dismissed")]:!0})}var C=Xe({},m.properties.$set,m.$set);if(Vo(C)||this.setPersonPropertiesForFlags(C),!Wt(this.config.before_send)){var w=this.Yr(m);if(!w)return;m=w}this.Rr.emit("eventCaptured",m);var O={method:"POST",url:(a=r==null?void 0:r._url)!==null&&a!==void 0?a:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:m,compression:"best-available",batchKey:r==null?void 0:r._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.Nr(O):this.Lr.enqueue(O),m}Ye.critical("This capture call is ignored due to client rate limiting.")}}else Ye.error("No event name provided to posthog.capture")}else Ye.uninitializedWarning("posthog.capture")}Ui(t){return this.on("eventCaptured",n=>t(n.event,n))}calculateEventProperties(t,n,r,a,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var o=s?void 0:this.persistence.remove_event_timer(t),c=Xe({},n);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,(this.config.cookieless_mode=="always"||this.config.cookieless_mode=="on_reject"&&this.consent.isExplicitlyOptedOut())&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Xe({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!ir(c.distinct_id)&&!bi(c.distinct_id)||Ob(c.distinct_id))&&Ye.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var f,m=nV(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:p,windowId:b}=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime());c.$session_id=p,c.$window_id=b}this.sessionPropsManager&&qn(c,this.sessionPropsManager.getSessionProps());try{var y;this.sessionRecording&&qn(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(y=this.Ur)==null?void 0:y.length}catch(w){c.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===Xc.CUSTOM&&(c.$lib_custom_api_host=this.config.api_host),f=t!=="$pageview"||s?t!=="$pageleave"||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,a),c=qn(c,f),t==="$pageview"&&je&&(c.title=je.title),!ze(o)){var T=r.getTime()-o;c.$duration=parseFloat((T/1e3).toFixed(3))}ea&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=qn({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Xt(this.config.property_denylist)?mn(this.config.property_denylist,function(w){delete c[w]}):Ye.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var x=this.config.sanitize_properties;x&&(Ye.error("sanitize_properties is deprecated. Use before_send instead"),c=x(c,t));var C=this.Xr();return c.$process_person_profile=C,C&&!s&&this.Qr("_calculate_event_properties"),c}Kr(t,n){var r;if(n===void 0&&(n=!0),!this.persistence||!this.Xr()||this.Tr)return t;var a=this.persistence.get_initial_props(),s=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),o=qn({},a,s||{},t||{}),c=this.config.sanitize_properties;return c&&(Ye.error("sanitize_properties is deprecated. Use before_send instead"),o=c(o,"$set_once")),n&&(this.Tr=!0),Vo(o)?void 0:o}register(t,n){var r;(r=this.persistence)==null||r.register(t,n)}register_once(t,n,r){var a;(a=this.persistence)==null||a.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}Zr(t,n){this.register({[t]:n})}getFeatureFlag(t,n){return this.featureFlags.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}isFeatureEnabled(t,n){return this.featureFlags.isFeatureEnabled(t,n)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,n,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n,r)}getEarlyAccessFeatures(t,n,r){return n===void 0&&(n=!1),this.featureFlags.getEarlyAccessFeatures(t,n,r)}on(t,n){return this.Rr.on(t,n)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSurveysLoaded(t){return this.surveys.onSurveysLoaded(t)}onSessionId(t){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys.getSurveys(t,n)}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys.getActiveMatchingSurveys(t,n)}renderSurvey(t,n){this.surveys.renderSurvey(t,n)}displaySurvey(t,n){n===void 0&&(n=wV),this.surveys.displaySurvey(t,n)}cancelPendingSurvey(t){this.surveys.cancelPendingSurvey(t)}canRenderSurvey(t){return this.surveys.canRenderSurvey(t)}canRenderSurveyAsync(t,n){return n===void 0&&(n=!1),this.surveys.canRenderSurveyAsync(t,n)}identify(t,n,r){if(!this.__loaded||!this.persistence)return Ye.uninitializedWarning("posthog.identify");if(bi(t)&&(t=t.toString(),Ye.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),t)if(["distinct_id","distinctid"].includes(t.toLowerCase()))Ye.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(t!==Mc){if(this.Qr("posthog.identify")){var a=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var s=a;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}t!==a&&t!==this.get_property($c)&&(this.unregister($c),this.register({distinct_id:t}));var o=(this.persistence.get_property(Gi)||"anonymous")==="anonymous";t!==a&&o?(this.persistence.set_property(Gi,"identified"),this.setPersonPropertiesForFlags(Xe({},r||{},n||{}),!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:a},{$set:n||{},$set_once:r||{}}),this.Mr=x5(t,n,r),this.featureFlags.setAnonymousDistinctId(a)):(n||r)&&this.setPersonProperties(n,r),t!==a&&(this.reloadFeatureFlags(),this.unregister(Ef))}}else Ye.critical('The string "'+Mc+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Ye.error("Unique user id has not been set in posthog.identify")}setPersonProperties(t,n){if((t||n)&&this.Qr("posthog.setPersonProperties")){var r=x5(this.get_distinct_id(),t,n);this.Mr!==r?(this.setPersonPropertiesForFlags(Xe({},n||{},t||{})),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.Mr=r):Ye.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,n,r){if(t&&n){var a=this.getGroups();a[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Xe({},a,{[t]:n})}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags({[t]:r})),a[t]===n||r||this.reloadFeatureFlags()}else Ye.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){n===void 0&&(n=!0),this.featureFlags.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,n){n===void 0&&(n=!0),this.Qr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,n)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){var n,r,a,s;if(Ye.info("reset"),!this.__loaded)return Ye.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),this.surveys.reset(),this.featureFlags.reset(),(a=this.persistence)==null||a.set_property(Gi,"anonymous"),(s=this.sessionManager)==null||s.resetSessionId(),this.Mr=null,this.config.cookieless_mode==="always")this.register_once({distinct_id:Mc,$device_id:null},"");else{var c=this.config.get_device_id(el());this.register_once({distinct_id:c,$device_id:t?c:o},"")}this.register({$last_posthog_reset:new Date().toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),a=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(t!=null&&t.withTimestamp&&r){var s,o=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!r)return a;a+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-o,0)}return a}alias(t,n){return t===this.get_property(TS)?(Ye.critical("Attempting to create alias for existing People user - aborting."),-2):this.Qr("posthog.alias")?(ze(n)&&(n=this.get_distinct_id()),t!==n?(this.Zr($c,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(Ye.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n=Xe({},this.config);if(fr(t)){var r,a,s,o,c;qn(this.config,P5(t));var d=this.jr();(r=this.persistence)==null||r.update_config(this.config,n,d),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Mg(Xe({},this.config,{persistence:"sessionStorage"}),d);var f=this.Or(this.config.debug);nl(f)&&(this.config.debug=f),nl(this.config.debug)&&(this.config.debug?(Yi.DEBUG=!0,Dn.H()&&Dn.G("ph_debug","true"),Ye.info("set_config",{config:t,oldConfig:n,newConfig:Xe({},this.config)})):(Yi.DEBUG=!1,Dn.H()&&Dn.V("ph_debug"))),(a=this.sessionRecording)==null||a.startIfEnabledOrStop(),(s=this.autocapture)==null||s.startIfEnabled(),(o=this.heatmaps)==null||o.startIfEnabled(),this.surveys.loadIfEnabled(),this.ts(),(c=this.externalIntegrations)==null||c.startIfEnabledOrStop()}}startSessionRecording(t){var n=t===!0,r={sampling:n||!(t==null||!t.sampling),linked_flag:n||!(t==null||!t.linked_flag),url_trigger:n||!(t==null||!t.url_trigger),event_trigger:n||!(t==null||!t.event_trigger)};if(Object.values(r).some(Boolean)){var a,s,o,c,d;(a=this.sessionManager)==null||a.checkAndGetSessionAndWindowId(),r.sampling&&((s=this.sessionRecording)==null||s.overrideSampling()),r.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),r.url_trigger&&((c=this.sessionRecording)==null||c.overrideTrigger("url")),r.event_trigger&&((d=this.sessionRecording)==null||d.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){var r=new Error("PostHog syntheticException"),a=this.exceptions.buildProperties(t,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(Xe({},a,n))}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:Yo;return n!==Yo&&(n=Yo+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(Gi))==="identified"||((n=this.sessionPersistence)==null?void 0:n.get_property(Gi))==="identified"}Xr(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&Vo(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[$c])&&((n=this.persistence)==null||(n=n.props)==null||!n[xf]))}Jr(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Xr()||this.Qr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Qr(t){return this.config.person_profiles==="never"?(Ye.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Zr(xf,!0),!0)}jr(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut(),n=this.config.opt_out_persistence_by_default||this.config.cookieless_mode==="on_reject";return this.config.disable_persistence||t&&!!n}ts(){var t,n,r,a,s=this.jr();return((t=this.persistence)==null?void 0:t.wi)!==s&&((r=this.persistence)==null||r.set_disabled(s)),((n=this.sessionPersistence)==null?void 0:n.wi)!==s&&((a=this.sessionPersistence)==null||a.set_disabled(s)),s}opt_in_capturing(t){var n;if(this.config.cookieless_mode!=="always"){var r,a;this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),(r=this.sessionManager)==null||r.destroy(),this.sessionManager=new M5(this),this.persistence&&(this.sessionPropsManager=new R5(this,this.sessionManager,this.persistence)),this.sessionRecording=new D5(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.ts(),this.Gr(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode=="on_reject"&&this.surveys.loadIfEnabled(),(ze(t==null?void 0:t.captureEventName)||t!=null&&t.captureEventName)&&this.capture((a=t==null?void 0:t.captureEventName)!==null&&a!==void 0?a:"$opt_in",t==null?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Vr()}else Ye.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var t,n;this.config.cookieless_mode!=="always"?(this.config.cookieless_mode==="on_reject"&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.ts(),this.config.cookieless_mode==="on_reject"&&(this.register({distinct_id:Mc,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.Vr())):Ye.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===Vi.GRANTED?"granted":t===Vi.DENIED?"denied":"pending"}is_capturing(){return this.config.cookieless_mode==="always"||(this.config.cookieless_mode==="on_reject"?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.ts()}_is_bot(){return ya?_9(ya,this.config.custom_blocked_useragents):void 0}Vr(){je&&(je.visibilityState==="visible"?this.Cr||(this.Cr=!0,this.capture("$pageview",{title:je.title},{send_instantly:!0}),this.Ir&&(je.removeEventListener("visibilitychange",this.Ir),this.Ir=null)):this.Ir||(this.Ir=this.Vr.bind(this),Zn(je,"visibilitychange",this.Ir)))}debug(t){t===!1?(ge==null||ge.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ge==null||ge.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}O(){var t,n,r,a,s,o,c,d=this.Ar||{};return"advanced_disable_flags"in d?!!d.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ye.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",a=!1,s=Ye,o=(n="advanced_disable_flags")in(t=d)&&!ze(t[n]),c=r in t&&!ze(t[r]),o?t[n]:c?(s&&s.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),t[r]):a)}Yr(t){if(Wt(this.config.before_send))return t;var n=Xt(this.config.before_send)?this.config.before_send:[this.config.before_send],r=t;for(var a of n){if(r=a(r),Wt(r)){var s="Event '"+t.event+"' was rejected in beforeSend function";return DY(t.event)?Ye.warn(s+". This can cause unexpected behavior."):Ye.info(s),null}r.properties&&!Vo(r.properties)||Ye.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var t;return(t=this.pageViewManager.Vt)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,r){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(r)})}Or(t){var n=nl(t)&&!t,r=Dn.H()&&Dn.q("ph_debug")==="true";return!n&&(!!r||t)}}(function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=sG(e.prototype[t[n]])})(cm,["identify"]);var B5,Y0=(B5=u0[Yo]=new cm,function(){function e(){e.done||(e.done=!0,E9=!1,mn(u0,function(t){t._dom_loaded()}))}je!=null&&je.addEventListener?je.readyState==="complete"?e():Zn(je,"DOMContentLoaded",e,{capture:!1}):ge&&Ye.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),B5);let ou=!1;function jV(){ou||(Y0.init("phc_2qafhOCTgCnygXsPEHOA0RBtJf5nvVsi7yIene4DWaF",{api_host:"https://us.i.posthog.com",person_profiles:"identified_only",capture_pageview:!0,capture_pageleave:!0,autocapture:!1,persistence:"localStorage",loaded:e=>{var t,n;(n=(t=import.meta)==null?void 0:t.env)!=null&&n.DEV&&console.log("[PostHog] Initialized in development mode")}}),ou=!0)}function $V(e,t={}){var a,s,o,c,d;if(!e||!ou)return;const n={email:((a=e.primaryEmailAddress)==null?void 0:a.emailAddress)||((o=(s=e.emailAddresses)==null?void 0:s[0])==null?void 0:o.emailAddress),name:e.fullName||`${e.firstName||""} ${e.lastName||""}`.trim(),first_name:e.firstName,last_name:e.lastName,avatar_url:e.imageUrl,created_at:e.createdAt,...t},r=Object.fromEntries(Object.entries(n).filter(([f,m])=>m!=null&&m!==""));Y0.identify(e.id,r),(d=(c=import.meta)==null?void 0:c.env)!=null&&d.DEV&&console.log("[PostHog] User identified:",e.id,r)}function YV(){var e,t;ou&&(Y0.reset(),(t=(e=import.meta)==null?void 0:e.env)!=null&&t.DEV&&console.log("[PostHog] User reset"))}function T9(){return typeof window>"u"?"unknown":window.location.hostname}function GV(){var t,n;if(!ou)return;const e=T9();Y0.register({agent_domain:e,agent_subdomain:e.split(".")[0]}),(n=(t=import.meta)==null?void 0:t.env)!=null&&n.DEV&&console.log("[PostHog] Agent domain set:",e)}function tr(e,t={}){var n,r;ou&&(Y0.capture(e,{...t,agent_domain:T9()}),(r=(n=import.meta)==null?void 0:n.env)!=null&&r.DEV&&console.log("[PostHog] Event:",e,t))}function VV(){tr("user_signed_in")}function KV(){tr("user_signed_out")}function WV(e={}){tr("message_sent",{has_attachments:e.hasAttachments||!1,attachment_count:e.attachmentCount||0,message_length:e.messageLength||0,chat_id:e.chatId,is_new_chat:e.isNewChat||!1})}function XV(e){tr("chat_created",{chat_id:e})}function QV(e){tr("chat_selected",{chat_id:e})}function ZV(e){tr("chat_deleted",{chat_id:e})}function JV(){tr("new_chat_started")}function eK(e){tr("message_regenerated",{message_index:e})}function tK(e){tr("message_retried",{message_index:e})}function Zb(){tr("generation_stopped")}function nK(e,t){tr("file_upload_started",{file_name:e,file_type:t})}function rK(e,t){tr("file_upload_completed",{file_name:e,file_type:t})}function aK(e,t){tr("file_upload_failed",{file_name:e,error_message:t})}function U5(e){tr("tier_modal_shown",{tier:e})}function iK(e){tr("tier_modal_dismissed",{tier:e})}function sK(e){tr("upgrade_clicked",{tier:e})}function lK(e){tr("free_limit_reached",{message_count:e})}function Pg(e,t,n={}){tr("error_occurred",{error_type:e,error_message:t,...n})}function oK(){tr("sidebar_opened")}function F5(){tr("sidebar_closed")}const uK=({messages:e,setMessages:t,setShouldFocus:n,setIsLoading:r,setUploadProgress:a,setIsUserScrolled:s,onFirstSend:o,auth:c,org:d,getToken:f,setActive:m,activeChatId:p,setActiveChatId:b,onMessageSuccess:y,analyticsEnabled:T})=>{const x=H.useRef(null),C=H.useCallback(async O=>{const D=typeof O=="object"&&O!==null,j=D?O.text||"":String(O||""),z=D?O.files||[]:[];if(!j.trim()&&z.length===0){n(!0);return}if(j===":clear"&&z.length===0){t([]),b(null),ar.setActiveChat(""),window.scrollTo(0,0);return}e.length===0&&o(),r(!0),s(!1);const U=[];for(let V=0;V<z.length;V++){const ue=z[V];try{a({fileName:ue.name,progress:0}),T&&nK(ue.name,ue.type);const me=await Q$(ue);a({fileName:ue.name,progress:100}),T&&rK(ue.name,ue.type),U.push(me),setTimeout(()=>a(null),500)}catch(me){console.error("Upload error:",me),T&&aK(ue.name,me.message),a(null),r(!1),t(De=>[...De,{role:"user",content:j},{role:"assistant",parts:[],error:{type:"server",message:"Failed to upload "+ue.name+": "+me.message,status:null}}]);return}}let ee=j;if(U.length>0){const V=`<!--cycls:attachments
|
|
418
|
-
`+JSON.stringify(U)+`
|
|
419
|
-
cycls:attachments-->`;ee=j+`
|
|
420
|
-
|
|
421
|
-
`+V}const Z={role:"user",content:ee},Q={role:"assistant",parts:[]};t(V=>[...V,Z,Q]);const G=[...e,Z];let se=p;const de=!se;se?ar.updateChat(se,G):(se=ar.createChat(G).id,b(se),T&&XV(se)),T&&WV({hasAttachments:U.length>0,attachmentCount:U.length,messageLength:j.length,chatId:se,isNewChat:de}),x.current=new AbortController;let ve=!1,oe=null;const ye=()=>{oe&&clearTimeout(oe),oe=setTimeout(()=>{x.current&&(ve=!0,x.current.abort())},12e4)};ye();try{let V=null;await Ab({messages:G,auth:c,getToken:f,setActive:m,org:d,onPart:me=>{ye(),t(De=>{const A=[...De],ne=A[A.length-1];return ne.parts||(ne.parts=[]),V&&V.type===me.type?me.row?V.rows.push(me.row):me.type==="text"&&me.text?V.text+=me.text:me.type==="thinking"&&me.thinking?V.thinking+=me.thinking:me.type==="code"&&me.code&&(V.code+=me.code):(V={...me},me.headers&&(V.rows=[]),ne.parts.push(V)),A})},signal:x.current.signal}),oe&&clearTimeout(oe);const ue=[...G,Q];ar.updateChat(se,ue),y&&y(),r(!1),n(!0)}catch(V){oe&&clearTimeout(oe);let ue={type:"server",message:"An unexpected error occurred",status:null};if(V.name==="AbortError")if(ve)ue={type:"timeout",message:"Request timed out. The server took too long to respond."},T&&Pg("timeout",ue.message);else{console.log("Generation stopped by user"),T&&Zb(),t(me=>{const De=[...me],A=De[De.length-1];if((A==null?void 0:A.role)==="assistant"&&A.parts){A.parts.push({type:"text",text:`
|
|
422
|
-
|
|
423
|
-
*[Generation stopped]*`});const ne=e.concat([Z,A]);se&&ar.updateChat(se,ne)}return De}),r(!1),n(!0);return}else V instanceof TypeError&&V.message.includes("fetch")?(ue={type:"network",message:"Network error. Please check your connection and try again."},T&&Pg("network",ue.message)):V.type&&(ue=V,T&&Pg(V.type,V.message,{status:V.status}));console.error("Request error:",V),t(me=>{const De=[...me],A=De[De.length-1];return(A==null?void 0:A.role)==="assistant"&&(A.error=ue),De}),r(!1),n(!0)}},[e,c,d,f,m,p,b,y,T,t,n,r,a,s,o]),w=H.useCallback(()=>{x.current&&(x.current.abort(),x.current=null)},[]);return{send:C,handleStop:w}},cK=e=>{const[t,n]=H.useState(!1);return H.useEffect(()=>{const r=()=>n(window.innerWidth<768);return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),t?0:e?bf.expanded:bf.collapsed},dK=(e,t,n=null,r=!0)=>{const a=H.useRef(null);H.useEffect(()=>{!t||!r||(n?a.current!==n.id&&($V(n,{subscription_status:e?"paid":"free"}),a.current===null&&VV(),a.current=n.id):a.current!==null&&(KV(),YV(),a.current=null))},[n,r,e,t])},hK=({HEADER:e,INTRO:t,AUTH:n,ORG:r,TITLE:a,TIER:s})=>R.jsx(x9,{HEADER:e,INTRO:t,AUTH:n,ORG:r,TITLE:a,TIER:s,authApi:null,clerkApi:null,userApi:{user:null,isLoaded:!0},subscription:null,isSubscriptionLoading:!1,subscriptionError:null}),fK=({HEADER:e,INTRO:t,AUTH:n,ORG:r,TITLE:a,TIER:s})=>{const o=C0(),c=pN(),d=gN(),{subscription:f,isLoading:m,error:p}=SY();return R.jsx(x9,{HEADER:e,INTRO:t,AUTH:n,ORG:r,TITLE:a,TIER:s,authApi:o,clerkApi:c,userApi:d,subscription:f,isSubscriptionLoading:m,subscriptionError:p})},z5=e=>e.AUTH?R.jsx(fK,{...e}):R.jsx(hK,{...e}),x9=({HEADER:e,INTRO:t,AUTH:n,ORG:r,TITLE:a,TIER:s,authApi:o,clerkApi:c,userApi:d,subscription:f,isSubscriptionLoading:m,subscriptionError:p})=>{const b=LA(),[y,T]=H.useState([]),[x,C]=H.useState(!1),[w,O]=H.useState(!1),[D,j]=H.useState(null),[z,U]=H.useState(!1),[ee,Z]=H.useState(!1),[Q,G]=H.useState(null),se=H.useRef(null),[de,ve]=H.useState(!1),[oe,ye]=H.useState([]),[V,ue]=H.useState(null),me=cK(de),[De,A]=H.useState(!1),[ne,pe]=H.useState(0),L=5,Oe=H.useCallback(()=>{A(!1),b&&iK(s)},[s,b]),He=H.useMemo(()=>{var Ke,cn,Tn;return f?((Tn=(cn=(Ke=f==null?void 0:f.subscriptionItems)==null?void 0:Ke[0])==null?void 0:cn.plan)==null?void 0:Tn.name)==="Cycls Pass":!1},[f]),Le=H.useMemo(()=>{var Ke,cn,Tn;return f&&((Tn=(cn=(Ke=f==null?void 0:f.subscriptionItems)==null?void 0:Ke[0])==null?void 0:cn.plan)==null?void 0:Tn.name)||null},[f]);dK(n&&He,b&&n,(d==null?void 0:d.user)||null,(d==null?void 0:d.isLoaded)??!0);const Mt=H.useMemo(()=>!n||s!=="cycls_pass"||He?!1:ne>=L,[n,s,He,ne,L]);H.useEffect(()=>{He&&(NY(),pe(0),A(!1))},[He]),H.useEffect(()=>{const Ke=ar.getAllChats();ye(Ke),pe(hS())},[]),H.useEffect(()=>{y.length>0&&V&&(ar.updateChat(V,y),ye(ar.getAllChats()))},[y,V]),H.useEffect(()=>{document.title=a},[a]),H.useEffect(()=>{const Ke=()=>{const cn=window.scrollY||document.documentElement.scrollTop,Tn=document.documentElement.scrollHeight,lr=window.innerHeight,bn=Tn-cn-lr<100;Z(!bn)};return window.addEventListener("scroll",Ke),()=>window.removeEventListener("scroll",Ke)},[]),H.useEffect(()=>{!ee&&se.current&&se.current.scrollIntoView({behavior:"smooth"})},[y,ee]),H.useEffect(()=>{if(x){const Ke=document.querySelector("textarea");Ke==null||Ke.focus(),C(!1)}},[x]);const ut=H.useCallback(()=>{if(!n||s!=="cycls_pass"||He)return;const Ke=CY();pe(Ke),Ke>=L&&(A(!0),b&&lK(Ke),b&&U5(s))},[n,s,He,L,b]),{send:qt,handleStop:kt}=uK({messages:y,setMessages:T,setShouldFocus:C,setIsLoading:O,setUploadProgress:j,setIsUserScrolled:Z,onFirstSend:()=>U(!0),auth:n,org:r,getToken:o==null?void 0:o.getToken,setActive:c==null?void 0:c.setActive,activeChatId:V,setActiveChatId:ue,onMessageSuccess:ut,analyticsEnabled:b}),En=H.useCallback(()=>{T([]),ue(null),U(!1),ar.setActiveChat(""),window.scrollTo(0,0),b&&JV()},[b]),pr=H.useCallback(Ke=>{const cn=ar.getChat(Ke);cn&&(T(cn.messages),ue(Ke),U(cn.messages.length>0),ar.setActiveChat(Ke),window.innerWidth<768&&ve(!1),window.scrollTo(0,0),b&&QV(Ke))},[b]),yt=H.useCallback(Ke=>{ar.deleteChat(Ke),ye(ar.getAllChats()),b&&ZV(Ke),Ke===V&&En()},[V,En,b]),bt=H.useCallback(()=>{const Ke=!de;ve(Ke),b&&(Ke?oK():F5())},[de,b]),Ft=H.useCallback(()=>{ve(!1),b&&F5()},[b]),Je=H.useCallback(async Ke=>{const cn=Ke-1;if(cn<0)return;b&&eK(Ke),T(et=>{const We=[...et],_t=We[Ke];return((_t==null?void 0:_t.type)==="response"||(_t==null?void 0:_t.role)==="assistant")&&(We[Ke]={role:"assistant",parts:[]}),We});const Tn=y[cn];if(!(Tn.type==="request"||Tn.role==="user"))return;const bn=y.slice(0,Ke);O(!0),Z(!1);const fe=new AbortController;let Se=!1,qe=null;const tt=()=>{qe&&clearTimeout(qe),qe=setTimeout(()=>{Se=!0,fe.abort()},12e4)};tt();try{let et=null;await Ab({messages:bn,auth:n,getToken:o==null?void 0:o.getToken,setActive:c==null?void 0:c.setActive,org:r,onPart:We=>{tt(),T(_t=>{const jt=[..._t],Fn=jt[Ke];return Fn.parts||(Fn.parts=[]),et&&et.type===We.type?We.row?et.rows.push(We.row):We.type==="text"&&We.text?et.text+=We.text:We.type==="thinking"&&We.thinking?et.thinking+=We.thinking:We.type==="code"&&We.code&&(et.code+=We.code):(et={...We},We.headers&&(et.rows=[]),Fn.parts.push(et)),jt})},signal:fe.signal}),qe&&clearTimeout(qe),V&&T(We=>(ar.updateChat(V,We),ye(ar.getAllChats()),We)),O(!1),C(!0)}catch(et){if(qe&&clearTimeout(qe),et.name==="AbortError"&&!Se){b&&Zb(),T(We=>{const _t=[...We],jt=_t[Ke];return jt!=null&&jt.parts&&jt.parts.push({type:"text",text:`
|
|
424
|
-
|
|
425
|
-
*[Generation stopped]*`}),V&&ar.updateChat(V,_t),_t}),O(!1),C(!0);return}console.error("Regeneration error:",et),T(We=>{const _t=[...We];return _t[Ke].error={type:"server",message:et.message||"Error"},_t}),O(!1)}},[y,n,r,o==null?void 0:o.getToken,c==null?void 0:c.setActive,V,b]),Et=H.useCallback(async Ke=>{const cn=Ke-1;if(cn<0)return;b&&tK(Ke),G(Ke),T(et=>{const We=[...et],_t=We[Ke];return((_t==null?void 0:_t.type)==="response"||(_t==null?void 0:_t.role)==="assistant")&&(We[Ke]={role:"assistant",parts:[]}),We});const Tn=y[cn];if(!(Tn.type==="request"||Tn.role==="user")){G(null);return}const bn=y.slice(0,Ke);O(!0),Z(!1);const fe=new AbortController;let Se=!1,qe=null;const tt=()=>{qe&&clearTimeout(qe),qe=setTimeout(()=>{Se=!0,fe.abort()},12e4)};tt();try{let et=null;await Ab({messages:bn,auth:n,getToken:o==null?void 0:o.getToken,setActive:c==null?void 0:c.setActive,org:r,onPart:We=>{tt(),T(_t=>{const jt=[..._t],Fn=jt[Ke];return Fn.parts||(Fn.parts=[]),et&&et.type===We.type?We.row?et.rows.push(We.row):We.type==="text"&&We.text?et.text+=We.text:We.type==="thinking"&&We.thinking?et.thinking+=We.thinking:We.type==="code"&&We.code&&(et.code+=We.code):(et={...We},We.headers&&(et.rows=[]),Fn.parts.push(et)),jt})},signal:fe.signal}),qe&&clearTimeout(qe),V&&T(We=>(ar.updateChat(V,We),ye(ar.getAllChats()),We)),O(!1),G(null),C(!0)}catch(et){if(qe&&clearTimeout(qe),et.name==="AbortError"&&!Se){b&&Zb(),T(We=>{const _t=[...We],jt=_t[Ke];return jt!=null&&jt.parts&&jt.parts.push({type:"text",text:`
|
|
426
|
-
|
|
427
|
-
*[Generation stopped]*`}),V&&ar.updateChat(V,_t),_t}),O(!1),G(null),C(!0);return}console.error("Retry error:",et),T(We=>{const _t=[...We];return _t[Ke].error={type:"server",message:et.message||"Error"},_t}),O(!1),G(null)}},[y,n,r,o==null?void 0:o.getToken,c==null?void 0:c.setActive,V,b]),gn=H.useCallback(()=>{A(!0),b&&(sK(s),U5(s))},[s,b]),Bt=y.length===0,un=n?R.jsx(hO,{appearance:{elements:{avatarBox:"w-6 h-6",userButtonTrigger:"focus:shadow-none"}}}):null;return R.jsxs("div",{className:"min-h-screen theme-transition",style:{backgroundColor:"var(--bg-primary)"},children:[R.jsx(_Y,{isOpen:de,onClose:Ft,onToggle:bt,chats:oe,activeChat:V,onSelectChat:pr,onNewChat:En,onDeleteChat:yt,user:d==null?void 0:d.user,isOnPaidPlan:He,tierName:Le,UserButtonComponent:un,isAuthenticated:n}),R.jsx(EY,{open:De&&s==="cycls_pass",onClose:Oe,tier:s||"Pro"}),R.jsxs("main",{className:"min-h-screen transition-all duration-300 ease-in-out",style:{marginLeft:`${me}px`},children:[R.jsx("div",{className:"p-10",children:R.jsxs("div",{className:"fixed max-sm:top-[2%] max-sm:right-1 top-1 right-4 flex items-center gap-1 z-20",children:[R.jsx(Y5,{}),n&&R.jsxs("a",{href:"https://cycls.ai/",type:"button",className:`
|
|
428
|
-
inline-flex items-center gap-2
|
|
429
|
-
rounded-xl px-3 py-2
|
|
430
|
-
text-sm font-medium
|
|
431
|
-
hover:bg-[var(--bg-hover)]
|
|
432
|
-
active:bg-[var(--bg-active)]
|
|
433
|
-
transition-colors
|
|
434
|
-
focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--text-primary)]/20
|
|
435
|
-
`,style:{color:"var(--text-primary)"},children:[R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}),R.jsx("path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})]}),R.jsx("span",{children:"Home"})]})]})}),R.jsxs("div",{className:"mx-auto max-w-3xl min-h-screen px-4 pb-[200px] md:pb-[180px]",children:[D&&R.jsx(cY,{fileName:D.fileName,progress:D.progress}),R.jsx("div",{className:"prose m-2 mx-auto max-w-3xl p-2 prose-pre:p-0 pt-14 md:pt-2",children:R.jsx(v0,{markdown:e,onSend:qt})}),!Bt&&R.jsxs("div",{className:`transition-opacity duration-500 ${z?"opacity-100":"opacity-0"}`,children:[R.jsx(cS,{messages:y,onSend:qt,onRegenerate:Je,onRetry:Et,retryingIndex:Q,isGenerating:w}),R.jsx("div",{ref:se})]}),Bt&&!z&&t&&t.trim()!==""&&R.jsx("div",{className:"mx-auto max-w-3xl prose prose-sm prose-pre:p-0",children:R.jsx(v0,{markdown:t,onSend:qt})})]})]}),R.jsx(uY,{onSend:qt,isLoading:w,onStop:kt,disabled:Mt,onUpgradeClick:gn,sidebarWidth:me})]})},H5=({meta:e})=>{const t=!!e.prod,n=!!e.auth,r=String(e.header??""),a=String(e.intro??""),s=String(e.title??"AI Agent"),o=e.tier||null,c=e.pk,d=e.org||void 0,f=typeof window<"u"?window.location.origin+"/":"/";if(!n)return R.jsx(z5,{HEADER:r,INTRO:a,AUTH:n,ORG:d,TITLE:s,TIER:o});const m=t?{isSatellite:!1,domain:"cycls.ai",fallbackRedirectUrl:f,forceRedirectUrl:f}:{fallbackRedirectUrl:f,forceRedirectUrl:f};return R.jsx(Y8,{publishableKey:c,...m,children:R.jsx(wY,{tier:o,children:R.jsx(Wk,{children:R.jsxs(Ak,{children:[R.jsx(Ph,{path:"/auth",element:R.jsx(TY,{afterUrl:f})}),R.jsx(Ph,{path:"/",element:R.jsx(xY,{children:R.jsx(z5,{HEADER:r,INTRO:a,AUTH:n,ORG:d,TITLE:s,TIER:o})})}),R.jsx(Ph,{path:"*",element:R.jsx(n8,{to:"/",replace:!0})})]})})})})};function mK(){const[e,t]=ce.useState({status:"loading"});return ce.useEffect(()=>{const n=new AbortController;return(async()=>{try{const r=await kY(n.signal);t({status:"ready",data:r})}catch(r){t({status:"error",error:r})}})(),()=>n.abort()},[]),e}const pK=()=>{var n,r,a,s;const e=mK();if(H.useEffect(()=>{var o;e.status==="ready"&&((o=e.data)==null?void 0:o.analytics)===!0&&(jV(),GV())},[e.status,(n=e.data)==null?void 0:n.analytics]),e.status==="loading")return R.jsx(g1,{children:R.jsx("div",{className:"min-h-screen grid place-items-center text-sm",style:{backgroundColor:"var(--bg-primary)",color:"var(--text-tertiary)"},children:"Loading…"})});if(e.status==="error"){console.error("Failed to load /metadata:",e.error);const o={header:"",intro:"",prod:((a=(r=import.meta)==null?void 0:r.env)==null?void 0:a.PROD)||!1,auth:!1,title:"AI Agent",tier:null,analytics:!1};return R.jsx(g1,{children:R.jsx(Ug.Provider,{value:!1,children:R.jsx(H5,{meta:o})})})}const t=((s=e.data)==null?void 0:s.analytics)===!0;return R.jsx(g1,{children:R.jsx(Ug.Provider,{value:t,children:R.jsx(H5,{meta:e.data})})})},Qh=document.getElementById("root");Qh._reactRoot||(Qh._reactRoot=DA.createRoot(Qh));Qh._reactRoot.render(R.jsx(pK,{}));
|