@joeyshi12/casper 0.9.2 → 0.9.4

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.
Files changed (69) hide show
  1. package/dist/mcp.js +1 -1
  2. package/dist/server.js +2 -2
  3. package/dist/web/assets/{abnfDiagram-N423BO3Z-BOAOmECZ.js → abnfDiagram-N423BO3Z-CQXVQIut.js} +1 -1
  4. package/dist/web/assets/{arc-CJ2pNFke.js → arc-CwTt475S.js} +1 -1
  5. package/dist/web/assets/{architectureDiagram-T3A2C74G-HZ9OLEw8.js → architectureDiagram-T3A2C74G-DUFcqkRS.js} +1 -1
  6. package/dist/web/assets/{blockDiagram-VBNYF7ZC-D2k_mwcu.js → blockDiagram-VBNYF7ZC-C4axLgqt.js} +1 -1
  7. package/dist/web/assets/{c4Diagram-5PPSVZJV-aqp9WRRC.js → c4Diagram-5PPSVZJV-CFmkaqEn.js} +1 -1
  8. package/dist/web/assets/channel-DRjwaSgy.js +1 -0
  9. package/dist/web/assets/{chunk-2GRJ4B5K-nsoD3XAc.js → chunk-2GRJ4B5K-D8MfANAi.js} +1 -1
  10. package/dist/web/assets/{chunk-2Q5K7J3B-D7JbVBiA.js → chunk-2Q5K7J3B-6z24qDU8.js} +1 -1
  11. package/dist/web/assets/{chunk-5RXB4S5H-BMG7eo0L.js → chunk-5RXB4S5H-DKO6SEEX.js} +1 -1
  12. package/dist/web/assets/{chunk-5VM5RSS4-VDLJ0Uoi.js → chunk-5VM5RSS4-iUppnc8w.js} +1 -1
  13. package/dist/web/assets/{chunk-6Q2QTUOP-B2r3Ryt-.js → chunk-6Q2QTUOP-BEOmSPFy.js} +1 -1
  14. package/dist/web/assets/{chunk-GF5L2VYU-BjAWKCMS.js → chunk-GF5L2VYU-rAXXudet.js} +1 -1
  15. package/dist/web/assets/{chunk-JWPE2WC7--qoeJqbU.js → chunk-JWPE2WC7-C-YOpkf2.js} +1 -1
  16. package/dist/web/assets/{chunk-KBJHAD2P-Cze4v9pw.js → chunk-KBJHAD2P-CmNeGhem.js} +1 -1
  17. package/dist/web/assets/{chunk-RYQCIY6F-Bkec_Mgf.js → chunk-RYQCIY6F-BLYNn0x3.js} +1 -1
  18. package/dist/web/assets/{chunk-XXDRQBXY-DyRB4C8V.js → chunk-XXDRQBXY-BqDuaGX9.js} +1 -1
  19. package/dist/web/assets/classDiagram-JCYQIIEL-CTD7OC9k.js +1 -0
  20. package/dist/web/assets/classDiagram-v2-OCEON4UE-CTD7OC9k.js +1 -0
  21. package/dist/web/assets/{cose-bilkent-JH36ORCC-vDkyykTT.js → cose-bilkent-JH36ORCC-DXiT7Rij.js} +1 -1
  22. package/dist/web/assets/{cynefin-VYW2F7L2-tpT7ktFg.js → cynefin-VYW2F7L2-DYsvlHbd.js} +1 -1
  23. package/dist/web/assets/{cynefinDiagram-MW4NZA55-DA88ZwHh.js → cynefinDiagram-MW4NZA55-BaXi36kg.js} +1 -1
  24. package/dist/web/assets/{dagre-VZM6K2ZE-CKNeagqk.js → dagre-VZM6K2ZE-CoNnD5AX.js} +1 -1
  25. package/dist/web/assets/{diagram-7IWD3JNH-DDwntj7W.js → diagram-7IWD3JNH-SG6-Pyml.js} +1 -1
  26. package/dist/web/assets/{diagram-B4RE2ZJO-Cj-ntAAB.js → diagram-B4RE2ZJO-DfGXnSHX.js} +1 -1
  27. package/dist/web/assets/{diagram-LBJQPF4R-B53k_Xc8.js → diagram-LBJQPF4R-DHK-UgAd.js} +1 -1
  28. package/dist/web/assets/{diagram-Q27KOJAE-uA_fPrgX.js → diagram-Q27KOJAE-B-F3ZXKw.js} +1 -1
  29. package/dist/web/assets/{diagram-UB23O5K3-DcJtswyX.js → diagram-UB23O5K3-EyV_Cw0M.js} +1 -1
  30. package/dist/web/assets/{ebnfDiagram-BXEA7PRR-DrKaddp_.js → ebnfDiagram-BXEA7PRR-BdB2re-k.js} +1 -1
  31. package/dist/web/assets/{erDiagram-JOGREHBK-DCd-S-Q1.js → erDiagram-JOGREHBK-CXvAvBJy.js} +1 -1
  32. package/dist/web/assets/{flowDiagram-UKHOOZJN-D2G-nOfP.js → flowDiagram-UKHOOZJN-DPFTwsLJ.js} +1 -1
  33. package/dist/web/assets/{ganttDiagram-PKOTCBZU-B6uDIo9q.js → ganttDiagram-PKOTCBZU-DlfSmTCD.js} +1 -1
  34. package/dist/web/assets/{gitGraphDiagram-DS77QQ5N-CPiox9Oq.js → gitGraphDiagram-DS77QQ5N-I4pYiZsa.js} +1 -1
  35. package/dist/web/assets/index-BSvYAwsY.js +510 -0
  36. package/dist/web/assets/index-C0NwqMe_.css +1 -0
  37. package/dist/web/assets/{infoDiagram-6WML65LV-Brut2yZI.js → infoDiagram-6WML65LV-CFScuUSI.js} +1 -1
  38. package/dist/web/assets/{ishikawaDiagram-WSZJBQD7-CWQ6y6ve.js → ishikawaDiagram-WSZJBQD7-fBvXS4bt.js} +1 -1
  39. package/dist/web/assets/{journeyDiagram-NVQOT4AX-DRLhHAa2.js → journeyDiagram-NVQOT4AX-Bkk2xxtp.js} +1 -1
  40. package/dist/web/assets/{kanban-definition-27J2QSJJ-BNglql1U.js → kanban-definition-27J2QSJJ-BBUxK95G.js} +1 -1
  41. package/dist/web/assets/{linear-Z_5imtNF.js → linear-wogsfDcT.js} +1 -1
  42. package/dist/web/assets/{mermaid.core-BOd8hY0T.js → mermaid.core-IGwSlXQt.js} +5 -5
  43. package/dist/web/assets/{mindmap-definition-FAOFIHXS-ByVxy_By.js → mindmap-definition-FAOFIHXS-CaC8m5S7.js} +1 -1
  44. package/dist/web/assets/{pegDiagram-VL7TDLO6-hxHQW97y.js → pegDiagram-VL7TDLO6-CHq5BBhq.js} +1 -1
  45. package/dist/web/assets/{pieDiagram-7S7Q4E2Y-Cw_McLq3.js → pieDiagram-7S7Q4E2Y-VofIG3jX.js} +1 -1
  46. package/dist/web/assets/{quadrantDiagram-CIZ2JOQS-BUPxd7p8.js → quadrantDiagram-CIZ2JOQS-Co2731pl.js} +1 -1
  47. package/dist/web/assets/{railroadDiagram-AXF67PYL-ChaVN2Gn.js → railroadDiagram-AXF67PYL-D5DqGq9k.js} +1 -1
  48. package/dist/web/assets/{requirementDiagram-LRYGKXZP-BfPZ9-st.js → requirementDiagram-LRYGKXZP-C2Zo2akI.js} +1 -1
  49. package/dist/web/assets/{sankeyDiagram-W5VNT64P-Cgktyy5x.js → sankeyDiagram-W5VNT64P-oqDs0NVg.js} +1 -1
  50. package/dist/web/assets/{sequenceDiagram-SI44F4Z6-DnUGPxMf.js → sequenceDiagram-SI44F4Z6-aJ-r9aZk.js} +1 -1
  51. package/dist/web/assets/{sizeCapture-X5ZJPWSS-D-TMuKpv.js → sizeCapture-X5ZJPWSS-B-0KZPh0.js} +1 -1
  52. package/dist/web/assets/{stateDiagram-OKZ733FA-SMfHBA9E.js → stateDiagram-OKZ733FA-CtSAcmEf.js} +1 -1
  53. package/dist/web/assets/stateDiagram-v2-UEYNNEHI-CVos4x9F.js +1 -0
  54. package/dist/web/assets/{swimlanes-SLNWSIFB-CwBDqnZs.js → swimlanes-SLNWSIFB-d3fT27_A.js} +2 -2
  55. package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-C5jKaGtL.js +8 -0
  56. package/dist/web/assets/{timeline-definition-Z64GVDOM-Cz4aLnYh.js → timeline-definition-Z64GVDOM-BJPXwdom.js} +1 -1
  57. package/dist/web/assets/{vennDiagram-T6HMQDX7-D-qDw67G.js → vennDiagram-T6HMQDX7-CNT7WvFh.js} +1 -1
  58. package/dist/web/assets/{wardleyDiagram-T6FBY63Y-uOC_dvMr.js → wardleyDiagram-T6FBY63Y-CYlRrJgV.js} +1 -1
  59. package/dist/web/assets/{xychartDiagram-ELKLHX3M-g16SOT5d.js → xychartDiagram-ELKLHX3M-BlBQVtkZ.js} +1 -1
  60. package/dist/web/index.html +2 -2
  61. package/dist/web/sw.js +1 -1
  62. package/package.json +1 -1
  63. package/dist/web/assets/channel-Ck9MGFfi.js +0 -1
  64. package/dist/web/assets/classDiagram-JCYQIIEL-CaJB0Zvm.js +0 -1
  65. package/dist/web/assets/classDiagram-v2-OCEON4UE-CaJB0Zvm.js +0 -1
  66. package/dist/web/assets/index-C4TOe6Wf.css +0 -1
  67. package/dist/web/assets/index-DaOoxqON.js +0 -510
  68. package/dist/web/assets/stateDiagram-v2-UEYNNEHI-D6Juu3kf.js +0 -1
  69. package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-ThqP9kkx.js +0 -8
@@ -0,0 +1,510 @@
1
+ var L7=Object.defineProperty;var D7=(e,t,n)=>t in e?L7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var or=(e,t,n)=>D7(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 u of a)if(u.type==="childList")for(const l of u.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(a){if(a.ep)return;a.ep=!0;const u=n(a);fetch(a.href,u)}})();function Sh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qc={exports:{}},Xs={},$c={exports:{}},tt={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var fp;function O7(){if(fp)return tt;fp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function E(q){return q===null||typeof q!="object"?null:(q=p&&q[p]||q["@@iterator"],typeof q=="function"?q:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function R(q,z,L){this.props=q,this.context=z,this.refs=_,this.updater=L||x}R.prototype.isReactComponent={},R.prototype.setState=function(q,z){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,z,"setState")},R.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function I(){}I.prototype=R.prototype;function M(q,z,L){this.props=q,this.context=z,this.refs=_,this.updater=L||x}var j=M.prototype=new I;j.constructor=M,C(j,R.prototype),j.isPureReactComponent=!0;var J=Array.isArray,te=Object.prototype.hasOwnProperty,W={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function re(q,z,L){var Se,He={},Pe=null,Ve=null;if(z!=null)for(Se in z.ref!==void 0&&(Ve=z.ref),z.key!==void 0&&(Pe=""+z.key),z)te.call(z,Se)&&!Z.hasOwnProperty(Se)&&(He[Se]=z[Se]);var Ke=arguments.length-2;if(Ke===1)He.children=L;else if(1<Ke){for(var Ze=Array(Ke),me=0;me<Ke;me++)Ze[me]=arguments[me+2];He.children=Ze}if(q&&q.defaultProps)for(Se in Ke=q.defaultProps,Ke)He[Se]===void 0&&(He[Se]=Ke[Se]);return{$$typeof:e,type:q,key:Pe,ref:Ve,props:He,_owner:W.current}}function ie(q,z){return{$$typeof:e,type:q.type,key:z,ref:q.ref,props:q.props,_owner:q._owner}}function Y(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function se(q){var z={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(L){return z[L]})}var le=/\/+/g;function Me(q,z){return typeof q=="object"&&q!==null&&q.key!=null?se(""+q.key):z.toString(36)}function ge(q,z,L,Se,He){var Pe=typeof q;(Pe==="undefined"||Pe==="boolean")&&(q=null);var Ve=!1;if(q===null)Ve=!0;else switch(Pe){case"string":case"number":Ve=!0;break;case"object":switch(q.$$typeof){case e:case t:Ve=!0}}if(Ve)return Ve=q,He=He(Ve),q=Se===""?"."+Me(Ve,0):Se,J(He)?(L="",q!=null&&(L=q.replace(le,"$&/")+"/"),ge(He,z,L,"",function(me){return me})):He!=null&&(Y(He)&&(He=ie(He,L+(!He.key||Ve&&Ve.key===He.key?"":(""+He.key).replace(le,"$&/")+"/")+q)),z.push(He)),1;if(Ve=0,Se=Se===""?".":Se+":",J(q))for(var Ke=0;Ke<q.length;Ke++){Pe=q[Ke];var Ze=Se+Me(Pe,Ke);Ve+=ge(Pe,z,L,Ze,He)}else if(Ze=E(q),typeof Ze=="function")for(q=Ze.call(q),Ke=0;!(Pe=q.next()).done;)Pe=Pe.value,Ze=Se+Me(Pe,Ke++),Ve+=ge(Pe,z,L,Ze,He);else if(Pe==="object")throw z=String(q),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return Ve}function ue(q,z,L){if(q==null)return q;var Se=[],He=0;return ge(q,Se,"","",function(Pe){return z.call(L,Pe,He++)}),Se}function Re(q){if(q._status===-1){var z=q._result;z=z(),z.then(function(L){(q._status===0||q._status===-1)&&(q._status=1,q._result=L)},function(L){(q._status===0||q._status===-1)&&(q._status=2,q._result=L)}),q._status===-1&&(q._status=0,q._result=z)}if(q._status===1)return q._result.default;throw q._result}var Le={current:null},oe={transition:null},_e={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:oe,ReactCurrentOwner:W};function A(){throw Error("act(...) is not supported in production builds of React.")}return tt.Children={map:ue,forEach:function(q,z,L){ue(q,function(){z.apply(this,arguments)},L)},count:function(q){var z=0;return ue(q,function(){z++}),z},toArray:function(q){return ue(q,function(z){return z})||[]},only:function(q){if(!Y(q))throw Error("React.Children.only expected to receive a single React element child.");return q}},tt.Component=R,tt.Fragment=n,tt.Profiler=a,tt.PureComponent=M,tt.StrictMode=r,tt.Suspense=d,tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_e,tt.act=A,tt.cloneElement=function(q,z,L){if(q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+q+".");var Se=C({},q.props),He=q.key,Pe=q.ref,Ve=q._owner;if(z!=null){if(z.ref!==void 0&&(Pe=z.ref,Ve=W.current),z.key!==void 0&&(He=""+z.key),q.type&&q.type.defaultProps)var Ke=q.type.defaultProps;for(Ze in z)te.call(z,Ze)&&!Z.hasOwnProperty(Ze)&&(Se[Ze]=z[Ze]===void 0&&Ke!==void 0?Ke[Ze]:z[Ze])}var Ze=arguments.length-2;if(Ze===1)Se.children=L;else if(1<Ze){Ke=Array(Ze);for(var me=0;me<Ze;me++)Ke[me]=arguments[me+2];Se.children=Ke}return{$$typeof:e,type:q.type,key:He,ref:Pe,props:Se,_owner:Ve}},tt.createContext=function(q){return q={$$typeof:l,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},q.Provider={$$typeof:u,_context:q},q.Consumer=q},tt.createElement=re,tt.createFactory=function(q){var z=re.bind(null,q);return z.type=q,z},tt.createRef=function(){return{current:null}},tt.forwardRef=function(q){return{$$typeof:c,render:q}},tt.isValidElement=Y,tt.lazy=function(q){return{$$typeof:m,_payload:{_status:-1,_result:q},_init:Re}},tt.memo=function(q,z){return{$$typeof:h,type:q,compare:z===void 0?null:z}},tt.startTransition=function(q){var z=oe.transition;oe.transition={};try{q()}finally{oe.transition=z}},tt.unstable_act=A,tt.useCallback=function(q,z){return Le.current.useCallback(q,z)},tt.useContext=function(q){return Le.current.useContext(q)},tt.useDebugValue=function(){},tt.useDeferredValue=function(q){return Le.current.useDeferredValue(q)},tt.useEffect=function(q,z){return Le.current.useEffect(q,z)},tt.useId=function(){return Le.current.useId()},tt.useImperativeHandle=function(q,z,L){return Le.current.useImperativeHandle(q,z,L)},tt.useInsertionEffect=function(q,z){return Le.current.useInsertionEffect(q,z)},tt.useLayoutEffect=function(q,z){return Le.current.useLayoutEffect(q,z)},tt.useMemo=function(q,z){return Le.current.useMemo(q,z)},tt.useReducer=function(q,z,L){return Le.current.useReducer(q,z,L)},tt.useRef=function(q){return Le.current.useRef(q)},tt.useState=function(q){return Le.current.useState(q)},tt.useSyncExternalStore=function(q,z,L){return Le.current.useSyncExternalStore(q,z,L)},tt.useTransition=function(){return Le.current.useTransition()},tt.version="18.3.1",tt}var mp;function Ch(){return mp||(mp=1,$c.exports=O7()),$c.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var pp;function M7(){if(pp)return Xs;pp=1;var e=Ch(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,h){var m,p={},E=null,x=null;h!==void 0&&(E=""+h),d.key!==void 0&&(E=""+d.key),d.ref!==void 0&&(x=d.ref);for(m in d)r.call(d,m)&&!u.hasOwnProperty(m)&&(p[m]=d[m]);if(c&&c.defaultProps)for(m in d=c.defaultProps,d)p[m]===void 0&&(p[m]=d[m]);return{$$typeof:t,type:c,key:E,ref:x,props:p,_owner:a.current}}return Xs.Fragment=n,Xs.jsx=l,Xs.jsxs=l,Xs}var gp;function P7(){return gp||(gp=1,qc.exports=M7()),qc.exports}var T=P7(),O=Ch();const iu=Sh(O);var Wl={},Wc={exports:{}},kn={},Yc={exports:{}},Vc={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var yp;function B7(){return yp||(yp=1,(function(e){function t(oe,_e){var A=oe.length;oe.push(_e);e:for(;0<A;){var q=A-1>>>1,z=oe[q];if(0<a(z,_e))oe[q]=_e,oe[A]=z,A=q;else break e}}function n(oe){return oe.length===0?null:oe[0]}function r(oe){if(oe.length===0)return null;var _e=oe[0],A=oe.pop();if(A!==_e){oe[0]=A;e:for(var q=0,z=oe.length,L=z>>>1;q<L;){var Se=2*(q+1)-1,He=oe[Se],Pe=Se+1,Ve=oe[Pe];if(0>a(He,A))Pe<z&&0>a(Ve,He)?(oe[q]=Ve,oe[Pe]=A,q=Pe):(oe[q]=He,oe[Se]=A,q=Se);else if(Pe<z&&0>a(Ve,A))oe[q]=Ve,oe[Pe]=A,q=Pe;else break e}}return _e}function a(oe,_e){var A=oe.sortIndex-_e.sortIndex;return A!==0?A:oe.id-_e.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],h=[],m=1,p=null,E=3,x=!1,C=!1,_=!1,R=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(oe){for(var _e=n(h);_e!==null;){if(_e.callback===null)r(h);else if(_e.startTime<=oe)r(h),_e.sortIndex=_e.expirationTime,t(d,_e);else break;_e=n(h)}}function J(oe){if(_=!1,j(oe),!C)if(n(d)!==null)C=!0,Re(te);else{var _e=n(h);_e!==null&&Le(J,_e.startTime-oe)}}function te(oe,_e){C=!1,_&&(_=!1,I(re),re=-1),x=!0;var A=E;try{for(j(_e),p=n(d);p!==null&&(!(p.expirationTime>_e)||oe&&!se());){var q=p.callback;if(typeof q=="function"){p.callback=null,E=p.priorityLevel;var z=q(p.expirationTime<=_e);_e=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(d)&&r(d),j(_e)}else r(d);p=n(d)}if(p!==null)var L=!0;else{var Se=n(h);Se!==null&&Le(J,Se.startTime-_e),L=!1}return L}finally{p=null,E=A,x=!1}}var W=!1,Z=null,re=-1,ie=5,Y=-1;function se(){return!(e.unstable_now()-Y<ie)}function le(){if(Z!==null){var oe=e.unstable_now();Y=oe;var _e=!0;try{_e=Z(!0,oe)}finally{_e?Me():(W=!1,Z=null)}}else W=!1}var Me;if(typeof M=="function")Me=function(){M(le)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,ue=ge.port2;ge.port1.onmessage=le,Me=function(){ue.postMessage(null)}}else Me=function(){R(le,0)};function Re(oe){Z=oe,W||(W=!0,Me())}function Le(oe,_e){re=R(function(){oe(e.unstable_now())},_e)}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(oe){oe.callback=null},e.unstable_continueExecution=function(){C||x||(C=!0,Re(te))},e.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<oe?Math.floor(1e3/oe):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(oe){switch(E){case 1:case 2:case 3:var _e=3;break;default:_e=E}var A=E;E=_e;try{return oe()}finally{E=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(oe,_e){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var A=E;E=oe;try{return _e()}finally{E=A}},e.unstable_scheduleCallback=function(oe,_e,A){var q=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?q+A:q):A=q,oe){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=A+z,oe={id:m++,callback:_e,priorityLevel:oe,startTime:A,expirationTime:z,sortIndex:-1},A>q?(oe.sortIndex=A,t(h,oe),n(d)===null&&oe===n(h)&&(_?(I(re),re=-1):_=!0,Le(J,A-q))):(oe.sortIndex=z,t(d,oe),C||x||(C=!0,Re(te))),oe},e.unstable_shouldYield=se,e.unstable_wrapCallback=function(oe){var _e=E;return function(){var A=E;E=_e;try{return oe.apply(this,arguments)}finally{E=A}}}})(Vc)),Vc}var vp;function F7(){return vp||(vp=1,Yc.exports=B7()),Yc.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var bp;function z7(){if(bp)return kn;bp=1;var e=Ch(),t=F7();function n(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,o=1;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function u(i,s){l(i,s),l(i+"Capture",s)}function l(i,s){for(a[i]=s,i=0;i<s.length;i++)r.add(s[i])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},p={};function E(i){return d.call(p,i)?!0:d.call(m,i)?!1:h.test(i)?p[i]=!0:(m[i]=!0,!1)}function x(i,s,o,f){if(o!==null&&o.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return f?!1:o!==null?!o.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function C(i,s,o,f){if(s===null||typeof s>"u"||x(i,s,o,f))return!0;if(f)return!1;if(o!==null)switch(o.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function _(i,s,o,f,y,b,S){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=f,this.attributeNamespace=y,this.mustUseProperty=o,this.propertyName=i,this.type=s,this.sanitizeURL=b,this.removeEmptyString=S}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){R[i]=new _(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];R[s]=new _(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){R[i]=new _(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){R[i]=new _(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){R[i]=new _(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){R[i]=new _(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){R[i]=new _(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){R[i]=new _(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){R[i]=new _(i,5,!1,i.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function M(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var s=i.replace(I,M);R[s]=new _(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(I,M);R[s]=new _(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(I,M);R[s]=new _(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){R[i]=new _(i,1,!1,i.toLowerCase(),null,!1,!1)}),R.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){R[i]=new _(i,1,!1,i.toLowerCase(),null,!0,!0)});function j(i,s,o,f){var y=R.hasOwnProperty(s)?R[s]:null;(y!==null?y.type!==0:f||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(C(s,o,y,f)&&(o=null),f||y===null?E(s)&&(o===null?i.removeAttribute(s):i.setAttribute(s,""+o)):y.mustUseProperty?i[y.propertyName]=o===null?y.type===3?!1:"":o:(s=y.attributeName,f=y.attributeNamespace,o===null?i.removeAttribute(s):(y=y.type,o=y===3||y===4&&o===!0?"":""+o,f?i.setAttributeNS(f,s,o):i.setAttribute(s,o))))}var J=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,te=Symbol.for("react.element"),W=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),re=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),se=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),oe=Symbol.iterator;function _e(i){return i===null||typeof i!="object"?null:(i=oe&&i[oe]||i["@@iterator"],typeof i=="function"?i:null)}var A=Object.assign,q;function z(i){if(q===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);q=s&&s[1]||""}return`
34
+ `+q+i}var L=!1;function Se(i,s){if(!i||L)return"";L=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(ee){var f=ee}Reflect.construct(i,[],s)}else{try{s.call()}catch(ee){f=ee}i.call(s.prototype)}else{try{throw Error()}catch(ee){f=ee}i()}}catch(ee){if(ee&&f&&typeof ee.stack=="string"){for(var y=ee.stack.split(`
35
+ `),b=f.stack.split(`
36
+ `),S=y.length-1,B=b.length-1;1<=S&&0<=B&&y[S]!==b[B];)B--;for(;1<=S&&0<=B;S--,B--)if(y[S]!==b[B]){if(S!==1||B!==1)do if(S--,B--,0>B||y[S]!==b[B]){var $=`
37
+ `+y[S].replace(" at new "," at ");return i.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",i.displayName)),$}while(1<=S&&0<=B);break}}}finally{L=!1,Error.prepareStackTrace=o}return(i=i?i.displayName||i.name:"")?z(i):""}function He(i){switch(i.tag){case 5:return z(i.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return i=Se(i.type,!1),i;case 11:return i=Se(i.type.render,!1),i;case 1:return i=Se(i.type,!0),i;default:return""}}function Pe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case Z:return"Fragment";case W:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case Me:return"Suspense";case ge:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case se:return(i.displayName||"Context")+".Consumer";case Y:return(i._context.displayName||"Context")+".Provider";case le:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case ue:return s=i.displayName||null,s!==null?s:Pe(i.type)||"Memo";case Re:s=i._payload,i=i._init;try{return Pe(i(s))}catch{}}return null}function Ve(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(s);case 8:return s===re?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ke(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ze(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function me(i){var s=Ze(i)?"checked":"value",o=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),f=""+i[s];if(!i.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var y=o.get,b=o.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return y.call(this)},set:function(S){f=""+S,b.call(this,S)}}),Object.defineProperty(i,s,{enumerable:o.enumerable}),{getValue:function(){return f},setValue:function(S){f=""+S},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function We(i){i._valueTracker||(i._valueTracker=me(i))}function mt(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var o=s.getValue(),f="";return i&&(f=Ze(i)?i.checked?"true":"false":i.value),i=f,i!==o?(s.setValue(i),!0):!1}function lt(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}}function ot(i,s){var o=s.checked;return A({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??i._wrapperState.initialChecked})}function Pt(i,s){var o=s.defaultValue==null?"":s.defaultValue,f=s.checked!=null?s.checked:s.defaultChecked;o=Ke(s.value!=null?s.value:o),i._wrapperState={initialChecked:f,initialValue:o,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function tr(i,s){s=s.checked,s!=null&&j(i,"checked",s,!1)}function _n(i,s){tr(i,s);var o=Ke(s.value),f=s.type;if(o!=null)f==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+o):i.value!==""+o&&(i.value=""+o);else if(f==="submit"||f==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?Mr(i,s.type,o):s.hasOwnProperty("defaultValue")&&Mr(i,s.type,Ke(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function zi(i,s,o){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var f=s.type;if(!(f!=="submit"&&f!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,o||s===i.value||(i.value=s),i.defaultValue=s}o=i.name,o!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,o!==""&&(i.name=o)}function Mr(i,s,o){(s!=="number"||lt(i.ownerDocument)!==i)&&(o==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+o&&(i.defaultValue=""+o))}var In=Array.isArray;function yr(i,s,o,f){if(i=i.options,s){s={};for(var y=0;y<o.length;y++)s["$"+o[y]]=!0;for(o=0;o<i.length;o++)y=s.hasOwnProperty("$"+i[o].value),i[o].selected!==y&&(i[o].selected=y),y&&f&&(i[o].defaultSelected=!0)}else{for(o=""+Ke(o),s=null,y=0;y<i.length;y++){if(i[y].value===o){i[y].selected=!0,f&&(i[y].defaultSelected=!0);return}s!==null||i[y].disabled||(s=i[y])}s!==null&&(s.selected=!0)}}function Hi(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return A({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function ti(i,s){var o=s.value;if(o==null){if(o=s.children,s=s.defaultValue,o!=null){if(s!=null)throw Error(n(92));if(In(o)){if(1<o.length)throw Error(n(93));o=o[0]}s=o}s==null&&(s=""),o=s}i._wrapperState={initialValue:Ke(o)}}function Ui(i,s){var o=Ke(s.value),f=Ke(s.defaultValue);o!=null&&(o=""+o,o!==i.value&&(i.value=o),s.defaultValue==null&&i.defaultValue!==o&&(i.defaultValue=o)),f!=null&&(i.defaultValue=""+f)}function ji(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function ae(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ke(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?ae(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Ue,Je=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,o,f,y){MSApp.execUnsafeLocalFunction(function(){return i(s,o,f,y)})}:i})(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(Ue=Ue||document.createElement("div"),Ue.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Ue.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function at(i,s){if(s){var o=i.firstChild;if(o&&o===i.lastChild&&o.nodeType===3){o.nodeValue=s;return}}i.textContent=s}var Kt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pr=["Webkit","ms","Moz","O"];Object.keys(Kt).forEach(function(i){Pr.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Kt[s]=Kt[i]})});function qn(i,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||Kt.hasOwnProperty(i)&&Kt[i]?(""+s).trim():s+"px"}function ni(i,s){i=i.style;for(var o in s)if(s.hasOwnProperty(o)){var f=o.indexOf("--")===0,y=qn(o,s[o],f);o==="float"&&(o="cssFloat"),f?i.setProperty(o,y):i[o]=y}}var qi=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jt(i,s){if(s){if(qi[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function vr(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";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 Rn=null;function i0(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var a0=null,wa=null,ka=null;function If(i){if(i=Ms(i)){if(typeof a0!="function")throw Error(n(280));var s=i.stateNode;s&&(s=sl(s),a0(i.stateNode,i.type,s))}}function Rf(i){wa?ka?ka.push(i):ka=[i]:wa=i}function Lf(){if(wa){var i=wa,s=ka;if(ka=wa=null,If(i),s)for(i=0;i<s.length;i++)If(s[i])}}function Df(i,s){return i(s)}function Of(){}var s0=!1;function Mf(i,s,o){if(s0)return i(s,o);s0=!0;try{return Df(i,s,o)}finally{s0=!1,(wa!==null||ka!==null)&&(Of(),Lf())}}function ms(i,s){var o=i.stateNode;if(o===null)return null;var f=sl(o);if(f===null)return null;o=f[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(i=i.type,f=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!f;break e;default:i=!1}if(i)return null;if(o&&typeof o!="function")throw Error(n(231,s,typeof o));return o}var u0=!1;if(c)try{var ps={};Object.defineProperty(ps,"passive",{get:function(){u0=!0}}),window.addEventListener("test",ps,ps),window.removeEventListener("test",ps,ps)}catch{u0=!1}function F5(i,s,o,f,y,b,S,B,$){var ee=Array.prototype.slice.call(arguments,3);try{s.apply(o,ee)}catch(fe){this.onError(fe)}}var gs=!1,Fu=null,zu=!1,l0=null,z5={onError:function(i){gs=!0,Fu=i}};function H5(i,s,o,f,y,b,S,B,$){gs=!1,Fu=null,F5.apply(z5,arguments)}function U5(i,s,o,f,y,b,S,B,$){if(H5.apply(this,arguments),gs){if(gs){var ee=Fu;gs=!1,Fu=null}else throw Error(n(198));zu||(zu=!0,l0=ee)}}function $i(i){var s=i,o=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(o=s.return),i=s.return;while(i)}return s.tag===3?o:null}function Pf(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function Bf(i){if($i(i)!==i)throw Error(n(188))}function j5(i){var s=i.alternate;if(!s){if(s=$i(i),s===null)throw Error(n(188));return s!==i?null:i}for(var o=i,f=s;;){var y=o.return;if(y===null)break;var b=y.alternate;if(b===null){if(f=y.return,f!==null){o=f;continue}break}if(y.child===b.child){for(b=y.child;b;){if(b===o)return Bf(y),i;if(b===f)return Bf(y),s;b=b.sibling}throw Error(n(188))}if(o.return!==f.return)o=y,f=b;else{for(var S=!1,B=y.child;B;){if(B===o){S=!0,o=y,f=b;break}if(B===f){S=!0,f=y,o=b;break}B=B.sibling}if(!S){for(B=b.child;B;){if(B===o){S=!0,o=b,f=y;break}if(B===f){S=!0,f=b,o=y;break}B=B.sibling}if(!S)throw Error(n(189))}}if(o.alternate!==f)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?i:s}function Ff(i){return i=j5(i),i!==null?zf(i):null}function zf(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=zf(i);if(s!==null)return s;i=i.sibling}return null}var Hf=t.unstable_scheduleCallback,Uf=t.unstable_cancelCallback,q5=t.unstable_shouldYield,$5=t.unstable_requestPaint,Dt=t.unstable_now,W5=t.unstable_getCurrentPriorityLevel,o0=t.unstable_ImmediatePriority,jf=t.unstable_UserBlockingPriority,Hu=t.unstable_NormalPriority,Y5=t.unstable_LowPriority,qf=t.unstable_IdlePriority,Uu=null,br=null;function V5(i){if(br&&typeof br.onCommitFiberRoot=="function")try{br.onCommitFiberRoot(Uu,i,void 0,(i.current.flags&128)===128)}catch{}}var nr=Math.clz32?Math.clz32:X5,G5=Math.log,Q5=Math.LN2;function X5(i){return i>>>=0,i===0?32:31-(G5(i)/Q5|0)|0}var ju=64,qu=4194304;function ys(i){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function $u(i,s){var o=i.pendingLanes;if(o===0)return 0;var f=0,y=i.suspendedLanes,b=i.pingedLanes,S=o&268435455;if(S!==0){var B=S&~y;B!==0?f=ys(B):(b&=S,b!==0&&(f=ys(b)))}else S=o&~y,S!==0?f=ys(S):b!==0&&(f=ys(b));if(f===0)return 0;if(s!==0&&s!==f&&(s&y)===0&&(y=f&-f,b=s&-s,y>=b||y===16&&(b&4194240)!==0))return s;if((f&4)!==0&&(f|=o&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=f;0<s;)o=31-nr(s),y=1<<o,f|=i[o],s&=~y;return f}function K5(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function J5(i,s){for(var o=i.suspendedLanes,f=i.pingedLanes,y=i.expirationTimes,b=i.pendingLanes;0<b;){var S=31-nr(b),B=1<<S,$=y[S];$===-1?((B&o)===0||(B&f)!==0)&&(y[S]=K5(B,s)):$<=s&&(i.expiredLanes|=B),b&=~B}}function c0(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function $f(){var i=ju;return ju<<=1,(ju&4194240)===0&&(ju=64),i}function d0(i){for(var s=[],o=0;31>o;o++)s.push(i);return s}function vs(i,s,o){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-nr(s),i[s]=o}function Z5(i,s){var o=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var f=i.eventTimes;for(i=i.expirationTimes;0<o;){var y=31-nr(o),b=1<<y;s[y]=0,f[y]=-1,i[y]=-1,o&=~b}}function h0(i,s){var o=i.entangledLanes|=s;for(i=i.entanglements;o;){var f=31-nr(o),y=1<<f;y&s|i[f]&s&&(i[f]|=s),o&=~y}}var ft=0;function Wf(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Yf,f0,Vf,Gf,Qf,m0=!1,Wu=[],ri=null,ii=null,ai=null,bs=new Map,Es=new Map,si=[],e8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Xf(i,s){switch(i){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":ii=null;break;case"mouseover":case"mouseout":ai=null;break;case"pointerover":case"pointerout":bs.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Es.delete(s.pointerId)}}function xs(i,s,o,f,y,b){return i===null||i.nativeEvent!==b?(i={blockedOn:s,domEventName:o,eventSystemFlags:f,nativeEvent:b,targetContainers:[y]},s!==null&&(s=Ms(s),s!==null&&f0(s)),i):(i.eventSystemFlags|=f,s=i.targetContainers,y!==null&&s.indexOf(y)===-1&&s.push(y),i)}function t8(i,s,o,f,y){switch(s){case"focusin":return ri=xs(ri,i,s,o,f,y),!0;case"dragenter":return ii=xs(ii,i,s,o,f,y),!0;case"mouseover":return ai=xs(ai,i,s,o,f,y),!0;case"pointerover":var b=y.pointerId;return bs.set(b,xs(bs.get(b)||null,i,s,o,f,y)),!0;case"gotpointercapture":return b=y.pointerId,Es.set(b,xs(Es.get(b)||null,i,s,o,f,y)),!0}return!1}function Kf(i){var s=Wi(i.target);if(s!==null){var o=$i(s);if(o!==null){if(s=o.tag,s===13){if(s=Pf(o),s!==null){i.blockedOn=s,Qf(i.priority,function(){Vf(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){i.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Yu(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var o=g0(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(o===null){o=i.nativeEvent;var f=new o.constructor(o.type,o);Rn=f,o.target.dispatchEvent(f),Rn=null}else return s=Ms(o),s!==null&&f0(s),i.blockedOn=o,!1;s.shift()}return!0}function Jf(i,s,o){Yu(i)&&o.delete(s)}function n8(){m0=!1,ri!==null&&Yu(ri)&&(ri=null),ii!==null&&Yu(ii)&&(ii=null),ai!==null&&Yu(ai)&&(ai=null),bs.forEach(Jf),Es.forEach(Jf)}function Ts(i,s){i.blockedOn===s&&(i.blockedOn=null,m0||(m0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,n8)))}function ws(i){function s(y){return Ts(y,i)}if(0<Wu.length){Ts(Wu[0],i);for(var o=1;o<Wu.length;o++){var f=Wu[o];f.blockedOn===i&&(f.blockedOn=null)}}for(ri!==null&&Ts(ri,i),ii!==null&&Ts(ii,i),ai!==null&&Ts(ai,i),bs.forEach(s),Es.forEach(s),o=0;o<si.length;o++)f=si[o],f.blockedOn===i&&(f.blockedOn=null);for(;0<si.length&&(o=si[0],o.blockedOn===null);)Kf(o),o.blockedOn===null&&si.shift()}var Sa=J.ReactCurrentBatchConfig,Vu=!0;function r8(i,s,o,f){var y=ft,b=Sa.transition;Sa.transition=null;try{ft=1,p0(i,s,o,f)}finally{ft=y,Sa.transition=b}}function i8(i,s,o,f){var y=ft,b=Sa.transition;Sa.transition=null;try{ft=4,p0(i,s,o,f)}finally{ft=y,Sa.transition=b}}function p0(i,s,o,f){if(Vu){var y=g0(i,s,o,f);if(y===null)D0(i,s,f,Gu,o),Xf(i,f);else if(t8(y,i,s,o,f))f.stopPropagation();else if(Xf(i,f),s&4&&-1<e8.indexOf(i)){for(;y!==null;){var b=Ms(y);if(b!==null&&Yf(b),b=g0(i,s,o,f),b===null&&D0(i,s,f,Gu,o),b===y)break;y=b}y!==null&&f.stopPropagation()}else D0(i,s,f,null,o)}}var Gu=null;function g0(i,s,o,f){if(Gu=null,i=i0(f),i=Wi(i),i!==null)if(s=$i(i),s===null)i=null;else if(o=s.tag,o===13){if(i=Pf(s),i!==null)return i;i=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return Gu=i,null}function Zf(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(W5()){case o0:return 1;case jf:return 4;case Hu:case Y5:return 16;case qf:return 536870912;default:return 16}default:return 16}}var ui=null,y0=null,Qu=null;function e1(){if(Qu)return Qu;var i,s=y0,o=s.length,f,y="value"in ui?ui.value:ui.textContent,b=y.length;for(i=0;i<o&&s[i]===y[i];i++);var S=o-i;for(f=1;f<=S&&s[o-f]===y[b-f];f++);return Qu=y.slice(i,1<f?1-f:void 0)}function Xu(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Ku(){return!0}function t1(){return!1}function Ln(i){function s(o,f,y,b,S){this._reactName=o,this._targetInst=y,this.type=f,this.nativeEvent=b,this.target=S,this.currentTarget=null;for(var B in i)i.hasOwnProperty(B)&&(o=i[B],this[B]=o?o(b):b[B]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Ku:t1,this.isPropagationStopped=t1,this}return A(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ku)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ku)},persist:function(){},isPersistent:Ku}),s}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},v0=Ln(Ca),ks=A({},Ca,{view:0,detail:0}),a8=Ln(ks),b0,E0,Ss,Ju=A({},ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:T0,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!==Ss&&(Ss&&i.type==="mousemove"?(b0=i.screenX-Ss.screenX,E0=i.screenY-Ss.screenY):E0=b0=0,Ss=i),b0)},movementY:function(i){return"movementY"in i?i.movementY:E0}}),n1=Ln(Ju),s8=A({},Ju,{dataTransfer:0}),u8=Ln(s8),l8=A({},ks,{relatedTarget:0}),x0=Ln(l8),o8=A({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),c8=Ln(o8),d8=A({},Ca,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),h8=Ln(d8),f8=A({},Ca,{data:0}),r1=Ln(f8),m8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p8={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"},g8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y8(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=g8[i])?!!s[i]:!1}function T0(){return y8}var v8=A({},ks,{key:function(i){if(i.key){var s=m8[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Xu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?p8[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:T0,charCode:function(i){return i.type==="keypress"?Xu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Xu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),b8=Ln(v8),E8=A({},Ju,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),i1=Ln(E8),x8=A({},ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:T0}),T8=Ln(x8),w8=A({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),k8=Ln(w8),S8=A({},Ju,{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}),C8=Ln(S8),A8=[9,13,27,32],w0=c&&"CompositionEvent"in window,Cs=null;c&&"documentMode"in document&&(Cs=document.documentMode);var N8=c&&"TextEvent"in window&&!Cs,a1=c&&(!w0||Cs&&8<Cs&&11>=Cs),s1=" ",u1=!1;function l1(i,s){switch(i){case"keyup":return A8.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function o1(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Aa=!1;function _8(i,s){switch(i){case"compositionend":return o1(s);case"keypress":return s.which!==32?null:(u1=!0,s1);case"textInput":return i=s.data,i===s1&&u1?null:i;default:return null}}function I8(i,s){if(Aa)return i==="compositionend"||!w0&&l1(i,s)?(i=e1(),Qu=y0=ui=null,Aa=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return a1&&s.locale!=="ko"?null:s.data;default:return null}}var R8={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 c1(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!R8[i.type]:s==="textarea"}function d1(i,s,o,f){Rf(f),s=rl(s,"onChange"),0<s.length&&(o=new v0("onChange","change",null,o,f),i.push({event:o,listeners:s}))}var As=null,Ns=null;function L8(i){_1(i,0)}function Zu(i){var s=La(i);if(mt(s))return i}function D8(i,s){if(i==="change")return s}var h1=!1;if(c){var k0;if(c){var S0="oninput"in document;if(!S0){var f1=document.createElement("div");f1.setAttribute("oninput","return;"),S0=typeof f1.oninput=="function"}k0=S0}else k0=!1;h1=k0&&(!document.documentMode||9<document.documentMode)}function m1(){As&&(As.detachEvent("onpropertychange",p1),Ns=As=null)}function p1(i){if(i.propertyName==="value"&&Zu(Ns)){var s=[];d1(s,Ns,i,i0(i)),Mf(L8,s)}}function O8(i,s,o){i==="focusin"?(m1(),As=s,Ns=o,As.attachEvent("onpropertychange",p1)):i==="focusout"&&m1()}function M8(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Zu(Ns)}function P8(i,s){if(i==="click")return Zu(s)}function B8(i,s){if(i==="input"||i==="change")return Zu(s)}function F8(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var rr=typeof Object.is=="function"?Object.is:F8;function _s(i,s){if(rr(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var o=Object.keys(i),f=Object.keys(s);if(o.length!==f.length)return!1;for(f=0;f<o.length;f++){var y=o[f];if(!d.call(s,y)||!rr(i[y],s[y]))return!1}return!0}function g1(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function y1(i,s){var o=g1(i);i=0;for(var f;o;){if(o.nodeType===3){if(f=i+o.textContent.length,i<=s&&f>=s)return{node:o,offset:s-i};i=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=g1(o)}}function v1(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?v1(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function b1(){for(var i=window,s=lt();s instanceof i.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)i=s.contentWindow;else break;s=lt(i.document)}return s}function C0(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function z8(i){var s=b1(),o=i.focusedElem,f=i.selectionRange;if(s!==o&&o&&o.ownerDocument&&v1(o.ownerDocument.documentElement,o)){if(f!==null&&C0(o)){if(s=f.start,i=f.end,i===void 0&&(i=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(i,o.value.length);else if(i=(s=o.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var y=o.textContent.length,b=Math.min(f.start,y);f=f.end===void 0?b:Math.min(f.end,y),!i.extend&&b>f&&(y=f,f=b,b=y),y=y1(o,b);var S=y1(o,f);y&&S&&(i.rangeCount!==1||i.anchorNode!==y.node||i.anchorOffset!==y.offset||i.focusNode!==S.node||i.focusOffset!==S.offset)&&(s=s.createRange(),s.setStart(y.node,y.offset),i.removeAllRanges(),b>f?(i.addRange(s),i.extend(S.node,S.offset)):(s.setEnd(S.node,S.offset),i.addRange(s)))}}for(s=[],i=o;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<s.length;o++)i=s[o],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var H8=c&&"documentMode"in document&&11>=document.documentMode,Na=null,A0=null,Is=null,N0=!1;function E1(i,s,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;N0||Na==null||Na!==lt(f)||(f=Na,"selectionStart"in f&&C0(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Is&&_s(Is,f)||(Is=f,f=rl(A0,"onSelect"),0<f.length&&(s=new v0("onSelect","select",null,s,o),i.push({event:s,listeners:f}),s.target=Na)))}function el(i,s){var o={};return o[i.toLowerCase()]=s.toLowerCase(),o["Webkit"+i]="webkit"+s,o["Moz"+i]="moz"+s,o}var _a={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionend:el("Transition","TransitionEnd")},_0={},x1={};c&&(x1=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function tl(i){if(_0[i])return _0[i];if(!_a[i])return i;var s=_a[i],o;for(o in s)if(s.hasOwnProperty(o)&&o in x1)return _0[i]=s[o];return i}var T1=tl("animationend"),w1=tl("animationiteration"),k1=tl("animationstart"),S1=tl("transitionend"),C1=new Map,A1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function li(i,s){C1.set(i,s),u(s,[i])}for(var I0=0;I0<A1.length;I0++){var R0=A1[I0],U8=R0.toLowerCase(),j8=R0[0].toUpperCase()+R0.slice(1);li(U8,"on"+j8)}li(T1,"onAnimationEnd"),li(w1,"onAnimationIteration"),li(k1,"onAnimationStart"),li("dblclick","onDoubleClick"),li("focusin","onFocus"),li("focusout","onBlur"),li(S1,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rs="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(" "),q8=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rs));function N1(i,s,o){var f=i.type||"unknown-event";i.currentTarget=o,U5(f,s,void 0,i),i.currentTarget=null}function _1(i,s){s=(s&4)!==0;for(var o=0;o<i.length;o++){var f=i[o],y=f.event;f=f.listeners;e:{var b=void 0;if(s)for(var S=f.length-1;0<=S;S--){var B=f[S],$=B.instance,ee=B.currentTarget;if(B=B.listener,$!==b&&y.isPropagationStopped())break e;N1(y,B,ee),b=$}else for(S=0;S<f.length;S++){if(B=f[S],$=B.instance,ee=B.currentTarget,B=B.listener,$!==b&&y.isPropagationStopped())break e;N1(y,B,ee),b=$}}}if(zu)throw i=l0,zu=!1,l0=null,i}function Et(i,s){var o=s[z0];o===void 0&&(o=s[z0]=new Set);var f=i+"__bubble";o.has(f)||(I1(s,i,2,!1),o.add(f))}function L0(i,s,o){var f=0;s&&(f|=4),I1(o,i,f,s)}var nl="_reactListening"+Math.random().toString(36).slice(2);function Ls(i){if(!i[nl]){i[nl]=!0,r.forEach(function(o){o!=="selectionchange"&&(q8.has(o)||L0(o,!1,i),L0(o,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[nl]||(s[nl]=!0,L0("selectionchange",!1,s))}}function I1(i,s,o,f){switch(Zf(s)){case 1:var y=r8;break;case 4:y=i8;break;default:y=p0}o=y.bind(null,s,o,i),y=void 0,!u0||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(y=!0),f?y!==void 0?i.addEventListener(s,o,{capture:!0,passive:y}):i.addEventListener(s,o,!0):y!==void 0?i.addEventListener(s,o,{passive:y}):i.addEventListener(s,o,!1)}function D0(i,s,o,f,y){var b=f;if((s&1)===0&&(s&2)===0&&f!==null)e:for(;;){if(f===null)return;var S=f.tag;if(S===3||S===4){var B=f.stateNode.containerInfo;if(B===y||B.nodeType===8&&B.parentNode===y)break;if(S===4)for(S=f.return;S!==null;){var $=S.tag;if(($===3||$===4)&&($=S.stateNode.containerInfo,$===y||$.nodeType===8&&$.parentNode===y))return;S=S.return}for(;B!==null;){if(S=Wi(B),S===null)return;if($=S.tag,$===5||$===6){f=b=S;continue e}B=B.parentNode}}f=f.return}Mf(function(){var ee=b,fe=i0(o),ye=[];e:{var de=C1.get(i);if(de!==void 0){var Ae=v0,Oe=i;switch(i){case"keypress":if(Xu(o)===0)break e;case"keydown":case"keyup":Ae=b8;break;case"focusin":Oe="focus",Ae=x0;break;case"focusout":Oe="blur",Ae=x0;break;case"beforeblur":case"afterblur":Ae=x0;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ae=n1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ae=u8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ae=T8;break;case T1:case w1:case k1:Ae=c8;break;case S1:Ae=k8;break;case"scroll":Ae=a8;break;case"wheel":Ae=C8;break;case"copy":case"cut":case"paste":Ae=h8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ae=i1}var Be=(s&4)!==0,Ot=!Be&&i==="scroll",Q=Be?de!==null?de+"Capture":null:de;Be=[];for(var G=ee,K;G!==null;){K=G;var Te=K.stateNode;if(K.tag===5&&Te!==null&&(K=Te,Q!==null&&(Te=ms(G,Q),Te!=null&&Be.push(Ds(G,Te,K)))),Ot)break;G=G.return}0<Be.length&&(de=new Ae(de,Oe,null,o,fe),ye.push({event:de,listeners:Be}))}}if((s&7)===0){e:{if(de=i==="mouseover"||i==="pointerover",Ae=i==="mouseout"||i==="pointerout",de&&o!==Rn&&(Oe=o.relatedTarget||o.fromElement)&&(Wi(Oe)||Oe[Br]))break e;if((Ae||de)&&(de=fe.window===fe?fe:(de=fe.ownerDocument)?de.defaultView||de.parentWindow:window,Ae?(Oe=o.relatedTarget||o.toElement,Ae=ee,Oe=Oe?Wi(Oe):null,Oe!==null&&(Ot=$i(Oe),Oe!==Ot||Oe.tag!==5&&Oe.tag!==6)&&(Oe=null)):(Ae=null,Oe=ee),Ae!==Oe)){if(Be=n1,Te="onMouseLeave",Q="onMouseEnter",G="mouse",(i==="pointerout"||i==="pointerover")&&(Be=i1,Te="onPointerLeave",Q="onPointerEnter",G="pointer"),Ot=Ae==null?de:La(Ae),K=Oe==null?de:La(Oe),de=new Be(Te,G+"leave",Ae,o,fe),de.target=Ot,de.relatedTarget=K,Te=null,Wi(fe)===ee&&(Be=new Be(Q,G+"enter",Oe,o,fe),Be.target=K,Be.relatedTarget=Ot,Te=Be),Ot=Te,Ae&&Oe)t:{for(Be=Ae,Q=Oe,G=0,K=Be;K;K=Ia(K))G++;for(K=0,Te=Q;Te;Te=Ia(Te))K++;for(;0<G-K;)Be=Ia(Be),G--;for(;0<K-G;)Q=Ia(Q),K--;for(;G--;){if(Be===Q||Q!==null&&Be===Q.alternate)break t;Be=Ia(Be),Q=Ia(Q)}Be=null}else Be=null;Ae!==null&&R1(ye,de,Ae,Be,!1),Oe!==null&&Ot!==null&&R1(ye,Ot,Oe,Be,!0)}}e:{if(de=ee?La(ee):window,Ae=de.nodeName&&de.nodeName.toLowerCase(),Ae==="select"||Ae==="input"&&de.type==="file")var Fe=D8;else if(c1(de))if(h1)Fe=B8;else{Fe=M8;var je=O8}else(Ae=de.nodeName)&&Ae.toLowerCase()==="input"&&(de.type==="checkbox"||de.type==="radio")&&(Fe=P8);if(Fe&&(Fe=Fe(i,ee))){d1(ye,Fe,o,fe);break e}je&&je(i,de,ee),i==="focusout"&&(je=de._wrapperState)&&je.controlled&&de.type==="number"&&Mr(de,"number",de.value)}switch(je=ee?La(ee):window,i){case"focusin":(c1(je)||je.contentEditable==="true")&&(Na=je,A0=ee,Is=null);break;case"focusout":Is=A0=Na=null;break;case"mousedown":N0=!0;break;case"contextmenu":case"mouseup":case"dragend":N0=!1,E1(ye,o,fe);break;case"selectionchange":if(H8)break;case"keydown":case"keyup":E1(ye,o,fe)}var qe;if(w0)e:{switch(i){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Aa?l1(i,o)&&(Ge="onCompositionEnd"):i==="keydown"&&o.keyCode===229&&(Ge="onCompositionStart");Ge&&(a1&&o.locale!=="ko"&&(Aa||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Aa&&(qe=e1()):(ui=fe,y0="value"in ui?ui.value:ui.textContent,Aa=!0)),je=rl(ee,Ge),0<je.length&&(Ge=new r1(Ge,i,null,o,fe),ye.push({event:Ge,listeners:je}),qe?Ge.data=qe:(qe=o1(o),qe!==null&&(Ge.data=qe)))),(qe=N8?_8(i,o):I8(i,o))&&(ee=rl(ee,"onBeforeInput"),0<ee.length&&(fe=new r1("onBeforeInput","beforeinput",null,o,fe),ye.push({event:fe,listeners:ee}),fe.data=qe))}_1(ye,s)})}function Ds(i,s,o){return{instance:i,listener:s,currentTarget:o}}function rl(i,s){for(var o=s+"Capture",f=[];i!==null;){var y=i,b=y.stateNode;y.tag===5&&b!==null&&(y=b,b=ms(i,o),b!=null&&f.unshift(Ds(i,b,y)),b=ms(i,s),b!=null&&f.push(Ds(i,b,y))),i=i.return}return f}function Ia(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function R1(i,s,o,f,y){for(var b=s._reactName,S=[];o!==null&&o!==f;){var B=o,$=B.alternate,ee=B.stateNode;if($!==null&&$===f)break;B.tag===5&&ee!==null&&(B=ee,y?($=ms(o,b),$!=null&&S.unshift(Ds(o,$,B))):y||($=ms(o,b),$!=null&&S.push(Ds(o,$,B)))),o=o.return}S.length!==0&&i.push({event:s,listeners:S})}var $8=/\r\n?/g,W8=/\u0000|\uFFFD/g;function L1(i){return(typeof i=="string"?i:""+i).replace($8,`
38
+ `).replace(W8,"")}function il(i,s,o){if(s=L1(s),L1(i)!==s&&o)throw Error(n(425))}function al(){}var O0=null,M0=null;function P0(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var B0=typeof setTimeout=="function"?setTimeout:void 0,Y8=typeof clearTimeout=="function"?clearTimeout:void 0,D1=typeof Promise=="function"?Promise:void 0,V8=typeof queueMicrotask=="function"?queueMicrotask:typeof D1<"u"?function(i){return D1.resolve(null).then(i).catch(G8)}:B0;function G8(i){setTimeout(function(){throw i})}function F0(i,s){var o=s,f=0;do{var y=o.nextSibling;if(i.removeChild(o),y&&y.nodeType===8)if(o=y.data,o==="/$"){if(f===0){i.removeChild(y),ws(s);return}f--}else o!=="$"&&o!=="$?"&&o!=="$!"||f++;o=y}while(o);ws(s)}function oi(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function O1(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var o=i.data;if(o==="$"||o==="$!"||o==="$?"){if(s===0)return i;s--}else o==="/$"&&s++}i=i.previousSibling}return null}var Ra=Math.random().toString(36).slice(2),Er="__reactFiber$"+Ra,Os="__reactProps$"+Ra,Br="__reactContainer$"+Ra,z0="__reactEvents$"+Ra,Q8="__reactListeners$"+Ra,X8="__reactHandles$"+Ra;function Wi(i){var s=i[Er];if(s)return s;for(var o=i.parentNode;o;){if(s=o[Br]||o[Er]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(i=O1(i);i!==null;){if(o=i[Er])return o;i=O1(i)}return s}i=o,o=i.parentNode}return null}function Ms(i){return i=i[Er]||i[Br],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function La(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function sl(i){return i[Os]||null}var H0=[],Da=-1;function ci(i){return{current:i}}function xt(i){0>Da||(i.current=H0[Da],H0[Da]=null,Da--)}function vt(i,s){Da++,H0[Da]=i.current,i.current=s}var di={},nn=ci(di),bn=ci(!1),Yi=di;function Oa(i,s){var o=i.type.contextTypes;if(!o)return di;var f=i.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===s)return f.__reactInternalMemoizedMaskedChildContext;var y={},b;for(b in o)y[b]=s[b];return f&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=y),y}function En(i){return i=i.childContextTypes,i!=null}function ul(){xt(bn),xt(nn)}function M1(i,s,o){if(nn.current!==di)throw Error(n(168));vt(nn,s),vt(bn,o)}function P1(i,s,o){var f=i.stateNode;if(s=s.childContextTypes,typeof f.getChildContext!="function")return o;f=f.getChildContext();for(var y in f)if(!(y in s))throw Error(n(108,Ve(i)||"Unknown",y));return A({},o,f)}function ll(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||di,Yi=nn.current,vt(nn,i),vt(bn,bn.current),!0}function B1(i,s,o){var f=i.stateNode;if(!f)throw Error(n(169));o?(i=P1(i,s,Yi),f.__reactInternalMemoizedMergedChildContext=i,xt(bn),xt(nn),vt(nn,i)):xt(bn),vt(bn,o)}var Fr=null,ol=!1,U0=!1;function F1(i){Fr===null?Fr=[i]:Fr.push(i)}function K8(i){ol=!0,F1(i)}function hi(){if(!U0&&Fr!==null){U0=!0;var i=0,s=ft;try{var o=Fr;for(ft=1;i<o.length;i++){var f=o[i];do f=f(!0);while(f!==null)}Fr=null,ol=!1}catch(y){throw Fr!==null&&(Fr=Fr.slice(i+1)),Hf(o0,hi),y}finally{ft=s,U0=!1}}return null}var Ma=[],Pa=0,cl=null,dl=0,$n=[],Wn=0,Vi=null,zr=1,Hr="";function Gi(i,s){Ma[Pa++]=dl,Ma[Pa++]=cl,cl=i,dl=s}function z1(i,s,o){$n[Wn++]=zr,$n[Wn++]=Hr,$n[Wn++]=Vi,Vi=i;var f=zr;i=Hr;var y=32-nr(f)-1;f&=~(1<<y),o+=1;var b=32-nr(s)+y;if(30<b){var S=y-y%5;b=(f&(1<<S)-1).toString(32),f>>=S,y-=S,zr=1<<32-nr(s)+y|o<<y|f,Hr=b+i}else zr=1<<b|o<<y|f,Hr=i}function j0(i){i.return!==null&&(Gi(i,1),z1(i,1,0))}function q0(i){for(;i===cl;)cl=Ma[--Pa],Ma[Pa]=null,dl=Ma[--Pa],Ma[Pa]=null;for(;i===Vi;)Vi=$n[--Wn],$n[Wn]=null,Hr=$n[--Wn],$n[Wn]=null,zr=$n[--Wn],$n[Wn]=null}var Dn=null,On=null,wt=!1,ir=null;function H1(i,s){var o=Qn(5,null,null,0);o.elementType="DELETED",o.stateNode=s,o.return=i,s=i.deletions,s===null?(i.deletions=[o],i.flags|=16):s.push(o)}function U1(i,s){switch(i.tag){case 5:var o=i.type;return s=s.nodeType!==1||o.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,Dn=i,On=oi(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,Dn=i,On=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=Vi!==null?{id:zr,overflow:Hr}:null,i.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=Qn(18,null,null,0),o.stateNode=s,o.return=i,i.child=o,Dn=i,On=null,!0):!1;default:return!1}}function $0(i){return(i.mode&1)!==0&&(i.flags&128)===0}function W0(i){if(wt){var s=On;if(s){var o=s;if(!U1(i,s)){if($0(i))throw Error(n(418));s=oi(o.nextSibling);var f=Dn;s&&U1(i,s)?H1(f,o):(i.flags=i.flags&-4097|2,wt=!1,Dn=i)}}else{if($0(i))throw Error(n(418));i.flags=i.flags&-4097|2,wt=!1,Dn=i}}}function j1(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Dn=i}function hl(i){if(i!==Dn)return!1;if(!wt)return j1(i),wt=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!P0(i.type,i.memoizedProps)),s&&(s=On)){if($0(i))throw q1(),Error(n(418));for(;s;)H1(i,s),s=oi(s.nextSibling)}if(j1(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var o=i.data;if(o==="/$"){if(s===0){On=oi(i.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}i=i.nextSibling}On=null}}else On=Dn?oi(i.stateNode.nextSibling):null;return!0}function q1(){for(var i=On;i;)i=oi(i.nextSibling)}function Ba(){On=Dn=null,wt=!1}function Y0(i){ir===null?ir=[i]:ir.push(i)}var J8=J.ReactCurrentBatchConfig;function Ps(i,s,o){if(i=o.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(n(309));var f=o.stateNode}if(!f)throw Error(n(147,i));var y=f,b=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===b?s.ref:(s=function(S){var B=y.refs;S===null?delete B[b]:B[b]=S},s._stringRef=b,s)}if(typeof i!="string")throw Error(n(284));if(!o._owner)throw Error(n(290,i))}return i}function fl(i,s){throw i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function $1(i){var s=i._init;return s(i._payload)}function W1(i){function s(Q,G){if(i){var K=Q.deletions;K===null?(Q.deletions=[G],Q.flags|=16):K.push(G)}}function o(Q,G){if(!i)return null;for(;G!==null;)s(Q,G),G=G.sibling;return null}function f(Q,G){for(Q=new Map;G!==null;)G.key!==null?Q.set(G.key,G):Q.set(G.index,G),G=G.sibling;return Q}function y(Q,G){return Q=Ei(Q,G),Q.index=0,Q.sibling=null,Q}function b(Q,G,K){return Q.index=K,i?(K=Q.alternate,K!==null?(K=K.index,K<G?(Q.flags|=2,G):K):(Q.flags|=2,G)):(Q.flags|=1048576,G)}function S(Q){return i&&Q.alternate===null&&(Q.flags|=2),Q}function B(Q,G,K,Te){return G===null||G.tag!==6?(G=Bc(K,Q.mode,Te),G.return=Q,G):(G=y(G,K),G.return=Q,G)}function $(Q,G,K,Te){var Fe=K.type;return Fe===Z?fe(Q,G,K.props.children,Te,K.key):G!==null&&(G.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===Re&&$1(Fe)===G.type)?(Te=y(G,K.props),Te.ref=Ps(Q,G,K),Te.return=Q,Te):(Te=Bl(K.type,K.key,K.props,null,Q.mode,Te),Te.ref=Ps(Q,G,K),Te.return=Q,Te)}function ee(Q,G,K,Te){return G===null||G.tag!==4||G.stateNode.containerInfo!==K.containerInfo||G.stateNode.implementation!==K.implementation?(G=Fc(K,Q.mode,Te),G.return=Q,G):(G=y(G,K.children||[]),G.return=Q,G)}function fe(Q,G,K,Te,Fe){return G===null||G.tag!==7?(G=na(K,Q.mode,Te,Fe),G.return=Q,G):(G=y(G,K),G.return=Q,G)}function ye(Q,G,K){if(typeof G=="string"&&G!==""||typeof G=="number")return G=Bc(""+G,Q.mode,K),G.return=Q,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case te:return K=Bl(G.type,G.key,G.props,null,Q.mode,K),K.ref=Ps(Q,null,G),K.return=Q,K;case W:return G=Fc(G,Q.mode,K),G.return=Q,G;case Re:var Te=G._init;return ye(Q,Te(G._payload),K)}if(In(G)||_e(G))return G=na(G,Q.mode,K,null),G.return=Q,G;fl(Q,G)}return null}function de(Q,G,K,Te){var Fe=G!==null?G.key:null;if(typeof K=="string"&&K!==""||typeof K=="number")return Fe!==null?null:B(Q,G,""+K,Te);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case te:return K.key===Fe?$(Q,G,K,Te):null;case W:return K.key===Fe?ee(Q,G,K,Te):null;case Re:return Fe=K._init,de(Q,G,Fe(K._payload),Te)}if(In(K)||_e(K))return Fe!==null?null:fe(Q,G,K,Te,null);fl(Q,K)}return null}function Ae(Q,G,K,Te,Fe){if(typeof Te=="string"&&Te!==""||typeof Te=="number")return Q=Q.get(K)||null,B(G,Q,""+Te,Fe);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case te:return Q=Q.get(Te.key===null?K:Te.key)||null,$(G,Q,Te,Fe);case W:return Q=Q.get(Te.key===null?K:Te.key)||null,ee(G,Q,Te,Fe);case Re:var je=Te._init;return Ae(Q,G,K,je(Te._payload),Fe)}if(In(Te)||_e(Te))return Q=Q.get(K)||null,fe(G,Q,Te,Fe,null);fl(G,Te)}return null}function Oe(Q,G,K,Te){for(var Fe=null,je=null,qe=G,Ge=G=0,Gt=null;qe!==null&&Ge<K.length;Ge++){qe.index>Ge?(Gt=qe,qe=null):Gt=qe.sibling;var ut=de(Q,qe,K[Ge],Te);if(ut===null){qe===null&&(qe=Gt);break}i&&qe&&ut.alternate===null&&s(Q,qe),G=b(ut,G,Ge),je===null?Fe=ut:je.sibling=ut,je=ut,qe=Gt}if(Ge===K.length)return o(Q,qe),wt&&Gi(Q,Ge),Fe;if(qe===null){for(;Ge<K.length;Ge++)qe=ye(Q,K[Ge],Te),qe!==null&&(G=b(qe,G,Ge),je===null?Fe=qe:je.sibling=qe,je=qe);return wt&&Gi(Q,Ge),Fe}for(qe=f(Q,qe);Ge<K.length;Ge++)Gt=Ae(qe,Q,Ge,K[Ge],Te),Gt!==null&&(i&&Gt.alternate!==null&&qe.delete(Gt.key===null?Ge:Gt.key),G=b(Gt,G,Ge),je===null?Fe=Gt:je.sibling=Gt,je=Gt);return i&&qe.forEach(function(xi){return s(Q,xi)}),wt&&Gi(Q,Ge),Fe}function Be(Q,G,K,Te){var Fe=_e(K);if(typeof Fe!="function")throw Error(n(150));if(K=Fe.call(K),K==null)throw Error(n(151));for(var je=Fe=null,qe=G,Ge=G=0,Gt=null,ut=K.next();qe!==null&&!ut.done;Ge++,ut=K.next()){qe.index>Ge?(Gt=qe,qe=null):Gt=qe.sibling;var xi=de(Q,qe,ut.value,Te);if(xi===null){qe===null&&(qe=Gt);break}i&&qe&&xi.alternate===null&&s(Q,qe),G=b(xi,G,Ge),je===null?Fe=xi:je.sibling=xi,je=xi,qe=Gt}if(ut.done)return o(Q,qe),wt&&Gi(Q,Ge),Fe;if(qe===null){for(;!ut.done;Ge++,ut=K.next())ut=ye(Q,ut.value,Te),ut!==null&&(G=b(ut,G,Ge),je===null?Fe=ut:je.sibling=ut,je=ut);return wt&&Gi(Q,Ge),Fe}for(qe=f(Q,qe);!ut.done;Ge++,ut=K.next())ut=Ae(qe,Q,Ge,ut.value,Te),ut!==null&&(i&&ut.alternate!==null&&qe.delete(ut.key===null?Ge:ut.key),G=b(ut,G,Ge),je===null?Fe=ut:je.sibling=ut,je=ut);return i&&qe.forEach(function(R7){return s(Q,R7)}),wt&&Gi(Q,Ge),Fe}function Ot(Q,G,K,Te){if(typeof K=="object"&&K!==null&&K.type===Z&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case te:e:{for(var Fe=K.key,je=G;je!==null;){if(je.key===Fe){if(Fe=K.type,Fe===Z){if(je.tag===7){o(Q,je.sibling),G=y(je,K.props.children),G.return=Q,Q=G;break e}}else if(je.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===Re&&$1(Fe)===je.type){o(Q,je.sibling),G=y(je,K.props),G.ref=Ps(Q,je,K),G.return=Q,Q=G;break e}o(Q,je);break}else s(Q,je);je=je.sibling}K.type===Z?(G=na(K.props.children,Q.mode,Te,K.key),G.return=Q,Q=G):(Te=Bl(K.type,K.key,K.props,null,Q.mode,Te),Te.ref=Ps(Q,G,K),Te.return=Q,Q=Te)}return S(Q);case W:e:{for(je=K.key;G!==null;){if(G.key===je)if(G.tag===4&&G.stateNode.containerInfo===K.containerInfo&&G.stateNode.implementation===K.implementation){o(Q,G.sibling),G=y(G,K.children||[]),G.return=Q,Q=G;break e}else{o(Q,G);break}else s(Q,G);G=G.sibling}G=Fc(K,Q.mode,Te),G.return=Q,Q=G}return S(Q);case Re:return je=K._init,Ot(Q,G,je(K._payload),Te)}if(In(K))return Oe(Q,G,K,Te);if(_e(K))return Be(Q,G,K,Te);fl(Q,K)}return typeof K=="string"&&K!==""||typeof K=="number"?(K=""+K,G!==null&&G.tag===6?(o(Q,G.sibling),G=y(G,K),G.return=Q,Q=G):(o(Q,G),G=Bc(K,Q.mode,Te),G.return=Q,Q=G),S(Q)):o(Q,G)}return Ot}var Fa=W1(!0),Y1=W1(!1),ml=ci(null),pl=null,za=null,V0=null;function G0(){V0=za=pl=null}function Q0(i){var s=ml.current;xt(ml),i._currentValue=s}function X0(i,s,o){for(;i!==null;){var f=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,f!==null&&(f.childLanes|=s)):f!==null&&(f.childLanes&s)!==s&&(f.childLanes|=s),i===o)break;i=i.return}}function Ha(i,s){pl=i,V0=za=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(xn=!0),i.firstContext=null)}function Yn(i){var s=i._currentValue;if(V0!==i)if(i={context:i,memoizedValue:s,next:null},za===null){if(pl===null)throw Error(n(308));za=i,pl.dependencies={lanes:0,firstContext:i}}else za=za.next=i;return s}var Qi=null;function K0(i){Qi===null?Qi=[i]:Qi.push(i)}function V1(i,s,o,f){var y=s.interleaved;return y===null?(o.next=o,K0(s)):(o.next=y.next,y.next=o),s.interleaved=o,Ur(i,f)}function Ur(i,s){i.lanes|=s;var o=i.alternate;for(o!==null&&(o.lanes|=s),o=i,i=i.return;i!==null;)i.childLanes|=s,o=i.alternate,o!==null&&(o.childLanes|=s),o=i,i=i.return;return o.tag===3?o.stateNode:null}var fi=!1;function J0(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function G1(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function jr(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function mi(i,s,o){var f=i.updateQueue;if(f===null)return null;if(f=f.shared,(st&2)!==0){var y=f.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),f.pending=s,Ur(i,o)}return y=f.interleaved,y===null?(s.next=s,K0(f)):(s.next=y.next,y.next=s),f.interleaved=s,Ur(i,o)}function gl(i,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194240)!==0)){var f=s.lanes;f&=i.pendingLanes,o|=f,s.lanes=o,h0(i,o)}}function Q1(i,s){var o=i.updateQueue,f=i.alternate;if(f!==null&&(f=f.updateQueue,o===f)){var y=null,b=null;if(o=o.firstBaseUpdate,o!==null){do{var S={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};b===null?y=b=S:b=b.next=S,o=o.next}while(o!==null);b===null?y=b=s:b=b.next=s}else y=b=s;o={baseState:f.baseState,firstBaseUpdate:y,lastBaseUpdate:b,shared:f.shared,effects:f.effects},i.updateQueue=o;return}i=o.lastBaseUpdate,i===null?o.firstBaseUpdate=s:i.next=s,o.lastBaseUpdate=s}function yl(i,s,o,f){var y=i.updateQueue;fi=!1;var b=y.firstBaseUpdate,S=y.lastBaseUpdate,B=y.shared.pending;if(B!==null){y.shared.pending=null;var $=B,ee=$.next;$.next=null,S===null?b=ee:S.next=ee,S=$;var fe=i.alternate;fe!==null&&(fe=fe.updateQueue,B=fe.lastBaseUpdate,B!==S&&(B===null?fe.firstBaseUpdate=ee:B.next=ee,fe.lastBaseUpdate=$))}if(b!==null){var ye=y.baseState;S=0,fe=ee=$=null,B=b;do{var de=B.lane,Ae=B.eventTime;if((f&de)===de){fe!==null&&(fe=fe.next={eventTime:Ae,lane:0,tag:B.tag,payload:B.payload,callback:B.callback,next:null});e:{var Oe=i,Be=B;switch(de=s,Ae=o,Be.tag){case 1:if(Oe=Be.payload,typeof Oe=="function"){ye=Oe.call(Ae,ye,de);break e}ye=Oe;break e;case 3:Oe.flags=Oe.flags&-65537|128;case 0:if(Oe=Be.payload,de=typeof Oe=="function"?Oe.call(Ae,ye,de):Oe,de==null)break e;ye=A({},ye,de);break e;case 2:fi=!0}}B.callback!==null&&B.lane!==0&&(i.flags|=64,de=y.effects,de===null?y.effects=[B]:de.push(B))}else Ae={eventTime:Ae,lane:de,tag:B.tag,payload:B.payload,callback:B.callback,next:null},fe===null?(ee=fe=Ae,$=ye):fe=fe.next=Ae,S|=de;if(B=B.next,B===null){if(B=y.shared.pending,B===null)break;de=B,B=de.next,de.next=null,y.lastBaseUpdate=de,y.shared.pending=null}}while(!0);if(fe===null&&($=ye),y.baseState=$,y.firstBaseUpdate=ee,y.lastBaseUpdate=fe,s=y.shared.interleaved,s!==null){y=s;do S|=y.lane,y=y.next;while(y!==s)}else b===null&&(y.shared.lanes=0);Ji|=S,i.lanes=S,i.memoizedState=ye}}function X1(i,s,o){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var f=i[s],y=f.callback;if(y!==null){if(f.callback=null,f=o,typeof y!="function")throw Error(n(191,y));y.call(f)}}}var Bs={},xr=ci(Bs),Fs=ci(Bs),zs=ci(Bs);function Xi(i){if(i===Bs)throw Error(n(174));return i}function Z0(i,s){switch(vt(zs,s),vt(Fs,i),vt(xr,Bs),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:ke(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=ke(s,i)}xt(xr),vt(xr,s)}function Ua(){xt(xr),xt(Fs),xt(zs)}function K1(i){Xi(zs.current);var s=Xi(xr.current),o=ke(s,i.type);s!==o&&(vt(Fs,i),vt(xr,o))}function ec(i){Fs.current===i&&(xt(xr),xt(Fs))}var At=ci(0);function vl(i){for(var s=i;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var tc=[];function nc(){for(var i=0;i<tc.length;i++)tc[i]._workInProgressVersionPrimary=null;tc.length=0}var bl=J.ReactCurrentDispatcher,rc=J.ReactCurrentBatchConfig,Ki=0,Nt=null,jt=null,Yt=null,El=!1,Hs=!1,Us=0,Z8=0;function rn(){throw Error(n(321))}function ic(i,s){if(s===null)return!1;for(var o=0;o<s.length&&o<i.length;o++)if(!rr(i[o],s[o]))return!1;return!0}function ac(i,s,o,f,y,b){if(Ki=b,Nt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,bl.current=i===null||i.memoizedState===null?r7:i7,i=o(f,y),Hs){b=0;do{if(Hs=!1,Us=0,25<=b)throw Error(n(301));b+=1,Yt=jt=null,s.updateQueue=null,bl.current=a7,i=o(f,y)}while(Hs)}if(bl.current=wl,s=jt!==null&&jt.next!==null,Ki=0,Yt=jt=Nt=null,El=!1,s)throw Error(n(300));return i}function sc(){var i=Us!==0;return Us=0,i}function Tr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Nt.memoizedState=Yt=i:Yt=Yt.next=i,Yt}function Vn(){if(jt===null){var i=Nt.alternate;i=i!==null?i.memoizedState:null}else i=jt.next;var s=Yt===null?Nt.memoizedState:Yt.next;if(s!==null)Yt=s,jt=i;else{if(i===null)throw Error(n(310));jt=i,i={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},Yt===null?Nt.memoizedState=Yt=i:Yt=Yt.next=i}return Yt}function js(i,s){return typeof s=="function"?s(i):s}function uc(i){var s=Vn(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=i;var f=jt,y=f.baseQueue,b=o.pending;if(b!==null){if(y!==null){var S=y.next;y.next=b.next,b.next=S}f.baseQueue=y=b,o.pending=null}if(y!==null){b=y.next,f=f.baseState;var B=S=null,$=null,ee=b;do{var fe=ee.lane;if((Ki&fe)===fe)$!==null&&($=$.next={lane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),f=ee.hasEagerState?ee.eagerState:i(f,ee.action);else{var ye={lane:fe,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null};$===null?(B=$=ye,S=f):$=$.next=ye,Nt.lanes|=fe,Ji|=fe}ee=ee.next}while(ee!==null&&ee!==b);$===null?S=f:$.next=B,rr(f,s.memoizedState)||(xn=!0),s.memoizedState=f,s.baseState=S,s.baseQueue=$,o.lastRenderedState=f}if(i=o.interleaved,i!==null){y=i;do b=y.lane,Nt.lanes|=b,Ji|=b,y=y.next;while(y!==i)}else y===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function lc(i){var s=Vn(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=i;var f=o.dispatch,y=o.pending,b=s.memoizedState;if(y!==null){o.pending=null;var S=y=y.next;do b=i(b,S.action),S=S.next;while(S!==y);rr(b,s.memoizedState)||(xn=!0),s.memoizedState=b,s.baseQueue===null&&(s.baseState=b),o.lastRenderedState=b}return[b,f]}function J1(){}function Z1(i,s){var o=Nt,f=Vn(),y=s(),b=!rr(f.memoizedState,y);if(b&&(f.memoizedState=y,xn=!0),f=f.queue,oc(nm.bind(null,o,f,i),[i]),f.getSnapshot!==s||b||Yt!==null&&Yt.memoizedState.tag&1){if(o.flags|=2048,qs(9,tm.bind(null,o,f,y,s),void 0,null),Vt===null)throw Error(n(349));(Ki&30)!==0||em(o,s,y)}return y}function em(i,s,o){i.flags|=16384,i={getSnapshot:s,value:o},s=Nt.updateQueue,s===null?(s={lastEffect:null,stores:null},Nt.updateQueue=s,s.stores=[i]):(o=s.stores,o===null?s.stores=[i]:o.push(i))}function tm(i,s,o,f){s.value=o,s.getSnapshot=f,rm(s)&&im(i)}function nm(i,s,o){return o(function(){rm(s)&&im(i)})}function rm(i){var s=i.getSnapshot;i=i.value;try{var o=s();return!rr(i,o)}catch{return!0}}function im(i){var s=Ur(i,1);s!==null&&lr(s,i,1,-1)}function am(i){var s=Tr();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:js,lastRenderedState:i},s.queue=i,i=i.dispatch=n7.bind(null,Nt,i),[s.memoizedState,i]}function qs(i,s,o,f){return i={tag:i,create:s,destroy:o,deps:f,next:null},s=Nt.updateQueue,s===null?(s={lastEffect:null,stores:null},Nt.updateQueue=s,s.lastEffect=i.next=i):(o=s.lastEffect,o===null?s.lastEffect=i.next=i:(f=o.next,o.next=i,i.next=f,s.lastEffect=i)),i}function sm(){return Vn().memoizedState}function xl(i,s,o,f){var y=Tr();Nt.flags|=i,y.memoizedState=qs(1|s,o,void 0,f===void 0?null:f)}function Tl(i,s,o,f){var y=Vn();f=f===void 0?null:f;var b=void 0;if(jt!==null){var S=jt.memoizedState;if(b=S.destroy,f!==null&&ic(f,S.deps)){y.memoizedState=qs(s,o,b,f);return}}Nt.flags|=i,y.memoizedState=qs(1|s,o,b,f)}function um(i,s){return xl(8390656,8,i,s)}function oc(i,s){return Tl(2048,8,i,s)}function lm(i,s){return Tl(4,2,i,s)}function om(i,s){return Tl(4,4,i,s)}function cm(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function dm(i,s,o){return o=o!=null?o.concat([i]):null,Tl(4,4,cm.bind(null,s,i),o)}function cc(){}function hm(i,s){var o=Vn();s=s===void 0?null:s;var f=o.memoizedState;return f!==null&&s!==null&&ic(s,f[1])?f[0]:(o.memoizedState=[i,s],i)}function fm(i,s){var o=Vn();s=s===void 0?null:s;var f=o.memoizedState;return f!==null&&s!==null&&ic(s,f[1])?f[0]:(i=i(),o.memoizedState=[i,s],i)}function mm(i,s,o){return(Ki&21)===0?(i.baseState&&(i.baseState=!1,xn=!0),i.memoizedState=o):(rr(o,s)||(o=$f(),Nt.lanes|=o,Ji|=o,i.baseState=!0),s)}function e7(i,s){var o=ft;ft=o!==0&&4>o?o:4,i(!0);var f=rc.transition;rc.transition={};try{i(!1),s()}finally{ft=o,rc.transition=f}}function pm(){return Vn().memoizedState}function t7(i,s,o){var f=vi(i);if(o={lane:f,action:o,hasEagerState:!1,eagerState:null,next:null},gm(i))ym(s,o);else if(o=V1(i,s,o,f),o!==null){var y=fn();lr(o,i,f,y),vm(o,s,f)}}function n7(i,s,o){var f=vi(i),y={lane:f,action:o,hasEagerState:!1,eagerState:null,next:null};if(gm(i))ym(s,y);else{var b=i.alternate;if(i.lanes===0&&(b===null||b.lanes===0)&&(b=s.lastRenderedReducer,b!==null))try{var S=s.lastRenderedState,B=b(S,o);if(y.hasEagerState=!0,y.eagerState=B,rr(B,S)){var $=s.interleaved;$===null?(y.next=y,K0(s)):(y.next=$.next,$.next=y),s.interleaved=y;return}}catch{}finally{}o=V1(i,s,y,f),o!==null&&(y=fn(),lr(o,i,f,y),vm(o,s,f))}}function gm(i){var s=i.alternate;return i===Nt||s!==null&&s===Nt}function ym(i,s){Hs=El=!0;var o=i.pending;o===null?s.next=s:(s.next=o.next,o.next=s),i.pending=s}function vm(i,s,o){if((o&4194240)!==0){var f=s.lanes;f&=i.pendingLanes,o|=f,s.lanes=o,h0(i,o)}}var wl={readContext:Yn,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useInsertionEffect:rn,useLayoutEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useMutableSource:rn,useSyncExternalStore:rn,useId:rn,unstable_isNewReconciler:!1},r7={readContext:Yn,useCallback:function(i,s){return Tr().memoizedState=[i,s===void 0?null:s],i},useContext:Yn,useEffect:um,useImperativeHandle:function(i,s,o){return o=o!=null?o.concat([i]):null,xl(4194308,4,cm.bind(null,s,i),o)},useLayoutEffect:function(i,s){return xl(4194308,4,i,s)},useInsertionEffect:function(i,s){return xl(4,2,i,s)},useMemo:function(i,s){var o=Tr();return s=s===void 0?null:s,i=i(),o.memoizedState=[i,s],i},useReducer:function(i,s,o){var f=Tr();return s=o!==void 0?o(s):s,f.memoizedState=f.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},f.queue=i,i=i.dispatch=t7.bind(null,Nt,i),[f.memoizedState,i]},useRef:function(i){var s=Tr();return i={current:i},s.memoizedState=i},useState:am,useDebugValue:cc,useDeferredValue:function(i){return Tr().memoizedState=i},useTransition:function(){var i=am(!1),s=i[0];return i=e7.bind(null,i[1]),Tr().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,o){var f=Nt,y=Tr();if(wt){if(o===void 0)throw Error(n(407));o=o()}else{if(o=s(),Vt===null)throw Error(n(349));(Ki&30)!==0||em(f,s,o)}y.memoizedState=o;var b={value:o,getSnapshot:s};return y.queue=b,um(nm.bind(null,f,b,i),[i]),f.flags|=2048,qs(9,tm.bind(null,f,b,o,s),void 0,null),o},useId:function(){var i=Tr(),s=Vt.identifierPrefix;if(wt){var o=Hr,f=zr;o=(f&~(1<<32-nr(f)-1)).toString(32)+o,s=":"+s+"R"+o,o=Us++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=Z8++,s=":"+s+"r"+o.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},i7={readContext:Yn,useCallback:hm,useContext:Yn,useEffect:oc,useImperativeHandle:dm,useInsertionEffect:lm,useLayoutEffect:om,useMemo:fm,useReducer:uc,useRef:sm,useState:function(){return uc(js)},useDebugValue:cc,useDeferredValue:function(i){var s=Vn();return mm(s,jt.memoizedState,i)},useTransition:function(){var i=uc(js)[0],s=Vn().memoizedState;return[i,s]},useMutableSource:J1,useSyncExternalStore:Z1,useId:pm,unstable_isNewReconciler:!1},a7={readContext:Yn,useCallback:hm,useContext:Yn,useEffect:oc,useImperativeHandle:dm,useInsertionEffect:lm,useLayoutEffect:om,useMemo:fm,useReducer:lc,useRef:sm,useState:function(){return lc(js)},useDebugValue:cc,useDeferredValue:function(i){var s=Vn();return jt===null?s.memoizedState=i:mm(s,jt.memoizedState,i)},useTransition:function(){var i=lc(js)[0],s=Vn().memoizedState;return[i,s]},useMutableSource:J1,useSyncExternalStore:Z1,useId:pm,unstable_isNewReconciler:!1};function ar(i,s){if(i&&i.defaultProps){s=A({},s),i=i.defaultProps;for(var o in i)s[o]===void 0&&(s[o]=i[o]);return s}return s}function dc(i,s,o,f){s=i.memoizedState,o=o(f,s),o=o==null?s:A({},s,o),i.memoizedState=o,i.lanes===0&&(i.updateQueue.baseState=o)}var kl={isMounted:function(i){return(i=i._reactInternals)?$i(i)===i:!1},enqueueSetState:function(i,s,o){i=i._reactInternals;var f=fn(),y=vi(i),b=jr(f,y);b.payload=s,o!=null&&(b.callback=o),s=mi(i,b,y),s!==null&&(lr(s,i,y,f),gl(s,i,y))},enqueueReplaceState:function(i,s,o){i=i._reactInternals;var f=fn(),y=vi(i),b=jr(f,y);b.tag=1,b.payload=s,o!=null&&(b.callback=o),s=mi(i,b,y),s!==null&&(lr(s,i,y,f),gl(s,i,y))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var o=fn(),f=vi(i),y=jr(o,f);y.tag=2,s!=null&&(y.callback=s),s=mi(i,y,f),s!==null&&(lr(s,i,f,o),gl(s,i,f))}};function bm(i,s,o,f,y,b,S){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(f,b,S):s.prototype&&s.prototype.isPureReactComponent?!_s(o,f)||!_s(y,b):!0}function Em(i,s,o){var f=!1,y=di,b=s.contextType;return typeof b=="object"&&b!==null?b=Yn(b):(y=En(s)?Yi:nn.current,f=s.contextTypes,b=(f=f!=null)?Oa(i,y):di),s=new s(o,b),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=kl,i.stateNode=s,s._reactInternals=i,f&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=y,i.__reactInternalMemoizedMaskedChildContext=b),s}function xm(i,s,o,f){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,f),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,f),s.state!==i&&kl.enqueueReplaceState(s,s.state,null)}function hc(i,s,o,f){var y=i.stateNode;y.props=o,y.state=i.memoizedState,y.refs={},J0(i);var b=s.contextType;typeof b=="object"&&b!==null?y.context=Yn(b):(b=En(s)?Yi:nn.current,y.context=Oa(i,b)),y.state=i.memoizedState,b=s.getDerivedStateFromProps,typeof b=="function"&&(dc(i,s,b,o),y.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(s=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),s!==y.state&&kl.enqueueReplaceState(y,y.state,null),yl(i,o,y,f),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308)}function ja(i,s){try{var o="",f=s;do o+=He(f),f=f.return;while(f);var y=o}catch(b){y=`
39
+ Error generating stack: `+b.message+`
40
+ `+b.stack}return{value:i,source:s,stack:y,digest:null}}function fc(i,s,o){return{value:i,source:null,stack:o??null,digest:s??null}}function mc(i,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var s7=typeof WeakMap=="function"?WeakMap:Map;function Tm(i,s,o){o=jr(-1,o),o.tag=3,o.payload={element:null};var f=s.value;return o.callback=function(){Rl||(Rl=!0,_c=f),mc(i,s)},o}function wm(i,s,o){o=jr(-1,o),o.tag=3;var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var y=s.value;o.payload=function(){return f(y)},o.callback=function(){mc(i,s)}}var b=i.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(o.callback=function(){mc(i,s),typeof f!="function"&&(gi===null?gi=new Set([this]):gi.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})}),o}function km(i,s,o){var f=i.pingCache;if(f===null){f=i.pingCache=new s7;var y=new Set;f.set(s,y)}else y=f.get(s),y===void 0&&(y=new Set,f.set(s,y));y.has(o)||(y.add(o),i=E7.bind(null,i,s,o),s.then(i,i))}function Sm(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function Cm(i,s,o,f,y){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(s=jr(-1,1),s.tag=2,mi(o,s,1))),o.lanes|=1),i):(i.flags|=65536,i.lanes=y,i)}var u7=J.ReactCurrentOwner,xn=!1;function hn(i,s,o,f){s.child=i===null?Y1(s,null,o,f):Fa(s,i.child,o,f)}function Am(i,s,o,f,y){o=o.render;var b=s.ref;return Ha(s,y),f=ac(i,s,o,f,b,y),o=sc(),i!==null&&!xn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~y,qr(i,s,y)):(wt&&o&&j0(s),s.flags|=1,hn(i,s,f,y),s.child)}function Nm(i,s,o,f,y){if(i===null){var b=o.type;return typeof b=="function"&&!Pc(b)&&b.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=b,_m(i,s,b,f,y)):(i=Bl(o.type,null,f,s,s.mode,y),i.ref=s.ref,i.return=s,s.child=i)}if(b=i.child,(i.lanes&y)===0){var S=b.memoizedProps;if(o=o.compare,o=o!==null?o:_s,o(S,f)&&i.ref===s.ref)return qr(i,s,y)}return s.flags|=1,i=Ei(b,f),i.ref=s.ref,i.return=s,s.child=i}function _m(i,s,o,f,y){if(i!==null){var b=i.memoizedProps;if(_s(b,f)&&i.ref===s.ref)if(xn=!1,s.pendingProps=f=b,(i.lanes&y)!==0)(i.flags&131072)!==0&&(xn=!0);else return s.lanes=i.lanes,qr(i,s,y)}return pc(i,s,o,f,y)}function Im(i,s,o){var f=s.pendingProps,y=f.children,b=i!==null?i.memoizedState:null;if(f.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},vt($a,Mn),Mn|=o;else{if((o&1073741824)===0)return i=b!==null?b.baseLanes|o:o,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,vt($a,Mn),Mn|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=b!==null?b.baseLanes:o,vt($a,Mn),Mn|=f}else b!==null?(f=b.baseLanes|o,s.memoizedState=null):f=o,vt($a,Mn),Mn|=f;return hn(i,s,y,o),s.child}function Rm(i,s){var o=s.ref;(i===null&&o!==null||i!==null&&i.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function pc(i,s,o,f,y){var b=En(o)?Yi:nn.current;return b=Oa(s,b),Ha(s,y),o=ac(i,s,o,f,b,y),f=sc(),i!==null&&!xn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~y,qr(i,s,y)):(wt&&f&&j0(s),s.flags|=1,hn(i,s,o,y),s.child)}function Lm(i,s,o,f,y){if(En(o)){var b=!0;ll(s)}else b=!1;if(Ha(s,y),s.stateNode===null)Cl(i,s),Em(s,o,f),hc(s,o,f,y),f=!0;else if(i===null){var S=s.stateNode,B=s.memoizedProps;S.props=B;var $=S.context,ee=o.contextType;typeof ee=="object"&&ee!==null?ee=Yn(ee):(ee=En(o)?Yi:nn.current,ee=Oa(s,ee));var fe=o.getDerivedStateFromProps,ye=typeof fe=="function"||typeof S.getSnapshotBeforeUpdate=="function";ye||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(B!==f||$!==ee)&&xm(s,S,f,ee),fi=!1;var de=s.memoizedState;S.state=de,yl(s,f,S,y),$=s.memoizedState,B!==f||de!==$||bn.current||fi?(typeof fe=="function"&&(dc(s,o,fe,f),$=s.memoizedState),(B=fi||bm(s,o,B,f,de,$,ee))?(ye||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(s.flags|=4194308)):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=f,s.memoizedState=$),S.props=f,S.state=$,S.context=ee,f=B):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),f=!1)}else{S=s.stateNode,G1(i,s),B=s.memoizedProps,ee=s.type===s.elementType?B:ar(s.type,B),S.props=ee,ye=s.pendingProps,de=S.context,$=o.contextType,typeof $=="object"&&$!==null?$=Yn($):($=En(o)?Yi:nn.current,$=Oa(s,$));var Ae=o.getDerivedStateFromProps;(fe=typeof Ae=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(B!==ye||de!==$)&&xm(s,S,f,$),fi=!1,de=s.memoizedState,S.state=de,yl(s,f,S,y);var Oe=s.memoizedState;B!==ye||de!==Oe||bn.current||fi?(typeof Ae=="function"&&(dc(s,o,Ae,f),Oe=s.memoizedState),(ee=fi||bm(s,o,ee,f,de,Oe,$)||!1)?(fe||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(f,Oe,$),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(f,Oe,$)),typeof S.componentDidUpdate=="function"&&(s.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof S.componentDidUpdate!="function"||B===i.memoizedProps&&de===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||B===i.memoizedProps&&de===i.memoizedState||(s.flags|=1024),s.memoizedProps=f,s.memoizedState=Oe),S.props=f,S.state=Oe,S.context=$,f=ee):(typeof S.componentDidUpdate!="function"||B===i.memoizedProps&&de===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||B===i.memoizedProps&&de===i.memoizedState||(s.flags|=1024),f=!1)}return gc(i,s,o,f,b,y)}function gc(i,s,o,f,y,b){Rm(i,s);var S=(s.flags&128)!==0;if(!f&&!S)return y&&B1(s,o,!1),qr(i,s,b);f=s.stateNode,u7.current=s;var B=S&&typeof o.getDerivedStateFromError!="function"?null:f.render();return s.flags|=1,i!==null&&S?(s.child=Fa(s,i.child,null,b),s.child=Fa(s,null,B,b)):hn(i,s,B,b),s.memoizedState=f.state,y&&B1(s,o,!0),s.child}function Dm(i){var s=i.stateNode;s.pendingContext?M1(i,s.pendingContext,s.pendingContext!==s.context):s.context&&M1(i,s.context,!1),Z0(i,s.containerInfo)}function Om(i,s,o,f,y){return Ba(),Y0(y),s.flags|=256,hn(i,s,o,f),s.child}var yc={dehydrated:null,treeContext:null,retryLane:0};function vc(i){return{baseLanes:i,cachePool:null,transitions:null}}function Mm(i,s,o){var f=s.pendingProps,y=At.current,b=!1,S=(s.flags&128)!==0,B;if((B=S)||(B=i!==null&&i.memoizedState===null?!1:(y&2)!==0),B?(b=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(y|=1),vt(At,y&1),i===null)return W0(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(S=f.children,i=f.fallback,b?(f=s.mode,b=s.child,S={mode:"hidden",children:S},(f&1)===0&&b!==null?(b.childLanes=0,b.pendingProps=S):b=Fl(S,f,0,null),i=na(i,f,o,null),b.return=s,i.return=s,b.sibling=i,s.child=b,s.child.memoizedState=vc(o),s.memoizedState=yc,i):bc(s,S));if(y=i.memoizedState,y!==null&&(B=y.dehydrated,B!==null))return l7(i,s,S,f,B,y,o);if(b){b=f.fallback,S=s.mode,y=i.child,B=y.sibling;var $={mode:"hidden",children:f.children};return(S&1)===0&&s.child!==y?(f=s.child,f.childLanes=0,f.pendingProps=$,s.deletions=null):(f=Ei(y,$),f.subtreeFlags=y.subtreeFlags&14680064),B!==null?b=Ei(B,b):(b=na(b,S,o,null),b.flags|=2),b.return=s,f.return=s,f.sibling=b,s.child=f,f=b,b=s.child,S=i.child.memoizedState,S=S===null?vc(o):{baseLanes:S.baseLanes|o,cachePool:null,transitions:S.transitions},b.memoizedState=S,b.childLanes=i.childLanes&~o,s.memoizedState=yc,f}return b=i.child,i=b.sibling,f=Ei(b,{mode:"visible",children:f.children}),(s.mode&1)===0&&(f.lanes=o),f.return=s,f.sibling=null,i!==null&&(o=s.deletions,o===null?(s.deletions=[i],s.flags|=16):o.push(i)),s.child=f,s.memoizedState=null,f}function bc(i,s){return s=Fl({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function Sl(i,s,o,f){return f!==null&&Y0(f),Fa(s,i.child,null,o),i=bc(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function l7(i,s,o,f,y,b,S){if(o)return s.flags&256?(s.flags&=-257,f=fc(Error(n(422))),Sl(i,s,S,f)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(b=f.fallback,y=s.mode,f=Fl({mode:"visible",children:f.children},y,0,null),b=na(b,y,S,null),b.flags|=2,f.return=s,b.return=s,f.sibling=b,s.child=f,(s.mode&1)!==0&&Fa(s,i.child,null,S),s.child.memoizedState=vc(S),s.memoizedState=yc,b);if((s.mode&1)===0)return Sl(i,s,S,null);if(y.data==="$!"){if(f=y.nextSibling&&y.nextSibling.dataset,f)var B=f.dgst;return f=B,b=Error(n(419)),f=fc(b,f,void 0),Sl(i,s,S,f)}if(B=(S&i.childLanes)!==0,xn||B){if(f=Vt,f!==null){switch(S&-S){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(f.suspendedLanes|S))!==0?0:y,y!==0&&y!==b.retryLane&&(b.retryLane=y,Ur(i,y),lr(f,i,y,-1))}return Mc(),f=fc(Error(n(421))),Sl(i,s,S,f)}return y.data==="$?"?(s.flags|=128,s.child=i.child,s=x7.bind(null,i),y._reactRetry=s,null):(i=b.treeContext,On=oi(y.nextSibling),Dn=s,wt=!0,ir=null,i!==null&&($n[Wn++]=zr,$n[Wn++]=Hr,$n[Wn++]=Vi,zr=i.id,Hr=i.overflow,Vi=s),s=bc(s,f.children),s.flags|=4096,s)}function Pm(i,s,o){i.lanes|=s;var f=i.alternate;f!==null&&(f.lanes|=s),X0(i.return,s,o)}function Ec(i,s,o,f,y){var b=i.memoizedState;b===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:y}:(b.isBackwards=s,b.rendering=null,b.renderingStartTime=0,b.last=f,b.tail=o,b.tailMode=y)}function Bm(i,s,o){var f=s.pendingProps,y=f.revealOrder,b=f.tail;if(hn(i,s,f.children,o),f=At.current,(f&2)!==0)f=f&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Pm(i,o,s);else if(i.tag===19)Pm(i,o,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}f&=1}if(vt(At,f),(s.mode&1)===0)s.memoizedState=null;else switch(y){case"forwards":for(o=s.child,y=null;o!==null;)i=o.alternate,i!==null&&vl(i)===null&&(y=o),o=o.sibling;o=y,o===null?(y=s.child,s.child=null):(y=o.sibling,o.sibling=null),Ec(s,!1,y,o,b);break;case"backwards":for(o=null,y=s.child,s.child=null;y!==null;){if(i=y.alternate,i!==null&&vl(i)===null){s.child=y;break}i=y.sibling,y.sibling=o,o=y,y=i}Ec(s,!0,o,null,b);break;case"together":Ec(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Cl(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function qr(i,s,o){if(i!==null&&(s.dependencies=i.dependencies),Ji|=s.lanes,(o&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,o=Ei(i,i.pendingProps),s.child=o,o.return=s;i.sibling!==null;)i=i.sibling,o=o.sibling=Ei(i,i.pendingProps),o.return=s;o.sibling=null}return s.child}function o7(i,s,o){switch(s.tag){case 3:Dm(s),Ba();break;case 5:K1(s);break;case 1:En(s.type)&&ll(s);break;case 4:Z0(s,s.stateNode.containerInfo);break;case 10:var f=s.type._context,y=s.memoizedProps.value;vt(ml,f._currentValue),f._currentValue=y;break;case 13:if(f=s.memoizedState,f!==null)return f.dehydrated!==null?(vt(At,At.current&1),s.flags|=128,null):(o&s.child.childLanes)!==0?Mm(i,s,o):(vt(At,At.current&1),i=qr(i,s,o),i!==null?i.sibling:null);vt(At,At.current&1);break;case 19:if(f=(o&s.childLanes)!==0,(i.flags&128)!==0){if(f)return Bm(i,s,o);s.flags|=128}if(y=s.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),vt(At,At.current),f)break;return null;case 22:case 23:return s.lanes=0,Im(i,s,o)}return qr(i,s,o)}var Fm,xc,zm,Hm;Fm=function(i,s){for(var o=s.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},xc=function(){},zm=function(i,s,o,f){var y=i.memoizedProps;if(y!==f){i=s.stateNode,Xi(xr.current);var b=null;switch(o){case"input":y=ot(i,y),f=ot(i,f),b=[];break;case"select":y=A({},y,{value:void 0}),f=A({},f,{value:void 0}),b=[];break;case"textarea":y=Hi(i,y),f=Hi(i,f),b=[];break;default:typeof y.onClick!="function"&&typeof f.onClick=="function"&&(i.onclick=al)}Jt(o,f);var S;o=null;for(ee in y)if(!f.hasOwnProperty(ee)&&y.hasOwnProperty(ee)&&y[ee]!=null)if(ee==="style"){var B=y[ee];for(S in B)B.hasOwnProperty(S)&&(o||(o={}),o[S]="")}else ee!=="dangerouslySetInnerHTML"&&ee!=="children"&&ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&ee!=="autoFocus"&&(a.hasOwnProperty(ee)?b||(b=[]):(b=b||[]).push(ee,null));for(ee in f){var $=f[ee];if(B=y!=null?y[ee]:void 0,f.hasOwnProperty(ee)&&$!==B&&($!=null||B!=null))if(ee==="style")if(B){for(S in B)!B.hasOwnProperty(S)||$&&$.hasOwnProperty(S)||(o||(o={}),o[S]="");for(S in $)$.hasOwnProperty(S)&&B[S]!==$[S]&&(o||(o={}),o[S]=$[S])}else o||(b||(b=[]),b.push(ee,o)),o=$;else ee==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,B=B?B.__html:void 0,$!=null&&B!==$&&(b=b||[]).push(ee,$)):ee==="children"?typeof $!="string"&&typeof $!="number"||(b=b||[]).push(ee,""+$):ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&(a.hasOwnProperty(ee)?($!=null&&ee==="onScroll"&&Et("scroll",i),b||B===$||(b=[])):(b=b||[]).push(ee,$))}o&&(b=b||[]).push("style",o);var ee=b;(s.updateQueue=ee)&&(s.flags|=4)}},Hm=function(i,s,o,f){o!==f&&(s.flags|=4)};function $s(i,s){if(!wt)switch(i.tailMode){case"hidden":s=i.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?i.tail=null:o.sibling=null;break;case"collapsed":o=i.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:f.sibling=null}}function an(i){var s=i.alternate!==null&&i.alternate.child===i.child,o=0,f=0;if(s)for(var y=i.child;y!==null;)o|=y.lanes|y.childLanes,f|=y.subtreeFlags&14680064,f|=y.flags&14680064,y.return=i,y=y.sibling;else for(y=i.child;y!==null;)o|=y.lanes|y.childLanes,f|=y.subtreeFlags,f|=y.flags,y.return=i,y=y.sibling;return i.subtreeFlags|=f,i.childLanes=o,s}function c7(i,s,o){var f=s.pendingProps;switch(q0(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return an(s),null;case 1:return En(s.type)&&ul(),an(s),null;case 3:return f=s.stateNode,Ua(),xt(bn),xt(nn),nc(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(i===null||i.child===null)&&(hl(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,ir!==null&&(Lc(ir),ir=null))),xc(i,s),an(s),null;case 5:ec(s);var y=Xi(zs.current);if(o=s.type,i!==null&&s.stateNode!=null)zm(i,s,o,f,y),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!f){if(s.stateNode===null)throw Error(n(166));return an(s),null}if(i=Xi(xr.current),hl(s)){f=s.stateNode,o=s.type;var b=s.memoizedProps;switch(f[Er]=s,f[Os]=b,i=(s.mode&1)!==0,o){case"dialog":Et("cancel",f),Et("close",f);break;case"iframe":case"object":case"embed":Et("load",f);break;case"video":case"audio":for(y=0;y<Rs.length;y++)Et(Rs[y],f);break;case"source":Et("error",f);break;case"img":case"image":case"link":Et("error",f),Et("load",f);break;case"details":Et("toggle",f);break;case"input":Pt(f,b),Et("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!b.multiple},Et("invalid",f);break;case"textarea":ti(f,b),Et("invalid",f)}Jt(o,b),y=null;for(var S in b)if(b.hasOwnProperty(S)){var B=b[S];S==="children"?typeof B=="string"?f.textContent!==B&&(b.suppressHydrationWarning!==!0&&il(f.textContent,B,i),y=["children",B]):typeof B=="number"&&f.textContent!==""+B&&(b.suppressHydrationWarning!==!0&&il(f.textContent,B,i),y=["children",""+B]):a.hasOwnProperty(S)&&B!=null&&S==="onScroll"&&Et("scroll",f)}switch(o){case"input":We(f),zi(f,b,!0);break;case"textarea":We(f),ji(f);break;case"select":case"option":break;default:typeof b.onClick=="function"&&(f.onclick=al)}f=y,s.updateQueue=f,f!==null&&(s.flags|=4)}else{S=y.nodeType===9?y:y.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=ae(o)),i==="http://www.w3.org/1999/xhtml"?o==="script"?(i=S.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof f.is=="string"?i=S.createElement(o,{is:f.is}):(i=S.createElement(o),o==="select"&&(S=i,f.multiple?S.multiple=!0:f.size&&(S.size=f.size))):i=S.createElementNS(i,o),i[Er]=s,i[Os]=f,Fm(i,s,!1,!1),s.stateNode=i;e:{switch(S=vr(o,f),o){case"dialog":Et("cancel",i),Et("close",i),y=f;break;case"iframe":case"object":case"embed":Et("load",i),y=f;break;case"video":case"audio":for(y=0;y<Rs.length;y++)Et(Rs[y],i);y=f;break;case"source":Et("error",i),y=f;break;case"img":case"image":case"link":Et("error",i),Et("load",i),y=f;break;case"details":Et("toggle",i),y=f;break;case"input":Pt(i,f),y=ot(i,f),Et("invalid",i);break;case"option":y=f;break;case"select":i._wrapperState={wasMultiple:!!f.multiple},y=A({},f,{value:void 0}),Et("invalid",i);break;case"textarea":ti(i,f),y=Hi(i,f),Et("invalid",i);break;default:y=f}Jt(o,y),B=y;for(b in B)if(B.hasOwnProperty(b)){var $=B[b];b==="style"?ni(i,$):b==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Je(i,$)):b==="children"?typeof $=="string"?(o!=="textarea"||$!=="")&&at(i,$):typeof $=="number"&&at(i,""+$):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(a.hasOwnProperty(b)?$!=null&&b==="onScroll"&&Et("scroll",i):$!=null&&j(i,b,$,S))}switch(o){case"input":We(i),zi(i,f,!1);break;case"textarea":We(i),ji(i);break;case"option":f.value!=null&&i.setAttribute("value",""+Ke(f.value));break;case"select":i.multiple=!!f.multiple,b=f.value,b!=null?yr(i,!!f.multiple,b,!1):f.defaultValue!=null&&yr(i,!!f.multiple,f.defaultValue,!0);break;default:typeof y.onClick=="function"&&(i.onclick=al)}switch(o){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return an(s),null;case 6:if(i&&s.stateNode!=null)Hm(i,s,i.memoizedProps,f);else{if(typeof f!="string"&&s.stateNode===null)throw Error(n(166));if(o=Xi(zs.current),Xi(xr.current),hl(s)){if(f=s.stateNode,o=s.memoizedProps,f[Er]=s,(b=f.nodeValue!==o)&&(i=Dn,i!==null))switch(i.tag){case 3:il(f.nodeValue,o,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&il(f.nodeValue,o,(i.mode&1)!==0)}b&&(s.flags|=4)}else f=(o.nodeType===9?o:o.ownerDocument).createTextNode(f),f[Er]=s,s.stateNode=f}return an(s),null;case 13:if(xt(At),f=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(wt&&On!==null&&(s.mode&1)!==0&&(s.flags&128)===0)q1(),Ba(),s.flags|=98560,b=!1;else if(b=hl(s),f!==null&&f.dehydrated!==null){if(i===null){if(!b)throw Error(n(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(n(317));b[Er]=s}else Ba(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;an(s),b=!1}else ir!==null&&(Lc(ir),ir=null),b=!0;if(!b)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=o,s):(f=f!==null,f!==(i!==null&&i.memoizedState!==null)&&f&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(At.current&1)!==0?qt===0&&(qt=3):Mc())),s.updateQueue!==null&&(s.flags|=4),an(s),null);case 4:return Ua(),xc(i,s),i===null&&Ls(s.stateNode.containerInfo),an(s),null;case 10:return Q0(s.type._context),an(s),null;case 17:return En(s.type)&&ul(),an(s),null;case 19:if(xt(At),b=s.memoizedState,b===null)return an(s),null;if(f=(s.flags&128)!==0,S=b.rendering,S===null)if(f)$s(b,!1);else{if(qt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(S=vl(i),S!==null){for(s.flags|=128,$s(b,!1),f=S.updateQueue,f!==null&&(s.updateQueue=f,s.flags|=4),s.subtreeFlags=0,f=o,o=s.child;o!==null;)b=o,i=f,b.flags&=14680066,S=b.alternate,S===null?(b.childLanes=0,b.lanes=i,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=S.childLanes,b.lanes=S.lanes,b.child=S.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=S.memoizedProps,b.memoizedState=S.memoizedState,b.updateQueue=S.updateQueue,b.type=S.type,i=S.dependencies,b.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o=o.sibling;return vt(At,At.current&1|2),s.child}i=i.sibling}b.tail!==null&&Dt()>Wa&&(s.flags|=128,f=!0,$s(b,!1),s.lanes=4194304)}else{if(!f)if(i=vl(S),i!==null){if(s.flags|=128,f=!0,o=i.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),$s(b,!0),b.tail===null&&b.tailMode==="hidden"&&!S.alternate&&!wt)return an(s),null}else 2*Dt()-b.renderingStartTime>Wa&&o!==1073741824&&(s.flags|=128,f=!0,$s(b,!1),s.lanes=4194304);b.isBackwards?(S.sibling=s.child,s.child=S):(o=b.last,o!==null?o.sibling=S:s.child=S,b.last=S)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=Dt(),s.sibling=null,o=At.current,vt(At,f?o&1|2:o&1),s):(an(s),null);case 22:case 23:return Oc(),f=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==f&&(s.flags|=8192),f&&(s.mode&1)!==0?(Mn&1073741824)!==0&&(an(s),s.subtreeFlags&6&&(s.flags|=8192)):an(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function d7(i,s){switch(q0(s),s.tag){case 1:return En(s.type)&&ul(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Ua(),xt(bn),xt(nn),nc(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return ec(s),null;case 13:if(xt(At),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Ba()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return xt(At),null;case 4:return Ua(),null;case 10:return Q0(s.type._context),null;case 22:case 23:return Oc(),null;case 24:return null;default:return null}}var Al=!1,sn=!1,h7=typeof WeakSet=="function"?WeakSet:Set,De=null;function qa(i,s){var o=i.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(f){Rt(i,s,f)}else o.current=null}function Tc(i,s,o){try{o()}catch(f){Rt(i,s,f)}}var Um=!1;function f7(i,s){if(O0=Vu,i=b1(),C0(i)){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else e:{o=(o=i.ownerDocument)&&o.defaultView||window;var f=o.getSelection&&o.getSelection();if(f&&f.rangeCount!==0){o=f.anchorNode;var y=f.anchorOffset,b=f.focusNode;f=f.focusOffset;try{o.nodeType,b.nodeType}catch{o=null;break e}var S=0,B=-1,$=-1,ee=0,fe=0,ye=i,de=null;t:for(;;){for(var Ae;ye!==o||y!==0&&ye.nodeType!==3||(B=S+y),ye!==b||f!==0&&ye.nodeType!==3||($=S+f),ye.nodeType===3&&(S+=ye.nodeValue.length),(Ae=ye.firstChild)!==null;)de=ye,ye=Ae;for(;;){if(ye===i)break t;if(de===o&&++ee===y&&(B=S),de===b&&++fe===f&&($=S),(Ae=ye.nextSibling)!==null)break;ye=de,de=ye.parentNode}ye=Ae}o=B===-1||$===-1?null:{start:B,end:$}}else o=null}o=o||{start:0,end:0}}else o=null;for(M0={focusedElem:i,selectionRange:o},Vu=!1,De=s;De!==null;)if(s=De,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,De=i;else for(;De!==null;){s=De;try{var Oe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Oe!==null){var Be=Oe.memoizedProps,Ot=Oe.memoizedState,Q=s.stateNode,G=Q.getSnapshotBeforeUpdate(s.elementType===s.type?Be:ar(s.type,Be),Ot);Q.__reactInternalSnapshotBeforeUpdate=G}break;case 3:var K=s.stateNode.containerInfo;K.nodeType===1?K.textContent="":K.nodeType===9&&K.documentElement&&K.removeChild(K.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Te){Rt(s,s.return,Te)}if(i=s.sibling,i!==null){i.return=s.return,De=i;break}De=s.return}return Oe=Um,Um=!1,Oe}function Ws(i,s,o){var f=s.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var y=f=f.next;do{if((y.tag&i)===i){var b=y.destroy;y.destroy=void 0,b!==void 0&&Tc(s,o,b)}y=y.next}while(y!==f)}}function Nl(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&i)===i){var f=o.create;o.destroy=f()}o=o.next}while(o!==s)}}function wc(i){var s=i.ref;if(s!==null){var o=i.stateNode;switch(i.tag){case 5:i=o;break;default:i=o}typeof s=="function"?s(i):s.current=i}}function jm(i){var s=i.alternate;s!==null&&(i.alternate=null,jm(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[Er],delete s[Os],delete s[z0],delete s[Q8],delete s[X8])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function qm(i){return i.tag===5||i.tag===3||i.tag===4}function $m(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||qm(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.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 kc(i,s,o){var f=i.tag;if(f===5||f===6)i=i.stateNode,s?o.nodeType===8?o.parentNode.insertBefore(i,s):o.insertBefore(i,s):(o.nodeType===8?(s=o.parentNode,s.insertBefore(i,o)):(s=o,s.appendChild(i)),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=al));else if(f!==4&&(i=i.child,i!==null))for(kc(i,s,o),i=i.sibling;i!==null;)kc(i,s,o),i=i.sibling}function Sc(i,s,o){var f=i.tag;if(f===5||f===6)i=i.stateNode,s?o.insertBefore(i,s):o.appendChild(i);else if(f!==4&&(i=i.child,i!==null))for(Sc(i,s,o),i=i.sibling;i!==null;)Sc(i,s,o),i=i.sibling}var Zt=null,sr=!1;function pi(i,s,o){for(o=o.child;o!==null;)Wm(i,s,o),o=o.sibling}function Wm(i,s,o){if(br&&typeof br.onCommitFiberUnmount=="function")try{br.onCommitFiberUnmount(Uu,o)}catch{}switch(o.tag){case 5:sn||qa(o,s);case 6:var f=Zt,y=sr;Zt=null,pi(i,s,o),Zt=f,sr=y,Zt!==null&&(sr?(i=Zt,o=o.stateNode,i.nodeType===8?i.parentNode.removeChild(o):i.removeChild(o)):Zt.removeChild(o.stateNode));break;case 18:Zt!==null&&(sr?(i=Zt,o=o.stateNode,i.nodeType===8?F0(i.parentNode,o):i.nodeType===1&&F0(i,o),ws(i)):F0(Zt,o.stateNode));break;case 4:f=Zt,y=sr,Zt=o.stateNode.containerInfo,sr=!0,pi(i,s,o),Zt=f,sr=y;break;case 0:case 11:case 14:case 15:if(!sn&&(f=o.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){y=f=f.next;do{var b=y,S=b.destroy;b=b.tag,S!==void 0&&((b&2)!==0||(b&4)!==0)&&Tc(o,s,S),y=y.next}while(y!==f)}pi(i,s,o);break;case 1:if(!sn&&(qa(o,s),f=o.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=o.memoizedProps,f.state=o.memoizedState,f.componentWillUnmount()}catch(B){Rt(o,s,B)}pi(i,s,o);break;case 21:pi(i,s,o);break;case 22:o.mode&1?(sn=(f=sn)||o.memoizedState!==null,pi(i,s,o),sn=f):pi(i,s,o);break;default:pi(i,s,o)}}function Ym(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var o=i.stateNode;o===null&&(o=i.stateNode=new h7),s.forEach(function(f){var y=T7.bind(null,i,f);o.has(f)||(o.add(f),f.then(y,y))})}}function ur(i,s){var o=s.deletions;if(o!==null)for(var f=0;f<o.length;f++){var y=o[f];try{var b=i,S=s,B=S;e:for(;B!==null;){switch(B.tag){case 5:Zt=B.stateNode,sr=!1;break e;case 3:Zt=B.stateNode.containerInfo,sr=!0;break e;case 4:Zt=B.stateNode.containerInfo,sr=!0;break e}B=B.return}if(Zt===null)throw Error(n(160));Wm(b,S,y),Zt=null,sr=!1;var $=y.alternate;$!==null&&($.return=null),y.return=null}catch(ee){Rt(y,s,ee)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Vm(s,i),s=s.sibling}function Vm(i,s){var o=i.alternate,f=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(ur(s,i),wr(i),f&4){try{Ws(3,i,i.return),Nl(3,i)}catch(Be){Rt(i,i.return,Be)}try{Ws(5,i,i.return)}catch(Be){Rt(i,i.return,Be)}}break;case 1:ur(s,i),wr(i),f&512&&o!==null&&qa(o,o.return);break;case 5:if(ur(s,i),wr(i),f&512&&o!==null&&qa(o,o.return),i.flags&32){var y=i.stateNode;try{at(y,"")}catch(Be){Rt(i,i.return,Be)}}if(f&4&&(y=i.stateNode,y!=null)){var b=i.memoizedProps,S=o!==null?o.memoizedProps:b,B=i.type,$=i.updateQueue;if(i.updateQueue=null,$!==null)try{B==="input"&&b.type==="radio"&&b.name!=null&&tr(y,b),vr(B,S);var ee=vr(B,b);for(S=0;S<$.length;S+=2){var fe=$[S],ye=$[S+1];fe==="style"?ni(y,ye):fe==="dangerouslySetInnerHTML"?Je(y,ye):fe==="children"?at(y,ye):j(y,fe,ye,ee)}switch(B){case"input":_n(y,b);break;case"textarea":Ui(y,b);break;case"select":var de=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!b.multiple;var Ae=b.value;Ae!=null?yr(y,!!b.multiple,Ae,!1):de!==!!b.multiple&&(b.defaultValue!=null?yr(y,!!b.multiple,b.defaultValue,!0):yr(y,!!b.multiple,b.multiple?[]:"",!1))}y[Os]=b}catch(Be){Rt(i,i.return,Be)}}break;case 6:if(ur(s,i),wr(i),f&4){if(i.stateNode===null)throw Error(n(162));y=i.stateNode,b=i.memoizedProps;try{y.nodeValue=b}catch(Be){Rt(i,i.return,Be)}}break;case 3:if(ur(s,i),wr(i),f&4&&o!==null&&o.memoizedState.isDehydrated)try{ws(s.containerInfo)}catch(Be){Rt(i,i.return,Be)}break;case 4:ur(s,i),wr(i);break;case 13:ur(s,i),wr(i),y=i.child,y.flags&8192&&(b=y.memoizedState!==null,y.stateNode.isHidden=b,!b||y.alternate!==null&&y.alternate.memoizedState!==null||(Nc=Dt())),f&4&&Ym(i);break;case 22:if(fe=o!==null&&o.memoizedState!==null,i.mode&1?(sn=(ee=sn)||fe,ur(s,i),sn=ee):ur(s,i),wr(i),f&8192){if(ee=i.memoizedState!==null,(i.stateNode.isHidden=ee)&&!fe&&(i.mode&1)!==0)for(De=i,fe=i.child;fe!==null;){for(ye=De=fe;De!==null;){switch(de=De,Ae=de.child,de.tag){case 0:case 11:case 14:case 15:Ws(4,de,de.return);break;case 1:qa(de,de.return);var Oe=de.stateNode;if(typeof Oe.componentWillUnmount=="function"){f=de,o=de.return;try{s=f,Oe.props=s.memoizedProps,Oe.state=s.memoizedState,Oe.componentWillUnmount()}catch(Be){Rt(f,o,Be)}}break;case 5:qa(de,de.return);break;case 22:if(de.memoizedState!==null){Xm(ye);continue}}Ae!==null?(Ae.return=de,De=Ae):Xm(ye)}fe=fe.sibling}e:for(fe=null,ye=i;;){if(ye.tag===5){if(fe===null){fe=ye;try{y=ye.stateNode,ee?(b=y.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none"):(B=ye.stateNode,$=ye.memoizedProps.style,S=$!=null&&$.hasOwnProperty("display")?$.display:null,B.style.display=qn("display",S))}catch(Be){Rt(i,i.return,Be)}}}else if(ye.tag===6){if(fe===null)try{ye.stateNode.nodeValue=ee?"":ye.memoizedProps}catch(Be){Rt(i,i.return,Be)}}else if((ye.tag!==22&&ye.tag!==23||ye.memoizedState===null||ye===i)&&ye.child!==null){ye.child.return=ye,ye=ye.child;continue}if(ye===i)break e;for(;ye.sibling===null;){if(ye.return===null||ye.return===i)break e;fe===ye&&(fe=null),ye=ye.return}fe===ye&&(fe=null),ye.sibling.return=ye.return,ye=ye.sibling}}break;case 19:ur(s,i),wr(i),f&4&&Ym(i);break;case 21:break;default:ur(s,i),wr(i)}}function wr(i){var s=i.flags;if(s&2){try{e:{for(var o=i.return;o!==null;){if(qm(o)){var f=o;break e}o=o.return}throw Error(n(160))}switch(f.tag){case 5:var y=f.stateNode;f.flags&32&&(at(y,""),f.flags&=-33);var b=$m(i);Sc(i,b,y);break;case 3:case 4:var S=f.stateNode.containerInfo,B=$m(i);kc(i,B,S);break;default:throw Error(n(161))}}catch($){Rt(i,i.return,$)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function m7(i,s,o){De=i,Gm(i)}function Gm(i,s,o){for(var f=(i.mode&1)!==0;De!==null;){var y=De,b=y.child;if(y.tag===22&&f){var S=y.memoizedState!==null||Al;if(!S){var B=y.alternate,$=B!==null&&B.memoizedState!==null||sn;B=Al;var ee=sn;if(Al=S,(sn=$)&&!ee)for(De=y;De!==null;)S=De,$=S.child,S.tag===22&&S.memoizedState!==null?Km(y):$!==null?($.return=S,De=$):Km(y);for(;b!==null;)De=b,Gm(b),b=b.sibling;De=y,Al=B,sn=ee}Qm(i)}else(y.subtreeFlags&8772)!==0&&b!==null?(b.return=y,De=b):Qm(i)}}function Qm(i){for(;De!==null;){var s=De;if((s.flags&8772)!==0){var o=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:sn||Nl(5,s);break;case 1:var f=s.stateNode;if(s.flags&4&&!sn)if(o===null)f.componentDidMount();else{var y=s.elementType===s.type?o.memoizedProps:ar(s.type,o.memoizedProps);f.componentDidUpdate(y,o.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var b=s.updateQueue;b!==null&&X1(s,b,f);break;case 3:var S=s.updateQueue;if(S!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}X1(s,S,o)}break;case 5:var B=s.stateNode;if(o===null&&s.flags&4){o=B;var $=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&o.focus();break;case"img":$.src&&(o.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var ee=s.alternate;if(ee!==null){var fe=ee.memoizedState;if(fe!==null){var ye=fe.dehydrated;ye!==null&&ws(ye)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}sn||s.flags&512&&wc(s)}catch(de){Rt(s,s.return,de)}}if(s===i){De=null;break}if(o=s.sibling,o!==null){o.return=s.return,De=o;break}De=s.return}}function Xm(i){for(;De!==null;){var s=De;if(s===i){De=null;break}var o=s.sibling;if(o!==null){o.return=s.return,De=o;break}De=s.return}}function Km(i){for(;De!==null;){var s=De;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{Nl(4,s)}catch($){Rt(s,o,$)}break;case 1:var f=s.stateNode;if(typeof f.componentDidMount=="function"){var y=s.return;try{f.componentDidMount()}catch($){Rt(s,y,$)}}var b=s.return;try{wc(s)}catch($){Rt(s,b,$)}break;case 5:var S=s.return;try{wc(s)}catch($){Rt(s,S,$)}}}catch($){Rt(s,s.return,$)}if(s===i){De=null;break}var B=s.sibling;if(B!==null){B.return=s.return,De=B;break}De=s.return}}var p7=Math.ceil,_l=J.ReactCurrentDispatcher,Cc=J.ReactCurrentOwner,Gn=J.ReactCurrentBatchConfig,st=0,Vt=null,Bt=null,en=0,Mn=0,$a=ci(0),qt=0,Ys=null,Ji=0,Il=0,Ac=0,Vs=null,Tn=null,Nc=0,Wa=1/0,$r=null,Rl=!1,_c=null,gi=null,Ll=!1,yi=null,Dl=0,Gs=0,Ic=null,Ol=-1,Ml=0;function fn(){return(st&6)!==0?Dt():Ol!==-1?Ol:Ol=Dt()}function vi(i){return(i.mode&1)===0?1:(st&2)!==0&&en!==0?en&-en:J8.transition!==null?(Ml===0&&(Ml=$f()),Ml):(i=ft,i!==0||(i=window.event,i=i===void 0?16:Zf(i.type)),i)}function lr(i,s,o,f){if(50<Gs)throw Gs=0,Ic=null,Error(n(185));vs(i,o,f),((st&2)===0||i!==Vt)&&(i===Vt&&((st&2)===0&&(Il|=o),qt===4&&bi(i,en)),wn(i,f),o===1&&st===0&&(s.mode&1)===0&&(Wa=Dt()+500,ol&&hi()))}function wn(i,s){var o=i.callbackNode;J5(i,s);var f=$u(i,i===Vt?en:0);if(f===0)o!==null&&Uf(o),i.callbackNode=null,i.callbackPriority=0;else if(s=f&-f,i.callbackPriority!==s){if(o!=null&&Uf(o),s===1)i.tag===0?K8(Zm.bind(null,i)):F1(Zm.bind(null,i)),V8(function(){(st&6)===0&&hi()}),o=null;else{switch(Wf(f)){case 1:o=o0;break;case 4:o=jf;break;case 16:o=Hu;break;case 536870912:o=qf;break;default:o=Hu}o=up(o,Jm.bind(null,i))}i.callbackPriority=s,i.callbackNode=o}}function Jm(i,s){if(Ol=-1,Ml=0,(st&6)!==0)throw Error(n(327));var o=i.callbackNode;if(Ya()&&i.callbackNode!==o)return null;var f=$u(i,i===Vt?en:0);if(f===0)return null;if((f&30)!==0||(f&i.expiredLanes)!==0||s)s=Pl(i,f);else{s=f;var y=st;st|=2;var b=tp();(Vt!==i||en!==s)&&($r=null,Wa=Dt()+500,ea(i,s));do try{v7();break}catch(B){ep(i,B)}while(!0);G0(),_l.current=b,st=y,Bt!==null?s=0:(Vt=null,en=0,s=qt)}if(s!==0){if(s===2&&(y=c0(i),y!==0&&(f=y,s=Rc(i,y))),s===1)throw o=Ys,ea(i,0),bi(i,f),wn(i,Dt()),o;if(s===6)bi(i,f);else{if(y=i.current.alternate,(f&30)===0&&!g7(y)&&(s=Pl(i,f),s===2&&(b=c0(i),b!==0&&(f=b,s=Rc(i,b))),s===1))throw o=Ys,ea(i,0),bi(i,f),wn(i,Dt()),o;switch(i.finishedWork=y,i.finishedLanes=f,s){case 0:case 1:throw Error(n(345));case 2:ta(i,Tn,$r);break;case 3:if(bi(i,f),(f&130023424)===f&&(s=Nc+500-Dt(),10<s)){if($u(i,0)!==0)break;if(y=i.suspendedLanes,(y&f)!==f){fn(),i.pingedLanes|=i.suspendedLanes&y;break}i.timeoutHandle=B0(ta.bind(null,i,Tn,$r),s);break}ta(i,Tn,$r);break;case 4:if(bi(i,f),(f&4194240)===f)break;for(s=i.eventTimes,y=-1;0<f;){var S=31-nr(f);b=1<<S,S=s[S],S>y&&(y=S),f&=~b}if(f=y,f=Dt()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*p7(f/1960))-f,10<f){i.timeoutHandle=B0(ta.bind(null,i,Tn,$r),f);break}ta(i,Tn,$r);break;case 5:ta(i,Tn,$r);break;default:throw Error(n(329))}}}return wn(i,Dt()),i.callbackNode===o?Jm.bind(null,i):null}function Rc(i,s){var o=Vs;return i.current.memoizedState.isDehydrated&&(ea(i,s).flags|=256),i=Pl(i,s),i!==2&&(s=Tn,Tn=o,s!==null&&Lc(s)),i}function Lc(i){Tn===null?Tn=i:Tn.push.apply(Tn,i)}function g7(i){for(var s=i;;){if(s.flags&16384){var o=s.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var f=0;f<o.length;f++){var y=o[f],b=y.getSnapshot;y=y.value;try{if(!rr(b(),y))return!1}catch{return!1}}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function bi(i,s){for(s&=~Ac,s&=~Il,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var o=31-nr(s),f=1<<o;i[o]=-1,s&=~f}}function Zm(i){if((st&6)!==0)throw Error(n(327));Ya();var s=$u(i,0);if((s&1)===0)return wn(i,Dt()),null;var o=Pl(i,s);if(i.tag!==0&&o===2){var f=c0(i);f!==0&&(s=f,o=Rc(i,f))}if(o===1)throw o=Ys,ea(i,0),bi(i,s),wn(i,Dt()),o;if(o===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,ta(i,Tn,$r),wn(i,Dt()),null}function Dc(i,s){var o=st;st|=1;try{return i(s)}finally{st=o,st===0&&(Wa=Dt()+500,ol&&hi())}}function Zi(i){yi!==null&&yi.tag===0&&(st&6)===0&&Ya();var s=st;st|=1;var o=Gn.transition,f=ft;try{if(Gn.transition=null,ft=1,i)return i()}finally{ft=f,Gn.transition=o,st=s,(st&6)===0&&hi()}}function Oc(){Mn=$a.current,xt($a)}function ea(i,s){i.finishedWork=null,i.finishedLanes=0;var o=i.timeoutHandle;if(o!==-1&&(i.timeoutHandle=-1,Y8(o)),Bt!==null)for(o=Bt.return;o!==null;){var f=o;switch(q0(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&ul();break;case 3:Ua(),xt(bn),xt(nn),nc();break;case 5:ec(f);break;case 4:Ua();break;case 13:xt(At);break;case 19:xt(At);break;case 10:Q0(f.type._context);break;case 22:case 23:Oc()}o=o.return}if(Vt=i,Bt=i=Ei(i.current,null),en=Mn=s,qt=0,Ys=null,Ac=Il=Ji=0,Tn=Vs=null,Qi!==null){for(s=0;s<Qi.length;s++)if(o=Qi[s],f=o.interleaved,f!==null){o.interleaved=null;var y=f.next,b=o.pending;if(b!==null){var S=b.next;b.next=y,f.next=S}o.pending=f}Qi=null}return i}function ep(i,s){do{var o=Bt;try{if(G0(),bl.current=wl,El){for(var f=Nt.memoizedState;f!==null;){var y=f.queue;y!==null&&(y.pending=null),f=f.next}El=!1}if(Ki=0,Yt=jt=Nt=null,Hs=!1,Us=0,Cc.current=null,o===null||o.return===null){qt=1,Ys=s,Bt=null;break}e:{var b=i,S=o.return,B=o,$=s;if(s=en,B.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var ee=$,fe=B,ye=fe.tag;if((fe.mode&1)===0&&(ye===0||ye===11||ye===15)){var de=fe.alternate;de?(fe.updateQueue=de.updateQueue,fe.memoizedState=de.memoizedState,fe.lanes=de.lanes):(fe.updateQueue=null,fe.memoizedState=null)}var Ae=Sm(S);if(Ae!==null){Ae.flags&=-257,Cm(Ae,S,B,b,s),Ae.mode&1&&km(b,ee,s),s=Ae,$=ee;var Oe=s.updateQueue;if(Oe===null){var Be=new Set;Be.add($),s.updateQueue=Be}else Oe.add($);break e}else{if((s&1)===0){km(b,ee,s),Mc();break e}$=Error(n(426))}}else if(wt&&B.mode&1){var Ot=Sm(S);if(Ot!==null){(Ot.flags&65536)===0&&(Ot.flags|=256),Cm(Ot,S,B,b,s),Y0(ja($,B));break e}}b=$=ja($,B),qt!==4&&(qt=2),Vs===null?Vs=[b]:Vs.push(b),b=S;do{switch(b.tag){case 3:b.flags|=65536,s&=-s,b.lanes|=s;var Q=Tm(b,$,s);Q1(b,Q);break e;case 1:B=$;var G=b.type,K=b.stateNode;if((b.flags&128)===0&&(typeof G.getDerivedStateFromError=="function"||K!==null&&typeof K.componentDidCatch=="function"&&(gi===null||!gi.has(K)))){b.flags|=65536,s&=-s,b.lanes|=s;var Te=wm(b,B,s);Q1(b,Te);break e}}b=b.return}while(b!==null)}rp(o)}catch(Fe){s=Fe,Bt===o&&o!==null&&(Bt=o=o.return);continue}break}while(!0)}function tp(){var i=_l.current;return _l.current=wl,i===null?wl:i}function Mc(){(qt===0||qt===3||qt===2)&&(qt=4),Vt===null||(Ji&268435455)===0&&(Il&268435455)===0||bi(Vt,en)}function Pl(i,s){var o=st;st|=2;var f=tp();(Vt!==i||en!==s)&&($r=null,ea(i,s));do try{y7();break}catch(y){ep(i,y)}while(!0);if(G0(),st=o,_l.current=f,Bt!==null)throw Error(n(261));return Vt=null,en=0,qt}function y7(){for(;Bt!==null;)np(Bt)}function v7(){for(;Bt!==null&&!q5();)np(Bt)}function np(i){var s=sp(i.alternate,i,Mn);i.memoizedProps=i.pendingProps,s===null?rp(i):Bt=s,Cc.current=null}function rp(i){var s=i;do{var o=s.alternate;if(i=s.return,(s.flags&32768)===0){if(o=c7(o,s,Mn),o!==null){Bt=o;return}}else{if(o=d7(o,s),o!==null){o.flags&=32767,Bt=o;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{qt=6,Bt=null;return}}if(s=s.sibling,s!==null){Bt=s;return}Bt=s=i}while(s!==null);qt===0&&(qt=5)}function ta(i,s,o){var f=ft,y=Gn.transition;try{Gn.transition=null,ft=1,b7(i,s,o,f)}finally{Gn.transition=y,ft=f}return null}function b7(i,s,o,f){do Ya();while(yi!==null);if((st&6)!==0)throw Error(n(327));o=i.finishedWork;var y=i.finishedLanes;if(o===null)return null;if(i.finishedWork=null,i.finishedLanes=0,o===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var b=o.lanes|o.childLanes;if(Z5(i,b),i===Vt&&(Bt=Vt=null,en=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ll||(Ll=!0,up(Hu,function(){return Ya(),null})),b=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||b){b=Gn.transition,Gn.transition=null;var S=ft;ft=1;var B=st;st|=4,Cc.current=null,f7(i,o),Vm(o,i),z8(M0),Vu=!!O0,M0=O0=null,i.current=o,m7(o),$5(),st=B,ft=S,Gn.transition=b}else i.current=o;if(Ll&&(Ll=!1,yi=i,Dl=y),b=i.pendingLanes,b===0&&(gi=null),V5(o.stateNode),wn(i,Dt()),s!==null)for(f=i.onRecoverableError,o=0;o<s.length;o++)y=s[o],f(y.value,{componentStack:y.stack,digest:y.digest});if(Rl)throw Rl=!1,i=_c,_c=null,i;return(Dl&1)!==0&&i.tag!==0&&Ya(),b=i.pendingLanes,(b&1)!==0?i===Ic?Gs++:(Gs=0,Ic=i):Gs=0,hi(),null}function Ya(){if(yi!==null){var i=Wf(Dl),s=Gn.transition,o=ft;try{if(Gn.transition=null,ft=16>i?16:i,yi===null)var f=!1;else{if(i=yi,yi=null,Dl=0,(st&6)!==0)throw Error(n(331));var y=st;for(st|=4,De=i.current;De!==null;){var b=De,S=b.child;if((De.flags&16)!==0){var B=b.deletions;if(B!==null){for(var $=0;$<B.length;$++){var ee=B[$];for(De=ee;De!==null;){var fe=De;switch(fe.tag){case 0:case 11:case 15:Ws(8,fe,b)}var ye=fe.child;if(ye!==null)ye.return=fe,De=ye;else for(;De!==null;){fe=De;var de=fe.sibling,Ae=fe.return;if(jm(fe),fe===ee){De=null;break}if(de!==null){de.return=Ae,De=de;break}De=Ae}}}var Oe=b.alternate;if(Oe!==null){var Be=Oe.child;if(Be!==null){Oe.child=null;do{var Ot=Be.sibling;Be.sibling=null,Be=Ot}while(Be!==null)}}De=b}}if((b.subtreeFlags&2064)!==0&&S!==null)S.return=b,De=S;else e:for(;De!==null;){if(b=De,(b.flags&2048)!==0)switch(b.tag){case 0:case 11:case 15:Ws(9,b,b.return)}var Q=b.sibling;if(Q!==null){Q.return=b.return,De=Q;break e}De=b.return}}var G=i.current;for(De=G;De!==null;){S=De;var K=S.child;if((S.subtreeFlags&2064)!==0&&K!==null)K.return=S,De=K;else e:for(S=G;De!==null;){if(B=De,(B.flags&2048)!==0)try{switch(B.tag){case 0:case 11:case 15:Nl(9,B)}}catch(Fe){Rt(B,B.return,Fe)}if(B===S){De=null;break e}var Te=B.sibling;if(Te!==null){Te.return=B.return,De=Te;break e}De=B.return}}if(st=y,hi(),br&&typeof br.onPostCommitFiberRoot=="function")try{br.onPostCommitFiberRoot(Uu,i)}catch{}f=!0}return f}finally{ft=o,Gn.transition=s}}return!1}function ip(i,s,o){s=ja(o,s),s=Tm(i,s,1),i=mi(i,s,1),s=fn(),i!==null&&(vs(i,1,s),wn(i,s))}function Rt(i,s,o){if(i.tag===3)ip(i,i,o);else for(;s!==null;){if(s.tag===3){ip(s,i,o);break}else if(s.tag===1){var f=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(gi===null||!gi.has(f))){i=ja(o,i),i=wm(s,i,1),s=mi(s,i,1),i=fn(),s!==null&&(vs(s,1,i),wn(s,i));break}}s=s.return}}function E7(i,s,o){var f=i.pingCache;f!==null&&f.delete(s),s=fn(),i.pingedLanes|=i.suspendedLanes&o,Vt===i&&(en&o)===o&&(qt===4||qt===3&&(en&130023424)===en&&500>Dt()-Nc?ea(i,0):Ac|=o),wn(i,s)}function ap(i,s){s===0&&((i.mode&1)===0?s=1:(s=qu,qu<<=1,(qu&130023424)===0&&(qu=4194304)));var o=fn();i=Ur(i,s),i!==null&&(vs(i,s,o),wn(i,o))}function x7(i){var s=i.memoizedState,o=0;s!==null&&(o=s.retryLane),ap(i,o)}function T7(i,s){var o=0;switch(i.tag){case 13:var f=i.stateNode,y=i.memoizedState;y!==null&&(o=y.retryLane);break;case 19:f=i.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(s),ap(i,o)}var sp;sp=function(i,s,o){if(i!==null)if(i.memoizedProps!==s.pendingProps||bn.current)xn=!0;else{if((i.lanes&o)===0&&(s.flags&128)===0)return xn=!1,o7(i,s,o);xn=(i.flags&131072)!==0}else xn=!1,wt&&(s.flags&1048576)!==0&&z1(s,dl,s.index);switch(s.lanes=0,s.tag){case 2:var f=s.type;Cl(i,s),i=s.pendingProps;var y=Oa(s,nn.current);Ha(s,o),y=ac(null,s,f,i,y,o);var b=sc();return s.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,En(f)?(b=!0,ll(s)):b=!1,s.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,J0(s),y.updater=kl,s.stateNode=y,y._reactInternals=s,hc(s,f,i,o),s=gc(null,s,f,!0,b,o)):(s.tag=0,wt&&b&&j0(s),hn(null,s,y,o),s=s.child),s;case 16:f=s.elementType;e:{switch(Cl(i,s),i=s.pendingProps,y=f._init,f=y(f._payload),s.type=f,y=s.tag=k7(f),i=ar(f,i),y){case 0:s=pc(null,s,f,i,o);break e;case 1:s=Lm(null,s,f,i,o);break e;case 11:s=Am(null,s,f,i,o);break e;case 14:s=Nm(null,s,f,ar(f.type,i),o);break e}throw Error(n(306,f,""))}return s;case 0:return f=s.type,y=s.pendingProps,y=s.elementType===f?y:ar(f,y),pc(i,s,f,y,o);case 1:return f=s.type,y=s.pendingProps,y=s.elementType===f?y:ar(f,y),Lm(i,s,f,y,o);case 3:e:{if(Dm(s),i===null)throw Error(n(387));f=s.pendingProps,b=s.memoizedState,y=b.element,G1(i,s),yl(s,f,null,o);var S=s.memoizedState;if(f=S.element,b.isDehydrated)if(b={element:f,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},s.updateQueue.baseState=b,s.memoizedState=b,s.flags&256){y=ja(Error(n(423)),s),s=Om(i,s,f,o,y);break e}else if(f!==y){y=ja(Error(n(424)),s),s=Om(i,s,f,o,y);break e}else for(On=oi(s.stateNode.containerInfo.firstChild),Dn=s,wt=!0,ir=null,o=Y1(s,null,f,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ba(),f===y){s=qr(i,s,o);break e}hn(i,s,f,o)}s=s.child}return s;case 5:return K1(s),i===null&&W0(s),f=s.type,y=s.pendingProps,b=i!==null?i.memoizedProps:null,S=y.children,P0(f,y)?S=null:b!==null&&P0(f,b)&&(s.flags|=32),Rm(i,s),hn(i,s,S,o),s.child;case 6:return i===null&&W0(s),null;case 13:return Mm(i,s,o);case 4:return Z0(s,s.stateNode.containerInfo),f=s.pendingProps,i===null?s.child=Fa(s,null,f,o):hn(i,s,f,o),s.child;case 11:return f=s.type,y=s.pendingProps,y=s.elementType===f?y:ar(f,y),Am(i,s,f,y,o);case 7:return hn(i,s,s.pendingProps,o),s.child;case 8:return hn(i,s,s.pendingProps.children,o),s.child;case 12:return hn(i,s,s.pendingProps.children,o),s.child;case 10:e:{if(f=s.type._context,y=s.pendingProps,b=s.memoizedProps,S=y.value,vt(ml,f._currentValue),f._currentValue=S,b!==null)if(rr(b.value,S)){if(b.children===y.children&&!bn.current){s=qr(i,s,o);break e}}else for(b=s.child,b!==null&&(b.return=s);b!==null;){var B=b.dependencies;if(B!==null){S=b.child;for(var $=B.firstContext;$!==null;){if($.context===f){if(b.tag===1){$=jr(-1,o&-o),$.tag=2;var ee=b.updateQueue;if(ee!==null){ee=ee.shared;var fe=ee.pending;fe===null?$.next=$:($.next=fe.next,fe.next=$),ee.pending=$}}b.lanes|=o,$=b.alternate,$!==null&&($.lanes|=o),X0(b.return,o,s),B.lanes|=o;break}$=$.next}}else if(b.tag===10)S=b.type===s.type?null:b.child;else if(b.tag===18){if(S=b.return,S===null)throw Error(n(341));S.lanes|=o,B=S.alternate,B!==null&&(B.lanes|=o),X0(S,o,s),S=b.sibling}else S=b.child;if(S!==null)S.return=b;else for(S=b;S!==null;){if(S===s){S=null;break}if(b=S.sibling,b!==null){b.return=S.return,S=b;break}S=S.return}b=S}hn(i,s,y.children,o),s=s.child}return s;case 9:return y=s.type,f=s.pendingProps.children,Ha(s,o),y=Yn(y),f=f(y),s.flags|=1,hn(i,s,f,o),s.child;case 14:return f=s.type,y=ar(f,s.pendingProps),y=ar(f.type,y),Nm(i,s,f,y,o);case 15:return _m(i,s,s.type,s.pendingProps,o);case 17:return f=s.type,y=s.pendingProps,y=s.elementType===f?y:ar(f,y),Cl(i,s),s.tag=1,En(f)?(i=!0,ll(s)):i=!1,Ha(s,o),Em(s,f,y),hc(s,f,y,o),gc(null,s,f,!0,i,o);case 19:return Bm(i,s,o);case 22:return Im(i,s,o)}throw Error(n(156,s.tag))};function up(i,s){return Hf(i,s)}function w7(i,s,o,f){this.tag=i,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(i,s,o,f){return new w7(i,s,o,f)}function Pc(i){return i=i.prototype,!(!i||!i.isReactComponent)}function k7(i){if(typeof i=="function")return Pc(i)?1:0;if(i!=null){if(i=i.$$typeof,i===le)return 11;if(i===ue)return 14}return 2}function Ei(i,s){var o=i.alternate;return o===null?(o=Qn(i.tag,s,i.key,i.mode),o.elementType=i.elementType,o.type=i.type,o.stateNode=i.stateNode,o.alternate=i,i.alternate=o):(o.pendingProps=s,o.type=i.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=i.flags&14680064,o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,s=i.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=i.sibling,o.index=i.index,o.ref=i.ref,o}function Bl(i,s,o,f,y,b){var S=2;if(f=i,typeof i=="function")Pc(i)&&(S=1);else if(typeof i=="string")S=5;else e:switch(i){case Z:return na(o.children,y,b,s);case re:S=8,y|=8;break;case ie:return i=Qn(12,o,s,y|2),i.elementType=ie,i.lanes=b,i;case Me:return i=Qn(13,o,s,y),i.elementType=Me,i.lanes=b,i;case ge:return i=Qn(19,o,s,y),i.elementType=ge,i.lanes=b,i;case Le:return Fl(o,y,b,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Y:S=10;break e;case se:S=9;break e;case le:S=11;break e;case ue:S=14;break e;case Re:S=16,f=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=Qn(S,o,s,y),s.elementType=i,s.type=f,s.lanes=b,s}function na(i,s,o,f){return i=Qn(7,i,f,s),i.lanes=o,i}function Fl(i,s,o,f){return i=Qn(22,i,f,s),i.elementType=Le,i.lanes=o,i.stateNode={isHidden:!1},i}function Bc(i,s,o){return i=Qn(6,i,null,s),i.lanes=o,i}function Fc(i,s,o){return s=Qn(4,i.children!==null?i.children:[],i.key,s),s.lanes=o,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function S7(i,s,o,f,y){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=d0(0),this.expirationTimes=d0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=d0(0),this.identifierPrefix=f,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function zc(i,s,o,f,y,b,S,B,$){return i=new S7(i,s,o,B,$),s===1?(s=1,b===!0&&(s|=8)):s=0,b=Qn(3,null,null,s),i.current=b,b.stateNode=i,b.memoizedState={element:f,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},J0(b),i}function C7(i,s,o){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:W,key:f==null?null:""+f,children:i,containerInfo:s,implementation:o}}function lp(i){if(!i)return di;i=i._reactInternals;e:{if($i(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(En(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var o=i.type;if(En(o))return P1(i,o,s)}return s}function op(i,s,o,f,y,b,S,B,$){return i=zc(o,f,!0,i,y,b,S,B,$),i.context=lp(null),o=i.current,f=fn(),y=vi(o),b=jr(f,y),b.callback=s??null,mi(o,b,y),i.current.lanes=y,vs(i,y,f),wn(i,f),i}function zl(i,s,o,f){var y=s.current,b=fn(),S=vi(y);return o=lp(o),s.context===null?s.context=o:s.pendingContext=o,s=jr(b,S),s.payload={element:i},f=f===void 0?null:f,f!==null&&(s.callback=f),i=mi(y,s,S),i!==null&&(lr(i,y,S,b),gl(i,y,S)),S}function Hl(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function cp(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var o=i.retryLane;i.retryLane=o!==0&&o<s?o:s}}function Hc(i,s){cp(i,s),(i=i.alternate)&&cp(i,s)}function A7(){return null}var dp=typeof reportError=="function"?reportError:function(i){console.error(i)};function Uc(i){this._internalRoot=i}Ul.prototype.render=Uc.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));zl(i,s,null,null)},Ul.prototype.unmount=Uc.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Zi(function(){zl(null,i,null,null)}),s[Br]=null}};function Ul(i){this._internalRoot=i}Ul.prototype.unstable_scheduleHydration=function(i){if(i){var s=Gf();i={blockedOn:null,target:i,priority:s};for(var o=0;o<si.length&&s!==0&&s<si[o].priority;o++);si.splice(o,0,i),o===0&&Kf(i)}};function jc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function jl(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function hp(){}function N7(i,s,o,f,y){if(y){if(typeof f=="function"){var b=f;f=function(){var ee=Hl(S);b.call(ee)}}var S=op(s,f,i,0,null,!1,!1,"",hp);return i._reactRootContainer=S,i[Br]=S.current,Ls(i.nodeType===8?i.parentNode:i),Zi(),S}for(;y=i.lastChild;)i.removeChild(y);if(typeof f=="function"){var B=f;f=function(){var ee=Hl($);B.call(ee)}}var $=zc(i,0,!1,null,null,!1,!1,"",hp);return i._reactRootContainer=$,i[Br]=$.current,Ls(i.nodeType===8?i.parentNode:i),Zi(function(){zl(s,$,o,f)}),$}function ql(i,s,o,f,y){var b=o._reactRootContainer;if(b){var S=b;if(typeof y=="function"){var B=y;y=function(){var $=Hl(S);B.call($)}}zl(s,S,i,y)}else S=N7(o,s,i,y,f);return Hl(S)}Yf=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var o=ys(s.pendingLanes);o!==0&&(h0(s,o|1),wn(s,Dt()),(st&6)===0&&(Wa=Dt()+500,hi()))}break;case 13:Zi(function(){var f=Ur(i,1);if(f!==null){var y=fn();lr(f,i,1,y)}}),Hc(i,1)}},f0=function(i){if(i.tag===13){var s=Ur(i,134217728);if(s!==null){var o=fn();lr(s,i,134217728,o)}Hc(i,134217728)}},Vf=function(i){if(i.tag===13){var s=vi(i),o=Ur(i,s);if(o!==null){var f=fn();lr(o,i,s,f)}Hc(i,s)}},Gf=function(){return ft},Qf=function(i,s){var o=ft;try{return ft=i,s()}finally{ft=o}},a0=function(i,s,o){switch(s){case"input":if(_n(i,o),s=o.name,o.type==="radio"&&s!=null){for(o=i;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<o.length;s++){var f=o[s];if(f!==i&&f.form===i.form){var y=sl(f);if(!y)throw Error(n(90));mt(f),_n(f,y)}}}break;case"textarea":Ui(i,o);break;case"select":s=o.value,s!=null&&yr(i,!!o.multiple,s,!1)}},Df=Dc,Of=Zi;var _7={usingClientEntryPoint:!1,Events:[Ms,La,sl,Rf,Lf,Dc]},Qs={findFiberByHostInstance:Wi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},I7={bundleType:Qs.bundleType,version:Qs.version,rendererPackageName:Qs.rendererPackageName,rendererConfig:Qs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Ff(i),i===null?null:i.stateNode},findFiberByHostInstance:Qs.findFiberByHostInstance||A7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$l.isDisabled&&$l.supportsFiber)try{Uu=$l.inject(I7),br=$l}catch{}}return kn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_7,kn.createPortal=function(i,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jc(s))throw Error(n(200));return C7(i,s,null,o)},kn.createRoot=function(i,s){if(!jc(i))throw Error(n(299));var o=!1,f="",y=dp;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onRecoverableError!==void 0&&(y=s.onRecoverableError)),s=zc(i,1,!1,null,null,o,!1,f,y),i[Br]=s.current,Ls(i.nodeType===8?i.parentNode:i),new Uc(s)},kn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=Ff(s),i=i===null?null:i.stateNode,i},kn.flushSync=function(i){return Zi(i)},kn.hydrate=function(i,s,o){if(!jl(s))throw Error(n(200));return ql(null,i,s,!0,o)},kn.hydrateRoot=function(i,s,o){if(!jc(i))throw Error(n(405));var f=o!=null&&o.hydratedSources||null,y=!1,b="",S=dp;if(o!=null&&(o.unstable_strictMode===!0&&(y=!0),o.identifierPrefix!==void 0&&(b=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),s=op(s,null,i,1,o??null,y,!1,b,S),i[Br]=s.current,Ls(i),f)for(i=0;i<f.length;i++)o=f[i],y=o._getVersion,y=y(o._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[o,y]:s.mutableSourceEagerHydrationData.push(o,y);return new Ul(s)},kn.render=function(i,s,o){if(!jl(s))throw Error(n(200));return ql(null,i,s,!1,o)},kn.unmountComponentAtNode=function(i){if(!jl(i))throw Error(n(40));return i._reactRootContainer?(Zi(function(){ql(null,null,i,!1,function(){i._reactRootContainer=null,i[Br]=null})}),!0):!1},kn.unstable_batchedUpdates=Dc,kn.unstable_renderSubtreeIntoContainer=function(i,s,o,f){if(!jl(o))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return ql(i,s,o,!1,f)},kn.version="18.3.1-next-f1338f8080-20240426",kn}var Ep;function X4(){if(Ep)return Wc.exports;Ep=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(),Wc.exports=z7(),Wc.exports}var xp;function H7(){if(xp)return Wl;xp=1;var e=X4();return Wl.createRoot=e.createRoot,Wl.hydrateRoot=e.hydrateRoot,Wl}var U7=H7();/**
41
+ * react-router v7.18.2
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */var Ah=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,K4=/^[\\/]{2}/;function j7(e,t){return t+e.replace(/\\/g,"/")}var Tp="popstate";function wp(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function q7(e={}){function t(r,a){var h;let u=(h=a.state)==null?void 0:h.masked,{pathname:l,search:c,hash:d}=u||r.location;return Bd("",{pathname:l,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default",u?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:yu(a)}return W7(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function mr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $7(){return Math.random().toString(36).substring(2,10)}function kp(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Bd(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?rs(t):t,state:n,key:t&&t.key||r||$7(),mask:a}}function yu({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 rs(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 W7(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:u=!1}=r,l=a.history,c="POP",d=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function p(){c="POP";let R=m(),I=R==null?null:R-h;h=R,d&&d({action:c,location:_.location,delta:I})}function E(R,I){c="PUSH";let M=wp(R)?R:Bd(_.location,R,I);h=m()+1;let j=kp(M,h),J=_.createHref(M.mask||M);try{l.pushState(j,"",J)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;a.location.assign(J)}u&&d&&d({action:c,location:_.location,delta:1})}function x(R,I){c="REPLACE";let M=wp(R)?R:Bd(_.location,R,I);h=m();let j=kp(M,h),J=_.createHref(M.mask||M);l.replaceState(j,"",J),u&&d&&d({action:c,location:_.location,delta:0})}function C(R){return Y7(a,R)}let _={get action(){return c},get location(){return e(a,l)},listen(R){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Tp,p),d=R,()=>{a.removeEventListener(Tp,p),d=null}},createHref(R){return t(a,R)},createURL:C,encodeLocation(R){let I=C(R);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:E,replace:x,go(R){return l.go(R)}};return _}function Y7(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),Tt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:yu(t);return a=a.replace(/ $/,"%20"),!n&&K4.test(a)&&(a=r+a),new URL(a,r)}function J4(e,t,n="/"){return V7(e,t,n,!1)}function V7(e,t,n,r,a){let u=typeof t=="string"?rs(t):t,l=Qr(u.pathname||"/",n);if(l==null)return null;let c=G7(e),d=null,h=r3(l);for(let m=0;d==null&&m<c.length;++m)d=iy(c[m],h,r);return d}function G7(e){let t=Z4(e);return Q7(t),t}function Z4(e,t=[],n=[],r="",a=!1){let u=(l,c,d=a,h)=>{let m={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&d)return;Tt(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=dr([r,m.relativePath]),E=n.concat(m);l.children&&l.children.length>0&&(Tt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Z4(l.children,t,E,p,d)),!(l.path==null&&!l.index)&&t.push({path:p,score:ny(p,l.index),routesMeta:E.map((x,C)=>{let[_,R]=n3(x.relativePath,x.caseSensitive,C===E.length-1);return{...x,matcher:_,compiledParams:R}})})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))u(l,c);else for(let h of e3(l.path))u(l,c,!0,h)}),t}function e3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),u=n.replace(/\?$/,"");if(r.length===0)return a?[u,""]:[u];let l=e3(r.join("/")),c=[];return c.push(...l.map(d=>d===""?u:[u,d].join("/"))),a&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Q7(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ry(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var X7=/^:[\w-]+$/,K7=3,J7=2,Z7=1,ey=10,ty=-2,Sp=e=>e==="*";function ny(e,t){let n=e.split("/"),r=n.length;return n.some(Sp)&&(r+=ty),t&&(r+=J7),n.filter(a=>!Sp(a)).reduce((a,u)=>a+(X7.test(u)?K7:u===""?Z7:ey),r)}function ry(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 iy(e,t,n=!1){let{routesMeta:r}=e,a={},u="/",l=[];for(let c=0;c<r.length;++c){let d=r[c],h=c===r.length-1,m=u==="/"?t:t.slice(u.length)||"/",p={path:d.relativePath,caseSensitive:d.caseSensitive,end:h},E=d.matcher&&d.compiledParams?t3(p,m,d.matcher,d.compiledParams):vu(p,m),x=d.route;if(!E&&h&&n&&!r[r.length-1].route.index&&(E=vu({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!E)return null;Object.assign(a,E.params),l.push({params:a,pathname:dr([u,E.pathname]),pathnameBase:uy(dr([u,E.pathnameBase])),route:x}),E.pathnameBase!=="/"&&(u=dr([u,E.pathnameBase]))}return l}function vu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=n3(e.path,e.caseSensitive,e.end);return t3(e,t,n,r)}function t3(e,t,n,r){let a=t.match(n);if(!a)return null;let u=a[0],l=u.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:p},E)=>{if(m==="*"){let C=c[E]||"";l=u.slice(0,u.length-C.length).replace(/(.)\/+$/,"$1")}const x=c[E];return p&&!x?h[m]=void 0:h[m]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:u,pathnameBase:l,pattern:e}}function n3(e,t=!1,n=!0){mr(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,(l,c,d,h,m)=>{if(r.push({paramName:c,isOptional:d!=null}),d){let p=m.charAt(h+l.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).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 r3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mr(!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 Qr(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)||"/"}function ay(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?rs(e):e,u;return n?(n=i3(n),n.startsWith("/")?u=Cp(n.substring(1),"/"):u=Cp(n,t)):u=t,{pathname:u,search:ly(r),hash:oy(a)}}function Cp(e,t){let n=po(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Gc(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 sy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nh(e){let t=sy(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Io(e,t,n,r=!1){let a;typeof e=="string"?a=rs(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),Gc("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),Gc("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),Gc("#","search","hash",a)));let u=e===""||a.pathname==="",l=u?"/":a.pathname,c;if(l==null)c=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let E=l.split("/");for(;E[0]==="..";)E.shift(),p-=1;a.pathname=E.join("/")}c=p>=0?t[p]:"/"}let d=ay(a,c),h=l&&l!=="/"&&l.endsWith("/"),m=(u||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var i3=e=>e.replace(/[\\/]{2,}/g,"/"),dr=e=>i3(e.join("/")),po=e=>e.replace(/\/+$/,""),uy=e=>po(e).replace(/^\/*/,"/"),ly=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,cy=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function dy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function hy(e){let t=e.map(n=>n.route.path).filter(Boolean);return dr(t)||"/"}var a3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s3(e,t){let n=e;if(typeof n!="string"||!Ah.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(a3)try{let u=new URL(window.location.href),l=K4.test(n)?new URL(j7(n,u.protocol)):new URL(n),c=Qr(l.pathname,t);l.origin===u.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{mr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var u3=["POST","PUT","PATCH","DELETE"];new Set(u3);var fy=["GET",...u3];new Set(fy);var my=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function py(e){try{return my.includes(new URL(e).protocol)}catch{return!1}}var is=O.createContext(null);is.displayName="DataRouter";var Ro=O.createContext(null);Ro.displayName="DataRouterState";var l3=O.createContext(!1);function gy(){return O.useContext(l3)}var o3=O.createContext({isTransitioning:!1});o3.displayName="ViewTransition";var yy=O.createContext(new Map);yy.displayName="Fetchers";var vy=O.createContext(null);vy.displayName="Await";var Hn=O.createContext(null);Hn.displayName="Navigation";var Cu=O.createContext(null);Cu.displayName="Location";var _r=O.createContext({outlet:null,matches:[],isDataRoute:!1});_r.displayName="Route";var _h=O.createContext(null);_h.displayName="RouteError";var c3="REACT_ROUTER_ERROR",by="REDIRECT",Ey="ROUTE_ERROR_RESPONSE";function xy(e){if(e.startsWith(`${c3}:${by}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ty(e){if(e.startsWith(`${c3}:${Ey}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new cy(t.status,t.statusText,t.data)}catch{}}function wy(e,{relative:t}={}){Tt(ga(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=O.useContext(Hn),{hash:a,pathname:u,search:l}=Au(e,{relative:t}),c=u;return n!=="/"&&(c=u==="/"?n:dr([n,u])),r.createHref({pathname:c,search:l,hash:a})}function ga(){return O.useContext(Cu)!=null}function pr(){return Tt(ga(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(Cu).location}function ky(e){Tt(ga(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=pr();return O.useMemo(()=>vu(e,r3(t)),[t,e])}var d3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function h3(e){O.useContext(Hn).static||O.useLayoutEffect(e)}function Ih(){let{isDataRoute:e}=O.useContext(_r);return e?By():Sy()}function Sy(){Tt(ga(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(is),{basename:t,navigator:n}=O.useContext(Hn),{matches:r}=O.useContext(_r),{pathname:a}=pr(),u=JSON.stringify(Nh(r)),l=O.useRef(!1);return h3(()=>{l.current=!0}),O.useCallback((d,h={})=>{if(mr(l.current,d3),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=Io(d,JSON.parse(u),a,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:dr([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,u,a,e])}O.createContext(null);function Au(e,{relative:t}={}){let{matches:n}=O.useContext(_r),{pathname:r}=pr(),a=JSON.stringify(Nh(n));return O.useMemo(()=>Io(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Cy(e,t){return f3(e,t)}function f3(e,t,n){var R;Tt(ga(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=O.useContext(Hn),{matches:a}=O.useContext(_r),u=a[a.length-1],l=u?u.params:{},c=u?u.pathname:"/",d=u?u.pathnameBase:"/",h=u&&u.route;{let I=h&&h.path||"";p3(c,!h||I.endsWith("*")||I.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${I}">) 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.
50
+
51
+ Please change the parent <Route path="${I}"> to <Route path="${I==="/"?"*":`${I}/*`}">.`)}let m=pr(),p;if(t){let I=typeof t=="string"?rs(t):t;Tt(d==="/"||((R=I.pathname)==null?void 0:R.startsWith(d)),`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 "${d}" but pathname "${I.pathname}" was given in the \`location\` prop.`),p=I}else p=m;let E=p.pathname||"/",x=E;if(d!=="/"){let I=d.replace(/^\//,"").split("/");x="/"+E.replace(/^\//,"").split("/").slice(I.length).join("/")}let C=n&&n.state.matches.length?n.state.matches.map(I=>Object.assign(I,{route:n.manifest[I.route.id]||I.route})):J4(e,{pathname:x});mr(h||C!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),mr(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 "${p.pathname}${p.search}${p.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 _=Ry(C&&C.map(I=>Object.assign({},I,{params:Object.assign({},l,I.params),pathname:dr([d,r.encodeLocation?r.encodeLocation(I.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?d:dr([d,r.encodeLocation?r.encodeLocation(I.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathnameBase])})),a,n);return t&&_?O.createElement(Cu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},_):_}function Ay(){let e=Py(),t=dy(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},u={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:u},"ErrorBoundary")," or"," ",O.createElement("code",{style:u},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:a},n):null,l)}var Ny=O.createElement(Ay,null),m3=class extends O.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(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Ty(e.digest);n&&(e=n)}let t=e!==void 0?O.createElement(_r.Provider,{value:this.props.routeContext},O.createElement(_h.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?O.createElement(_y,{error:e},t):t}};m3.contextType=l3;var Qc=new WeakMap;function _y({children:e,error:t}){let{basename:n}=O.useContext(Hn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=xy(t.digest);if(r){let a=Qc.get(t);if(a)throw a;let u=s3(r.location,n),l=u.absoluteURL||u.to;if(py(l))throw new Error("Invalid redirect location");if(a3&&!Qc.get(t))if(u.isExternal||r.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:r.replace}));throw Qc.set(t,c),c}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function Iy({routeContext:e,match:t,children:n}){let r=O.useContext(is);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(_r.Provider,{value:e},n)}function Ry(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,u=r==null?void 0:r.errors;if(u!=null){let m=a.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);Tt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let l=!1,c=-1;if(n&&r){l=r.renderFallback;for(let m=0;m<a.length;m++){let p=a[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=m),p.route.id){let{loaderData:E,errors:x}=r,C=p.route.loader&&!E.hasOwnProperty(p.route.id)&&(!x||x[p.route.id]===void 0);if(p.route.lazy||C){n.isStatic&&(l=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let d=n==null?void 0:n.onError,h=r&&d?(m,p)=>{var E,x;d(m,{location:r.location,params:((x=(E=r.matches)==null?void 0:E[0])==null?void 0:x.params)??{},pattern:hy(r.matches),errorInfo:p})}:void 0;return a.reduceRight((m,p,E)=>{let x,C=!1,_=null,R=null;r&&(x=u&&p.route.id?u[p.route.id]:void 0,_=p.route.errorElement||Ny,l&&(c<0&&E===0?(p3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,R=null):c===E&&(C=!0,R=p.route.hydrateFallbackElement||null)));let I=t.concat(a.slice(0,E+1)),M=()=>{let j;return x?j=_:C?j=R:p.route.Component?j=O.createElement(p.route.Component,null):p.route.element?j=p.route.element:j=m,O.createElement(Iy,{match:p,routeContext:{outlet:m,matches:I,isDataRoute:r!=null},children:j})};return r&&(p.route.ErrorBoundary||p.route.errorElement||E===0)?O.createElement(m3,{location:r.location,revalidation:r.revalidation,component:_,error:x,children:M(),routeContext:{outlet:null,matches:I,isDataRoute:!0},onError:h}):M()},null)}function Rh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ly(e){let t=O.useContext(is);return Tt(t,Rh(e)),t}function Dy(e){let t=O.useContext(Ro);return Tt(t,Rh(e)),t}function Oy(e){let t=O.useContext(_r);return Tt(t,Rh(e)),t}function Lh(e){let t=Oy(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function My(){return Lh("useRouteId")}function Py(){var r;let e=O.useContext(_h),t=Dy("useRouteError"),n=Lh("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function By(){let{router:e}=Ly("useNavigate"),t=Lh("useNavigate"),n=O.useRef(!1);return h3(()=>{n.current=!0}),O.useCallback(async(a,u={})=>{mr(n.current,d3),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...u}))},[e,t])}var Ap={};function p3(e,t,n){!t&&!Ap[e]&&(Ap[e]=!0,mr(!1,n))}O.memo(Fy);function Fy({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:u}){return f3(e,void 0,{manifest:t,state:r,isStatic:a,onError:u})}function zy({to:e,replace:t,state:n,relative:r}){Tt(ga(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=O.useContext(Hn);mr(!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:u}=O.useContext(_r),{pathname:l}=pr(),c=Ih(),d=Io(e,Nh(u),l,r==="path"),h=JSON.stringify(d);return O.useEffect(()=>{c(JSON.parse(h),{replace:t,state:n,relative:r})},[c,h,r,t,n]),null}function au(e){Tt(!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 Hy({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:u=!1,useTransitions:l}){Tt(!ga(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=O.useMemo(()=>({basename:c,navigator:a,static:u,useTransitions:l,future:{}}),[c,a,u,l]);typeof n=="string"&&(n=rs(n));let{pathname:h="/",search:m="",hash:p="",state:E=null,key:x="default",mask:C}=n,_=O.useMemo(()=>{let R=Qr(h,c);return R==null?null:{location:{pathname:R,search:m,hash:p,state:E,key:x,mask:C},navigationType:r}},[c,h,m,p,E,x,r,C]);return mr(_!=null,`<Router basename="${c}"> is not able to match the URL "${h}${m}${p}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:O.createElement(Hn.Provider,{value:d},O.createElement(Cu.Provider,{children:t,value:_}))}function Uy({children:e,location:t}){return Cy(Fd(e),t)}function Fd(e,t=[]){let n=[];return O.Children.forEach(e,(r,a)=>{if(!O.isValidElement(r))return;let u=[...t,a];if(r.type===O.Fragment){n.push.apply(n,Fd(r.props.children,u));return}Tt(r.type===au,`[${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>`),Tt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||u.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&&(l.children=Fd(r.props.children,u)),n.push(l)}),n}var so="get",uo="application/x-www-form-urlencoded";function Lo(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function jy(e){return Lo(e)&&e.tagName.toLowerCase()==="button"}function qy(e){return Lo(e)&&e.tagName.toLowerCase()==="form"}function $y(e){return Lo(e)&&e.tagName.toLowerCase()==="input"}function Wy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Yy(e,t){return e.button===0&&(!t||t==="_self")&&!Wy(e)}var Yl=null;function Vy(){if(Yl===null)try{new FormData(document.createElement("form"),0),Yl=!1}catch{Yl=!0}return Yl}var Gy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xc(e){return e!=null&&!Gy.has(e)?(mr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${uo}"`),null):e}function Qy(e,t){let n,r,a,u,l;if(qy(e)){let c=e.getAttribute("action");r=c?Qr(c,t):null,n=e.getAttribute("method")||so,a=Xc(e.getAttribute("enctype"))||uo,u=new FormData(e)}else if(jy(e)||$y(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?Qr(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||so,a=Xc(e.getAttribute("formenctype"))||Xc(c.getAttribute("enctype"))||uo,u=new FormData(c,e),!Vy()){let{name:h,type:m,value:p}=e;if(m==="image"){let E=h?`${h}.`:"";u.append(`${E}x`,"0"),u.append(`${E}y`,"0")}else h&&u.append(h,p)}}else{if(Lo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=so,r=null,a=uo,l=e}return u&&a==="text/plain"&&(l=u,u=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:u,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Dh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function g3(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&Qr(a.pathname,t)==="/"?a.pathname=`${po(t)}/_root.${r}`:a.pathname=`${po(a.pathname)}.${r}`,a}async function Xy(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 Ky(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 Jy(e,t,n){let r=await Promise.all(e.map(async a=>{let u=t.routes[a.route.id];if(u){let l=await Xy(u,n);return l.links?l.links():[]}return[]}));return nv(r.flat(1).filter(Ky).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Np(e,t,n,r,a,u){let l=(d,h)=>n[h]?d.route.id!==n[h].route.id:!0,c=(d,h)=>{var m;return n[h].pathname!==d.pathname||((m=n[h].route.path)==null?void 0:m.endsWith("*"))&&n[h].params["*"]!==d.params["*"]};return u==="assets"?t.filter((d,h)=>l(d,h)||c(d,h)):u==="data"?t.filter((d,h)=>{var p;let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(l(d,h)||c(d,h))return!0;if(d.route.shouldRevalidate){let E=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 E=="boolean")return E}return!0}):[]}function Zy(e,t,{includeHydrateFallback:n}={}){return ev(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let u=[a.module];return a.clientActionModule&&(u=u.concat(a.clientActionModule)),a.clientLoaderModule&&(u=u.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(u=u.concat(a.hydrateFallbackModule)),a.imports&&(u=u.concat(a.imports)),u}).flat(1))}function ev(e){return[...new Set(e)]}function tv(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function nv(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let u=JSON.stringify(tv(a));return n.has(u)||(n.add(u),r.push({key:u,link:a})),r},[])}function Oh(){let e=O.useContext(is);return Dh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rv(){let e=O.useContext(Ro);return Dh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Mh=O.createContext(void 0);Mh.displayName="FrameworkContext";function Do(){let e=O.useContext(Mh);return Dh(e,"You must render this element inside a <HydratedRouter> element"),e}function iv(e,t){let n=O.useContext(Mh),[r,a]=O.useState(!1),[u,l]=O.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:h,onMouseLeave:m,onTouchStart:p}=t,E=O.useRef(null);O.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let _=I=>{I.forEach(M=>{l(M.isIntersecting)})},R=new IntersectionObserver(_,{threshold:.5});return E.current&&R.observe(E.current),()=>{R.disconnect()}}},[e]),O.useEffect(()=>{if(r){let _=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(_)}}},[r]);let x=()=>{a(!0)},C=()=>{a(!1),l(!1)};return n?e!=="intent"?[u,E,{}]:[u,E,{onFocus:Ks(c,x),onBlur:Ks(d,C),onMouseEnter:Ks(h,x),onMouseLeave:Ks(m,C),onTouchStart:Ks(p,x)}]:[!1,E,{}]}function Ks(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function av({page:e,...t}){let n=gy(),{nonce:r}=Do(),{router:a}=Oh(),u=O.useMemo(()=>J4(a.routes,e,a.basename),[a.routes,e,a.basename]);return u?(t.nonce==null&&r&&(t={...t,nonce:r}),n?O.createElement(uv,{page:e,matches:u,...t}):O.createElement(lv,{page:e,matches:u,...t})):null}function sv(e){let{manifest:t,routeModules:n}=Do(),[r,a]=O.useState([]);return O.useEffect(()=>{let u=!1;return Jy(e,t,n).then(l=>{u||a(l)}),()=>{u=!0}},[e,t,n]),r}function uv({page:e,matches:t,...n}){let r=pr(),{future:a}=Do(),{basename:u}=Oh(),l=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let c=g3(e,u,a.v8_trailingSlashAwareDataRequests,"rsc"),d=!1,h=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?d=!0:h.push(m.route.id);return d&&h.length>0&&c.searchParams.set("_routes",h.join(",")),[c.pathname+c.search]},[u,a.v8_trailingSlashAwareDataRequests,e,r,t]);return O.createElement(O.Fragment,null,l.map(c=>O.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function lv({page:e,matches:t,...n}){let r=pr(),{future:a,manifest:u,routeModules:l}=Do(),{basename:c}=Oh(),{loaderData:d,matches:h}=rv(),m=O.useMemo(()=>Np(e,t,h,u,r,"data"),[e,t,h,u,r]),p=O.useMemo(()=>Np(e,t,h,u,r,"assets"),[e,t,h,u,r]),E=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let _=new Set,R=!1;if(t.forEach(M=>{var J;let j=u.routes[M.route.id];!j||!j.hasLoader||(!m.some(te=>te.route.id===M.route.id)&&M.route.id in d&&((J=l[M.route.id])!=null&&J.shouldRevalidate)||j.hasClientLoader?R=!0:_.add(M.route.id))}),_.size===0)return[];let I=g3(e,c,a.v8_trailingSlashAwareDataRequests,"data");return R&&_.size>0&&I.searchParams.set("_routes",t.filter(M=>_.has(M.route.id)).map(M=>M.route.id).join(",")),[I.pathname+I.search]},[c,a.v8_trailingSlashAwareDataRequests,d,r,u,m,t,e,l]),x=O.useMemo(()=>Zy(p,u),[p,u]),C=sv(p);return O.createElement(O.Fragment,null,E.map(_=>O.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),x.map(_=>O.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),C.map(({key:_,link:R})=>O.createElement("link",{key:_,nonce:n.nonce,...R,crossOrigin:R.crossOrigin??n.crossOrigin})))}function ov(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var cv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cv&&(window.__reactRouterVersion="7.18.2")}catch{}function dv({basename:e,children:t,useTransitions:n,window:r}){let a=O.useRef();a.current==null&&(a.current=q7({window:r,v5Compat:!0}));let u=a.current,[l,c]=O.useState({action:u.action,location:u.location}),d=O.useCallback(h=>{n===!1?c(h):O.startTransition(()=>c(h))},[n]);return O.useLayoutEffect(()=>u.listen(d),[u,d]),O.createElement(Hy,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:u,useTransitions:n})}var Ph=O.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:u,replace:l,mask:c,state:d,target:h,to:m,preventScrollReset:p,viewTransition:E,defaultShouldRevalidate:x,...C},_){let{basename:R,navigator:I,useTransitions:M}=O.useContext(Hn),j=typeof m=="string"&&Ah.test(m),J=s3(m,R);m=J.to;let te=wy(m,{relative:a}),W=pr(),Z=null;if(c){let ue=Io(c,[],W.mask?W.mask.pathname:"/",!0);R!=="/"&&(ue.pathname=ue.pathname==="/"?R:dr([R,ue.pathname])),Z=I.createHref(ue)}let[re,ie,Y]=iv(r,C),se=pv(m,{replace:l,mask:c,state:d,target:h,preventScrollReset:p,relative:a,viewTransition:E,defaultShouldRevalidate:x,useTransitions:M});function le(ue){t&&t(ue),ue.defaultPrevented||se(ue)}let Me=!(J.isExternal||u),ge=O.createElement("a",{...C,...Y,href:(Me?Z:void 0)||J.absoluteURL||te,onClick:Me?le:t,ref:ov(_,ie),target:h,"data-discover":!j&&n==="render"?"true":void 0});return re&&!j?O.createElement(O.Fragment,null,ge,O.createElement(av,{page:te})):ge});Ph.displayName="Link";var hv=O.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:u,to:l,viewTransition:c,children:d,...h},m){let p=Au(l,{relative:h.relative}),E=pr(),x=O.useContext(Ro),{navigator:C,basename:_}=O.useContext(Hn),R=x!=null&&Ev(p)&&c===!0,I=C.encodeLocation?C.encodeLocation(p).pathname:p.pathname,M=E.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(M=M.toLowerCase(),j=j?j.toLowerCase():null,I=I.toLowerCase()),j&&_&&(j=Qr(j,_)||j);const J=I!=="/"&&I.endsWith("/")?I.length-1:I.length;let te=M===I||!a&&M.startsWith(I)&&M.charAt(J)==="/",W=j!=null&&(j===I||!a&&j.startsWith(I)&&j.charAt(I.length)==="/"),Z={isActive:te,isPending:W,isTransitioning:R},re=te?t:void 0,ie;typeof r=="function"?ie=r(Z):ie=[r,te?"active":null,W?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let Y=typeof u=="function"?u(Z):u;return O.createElement(Ph,{...h,"aria-current":re,className:ie,ref:m,style:Y,to:l,viewTransition:c},typeof d=="function"?d(Z):d)});hv.displayName="NavLink";var fv=O.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:u,method:l=so,action:c,onSubmit:d,relative:h,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:E,...x},C)=>{let{useTransitions:_}=O.useContext(Hn),R=vv(),I=bv(c,{relative:h}),M=l.toLowerCase()==="get"?"get":"post",j=typeof c=="string"&&Ah.test(c),J=te=>{if(d&&d(te),te.defaultPrevented)return;te.preventDefault();let W=te.nativeEvent.submitter,Z=(W==null?void 0:W.getAttribute("formmethod"))||l,re=()=>R(W||te.currentTarget,{fetcherKey:t,method:Z,navigate:n,replace:a,state:u,relative:h,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:E});_&&n!==!1?O.startTransition(()=>re()):re()};return O.createElement("form",{ref:C,method:M,action:I,onSubmit:r?d:J,...x,"data-discover":!j&&e==="render"?"true":void 0})});fv.displayName="Form";function mv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function y3(e){let t=O.useContext(is);return Tt(t,mv(e)),t}function pv(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:u,relative:l,viewTransition:c,defaultShouldRevalidate:d,useTransitions:h}={}){let m=Ih(),p=pr(),E=Au(e,{relative:l});return O.useCallback(x=>{if(Yy(x,t)){x.preventDefault();let C=n!==void 0?n:yu(p)===yu(E),_=()=>m(e,{replace:C,mask:r,state:a,preventScrollReset:u,relative:l,viewTransition:c,defaultShouldRevalidate:d});h?O.startTransition(()=>_()):_()}},[p,m,E,n,r,a,t,e,u,l,c,d,h])}var gv=0,yv=()=>`__${String(++gv)}__`;function vv(){let{router:e}=y3("useSubmit"),{basename:t}=O.useContext(Hn),n=My(),r=e.fetch,a=e.navigate;return O.useCallback(async(u,l={})=>{let{action:c,method:d,encType:h,formData:m,body:p}=Qy(u,t);if(l.navigate===!1){let E=l.fetcherKey||yv();await r(E,n,l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:p,formMethod:l.method||d,formEncType:l.encType||h,flushSync:l.flushSync})}else await a(l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:p,formMethod:l.method||d,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function bv(e,{relative:t}={}){let{basename:n}=O.useContext(Hn),r=O.useContext(_r);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),u={...Au(e||".",{relative:t})},l=pr();if(e==null){u.search=l.search;let c=new URLSearchParams(u.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();u.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(u.pathname=u.pathname==="/"?n:dr([n,u.pathname])),yu(u)}function Ev(e,{relative:t}={}){let n=O.useContext(o3);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=y3("useViewTransitionState"),a=Au(e,{relative:t});if(!n.isTransitioning)return!1;let u=Qr(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Qr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return vu(a.pathname,l)!=null||vu(a.pathname,u)!=null}const go="Attached files: ",xv=[".png",".jpg",".jpeg",".gif",".webp",".svg",".bmp",".ico",".avif"];function Tv(e){const t=e.split(`
52
+ `).find(n=>n.startsWith(go));return t?t.slice(go.length).split(", ").map(n=>n.trim()).filter(Boolean):[]}function wv(e){return Tv(e).filter(t=>{const n=t.toLowerCase();return xv.some(r=>n.endsWith(r))})}function Bh(e){return e.split(`
53
+ `).filter(t=>!t.startsWith(go)).join(`
54
+ `).trim()}function _p(){return{turnStatus:"idle",creditsSpent:0,lastTurnCredits:0,contextUsagePercentage:0,lastTurnDurationMs:0,subagents:[],pendingStages:[],mcpServers:[],availableCommands:[],oauthPrompts:[],compacting:!1}}const Kc=60;function kv(e){const t=e.filter(u=>u.type==="text").map(u=>u.text).join(`
55
+ `),n=Bh(t).replace(/```[\s\S]*?```/g," ").replace(/\s+/g," ").trim();if(!n)return"";if(n.length<=Kc)return n.replace(/[.,;:!?]+$/,"");const r=n.slice(0,Kc),a=r.lastIndexOf(" ");return`${(a>Kc/2?r.slice(0,a):r).replace(/[.,;:!?]+$/,"")}…`}const Ip=e=>{let t;const n=new Set,r=(h,m)=>{const p=typeof h=="function"?h(t):h;if(!Object.is(p,t)){const E=t;t=m??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(x=>x(t,E))}},a=()=>t,c={setState:r,getState:a,getInitialState:()=>d,subscribe:h=>(n.add(h),()=>n.delete(h))},d=t=e(r,a,c);return c},Sv=(e=>e?Ip(e):Ip),Cv=e=>e;function Av(e,t=Cv){const n=iu.useSyncExternalStore(e.subscribe,iu.useCallback(()=>t(e.getState()),[e,t]),iu.useCallback(()=>t(e.getInitialState()),[e,t]));return iu.useDebugValue(n),n}const Rp=e=>{const t=Sv(e),n=r=>Av(t,r);return Object.assign(n,t),n},Nv=(e=>e?Rp(e):Rp),_v=(e,t)=>t.updatedAt.localeCompare(e.updatedAt);function v3(e,t){return[...e.filter(n=>n.sessionId!==t.sessionId),t].sort(_v)}function Iv(e,t,n){const r=e.find(a=>a.sessionId===t);return r?v3(e,{...r,updatedAt:n}):e}function b3(e){const t=e.toLowerCase();return t.includes("credential")||t.includes("expired")||t.includes("not authenticated")||t.includes("unauthorized")||t.includes("kiro-cli login")?{title:"Kiro isn't authenticated",fix:"Run `kiro-cli login` on the server, then retry.",sessionWide:!0}:t.includes("a turn is already running")?{title:"A turn is already running",fix:"Wait for the current turn to finish, or stop it first."}:t.includes("enoent")||t.includes("spawn")||t.includes("command not found")?{title:"Couldn't start kiro-cli",fix:"Check that KIRO_BIN points at an executable kiro-cli.",sessionWide:!0}:t.includes("timed out")?{title:"The request timed out"}:{title:"Turn failed"}}const Ne=Nv((e,t)=>({sessions:[],models:[],agents:[],defaultAgentId:"kiro_default",activeId:null,loadingSessionId:null,modes:[],items:[],appliedSeq:0,remainingOlder:0,observability:_p(),fsVersion:{},watchedPaths:[],streamingText:"",streamingThought:"",pending:[],sessionNotice:null,bumpFsPath:n=>e(r=>({fsVersion:{...r.fsVersion,[n]:(r.fsVersion[n]??0)+1}})),setWatchedPaths:n=>e({watchedPaths:n}),setSessions:n=>e({sessions:n}),setModels:n=>e({models:n}),setAgents:(n,r)=>e({agents:n,defaultAgentId:r}),setLoadingSession:n=>e({loadingSessionId:n}),loadDetail:(n,r)=>e(a=>({activeId:n.summary.sessionId,loadingSessionId:null,sessions:v3(a.sessions,n.summary),modes:n.modes,currentModeId:n.currentModeId,currentModelId:n.summary.modelId,observability:n.observability,items:n.transcript,appliedSeq:n.head,remainingOlder:Math.max(0,n.transcriptTotal-n.transcript.length),streamingText:"",streamingThought:"",pending:r!=null&&r.keepPending?a.pending:[],sessionNotice:null})),prependItems:n=>e(r=>({items:[...n,...r.items],remainingOlder:Math.max(0,r.remainingOlder-n.length)})),clearActive:()=>e({activeId:null,loadingSessionId:null,modes:[],items:[],appliedSeq:0,remainingOlder:0,observability:_p(),streamingText:"",streamingThought:"",pending:[],sessionNotice:null,currentModeId:void 0,currentModelId:void 0}),dismissSessionNotice:()=>e({sessionNotice:null}),addPending:(n,r)=>e(a=>({pending:[...a.pending,{id:n,text:r,status:"sending"}]})),markPendingFailed:(n,r)=>e(a=>({pending:a.pending.map(u=>u.id===n?{...u,status:"failed",error:r}:u)})),applyEvent:n=>{var u,l,c,d;const r=t(),a=n.payload;if(!(n.seq<=r.appliedSeq))switch(e({appliedSeq:n.seq}),a.kind){case"turn_started":{const h=a.prompt.filter(_=>_.type==="text").map(_=>_.text).join(""),m=Bh(h),p=wv(h),E=r.pending.findIndex(_=>_.status==="sending"),x=new Date(n.ts).toISOString(),C=Iv(r.sessions,n.sessionId,x);e({items:[...r.items,{type:"message",message:{id:`u-${n.seq}`,role:"user",text:m,timestamp:n.ts,imagePaths:p}}],pending:E===-1?r.pending:r.pending.filter((_,R)=>R!==E),sessions:C,streamingText:"",observability:{...r.observability,turnStatus:"running"}});break}case"session_update":{const h=a.update;if(h.sessionUpdate==="agent_message_chunk"){const m=((u=h.content)==null?void 0:u.text)??"";e({streamingText:r.streamingText+m})}else if(h.sessionUpdate==="agent_thought_chunk"){const m=((l=h.content)==null?void 0:l.text)??"";e({streamingThought:r.streamingThought+m})}else if(h.sessionUpdate==="tool_call"){const m=h,p=(d=(c=m._meta)==null?void 0:c.kiro)==null?void 0:d.toolName;e({items:[...Jc(r,`s-${n.seq}`,n.ts),{type:"tool_call",tool:{id:m.toolCallId,name:p,title:m.title??m.toolCallId,kind:m.kind,status:m.status??"pending",input:m.rawInput,content:m.content??[]}}],streamingText:"",streamingThought:""})}else if(h.sessionUpdate==="tool_call_update"){const m=h;e({items:r.items.map(p=>p.type==="tool_call"&&p.tool.id===m.toolCallId?{type:"tool_call",tool:{...p.tool,status:m.status??p.tool.status,output:m.rawOutput??p.tool.output,content:m.content??p.tool.content}}:p)})}break}case"turn_ended":{e({items:Jc(r,`s-${n.seq}`,n.ts),sessionNotice:null,streamingText:"",streamingThought:"",observability:{...r.observability,turnStatus:"idle"}});break}case"turn_error":{const h=b3(a.message);e({items:[...Jc(r,`s-${n.seq}`,n.ts),{type:"turn_error",id:`err-${n.seq}`,message:a.message,timestamp:n.ts}],sessionNotice:h.sessionWide?{title:h.title,fix:h.fix,detail:a.message}:r.sessionNotice,streamingText:"",streamingThought:"",observability:{...r.observability,turnStatus:"idle"}});break}case"metadata":{const h=(a.params.meteringUsage??[]).reduce((m,p)=>m+p.value,0);e({observability:{...r.observability,contextUsagePercentage:a.params.contextUsagePercentage??r.observability.contextUsagePercentage,creditsSpent:h>0?r.observability.creditsSpent+h:r.observability.creditsSpent,lastTurnCredits:h>0?h:r.observability.lastTurnCredits,lastTurnDurationMs:a.params.turnDurationMs??r.observability.lastTurnDurationMs}});break}case"subagent_update":e({observability:{...r.observability,subagents:a.params.subagents,pendingStages:a.params.pendingStages}});break;case"mcp_health":{const h=r.observability.mcpServers.filter(m=>m.serverName!==a.params.serverName);h.push({serverName:a.params.serverName,status:a.ok?"initialized":"failed",error:a.params.error,updatedAt:n.ts}),e({observability:{...r.observability,mcpServers:h}});break}case"commands_available":e({observability:{...r.observability,availableCommands:a.params.commands}});break;case"compaction":{const h=a.params.status.type!=="started",m=a.params.summary??"";e({observability:{...r.observability,compacting:!h},items:h&&m.trim()?[...r.items,{type:"compaction",id:`c-${n.seq}`,summary:m,timestamp:n.ts}]:r.items});break}case"oauth_request":e({observability:{...r.observability,oauthPrompts:[...r.observability.oauthPrompts,{serverName:a.params.serverName,url:a.params.url,createdAt:n.ts}]}});break;case"process_exited":e({observability:{...r.observability,turnStatus:"idle"}});break}}}));function Jc(e,t,n=Date.now()){const r=[...e.items];return e.streamingThought.trim()&&r.push({type:"message",message:{id:`t-${t}`,role:"thinking",text:e.streamingThought,timestamp:n}}),e.streamingText.trim()&&r.push({type:"message",message:{id:`a-${t}`,role:"assistant",text:e.streamingText,timestamp:n}}),r}async function un(e,t,n){const r={};n!==void 0&&(r["content-type"]="application/json");const a=await fetch(t,{method:e,headers:r,credentials:"same-origin",body:n!==void 0?JSON.stringify(n):void 0});if(a.status===401)throw new Error("Unauthorized");if(!a.ok){const l=await a.text();throw new Error(`${e} ${t} failed (${a.status}): ${l}`)}const u=await a.text();return u?JSON.parse(u):{}}function Rv(e){return un("POST","/api/login",{token:e})}function Lv(){return un("POST","/api/logout")}const bt={devices:()=>un("GET","/api/devices"),revokeDevice:e=>un("DELETE",`/api/devices/${e}`),logoutAll:()=>un("POST","/api/logout-all"),models:()=>un("GET","/api/models"),agents:()=>un("GET","/api/agents"),listDirs:e=>un("GET",`/api/fs/dirs?path=${encodeURIComponent(e)}`),listSessions:()=>un("GET","/api/sessions"),createSession:e=>un("POST","/api/sessions",e),getSession:e=>un("GET",`/api/sessions/${e}`),transcriptPage:(e,t,n)=>un("GET",`/api/sessions/${e}/transcript?offset=${t}&limit=${n}`),deleteSession:e=>un("DELETE",`/api/sessions/${e}`),renameSession:(e,t)=>un("POST",`/api/sessions/${e}/rename`,{title:t}),setSessionCwd:(e,t)=>un("POST",`/api/sessions/${e}/cwd`,{cwd:t}),tree:(e,t="")=>un("GET",`/api/sessions/${e}/tree?path=${encodeURIComponent(t)}`),downloadUrl:(e,t)=>`/api/sessions/${e}/download?path=${encodeURIComponent(t)}`,previewUrl:(e,t)=>`/api/sessions/${e}/preview?path=${encodeURIComponent(t)}`,attachmentUrl:(e,t)=>t.startsWith("/")?`/api/fs/image?path=${encodeURIComponent(t)}`:`/api/sessions/${e}/preview?path=${encodeURIComponent(t)}`,uploadFiles:async(e,t)=>{const n=new FormData;for(const a of t)n.append("files",a,a.name);const r=await fetch(`/api/sessions/${e}/uploads`,{method:"POST",credentials:"same-origin",body:n});if(r.status===401)throw new Error("Unauthorized");if(!r.ok){const a=await r.text();throw new Error(`Upload failed (${r.status}): ${a}`)}return await r.json()}},lo={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},Dv=8e3,E3=25e3,Ov=1e4;function Lp(e){return e.state===void 0||e.state===lo.CLOSED||e.state===lo.CLOSING?!0:e.state===lo.CONNECTING?e.now-e.connectingSince>Dv:e.now-e.lastMessageAt>E3+Ov}function Mv(e){return e.state===lo.OPEN&&e.now-e.lastMessageAt>E3}const Pv=1008;class Bv{constructor(t,n,r=0){or(this,"ws",null);or(this,"cursor",0);or(this,"closedByUser",!1);or(this,"backoff",500);or(this,"reconnectTimer",null);or(this,"connectingSince",0);or(this,"lastMessageAt",0);or(this,"watchdog",null);or(this,"eager",()=>{this.closedByUser||Lp(this.sample())&&this.connect()});or(this,"onVisibility",()=>{document.visibilityState==="visible"&&this.eager()});this.sessionId=t,this.handlers=n,this.cursor=r,window.addEventListener("online",this.eager),document.addEventListener("visibilitychange",this.onVisibility)}sample(){var t;return{state:(t=this.ws)==null?void 0:t.readyState,connectingSince:this.connectingSince,lastMessageAt:this.lastMessageAt,now:Date.now()}}startWatchdog(){this.watchdog===null&&(this.watchdog=window.setInterval(()=>{if(this.closedByUser)return;const t=this.sample();Lp(t)?this.connect():Mv(t)&&this.send({type:"ping"})},5e3))}reset(t){this.cursor=t}connect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null);const t=this.ws;t&&(this.ws=null,t.onopen=null,t.onmessage=null,t.onclose=null,t.onerror=null,(t.readyState===WebSocket.OPEN||t.readyState===WebSocket.CONNECTING)&&t.close()),this.connectingSince=Date.now(),this.lastMessageAt=Date.now(),this.startWatchdog(),this.handlers.onStatus(this.cursor>0?"reconnecting":"connecting");const r=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws?sessionId=${encodeURIComponent(this.sessionId)}&cursor=${this.cursor}`,a=new WebSocket(r);this.ws=a,a.onopen=()=>{this.ws===a&&(this.backoff=500,this.handlers.onStatus("replaying"),this.send({type:"hello",sessionId:this.sessionId,cursor:this.cursor}))},a.onmessage=u=>{var c,d,h,m,p,E;if(this.ws!==a)return;this.lastMessageAt=Date.now();const l=JSON.parse(u.data);switch(l.type){case"event":l.event.seq>this.cursor&&(this.cursor=l.event.seq,this.handlers.onEvent(l.event));break;case"replay_complete":this.handlers.onStatus("connected");break;case"resync":this.handlers.onStatus("resyncing"),this.handlers.onResync();break;case"ack":(d=(c=this.handlers).onAck)==null||d.call(c,l.action,l.ok,l.error);break;case"error":console.warn("ws error:",l.message),(m=(h=this.handlers).onServerError)==null||m.call(h,l.message);break;case"fs_changed":(E=(p=this.handlers).onFsChanged)==null||E.call(p,l.path);break}},a.onclose=u=>{var l,c;if(this.ws===a){if(this.closedByUser){this.handlers.onStatus("closed");return}if(u.code===Pv){this.closedByUser=!0,this.handlers.onStatus("closed"),(c=(l=this.handlers).onUnauthorized)==null||c.call(l);return}this.handlers.onStatus("reconnecting"),this.reconnectTimer=window.setTimeout(()=>this.connect(),this.backoff),this.backoff=Math.min(this.backoff*1.7,1e4)}},a.onerror=()=>{this.ws===a&&a.close()}}send(t){var n;return((n=this.ws)==null?void 0:n.readyState)===WebSocket.OPEN?(this.ws.send(JSON.stringify(t)),!0):!1}prompt(t){return this.send({type:"prompt",content:t})}cancel(){this.send({type:"cancel"})}setMode(t){this.send({type:"set_mode",modeId:t})}setModel(t){this.send({type:"set_model",modelId:t})}watchPaths(t){this.send({type:"watch_paths",paths:t})}execCommand(t,n){this.send({type:"exec_command",command:t,args:n})}close(){this.closedByUser=!0,window.removeEventListener("online",this.eager),document.removeEventListener("visibilitychange",this.onVisibility),this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.watchdog!==null&&(clearInterval(this.watchdog),this.watchdog=null);const t=this.ws;this.ws=null,t&&(t.onopen=null,t.onmessage=null,t.onclose=null,t.onerror=null,t.close())}}const Fh="/sessions",Fv=`${Fh}/:sessionId`;function x3(e){return`${Fh}/${encodeURIComponent(e)}`}const zv=`${Fh}/new`;function T3({size:e=14,className:t}){return T.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:T.jsx("polyline",{points:"6 9 12 15 18 9"})})}function w3({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),T.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Hv({size:e=16,className:t}){return T.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:T.jsx("polyline",{points:"20 6 9 17 4 12"})})}function Uv({size:e=18,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("rect",{x:"4",y:"11",width:"16",height:"10",rx:"2"}),T.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function fa({size:e=28,className:t}){return T.jsx("svg",{className:`spinner ${t??""}`,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round","aria-hidden":!0,children:T.jsx("path",{d:"M12 3a9 9 0 1 0 9 9"})})}function jv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M12 19V5"}),T.jsx("path",{d:"m5 12 7-7 7 7"})]})}function Dp({size:e=16,className:t}){return T.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none","aria-hidden":!0,children:T.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}function k3({size:e=20,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),T.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function S3({size:e=20,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("circle",{cx:"11",cy:"11",r:"7"}),T.jsx("line",{x1:"21",y1:"21",x2:"16.5",y2:"16.5"})]})}function C3({size:e=16,className:t}){return T.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:T.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})})}function qv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v1"}),T.jsx("path",{d:"M2 10l2.5 9h15l2.5-9H7.5"})]})}function $v({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),T.jsx("polyline",{points:"14 2 14 8 20 8"})]})}function Op({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),T.jsx("polyline",{points:"14 2 14 8 20 8"}),T.jsx("polyline",{points:"9 15 7 13 9 11"}),T.jsx("polyline",{points:"15 11 17 13 15 15"})]})}function Wv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),T.jsx("polyline",{points:"14 2 14 8 20 8"}),T.jsx("circle",{cx:"12",cy:"15",r:"2"}),T.jsx("path",{d:"M12 11v2"}),T.jsx("path",{d:"M12 17v1"})]})}function Yv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),T.jsx("polyline",{points:"14 2 14 8 20 8"}),T.jsx("line",{x1:"8",y1:"13",x2:"16",y2:"13"}),T.jsx("line",{x1:"8",y1:"17",x2:"14",y2:"17"})]})}function Vv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),T.jsx("polyline",{points:"14 2 14 8 20 8"}),T.jsx("circle",{cx:"10",cy:"14",r:"2"}),T.jsx("path",{d:"M20 17l-3-3-5 5"})]})}function Gv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),T.jsx("polyline",{points:"14 2 14 8 20 8"}),T.jsx("path",{d:"M8 13h3v3H8z"}),T.jsx("line",{x1:"14",y1:"13",x2:"16",y2:"13"}),T.jsx("line",{x1:"14",y1:"16",x2:"16",y2:"16"})]})}function Qv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),T.jsx("polyline",{points:"14 2 14 8 20 8"}),T.jsx("polyline",{points:"8 15 10 13 8 11"}),T.jsx("line",{x1:"12",y1:"16",x2:"16",y2:"16"})]})}function Xv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),T.jsx("polyline",{points:"7 10 12 15 17 10"}),T.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function Zc({size:e=20,className:t}){return T.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":!0,children:T.jsx("path",{d:"M4 7h16M4 12h16M4 17h10"})})}function Kv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),T.jsx("line",{x1:"9",y1:"14",x2:"15",y2:"14"}),T.jsx("line",{x1:"9",y1:"18",x2:"13",y2:"18"})]})}function Jv({size:e=18,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("polyline",{points:"4 14 10 14 10 20"}),T.jsx("polyline",{points:"20 10 14 10 14 4"}),T.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),T.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})}function Zv({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("path",{d:"M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"}),T.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function e9({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("polyline",{points:"16 18 22 12 16 6"}),T.jsx("polyline",{points:"8 6 2 12 8 18"})]})}function t9({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("polyline",{points:"15 3 21 3 21 9"}),T.jsx("polyline",{points:"9 21 3 21 3 15"}),T.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),T.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})}function n9({size:e=16,className:t}){return T.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[T.jsx("polyline",{points:"4 14 10 14 10 20"}),T.jsx("polyline",{points:"20 10 14 10 14 4"}),T.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),T.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})}var zh=X4();function r9(e,t){const n=e.trim().toLowerCase();if(!n)return 0;const r=t.toLowerCase();let a=0,u=0,l=-2;for(let c=0;c<n.length;c++){const d=n[c],h=r.indexOf(d,u);if(h===-1)return-1;a+=1,h===l+1&&(a+=3),(h===0||/\s|[-_/.]/.test(r[h-1]??""))&&(a+=2),l=h,u=h+1}return a}function i9({sessions:e,onOpen:t,onClose:n}){const[r,a]=O.useState(""),[u,l]=O.useState(0),c=O.useRef(null);O.useEffect(()=>{var p;(p=c.current)==null||p.focus()},[]);const d=O.useMemo(()=>r.trim()?e.map(p=>({s:p,score:r9(r,p.title)})).filter(p=>p.score>=0).sort((p,E)=>E.score-p.score).map(p=>p.s):e.slice(0,50),[e,r]);O.useEffect(()=>{l(0)},[r]);const h=p=>{t(p),n()},m=p=>{if(p.key==="Escape")n();else if(p.key==="ArrowDown")p.preventDefault(),l(E=>Math.min(E+1,d.length-1));else if(p.key==="ArrowUp")p.preventDefault(),l(E=>Math.max(E-1,0));else if(p.key==="Enter"){p.preventDefault();const E=d[u];E&&h(E.sessionId)}};return zh.createPortal(T.jsx("div",{className:"search-backdrop",onClick:n,children:T.jsxs("div",{className:"search-modal",role:"dialog","aria-label":"Search sessions",onClick:p=>p.stopPropagation(),children:[T.jsxs("div",{className:"search-field",children:[T.jsx(S3,{size:20,className:"search-field-icon"}),T.jsx("input",{ref:c,className:"search-modal-input",value:r,placeholder:"Search sessions…",onChange:p=>a(p.target.value),onKeyDown:m}),T.jsx("kbd",{className:"search-esc",children:"esc"})]}),T.jsx("div",{className:"search-results",children:d.length===0?T.jsx("p",{className:"search-empty",children:r.trim()?`No sessions match "${r}".`:"No sessions yet."}):d.map((p,E)=>T.jsxs("button",{className:`search-result ${E===u?"is-active":""}`,onMouseEnter:()=>l(E),onClick:()=>h(p.sessionId),children:[T.jsx("span",{className:"search-result-title",children:p.title}),T.jsx("span",{className:"search-result-agent",children:p.agentId??"kiro_default"})]},p.sessionId))})]})}),document.body)}function a9(e){const t=Math.round((Date.now()-Date.parse(e))/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;const n=Math.round(t/60);return n<24?`${n}h ago`:`${Math.round(n/24)}d ago`}function s9(e){if(!e)return"Unknown device";const t=/iPhone|iPad/.test(e)?"iOS":/Android/.test(e)?"Android":/Macintosh|Mac OS/.test(e)?"macOS":/Windows/.test(e)?"Windows":/Linux/.test(e)?"Linux":"Device",n=/Firefox/.test(e)?"Firefox":/Edg\//.test(e)?"Edge":/Chrome/.test(e)?"Chrome":/Safari/.test(e)?"Safari":"";return n?`${t} · ${n}`:t}function u9({onClose:e,onSelfRevoked:t}){const[n,r]=O.useState(null),[a,u]=O.useState(!1),l=()=>bt.devices().then(h=>r(h.devices)).catch(()=>r([]));O.useEffect(()=>{l()},[]);const c=async h=>{u(!0);try{if(await bt.revokeDevice(h.id),h.current){t();return}await l()}finally{u(!1)}},d=async()=>{u(!0);try{await bt.logoutAll(),t()}finally{u(!1)}};return zh.createPortal(T.jsx("div",{className:"search-backdrop",onClick:e,children:T.jsxs("div",{className:"search-modal",role:"dialog","aria-label":"Logged-in devices",onClick:h=>h.stopPropagation(),children:[T.jsxs("div",{className:"devices-head",children:[T.jsx("span",{className:"devices-title",children:"Logged-in devices"}),T.jsx("button",{className:"btn-ghost",onClick:e,children:"Close"})]}),T.jsx("div",{className:"devices-list",children:n===null?T.jsx("p",{className:"search-empty",children:"Loading…"}):n.length===0?T.jsx("p",{className:"search-empty",children:"No active devices."}):n.map(h=>T.jsxs("div",{className:"device-row",children:[T.jsxs("span",{className:"device-main",children:[T.jsxs("span",{className:"device-name",children:[s9(h.userAgent),h.current&&T.jsx("span",{className:"device-badge",children:"This device"})]}),T.jsxs("span",{className:"device-sub",children:["Active ",a9(h.lastSeenAt)]})]}),T.jsx("button",{className:"btn-ghost device-revoke",disabled:a,onClick:()=>c(h),children:h.current?"Log out":"Revoke"})]},h.id))}),n&&n.length>1&&T.jsx("div",{className:"devices-foot",children:T.jsx("button",{className:"btn-ghost device-revoke",disabled:a,onClick:d,children:"Log out all devices"})})]})}),document.body)}function l9({title:e,message:t,confirmLabel:n="Confirm",cancelLabel:r="Cancel",danger:a=!1,onConfirm:u,onCancel:l}){return O.useEffect(()=>{const c=d=>{d.key==="Escape"&&l()};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[l]),zh.createPortal(T.jsx("div",{className:"confirm-backdrop",onClick:c=>{c.target===c.currentTarget&&l()},children:T.jsxs("div",{className:"confirm-modal",role:"dialog","aria-modal":"true","aria-label":e,children:[T.jsx("h3",{className:"confirm-title",children:e}),t&&T.jsx("p",{className:"confirm-message",children:t}),T.jsxs("div",{className:"confirm-actions",children:[T.jsx("button",{className:"btn-ghost",onClick:l,children:r}),T.jsx("button",{className:a?"btn-danger":"btn-primary",onClick:u,autoFocus:!0,children:n})]})]})}),document.body)}function o9(e){const t=Date.parse(e);if(Number.isNaN(t))return"";const n=Math.round((Date.now()-t)/6e4);if(n<1)return"now";if(n<60)return`${n}m`;const r=Math.round(n/60);return r<24?`${r}h`:`${Math.round(r/24)}d`}function c9({sessions:e,activeId:t,loadingId:n,onOpen:r,onNew:a,onDelete:u,onRename:l,onLock:c}){const[d,h]=O.useState(!1),[m,p]=O.useState(!1),[E,x]=O.useState(!1),[C,_]=O.useState(null),[R,I]=O.useState(null),[M,j]=O.useState(null),[J,te]=O.useState("");O.useEffect(()=>{if(!C)return;const Z=()=>_(null);return document.addEventListener("click",Z),()=>document.removeEventListener("click",Z)},[C]),O.useEffect(()=>{if(!E)return;const Z=()=>x(!1);return document.addEventListener("click",Z),()=>document.removeEventListener("click",Z)},[E]);const W=Z=>{const re=J.trim();re&&l(Z,re),j(null)};return T.jsxs("aside",{className:"sidebar",children:[T.jsxs("header",{className:"sidebar-head",children:[T.jsxs("span",{className:"brand",children:[T.jsx("img",{className:"brand-logo",src:"/logo.svg",alt:""}),T.jsx("span",{className:"wordmark",children:"Casper"})]}),T.jsxs("div",{className:"sidebar-actions",children:[T.jsxs("div",{className:"account-menu",children:[T.jsx("button",{className:"iconbtn iconbtn-lg","aria-label":"Account",title:"Account",onClick:Z=>{Z.stopPropagation(),x(re=>!re)},children:T.jsx(Uv,{size:18})}),E&&T.jsxs("div",{className:"menu-list",onClick:Z=>Z.stopPropagation(),children:[T.jsx("button",{className:"menu-item",onClick:()=>{x(!1),p(!0)},children:"Devices"}),T.jsx("button",{className:"menu-item",onClick:()=>{x(!1),c()},children:"Lock app"})]})]}),T.jsx("button",{className:"iconbtn iconbtn-lg","aria-label":"Search sessions",onClick:()=>h(!0),children:T.jsx(S3,{size:20})}),T.jsx("button",{className:"iconbtn iconbtn-lg","aria-label":"New session",title:"New session",onClick:a,children:T.jsx(k3,{size:20})})]})]}),T.jsx("div",{className:"sidebar-list",children:e.length===0?T.jsx("p",{className:"sidebar-empty",children:"No sessions yet. Start one and it keeps running while you're away."}):e.map(Z=>T.jsxs("div",{className:`srow ${Z.sessionId===t?"is-active":""}`,children:[M===Z.sessionId?T.jsx("input",{className:"srow-rename",autoFocus:!0,onFocus:re=>re.currentTarget.select(),value:J,onChange:re=>te(re.target.value),onBlur:()=>W(Z.sessionId),onKeyDown:re=>{re.key==="Enter"&&W(Z.sessionId),re.key==="Escape"&&j(null)},onClick:re=>re.stopPropagation()}):T.jsx(Ph,{className:"srow-open",to:x3(Z.sessionId),onClick:re=>{re.metaKey||re.ctrlKey||re.shiftKey||re.altKey||r(Z.sessionId)},children:T.jsxs("span",{className:"srow-main",children:[T.jsx("span",{className:"srow-title",title:Z.title,children:Z.title}),T.jsxs("span",{className:"srow-sub",children:[T.jsx("span",{className:"srow-agent",children:Z.agentId??"kiro_default"}),T.jsx("span",{className:"srow-dot",children:"·"}),n===Z.sessionId&&T.jsx(fa,{size:11,className:"srow-spinner"}),T.jsx("span",{className:"srow-when",children:o9(Z.updatedAt)})]})]})}),T.jsxs("div",{className:"srow-menu",children:[T.jsx("button",{className:"iconbtn srow-menu-btn","aria-label":"Session actions",onClick:re=>{re.stopPropagation(),_(C===Z.sessionId?null:Z.sessionId)},children:"⋮"}),C===Z.sessionId&&T.jsxs("div",{className:"menu-list",onClick:re=>re.stopPropagation(),children:[T.jsx("button",{className:"menu-item",onClick:()=>{te(Z.title),j(Z.sessionId),_(null)},children:"Rename"}),T.jsx("button",{className:"menu-item menu-item-danger",onClick:()=>{_(null),I(Z.sessionId)},children:"Delete"})]})]})]},Z.sessionId))}),d&&T.jsx(i9,{sessions:e,onOpen:r,onClose:()=>h(!1)}),m&&T.jsx(u9,{onClose:()=>p(!1),onSelfRevoked:()=>{p(!1),c()}}),R&&T.jsx(l9,{title:"Delete session?",message:"This session and its history will be permanently deleted. This can't be undone.",confirmLabel:"Delete",danger:!0,onConfirm:()=>{const Z=R;I(null),u(Z)},onCancel:()=>I(null)})]})}function d9(e,t){if(e<=0)return{offset:0,limit:0};const n=Math.max(0,e-t);return{offset:n,limit:e-n}}function Mp(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,u=!1;for(;!u;){r===-1&&(r=n.length,u=!0);const l=n.slice(a,r).trim();(l||!u)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function A3(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const h9=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f9=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,m9={};function Pp(e,t){return(m9.jsx?f9:h9).test(e)}const p9=/[ \t\n\f\r]/g;function g9(e){return typeof e=="object"?e.type==="text"?Bp(e.value):!1:Bp(e)}function Bp(e){return e.replace(p9,"")===""}class Nu{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Nu.prototype.normal={};Nu.prototype.property={};Nu.prototype.space=void 0;function N3(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Nu(n,r,t)}function bu(e){return e.toLowerCase()}class Nn{constructor(t,n){this.attribute=n,this.property=t}}Nn.prototype.attribute="";Nn.prototype.booleanish=!1;Nn.prototype.boolean=!1;Nn.prototype.commaOrSpaceSeparated=!1;Nn.prototype.commaSeparated=!1;Nn.prototype.defined=!1;Nn.prototype.mustUseProperty=!1;Nn.prototype.number=!1;Nn.prototype.overloadedBoolean=!1;Nn.prototype.property="";Nn.prototype.spaceSeparated=!1;Nn.prototype.space=void 0;let y9=0;const Qe=ya(),Ft=ya(),zd=ya(),Ee=ya(),pt=ya(),da=ya(),Pn=ya();function ya(){return 2**++y9}const Hd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:Ft,commaOrSpaceSeparated:Pn,commaSeparated:da,number:Ee,overloadedBoolean:zd,spaceSeparated:pt},Symbol.toStringTag,{value:"Module"})),ed=Object.keys(Hd);class Hh extends Nn{constructor(t,n,r,a){let u=-1;if(super(t,n),Fp(this,"space",a),typeof r=="number")for(;++u<ed.length;){const l=ed[u];Fp(this,ed[u],(r&Hd[l])===Hd[l])}}}Hh.prototype.defined=!0;function Fp(e,t,n){n&&(e[t]=n)}function as(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const u=new Hh(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[bu(r)]=r,n[bu(u.attribute)]=r}return new Nu(t,n,e.space)}const _3=as({properties:{ariaActiveDescendant:null,ariaAtomic:Ft,ariaAutoComplete:null,ariaBusy:Ft,ariaChecked:Ft,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:pt,ariaCurrent:null,ariaDescribedBy:pt,ariaDetails:null,ariaDisabled:Ft,ariaDropEffect:pt,ariaErrorMessage:null,ariaExpanded:Ft,ariaFlowTo:pt,ariaGrabbed:Ft,ariaHasPopup:null,ariaHidden:Ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pt,ariaLevel:Ee,ariaLive:null,ariaModal:Ft,ariaMultiLine:Ft,ariaMultiSelectable:Ft,ariaOrientation:null,ariaOwns:pt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Ft,ariaReadOnly:Ft,ariaRelevant:null,ariaRequired:Ft,ariaRoleDescription:pt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Ft,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function I3(e,t){return t in e?e[t]:t}function R3(e,t){return I3(e,t.toLowerCase())}const v9=as({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:da,acceptCharset:pt,accessKey:pt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alpha:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:pt,autoFocus:Qe,autoPlay:Qe,blocking:pt,capture:null,charSet:null,checked:Qe,cite:null,className:pt,closedBy:null,colorSpace:null,cols:Ee,colSpan:Ee,command:null,commandFor:null,content:null,contentEditable:Ft,controls:Qe,controlsList:pt,coords:Ee|da,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:zd,draggable:Ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:pt,height:Ee,hidden:zd,high:Ee,href:null,hrefLang:null,htmlFor:pt,httpEquiv:pt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:pt,itemRef:pt,itemScope:Qe,itemType:pt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,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:Qe,optimum:Ee,pattern:null,ping:pt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:pt,required:Qe,reversed:Qe,rows:Ee,rowSpan:Ee,sandbox:pt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootCustomElementRegistry:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shadowRootSerializable:Qe,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:Ft,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Ft,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Qe,disablePictureInPicture:Qe,disableRemotePlayback:Qe,exportParts:da,part:pt,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:R3}),b9=as({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",maskType:"mask-type",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:Pn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:pt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:da,g2:da,glyphName:da,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Pn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pn,rev:Pn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pn,requiredFeatures:Pn,requiredFonts:Pn,requiredFormats:Pn,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Pn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:I3}),L3=as({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()}}),D3=as({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:R3}),O3=as({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),E9={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"},x9=/[A-Z]/g,zp=/-[a-z]/g,T9=/^data[-\w.:]+$/i;function Oo(e,t){const n=bu(t);let r=t,a=Nn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&T9.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(zp,k9);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!zp.test(u)){let l=u.replace(x9,w9);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Hh}return new a(r,t)}function w9(e){return"-"+e.toLowerCase()}function k9(e){return e.charAt(1).toUpperCase()}const _u=N3([_3,v9,L3,D3,O3],"html"),Oi=N3([_3,b9,L3,D3,O3],"svg");function Hp(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function M3(e){return e.join(" ").trim()}var Va={},td,Up;function S9(){if(Up)return td;Up=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
56
+ `,h="/",m="*",p="",E="comment",x="declaration";function C(R,I){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];I=I||{};var M=1,j=1;function J(ge){var ue=ge.match(t);ue&&(M+=ue.length);var Re=ge.lastIndexOf(d);j=~Re?ge.length-Re:j+ge.length}function te(){var ge={line:M,column:j};return function(ue){return ue.position=new W(ge),ie(),ue}}function W(ge){this.start=ge,this.end={line:M,column:j},this.source=I.source}W.prototype.content=R;function Z(ge){var ue=new Error(I.source+":"+M+":"+j+": "+ge);if(ue.reason=ge,ue.filename=I.source,ue.line=M,ue.column=j,ue.source=R,!I.silent)throw ue}function re(ge){var ue=ge.exec(R);if(ue){var Re=ue[0];return J(Re),R=R.slice(Re.length),ue}}function ie(){re(n)}function Y(ge){var ue;for(ge=ge||[];ue=se();)ue!==!1&&ge.push(ue);return ge}function se(){var ge=te();if(!(h!=R.charAt(0)||m!=R.charAt(1))){for(var ue=2;p!=R.charAt(ue)&&(m!=R.charAt(ue)||h!=R.charAt(ue+1));)++ue;if(ue+=2,p===R.charAt(ue-1))return Z("End of comment missing");var Re=R.slice(2,ue-2);return j+=2,J(Re),R=R.slice(ue),j+=2,ge({type:E,comment:Re})}}function le(){var ge=te(),ue=re(r);if(ue){if(se(),!re(a))return Z("property missing ':'");var Re=re(u),Le=ge({type:x,property:_(ue[0].replace(e,p)),value:Re?_(Re[0].replace(e,p)):p});return re(l),Le}}function Me(){var ge=[];Y(ge);for(var ue;ue=le();)ue!==!1&&(ge.push(ue),Y(ge));return ge}return ie(),Me()}function _(R){return R?R.replace(c,p):p}return td=C,td}var jp;function C9(){if(jp)return Va;jp=1;var e=Va&&Va.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Va,"__esModule",{value:!0}),Va.default=n;const t=e(S9());function n(r,a){let u=null;if(!r||typeof r!="string")return u;const l=(0,t.default)(r),c=typeof a=="function";return l.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:m}=d;c?a(h,m,d):m&&(u=u||{},u[h]=m)}),u}return Va}var Js={},qp;function A9(){if(qp)return Js;qp=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,u=function(h){return!h||n.test(h)||e.test(h)},l=function(h,m){return m.toUpperCase()},c=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),u(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(a,c):h=h.replace(r,c),h.replace(t,l))};return Js.camelCase=d,Js}var Zs,$p;function N9(){if($p)return Zs;$p=1;var e=Zs&&Zs.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(C9()),n=A9();function r(a,u){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(c,d){c&&d&&(l[(0,n.camelCase)(c,u)]=d)}),l}return r.default=r,Zs=r,Zs}var _9=N9();const I9=Sh(_9),Mo=P3("end"),Ir=P3("start");function P3(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 B3(e){const t=Ir(e),n=Mo(e);if(t&&n)return{start:t,end:n}}function lu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Wp(e.position):"start"in e||"end"in e?Wp(e):"line"in e||"column"in e?Ud(e):""}function Ud(e){return Yp(e&&e.line)+":"+Yp(e&&e.column)}function Wp(e){return Ud(e&&e.start)+"-"+Ud(e&&e.end)}function Yp(e){return e&&typeof e=="number"?e:1}class cn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof t=="string"?a=t:!u.cause&&t&&(l=!0,a=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?u.ruleId=r:(u.source=r.slice(0,d),u.ruleId=r.slice(d+1))}if(!u.place&&u.ancestors&&u.ancestors){const d=u.ancestors[u.ancestors.length-1];d&&(u.place=d.position)}const c=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.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=lu(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="";cn.prototype.name="";cn.prototype.reason="";cn.prototype.message="";cn.prototype.stack="";cn.prototype.column=void 0;cn.prototype.line=void 0;cn.prototype.ancestors=void 0;cn.prototype.cause=void 0;cn.prototype.fatal=void 0;cn.prototype.place=void 0;cn.prototype.ruleId=void 0;cn.prototype.source=void 0;const Uh={}.hasOwnProperty,R9=new Map,L9=/[A-Z]/g,D9=new Set(["table","tbody","thead","tfoot","tr"]),O9=new Set(["td","th"]),F3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function M9(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=q9(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=j9(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"?Oi:_u,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=z3(a,e,void 0);return u&&typeof u!="string"?u:a.create(e,a.Fragment,{children:u||void 0},void 0)}function z3(e,t,n){if(t.type==="element")return P9(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return B9(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return z9(e,t,n);if(t.type==="mdxjsEsm")return F9(e,t);if(t.type==="root")return H9(e,t,n);if(t.type==="text")return U9(e,t)}function P9(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Oi,e.schema=a),e.ancestors.push(t);const u=U3(e,t.tagName,!1),l=$9(e,t);let c=qh(e,t);return D9.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!g9(d):!0})),H3(e,l,u,t),jh(l,c),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}function B9(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)}Eu(e,t.position)}function F9(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Eu(e,t.position)}function z9(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Oi,e.schema=a),e.ancestors.push(t);const u=t.name===null?e.Fragment:U3(e,t.name,!0),l=W9(e,t),c=qh(e,t);return H3(e,l,u,t),jh(l,c),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}function H9(e,t,n){const r={};return jh(r,qh(e,t)),e.create(t,e.Fragment,r,n)}function U9(e,t){return t.value}function H3(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function jh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function j9(e,t,n){return r;function r(a,u,l,c){const h=Array.isArray(l.children)?n:t;return c?h(u,l,c):h(u,l)}}function q9(e,t){return n;function n(r,a,u,l){const c=Array.isArray(u.children),d=Ir(r);return t(a,u,l,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function $9(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Uh.call(t.properties,a)){const u=Y9(e,a,t.properties[a]);if(u){const[l,c]=u;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&O9.has(t.tagName)?r=c:n[l]=c}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function W9(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const l=u.expression;l.type;const c=l.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Eu(e,t.position);else{const a=r.name;let u;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,u=e.evaluater.evaluateExpression(c.expression)}else Eu(e,t.position);else u=r.value===null?!0:r.value;n[a]=u}return n}function qh(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:R9;for(;++r<t.children.length;){const u=t.children[r];let l;if(e.passKeys){const d=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(d){const h=a.get(d)||0;l=d+"-"+h,a.set(d,h+1)}}const c=z3(e,u,l);c!==void 0&&n.push(c)}return n}function Y9(e,t,n){const r=Oo(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?A3(n):M3(n)),r.property==="style"){let a=typeof n=="object"?n:V9(e,String(n));return e.stylePropertyNameCase==="css"&&(a=G9(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?E9[r.property]||r.property:r.attribute,n]}}function V9(e,t){try{return I9(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new cn("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=F3+"#cannot-parse-style-attribute",a}}function U3(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let u=-1,l;for(;++u<a.length;){const c=Pp(a[u])?{type:"Identifier",name:a[u]}:{type:"Literal",value:a[u]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(u&&c.type==="Literal"),optional:!1}:c}r=l}else r=Pp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Uh.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Eu(e)}function Eu(e,t){const n=new cn("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=F3+"#cannot-handle-mdx-estrees-without-createevaluater",n}function G9(e){const t={};let n;for(n in e)Uh.call(e,n)&&(t[Q9(n)]=e[n]);return t}function Q9(e){let t=e.replace(L9,X9);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function X9(e){return"-"+e.toLowerCase()}const nd={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"]},K9={};function $h(e,t){const n=K9,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return j3(e,r,a)}function j3(e,t,n){if(J9(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 Vp(e.children,t,n)}return Array.isArray(e)?Vp(e,t,n):""}function Vp(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=j3(e[a],t,n);return r.join("")}function J9(e){return!!(e&&typeof e=="object")}const Gp=document.createElement("i");function Wh(e){const t="&"+e+";";Gp.innerHTML=t;const n=Gp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Bn(e,t,n,r){const a=e.length;let u=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);u<r.length;)l=r.slice(u,u+1e4),l.unshift(t,0),e.splice(...l),u+=1e4,t+=1e4}function Xn(e,t){return e.length>0?(Bn(e,e.length,0,t),e):t}const Qp={}.hasOwnProperty;function q3(e){const t={};let n=-1;for(;++n<e.length;)Z9(t,e[n]);return t}function Z9(e,t){let n;for(n in t){const a=(Qp.call(e,n)?e[n]:void 0)||(e[n]={}),u=t[n];let l;if(u)for(l in u){Qp.call(a,l)||(a[l]=[]);const c=u[l];eb(a[l],Array.isArray(c)?c:c?[c]:[])}}}function eb(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Bn(e,0,0,r)}function $3(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 hr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gn=Mi(/[A-Za-z]/),ln=Mi(/[\dA-Za-z]/),tb=Mi(/[#-'*+\--9=?A-Z^-~]/);function yo(e){return e!==null&&(e<32||e===127)}const jd=Mi(/\d/),nb=Mi(/[\dA-Fa-f]/),rb=Mi(/[!-/:-@[-`{-~]/);function ze(e){return e!==null&&e<-2}function gt(e){return e!==null&&(e<0||e===32)}function it(e){return e===-2||e===-1||e===32}const Po=Mi(new RegExp("\\p{P}|\\p{S}","u")),ma=Mi(/\s/);function Mi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ss(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const u=e.charCodeAt(n);let l="";if(u===37&&ln(e.charCodeAt(n+1))&&ln(e.charCodeAt(n+2)))a=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(l=String.fromCharCode(u));else if(u>55295&&u<57344){const c=e.charCodeAt(n+1);u<56320&&c>56319&&c<57344?(l=String.fromCharCode(u,c),a=1):l="�"}else l=String.fromCharCode(u);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),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 u=0;return l;function l(d){return it(d)?(e.enter(n),c(d)):t(d)}function c(d){return it(d)&&u++<a?(e.consume(d),c):(e.exit(n),t(d))}}const ib={tokenize:ab};function ab(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"),u(c)}function u(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return ze(c)?(e.consume(c),e.exit("chunkText"),u):(e.consume(c),l)}}const sb={tokenize:ub},Xp={tokenize:lb};function ub(e){const t=this,n=[];let r=0,a,u,l;return c;function c(j){if(r<n.length){const J=n[r];return t.containerState=J[1],e.attempt(J[0].continuation,d,h)(j)}return h(j)}function d(j){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&M();const J=t.events.length;let te=J,W;for(;te--;)if(t.events[te][0]==="exit"&&t.events[te][1].type==="chunkFlow"){W=t.events[te][1].end;break}I(r);let Z=J;for(;Z<t.events.length;)t.events[Z][1].end={...W},Z++;return Bn(t.events,te+1,0,t.events.slice(J)),t.events.length=Z,h(j)}return c(j)}function h(j){if(r===n.length){if(!a)return E(j);if(a.currentConstruct&&a.currentConstruct.concrete)return C(j);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xp,m,p)(j)}function m(j){return a&&M(),I(r),E(j)}function p(j){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,C(j)}function E(j){return t.containerState={},e.attempt(Xp,x,C)(j)}function x(j){return r++,n.push([t.currentConstruct,t.containerState]),E(j)}function C(j){if(j===null){a&&M(),I(0),e.consume(j);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:u}),_(j)}function _(j){if(j===null){R(e.exit("chunkFlow"),!0),I(0),e.consume(j);return}return ze(j)?(e.consume(j),R(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(j),_)}function R(j,J){const te=t.sliceStream(j);if(J&&te.push(null),j.previous=u,u&&(u.next=j),u=j,a.defineSkip(j.start),a.write(te),t.parser.lazy[j.start.line]){let W=a.events.length;for(;W--;)if(a.events[W][1].start.offset<l&&(!a.events[W][1].end||a.events[W][1].end.offset>l))return;const Z=t.events.length;let re=Z,ie,Y;for(;re--;)if(t.events[re][0]==="exit"&&t.events[re][1].type==="chunkFlow"){if(ie){Y=t.events[re][1].end;break}ie=!0}for(I(r),W=Z;W<t.events.length;)t.events[W][1].end={...Y},W++;Bn(t.events,re+1,0,t.events.slice(Z)),t.events.length=W}}function I(j){let J=n.length;for(;J-- >j;){const te=n[J];t.containerState=te[1],te[0].exit.call(t,e)}n.length=j}function M(){a.write([null]),u=void 0,a=void 0,t.containerState._closeFlow=void 0}}function lb(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 Ja(e){if(e===null||gt(e)||ma(e))return 1;if(Po(e))return 2}function Bo(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const u=e[a].resolveAll;u&&!r.includes(u)&&(t=u(t,n),r.push(u))}return t}const qd={name:"attention",resolveAll:ob,tokenize:cb};function ob(e,t){let n=-1,r,a,u,l,c,d,h,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},E={...e[n][1].start};Kp(p,-d),Kp(E,d),l={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},u={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Xn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=Xn(h,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",u,t]]),h=Xn(h,Bo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=Xn(h,[["exit",u,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,h=Xn(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Bn(e,r-1,n-r+3,h),n=r+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function cb(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Ja(r);let u;return l;function l(d){return u=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===u)return e.consume(d),c;const h=e.exit("attentionSequence"),m=Ja(d),p=!m||m===2&&a||n.includes(d),E=!a||a===2&&m||n.includes(r);return h._open=!!(u===42?p:p&&(a||!E)),h._close=!!(u===42?E:E&&(m||!p)),t(d)}}function Kp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const db={name:"autolink",tokenize:hb};function hb(e,t,n){let r=0;return a;function a(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(x){return gn(x)?(e.consume(x),l):x===64?n(x):h(x)}function l(x){return x===43||x===45||x===46||ln(x)?(r=1,c(x)):h(x)}function c(x){return x===58?(e.consume(x),r=0,d):(x===43||x===45||x===46||ln(x))&&r++<32?(e.consume(x),c):(r=0,h(x))}function d(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||yo(x)?n(x):(e.consume(x),d)}function h(x){return x===64?(e.consume(x),m):tb(x)?(e.consume(x),h):n(x)}function m(x){return ln(x)?p(x):n(x)}function p(x){return x===46?(e.consume(x),r=0,m):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):E(x)}function E(x){if((x===45||ln(x))&&r++<63){const C=x===45?E:p;return e.consume(x),C}return n(x)}}const Iu={partial:!0,tokenize:fb};function fb(e,t,n){return r;function r(u){return it(u)?rt(e,a,"linePrefix")(u):a(u)}function a(u){return u===null||ze(u)?t(u):n(u)}}const W3={continuation:{tokenize:pb},exit:gb,name:"blockQuote",tokenize:mb};function mb(e,t,n){const r=this;return a;function a(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),u}return n(l)}function u(l){return it(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function pb(e,t,n){const r=this;return a;function a(l){return it(l)?rt(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):u(l)}function u(l){return e.attempt(W3,t,n)(l)}}function gb(e){e.exit("blockQuote")}const Y3={name:"characterEscape",tokenize:yb};function yb(e,t,n){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),a}function a(u){return rb(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}const V3={name:"characterReference",tokenize:vb};function vb(e,t,n){const r=this;let a=0,u,l;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"),h):(e.enter("characterReferenceValue"),u=31,l=ln,m(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,l=nb,m):(e.enter("characterReferenceValue"),u=7,l=jd,m(p))}function m(p){if(p===59&&a){const E=e.exit("characterReferenceValue");return l===ln&&!Wh(r.sliceSerialize(E))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(p)&&a++<u?(e.consume(p),m):n(p)}}const Jp={partial:!0,tokenize:Eb},Zp={concrete:!0,name:"codeFenced",tokenize:bb};function bb(e,t,n){const r=this,a={partial:!0,tokenize:te};let u=0,l=0,c;return d;function d(W){return h(W)}function h(W){const Z=r.events[r.events.length-1];return u=Z&&Z[1].type==="linePrefix"?Z[2].sliceSerialize(Z[1],!0).length:0,c=W,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(W)}function m(W){return W===c?(l++,e.consume(W),m):l<3?n(W):(e.exit("codeFencedFenceSequence"),it(W)?rt(e,p,"whitespace")(W):p(W))}function p(W){return W===null||ze(W)?(e.exit("codeFencedFence"),r.interrupt?t(W):e.check(Jp,_,J)(W)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(W))}function E(W){return W===null||ze(W)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(W)):it(W)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rt(e,x,"whitespace")(W)):W===96&&W===c?n(W):(e.consume(W),E)}function x(W){return W===null||ze(W)?p(W):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(W))}function C(W){return W===null||ze(W)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(W)):W===96&&W===c?n(W):(e.consume(W),C)}function _(W){return e.attempt(a,J,R)(W)}function R(W){return e.enter("lineEnding"),e.consume(W),e.exit("lineEnding"),I}function I(W){return u>0&&it(W)?rt(e,M,"linePrefix",u+1)(W):M(W)}function M(W){return W===null||ze(W)?e.check(Jp,_,J)(W):(e.enter("codeFlowValue"),j(W))}function j(W){return W===null||ze(W)?(e.exit("codeFlowValue"),M(W)):(e.consume(W),j)}function J(W){return e.exit("codeFenced"),t(W)}function te(W,Z,re){let ie=0;return Y;function Y(ue){return W.enter("lineEnding"),W.consume(ue),W.exit("lineEnding"),se}function se(ue){return W.enter("codeFencedFence"),it(ue)?rt(W,le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue):le(ue)}function le(ue){return ue===c?(W.enter("codeFencedFenceSequence"),Me(ue)):re(ue)}function Me(ue){return ue===c?(ie++,W.consume(ue),Me):ie>=l?(W.exit("codeFencedFenceSequence"),it(ue)?rt(W,ge,"whitespace")(ue):ge(ue)):re(ue)}function ge(ue){return ue===null||ze(ue)?(W.exit("codeFencedFence"),Z(ue)):re(ue)}}}function Eb(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u)}function u(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const rd={name:"codeIndented",tokenize:Tb},xb={partial:!0,tokenize:wb};function Tb(e,t,n){const r=this;return a;function a(h){return e.enter("codeIndented"),rt(e,u,"linePrefix",5)(h)}function u(h){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?d(h):ze(h)?e.attempt(xb,l,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||ze(h)?(e.exit("codeFlowValue"),l(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function wb(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):rt(e,u,"linePrefix",5)(l)}function u(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):ze(l)?a(l):n(l)}}const kb={name:"codeText",previous:Cb,resolve:Sb,tokenize:Ab};function Sb(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 Cb(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ab(e,t,n){let r=0,a,u;return l;function l(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?(u=e.enter("codeTextSequence"),a=0,m(p)):ze(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||ze(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),a++,m):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(u.type="codeTextData",h(p))}}class Nb{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 u=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&eu(this.left,r),u.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),eu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),eu(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);eu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);eu(this.left,n.reverse())}}}function eu(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 G3(e){const t={};let n=-1,r,a,u,l,c,d,h;const m=new Nb(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,u=0,u<d.length&&d[u][1].type==="lineEndingBlank"&&(u+=2),u<d.length&&d[u][1].type==="content"))for(;++u<d.length&&d[u][1].type!=="content";)d[u][1].type==="chunkText"&&(d[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,_b(m,n)),n=t[n],h=!0);else if(r[1]._container){for(u=n,a=void 0;u--;)if(l=m.get(u),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=u);else if(!(l[1].type==="linePrefix"||l[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 Bn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function _b(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const u=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,d=[],h={};let m,p,E=-1,x=n,C=0,_=0;const R=[_];for(;x;){for(;e.get(++a)[1]!==x;);u.push(a),x._tokenizer||(m=r.sliceStream(x),x.next||m.push(null),p&&l.defineSkip(x.start),x._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(m),x._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),p=x,x=x.next}for(x=n;++E<c.length;)c[E][0]==="exit"&&c[E-1][0]==="enter"&&c[E][1].type===c[E-1][1].type&&c[E][1].start.line!==c[E][1].end.line&&(_=E+1,R.push(_),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(l.events=[],x?(x._tokenizer=void 0,x.previous=void 0):R.pop(),E=R.length;E--;){const I=c.slice(R[E],R[E+1]),M=u.pop();d.push([M,M+I.length-1]),e.splice(M,2,I)}for(d.reverse(),E=-1;++E<d.length;)h[C+d[E][0]]=C+d[E][1],C+=d[E][1]-d[E][0]-1;return h}const Ib={resolve:Lb,tokenize:Db},Rb={partial:!0,tokenize:Ob};function Lb(e){return G3(e),e}function Db(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?u(c):ze(c)?e.check(Rb,l,u)(c):(e.consume(c),a)}function u(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Ob(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),rt(e,u,"linePrefix")}function u(l){if(l===null||ze(l))return n(l);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(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Q3(e,t,n,r,a,u,l,c,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return p;function p(I){return I===60?(e.enter(r),e.enter(a),e.enter(u),e.consume(I),e.exit(u),E):I===null||I===32||I===41||yo(I)?n(I):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),_(I))}function E(I){return I===62?(e.enter(u),e.consume(I),e.exit(u),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),x(I))}function x(I){return I===62?(e.exit("chunkString"),e.exit(c),E(I)):I===null||I===60||ze(I)?n(I):(e.consume(I),I===92?C:x)}function C(I){return I===60||I===62||I===92?(e.consume(I),x):x(I)}function _(I){return!m&&(I===null||I===41||gt(I))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(I)):m<h&&I===40?(e.consume(I),m++,_):I===41?(e.consume(I),m--,_):I===null||I===32||I===40||yo(I)?n(I):(e.consume(I),I===92?R:_)}function R(I){return I===40||I===41||I===92?(e.consume(I),_):_(I)}}function X3(e,t,n,r,a,u){const l=this;let c=0,d;return h;function h(x){return e.enter(r),e.enter(a),e.consume(x),e.exit(a),e.enter(u),m}function m(x){return c>999||x===null||x===91||x===93&&!d||x===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(x):x===93?(e.exit(u),e.enter(a),e.consume(x),e.exit(a),e.exit(r),t):ze(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||x===91||x===93||ze(x)||c++>999?(e.exit("chunkString"),m(x)):(e.consume(x),d||(d=!it(x)),x===92?E:p)}function E(x){return x===91||x===92||x===93?(e.consume(x),c++,p):p(x)}}function K3(e,t,n,r,a,u){let l;return c;function c(E){return E===34||E===39||E===40?(e.enter(r),e.enter(a),e.consume(E),e.exit(a),l=E===40?41:E,d):n(E)}function d(E){return E===l?(e.enter(a),e.consume(E),e.exit(a),e.exit(r),t):(e.enter(u),h(E))}function h(E){return E===l?(e.exit(u),d(l)):E===null?n(E):ze(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),rt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===l||E===null||ze(E)?(e.exit("chunkString"),h(E)):(e.consume(E),E===92?p:m)}function p(E){return E===l||E===92?(e.consume(E),m):m(E)}}function ou(e,t){let n;return r;function r(a){return ze(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):it(a)?rt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Mb={name:"definition",tokenize:Bb},Pb={partial:!0,tokenize:Fb};function Bb(e,t,n){const r=this;let a;return u;function u(x){return e.enter("definition"),l(x)}function l(x){return X3.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function c(x){return a=hr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),d):n(x)}function d(x){return gt(x)?ou(e,h)(x):h(x)}function h(x){return Q3(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(Pb,p,p)(x)}function p(x){return it(x)?rt(e,E,"whitespace")(x):E(x)}function E(x){return x===null||ze(x)?(e.exit("definition"),r.parser.defined.push(a),t(x)):n(x)}}function Fb(e,t,n){return r;function r(c){return gt(c)?ou(e,a)(c):n(c)}function a(c){return K3(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function u(c){return it(c)?rt(e,l,"whitespace")(c):l(c)}function l(c){return c===null||ze(c)?t(c):n(c)}}const zb={name:"hardBreakEscape",tokenize:Hb};function Hb(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),a}function a(u){return ze(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}const Ub={name:"headingAtx",resolve:jb,tokenize:qb};function jb(e,t){let n=e.length-2,r=3,a,u;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},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Bn(e,r,n-r+1,[["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t]])),e}function qb(e,t,n){let r=0;return a;function a(m){return e.enter("atxHeading"),u(m)}function u(m){return e.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&r++<6?(e.consume(m),l):m===null||gt(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||ze(m)?(e.exit("atxHeading"),t(m)):it(m)?rt(e,c,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function h(m){return m===null||m===35||gt(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const $b=["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"],e2=["pre","script","style","textarea"],Wb={concrete:!0,name:"htmlFlow",resolveTo:Gb,tokenize:Qb},Yb={partial:!0,tokenize:Kb},Vb={partial:!0,tokenize:Xb};function Gb(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 Qb(e,t,n){const r=this;let a,u,l,c,d;return h;function h(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),E):L===47?(e.consume(L),u=!0,_):L===63?(e.consume(L),a=3,r.interrupt?t:A):gn(L)?(e.consume(L),l=String.fromCharCode(L),R):n(L)}function E(L){return L===45?(e.consume(L),a=2,x):L===91?(e.consume(L),a=5,c=0,C):gn(L)?(e.consume(L),a=4,r.interrupt?t:A):n(L)}function x(L){return L===45?(e.consume(L),r.interrupt?t:A):n(L)}function C(L){const Se="CDATA[";return L===Se.charCodeAt(c++)?(e.consume(L),c===Se.length?r.interrupt?t:le:C):n(L)}function _(L){return gn(L)?(e.consume(L),l=String.fromCharCode(L),R):n(L)}function R(L){if(L===null||L===47||L===62||gt(L)){const Se=L===47,He=l.toLowerCase();return!Se&&!u&&e2.includes(He)?(a=1,r.interrupt?t(L):le(L)):$b.includes(l.toLowerCase())?(a=6,Se?(e.consume(L),I):r.interrupt?t(L):le(L)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):u?M(L):j(L))}return L===45||ln(L)?(e.consume(L),l+=String.fromCharCode(L),R):n(L)}function I(L){return L===62?(e.consume(L),r.interrupt?t:le):n(L)}function M(L){return it(L)?(e.consume(L),M):Y(L)}function j(L){return L===47?(e.consume(L),Y):L===58||L===95||gn(L)?(e.consume(L),J):it(L)?(e.consume(L),j):Y(L)}function J(L){return L===45||L===46||L===58||L===95||ln(L)?(e.consume(L),J):te(L)}function te(L){return L===61?(e.consume(L),W):it(L)?(e.consume(L),te):j(L)}function W(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),d=L,Z):it(L)?(e.consume(L),W):re(L)}function Z(L){return L===d?(e.consume(L),d=null,ie):L===null||ze(L)?n(L):(e.consume(L),Z)}function re(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||gt(L)?te(L):(e.consume(L),re)}function ie(L){return L===47||L===62||it(L)?j(L):n(L)}function Y(L){return L===62?(e.consume(L),se):n(L)}function se(L){return L===null||ze(L)?le(L):it(L)?(e.consume(L),se):n(L)}function le(L){return L===45&&a===2?(e.consume(L),Re):L===60&&a===1?(e.consume(L),Le):L===62&&a===4?(e.consume(L),q):L===63&&a===3?(e.consume(L),A):L===93&&a===5?(e.consume(L),_e):ze(L)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Yb,z,Me)(L)):L===null||ze(L)?(e.exit("htmlFlowData"),Me(L)):(e.consume(L),le)}function Me(L){return e.check(Vb,ge,z)(L)}function ge(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ue}function ue(L){return L===null||ze(L)?Me(L):(e.enter("htmlFlowData"),le(L))}function Re(L){return L===45?(e.consume(L),A):le(L)}function Le(L){return L===47?(e.consume(L),l="",oe):le(L)}function oe(L){if(L===62){const Se=l.toLowerCase();return e2.includes(Se)?(e.consume(L),q):le(L)}return gn(L)&&l.length<8?(e.consume(L),l+=String.fromCharCode(L),oe):le(L)}function _e(L){return L===93?(e.consume(L),A):le(L)}function A(L){return L===62?(e.consume(L),q):L===45&&a===2?(e.consume(L),A):le(L)}function q(L){return L===null||ze(L)?(e.exit("htmlFlowData"),z(L)):(e.consume(L),q)}function z(L){return e.exit("htmlFlow"),t(L)}}function Xb(e,t,n){const r=this;return a;function a(l){return ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):n(l)}function u(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Kb(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Iu,t,n)}}const Jb={name:"htmlText",tokenize:Zb};function Zb(e,t,n){const r=this;let a,u,l;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),h):A===47?(e.consume(A),te):A===63?(e.consume(A),j):gn(A)?(e.consume(A),re):n(A)}function h(A){return A===45?(e.consume(A),m):A===91?(e.consume(A),u=0,C):gn(A)?(e.consume(A),M):n(A)}function m(A){return A===45?(e.consume(A),x):n(A)}function p(A){return A===null?n(A):A===45?(e.consume(A),E):ze(A)?(l=p,Le(A)):(e.consume(A),p)}function E(A){return A===45?(e.consume(A),x):p(A)}function x(A){return A===62?Re(A):A===45?E(A):p(A)}function C(A){const q="CDATA[";return A===q.charCodeAt(u++)?(e.consume(A),u===q.length?_:C):n(A)}function _(A){return A===null?n(A):A===93?(e.consume(A),R):ze(A)?(l=_,Le(A)):(e.consume(A),_)}function R(A){return A===93?(e.consume(A),I):_(A)}function I(A){return A===62?Re(A):A===93?(e.consume(A),I):_(A)}function M(A){return A===null||A===62?Re(A):ze(A)?(l=M,Le(A)):(e.consume(A),M)}function j(A){return A===null?n(A):A===63?(e.consume(A),J):ze(A)?(l=j,Le(A)):(e.consume(A),j)}function J(A){return A===62?Re(A):j(A)}function te(A){return gn(A)?(e.consume(A),W):n(A)}function W(A){return A===45||ln(A)?(e.consume(A),W):Z(A)}function Z(A){return ze(A)?(l=Z,Le(A)):it(A)?(e.consume(A),Z):Re(A)}function re(A){return A===45||ln(A)?(e.consume(A),re):A===47||A===62||gt(A)?ie(A):n(A)}function ie(A){return A===47?(e.consume(A),Re):A===58||A===95||gn(A)?(e.consume(A),Y):ze(A)?(l=ie,Le(A)):it(A)?(e.consume(A),ie):Re(A)}function Y(A){return A===45||A===46||A===58||A===95||ln(A)?(e.consume(A),Y):se(A)}function se(A){return A===61?(e.consume(A),le):ze(A)?(l=se,Le(A)):it(A)?(e.consume(A),se):ie(A)}function le(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),a=A,Me):ze(A)?(l=le,Le(A)):it(A)?(e.consume(A),le):(e.consume(A),ge)}function Me(A){return A===a?(e.consume(A),a=void 0,ue):A===null?n(A):ze(A)?(l=Me,Le(A)):(e.consume(A),Me)}function ge(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||gt(A)?ie(A):(e.consume(A),ge)}function ue(A){return A===47||A===62||gt(A)?ie(A):n(A)}function Re(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function Le(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),oe}function oe(A){return it(A)?rt(e,_e,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):_e(A)}function _e(A){return e.enter("htmlTextData"),l(A)}}const Yh={name:"labelEnd",resolveAll:rE,resolveTo:iE,tokenize:aE},eE={tokenize:sE},tE={tokenize:uE},nE={tokenize:lE};function rE(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&&Bn(e,0,e.length,n),e}function iE(e,t){let n=e.length,r=0,a,u,l,c;for(;n--;)if(a=e[n][1],u){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(u=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[u][1].start},end:{...e[l][1].end}},m={type:"labelText",start:{...e[u+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",d,t],["enter",h,t]],c=Xn(c,e.slice(u+1,u+r+3)),c=Xn(c,[["enter",m,t]]),c=Xn(c,Bo(t.parser.constructs.insideSpan.null,e.slice(u+r+4,l-3),t)),c=Xn(c,[["exit",m,t],e[l-2],e[l-1],["exit",h,t]]),c=Xn(c,e.slice(l+1)),c=Xn(c,[["exit",d,t]]),Bn(e,u,e.length,c),e}function aE(e,t,n){const r=this;let a=r.events.length,u,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){u=r.events[a][1];break}return c;function c(E){return u?u._inactive?p(E):(l=r.parser.defined.includes(hr(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),d):n(E)}function d(E){return E===40?e.attempt(eE,m,l?m:p)(E):E===91?e.attempt(tE,m,l?h:p)(E):l?m(E):p(E)}function h(E){return e.attempt(nE,m,p)(E)}function m(E){return t(E)}function p(E){return u._balanced=!0,n(E)}}function sE(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 gt(p)?ou(e,u)(p):u(p)}function u(p){return p===41?m(p):Q3(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function l(p){return gt(p)?ou(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?K3(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return gt(p)?ou(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 uE(e,t,n){const r=this;return a;function a(c){return X3.call(r,e,u,l,"reference","referenceMarker","referenceString")(c)}function u(c){return r.parser.defined.includes(hr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function lE(e,t,n){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),a}function a(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):n(u)}}const oE={name:"labelStartImage",resolveAll:Yh.resolveAll,tokenize:cE};function cE(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),u}function u(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const dE={name:"labelStartLink",resolveAll:Yh.resolveAll,tokenize:hE};function hE(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),u}function u(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const id={name:"lineEnding",tokenize:fE};function fE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),rt(e,t,"linePrefix")}}const oo={name:"thematicBreak",tokenize:mE};function mE(e,t,n){let r=0,a;return u;function u(h){return e.enter("thematicBreak"),l(h)}function l(h){return a=h,c(h)}function c(h){return h===a?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||ze(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===a?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),it(h)?rt(e,c,"whitespace")(h):c(h))}}const Cn={continuation:{tokenize:vE},exit:EE,name:"list",tokenize:yE},pE={partial:!0,tokenize:xE},gE={partial:!0,tokenize:bE};function yE(e,t,n){const r=this,a=r.events[r.events.length-1];let u=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return c;function c(x){const C=r.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!r.containerState.marker||x===r.containerState.marker:jd(x)){if(r.containerState.type||(r.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(oo,n,h)(x):h(x);if(!r.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(x)}return n(x)}function d(x){return jd(x)&&++l<10?(e.consume(x),d):(!r.interrupt||l<2)&&(r.containerState.marker?x===r.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):n(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||x,e.check(Iu,r.interrupt?n:m,e.attempt(pE,E,p))}function m(x){return r.containerState.initialBlankLine=!0,u++,E(x)}function p(x){return it(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),E):n(x)}function E(x){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function vE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Iu,a,u);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rt(e,t,"listItemIndent",r.containerState.size+1)(c)}function u(c){return r.containerState.furtherBlankLines||!it(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gE,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,rt(e,e.attempt(Cn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function bE(e,t,n){const r=this;return rt(e,a,"listItemIndent",r.containerState.size+1);function a(u){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(u):n(u)}}function EE(e){e.exit(this.containerState.type)}function xE(e,t,n){const r=this;return rt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(u){const l=r.events[r.events.length-1];return!it(u)&&l&&l[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}const t2={name:"setextUnderline",resolveTo:TE,tokenize:wE};function TE(e,t){let n=e.length,r,a,u;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),!u&&e[n][1].type==="definition"&&(u=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",u?(e.splice(a,0,["enter",l,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end={...e[u][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function wE(e,t,n){const r=this;let a;return u;function u(h){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=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===a?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),it(h)?rt(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||ze(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const kE={tokenize:SE};function SE(e){const t=this,n=e.attempt(Iu,r,e.attempt(this.parser.constructs.flowInitial,a,rt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Ib,a)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const CE={resolveAll:Z3()},AE=J3("string"),NE=J3("text");function J3(e){return{resolveAll:Z3(e==="text"?_E:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],u=n.attempt(a,l,c);return l;function l(m){return h(m)?u(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 h(m)?(n.exit("data"),u(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const p=a[m];let E=-1;if(p)for(;++E<p.length;){const x=p[E];if(!x.previous||x.previous.call(r,r.previous))return!0}return!1}}}function Z3(e){return t;function t(n,r){let a=-1,u;for(;++a<=n.length;)u===void 0?n[a]&&n[a][1].type==="data"&&(u=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==u+2&&(n[u][1].end=n[a-1][1].end,n.splice(u+2,a-u-2),a=u+2),u=void 0);return e?e(n,r):n}}function _E(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 u=a.length,l=-1,c=0,d;for(;u--;){const h=a[u];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(h===-2)d=!0,c++;else if(h!==-1){u++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?l:r.start._bufferIndex+l,_index:r.start._index+u,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const IE={42:Cn,43:Cn,45:Cn,48:Cn,49:Cn,50:Cn,51:Cn,52:Cn,53:Cn,54:Cn,55:Cn,56:Cn,57:Cn,62:W3},RE={91:Mb},LE={[-2]:rd,[-1]:rd,32:rd},DE={35:Ub,42:oo,45:[t2,oo],60:Wb,61:t2,95:oo,96:Zp,126:Zp},OE={38:V3,92:Y3},ME={[-5]:id,[-4]:id,[-3]:id,33:oE,38:V3,42:qd,60:[db,Jb],91:dE,92:[zb,Y3],93:Yh,95:qd,96:kb},PE={null:[qd,CE]},BE={null:[42,95]},FE={null:[]},zE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:BE,contentInitial:RE,disable:FE,document:IE,flow:DE,flowInitial:LE,insideSpan:PE,string:OE,text:ME},Symbol.toStringTag,{value:"Module"}));function HE(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={},u=[];let l=[],c=[];const d={attempt:Z(te),check:Z(W),consume:M,enter:j,exit:J,interrupt:Z(W,{interrupt:!0})},h={code:null,containerState:{},defineSkip:_,events:[],now:C,parser:e,previous:null,sliceSerialize:E,sliceStream:x,write:p};let m=t.tokenize.call(h,d);return t.resolveAll&&u.push(t),h;function p(se){return l=Xn(l,se),R(),l[l.length-1]!==null?[]:(re(t,0),h.events=Bo(u,h.events,h),h.events)}function E(se,le){return jE(x(se),le)}function x(se){return UE(l,se)}function C(){const{_bufferIndex:se,_index:le,line:Me,column:ge,offset:ue}=r;return{_bufferIndex:se,_index:le,line:Me,column:ge,offset:ue}}function _(se){a[se.line]=se.column,Y()}function R(){let se;for(;r._index<l.length;){const le=l[r._index];if(typeof le=="string")for(se=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===se&&r._bufferIndex<le.length;)I(le.charCodeAt(r._bufferIndex));else I(le)}}function I(se){m=m(se)}function M(se){ze(se)?(r.line++,r.column=1,r.offset+=se===-3?2:1,Y()):se!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=se}function j(se,le){const Me=le||{};return Me.type=se,Me.start=C(),h.events.push(["enter",Me,h]),c.push(Me),Me}function J(se){const le=c.pop();return le.end=C(),h.events.push(["exit",le,h]),le}function te(se,le){re(se,le.from)}function W(se,le){le.restore()}function Z(se,le){return Me;function Me(ge,ue,Re){let Le,oe,_e,A;return Array.isArray(ge)?z(ge):"tokenize"in ge?z([ge]):q(ge);function q(Pe){return Ve;function Ve(Ke){const Ze=Ke!==null&&Pe[Ke],me=Ke!==null&&Pe.null,We=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(me)?me:me?[me]:[]];return z(We)(Ke)}}function z(Pe){return Le=Pe,oe=0,Pe.length===0?Re:L(Pe[oe])}function L(Pe){return Ve;function Ve(Ke){return A=ie(),_e=Pe,Pe.partial||(h.currentConstruct=Pe),Pe.name&&h.parser.constructs.disable.null.includes(Pe.name)?He():Pe.tokenize.call(le?Object.assign(Object.create(h),le):h,d,Se,He)(Ke)}}function Se(Pe){return se(_e,A),ue}function He(Pe){return A.restore(),++oe<Le.length?L(Le[oe]):Re}}}function re(se,le){se.resolveAll&&!u.includes(se)&&u.push(se),se.resolve&&Bn(h.events,le,h.events.length-le,se.resolve(h.events.slice(le),h)),se.resolveTo&&(h.events=se.resolveTo(h.events,h))}function ie(){const se=C(),le=h.previous,Me=h.currentConstruct,ge=h.events.length,ue=Array.from(c);return{from:ge,restore:Re};function Re(){r=se,h.previous=le,h.currentConstruct=Me,h.events.length=ge,c=ue,Y()}}function Y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function UE(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,u=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,u)];else{if(l=e.slice(n,a),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}u>0&&l.push(e[a].slice(0,u))}return l}function jE(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const u=e[n];let l;if(typeof u=="string")l=u;else switch(u){case-5:{l="\r";break}case-4:{l=`
57
+ `;break}case-3:{l=`\r
58
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(u)}a=u===-2,r.push(l)}return r.join("")}function qE(e){const r={constructs:q3([zE,...(e||{}).extensions||[]]),content:a(ib),defined:[],document:a(sb),flow:a(kE),lazy:{},string:a(AE),text:a(NE)};return r;function a(u){return l;function l(c){return HE(r,u,c)}}}function $E(e){for(;!G3(e););return e}const n2=/[\0\t\n\r]/g;function WE(){let e=1,t="",n=!0,r;return a;function a(u,l,c){const d=[];let h,m,p,E,x;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(l||void 0).decode(u)),p=0,t="",n&&(u.charCodeAt(0)===65279&&p++,n=void 0);p<u.length;){if(n2.lastIndex=p,h=n2.exec(u),E=h&&h.index!==void 0?h.index:u.length,x=u.charCodeAt(E),!h){t=u.slice(p);break}if(x===10&&p===E&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),p<E&&(d.push(u.slice(p,E)),e+=E-p),x){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=E+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const YE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VE(e){return e.replace(YE,GE)}function GE(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),u=a===120||a===88;return $3(n.slice(u?2:1),u?16:10)}return Wh(n)||e}const e6={}.hasOwnProperty;function QE(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),XE(n)($E(qE(n).document().write(WE()(e,t,!0))))}function XE(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Mr),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:u(Pt),blockQuote:u(me),characterEscape:ie,characterReference:ie,codeFenced:u(We),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(We,l),codeText:u(mt,l),codeTextData:ie,data:ie,codeFlowValue:ie,definition:u(lt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(ot),hardBreakEscape:u(tr),hardBreakTrailing:u(tr),htmlFlow:u(_n,l),htmlFlowData:ie,htmlText:u(_n,l),htmlTextData:ie,image:u(zi),label:l,link:u(Mr),listItem:u(yr),listItemValue:E,listOrdered:u(In,p),listUnordered:u(In),paragraph:u(Hi),reference:L,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(Pt),strong:u(ti),thematicBreak:u(ji)},exit:{atxHeading:d(),atxHeadingSequence:te,autolink:d(),autolinkEmail:Ze,autolinkProtocol:Ke,blockQuote:d(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:He,characterReferenceMarkerNumeric:He,characterReferenceValue:Pe,characterReference:Ve,codeFenced:d(R),codeFencedFence:_,codeFencedFenceInfo:x,codeFencedFenceMeta:C,codeFlowValue:Y,codeIndented:d(I),codeText:d(ue),codeTextData:Y,data:Y,definition:d(),definitionDestinationString:J,definitionLabelString:M,definitionTitleString:j,emphasis:d(),hardBreakEscape:d(le),hardBreakTrailing:d(le),htmlFlow:d(Me),htmlFlowData:Y,htmlText:d(ge),htmlTextData:Y,image:d(Le),label:_e,labelText:oe,lineEnding:se,link:d(Re),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Se,resourceDestinationString:A,resourceTitleString:q,resource:z,setextHeading:d(re),setextHeadingLineSequence:Z,setextHeadingText:W,strong:d(),thematicBreak:d()}};t6(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ae){let ke={type:"root",children:[]};const Ue={stack:[ke],tokenStack:[],config:t,enter:c,exit:h,buffer:l,resume:m,data:n},Je=[];let at=-1;for(;++at<ae.length;)if(ae[at][1].type==="listOrdered"||ae[at][1].type==="listUnordered")if(ae[at][0]==="enter")Je.push(at);else{const Kt=Je.pop();at=a(ae,Kt,at)}for(at=-1;++at<ae.length;){const Kt=t[ae[at][0]];e6.call(Kt,ae[at][1].type)&&Kt[ae[at][1].type].call(Object.assign({sliceSerialize:ae[at][2].sliceSerialize},Ue),ae[at][1])}if(Ue.tokenStack.length>0){const Kt=Ue.tokenStack[Ue.tokenStack.length-1];(Kt[1]||r2).call(Ue,void 0,Kt[0])}for(ke.position={start:Ti(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:Ti(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},at=-1;++at<t.transforms.length;)ke=t.transforms[at](ke)||ke;return ke}function a(ae,ke,Ue){let Je=ke-1,at=-1,Kt=!1,Pr,qn,ni,qi;for(;++Je<=Ue;){const Jt=ae[Je];switch(Jt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Jt[0]==="enter"?at++:at--,qi=void 0;break}case"lineEndingBlank":{Jt[0]==="enter"&&(Pr&&!qi&&!at&&!ni&&(ni=Je),qi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qi=void 0}if(!at&&Jt[0]==="enter"&&Jt[1].type==="listItemPrefix"||at===-1&&Jt[0]==="exit"&&(Jt[1].type==="listUnordered"||Jt[1].type==="listOrdered")){if(Pr){let vr=Je;for(qn=void 0;vr--;){const Rn=ae[vr];if(Rn[1].type==="lineEnding"||Rn[1].type==="lineEndingBlank"){if(Rn[0]==="exit")continue;qn&&(ae[qn][1].type="lineEndingBlank",Kt=!0),Rn[1].type="lineEnding",qn=vr}else if(!(Rn[1].type==="linePrefix"||Rn[1].type==="blockQuotePrefix"||Rn[1].type==="blockQuotePrefixWhitespace"||Rn[1].type==="blockQuoteMarker"||Rn[1].type==="listItemIndent"))break}ni&&(!qn||ni<qn)&&(Pr._spread=!0),Pr.end=Object.assign({},qn?ae[qn][1].start:Jt[1].end),ae.splice(qn||Je,0,["exit",Pr,Jt[2]]),Je++,Ue++}if(Jt[1].type==="listItemPrefix"){const vr={type:"listItem",_spread:!1,start:Object.assign({},Jt[1].start),end:void 0};Pr=vr,ae.splice(Je,0,["enter",vr,Jt[2]]),Je++,Ue++,ni=void 0,qi=!0}}}return ae[ke][1]._spread=Kt,Ue}function u(ae,ke){return Ue;function Ue(Je){c.call(this,ae(Je),Je),ke&&ke.call(this,Je)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(ae,ke,Ue){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([ke,Ue||void 0]),ae.position={start:Ti(ke.start),end:void 0}}function d(ae){return ke;function ke(Ue){ae&&ae.call(this,Ue),h.call(this,Ue)}}function h(ae,ke){const Ue=this.stack.pop(),Je=this.tokenStack.pop();if(Je)Je[0].type!==ae.type&&(ke?ke.call(this,ae,Je[0]):(Je[1]||r2).call(this,ae,Je[0]));else throw new Error("Cannot close `"+ae.type+"` ("+lu({start:ae.start,end:ae.end})+"): it’s not open");Ue.position.end=Ti(ae.end)}function m(){return $h(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function E(ae){if(this.data.expectingFirstListItemValue){const ke=this.stack[this.stack.length-2];ke.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function x(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.lang=ae}function C(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.meta=ae}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ae.replace(/(\r?\n|\r)$/g,"")}function M(ae){const ke=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=ke,Ue.identifier=hr(this.sliceSerialize(ae)).toLowerCase()}function j(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.title=ae}function J(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.url=ae}function te(ae){const ke=this.stack[this.stack.length-1];if(!ke.depth){const Ue=this.sliceSerialize(ae).length;ke.depth=Ue}}function W(){this.data.setextHeadingSlurpLineEnding=!0}function Z(ae){const ke=this.stack[this.stack.length-1];ke.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function re(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(ae){const Ue=this.stack[this.stack.length-1].children;let Je=Ue[Ue.length-1];(!Je||Je.type!=="text")&&(Je=Ui(),Je.position={start:Ti(ae.start),end:void 0},Ue.push(Je)),this.stack.push(Je)}function Y(ae){const ke=this.stack.pop();ke.value+=this.sliceSerialize(ae),ke.position.end=Ti(ae.end)}function se(ae){const ke=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ue=ke.children[ke.children.length-1];Ue.position.end=Ti(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ke.type)&&(ie.call(this,ae),Y.call(this,ae))}function le(){this.data.atHardBreak=!0}function Me(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ae}function ge(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ae}function ue(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ae}function Re(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const ke=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=ke,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function Le(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const ke=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=ke,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function oe(ae){const ke=this.sliceSerialize(ae),Ue=this.stack[this.stack.length-2];Ue.label=VE(ke),Ue.identifier=hr(ke).toLowerCase()}function _e(){const ae=this.stack[this.stack.length-1],ke=this.resume(),Ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ue.type==="link"){const Je=ae.children;Ue.children=Je}else Ue.alt=ke}function A(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.url=ae}function q(){const ae=this.resume(),ke=this.stack[this.stack.length-1];ke.title=ae}function z(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function Se(ae){const ke=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=ke,Ue.identifier=hr(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function He(ae){this.data.characterReferenceType=ae.type}function Pe(ae){const ke=this.sliceSerialize(ae),Ue=this.data.characterReferenceType;let Je;Ue?(Je=$3(ke,Ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Je=Wh(ke);const at=this.stack[this.stack.length-1];at.value+=Je}function Ve(ae){const ke=this.stack.pop();ke.position.end=Ti(ae.end)}function Ke(ae){Y.call(this,ae);const ke=this.stack[this.stack.length-1];ke.url=this.sliceSerialize(ae)}function Ze(ae){Y.call(this,ae);const ke=this.stack[this.stack.length-1];ke.url="mailto:"+this.sliceSerialize(ae)}function me(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function mt(){return{type:"inlineCode",value:""}}function lt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ot(){return{type:"emphasis",children:[]}}function Pt(){return{type:"heading",depth:0,children:[]}}function tr(){return{type:"break"}}function _n(){return{type:"html",value:""}}function zi(){return{type:"image",title:null,url:"",alt:null}}function Mr(){return{type:"link",title:null,url:"",children:[]}}function In(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function yr(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function Hi(){return{type:"paragraph",children:[]}}function ti(){return{type:"strong",children:[]}}function Ui(){return{type:"text",value:""}}function ji(){return{type:"thematicBreak"}}}function Ti(e){return{line:e.line,column:e.column,offset:e.offset}}function t6(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?t6(e,r):KE(e,r)}}function KE(e,t){let n;for(n in t)if(e6.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 r2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lu({start:t.start,end:t.end})+") is still open")}function JE(e){const t=this;t.parser=n;function n(r){return QE(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ZE(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 ex(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
59
+ `}]}function tx(e,t){const n=t.value?t.value+`
60
+ `:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}function nx(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rx(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ix(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=ss(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=u+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(l)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function ax(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 sx(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function n6(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),u=a[0];u&&u.type==="text"?u.value="["+u.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function ux(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return n6(e,t);const a={src:ss(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const u={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,u),e.applyData(t,u)}function lx(e,t){const n={src:ss(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 ox(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 cx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return n6(e,t);const a={href:ss(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const u={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function dx(e,t){const n={href:ss(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 hx(e,t,n){const r=e.all(t),a=n?fx(n):r6(t),u={},l=[];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:[]}),u.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const m=r[c];(a||c!==0||m.type!=="element"||m.tagName!=="p")&&l.push({type:"text",value:`
61
+ `}),m.type==="element"&&m.tagName==="p"&&!a?l.push(...m.children):l.push(m)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
62
+ `});const h={type:"element",tagName:"li",properties:u,children:l};return e.patch(t,h),e.applyData(t,h)}function fx(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=r6(n[r])}return t}function r6(e){const t=e.spread;return t??e.children.length>1}function mx(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 l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,u),e.applyData(t,u)}function px(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gx(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function yx(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vx(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Ir(t.children[1]),d=Mo(t.children[t.children.length-1]);c&&d&&(l.position={start:c,end:d}),a.push(l)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,u),e.applyData(t,u)}function bx(e,t,n){const r=n?n.children:void 0,u=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,c=l?l.length:t.children.length;let d=-1;const h=[];for(;++d<c;){const p=t.children[d],E={},x=l?l[d]:void 0;x&&(E.align=x);let C={type:"element",tagName:u,properties:E,children:[]};p&&(C.children=e.all(p),e.patch(p,C),C=e.applyData(p,C)),h.push(C)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function Ex(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const i2=9,a2=32;function xx(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const u=[];for(;r;)u.push(s2(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return u.push(s2(t.slice(a),a>0,!1)),u.join("")}function s2(e,t,n){let r=0,a=e.length;if(t){let u=e.codePointAt(r);for(;u===i2||u===a2;)r++,u=e.codePointAt(r)}if(n){let u=e.codePointAt(a-1);for(;u===i2||u===a2;)a--,u=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function Tx(e,t){const n={type:"text",value:xx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function wx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const kx={blockquote:ZE,break:ex,code:tx,delete:nx,emphasis:rx,footnoteReference:ix,heading:ax,html:sx,imageReference:ux,image:lx,inlineCode:ox,linkReference:cx,link:dx,listItem:hx,list:mx,paragraph:px,root:gx,strong:yx,table:vx,tableCell:Ex,tableRow:bx,text:Tx,thematicBreak:wx,toml:Vl,yaml:Vl,definition:Vl,footnoteDefinition:Vl};function Vl(){}const i6=-1,Fo=0,cu=1,vo=2,Vh=3,Gh=4,Qh=5,Xh=6,a6=7,s6=8,Sx=typeof self=="object"?self:globalThis,u2=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Sx[e](t)},Cx=(e,t)=>{const n=(a,u)=>(e.set(u,a),a),r=a=>{if(e.has(a))return e.get(a);const[u,l]=t[a];switch(u){case Fo:case i6:return n(l,a);case cu:{const c=n([],a);for(const d of l)c.push(r(d));return c}case vo:{const c=n({},a);for(const[d,h]of l)c[r(d)]=r(h);return c}case Vh:return n(new Date(l),a);case Gh:{const{source:c,flags:d}=l;return n(new RegExp(c,d),a)}case Qh:{const c=n(new Map,a);for(const[d,h]of l)c.set(r(d),r(h));return c}case Xh:{const c=n(new Set,a);for(const d of l)c.add(r(d));return c}case a6:{const{name:c,message:d}=l;return n(u2(c,d),a)}case s6:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(u2(u,l),a)};return r},l2=e=>Cx(new Map,e)(0),oa="",{toString:Ax}={},{keys:Nx}=Object,tu=e=>{const t=typeof e;if(t!=="object"||!e)return[Fo,t];const n=Ax.call(e).slice(8,-1);switch(n){case"Array":return[cu,oa];case"Object":return[vo,oa];case"Date":return[Vh,oa];case"RegExp":return[Gh,oa];case"Map":return[Qh,oa];case"Set":return[Xh,oa];case"DataView":return[cu,n]}return n.includes("Array")?[cu,n]:n.includes("Error")?[a6,n]:[vo,n]},Gl=([e,t])=>e===Fo&&(t==="function"||t==="symbol"),_x=(e,t,n,r)=>{const a=(l,c)=>{const d=r.push(l)-1;return n.set(c,d),d},u=l=>{if(n.has(l))return n.get(l);let[c,d]=tu(l);switch(c){case Fo:{let m=l;switch(d){case"bigint":c=s6,m=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return a([i6],l)}return a([c,m],l)}case cu:{if(d){let E=l;return d==="DataView"?E=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(E=new Uint8Array(l)),a([d,[...E]],l)}const m=[],p=a([c,m],l);for(const E of l)m.push(u(E));return p}case vo:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return u(l.toJSON());const m=[],p=a([c,m],l);for(const E of Nx(l))(e||!Gl(tu(l[E])))&&m.push([u(E),u(l[E])]);return p}case Vh:return a([c,isNaN(l.getTime())?oa:l.toISOString()],l);case Gh:{const{source:m,flags:p}=l;return a([c,{source:m,flags:p}],l)}case Qh:{const m=[],p=a([c,m],l);for(const[E,x]of l)(e||!(Gl(tu(E))||Gl(tu(x))))&&m.push([u(E),u(x)]);return p}case Xh:{const m=[],p=a([c,m],l);for(const E of l)(e||!Gl(tu(E)))&&m.push(u(E));return p}}const{message:h}=l;return a([c,{name:d,message:h}],l)};return u},o2=(e,{json:t,lossy:n}={})=>{const r=[];return _x(!(t||n),!!t,new Map,r)(e),r},pa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?l2(o2(e,t)):structuredClone(e):(e,t)=>l2(o2(e,t));function Ix(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 Rx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Lx(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ix,r=e.options.footnoteBackLabel||Rx,a=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),p=String(h.identifier).toUpperCase(),E=ss(p.toLowerCase());let x=0;const C=[],_=e.footnoteCounts.get(p);for(;_!==void 0&&++x<=_;){C.length>0&&C.push({type:"text",value:" "});let M=typeof n=="string"?n:n(d,x);typeof M=="string"&&(M={type:"text",value:M}),C.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,x),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const R=m[m.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const M=R.children[R.children.length-1];M&&M.type==="text"?M.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...C)}else m.push(...C);const I={type:"element",tagName:"li",properties:{id:t+"fn-"+E},children:e.wrap(m,!0)};e.patch(h,I),c.push(I)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...pa(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
63
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
64
+ `}]}}const Ru=(function(e){if(e==null)return Px;if(typeof e=="function")return zo(e);if(typeof e=="object")return Array.isArray(e)?Dx(e):Ox(e);if(typeof e=="string")return Mx(e);throw new Error("Expected function, string, or object as test")});function Dx(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ru(e[n]);return zo(r);function r(...a){let u=-1;for(;++u<t.length;)if(t[u].apply(this,a))return!0;return!1}}function Ox(e){const t=e;return zo(n);function n(r){const a=r;let u;for(u in e)if(a[u]!==t[u])return!1;return!0}}function Mx(e){return zo(t);function t(n){return n&&n.type===e}}function zo(e){return t;function t(n,r,a){return!!(Bx(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Px(){return!0}function Bx(e){return e!==null&&typeof e=="object"&&"type"in e}const u6=[],Fx=!0,$d=!1,l6="skip";function Kh(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const u=Ru(a),l=r?-1:1;c(e,void 0,[])();function c(d,h,m){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const x=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(x?"<"+x+">":""))+")"})}return E;function E(){let x=u6,C,_,R;if((!t||u(d,h,m[m.length-1]||void 0))&&(x=zx(n(d,m)),x[0]===$d))return x;if("children"in d&&d.children){const I=d;if(I.children&&x[0]!==l6)for(_=(r?I.children.length:-1)+l,R=m.concat(I);_>-1&&_<I.children.length;){const M=I.children[_];if(C=c(M,_,R)(),C[0]===$d)return C;_=typeof C[1]=="number"?C[1]:_+l}}return x}}}function zx(e){return Array.isArray(e)?e:typeof e=="number"?[Fx,e]:e==null?u6:[e]}function Ho(e,t,n,r){let a,u,l;typeof t=="function"&&typeof n!="function"?(u=void 0,l=t,a=n):(u=t,l=n,a=r),Kh(e,u,c,a);function c(d,h){const m=h[h.length-1],p=m?m.children.indexOf(d):void 0;return l(d,p,m)}}const Wd={}.hasOwnProperty,Hx={};function Ux(e,t){const n=t||Hx,r=new Map,a=new Map,u=new Map,l={...kx,...n.handlers},c={all:h,applyData:qx,definitionById:r,footnoteById:a,footnoteCounts:u,footnoteOrder:[],handlers:l,one:d,options:n,patch:jx,wrap:Wx};return Ho(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?r:a,E=String(m.identifier).toUpperCase();p.has(E)||p.set(E,m)}}),c;function d(m,p){const E=m.type,x=c.handlers[E];if(Wd.call(c.handlers,E)&&x)return x(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(E)){if("children"in m){const{children:_,...R}=m,I=pa(R);return I.children=c.all(m),I}return pa(m)}return(c.options.unknownHandler||$x)(c,m,p)}function h(m){const p=[];if("children"in m){const E=m.children;let x=-1;for(;++x<E.length;){const C=c.one(E[x],m);if(C){if(x&&E[x-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=c2(C.value)),!Array.isArray(C)&&C.type==="element")){const _=C.children[0];_&&_.type==="text"&&(_.value=c2(_.value))}Array.isArray(C)?p.push(...C):p.push(C)}}}return p}}function jx(e,t){e.position&&(t.position=B3(e))}function qx(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&u&&Object.assign(n.properties,pa(u)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function $x(e,t){const n=t.data||{},r="value"in t&&!(Wd.call(n,"hProperties")||Wd.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 Wx(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
65
+ `});++r<e.length;)r&&n.push({type:"text",value:`
66
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
67
+ `}),n}function c2(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function d2(e,t){const n=Ux(e,t),r=n.one(e,void 0),a=Lx(n),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&u.children.push({type:"text",value:`
68
+ `},a),u}function Yx(e,t){return e&&"run"in e?async function(n,r){const a=d2(n,{file:r,...t});await e.run(a,r)}:function(n,r){return d2(n,{file:r,...e||t})}}function h2(e){if(e)throw e}var ad,f2;function Vx(){if(f2)return ad;f2=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},u=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;var E;for(E in h);return typeof E>"u"||e.call(h,E)},l=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},c=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(r)return r(h,m).value}else return;return h[m]};return ad=function d(){var h,m,p,E,x,C,_=arguments[0],R=1,I=arguments.length,M=!1;for(typeof _=="boolean"&&(M=_,_=arguments[1]||{},R=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});R<I;++R)if(h=arguments[R],h!=null)for(m in h)p=c(_,m),E=c(h,m),_!==E&&(M&&E&&(u(E)||(x=a(E)))?(x?(x=!1,C=p&&a(p)?p:[]):C=p&&u(p)?p:{},l(_,{name:m,newValue:d(M,C,E)})):typeof E<"u"&&l(_,{name:m,newValue:E}));return _},ad}var Gx=Vx();const sd=Sh(Gx);function Yd(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 Qx(){const e=[],t={run:n,use:r};return t;function n(...a){let u=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...a);function c(d,...h){const m=e[++u];let p=-1;if(d){l(d);return}for(;++p<a.length;)(h[p]===null||h[p]===void 0)&&(h[p]=a[p]);a=h,m?Xx(m,c)(...h):l(null,...h)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Xx(e,t){let n;return r;function r(...l){const c=e.length>l.length;let d;c&&l.push(a);try{d=e.apply(this,l)}catch(h){const m=h;if(c&&n)throw m;return a(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(u,a):d instanceof Error?a(d):u(d))}function a(l,...c){n||(n=!0,t(l,...c))}function u(l){a(null,l)}}const kr={basename:Kx,dirname:Jx,extname:Zx,join:eT,sep:"/"};function Kx(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Lu(e);let n=0,r=-1,a=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(u){n=a+1;break}}else r<0&&(u=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(u){n=a+1;break}}else l<0&&(u=!0,l=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Jx(e){if(Lu(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 Zx(e){Lu(e);let t=e.length,n=-1,r=0,a=-1,u=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?a<0?a=t:u!==1&&(u=1):a>-1&&(u=-1)}return a<0||n<0||u===0||u===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function eT(...e){let t=-1,n;for(;++t<e.length;)Lu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":tT(n)}function tT(e){Lu(e);const t=e.codePointAt(0)===47;let n=nT(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nT(e,t){let n="",r=0,a=-1,u=0,l=-1,c,d;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(a===l-1||u===1))if(a!==l-1&&u===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=l,u=0;continue}}else if(n.length>0){n="",r=0,a=l,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,u=0}else c===46&&u>-1?u++:u=-1}return n}function Lu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rT={cwd:iT};function iT(){return"/"}function Vd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function aT(e){if(typeof e=="string")e=new URL(e);else if(!Vd(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 sT(e)}function sT(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 ud=["history","path","basename","stem","extname","dirname"];class o6{constructor(t){let n;t?Vd(t)?n={path:t}:typeof t=="string"||uT(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":rT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ud.length;){const u=ud[r];u in n&&n[u]!==void 0&&n[u]!==null&&(this[u]=u==="history"?[...n[u]]:n[u])}let a;for(a in n)ud.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?kr.basename(this.path):void 0}set basename(t){od(t,"basename"),ld(t,"basename"),this.path=kr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?kr.dirname(this.path):void 0}set dirname(t){m2(this.basename,"dirname"),this.path=kr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?kr.extname(this.path):void 0}set extname(t){if(ld(t,"extname"),m2(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=kr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vd(t)&&(t=aT(t)),od(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?kr.basename(this.path,this.extname):void 0}set stem(t){od(t,"stem"),ld(t,"stem"),this.path=kr.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 cn(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 ld(e,t){if(e&&e.includes(kr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+kr.sep+"`")}function od(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function m2(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function uT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lT=(function(e){const r=this.constructor.prototype,a=r[e],u=function(){return a.apply(u,arguments)};return Object.setPrototypeOf(u,r),u}),oT={}.hasOwnProperty;class Jh extends lT{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=Qx()}copy(){const t=new Jh;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(sd(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(hd("data",this.frozen),this.namespace[t]=n,this):oT.call(this.namespace,t)&&this.namespace[t]||void 0:t?(hd("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=Ql(t),r=this.parser||this.Parser;return cd("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),cd("process",this.parser||this.Parser),dd("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(u,l){const c=Ql(t),d=r.parse(c);r.run(d,c,function(m,p,E){if(m||!p||!E)return h(m);const x=p,C=r.stringify(x,E);hT(C)?E.value=C:E.result=C,h(m,E)});function h(m,p){m||!p?l(m):u?u(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),cd("processSync",this.parser||this.Parser),dd("processSync",this.compiler||this.Compiler),this.process(t,a),g2("processSync","process",n),r;function a(u,l){n=!0,h2(u),r=l}}run(t,n,r){p2(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?u(void 0,r):new Promise(u);function u(l,c){const d=Ql(n);a.run(t,d,h);function h(m,p,E){const x=p||t;m?c(m):l?l(x):r(void 0,x,E)}}}runSync(t,n){let r=!1,a;return this.run(t,n,u),g2("runSync","run",r),a;function u(l,c){h2(l),a=c,r=!0}}stringify(t,n){this.freeze();const r=Ql(n),a=this.compiler||this.Compiler;return dd("stringify",a),p2(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(hd("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...p]=h;d(m,p)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(a.settings=sd(!0,a.settings,h.settings))}function c(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const p=h[m];u(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let p=-1,E=-1;for(;++p<r.length;)if(r[p][0]===h){E=p;break}if(E===-1)r.push([h,...m]);else if(m.length>0){let[x,...C]=m;const _=r[E][1];Yd(_)&&Yd(x)&&(x=sd(!0,_,x)),r[E]=[h,x,...C]}}}}const cT=new Jh().freeze();function cd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function dd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function hd(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 p2(e){if(!Yd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function g2(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ql(e){return dT(e)?e:new o6(e)}function dT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hT(e){return typeof e=="string"||fT(e)}function fT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",y2=[],v2={allowDangerousHtml:!0},pT=/^(https?|ircs?|mailto|xmpp)$/i,gT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yT(e){const t=vT(e),n=bT(e);return ET(t.runSync(t.parse(n),n),e)}function vT(e){const t=e.rehypePlugins||y2,n=e.remarkPlugins||y2,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...v2}:v2;return cT().use(JE).use(n).use(Yx,r).use(t)}function bT(e){const t=e.children||"",n=new o6;return typeof t=="string"&&(n.value=t),n}function ET(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,u=t.disallowedElements,l=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||xT;for(const m of gT)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+mT+m.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Ho(e,h),M9(e,{Fragment:T.Fragment,components:a,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function h(m,p,E){if(m.type==="raw"&&E&&typeof p=="number")return l?E.children.splice(p,1):E.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let x;for(x in nd)if(Object.hasOwn(nd,x)&&Object.hasOwn(m.properties,x)){const C=m.properties[x],_=nd[x];(_===null||_.includes(m.tagName))&&(m.properties[x]=d(String(C||""),x,m))}}if(m.type==="element"){let x=n?!n.includes(m.tagName):u?u.includes(m.tagName):!1;if(!x&&r&&typeof p=="number"&&(x=!r(m,p,E)),x&&E&&typeof p=="number")return c&&m.children?E.children.splice(p,1,...m.children):E.children.splice(p,1),p}}}function xT(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||pT.test(e.slice(0,t))?e:""}function b2(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 TT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wT(e,t,n){const a=Ru((n||{}).ignore||[]),u=kT(t);let l=-1;for(;++l<u.length;)Kh(e,"text",c);function c(h,m){let p=-1,E;for(;++p<m.length;){const x=m[p],C=E?E.children:void 0;if(a(x,C?C.indexOf(x):void 0,E))return;E=x}if(E)return d(h,m)}function d(h,m){const p=m[m.length-1],E=u[l][0],x=u[l][1];let C=0;const R=p.children.indexOf(h);let I=!1,M=[];E.lastIndex=0;let j=E.exec(h.value);for(;j;){const J=j.index,te={index:j.index,input:j.input,stack:[...m,h]};let W=x(...j,te);if(typeof W=="string"&&(W=W.length>0?{type:"text",value:W}:void 0),W===!1?E.lastIndex=J+1:(C!==J&&M.push({type:"text",value:h.value.slice(C,J)}),Array.isArray(W)?M.push(...W):W&&M.push(W),C=J+j[0].length,I=!0),!E.global)break;j=E.exec(h.value)}return I?(C<h.value.length&&M.push({type:"text",value:h.value.slice(C)}),p.children.splice(R,1,...M)):M=[h],R+M.length}}function kT(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([ST(a[0]),CT(a[1])])}return t}function ST(e){return typeof e=="string"?new RegExp(TT(e),"g"):e}function CT(e){return typeof e=="function"?e:function(){return e}}const fd="phrasing",md=["autolink","link","image","label"];function AT(){return{transforms:[OT],enter:{literalAutolink:_T,literalAutolinkEmail:pd,literalAutolinkHttp:pd,literalAutolinkWww:pd},exit:{literalAutolink:DT,literalAutolinkEmail:LT,literalAutolinkHttp:IT,literalAutolinkWww:RT}}}function NT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fd,notInConstruct:md},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fd,notInConstruct:md},{character:":",before:"[ps]",after:"\\/",inConstruct:fd,notInConstruct:md}]}}function _T(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function pd(e){this.config.enter.autolinkProtocol.call(this,e)}function IT(e){this.config.exit.autolinkProtocol.call(this,e)}function RT(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 LT(e){this.config.exit.autolinkEmail.call(this,e)}function DT(e){this.exit(e)}function OT(e){wT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,MT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),PT]],{ignore:["link","linkReference"]})}function MT(e,t,n,r,a){let u="";if(!c6(a)||(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!BT(n)))return!1;const l=FT(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:u+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function PT(e,t,n,r){return!c6(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function BT(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 FT(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=b2(e,"(");let u=b2(e,")");for(;r!==-1&&a>u;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),u++;return[e,n]}function c6(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ma(n)||Po(n))&&(!t||n!==47)}d6.peek=VT;function zT(){this.buffer()}function HT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function UT(){this.buffer()}function jT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function qT(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function $T(e){this.exit(e)}function WT(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function YT(e){this.exit(e)}function VT(){return"["}function d6(e,t,n,r){const a=n.createTracker(r);let u=a.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return u+=a.move(n.safe(n.associationId(e),{after:"]",before:u})),c(),l(),u+=a.move("]"),u}function GT(){return{enter:{gfmFootnoteCallString:zT,gfmFootnoteCall:HT,gfmFootnoteDefinitionLabelString:UT,gfmFootnoteDefinition:jT},exit:{gfmFootnoteCallString:qT,gfmFootnoteCall:$T,gfmFootnoteDefinitionLabelString:WT,gfmFootnoteDefinition:YT}}}function QT(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:d6},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,u,l){const c=u.createTracker(l);let d=c.move("[^");const h=u.enter("footnoteDefinition"),m=u.enter("label");return d+=c.move(u.safe(u.associationId(r),{before:d,after:"]"})),m(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
69
+ `:" ")+u.indentLines(u.containerFlow(r,c.current()),t?h6:XT))),h(),d}}function XT(e,t,n){return t===0?e:h6(e,t,n)}function h6(e,t,n){return(n?"":" ")+e}const KT=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];f6.peek=nw;function JT(){return{canContainEols:["delete"],enter:{strikethrough:ew},exit:{strikethrough:tw}}}function ZT(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:KT}],handlers:{delete:f6}}}function ew(e){this.enter({type:"delete",children:[]},e)}function tw(e){this.exit(e)}function f6(e,t,n,r){const a=n.createTracker(r),u=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),u(),l}function nw(){return"~"}function rw(e){return e.length}function iw(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||rw,u=[],l=[],c=[],d=[];let h=0,m=-1;for(;++m<e.length;){const _=[],R=[];let I=-1;for(e[m].length>h&&(h=e[m].length);++I<e[m].length;){const M=aw(e[m][I]);if(n.alignDelimiters!==!1){const j=a(M);R[I]=j,(d[I]===void 0||j>d[I])&&(d[I]=j)}_.push(M)}l[m]=_,c[m]=R}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<h;)u[p]=E2(r[p]);else{const _=E2(r);for(;++p<h;)u[p]=_}p=-1;const E=[],x=[];for(;++p<h;){const _=u[p];let R="",I="";_===99?(R=":",I=":"):_===108?R=":":_===114&&(I=":");let M=n.alignDelimiters===!1?1:Math.max(1,d[p]-R.length-I.length);const j=R+"-".repeat(M)+I;n.alignDelimiters!==!1&&(M=R.length+M+I.length,M>d[p]&&(d[p]=M),x[p]=M),E[p]=j}l.splice(1,0,E),c.splice(1,0,x),m=-1;const C=[];for(;++m<l.length;){const _=l[m],R=c[m];p=-1;const I=[];for(;++p<h;){const M=_[p]||"";let j="",J="";if(n.alignDelimiters!==!1){const te=d[p]-(R[p]||0),W=u[p];W===114?j=" ".repeat(te):W===99?te%2?(j=" ".repeat(te/2+.5),J=" ".repeat(te/2-.5)):(j=" ".repeat(te/2),J=j):J=" ".repeat(te)}n.delimiterStart!==!1&&!p&&I.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&M==="")&&(n.delimiterStart!==!1||p)&&I.push(" "),n.alignDelimiters!==!1&&I.push(j),I.push(M),n.alignDelimiters!==!1&&I.push(J),n.padding!==!1&&I.push(" "),(n.delimiterEnd!==!1||p!==h-1)&&I.push("|")}C.push(n.delimiterEnd===!1?I.join("").replace(/ +$/,""):I.join(""))}return C.join(`
70
+ `)}function aw(e){return e==null?"":String(e)}function E2(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 x2={}.hasOwnProperty;function m6(e,t){const n=t||{};function r(a,...u){let l=r.invalid;const c=r.handlers;if(a&&x2.call(a,e)){const d=String(a[e]);l=x2.call(c,d)?c[d]:r.unknown}if(l)return l.call(this,a,...u)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function sw(e,t,n,r){const a=n.enter("blockquote"),u=n.createTracker(r);u.move("> "),u.shift(2);const l=n.indentLines(n.containerFlow(e,u.current()),uw);return a(),l}function uw(e,t,n){return">"+(n?"":" ")+e}function lw(e,t){return T2(e,t.inConstruct,!0)&&!T2(e,t.notInConstruct,!1)}function T2(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 w2(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
71
+ `&&lw(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
72
+ `}function p6(e,t){const n=String(e);let r=n.indexOf(t),a=r,u=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++u>l&&(l=u):u=1,a=r+t.length,r=n.indexOf(t,a);return l}function ow(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 cw(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 dw(e,t,n,r){const a=cw(n),u=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(ow(e,n)){const p=n.enter("codeIndented"),E=n.indentLines(u,hw);return p(),E}const c=n.createTracker(r),d=a.repeat(Math.max(p6(u,a)+1,3)),h=n.enter("codeFenced");let m=c.move(d);if(e.lang){const p=n.enter(`codeFencedLang${l}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${l}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
73
+ `,encode:["`"],...c.current()})),p()}return m+=c.move(`
74
+ `),u&&(m+=c.move(u+`
75
+ `)),m+=c.move(d),h(),m}function hw(e,t,n){return(n?"":" ")+e}function Zh(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 fw(e,t,n,r){const a=Zh(n),u=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":`
76
+ `,...d.current()}))),c(),e.title&&(c=n.enter(`title${u}`),h+=d.move(" "+a),h+=d.move(n.safe(e.title,{before:h,after:a,...d.current()})),h+=d.move(a),c()),l(),h}function mw(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 xu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bo(e,t,n){const r=Ja(e),a=Ja(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}}g6.peek=pw;function g6(e,t,n,r){const a=mw(n),u=n.enter("emphasis"),l=n.createTracker(r),c=l.move(a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const h=d.charCodeAt(0),m=bo(r.before.charCodeAt(r.before.length-1),h,a);m.inside&&(d=xu(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=bo(r.after.charCodeAt(0),p,a);E.inside&&(d=d.slice(0,-1)+xu(p));const x=l.move(a);return u(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+x}function pw(e,t,n){return n.options.emphasis||"*"}function gw(e,t){let n=!1;return Ho(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,$d}),!!((!e.depth||e.depth<3)&&$h(e)&&(t.options.setext||n))}function yw(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),u=n.createTracker(r);if(gw(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),E=n.containerPhrasing(e,{...u.current(),before:`
77
+ `,after:`
78
+ `});return p(),m(),E+`
79
+ `+(a===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
80
+ `))+1))}const l="#".repeat(a),c=n.enter("headingAtx"),d=n.enter("phrasing");u.move(l+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
81
+ `,...u.current()});return/^[\t ]/.test(h)&&(h=xu(h.charCodeAt(0))+h.slice(1)),h=h?l+" "+h:l,n.options.closeAtx&&(h+=" "+l),d(),c(),h}y6.peek=vw;function y6(e){return e.value||""}function vw(){return"<"}v6.peek=bw;function v6(e,t,n,r){const a=Zh(n),u=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${u}`),h+=d.move(" "+a),h+=d.move(n.safe(e.title,{before:h,after:a,...d.current()})),h+=d.move(a),c()),h+=d.move(")"),l(),h}function bw(){return"!"}b6.peek=Ew;function b6(e,t,n,r){const a=e.referenceType,u=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const h=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),l();const m=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=m,u(),a==="full"||!h||h!==p?d+=c.move(p+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function Ew(){return"!"}E6.peek=xw;function E6(e,t,n){let r=e.value||"",a="`",u=-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+" ");++u<n.unsafe.length;){const l=n.unsafe[u],c=n.compilePattern(l);let d;if(l.atBreak)for(;d=c.exec(r);){let h=d.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(d.index+1)}}return a+r+a}function xw(){return"`"}function x6(e,t){const n=$h(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))}T6.peek=Tw;function T6(e,t,n,r){const a=Zh(n),u=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,d;if(x6(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let p=l.move("<");return p+=l.move(n.containerPhrasing(e,{before:p,after:">",...l.current()})),p+=l.move(">"),c(),n.stack=m,p}c=n.enter("link"),d=n.enter("label");let h=l.move("[");return h+=l.move(n.containerPhrasing(e,{before:h,after:"](",...l.current()})),h+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=l.move("<"),h+=l.move(n.safe(e.url,{before:h,after:">",...l.current()})),h+=l.move(">")):(d=n.enter("destinationRaw"),h+=l.move(n.safe(e.url,{before:h,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${u}`),h+=l.move(" "+a),h+=l.move(n.safe(e.title,{before:h,after:a,...l.current()})),h+=l.move(a),d()),h+=l.move(")"),c(),h}function Tw(e,t,n){return x6(e,n)?"<":"["}w6.peek=ww;function w6(e,t,n,r){const a=e.referenceType,u=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),l();const m=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=m,u(),a==="full"||!h||h!==p?d+=c.move(p+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function ww(){return"["}function ef(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 kw(e){const t=ef(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 Sw(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 k6(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 Cw(e,t,n,r){const a=n.enter("list"),u=n.bulletCurrent;let l=e.ordered?Sw(n):ef(n);const c=e.ordered?l==="."?")":".":kw(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&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),k6(n)===l&&m){let p=-1;for(;++p<e.children.length;){const E=e.children[p];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=c),n.bulletCurrent=l;const h=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=u,a(),h}function Aw(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 Nw(e,t,n,r){const a=Aw(n);let u=n.bulletCurrent||ef(n);t&&t.type==="list"&&t.ordered&&(u=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+u);let l=u.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(u+" ".repeat(l-u.length)),c.shift(l);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,c.current()),m);return d(),h;function m(p,E,x){return E?(x?"":" ".repeat(l))+p:(x?u:u+" ".repeat(l-u.length))+p}}function _w(e,t,n,r){const a=n.enter("paragraph"),u=n.enter("phrasing"),l=n.containerPhrasing(e,r);return u(),a(),l}const Iw=Ru(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Rw(e,t,n,r){return(e.children.some(function(l){return Iw(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Lw(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}S6.peek=Dw;function S6(e,t,n,r){const a=Lw(n),u=n.enter("strong"),l=n.createTracker(r),c=l.move(a+a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const h=d.charCodeAt(0),m=bo(r.before.charCodeAt(r.before.length-1),h,a);m.inside&&(d=xu(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=bo(r.after.charCodeAt(0),p,a);E.inside&&(d=d.slice(0,-1)+xu(p));const x=l.move(a+a);return u(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+x}function Dw(e,t,n){return n.options.strong||"*"}function Ow(e,t,n,r){return n.safe(e.value,r)}function Mw(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 Pw(e,t,n){const r=(k6(n)+(n.options.ruleSpaces?" ":"")).repeat(Mw(n));return n.options.ruleSpaces?r.slice(0,-1):r}const C6={blockquote:sw,break:w2,code:dw,definition:fw,emphasis:g6,hardBreak:w2,heading:yw,html:y6,image:v6,imageReference:b6,inlineCode:E6,link:T6,linkReference:w6,list:Cw,listItem:Nw,paragraph:_w,root:Rw,strong:S6,text:Ow,thematicBreak:Pw};function Bw(){return{enter:{table:Fw,tableData:k2,tableHeader:k2,tableRow:Hw},exit:{codeText:Uw,table:zw,tableData:gd,tableHeader:gd,tableRow:gd}}}function Fw(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 zw(e){this.exit(e),this.data.inTable=void 0}function Hw(e){this.enter({type:"tableRow",children:[]},e)}function gd(e){this.exit(e)}function k2(e){this.enter({type:"tableCell",children:[]},e)}function Uw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,jw));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function jw(e,t){return t==="|"?t:e}function qw(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
82
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:l,tableCell:d,tableRow:c}};function l(x,C,_,R){return h(m(x,_,R),x.align)}function c(x,C,_,R){const I=p(x,_,R),M=h([I]);return M.slice(0,M.indexOf(`
83
+ `))}function d(x,C,_,R){const I=_.enter("tableCell"),M=_.enter("phrasing"),j=_.containerPhrasing(x,{...R,before:u,after:u});return M(),I(),j}function h(x,C){return iw(x,{align:C,alignDelimiters:r,padding:n,stringLength:a})}function m(x,C,_){const R=x.children;let I=-1;const M=[],j=C.enter("table");for(;++I<R.length;)M[I]=p(R[I],C,_);return j(),M}function p(x,C,_){const R=x.children;let I=-1;const M=[],j=C.enter("tableRow");for(;++I<R.length;)M[I]=d(R[I],x,C,_);return j(),M}function E(x,C,_){let R=C6.inlineCode(x,C,_);return _.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function $w(){return{exit:{taskListCheckValueChecked:S2,taskListCheckValueUnchecked:S2,paragraph:Yw}}}function Ww(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vw}}}function S2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Yw(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 u=-1,l;for(;++u<a.length;){const c=a[u];if(c.type==="paragraph"){l=c;break}}l===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 Vw(e,t,n,r){const a=e.children[0],u=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);u&&c.move(l);let d=C6.listItem(e,t,n,{...r,...c.current()});return u&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+l}}function Gw(){return[AT(),GT(),JT(),Bw(),$w()]}function Qw(e){return{extensions:[NT(),QT(e),ZT(),qw(e),Ww()]}}const Xw={tokenize:nk,partial:!0},A6={tokenize:rk,partial:!0},N6={tokenize:ik,partial:!0},_6={tokenize:ak,partial:!0},Kw={tokenize:sk,partial:!0},I6={name:"wwwAutolink",tokenize:ek,previous:L6},R6={name:"protocolAutolink",tokenize:tk,previous:D6},Kr={name:"emailAutolink",tokenize:Zw,previous:O6},Rr={};function Jw(){return{text:Rr}}let ra=48;for(;ra<123;)Rr[ra]=Kr,ra++,ra===58?ra=65:ra===91&&(ra=97);Rr[43]=Kr;Rr[45]=Kr;Rr[46]=Kr;Rr[95]=Kr;Rr[72]=[Kr,R6];Rr[104]=[Kr,R6];Rr[87]=[Kr,I6];Rr[119]=[Kr,I6];function Zw(e,t,n){const r=this;let a,u;return l;function l(p){return!Gd(p)||!O6.call(r,r.previous)||tf(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return Gd(p)?(e.consume(p),c):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(Kw,m,h)(p):p===45||p===95||ln(p)?(u=!0,e.consume(p),d):m(p)}function h(p){return e.consume(p),a=!0,d}function m(p){return u&&a&&gn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function ek(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!L6.call(r,r.previous)||tf(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Xw,e.attempt(A6,e.attempt(N6,u),n),n)(l))}function u(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function tk(e,t,n){const r=this;let a="",u=!1;return l;function l(p){return(p===72||p===104)&&D6.call(r,r.previous)&&!tf(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(gn(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const E=a.toLowerCase();if(E==="http"||E==="https")return e.consume(p),d}return n(p)}function d(p){return p===47?(e.consume(p),u?h:(u=!0,d)):n(p)}function h(p){return p===null||yo(p)||gt(p)||ma(p)||Po(p)?n(p):e.attempt(A6,e.attempt(N6,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function nk(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),u):n(l)}function u(l){return l===null?n(l):t(l)}}function rk(e,t,n){let r,a,u;return l;function l(h){return h===46||h===95?e.check(_6,d,c)(h):h===null||gt(h)||ma(h)||h!==45&&Po(h)?d(h):(u=!0,e.consume(h),l)}function c(h){return h===95?r=!0:(a=r,r=void 0),e.consume(h),l}function d(h){return a||r||!u?n(h):t(h)}}function ik(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?u(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(_6,t,u)(l):l===null||gt(l)||ma(l)?t(l):(e.consume(l),a)}function u(l){return l===41&&r++,e.consume(l),a}}function ak(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),u):c===93?(e.consume(c),a):c===60||c===null||gt(c)||ma(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||gt(c)||ma(c)?t(c):r(c)}function u(c){return gn(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):gn(c)?(e.consume(c),l):n(c)}}function sk(e,t,n){return r;function r(u){return e.consume(u),a}function a(u){return ln(u)?n(u):t(u)}}function L6(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||gt(e)}function D6(e){return!gn(e)}function O6(e){return!(e===47||Gd(e))}function Gd(e){return e===43||e===45||e===46||e===95||ln(e)}function tf(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 uk={tokenize:pk,partial:!0};function lk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:hk,continuation:{tokenize:fk},exit:mk}},text:{91:{name:"gfmFootnoteCall",tokenize:dk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ok,resolveTo:ck}}}}function ok(e,t,n){const r=this;let a=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=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(!l||!l._balanced)return n(d);const h=hr(r.sliceSerialize({start:l.end,end:r.now()}));return h.codePointAt(0)!==94||!u.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function ck(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 u={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",u,t],["enter",l,t],["exit",l,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function dk(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,l;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",h)}function h(p){if(u>999||p===93&&!l||p===null||p===91||gt(p))return n(p);if(p===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return a.includes(hr(r.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return gt(p)||(l=!0),u++,e.consume(p),p===92?m:h}function m(p){return p===91||p===92||p===93?(e.consume(p),u++,h):h(p)}}function hk(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,l=0,c;return d;function d(C){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(C){return C===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(C)}function m(C){if(l>999||C===93&&!c||C===null||C===91||gt(C))return n(C);if(C===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return u=hr(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return gt(C)||(c=!0),l++,e.consume(C),C===92?p:m}function p(C){return C===91||C===92||C===93?(e.consume(C),l++,m):m(C)}function E(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),a.includes(u)||a.push(u),rt(e,x,"gfmFootnoteDefinitionWhitespace")):n(C)}function x(C){return t(C)}}function fk(e,t,n){return e.check(Iu,t,e.attempt(uk,t,n))}function mk(e){e.exit("gfmFootnoteDefinition")}function pk(e,t,n){const r=this;return rt(e,a,"gfmFootnoteDefinitionIndent",5);function a(u){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(u):n(u)}}function gk(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(l,c){let d=-1;for(;++d<l.length;)if(l[d][0]==="enter"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._close){let h=d;for(;h--;)if(l[h][0]==="exit"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._open&&l[d][1].end.offset-l[d][1].start.offset===l[h][1].end.offset-l[h][1].start.offset){l[d][1].type="strikethroughSequence",l[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},l[h][1].start),end:Object.assign({},l[d][1].end)},p={type:"strikethroughText",start:Object.assign({},l[h][1].end),end:Object.assign({},l[d][1].start)},E=[["enter",m,c],["enter",l[h][1],c],["exit",l[h][1],c],["enter",p,c]],x=c.parser.constructs.insideSpan.null;x&&Bn(E,E.length,0,Bo(x,l.slice(h+1,d),c)),Bn(E,E.length,0,[["exit",p,c],["enter",l[d][1],c],["exit",l[d][1],c],["exit",m,c]]),Bn(l,h-1,d-h+3,E),d=h+E.length-2;break}}for(d=-1;++d<l.length;)l[d][1].type==="strikethroughSequenceTemporary"&&(l[d][1].type="data");return l}function u(l,c,d){const h=this.previous,m=this.events;let p=0;return E;function E(C){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(C):(l.enter("strikethroughSequenceTemporary"),x(C))}function x(C){const _=Ja(h);if(C===126)return p>1?d(C):(l.consume(C),p++,x);if(p<2&&!n)return d(C);const R=l.exit("strikethroughSequenceTemporary"),I=Ja(C);return R._open=!I||I===2&&!!_,R._close=!_||_===2&&!!I,c(C)}}}class yk{constructor(){this.map=[]}add(t,n,r){vk(this,t,n,r)}consume(t){if(this.map.sort(function(u,l){return u[0]-l[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 u of a)t.push(u);a=r.pop()}this.map.length=0}}function vk(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 bk(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 u=r.length-1;r[u]=r[u]==="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 Ek(){return{flow:{null:{name:"table",tokenize:xk,resolveAll:Tk}}}}function xk(e,t,n){const r=this;let a=0,u=0,l;return c;function c(Y){let se=r.events.length-1;for(;se>-1;){const ge=r.events[se][1].type;if(ge==="lineEnding"||ge==="linePrefix")se--;else break}const le=se>-1?r.events[se][1].type:null,Me=le==="tableHead"||le==="tableRow"?W:d;return Me===W&&r.parser.lazy[r.now().line]?n(Y):Me(Y)}function d(Y){return e.enter("tableHead"),e.enter("tableRow"),h(Y)}function h(Y){return Y===124||(l=!0,u+=1),m(Y)}function m(Y){return Y===null?n(Y):ze(Y)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(Y),e.exit("lineEnding"),x):n(Y):it(Y)?rt(e,m,"whitespace")(Y):(u+=1,l&&(l=!1,a+=1),Y===124?(e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),l=!0,m):(e.enter("data"),p(Y)))}function p(Y){return Y===null||Y===124||gt(Y)?(e.exit("data"),m(Y)):(e.consume(Y),Y===92?E:p)}function E(Y){return Y===92||Y===124?(e.consume(Y),p):p(Y)}function x(Y){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(Y):(e.enter("tableDelimiterRow"),l=!1,it(Y)?rt(e,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):C(Y))}function C(Y){return Y===45||Y===58?R(Y):Y===124?(l=!0,e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),_):te(Y)}function _(Y){return it(Y)?rt(e,R,"whitespace")(Y):R(Y)}function R(Y){return Y===58?(u+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(Y),e.exit("tableDelimiterMarker"),I):Y===45?(u+=1,I(Y)):Y===null||ze(Y)?J(Y):te(Y)}function I(Y){return Y===45?(e.enter("tableDelimiterFiller"),M(Y)):te(Y)}function M(Y){return Y===45?(e.consume(Y),M):Y===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(Y),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(Y))}function j(Y){return it(Y)?rt(e,J,"whitespace")(Y):J(Y)}function J(Y){return Y===124?C(Y):Y===null||ze(Y)?!l||a!==u?te(Y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(Y)):te(Y)}function te(Y){return n(Y)}function W(Y){return e.enter("tableRow"),Z(Y)}function Z(Y){return Y===124?(e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),Z):Y===null||ze(Y)?(e.exit("tableRow"),t(Y)):it(Y)?rt(e,Z,"whitespace")(Y):(e.enter("data"),re(Y))}function re(Y){return Y===null||Y===124||gt(Y)?(e.exit("data"),Z(Y)):(e.consume(Y),Y===92?ie:re)}function ie(Y){return Y===92||Y===124?(e.consume(Y),re):re(Y)}}function Tk(e,t){let n=-1,r=!0,a=0,u=[0,0,0,0],l=[0,0,0,0],c=!1,d=0,h,m,p;const E=new yk;for(;++n<e.length;){const x=e[n],C=x[1];x[0]==="enter"?C.type==="tableHead"?(c=!1,d!==0&&(C2(E,t,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},E.add(n,0,[["enter",h,t]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(r=!0,p=void 0,u=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},E.add(n,0,[["enter",m,t]])),a=C.type==="tableDelimiterRow"?2:m?3:1):a&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(u[1]!==0&&(l[0]=l[1],p=Xl(E,t,u,a,void 0,p),u=[0,0,0,0]),l[2]=n)):C.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(l[0]=l[1],p=Xl(E,t,u,a,void 0,p)),u=l,l=[u[1],n,0,0])):C.type==="tableHead"?(c=!0,d=n):C.type==="tableRow"||C.type==="tableDelimiterRow"?(d=n,u[1]!==0?(l[0]=l[1],p=Xl(E,t,u,a,n,p)):l[1]!==0&&(p=Xl(E,t,l,a,n,p)),a=0):a&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&C2(E,t,d,h,m),E.consume(t.events),n=-1;++n<t.events.length;){const x=t.events[n];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=bk(t.events,n))}return e}function Xl(e,t,n,r,a,u){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(u.end=Object.assign({},Qa(t.events,n[0])),e.add(n[0],0,[["exit",u,t]]));const d=Qa(t.events,n[1]);if(u={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",u,t]]),n[2]!==0){const h=Qa(t.events,n[2]),m=Qa(t.events,n[3]),p={type:c,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const E=t.events[n[2]],x=t.events[n[3]];if(E[1].end=Object.assign({},x[1].end),E[1].type="chunkText",E[1].contentType="text",n[3]>n[2]+1){const C=n[2]+1,_=n[3]-n[2]-1;e.add(C,_,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return a!==void 0&&(u.end=Object.assign({},Qa(t.events,a)),e.add(a,0,[["exit",u,t]]),u=void 0),u}function C2(e,t,n,r,a){const u=[],l=Qa(t.events,n);a&&(a.end=Object.assign({},l),u.push(["exit",a,t])),r.end=Object.assign({},l),u.push(["exit",r,t]),e.add(n+1,0,u)}function Qa(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const wk={name:"tasklistCheck",tokenize:Sk};function kk(){return{text:{91:wk}}}function Sk(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"),u)}function u(d){return gt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return ze(d)?t(d):it(d)?e.check({tokenize:Ck},t,n)(d):n(d)}}function Ck(e,t,n){return rt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function Ak(e){return q3([Jw(),lk(),gk(e),Ek(),kk()])}const Nk={};function _k(e){const t=this,n=e||Nk,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(Ak(n)),u.push(Gw()),l.push(Qw(n))}function Ik(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:u},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:c,mathText:l,mathTextData:c}};function e(d){const h={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[h]}},d)}function t(){this.buffer()}function n(){const d=this.resume(),h=this.stack[this.stack.length-1];h.type,h.meta=d}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(d){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),m=this.stack[this.stack.length-1];m.type,this.exit(d),m.value=h;const p=m.data.hChildren[0];p.type,p.tagName,p.children.push({type:"text",value:h}),this.data.mathFlowInside=void 0}function u(d){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},d),this.buffer()}function l(d){const h=this.resume(),m=this.stack[this.stack.length-1];m.type,this.exit(d),m.value=h,m.data.hChildren.push({type:"text",value:h})}function c(d){this.config.enter.data.call(this,d),this.config.exit.data.call(this,d)}}function Rk(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
84
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(u,l,c,d){const h=u.value||"",m=c.createTracker(d),p="$".repeat(Math.max(p6(h,"$")+1,2)),E=c.enter("mathFlow");let x=m.move(p);if(u.meta){const C=c.enter("mathFlowMeta");x+=m.move(c.safe(u.meta,{after:`
85
+ `,before:x,encode:["$"],...m.current()})),C()}return x+=m.move(`
86
+ `),h&&(x+=m.move(h+`
87
+ `)),x+=m.move(p),E(),x}function r(u,l,c){let d=u.value||"",h=1;for(t||h++;new RegExp("(^|[^$])"+"\\$".repeat(h)+"([^$]|$)").test(d);)h++;const m="$".repeat(h);/[^ \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 E=c.unsafe[p];if(!E.atBreak)continue;const x=c.compilePattern(E);let C;for(;C=x.exec(d);){let _=C.index;d.codePointAt(_)===10&&d.codePointAt(_-1)===13&&_--,d=d.slice(0,_)+" "+d.slice(C.index+1)}}return m+d+m}function a(){return"$"}}const Lk={tokenize:Dk,concrete:!0,name:"mathFlow"},A2={tokenize:Ok,partial:!0};function Dk(e,t,n){const r=this,a=r.events[r.events.length-1],u=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let l=0;return c;function c(M){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),d(M)}function d(M){return M===36?(e.consume(M),l++,d):l<2?n(M):(e.exit("mathFlowFenceSequence"),rt(e,h,"whitespace")(M))}function h(M){return M===null||ze(M)?p(M):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(M))}function m(M){return M===null||ze(M)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),p(M)):M===36?n(M):(e.consume(M),m)}function p(M){return e.exit("mathFlowFence"),r.interrupt?t(M):e.attempt(A2,E,R)(M)}function E(M){return e.attempt({tokenize:I,partial:!0},R,x)(M)}function x(M){return(u?rt(e,C,"linePrefix",u+1):C)(M)}function C(M){return M===null?R(M):ze(M)?e.attempt(A2,E,R)(M):(e.enter("mathFlowValue"),_(M))}function _(M){return M===null||ze(M)?(e.exit("mathFlowValue"),C(M)):(e.consume(M),_)}function R(M){return e.exit("mathFlow"),t(M)}function I(M,j,J){let te=0;return rt(M,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function W(ie){return M.enter("mathFlowFence"),M.enter("mathFlowFenceSequence"),Z(ie)}function Z(ie){return ie===36?(te++,M.consume(ie),Z):te<l?J(ie):(M.exit("mathFlowFenceSequence"),rt(M,re,"whitespace")(ie))}function re(ie){return ie===null||ze(ie)?(M.exit("mathFlowFence"),j(ie)):J(ie)}}}function Ok(e,t,n){const r=this;return a;function a(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u)}function u(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Mk(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:Pk,previous:Bk,name:"mathText"};function r(a,u,l){let c=0,d,h;return m;function m(_){return a.enter("mathText"),a.enter("mathTextSequence"),p(_)}function p(_){return _===36?(a.consume(_),c++,p):c<2&&!n?l(_):(a.exit("mathTextSequence"),E(_))}function E(_){return _===null?l(_):_===36?(h=a.enter("mathTextSequence"),d=0,C(_)):_===32?(a.enter("space"),a.consume(_),a.exit("space"),E):ze(_)?(a.enter("lineEnding"),a.consume(_),a.exit("lineEnding"),E):(a.enter("mathTextData"),x(_))}function x(_){return _===null||_===32||_===36||ze(_)?(a.exit("mathTextData"),E(_)):(a.consume(_),x)}function C(_){return _===36?(a.consume(_),d++,C):d===c?(a.exit("mathTextSequence"),a.exit("mathText"),u(_)):(h.type="mathTextData",x(_))}}}function Pk(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 Bk(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Fk(e){return{flow:{36:Lk},text:{36:Mk(e)}}}class be extends Error{constructor(t,n){var r="KaTeX parse error: "+t,a,u,l=n&&n.loc;if(l&&l.start<=l.end){var c=l.lexer.input;a=l.start,u=l.end,a===c.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var d=c.slice(a,u).replace(/[^]/g,"$&̲"),h;a>15?h="…"+c.slice(a-15,a):h=c.slice(0,a);var m;u+15<c.length?m=c.slice(u,u+15)+"…":m=c.slice(u),r+=h+d+m}super(r),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,be.prototype),this.position=a,a!=null&&u!=null&&(this.length=u-a),this.rawMessage=t}}var zk=/([A-Z])/g,Hk=e=>e.replace(zk,"-$1").toLowerCase(),Uk={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},jk=/[&><"']/g,on=e=>String(e).replace(jk,t=>Uk[t]),co=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?co(e.body[0]):e:e.type==="font"?co(e.body):e,qk=new Set(["mathord","textord","atom"]),Jr=e=>qk.has(co(e).type),$k=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Eo={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 Wk(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function Yk(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return Wk(t)}function Vk(e,t,n,r){var a=n[t];e[t]=a!==void 0?r.processor?r.processor(a):a:Yk(r)}class nf{constructor(t){t===void 0&&(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 of Object.keys(Eo)){var r=Eo[n];r&&Vk(this,n,t,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 be("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("url"in t&&t.url&&!t.protocol){var n=$k(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class wi{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 Sr[Gk[this.id]]}sub(){return Sr[Qk[this.id]]}fracNum(){return Sr[Xk[this.id]]}fracDen(){return Sr[Kk[this.id]]}cramp(){return Sr[Jk[this.id]]}text(){return Sr[Zk[this.id]]}isTight(){return this.size>=2}}var rf=0,xo=1,Ka=2,Gr=3,Tu=4,Jn=5,Za=6,yn=7,Sr=[new wi(rf,0,!1),new wi(xo,0,!0),new wi(Ka,1,!1),new wi(Gr,1,!0),new wi(Tu,2,!1),new wi(Jn,2,!0),new wi(Za,3,!1),new wi(yn,3,!0)],Gk=[Tu,Jn,Tu,Jn,Za,yn,Za,yn],Qk=[Jn,Jn,Jn,Jn,yn,yn,yn,yn],Xk=[Ka,Gr,Tu,Jn,Za,yn,Za,yn],Kk=[Gr,Gr,Jn,Jn,yn,yn,yn,yn],Jk=[xo,xo,Gr,Gr,Jn,Jn,yn,yn],Zk=[rf,xo,Ka,Gr,Ka,Gr,Ka,Gr],Xe={DISPLAY:Sr[rf],TEXT:Sr[Ka],SCRIPT:Sr[Tu],SCRIPTSCRIPT:Sr[Za]},Qd=[{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 eS(e){for(var t=0;t<Qd.length;t++)for(var n=Qd[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 ho=[];Qd.forEach(e=>e.blocks.forEach(t=>ho.push(...t)));function M6(e){for(var t=0;t<ho.length;t+=2)if(e>=ho[t]&&e<=ho[t+1])return!0;return!1}var $t=e=>e+" "+e,Ga=80,tS=function(t,n){return"M95,"+(622+t+n)+`
88
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
89
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
90
+ 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
91
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
92
+ c69,-144,104.5,-217.7,106.5,-221
93
+ l`+t/2.075+" -"+t+`
94
+ c5.3,-9.3,12,-14,20,-14
95
+ H400000v`+(40+t)+`H845.2724
96
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
97
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
98
+ M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},nS=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
99
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
100
+ c340,-704.7,510.7,-1060.3,512,-1067
101
+ l`+t/2.084+" -"+t+`
102
+ c4.7,-7.3,11,-11,19,-11
103
+ H40000v`+(40+t)+`H1012.3
104
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
105
+ 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
106
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
107
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
108
+ M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},rS=function(t,n){return"M983 "+(10+t+n)+`
109
+ l`+t/3.13+" -"+t+`
110
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
111
+ 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
112
+ 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
113
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
114
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
115
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
116
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
117
+ M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},iS=function(t,n){return"M424,"+(2398+t+n)+`
118
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
119
+ 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
120
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
121
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
122
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
123
+ v`+(40+t)+`H1014.6
124
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
125
+ c-2,6,-10,9,-24,9
126
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
127
+ h400000v`+(40+t)+"h-400000z"},aS=function(t,n){return"M473,"+(2713+t+n)+`
128
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
129
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
130
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
131
+ 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
132
+ 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
133
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
134
+ 606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},sS=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},uS=function(t,n,r){var a=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
135
+ 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
136
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
137
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
138
+ 219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},lS=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=tS(n,Ga);break;case"sqrtSize1":a=nS(n,Ga);break;case"sqrtSize2":a=rS(n,Ga);break;case"sqrtSize3":a=iS(n,Ga);break;case"sqrtSize4":a=aS(n,Ga);break;case"sqrtTall":a=uS(n,Ga,r)}return a},oS=function(t,n){switch(t){case"⎜":return $t("M291 0 H417 V"+n+" H291z");case"∣":return $t("M145 0 H188 V"+n+" H145z");case"∥":return $t("M145 0 H188 V"+n+" H145z")+$t("M367 0 H410 V"+n+" H367z");case"⎟":return $t("M457 0 H583 V"+n+" H457z");case"⎢":return $t("M319 0 H403 V"+n+" H319z");case"⎥":return $t("M263 0 H347 V"+n+" H263z");case"⎪":return $t("M384 0 H504 V"+n+" H384z");case"⏐":return $t("M312 0 H355 V"+n+" H312z");case"‖":return $t("M257 0 H300 V"+n+" H257z")+$t("M478 0 H521 V"+n+" H478z");default:return""}},N2={doubleleftarrow:`M262 157
139
+ 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
140
+ 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
141
+ 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
142
+ 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
143
+ 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
144
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
145
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
146
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
147
+ -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
148
+ 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
149
+ -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
150
+ -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
151
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
152
+ 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
153
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
154
+ 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
155
+ -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
156
+ 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
157
+ 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
158
+ 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
159
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
160
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
161
+ 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
162
+ 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
163
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
164
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
165
+ 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
166
+ 435 0h399565z`,leftgroupunder:`M400000 262
167
+ 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
168
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
169
+ -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
170
+ -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
171
+ -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
172
+ 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
173
+ -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
174
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
175
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
176
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
177
+ 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
178
+ -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
179
+ 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
180
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
181
+ 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
182
+ -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
183
+ -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
184
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:$t("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:$t("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:$t("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:$t("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
185
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
186
+ 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
187
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:$t("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
188
+ 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
189
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
190
+ 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
191
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
192
+ 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
193
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
194
+ 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
195
+ -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
196
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
197
+ 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
198
+ 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
199
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
200
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
201
+ 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
202
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
203
+ 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
204
+ 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
205
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
206
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
207
+ 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
208
+ -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
209
+ 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
210
+ 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
211
+ -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
212
+ -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
213
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
214
+ -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
215
+ 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
216
+ 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
217
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
218
+ -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
219
+ 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
220
+ 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
221
+ -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
222
+ -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
223
+ 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
224
+ -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
225
+ 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
226
+ 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
227
+ 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
228
+ -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
229
+ -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
230
+ 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
231
+ 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
232
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
233
+ 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
234
+ 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
235
+ -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
236
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:$t("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:$t("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:$t("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
237
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
238
+ -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
239
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
240
+ 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
241
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
242
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
243
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
244
+ 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
245
+ 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
246
+ 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
247
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
248
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
249
+ 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
250
+ -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
251
+ 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
252
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
253
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
254
+ -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
255
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
256
+ 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
257
+ 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
258
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
259
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
260
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
261
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
262
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
263
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
264
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
265
+ -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
266
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
267
+ 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
268
+ -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
269
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
270
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
271
+ 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
272
+ 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
273
+ -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
274
+ -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
275
+ -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,
276
+ -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,
277
+ -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,
278
+ -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,
279
+ -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
280
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
281
+ 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
282
+ 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
283
+ 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
284
+ 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
285
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
286
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
287
+ -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
288
+ 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
289
+ -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
290
+ -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
291
+ -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
292
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
293
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
294
+ 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
295
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
296
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
297
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
298
+ 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,
299
+ -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
300
+ 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
301
+ 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
302
+ 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,
303
+ 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,
304
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
305
+ 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
306
+ 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,
307
+ -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
308
+ 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
309
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},cS=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 v84 h347 v-84
310
+ H403z M403 1759 V0 H319 V1759 v`+n+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
311
+ 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
312
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
313
+ 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
314
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
315
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
316
+ M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
317
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
318
+ 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
319
+ MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
320
+ MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
321
+ M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
322
+ 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
323
+ 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,
324
+ -36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
325
+ 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
326
+ 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,
327
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
328
+ l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
329
+ -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,
330
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
331
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
332
+ 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
333
+ 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
334
+ 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
335
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
336
+ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
337
+ -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.")}};function dS(e){return"toText"in e}class us{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 this.classes.includes(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(){return this.children.map(t=>{if(dS(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var Xd={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},hS={ex:!0,em:!0,mu:!0},P6=function(t){return typeof t!="string"&&(t=t.unit),t in Xd||t in hS||t==="ex"},It=function(t,n){var r;if(t.unit in Xd)r=Xd[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 be("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},we=function(t){return+t.toFixed(4)+"em"},Ii=function(t){return t.filter(n=>n).join(" ")},af=function(t){var n="";for(var r of Object.keys(t)){var a=t[r];a!==void 0&&(n+=Hk(r)+":"+a+";")}return n},B6=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)}},F6=function(t){var n=document.createElement(t);n.className=Ii(this.classes),Object.assign(n.style,this.style);for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n},fS=/[\s"'>/=\x00-\x1f]/,z6=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+on(Ii(this.classes))+'"');var r=af(this.style);r&&(n+=' style="'+on(r)+'"');for(var a of Object.keys(this.attributes)){if(fS.test(a))throw new be("Invalid attribute name '"+a+"'");n+=" "+a+'="'+on(this.attributes[a])+'"'}n+=">";for(var u=0;u<this.children.length;u++)n+=this.children[u].toMarkup();return n+="</"+t+">",n};class ls{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,this.italic=void 0,B6.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return F6.call(this,"span")}toMarkup(){return z6.call(this,"span")}}class Uo{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,B6.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return F6.call(this,"a")}toMarkup(){return z6.call(this,"a")}}class mS{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.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+on(this.src)+'"'+(' alt="'+on(this.alt)+'"'),n=af(this.style);return n&&(t+=' style="'+on(n)+'"'),t+="'/>",t}}var pS={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class zn{constructor(t,n,r,a,u,l,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=u||0,this.width=l||0,this.classes=c||[],this.style=d||{},this.maxFontSize=0;var h=eS(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=pS[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;return this.italic>0&&(n=document.createElement("span"),n.style.marginRight=we(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Ii(this.classes)),Object.keys(this.style).length>0&&(n=n||document.createElement("span"),Object.assign(n.style,this.style)),n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=on(Ii(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+we(this.italic)+";"),r+=af(this.style),r&&(t=!0,n+=' style="'+on(r)+'"');var a=on(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class Xr{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 of Object.keys(this.attributes))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 of Object.keys(this.attributes))t+=" "+n+'="'+on(this.attributes[n])+'"';t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class Ri{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",N2[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+on(this.alternate)+'"/>':'<path d="'+on(N2[this.pathName])+'"/>'}}class Kd{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 of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+on(this.attributes[n])+'"';return t+="/>",t}}function gS(e){if(e instanceof zn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function yS(e){if(e instanceof ls)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var vS=e=>e instanceof ls||e instanceof Uo||e instanceof us,Ar={"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]}},Kl={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]},_2={Å:"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 H6(e,t){Ar[e]=t}function sf(e,t,n){if(!Ar[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=Ar[t][r];if(!a&&e[0]in _2&&(r=_2[e[0]].charCodeAt(0),a=Ar[t][r]),!a&&n==="text"&&M6(r)&&(a=Ar[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var yd={};function bS(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!yd[t]){var n=yd[t]={cssEmPerMu:Kl.quad[t]/18};for(var r in Kl)Kl.hasOwnProperty(r)&&(n[r]=Kl[r][t])}return yd[t]}var St={math:{},text:{}};function v(e,t,n,r,a,u){St[e][a]={font:t,group:n,replace:r},u&&r&&(St[e][r]=St[e][a])}var w="math",ce="text",k="main",F="ams",Ct="accent-token",Ie="bin",vn="close",os="inner",$e="mathord",Ut="op-token",Un="open",Du="punct",H="rel",Zr="spacing",V="textord";v(w,k,H,"≡","\\equiv",!0);v(w,k,H,"≺","\\prec",!0);v(w,k,H,"≻","\\succ",!0);v(w,k,H,"∼","\\sim",!0);v(w,k,H,"⊥","\\perp");v(w,k,H,"⪯","\\preceq",!0);v(w,k,H,"⪰","\\succeq",!0);v(w,k,H,"≃","\\simeq",!0);v(w,k,H,"∣","\\mid",!0);v(w,k,H,"≪","\\ll",!0);v(w,k,H,"≫","\\gg",!0);v(w,k,H,"≍","\\asymp",!0);v(w,k,H,"∥","\\parallel");v(w,k,H,"⋈","\\bowtie",!0);v(w,k,H,"⌣","\\smile",!0);v(w,k,H,"⊑","\\sqsubseteq",!0);v(w,k,H,"⊒","\\sqsupseteq",!0);v(w,k,H,"≐","\\doteq",!0);v(w,k,H,"⌢","\\frown",!0);v(w,k,H,"∋","\\ni",!0);v(w,k,H,"∝","\\propto",!0);v(w,k,H,"⊢","\\vdash",!0);v(w,k,H,"⊣","\\dashv",!0);v(w,k,H,"∋","\\owns");v(w,k,Du,".","\\ldotp");v(w,k,Du,"⋅","\\cdotp");v(w,k,Du,"⋅","·");v(ce,k,V,"⋅","·");v(w,k,V,"#","\\#");v(ce,k,V,"#","\\#");v(w,k,V,"&","\\&");v(ce,k,V,"&","\\&");v(w,k,V,"ℵ","\\aleph",!0);v(w,k,V,"∀","\\forall",!0);v(w,k,V,"ℏ","\\hbar",!0);v(w,k,V,"∃","\\exists",!0);v(w,k,V,"∇","\\nabla",!0);v(w,k,V,"♭","\\flat",!0);v(w,k,V,"ℓ","\\ell",!0);v(w,k,V,"♮","\\natural",!0);v(w,k,V,"♣","\\clubsuit",!0);v(w,k,V,"℘","\\wp",!0);v(w,k,V,"♯","\\sharp",!0);v(w,k,V,"♢","\\diamondsuit",!0);v(w,k,V,"ℜ","\\Re",!0);v(w,k,V,"♡","\\heartsuit",!0);v(w,k,V,"ℑ","\\Im",!0);v(w,k,V,"♠","\\spadesuit",!0);v(w,k,V,"§","\\S",!0);v(ce,k,V,"§","\\S");v(w,k,V,"¶","\\P",!0);v(ce,k,V,"¶","\\P");v(w,k,V,"†","\\dag");v(ce,k,V,"†","\\dag");v(ce,k,V,"†","\\textdagger");v(w,k,V,"‡","\\ddag");v(ce,k,V,"‡","\\ddag");v(ce,k,V,"‡","\\textdaggerdbl");v(w,k,vn,"⎱","\\rmoustache",!0);v(w,k,Un,"⎰","\\lmoustache",!0);v(w,k,vn,"⟯","\\rgroup",!0);v(w,k,Un,"⟮","\\lgroup",!0);v(w,k,Ie,"∓","\\mp",!0);v(w,k,Ie,"⊖","\\ominus",!0);v(w,k,Ie,"⊎","\\uplus",!0);v(w,k,Ie,"⊓","\\sqcap",!0);v(w,k,Ie,"∗","\\ast");v(w,k,Ie,"⊔","\\sqcup",!0);v(w,k,Ie,"◯","\\bigcirc",!0);v(w,k,Ie,"∙","\\bullet",!0);v(w,k,Ie,"‡","\\ddagger");v(w,k,Ie,"≀","\\wr",!0);v(w,k,Ie,"⨿","\\amalg");v(w,k,Ie,"&","\\And");v(w,k,H,"⟵","\\longleftarrow",!0);v(w,k,H,"⇐","\\Leftarrow",!0);v(w,k,H,"⟸","\\Longleftarrow",!0);v(w,k,H,"⟶","\\longrightarrow",!0);v(w,k,H,"⇒","\\Rightarrow",!0);v(w,k,H,"⟹","\\Longrightarrow",!0);v(w,k,H,"↔","\\leftrightarrow",!0);v(w,k,H,"⟷","\\longleftrightarrow",!0);v(w,k,H,"⇔","\\Leftrightarrow",!0);v(w,k,H,"⟺","\\Longleftrightarrow",!0);v(w,k,H,"↦","\\mapsto",!0);v(w,k,H,"⟼","\\longmapsto",!0);v(w,k,H,"↗","\\nearrow",!0);v(w,k,H,"↩","\\hookleftarrow",!0);v(w,k,H,"↪","\\hookrightarrow",!0);v(w,k,H,"↘","\\searrow",!0);v(w,k,H,"↼","\\leftharpoonup",!0);v(w,k,H,"⇀","\\rightharpoonup",!0);v(w,k,H,"↙","\\swarrow",!0);v(w,k,H,"↽","\\leftharpoondown",!0);v(w,k,H,"⇁","\\rightharpoondown",!0);v(w,k,H,"↖","\\nwarrow",!0);v(w,k,H,"⇌","\\rightleftharpoons",!0);v(w,F,H,"≮","\\nless",!0);v(w,F,H,"","\\@nleqslant");v(w,F,H,"","\\@nleqq");v(w,F,H,"⪇","\\lneq",!0);v(w,F,H,"≨","\\lneqq",!0);v(w,F,H,"","\\@lvertneqq");v(w,F,H,"⋦","\\lnsim",!0);v(w,F,H,"⪉","\\lnapprox",!0);v(w,F,H,"⊀","\\nprec",!0);v(w,F,H,"⋠","\\npreceq",!0);v(w,F,H,"⋨","\\precnsim",!0);v(w,F,H,"⪹","\\precnapprox",!0);v(w,F,H,"≁","\\nsim",!0);v(w,F,H,"","\\@nshortmid");v(w,F,H,"∤","\\nmid",!0);v(w,F,H,"⊬","\\nvdash",!0);v(w,F,H,"⊭","\\nvDash",!0);v(w,F,H,"⋪","\\ntriangleleft");v(w,F,H,"⋬","\\ntrianglelefteq",!0);v(w,F,H,"⊊","\\subsetneq",!0);v(w,F,H,"","\\@varsubsetneq");v(w,F,H,"⫋","\\subsetneqq",!0);v(w,F,H,"","\\@varsubsetneqq");v(w,F,H,"≯","\\ngtr",!0);v(w,F,H,"","\\@ngeqslant");v(w,F,H,"","\\@ngeqq");v(w,F,H,"⪈","\\gneq",!0);v(w,F,H,"≩","\\gneqq",!0);v(w,F,H,"","\\@gvertneqq");v(w,F,H,"⋧","\\gnsim",!0);v(w,F,H,"⪊","\\gnapprox",!0);v(w,F,H,"⊁","\\nsucc",!0);v(w,F,H,"⋡","\\nsucceq",!0);v(w,F,H,"⋩","\\succnsim",!0);v(w,F,H,"⪺","\\succnapprox",!0);v(w,F,H,"≆","\\ncong",!0);v(w,F,H,"","\\@nshortparallel");v(w,F,H,"∦","\\nparallel",!0);v(w,F,H,"⊯","\\nVDash",!0);v(w,F,H,"⋫","\\ntriangleright");v(w,F,H,"⋭","\\ntrianglerighteq",!0);v(w,F,H,"","\\@nsupseteqq");v(w,F,H,"⊋","\\supsetneq",!0);v(w,F,H,"","\\@varsupsetneq");v(w,F,H,"⫌","\\supsetneqq",!0);v(w,F,H,"","\\@varsupsetneqq");v(w,F,H,"⊮","\\nVdash",!0);v(w,F,H,"⪵","\\precneqq",!0);v(w,F,H,"⪶","\\succneqq",!0);v(w,F,H,"","\\@nsubseteqq");v(w,F,Ie,"⊴","\\unlhd");v(w,F,Ie,"⊵","\\unrhd");v(w,F,H,"↚","\\nleftarrow",!0);v(w,F,H,"↛","\\nrightarrow",!0);v(w,F,H,"⇍","\\nLeftarrow",!0);v(w,F,H,"⇏","\\nRightarrow",!0);v(w,F,H,"↮","\\nleftrightarrow",!0);v(w,F,H,"⇎","\\nLeftrightarrow",!0);v(w,F,H,"△","\\vartriangle");v(w,F,V,"ℏ","\\hslash");v(w,F,V,"▽","\\triangledown");v(w,F,V,"◊","\\lozenge");v(w,F,V,"Ⓢ","\\circledS");v(w,F,V,"®","\\circledR");v(ce,F,V,"®","\\circledR");v(w,F,V,"∡","\\measuredangle",!0);v(w,F,V,"∄","\\nexists");v(w,F,V,"℧","\\mho");v(w,F,V,"Ⅎ","\\Finv",!0);v(w,F,V,"⅁","\\Game",!0);v(w,F,V,"‵","\\backprime");v(w,F,V,"▲","\\blacktriangle");v(w,F,V,"▼","\\blacktriangledown");v(w,F,V,"■","\\blacksquare");v(w,F,V,"⧫","\\blacklozenge");v(w,F,V,"★","\\bigstar");v(w,F,V,"∢","\\sphericalangle",!0);v(w,F,V,"∁","\\complement",!0);v(w,F,V,"ð","\\eth",!0);v(ce,k,V,"ð","ð");v(w,F,V,"╱","\\diagup");v(w,F,V,"╲","\\diagdown");v(w,F,V,"□","\\square");v(w,F,V,"□","\\Box");v(w,F,V,"◊","\\Diamond");v(w,F,V,"¥","\\yen",!0);v(ce,F,V,"¥","\\yen",!0);v(w,F,V,"✓","\\checkmark",!0);v(ce,F,V,"✓","\\checkmark");v(w,F,V,"ℶ","\\beth",!0);v(w,F,V,"ℸ","\\daleth",!0);v(w,F,V,"ℷ","\\gimel",!0);v(w,F,V,"ϝ","\\digamma",!0);v(w,F,V,"ϰ","\\varkappa");v(w,F,Un,"┌","\\@ulcorner",!0);v(w,F,vn,"┐","\\@urcorner",!0);v(w,F,Un,"└","\\@llcorner",!0);v(w,F,vn,"┘","\\@lrcorner",!0);v(w,F,H,"≦","\\leqq",!0);v(w,F,H,"⩽","\\leqslant",!0);v(w,F,H,"⪕","\\eqslantless",!0);v(w,F,H,"≲","\\lesssim",!0);v(w,F,H,"⪅","\\lessapprox",!0);v(w,F,H,"≊","\\approxeq",!0);v(w,F,Ie,"⋖","\\lessdot");v(w,F,H,"⋘","\\lll",!0);v(w,F,H,"≶","\\lessgtr",!0);v(w,F,H,"⋚","\\lesseqgtr",!0);v(w,F,H,"⪋","\\lesseqqgtr",!0);v(w,F,H,"≑","\\doteqdot");v(w,F,H,"≓","\\risingdotseq",!0);v(w,F,H,"≒","\\fallingdotseq",!0);v(w,F,H,"∽","\\backsim",!0);v(w,F,H,"⋍","\\backsimeq",!0);v(w,F,H,"⫅","\\subseteqq",!0);v(w,F,H,"⋐","\\Subset",!0);v(w,F,H,"⊏","\\sqsubset",!0);v(w,F,H,"≼","\\preccurlyeq",!0);v(w,F,H,"⋞","\\curlyeqprec",!0);v(w,F,H,"≾","\\precsim",!0);v(w,F,H,"⪷","\\precapprox",!0);v(w,F,H,"⊲","\\vartriangleleft");v(w,F,H,"⊴","\\trianglelefteq");v(w,F,H,"⊨","\\vDash",!0);v(w,F,H,"⊪","\\Vvdash",!0);v(w,F,H,"⌣","\\smallsmile");v(w,F,H,"⌢","\\smallfrown");v(w,F,H,"≏","\\bumpeq",!0);v(w,F,H,"≎","\\Bumpeq",!0);v(w,F,H,"≧","\\geqq",!0);v(w,F,H,"⩾","\\geqslant",!0);v(w,F,H,"⪖","\\eqslantgtr",!0);v(w,F,H,"≳","\\gtrsim",!0);v(w,F,H,"⪆","\\gtrapprox",!0);v(w,F,Ie,"⋗","\\gtrdot");v(w,F,H,"⋙","\\ggg",!0);v(w,F,H,"≷","\\gtrless",!0);v(w,F,H,"⋛","\\gtreqless",!0);v(w,F,H,"⪌","\\gtreqqless",!0);v(w,F,H,"≖","\\eqcirc",!0);v(w,F,H,"≗","\\circeq",!0);v(w,F,H,"≜","\\triangleq",!0);v(w,F,H,"∼","\\thicksim");v(w,F,H,"≈","\\thickapprox");v(w,F,H,"⫆","\\supseteqq",!0);v(w,F,H,"⋑","\\Supset",!0);v(w,F,H,"⊐","\\sqsupset",!0);v(w,F,H,"≽","\\succcurlyeq",!0);v(w,F,H,"⋟","\\curlyeqsucc",!0);v(w,F,H,"≿","\\succsim",!0);v(w,F,H,"⪸","\\succapprox",!0);v(w,F,H,"⊳","\\vartriangleright");v(w,F,H,"⊵","\\trianglerighteq");v(w,F,H,"⊩","\\Vdash",!0);v(w,F,H,"∣","\\shortmid");v(w,F,H,"∥","\\shortparallel");v(w,F,H,"≬","\\between",!0);v(w,F,H,"⋔","\\pitchfork",!0);v(w,F,H,"∝","\\varpropto");v(w,F,H,"◀","\\blacktriangleleft");v(w,F,H,"∴","\\therefore",!0);v(w,F,H,"∍","\\backepsilon");v(w,F,H,"▶","\\blacktriangleright");v(w,F,H,"∵","\\because",!0);v(w,F,H,"⋘","\\llless");v(w,F,H,"⋙","\\gggtr");v(w,F,Ie,"⊲","\\lhd");v(w,F,Ie,"⊳","\\rhd");v(w,F,H,"≂","\\eqsim",!0);v(w,k,H,"⋈","\\Join");v(w,F,H,"≑","\\Doteq",!0);v(w,F,Ie,"∔","\\dotplus",!0);v(w,F,Ie,"∖","\\smallsetminus");v(w,F,Ie,"⋒","\\Cap",!0);v(w,F,Ie,"⋓","\\Cup",!0);v(w,F,Ie,"⩞","\\doublebarwedge",!0);v(w,F,Ie,"⊟","\\boxminus",!0);v(w,F,Ie,"⊞","\\boxplus",!0);v(w,F,Ie,"⋇","\\divideontimes",!0);v(w,F,Ie,"⋉","\\ltimes",!0);v(w,F,Ie,"⋊","\\rtimes",!0);v(w,F,Ie,"⋋","\\leftthreetimes",!0);v(w,F,Ie,"⋌","\\rightthreetimes",!0);v(w,F,Ie,"⋏","\\curlywedge",!0);v(w,F,Ie,"⋎","\\curlyvee",!0);v(w,F,Ie,"⊝","\\circleddash",!0);v(w,F,Ie,"⊛","\\circledast",!0);v(w,F,Ie,"⋅","\\centerdot");v(w,F,Ie,"⊺","\\intercal",!0);v(w,F,Ie,"⋒","\\doublecap");v(w,F,Ie,"⋓","\\doublecup");v(w,F,Ie,"⊠","\\boxtimes",!0);v(w,F,H,"⇢","\\dashrightarrow",!0);v(w,F,H,"⇠","\\dashleftarrow",!0);v(w,F,H,"⇇","\\leftleftarrows",!0);v(w,F,H,"⇆","\\leftrightarrows",!0);v(w,F,H,"⇚","\\Lleftarrow",!0);v(w,F,H,"↞","\\twoheadleftarrow",!0);v(w,F,H,"↢","\\leftarrowtail",!0);v(w,F,H,"↫","\\looparrowleft",!0);v(w,F,H,"⇋","\\leftrightharpoons",!0);v(w,F,H,"↶","\\curvearrowleft",!0);v(w,F,H,"↺","\\circlearrowleft",!0);v(w,F,H,"↰","\\Lsh",!0);v(w,F,H,"⇈","\\upuparrows",!0);v(w,F,H,"↿","\\upharpoonleft",!0);v(w,F,H,"⇃","\\downharpoonleft",!0);v(w,k,H,"⊶","\\origof",!0);v(w,k,H,"⊷","\\imageof",!0);v(w,F,H,"⊸","\\multimap",!0);v(w,F,H,"↭","\\leftrightsquigarrow",!0);v(w,F,H,"⇉","\\rightrightarrows",!0);v(w,F,H,"⇄","\\rightleftarrows",!0);v(w,F,H,"↠","\\twoheadrightarrow",!0);v(w,F,H,"↣","\\rightarrowtail",!0);v(w,F,H,"↬","\\looparrowright",!0);v(w,F,H,"↷","\\curvearrowright",!0);v(w,F,H,"↻","\\circlearrowright",!0);v(w,F,H,"↱","\\Rsh",!0);v(w,F,H,"⇊","\\downdownarrows",!0);v(w,F,H,"↾","\\upharpoonright",!0);v(w,F,H,"⇂","\\downharpoonright",!0);v(w,F,H,"⇝","\\rightsquigarrow",!0);v(w,F,H,"⇝","\\leadsto");v(w,F,H,"⇛","\\Rrightarrow",!0);v(w,F,H,"↾","\\restriction");v(w,k,V,"‘","`");v(w,k,V,"$","\\$");v(ce,k,V,"$","\\$");v(ce,k,V,"$","\\textdollar");v(w,k,V,"%","\\%");v(ce,k,V,"%","\\%");v(w,k,V,"_","\\_");v(ce,k,V,"_","\\_");v(ce,k,V,"_","\\textunderscore");v(w,k,V,"∠","\\angle",!0);v(w,k,V,"∞","\\infty",!0);v(w,k,V,"′","\\prime");v(w,k,V,"△","\\triangle");v(w,k,V,"Γ","\\Gamma",!0);v(w,k,V,"Δ","\\Delta",!0);v(w,k,V,"Θ","\\Theta",!0);v(w,k,V,"Λ","\\Lambda",!0);v(w,k,V,"Ξ","\\Xi",!0);v(w,k,V,"Π","\\Pi",!0);v(w,k,V,"Σ","\\Sigma",!0);v(w,k,V,"Υ","\\Upsilon",!0);v(w,k,V,"Φ","\\Phi",!0);v(w,k,V,"Ψ","\\Psi",!0);v(w,k,V,"Ω","\\Omega",!0);v(w,k,V,"A","Α");v(w,k,V,"B","Β");v(w,k,V,"E","Ε");v(w,k,V,"Z","Ζ");v(w,k,V,"H","Η");v(w,k,V,"I","Ι");v(w,k,V,"K","Κ");v(w,k,V,"M","Μ");v(w,k,V,"N","Ν");v(w,k,V,"O","Ο");v(w,k,V,"P","Ρ");v(w,k,V,"T","Τ");v(w,k,V,"X","Χ");v(w,k,V,"¬","\\neg",!0);v(w,k,V,"¬","\\lnot");v(w,k,V,"⊤","\\top");v(w,k,V,"⊥","\\bot");v(w,k,V,"∅","\\emptyset");v(w,F,V,"∅","\\varnothing");v(w,k,$e,"α","\\alpha",!0);v(w,k,$e,"β","\\beta",!0);v(w,k,$e,"γ","\\gamma",!0);v(w,k,$e,"δ","\\delta",!0);v(w,k,$e,"ϵ","\\epsilon",!0);v(w,k,$e,"ζ","\\zeta",!0);v(w,k,$e,"η","\\eta",!0);v(w,k,$e,"θ","\\theta",!0);v(w,k,$e,"ι","\\iota",!0);v(w,k,$e,"κ","\\kappa",!0);v(w,k,$e,"λ","\\lambda",!0);v(w,k,$e,"μ","\\mu",!0);v(w,k,$e,"ν","\\nu",!0);v(w,k,$e,"ξ","\\xi",!0);v(w,k,$e,"ο","\\omicron",!0);v(w,k,$e,"π","\\pi",!0);v(w,k,$e,"ρ","\\rho",!0);v(w,k,$e,"σ","\\sigma",!0);v(w,k,$e,"τ","\\tau",!0);v(w,k,$e,"υ","\\upsilon",!0);v(w,k,$e,"ϕ","\\phi",!0);v(w,k,$e,"χ","\\chi",!0);v(w,k,$e,"ψ","\\psi",!0);v(w,k,$e,"ω","\\omega",!0);v(w,k,$e,"ε","\\varepsilon",!0);v(w,k,$e,"ϑ","\\vartheta",!0);v(w,k,$e,"ϖ","\\varpi",!0);v(w,k,$e,"ϱ","\\varrho",!0);v(w,k,$e,"ς","\\varsigma",!0);v(w,k,$e,"φ","\\varphi",!0);v(w,k,Ie,"∗","*",!0);v(w,k,Ie,"+","+");v(w,k,Ie,"−","-",!0);v(w,k,Ie,"⋅","\\cdot",!0);v(w,k,Ie,"∘","\\circ",!0);v(w,k,Ie,"÷","\\div",!0);v(w,k,Ie,"±","\\pm",!0);v(w,k,Ie,"×","\\times",!0);v(w,k,Ie,"∩","\\cap",!0);v(w,k,Ie,"∪","\\cup",!0);v(w,k,Ie,"∖","\\setminus",!0);v(w,k,Ie,"∧","\\land");v(w,k,Ie,"∨","\\lor");v(w,k,Ie,"∧","\\wedge",!0);v(w,k,Ie,"∨","\\vee",!0);v(w,k,V,"√","\\surd");v(w,k,Un,"⟨","\\langle",!0);v(w,k,Un,"∣","\\lvert");v(w,k,Un,"∥","\\lVert");v(w,k,vn,"?","?");v(w,k,vn,"!","!");v(w,k,vn,"⟩","\\rangle",!0);v(w,k,vn,"∣","\\rvert");v(w,k,vn,"∥","\\rVert");v(w,k,H,"=","=");v(w,k,H,":",":");v(w,k,H,"≈","\\approx",!0);v(w,k,H,"≅","\\cong",!0);v(w,k,H,"≥","\\ge");v(w,k,H,"≥","\\geq",!0);v(w,k,H,"←","\\gets");v(w,k,H,">","\\gt",!0);v(w,k,H,"∈","\\in",!0);v(w,k,H,"","\\@not");v(w,k,H,"⊂","\\subset",!0);v(w,k,H,"⊃","\\supset",!0);v(w,k,H,"⊆","\\subseteq",!0);v(w,k,H,"⊇","\\supseteq",!0);v(w,F,H,"⊈","\\nsubseteq",!0);v(w,F,H,"⊉","\\nsupseteq",!0);v(w,k,H,"⊨","\\models");v(w,k,H,"←","\\leftarrow",!0);v(w,k,H,"≤","\\le");v(w,k,H,"≤","\\leq",!0);v(w,k,H,"<","\\lt",!0);v(w,k,H,"→","\\rightarrow",!0);v(w,k,H,"→","\\to");v(w,F,H,"≱","\\ngeq",!0);v(w,F,H,"≰","\\nleq",!0);v(w,k,Zr," ","\\ ");v(w,k,Zr," ","\\space");v(w,k,Zr," ","\\nobreakspace");v(ce,k,Zr," ","\\ ");v(ce,k,Zr," "," ");v(ce,k,Zr," ","\\space");v(ce,k,Zr," ","\\nobreakspace");v(w,k,Zr,"","\\nobreak");v(w,k,Zr,"","\\allowbreak");v(w,k,Du,",",",");v(w,k,Du,";",";");v(w,F,Ie,"⊼","\\barwedge",!0);v(w,F,Ie,"⊻","\\veebar",!0);v(w,k,Ie,"⊙","\\odot",!0);v(w,k,Ie,"⊕","\\oplus",!0);v(w,k,Ie,"⊗","\\otimes",!0);v(w,k,V,"∂","\\partial",!0);v(w,k,Ie,"⊘","\\oslash",!0);v(w,F,Ie,"⊚","\\circledcirc",!0);v(w,F,Ie,"⊡","\\boxdot",!0);v(w,k,Ie,"△","\\bigtriangleup");v(w,k,Ie,"▽","\\bigtriangledown");v(w,k,Ie,"†","\\dagger");v(w,k,Ie,"⋄","\\diamond");v(w,k,Ie,"⋆","\\star");v(w,k,Ie,"◃","\\triangleleft");v(w,k,Ie,"▹","\\triangleright");v(w,k,Un,"{","\\{");v(ce,k,V,"{","\\{");v(ce,k,V,"{","\\textbraceleft");v(w,k,vn,"}","\\}");v(ce,k,V,"}","\\}");v(ce,k,V,"}","\\textbraceright");v(w,k,Un,"{","\\lbrace");v(w,k,vn,"}","\\rbrace");v(w,k,Un,"[","\\lbrack",!0);v(ce,k,V,"[","\\lbrack",!0);v(w,k,vn,"]","\\rbrack",!0);v(ce,k,V,"]","\\rbrack",!0);v(w,k,Un,"(","\\lparen",!0);v(w,k,vn,")","\\rparen",!0);v(ce,k,V,"<","\\textless",!0);v(ce,k,V,">","\\textgreater",!0);v(w,k,Un,"⌊","\\lfloor",!0);v(w,k,vn,"⌋","\\rfloor",!0);v(w,k,Un,"⌈","\\lceil",!0);v(w,k,vn,"⌉","\\rceil",!0);v(w,k,V,"\\","\\backslash");v(w,k,V,"∣","|");v(w,k,V,"∣","\\vert");v(ce,k,V,"|","\\textbar",!0);v(w,k,V,"∥","\\|");v(w,k,V,"∥","\\Vert");v(ce,k,V,"∥","\\textbardbl");v(ce,k,V,"~","\\textasciitilde");v(ce,k,V,"\\","\\textbackslash");v(ce,k,V,"^","\\textasciicircum");v(w,k,H,"↑","\\uparrow",!0);v(w,k,H,"⇑","\\Uparrow",!0);v(w,k,H,"↓","\\downarrow",!0);v(w,k,H,"⇓","\\Downarrow",!0);v(w,k,H,"↕","\\updownarrow",!0);v(w,k,H,"⇕","\\Updownarrow",!0);v(w,k,Ut,"∐","\\coprod");v(w,k,Ut,"⋁","\\bigvee");v(w,k,Ut,"⋀","\\bigwedge");v(w,k,Ut,"⨄","\\biguplus");v(w,k,Ut,"⋂","\\bigcap");v(w,k,Ut,"⋃","\\bigcup");v(w,k,Ut,"∫","\\int");v(w,k,Ut,"∫","\\intop");v(w,k,Ut,"∬","\\iint");v(w,k,Ut,"∭","\\iiint");v(w,k,Ut,"∏","\\prod");v(w,k,Ut,"∑","\\sum");v(w,k,Ut,"⨂","\\bigotimes");v(w,k,Ut,"⨁","\\bigoplus");v(w,k,Ut,"⨀","\\bigodot");v(w,k,Ut,"∮","\\oint");v(w,k,Ut,"∯","\\oiint");v(w,k,Ut,"∰","\\oiiint");v(w,k,Ut,"⨆","\\bigsqcup");v(w,k,Ut,"∫","\\smallint");v(ce,k,os,"…","\\textellipsis");v(w,k,os,"…","\\mathellipsis");v(ce,k,os,"…","\\ldots",!0);v(w,k,os,"…","\\ldots",!0);v(w,k,os,"⋯","\\@cdots",!0);v(w,k,os,"⋱","\\ddots",!0);v(w,k,V,"⋮","\\varvdots");v(ce,k,V,"⋮","\\varvdots");v(w,k,Ct,"ˊ","\\acute");v(w,k,Ct,"ˋ","\\grave");v(w,k,Ct,"¨","\\ddot");v(w,k,Ct,"~","\\tilde");v(w,k,Ct,"ˉ","\\bar");v(w,k,Ct,"˘","\\breve");v(w,k,Ct,"ˇ","\\check");v(w,k,Ct,"^","\\hat");v(w,k,Ct,"⃗","\\vec");v(w,k,Ct,"˙","\\dot");v(w,k,Ct,"˚","\\mathring");v(w,k,$e,"","\\@imath");v(w,k,$e,"","\\@jmath");v(w,k,V,"ı","ı");v(w,k,V,"ȷ","ȷ");v(ce,k,V,"ı","\\i",!0);v(ce,k,V,"ȷ","\\j",!0);v(ce,k,V,"ß","\\ss",!0);v(ce,k,V,"æ","\\ae",!0);v(ce,k,V,"œ","\\oe",!0);v(ce,k,V,"ø","\\o",!0);v(ce,k,V,"Æ","\\AE",!0);v(ce,k,V,"Œ","\\OE",!0);v(ce,k,V,"Ø","\\O",!0);v(ce,k,Ct,"ˊ","\\'");v(ce,k,Ct,"ˋ","\\`");v(ce,k,Ct,"ˆ","\\^");v(ce,k,Ct,"˜","\\~");v(ce,k,Ct,"ˉ","\\=");v(ce,k,Ct,"˘","\\u");v(ce,k,Ct,"˙","\\.");v(ce,k,Ct,"¸","\\c");v(ce,k,Ct,"˚","\\r");v(ce,k,Ct,"ˇ","\\v");v(ce,k,Ct,"¨",'\\"');v(ce,k,Ct,"˝","\\H");v(ce,k,Ct,"◯","\\textcircled");var U6={"--":!0,"---":!0,"``":!0,"''":!0};v(ce,k,V,"–","--",!0);v(ce,k,V,"–","\\textendash");v(ce,k,V,"—","---",!0);v(ce,k,V,"—","\\textemdash");v(ce,k,V,"‘","`",!0);v(ce,k,V,"‘","\\textquoteleft");v(ce,k,V,"’","'",!0);v(ce,k,V,"’","\\textquoteright");v(ce,k,V,"“","``",!0);v(ce,k,V,"“","\\textquotedblleft");v(ce,k,V,"”","''",!0);v(ce,k,V,"”","\\textquotedblright");v(w,k,V,"°","\\degree",!0);v(ce,k,V,"°","\\degree");v(ce,k,V,"°","\\textdegree",!0);v(w,k,V,"£","\\pounds");v(w,k,V,"£","\\mathsterling",!0);v(ce,k,V,"£","\\pounds");v(ce,k,V,"£","\\textsterling",!0);v(w,F,V,"✠","\\maltese");v(ce,F,V,"✠","\\maltese");var I2='0123456789/@."';for(var vd=0;vd<I2.length;vd++){var R2=I2.charAt(vd);v(w,k,V,R2,R2)}var L2='0123456789!@*()-=+";:?/.,';for(var bd=0;bd<L2.length;bd++){var D2=L2.charAt(bd);v(ce,k,V,D2,D2)}var To="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Ed=0;Ed<To.length;Ed++){var Jl=To.charAt(Ed);v(w,k,$e,Jl,Jl),v(ce,k,V,Jl,Jl)}v(w,F,V,"C","ℂ");v(ce,F,V,"C","ℂ");v(w,F,V,"H","ℍ");v(ce,F,V,"H","ℍ");v(w,F,V,"N","ℕ");v(ce,F,V,"N","ℕ");v(w,F,V,"P","ℙ");v(ce,F,V,"P","ℙ");v(w,F,V,"Q","ℚ");v(ce,F,V,"Q","ℚ");v(w,F,V,"R","ℝ");v(ce,F,V,"R","ℝ");v(w,F,V,"Z","ℤ");v(ce,F,V,"Z","ℤ");v(w,k,$e,"h","ℎ");v(ce,k,$e,"h","ℎ");var Ye;for(var mn=0;mn<To.length;mn++){var Lt=To.charAt(mn);Ye=String.fromCharCode(55349,56320+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56372+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56424+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56580+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56684+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56736+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56788+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56840+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56944+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),mn<26&&(Ye=String.fromCharCode(55349,56632+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye),Ye=String.fromCharCode(55349,56476+mn),v(w,k,$e,Lt,Ye),v(ce,k,V,Lt,Ye))}Ye="𝕜";v(w,k,$e,"k",Ye);v(ce,k,V,"k",Ye);for(var ia=0;ia<10;ia++){var ki=ia.toString();Ye=String.fromCharCode(55349,57294+ia),v(w,k,$e,ki,Ye),v(ce,k,V,ki,Ye),Ye=String.fromCharCode(55349,57314+ia),v(w,k,$e,ki,Ye),v(ce,k,V,ki,Ye),Ye=String.fromCharCode(55349,57324+ia),v(w,k,$e,ki,Ye),v(ce,k,V,ki,Ye),Ye=String.fromCharCode(55349,57334+ia),v(w,k,$e,ki,Ye),v(ce,k,V,ki,Ye)}var Jd="ÐÞþ";for(var xd=0;xd<Jd.length;xd++){var Zl=Jd.charAt(xd);v(w,k,$e,Zl,Zl),v(ce,k,V,Zl,Zl)}var Zd={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},O2={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},M2={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},ES={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},ca={mathClass:"",textClass:"",font:""},P2={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},B2={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},F2={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},eh={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},th={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},z2={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},nh={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},H2=[Zd,Zd,O2,O2,M2,M2,ES,ca,ca,ca,P2,P2,B2,B2,F2,F2,eh,eh,th,th,z2,z2,ca,ca,nh,nh],xS=[Zd,ca,eh,th,nh],TS=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484){var a=Math.floor((r-119808)/26);return H2[a]}else if(120782<=r&&r<=120831){var u=Math.floor((r-120782)/10);return xS[u]}else{if(r===120485||r===120486)return H2[0];if(120486<r&&r<120782)return ca;throw new be("Unsupported character: "+e)}},jo=function(t,n,r){if(St[r][t]){var a=St[r][t].replace;a&&(t=a)}return{value:t,metrics:sf(t,n,r)}},pn=function(t,n,r,a,u){var l=jo(t,n,r),c=l.metrics;t=l.value;var d;if(c){var h=c.italic;(r==="text"||a&&a.font==="mathit")&&(h=0),d=new zn(t,c.height,c.depth,h,c.skew,c.width,u)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),d=new zn(t,0,0,0,0,0,u);if(a){d.maxFontSize=a.sizeMultiplier,a.style.isTight()&&d.classes.push("mtight");var m=a.getColor();m&&(d.style.color=m)}return d},uf=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&jo(t,"Main-Bold",n).metrics?pn(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||St[n][t].font==="main"?pn(t,"Main-Regular",n,r,a):pn(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},wS=function(t,n,r){return r!=="textord"&&jo(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},qo=function(t,n,r){var a=t.mode,u=t.text,l=["mord"],{font:c,fontFamily:d,fontWeight:h,fontShape:m}=n,p=a==="math"||a==="text"&&!!c,E=p?c:d,x="",C="";if(u.charCodeAt(0)===55349){var _=TS(u);x=_.font,C=_[a+"Class"]}if(x)return pn(u,x,a,n,l.concat(C));if(E){var R,I;if(E==="boldsymbol"){var M=wS(u,a,r);R=M.fontName,I=[M.fontClass]}else p?(R=rh[c].fontName,I=[c]):(R=eo(d,h,m),I=[d,h,m]);if(jo(u,R,a).metrics)return pn(u,R,a,n,l.concat(I));if(U6.hasOwnProperty(u)&&R.slice(0,10)==="Typewriter"){for(var j=[],J=0;J<u.length;J++)j.push(pn(u[J],R,a,n,l.concat(I)));return ei(j)}}if(r==="mathord")return pn(u,"Math-Italic",a,n,l.concat(["mathnormal"]));if(r==="textord"){var te=St[a][u]&&St[a][u].font;if(te==="ams"){var W=eo("amsrm",h,m);return pn(u,W,a,n,l.concat("amsrm",h,m))}else if(te==="main"||!te){var Z=eo("textrm",h,m);return pn(u,Z,a,n,l.concat(h,m))}else{var re=eo(te,h,m);return pn(u,re,a,n,l.concat(re,h,m))}}else throw new Error("unexpected type: "+r+" in makeOrd")},kS=(e,t)=>{if(Ii(e.classes)!==Ii(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},j6=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof zn&&r instanceof zn&&kS(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},lf=function(t){for(var n=0,r=0,a=0,u=0;u<t.children.length;u++){var l=t.children[u];l.height>n&&(n=l.height),l.depth>r&&(r=l.depth),l.maxFontSize>a&&(a=l.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},pe=function(t,n,r,a){var u=new ls(t,n,r,a);return lf(u),u},Li=(e,t,n,r)=>new ls(e,t,n,r),es=function(t,n,r){var a=pe([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=we(a.height),a.maxFontSize=1,a},SS=function(t,n,r,a){var u=new Uo(t,n,r,a);return lf(u),u},ei=function(t){var n=new us(t);return lf(n),n},ts=function(t,n){return t instanceof us?pe([],[t],n):t},CS=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,u=a,l=1;l<n.length;l++){var c=-n[l].shift-u-n[l].elem.depth,d=c-(n[l-1].elem.height+n[l-1].elem.depth);u=u+c,r.push({type:"kern",size:d}),r.push(n[l])}return{children:r,depth:a}}var h;if(t.positionType==="top"){for(var m=t.positionData,p=0;p<t.children.length;p++){var E=t.children[p];m-=E.type==="kern"?E.size:E.elem.height+E.elem.depth}h=m}else if(t.positionType==="bottom")h=-t.positionData;else{var x=t.children[0];if(x.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")h=-x.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-x.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},dt=function(t,n){for(var{children:r,depth:a}=CS(t),u=0,l=0;l<r.length;l++){var c=r[l];if(c.type==="elem"){var d=c.elem;u=Math.max(u,d.maxFontSize,d.height)}}u+=2;var h=pe(["pstrut"],[]);h.style.height=we(u);for(var m=[],p=a,E=a,x=a,C=0;C<r.length;C++){var _=r[C];if(_.type==="kern")x+=_.size;else{var R=_.elem,I=_.wrapperClasses||[],M=_.wrapperStyle||{},j=pe(I,[h,R],void 0,M);j.style.top=we(-u-x-R.depth),_.marginLeft&&(j.style.marginLeft=_.marginLeft),_.marginRight&&(j.style.marginRight=_.marginRight),m.push(j),x+=R.height+R.depth}p=Math.min(p,x),E=Math.max(E,x)}var J=pe(["vlist"],m);J.style.height=we(E);var te;if(p<0){var W=pe([],[]),Z=pe(["vlist"],[W]);Z.style.height=we(-p);var re=pe(["vlist-s"],[new zn("​")]);te=[pe(["vlist-r"],[J,re]),pe(["vlist-r"],[Z])]}else te=[pe(["vlist-r"],[J])];var ie=pe(["vlist-t"],te);return te.length===2&&ie.classes.push("vlist-t2"),ie.height=E,ie.depth=-p,ie},q6=(e,t)=>{var n=pe(["mspace"],[],t),r=It(e,t);return n.style.marginRight=we(r),n},eo=(e,t,n)=>{var r,a;switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return t==="textbf"&&n==="textit"?a="BoldItalic":t==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",r+"-"+a},rh={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"}},$6={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},W6=function(t,n){var[r,a,u]=$6[t],l=new Ri(r),c=new Xr([l],{width:we(a),height:we(u),style:"width:"+we(a),viewBox:"0 0 "+1e3*a+" "+1e3*u,preserveAspectRatio:"xMinYMin"}),d=Li(["overlay"],[c],n);return d.height=u,d.style.height=we(u),d.style.width=we(a),d},_t={number:3,unit:"mu"},aa={number:4,unit:"mu"},Wr={number:5,unit:"mu"},AS={mord:{mop:_t,mbin:aa,mrel:Wr,minner:_t},mop:{mord:_t,mop:_t,mrel:Wr,minner:_t},mbin:{mord:aa,mop:aa,mopen:aa,minner:aa},mrel:{mord:Wr,mop:Wr,mopen:Wr,minner:Wr},mopen:{},mclose:{mop:_t,mbin:aa,mrel:Wr,minner:_t},mpunct:{mord:_t,mop:_t,mrel:Wr,mopen:_t,mclose:_t,mpunct:_t,minner:_t},minner:{mord:_t,mop:_t,mbin:aa,mrel:Wr,mopen:_t,mpunct:_t,minner:_t}},NS={mord:{mop:_t},mop:{mord:_t,mop:_t},mbin:{},mrel:{},mopen:{},mclose:{mop:_t},mpunct:{},minner:{mop:_t}},Y6={},wo={},ko={};function Ce(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:u,mathmlBuilder:l}=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)Y6[n[d]]=c;t&&(u&&(wo[t]=u),l&&(ko[t]=l))}function va(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Ce({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var So=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},zt=function(t){return t.type==="ordgroup"?t.body:[t]},_S=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),IS=new Set(["rightmost","mrel","mclose","mpunct"]),RS={display:Xe.DISPLAY,text:Xe.TEXT,script:Xe.SCRIPT,scriptscript:Xe.SCRIPTSCRIPT},LS={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Wt=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var u=[],l=0;l<t.length;l++){var c=ht(t[l],n);if(c instanceof us){var d=c.children;u.push(...d)}else u.push(c)}if(j6(u),!r)return u;var h=n;if(t.length===1){var m=t[0];m.type==="sizing"?h=n.havingSize(m.size):m.type==="styling"&&(h=n.havingStyle(RS[m.style]))}var p=pe([a[0]||"leftmost"],[],n),E=pe([a[1]||"rightmost"],[],n),x=r==="root";return ih(u,(C,_)=>{var R=_.classes[0],I=C.classes[0];R==="mbin"&&IS.has(I)?_.classes[0]="mord":I==="mbin"&&_S.has(R)&&(C.classes[0]="mord")},{node:p},E,x),ih(u,(C,_)=>{var R,I,M=sh(_),j=sh(C),J=M&&j?C.hasClass("mtight")?(R=NS[M])==null?void 0:R[j]:(I=AS[M])==null?void 0:I[j]:null;if(J)return q6(J,h)},{node:p},E,x),u},ih=function(t,n,r,a,u){a&&t.push(a);for(var l=0;l<t.length;l++){var c=t[l],d=V6(c);if(d){ih(d.children,n,r,null,u);continue}var h=!c.hasClass("mspace");if(h){var m=n(c,r.node);m&&(r.insertAfter?r.insertAfter(m):(t.unshift(m),l++))}h?r.node=c:u&&c.hasClass("newline")&&(r.node=pe(["leftmost"])),r.insertAfter=(p=>E=>{t.splice(p+1,0,E),l++})(l)}a&&t.pop()},V6=function(t){return t instanceof us||t instanceof Uo||t instanceof ls&&t.hasClass("enclosing")?t:null},ah=function(t,n){var r=V6(t);if(r){var a=r.children;if(a.length){if(n==="right")return ah(a[a.length-1],"right");if(n==="left")return ah(a[0],"left")}}return t},sh=function(t,n){if(!t)return null;n&&(t=ah(t,n));var r=t.classes[0];return LS[r]||null},wu=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return pe(n.concat(r))},ht=function(t,n,r){if(!t)return pe();if(wo[t.type]){var a=wo[t.type](t,n);if(r&&n.size!==r.size){a=pe(n.sizingClasses(r),[a],n);var u=n.sizeMultiplier/r.sizeMultiplier;a.height*=u,a.depth*=u}return a}else throw new be("Got group of unknown type: '"+t.type+"'")};function to(e,t){var n=pe(["base"],e,t),r=pe(["strut"]);return r.style.height=we(n.height+n.depth),n.depth&&(r.style.verticalAlign=we(-n.depth)),n.children.unshift(r),n}function uh(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Wt(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var u=[],l=[],c=0;c<r.length;c++)if(l.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++,l.push(r[c]),r[c].hasClass("nobreak")&&(d=!0);d||(u.push(to(l,t)),l=[])}else r[c].hasClass("newline")&&(l.pop(),l.length>0&&(u.push(to(l,t)),l=[]),u.push(r[c]));l.length>0&&u.push(to(l,t));var h;n?(h=to(Wt(n,t,!0),t),h.classes=["tag"],u.push(h)):a&&u.push(a);var m=pe(["katex-html"],u);if(m.setAttribute("aria-hidden","true"),h){var p=h.children[0];p.style.height=we(m.height+m.depth),m.depth&&(p.style.verticalAlign=we(-m.depth))}return m}function G6(e){return new us(e)}class xe{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=Ii(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Ht&&this.children[r+1]instanceof Ht){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Ht;)a+=this.children[++r].toText();t.appendChild(new Ht(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+=on(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+on(Ii(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 Ht{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return on(this.toText())}toText(){return this.text}}class Q6{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",we(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+we(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var DS=new Set(["\\imath","\\jmath"]),OS=new Set(["mrow","mtable"]),er=function(t,n,r){return St[n][t]&&St[n][t].replace&&t.charCodeAt(0)!==55349&&!(U6.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=St[n][t].replace),new Ht(t)},of=function(t){return t.length===1?t[0]:new xe("mrow",t)},MS={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},cf=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var n=t.font;if(!n||n==="mathnormal")return null;var r=e.mode,a=MS[n];if(a)return typeof a=="function"?a(e):a;var u=e.text;if(DS.has(u))return null;if(St[r][u]){var l=St[r][u].replace;l&&(u=l)}var c=rh[n].fontName;return sf(u,c,r)?rh[n].variant:null};function Td(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Ht&&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 Ht&&n.text===","}else return!1}var jn=function(t,n,r){if(t.length===1){var a=yt(t[0],n);return r&&a instanceof xe&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var u=[],l,c=0;c<t.length;c++){var d=yt(t[c],n);if(d instanceof xe&&l instanceof xe){if(d.type==="mtext"&&l.type==="mtext"&&d.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...d.children);continue}else if(d.type==="mn"&&l.type==="mn"){l.children.push(...d.children);continue}else if(Td(d)&&l.type==="mn"){l.children.push(...d.children);continue}else if(d.type==="mn"&&Td(l))d.children=[...l.children,...d.children],u.pop();else if((d.type==="msup"||d.type==="msub")&&d.children.length>=1&&(l.type==="mn"||Td(l))){var h=d.children[0];h instanceof xe&&h.type==="mn"&&(h.children=[...l.children,...h.children],u.pop())}else if(l.type==="mi"&&l.children.length===1){var m=l.children[0];if(m instanceof Ht&&m.text==="̸"&&(d.type==="mo"||d.type==="mi"||d.type==="mn")){var p=d.children[0];p instanceof Ht&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),u.pop())}}}u.push(d),l=d}return u},Di=function(t,n,r){return of(jn(t,n,r))},yt=function(t,n){if(!t)return new xe("mrow");if(ko[t.type])return ko[t.type](t,n);throw new be("Got group of unknown type: '"+t.type+"'")};function U2(e,t,n,r,a){var u=jn(e,n),l;u.length===1&&u[0]instanceof xe&&OS.has(u[0].type)?l=u[0]:l=new xe("mrow",u);var c=new xe("annotation",[new Ht(t)]);c.setAttribute("encoding","application/x-tex");var d=new xe("semantics",[l,c]),h=new xe("math",[d]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&h.setAttribute("display","block");var m=a?"katex":"katex-mathml";return pe([m],[h])}var PS=[[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]],j2=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],q2=function(t,n){return n.size<2?t:PS[t-1][n.size-1]};class Yr{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||Yr.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=j2[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};return Object.assign(n,t),new Yr(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:q2(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:j2[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=q2(Yr.BASESIZE,t);return this.size===n&&this.textSize===Yr.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!==Yr.BASESIZE?["sizing","reset-size"+this.size,"size"+Yr.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=bS(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Yr.BASESIZE=6;var X6=function(t){return new Yr({style:t.displayMode?Xe.DISPLAY:Xe.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},K6=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=pe(r,[t])}return t},BS=function(t,n,r){var a=X6(r),u;if(r.output==="mathml")return U2(t,n,a,r.displayMode,!0);if(r.output==="html"){var l=uh(t,a);u=pe(["katex"],[l])}else{var c=U2(t,n,a,r.displayMode,!1),d=uh(t,a);u=pe(["katex"],[c,d])}return K6(u,r)},FS=function(t,n,r){var a=X6(r),u=uh(t,a),l=pe(["katex"],[u]);return K6(l,r)},zS={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",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":"="},$o=function(t){var n=new xe("mo",[new Ht(zS[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},HS={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},US=new Set(["widehat","widecheck","widetilde","utilde"]),Wo=function(t,n){function r(){var c=4e5,d=t.label.slice(1);if(US.has(d)&&"base"in t){var h=t.base.type==="ordgroup"?t.base.body.length:1,m,p,E;if(h>5)d==="widehat"||d==="widecheck"?(m=420,c=2364,E=.42,p=d+"4"):(m=312,c=2340,E=.34,p="tilde4");else{var x=[1,1,2,2,3,3][h];d==="widehat"||d==="widecheck"?(c=[0,1062,2364,2364,2364][x],m=[0,239,300,360,420][x],E=[0,.24,.3,.3,.36,.42][x],p=d+x):(c=[0,600,1033,2339,2340][x],m=[0,260,286,306,312][x],E=[0,.26,.286,.3,.306,.34][x],p="tilde"+x)}var C=new Ri(p),_=new Xr([C],{width:"100%",height:we(E),viewBox:"0 0 "+c+" "+m,preserveAspectRatio:"none"});return{span:Li([],[_],n),minWidth:0,height:E}}else{var R=[],I=HS[d];if(!I)throw new Error('No SVG data for "'+d+'".');var[M,j,J]=I,te=J/1e3,W=M.length,Z,re;if(W===1){if(I.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+d+'".');Z=["hide-tail"],re=[I[3]]}else if(W===2)Z=["halfarrow-left","halfarrow-right"],re=["xMinYMin","xMaxYMin"];else if(W===3)Z=["brace-left","brace-center","brace-right"],re=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
338
+ `+W+" children.");for(var ie=0;ie<W;ie++){var Y=new Ri(M[ie]),se=new Xr([Y],{width:"400em",height:we(te),viewBox:"0 0 "+c+" "+J,preserveAspectRatio:re[ie]+" slice"}),le=Li([Z[ie]],[se],n);if(W===1)return{span:le,minWidth:j,height:te};le.style.height=we(te),R.push(le)}return{span:pe(["stretchy"],R,n),minWidth:j,height:te}}}var{span:a,minWidth:u,height:l}=r();return a.height=l,a.style.height=we(l),u>0&&(a.style.minWidth=we(u)),a},jS=function(t,n,r,a,u){var l,c=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(l=pe(["stretchy",n],[],u),n==="fbox"){var d=u.color&&u.getColor();d&&(l.style.borderColor=d)}}else{var h=[];/^[bx]cancel$/.test(n)&&h.push(new Kd({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&h.push(new Kd({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new Xr(h,{width:"100%",height:we(c)});l=Li([],[m],u)}return l.height=c,l.style.height=we(c),l},qS={bin:1,close:1,inner:1,open:1,punct:1,rel:1},$S={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function WS(e){return e in qS}function et(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 Yo(e){var t=Vo(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 Vo(e){return e&&(e.type==="atom"||$S.hasOwnProperty(e.type))?e:null}var J6=e=>{if(e instanceof zn)return e;if(vS(e)&&e.children.length===1)return J6(e.children[0])},df=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=et(e.base,"accent"),n=r.base,e.base=n,a=yS(ht(e,t)),e.base=r):(r=et(e,"accent"),n=r.base);var u=ht(n,t.havingCrampedStyle()),l=r.isShifty&&Jr(n),c=0;if(l){var d,h;c=(d=(h=J6(u))==null?void 0:h.skew)!=null?d:0}var m=r.label==="\\c",p=m?u.height+u.depth:Math.min(u.height,t.fontMetrics().xHeight),E;if(r.isStretchy)E=Wo(r,t),E=dt({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"elem",elem:E,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+we(2*c)+")",marginLeft:we(2*c)}:void 0}]});else{var x,C;r.label==="\\vec"?(x=W6("vec",t),C=$6.vec[1]):(x=qo({mode:r.mode,text:r.label},t,"textord"),x=gS(x),x.italic=0,C=x.width,m&&(p+=x.depth)),E=pe(["accent-body"],[x]);var _=r.label==="\\textcircled";_&&(E.classes.push("accent-full"),p=u.height);var R=c;_||(R-=C/2),E.style.left=we(R),r.label==="\\textcircled"&&(E.style.top=".2em"),E=dt({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:-p},{type:"elem",elem:E}]})}var I=pe(["mord","accent"],[E],t);return a?(a.children[0]=I,a.height=Math.max(I.height,a.height),a.classes[0]="mord",a):I},Z6=(e,t)=>{var n=e.isStretchy?$o(e.label):new xe("mo",[er(e.label,e.mode)]),r=new xe("mover",[yt(e.base,t),n]);return r.setAttribute("accent","true"),r},YS=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ce({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=So(t[0]),r=!YS.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:df,mathmlBuilder:Z6});Ce({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:df,mathmlBuilder:Z6});Ce({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=Wo(e,t),a=e.label==="\\utilde"?.12:0,u=dt({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]});return pe(["mord","accentunder"],[u],t)},mathmlBuilder:(e,t)=>{var n=$o(e.label),r=new xe("munder",[yt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var no=e=>{var t=new xe("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ce({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=ts(ht(e.body,r,t),t),u=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(u+"-arrow-pad");var l;e.below&&(r=t.havingStyle(n.sub()),l=ts(ht(e.below,r,t),t),l.classes.push(u+"-arrow-pad"));var c=Wo(e,t),d=-t.fontMetrics().axisHeight+.5*c.height,h=-t.fontMetrics().axisHeight-.5*c.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(h-=a.depth);var m;if(l){var p=-t.fontMetrics().axisHeight+l.height+.5*c.height+.111;m=dt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:c,shift:d,wrapperClasses:["svg-align"]},{type:"elem",elem:l,shift:p}]})}else m=dt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:c,shift:d,wrapperClasses:["svg-align"]}]});return pe(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var n=$o(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=no(yt(e.body,t));if(e.below){var u=no(yt(e.below,t));r=new xe("munderover",[n,u,a])}else r=new xe("mover",[n,a])}else if(e.below){var l=no(yt(e.below,t));r=new xe("munder",[n,l])}else r=no(),r=new xe("mover",[n,r]);return r}});function eg(e,t){var n=Wt(e.body,t,!0);return pe([e.mclass],n,t)}function tg(e,t){var n,r=jn(e.body,t);return e.mclass==="minner"?n=new xe("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new xe("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new xe("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}Ce({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:zt(a),isCharacterBox:Jr(a)}},htmlBuilder:eg,mathmlBuilder:tg});var Go=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"};Ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Go(t[0]),body:zt(t[1]),isCharacterBox:Jr(t[1])}}});Ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],u=t[0],l;r!=="\\stackrel"?l=Go(a):l="mrel";var c={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:zt(a)},d={type:"supsub",mode:u.mode,base:c,sup:r==="\\underset"?null:u,sub:r==="\\underset"?u:null};return{type:"mclass",mode:n.mode,mclass:l,body:[d],isCharacterBox:Jr(d)}},htmlBuilder:eg,mathmlBuilder:tg});Ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Go(t[0]),body:zt(t[0])}},htmlBuilder(e,t){var n=Wt(e.body,t,!0),r=pe([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=jn(e.body,t),r=new xe("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var VS={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$2=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),W2=e=>e.type==="textord"&&e.text==="@",GS=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function QS(e,t,n){var r=VS[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]],[]),u={type:"atom",text:r,mode:"math",family:"rel"},l=n.callFunction("\\Big",[u],[]),c=n.callFunction("\\\\cdright",[t[1]],[]),d={type:"ordgroup",mode:"math",body:[a,l,c]};return n.callFunction("\\\\cdparent",[d],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function XS(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 be("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],u=0;u<t.length;u++){for(var l=t[u],c=$2(),d=0;d<l.length;d++)if(!W2(l[d]))c.body.push(l[d]);else{r.push(c),d+=1;var h=Yo(l[d]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var p=0;p<2;p++){for(var E=!0,x=d+1;x<l.length;x++){if(GS(l[x],h)){E=!1,d=x;break}if(W2(l[x]))throw new be("Missing a "+h+" character to complete a CD arrow.",l[x]);m[p].body.push(l[x])}if(E)throw new be("Missing a "+h+" character to complete a CD arrow.",l[d])}else throw new be('Expected one of "<>AV=|." after @',l[d]);var C=QS(h,m,e),_={type:"styling",body:[C],mode:"math",style:"display",resetFont:!0};r.push(_),c=$2()}u%2===0?r.push(c):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var R=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:R,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Ce({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=ts(ht(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=we(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new xe("mrow",[yt(e.label,t)]);return n=new xe("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new xe("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Ce({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=ts(ht(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new xe("mrow",[yt(e.fragment,t)])}});Ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=et(t[0],"ordgroup"),a=r.body,u="",l=0;l<a.length;l++){var c=et(a[l],"textord");u+=c.text}var d=parseInt(u),h;if(isNaN(d))throw new be("\\@char has non-numeric argument "+u);if(d<0||d>=1114111)throw new be("\\@char with invalid code point "+u);return d<=65535?h=String.fromCharCode(d):(d-=65536,h=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:n.mode,text:h}}});var ng=(e,t)=>{var n=Wt(e.body,t.withColor(e.color),!1);return ei(n)},rg=(e,t)=>{var n=jn(e.body,t.withColor(e.color)),r=new xe("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=et(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:zt(a)}},htmlBuilder:ng,mathmlBuilder:rg});Ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=et(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var u=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:u}},htmlBuilder:ng,mathmlBuilder:rg});Ce({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,u=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:u,size:a&&et(a,"size").value}},htmlBuilder(e,t){var n=pe(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=we(It(e.size,t)))),n},mathmlBuilder(e,t){var n=new xe("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",we(It(e.size,t)))),n}});var lh={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ig=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new be("Expected a control sequence",e);return t},KS=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},ag=(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)};Ce({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(lh[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=lh[r.text]),et(t.parseFunction(),"internal");throw new be("Invalid token after macro prefix",r)}});Ce({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 be("Expected a control sequence",r);for(var u=0,l,c=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),c[u].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new be('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==u+1)throw new be('Argument number "'+r.text+'" out of order');u++,c.push([])}else{if(r.text==="EOF")throw new be("Expected a macro definition");c[u].push(r.text)}var{tokens:d}=t.gullet.consumeArg();return l&&d.unshift(l),(n==="\\edef"||n==="\\xdef")&&(d=t.gullet.expandTokens(d),d.reverse()),t.gullet.macros.set(a,{tokens:d,numArgs:u,delimiters:c},n===lh[n]),{type:"internal",mode:t.mode}}});Ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=ig(t.gullet.popToken());t.gullet.consumeSpaces();var a=KS(t);return ag(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=ig(t.gullet.popToken()),a=t.gullet.popToken(),u=t.gullet.popToken();return ag(t,r,u,n==="\\\\globalfuture"),t.gullet.pushToken(u),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var su=function(t,n,r){var a=St.math[t]&&St.math[t].replace,u=sf(a||t,n,r);if(!u)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return u},hf=function(t,n,r,a){var u=r.havingBaseStyle(n),l=pe(a.concat(u.sizingClasses(r)),[t],r),c=u.sizeMultiplier/r.sizeMultiplier;return l.height*=c,l.depth*=c,l.maxFontSize=u.sizeMultiplier,l},sg=function(t,n,r){var a=n.havingBaseStyle(r),u=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=we(u),t.height-=u,t.depth+=u},JS=function(t,n,r,a,u,l){var c=pn(t,"Main-Regular",u,a),d=hf(c,n,a,l);return sg(d,a,n),d},ZS=function(t,n,r,a){return pn(t,"Size"+n+"-Regular",r,a)},ug=function(t,n,r,a,u,l){var c=ZS(t,n,u,a),d=hf(pe(["delimsizing","size"+n],[c],a),Xe.TEXT,a,l);return r&&sg(d,a,Xe.TEXT),d},wd=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var u=pe(["delimsizinginner",a],[pe([],[pn(t,n,r)])]);return{type:"elem",elem:u}},kd=function(t,n,r){var a=Ar["Size4-Regular"][t.charCodeAt(0)]?Ar["Size4-Regular"][t.charCodeAt(0)][4]:Ar["Size1-Regular"][t.charCodeAt(0)][4],u=new Ri("inner",oS(t,Math.round(1e3*n))),l=new Xr([u],{width:we(a),height:we(n),style:"width:"+we(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),c=Li([],[l],r);return c.height=n,c.style.height=we(n),c.style.width=we(a),{type:"elem",elem:c}},oh=.008,ro={type:"kern",size:-1*oh},eC=new Set(["|","\\lvert","\\rvert","\\vert"]),tC=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),lg=function(t,n,r,a,u,l){var c,d,h,m,p="",E=0;c=h=m=t,d=null;var x="Size1-Regular";t==="\\uparrow"?h=m="⏐":t==="\\Uparrow"?h=m="‖":t==="\\downarrow"?c=h="⏐":t==="\\Downarrow"?c=h="‖":t==="\\updownarrow"?(c="\\uparrow",h="⏐",m="\\downarrow"):t==="\\Updownarrow"?(c="\\Uparrow",h="‖",m="\\Downarrow"):eC.has(t)?(h="∣",p="vert",E=333):tC.has(t)?(h="∥",p="doublevert",E=556):t==="["||t==="\\lbrack"?(c="⎡",h="⎢",m="⎣",x="Size4-Regular",p="lbrack",E=667):t==="]"||t==="\\rbrack"?(c="⎤",h="⎥",m="⎦",x="Size4-Regular",p="rbrack",E=667):t==="\\lfloor"||t==="⌊"?(h=c="⎢",m="⎣",x="Size4-Regular",p="lfloor",E=667):t==="\\lceil"||t==="⌈"?(c="⎡",h=m="⎢",x="Size4-Regular",p="lceil",E=667):t==="\\rfloor"||t==="⌋"?(h=c="⎥",m="⎦",x="Size4-Regular",p="rfloor",E=667):t==="\\rceil"||t==="⌉"?(c="⎤",h=m="⎥",x="Size4-Regular",p="rceil",E=667):t==="("||t==="\\lparen"?(c="⎛",h="⎜",m="⎝",x="Size4-Regular",p="lparen",E=875):t===")"||t==="\\rparen"?(c="⎞",h="⎟",m="⎠",x="Size4-Regular",p="rparen",E=875):t==="\\{"||t==="\\lbrace"?(c="⎧",d="⎨",m="⎩",h="⎪",x="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(c="⎫",d="⎬",m="⎭",h="⎪",x="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(c="⎧",m="⎩",h="⎪",x="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(c="⎫",m="⎭",h="⎪",x="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(c="⎧",m="⎭",h="⎪",x="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(c="⎫",m="⎩",h="⎪",x="Size4-Regular");var C=su(c,x,u),_=C.height+C.depth,R=su(h,x,u),I=R.height+R.depth,M=su(m,x,u),j=M.height+M.depth,J=0,te=1;if(d!==null){var W=su(d,x,u);J=W.height+W.depth,te=2}var Z=_+j+J,re=Math.max(0,Math.ceil((n-Z)/(te*I))),ie=Z+re*te*I,Y=a.fontMetrics().axisHeight;r&&(Y*=a.sizeMultiplier);var se=ie/2-Y,le=[];if(p.length>0){var Me=ie-_-j,ge=Math.round(ie*1e3),ue=cS(p,Math.round(Me*1e3)),Re=new Ri(p,ue),Le=we(E/1e3),oe=we(ge/1e3),_e=new Xr([Re],{width:Le,height:oe,viewBox:"0 0 "+E+" "+ge}),A=Li([],[_e],a);A.height=ge/1e3,A.style.width=Le,A.style.height=oe,le.push({type:"elem",elem:A})}else{if(le.push(wd(m,x,u)),le.push(ro),d===null){var q=ie-_-j+2*oh;le.push(kd(h,q,a))}else{var z=(ie-_-j-J)/2+2*oh;le.push(kd(h,z,a)),le.push(ro),le.push(wd(d,x,u)),le.push(ro),le.push(kd(h,z,a))}le.push(ro),le.push(wd(c,x,u))}var L=a.havingBaseStyle(Xe.TEXT),Se=dt({positionType:"bottom",positionData:se,children:le});return hf(pe(["delimsizing","mult"],[Se],L),Xe.TEXT,a,l)},Sd=80,Cd=.08,Ad=function(t,n,r,a,u){var l=lS(t,a,r),c=new Ri(t,l),d=new Xr([c],{width:"400em",height:we(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Li(["hide-tail"],[d],u)},nC=function(t,n){var r=n.havingBaseSizing(),a=fg("\\surd",t*r.sizeMultiplier,hg,r),u=r.sizeMultiplier,l=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),c,d,h,m,p;return a.type==="small"?(m=1e3+1e3*l+Sd,t<1?u=1:t<1.4&&(u=.7),d=(1+l+Cd)/u,h=(1+l)/u,c=Ad("sqrtMain",d,m,l,n),c.style.minWidth="0.853em",p=.833/u):a.type==="large"?(m=(1e3+Sd)*du[a.size],h=(du[a.size]+l)/u,d=(du[a.size]+l+Cd)/u,c=Ad("sqrtSize"+a.size,d,m,l,n),c.style.minWidth="1.02em",p=1/u):(d=t+l+Cd,h=t+l,m=Math.floor(1e3*t+l)+Sd,c=Ad("sqrtTall",d,m,l,n),c.style.minWidth="0.742em",p=1.056),c.height=h,c.style.height=we(d),{span:c,advanceWidth:p,ruleWidth:(n.fontMetrics().sqrtRuleThickness+l)*u}},og=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),rC=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),cg=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),du=[0,1.2,1.8,2.4,3],dg=function(t,n,r,a,u){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),og.has(t)||cg.has(t))return ug(t,n,!1,r,a,u);if(rC.has(t))return lg(t,du[n],!1,r,a,u);throw new be("Illegal delimiter: '"+t+"'")},iC=[{type:"small",style:Xe.SCRIPTSCRIPT},{type:"small",style:Xe.SCRIPT},{type:"small",style:Xe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],aC=[{type:"small",style:Xe.SCRIPTSCRIPT},{type:"small",style:Xe.SCRIPT},{type:"small",style:Xe.TEXT},{type:"stack"}],hg=[{type:"small",style:Xe.SCRIPTSCRIPT},{type:"small",style:Xe.SCRIPT},{type:"small",style:Xe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],sC=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";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},fg=function(t,n,r,a){for(var u=Math.min(2,3-a.style.size),l=u;l<r.length;l++){var c=r[l];if(c.type==="stack")break;var d=su(t,sC(c),"math"),h=d.height+d.depth;if(c.type==="small"){var m=a.havingBaseStyle(c.style);h*=m.sizeMultiplier}if(h>n)return c}return r[r.length-1]},ch=function(t,n,r,a,u,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var c;cg.has(t)?c=iC:og.has(t)?c=hg:c=aC;var d=fg(t,n,c,a);return d.type==="small"?JS(t,d.style,r,a,u,l):d.type==="large"?ug(t,d.size,r,a,u,l):lg(t,n,r,a,u,l)},Nd=function(t,n,r,a,u,l){var c=a.fontMetrics().axisHeight*a.sizeMultiplier,d=901,h=5/a.fontMetrics().ptPerEm,m=Math.max(n-c,r+c),p=Math.max(m/500*d,2*m-h);return ch(t,p,!0,a,u,l)},Y2={"\\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}},uC=new Set(["(","\\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 V2(e){return"isMiddle"in e}function Qo(e,t){var n=Vo(e);if(n&&uC.has(n.text))return n;throw n?new be("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new be("Invalid delimiter type '"+e.type+"'",e)}Ce({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=Qo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Y2[e.funcName].size,mclass:Y2[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?pe([e.mclass]):dg(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(er(e.delim,e.mode));var n=new xe("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=we(du[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function G2(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ce({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 be("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Qo(t[0],e).text,color:n}}});Ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Qo(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var u=et(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:u.delim,rightColor:u.color}},htmlBuilder:(e,t)=>{G2(e);for(var n=Wt(e.body,t,!0,["mopen","mclose"]),r=0,a=0,u=!1,l=0;l<n.length;l++){var c=n[l];V2(c)?u=!0:(r=Math.max(n[l].height,r),a=Math.max(n[l].depth,a))}r*=t.sizeMultiplier,a*=t.sizeMultiplier;var d;if(e.left==="."?d=wu(t,["mopen"]):d=Nd(e.left,r,a,t,e.mode,["mopen"]),n.unshift(d),u)for(var h=1;h<n.length;h++){var m=n[h];if(V2(m)){var p=m.isMiddle;n[h]=Nd(p.delim,r,a,p.options,e.mode,[])}}var E;if(e.right===".")E=wu(t,["mclose"]);else{var x=e.rightColor?t.withColor(e.rightColor):t;E=Nd(e.right,r,a,x,e.mode,["mclose"])}return n.push(E),pe(["minner"],n,t)},mathmlBuilder:(e,t)=>{G2(e);var n=jn(e.body,t);if(e.left!=="."){var r=new xe("mo",[er(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new xe("mo",[er(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return of(n)}});Ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Qo(t[0],e);if(!e.parser.leftrightDepth)throw new be("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=wu(t,[]):(n=dg(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?er("|","text"):er(e.delim,e.mode),r=new xe("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Xo=(e,t)=>{var n=ts(ht(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,u,l,c=Jr(e.body);if(r==="sout")u=pe(["stretchy","sout"]),u.height=t.fontMetrics().defaultRuleThickness/a,l=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var d=It({number:.6,unit:"pt"},t),h=It({number:.35,unit:"ex"},t),m=t.havingBaseSizing();a=a/m.sizeMultiplier;var p=n.height+n.depth+d+h;n.style.paddingLeft=we(p/2+d);var E=Math.floor(1e3*p*a),x=sS(E),C=new Xr([new Ri("phase",x)],{width:"400em",height:we(E/1e3),viewBox:"0 0 400000 "+E,preserveAspectRatio:"xMinYMin slice"});u=Li(["hide-tail"],[C],t),u.style.height=we(p),l=n.depth+d+h}else{/cancel/.test(r)?c||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var _,R,I=0;/box/.test(r)?(I=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),_=t.fontMetrics().fboxsep+(r==="colorbox"?0:I),R=_):r==="angl"?(I=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),_=4*I,R=Math.max(0,.25-n.depth)):(_=c?.2:0,R=_),u=jS(n,r,_,R,t),/fbox|boxed|fcolorbox/.test(r)?(u.style.borderStyle="solid",u.style.borderWidth=we(I)):r==="angl"&&I!==.049&&(u.style.borderTopWidth=we(I),u.style.borderRightWidth=we(I)),l=n.depth+R,e.backgroundColor&&(u.style.backgroundColor=e.backgroundColor,e.borderColor&&(u.style.borderColor=e.borderColor))}var M;if(e.backgroundColor)M=dt({positionType:"individualShift",children:[{type:"elem",elem:u,shift:l},{type:"elem",elem:n,shift:0}]});else{var j=/cancel|phase/.test(r)?["svg-align"]:[];M=dt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:u,shift:l,wrapperClasses:j}]})}return/cancel/.test(r)&&(M.height=n.height,M.depth=n.depth),/cancel/.test(r)&&!c?pe(["mord","cancel-lap"],[M],t):pe(["mord"],[M],t)},Ko=(e,t)=>{var n,r=new xe(e.label.includes("colorbox")?"mpadded":"menclose",[yt(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: "+we(a)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,u=et(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:u,body:l}},htmlBuilder:Xo,mathmlBuilder:Ko});Ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,u=et(t[0],"color-token").color,l=et(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:l,borderColor:u,body:c}},htmlBuilder:Xo,mathmlBuilder:Ko});Ce({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]}}});Ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\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:Xo,mathmlBuilder:Ko});Ce({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:Xo,mathmlBuilder:Ko});Ce({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 mg={};function Lr(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:u,mathmlBuilder:l}=e,c={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},d=0;d<n.length;++d)mg[n[d]]=c;u&&(wo[t]=u),l&&(ko[t]=l)}var pg={};function N(e,t){pg[e]=t}class An{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 An(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Fn{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 Fn(n,An.range(this,t))}}function Q2(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 Jo=e=>{var t=e.parser.settings;if(!t.displayMode)throw new be("{"+e.envName+"} can be used only in display mode.")},lC=new Set(["gather","gather*"]);function ff(e){if(!e.includes("ed"))return!e.includes("*")}function Pi(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:u,arraystretch:l,colSeparationType:c,autoTag:d,singleRow:h,emptySingleRow:m,maxNumCols:p,leqno:E}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var x=e.gullet.expandMacroAsText("\\arraystretch");if(x==null)l=1;else if(l=parseFloat(x),!l||l<0)throw new be("Invalid \\arraystretch: "+x)}e.gullet.beginGroup();var C=[],_=[C],R=[],I=[],M=d!=null?[]:void 0;function j(){d&&e.gullet.macros.set("\\@eqnsw","1",!0)}function J(){M&&(e.gullet.macros.get("\\df@tag")?(M.push(e.subparse([new Fn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):M.push(!!d&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(j(),I.push(Q2(e));;){var te=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var W={type:"ordgroup",mode:e.mode,body:te};n&&(W={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[W]}),C.push(W);var Z=e.fetch().text;if(Z==="&"){if(p&&C.length===p){if(h||c)throw new be("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(Z==="\\end"){J(),C.length===1&&W.type==="styling"&&W.body.length===1&&W.body[0].type==="ordgroup"&&W.body[0].body.length===0&&(_.length>1||!m)&&_.pop(),I.length<_.length+1&&I.push([]);break}else if(Z==="\\\\"){e.consume();var re=void 0;e.gullet.future().text!==" "&&(re=e.parseSizeGroup(!0)),R.push(re?re.value:null),J(),I.push(Q2(e)),C=[],_.push(C),j()}else throw new be("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:l,body:_,cols:u,rowGaps:R,hskipBeforeAndAfter:r,hLinesBeforeRow:I,colSeparationType:c,tags:M,leqno:E}}function mf(e){return e.slice(0,1)==="d"?"display":"text"}var Dr=function(t,n){var r,a,u=t.body.length,l=t.hLinesBeforeRow,c=0,d=new Array(u),h=[],m=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),p=1/n.fontMetrics().ptPerEm,E=5*p;if(t.colSeparationType&&t.colSeparationType==="small"){var x=n.havingStyle(Xe.SCRIPT).sizeMultiplier;E=.2778*(x/n.sizeMultiplier)}var C=t.colSeparationType==="CD"?It({number:3,unit:"ex"},n):12*p,_=3*p,R=t.arraystretch*C,I=.7*R,M=.3*R,j=0;function J(Ue){for(var Je=0;Je<Ue.length;++Je)Je>0&&(j+=.25),h.push({pos:j,isDashed:Ue[Je]})}for(J(l[0]),r=0;r<t.body.length;++r){var te=t.body[r],W=I,Z=M;c<te.length&&(c=te.length);var re={cells:new Array(te.length),height:0,depth:0,pos:0};for(a=0;a<te.length;++a){var ie=ht(te[a],n);Z<ie.depth&&(Z=ie.depth),W<ie.height&&(W=ie.height),re.cells[a]=ie}var Y=t.rowGaps[r],se=0;Y&&(se=It(Y,n),se>0&&(se+=M,Z<se&&(Z=se),se=0)),t.addJot&&r<t.body.length-1&&(Z+=_),re.height=W,re.depth=Z,j+=W,re.pos=j,j+=Z+se,d[r]=re,J(l[r+1])}var le=j/2+n.fontMetrics().axisHeight,Me=t.cols||[],ge=[],ue,Re,Le=[];if(t.tags&&t.tags.some(Ue=>Ue))for(r=0;r<u;++r){var oe=d[r],_e=oe.pos-le,A=t.tags[r],q=void 0;A===!0?q=pe(["eqn-num"],[],n):A===!1?q=pe([],[],n):q=pe([],Wt(A,n,!0),n),q.depth=oe.depth,q.height=oe.height,Le.push({type:"elem",elem:q,shift:_e})}for(a=0,Re=0;a<c||Re<Me.length;++a,++Re){for(var z,L=Me[Re],Se=!0;((He=L)==null?void 0:He.type)==="separator";){var He;if(Se||(ue=pe(["arraycolsep"],[]),ue.style.width=we(n.fontMetrics().doubleRuleSep),ge.push(ue)),L.separator==="|"||L.separator===":"){var Pe=L.separator==="|"?"solid":"dashed",Ve=pe(["vertical-separator"],[],n);Ve.style.height=we(j),Ve.style.borderRightWidth=we(m),Ve.style.borderRightStyle=Pe,Ve.style.margin="0 "+we(-m/2);var Ke=j-le;Ke&&(Ve.style.verticalAlign=we(-Ke)),ge.push(Ve)}else throw new be("Invalid separator type: "+L.separator);Re++,L=Me[Re],Se=!1}if(!(a>=c)){var Ze=void 0;if(a>0||t.hskipBeforeAndAfter){var me,We;Ze=(me=(We=L)==null?void 0:We.pregap)!=null?me:E,Ze!==0&&(ue=pe(["arraycolsep"],[]),ue.style.width=we(Ze),ge.push(ue))}var mt=[];for(r=0;r<u;++r){var lt=d[r],ot=lt.cells[a];if(ot){var Pt=lt.pos-le;ot.depth=lt.depth,ot.height=lt.height,mt.push({type:"elem",elem:ot,shift:Pt})}}var tr=dt({positionType:"individualShift",children:mt}),_n=pe(["col-align-"+(((z=L)==null?void 0:z.align)||"c")],[tr]);if(ge.push(_n),a<c-1||t.hskipBeforeAndAfter){var zi,Mr;Ze=(zi=(Mr=L)==null?void 0:Mr.postgap)!=null?zi:E,Ze!==0&&(ue=pe(["arraycolsep"],[]),ue.style.width=we(Ze),ge.push(ue))}}}var In=pe(["mtable"],ge);if(h.length>0){for(var yr=es("hline",n,m),Hi=es("hdashline",n,m),ti=[{type:"elem",elem:In,shift:0}];h.length>0;){var Ui=h.pop(),ji=Ui.pos-le;Ui.isDashed?ti.push({type:"elem",elem:Hi,shift:ji}):ti.push({type:"elem",elem:yr,shift:ji})}In=dt({positionType:"individualShift",children:ti})}if(Le.length===0)return pe(["mord"],[In],n);var ae=dt({positionType:"individualShift",children:Le}),ke=pe(["tag"],[ae],n);return ei([In,ke])},oC={c:"center ",l:"left ",r:"right "},Or=function(t,n){for(var r=[],a=new xe("mtd",[],["mtr-glue"]),u=new xe("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var c=t.body[l],d=[],h=0;h<c.length;h++)d.push(new xe("mtd",[yt(c[h],n)]));t.tags&&t.tags[l]&&(d.unshift(a),d.push(a),t.leqno?d.unshift(u):d.push(u)),r.push(new xe("mtr",d))}var m=new xe("mtable",r),p=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);m.setAttribute("rowspacing",we(p));var E="",x="";if(t.cols&&t.cols.length>0){var C=t.cols,_="",R=!1,I=0,M=C.length;C[0].type==="separator"&&(E+="top ",I=1),C[C.length-1].type==="separator"&&(E+="bottom ",M-=1);for(var j=I;j<M;j++){var J=C[j];J.type==="align"?(x+=oC[J.align],R&&(_+="none "),R=!0):J.type==="separator"&&R&&(_+=J.separator==="|"?"solid ":"dashed ",R=!1)}m.setAttribute("columnalign",x.trim()),/[sd]/.test(_)&&m.setAttribute("columnlines",_.trim())}if(t.colSeparationType==="align"){for(var te=t.cols||[],W="",Z=1;Z<te.length;Z++)W+=Z%2?"0em ":"1em ";m.setAttribute("columnspacing",W.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 re="",ie=t.hLinesBeforeRow;E+=ie[0].length>0?"left ":"",E+=ie[ie.length-1].length>0?"right ":"";for(var Y=1;Y<ie.length-1;Y++)re+=ie[Y].length===0?"none ":ie[Y][0]?"dashed ":"solid ";return/[sd]/.test(re)&&m.setAttribute("rowlines",re.trim()),E!==""&&(m=new xe("menclose",[m]),m.setAttribute("notation",E.trim())),t.arraystretch&&t.arraystretch<1&&(m=new xe("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},gg=function(t,n){t.envName.includes("ed")||Jo(t);var r=[],a=t.envName.includes("at")?"alignat":"align",u=t.envName==="split",l=Pi(t.parser,{cols:r,addJot:!0,autoTag:u?void 0:ff(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:u?2:void 0,leqno:t.parser.settings.leqno},"display"),c=0,d=0,h={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 E=et(n[0].body[p],"textord");m+=E.text}c=Number(m),d=c*2}var x=!d;l.body.forEach(function(I){for(var M=1;M<I.length;M+=2){var j=et(I[M],"styling"),J=et(j.body[0],"ordgroup");J.body.unshift(h)}if(x)d<I.length&&(d=I.length);else{var te=I.length/2;if(c<te)throw new be("Too many math in a row: "+("expected "+c+", but got "+te),I[0])}});for(var C=0;C<d;++C){var _="r",R=0;C%2===1?_="l":C>0&&x&&(R=1),r[C]={type:"align",align:_,pregap:R,postgap:0}}return l.colSeparationType=x?"align":"alignat",l};Lr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Vo(t[0]),r=n?[t[0]]:et(t[0],"ordgroup").body,a=r.map(function(l){var c=Yo(l),d=c.text;if("lcr".includes(d))return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new be("Unknown column alignment: "+d,l)}),u={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Pi(e.parser,u,mf(e.envName))},htmlBuilder:Dr,mathmlBuilder:Or});Lr({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".includes(n))throw new be("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var u=Pi(e.parser,r,mf(e.envName)),l=Math.max(0,...u.body.map(c=>c.length));return u.cols=new Array(l).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[u],left:t[0],right:t[1],rightColor:void 0}:u},htmlBuilder:Dr,mathmlBuilder:Or});Lr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Pi(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Dr,mathmlBuilder:Or});Lr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Vo(t[0]),r=n?[t[0]]:et(t[0],"ordgroup").body,a=r.map(function(c){var d=Yo(c),h=d.text;if("lc".includes(h))return{type:"align",align:h};throw new be("Unknown column alignment: "+h,c)});if(a.length>1)throw new be("{subarray} can contain only one column");var u={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},l=Pi(e.parser,u,"script");if(l.body.length>0&&l.body[0].length>1)throw new be("{subarray} can contain only one column");return l},htmlBuilder:Dr,mathmlBuilder:Or});Lr({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=Pi(e.parser,t,mf(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Dr,mathmlBuilder:Or});Lr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:gg,htmlBuilder:Dr,mathmlBuilder:Or});Lr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){lC.has(e.envName)&&Jo(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ff(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Pi(e.parser,t,"display")},htmlBuilder:Dr,mathmlBuilder:Or});Lr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:gg,htmlBuilder:Dr,mathmlBuilder:Or});Lr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Jo(e);var t={autoTag:ff(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Pi(e.parser,t,"display")},htmlBuilder:Dr,mathmlBuilder:Or});Lr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Jo(e),XS(e.parser)},htmlBuilder:Dr,mathmlBuilder:Or});N("\\nonumber","\\gdef\\@eqnsw{0}");N("\\notag","\\nonumber");Ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new be(e.funcName+" valid only within array environment")}});var X2=mg;Ce({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 be("Invalid environment name",a);for(var u="",l=0;l<a.body.length;++l)u+=et(a.body[l],"textord").text;if(r==="\\begin"){if(!X2.hasOwnProperty(u))throw new be("No such environment: "+u,a);var c=X2[u],{args:d,optArgs:h}=n.parseArguments("\\begin{"+u+"}",c),m={mode:n.mode,envName:u,parser:n},p=c.handler(m,d,h);n.expect("\\end",!1);var E=n.nextToken,x=et(n.parseFunction(),"environment");if(x.name!==u)throw new be("Mismatch: \\begin{"+u+"} matched by \\end{"+x.name+"}",E);return p}return{type:"environment",mode:n.mode,name:u,nameGroup:a}}});var yg=(e,t)=>{var n=e.font,r=t.withFont(n);return ht(e.body,r)},vg=(e,t)=>{var n=e.font,r=t.withFont(n);return yt(e.body,r)},K2={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Ce({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=So(t[0]),u=r;return u in K2&&(u=K2[u]),{type:"font",mode:n.mode,font:u.slice(1),body:a}},htmlBuilder:yg,mathmlBuilder:vg});Ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:Go(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:Jr(r)}}});Ce({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:u}=n,l=n.parseExpression(!0,a);return{type:"font",mode:u,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:l}}},htmlBuilder:yg,mathmlBuilder:vg});var cC=(e,t)=>{var n=t.style,r=n.fracNum(),a=n.fracDen(),u;u=t.havingStyle(r);var l=ht(e.numer,u,t);if(e.continued){var c=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;l.height=l.height<c?c:l.height,l.depth=l.depth<d?d:l.depth}u=t.havingStyle(a);var h=ht(e.denom,u,t),m,p,E;e.hasBarLine?(e.barSize?(p=It(e.barSize,t),m=es("frac-line",t,p)):m=es("frac-line",t),p=m.height,E=m.height):(m=null,p=0,E=t.fontMetrics().defaultRuleThickness);var x,C,_;n.size===Xe.DISPLAY.size?(x=t.fontMetrics().num1,p>0?C=3*E:C=7*E,_=t.fontMetrics().denom1):(p>0?(x=t.fontMetrics().num2,C=E):(x=t.fontMetrics().num3,C=3*E),_=t.fontMetrics().denom2);var R;if(m){var M=t.fontMetrics().axisHeight;x-l.depth-(M+.5*p)<C&&(x+=C-(x-l.depth-(M+.5*p))),M-.5*p-(h.height-_)<C&&(_+=C-(M-.5*p-(h.height-_)));var j=-(M-.5*p);R=dt({positionType:"individualShift",children:[{type:"elem",elem:h,shift:_},{type:"elem",elem:m,shift:j},{type:"elem",elem:l,shift:-x}]})}else{var I=x-l.depth-(h.height-_);I<C&&(x+=.5*(C-I),_+=.5*(C-I)),R=dt({positionType:"individualShift",children:[{type:"elem",elem:h,shift:_},{type:"elem",elem:l,shift:-x}]})}u=t.havingStyle(n),R.height*=u.sizeMultiplier/t.sizeMultiplier,R.depth*=u.sizeMultiplier/t.sizeMultiplier;var J;n.size===Xe.DISPLAY.size?J=t.fontMetrics().delim1:n.size===Xe.SCRIPTSCRIPT.size?J=t.havingStyle(Xe.SCRIPT).fontMetrics().delim2:J=t.fontMetrics().delim2;var te,W;return e.leftDelim==null?te=wu(t,["mopen"]):te=ch(e.leftDelim,J,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?W=pe([]):e.rightDelim==null?W=wu(t,["mclose"]):W=ch(e.rightDelim,J,!0,t.havingStyle(n),e.mode,["mclose"]),pe(["mord"].concat(u.sizingClasses(t)),[te,pe(["mfrac"],[R]),W],t)},dC=(e,t)=>{var n=new xe("mfrac",[yt(e.numer,t),yt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=It(e.barSize,t);n.setAttribute("linethickness",we(r))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var u=new xe("mo",[new Ht(e.leftDelim.replace("\\",""))]);u.setAttribute("fence","true"),a.push(u)}if(a.push(n),e.rightDelim!=null){var l=new xe("mo",[new Ht(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return of(a)}return n},bg=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Ce({type:"genfrac",names:["\\cfrac","\\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],u=t[1],l,c=null,d=null;switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,c="(",d=")";break;case"\\\\bracefrac":l=!1,c="\\{",d="\\}";break;case"\\\\brackfrac":l=!1,c="[",d="]";break;default:throw new Error("Unrecognized genfrac command")}var h=r==="\\cfrac",m=null;return h||r.startsWith("\\d")?m="display":r.startsWith("\\t")&&(m="text"),bg({type:"genfrac",mode:n.mode,numer:a,denom:u,continued:h,hasBarLine:l,leftDelim:c,rightDelim:d,barSize:null},m)},htmlBuilder:cC,mathmlBuilder:dC});Ce({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 J2=["display","text","script","scriptscript"],Z2=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Ce({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],u=So(t[0]),l=u.type==="atom"&&u.family==="open"?Z2(u.text):null,c=So(t[1]),d=c.type==="atom"&&c.family==="close"?Z2(c.text):null,h=et(t[2],"size"),m,p=null;h.isBlank?m=!0:(p=h.value,m=p.number>0);var E=null,x=t[3];if(x.type==="ordgroup"){if(x.body.length>0){var C=et(x.body[0],"textord");E=J2[Number(C.text)]}}else x=et(x,"textord"),E=J2[Number(x.text)];return bg({type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:m,barSize:p,leftDelim:l,rightDelim:d},E)}});Ce({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:et(t[0],"size").value,token:a}}});Ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],u=et(t[1],"infix").size;if(!u)throw new Error("\\\\abovefrac expected size, but got "+String(u));var l=t[2],c=u.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:l,continued:!1,hasBarLine:c,barSize:u,leftDelim:null,rightDelim:null}}});var Eg=(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=et(e.base,"horizBrace")):a=et(e,"horizBrace");var u=ht(a.base,t.havingBaseStyle(Xe.DISPLAY)),l=Wo(a,t),c;if(a.isOver?c=dt({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.1},{type:"elem",elem:l,wrapperClasses:["svg-align"]}]}):c=dt({positionType:"bottom",positionData:u.depth+.1+l.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:u}]}),r){var d=pe(["minner",a.isOver?"mover":"munder"],[c],t);a.isOver?c=dt({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:r}]}):c=dt({positionType:"bottom",positionData:d.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:d}]})}return pe(["minner",a.isOver?"mover":"munder"],[c],t)},hC=(e,t)=>{var n=$o(e.label);return new xe(e.isOver?"mover":"munder",[yt(e.base,t),n])};Ce({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:r.includes("\\over"),base:t[0]}},htmlBuilder:Eg,mathmlBuilder:hC});Ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=et(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:zt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Wt(e.body,t,!1);return SS(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Di(e.body,t);return n instanceof xe||(n=new xe("mrow",[n])),n.setAttribute("href",e.href),n}});Ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=et(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],u=0;u<r.length;u++){var l=r[u];l==="~"&&(l="\\textasciitilde"),a.push({type:"textord",mode:"text",text:l})}var c={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:zt(c)}}});Ce({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:zt(t[0])}},htmlBuilder(e,t){var n=Wt(e.body,t.withFont(""),!1);return ei(n)},mathmlBuilder(e,t){return new xe("mrow",jn(e.body,t.withFont("")))}});Ce({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,u=et(t[0],"raw").string,l=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=u,c={command:"\\htmlClass",class:u};break;case"\\htmlId":d.id=u,c={command:"\\htmlId",id:u};break;case"\\htmlStyle":d.style=u,c={command:"\\htmlStyle",style:u};break;case"\\htmlData":{for(var h=u.split(","),m=0;m<h.length;m++){var p=h[m],E=p.indexOf("=");if(E<0)throw new be("\\htmlData key/value '"+p+"' missing equals sign");var x=p.slice(0,E),C=p.slice(E+1);d["data-"+x.trim()]=C}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:zt(l)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Wt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=pe(r,n,t);for(var u in e.attributes)u!=="class"&&e.attributes.hasOwnProperty(u)&&a.setAttribute(u,e.attributes[u]);return a},mathmlBuilder:(e,t)=>Di(e.body,t)});Ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:zt(t[0]),mathml:zt(t[1])}},htmlBuilder:(e,t)=>{var n=Wt(e.html,t,!1);return ei(n)},mathmlBuilder:(e,t)=>Di(e.mathml,t)});var _d=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 be("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!P6(r))throw new be("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Ce({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"},u={number:.9,unit:"em"},l={number:0,unit:"em"},c="";if(n[0])for(var d=et(n[0],"raw").string,h=d.split(","),m=0;m<h.length;m++){var p=h[m].split("=");if(p.length===2){var E=p[1].trim();switch(p[0].trim()){case"alt":c=E;break;case"width":a=_d(E);break;case"height":u=_d(E);break;case"totalheight":l=_d(E);break;default:throw new be("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var x=et(t[0],"url").url;return c===""&&(c=x,c=c.replace(/^.*[\\/]/,""),c=c.substring(0,c.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:x})?{type:"includegraphics",mode:r.mode,alt:c,width:a,height:u,totalheight:l,src:x}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=It(e.height,t),r=0;e.totalheight.number>0&&(r=It(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=It(e.width,t));var u={height:we(n+r)};a>0&&(u.width=we(a)),r>0&&(u.verticalAlign=we(-r));var l=new mS(e.src,e.alt,u);return l.height=n,l.depth=r,l},mathmlBuilder:(e,t)=>{var n=new xe("mglyph",[]);n.setAttribute("alt",e.alt);var r=It(e.height,t),a=0;if(e.totalheight.number>0&&(a=It(e.totalheight,t)-r,n.setAttribute("valign",we(-a))),n.setAttribute("height",we(r+a)),e.width.number>0){var u=It(e.width,t);n.setAttribute("width",we(u))}return n.setAttribute("src",e.src),n}});Ce({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=et(t[0],"size");if(n.settings.strict){var u=r[1]==="m",l=a.value.unit==="mu";u?(l||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")):l&&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 q6(e.dimension,t)},mathmlBuilder(e,t){var n=It(e.dimension,t);return new Q6(n)}});Ce({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=pe([],[ht(e.body,t)]),n=pe(["inner"],[n],t)):n=pe(["inner"],[ht(e.body,t)]);var r=pe(["fix"],[]),a=pe([e.alignment],[n,r],t),u=pe(["strut"]);return u.style.height=we(a.height+a.depth),a.depth&&(u.style.verticalAlign=we(-a.depth)),a.children.unshift(u),a=pe(["thinbox"],[a],t),pe(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new xe("mpadded",[yt(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}});Ce({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 u=n==="\\("?"\\)":"$",l=r.parseExpression(!1,u);return r.expect(u),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",resetFont:!0,body:l}}});Ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new be("Mismatched "+e.funcName)}});var e4=(e,t)=>{switch(t.style.size){case Xe.DISPLAY.size:return e.display;case Xe.TEXT.size:return e.text;case Xe.SCRIPT.size:return e.script;case Xe.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:zt(t[0]),text:zt(t[1]),script:zt(t[2]),scriptscript:zt(t[3])}},htmlBuilder:(e,t)=>{var n=e4(e,t),r=Wt(n,t,!1);return ei(r)},mathmlBuilder:(e,t)=>{var n=e4(e,t);return Di(n,t)}});var xg=(e,t,n,r,a,u,l)=>{e=pe([],[e]);var c=n&&Jr(n),d,h;if(t){var m=ht(t,r.havingStyle(a.sup()),r);h={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 E;if(h&&d){var x=r.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+e.depth+l;E=dt({positionType:"bottom",positionData:x,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:we(-u)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:we(u)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else if(d){var C=e.height-l;E=dt({positionType:"top",positionData:C,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:we(-u)},{type:"kern",size:d.kern},{type:"elem",elem:e}]})}else if(h){var _=e.depth+l;E=dt({positionType:"bottom",positionData:_,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:we(u)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else return e;var R=[E];if(d&&u!==0&&!c){var I=pe(["mspace"],[],r);I.style.marginRight=we(u),R.unshift(I)}return pe(["mop","op-limits"],R,r)},Tg=new Set(["\\smallint"]),cs=(e,t)=>{var n,r,a=!1,u;e.type==="supsub"?(n=e.sup,r=e.sub,u=et(e.base,"op"),a=!0):u=et(e,"op");var l=t.style,c=!1;l.size===Xe.DISPLAY.size&&u.symbol&&!Tg.has(u.name)&&(c=!0);var d,h;if(u.symbol){var m=c?"Size2-Regular":"Size1-Regular",p="";if((u.name==="\\oiint"||u.name==="\\oiiint")&&(p=u.name.slice(1),u.name=p==="oiint"?"\\iint":"\\iiint"),d=pn(u.name,m,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),h=d.italic,p.length>0){var E=W6(p+"Size"+(c?"2":"1"),t);d=dt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:E,shift:c?.08:0}]}),u.name="\\"+p,d.classes.unshift("mop"),d.italic=h}}else if(u.body){var x=Wt(u.body,t,!0);x.length===1&&x[0]instanceof zn?(d=x[0],d.classes[0]="mop"):d=pe(["mop"],x,t)}else{for(var C=[],_=1;_<u.name.length;_++)C.push(uf(u.name[_],u.mode,t));d=pe(["mop"],C,t)}var R=0,I=0;if((d instanceof zn||u.name==="\\oiint"||u.name==="\\oiiint")&&!u.suppressBaseShift){var M;R=(d.height-d.depth)/2-t.fontMetrics().axisHeight,I=(M=d.italic)!=null?M:0}return a?xg(d,n,r,t,l,I,R):(R&&(d.style.position="relative",d.style.top=we(R)),d)},Ou=(e,t)=>{var n;if(e.symbol)n=new xe("mo",[er(e.name,e.mode)]),Tg.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new xe("mo",jn(e.body,t));else{n=new xe("mi",[new Ht(e.name.slice(1))]);var r=new xe("mo",[er("⁡","text")]);e.parentIsSupSub?n=new xe("mrow",[n,r]):n=G6([n,r])}return n},fC={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ce({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=fC[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:cs,mathmlBuilder:Ou});Ce({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:zt(r)}},htmlBuilder:cs,mathmlBuilder:Ou});var mC={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ce({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:cs,mathmlBuilder:Ou});Ce({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:cs,mathmlBuilder:Ou});Ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=mC[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:cs,mathmlBuilder:Ou});var wg=(e,t)=>{var n,r,a=!1,u;e.type==="supsub"?(n=e.sup,r=e.sub,u=et(e.base,"operatorname"),a=!0):u=et(e,"operatorname");var l;if(u.body.length>0){for(var c=u.body.map(p=>{var E="text"in p?p.text:void 0;return typeof E=="string"?{type:"textord",mode:p.mode,text:E}:p}),d=Wt(c,t.withFont("mathrm"),!0),h=0;h<d.length;h++){var m=d[h];m instanceof zn&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=pe(["mop"],d,t)}else l=pe(["mop"],[],t);return a?xg(l,n,r,t,t.style,0,0):l},pC=(e,t)=>{for(var n=jn(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var u=n[a];if(!(u instanceof Q6))if(u instanceof xe)switch(u.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var l=u.children[0];u.children.length===1&&l instanceof Ht?l.text=l.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 Ht(c)]}var d=new xe("mi",n);d.setAttribute("mathvariant","normal");var h=new xe("mo",[er("⁡","text")]);return e.parentIsSupSub?new xe("mrow",[d,h]):G6([d,h])};Ce({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:zt(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:wg,mathmlBuilder:pC});N("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");va({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ei(Wt(e.body,t,!1)):pe(["mord"],Wt(e.body,t,!0),t)},mathmlBuilder(e,t){return Di(e.body,t,!0)}});Ce({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=es("overline-line",t),a=t.fontMetrics().defaultRuleThickness,u=dt({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]});return pe(["mord","overline"],[u],t)},mathmlBuilder(e,t){var n=new xe("mo",[new Ht("‾")]);n.setAttribute("stretchy","true");var r=new xe("mover",[yt(e.body,t),n]);return r.setAttribute("accent","true"),r}});Ce({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:zt(r)}},htmlBuilder:(e,t)=>{var n=Wt(e.body,t.withPhantom(),!1);return ei(n)},mathmlBuilder:(e,t)=>{var n=jn(e.body,t);return new xe("mphantom",n)}});N("\\hphantom","\\smash{\\phantom{#1}}");Ce({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=pe(["inner"],[ht(e.body,t.withPhantom())]),r=pe(["fix"],[]);return pe(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=jn(zt(e.body),t),r=new xe("mphantom",n),a=new xe("mpadded",[r]);return a.setAttribute("width","0px"),a}});Ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=et(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=It(e.dy,t);return dt({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new xe("mpadded",[yt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ce({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],u=et(t[0],"size"),l=et(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&et(a,"size").value,width:u.value,height:l.value}},htmlBuilder(e,t){var n=pe(["mord","rule"],[],t),r=It(e.width,t),a=It(e.height,t),u=e.shift?It(e.shift,t):0;return n.style.borderRightWidth=we(r),n.style.borderTopWidth=we(a),n.style.bottom=we(u),n.width=r,n.height=a+u,n.depth=-u,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=It(e.width,t),r=It(e.height,t),a=e.shift?It(e.shift,t):0,u=t.color&&t.getColor()||"black",l=new xe("mspace");l.setAttribute("mathbackground",u),l.setAttribute("width",we(n)),l.setAttribute("height",we(r));var c=new xe("mpadded",[l]);return a>=0?c.setAttribute("height",we(a)):(c.setAttribute("height",we(a)),c.setAttribute("depth",we(-a))),c.setAttribute("voffset",we(a)),c}});function kg(e,t,n){for(var r=Wt(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,u=0;u<r.length;u++){var l=r[u].classes.indexOf("sizing");l<0?Array.prototype.push.apply(r[u].classes,t.sizingClasses(n)):r[u].classes[l+1]==="reset-size"+t.size&&(r[u].classes[l+1]="reset-size"+n.size),r[u].height*=a,r[u].depth*=a}return ei(r)}var t4=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],gC=(e,t)=>{var n=t.havingSize(e.size);return kg(e.body,n,t)};Ce({type:"sizing",names:t4,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,u=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:t4.indexOf(r)+1,body:u}},htmlBuilder:gC,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=jn(e.body,n),a=new xe("mstyle",r);return a.setAttribute("mathsize",we(n.sizeMultiplier)),a}});Ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,u=!1,l=n[0]&&et(n[0],"ordgroup");if(l)for(var c,d=0;d<l.body.length;++d){var h=l.body[d];if(c=Yo(h).text,c==="t")a=!0;else if(c==="b")u=!0;else{a=!1,u=!1;break}}else a=!0,u=!0;var m=t[0];return{type:"smash",mode:r.mode,body:m,smashHeight:a,smashDepth:u}},htmlBuilder:(e,t)=>{var n=pe([],[ht(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return pe(["mord","smash"],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);var a=dt({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return pe(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new xe("mpadded",[yt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],u=t[0];return{type:"sqrt",mode:r.mode,body:u,index:a}},htmlBuilder(e,t){var n=ht(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=ts(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,u=a;t.style.id<Xe.TEXT.id&&(u=t.fontMetrics().xHeight);var l=a+u/4,c=n.height+n.depth+l+a,{span:d,ruleWidth:h,advanceWidth:m}=nC(c,t),p=d.height-h;p>n.height+n.depth+l&&(l=(l+p-n.height-n.depth)/2);var E=d.height-n.height-l-h;n.style.paddingLeft=we(m);var x=dt({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+E)},{type:"elem",elem:d},{type:"kern",size:h}]});if(e.index){var C=t.havingStyle(Xe.SCRIPTSCRIPT),_=ht(e.index,C,t),R=.6*(x.height-x.depth),I=dt({positionType:"shift",positionData:-R,children:[{type:"elem",elem:_}]}),M=pe(["root"],[I]);return pe(["mord","sqrt"],[M,x],t)}else return pe(["mord","sqrt"],[x],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new xe("mroot",[yt(n,t),yt(r,t)]):new xe("msqrt",[yt(n,t)])}});var dh={display:Xe.DISPLAY,text:Xe.TEXT,script:Xe.SCRIPT,scriptscript:Xe.SCRIPTSCRIPT};function yC(e){return e in dh}Ce({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,u=a.parseExpression(!0,n),l=r.slice(1,r.length-5);if(!yC(l))throw new Error("Unknown style: "+l);return{type:"styling",mode:a.mode,style:l,body:u}},htmlBuilder(e,t){var n=dh[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont("")),kg(e.body,r,t)},mathmlBuilder(e,t){var n=dh[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(""));var a=jn(e.body,r),u=new xe("mstyle",a),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=l[e.style];return u.setAttribute("scriptlevel",c[0]),u.setAttribute("displaystyle",c[1]),u}});var vC=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===Xe.DISPLAY.size||r.alwaysHandleSupSub);return a?cs:null}else if(r.type==="operatorname"){var u=r.alwaysHandleSupSub&&(n.style.size===Xe.DISPLAY.size||r.limits);return u?wg:null}else{if(r.type==="accent")return Jr(r.base)?df:null;if(r.type==="horizBrace"){var l=!t.sub;return l===r.isOver?Eg:null}else return null}else return null};va({type:"supsub",htmlBuilder(e,t){var n=vC(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:u}=e,l=ht(r,t),c,d,h=t.fontMetrics(),m=0,p=0,E=r&&Jr(r);if(a){var x=t.havingStyle(t.style.sup());c=ht(a,x,t),E||(m=l.height-x.fontMetrics().supDrop*x.sizeMultiplier/t.sizeMultiplier)}if(u){var C=t.havingStyle(t.style.sub());d=ht(u,C,t),E||(p=l.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var _;t.style===Xe.DISPLAY?_=h.sup1:t.style.cramped?_=h.sup3:_=h.sup2;var R=t.sizeMultiplier,I=we(.5/h.ptPerEm/R),M=null;if(d){var j=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(l instanceof zn||j){var J;M=we(-((J=l.italic)!=null?J:0))}}var te;if(c&&d){m=Math.max(m,_,c.depth+.25*h.xHeight),p=Math.max(p,h.sub2);var W=h.defaultRuleThickness,Z=4*W;if(m-c.depth-(d.height-p)<Z){p=Z-(m-c.depth)+d.height;var re=.8*h.xHeight-(m-c.depth);re>0&&(m+=re,p-=re)}var ie=[{type:"elem",elem:d,shift:p,marginRight:I,marginLeft:M},{type:"elem",elem:c,shift:-m,marginRight:I}];te=dt({positionType:"individualShift",children:ie})}else if(d){p=Math.max(p,h.sub1,d.height-.8*h.xHeight);var Y=[{type:"elem",elem:d,marginLeft:M,marginRight:I}];te=dt({positionType:"shift",positionData:p,children:Y})}else if(c)m=Math.max(m,_,c.depth+.25*h.xHeight),te=dt({positionType:"shift",positionData:-m,children:[{type:"elem",elem:c,marginRight:I}]});else throw new Error("supsub must have either sup or sub.");var se=sh(l,"right")||"mord";return pe([se],[l,pe(["msupsub"],[te])],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 u=[yt(e.base,t)];e.sub&&u.push(yt(e.sub,t)),e.sup&&u.push(yt(e.sup,t));var l;if(n)l=r?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===Xe.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===Xe.DISPLAY||h.limits)?l="munderover":l="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===Xe.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===Xe.DISPLAY)?l="munder":l="msub"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===Xe.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===Xe.DISPLAY)?l="mover":l="msup"}return new xe(l,u)}});va({type:"atom",htmlBuilder(e,t){return uf(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new xe("mo",[er(e.text,e.mode)]);if(e.family==="bin"){var r=cf(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 Sg={mi:"italic",mn:"normal",mtext:"normal"};va({type:"mathord",htmlBuilder(e,t){return qo(e,t,"mathord")},mathmlBuilder(e,t){var n=new xe("mi",[er(e.text,e.mode,t)]),r=cf(e,t)||"italic";return r!==Sg[n.type]&&n.setAttribute("mathvariant",r),n}});va({type:"textord",htmlBuilder(e,t){return qo(e,t,"textord")},mathmlBuilder(e,t){var n=er(e.text,e.mode,t),r=cf(e,t)||"normal",a;return e.mode==="text"?a=new xe("mtext",[n]):/[0-9]/.test(e.text)?a=new xe("mn",[n]):e.text==="\\prime"?a=new xe("mo",[n]):a=new xe("mi",[n]),r!==Sg[a.type]&&a.setAttribute("mathvariant",r),a}});var Id={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Rd={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};va({type:"spacing",htmlBuilder(e,t){if(Rd.hasOwnProperty(e.text)){var n=Rd[e.text].className||"";if(e.mode==="text"){var r=qo(e,t,"textord");return r.classes.push(n),r}else return pe(["mspace",n],[uf(e.text,e.mode,t)],t)}else{if(Id.hasOwnProperty(e.text))return pe(["mspace",Id[e.text]],[],t);throw new be('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Rd.hasOwnProperty(e.text))n=new xe("mtext",[new Ht(" ")]);else{if(Id.hasOwnProperty(e.text))return new xe("mspace");throw new be('Unknown type of space "'+e.text+'"')}return n}});var n4=()=>{var e=new xe("mtd",[]);return e.setAttribute("width","50%"),e};va({type:"tag",mathmlBuilder(e,t){var n=new xe("mtable",[new xe("mtr",[n4(),new xe("mtd",[Di(e.body,t)]),n4(),new xe("mtd",[Di(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var r4={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},i4={"\\textbf":"textbf","\\textmd":"textmd"},bC={"\\textit":"textit","\\textup":"textup"},a4=(e,t)=>{var n=e.font;if(n){if(r4[n])return t.withTextFontFamily(r4[n]);if(i4[n])return t.withTextFontWeight(i4[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(bC[n])};Ce({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:zt(a),font:r}},htmlBuilder(e,t){var n=a4(e,t),r=Wt(e.body,n,!0);return pe(["mord","text"],r,n)},mathmlBuilder(e,t){var n=a4(e,t);return Di(e.body,n)}});Ce({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=es("underline-line",t),a=t.fontMetrics().defaultRuleThickness,u=dt({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]});return pe(["mord","underline"],[u],t)},mathmlBuilder(e,t){var n=new xe("mo",[new Ht("‾")]);n.setAttribute("stretchy","true");var r=new xe("munder",[yt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Ce({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 dt({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new xe("mpadded",[yt(e.body,t)],["vcenter"]);return new xe("mrow",[n])}});Ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new be("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=s4(e),r=[],a=t.havingStyle(t.style.text()),u=0;u<n.length;u++){var l=n[u];l==="~"&&(l="\\textasciitilde"),r.push(pn(l,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return pe(["mord","text"].concat(a.sizingClasses(t)),j6(r),a)},mathmlBuilder(e,t){var n=new Ht(s4(e)),r=new xe("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var s4=e=>e.body.replace(/ /g,e.star?"␣":" "),Ni=Y6,Cg=`[ \r
339
+ ]`,EC="\\\\[a-zA-Z@]+",xC="\\\\[^\uD800-\uDFFF]",TC="("+EC+")"+Cg+"*",wC=`\\\\(
340
+ |[ \r ]+
341
+ ?)[ \r ]*`,hh="[̀-ͯ]",kC=new RegExp(hh+"+$"),SC="("+Cg+"+)|"+(wC+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(hh+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(hh+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+TC)+("|"+xC+")");class u4{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(SC,"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 Fn("EOF",new An(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new be("Unexpected character: '"+t[n]+"'",new Fn(t[n],new An(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var u=t.indexOf(`
342
+ `,this.tokenRegex.lastIndex);return u===-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=u+1,this.lex()}return new Fn(a,new An(this,n,this.tokenRegex.lastIndex))}}class CC{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 be("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 u=this.undefStack[this.undefStack.length-1];u&&!u.hasOwnProperty(t)&&(u[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var AC=pg;N("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});N("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});N("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});N("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});N("\\@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}});N("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");N("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var l4={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};N("\\char",function(e){var t=e.popToken(),n,r=0;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 be("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=l4[t.text],r==null||r>=n)throw new be("Invalid base-"+n+" digit "+t.text);for(var a;(a=l4[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var pf=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new be("\\newcommand's first argument must be a macro name");var u=a[0].text,l=e.isDefined(u);if(l&&!t)throw new be("\\newcommand{"+u+"} attempting to redefine "+(u+"; use \\renewcommand"));if(!l&&!n)throw new be("\\renewcommand{"+u+"} when command "+u+" does not yet exist; use \\newcommand");var c=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var d="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)d+=h.text,h=e.expandNextToken();if(!d.match(/^\s*[0-9]+\s*$/))throw new be("Invalid number of arguments: "+d);c=parseInt(d),a=e.consumeArg().tokens}return l&&r||e.macros.set(u,{tokens:a,numArgs:c}),""};N("\\newcommand",e=>pf(e,!1,!0,!1));N("\\renewcommand",e=>pf(e,!0,!1,!1));N("\\providecommand",e=>pf(e,!0,!0,!0));N("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});N("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});N("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Ni[n],St.math[n],St.text[n]),""});N("\\bgroup","{");N("\\egroup","}");N("~","\\nobreakspace");N("\\lq","`");N("\\rq","'");N("\\aa","\\r a");N("\\AA","\\r A");N("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");N("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");N("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");N("ℬ","\\mathscr{B}");N("ℰ","\\mathscr{E}");N("ℱ","\\mathscr{F}");N("ℋ","\\mathscr{H}");N("ℐ","\\mathscr{I}");N("ℒ","\\mathscr{L}");N("ℳ","\\mathscr{M}");N("ℛ","\\mathscr{R}");N("ℭ","\\mathfrak{C}");N("ℌ","\\mathfrak{H}");N("ℨ","\\mathfrak{Z}");N("\\Bbbk","\\Bbb{k}");N("\\llap","\\mathllap{\\textrm{#1}}");N("\\rlap","\\mathrlap{\\textrm{#1}}");N("\\clap","\\mathclap{\\textrm{#1}}");N("\\mathstrut","\\vphantom{(}");N("\\underbar","\\underline{\\text{#1}}");N("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');N("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");N("\\ne","\\neq");N("≠","\\neq");N("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");N("∉","\\notin");N("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");N("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");N("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");N("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");N("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");N("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");N("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");N("⟂","\\perp");N("‼","\\mathclose{!\\mkern-0.8mu!}");N("∌","\\notni");N("⌜","\\ulcorner");N("⌝","\\urcorner");N("⌞","\\llcorner");N("⌟","\\lrcorner");N("©","\\copyright");N("®","\\textregistered");N("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');N("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');N("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');N("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');N("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");N("⋮","\\vdots");N("\\varGamma","\\mathit{\\Gamma}");N("\\varDelta","\\mathit{\\Delta}");N("\\varTheta","\\mathit{\\Theta}");N("\\varLambda","\\mathit{\\Lambda}");N("\\varXi","\\mathit{\\Xi}");N("\\varPi","\\mathit{\\Pi}");N("\\varSigma","\\mathit{\\Sigma}");N("\\varUpsilon","\\mathit{\\Upsilon}");N("\\varPhi","\\mathit{\\Phi}");N("\\varPsi","\\mathit{\\Psi}");N("\\varOmega","\\mathit{\\Omega}");N("\\substack","\\begin{subarray}{c}#1\\end{subarray}");N("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");N("\\boxed","\\fbox{$\\displaystyle{#1}$}");N("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");N("\\implies","\\DOTSB\\;\\Longrightarrow\\;");N("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");N("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");N("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var o4={",":"\\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"},NC=new Set(["bin","rel"]);N("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in o4?t=o4[n]:(n.slice(0,4)==="\\not"||n in St.math&&NC.has(St.math[n].group))&&(t="\\dotsb"),t});var gf={")":!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};N("\\dotso",function(e){var t=e.future().text;return t in gf?"\\ldots\\,":"\\ldots"});N("\\dotsc",function(e){var t=e.future().text;return t in gf&&t!==","?"\\ldots\\,":"\\ldots"});N("\\cdots",function(e){var t=e.future().text;return t in gf?"\\@cdots\\,":"\\@cdots"});N("\\dotsb","\\cdots");N("\\dotsm","\\cdots");N("\\dotsi","\\!\\cdots");N("\\dotsx","\\ldots\\,");N("\\DOTSI","\\relax");N("\\DOTSB","\\relax");N("\\DOTSX","\\relax");N("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");N("\\,","\\tmspace+{3mu}{.1667em}");N("\\thinspace","\\,");N("\\>","\\mskip{4mu}");N("\\:","\\tmspace+{4mu}{.2222em}");N("\\medspace","\\:");N("\\;","\\tmspace+{5mu}{.2777em}");N("\\thickspace","\\;");N("\\!","\\tmspace-{3mu}{.1667em}");N("\\negthinspace","\\!");N("\\negmedspace","\\tmspace-{4mu}{.2222em}");N("\\negthickspace","\\tmspace-{5mu}{.277em}");N("\\enspace","\\kern.5em ");N("\\enskip","\\hskip.5em\\relax");N("\\quad","\\hskip1em\\relax");N("\\qquad","\\hskip2em\\relax");N("\\tag","\\@ifstar\\tag@literal\\tag@paren");N("\\tag@paren","\\tag@literal{({#1})}");N("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new be("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});N("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");N("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");N("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");N("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");N("\\newline","\\\\\\relax");N("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ag=we(Ar["Main-Regular"][84][1]-.7*Ar["Main-Regular"][65][1]);N("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ag+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");N("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ag+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");N("\\hspace","\\@ifstar\\@hspacer\\@hspace");N("\\@hspace","\\hskip #1\\relax");N("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");N("\\ordinarycolon",":");N("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");N("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');N("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');N("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');N("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');N("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');N("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');N("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');N("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');N("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');N("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');N("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');N("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');N("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');N("∷","\\dblcolon");N("∹","\\eqcolon");N("≔","\\coloneqq");N("≕","\\eqqcolon");N("⩴","\\Coloneqq");N("\\ratio","\\vcentcolon");N("\\coloncolon","\\dblcolon");N("\\colonequals","\\coloneqq");N("\\coloncolonequals","\\Coloneqq");N("\\equalscolon","\\eqqcolon");N("\\equalscoloncolon","\\Eqqcolon");N("\\colonminus","\\coloneq");N("\\coloncolonminus","\\Coloneq");N("\\minuscolon","\\eqcolon");N("\\minuscoloncolon","\\Eqcolon");N("\\coloncolonapprox","\\Colonapprox");N("\\coloncolonsim","\\Colonsim");N("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");N("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");N("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");N("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");N("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");N("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");N("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");N("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");N("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");N("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");N("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");N("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");N("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");N("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");N("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");N("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");N("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");N("\\nleqq","\\html@mathml{\\@nleqq}{≰}");N("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");N("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");N("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");N("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");N("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");N("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");N("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");N("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");N("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");N("\\imath","\\html@mathml{\\@imath}{ı}");N("\\jmath","\\html@mathml{\\@jmath}{ȷ}");N("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");N("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");N("⟦","\\llbracket");N("⟧","\\rrbracket");N("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");N("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");N("⦃","\\lBrace");N("⦄","\\rBrace");N("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");N("⦵","\\minuso");N("\\darr","\\downarrow");N("\\dArr","\\Downarrow");N("\\Darr","\\Downarrow");N("\\lang","\\langle");N("\\rang","\\rangle");N("\\uarr","\\uparrow");N("\\uArr","\\Uparrow");N("\\Uarr","\\Uparrow");N("\\N","\\mathbb{N}");N("\\R","\\mathbb{R}");N("\\Z","\\mathbb{Z}");N("\\alef","\\aleph");N("\\alefsym","\\aleph");N("\\Alpha","\\mathrm{A}");N("\\Beta","\\mathrm{B}");N("\\bull","\\bullet");N("\\Chi","\\mathrm{X}");N("\\clubs","\\clubsuit");N("\\cnums","\\mathbb{C}");N("\\Complex","\\mathbb{C}");N("\\Dagger","\\ddagger");N("\\diamonds","\\diamondsuit");N("\\empty","\\emptyset");N("\\Epsilon","\\mathrm{E}");N("\\Eta","\\mathrm{H}");N("\\exist","\\exists");N("\\harr","\\leftrightarrow");N("\\hArr","\\Leftrightarrow");N("\\Harr","\\Leftrightarrow");N("\\hearts","\\heartsuit");N("\\image","\\Im");N("\\infin","\\infty");N("\\Iota","\\mathrm{I}");N("\\isin","\\in");N("\\Kappa","\\mathrm{K}");N("\\larr","\\leftarrow");N("\\lArr","\\Leftarrow");N("\\Larr","\\Leftarrow");N("\\lrarr","\\leftrightarrow");N("\\lrArr","\\Leftrightarrow");N("\\Lrarr","\\Leftrightarrow");N("\\Mu","\\mathrm{M}");N("\\natnums","\\mathbb{N}");N("\\Nu","\\mathrm{N}");N("\\Omicron","\\mathrm{O}");N("\\plusmn","\\pm");N("\\rarr","\\rightarrow");N("\\rArr","\\Rightarrow");N("\\Rarr","\\Rightarrow");N("\\real","\\Re");N("\\reals","\\mathbb{R}");N("\\Reals","\\mathbb{R}");N("\\Rho","\\mathrm{P}");N("\\sdot","\\cdot");N("\\sect","\\S");N("\\spades","\\spadesuit");N("\\sub","\\subset");N("\\sube","\\subseteq");N("\\supe","\\supseteq");N("\\Tau","\\mathrm{T}");N("\\thetasym","\\vartheta");N("\\weierp","\\wp");N("\\Zeta","\\mathrm{Z}");N("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");N("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");N("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");N("\\bra","\\mathinner{\\langle{#1}|}");N("\\ket","\\mathinner{|{#1}\\rangle}");N("\\braket","\\mathinner{\\langle{#1}\\rangle}");N("\\Bra","\\left\\langle#1\\right|");N("\\Ket","\\left|#1\\right\\rangle");var Ng=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,u=t.consumeArg().tokens,l=t.macros.get("|"),c=t.macros.get("\\|");t.macros.beginGroup();var d=p=>E=>{e&&(E.macros.set("|",l),a.length&&E.macros.set("\\|",c));var x=p;if(!p&&a.length){var C=E.future();C.text==="|"&&(E.popToken(),x=!0)}return{tokens:x?a:r,numArgs:0}};t.macros.set("|",d(!1)),a.length&&t.macros.set("\\|",d(!0));var h=t.consumeArg().tokens,m=t.expandTokens([...u,...h,...n]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};N("\\bra@ket",Ng(!1));N("\\bra@set",Ng(!0));N("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");N("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");N("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");N("\\angln","{\\angl n}");N("\\blue","\\textcolor{##6495ed}{#1}");N("\\orange","\\textcolor{##ffa500}{#1}");N("\\pink","\\textcolor{##ff00af}{#1}");N("\\red","\\textcolor{##df0030}{#1}");N("\\green","\\textcolor{##28ae7b}{#1}");N("\\gray","\\textcolor{gray}{#1}");N("\\purple","\\textcolor{##9d38bd}{#1}");N("\\blueA","\\textcolor{##ccfaff}{#1}");N("\\blueB","\\textcolor{##80f6ff}{#1}");N("\\blueC","\\textcolor{##63d9ea}{#1}");N("\\blueD","\\textcolor{##11accd}{#1}");N("\\blueE","\\textcolor{##0c7f99}{#1}");N("\\tealA","\\textcolor{##94fff5}{#1}");N("\\tealB","\\textcolor{##26edd5}{#1}");N("\\tealC","\\textcolor{##01d1c1}{#1}");N("\\tealD","\\textcolor{##01a995}{#1}");N("\\tealE","\\textcolor{##208170}{#1}");N("\\greenA","\\textcolor{##b6ffb0}{#1}");N("\\greenB","\\textcolor{##8af281}{#1}");N("\\greenC","\\textcolor{##74cf70}{#1}");N("\\greenD","\\textcolor{##1fab54}{#1}");N("\\greenE","\\textcolor{##0d923f}{#1}");N("\\goldA","\\textcolor{##ffd0a9}{#1}");N("\\goldB","\\textcolor{##ffbb71}{#1}");N("\\goldC","\\textcolor{##ff9c39}{#1}");N("\\goldD","\\textcolor{##e07d10}{#1}");N("\\goldE","\\textcolor{##a75a05}{#1}");N("\\redA","\\textcolor{##fca9a9}{#1}");N("\\redB","\\textcolor{##ff8482}{#1}");N("\\redC","\\textcolor{##f9685d}{#1}");N("\\redD","\\textcolor{##e84d39}{#1}");N("\\redE","\\textcolor{##bc2612}{#1}");N("\\maroonA","\\textcolor{##ffbde0}{#1}");N("\\maroonB","\\textcolor{##ff92c6}{#1}");N("\\maroonC","\\textcolor{##ed5fa6}{#1}");N("\\maroonD","\\textcolor{##ca337c}{#1}");N("\\maroonE","\\textcolor{##9e034e}{#1}");N("\\purpleA","\\textcolor{##ddd7ff}{#1}");N("\\purpleB","\\textcolor{##c6b9fc}{#1}");N("\\purpleC","\\textcolor{##aa87ff}{#1}");N("\\purpleD","\\textcolor{##7854ab}{#1}");N("\\purpleE","\\textcolor{##543b78}{#1}");N("\\mintA","\\textcolor{##f5f9e8}{#1}");N("\\mintB","\\textcolor{##edf2df}{#1}");N("\\mintC","\\textcolor{##e0e5cc}{#1}");N("\\grayA","\\textcolor{##f6f7f7}{#1}");N("\\grayB","\\textcolor{##f0f1f2}{#1}");N("\\grayC","\\textcolor{##e3e5e6}{#1}");N("\\grayD","\\textcolor{##d6d8da}{#1}");N("\\grayE","\\textcolor{##babec2}{#1}");N("\\grayF","\\textcolor{##888d93}{#1}");N("\\grayG","\\textcolor{##626569}{#1}");N("\\grayH","\\textcolor{##3b3e40}{#1}");N("\\grayI","\\textcolor{##21242c}{#1}");N("\\kaBlue","\\textcolor{##314453}{#1}");N("\\kaGreen","\\textcolor{##71B307}{#1}");var _g={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class _C{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 CC(AC,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new u4(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 Fn("EOF",r.loc)),this.pushTokens(a),new Fn("",An.range(n,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(),u,l=0,c=0;do{if(u=this.popToken(),n.push(u),u.text==="{")++l;else if(u.text==="}"){if(--l,l===-1)throw new be("Extra }",u)}else if(u.text==="EOF")throw new be("Unexpected end of input in a macro argument, expected '"+(t&&r?t[c]:"}")+"'",u);if(t&&r)if((l===0||l===1&&t[c]==="{")&&u.text===t[c]){if(++c,c===t.length){n.splice(-c,c);break}}else c=0}while(l!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:u}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new be("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var u=this.popToken();if(r[a]!==u.text)throw new be("Use of the macro doesn't match its definition",u)}}for(var l=[],c=0;c<t;c++)l.push(this.consumeArg(n&&n[c+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new be("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 be("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var u=a.tokens,l=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){u=u.slice();for(var c=u.length-1;c>=0;--c){var d=u[c];if(d.text==="#"){if(c===0)throw new be("Incomplete placeholder at end of macro body",d);if(d=u[--c],d.text==="#")u.splice(c+1,1);else if(/^[1-9]$/.test(d.text))u.splice(c,2,...l[+d.text-1]);else throw new be("Not a valid argument number",d)}}}return this.pushTokens(u),u.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}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Fn(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 u=0;if(a.includes("#"))for(var l=a.replace(/##/g,"");l.includes("#"+(u+1));)++u;for(var c=new u4(a,this.settings),d=[],h=c.lex();h.text!=="EOF";)d.push(h),h=c.lex();d.reverse();var m={tokens:d,numArgs:u};return m}return a}isDefined(t){return this.macros.has(t)||Ni.hasOwnProperty(t)||St.math.hasOwnProperty(t)||St.text.hasOwnProperty(t)||_g.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Ni.hasOwnProperty(t)&&!Ni[t].primitive}}var c4=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,io=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Ld={"́":{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"}},d4={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Ig=class Rg{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 _C(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new be("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 Fn("}")),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(Rg.endOfExpression.has(a.text)||n&&a.text===n||t&&Ni[a.text]&&Ni[a.text].infix)break;var u=this.parseAtom(n);if(u){if(u.type==="internal")continue}else break;r.push(u)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++){var u=t[a];if(u.type==="infix"){if(n!==-1)throw new be("only one infix operator per group",u.token);n=a,r=u.replaceWith}}if(n!==-1&&r){var l,c,d=t.slice(0,n),h=t.slice(n+1);d.length===1&&d[0].type==="ordgroup"?l=d[0]:l={type:"ordgroup",mode:this.mode,body:d},h.length===1&&h[0].type==="ordgroup"?c=h[0]:c={type:"ordgroup",mode:this.mode,body:h};var m;return r==="\\\\abovefrac"?m=this.callFunction(r,[l,t[n],c],[]):m=this.callFunction(r,[l,c],[]),[m]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var u;a=this.parseGroup(t)}while(((u=a)==null?void 0:u.type)==="internal");if(!a)throw new be("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},u={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return u}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 u=this.fetch();if(u.text==="\\limits"||u.text==="\\nolimits"){if(n&&n.type==="op"){var l=u.text==="\\limits";n.limits=l,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=u.text==="\\limits");else throw new be("Limit controls must follow a math operator",u);this.consume()}else if(u.text==="^"){if(r)throw new be("Double superscript",u);r=this.handleSupSubscript("superscript")}else if(u.text==="_"){if(a)throw new be("Double subscript",u);a=this.handleSupSubscript("subscript")}else if(u.text==="'"){if(r)throw new be("Double superscript",u);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(io[u.text]){var h=c4.test(u.text),m=[];for(m.push(new Fn(io[u.text])),this.consume();;){var p=this.fetch().text;if(!io[p]||c4.test(p)!==h)break;m.unshift(new Fn(io[p])),this.consume()}var E=this.subparse(m);h?a={type:"ordgroup",mode:"math",body:E}:r={type:"ordgroup",mode:"math",body:E}}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,u=Ni[a];if(!u)return null;if(this.consume(),n&&n!=="atom"&&!u.allowedInArgument)throw new be("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!u.allowedInText)throw new be("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&u.allowedInMath===!1)throw new be("Can't use function '"+a+"' in math mode",r);var{args:l,optArgs:c}=this.parseArguments(a,u);return this.callFunction(a,l,c,r,t)}callFunction(t,n,r,a,u){var l={funcName:t,parser:this,token:a,breakOnTokenText:u},c=Ni[t];if(c&&c.handler)return c.handler(l,n,r);throw new be("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],u=[],l=0;l<r;l++){var c=n.argTypes&&n.argTypes[l],d=l<n.numOptionalArgs;("primitive"in n&&n.primitive&&c==null||n.type==="sqrt"&&l===1&&u[0]==null)&&(c="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",c,d);if(d)u.push(h);else if(h!=null)a.push(h);else throw new be("Null argument, please report this as a bug")}return{args:a,optArgs:u}}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",resetFont:!0}:null}case"raw":{var u=this.parseStringGroup("raw",r);return u!=null?{type:"raw",mode:"text",string:u.text}:null}case"primitive":{if(r)throw new be("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new be("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new be("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="",u;(u=this.fetch()).text!=="EOF";)a+=u.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,u="",l;(l=this.fetch()).text!=="EOF"&&t.test(u+l.text);)a=l,u+=a.text,this.consume();if(u==="")throw new be("Invalid "+n+": '"+r.text+"'",r);return r.range(a,u)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new be("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 be("Invalid size: '"+n.text+"'",n);var u={number:+(a[1]+a[2]),unit:a[3]};if(!P6(u))throw new be("Invalid unit: '"+u.unit+"'",n);return{type:"size",mode:this.mode,value:u,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 u=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:r.loc,body:u};return n&&this.switchMode(a),l}parseGroup(t,n){var r=this.fetch(),a=r.text,u;if(a==="{"||a==="\\begingroup"){this.consume();var l=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var c=this.parseExpression(!1,l),d=this.fetch();this.expect(l),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:An.range(r,d),body:c,semisimple:a==="\\begingroup"||void 0}}else if(u=this.parseFunction(n,t)||this.parseSymbol(),u==null&&a[0]==="\\"&&!_g.hasOwnProperty(a)){if(this.settings.throwOnError)throw new be("Undefined control sequence: "+a,r);u=this.formatUnsupportedCmd(a),this.consume()}return u}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r];if(a.type==="textord"){var u=a.text,l=t[r+1];if(!(!l||l.type!=="textord")){if(u==="-"&&l.text==="-"){var c=t[r+2];r+1<n&&c&&c.type==="textord"&&c.text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:An.range(a,c),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:An.range(a,l),text:"--"}),n-=1)}(u==="'"||u==="`")&&l.text===u&&(t.splice(r,2,{type:"textord",mode:"text",loc:An.range(a,l),text:u+u}),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 be(`\\verb assertion failed --
343
+ please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}d4.hasOwnProperty(n[0])&&!St[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=d4[n[0]]+n.slice(1));var u=kC.exec(n);u&&(n=n.substring(0,u.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var l;if(St[this.mode][n]){this.settings.strict&&this.mode==="math"&&Jd.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var c=St[this.mode][n].group,d=An.range(t),h;WS(c)?h={type:"atom",mode:this.mode,family:c,loc:d,text:n}:h={type:c,mode:this.mode,loc:d,text:n},l=h}else if(n.charCodeAt(0)>=128)this.settings.strict&&(M6(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)),l={type:"textord",mode:"text",loc:An.range(t),text:n};else return null;if(this.consume(),u)for(var m=0;m<u[0].length;m++){var p=u[0][m];if(!Ld[p])throw new be("Unknown accent ' "+p+"'",t);var E=Ld[p][this.mode]||Ld[p].text;if(!E)throw new be("Accent "+p+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:An.range(t),label:E,isStretchy:!1,isShifty:!0,base:l}}return l}};Ig.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var yf=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Ig(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 be("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new Fn("\\df@tag")])}]}return a},vf=function(t,n,r){n.textContent="";var a=Zo(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."),vf=function(){throw new be("KaTeX doesn't work in quirks mode.")});var Lg=function(t,n){var r=Zo(t,n).toMarkup();return r},Dg=function(t,n){var r=new nf(n);return yf(t,r)},Og=function(t,n,r){if(r.throwOnError||!(t instanceof be))throw t;var a=pe(["katex-error"],[new zn(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},Zo=function(t,n){var r=new nf(n);try{var a=yf(t,r);return BS(a,t,r)}catch(u){return Og(u,t,r)}},Mg=function(t,n){var r=new nf(n);try{var a=yf(t,r);return FS(a,t,r)}catch(u){return Og(u,t,r)}},Pg="0.16.47",Bg={Span:ls,Anchor:Uo,SymbolNode:zn,SvgNode:Xr,PathNode:Ri,LineNode:Kd},fh={version:Pg,render:vf,renderToString:Lg,ParseError:be,SETTINGS_SCHEMA:Eo,__parse:Dg,__renderToDomTree:Zo,__renderToHTMLTree:Mg,__setFontMetrics:H6,__defineSymbol:v,__defineFunction:Ce,__defineMacro:N,__domTree:Bg};const cL=Object.freeze(Object.defineProperty({__proto__:null,ParseError:be,SETTINGS_SCHEMA:Eo,__defineFunction:Ce,__defineMacro:N,__defineSymbol:v,__domTree:Bg,__parse:Dg,__renderToDomTree:Zo,__renderToHTMLTree:Mg,__setFontMetrics:H6,default:fh,get render(){return vf},renderToString:Lg,version:Pg},Symbol.toStringTag,{value:"Module"})),IC={};function RC(e){const t=this,n=e||IC,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(Fk(n)),u.push(Ik()),l.push(Rk(n))}const LC=[_k,RC],DC=/\\[a-zA-Z]+|[\^_]/,OC=/^\d[\d,.]*\s*(?:[kKmMbB]|bn|billion|million|thousand)?$/,MC=/^[a-zA-Z]{3,}$/,h4=/[=+\-*/<>≤≥±×÷]/;function PC(e){const t=e.trim();if(!t||/\n/.test(e))return!1;if(DC.test(t))return!0;if(OC.test(t))return!1;const n=t.split(/\s+/),r=n.filter(u=>MC.test(u.replace(/[.,;:!?]$/,"")));return r.length>=2||/\d,\d{3}\b/.test(t)?!1:!!(n.every(u=>u.length<=4)&&(n.length===1||h4.test(t))||h4.test(t)&&r.length===0)}function BC(e,t){if(e.startsWith("```",t)||e.startsWith("~~~",t)){const n=e.slice(t,t+3),r=e.indexOf(`
344
+ ${n}`,t+3);return r===-1?e.length:r+4}if(e[t]==="`"){let n=0;for(;e[t+n]==="`";)n++;const r=e.indexOf("`".repeat(n),t+n);return r===-1?t+n:r+n}return t}function FC(e){let t="",n=0;for(;n<e.length;){const r=BC(e,n);if(r>n){t+=e.slice(n,r),n=r;continue}if(e[n]==="$"&&e[n+1]==="$"){const a=e.indexOf("$$",n+2),u=a===-1?e.length:a+2;t+=e.slice(n,u),n=u;continue}if(e[n]==="$"&&e[n-1]!=="\\"){const a=e.indexOf("$",n+1);if(a!==-1){const u=e.slice(n+1,a);if(!PC(u)){t+=`\\$${u}`,n=a;continue}t+=e.slice(n,a+1),n=a+1;continue}}t+=e[n],n++}return t}const f4=/[#.]/g;function zC(e,t){const n=e||"",r={};let a=0,u,l;for(;a<n.length;){f4.lastIndex=a;const c=f4.exec(n),d=n.slice(a,c?c.index:n.length);d&&(u?u==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,a+=d.length),c&&(u=c[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function Fg(e,t,n){const r=n?qC(n):void 0;function a(u,l,...c){let d;if(u==null){d={type:"root",children:[]};const h=l;c.unshift(h)}else{d=zC(u,t);const h=d.tagName.toLowerCase(),m=r?r.get(h):void 0;if(d.tagName=m||h,HC(l))c.unshift(l);else for(const[p,E]of Object.entries(l))UC(e,d.properties,p,E)}for(const h of c)mh(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function HC(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 u=a;for(const l of u)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function UC(e,t,n,r){const a=Oo(e,n);let u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?a.spaceSeparated?u=Hp(r):a.commaSeparated?u=Mp(r):a.commaOrSpaceSeparated?u=Hp(Mp(r).join(" ")):u=m4(a,a.property,r):Array.isArray(r)?u=[...r]:u=a.property==="style"?jC(r):String(r);if(Array.isArray(u)){const l=[];for(const c of u)l.push(m4(a,a.property,c));u=l}a.property==="className"&&Array.isArray(t.className)&&(u=t.className.concat(u)),t[a.property]=u}}function mh(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)mh(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?mh(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function m4(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||bu(n)===bu(t)))return!0}return n}function jC(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function qC(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const $C=["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"],zg=Fg(_u,"div"),Hg=Fg(Oi,"g",$C),Nr={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/"};function WC(e,t){return Ug(e,{})||{type:"root",children:[]}}function Ug(e,t){const n=YC(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function YC(e,t){switch(e.nodeType){case 1:return XC(e,t);case 3:return GC(e);case 8:return QC(e);case 9:return p4(e,t);case 10:return VC();case 11:return p4(e,t);default:return}}function p4(e,t){return{type:"root",children:jg(e,t)}}function VC(){return{type:"doctype"}}function GC(e){return{type:"text",value:e.nodeValue||""}}function QC(e){return{type:"comment",value:e.nodeValue||""}}function XC(e,t){const n=e.namespaceURI,r=n===Nr.svg?Hg:zg,a=n===Nr.html?e.tagName.toLowerCase():e.tagName,u=n===Nr.html&&a==="template"?e.content:e,l=e.getAttributeNames(),c={};let d=-1;for(;++d<l.length;)c[l[d]]=e.getAttribute(l[d])||"";return r(a,c,jg(u,t))}function jg(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const u=Ug(n[a],t);u!==void 0&&r.push(u)}return r}new DOMParser;function KC(e,t){const n=JC(e);return WC(n)}function JC(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const g4=(function(e,t,n){const r=Ru(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]}),ba=(function(e){if(e==null)return tA;if(typeof e=="string")return eA(e);if(typeof e=="object")return ZC(e);if(typeof e=="function")return bf(e);throw new Error("Expected function, string, or array as `test`")});function ZC(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ba(e[n]);return bf(r);function r(...a){let u=-1;for(;++u<t.length;)if(t[u].apply(this,a))return!0;return!1}}function eA(e){return bf(t);function t(n){return n.tagName===e}}function bf(e){return t;function t(n,r,a){return!!(nA(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function tA(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function nA(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const y4=/\n/g,v4=/[\t ]+/g,ph=ba("br"),b4=ba(cA),rA=ba("p"),E4=ba("tr"),iA=ba(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",oA,dA]),qg=ba(["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 aA(e,t){const n=t||{},r="children"in e?e.children:[],a=qg(e),u=Yg(e,{whitespace:n.whitespace||"normal"}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...Wg(e,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<r.length;)l.push(...$g(r[c],e,{whitespace:u,breakBefore:c?void 0:a,breakAfter:c<r.length-1?ph(r[c+1]):a}));const d=[];let h;for(c=-1;++c<l.length;){const m=l[c];typeof m=="number"?h!==void 0&&m>h&&(h=m):m&&(h!==void 0&&h>-1&&d.push(`
345
+ `.repeat(h)||" "),h=-1,d.push(m))}return d.join("")}function $g(e,t,n){return e.type==="element"?sA(e,t,n):e.type==="text"?n.whitespace==="normal"?Wg(e,n):uA(e):[]}function sA(e,t,n){const r=Yg(e,n),a=e.children||[];let u=-1,l=[];if(iA(e))return l;let c,d;for(ph(e)||E4(e)&&g4(t,e,E4)?d=`
346
+ `:rA(e)?(c=2,d=2):qg(e)&&(c=1,d=1);++u<a.length;)l=l.concat($g(a[u],e,{whitespace:r,breakBefore:u?void 0:c,breakAfter:u<a.length-1?ph(a[u+1]):d}));return b4(e)&&g4(t,e,b4)&&l.push(" "),c&&l.unshift(c),d&&l.push(d),l}function Wg(e,t){const n=String(e.value),r=[],a=[];let u=0;for(;u<=n.length;){y4.lastIndex=u;const d=y4.exec(n),h=d&&"index"in d?d.index:n.length;r.push(lA(n.slice(u,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),u===0?t.breakBefore:!0,h===n.length?t.breakAfter:!0)),u=h+1}let l=-1,c;for(;++l<r.length;)r[l].charCodeAt(r[l].length-1)===8203||l<r.length-1&&r[l+1].charCodeAt(0)===8203?(a.push(r[l]),c=void 0):r[l]?(typeof c=="number"&&a.push(c),a.push(r[l]),c=0):(l===0||l===r.length-1)&&a.push(0);return a}function uA(e){return[String(e.value)]}function lA(e,t,n){const r=[];let a=0,u;for(;a<e.length;){v4.lastIndex=a;const l=v4.exec(e);u=l?l.index:e.length,!a&&!u&&l&&!t&&r.push(""),a!==u&&r.push(e.slice(a,u)),a=l?u+l[0].length:u}return a!==u&&!n&&r.push(""),r.join(" ")}function Yg(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 oA(e){return!!(e.properties||{}).hidden}function cA(e){return e.tagName==="td"||e.tagName==="th"}function dA(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const hA={},fA=[];function Ef(e){const t=e||hA;return function(n,r){Kh(n,"element",function(a,u){const l=Array.isArray(a.properties.className)?a.properties.className:fA,c=l.includes("language-math"),d=l.includes("math-display"),h=l.includes("math-inline");let m=d;if(!c&&!d&&!h)return;let p=u[u.length-1],E=a;if(a.tagName==="code"&&c&&p&&p.type==="element"&&p.tagName==="pre"&&(E=p,p=u[u.length-2],m=!0),!p)return;const x=aA(E,{whitespace:"pre"});let C;try{C=fh.renderToString(x,{...t,displayMode:m,throwOnError:!0})}catch(R){const I=R,M=I.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...u,a],cause:I,place:a.position,ruleId:M,source:"rehype-katex"});try{C=fh.renderToString(x,{...t,displayMode:m,strict:"ignore",throwOnError:!1})}catch{C=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(R)},children:[{type:"text",value:x}]}]}}typeof C=="string"&&(C=KC(C).children);const _=p.children.indexOf(E);return p.children.splice(_,1,...C),l6})}}function mA(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(u){if(typeof u=="number"&&u>-1&&u<=t.length){let l=0;for(;;){let c=n[l];if(c===void 0){const d=x4(t,n[l-1]);c=d===-1?t.length+1:d+1,n[l]=c}if(c>u)return{line:l+1,column:u-(l>0?n[l-1]:0)+1,offset:u};l++}}}function a(u){if(u&&typeof u.line=="number"&&typeof u.column=="number"&&!Number.isNaN(u.line)&&!Number.isNaN(u.column)){for(;n.length<u.line;){const c=n[n.length-1],d=x4(t,c),h=d===-1?t.length+1:d+1;if(c===h)break;n.push(h)}const l=(u.line>1?n[u.line-2]:0)+u.column-1;if(l<n[u.line-1])return l}}}function x4(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
347
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Vg={}.hasOwnProperty,pA=Object.prototype;function gA(e,t){const n=t||{};return xf({file:n.file||void 0,location:!1,schema:n.space==="svg"?Oi:_u,verbose:n.verbose||!1},e)}function xf(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},fo(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:Gg(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const u=String(e.file),l=mA(u),c=l.toPoint(0),d=l.toPoint(u.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},fo(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},fo(e,r,n),n}default:return n=yA(e,t),n}}function Gg(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=xf(e,t[n]);r.push(a)}return r}function yA(e,t){const n=e.schema;e.schema=t.namespaceURI===Nr.svg?Oi:_u;let r=-1;const a={};for(;++r<t.attrs.length;){const c=t.attrs[r],d=(c.prefix?c.prefix+":":"")+c.name;Vg.call(pA,d)||(a[d]=c.value)}const l=(e.schema.space==="svg"?Hg:zg)(t.tagName,a,Gg(e,t.childNodes));if(fo(e,t,l),l.tagName==="template"){const c=t,d=c.sourceCodeLocation,h=d&&d.startTag&&Xa(d.startTag),m=d&&d.endTag&&Xa(d.endTag),p=xf(e,c.content);h&&m&&e.file&&(p.position={start:h.end,end:m.start}),l.content=p}return e.schema=n,l}function fo(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=vA(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function vA(e,t,n){const r=Xa(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 u={};let l;if(n.attrs)for(l in n.attrs)Vg.call(n.attrs,l)&&(u[Oo(e.schema,l).property]=Xa(n.attrs[l]));n.startTag;const c=Xa(n.startTag),d=n.endTag?Xa(n.endTag):void 0,h={opening:c};d&&(h.closing=d),h.properties=u,t.data={position:h}}}return r}function Xa(e){const t=T4({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=T4({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function T4(e){return e.line&&e.column?e:void 0}const bA={},EA={}.hasOwnProperty,Qg=m6("type",{handlers:{root:TA,element:AA,text:SA,comment:CA,doctype:kA}});function xA(e,t){const r=(t||bA).space;return Qg(e,r==="svg"?Oi:_u)}function TA(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Tf(e.children,n,t),ds(e,n),n}function wA(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Tf(e.children,n,t),ds(e,n),n}function kA(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ds(e,t),t}function SA(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ds(e,t),t}function CA(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ds(e,t),t}function AA(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Oi);const a=[];let u;if(e.properties){for(u in e.properties)if(u!=="children"&&EA.call(e.properties,u)){const d=NA(r,u,e.properties[u]);d&&a.push(d)}}const l=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Nr[l],childNodes:[],parentNode:null};return c.childNodes=Tf(e.children,c,r),ds(e,c),e.tagName==="template"&&e.content&&(c.content=wA(e.content,r)),c}function NA(e,t,n){const r=Oo(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?A3(n):M3(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const u=a.name.indexOf(":");u<0?a.prefix="":(a.name=a.name.slice(u+1),a.prefix=r.attribute.slice(0,u)),a.namespace=Nr[r.space]}return a}function Tf(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const u=Qg(e[r],n);u.parentNode=t,a.push(u)}return a}function ds(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 _A=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],IA=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]),kt="�";var D;(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"})(D||(D={}));const Sn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Xg(e){return e>=55296&&e<=57343}function RA(e){return e>=56320&&e<=57343}function LA(e,t){return(e-55296)*1024+9216+t}function Kg(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Jg(e){return e>=64976&&e<=65007||IA.has(e)}var ne;(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"})(ne||(ne={}));const DA=65536;class OA{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=DA,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:u}=this,l=a+n,c=u+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,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(RA(n))return this.pos++,this._addGap(),LA(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,D.EOF;return this._err(ne.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,D.EOF;const r=this.html.charCodeAt(n);return r===D.CARRIAGE_RETURN?D.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,D.EOF;let t=this.html.charCodeAt(this.pos);return t===D.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,D.LINE_FEED):t===D.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Xg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===D.LINE_FEED||t===D.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Kg(t)?this._err(ne.controlCharacterInInputStream):Jg(t)&&this._err(ne.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var nt;(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"})(nt||(nt={}));function Zg(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 MA=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),PA=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 BA(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=PA.get(e))!==null&&t!==void 0?t:e}var Xt;(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"})(Xt||(Xt={}));const FA=32;var _i;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(_i||(_i={}));function gh(e){return e>=Xt.ZERO&&e<=Xt.NINE}function zA(e){return e>=Xt.UPPER_A&&e<=Xt.UPPER_F||e>=Xt.LOWER_A&&e<=Xt.LOWER_F}function HA(e){return e>=Xt.UPPER_A&&e<=Xt.UPPER_Z||e>=Xt.LOWER_A&&e<=Xt.LOWER_Z||gh(e)}function UA(e){return e===Xt.EQUALS||HA(e)}var Qt;(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"})(Qt||(Qt={}));var Vr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Vr||(Vr={}));class jA{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Qt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vr.Strict}startEntity(t){this.decodeMode=t,this.state=Qt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Qt.EntityStart:return t.charCodeAt(n)===Xt.NUM?(this.state=Qt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Qt.NamedEntity,this.stateNamedEntity(t,n));case Qt.NumericStart:return this.stateNumericStart(t,n);case Qt.NumericDecimal:return this.stateNumericDecimal(t,n);case Qt.NumericHex:return this.stateNumericHex(t,n);case Qt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|FA)===Xt.LOWER_X?(this.state=Qt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Qt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const u=r-n;this.result=this.result*Math.pow(a,u)+Number.parseInt(t.substr(n,u),a),this.consumed+=u}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(gh(a)||zA(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(gh(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===Xt.SEMI)this.consumed+=1;else if(this.decodeMode===Vr.Strict)return 0;return this.emitCodePoint(BA(this.result),this.consumed),this.errors&&(t!==Xt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],u=(a&_i.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=qA(r,a,this.treeIndex+Math.max(1,u),l),this.treeIndex<0)return this.result===0||this.decodeMode===Vr.Attribute&&(u===0||UA(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],u=(a&_i.VALUE_LENGTH)>>14,u!==0){if(l===Xt.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Vr.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]&_i.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]&~_i.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Qt.NamedEntity:return this.result!==0&&(this.decodeMode!==Vr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qt.NumericDecimal:return this.emitNumericEntity(0,2);case Qt.NumericHex:return this.emitNumericEntity(0,3);case Qt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qt.EntityStart:return 0}}}function qA(e,t,n,r){const a=(t&_i.BRANCH_LENGTH)>>7,u=t&_i.JUMP_TABLE;if(a===0)return u!==0&&r===u?n:-1;if(u){const d=r-u;return d<0||d>=a?-1:e[n+d]-1}let l=n,c=l+a-1;for(;l<=c;){const d=l+c>>>1,h=e[d];if(h<r)l=d+1;else if(h>r)c=d-1;else return e[d+a]}return-1}var he;(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/"})(he||(he={}));var ha;(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"})(ha||(ha={}));var Kn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Kn||(Kn={}));var X;(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"})(X||(X={}));var g;(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"})(g||(g={}));const $A=new Map([[X.A,g.A],[X.ADDRESS,g.ADDRESS],[X.ANNOTATION_XML,g.ANNOTATION_XML],[X.APPLET,g.APPLET],[X.AREA,g.AREA],[X.ARTICLE,g.ARTICLE],[X.ASIDE,g.ASIDE],[X.B,g.B],[X.BASE,g.BASE],[X.BASEFONT,g.BASEFONT],[X.BGSOUND,g.BGSOUND],[X.BIG,g.BIG],[X.BLOCKQUOTE,g.BLOCKQUOTE],[X.BODY,g.BODY],[X.BR,g.BR],[X.BUTTON,g.BUTTON],[X.CAPTION,g.CAPTION],[X.CENTER,g.CENTER],[X.CODE,g.CODE],[X.COL,g.COL],[X.COLGROUP,g.COLGROUP],[X.DD,g.DD],[X.DESC,g.DESC],[X.DETAILS,g.DETAILS],[X.DIALOG,g.DIALOG],[X.DIR,g.DIR],[X.DIV,g.DIV],[X.DL,g.DL],[X.DT,g.DT],[X.EM,g.EM],[X.EMBED,g.EMBED],[X.FIELDSET,g.FIELDSET],[X.FIGCAPTION,g.FIGCAPTION],[X.FIGURE,g.FIGURE],[X.FONT,g.FONT],[X.FOOTER,g.FOOTER],[X.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[X.FORM,g.FORM],[X.FRAME,g.FRAME],[X.FRAMESET,g.FRAMESET],[X.H1,g.H1],[X.H2,g.H2],[X.H3,g.H3],[X.H4,g.H4],[X.H5,g.H5],[X.H6,g.H6],[X.HEAD,g.HEAD],[X.HEADER,g.HEADER],[X.HGROUP,g.HGROUP],[X.HR,g.HR],[X.HTML,g.HTML],[X.I,g.I],[X.IMG,g.IMG],[X.IMAGE,g.IMAGE],[X.INPUT,g.INPUT],[X.IFRAME,g.IFRAME],[X.KEYGEN,g.KEYGEN],[X.LABEL,g.LABEL],[X.LI,g.LI],[X.LINK,g.LINK],[X.LISTING,g.LISTING],[X.MAIN,g.MAIN],[X.MALIGNMARK,g.MALIGNMARK],[X.MARQUEE,g.MARQUEE],[X.MATH,g.MATH],[X.MENU,g.MENU],[X.META,g.META],[X.MGLYPH,g.MGLYPH],[X.MI,g.MI],[X.MO,g.MO],[X.MN,g.MN],[X.MS,g.MS],[X.MTEXT,g.MTEXT],[X.NAV,g.NAV],[X.NOBR,g.NOBR],[X.NOFRAMES,g.NOFRAMES],[X.NOEMBED,g.NOEMBED],[X.NOSCRIPT,g.NOSCRIPT],[X.OBJECT,g.OBJECT],[X.OL,g.OL],[X.OPTGROUP,g.OPTGROUP],[X.OPTION,g.OPTION],[X.P,g.P],[X.PARAM,g.PARAM],[X.PLAINTEXT,g.PLAINTEXT],[X.PRE,g.PRE],[X.RB,g.RB],[X.RP,g.RP],[X.RT,g.RT],[X.RTC,g.RTC],[X.RUBY,g.RUBY],[X.S,g.S],[X.SCRIPT,g.SCRIPT],[X.SEARCH,g.SEARCH],[X.SECTION,g.SECTION],[X.SELECT,g.SELECT],[X.SOURCE,g.SOURCE],[X.SMALL,g.SMALL],[X.SPAN,g.SPAN],[X.STRIKE,g.STRIKE],[X.STRONG,g.STRONG],[X.STYLE,g.STYLE],[X.SUB,g.SUB],[X.SUMMARY,g.SUMMARY],[X.SUP,g.SUP],[X.TABLE,g.TABLE],[X.TBODY,g.TBODY],[X.TEMPLATE,g.TEMPLATE],[X.TEXTAREA,g.TEXTAREA],[X.TFOOT,g.TFOOT],[X.TD,g.TD],[X.TH,g.TH],[X.THEAD,g.THEAD],[X.TITLE,g.TITLE],[X.TR,g.TR],[X.TRACK,g.TRACK],[X.TT,g.TT],[X.U,g.U],[X.UL,g.UL],[X.SVG,g.SVG],[X.VAR,g.VAR],[X.WBR,g.WBR],[X.XMP,g.XMP]]);function hs(e){var t;return(t=$A.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ve=g,WA={[he.HTML]:new Set([ve.ADDRESS,ve.APPLET,ve.AREA,ve.ARTICLE,ve.ASIDE,ve.BASE,ve.BASEFONT,ve.BGSOUND,ve.BLOCKQUOTE,ve.BODY,ve.BR,ve.BUTTON,ve.CAPTION,ve.CENTER,ve.COL,ve.COLGROUP,ve.DD,ve.DETAILS,ve.DIR,ve.DIV,ve.DL,ve.DT,ve.EMBED,ve.FIELDSET,ve.FIGCAPTION,ve.FIGURE,ve.FOOTER,ve.FORM,ve.FRAME,ve.FRAMESET,ve.H1,ve.H2,ve.H3,ve.H4,ve.H5,ve.H6,ve.HEAD,ve.HEADER,ve.HGROUP,ve.HR,ve.HTML,ve.IFRAME,ve.IMG,ve.INPUT,ve.LI,ve.LINK,ve.LISTING,ve.MAIN,ve.MARQUEE,ve.MENU,ve.META,ve.NAV,ve.NOEMBED,ve.NOFRAMES,ve.NOSCRIPT,ve.OBJECT,ve.OL,ve.P,ve.PARAM,ve.PLAINTEXT,ve.PRE,ve.SCRIPT,ve.SECTION,ve.SELECT,ve.SOURCE,ve.STYLE,ve.SUMMARY,ve.TABLE,ve.TBODY,ve.TD,ve.TEMPLATE,ve.TEXTAREA,ve.TFOOT,ve.TH,ve.THEAD,ve.TITLE,ve.TR,ve.TRACK,ve.UL,ve.WBR,ve.XMP]),[he.MATHML]:new Set([ve.MI,ve.MO,ve.MN,ve.MS,ve.MTEXT,ve.ANNOTATION_XML]),[he.SVG]:new Set([ve.TITLE,ve.FOREIGN_OBJECT,ve.DESC]),[he.XLINK]:new Set,[he.XML]:new Set,[he.XMLNS]:new Set},yh=new Set([ve.H1,ve.H2,ve.H3,ve.H4,ve.H5,ve.H6]);X.STYLE,X.SCRIPT,X.XMP,X.IFRAME,X.NOEMBED,X.NOFRAMES,X.PLAINTEXT;var P;(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"})(P||(P={}));const Mt={DATA:P.DATA,RCDATA:P.RCDATA,RAWTEXT:P.RAWTEXT,SCRIPT_DATA:P.SCRIPT_DATA,PLAINTEXT:P.PLAINTEXT,CDATA_SECTION:P.CDATA_SECTION};function YA(e){return e>=D.DIGIT_0&&e<=D.DIGIT_9}function uu(e){return e>=D.LATIN_CAPITAL_A&&e<=D.LATIN_CAPITAL_Z}function VA(e){return e>=D.LATIN_SMALL_A&&e<=D.LATIN_SMALL_Z}function Si(e){return VA(e)||uu(e)}function w4(e){return Si(e)||YA(e)}function ao(e){return e+32}function e5(e){return e===D.SPACE||e===D.LINE_FEED||e===D.TABULATION||e===D.FORM_FEED}function k4(e){return e5(e)||e===D.SOLIDUS||e===D.GREATER_THAN_SIGN}function GA(e){return e===D.NULL?ne.nullCharacterReference:e>1114111?ne.characterReferenceOutsideUnicodeRange:Xg(e)?ne.surrogateCharacterReference:Jg(e)?ne.noncharacterCharacterReference:Kg(e)||e===D.CARRIAGE_RETURN?ne.controlCharacterReference:null}class QA{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=P.DATA,this.returnState=P.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new OA(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new jA(MA,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ne.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ne.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=GA(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:nt.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:nt.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:nt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:nt.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(Zg(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(ne.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=hs(t.tagName),t.type===nt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ne.endTagWithAttributes),t.selfClosing&&this._err(ne.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 nt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case nt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case nt.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:nt.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=e5(t)?nt.WHITESPACE_CHARACTER:t===D.NULL?nt.NULL_CHARACTER:nt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(nt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=P.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Vr.Attribute:Vr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===P.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case P.DATA:{this._stateData(t);break}case P.RCDATA:{this._stateRcdata(t);break}case P.RAWTEXT:{this._stateRawtext(t);break}case P.SCRIPT_DATA:{this._stateScriptData(t);break}case P.PLAINTEXT:{this._statePlaintext(t);break}case P.TAG_OPEN:{this._stateTagOpen(t);break}case P.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case P.TAG_NAME:{this._stateTagName(t);break}case P.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case P.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case P.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case P.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case P.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case P.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case P.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case P.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case P.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case P.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case P.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case P.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case P.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case P.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case P.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case P.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case P.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case P.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case P.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case P.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case P.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case P.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case P.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case P.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case P.BOGUS_COMMENT:{this._stateBogusComment(t);break}case P.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case P.COMMENT_START:{this._stateCommentStart(t);break}case P.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case P.COMMENT:{this._stateComment(t);break}case P.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case P.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case P.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case P.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case P.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case P.COMMENT_END:{this._stateCommentEnd(t);break}case P.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case P.DOCTYPE:{this._stateDoctype(t);break}case P.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case P.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case P.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case P.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case P.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case P.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case P.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case P.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case P.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case P.CDATA_SECTION:{this._stateCdataSection(t);break}case P.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case P.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case P.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case P.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case D.LESS_THAN_SIGN:{this.state=P.TAG_OPEN;break}case D.AMPERSAND:{this._startCharacterReference();break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this._emitCodePoint(t);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case D.AMPERSAND:{this._startCharacterReference();break}case D.LESS_THAN_SIGN:{this.state=P.RCDATA_LESS_THAN_SIGN;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(kt);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case D.LESS_THAN_SIGN:{this.state=P.RAWTEXT_LESS_THAN_SIGN;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(kt);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case D.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_LESS_THAN_SIGN;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(kt);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case D.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(kt);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Si(t))this._createStartTagToken(),this.state=P.TAG_NAME,this._stateTagName(t);else switch(t){case D.EXCLAMATION_MARK:{this.state=P.MARKUP_DECLARATION_OPEN;break}case D.SOLIDUS:{this.state=P.END_TAG_OPEN;break}case D.QUESTION_MARK:{this._err(ne.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=P.BOGUS_COMMENT,this._stateBogusComment(t);break}case D.EOF:{this._err(ne.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ne.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=P.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Si(t))this._createEndTagToken(),this.state=P.TAG_NAME,this._stateTagName(t);else switch(t){case D.GREATER_THAN_SIGN:{this._err(ne.missingEndTagName),this.state=P.DATA;break}case D.EOF:{this._err(ne.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ne.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=P.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=P.BEFORE_ATTRIBUTE_NAME;break}case D.SOLIDUS:{this.state=P.SELF_CLOSING_START_TAG;break}case D.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentTagToken();break}case D.NULL:{this._err(ne.unexpectedNullCharacter),n.tagName+=kt;break}case D.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(uu(t)?ao(t):t)}}_stateRcdataLessThanSign(t){t===D.SOLIDUS?this.state=P.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=P.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Si(t)?(this.state=P.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=P.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 D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=P.BEFORE_ATTRIBUTE_NAME,!1;case D.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=P.SELF_CLOSING_START_TAG,!1;case D.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=P.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=P.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===D.SOLIDUS?this.state=P.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=P.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Si(t)?(this.state=P.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=P.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=P.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case D.SOLIDUS:{this.state=P.SCRIPT_DATA_END_TAG_OPEN;break}case D.EXCLAMATION_MARK:{this.state=P.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=P.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Si(t)?(this.state=P.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=P.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=P.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===D.HYPHEN_MINUS?(this.state=P.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=P.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===D.HYPHEN_MINUS?(this.state=P.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=P.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case D.HYPHEN_MINUS:{this.state=P.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(kt);break}case D.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case D.HYPHEN_MINUS:{this.state=P.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_ESCAPED,this._emitChars(kt);break}case D.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case D.HYPHEN_MINUS:{this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case D.GREATER_THAN_SIGN:{this.state=P.SCRIPT_DATA,this._emitChars(">");break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_ESCAPED,this._emitChars(kt);break}case D.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===D.SOLIDUS?this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Si(t)?(this._emitChars("<"),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Si(t)?(this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Sn.SCRIPT,!1)&&k4(this.preprocessor.peek(Sn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Sn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case D.HYPHEN_MINUS:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(kt);break}case D.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case D.HYPHEN_MINUS:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(kt);break}case D.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case D.HYPHEN_MINUS:{this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case D.GREATER_THAN_SIGN:{this.state=P.SCRIPT_DATA,this._emitChars(">");break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(kt);break}case D.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===D.SOLIDUS?(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Sn.SCRIPT,!1)&&k4(this.preprocessor.peek(Sn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Sn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=P.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.SOLIDUS:case D.GREATER_THAN_SIGN:case D.EOF:{this.state=P.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case D.EQUALS_SIGN:{this._err(ne.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=P.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=P.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:case D.SOLIDUS:case D.GREATER_THAN_SIGN:case D.EOF:{this._leaveAttrName(),this.state=P.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case D.EQUALS_SIGN:{this._leaveAttrName(),this.state=P.BEFORE_ATTRIBUTE_VALUE;break}case D.QUOTATION_MARK:case D.APOSTROPHE:case D.LESS_THAN_SIGN:{this._err(ne.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.name+=kt;break}default:this.currentAttr.name+=String.fromCodePoint(uu(t)?ao(t):t)}}_stateAfterAttributeName(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.SOLIDUS:{this.state=P.SELF_CLOSING_START_TAG;break}case D.EQUALS_SIGN:{this.state=P.BEFORE_ATTRIBUTE_VALUE;break}case D.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentTagToken();break}case D.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=P.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.QUOTATION_MARK:{this.state=P.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case D.APOSTROPHE:{this.state=P.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ne.missingAttributeValue),this.state=P.DATA,this.emitCurrentTagToken();break}default:this.state=P.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case D.QUOTATION_MARK:{this.state=P.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case D.AMPERSAND:{this._startCharacterReference();break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case D.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case D.APOSTROPHE:{this.state=P.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case D.AMPERSAND:{this._startCharacterReference();break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case D.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this._leaveAttrValue(),this.state=P.BEFORE_ATTRIBUTE_NAME;break}case D.AMPERSAND:{this._startCharacterReference();break}case D.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=P.DATA,this.emitCurrentTagToken();break}case D.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case D.QUOTATION_MARK:case D.APOSTROPHE:case D.LESS_THAN_SIGN:case D.EQUALS_SIGN:case D.GRAVE_ACCENT:{this._err(ne.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case D.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this._leaveAttrValue(),this.state=P.BEFORE_ATTRIBUTE_NAME;break}case D.SOLIDUS:{this._leaveAttrValue(),this.state=P.SELF_CLOSING_START_TAG;break}case D.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=P.DATA,this.emitCurrentTagToken();break}case D.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._err(ne.missingWhitespaceBetweenAttributes),this.state=P.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case D.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=P.DATA,this.emitCurrentTagToken();break}case D.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._err(ne.unexpectedSolidusInTag),this.state=P.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case D.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentComment(n);break}case D.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case D.NULL:{this._err(ne.unexpectedNullCharacter),n.data+=kt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Sn.DASH_DASH,!0)?(this._createCommentToken(Sn.DASH_DASH.length+1),this.state=P.COMMENT_START):this._consumeSequenceIfMatch(Sn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Sn.DOCTYPE.length+1),this.state=P.DOCTYPE):this._consumeSequenceIfMatch(Sn.CDATA_START,!0)?this.inForeignNode?this.state=P.CDATA_SECTION:(this._err(ne.cdataInHtmlContent),this._createCommentToken(Sn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=P.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ne.incorrectlyOpenedComment),this._createCommentToken(2),this.state=P.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case D.HYPHEN_MINUS:{this.state=P.COMMENT_START_DASH;break}case D.GREATER_THAN_SIGN:{this._err(ne.abruptClosingOfEmptyComment),this.state=P.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=P.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case D.HYPHEN_MINUS:{this.state=P.COMMENT_END;break}case D.GREATER_THAN_SIGN:{this._err(ne.abruptClosingOfEmptyComment),this.state=P.DATA,this.emitCurrentComment(n);break}case D.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=P.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case D.HYPHEN_MINUS:{this.state=P.COMMENT_END_DASH;break}case D.LESS_THAN_SIGN:{n.data+="<",this.state=P.COMMENT_LESS_THAN_SIGN;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),n.data+=kt;break}case D.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case D.EXCLAMATION_MARK:{n.data+="!",this.state=P.COMMENT_LESS_THAN_SIGN_BANG;break}case D.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=P.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===D.HYPHEN_MINUS?this.state=P.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=P.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===D.HYPHEN_MINUS?this.state=P.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=P.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==D.GREATER_THAN_SIGN&&t!==D.EOF&&this._err(ne.nestedComment),this.state=P.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case D.HYPHEN_MINUS:{this.state=P.COMMENT_END;break}case D.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=P.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case D.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentComment(n);break}case D.EXCLAMATION_MARK:{this.state=P.COMMENT_END_BANG;break}case D.HYPHEN_MINUS:{n.data+="-";break}case D.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=P.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case D.HYPHEN_MINUS:{n.data+="--!",this.state=P.COMMENT_END_DASH;break}case D.GREATER_THAN_SIGN:{this._err(ne.incorrectlyClosedComment),this.state=P.DATA,this.emitCurrentComment(n);break}case D.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=P.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=P.BEFORE_DOCTYPE_NAME;break}case D.GREATER_THAN_SIGN:{this.state=P.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case D.EOF:{this._err(ne.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingWhitespaceBeforeDoctypeName),this.state=P.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(uu(t))this._createDoctypeToken(String.fromCharCode(ao(t))),this.state=P.DOCTYPE_NAME;else switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.NULL:{this._err(ne.unexpectedNullCharacter),this._createDoctypeToken(kt),this.state=P.DOCTYPE_NAME;break}case D.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case D.EOF:{this._err(ne.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=P.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=P.AFTER_DOCTYPE_NAME;break}case D.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentDoctype(n);break}case D.NULL:{this._err(ne.unexpectedNullCharacter),n.name+=kt;break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(uu(t)?ao(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentDoctype(n);break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Sn.PUBLIC,!1)?this.state=P.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Sn.SYSTEM,!1)?this.state=P.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ne.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=P.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case D.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=P.DATA,this.emitCurrentDoctype(n);break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.QUOTATION_MARK:{n.publicId="",this.state=P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{n.publicId="",this.state=P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=P.DATA,this.emitCurrentDoctype(n);break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case D.QUOTATION_MARK:{this.state=P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),n.publicId+=kt;break}case D.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case D.EOF:{this._err(ne.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 D.APOSTROPHE:{this.state=P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),n.publicId+=kt;break}case D.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case D.EOF:{this._err(ne.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 D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=P.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case D.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentDoctype(n);break}case D.QUOTATION_MARK:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=P.DATA;break}case D.QUOTATION_MARK:{n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=P.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case D.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.DATA,this.emitCurrentDoctype(n);break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.QUOTATION_MARK:{n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.DATA,this.emitCurrentDoctype(n);break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case D.QUOTATION_MARK:{this.state=P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),n.systemId+=kt;break}case D.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case D.EOF:{this._err(ne.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 D.APOSTROPHE:{this.state=P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case D.NULL:{this._err(ne.unexpectedNullCharacter),n.systemId+=kt;break}case D.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case D.EOF:{this._err(ne.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 D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=P.DATA;break}case D.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case D.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=P.DATA;break}case D.NULL:{this._err(ne.unexpectedNullCharacter);break}case D.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case D.RIGHT_SQUARE_BRACKET:{this.state=P.CDATA_SECTION_BRACKET;break}case D.EOF:{this._err(ne.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===D.RIGHT_SQUARE_BRACKET?this.state=P.CDATA_SECTION_END:(this._emitChars("]"),this.state=P.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case D.GREATER_THAN_SIGN:{this.state=P.DATA;break}case D.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=P.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(D.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&w4(this.preprocessor.peek(1))?P.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){w4(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===D.SEMICOLON&&this._err(ne.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const t5=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),S4=new Set([...t5,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),Co=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),XA=new Set([...Co,g.OL,g.UL]),KA=new Set([...Co,g.BUTTON]),C4=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),A4=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),JA=new Set([g.TR,g.TEMPLATE,g.HTML]),ZA=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),eN=new Set([g.TABLE,g.TEMPLATE,g.HTML]),tN=new Set([g.TD,g.TH]);class nN{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=g.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===g.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===he.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])!==he.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(yh,he.HTML)}popUntilTableCellPopped(){this.popUntilPopped(tN,he.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(eN,he.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ZA,he.HTML)}clearBackToTableRowContext(){this.clearBackTo(JA,he.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]===g.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]===g.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 he.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case he.SVG:{if(A4.has(a))return!1;break}case he.MATHML:{if(C4.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Co)}hasInListItemScope(t){return this.hasInDynamicScope(t,XA)}hasInButtonScope(t){return this.hasInDynamicScope(t,KA)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case he.HTML:{if(yh.has(n))return!0;if(Co.has(n))return!1;break}case he.SVG:{if(A4.has(n))return!1;break}case he.MATHML:{if(C4.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===he.HTML)switch(this.tagIDs[n]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===he.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===he.HTML)switch(this.tagIDs[n]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&t5.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&S4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&S4.has(this.currentTagId);)this.pop()}}const Dd=3;var Cr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Cr||(Cr={}));const N4={type:Cr.Marker};class rN{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,u=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===Cr.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===u&&this.treeAdapter.getNamespaceURI(h)===l){const m=this.treeAdapter.getAttrList(h);m.length===a&&r.push({idx:c,attrs:m})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Dd)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Dd)return;const a=new Map(n.map(l=>[l.name,l.value]));let u=0;for(let l=0;l<r.length;l++){const c=r[l];c.attrs.every(d=>a.get(d.name)===d.value)&&(u+=1,u>=Dd&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(N4)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Cr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Cr.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(N4);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Cr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Cr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Cr.Element&&n.element===t)}}const Ci={createDocument(){return{nodeName:"#document",mode:Kn.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(u=>u.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const u={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ci.appendChild(e,u)}},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(Ci.isTextNode(n)){n.value+=t;return}}Ci.appendChild(e,Ci.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ci.isTextNode(r)?r.value+=t:Ci.insertBefore(e,Ci.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}}},n5="html",iN="about:legacy-compat",aN="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",r5=["+//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//"],sN=[...r5,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],uN=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),i5=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],lN=[...i5,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function _4(e,t){return t.some(n=>e.startsWith(n))}function oN(e){return e.name===n5&&e.publicId===null&&(e.systemId===null||e.systemId===iN)}function cN(e){if(e.name!==n5)return Kn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===aN)return Kn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),uN.has(n))return Kn.QUIRKS;let r=t===null?sN:r5;if(_4(n,r))return Kn.QUIRKS;if(r=t===null?i5:lN,_4(n,r))return Kn.LIMITED_QUIRKS}return Kn.NO_QUIRKS}const I4={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},dN="definitionurl",hN="definitionURL",fN=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])),mN=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:he.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:he.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:he.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:he.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:he.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:he.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:he.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:he.XML}],["xml:space",{prefix:"xml",name:"space",namespace:he.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:he.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:he.XMLNS}]]),pN=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])),gN=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function yN(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:r})=>r===ha.COLOR||r===ha.SIZE||r===ha.FACE)||gN.has(t)}function a5(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===dN){e.attrs[t].name=hN;break}}function s5(e){for(let t=0;t<e.attrs.length;t++){const n=fN.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function wf(e){for(let t=0;t<e.attrs.length;t++){const n=mN.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 vN(e){const t=pN.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=hs(e.tagName))}function bN(e,t){return t===he.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function EN(e,t,n){if(t===he.MATHML&&e===g.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ha.ENCODING){const a=n[r].value.toLowerCase();return a===I4.TEXT_HTML||a===I4.APPLICATION_XML}}return t===he.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function xN(e,t,n,r){return(!r||r===he.HTML)&&EN(e,t,n)||(!r||r===he.MATHML)&&bN(e,t)}const TN="hidden",wN=8,kN=3;var U;(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"})(U||(U={}));const SN={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},u5=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),R4={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ci,onParseError:null};class L4{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.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={...R4,...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 QA(this.options,this),this.activeFormattingElements=new rN(this.treeAdapter),this.fragmentContextID=r?hs(this.treeAdapter.getTagName(r)):g.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new nN(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={...R4,...n};t??(t=r.treeAdapter.createElement(X.TEMPLATE,he.HTML,[]));const a=r.treeAdapter.createElement("documentmock",he.HTML,[]),u=new this(r,a,t);return u.fragmentContextID===g.TEMPLATE&&u.tmplInsertionModeStack.unshift(U.IN_TEMPLATE),u._initTokenizerForFragmentParsing(),u._insertFakeRootElement(),u._resetInsertionMode(),u._findFormInFragmentContext(),u}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 u=(a=t.location)!==null&&a!==void 0?a:SN,l={code:n,startLine:u.startLine,startCol:u.startCol,startOffset:u.startOffset,endLine:r?u.startLine:u.endLine,endCol:r?u.startCol:u.endCol,endOffset:r?u.startOffset:u.endOffset};this.onParseError(l)}onItemPush(t,n,r){var a,u;(u=(a=this.treeAdapter).onItemPush)===null||u===void 0||u.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 u,l;this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,l=this.fragmentContextID):{current:u,currentTagId:l}=this.openElements,this._setContextModes(u,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===he.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,he.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=Mt.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)===X.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==he.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=Mt.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=Mt.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=Mt.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=Mt.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 l=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));l&&this.treeAdapter.setNodeSourceCodeLocation(l,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,he.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,he.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(X.HTML,he.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.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),u=r?a.lastIndexOf(r):a.length,l=a[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:d,endCol:h,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:d,endCol:h,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,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),u=n.type===nt.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,u)}}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===g.SVG&&this.treeAdapter.getTagName(n)===X.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===he.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,he.HTML)}_processToken(t){switch(t.type){case nt.CHARACTER:{this.onCharacter(t);break}case nt.NULL_CHARACTER:{this.onNullCharacter(t);break}case nt.COMMENT:{this.onComment(t);break}case nt.DOCTYPE:{this.onDoctype(t);break}case nt.START_TAG:{this._processStartTag(t);break}case nt.END_TAG:{this.onEndTag(t);break}case nt.EOF:{this.onEof(t);break}case nt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),u=this.treeAdapter.getAttrList(n);return xN(t,a,u,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Cr.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const u=this.activeFormattingElements.entries[a];this._insertElement(u.token,this.treeAdapter.getNamespaceURI(u.element)),u.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=U.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=U.IN_TABLE;return}case g.BODY:{this.insertionMode=U.IN_BODY;return}case g.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===g.TEMPLATE)break;if(r===g.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return u5.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 g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===he.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case g.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 WA[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tI(this,t);return}switch(this.insertionMode){case U.INITIAL:{nu(this,t);break}case U.BEFORE_HTML:{hu(this,t);break}case U.BEFORE_HEAD:{fu(this,t);break}case U.IN_HEAD:{mu(this,t);break}case U.IN_HEAD_NO_SCRIPT:{pu(this,t);break}case U.AFTER_HEAD:{gu(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{o5(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Od(this,t);break}case U.IN_TABLE_TEXT:{p5(this,t);break}case U.IN_COLUMN_GROUP:{Ao(this,t);break}case U.AFTER_BODY:{No(this,t);break}case U.AFTER_AFTER_BODY:{mo(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){eI(this,t);return}switch(this.insertionMode){case U.INITIAL:{nu(this,t);break}case U.BEFORE_HTML:{hu(this,t);break}case U.BEFORE_HEAD:{fu(this,t);break}case U.IN_HEAD:{mu(this,t);break}case U.IN_HEAD_NO_SCRIPT:{pu(this,t);break}case U.AFTER_HEAD:{gu(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Od(this,t);break}case U.IN_COLUMN_GROUP:{Ao(this,t);break}case U.AFTER_BODY:{No(this,t);break}case U.AFTER_AFTER_BODY:{mo(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){vh(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{vh(this,t);break}case U.IN_TABLE_TEXT:{ru(this,t);break}case U.AFTER_BODY:{LN(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{DN(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{ON(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,ne.misplacedDoctype);break}case U.IN_TABLE_TEXT:{ru(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ne.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?nI(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{nu(this,t);break}case U.BEFORE_HTML:{MN(this,t);break}case U.BEFORE_HEAD:{BN(this,t);break}case U.IN_HEAD:{gr(this,t);break}case U.IN_HEAD_NO_SCRIPT:{HN(this,t);break}case U.AFTER_HEAD:{jN(this,t);break}case U.IN_BODY:{dn(this,t);break}case U.IN_TABLE:{ns(this,t);break}case U.IN_TABLE_TEXT:{ru(this,t);break}case U.IN_CAPTION:{F_(this,t);break}case U.IN_COLUMN_GROUP:{Cf(this,t);break}case U.IN_TABLE_BODY:{n0(this,t);break}case U.IN_ROW:{r0(this,t);break}case U.IN_CELL:{U_(this,t);break}case U.IN_SELECT:{v5(this,t);break}case U.IN_SELECT_IN_TABLE:{q_(this,t);break}case U.IN_TEMPLATE:{W_(this,t);break}case U.AFTER_BODY:{V_(this,t);break}case U.IN_FRAMESET:{G_(this,t);break}case U.AFTER_FRAMESET:{X_(this,t);break}case U.AFTER_AFTER_BODY:{J_(this,t);break}case U.AFTER_AFTER_FRAMESET:{Z_(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?rI(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{nu(this,t);break}case U.BEFORE_HTML:{PN(this,t);break}case U.BEFORE_HEAD:{FN(this,t);break}case U.IN_HEAD:{zN(this,t);break}case U.IN_HEAD_NO_SCRIPT:{UN(this,t);break}case U.AFTER_HEAD:{qN(this,t);break}case U.IN_BODY:{t0(this,t);break}case U.TEXT:{N_(this,t);break}case U.IN_TABLE:{ku(this,t);break}case U.IN_TABLE_TEXT:{ru(this,t);break}case U.IN_CAPTION:{z_(this,t);break}case U.IN_COLUMN_GROUP:{H_(this,t);break}case U.IN_TABLE_BODY:{bh(this,t);break}case U.IN_ROW:{y5(this,t);break}case U.IN_CELL:{j_(this,t);break}case U.IN_SELECT:{b5(this,t);break}case U.IN_SELECT_IN_TABLE:{$_(this,t);break}case U.IN_TEMPLATE:{Y_(this,t);break}case U.AFTER_BODY:{x5(this,t);break}case U.IN_FRAMESET:{Q_(this,t);break}case U.AFTER_FRAMESET:{K_(this,t);break}case U.AFTER_AFTER_BODY:{mo(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{nu(this,t);break}case U.BEFORE_HTML:{hu(this,t);break}case U.BEFORE_HEAD:{fu(this,t);break}case U.IN_HEAD:{mu(this,t);break}case U.IN_HEAD_NO_SCRIPT:{pu(this,t);break}case U.AFTER_HEAD:{gu(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{f5(this,t);break}case U.TEXT:{__(this,t);break}case U.IN_TABLE_TEXT:{ru(this,t);break}case U.IN_TEMPLATE:{E5(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Sf(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===D.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 U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{l5(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Od(this,t);break}case U.IN_TABLE_TEXT:{m5(this,t);break}}}}function CN(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):h5(e,t),n}function AN(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 NN(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let u=0,l=a;l!==n;u++,l=a){a=e.openElements.getCommonAncestor(l);const c=e.activeFormattingElements.getElementEntry(l),d=c&&u>=kN;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=_N(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function _N(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 IN(e,t,n){const r=e.treeAdapter.getTagName(t),a=hs(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const u=e.treeAdapter.getNamespaceURI(t);a===g.TEMPLATE&&u===he.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function RN(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,u=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,u),e.treeAdapter.appendChild(t,u),e.activeFormattingElements.insertElementAfterBookmark(u,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,u,a.tagID)}function kf(e,t){for(let n=0;n<wN;n++){const r=CN(e,t);if(!r)break;const a=AN(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const u=NN(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(u),l&&IN(e,l,u),RN(e,a,r)}}function vh(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function LN(e,t){e._appendCommentNode(t,e.openElements.items[0])}function DN(e,t){e._appendCommentNode(t,e.document)}function Sf(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 u=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(u);l&&!l.endTag&&e._setEndLocation(u,t)}}}}function ON(e,t){e._setDocumentType(t);const n=t.forceQuirks?Kn.QUIRKS:cN(t);oN(t)||e._err(t,ne.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=U.BEFORE_HTML}function nu(e,t){e._err(t,ne.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Kn.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function MN(e,t){t.tagID===g.HTML?(e._insertElement(t,he.HTML),e.insertionMode=U.BEFORE_HEAD):hu(e,t)}function PN(e,t){const n=t.tagID;(n===g.HTML||n===g.HEAD||n===g.BODY||n===g.BR)&&hu(e,t)}function hu(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function BN(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.HEAD:{e._insertElement(t,he.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:fu(e,t)}}function FN(e,t){const n=t.tagID;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?fu(e,t):e._err(t,ne.endTagWithoutMatchingOpenElement)}function fu(e,t){e._insertFakeElement(X.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function gr(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,he.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,Mt.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Mt.RAWTEXT):(e._insertElement(t,he.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,Mt.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,Mt.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case g.HEAD:{e._err(t,ne.misplacedStartTagForHeadElement);break}default:mu(e,t)}}function zN(e,t){switch(t.tagID){case g.HEAD:{e.openElements.pop(),e.insertionMode=U.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{mu(e,t);break}case g.TEMPLATE:{Ea(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function Ea(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,ne.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ne.endTagWithoutMatchingOpenElement)}function mu(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function HN(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{gr(e,t);break}case g.NOSCRIPT:{e._err(t,ne.nestedNoscriptInHead);break}default:pu(e,t)}}function UN(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case g.BR:{pu(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function pu(e,t){const n=t.type===nt.EOF?ne.openElementsLeftAfterEof:ne.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function jN(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.BODY:{e._insertElement(t,he.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,he.HTML),e.insertionMode=U.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,ne.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),gr(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,ne.misplacedStartTagForHeadElement);break}default:gu(e,t)}}function qN(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{gu(e,t);break}case g.TEMPLATE:{Ea(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function gu(e,t){e._insertFakeElement(X.BODY,g.BODY),e.insertionMode=U.IN_BODY,e0(e,t)}function e0(e,t){switch(t.type){case nt.CHARACTER:{o5(e,t);break}case nt.WHITESPACE_CHARACTER:{l5(e,t);break}case nt.COMMENT:{vh(e,t);break}case nt.START_TAG:{dn(e,t);break}case nt.END_TAG:{t0(e,t);break}case nt.EOF:{f5(e,t);break}}}function l5(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function o5(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function $N(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function WN(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function YN(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_FRAMESET)}function VN(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML)}function GN(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&yh.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,he.HTML)}function QN(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function XN(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),n||(e.formElement=e.openElements.current))}function KN(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===g.LI&&a===g.LI||(n===g.DD||n===g.DT)&&(a===g.DD||a===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==g.ADDRESS&&a!==g.DIV&&a!==g.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML)}function JN(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),e.tokenizer.state=Mt.PLAINTEXT}function ZN(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.framesetOk=!1}function e_(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(X.A);n&&(kf(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function t_(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function n_(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(kf(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,he.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function r_(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function i_(e,t){e.treeAdapter.getDocumentMode(e.document)!==Kn.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function c5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,he.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function d5(e){const t=Zg(e,ha.TYPE);return t!=null&&t.toLowerCase()===TN}function a_(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,he.HTML),d5(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function s_(e,t){e._appendElement(t,he.HTML),t.ackSelfClosing=!0}function u_(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,he.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function l_(e,t){t.tagName=X.IMG,t.tagID=g.IMG,c5(e,t)}function o_(e,t){e._insertElement(t,he.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Mt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function c_(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Mt.RAWTEXT)}function d_(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Mt.RAWTEXT)}function D4(e,t){e._switchToTextParsing(t,Mt.RAWTEXT)}function h_(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function f_(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML)}function m_(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,he.HTML)}function p_(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,he.HTML)}function g_(e,t){e._reconstructActiveFormattingElements(),a5(t),wf(t),t.selfClosing?e._appendElement(t,he.MATHML):e._insertElement(t,he.MATHML),t.ackSelfClosing=!0}function y_(e,t){e._reconstructActiveFormattingElements(),s5(t),wf(t),t.selfClosing?e._appendElement(t,he.SVG):e._insertElement(t,he.SVG),t.ackSelfClosing=!0}function O4(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML)}function dn(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{t_(e,t);break}case g.A:{e_(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{GN(e,t);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{VN(e,t);break}case g.LI:case g.DD:case g.DT:{KN(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{c5(e,t);break}case g.HR:{u_(e,t);break}case g.RB:case g.RTC:{m_(e,t);break}case g.RT:case g.RP:{p_(e,t);break}case g.PRE:case g.LISTING:{QN(e,t);break}case g.XMP:{c_(e,t);break}case g.SVG:{y_(e,t);break}case g.HTML:{$N(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{gr(e,t);break}case g.BODY:{WN(e,t);break}case g.FORM:{XN(e,t);break}case g.NOBR:{n_(e,t);break}case g.MATH:{g_(e,t);break}case g.TABLE:{i_(e,t);break}case g.INPUT:{a_(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{s_(e,t);break}case g.IMAGE:{l_(e,t);break}case g.BUTTON:{ZN(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{r_(e,t);break}case g.IFRAME:{d_(e,t);break}case g.SELECT:{h_(e,t);break}case g.OPTION:case g.OPTGROUP:{f_(e,t);break}case g.NOEMBED:case g.NOFRAMES:{D4(e,t);break}case g.FRAMESET:{YN(e,t);break}case g.TEXTAREA:{o_(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?D4(e,t):O4(e,t);break}case g.PLAINTEXT:{JN(e,t);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:O4(e,t)}}function v_(e,t){if(e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function b_(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,x5(e,t))}function E_(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function x_(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):n&&e.openElements.remove(n))}function T_(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(X.P,g.P),e._closePElement()}function w_(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function k_(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function S_(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function C_(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function A_(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(X.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function h5(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const u=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==g.UNKNOWN||e.treeAdapter.getTagName(u)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(u,l))break}}function t0(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{kf(e,t);break}case g.P:{T_(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{E_(e,t);break}case g.LI:{w_(e);break}case g.DD:case g.DT:{k_(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{S_(e);break}case g.BR:{A_(e);break}case g.BODY:{v_(e,t);break}case g.HTML:{b_(e,t);break}case g.FORM:{x_(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{C_(e,t);break}case g.TEMPLATE:{Ea(e,t);break}default:h5(e,t)}}function f5(e,t){e.tmplInsertionModeStack.length>0?E5(e,t):Sf(e,t)}function N_(e,t){var n;t.tagID===g.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function __(e,t){e._err(t,ne.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Od(e,t){if(e.openElements.currentTagId!==void 0&&u5.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case nt.CHARACTER:{p5(e,t);break}case nt.WHITESPACE_CHARACTER:{m5(e,t);break}}else Mu(e,t)}function I_(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_CAPTION}function R_(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function L_(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(X.COLGROUP,g.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Cf(e,t)}function D_(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_TABLE_BODY}function O_(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(X.TBODY,g.TBODY),e.insertionMode=U.IN_TABLE_BODY,n0(e,t)}function M_(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function P_(e,t){d5(t)?e._appendElement(t,he.HTML):Mu(e,t),t.ackSelfClosing=!0}function B_(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,he.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ns(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{O_(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{gr(e,t);break}case g.COL:{L_(e,t);break}case g.FORM:{B_(e,t);break}case g.TABLE:{M_(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{D_(e,t);break}case g.INPUT:{P_(e,t);break}case g.CAPTION:{I_(e,t);break}case g.COLGROUP:{R_(e,t);break}default:Mu(e,t)}}function ku(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{Ea(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Mu(e,t)}}function Mu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e0(e,t),e.fosterParentingEnabled=n}function m5(e,t){e.pendingCharacterTokens.push(t)}function p5(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ru(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Mu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const g5=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function F_(e,t){const n=t.tagID;g5.has(n)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,ns(e,t)):dn(e,t)}function z_(e,t){const n=t.tagID;switch(n){case g.CAPTION:case g.TABLE:{e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,n===g.TABLE&&ku(e,t));break}case g.BODY:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:t0(e,t)}}function Cf(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.COL:{e._appendElement(t,he.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{gr(e,t);break}default:Ao(e,t)}}function H_(e,t){switch(t.tagID){case g.COLGROUP:{e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TEMPLATE:{Ea(e,t);break}case g.COL:break;default:Ao(e,t)}}function Ao(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function n0(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(X.TR,g.TR),e.insertionMode=U.IN_ROW,r0(e,t);break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,ns(e,t));break}default:ns(e,t)}}function bh(e,t){const n=t.tagID;switch(t.tagID){case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,ku(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:case g.TR:break;default:ku(e,t)}}function r0(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,n0(e,t));break}default:ns(e,t)}}function y5(e,t){switch(t.tagID){case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case g.TABLE:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,bh(e,t));break}case g.TBODY:case g.TFOOT:case g.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,bh(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:break;default:ku(e,t)}}function U_(e,t){const n=t.tagID;g5.has(n)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),r0(e,t)):dn(e,t)}function j_(e,t){const n=t.tagID;switch(n){case g.TD:case g.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case g.TABLE:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),y5(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:t0(e,t)}}function v5(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._insertElement(t,he.HTML);break}case g.OPTGROUP:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,he.HTML);break}case g.HR:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._appendElement(t,he.HTML),t.ackSelfClosing=!0;break}case g.INPUT:case g.KEYGEN:case g.TEXTAREA:case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),t.tagID!==g.SELECT&&e._processStartTag(t));break}case g.SCRIPT:case g.TEMPLATE:{gr(e,t);break}}}function b5(e,t){switch(t.tagID){case g.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{Ea(e,t);break}}}function q_(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):v5(e,t)}function $_(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):b5(e,t)}function W_(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{gr(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,ns(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,Cf(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,n0(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,r0(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,dn(e,t)}}function Y_(e,t){t.tagID===g.TEMPLATE&&Ea(e,t)}function E5(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Sf(e,t)}function V_(e,t){t.tagID===g.HTML?dn(e,t):No(e,t)}function x5(e,t){var n;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.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 No(e,t)}function No(e,t){e.insertionMode=U.IN_BODY,e0(e,t)}function G_(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.FRAMESET:{e._insertElement(t,he.HTML);break}case g.FRAME:{e._appendElement(t,he.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{gr(e,t);break}}}function Q_(e,t){t.tagID===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==g.FRAMESET&&(e.insertionMode=U.AFTER_FRAMESET))}function X_(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.NOFRAMES:{gr(e,t);break}}}function K_(e,t){t.tagID===g.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function J_(e,t){t.tagID===g.HTML?dn(e,t):mo(e,t)}function mo(e,t){e.insertionMode=U.IN_BODY,e0(e,t)}function Z_(e,t){switch(t.tagID){case g.HTML:{dn(e,t);break}case g.NOFRAMES:{gr(e,t);break}}}function eI(e,t){t.chars=kt,e._insertCharacters(t)}function tI(e,t){e._insertCharacters(t),e.framesetOk=!1}function T5(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==he.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function nI(e,t){if(yN(t))T5(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===he.MATHML?a5(t):r===he.SVG&&(vN(t),s5(t)),wf(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function rI(e,t){if(t.tagID===g.P||t.tagID===g.BR){T5(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)===he.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}X.AREA,X.BASE,X.BASEFONT,X.BGSOUND,X.BR,X.COL,X.EMBED,X.FRAME,X.HR,X.IMG,X.INPUT,X.KEYGEN,X.LINK,X.META,X.PARAM,X.SOURCE,X.TRACK,X.WBR;const iI=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,aI=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),M4={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function w5(e,t){const n=pI(e),r=m6("type",{handlers:{root:sI,element:uI,text:lI,comment:S5,doctype:oI,raw:dI},unknown:hI}),a={parser:n?new L4(M4):L4.getFragmentParser(void 0,M4),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),fs(a,Ir());const u=n?a.parser.document:a.parser.getFragment(),l=gA(u,{file:a.options.file});return a.stitches&&Ho(l,"comment",function(c,d,h){const m=c;if(m.value.stitch&&h&&d!==void 0){const p=h.children;return p[d]=m.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function k5(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function sI(e,t){k5(e.children,t)}function uI(e,t){fI(e,t),k5(e.children,t),mI(e,t)}function lI(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:nt.CHARACTER,chars:e.value,location:Pu(e)};fs(t,Ir(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function oI(e,t){const n={type:nt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Pu(e)};fs(t,Ir(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function cI(e,t){t.stitches=!0;const n=gI(e);if("children"in e&&"children"in n){const r=w5({type:"root",children:e.children},t.options);n.children=r.children}S5({type:"comment",value:{stitch:n}},t)}function S5(e,t){const n=e.value,r={type:nt.COMMENT,data:n,location:Pu(e)};fs(t,Ir(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function dI(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,C5(t,Ir(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(iI,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function hI(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))cI(n,t);else{let r="";throw aI.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 fs(e,t){C5(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=Mt.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 C5(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 fI(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Mt.PLAINTEXT)return;fs(t,Ir(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Nr.html;a===Nr.html&&n==="svg"&&(a=Nr.svg);const u=xA({...e,children:[]},{space:a===Nr.svg?"svg":"html"}),l={type:nt.START_TAG,tagName:n,tagID:hs(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in u?u.attrs:[],location:Pu(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function mI(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&_A.includes(n)||t.parser.tokenizer.state===Mt.PLAINTEXT)return;fs(t,Mo(e));const r={type:nt.END_TAG,tagName:n,tagID:hs(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Pu(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Mt.RCDATA||t.parser.tokenizer.state===Mt.RAWTEXT||t.parser.tokenizer.state===Mt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Mt.DATA)}function pI(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Pu(e){const t=Ir(e)||{line:void 0,column:void 0,offset:void 0},n=Mo(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 gI(e){return"children"in e?pa({...e,children:[]}):pa(e)}function yI(e){return function(t,n){return w5(t,{...e,file:n})}}const sa=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Eh={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...sa,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...sa],h2:[["className","sr-only"]],img:[...sa,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...sa,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...sa],table:[...sa],ul:[...sa,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Ai={}.hasOwnProperty;function vI(e,t){let n={type:"root",children:[]};const r={schema:t?{...Eh,...t}:Eh,stack:[]},a=A5(r,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function A5(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return bI(e,n);case"doctype":return EI(e,n);case"element":return xI(e,n);case"root":return TI(e,n);case"text":return wI(e,n)}}}function bI(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),u={type:"comment",value:r<0?n:n.slice(0,r)};return Bu(u,t),u}}function EI(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Bu(n,t),n}}function xI(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=N5(e,t.children),a=kI(e,t.properties);e.stack.pop();let u=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(u=!0,e.schema.ancestors&&Ai.call(e.schema.ancestors,n))){const c=e.schema.ancestors[n];let d=-1;for(u=!1;++d<c.length;)e.stack.includes(c[d])&&(u=!0)}if(!u)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const l={type:"element",tagName:n,properties:a,children:r};return Bu(l,t),l}function TI(e,t){const r={type:"root",children:N5(e,t.children)};return Bu(r,t),r}function wI(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return Bu(r,t),r}function N5(e,t){const n=[];if(Array.isArray(t)){const r=t;let a=-1;for(;++a<r.length;){const u=A5(e,r[a]);u&&(Array.isArray(u)?n.push(...u):n.push(u))}}return n}function kI(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,a=e.schema.required,u=r&&Ai.call(r,n)?r[n]:void 0,l=r&&Ai.call(r,"*")?r["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let h;for(h in c)if(Ai.call(c,h)){const m=c[h];let p=P4(e,B4(u,h),h,m);p==null&&(p=P4(e,B4(l,h),h,m)),p!=null&&(d[h]=p)}if(a&&Ai.call(a,n)){const m=a[n];for(h in m)Ai.call(m,h)&&!Ai.call(d,h)&&(d[h]=m[h])}return d}function P4(e,t,n,r){return t?Array.isArray(r)?SI(e,t,n,r):_5(e,t,n,r):void 0}function SI(e,t,n,r){let a=-1;const u=[];for(;++a<r.length;){const l=_5(e,t,n,r[a]);(typeof l=="number"||typeof l=="string")&&u.push(l)}return u}function _5(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&CI(e,n,r)){if(typeof t=="object"&&t.length>1){let a=!1,u=0;for(;++u<t.length;){const l=t[u];if(l&&typeof l=="object"&&"flags"in l){if(l.test(String(r))){a=!0;break}}else if(l===r){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function CI(e,t,n){const r=e.schema.protocols&&Ai.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const a=String(n),u=a.indexOf(":"),l=a.indexOf("?"),c=a.indexOf("#"),d=a.indexOf("/");if(u<0||d>-1&&u>d||l>-1&&u>l||c>-1&&u>c)return!0;let h=-1;for(;++h<r.length;){const m=r[h];if(u===m.length&&a.slice(0,m.length)===m)return!0}return!1}function Bu(e,t){const n=B3(t);t.data&&(e.data=pa(t.data)),n&&(e.position=n)}function B4(e,t){let n,r=-1;if(e)for(;++r<e.length;){const a=e[r],u=typeof a=="string"?a:a[0];if(u===t)return a;u==="data*"&&(n=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function AI(e){return function(t){return vI(t,e)}}const xh=Eh,ua=(e,...t)=>{var n;return[...((n=xh.attributes)==null?void 0:n[e])??[],...t]},NI={...xh,attributes:{...xh.attributes,p:ua("p","align"),div:ua("div","align"),h1:ua("h1","align"),h2:ua("h2","align"),h3:ua("h3","align"),img:ua("img","width","height","align"),a:ua("a","align")}},_I=new Set(["code","pre","svg","math","style","script","textarea"]),II="fade-word";function RI(e){const t=[];for(const n of e.split(/(\s+)/))if(n){if(/^\s+$/.test(n)){t.push({type:"text",value:n});continue}t.push({type:"element",tagName:"span",properties:{className:[II]},children:[{type:"text",value:n}]})}return t}function I5(e){const t=e.children;if(!t)return;const n=[];for(const r of t){if(r.type==="text"){n.push(...RI(r.value??""));continue}if(r.type==="element"&&_I.has(r.tagName??"")){n.push(r);continue}I5(r),n.push(r)}e.children=n}function LI(){return e=>I5(e)}const DI=256*1024;let la=null,OI=0;const _o=new Map;function F4(e,t){var n;(n=_o.get(e))==null||n(t),_o.delete(e)}function MI(){if(la)return la;try{la=new Worker(new URL("/assets/highlightWorker-DJp1Ce5p.js",import.meta.url),{type:"module"}),la.addEventListener("message",e=>F4(e.data.id,e.data.html)),la.addEventListener("error",()=>{for(const e of[..._o.keys()])F4(e,null);la=null})}catch{return null}return la}async function Af(e,t){if(e.length>DI)return null;const n=MI();if(!n)return null;const r=++OI;return new Promise(a=>{_o.set(r,a),n.postMessage({id:r,code:e,lang:t})})}function PI({code:e,lang:t}){const[n,r]=O.useState(null);O.useEffect(()=>{let u=!1;return Af(e,t).then(l=>{u||r(l)}).catch(()=>{u||r(null)}),()=>{u=!0}},[e,t]);const a=()=>{var u;return void((u=navigator.clipboard)==null?void 0:u.writeText(e))};return T.jsxs("div",{className:"codeblock",children:[T.jsxs("div",{className:"codeblock-bar",children:[T.jsx("span",{className:"codeblock-lang",children:t||"text"}),T.jsx("button",{className:"codeblock-copy",onClick:a,"aria-label":"Copy code",children:"copy"})]}),n?T.jsx("div",{className:"codeblock-body",dangerouslySetInnerHTML:{__html:n}}):T.jsx("pre",{className:"codeblock-body codeblock-plain",children:T.jsx("code",{children:e})})]})}const BI="modulepreload",FI=function(e){return"/"+e},z4={},zI=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));a=l(n.map(h=>{if(h=FI(h),h in z4)return;z4[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const E=document.createElement("link");if(E.rel=m?"stylesheet":BI,m||(E.as="script"),E.crossOrigin="",E.href=h,d&&E.setAttribute("nonce",d),document.head.appendChild(E),m)return new Promise((x,C)=>{E.addEventListener("load",x),E.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${h}`)))})}))}function u(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return a.then(l=>{for(const c of l||[])c.status==="rejected"&&u(c.reason);return t().catch(u)})};let Md=null;function HI(){return Md||(Md=zI(()=>import("./mermaid.core-IGwSlXQt.js").then(e=>e.bp),[]).then(e=>(e.default.initialize({startOnLoad:!1,theme:"dark",securityLevel:"strict",themeVariables:{primaryColor:"#44475a",primaryTextColor:"#f8f8f2",primaryBorderColor:"#bd93f9",lineColor:"#8be9fd",fontFamily:"Inter, sans-serif"}}),e.default))),Md}let UI=0;function jI({code:e}){const t=O.useRef(null),[n,r]=O.useState(!1);return O.useEffect(()=>{let a=!1;r(!1);const u=e.trim();if(u)return HI().then(async l=>{const c=await l.parse(u,{suppressErrors:!0});if(a||!c)return;const{svg:d}=await l.render(`mermaid-${UI++}`,u);a||!t.current||(t.current.innerHTML=d,r(!0))}).catch(()=>{}),()=>{a=!0}},[e]),T.jsxs("div",{className:"mermaid-wrap",children:[T.jsx("div",{className:`mermaid-block ${n?"":"is-hidden"}`,ref:t}),!n&&T.jsxs("div",{className:"codeblock",children:[T.jsx("div",{className:"codeblock-bar",children:T.jsx("span",{className:"codeblock-lang",children:"mermaid"})}),T.jsx("pre",{className:"codeblock-body codeblock-plain",children:T.jsx("code",{children:e})})]})]})}const qI={code(e){const{className:t,children:n}=e,r=/language-(\w+)/.exec(t??""),a=String(n).replace(/\n$/,"");if(!t&&!a.includes(`
348
+ `))return T.jsx("code",{className:"md-inline-code",children:a});const l=(r==null?void 0:r[1])??"";return l==="mermaid"?T.jsx(jI,{code:a}):T.jsx(PI,{code:a,lang:l})},a(e){return T.jsx("a",{...e,target:"_blank",rel:"noreferrer noopener"})}},$I=[Ef],WI=[Ef,LI],YI=[yI,[AI,NI],Ef],Su=O.memo(function({text:t,html:n=!1,streaming:r=!1}){const a=O.useMemo(()=>FC(t),[t]);return T.jsx("div",{className:"md",children:T.jsx(yT,{remarkPlugins:LC,rehypePlugins:n?YI:r?WI:$I,components:qI,children:a})})}),VI=4e5;function H4(e,t){const n=e.split(`
349
+ `),r=t.split(`
350
+ `),a=n.length,u=r.length;if(a*u>VI)return[...n.map(m=>({type:"del",text:m})),...r.map(m=>({type:"add",text:m}))];const l=Array.from({length:a+1},()=>new Array(u+1).fill(0));for(let m=a-1;m>=0;m--)for(let p=u-1;p>=0;p--)l[m][p]=n[m]===r[p]?l[m+1][p+1]+1:Math.max(l[m+1][p],l[m][p+1]);const c=[];let d=0,h=0;for(;d<a&&h<u;)n[d]===r[h]?(c.push({type:"ctx",text:n[d]}),d++,h++):l[d+1][h]>=l[d][h+1]?(c.push({type:"del",text:n[d]}),d++):(c.push({type:"add",text:r[h]}),h++);for(;d<a;)c.push({type:"del",text:n[d++]});for(;h<u;)c.push({type:"add",text:r[h++]});return c}const R5={loading:"lazy",decoding:"async",ref:e=>{e!=null&&e.complete&&(e.dataset.loaded="")},onLoad:e=>{e.currentTarget.dataset.loaded=""}},fr=e=>!!e&&typeof e=="object";function Nf(e){switch(e.name){case"shell":return"shell";case"write":case"strReplace":return"write";case"read":return"read";case"grep":return"grep";case"todo_list":return"todo";case"web_fetch":return"webfetch";case"web_search":return"websearch";case"introspect":return"introspect"}if(e.name)return"generic";const t=fr(e.input)?e.input:{},n=e.kind,r=typeof t.command=="string"?t.command:void 0,a=u=>Object.prototype.hasOwnProperty.call(t,u);return e.title==="todo_list"||a("tasks")||a("task_list_description")||a("completed_task_ids")||a("remove_task_ids")||r!==void 0&&["complete","add","remove","list"].includes(r)?"todo":n==="read"||Array.isArray(t.operations)||e.title==="read"?"read":e.title==="grep"||typeof t.pattern=="string"&&!a("operations")?"grep":n==="edit"||e.title==="write"||e.title==="strReplace"||(r==="create"||r==="strReplace"||r==="insert")&&typeof t.path=="string"||typeof t.oldStr=="string"&&typeof t.newStr=="string"?"write":n==="execute"||e.title==="shell"||typeof t.command=="string"?"shell":typeof t.url=="string"?"webfetch":typeof t.query=="string"&&(n==="search"||e.title==="web_search")?"websearch":e.title==="introspect"||typeof t.doc_path=="string"?"introspect":"generic"}const GI={shell:"shell",write:"write",read:"read",grep:"grep",todo:"todo_list",webfetch:"web_fetch",websearch:"web_search",introspect:"introspect",generic:void 0},QI=/^@?([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/,XI=/@([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)/;function KI(e){const t=QI.exec(e.name??"");if(t)return`@${t[1]}/${t[2]}`;const n=XI.exec(e.title??"");return!n||e.name&&e.name!==n[2]?null:`@${n[1]}/${n[2]}`}function JI(e){const t=KI(e);if(t)return t;if(e.name)return e.name;const n=GI[Nf(e)];if(n)return n;const r=e.title??"";return r&&!/\s/.test(r)?r:"tool"}function L5(e){const t=e.trim().split("/").pop()??"",n=t.includes(".")?t.split(".").pop().toLowerCase():t.toLowerCase();return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",jsonc:"json",css:"css",scss:"scss",less:"less",html:"html",htm:"html",xml:"xml",svg:"xml",vue:"vue",svelte:"svelte",md:"markdown",markdown:"markdown",py:"python",rb:"ruby",rs:"rust",go:"go",java:"java",kt:"kotlin",c:"c",h:"c",cpp:"cpp",cc:"cpp",hpp:"cpp",cs:"csharp",sh:"bash",bash:"bash",zsh:"bash",yml:"yaml",yaml:"yaml",toml:"toml",sql:"sql",php:"php",swift:"swift",lua:"lua",dockerfile:"docker",ini:"ini",conf:"ini",env:"ini",proto:"proto",graphql:"graphql"}[n]??"text"}function xa(e){const t=[];for(const n of e)fr(n)&&(n.type==="content"&&fr(n.content)&&typeof n.content.text=="string"?t.push(n.content.text):n.type==="text"&&typeof n.text=="string"?t.push(n.text):n.kind==="text"&&typeof n.data=="string"&&t.push(n.data));return t.join("")}function Ta(e){for(const t of e)if(fr(t)&&t.kind==="json"&&fr(t.data))return t.data;return null}function _f(e){const t=Object.keys(e);return t.length===1&&typeof e[t[0]]=="string"?e[t[0]]:null}function ZI(e){if(e==null)return[];if(typeof e=="string")return e?[{kind:"text",data:e}]:[];if(fr(e)&&Array.isArray(e.items)){const t=[];for(const n of e.items)fr(n)&&(typeof n.Text=="string"?t.push({kind:"text",data:n.Text}):fr(n.Json)&&t.push({kind:"json",data:n.Json}));return t}return[]}function Bi(e){return[...Array.isArray(e.content)?e.content:[],...ZI(e.output)]}function eR(e){for(const t of e)if(fr(t)&&t.type==="diff"&&typeof t.oldText=="string"&&typeof t.newText=="string")return{path:typeof t.path=="string"?t.path:void 0,oldText:t.oldText,newText:t.newText};return null}function tR(e){let t=Ta(e);if(!t||!Array.isArray(t.tasks)){const n=xa(e).trim();if(n.startsWith("{"))try{const r=JSON.parse(n);t=fr(r)?r:null}catch{t=null}}return t&&Array.isArray(t.tasks)?t.tasks.map(n=>{const r=fr(n)?n:{};return{desc:typeof r.task_description=="string"?r.task_description:"",done:r.completed===!0}}):null}const nR=["https://cdnjs.cloudflare.com","https://cdn.jsdelivr.net","https://unpkg.com","https://esm.sh"];function rR(){const e=nR.join(" ");return["default-src 'none'",`script-src 'unsafe-inline' ${e}`,`style-src 'unsafe-inline' ${e} https://fonts.googleapis.com`,"img-src data: blob: https:","font-src data: https:",`connect-src ${e}`].join("; ")}const iR=`
351
+ (function () {
352
+ var parent = window.parent;
353
+ var root = document.getElementById('root');
354
+ var last = null;
355
+ var scripted = false;
356
+
357
+ function post(msg) { parent.postMessage(msg, '*'); }
358
+
359
+ // The only way a widget can talk to Casper: ask for a prompt to be sent. The
360
+ // app decides whether to honour it.
361
+ window.casper = {
362
+ sendPrompt: function (text) {
363
+ if (typeof text !== 'string' || !text.trim()) return;
364
+ post({ type: 'casper:prompt', text: text.slice(0, 4000) });
365
+ },
366
+ };
367
+
368
+ // Guarded, because a second pass would replace the nodes a widget's scripts are
369
+ // already driving with inert copies.
370
+ function setContent(html) {
371
+ if (!root) root = document.getElementById('root');
372
+ if (!root || html === last) return;
373
+ last = html;
374
+ root.innerHTML = html;
375
+ }
376
+
377
+ // innerHTML leaves scripts inert; recreating them runs them, once the content is
378
+ // final so a half-written script never executes. One at a time, waiting on anything
379
+ // with a src: a real document blocks there, and running them all at once is how you
380
+ // get "Chart is not defined".
381
+ function runScripts() {
382
+ if (scripted) return;
383
+ scripted = true;
384
+ var list = [].slice.call(root.querySelectorAll('script'));
385
+ var index = 0;
386
+
387
+ function next() {
388
+ if (index >= list.length) return;
389
+ var old = list[index++];
390
+ var fresh = document.createElement('script');
391
+ for (var a = 0; a < old.attributes.length; a++) {
392
+ fresh.setAttribute(old.attributes[a].name, old.attributes[a].value);
393
+ }
394
+ fresh.textContent = old.textContent;
395
+ var external = Boolean(old.getAttribute('src'));
396
+ if (external) {
397
+ fresh.async = false;
398
+ var moved = false;
399
+ var advance = function () {
400
+ if (moved) return;
401
+ moved = true;
402
+ next();
403
+ };
404
+ fresh.onload = advance;
405
+ fresh.onerror = advance;
406
+ // A CDN that never answers shouldn't strand the rest of the widget.
407
+ setTimeout(advance, 10000);
408
+ }
409
+ old.parentNode.replaceChild(fresh, old);
410
+ if (!external) next();
411
+ }
412
+
413
+ next();
414
+ }
415
+
416
+ var lastHeight = 0;
417
+
418
+ // Measured off #root, not the document: in a frame the html box is the viewport,
419
+ // so it reports the size the host already chose rather than the content's. The
420
+ // two spare pixels absorb fractional layout heights, which otherwise leave a
421
+ // sliver of overflow and a scrollbar.
422
+ function contentHeight() {
423
+ if (!root) root = document.getElementById('root');
424
+ var bottom = 0;
425
+ if (root) {
426
+ var box = root.getBoundingClientRect();
427
+ bottom = box.top + Math.max(root.scrollHeight, box.height);
428
+ }
429
+ var body = document.body ? document.body.scrollHeight : 0;
430
+ return Math.ceil(Math.max(bottom, body)) + 2;
431
+ }
432
+
433
+ function reportHeight() {
434
+ var h = contentHeight();
435
+ if (h !== lastHeight) { lastHeight = h; post({ type: 'casper:height', height: h }); }
436
+ }
437
+
438
+ if (window.ResizeObserver) {
439
+ var ro = new ResizeObserver(reportHeight);
440
+ ro.observe(document.documentElement);
441
+ // The one that actually grows with the content.
442
+ if (root) ro.observe(root);
443
+ }
444
+
445
+ // Canvases and late fonts resize without tripping the observer, so poll too -
446
+ // but only briefly after the content settles. A transcript full of widgets each
447
+ // polling forever would read layout dozens of times a second.
448
+ var poll = null;
449
+ function pollHeight(ms) {
450
+ if (poll) clearInterval(poll);
451
+ var until = Date.now() + ms;
452
+ poll = setInterval(function () {
453
+ reportHeight();
454
+ if (Date.now() > until) { clearInterval(poll); poll = null; }
455
+ }, 250);
456
+ }
457
+
458
+ window.addEventListener('message', function (e) {
459
+ if (e.source !== parent) return;
460
+ var d = e.data;
461
+ if (!d || typeof d !== 'object') return;
462
+ if (d.type === 'casper:theme') {
463
+ document.getElementById('theme').textContent = ':root{' + d.css + '}';
464
+ return;
465
+ }
466
+ if (d.type !== 'casper:html') return;
467
+ setContent(d.html);
468
+ reportHeight();
469
+ runScripts();
470
+ // Scripts can draw for a while after they run; watch a little longer.
471
+ pollHeight(4000);
472
+ });
473
+ })();
474
+ `,aR=`
475
+ *, *::before, *::after { box-sizing: border-box; }
476
+ html, body { margin: 0; padding: 0; background: transparent; }
477
+ /* The host sizes the frame to fit, so a scrollbar in here is always a measuring
478
+ error rather than something to scroll. */
479
+ html { overflow: hidden; }
480
+ body {
481
+ font-family: var(--font-body, system-ui, sans-serif);
482
+ font-size: 14px;
483
+ line-height: 1.5;
484
+ color: var(--color-text-primary, #f8f8f2);
485
+ overflow-x: hidden;
486
+ }
487
+ #root { overflow-x: hidden; }
488
+ a { color: var(--color-accent, #bd93f9); }
489
+ ::-webkit-scrollbar { width: 8px; height: 8px; }
490
+ ::-webkit-scrollbar-thumb { background: var(--color-border, #44475a); border-radius: 4px; }
491
+ `;function sR(){return`<!doctype html>
492
+ <html>
493
+ <head>
494
+ <meta charset="utf-8">
495
+ <meta http-equiv="Content-Security-Policy" content="${rR()}">
496
+ <meta name="color-scheme" content="dark">
497
+ <style>${aR}</style>
498
+ <style id="theme"></style>
499
+ </head>
500
+ <body><div id="root"></div>
501
+ <!-- Runtime last: it grabs #root on the way in, so the element has to exist. -->
502
+ <script>${iR}<\/script>
503
+ </body>
504
+ </html>`}let Th=null;function U4(e){Th=e}function D5(e){const t=e.trim().slice(0,4e3);return!t||!Th?!1:(Th(t),!0)}const uR=sR(),lR=256*1024;function oR(){const e=getComputedStyle(document.documentElement),t=n=>e.getPropertyValue(n).trim();return[`--color-background-primary:${t("--n0")}`,`--color-background-secondary:${t("--n1")}`,`--color-border:${t("--n2")}`,`--color-text-secondary:${t("--n4")}`,`--color-text-primary:${t("--n5")}`,`--color-accent:${t("--frost")}`,`--color-accent-alt:${t("--aurora-purple")}`,`--color-teal:${t("--frost-teal")}`,`--color-green:${t("--aurora-green")}`,`--color-yellow:${t("--aurora-yellow")}`,`--color-orange:${t("--aurora-orange")}`,`--color-red:${t("--aurora-red")}`,`--font-body:${t("--font-body")}`,`--font-mono:${t("--font-mono")}`].join(";")}function cR({code:e}){const t=O.useRef(null),[n,r]=O.useState(!1),[a,u]=O.useState(120),l=e.length>lR;O.useEffect(()=>{const d=t.current;if(!d)return;const h=m=>{if(m.source!==d.contentWindow)return;const p=m.data;(p==null?void 0:p.type)==="casper:height"&&typeof p.height=="number"?u(Math.min(Math.max(p.height,40),2e3)):(p==null?void 0:p.type)==="casper:prompt"&&typeof p.text=="string"&&D5(p.text)};return window.addEventListener("message",h),()=>window.removeEventListener("message",h)},[]),O.useEffect(()=>{var d,h;n&&((h=(d=t.current)==null?void 0:d.contentWindow)==null||h.postMessage({type:"casper:theme",css:oR()},"*"))},[n]),O.useEffect(()=>{var d,h;!n||l||(h=(d=t.current)==null?void 0:d.contentWindow)==null||h.postMessage({type:"casper:html",html:e.trimStart()},"*")},[e,n,l]);const c=()=>r(!0);return l?T.jsxs("div",{className:"widget-error",children:["Widget is ",Math.round(e.length/1024)," KB, too large to render."]}):T.jsx("div",{className:"widget-wrap",style:{height:a},children:T.jsx("iframe",{ref:t,className:"widget-frame",title:"Widget",sandbox:"allow-scripts",srcDoc:uR,onLoad:c})})}const dR="show_widget";function O5(e){var a;if(!((a=e.name)!=null&&a.endsWith(dR)))return null;const t=e.input??{},n=typeof t.widget_code=="string"?t.widget_code:"";return{title:typeof t.title=="string"?t.title:"",code:n}}function hR(e){return e.replace(/_/g," ").trim()}function fR({tool:e}){const t=O5(e);return t?e.status==="failed"?T.jsxs("div",{className:"widget-error",children:["Widget ",hR(t.title)||"call"," failed."]}):t.code?T.jsx(cR,{code:t.code}):null:null}function mR(e){var u;if(!((u=e.name)!=null&&u.endsWith("show_choice")))return null;const t=e.input??{},n=typeof t.question=="string"?t.question.trim():"",r=Array.isArray(t.options)?t.options:[],a=[];for(const l of r){const c=l??{},d=typeof c.label=="string"&&c.label.trim()?c.label:"";if(!d)continue;const h=typeof c.detail=="string"&&c.detail.trim()?c.detail:void 0,m=typeof c.prompt=="string"&&c.prompt.trim()?c.prompt:d;a.push({label:d,detail:h,prompt:m})}return!n||a.length<2?null:{question:n,options:a}}function pR(e,t){const n=Ne.getState().items,r=n.findIndex(a=>a.type==="tool_call"&&a.tool.id===e);if(r===-1)return null;for(const a of n.slice(r+1)){if(a.type!=="message"||a.message.role!=="user")continue;const u=a.message.text.trim(),l=t.find(c=>c.prompt.trim()===u);return l?l.label:null}return null}function gR({data:e,toolId:t}){const n=Ne(c=>c.items),[r,a]=O.useState(null),u=r??(n.length?pR(t,e.options):null),l=c=>{u||D5(c.prompt)&&a(c.label)};return T.jsxs("div",{className:"tpl-choice",children:[T.jsx("p",{className:"tpl-choice-q",children:e.question}),T.jsx("div",{className:"tpl-choice-opts",children:e.options.map(c=>{const d=u===c.label;return T.jsxs("button",{className:`tpl-choice-opt${d?" is-picked":""}`,onClick:()=>l(c),disabled:u!==null,"aria-pressed":d,children:[T.jsx("span",{className:"tpl-choice-label",children:c.label}),c.detail&&T.jsx("span",{className:"tpl-choice-detail",children:c.detail})]},c.label)})})]})}const yR={pending:"queued",in_progress:"running",completed:"done",failed:"failed"},tn=e=>e&&typeof e=="object"?e:null,ct=e=>typeof e=="string"?e:void 0,j4=e=>e.split("/").pop()||e;function vR(e){const t=Array.isArray(e.operations)?e.operations:[];for(const n of t){const r=tn(n);if(r&&typeof r.path=="string")return r.path;if(r&&Array.isArray(r.image_paths)&&typeof r.image_paths[0]=="string")return r.image_paths[0]}}function bR(e){const t=tn(e.input);if(!t)return null;const n=ct(t.__tool_use_purpose);if(n)return{text:n};switch(Nf(e)){case"write":{const r=ct(t.path);return r?{text:j4(r),title:r}:null}case"read":{const r=vR(t);return r?{text:j4(r),title:r}:null}case"grep":{const r=ct(t.pattern);return r?{text:r}:null}case"websearch":case"introspect":{const r=ct(t.query)??ct(t.doc_path);return r?{text:r}:null}case"webfetch":{const r=ct(t.url);if(!r)return null;let a=r;try{a=new URL(r).hostname||r}catch{}return{text:a,title:r}}default:return null}}function M5(e){const t=tn(e);if(!t||!Array.isArray(t.operations))return[];const n=[];for(const r of t.operations){const a=tn(r);if(a&&a.mode==="Image"&&Array.isArray(a.image_paths))for(const u of a.image_paths)typeof u=="string"&&n.push(u)}return n}const q4=e=>`/api/fs/image?path=${encodeURIComponent(e)}`;function ER({tool:e,arriving:t=!1}){if(O5(e))return T.jsx(fR,{tool:e});const n=mR(e);if(n)return T.jsx(gR,{data:n,toolId:e.id});const r=e.status,[a,u]=O.useState(r==="failed"),l=bR(e),c=M5(e.input);return T.jsxs("div",{className:`toolcall toolcall-${r} ${t?"is-arriving":""}`,children:[T.jsxs("button",{className:"toolcall-head",onClick:()=>u(d=>!d),children:[T.jsx("span",{className:`toolcall-dot dot-${r}`}),T.jsx("span",{className:"toolcall-title",children:JI(e)}),l&&T.jsx("span",{className:"toolcall-summary",title:l.title??l.text,children:l.text}),T.jsx("span",{className:"toolcall-status",children:yR[r]??r}),T.jsx("span",{className:`toolcall-chevron ${a?"is-open":""}`,children:"▸"})]}),c.length>0&&T.jsx("div",{className:"toolcall-images",children:c.map(d=>T.jsx("a",{href:q4(d),target:"_blank",rel:"noopener noreferrer",className:"toolcall-image-link",children:T.jsx("img",{src:q4(d),alt:d.split("/").pop()??"image",className:"toolcall-image",...R5})},d))}),T.jsx(xR,{open:a,children:T.jsx("div",{className:"toolcall-body",children:TR(e)})})]})}function xR({open:e,children:t}){const[n,r]=O.useState(e);O.useEffect(()=>{e&&r(!0)},[e]);const a=u=>{u.propertyName==="grid-template-rows"&&!e&&r(!1)};return T.jsx("div",{className:`collapse ${e?"is-open":""}`,onTransitionEnd:a,children:T.jsx("div",{className:"collapse-inner",children:n?t:null})})}function TR(e){switch(Nf(e)){case"shell":return wR(e);case"write":return kR(e);case"read":return SR(e);case"grep":return CR(e);case"todo":return AR(e);case"webfetch":return _R(e);case"websearch":return RR(e);case"introspect":return NR(e);default:return Fi(e)}}function wR(e){const t=tn(e.input),n=ct(t==null?void 0:t.command)??"",r=Bi(e),a=Ta(r),u=a?ct(a.stdout)??"":xa(r),l=a?ct(a.stderr)??"":"",c=a?String(a.exit_status??""):"",d=c!==""&&!/\b0$/.test(c);return T.jsxs(T.Fragment,{children:[n&&T.jsx(Zn,{code:n,lang:"bash"}),u.trim()&&T.jsx(Zn,{code:u,lang:"text"}),l.trim()&&T.jsxs("div",{className:"toolcall-section",children:[T.jsx("div",{className:"toolcall-label",children:"stderr"}),T.jsx(Zn,{code:l,lang:"text"})]}),d&&T.jsx("div",{className:"toolcall-exit",children:c})]})}function kR(e){const t=tn(e.input),n=ct(t==null?void 0:t.path)??"",r=ct(t==null?void 0:t.command);if(r==="create"||r==="insert"){const c=ct(t==null?void 0:t.content);if(c!==void 0)return T.jsx(Zn,{code:c,lang:L5(n)})}const a=ct(t==null?void 0:t.oldStr),u=ct(t==null?void 0:t.newStr);if(a!==void 0&&u!==void 0)return T.jsx($4,{diff:H4(a,u)});const l=eR(e.content);return l?T.jsx($4,{diff:H4(l.oldText,l.newText)}):Fi(e)}function SR(e){const t=tn(e.input),n=t&&Array.isArray(t.operations)?t.operations:[],r=xa(Bi(e));if(!r.trim())return M5(e.input).length>0?null:Fi(e);const a=n.map(tn).find(c=>c&&c.mode!=="Image"),u=a&&typeof a.path=="string"?a.path:"",l=(a==null?void 0:a.mode)==="Line"?L5(u):"text";return T.jsx(Zn,{code:r,lang:l})}function CR(e){const t=Bi(e),n=Ta(t),r=n&&Array.isArray(n.results)?n.results.filter(u=>{const l=tn(u);return!!l&&(Array.isArray(l.matches)||typeof l.file=="string")}):null;if(r&&r.length>0)return T.jsx("div",{className:"grep",children:r.map((u,l)=>{const c=tn(u),d=c&&typeof c.file=="string"?c.file:"",h=c&&Array.isArray(c.matches)?c.matches.map(String):[];return T.jsxs("div",{className:"grep-file",children:[T.jsx("div",{className:"grep-fname",children:d}),T.jsx("pre",{className:"grep-matches",children:h.join(`
505
+ `)})]},l)})});const a=xa(t);return a.trim()?T.jsx(Zn,{code:a,lang:"text"}):Fi(e)}function AR(e){const t=tR(Bi(e));return!t||t.length===0?Fi(e):T.jsx("div",{className:"todo",children:t.map((n,r)=>T.jsxs("div",{className:`todo-item ${n.done?"is-done":""}`,children:[T.jsx("span",{className:"todo-check","aria-hidden":!0,children:n.done?"☑":"☐"}),T.jsx("span",{className:"todo-text",children:n.desc})]},r))})}function NR(e){const t=tn(e.input),n=ct(t==null?void 0:t.query)??ct(t==null?void 0:t.doc_path),r=Bi(e),a=Ta(r),u=(a?ct(a.documentation)??_f(a):null)??xa(r);return T.jsxs(T.Fragment,{children:[n&&T.jsxs("div",{className:"toolcall-section",children:[T.jsx("div",{className:"toolcall-label",children:"query"}),T.jsx(Zn,{code:n,lang:"text"})]}),u.trim()?T.jsx("div",{className:"toolcall-doc",children:T.jsx(Su,{text:u})}):Fi(e)]})}function _R(e){const t=tn(e.input),n=ct(t==null?void 0:t.url),r=ct(t==null?void 0:t.mode),a=ct(t==null?void 0:t.search_terms),u=Bi(e),l=Ta(u),c=l?_f(l)??ct(l.content)??JSON.stringify(l,null,2):xa(u);return T.jsxs(T.Fragment,{children:[n&&T.jsxs("div",{className:"toolcall-meta",children:[T.jsx("a",{className:"toolcall-link",href:n,target:"_blank",rel:"noopener noreferrer",children:n}),r&&T.jsx("span",{className:"toolcall-tag",children:r})]}),a&&T.jsxs("div",{className:"toolcall-section",children:[T.jsx("div",{className:"toolcall-label",children:"search terms"}),T.jsx(Zn,{code:a,lang:"text"})]}),c.trim()?T.jsx(Zn,{code:c,lang:"markdown"}):Fi(e)]})}function IR(e){if(!e)return null;const t=Array.isArray(e.results)?e.results:Array.isArray(e.items)?e.items:Array.isArray(e.data)?e.data:null;if(!t)return null;const n=[];for(const r of t){const a=tn(r);a&&n.push({title:ct(a.title)??ct(a.name),url:ct(a.url)??ct(a.link)??ct(a.href),snippet:ct(a.snippet)??ct(a.description)??ct(a.content)??ct(a.text)})}return n.length?n:null}function RR(e){var a;const t=Bi(e),n=IR(Ta(t));if(!n)return Fi(e);const r=ct((a=tn(e.input))==null?void 0:a.query);return T.jsxs(T.Fragment,{children:[r&&T.jsxs("div",{className:"toolcall-section",children:[T.jsx("div",{className:"toolcall-label",children:"query"}),T.jsx(Zn,{code:r,lang:"text"})]}),T.jsx("ol",{className:"websearch",children:n.map((u,l)=>T.jsxs("li",{className:"websearch-item",children:[u.url?T.jsx("a",{className:"websearch-title",href:u.url,target:"_blank",rel:"noopener noreferrer",children:u.title??u.url}):T.jsx("span",{className:"websearch-title",children:u.title??"(untitled)"}),u.url&&T.jsx("div",{className:"websearch-url",children:u.url}),u.snippet&&T.jsx("p",{className:"websearch-snippet",children:u.snippet})]},l))})]})}function Fi(e){const t=e.input;let n="";if(typeof t=="string")n=t;else if(tn(t)){const{__tool_use_purpose:d,...h}=tn(t);n=JSON.stringify(h,null,2)}const r=Bi(e),a=Ta(r),u=a?_f(a):null,l=u??(a?JSON.stringify(a,null,2):xa(r)),c=u?"text":/^\s*[[{]/.test(l)?"json":"text";return T.jsxs(T.Fragment,{children:[n&&n!=="{}"&&T.jsxs("div",{className:"toolcall-section",children:[T.jsx("div",{className:"toolcall-label",children:"input"}),T.jsx(Zn,{code:n,lang:tn(t)?"json":"text"})]}),l.trim()&&T.jsxs("div",{className:"toolcall-section",children:[T.jsx("div",{className:"toolcall-label",children:"output"}),T.jsx(Zn,{code:l,lang:c})]})]})}function Zn({code:e,lang:t}){const[n,r]=O.useState(null);return O.useEffect(()=>{let a=!1;return Af(e,t).then(u=>!a&&r(u)).catch(()=>!a&&r(null)),()=>{a=!0}},[e,t]),n?T.jsx("div",{className:"toolcode",dangerouslySetInnerHTML:{__html:n}}):T.jsx("pre",{className:"toolcode toolcode-plain",children:e})}function $4({diff:e}){return T.jsx("div",{className:"diff-body",children:e.map((t,n)=>T.jsxs("div",{className:`diff-line diff-${t.type}`,children:[T.jsx("span",{className:"diff-sign","aria-hidden":!0,children:t.type==="add"?"+":t.type==="del"?"-":" "}),T.jsx("span",{className:"diff-code",children:t.text||" "})]},n))})}const LR=4;function DR(e,t,n,r){const a=t-e,u=Math.max(0,r-n);return a>u+LR}const OR=700,Pd=typeof window<"u"?window.matchMedia("(prefers-reduced-motion: reduce)"):null,MR=O.memo(function({onRetry:t,onRetryTurn:n}){const r=Ne(z=>z.items),a=Ne(z=>z.streamingText),u=Ne(z=>z.streamingThought),l=Ne(z=>z.pending),c=l.some(z=>z.status==="sending"),d=Ne(z=>z.observability.turnStatus),h=Ne(z=>z.observability.compacting),m=Ne(z=>z.activeId),p=Ne(z=>z.remainingOlder),E=Ne(z=>z.prependItems),x=O.useRef({session:null,ids:new Set});x.current.session!==m&&(x.current={session:m,ids:new Set(r.filter(z=>z.type==="tool_call").map(z=>z.tool.id))});const C=z=>!x.current.ids.has(z),[_,R]=O.useState(!1);O.useEffect(()=>{if(R(!1),d!=="running")return;const z=setTimeout(()=>R(!0),OR);return()=>clearTimeout(z)},[d,a,u,r.length]);const I=O.useRef(null),M=O.useRef(null),j=O.useRef(!1),J=O.useRef(null),[te,W]=O.useState(!1),Z=O.useRef(!1),re=O.useRef(0),ie=O.useRef(0),Y=O.useRef(null),se=O.useRef(0),le=O.useRef(0),[Me,ge]=O.useState(!1);O.useEffect(()=>(Z.current=!1,se.current=0,j.current=!1,J.current=null,W(!1),ge(!1),()=>{le.current&&cancelAnimationFrame(le.current),le.current=0}),[m]);const ue=()=>{const z=M.current;if(!z||!m||j.current||p<=0)return;j.current=!0,W(!0);const{offset:L,limit:Se}=d9(p,80);J.current=z.scrollHeight-z.scrollTop,bt.transcriptPage(m,L,Se).then(He=>{if(Ne.getState().activeId!==m){J.current=null,j.current=!1,W(!1);return}He.items.length>0?E(He.items):(J.current=null,j.current=!1,W(!1))}).catch(()=>{J.current=null,j.current=!1,W(!1),console.error("could not load earlier transcript page")})};O.useLayoutEffect(()=>{if(J.current==null)return;const z=M.current;z&&(z.scrollTop=z.scrollHeight-J.current),J.current=null,j.current=!1,W(!1)},[r]);const Re=z=>{const L=z.scrollHeight-z.scrollTop-z.clientHeight;ge(L>240)},Le=()=>{le.current=0;const z=M.current;if(!z||!Z.current)return;const L=z.scrollHeight-z.clientHeight,Se=L-z.scrollTop;if(Se<=1||Pd!=null&&Pd.matches){z.scrollTop=L,re.current=z.scrollTop,ie.current=L;return}z.scrollTop+=Math.max(10,Math.ceil(Se*.3)),re.current=z.scrollTop,ie.current=L,le.current=requestAnimationFrame(Le)},oe=()=>{le.current||(le.current=requestAnimationFrame(Le))};O.useEffect(()=>{var L;const z=M.current;if(z){if(Y.current!==m&&r.length>0){Y.current=m,Z.current=!1,(L=I.current)==null||L.scrollIntoView({block:"end"}),re.current=z.scrollTop,ie.current=z.scrollHeight-z.clientHeight,se.current=l.length,ge(!1);return}l.length>se.current&&(Z.current=!0),se.current=l.length,Z.current?oe():Re(z)}},[r,a,u,l,m,h]);const _e=()=>{const z=M.current;if(!z)return;const L=z.scrollHeight-z.clientHeight;DR(z.scrollTop,re.current,L,ie.current)&&(Z.current=!1),re.current=z.scrollTop,ie.current=L,Re(z),z.scrollTop<300&&!j.current&&p>0&&ue()},A=()=>{Z.current=!0,ge(!1),oe()},q=r.length===0&&!a&&!u&&l.length===0;return T.jsxs("div",{className:"transcript-wrap",children:[te&&T.jsxs("div",{className:"loading-older",role:"status",children:[T.jsx(fa,{size:14}),T.jsx("span",{children:"Loading earlier messages…"})]}),T.jsxs("div",{className:"transcript",ref:M,onScroll:_e,children:[q&&T.jsxs("div",{className:"transcript-empty",children:[T.jsx("p",{className:"empty-title",children:"Casper is here."}),T.jsx("p",{className:"empty-sub",children:"Hand off a task. Casper keeps working server-side and has it ready when you get back."})]}),r.map(z=>z.type==="message"?z.message.role==="thinking"?T.jsx(W4,{text:z.message.text},z.message.id):T.jsx("div",{className:`msg msg-${z.message.role}`,children:z.message.role==="assistant"?T.jsx(Su,{text:z.message.text}):T.jsxs(T.Fragment,{children:[m&&z.message.imagePaths&&z.message.imagePaths.length>0&&T.jsx("div",{className:"msg-images",children:z.message.imagePaths.map(L=>T.jsx("a",{href:bt.attachmentUrl(m,L),target:"_blank",rel:"noopener noreferrer",className:"msg-image-link",children:T.jsx("img",{src:bt.attachmentUrl(m,L),alt:L.split("/").pop()??"image",className:"msg-image",...R5})},L))}),z.message.text&&T.jsx("div",{className:"msg-user-text",children:z.message.text})]})},z.message.id):z.type==="tool_call"?T.jsx(ER,{tool:z.tool,arriving:C(z.tool.id)},z.tool.id):z.type==="turn_error"?T.jsx(PR,{message:z.message,onRetry:n},z.id):T.jsx(BR,{summary:z.summary},z.id)),l.map(z=>T.jsxs("div",{className:`msg msg-user msg-pending ${z.status==="failed"?"is-failed":""}`,children:[T.jsx("div",{className:"msg-user-text",children:z.text}),z.status==="failed"&&T.jsxs("div",{className:"msg-failed",children:[T.jsx("span",{className:"msg-failed-why",children:z.error??"Failed to send."}),T.jsx("button",{className:"msg-retry",onClick:()=>t(z.id,z.text),children:"Retry"})]})]},z.id)),u&&T.jsx(W4,{text:u,live:!0}),a&&T.jsx("div",{className:"msg msg-assistant",children:T.jsx(Su,{text:a,streaming:!0})}),(d==="running"||c)&&(_||!a&&!u)&&T.jsxs("div",{className:"thinking",children:[T.jsx("span",{className:"thinking-dot"}),T.jsx("span",{className:"thinking-dot"}),T.jsx("span",{className:"thinking-dot"})]}),h&&T.jsx("div",{className:"compaction compaction-live",children:T.jsx("div",{className:"compaction-rule",children:T.jsxs("span",{className:"compaction-head",children:[T.jsx(fa,{size:13,className:"compaction-icon"}),T.jsx("span",{className:"compaction-label",children:"Compacting conversation…"})]})})}),T.jsx("div",{ref:I})]}),Me&&T.jsx("button",{className:"scroll-to-bottom",onClick:A,"aria-label":"Scroll to latest",title:"Scroll to latest",children:T.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:T.jsx("polyline",{points:"6 9 12 15 18 9"})})})]})});function W4({text:e,live:t=!1}){const[n,r]=O.useState(!1);return T.jsxs("div",{className:`thought ${t?"is-live":""}`,children:[T.jsxs("button",{className:"thought-head",onClick:()=>r(a=>!a),children:[T.jsx("span",{className:"thought-chevron",children:n?"▾":"▸"}),T.jsx("span",{className:`thought-label ${t?"is-live":""}`,children:"Thinking"})]}),n&&T.jsx("div",{className:"thought-body",children:T.jsx("div",{className:"thought-text",children:e})})]})}function PR({message:e,onRetry:t}){const[n,r]=O.useState(!1),[a,u]=O.useState(!1),l=b3(e),c=Ne(h=>{for(let m=h.items.length-1;m>=0;m--){const p=h.items[m];if(p.type==="message"&&p.message.role==="user")return p.message.text}return""}),d=()=>{var h;(h=navigator.clipboard)==null||h.writeText(e).then(()=>{u(!0),setTimeout(()=>u(!1),1500)},()=>{})};return T.jsxs("div",{className:"sysnote",children:[T.jsx("div",{className:"sysnote-rule",children:T.jsxs("button",{className:"sysnote-head",onClick:()=>r(h=>!h),"aria-expanded":n,children:[T.jsx("span",{"aria-hidden":!0,children:"⚠"}),T.jsx("span",{className:"sysnote-label",children:l.title}),T.jsx("span",{className:"sysnote-toggle",children:n?"Hide details":"Show details"})]})}),n&&T.jsxs("div",{className:"sysnote-body",children:[l.fix&&T.jsx("p",{className:"sysnote-fix",children:l.fix}),T.jsx("pre",{className:"sysnote-raw",children:e}),T.jsxs("div",{className:"sysnote-actions",children:[t&&c&&T.jsx("button",{className:"btn-sm is-danger",onClick:()=>t(c),children:"Retry turn"}),T.jsx("button",{className:"btn-sm",onClick:d,children:a?"Copied":"Copy details"})]})]})]})}function BR({summary:e}){const[t,n]=O.useState(!1);return T.jsxs("div",{className:"compaction",children:[T.jsx("div",{className:"compaction-rule",children:T.jsxs("button",{className:"compaction-head",onClick:()=>n(r=>!r),"aria-expanded":t,children:[T.jsx(Jv,{size:14,className:"compaction-icon"}),T.jsx("span",{className:"compaction-label",children:"Conversation compacted"}),T.jsx("span",{className:"compaction-toggle",children:t?"Hide summary":"Show summary"})]})}),t&&T.jsx("div",{className:"compaction-body",children:T.jsx(Su,{text:e})})]})}function FR({value:e,onChange:t,label:n="Working directory",placeholder:r="leave blank for server default",hint:a="A folder that doesn't exist yet will be created.",autoFocus:u=!1}){const[l,c]=O.useState([]),[d,h]=O.useState(!1),[m,p]=O.useState(null),E=O.useRef("");O.useEffect(()=>{const R=e;E.current=R;const I=setTimeout(()=>{bt.listDirs(R).then(M=>{E.current===R&&(c(M.entries),p({path:M.target,kind:M.targetKind}))}).catch(()=>{E.current===R&&(c([]),p(null))})},150);return()=>clearTimeout(I)},[e]);const x=e.trim()!=="",C=x&&(m==null?void 0:m.kind)==="missing",_=x&&(m==null?void 0:m.kind)==="file";return T.jsxs("label",{className:"picker cwd-field",children:[T.jsx("span",{className:"picker-label",children:n}),T.jsx("input",{className:"picker-input",value:e,placeholder:r,autoComplete:"off",spellCheck:!1,autoFocus:u,onFocus:()=>h(!0),onChange:R=>{t(R.target.value),h(!0)},onBlur:()=>setTimeout(()=>h(!1),120)}),d&&l.length>0&&T.jsx("div",{className:"cwd-suggestions",children:l.map(R=>T.jsx("button",{type:"button",className:"cwd-suggestion",onMouseDown:I=>I.preventDefault(),onClick:()=>{t(R),c([])},children:R},R))}),C&&T.jsxs("span",{className:"picker-hint cwd-will-create",children:["Doesn't exist yet - this folder will be created: ",T.jsx("code",{children:m.path})]}),_&&T.jsxs("span",{className:"picker-hint cwd-is-file",children:["That path is a file, not a folder: ",T.jsx("code",{children:m.path})]}),!C&&!_&&T.jsx("span",{className:"picker-hint",children:a})]})}function zR({sessionId:e,currentCwd:t,onChanged:n,onClose:r}){const[a,u]=O.useState(t??""),[l,c]=O.useState(!1),[d,h]=O.useState(null),m=async()=>{const p=a.trim();if(!(!p||l)){c(!0),h(null);try{const E=await bt.setSessionCwd(e,p);n(E.cwd),r()}catch(E){h(E.message)}finally{c(!1)}}};return T.jsx("div",{className:"sheet-backdrop",onClick:r,children:T.jsxs("div",{className:"sheet",onClick:p=>p.stopPropagation(),children:[T.jsx("div",{className:"sheet-handle"}),T.jsx("h2",{className:"sheet-title",children:"Change working directory"}),T.jsx(FR,{value:a,onChange:u,placeholder:"/path/to/folder",hint:"The session keeps its transcript. A folder that doesn't exist yet will be created.",autoFocus:!0}),d&&T.jsx("div",{className:"sheet-error",children:d}),T.jsxs("div",{className:"sheet-actions",children:[T.jsx("button",{className:"btn-ghost",onClick:r,disabled:l,children:"Cancel"}),T.jsx("button",{className:"btn-primary",onClick:m,disabled:l||!a.trim(),children:l?"Saving…":"Change folder"})]})]})})}function HR(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function UR({name:e}){var n;switch((n=e.split(".").pop())==null?void 0:n.toLowerCase()){case"ts":case"tsx":case"js":case"jsx":case"mjs":case"py":case"rb":case"go":case"rs":case"java":case"c":case"cpp":case"h":case"hpp":case"vue":case"svelte":return T.jsx(Op,{size:15,className:"ftree-icon-svg ftree-icon-code"});case"json":case"yaml":case"yml":case"toml":case"ini":case"env":case"lock":return T.jsx(Wv,{size:15,className:"ftree-icon-svg ftree-icon-config"});case"md":case"txt":case"rst":case"log":case"csv":return T.jsx(Yv,{size:15,className:"ftree-icon-svg ftree-icon-text"});case"css":case"scss":case"less":case"sass":return T.jsx(Gv,{size:15,className:"ftree-icon-svg ftree-icon-style"});case"html":case"svg":case"xml":return T.jsx(Op,{size:15,className:"ftree-icon-svg ftree-icon-markup"});case"png":case"jpg":case"jpeg":case"gif":case"webp":case"bmp":case"ico":case"avif":return T.jsx(Vv,{size:15,className:"ftree-icon-svg ftree-icon-image"});case"sh":case"bash":case"zsh":case"fish":case"bat":case"ps1":return T.jsx(Qv,{size:15,className:"ftree-icon-svg ftree-icon-terminal"});default:return T.jsx($v,{size:15,className:"ftree-icon-svg"})}}const jR=new Set(["png","jpg","jpeg","gif","webp","svg","bmp","ico","avif"]);function qR(e){const t=e.toLowerCase(),n=t.lastIndexOf("."),r=n>0?t.slice(n+1):"";return jR.has(r)?"image":r==="pdf"?"pdf":r==="html"||r==="htm"?"html":r==="md"||r==="markdown"?"markdown":"text"}const $R={ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",jsonl:"json",yaml:"yaml",yml:"yaml",md:"markdown",markdown:"markdown",html:"html",htm:"html",xml:"xml",css:"css",scss:"css",less:"css",py:"python",rs:"rust",go:"go",java:"java",c:"c",h:"c",cpp:"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",cs:"csharp",rb:"ruby",php:"php",kt:"kotlin",kts:"kotlin",swift:"swift",zig:"zig",lua:"lua",tex:"latex",toml:"toml",ini:"ini",cfg:"ini",conf:"ini",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",dockerfile:"dockerfile",sql:"sql",diff:"diff",patch:"diff"};function WR(e){const t=e.toLowerCase();if(t==="dockerfile")return"dockerfile";if(t==="makefile")return"make";const n=t.split(".").pop()??"";return $R[n]??""}function P5({entry:e,sessionId:t,depth:n,onPreview:r,onExpanded:a}){const u=Ne(p=>p.fsVersion[e.path]??0),[l,c]=O.useState({expanded:!1,children:null,loading:!1});O.useEffect(()=>{if(e.type==="directory")return a(e.path,l.expanded),()=>a(e.path,!1)},[e.path,e.type,l.expanded,a]),O.useEffect(()=>{if(!u||!l.expanded)return;let p=!0;return bt.tree(t,e.path).then(E=>{p&&c(x=>({...x,children:E.entries}))}).catch(()=>{}),()=>{p=!1}},[u]);const d=O.useCallback(async()=>{if(e.type==="directory"&&!l.loading){if(l.expanded){c(p=>({...p,expanded:!1}));return}if(l.children===null){c(p=>({...p,loading:!0}));try{const p=await bt.tree(t,e.path);c({expanded:!0,children:p.entries,loading:!1})}catch{c(p=>({...p,loading:!1}))}}else c(p=>({...p,expanded:!0}))}},[e,t,l.expanded,l.children,l.loading]),h=O.useCallback(()=>{e.type==="file"&&r(e)},[e,r]),m=n*16;return e.type==="directory"?T.jsxs(T.Fragment,{children:[T.jsxs("button",{className:"ftree-row ftree-dir",onClick:d,style:{paddingLeft:`${m+8}px`},children:[T.jsx("span",{className:`ftree-chevron ${l.expanded?"is-open":""}`,children:l.loading?T.jsx(fa,{size:12}):T.jsx(T3,{size:12,className:"ftree-chevron-icon"})}),T.jsx("span",{className:"ftree-icon",children:l.expanded?T.jsx(qv,{size:15,className:"ftree-icon-svg ftree-icon-folder"}):T.jsx(C3,{size:15,className:"ftree-icon-svg ftree-icon-folder"})}),T.jsx("span",{className:"ftree-name",children:e.name})]}),l.expanded&&l.children&&T.jsxs("div",{className:"ftree-children",children:[l.children.map(p=>T.jsx(P5,{entry:p,sessionId:t,depth:n+1,onPreview:r,onExpanded:a},p.path)),l.children.length===0&&T.jsx("div",{className:"ftree-empty",style:{paddingLeft:`${m+24}px`},children:"Empty"})]})]}):T.jsxs("div",{className:"ftree-row ftree-file",style:{paddingLeft:`${m+8}px`},onClick:h,children:[T.jsx("span",{className:"ftree-chevron ftree-chevron-spacer","aria-hidden":"true"}),T.jsx("span",{className:"ftree-icon",children:T.jsx(UR,{name:e.name})}),T.jsx("span",{className:"ftree-name",children:e.name}),e.size!=null&&T.jsx("span",{className:"ftree-size",children:HR(e.size)})]})}function YR({preview:e,sessionId:t,onClose:n}){const[r,a]=O.useState(!1),[u,l]=O.useState({}),c=()=>{window.open(bt.downloadUrl(t,e.path),"_blank")},d=x=>{x.target===x.currentTarget&&n()};O.useEffect(()=>{const x=C=>{C.key==="Escape"&&n()};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]);const h=u[e.path]??!1,m=e.kind==="html"||e.kind==="markdown",p=m&&!h,E=e.kind!=="image"&&e.kind!=="pdf"&&!p;return T.jsx("div",{className:"fpreview-backdrop",onClick:d,children:T.jsxs("div",{className:`fpreview-modal${r?" fpreview-full":""}`,children:[T.jsxs("div",{className:"fpreview-header",children:[m&&!e.error&&T.jsxs("div",{className:"fpreview-seg",role:"group","aria-label":"Preview mode",children:[T.jsx("button",{className:`fpreview-seg-btn${h?"":" is-active"}`,onClick:()=>l(x=>({...x,[e.path]:!1})),title:"Rendered","aria-label":"Rendered","aria-pressed":!h,children:T.jsx(Zv,{size:17})}),T.jsx("button",{className:`fpreview-seg-btn${h?" is-active":""}`,onClick:()=>l(x=>({...x,[e.path]:!0})),title:"Source","aria-label":"Source","aria-pressed":h,children:T.jsx(e9,{size:17})})]}),T.jsx("span",{className:"fpreview-name",title:e.path,children:e.name}),T.jsx("button",{className:"fpreview-dl",onClick:c,title:"Download file","aria-label":"Download file",children:T.jsx(Xv,{size:18})}),T.jsx("button",{className:"fpreview-full-btn",onClick:()=>a(x=>!x),title:r?"Exit fullscreen":"Fullscreen","aria-label":r?"Exit fullscreen":"Fullscreen",children:r?T.jsx(n9,{size:18}):T.jsx(t9,{size:18})}),T.jsx("button",{className:"fpreview-close",onClick:n,"aria-label":"Close preview",children:T.jsx(w3,{size:18})})]}),T.jsxs("div",{className:"fpreview-body",children:[e.loading&&T.jsx("div",{className:"fpreview-loading",children:T.jsx(fa,{size:48})}),e.error&&T.jsx("div",{className:"ftree-error",children:e.error}),!e.loading&&!e.error&&e.kind==="image"&&T.jsx("img",{src:bt.previewUrl(t,e.path),alt:e.name,className:"fpreview-image"}),!e.error&&e.kind==="pdf"&&T.jsx("iframe",{src:bt.previewUrl(t,e.path),title:e.name,className:"fpreview-pdf"}),!e.error&&e.kind==="html"&&p&&T.jsx("iframe",{src:`${bt.previewUrl(t,e.path)}&raw=1`,title:e.name,className:"fpreview-html",sandbox:"allow-scripts allow-forms"}),!e.loading&&!e.error&&e.kind==="markdown"&&p&&e.content!==null&&T.jsx("div",{className:"fpreview-md",children:T.jsx(Su,{text:e.content,html:!0})}),!e.loading&&!e.error&&E&&e.highlightedHtml&&T.jsx("div",{className:"fpreview-highlighted",dangerouslySetInnerHTML:{__html:e.highlightedHtml}}),!e.loading&&!e.error&&E&&!e.highlightedHtml&&e.content!==null&&T.jsx("pre",{className:"fpreview-code",children:e.content})]})]})})}function VR({sessionId:e,onClose:t}){var ie;const[n,r]=O.useState([]),[a,u]=O.useState(""),[l,c]=O.useState(!0),[d,h]=O.useState(null),[m,p]=O.useState(null),[E,x]=O.useState(!1),C=Ne(Y=>Y.sessions),_=Ne(Y=>Y.setWatchedPaths),R=Ne(Y=>Y.fsVersion[""]??0),I=O.useRef(new Set),M=Ne(Y=>Y.setSessions),j=(ie=C.find(Y=>Y.sessionId===e))==null?void 0:ie.cwd,J=O.useCallback(()=>{_(["",...I.current])},[_]),te=O.useCallback((Y,se)=>{const le=I.current;se!==le.has(Y)&&(se?le.add(Y):le.delete(Y),J())},[J]);O.useEffect(()=>(J(),()=>_([])),[J,_]);const W=O.useCallback(async(Y=!1)=>{Y||c(!0),h(null);try{const se=await bt.tree(e);r(se.entries),u(se.cwd)}catch(se){h(se.message)}finally{Y||c(!1)}},[e]);O.useEffect(()=>{W()},[W]),O.useEffect(()=>{R&&W(!0)},[R]);const Z=O.useCallback(async Y=>{const se=qR(Y.name),le=se!=="image"&&se!=="pdf";if(p({path:Y.path,name:Y.name,content:null,highlightedHtml:null,kind:se,loading:le,error:null}),le)try{const Me=bt.previewUrl(e,Y.path),ge=await fetch(Me,{credentials:"same-origin"});if(!ge.ok){const Le=await ge.text();throw new Error(Le||`HTTP ${ge.status}`)}const ue=await ge.text();p(Le=>Le&&Le.path===Y.path?{...Le,content:ue,loading:!1}:Le);const Re=WR(Y.name);if(Re){const Le=await Af(ue,Re);Le&&p(oe=>oe&&oe.path===Y.path?{...oe,highlightedHtml:Le}:oe)}}catch(Me){p(ge=>ge&&ge.path===Y.path?{...ge,error:Me.message,loading:!1}:ge)}},[e]),re=O.useCallback(()=>p(null),[]);return T.jsxs("div",{className:"ftree-panel",children:[T.jsxs("div",{className:"ftree-header",children:[T.jsx("span",{className:"ftree-title",title:a,children:"Files"}),T.jsx("button",{className:"ftree-refresh",onClick:()=>x(!0),title:"Change working directory","aria-label":"Change working directory",children:T.jsx(C3,{size:14})}),t&&T.jsx("button",{className:"ftree-close",onClick:t,title:"Close file tree","aria-label":"Close file tree",children:T.jsx(w3,{size:15})})]}),a&&T.jsx("div",{className:"ftree-cwd",title:a,children:a}),T.jsxs("div",{className:"ftree-list",children:[l&&n.length===0&&T.jsx("div",{className:"ftree-loading",children:"Loading…"}),d&&T.jsxs("div",{className:"ftree-error",children:[d,T.jsx("button",{className:"ftree-repoint",onClick:()=>x(!0),children:"Change folder…"})]}),!l&&!d&&n.length===0&&T.jsx("div",{className:"ftree-empty",children:"No files"}),!d&&n.map(Y=>T.jsx(P5,{entry:Y,sessionId:e,depth:0,onPreview:Z,onExpanded:te},Y.path))]}),m&&T.jsx(YR,{preview:m,sessionId:e,onClose:re}),E&&T.jsx(zR,{sessionId:e,currentCwd:a||j,onChanged:Y=>{M(C.map(se=>se.sessionId===e?{...se,cwd:Y}:se)),W()},onClose:()=>x(!1)})]})}function B5({ariaLabel:e,value:t,options:n,onChange:r}){const[a,u]=O.useState(!1),[l,c]=O.useState(0),d=O.useRef(null),h=n.find(E=>E.value===t);O.useEffect(()=>{if(!a)return;const E=x=>{d.current&&!d.current.contains(x.target)&&u(!1)};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[a]),O.useEffect(()=>{if(a){const E=n.findIndex(x=>x.value===t);c(E>=0?E:0)}},[a,n,t]);const m=E=>{r(E),u(!1)},p=E=>{if(!a){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),u(!0));return}if(E.key==="Escape")u(!1);else if(E.key==="ArrowDown")E.preventDefault(),c(x=>Math.min(x+1,n.length-1));else if(E.key==="ArrowUp")E.preventDefault(),c(x=>Math.max(x-1,0));else if(E.key==="Enter"){E.preventDefault();const x=n[l];x&&m(x.value)}};return T.jsxs("div",{className:"dd",ref:d,children:[T.jsxs("button",{type:"button",className:`dd-trigger ${a?"is-open":""}`,"aria-haspopup":"listbox","aria-expanded":a,onClick:()=>u(E=>!E),onKeyDown:p,"aria-label":e,children:[T.jsx("span",{className:"dd-value",children:(h==null?void 0:h.label)??t??"Select…"}),T.jsx(T3,{size:13,className:"dd-chevron"})]}),a&&T.jsx("div",{className:"dd-panel",role:"listbox",children:n.map((E,x)=>T.jsxs("button",{type:"button",role:"option","aria-selected":E.value===t,className:`dd-option ${x===l?"is-active":""} ${E.value===t?"is-selected":""}`,onMouseEnter:()=>c(x),onClick:()=>m(E.value),children:[T.jsx("span",{className:"dd-check",children:E.value===t&&T.jsx(Hv,{size:15})}),T.jsx("span",{className:"dd-option-label",children:E.label}),E.hint&&T.jsx("span",{className:"dd-option-hint",children:E.hint})]},E.value))})]})}function GR({value:e,onChange:t}){var a;const n=Ne(u=>u.models),r=e??((a=n.find(u=>u.isDefault))==null?void 0:a.modelId);return T.jsx(B5,{ariaLabel:"Model",value:r,onChange:t,options:n.map(u=>({value:u.modelId,label:u.modelName,hint:`${u.rateMultiplier}x`}))})}function QR({value:e,onChange:t}){const n=Ne(c=>c.modes),r=Ne(c=>c.agents),a=Ne(c=>c.defaultAgentId),u=n.length>0?n:r,l=e??a;return T.jsx(B5,{ariaLabel:"Agent",value:l,onChange:t,options:u.map(c=>({value:c.id,label:c.name}))})}const cr=18,wh=2.5,kh=(cr-wh)/2,Y4=2*Math.PI*kh;function XR(e){return e>85?"var(--aurora-red)":e>60?"var(--aurora-orange)":"var(--frost)"}const V4=new Intl.NumberFormat;function KR({onCompact:e}){var _;const t=Ne(R=>R.observability.contextUsagePercentage),n=Ne(R=>R.observability.compacting),r=Ne(R=>R.observability.turnStatus),a=Ne(R=>R.activeId),u=Ne(R=>R.currentModelId),l=Ne(R=>R.models),[c,d]=O.useState(!1),h=O.useRef(null);O.useEffect(()=>{if(!c)return;const R=M=>{h.current&&!h.current.contains(M.target)&&d(!1)},I=M=>{M.key==="Escape"&&d(!1)};return document.addEventListener("mousedown",R),document.addEventListener("keydown",I),()=>{document.removeEventListener("mousedown",R),document.removeEventListener("keydown",I)}},[c]);const m=Math.max(0,Math.min(100,t)),p=XR(m),E=m/100*Y4,x=(_=l.find(R=>R.modelId===u))==null?void 0:_.contextWindowTokens,C=x?Math.round(m/100*x):void 0;return a?T.jsxs("div",{className:"ctx",ref:h,children:[T.jsx("button",{type:"button",className:"ctx-btn",onClick:()=>d(R=>!R),"aria-haspopup":"dialog","aria-expanded":c,"aria-label":`Context ${m.toFixed(0)}% used`,title:`Context ${m.toFixed(0)}% used`,children:T.jsx("svg",{width:cr,height:cr,viewBox:`0 0 ${cr} ${cr}`,"aria-hidden":!0,children:T.jsxs("g",{transform:`rotate(-90 ${cr/2} ${cr/2})`,children:[T.jsx("circle",{cx:cr/2,cy:cr/2,r:kh,fill:"none",stroke:"var(--n2)",strokeWidth:wh}),T.jsx("circle",{cx:cr/2,cy:cr/2,r:kh,fill:"none",stroke:p,strokeWidth:wh,strokeLinecap:"round",strokeDasharray:`${E} ${Y4-E}`})]})})}),c&&T.jsxs("div",{className:"ctx-pop",role:"dialog","aria-label":"Context usage",children:[T.jsxs("div",{className:"ctx-pop-head",children:[T.jsx("span",{className:"ctx-pop-title",children:"Context used"}),T.jsxs("span",{className:"ctx-pop-pct",style:{color:p},children:[m.toFixed(1),"%"]})]}),T.jsx("div",{className:"ctx-pop-bar",children:T.jsx("span",{className:"ctx-pop-bar-fill",style:{width:`${m}%`,background:p}})}),x?T.jsxs("dl",{className:"ctx-pop-rows",children:[T.jsxs("div",{className:"ctx-pop-row",children:[T.jsx("dt",{children:"Used"}),T.jsxs("dd",{children:[V4.format(C??0)," tokens"]})]}),T.jsxs("div",{className:"ctx-pop-row",children:[T.jsx("dt",{children:"Window"}),T.jsxs("dd",{children:[V4.format(x)," tokens"]})]})]}):T.jsx("p",{className:"ctx-pop-note",children:"Token counts need a selected model’s window size."}),T.jsx("button",{type:"button",className:"ctx-pop-compact",disabled:!a||n||r!=="idle",onClick:()=>{d(!1),e()},children:n?"Compacting…":"Compact conversation"})]})]}):null}const JR={closed:"Offline - reconnecting when possible",reconnecting:"Reconnecting…",resyncing:"Resyncing…"};function ZR(e){return e.live?e.uploading?"Uploading…":e.cancelling?"Stopping…":e.compacting?"Compacting conversation…":e.running?"Casper is working…":"Ask Casper to build something…":JR[e.connStatus]??"Connecting…"}const G4=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml"]);function eL({sessionId:e,onSend:t,onCancel:n,onCompact:r,onChangeModel:a,onChangeAgent:u,connStatus:l,draft:c}){const[d,h]=O.useState(""),[m,p]=O.useState([]),[E,x]=O.useState(!1),[C,_]=O.useState(null),R=Ne(A=>A.observability.turnStatus),I=Ne(A=>A.observability.compacting),M=Ne(A=>A.currentModeId),j=Ne(A=>A.currentModelId),J=R==="running",te=R==="cancelling",W=c||l==="connected",Z=O.useRef(null),re=O.useRef(null),ie=A=>new Promise((q,z)=>{const L=new FileReader;L.onload=()=>q(L.result.split(",")[1]??""),L.onerror=()=>z(new Error("Failed to read file")),L.readAsDataURL(A)}),Y=O.useCallback(()=>{const A=re.current;A&&(A.style.height="auto",A.style.height=`${Math.min(A.scrollHeight,200)}px`)},[]);O.useEffect(()=>{Y()},[d,Y]);const se=O.useCallback(A=>{const q=A.map(z=>{const L=G4.has(z.type);return{id:`att-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,file:z,isImage:L,previewUrl:L?URL.createObjectURL(z):void 0}});p(z=>[...z,...q])},[]),le=async(A,q,z)=>{const L=[];A.length>0&&L.push({type:"text",text:go+A.map(Se=>Se.path).join(", ")+`
506
+ `});for(let Se=0;Se<A.length;Se++){const He=A[Se],Pe=q[Se];if(He){if(He.kind==="image"&&Pe)try{const Ve=await ie(Pe.file);L.push({type:"image",data:Ve,mimeType:Pe.file.type})}catch{}else if(He.kind==="text"&&Pe)try{const Ve=await Pe.file.text();L.push({type:"text",text:`[File: ${He.path}]
507
+ \`\`\`
508
+ ${Ve}
509
+ \`\`\``})}catch{}}}return z&&L.push({type:"text",text:z}),L},Me=async()=>{const A=d.trim();if(!A&&m.length===0||J||te||I||!W||E)return;let q=[];const z=m;if(z.length>0){if(!e){_("No active session to upload to.");return}x(!0),_(null);try{q=(await bt.uploadFiles(e,z.map(He=>He.file))).files}catch(Se){_(Se.message),x(!1);return}x(!1)}const L=await le(q,z,A);L.length!==0&&(t(L),h(""),z.forEach(Se=>Se.previewUrl&&URL.revokeObjectURL(Se.previewUrl)),p([]),requestAnimationFrame(()=>{re.current&&(re.current.style.height="auto")}))},ge=A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),Me())},ue=O.useCallback(A=>{var L;const q=(L=A.clipboardData)==null?void 0:L.items;if(!q)return;const z=[];for(const Se of Array.from(q))if(Se.kind==="file"&&G4.has(Se.type)){const He=Se.getAsFile();He&&z.push(He)}z.length>0&&(A.preventDefault(),se(z))},[se]),Re=A=>{A.target.files&&se(Array.from(A.target.files)),A.target.value=""},Le=A=>{p(q=>{const z=q.find(L=>L.id===A);return z!=null&&z.previewUrl&&URL.revokeObjectURL(z.previewUrl),q.filter(L=>L.id!==A)})};O.useEffect(()=>()=>{p(A=>(A.forEach(q=>q.previewUrl&&URL.revokeObjectURL(q.previewUrl)),A))},[]);const oe=ZR({live:W,connStatus:l,uploading:E,cancelling:te,compacting:I,running:J}),_e=(d.trim()||m.length>0)&&!J&&!te&&!I&&!E&&W;return T.jsxs("div",{className:"composer",children:[C&&T.jsx("div",{className:"composer-error",children:C}),m.length>0&&T.jsx("div",{className:"composer-attachments",children:m.map(A=>T.jsxs("div",{className:"composer-att",children:[A.isImage&&A.previewUrl?T.jsx("img",{src:A.previewUrl,alt:A.file.name,className:"composer-att-img"}):T.jsxs("div",{className:"composer-att-file",title:A.file.name,children:[T.jsx("span",{className:"composer-att-file-icon",children:"📄"}),T.jsx("span",{className:"composer-att-file-name",children:A.file.name})]}),T.jsx("button",{className:"composer-att-remove",onClick:()=>Le(A.id),"aria-label":`Remove ${A.file.name}`,children:"×"})]},A.id))}),T.jsxs("div",{className:"composer-box",children:[T.jsx("textarea",{ref:re,className:"composer-input",value:d,onChange:A=>h(A.target.value),onKeyDown:ge,onPaste:ue,placeholder:oe,rows:1}),T.jsxs("div",{className:"composer-actions",children:[T.jsx("button",{className:"composer-plus",onClick:()=>{var A;return(A=Z.current)==null?void 0:A.click()},disabled:c||!W||E,title:c?"Send a message first to attach files":"Add photos & files","aria-label":"Add photos and files",children:T.jsx(k3,{size:18})}),T.jsxs("div",{className:"composer-actions-right",children:[T.jsx(KR,{onCompact:r}),T.jsx(QR,{value:M,onChange:u}),T.jsx(GR,{value:j,onChange:a}),J?T.jsx("button",{className:"composer-btn composer-stop",onClick:n,title:"Stop","aria-label":"Stop",children:T.jsx(Dp,{size:15})}):te?T.jsx("button",{className:"composer-btn composer-stop",disabled:!0,title:"Stopping…","aria-label":"Stopping",children:T.jsx(Dp,{size:15})}):T.jsx("button",{className:"composer-btn composer-send",onClick:Me,disabled:!_e,title:E?"Uploading…":"Send","aria-label":E?"Uploading":"Send",children:E?T.jsx(fa,{size:15}):T.jsx(jv,{size:17})})]})]})]}),T.jsx("input",{ref:Z,type:"file",multiple:!0,onChange:Re,className:"composer-file-input"})]})}const tL={connecting:{cls:"busy",label:"Connecting"},replaying:{cls:"busy",label:"Catching up"},connected:{cls:"ok",label:"Live"},reconnecting:{cls:"busy",label:"Reconnecting"},resyncing:{cls:"busy",label:"Resyncing"},closed:{cls:"down",label:"Offline"}};function nL({status:e}){const{cls:t,label:n}=tL[e];return T.jsxs("span",{className:`conndot conndot-${t}`,children:[T.jsx("span",{className:"conndot-blip"}),T.jsx("span",{className:"conndot-label",children:n})]})}function rL({isDraft:e,loadingSessionId:t,connStatus:n,createError:r,onRetryCreate:a,onDismissError:u,navOpen:l,onToggleNav:c,onSend:d,onRetry:h,onRetryTurn:m,onCancel:p,onChangeModel:E,onChangeAgent:x,onCompact:C}){const _=Ne(ie=>{var Y;return(Y=ie.sessions.find(se=>se.sessionId===ie.activeId))==null?void 0:Y.title}),R=Ne(ie=>e&&ie.pending.length===0&&ie.items.length===0),I=Ne(ie=>ie.activeId),M=Ne(ie=>ie.sessionNotice),j=Ne(ie=>ie.dismissSessionNotice),[J,te]=O.useState(!1);if(O.useEffect(()=>{te(!1)},[I]),t)return T.jsxs("main",{className:"chatpane",children:[T.jsxs("header",{className:"chat-head",children:[T.jsx("button",{className:"navbtn",onClick:c,"aria-label":l?"Hide sessions":"Show sessions","aria-expanded":l,children:T.jsx(Zc,{size:20})}),T.jsx("span",{className:"chat-title",children:"Opening session…"})]}),T.jsx("div",{className:"chat-blank",children:T.jsx(fa,{size:48,className:"chat-spinner"})})]});if(r)return T.jsxs("main",{className:"chatpane",children:[T.jsxs("header",{className:"chat-head",children:[T.jsx("button",{className:"navbtn",onClick:c,"aria-label":l?"Hide sessions":"Show sessions","aria-expanded":l,children:T.jsx(Zc,{size:20})}),T.jsx("span",{className:"chat-title",children:"New session"})]}),T.jsxs("div",{className:"chat-blank",children:[T.jsx("p",{className:"chat-blank-title",children:"Couldn't start the session"}),T.jsx("p",{className:"chat-blank-sub",children:r}),T.jsxs("div",{className:"chat-error-actions",children:[T.jsx("button",{className:"btn-primary",onClick:a,children:"Try again"}),T.jsx("button",{className:"btn-ghost",onClick:u,children:"Back to sessions"})]})]})]});const W=T.jsxs("div",{className:"composer-wrap",children:[M&&T.jsxs("div",{className:"notice-banner",role:"alert",children:[T.jsx("span",{className:"notice-icon","aria-hidden":!0,children:"⚠"}),T.jsxs("div",{className:"notice-text",children:[T.jsx("p",{className:"notice-title",children:M.title}),M.fix&&T.jsx("p",{className:"notice-sub",children:M.fix})]}),T.jsx("button",{className:"notice-x",onClick:j,"aria-label":"Dismiss",children:"×"})]}),T.jsx(eL,{sessionId:I,onSend:d,onCancel:p,onCompact:C,onChangeModel:E,onChangeAgent:x,connStatus:n,draft:e})]}),Z=T.jsxs("div",{className:"chat-draft",children:[T.jsxs("div",{className:"draft-hero",children:[T.jsx("img",{className:"draft-logo",src:"/logo.svg",alt:""}),T.jsx("h1",{className:"draft-title",children:"Casper"})]}),W]}),re=T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"chat-body",children:T.jsx(MR,{onRetry:h,onRetryTurn:m})}),W]});return T.jsxs("main",{className:`chatpane chatpane-split ${J?"has-tree":""}`,children:[T.jsxs("div",{className:"chat-col",children:[T.jsxs("header",{className:"chat-head",children:[T.jsx("button",{className:"navbtn",onClick:c,"aria-label":l?"Hide sessions":"Show sessions","aria-expanded":l,children:T.jsx(Zc,{size:20})}),!e&&T.jsx("span",{className:"chat-title",title:_,children:_??"Session"}),!e&&T.jsx(nL,{status:n}),!e&&T.jsx("button",{className:`ftree-toggle ${J?"is-active":""}`,onClick:()=>te(ie=>!ie),title:"Toggle file tree","aria-label":"Toggle file tree","aria-pressed":J,children:T.jsx(Kv,{size:18})})]}),R?Z:re]}),I&&T.jsx("aside",{className:`ftree-aside ${J?"is-open":""}`,children:J&&T.jsx(VR,{sessionId:I,onClose:()=>te(!1)})}),I&&J&&T.jsx("div",{className:"ftree-backdrop",onClick:()=>te(!1),"aria-hidden":!0})]})}function iL({onReady:e}){const[t,n]=O.useState(""),[r,a]=O.useState(null),[u,l]=O.useState(!1),c=async()=>{l(!0),a(null);try{await Rv(t.trim()),e()}catch(d){a(d.message)}finally{l(!1)}};return T.jsxs("div",{className:"gate",children:[T.jsx("img",{className:"gate-logo",src:"/logo.svg",alt:""}),T.jsx("h1",{className:"gate-title",children:"Casper"}),T.jsx("p",{className:"gate-sub",children:"Enter your access token to continue."}),T.jsx("input",{className:"gate-input",type:"password",value:t,placeholder:"access token",onChange:d=>n(d.target.value),onKeyDown:d=>d.key==="Enter"&&c()}),r&&T.jsx("p",{className:"gate-error",children:r}),T.jsx("button",{className:"btn-primary gate-btn",onClick:c,disabled:u,children:u?"Checking…":"Continue"}),T.jsxs("p",{className:"gate-hint",children:["Don't have it? On the machine running Casper, run ",T.jsx("code",{children:"casper token"}),"."]})]})}const Q4=768,aL=150,sL={prompt:"Message",cancel:"Stop",set_mode:"Agent change",set_model:"Model change",exec_command:"Command"};function uL(){const[e,t]=O.useState("checking");return O.useEffect(()=>{e==="checking"&&bt.listSessions().then(n=>{Ne.getState().setSessions(n.sessions),t("ready")}).catch(()=>t("gate"))},[e]),e==="checking"?T.jsx("div",{className:"app-splash"}):e==="gate"?T.jsx(iL,{onReady:()=>t("ready")}):T.jsx(dv,{children:T.jsxs(Uy,{children:[T.jsxs(au,{element:T.jsx(lL,{onLock:()=>t("gate")}),children:[T.jsx(au,{index:!0,element:null}),T.jsx(au,{path:"sessions/:sessionId",element:null})]}),T.jsx(au,{path:"*",element:T.jsx(zy,{to:"/",replace:!0})})]})})}function lL({onLock:e}){var Ze;const t=Ne(),n=Ih(),r=((Ze=ky(Fv))==null?void 0:Ze.params.sessionId)??null,u=r==="new"||!r&&t.activeId===null,l=u?null:r,[c,d]=O.useState("closed"),h=O.useRef(null),[m,p]=O.useState(null),E=O.useRef(null),x=O.useRef(null),C=O.useRef(null),_=O.useRef(0),R=O.useRef(0),I=O.useRef(null),M=O.useCallback(()=>{I.current===null&&(I.current=window.setTimeout(()=>{I.current=null;const me=++R.current;bt.listSessions().then(We=>{me===R.current&&Ne.getState().setSessions(We.sessions)}).catch(()=>{})},aL))},[]);O.useEffect(()=>{bt.models().then(me=>Ne.getState().setModels(me.models)).catch(()=>{}),bt.agents().then(me=>Ne.getState().setAgents(me.agents,me.defaultAgentId)).catch(()=>{}),Ne.getState().sessions.length===0&&M()},[]);const j=O.useCallback(()=>{var me;(me=x.current)==null||me.close(),x.current=null},[]),J=O.useCallback(()=>{j(),Ne.getState().clearActive(),e()},[j,e]),te=Ne(me=>me.watchedPaths);O.useEffect(()=>{var me;c==="connected"&&((me=x.current)==null||me.watchPaths(te))},[te,c]);const W=O.useCallback(async(me,We)=>{if(Ne.getState().activeId===me)return;ie.current=me,j(),d("connecting"),We||Ne.getState().setLoadingSession(me);let mt;if(We)mt=We;else try{mt=await bt.getSession(me)}catch(ot){if(ie.current!==me)return;d("closed"),Ne.getState().setLoadingSession(null),console.error("open session failed:",ot),n("/",{replace:!0});return}if(ie.current!==me)return;Ne.getState().loadDetail(mt,{keepPending:!!We});const lt=new Bv(me,{onEvent:ot=>{Ne.getState().applyEvent(ot),ot.payload.kind==="turn_started"&&M(),ot.payload.kind==="turn_ended"&&setTimeout(M,1200)},onStatus:d,onResync:async()=>{var Pt;const ot=await bt.getSession(me);ie.current===me&&(Ne.getState().loadDetail(ot),(Pt=x.current)==null||Pt.reset(ot.head))},onAck:(ot,Pt,tr)=>{if(Pt)return;const _n=tr??"The server rejected the request.";if(ot==="prompt"){C.current&&Ne.getState().markPendingFailed(C.current,_n);return}console.error(`${sL[ot]??ot} rejected:`,_n)},onFsChanged:ot=>Ne.getState().bumpFsPath(ot),onUnauthorized:J,onServerError:ot=>{console.error("server error:",ot)}},mt.head);x.current=lt,lt.connect()},[j,J,n,M]),Z=O.useCallback(()=>n("/"),[n]),re=O.useCallback(me=>{me!==Ne.getState().activeId&&Ne.getState().setLoadingSession(me)},[]),ie=O.useRef(null),Y=O.useRef(void 0);O.useEffect(()=>{Y.current!==l&&(Y.current=l,l?W(l):(ie.current=null,j(),Ne.getState().clearActive(),M()))},[l,W,j,M]);const se=O.useCallback(async me=>{j(),d("connecting"),p(null),E.current=me;try{const We=await bt.createSession({cwd:me.cwd||void 0,agentId:me.agentId,modelId:me.modelId,freshWorkspace:!me.cwd});M();const mt=We.summary.sessionId;return Y.current=mt,n(x3(mt)),W(mt,We),!0}catch(We){return d("closed"),p(We instanceof Error?We.message:"Failed to create session"),!1}},[j,n,W,M]),le=O.useCallback(()=>{E.current&&se(E.current)},[se]),Me=O.useCallback(()=>{p(null),Z()},[Z]),ge=O.useCallback(async me=>{try{await bt.deleteSession(me)}catch{console.error("delete session failed"),M();return}Ne.getState().activeId===me?Z():M()},[Z,M]),ue=O.useCallback(async(me,We)=>{Ne.setState(mt=>({sessions:mt.sessions.map(lt=>lt.sessionId===me?{...lt,title:We}:lt)})),await bt.renameSession(me,We).catch(()=>{console.error("rename session failed")}),M()},[M]),Re=O.useCallback((me,We)=>{var lt;if(C.current=me,!(((lt=x.current)==null?void 0:lt.prompt(We))??!1)){const ot=x.current?"Not connected to the server - reconnecting. Retry once the status dot is green.":"No active session socket.";Ne.getState().markPendingFailed(me,ot)}},[]),Le=O.useCallback(()=>{ie.current=null,j(),Ne.getState().clearActive(),p(null),n(zv)},[j,n]),oe=O.useCallback(me=>{const We=`pending-${_.current++}`,mt=Bh(me.filter(Pt=>Pt.type==="text").map(Pt=>Pt.text).join(`
510
+ `)),lt=me.some(Pt=>Pt.type==="image"),ot=mt||(lt?"[image]":"[attachment]");if(Ne.getState().addPending(We,ot),u){const{currentModeId:Pt,currentModelId:tr}=Ne.getState();se({agentId:Pt,modelId:tr,title:kv(me)}).then(_n=>{_n?h.current={id:We,content:me}:Ne.getState().markPendingFailed(We,"Could not start the session.")});return}Re(We,me)},[se,u,Re]),_e=O.useCallback((me,We)=>{Ne.setState(mt=>({pending:mt.pending.map(lt=>lt.id===me?{...lt,status:"sending",error:void 0}:lt)})),Re(me,[{type:"text",text:We}])},[Re]),A=O.useCallback(me=>{oe([{type:"text",text:me}])},[oe]),q=O.useCallback(()=>{var me;(me=x.current)==null||me.cancel(),Ne.setState(We=>We.observability.turnStatus==="running"?{observability:{...We.observability,turnStatus:"cancelling"}}:{})},[]),z=O.useCallback(me=>{var We;(We=x.current)==null||We.setModel(me),Ne.setState({currentModelId:me})},[]),L=O.useCallback(me=>{var We;(We=x.current)==null||We.setMode(me),Ne.setState(mt=>({currentModeId:me,sessions:mt.activeId?mt.sessions.map(lt=>lt.sessionId===mt.activeId?{...lt,agentId:me}:lt):mt.sessions}))},[]),Se=O.useCallback(()=>{var me;(me=x.current)==null||me.execCommand("compact"),Ne.setState(We=>({observability:{...We.observability,compacting:!0}})),setTimeout(()=>{Ne.setState(We=>We.observability.compacting?{observability:{...We.observability,compacting:!1}}:{})},12e4)},[]),He=O.useCallback(()=>{Lv(),j(),Ne.getState().clearActive(),n("/",{replace:!0}),e()},[j,n,e]);O.useEffect(()=>(U4(me=>oe([{type:"text",text:me}])),()=>U4(null)),[oe]),O.useEffect(()=>{const me=h.current;!me||c!=="connected"||(h.current=null,Re(me.id,me.content))},[c,Re]);const[Pe,Ve]=O.useState(()=>window.innerWidth>Q4),Ke=O.useCallback(()=>{window.innerWidth<=Q4&&Ve(!1)},[]);return T.jsxs("div",{className:`layout ${Pe?"nav-open":""}`,children:[T.jsx(c9,{sessions:t.sessions,activeId:t.activeId,loadingId:t.loadingSessionId,onOpen:me=>{re(me),Ke()},onNew:()=>{Le(),Ke()},onDelete:ge,onRename:ue,onLock:He}),Pe&&T.jsx("button",{className:"nav-scrim","aria-label":"Close session panel",onClick:()=>Ve(!1)}),T.jsx(rL,{navOpen:Pe,onToggleNav:()=>Ve(me=>!me),isDraft:u,loadingSessionId:t.loadingSessionId,connStatus:c,createError:m,onRetryCreate:le,onDismissError:Me,onSend:oe,onRetry:_e,onRetryTurn:A,onCancel:q,onChangeModel:z,onChangeAgent:L,onCompact:Se})]})}if("serviceWorker"in navigator){const e=!!navigator.serviceWorker.controller;let t=!1;navigator.serviceWorker.addEventListener("controllerchange",()=>{t||!e||(t=!0,window.location.reload())}),navigator.serviceWorker.ready.then(n=>{n.update().catch(()=>{}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&n.update().catch(()=>{})})}).catch(()=>{})}U7.createRoot(document.getElementById("root")).render(T.jsx(iu.StrictMode,{children:T.jsx(uL,{})}));export{zI as _,Sh as g,cL as k};