@workflow/web 4.1.0-beta.33 → 4.1.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/assets/{_basePickBy-BSvRKJRE.js → _basePickBy-DHDscq_f.js} +1 -1
- package/build/client/assets/{_baseUniq-Cab7DZbu.js → _baseUniq-BKX8gPoI.js} +1 -1
- package/build/client/assets/{arc-b7TbQmwf.js → arc--nRtbI8K.js} +1 -1
- package/build/client/assets/{architectureDiagram-VXUJARFQ-Ji8dOswE.js → architectureDiagram-VXUJARFQ-_Qc-tmxG.js} +1 -1
- package/build/client/assets/{blockDiagram-VD42YOAC-CX2Wzsv1.js → blockDiagram-VD42YOAC-dlWy-WHR.js} +1 -1
- package/build/client/assets/{c4Diagram-YG6GDRKO-DqBbtKFb.js → c4Diagram-YG6GDRKO-KwMhvreD.js} +1 -1
- package/build/client/assets/channel-Dzz8OuVo.js +1 -0
- package/build/client/assets/{chunk-4BX2VUAB-CsPvZKuB.js → chunk-4BX2VUAB-B4nDiCVl.js} +1 -1
- package/build/client/assets/{chunk-55IACEB6-C4xaF8F-.js → chunk-55IACEB6-C255NtjG.js} +1 -1
- package/build/client/assets/{chunk-B4BG7PRW-DUd2h51q.js → chunk-B4BG7PRW-DrawBXGd.js} +1 -1
- package/build/client/assets/{chunk-DI55MBZ5-DD4LiUfc.js → chunk-DI55MBZ5-06r_lbX1.js} +1 -1
- package/build/client/assets/{chunk-FMBD7UC4-BB-smuzA.js → chunk-FMBD7UC4-BC40KRYB.js} +1 -1
- package/build/client/assets/{chunk-QN33PNHL-CNrK2tOA.js → chunk-QN33PNHL-sjb1wNJd.js} +1 -1
- package/build/client/assets/{chunk-QZHKN3VN-DmUQnaxW.js → chunk-QZHKN3VN-DnAziOBQ.js} +1 -1
- package/build/client/assets/{chunk-TZMSLE5B-Dwo3zeAN.js → chunk-TZMSLE5B-VkRv8IvH.js} +1 -1
- package/build/client/assets/classDiagram-2ON5EDUG-DABRK9Qx.js +1 -0
- package/build/client/assets/classDiagram-v2-WZHVMYZB-DABRK9Qx.js +1 -0
- package/build/client/assets/clone-j6wLTJEP.js +1 -0
- package/build/client/assets/{code-block-IT6T5CEO-CNZ5MxhC.js → code-block-IT6T5CEO-BOexmHI_.js} +1 -1
- package/build/client/assets/{cose-bilkent-S5V4N54A-BV-y7VDL.js → cose-bilkent-S5V4N54A-Bt5Edg9U.js} +1 -1
- package/build/client/assets/{dagre-6UL2VRFP-BJTkZs6c.js → dagre-6UL2VRFP-YWTvJR0y.js} +1 -1
- package/build/client/assets/{diagram-PSM6KHXK-BaDYUHAJ.js → diagram-PSM6KHXK-BLq_k4Yr.js} +1 -1
- package/build/client/assets/{diagram-QEK2KX5R-DO4MlVP9.js → diagram-QEK2KX5R-BI3cylAU.js} +1 -1
- package/build/client/assets/{diagram-S2PKOQOG--N35p3Fa.js → diagram-S2PKOQOG-Edzm6MKm.js} +1 -1
- package/build/client/assets/{erDiagram-Q2GNP2WA-DlpgBGum.js → erDiagram-Q2GNP2WA-Cnz8iVxF.js} +1 -1
- package/build/client/assets/{flowDiagram-NV44I4VS-GKLhP-VT.js → flowDiagram-NV44I4VS-HZaVPGp0.js} +1 -1
- package/build/client/assets/{ganttDiagram-JELNMOA3-BGT2qQ9m.js → ganttDiagram-JELNMOA3-tGMRJ7F2.js} +1 -1
- package/build/client/assets/{gitGraphDiagram-NY62KEGX-BjzGiQgq.js → gitGraphDiagram-NY62KEGX-BWBaaTab.js} +1 -1
- package/build/client/assets/{graph-CV0EOvGG.js → graph-Cjwr8MRV.js} +1 -1
- package/build/client/assets/{home-D5hRpWJP.js → home-DjQfihAH.js} +3 -3
- package/build/client/assets/{infoDiagram-WHAUD3N6-C8BGiPuO.js → infoDiagram-WHAUD3N6-zxf98IY_.js} +1 -1
- package/build/client/assets/{journeyDiagram-XKPGCS4Q-C-NZgKD8.js → journeyDiagram-XKPGCS4Q-BYSsRfkq.js} +1 -1
- package/build/client/assets/{kanban-definition-3W4ZIXB7-CmCrGz6m.js → kanban-definition-3W4ZIXB7-DwifGaQE.js} +1 -1
- package/build/client/assets/{layout-CGeWZKGg.js → layout-ZKGw0hWT.js} +1 -1
- package/build/client/assets/{manifest-cd7ef090.js → manifest-9c74fca4.js} +1 -1
- package/build/client/assets/mermaid-VLURNSYL-DFbTcPsZ.js +467 -0
- package/build/client/assets/mermaid-VLURNSYL-DKxHcEOp.css +1 -0
- package/build/client/assets/{mermaid.core-CCG8erLJ.js → mermaid.core-CAJGJsUa.js} +5 -5
- package/build/client/assets/{mindmap-definition-VGOIOE7T-CriYhHk6.js → mindmap-definition-VGOIOE7T-Brr4Ue8p.js} +1 -1
- package/build/client/assets/{pieDiagram-ADFJNKIX-BO7R9v-y.js → pieDiagram-ADFJNKIX-BZBT_6SI.js} +1 -1
- package/build/client/assets/{quadrantDiagram-AYHSOK5B-B5XzeB0n.js → quadrantDiagram-AYHSOK5B-B5SsXhND.js} +1 -1
- package/build/client/assets/{requirementDiagram-UZGBJVZJ-Ctzr7pHT.js → requirementDiagram-UZGBJVZJ-C_2tqoJn.js} +1 -1
- package/build/client/assets/root-1lSMDQJV.css +1 -0
- package/build/client/assets/{root-ZDvxwknh.js → root-Dj7SY8Pc.js} +1 -1
- package/build/client/assets/run-detail-CjlkBO0W.js +34 -0
- package/build/client/assets/{sankeyDiagram-TZEHDZUN-3998XFH6.js → sankeyDiagram-TZEHDZUN-DDokcrb5.js} +1 -1
- package/build/client/assets/{sequenceDiagram-WL72ISMW--TYcsXLK.js → sequenceDiagram-WL72ISMW-bQjozZq_.js} +1 -1
- package/build/client/assets/server-build-CSzEkmuy.css +1 -0
- package/build/client/assets/{stateDiagram-FKZM4ZOC-KFOT_-fi.js → stateDiagram-FKZM4ZOC-BsdcjN4g.js} +1 -1
- package/build/client/assets/stateDiagram-v2-4FDKWEC3-zx6ygxzt.js +1 -0
- package/build/client/assets/{timeline-definition-IT6M3QCI-BWpMX-Al.js → timeline-definition-IT6M3QCI-BdQl6KLI.js} +1 -1
- package/build/client/assets/{treemap-KMMF4GRG-BoG-yO-d.js → treemap-KMMF4GRG-BlxmRVP8.js} +1 -1
- package/build/client/assets/use-workflow-graph-jEZXDidH.js +161 -0
- package/build/client/assets/worker-D-HfgUMl.js +1 -0
- package/build/client/assets/{xychartDiagram-PRI3JC2R-TErXr7lU.js → xychartDiagram-PRI3JC2R-SMO1MIZH.js} +1 -1
- package/build/server/assets/{_basePickBy-CX5bp78g.js → _basePickBy-DDu9sZ05.js} +2 -2
- package/build/server/assets/{_baseUniq-DRbeMsjX.js → _baseUniq-CPezvtNf.js} +1 -1
- package/build/server/assets/{app-Ct2AiOlb.js → app-tswq4nS6.js} +1 -1
- package/build/server/assets/{arc-t9dVPERH.js → arc-COFK4tNT.js} +1 -1
- package/build/server/assets/{architecture-U656AL7Q-y8nc6yoa.js → architecture-U656AL7Q-D8-7L2pd.js} +9 -9
- package/build/server/assets/{architectureDiagram-VXUJARFQ-65LZOjwE.js → architectureDiagram-VXUJARFQ-Dmds_6dm.js} +10 -10
- package/build/server/assets/{blockDiagram-VD42YOAC-DTb4W0Pg.js → blockDiagram-VD42YOAC-CXaPa5qT.js} +10 -10
- package/build/server/assets/{c4Diagram-YG6GDRKO-Dr9EimIQ.js → c4Diagram-YG6GDRKO-C3a1-A9U.js} +6 -6
- package/build/server/assets/{channel-CeTZ6cfq.js → channel-Cqc0_Vqq.js} +1 -1
- package/build/server/assets/{chunk-4BX2VUAB-BSqKh-tP.js → chunk-4BX2VUAB-BgHKdQkc.js} +1 -1
- package/build/server/assets/{chunk-55IACEB6-tU3Z2y0r.js → chunk-55IACEB6-BS3kwVef.js} +2 -2
- package/build/server/assets/{chunk-B4BG7PRW-AgB7GYhY.js → chunk-B4BG7PRW-DRp6hZKh.js} +5 -5
- package/build/server/assets/{chunk-DI55MBZ5-CnFyUXi5.js → chunk-DI55MBZ5-D-k1Hmln.js} +3 -3
- package/build/server/assets/{chunk-FMBD7UC4-C4D6Vih_.js → chunk-FMBD7UC4-ypfWW--F.js} +1 -1
- package/build/server/assets/{chunk-QN33PNHL-BWUiZFmI.js → chunk-QN33PNHL-vSeUi0io.js} +1 -1
- package/build/server/assets/{chunk-QZHKN3VN-awnfUhvo.js → chunk-QZHKN3VN-CJweWAVV.js} +1 -1
- package/build/server/assets/{chunk-TZMSLE5B-BrA0CaNT.js → chunk-TZMSLE5B-BG7b2aOM.js} +1 -1
- package/build/server/assets/{classDiagram-2ON5EDUG-Cmc4RXkN.js → classDiagram-2ON5EDUG-B1pjby_P.js} +9 -9
- package/build/server/assets/{classDiagram-v2-WZHVMYZB-Cmc4RXkN.js → classDiagram-v2-WZHVMYZB-B1pjby_P.js} +9 -9
- package/build/server/assets/{clone-DNbOTSdB.js → clone-CXCQCPMW.js} +1 -1
- package/build/server/assets/{code-block-IT6T5CEO-_Bf5MAq6.js → code-block-IT6T5CEO-CFv2mhYI.js} +4 -4
- package/build/server/assets/{cose-bilkent-S5V4N54A-CaReuWZP.js → cose-bilkent-S5V4N54A-Cjbmp-ES.js} +5 -5
- package/build/server/assets/{dagre-6UL2VRFP-COsY4Lyv.js → dagre-6UL2VRFP-BbWNd8fN.js} +10 -10
- package/build/server/assets/{diagram-PSM6KHXK-Dm0Fe5sv.js → diagram-PSM6KHXK-Dl23OO_-.js} +11 -11
- package/build/server/assets/{diagram-QEK2KX5R-CCIvnOol.js → diagram-QEK2KX5R-CNO3f8cc.js} +10 -10
- package/build/server/assets/{diagram-S2PKOQOG-2MfjgdUt.js → diagram-S2PKOQOG-Drj3AuMx.js} +10 -10
- package/build/server/assets/{erDiagram-Q2GNP2WA-C9fdzOgi.js → erDiagram-Q2GNP2WA-BrRdaTe4.js} +8 -8
- package/build/server/assets/{flowDiagram-NV44I4VS-M2lc5NSN.js → flowDiagram-NV44I4VS-eQV3TE_c.js} +9 -9
- package/build/server/assets/{ganttDiagram-JELNMOA3-C6yOZXI7.js → ganttDiagram-JELNMOA3-D4gxbiXq.js} +6 -6
- package/build/server/assets/{gitGraph-F6HP7TQM-CgNkNcS7.js → gitGraph-F6HP7TQM-x0JoiISN.js} +9 -9
- package/build/server/assets/{gitGraphDiagram-NY62KEGX-BohvofvN.js → gitGraphDiagram-NY62KEGX-OFqTvfp8.js} +11 -11
- package/build/server/assets/{graph-Ulmn-yXw.js → graph-gP5x0CkQ.js} +2 -2
- package/build/server/assets/{info-NVLQJR56-B3PAkPx_.js → info-NVLQJR56-r2B6fs17.js} +9 -9
- package/build/server/assets/{infoDiagram-WHAUD3N6-CSjKOLrY.js → infoDiagram-WHAUD3N6-ClKO2as2.js} +9 -9
- package/build/server/assets/{journeyDiagram-XKPGCS4Q-CejSWxVS.js → journeyDiagram-XKPGCS4Q-Br1X2sDn.js} +8 -8
- package/build/server/assets/{kanban-definition-3W4ZIXB7-BhuBMvlP.js → kanban-definition-3W4ZIXB7-DpE4JZsR.js} +6 -6
- package/build/server/assets/{layout-B-L3j8Rc.js → layout-oT-uoF-3.js} +4 -4
- package/build/server/assets/{linear-Dp71QvUo.js → linear-BOu-nm13.js} +1 -1
- package/build/server/assets/{mermaid-VLURNSYL-CdyI-shq.js → mermaid-VLURNSYL-BBI-ZyxS.js} +4 -4
- package/build/server/assets/{mermaid-parser.core-DdkPioAn.js → mermaid-parser.core-COrs4xZP.js} +11 -11
- package/build/server/assets/{mermaid.core-CemR7tEN.js → mermaid.core-DSfg9DTI.js} +32 -32
- package/build/server/assets/{mindmap-definition-VGOIOE7T-B4vd6EZB.js → mindmap-definition-VGOIOE7T-Dls2nsge.js} +7 -7
- package/build/server/assets/{packet-BFZMPI3H-DUWEPgP3.js → packet-BFZMPI3H-DYdsV9oG.js} +9 -9
- package/build/server/assets/{pie-7BOR55EZ-DHneZ_Ix.js → pie-7BOR55EZ-Ib4gWu3n.js} +9 -9
- package/build/server/assets/{pieDiagram-ADFJNKIX-Bzr8lGKZ.js → pieDiagram-ADFJNKIX-B2HEjzVX.js} +11 -11
- package/build/server/assets/{quadrantDiagram-AYHSOK5B-Dl_o12VO.js → quadrantDiagram-AYHSOK5B-DAo4x7XW.js} +6 -6
- package/build/server/assets/{radar-NHE76QYJ-CnmLDbJw.js → radar-NHE76QYJ-EcIj4-c2.js} +9 -9
- package/build/server/assets/{requirementDiagram-UZGBJVZJ-Cbh0w4zx.js → requirementDiagram-UZGBJVZJ-5NKwD2mU.js} +7 -7
- package/build/server/assets/{sankeyDiagram-TZEHDZUN-BOPcYcn_.js → sankeyDiagram-TZEHDZUN-CLeMeI5j.js} +5 -5
- package/build/server/assets/{sequenceDiagram-WL72ISMW-BKMEdsnU.js → sequenceDiagram-WL72ISMW-ow3l4Fri.js} +7 -7
- package/build/server/assets/{server-build-D669WCiG.js → server-build-CuKE6nMq.js} +7782 -2600
- package/build/server/assets/{stateDiagram-FKZM4ZOC-DA26FXV3.js → stateDiagram-FKZM4ZOC-DzFqDl8d.js} +12 -12
- package/build/server/assets/{stateDiagram-v2-4FDKWEC3-B_ssjkDp.js → stateDiagram-v2-4FDKWEC3-CvVm2xRM.js} +8 -8
- package/build/server/assets/{timeline-definition-IT6M3QCI-BPsZLSW8.js → timeline-definition-IT6M3QCI-Bl1QIB4i.js} +6 -6
- package/build/server/assets/{token-PtbssUN9.js → token-B0LCPjeP.js} +3 -3
- package/build/server/assets/{token-util-DCZzRns1.js → token-util-CIfvkrUB.js} +1 -1
- package/build/server/assets/{token-util-C4BdVs1n.js → token-util-Cu8l3cno.js} +2 -2
- package/build/server/assets/{treemap-KMMF4GRG-CbDzD3EG.js → treemap-KMMF4GRG-DwpOgdit.js} +9 -9
- package/build/server/assets/{xychartDiagram-PRI3JC2R-CSYLDeXX.js → xychartDiagram-PRI3JC2R--odlRvS3.js} +6 -6
- package/build/server/index.js +1 -1
- package/package.json +6 -6
- package/build/client/assets/channel-BB5IrGvL.js +0 -1
- package/build/client/assets/classDiagram-2ON5EDUG-BeXXmaeG.js +0 -1
- package/build/client/assets/classDiagram-v2-WZHVMYZB-BeXXmaeG.js +0 -1
- package/build/client/assets/clone-BAxTKVXy.js +0 -1
- package/build/client/assets/katex-BbEIqZs1.js +0 -261
- package/build/client/assets/mermaid-VLURNSYL-BJjrZ9jp.css +0 -1
- package/build/client/assets/mermaid-VLURNSYL-DZspIWfV.js +0 -478
- package/build/client/assets/root-AOcWXHD9.css +0 -1
- package/build/client/assets/run-detail-DPyEEMdn.js +0 -24
- package/build/client/assets/server-build-YTP8tmIR.css +0 -1
- package/build/client/assets/stateDiagram-v2-4FDKWEC3-B_evGZn5.js +0 -1
- package/build/client/assets/use-workflow-graph-CSOGwdVi.js +0 -149
- package/build/client/assets/worker-DIhmOA3S.js +0 -1
- package/build/server/assets/katex-B7AUlPkp.js +0 -14519
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-CAJGJsUa.js","assets/index-DS8xNWtl.js","assets/transform-BcRQlmJM.js","assets/code-block-IT6T5CEO-BOexmHI_.js","assets/katex-CyAuISp2.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var n3=Object.defineProperty;var a3=(e,t,r)=>t in e?n3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ge=(e,t,r)=>a3(e,typeof t!="symbol"?t+"":t,r);import{b as k,v as T,f as u1,G as c1,R as J,B as i3,g as d1}from"./index-DS8xNWtl.js";function mn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Wc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function f1(...e){return t=>{let r=!1;const n=e.map(a=>{const i=Wc(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():Wc(e[a],null)}}}}function ga(...e){return k.useCallback(f1(...e),e)}function HM(e,t){const r=k.createContext(t),n=i=>{const{children:s,...o}=i,l=k.useMemo(()=>o,Object.values(o));return T.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function a(i){const s=k.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,a]}function h1(e,t=[]){let r=[];function n(i,s){const o=k.createContext(s),l=r.length;r=[...r,s];const u=c=>{var E;const{scope:f,children:m,...b}=c,y=((E=f==null?void 0:f[e])==null?void 0:E[l])||o,w=k.useMemo(()=>b,Object.values(b));return T.jsx(y.Provider,{value:w,children:m})};u.displayName=i+"Provider";function d(c,f){var y;const m=((y=f==null?void 0:f[e])==null?void 0:y[l])||o,b=k.useContext(m);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const a=()=>{const i=r.map(s=>k.createContext(s));return function(o){const l=(o==null?void 0:o[e])||i;return k.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return a.scopeName=e,[n,s3(a,...t)]}function s3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const s=n.reduce((o,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...o,...c}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function o3(e){const t=l3(e),r=k.forwardRef((n,a)=>{const{children:i,...s}=n,o=k.Children.toArray(i),l=o.find(c3);if(l){const u=l.props.children,d=o.map(c=>c===l?k.Children.count(u)>1?k.Children.only(null):k.isValidElement(u)?u.props.children:null:c);return T.jsx(t,{...s,ref:a,children:k.isValidElement(u)?k.cloneElement(u,void 0,d):null})}return T.jsx(t,{...s,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}function l3(e){const t=k.forwardRef((r,n)=>{const{children:a,...i}=r;if(k.isValidElement(a)){const s=f3(a),o=d3(i,a.props);return a.type!==k.Fragment&&(o.ref=n?f1(n,s):s),k.cloneElement(a,o)}return k.Children.count(a)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var m1=Symbol("radix.slottable");function u3(e){const t=({children:r})=>T.jsx(T.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=m1,t}function c3(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===m1}function d3(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...o)=>{const l=i(...o);return a(...o),l}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function f3(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var h3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ba=h3.reduce((e,t)=>{const r=o3(`Primitive.${t}`),n=k.forwardRef((a,i)=>{const{asChild:s,...o}=a,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),T.jsx(l,{...o,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function m3(e,t){e&&u1.flushSync(()=>e.dispatchEvent(t))}function Bo(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function p3(e,t=globalThis==null?void 0:globalThis.document){const r=Bo(e);k.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var g3="DismissableLayer",bu="dismissableLayer.update",b3="dismissableLayer.pointerDownOutside",y3="dismissableLayer.focusOutside",Gc,p1=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g1=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:o,...l}=e,u=k.useContext(p1),[d,c]=k.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=k.useState({}),b=ga(t,W=>c(W)),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),E=y.indexOf(w),A=d?y.indexOf(d):-1,N=u.layersWithOutsidePointerEventsDisabled.size>0,F=A>=E,U=T3(W=>{const X=W.target,Z=[...u.branches].some(B=>B.contains(X));!F||Z||(a==null||a(W),s==null||s(W),W.defaultPrevented||o==null||o())},f),O=v3(W=>{const X=W.target;[...u.branches].some(B=>B.contains(X))||(i==null||i(W),s==null||s(W),W.defaultPrevented||o==null||o())},f);return p3(W=>{A===u.layers.size-1&&(n==null||n(W),!W.defaultPrevented&&o&&(W.preventDefault(),o()))},f),k.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gc=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Yc(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Gc)}},[d,f,r,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Yc())},[d,u]),k.useEffect(()=>{const W=()=>m({});return document.addEventListener(bu,W),()=>document.removeEventListener(bu,W)},[]),T.jsx(ba.div,{...l,ref:b,style:{pointerEvents:N?F?"auto":"none":void 0,...e.style},onFocusCapture:mn(e.onFocusCapture,O.onFocusCapture),onBlurCapture:mn(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:mn(e.onPointerDownCapture,U.onPointerDownCapture)})});g1.displayName=g3;var x3="DismissableLayerBranch",E3=k.forwardRef((e,t)=>{const r=k.useContext(p1),n=k.useRef(null),a=ga(t,n);return k.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),T.jsx(ba.div,{...e,ref:a})});E3.displayName=x3;function T3(e,t=globalThis==null?void 0:globalThis.document){const r=Bo(e),n=k.useRef(!1),a=k.useRef(()=>{});return k.useEffect(()=>{const i=o=>{if(o.target&&!n.current){let l=function(){b1(b3,r,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function v3(e,t=globalThis==null?void 0:globalThis.document){const r=Bo(e),n=k.useRef(!1);return k.useEffect(()=>{const a=i=>{i.target&&!n.current&&b1(y3,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Yc(){const e=new CustomEvent(bu);document.dispatchEvent(e)}function b1(e,t,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?m3(a,i):a.dispatchEvent(i)}var ca=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},w3=c1[" useId ".trim().toString()]||(()=>{}),k3=0;function A3(e){const[t,r]=k.useState(w3());return ca(()=>{r(n=>n??String(k3++))},[e]),t?`radix-${t}`:""}const S3=["top","right","bottom","left"],Wn=Math.min,cr=Math.max,fo=Math.round,As=Math.floor,Zr=e=>({x:e,y:e}),_3={left:"right",right:"left",bottom:"top",top:"bottom"},C3={start:"end",end:"start"};function yu(e,t,r){return cr(e,Wn(t,r))}function En(e,t){return typeof e=="function"?e(t):e}function Tn(e){return e.split("-")[0]}function Ka(e){return e.split("-")[1]}function w0(e){return e==="x"?"y":"x"}function k0(e){return e==="y"?"height":"width"}const N3=new Set(["top","bottom"]);function Xr(e){return N3.has(Tn(e))?"y":"x"}function A0(e){return w0(Xr(e))}function I3(e,t,r){r===void 0&&(r=!1);const n=Ka(e),a=A0(e),i=k0(a);let s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ho(s)),[s,ho(s)]}function R3(e){const t=ho(e);return[xu(e),t,xu(t)]}function xu(e){return e.replace(/start|end/g,t=>C3[t])}const Xc=["left","right"],Kc=["right","left"],O3=["top","bottom"],L3=["bottom","top"];function D3(e,t,r){switch(e){case"top":case"bottom":return r?t?Kc:Xc:t?Xc:Kc;case"left":case"right":return t?O3:L3;default:return[]}}function M3(e,t,r,n){const a=Ka(e);let i=D3(Tn(e),r==="start",n);return a&&(i=i.map(s=>s+"-"+a),t&&(i=i.concat(i.map(xu)))),i}function ho(e){return e.replace(/left|right|bottom|top/g,t=>_3[t])}function P3(e){return{top:0,right:0,bottom:0,left:0,...e}}function y1(e){return typeof e!="number"?P3(e):{top:e,right:e,bottom:e,left:e}}function mo(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function Qc(e,t,r){let{reference:n,floating:a}=e;const i=Xr(t),s=A0(t),o=k0(s),l=Tn(t),u=i==="y",d=n.x+n.width/2-a.width/2,c=n.y+n.height/2-a.height/2,f=n[o]/2-a[o]/2;let m;switch(l){case"top":m={x:d,y:n.y-a.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:c};break;case"left":m={x:n.x-a.width,y:c};break;default:m={x:n.x,y:n.y}}switch(Ka(t)){case"start":m[s]-=f*(r&&u?-1:1);break;case"end":m[s]+=f*(r&&u?-1:1);break}return m}const B3=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,o=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:c}=Qc(u,n,l),f=n,m={},b=0;for(let y=0;y<o.length;y++){const{name:w,fn:E}=o[y],{x:A,y:N,data:F,reset:U}=await E({x:d,y:c,initialPlacement:n,placement:f,strategy:a,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=A??d,c=N??c,m={...m,[w]:{...m[w],...F}},U&&b<=50&&(b++,typeof U=="object"&&(U.placement&&(f=U.placement),U.rects&&(u=U.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):U.rects),{x:d,y:c}=Qc(u,f,l)),y=-1)}return{x:d,y:c,placement:f,strategy:a,middlewareData:m}};async function Wi(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:m=0}=En(t,e),b=y1(m),w=o[f?c==="floating"?"reference":"floating":c],E=mo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(w)))==null||r?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:d,strategy:l})),A=c==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),F=await(i.isElement==null?void 0:i.isElement(N))?await(i.getScale==null?void 0:i.getScale(N))||{x:1,y:1}:{x:1,y:1},U=mo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:A,offsetParent:N,strategy:l}):A);return{top:(E.top-U.top+b.top)/F.y,bottom:(U.bottom-E.bottom+b.bottom)/F.y,left:(E.left-U.left+b.left)/F.x,right:(U.right-E.right+b.right)/F.x}}const F3=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:d=0}=En(e,t)||{};if(u==null)return{};const c=y1(d),f={x:r,y:n},m=A0(a),b=k0(m),y=await s.getDimensions(u),w=m==="y",E=w?"top":"left",A=w?"bottom":"right",N=w?"clientHeight":"clientWidth",F=i.reference[b]+i.reference[m]-f[m]-i.floating[b],U=f[m]-i.reference[m],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let W=O?O[N]:0;(!W||!await(s.isElement==null?void 0:s.isElement(O)))&&(W=o.floating[N]||i.floating[b]);const X=F/2-U/2,Z=W/2-y[b]/2-1,B=Wn(c[E],Z),re=Wn(c[A],Z),j=B,S=W-y[b]-re,H=W/2-y[b]/2+X,$=yu(j,H,S),q=!l.arrow&&Ka(a)!=null&&H!==$&&i.reference[b]/2-(H<j?B:re)-y[b]/2<0,V=q?H<j?H-j:H-S:0;return{[m]:f[m]+V,data:{[m]:$,centerOffset:H-$-V,...q&&{alignmentOffset:V}},reset:q}}}),H3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:s,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...w}=En(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const E=Tn(a),A=Xr(o),N=Tn(o)===o,F=await(l.isRTL==null?void 0:l.isRTL(u.floating)),U=f||(N||!y?[ho(o)]:R3(o)),O=b!=="none";!f&&O&&U.push(...M3(o,y,b,F));const W=[o,...U],X=await Wi(t,w),Z=[];let B=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&Z.push(X[E]),c){const H=I3(a,s,F);Z.push(X[H[0]],X[H[1]])}if(B=[...B,{placement:a,overflows:Z}],!Z.every(H=>H<=0)){var re,j;const H=(((re=i.flip)==null?void 0:re.index)||0)+1,$=W[H];if($&&(!(c==="alignment"?A!==Xr($):!1)||B.every(G=>Xr(G.placement)===A?G.overflows[0]>0:!0)))return{data:{index:H,overflows:B},reset:{placement:$}};let q=(j=B.filter(V=>V.overflows[0]<=0).sort((V,G)=>V.overflows[1]-G.overflows[1])[0])==null?void 0:j.placement;if(!q)switch(m){case"bestFit":{var S;const V=(S=B.filter(G=>{if(O){const se=Xr(G.placement);return se===A||se==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(se=>se>0).reduce((se,C)=>se+C,0)]).sort((G,se)=>G[1]-se[1])[0])==null?void 0:S[0];V&&(q=V);break}case"initialPlacement":q=o;break}if(a!==q)return{reset:{placement:q}}}return{}}}};function Jc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zc(e){return S3.some(t=>e[t]>=0)}const z3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=En(e,t);switch(n){case"referenceHidden":{const i=await Wi(t,{...a,elementContext:"reference"}),s=Jc(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zc(s)}}}case"escaped":{const i=await Wi(t,{...a,altBoundary:!0}),s=Jc(i,r.floating);return{data:{escapedOffsets:s,escaped:Zc(s)}}}default:return{}}}}},x1=new Set(["left","top"]);async function U3(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=Tn(r),o=Ka(r),l=Xr(r)==="y",u=x1.has(s)?-1:1,d=i&&l?-1:1,c=En(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:b}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return o&&typeof b=="number"&&(m=o==="end"?b*-1:b),l?{x:m*d,y:f*u}:{x:f*u,y:m*d}}const j3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:s,middlewareData:o}=t,l=await U3(t,e);return s===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:s}}}}},$3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:o={fn:w=>{let{x:E,y:A}=w;return{x:E,y:A}}},...l}=En(e,t),u={x:r,y:n},d=await Wi(t,l),c=Xr(Tn(a)),f=w0(c);let m=u[f],b=u[c];if(i){const w=f==="y"?"top":"left",E=f==="y"?"bottom":"right",A=m+d[w],N=m-d[E];m=yu(A,m,N)}if(s){const w=c==="y"?"top":"left",E=c==="y"?"bottom":"right",A=b+d[w],N=b-d[E];b=yu(A,b,N)}const y=o.fn({...t,[f]:m,[c]:b});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[f]:i,[c]:s}}}}}},q3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:i,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=En(e,t),d={x:r,y:n},c=Xr(a),f=w0(c);let m=d[f],b=d[c];const y=En(o,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const N=f==="y"?"height":"width",F=i.reference[f]-i.floating[N]+w.mainAxis,U=i.reference[f]+i.reference[N]-w.mainAxis;m<F?m=F:m>U&&(m=U)}if(u){var E,A;const N=f==="y"?"width":"height",F=x1.has(Tn(a)),U=i.reference[c]-i.floating[N]+(F&&((E=s.offset)==null?void 0:E[c])||0)+(F?0:w.crossAxis),O=i.reference[c]+i.reference[N]+(F?0:((A=s.offset)==null?void 0:A[c])||0)-(F?w.crossAxis:0);b<U?b=U:b>O&&(b=O)}return{[f]:m,[c]:b}}}},V3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:i,platform:s,elements:o}=t,{apply:l=()=>{},...u}=En(e,t),d=await Wi(t,u),c=Tn(a),f=Ka(a),m=Xr(a)==="y",{width:b,height:y}=i.floating;let w,E;c==="top"||c==="bottom"?(w=c,E=f===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(E=c,w=f==="end"?"top":"bottom");const A=y-d.top-d.bottom,N=b-d.left-d.right,F=Wn(y-d[w],A),U=Wn(b-d[E],N),O=!t.middlewareData.shift;let W=F,X=U;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(X=N),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(W=A),O&&!f){const B=cr(d.left,0),re=cr(d.right,0),j=cr(d.top,0),S=cr(d.bottom,0);m?X=b-2*(B!==0||re!==0?B+re:cr(d.left,d.right)):W=y-2*(j!==0||S!==0?j+S:cr(d.top,d.bottom))}await l({...t,availableWidth:X,availableHeight:W});const Z=await s.getDimensions(o.floating);return b!==Z.width||y!==Z.height?{reset:{rects:!0}}:{}}}};function Fo(){return typeof window<"u"}function Qa(e){return E1(e)?(e.nodeName||"").toLowerCase():"#document"}function fr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(E1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function E1(e){return Fo()?e instanceof Node||e instanceof fr(e).Node:!1}function Mr(e){return Fo()?e instanceof Element||e instanceof fr(e).Element:!1}function tn(e){return Fo()?e instanceof HTMLElement||e instanceof fr(e).HTMLElement:!1}function ed(e){return!Fo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fr(e).ShadowRoot}const W3=new Set(["inline","contents"]);function ss(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Pr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!W3.has(a)}const G3=new Set(["table","td","th"]);function Y3(e){return G3.has(Qa(e))}const X3=[":popover-open",":modal"];function Ho(e){return X3.some(t=>{try{return e.matches(t)}catch{return!1}})}const K3=["transform","translate","scale","rotate","perspective"],Q3=["transform","translate","scale","rotate","perspective","filter"],J3=["paint","layout","strict","content"];function S0(e){const t=_0(),r=Mr(e)?Pr(e):e;return K3.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Q3.some(n=>(r.willChange||"").includes(n))||J3.some(n=>(r.contain||"").includes(n))}function Z3(e){let t=Gn(e);for(;tn(t)&&!$a(t);){if(S0(t))return t;if(Ho(t))return null;t=Gn(t)}return null}function _0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eb=new Set(["html","body","#document"]);function $a(e){return eb.has(Qa(e))}function Pr(e){return fr(e).getComputedStyle(e)}function zo(e){return Mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gn(e){if(Qa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ed(e)&&e.host||rn(e);return ed(t)?t.host:t}function T1(e){const t=Gn(e);return $a(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&ss(t)?t:T1(t)}function Gi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=T1(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=fr(a);if(i){const o=Eu(s);return t.concat(s,s.visualViewport||[],ss(a)?a:[],o&&r?Gi(o):[])}return t.concat(a,Gi(a,[],r))}function Eu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function v1(e){const t=Pr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=tn(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,o=fo(r)!==i||fo(n)!==s;return o&&(r=i,n=s),{width:r,height:n,$:o}}function C0(e){return Mr(e)?e:e.contextElement}function Ma(e){const t=C0(e);if(!tn(t))return Zr(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=v1(t);let s=(i?fo(r.width):r.width)/n,o=(i?fo(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const tb=Zr(0);function w1(e){const t=fr(e);return!_0()||!t.visualViewport?tb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rb(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fr(e)?!1:t}function da(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=C0(e);let s=Zr(1);t&&(n?Mr(n)&&(s=Ma(n)):s=Ma(e));const o=rb(i,r,n)?w1(i):Zr(0);let l=(a.left+o.x)/s.x,u=(a.top+o.y)/s.y,d=a.width/s.x,c=a.height/s.y;if(i){const f=fr(i),m=n&&Mr(n)?fr(n):n;let b=f,y=Eu(b);for(;y&&n&&m!==b;){const w=Ma(y),E=y.getBoundingClientRect(),A=Pr(y),N=E.left+(y.clientLeft+parseFloat(A.paddingLeft))*w.x,F=E.top+(y.clientTop+parseFloat(A.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,c*=w.y,l+=N,u+=F,b=fr(y),y=Eu(b)}}return mo({width:d,height:c,x:l,y:u})}function Uo(e,t){const r=zo(e).scrollLeft;return t?t.left+r:da(rn(e)).left+r}function k1(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Uo(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function nb(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",s=rn(n),o=t?Ho(t.floating):!1;if(n===s||o&&i)return r;let l={scrollLeft:0,scrollTop:0},u=Zr(1);const d=Zr(0),c=tn(n);if((c||!c&&!i)&&((Qa(n)!=="body"||ss(s))&&(l=zo(n)),tn(n))){const m=da(n);u=Ma(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const f=s&&!c&&!i?k1(s,l):Zr(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:r.y*u.y-l.scrollTop*u.y+d.y+f.y}}function ab(e){return Array.from(e.getClientRects())}function ib(e){const t=rn(e),r=zo(e),n=e.ownerDocument.body,a=cr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=cr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Uo(e);const o=-r.scrollTop;return Pr(n).direction==="rtl"&&(s+=cr(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:o}}const td=25;function sb(e,t){const r=fr(e),n=rn(e),a=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,o=0,l=0;if(a){i=a.width,s=a.height;const d=_0();(!d||d&&t==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}const u=Uo(n);if(u<=0){const d=n.ownerDocument,c=d.body,f=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(n.clientWidth-c.clientWidth-m);b<=td&&(i-=b)}else u<=td&&(i+=u);return{width:i,height:s,x:o,y:l}}const ob=new Set(["absolute","fixed"]);function lb(e,t){const r=da(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=tn(e)?Ma(e):Zr(1),s=e.clientWidth*i.x,o=e.clientHeight*i.y,l=a*i.x,u=n*i.y;return{width:s,height:o,x:l,y:u}}function rd(e,t,r){let n;if(t==="viewport")n=sb(e,r);else if(t==="document")n=ib(rn(e));else if(Mr(t))n=lb(t,r);else{const a=w1(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return mo(n)}function A1(e,t){const r=Gn(e);return r===t||!Mr(r)||$a(r)?!1:Pr(r).position==="fixed"||A1(r,t)}function ub(e,t){const r=t.get(e);if(r)return r;let n=Gi(e,[],!1).filter(o=>Mr(o)&&Qa(o)!=="body"),a=null;const i=Pr(e).position==="fixed";let s=i?Gn(e):e;for(;Mr(s)&&!$a(s);){const o=Pr(s),l=S0(s);!l&&o.position==="fixed"&&(a=null),(i?!l&&!a:!l&&o.position==="static"&&!!a&&ob.has(a.position)||ss(s)&&!l&&A1(e,s))?n=n.filter(d=>d!==s):a=o,s=Gn(s)}return t.set(e,n),n}function cb(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const s=[...r==="clippingAncestors"?Ho(t)?[]:ub(t,this._c):[].concat(r),n],o=s[0],l=s.reduce((u,d)=>{const c=rd(t,d,a);return u.top=cr(c.top,u.top),u.right=Wn(c.right,u.right),u.bottom=Wn(c.bottom,u.bottom),u.left=cr(c.left,u.left),u},rd(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function db(e){const{width:t,height:r}=v1(e);return{width:t,height:r}}function fb(e,t,r){const n=tn(t),a=rn(t),i=r==="fixed",s=da(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const l=Zr(0);function u(){l.x=Uo(a)}if(n||!n&&!i)if((Qa(t)!=="body"||ss(a))&&(o=zo(t)),n){const m=da(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else a&&u();i&&!n&&a&&u();const d=a&&!n&&!i?k1(a,o):Zr(0),c=s.left+o.scrollLeft-l.x-d.x,f=s.top+o.scrollTop-l.y-d.y;return{x:c,y:f,width:s.width,height:s.height}}function El(e){return Pr(e).position==="static"}function nd(e,t){if(!tn(e)||Pr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return rn(e)===r&&(r=r.ownerDocument.body),r}function S1(e,t){const r=fr(e);if(Ho(e))return r;if(!tn(e)){let a=Gn(e);for(;a&&!$a(a);){if(Mr(a)&&!El(a))return a;a=Gn(a)}return r}let n=nd(e,t);for(;n&&Y3(n)&&El(n);)n=nd(n,t);return n&&$a(n)&&El(n)&&!S0(n)?r:n||Z3(e)||r}const hb=async function(e){const t=this.getOffsetParent||S1,r=this.getDimensions,n=await r(e.floating);return{reference:fb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mb(e){return Pr(e).direction==="rtl"}const pb={convertOffsetParentRelativeRectToViewportRelativeRect:nb,getDocumentElement:rn,getClippingRect:cb,getOffsetParent:S1,getElementRects:hb,getClientRects:ab,getDimensions:db,getScale:Ma,isElement:Mr,isRTL:mb};function _1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gb(e,t){let r=null,n;const a=rn(e);function i(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:c,width:f,height:m}=u;if(o||t(),!f||!m)return;const b=As(c),y=As(a.clientWidth-(d+f)),w=As(a.clientHeight-(c+m)),E=As(d),N={rootMargin:-b+"px "+-y+"px "+-w+"px "+-E+"px",threshold:cr(0,Wn(1,l))||1};let F=!0;function U(O){const W=O[0].intersectionRatio;if(W!==l){if(!F)return s();W?s(!1,W):n=setTimeout(()=>{s(!1,1e-7)},1e3)}W===1&&!_1(u,e.getBoundingClientRect())&&s(),F=!1}try{r=new IntersectionObserver(U,{...N,root:a.ownerDocument})}catch{r=new IntersectionObserver(U,N)}r.observe(e)}return s(!0),i}function bb(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=C0(e),d=a||i?[...u?Gi(u):[],...Gi(t)]:[];d.forEach(E=>{a&&E.addEventListener("scroll",r,{passive:!0}),i&&E.addEventListener("resize",r)});const c=u&&o?gb(u,r):null;let f=-1,m=null;s&&(m=new ResizeObserver(E=>{let[A]=E;A&&A.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var N;(N=m)==null||N.observe(t)})),r()}),u&&!l&&m.observe(u),m.observe(t));let b,y=l?da(e):null;l&&w();function w(){const E=da(e);y&&!_1(y,E)&&r(),y=E,b=requestAnimationFrame(w)}return r(),()=>{var E;d.forEach(A=>{a&&A.removeEventListener("scroll",r),i&&A.removeEventListener("resize",r)}),c==null||c(),(E=m)==null||E.disconnect(),m=null,l&&cancelAnimationFrame(b)}}const yb=j3,xb=$3,Eb=H3,Tb=V3,vb=z3,ad=F3,wb=q3,kb=(e,t,r)=>{const n=new Map,a={platform:pb,...r},i={...a.platform,_c:n};return B3(e,t,{...a,platform:i})};var Ab=typeof document<"u",Sb=function(){},eo=Ab?k.useLayoutEffect:Sb;function po(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!po(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!po(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function C1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function id(e,t){const r=C1(e);return Math.round(t*r)/r}function Tl(e){const t=k.useRef(e);return eo(()=>{t.current=e}),t}function _b(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[d,c]=k.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=k.useState(n);po(f,n)||m(n);const[b,y]=k.useState(null),[w,E]=k.useState(null),A=k.useCallback(G=>{G!==O.current&&(O.current=G,y(G))},[]),N=k.useCallback(G=>{G!==W.current&&(W.current=G,E(G))},[]),F=i||b,U=s||w,O=k.useRef(null),W=k.useRef(null),X=k.useRef(d),Z=l!=null,B=Tl(l),re=Tl(a),j=Tl(u),S=k.useCallback(()=>{if(!O.current||!W.current)return;const G={placement:t,strategy:r,middleware:f};re.current&&(G.platform=re.current),kb(O.current,W.current,G).then(se=>{const C={...se,isPositioned:j.current!==!1};H.current&&!po(X.current,C)&&(X.current=C,u1.flushSync(()=>{c(C)}))})},[f,t,r,re,j]);eo(()=>{u===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,c(G=>({...G,isPositioned:!1})))},[u]);const H=k.useRef(!1);eo(()=>(H.current=!0,()=>{H.current=!1}),[]),eo(()=>{if(F&&(O.current=F),U&&(W.current=U),F&&U){if(B.current)return B.current(F,U,S);S()}},[F,U,S,B,Z]);const $=k.useMemo(()=>({reference:O,floating:W,setReference:A,setFloating:N}),[A,N]),q=k.useMemo(()=>({reference:F,floating:U}),[F,U]),V=k.useMemo(()=>{const G={position:r,left:0,top:0};if(!q.floating)return G;const se=id(q.floating,d.x),C=id(q.floating,d.y);return o?{...G,transform:"translate("+se+"px, "+C+"px)",...C1(q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:C}},[r,o,q.floating,d.x,d.y]);return k.useMemo(()=>({...d,update:S,refs:$,elements:q,floatingStyles:V}),[d,S,$,q,V])}const Cb=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?ad({element:n.current,padding:a}).fn(r):{}:n?ad({element:n,padding:a}).fn(r):{}}}},Nb=(e,t)=>({...yb(e),options:[e,t]}),Ib=(e,t)=>({...xb(e),options:[e,t]}),Rb=(e,t)=>({...wb(e),options:[e,t]}),Ob=(e,t)=>({...Eb(e),options:[e,t]}),Lb=(e,t)=>({...Tb(e),options:[e,t]}),Db=(e,t)=>({...vb(e),options:[e,t]}),Mb=(e,t)=>({...Cb(e),options:[e,t]});var Pb="Arrow",N1=k.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...i}=e;return T.jsx(ba.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:T.jsx("polygon",{points:"0,0 30,0 15,10"})})});N1.displayName=Pb;var Bb=N1;function Fb(e){const[t,r]=k.useState(void 0);return ca(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let s,o;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,o=u.blockSize}else s=e.offsetWidth,o=e.offsetHeight;r({width:s,height:o})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var N0="Popper",[I1,R1]=h1(N0),[Hb,O1]=I1(N0),L1=e=>{const{__scopePopper:t,children:r}=e,[n,a]=k.useState(null);return T.jsx(Hb,{scope:t,anchor:n,onAnchorChange:a,children:r})};L1.displayName=N0;var D1="PopperAnchor",M1=k.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,i=O1(D1,r),s=k.useRef(null),o=ga(t,s),l=k.useRef(null);return k.useEffect(()=>{const u=l.current;l.current=(n==null?void 0:n.current)||s.current,u!==l.current&&i.onAnchorChange(l.current)}),n?null:T.jsx(ba.div,{...a,ref:o})});M1.displayName=D1;var I0="PopperContent",[zb,Ub]=I1(I0),P1=k.forwardRef((e,t)=>{var Re,_e,Ze,it,At,St;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:b,...y}=e,w=O1(I0,r),[E,A]=k.useState(null),N=ga(t,_r=>A(_r)),[F,U]=k.useState(null),O=Fb(F),W=(O==null?void 0:O.width)??0,X=(O==null?void 0:O.height)??0,Z=n+(i!=="center"?"-"+i:""),B=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},re=Array.isArray(u)?u:[u],j=re.length>0,S={padding:B,boundary:re.filter($b),altBoundary:j},{refs:H,floatingStyles:$,placement:q,isPositioned:V,middlewareData:G}=_b({strategy:"fixed",placement:Z,whileElementsMounted:(..._r)=>bb(..._r,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[Nb({mainAxis:a+X,alignmentAxis:s}),l&&Ib({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Rb():void 0,...S}),l&&Ob({...S}),Lb({...S,apply:({elements:_r,rects:br,availableWidth:un,availableHeight:Hr})=>{const{width:Yt,height:Cr}=br.reference,ct=_r.floating.style;ct.setProperty("--radix-popper-available-width",`${un}px`),ct.setProperty("--radix-popper-available-height",`${Hr}px`),ct.setProperty("--radix-popper-anchor-width",`${Yt}px`),ct.setProperty("--radix-popper-anchor-height",`${Cr}px`)}}),F&&Mb({element:F,padding:o}),qb({arrowWidth:W,arrowHeight:X}),f&&Db({strategy:"referenceHidden",...S})]}),[se,C]=H1(q),fe=Bo(b);ca(()=>{V&&(fe==null||fe())},[V,fe]);const ye=(Re=G.arrow)==null?void 0:Re.x,R=(_e=G.arrow)==null?void 0:_e.y,we=((Ze=G.arrow)==null?void 0:Ze.centerOffset)!==0,[Ne,He]=k.useState();return ca(()=>{E&&He(window.getComputedStyle(E).zIndex)},[E]),T.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:V?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(it=G.transformOrigin)==null?void 0:it.x,(At=G.transformOrigin)==null?void 0:At.y].join(" "),...((St=G.hide)==null?void 0:St.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:T.jsx(zb,{scope:r,placedSide:se,onArrowChange:U,arrowX:ye,arrowY:R,shouldHideArrow:we,children:T.jsx(ba.div,{"data-side":se,"data-align":C,...y,ref:N,style:{...y.style,animation:V?void 0:"none"}})})})});P1.displayName=I0;var B1="PopperArrow",jb={top:"bottom",right:"left",bottom:"top",left:"right"},F1=k.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,i=Ub(B1,n),s=jb[i.placedSide];return T.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:T.jsx(Bb,{...a,ref:r,style:{...a.style,display:"block"}})})});F1.displayName=B1;function $b(e){return e!==null}var qb=e=>({name:"transformOrigin",options:e,fn(t){var w,E,A;const{placement:r,rects:n,middlewareData:a}=t,s=((w=a.arrow)==null?void 0:w.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=H1(r),c={start:"0%",center:"50%",end:"100%"}[d],f=(((E=a.arrow)==null?void 0:E.x)??0)+o/2,m=(((A=a.arrow)==null?void 0:A.y)??0)+l/2;let b="",y="";return u==="bottom"?(b=s?c:`${f}px`,y=`${-l}px`):u==="top"?(b=s?c:`${f}px`,y=`${n.floating.height+l}px`):u==="right"?(b=`${-l}px`,y=s?c:`${m}px`):u==="left"&&(b=`${n.floating.width+l}px`,y=s?c:`${m}px`),{data:{x:b,y}}}});function H1(e){const[t,r="center"]=e.split("-");return[t,r]}var Vb=L1,Wb=M1,Gb=P1,Yb=F1;function Xb(e,t){return k.useReducer((r,n)=>t[r][n]??r,e)}var z1=e=>{const{present:t,children:r}=e,n=Kb(t),a=typeof r=="function"?r({present:n.isPresent}):k.Children.only(r),i=ga(n.ref,Qb(a));return typeof r=="function"||n.isPresent?k.cloneElement(a,{ref:i}):null};z1.displayName="Presence";function Kb(e){const[t,r]=k.useState(),n=k.useRef(null),a=k.useRef(e),i=k.useRef("none"),s=e?"mounted":"unmounted",[o,l]=Xb(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const u=Ss(n.current);i.current=o==="mounted"?u:"none"},[o]),ca(()=>{const u=n.current,d=a.current;if(d!==e){const f=i.current,m=Ss(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),ca(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=m=>{const y=Ss(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&y&&(l("ANIMATION_END"),!a.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},f=m=>{m.target===t&&(i.current=Ss(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:k.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Ss(e){return(e==null?void 0:e.animationName)||"none"}function Qb(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Jb=c1[" useInsertionEffect ".trim().toString()]||ca;function Zb({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,i,s]=e6({defaultProp:t,onChange:r}),o=e!==void 0,l=o?e:a;{const d=k.useRef(e!==void 0);k.useEffect(()=>{const c=d.current;c!==o&&console.warn(`${n} is changing from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=o},[o,n])}const u=k.useCallback(d=>{var c;if(o){const f=t6(d)?d(e):d;f!==e&&((c=s.current)==null||c.call(s,f))}else i(d)},[o,e,i,s]);return[l,u]}function e6({defaultProp:e,onChange:t}){const[r,n]=k.useState(e),a=k.useRef(r),i=k.useRef(t);return Jb(()=>{i.current=t},[t]),k.useEffect(()=>{var s;a.current!==r&&((s=i.current)==null||s.call(i,r),a.current=r)},[r,a]),[r,n,i]}function t6(e){return typeof e=="function"}var r6=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),n6="VisuallyHidden",U1=k.forwardRef((e,t)=>T.jsx(ba.span,{...e,ref:t,style:{...r6,...e.style}}));U1.displayName=n6;var a6=U1,[jo]=h1("Tooltip",[R1]),$o=R1(),j1="TooltipProvider",i6=700,Tu="tooltip.open",[s6,R0]=jo(j1),o6=e=>{const{__scopeTooltip:t,delayDuration:r=i6,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=e,s=k.useRef(!0),o=k.useRef(!1),l=k.useRef(0);return k.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),T.jsx(s6,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:k.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:k.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:o,onPointerInTransitChange:k.useCallback(u=>{o.current=u},[]),disableHoverableContent:a,children:i})};o6.displayName=j1;var Yi="Tooltip",[l6,qo]=jo(Yi),$1=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:a,onOpenChange:i,disableHoverableContent:s,delayDuration:o}=e,l=R0(Yi,e.__scopeTooltip),u=$o(t),[d,c]=k.useState(null),f=A3(),m=k.useRef(0),b=s??l.disableHoverableContent,y=o??l.delayDuration,w=k.useRef(!1),[E,A]=Zb({prop:n,defaultProp:a??!1,onChange:W=>{W?(l.onOpen(),document.dispatchEvent(new CustomEvent(Tu))):l.onClose(),i==null||i(W)},caller:Yi}),N=k.useMemo(()=>E?w.current?"delayed-open":"instant-open":"closed",[E]),F=k.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w.current=!1,A(!0)},[A]),U=k.useCallback(()=>{window.clearTimeout(m.current),m.current=0,A(!1)},[A]),O=k.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,A(!0),m.current=0},y)},[y,A]);return k.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),T.jsx(Vb,{...u,children:T.jsx(l6,{scope:t,contentId:f,open:E,stateAttribute:N,trigger:d,onTriggerChange:c,onTriggerEnter:k.useCallback(()=>{l.isOpenDelayedRef.current?O():F()},[l.isOpenDelayedRef,O,F]),onTriggerLeave:k.useCallback(()=>{b?U():(window.clearTimeout(m.current),m.current=0)},[U,b]),onOpen:F,onClose:U,disableHoverableContent:b,children:r})})};$1.displayName=Yi;var vu="TooltipTrigger",q1=k.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=qo(vu,r),i=R0(vu,r),s=$o(r),o=k.useRef(null),l=ga(t,o,a.onTriggerChange),u=k.useRef(!1),d=k.useRef(!1),c=k.useCallback(()=>u.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),T.jsx(Wb,{asChild:!0,...s,children:T.jsx(ba.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:l,onPointerMove:mn(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:mn(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:mn(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:mn(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:mn(e.onBlur,a.onClose),onClick:mn(e.onClick,a.onClose)})})});q1.displayName=vu;var u6="TooltipPortal",[zM,c6]=jo(u6,{forceMount:void 0}),qa="TooltipContent",V1=k.forwardRef((e,t)=>{const r=c6(qa,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...i}=e,s=qo(qa,e.__scopeTooltip);return T.jsx(z1,{present:n||s.open,children:s.disableHoverableContent?T.jsx(W1,{side:a,...i,ref:t}):T.jsx(d6,{side:a,...i,ref:t})})}),d6=k.forwardRef((e,t)=>{const r=qo(qa,e.__scopeTooltip),n=R0(qa,e.__scopeTooltip),a=k.useRef(null),i=ga(t,a),[s,o]=k.useState(null),{trigger:l,onClose:u}=r,d=a.current,{onPointerInTransitChange:c}=n,f=k.useCallback(()=>{o(null),c(!1)},[c]),m=k.useCallback((b,y)=>{const w=b.currentTarget,E={x:b.clientX,y:b.clientY},A=g6(E,w.getBoundingClientRect()),N=b6(E,A),F=y6(y.getBoundingClientRect()),U=E6([...N,...F]);o(U),c(!0)},[c]);return k.useEffect(()=>()=>f(),[f]),k.useEffect(()=>{if(l&&d){const b=w=>m(w,d),y=w=>m(w,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",y)}}},[l,d,m,f]),k.useEffect(()=>{if(s){const b=y=>{const w=y.target,E={x:y.clientX,y:y.clientY},A=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),N=!x6(E,s);A?f():N&&(f(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,s,u,f]),T.jsx(W1,{...e,ref:i})}),[f6,h6]=jo(Yi,{isInside:!1}),m6=u3("TooltipContent"),W1=k.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:s,...o}=e,l=qo(qa,r),u=$o(r),{onClose:d}=l;return k.useEffect(()=>(document.addEventListener(Tu,d),()=>document.removeEventListener(Tu,d)),[d]),k.useEffect(()=>{if(l.trigger){const c=f=>{const m=f.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),T.jsx(g1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:T.jsxs(Gb,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[T.jsx(m6,{children:n}),T.jsx(f6,{scope:r,isInside:!0,children:T.jsx(a6,{id:l.contentId,role:"tooltip",children:a||n})})]})})});V1.displayName=qa;var G1="TooltipArrow",p6=k.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=$o(r);return h6(G1,r).isInside?null:T.jsx(Yb,{...a,...n,ref:t})});p6.displayName=G1;function g6(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,a,i)){case i:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function b6(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function y6(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function x6(e,t){const{x:r,y:n}=e;let a=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const o=t[i],l=t[s],u=o.x,d=o.y,c=l.x,f=l.y;d>n!=f>n&&r<(c-u)*(n-d)/(f-d)+u&&(a=!a)}return a}function E6(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),T6(t)}function T6(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(a.y-s.y)>=(i.y-s.y)*(a.x-s.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(a.y-s.y)>=(i.y-s.y)*(a.x-s.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var v6=$1,w6=q1,Y1=V1;function X1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=X1(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Bt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=X1(e))&&(n&&(n+=" "),n+=t);return n}const O0="-",k6=e=>{const t=S6(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const o=s.split(O0);return o[0]===""&&o.length!==1&&o.shift(),K1(o,t)||A6(s)},getConflictingClassGroupIds:(s,o)=>{const l=r[s]||[];return o&&n[s]?[...l,...n[s]]:l}}},K1=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?K1(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(O0);return(s=t.validators.find(({validator:o})=>o(i)))==null?void 0:s.classGroupId},sd=/^\[(.+)\]$/,A6=e=>{if(sd.test(e)){const t=sd.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},S6=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return C6(Object.entries(e.classGroups),r).forEach(([i,s])=>{wu(s,n,i,t)}),n},wu=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:od(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(_6(a)){wu(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,s])=>{wu(s,od(t,i),r,n)})})},od=(e,t)=>{let r=e;return t.split(O0).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},_6=e=>e.isThemeGetter,C6=(e,t)=>t?e.map(([r,n])=>{const a=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,o])=>[t+s,o])):i);return[r,a]}):e,N6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return a(i,s),s},set(i,s){r.has(i)?r.set(i,s):a(i,s)}}},Q1="!",I6=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],i=t.length,s=o=>{const l=[];let u=0,d=0,c;for(let w=0;w<o.length;w++){let E=o[w];if(u===0){if(E===a&&(n||o.slice(w,w+i)===t)){l.push(o.slice(d,w)),d=w+i;continue}if(E==="/"){c=w;continue}}E==="["?u++:E==="]"&&u--}const f=l.length===0?o:o.substring(d),m=f.startsWith(Q1),b=m?f.substring(1):f,y=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:y}};return r?o=>r({className:o,parseClassName:s}):s},R6=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},O6=e=>({cache:N6(e.cacheSize),parseClassName:I6(e),...k6(e)}),L6=/\s+/,D6=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(L6);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:m}=r(u);let b=!!m,y=n(b?f.substring(0,m):f);if(!y){if(!b){o=u+(o.length>0?" "+o:o);continue}if(y=n(f),!y){o=u+(o.length>0?" "+o:o);continue}b=!1}const w=R6(d).join(":"),E=c?w+Q1:w,A=E+y;if(i.includes(A))continue;i.push(A);const N=a(y,b);for(let F=0;F<N.length;++F){const U=N[F];i.push(E+U)}o=u+(o.length>0?" "+o:o)}return o};function M6(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=J1(t))&&(n&&(n+=" "),n+=r);return n}const J1=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=J1(e[n]))&&(r&&(r+=" "),r+=t);return r};function P6(e,...t){let r,n,a,i=s;function s(l){const u=t.reduce((d,c)=>c(d),e());return r=O6(u),n=r.cache.get,a=r.cache.set,i=o,o(l)}function o(l){const u=n(l);if(u)return u;const d=D6(l,r);return a(l,d),d}return function(){return i(M6.apply(null,arguments))}}const nt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Z1=/^\[(?:([a-z-]+):)?(.+)\]$/i,B6=/^\d+\/\d+$/,F6=new Set(["px","full","screen"]),H6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z6=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,U6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,j6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cn=e=>Pa(e)||F6.has(e)||B6.test(e),On=e=>Ja(e,"length",Q6),Pa=e=>!!e&&!Number.isNaN(Number(e)),vl=e=>Ja(e,"number",Pa),fi=e=>!!e&&Number.isInteger(Number(e)),q6=e=>e.endsWith("%")&&Pa(e.slice(0,-1)),Le=e=>Z1.test(e),Ln=e=>H6.test(e),V6=new Set(["length","size","percentage"]),W6=e=>Ja(e,V6,em),G6=e=>Ja(e,"position",em),Y6=new Set(["image","url"]),X6=e=>Ja(e,Y6,Z6),K6=e=>Ja(e,"",J6),hi=()=>!0,Ja=(e,t,r)=>{const n=Z1.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Q6=e=>z6.test(e)&&!U6.test(e),em=()=>!1,J6=e=>j6.test(e),Z6=e=>$6.test(e),e5=()=>{const e=nt("colors"),t=nt("spacing"),r=nt("blur"),n=nt("brightness"),a=nt("borderColor"),i=nt("borderRadius"),s=nt("borderSpacing"),o=nt("borderWidth"),l=nt("contrast"),u=nt("grayscale"),d=nt("hueRotate"),c=nt("invert"),f=nt("gap"),m=nt("gradientColorStops"),b=nt("gradientColorStopPositions"),y=nt("inset"),w=nt("margin"),E=nt("opacity"),A=nt("padding"),N=nt("saturate"),F=nt("scale"),U=nt("sepia"),O=nt("skew"),W=nt("space"),X=nt("translate"),Z=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto",Le,t],j=()=>[Le,t],S=()=>["",cn,On],H=()=>["auto",Pa,Le],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],se=()=>["","0",Le],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],fe=()=>[Pa,Le];return{cacheSize:500,separator:":",theme:{colors:[hi],spacing:[cn,On],blur:["none","",Ln,Le],brightness:fe(),borderColor:[e],borderRadius:["none","","full",Ln,Le],borderSpacing:j(),borderWidth:S(),contrast:fe(),grayscale:se(),hueRotate:fe(),invert:se(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[q6,On],inset:re(),margin:re(),opacity:fe(),padding:j(),saturate:fe(),scale:fe(),sepia:se(),skew:fe(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[Ln]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),Le]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fi,Le]}],basis:[{basis:re()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:se()}],shrink:[{shrink:se()}],order:[{order:["first","last","none",fi,Le]}],"grid-cols":[{"grid-cols":[hi]}],"col-start-end":[{col:["auto",{span:["full",fi,Le]},Le]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[hi]}],"row-start-end":[{row:["auto",{span:[fi,Le]},Le]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[W]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[W]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,t]}],"min-w":[{"min-w":[Le,t,"min","max","fit"]}],"max-w":[{"max-w":[Le,t,"none","full","min","max","fit","prose",{screen:[Ln]},Ln]}],h:[{h:[Le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ln,On]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vl]}],"font-family":[{font:[hi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Le]}],"line-clamp":[{"line-clamp":["none",Pa,vl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cn,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cn,On]}],"underline-offset":[{"underline-offset":["auto",cn,Le]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),G6]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W6]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},X6]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:q()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[cn,Le]}],"outline-w":[{outline:[cn,On]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[cn,On]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ln,K6]}],"shadow-color":[{shadow:[hi]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ln,Le]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[N]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:fe()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:fe()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[fi,Le]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[cn,On,vl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},tm=P6(e5);/**
|
|
3
|
+
* @license lucide-react v0.469.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const t5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rm=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
8
|
+
* @license lucide-react v0.469.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/var r5={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
13
|
+
* @license lucide-react v0.469.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/const n5=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:s,...o},l)=>k.createElement("svg",{ref:l,...r5,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:rm("lucide",a),...o},[...s.map(([u,d])=>k.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
|
|
18
|
+
* @license lucide-react v0.469.0 - ISC
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the ISC license.
|
|
21
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/const a5=(e,t)=>{const r=k.forwardRef(({className:n,...a},i)=>k.createElement(n5,{ref:i,iconNode:t,className:rm(`lucide-${t5(e)}`,n),...a}));return r.displayName=`${e}`,r};/**
|
|
23
|
+
* @license lucide-react v0.469.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/const UM=a5("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function i5(...e){return tm(Bt(e))}const _s=new Intl.NumberFormat(void 0,{maximumFractionDigits:2}),to=1e3,Si=60*to,_i=60*Si,ld=24*_i;function hr(e,t=!1){if(e===0)return"0";if(e<to)return`${_s.format(e)}ms`;if(e<Si)return`${_s.format(e/to)}s`;if(t)return e<_i?`${_s.format(e/Si)}m`:`${_s.format(e/_i)}h`;const r=Math.floor(e/ld),n=Math.floor(e%ld/_i),a=Math.floor(e%_i/Si),i=Math.floor(e%Si/to),s=[];return r>0&&s.push(`${r}d`),n>0&&s.push(`${n}h`),a>0&&s.push(`${a}m`),n<=1&&(i>0||s.length===0)&&s.push(`${i}s`),s.join(" ")}function jM(e){return e.endsWith("//doStreamStep")}function $M(e){if(!Array.isArray(e)||e.length===0)return null;const t=e[0];return!Array.isArray(t)||!t.every(r=>r&&typeof r=="object"&&"role"in r)?null:t}var s5=Object.create,L0=Object.defineProperty,o5=Object.getOwnPropertyDescriptor,nm=Object.getOwnPropertyNames,l5=Object.getPrototypeOf,u5=Object.prototype.hasOwnProperty,D0=(e,t)=>function(){return t||(0,e[nm(e)[0]])((t={exports:{}}).exports,t),t.exports},c5=(e,t)=>{for(var r in t)L0(e,r,{get:t[r],enumerable:!0})},d5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of nm(t))!u5.call(e,a)&&a!==r&&L0(e,a,{get:()=>t[a],enumerable:!(n=o5(t,a))||n.enumerable});return e},f5=(e,t,r)=>(r=e!=null?s5(l5(e)):{},d5(L0(r,"default",{value:e,enumerable:!0}),e)),h5=D0({"node_modules/is-object/index.js"(e,t){t.exports=function(n){return typeof n=="object"&&n!==null}}}),m5=D0({"node_modules/is-window/index.js"(e,t){t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),p5=D0({"node_modules/is-dom/index.js"(e,t){var r=h5(),n=m5();function a(i){return!r(i)||!n(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}t.exports=a}}),go={};c5(go,{chromeDark:()=>g5,chromeLight:()=>b5});var g5={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},b5={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},am=k.createContext([{},()=>{}]),wl={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},ro=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...wl},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...wl},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...wl}}),ku="chromeLight",im=k.createContext(ro(go[ku])),os=e=>k.useContext(im)[e],y5=e=>({theme:r=ku,...n})=>{const a=k.useMemo(()=>{switch(Object.prototype.toString.call(r)){case"[object String]":return ro(go[r]);case"[object Object]":return ro(r);default:return ro(go[ku])}},[r]);return J.createElement(im.Provider,{value:a},J.createElement(e,{...n}))},x5=({expanded:e,styles:t})=>J.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶"),E5=k.memo(e=>{e={expanded:!0,nodeRenderer:({name:d})=>J.createElement("span",null,d),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};const{expanded:t,onClick:r,children:n,nodeRenderer:a,title:i,shouldShowArrow:s,shouldShowPlaceholder:o}=e,l=os("TreeNode"),u=a;return J.createElement("li",{"aria-expanded":t,role:"treeitem",style:l.treeNodeBase,title:i},J.createElement("div",{style:l.treeNodePreviewContainer,onClick:r},s||k.Children.count(n)>0?J.createElement(x5,{expanded:t,styles:l.treeNodeArrow}):o&&J.createElement("span",{style:l.treeNodePlaceholder}," "),J.createElement(u,{...e})),J.createElement("ol",{role:"group",style:l.treeNodeChildNodesContainer},t?n:void 0))}),bo="$",ud="*";function no(e,t){return!t(e).next().done}var T5=e=>Array.from({length:e},(t,r)=>[bo].concat(Array.from({length:r},()=>"*")).join(".")),v5=(e,t,r,n,a)=>{const i=[].concat(T5(n)).concat(r).filter(o=>typeof o=="string"),s=[];return i.forEach(o=>{const l=o.split("."),u=(d,c,f)=>{if(f===l.length){s.push(c);return}const m=l[f];if(f===0)no(d,t)&&(m===bo||m===ud)&&u(d,bo,f+1);else if(m===ud)for(const{name:b,data:y}of t(d))no(y,t)&&u(y,`${c}.${b}`,f+1);else{const b=d[m];no(b,t)&&u(b,`${c}.${m}`,f+1)}};u(e,"",0)}),s.reduce((o,l)=>(o[l]=!0,o),{...a})},sm=k.memo(e=>{const{data:t,dataIterator:r,path:n,depth:a,nodeRenderer:i}=e,[s,o]=k.useContext(am),l=no(t,r),u=!!s[n],d=k.useCallback(()=>l&&o(c=>({...c,[n]:!u})),[l,o,n,u]);return J.createElement(E5,{expanded:u,onClick:d,shouldShowArrow:l,shouldShowPlaceholder:a>0,nodeRenderer:i,...e},u?[...r(t)].map(({name:c,data:f,...m})=>J.createElement(sm,{name:c,data:f,depth:a+1,path:`${n}.${c}`,key:c,dataIterator:r,nodeRenderer:i,...m})):null)}),w5=k.memo(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:a,expandLevel:i})=>{const s=os("TreeView"),o=k.useState({}),[,l]=o;return k.useLayoutEffect(()=>l(u=>v5(t,r,a,i,u)),[t,r,a,i]),J.createElement(am.Provider,{value:o},J.createElement("ol",{role:"tree",style:s.treeViewOutline},J.createElement(sm,{name:e,data:t,dataIterator:r,depth:0,path:bo,nodeRenderer:n})))}),Ba=({name:e,dimmed:t=!1,styles:r={}})=>{const n=os("ObjectName"),a={...n.base,...t?n.dimmed:{},...r};return J.createElement("span",{style:a},e)},Li=({object:e,styles:t})=>{const r=os("ObjectValue"),n=a=>({...r[a],...t});switch(typeof e){case"bigint":return J.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return J.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return J.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return J.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return J.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?J.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?J.createElement("span",null,e.toString()):e instanceof RegExp?J.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?J.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?J.createElement("span",null,`Buffer[${e.length}]`):J.createElement("span",null,e.constructor.name):J.createElement("span",null,"Object");case"function":return J.createElement("span",null,J.createElement("span",{style:n("objectValueFunctionPrefix")},"ƒ "),J.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return J.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return J.createElement("span",null)}},k5=Object.prototype.hasOwnProperty,A5=Object.prototype.propertyIsEnumerable;function Au(e,t){const r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function cd(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var Su=({data:e})=>{const t=os("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return J.createElement(Li,{object:r});if(Array.isArray(r)){const n=t.arrayMaxProperties,a=r.slice(0,n).map((s,o)=>J.createElement(Li,{key:o,object:s}));r.length>n&&a.push(J.createElement("span",{key:"ellipsis"},"…"));const i=r.length;return J.createElement(J.Fragment,null,J.createElement("span",{style:t.objectDescription},i===0?"":`(${i}) `),J.createElement("span",{style:t.preview},"[",cd(a,", "),"]"))}else{const n=t.objectMaxProperties,a=[];for(const s in r)if(k5.call(r,s)){let o;a.length===n-1&&Object.keys(r).length>n&&(o=J.createElement("span",{key:"ellipsis"},"…"));const l=Au(r,s);if(a.push(J.createElement("span",{key:s},J.createElement(Ba,{name:s||'""'}),": ",J.createElement(Li,{object:l}),o)),o)break}const i=r.constructor?r.constructor.name:"Object";return J.createElement(J.Fragment,null,J.createElement("span",{style:t.objectDescription},i==="Object"?"":`${i} `),J.createElement("span",{style:t.preview},"{",cd(a,", "),"}"))}},_u=({name:e,data:t})=>typeof e=="string"?J.createElement("span",null,J.createElement(Ba,{name:e}),J.createElement("span",null,": "),J.createElement(Su,{data:t})):J.createElement(Su,{data:t}),om=({name:e,data:t,isNonenumerable:r=!1})=>{const n=t;return J.createElement("span",null,typeof e=="string"?J.createElement(Ba,{name:e,dimmed:r}):J.createElement(Su,{data:e}),J.createElement("span",null,": "),J.createElement(Li,{object:n}))},S5=(e,t)=>function*(n){if(!(typeof n=="object"&&n!==null||typeof n=="function"))return;const i=Array.isArray(n);if(!i&&n[Symbol.iterator]){let s=0;for(const o of n){if(Array.isArray(o)&&o.length===2){const[l,u]=o;yield{name:l,data:u}}else yield{name:s.toString(),data:o};s++}}else{const s=Object.getOwnPropertyNames(n);t===!0&&!i?s.sort():typeof t=="function"&&s.sort(t);for(const o of s)if(A5.call(n,o)){const l=Au(n,o);yield{name:o||'""',data:l}}else if(e){let l;try{l=Au(n,o)}catch{}l!==void 0&&(yield{name:o,data:l,isNonenumerable:!0})}e&&n!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(n),isNonenumerable:!0})}},_5=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?J.createElement(_u,{name:t,data:r}):J.createElement(om,{name:t,data:r,isNonenumerable:n}),C5=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{const a=S5(e,t),i=r||_5;return J.createElement(w5,{nodeRenderer:i,dataIterator:a,...n})},N5=y5(C5);f5(p5());const I5=()=>{const[e,t]=k.useState(()=>typeof document>"u"?!1:document.documentElement.classList.contains("dark"));return k.useEffect(()=>{if(typeof document>"u")return;const r=new MutationObserver(()=>{t(document.documentElement.classList.contains("dark"))});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),e},lm={OBJECT_VALUE_DATE_COLOR:"#a21caf"},R5={OBJECT_VALUE_DATE_COLOR:"#e879f9"},um={BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.4,BASE_BACKGROUND_COLOR:"transparent",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"var(--font-mono)",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.4,TREENODE_PADDING_LEFT:12,TABLE_DATA_BACKGROUND_IMAGE:"none",TABLE_DATA_BACKGROUND_SIZE:"0"},O5={...um,BASE_COLOR:"var(--ds-gray-1000)",OBJECT_NAME_COLOR:"var(--ds-gray-900)",OBJECT_VALUE_STRING_COLOR:"#16a34a",OBJECT_VALUE_SYMBOL_COLOR:"#16a34a",OBJECT_VALUE_NUMBER_COLOR:"#b45309",OBJECT_VALUE_BOOLEAN_COLOR:"#b45309",OBJECT_VALUE_NULL_COLOR:"var(--ds-gray-900)",OBJECT_VALUE_UNDEFINED_COLOR:"var(--ds-gray-500)",OBJECT_VALUE_REGEXP_COLOR:"#dc2626",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"#0891b2",HTML_TAG_COLOR:"var(--ds-gray-500)",HTML_TAGNAME_COLOR:"#0891b2",HTML_ATTRIBUTE_NAME_COLOR:"#b45309",HTML_ATTRIBUTE_VALUE_COLOR:"#16a34a",HTML_COMMENT_COLOR:"var(--ds-gray-400)",HTML_DOCTYPE_COLOR:"var(--ds-gray-400)",ARROW_COLOR:"var(--ds-gray-500)",TABLE_BORDER_COLOR:"var(--ds-gray-300)",TABLE_TH_BACKGROUND_COLOR:"var(--ds-gray-100)",TABLE_TH_HOVER_COLOR:"var(--ds-gray-200)",TABLE_SORT_ICON_COLOR:"var(--ds-gray-500)"},L5={...um,BASE_COLOR:"var(--ds-gray-1000)",OBJECT_NAME_COLOR:"var(--ds-gray-900)",OBJECT_VALUE_STRING_COLOR:"#4ade80",OBJECT_VALUE_SYMBOL_COLOR:"#4ade80",OBJECT_VALUE_NUMBER_COLOR:"#facc15",OBJECT_VALUE_BOOLEAN_COLOR:"#facc15",OBJECT_VALUE_NULL_COLOR:"var(--ds-gray-1000)",OBJECT_VALUE_UNDEFINED_COLOR:"var(--ds-gray-500)",OBJECT_VALUE_REGEXP_COLOR:"#f87171",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"#22d3ee",HTML_TAG_COLOR:"var(--ds-gray-500)",HTML_TAGNAME_COLOR:"#22d3ee",HTML_ATTRIBUTE_NAME_COLOR:"#facc15",HTML_ATTRIBUTE_VALUE_COLOR:"#4ade80",HTML_COMMENT_COLOR:"var(--ds-gray-500)",HTML_DOCTYPE_COLOR:"var(--ds-gray-500)",ARROW_COLOR:"var(--ds-gray-500)",TABLE_BORDER_COLOR:"var(--ds-gray-300)",TABLE_TH_BACKGROUND_COLOR:"var(--ds-gray-100)",TABLE_TH_HOVER_COLOR:"var(--ds-gray-200)",TABLE_SORT_ICON_COLOR:"var(--ds-gray-500)"},D5="__workflow_stream_ref__",M5="__workflow_class_instance_ref__";function P5(e){return e!==null&&typeof e=="object"&&"__type"in e&&e.__type===D5}function B5(e){return e!==null&&typeof e=="object"&&"__type"in e&&e.__type===M5}const cm=k.createContext(void 0);function F5({streamRef:e}){const t=k.useContext(cm);return T.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-mono cursor-pointer",style:{backgroundColor:"var(--ds-blue-100)",color:"var(--ds-blue-800)",border:"1px solid var(--ds-blue-300)"},onClick:()=>t==null?void 0:t(e.streamId),title:`View stream: ${e.streamId}`,children:[T.jsx("span",{children:"📡"}),T.jsx("span",{children:e.streamId})]})}const dm=k.createContext(lm);function H5({depth:e,name:t,data:r,isNonenumerable:n}){const a=k.useContext(dm);if(P5(r))return T.jsxs("span",{children:[t!=null&&T.jsx(Ba,{name:t}),t!=null&&T.jsx("span",{children:": "}),T.jsx(F5,{streamRef:r})]});if(B5(r))return e===0?T.jsx(_u,{name:r.className,data:r.data}):T.jsxs("span",{children:[t!=null&&T.jsx(Ba,{name:t}),t!=null&&T.jsx("span",{children:": "}),T.jsxs("span",{style:{fontStyle:"italic"},children:[r.className," "]}),T.jsx(Li,{object:r.data})]});if(r instanceof Date){const i=r.toISOString();return e===0?T.jsx("span",{style:{color:a.OBJECT_VALUE_DATE_COLOR},children:i}):T.jsxs("span",{children:[t!=null&&T.jsx(Ba,{name:t}),t!=null&&T.jsx("span",{children:": "}),T.jsx("span",{style:{color:a.OBJECT_VALUE_DATE_COLOR},children:i})]})}return e===0?T.jsx(_u,{name:t,data:r}):T.jsx(om,{name:t,data:r,isNonenumerable:n})}function z5({data:e,expandLevel:t=2,name:r,onStreamClick:n}){const a=U5(e),[i,s]=k.useState(t),o=I5(),l=o?R5:lm;k.useEffect(()=>{s(0)},[]);const u=T.jsx(dm.Provider,{value:l,children:T.jsx(N5,{data:a,name:r,theme:o?L5:O5,expandLevel:i,nodeRenderer:H5})});return n?T.jsx(cm.Provider,{value:n,children:u}):u}function U5(e){const t=k.useRef(e);return ao(t.current,e)||(t.current=e),t.current}function dd(e){return typeof e=="object"&&e!==null}function ao(e,t,r=new WeakMap){if(Object.is(e,t))return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.flags===t.flags;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[o,l]of e.entries())if(!t.has(o)||!ao(l,t.get(o),r))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const o of e.values())if(!t.has(o))return!1;return!0}if(!dd(e)||!dd(t))return!1;if(r.get(e)===t)return!0;r.set(e,t);const n=Array.isArray(e),a=Array.isArray(t);if(n!==a)return!1;if(n&&a){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o+=1)if(!ao(e[o],t[o],r))return!1;return!0}const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const o of i)if(!Object.prototype.hasOwnProperty.call(t,o)||!ao(e[o],t[o],r))return!1;return!0}function fd({className:e,style:t,...r}){return T.jsx("div",{...r,className:i5("rounded-md",e),style:{backgroundColor:"var(--ds-gray-200)",...t}})}function j5(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const $5=e=>{switch(e){case"success":return W5;case"info":return Y5;case"warning":return G5;case"error":return X5;default:return null}},q5=Array(12).fill(0),V5=({visible:e,className:t})=>J.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},J.createElement("div",{className:"sonner-spinner"},q5.map((r,n)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),W5=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),G5=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Y5=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),X5=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),K5=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Q5=()=>{const[e,t]=J.useState(document.hidden);return J.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Cu=1;class J5{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...a}=t,i=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Cu++,s=this.toasts.find(l=>l.id===i),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:n}),{...l,...t,id:i,dismissible:o,title:n}):l):this.addToast({title:n,...a,dismissible:o,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=n!==void 0,s;const o=a.then(async u=>{if(s=["resolve",u],J.isValidElement(u))i=!1,this.create({id:n,type:"default",message:u});else if(e8(u)&&!u.ok){i=!1;const c=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,f=typeof r.description=="function"?await r.description(`HTTP error! status: ${u.status}`):r.description,b=typeof c=="object"&&!J.isValidElement(c)?c:{message:c};this.create({id:n,type:"error",description:f,...b})}else if(u instanceof Error){i=!1;const c=typeof r.error=="function"?await r.error(u):r.error,f=typeof r.description=="function"?await r.description(u):r.description,b=typeof c=="object"&&!J.isValidElement(c)?c:{message:c};this.create({id:n,type:"error",description:f,...b})}else if(r.success!==void 0){i=!1;const c=typeof r.success=="function"?await r.success(u):r.success,f=typeof r.description=="function"?await r.description(u):r.description,b=typeof c=="object"&&!J.isValidElement(c)?c:{message:c};this.create({id:n,type:"success",description:f,...b})}}).catch(async u=>{if(s=["reject",u],r.error!==void 0){i=!1;const d=typeof r.error=="function"?await r.error(u):r.error,c=typeof r.description=="function"?await r.description(u):r.description,m=typeof d=="object"&&!J.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:c,...m})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),l=()=>new Promise((u,d)=>o.then(()=>s[0]==="reject"?d(s[1]):u(s[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(t,r)=>{const n=(r==null?void 0:r.id)||Cu++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const er=new J5,Z5=(e,t)=>{const r=(t==null?void 0:t.id)||Cu++;return er.addToast({title:e,...t,id:r}),r},e8=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",t8=Z5,r8=()=>er.toasts,n8=()=>er.getActiveToasts(),qM=Object.assign(t8,{success:er.success,info:er.info,warning:er.warning,error:er.error,custom:er.custom,message:er.message,promise:er.promise,dismiss:er.dismiss,loading:er.loading},{getHistory:r8,getToasts:n8});j5("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Cs(e){return e.label!==void 0}const a8=3,i8="24px",s8="16px",hd=4e3,o8=356,l8=14,u8=45,c8=200;function zr(...e){return e.filter(Boolean).join(" ")}function d8(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}const f8=e=>{var t,r,n,a,i,s,o,l,u;const{invert:d,toast:c,unstyled:f,interacting:m,setHeights:b,visibleToasts:y,heights:w,index:E,toasts:A,expanded:N,removeToast:F,defaultRichColors:U,closeButton:O,style:W,cancelButtonStyle:X,actionButtonStyle:Z,className:B="",descriptionClassName:re="",duration:j,position:S,gap:H,expandByDefault:$,classNames:q,icons:V,closeButtonAriaLabel:G="Close toast"}=e,[se,C]=J.useState(null),[fe,ye]=J.useState(null),[R,we]=J.useState(!1),[Ne,He]=J.useState(!1),[Re,_e]=J.useState(!1),[Ze,it]=J.useState(!1),[At,St]=J.useState(!1),[_r,br]=J.useState(0),[un,Hr]=J.useState(0),Yt=J.useRef(c.duration||j||hd),Cr=J.useRef(null),ct=J.useRef(null),vs=E===0,bl=E+1<=y,Ut=c.type,Cn=c.dismissible!==!1,yl=c.className||"",xl=c.descriptionClassName||"",te=J.useMemo(()=>w.findIndex(Oe=>Oe.toastId===c.id)||0,[w,c.id]),me=J.useMemo(()=>{var Oe;return(Oe=c.closeButton)!=null?Oe:O},[c.closeButton,O]),Ce=J.useMemo(()=>c.duration||j||hd,[c.duration,j]),Be=J.useRef(0),Ve=J.useRef(0),Xt=J.useRef(0),Kt=J.useRef(null),[Nr,ea]=S.split("-"),Nn=J.useMemo(()=>w.reduce((Oe,_t,Mt)=>Mt>=te?Oe:Oe+_t.height,0),[w,te]),Dt=Q5(),In=c.invert||d,ir=Ut==="loading";Ve.current=J.useMemo(()=>te*H+Nn,[te,Nn]),J.useEffect(()=>{Yt.current=Ce},[Ce]),J.useEffect(()=>{we(!0)},[]),J.useEffect(()=>{const Oe=ct.current;if(Oe){const _t=Oe.getBoundingClientRect().height;return Hr(_t),b(Mt=>[{toastId:c.id,height:_t,position:c.position},...Mt]),()=>b(Mt=>Mt.filter(sr=>sr.toastId!==c.id))}},[b,c.id]),J.useLayoutEffect(()=>{if(!R)return;const Oe=ct.current,_t=Oe.style.height;Oe.style.height="auto";const Mt=Oe.getBoundingClientRect().height;Oe.style.height=_t,Hr(Mt),b(sr=>sr.find(Rt=>Rt.toastId===c.id)?sr.map(Rt=>Rt.toastId===c.id?{...Rt,height:Mt}:Rt):[{toastId:c.id,height:Mt,position:c.position},...sr])},[R,c.title,c.description,b,c.id,c.jsx,c.action,c.cancel]);const Rn=J.useCallback(()=>{He(!0),br(Ve.current),b(Oe=>Oe.filter(_t=>_t.toastId!==c.id)),setTimeout(()=>{F(c)},c8)},[c,F,b,Ve]);J.useEffect(()=>{if(c.promise&&Ut==="loading"||c.duration===1/0||c.type==="loading")return;let Oe;return N||m||Dt?(()=>{if(Xt.current<Be.current){const sr=new Date().getTime()-Be.current;Yt.current=Yt.current-sr}Xt.current=new Date().getTime()})():(()=>{Yt.current!==1/0&&(Be.current=new Date().getTime(),Oe=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Rn()},Yt.current))})(),()=>clearTimeout(Oe)},[N,m,c,Ut,Dt,Rn]),J.useEffect(()=>{c.delete&&(Rn(),c.onDismiss==null||c.onDismiss.call(c,c))},[Rn,c.delete]);function t3(){var Oe;if(V!=null&&V.loading){var _t;return J.createElement("div",{className:zr(q==null?void 0:q.loader,c==null||(_t=c.classNames)==null?void 0:_t.loader,"sonner-loader"),"data-visible":Ut==="loading"},V.loading)}return J.createElement(V5,{className:zr(q==null?void 0:q.loader,c==null||(Oe=c.classNames)==null?void 0:Oe.loader),visible:Ut==="loading"})}const r3=c.icon||(V==null?void 0:V[Ut])||$5(Ut);var $c,qc;return J.createElement("li",{tabIndex:0,ref:ct,className:zr(B,yl,q==null?void 0:q.toast,c==null||(t=c.classNames)==null?void 0:t.toast,q==null?void 0:q.default,q==null?void 0:q[Ut],c==null||(r=c.classNames)==null?void 0:r[Ut]),"data-sonner-toast":"","data-rich-colors":($c=c.richColors)!=null?$c:U,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":R,"data-promise":!!c.promise,"data-swiped":At,"data-removed":Ne,"data-visible":bl,"data-y-position":Nr,"data-x-position":ea,"data-index":E,"data-front":vs,"data-swiping":Re,"data-dismissible":Cn,"data-type":Ut,"data-invert":In,"data-swipe-out":Ze,"data-swipe-direction":fe,"data-expanded":!!(N||$&&R),"data-testid":c.testId,style:{"--index":E,"--toasts-before":E,"--z-index":A.length-E,"--offset":`${Ne?_r:Ve.current}px`,"--initial-height":$?"auto":`${un}px`,...W,...c.style},onDragEnd:()=>{_e(!1),C(null),Kt.current=null},onPointerDown:Oe=>{Oe.button!==2&&(ir||!Cn||(Cr.current=new Date,br(Ve.current),Oe.target.setPointerCapture(Oe.pointerId),Oe.target.tagName!=="BUTTON"&&(_e(!0),Kt.current={x:Oe.clientX,y:Oe.clientY})))},onPointerUp:()=>{var Oe,_t,Mt;if(Ze||!Cn)return;Kt.current=null;const sr=Number(((Oe=ct.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ws=Number(((_t=ct.current)==null?void 0:_t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Rt=new Date().getTime()-((Mt=Cr.current)==null?void 0:Mt.getTime()),yr=se==="x"?sr:ws,ks=Math.abs(yr)/Rt;if(Math.abs(yr)>=u8||ks>.11){br(Ve.current),c.onDismiss==null||c.onDismiss.call(c,c),ye(se==="x"?sr>0?"right":"left":ws>0?"down":"up"),Rn(),it(!0);return}else{var Ir,Rr;(Ir=ct.current)==null||Ir.style.setProperty("--swipe-amount-x","0px"),(Rr=ct.current)==null||Rr.style.setProperty("--swipe-amount-y","0px")}St(!1),_e(!1),C(null)},onPointerMove:Oe=>{var _t,Mt,sr;if(!Kt.current||!Cn||((_t=window.getSelection())==null?void 0:_t.toString().length)>0)return;const Rt=Oe.clientY-Kt.current.y,yr=Oe.clientX-Kt.current.x;var ks;const Ir=(ks=e.swipeDirections)!=null?ks:d8(S);!se&&(Math.abs(yr)>1||Math.abs(Rt)>1)&&C(Math.abs(yr)>Math.abs(Rt)?"x":"y");let Rr={x:0,y:0};const Vc=ta=>1/(1.5+Math.abs(ta)/20);if(se==="y"){if(Ir.includes("top")||Ir.includes("bottom"))if(Ir.includes("top")&&Rt<0||Ir.includes("bottom")&&Rt>0)Rr.y=Rt;else{const ta=Rt*Vc(Rt);Rr.y=Math.abs(ta)<Math.abs(Rt)?ta:Rt}}else if(se==="x"&&(Ir.includes("left")||Ir.includes("right")))if(Ir.includes("left")&&yr<0||Ir.includes("right")&&yr>0)Rr.x=yr;else{const ta=yr*Vc(yr);Rr.x=Math.abs(ta)<Math.abs(yr)?ta:yr}(Math.abs(Rr.x)>0||Math.abs(Rr.y)>0)&&St(!0),(Mt=ct.current)==null||Mt.style.setProperty("--swipe-amount-x",`${Rr.x}px`),(sr=ct.current)==null||sr.style.setProperty("--swipe-amount-y",`${Rr.y}px`)}},me&&!c.jsx&&Ut!=="loading"?J.createElement("button",{"aria-label":G,"data-disabled":ir,"data-close-button":!0,onClick:ir||!Cn?()=>{}:()=>{Rn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:zr(q==null?void 0:q.closeButton,c==null||(n=c.classNames)==null?void 0:n.closeButton)},(qc=V==null?void 0:V.close)!=null?qc:K5):null,(Ut||c.icon||c.promise)&&c.icon!==null&&((V==null?void 0:V[Ut])!==null||c.icon)?J.createElement("div",{"data-icon":"",className:zr(q==null?void 0:q.icon,c==null||(a=c.classNames)==null?void 0:a.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||t3():null,c.type!=="loading"?r3:null):null,J.createElement("div",{"data-content":"",className:zr(q==null?void 0:q.content,c==null||(i=c.classNames)==null?void 0:i.content)},J.createElement("div",{"data-title":"",className:zr(q==null?void 0:q.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?J.createElement("div",{"data-description":"",className:zr(re,xl,q==null?void 0:q.description,c==null||(o=c.classNames)==null?void 0:o.description)},typeof c.description=="function"?c.description():c.description):null),J.isValidElement(c.cancel)?c.cancel:c.cancel&&Cs(c.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||X,onClick:Oe=>{Cs(c.cancel)&&Cn&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Oe),Rn())},className:zr(q==null?void 0:q.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,J.isValidElement(c.action)?c.action:c.action&&Cs(c.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||Z,onClick:Oe=>{Cs(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Oe),!Oe.defaultPrevented&&Rn())},className:zr(q==null?void 0:q.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function md(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function h8(e,t){const r={};return[e,t].forEach((n,a)=>{const i=a===1,s=i?"--mobile-offset":"--offset",o=i?s8:i8;function l(u){["top","right","bottom","left"].forEach(d=>{r[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${s}-${u}`]=o:r[`${s}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):l(o)}),r}const VM=J.forwardRef(function(t,r){const{id:n,invert:a,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:l,className:u,offset:d,mobileOffset:c,theme:f="light",richColors:m,duration:b,style:y,visibleToasts:w=a8,toastOptions:E,dir:A=md(),gap:N=l8,icons:F,containerAriaLabel:U="Notifications"}=t,[O,W]=J.useState([]),X=J.useMemo(()=>n?O.filter(R=>R.toasterId===n):O.filter(R=>!R.toasterId),[O,n]),Z=J.useMemo(()=>Array.from(new Set([i].concat(X.filter(R=>R.position).map(R=>R.position)))),[X,i]),[B,re]=J.useState([]),[j,S]=J.useState(!1),[H,$]=J.useState(!1),[q,V]=J.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=J.useRef(null),se=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=J.useRef(null),fe=J.useRef(!1),ye=J.useCallback(R=>{W(we=>{var Ne;return(Ne=we.find(He=>He.id===R.id))!=null&&Ne.delete||er.dismiss(R.id),we.filter(({id:He})=>He!==R.id)})},[]);return J.useEffect(()=>er.subscribe(R=>{if(R.dismiss){requestAnimationFrame(()=>{W(we=>we.map(Ne=>Ne.id===R.id?{...Ne,delete:!0}:Ne))});return}setTimeout(()=>{i3.flushSync(()=>{W(we=>{const Ne=we.findIndex(He=>He.id===R.id);return Ne!==-1?[...we.slice(0,Ne),{...we[Ne],...R},...we.slice(Ne+1)]:[R,...we]})})})}),[O]),J.useEffect(()=>{if(f!=="system"){V(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const R=window.matchMedia("(prefers-color-scheme: dark)");try{R.addEventListener("change",({matches:we})=>{V(we?"dark":"light")})}catch{R.addListener(({matches:Ne})=>{try{V(Ne?"dark":"light")}catch(He){console.error(He)}})}},[f]),J.useEffect(()=>{O.length<=1&&S(!1)},[O]),J.useEffect(()=>{const R=we=>{var Ne;if(s.every(_e=>we[_e]||we.code===_e)){var Re;S(!0),(Re=G.current)==null||Re.focus()}we.code==="Escape"&&(document.activeElement===G.current||(Ne=G.current)!=null&&Ne.contains(document.activeElement))&&S(!1)};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[s]),J.useEffect(()=>{if(G.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,fe.current=!1)}},[G.current]),J.createElement("section",{ref:r,"aria-label":`${U} ${se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Z.map((R,we)=>{var Ne;const[He,Re]=R.split("-");return X.length?J.createElement("ol",{key:R,dir:A==="auto"?md():A,tabIndex:-1,ref:G,className:u,"data-sonner-toaster":!0,"data-sonner-theme":q,"data-y-position":He,"data-x-position":Re,style:{"--front-toast-height":`${((Ne=B[0])==null?void 0:Ne.height)||0}px`,"--width":`${o8}px`,"--gap":`${N}px`,...y,...h8(d,c)},onBlur:_e=>{fe.current&&!_e.currentTarget.contains(_e.relatedTarget)&&(fe.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:_e=>{_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false"||fe.current||(fe.current=!0,C.current=_e.relatedTarget)},onMouseEnter:()=>S(!0),onMouseMove:()=>S(!0),onMouseLeave:()=>{H||S(!1)},onDragEnd:()=>S(!1),onPointerDown:_e=>{_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},X.filter(_e=>!_e.position&&we===0||_e.position===R).map((_e,Ze)=>{var it,At;return J.createElement(f8,{key:_e.id,icons:F,index:Ze,toast:_e,defaultRichColors:m,duration:(it=E==null?void 0:E.duration)!=null?it:b,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:a,visibleToasts:w,closeButton:(At=E==null?void 0:E.closeButton)!=null?At:l,interacting:H,position:R,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:ye,toasts:X.filter(St=>St.position==_e.position),heights:B.filter(St=>St.position==_e.position),setHeights:re,expandByDefault:o,gap:N,expanded:j,swipeDirections:t.swipeDirections})})):null}))}),m8="modulepreload",p8=function(e){return"/"+e},pd={},Vo=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let s=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=s(r.map(u=>{if(u=p8(u),u in pd)return;pd[u]=!0;const d=u.endsWith(".css"),c=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":m8,d||(f.as="script"),f.crossOrigin="",f.href=u,l&&f.setAttribute("nonce",l),document.head.appendChild(f),d)return new Promise((m,b)=>{f.addEventListener("load",m),f.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return a.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return t().catch(i)})},Za=(function(e){if(e==null)return x8;if(typeof e=="function")return Wo(e);if(typeof e=="object")return Array.isArray(e)?g8(e):b8(e);if(typeof e=="string")return y8(e);throw new Error("Expected function, string, or object as test")});function g8(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Za(e[r]);return Wo(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function b8(e){const t=e;return Wo(r);function r(n){const a=n;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function y8(e){return Wo(t);function t(r){return r&&r.type===e}}function Wo(e){return t;function t(r,n,a){return!!(E8(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function x8(){return!0}function E8(e){return e!==null&&typeof e=="object"&&"type"in e}const fm=[],Ci=!0,Nu=!1,Iu="skip";function T8(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=Za(a),s=n?-1:1;o(e,void 0,[])();function o(l,u,d){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const m=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return f;function f(){let m=fm,b,y,w;if((!t||i(l,u,d[d.length-1]||void 0))&&(m=v8(r(l,d)),m[0]===Nu))return m;if("children"in l&&l.children){const E=l;if(E.children&&m[0]!==Iu)for(y=(n?E.children.length:-1)+s,w=d.concat(E);y>-1&&y<E.children.length;){const A=E.children[y];if(b=o(A,y,w)(),b[0]===Nu)return b;y=typeof b[1]=="number"?b[1]:y+s}}return m}}}function v8(e){return Array.isArray(e)?e:typeof e=="number"?[Ci,e]:e==null?fm:[e]}function Va(e,t,r,n){let a,i,s;typeof t=="function"&&typeof r!="function"?(i=void 0,s=t,a=r):(i=t,s=r,a=n),T8(e,i,o,a);function o(l,u){const d=u[u.length-1],c=d?d.children.indexOf(l):void 0;return s(l,c,d)}}function w8({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,allowedProtocols:a=[],blockedImageClass:i="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500"}){const o=t.length&&!t.every(u=>u==="*"),l=r.length&&!r.every(u=>u==="*");if(!e&&(o||l))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return u=>{const d=_8(e,t,r,n,a,i,s);Va(u,d)}}function gd(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function k8(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const A8=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),S8=new Set(["javascript:","data:","file:","vbscript:"]);function bd(e,t,r,n=!1,a=!1,i=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return a&&n&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const d=e.substring(5);if(d&&d.length>0&&d!=="invalid")return e}}catch{return null}return null}const s=gd(e,r);if(!s||S8.has(s.protocol)||!(A8.has(s.protocol)||i.includes(s.protocol)||i.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=k8(e);return s&&t.some(u=>{const d=gd(u,r);return!d||d.origin!==s.origin?!1:s.href.startsWith(d.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:l?s.pathname+s.search+s.hash:s.href:null}const kl=Symbol("node-seen"),_8=(e,t,r,n,a,i,s)=>{const o=(l,u,d)=>{if(l.type!=="element"||l[kl])return Ci;if(l.tagName==="a"){const c=bd(l.properties.href,t,e,!1,!1,a);return c===null?(l[kl]=!0,Va(l,o),d&&typeof u=="number"&&(d.children[u]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(l.properties.href),class:s},children:[...l.children,{type:"text",value:" [blocked]"}]}),Iu):(l.properties.href=c,l.properties.target="_blank",l.properties.rel="noopener noreferrer",Ci)}if(l.tagName==="img"){const c=bd(l.properties.src,r,e,n,!0,a);return c===null?(l[kl]=!0,Va(l,o),d&&typeof u=="number"&&(d.children[u]={type:"element",tagName:"span",properties:{class:i},children:[{type:"text",value:"[Image blocked: "+String(l.properties.alt||"No description")+"]"}]}),Iu):(l.properties.src=c,Ci)}return Ci};return o};let ls=class{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};ls.prototype.normal={};ls.prototype.property={};ls.prototype.space=void 0;function hm(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new ls(r,n,t)}function Xi(e){return e.toLowerCase()}let nr=class{constructor(t,r){this.attribute=r,this.property=t}};nr.prototype.attribute="";nr.prototype.booleanish=!1;nr.prototype.boolean=!1;nr.prototype.commaOrSpaceSeparated=!1;nr.prototype.commaSeparated=!1;nr.prototype.defined=!1;nr.prototype.mustUseProperty=!1;nr.prototype.number=!1;nr.prototype.overloadedBoolean=!1;nr.prototype.property="";nr.prototype.spaceSeparated=!1;nr.prototype.space=void 0;let C8=0;const De=ya(),bt=ya(),Ru=ya(),ce=ya(),et=ya(),Fa=ya(),lr=ya();function ya(){return 2**++C8}const Ou=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:bt,commaOrSpaceSeparated:lr,commaSeparated:Fa,number:ce,overloadedBoolean:Ru,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),Al=Object.keys(Ou);let M0=class extends nr{constructor(t,r,n,a){let i=-1;if(super(t,r),yd(this,"space",a),typeof n=="number")for(;++i<Al.length;){const s=Al[i];yd(this,Al[i],(n&Ou[s])===Ou[s])}}};M0.prototype.defined=!0;function yd(e,t,r){r&&(e[t]=r)}function ei(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const i=new M0(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[Xi(n)]=n,r[Xi(i.attribute)]=n}return new ls(t,r,e.space)}const mm=ei({properties:{ariaActiveDescendant:null,ariaAtomic:bt,ariaAutoComplete:null,ariaBusy:bt,ariaChecked:bt,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:bt,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:bt,ariaFlowTo:et,ariaGrabbed:bt,ariaHasPopup:null,ariaHidden:bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:ce,ariaLive:null,ariaModal:bt,ariaMultiLine:bt,ariaMultiSelectable:bt,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:bt,ariaReadOnly:bt,ariaRelevant:null,ariaRequired:bt,ariaRoleDescription:et,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:bt,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pm(e,t){return t in e?e[t]:t}function gm(e,t){return pm(e,t.toLowerCase())}const N8=ei({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fa,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:et,autoFocus:De,autoPlay:De,blocking:et,capture:null,charSet:null,checked:De,cite:null,className:et,cols:ce,colSpan:null,content:null,contentEditable:bt,controls:De,controlsList:et,coords:ce|Fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Ru,draggable:bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:et,height:ce,hidden:Ru,high:ce,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:et,itemRef:et,itemScope:De,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,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:De,optimum:ce,pattern:null,ping:et,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:et,required:De,reversed:De,rows:ce,rowSpan:ce,sandbox:et,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:bt,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:bt,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:gm}),I8=ei({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:lr,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:et,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:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,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:Fa,g2:Fa,glyphName:Fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:lr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,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:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:lr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:lr,rev:lr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:lr,requiredFeatures:lr,requiredFonts:lr,requiredFormats:lr,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:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:lr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:lr,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:lr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pm}),bm=ei({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()}}),ym=ei({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gm}),xm=ei({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),R8={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"},O8=/[A-Z]/g,xd=/-[a-z]/g,L8=/^data[-\w.:]+$/i;function P0(e,t){const r=Xi(t);let n=t,a=nr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&L8.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(xd,M8);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!xd.test(i)){let s=i.replace(O8,D8);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=M0}return new a(n,t)}function D8(e){return"-"+e.toLowerCase()}function M8(e){return e.charAt(1).toUpperCase()}const Go=hm([mm,N8,bm,ym,xm],"html"),ti=hm([mm,I8,bm,ym,xm],"svg");function Ed(e){const t=[],r=String(e||"");let n=r.indexOf(","),a=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);const s=r.slice(a,n).trim();(s||!i)&&t.push(s),a=n+1,n=r.indexOf(",",a)}return t}function Em(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Td=/[#.]/g;function P8(e,t){const r=e||"",n={};let a=0,i,s;for(;a<r.length;){Td.lastIndex=a;const o=Td.exec(r),l=r.slice(a,o?o.index:r.length);l&&(i?i==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:s=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function vd(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Tm(e){return e.join(" ").trim()}function vm(e,t,r){const n=r?z8(r):void 0;function a(i,s,...o){let l;if(i==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=P8(i,t);const u=l.tagName.toLowerCase(),d=n?n.get(u):void 0;if(l.tagName=d||u,B8(s))o.unshift(s);else for(const[c,f]of Object.entries(s))F8(e,l.properties,c,f)}for(const u of o)Lu(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function B8(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const a=t[n];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function F8(e,t,r,n){const a=P0(e,r);let i;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;i=n}else typeof n=="boolean"?i=n:typeof n=="string"?a.spaceSeparated?i=vd(n):a.commaSeparated?i=Ed(n):a.commaOrSpaceSeparated?i=vd(Ed(n).join(" ")):i=wd(a,a.property,n):Array.isArray(n)?i=[...n]:i=a.property==="style"?H8(n):String(n);if(Array.isArray(i)){const s=[];for(const o of i)s.push(wd(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Lu(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 r of t)Lu(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Lu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function wd(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Xi(r)===Xi(t)))return!0}return r}function H8(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function z8(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const U8=["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"],wm=vm(Go,"div"),km=vm(ti,"g",U8),Kr={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 j8(e,t){return Am(e,{})||{type:"root",children:[]}}function Am(e,t){const r=$8(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function $8(e,t){switch(e.nodeType){case 1:return G8(e,t);case 3:return V8(e);case 8:return W8(e);case 9:return kd(e,t);case 10:return q8();case 11:return kd(e,t);default:return}}function kd(e,t){return{type:"root",children:Sm(e,t)}}function q8(){return{type:"doctype"}}function V8(e){return{type:"text",value:e.nodeValue||""}}function W8(e){return{type:"comment",value:e.nodeValue||""}}function G8(e,t){const r=e.namespaceURI,n=r===Kr.svg?km:wm,a=r===Kr.html?e.tagName.toLowerCase():e.tagName,i=r===Kr.html&&a==="template"?e.content:e,s=e.getAttributeNames(),o={};let l=-1;for(;++l<s.length;)o[s[l]]=e.getAttribute(s[l])||"";return n(a,o,Sm(i,t))}function Sm(e,t){const r=e.childNodes,n=[];let a=-1;for(;++a<r.length;){const i=Am(r[a],t);i!==void 0&&n.push(i)}return n}new DOMParser;function Y8(e,t){const r=X8(e);return j8(r)}function X8(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Ad=(function(e,t,r){const n=Za(r);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(n(e.children[t],t,e))return e.children[t]}),xa=(function(e){if(e==null)return J8;if(typeof e=="string")return Q8(e);if(typeof e=="object")return K8(e);if(typeof e=="function")return B0(e);throw new Error("Expected function, string, or array as `test`")});function K8(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=xa(e[r]);return B0(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function Q8(e){return B0(t);function t(r){return r.tagName===e}}function B0(e){return t;function t(r,n,a){return!!(Z8(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function J8(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Z8(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Sd=/\n/g,_d=/[\t ]+/g,Du=xa("br"),Cd=xa(o7),e7=xa("p"),Nd=xa("tr"),t7=xa(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",s7,l7]),_m=xa(["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 r7(e,t){const r=t||{},n="children"in e?e.children:[],a=_m(e),i=Im(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...Nm(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)s.push(...Cm(n[o],e,{whitespace:i,breakBefore:o?void 0:a,breakAfter:o<n.length-1?Du(n[o+1]):a}));const l=[];let u;for(o=-1;++o<s.length;){const d=s[o];typeof d=="number"?u!==void 0&&d>u&&(u=d):d&&(u!==void 0&&u>-1&&l.push(`
|
|
28
|
+
`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function Cm(e,t,r){return e.type==="element"?n7(e,t,r):e.type==="text"?r.whitespace==="normal"?Nm(e,r):a7(e):[]}function n7(e,t,r){const n=Im(e,r),a=e.children||[];let i=-1,s=[];if(t7(e))return s;let o,l;for(Du(e)||Nd(e)&&Ad(t,e,Nd)?l=`
|
|
29
|
+
`:e7(e)?(o=2,l=2):_m(e)&&(o=1,l=1);++i<a.length;)s=s.concat(Cm(a[i],e,{whitespace:n,breakBefore:i?void 0:o,breakAfter:i<a.length-1?Du(a[i+1]):l}));return Cd(e)&&Ad(t,e,Cd)&&s.push(" "),o&&s.unshift(o),l&&s.push(l),s}function Nm(e,t){const r=String(e.value),n=[],a=[];let i=0;for(;i<=r.length;){Sd.lastIndex=i;const l=Sd.exec(r),u=l&&"index"in l?l.index:r.length;n.push(i7(r.slice(i,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,u===r.length?t.breakAfter:!0)),i=u+1}let s=-1,o;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(a.push(n[s]),o=void 0):n[s]?(typeof o=="number"&&a.push(o),a.push(n[s]),o=0):(s===0||s===n.length-1)&&a.push(0);return a}function a7(e){return[String(e.value)]}function i7(e,t,r){const n=[];let a=0,i;for(;a<e.length;){_d.lastIndex=a;const s=_d.exec(e);i=s?s.index:e.length,!a&&!i&&s&&!t&&n.push(""),a!==i&&n.push(e.slice(a,i)),a=s?i+s[0].length:i}return a!==i&&!r&&n.push(""),n.join(" ")}function Im(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function s7(e){return!!(e.properties||{}).hidden}function o7(e){return e.tagName==="td"||e.tagName==="th"}function l7(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class tr{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new tr(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class mr{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new mr(r,tr.range(this,t))}}class ue{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15<o.length?d=o.slice(i,i+15)+"…":d=o.slice(i),n+=u+l+d}var c=new Error(n);return c.name="ParseError",c.__proto__=ue.prototype,c.position=a,a!=null&&i!=null&&(c.length=i-a),c.rawMessage=t,c}}ue.prototype.__proto__=Error.prototype;var u7=function(t,r){return t===void 0?r:t},c7=/([A-Z])/g,d7=function(t){return t.replace(c7,"-$1").toLowerCase()},f7={"&":"&",">":">","<":"<",'"':""","'":"'"},h7=/[&><"']/g;function m7(e){return String(e).replace(h7,t=>f7[t])}var Rm=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},p7=function(t){var r=Rm(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},g7=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},b7=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},Ye={deflt:u7,escape:m7,hyphenate:d7,getBaseElem:Rm,isCharacterBox:p7,protocolFromUrl:b7},Di={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 y7(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class F0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in Di)if(Di.hasOwnProperty(r)){var n=Di[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:y7(n)}}reportNonstrict(t,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(t,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new ue("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var a=this.strict;if(typeof a=="function")try{a=a(t,r,n)}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': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=Ye.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Dn{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return Wr[x7[this.id]]}sub(){return Wr[E7[this.id]]}fracNum(){return Wr[T7[this.id]]}fracDen(){return Wr[v7[this.id]]}cramp(){return Wr[w7[this.id]]}text(){return Wr[k7[this.id]]}isTight(){return this.size>=2}}var H0=0,yo=1,Ha=2,yn=3,Ki=4,wr=5,Wa=6,Vt=7,Wr=[new Dn(H0,0,!1),new Dn(yo,0,!0),new Dn(Ha,1,!1),new Dn(yn,1,!0),new Dn(Ki,2,!1),new Dn(wr,2,!0),new Dn(Wa,3,!1),new Dn(Vt,3,!0)],x7=[Ki,wr,Ki,wr,Wa,Vt,Wa,Vt],E7=[wr,wr,wr,wr,Vt,Vt,Vt,Vt],T7=[Ha,yn,Ki,wr,Wa,Vt,Wa,Vt],v7=[yn,yn,wr,wr,Vt,Vt,Vt,Vt],w7=[yo,yo,yn,yn,wr,wr,Vt,Vt],k7=[H0,yo,Ha,yn,Ha,yn,Ha,yn],Ae={DISPLAY:Wr[H0],TEXT:Wr[Ha],SCRIPT:Wr[Ki],SCRIPTSCRIPT:Wr[Wa]},Mu=[{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 A7(e){for(var t=0;t<Mu.length;t++)for(var r=Mu[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}var io=[];Mu.forEach(e=>e.blocks.forEach(t=>io.push(...t)));function Om(e){for(var t=0;t<io.length;t+=2)if(e>=io[t]&&e<=io[t+1])return!0;return!1}var Aa=80,S7=function(t,r){return"M95,"+(622+t+r)+`
|
|
30
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
31
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
32
|
+
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
|
|
33
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
34
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
35
|
+
l`+t/2.075+" -"+t+`
|
|
36
|
+
c5.3,-9.3,12,-14,20,-14
|
|
37
|
+
H400000v`+(40+t)+`H845.2724
|
|
38
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
39
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
40
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},_7=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
41
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
42
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
43
|
+
l`+t/2.084+" -"+t+`
|
|
44
|
+
c4.7,-7.3,11,-11,19,-11
|
|
45
|
+
H40000v`+(40+t)+`H1012.3
|
|
46
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
47
|
+
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
|
|
48
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
49
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
50
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},C7=function(t,r){return"M983 "+(10+t+r)+`
|
|
51
|
+
l`+t/3.13+" -"+t+`
|
|
52
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
53
|
+
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
|
|
54
|
+
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
|
|
55
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
56
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
57
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
58
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
59
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},N7=function(t,r){return"M424,"+(2398+t+r)+`
|
|
60
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
61
|
+
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
|
|
62
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
63
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
64
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
65
|
+
v`+(40+t)+`H1014.6
|
|
66
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
67
|
+
c-2,6,-10,9,-24,9
|
|
68
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
69
|
+
h400000v`+(40+t)+"h-400000z"},I7=function(t,r){return"M473,"+(2713+t+r)+`
|
|
70
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
71
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
72
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
73
|
+
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
|
|
74
|
+
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
|
|
75
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
76
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},R7=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},O7=function(t,r,n){var a=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
77
|
+
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
|
|
78
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
79
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
80
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},L7=function(t,r,n){r=1e3*r;var a="";switch(t){case"sqrtMain":a=S7(r,Aa);break;case"sqrtSize1":a=_7(r,Aa);break;case"sqrtSize2":a=C7(r,Aa);break;case"sqrtSize3":a=N7(r,Aa);break;case"sqrtSize4":a=I7(r,Aa);break;case"sqrtTall":a=O7(r,Aa,n)}return a},D7=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Id={doubleleftarrow:`M262 157
|
|
81
|
+
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
|
|
82
|
+
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
|
|
83
|
+
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
|
|
84
|
+
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
|
|
85
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
86
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
87
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
88
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
89
|
+
-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
|
|
90
|
+
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
|
|
91
|
+
-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
|
|
92
|
+
-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
|
|
93
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
94
|
+
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
|
|
95
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
96
|
+
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
|
|
97
|
+
-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
|
|
98
|
+
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
|
|
99
|
+
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
|
|
100
|
+
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
|
|
101
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
102
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
103
|
+
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
|
|
104
|
+
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
|
|
105
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
106
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
107
|
+
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
|
|
108
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
109
|
+
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
|
|
110
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
111
|
+
-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
|
|
112
|
+
-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
|
|
113
|
+
-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
|
|
114
|
+
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
|
|
115
|
+
-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
|
|
116
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
117
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
118
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
119
|
+
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
|
|
120
|
+
-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
|
|
121
|
+
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
|
|
122
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
123
|
+
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
|
|
124
|
+
-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
|
|
125
|
+
-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
|
|
126
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
127
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
128
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
129
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
130
|
+
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
|
|
131
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
132
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
133
|
+
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
|
|
134
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
135
|
+
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
|
|
136
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
137
|
+
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
|
|
138
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
139
|
+
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
|
|
140
|
+
-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
|
|
141
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
142
|
+
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
|
|
143
|
+
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
|
|
144
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
145
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
146
|
+
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
|
|
147
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
148
|
+
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
|
|
149
|
+
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
|
|
150
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
151
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
152
|
+
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
|
|
153
|
+
-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
|
|
154
|
+
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
|
|
155
|
+
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
|
|
156
|
+
-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
|
|
157
|
+
-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
|
|
158
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
159
|
+
-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
|
|
160
|
+
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
|
|
161
|
+
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
|
|
162
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
163
|
+
-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
|
|
164
|
+
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
|
|
165
|
+
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
|
|
166
|
+
-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
|
|
167
|
+
-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
|
|
168
|
+
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
|
|
169
|
+
-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
|
|
170
|
+
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
|
|
171
|
+
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
|
|
172
|
+
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
|
|
173
|
+
-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
|
|
174
|
+
-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
|
|
175
|
+
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
|
|
176
|
+
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
|
|
177
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
178
|
+
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
|
|
179
|
+
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
|
|
180
|
+
-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
|
|
181
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
182
|
+
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
183
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
184
|
+
-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
|
|
185
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
186
|
+
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
|
|
187
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
188
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
189
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
190
|
+
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
|
|
191
|
+
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
|
|
192
|
+
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
|
|
193
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
194
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
195
|
+
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
|
|
196
|
+
-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
|
|
197
|
+
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
|
|
198
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
199
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
200
|
+
-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
|
|
201
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
202
|
+
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
|
|
203
|
+
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
|
|
204
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
205
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
206
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
207
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
208
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
209
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
210
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
211
|
+
-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
|
|
212
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
213
|
+
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
|
|
214
|
+
-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
|
|
215
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
216
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
217
|
+
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
|
|
218
|
+
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
|
|
219
|
+
-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
|
|
220
|
+
-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
|
|
221
|
+
-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,
|
|
222
|
+
-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,
|
|
223
|
+
-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,
|
|
224
|
+
-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,
|
|
225
|
+
-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
|
|
226
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
227
|
+
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
|
|
228
|
+
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
|
|
229
|
+
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
|
|
230
|
+
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
|
|
231
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
232
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
233
|
+
-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
|
|
234
|
+
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
|
|
235
|
+
-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
|
|
236
|
+
-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
|
|
237
|
+
-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
|
|
238
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
239
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
240
|
+
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
|
|
241
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
242
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
243
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
244
|
+
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,
|
|
245
|
+
-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
|
|
246
|
+
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
|
|
247
|
+
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
|
|
248
|
+
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,
|
|
249
|
+
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,
|
|
250
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
251
|
+
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
|
|
252
|
+
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,
|
|
253
|
+
-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
|
|
254
|
+
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
|
|
255
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},M7=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|
256
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
257
|
+
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
258
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
259
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
260
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
261
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
262
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
263
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
264
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
265
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
266
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
267
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
268
|
+
M347 1759 V0 h-84 V1759 v`+r+" 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
|
|
269
|
+
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,
|
|
270
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
271
|
+
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
|
|
272
|
+
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,
|
|
273
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
274
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
275
|
+
-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,
|
|
276
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
277
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
278
|
+
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
|
|
279
|
+
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
|
|
280
|
+
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
|
|
281
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
282
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
283
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class 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(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var Qr={"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]}},Ns={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]},Rd={Å:"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 Lm(e,t){Qr[e]=t}function z0(e,t,r){if(!Qr[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=Qr[t][n];if(!a&&e[0]in Rd&&(n=Rd[e[0]].charCodeAt(0),a=Qr[t][n]),!a&&r==="text"&&Om(n)&&(a=Qr[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Sl={};function P7(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Sl[t]){var r=Sl[t]={cssEmPerMu:Ns.quad[t]/18};for(var n in Ns)Ns.hasOwnProperty(n)&&(r[n]=Ns[n][t])}return Sl[t]}var B7=[[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]],Od=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ld=function(t,r){return r.size<2?t:B7[t-1][r.size-1]};class pn{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||pn.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=Od[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new pn(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ld(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:Od[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Ld(pn.BASESIZE,t);return this.size===r&&this.textSize===pn.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}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!==pn.BASESIZE?["sizing","reset-size"+this.size,"size"+pn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=P7(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}pn.BASESIZE=6;var Pu={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},F7={ex:!0,em:!0,mu:!0},Dm=function(t){return typeof t!="string"&&(t=t.unit),t in Pu||t in F7||t==="ex"},ut=function(t,r){var n;if(t.unit in Pu)n=Pu[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,t.unit==="ex")n=a.fontMetrics().xHeight;else if(t.unit==="em")n=a.fontMetrics().quad;else throw new ue("Invalid unit: '"+t.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},he=function(t){return+t.toFixed(4)+"em"},Yn=function(t){return t.filter(r=>r).join(" ")},Mm=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},Pm=function(t){var r=document.createElement(t);r.className=Yn(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&r.setAttribute(a,this.attributes[a]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},H7=/[\s"'>/=\x00-\x1f]/,Bm=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Ye.escape(Yn(this.classes))+'"');var n="";for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=Ye.hyphenate(a)+":"+this.style[a]+";");n&&(r+=' style="'+Ye.escape(n)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(H7.test(i))throw new ue("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Ye.escape(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class cs{constructor(t,r,n,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,Mm.call(this,t,n,a),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Pm.call(this,"span")}toMarkup(){return Bm.call(this,"span")}}class U0{constructor(t,r,n,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,Mm.call(this,r,a),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Pm.call(this,"a")}toMarkup(){return Bm.call(this,"a")}}class z7{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+Ye.escape(this.src)+'"'+(' alt="'+Ye.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=Ye.hyphenate(n)+":"+this.style[n]+";");return r&&(t+=' style="'+Ye.escape(r)+'"'),t+="'/>",t}}var U7={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class kr{constructor(t,r,n,a,i,s,o,l){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=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=l||{},this.maxFontSize=0;var u=A7(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=U7[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=he(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Yn(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Ye.escape(Yn(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=Ye.hyphenate(a)+":"+this.style[a]+";");n&&(t=!0,r+=' style="'+Ye.escape(n)+'"');var i=Ye.escape(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class vn{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+Ye.escape(this.attributes[r])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class Xn{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Id[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Ye.escape(this.alternate)+'"/>':'<path d="'+Ye.escape(Id[this.pathName])+'"/>'}}class Bu{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+Ye.escape(this.attributes[r])+'"');return t+="/>",t}}function Dd(e){if(e instanceof kr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function j7(e){if(e instanceof cs)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var $7={bin:1,close:1,inner:1,open:1,punct:1,rel:1},q7={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},rt={math:{},text:{}};function p(e,t,r,n,a,i){rt[e][a]={font:t,group:r,replace:n},i&&n&&(rt[e][n]=rt[e][a])}var g="math",ae="text",x="main",L="ams",ot="accent-token",be="bin",Gt="close",ri="inner",ke="mathord",Et="op-token",gr="open",Yo="punct",D="rel",An="spacing",z="textord";p(g,x,D,"≡","\\equiv",!0);p(g,x,D,"≺","\\prec",!0);p(g,x,D,"≻","\\succ",!0);p(g,x,D,"∼","\\sim",!0);p(g,x,D,"⊥","\\perp");p(g,x,D,"⪯","\\preceq",!0);p(g,x,D,"⪰","\\succeq",!0);p(g,x,D,"≃","\\simeq",!0);p(g,x,D,"∣","\\mid",!0);p(g,x,D,"≪","\\ll",!0);p(g,x,D,"≫","\\gg",!0);p(g,x,D,"≍","\\asymp",!0);p(g,x,D,"∥","\\parallel");p(g,x,D,"⋈","\\bowtie",!0);p(g,x,D,"⌣","\\smile",!0);p(g,x,D,"⊑","\\sqsubseteq",!0);p(g,x,D,"⊒","\\sqsupseteq",!0);p(g,x,D,"≐","\\doteq",!0);p(g,x,D,"⌢","\\frown",!0);p(g,x,D,"∋","\\ni",!0);p(g,x,D,"∝","\\propto",!0);p(g,x,D,"⊢","\\vdash",!0);p(g,x,D,"⊣","\\dashv",!0);p(g,x,D,"∋","\\owns");p(g,x,Yo,".","\\ldotp");p(g,x,Yo,"⋅","\\cdotp");p(g,x,z,"#","\\#");p(ae,x,z,"#","\\#");p(g,x,z,"&","\\&");p(ae,x,z,"&","\\&");p(g,x,z,"ℵ","\\aleph",!0);p(g,x,z,"∀","\\forall",!0);p(g,x,z,"ℏ","\\hbar",!0);p(g,x,z,"∃","\\exists",!0);p(g,x,z,"∇","\\nabla",!0);p(g,x,z,"♭","\\flat",!0);p(g,x,z,"ℓ","\\ell",!0);p(g,x,z,"♮","\\natural",!0);p(g,x,z,"♣","\\clubsuit",!0);p(g,x,z,"℘","\\wp",!0);p(g,x,z,"♯","\\sharp",!0);p(g,x,z,"♢","\\diamondsuit",!0);p(g,x,z,"ℜ","\\Re",!0);p(g,x,z,"♡","\\heartsuit",!0);p(g,x,z,"ℑ","\\Im",!0);p(g,x,z,"♠","\\spadesuit",!0);p(g,x,z,"§","\\S",!0);p(ae,x,z,"§","\\S");p(g,x,z,"¶","\\P",!0);p(ae,x,z,"¶","\\P");p(g,x,z,"†","\\dag");p(ae,x,z,"†","\\dag");p(ae,x,z,"†","\\textdagger");p(g,x,z,"‡","\\ddag");p(ae,x,z,"‡","\\ddag");p(ae,x,z,"‡","\\textdaggerdbl");p(g,x,Gt,"⎱","\\rmoustache",!0);p(g,x,gr,"⎰","\\lmoustache",!0);p(g,x,Gt,"⟯","\\rgroup",!0);p(g,x,gr,"⟮","\\lgroup",!0);p(g,x,be,"∓","\\mp",!0);p(g,x,be,"⊖","\\ominus",!0);p(g,x,be,"⊎","\\uplus",!0);p(g,x,be,"⊓","\\sqcap",!0);p(g,x,be,"∗","\\ast");p(g,x,be,"⊔","\\sqcup",!0);p(g,x,be,"◯","\\bigcirc",!0);p(g,x,be,"∙","\\bullet",!0);p(g,x,be,"‡","\\ddagger");p(g,x,be,"≀","\\wr",!0);p(g,x,be,"⨿","\\amalg");p(g,x,be,"&","\\And");p(g,x,D,"⟵","\\longleftarrow",!0);p(g,x,D,"⇐","\\Leftarrow",!0);p(g,x,D,"⟸","\\Longleftarrow",!0);p(g,x,D,"⟶","\\longrightarrow",!0);p(g,x,D,"⇒","\\Rightarrow",!0);p(g,x,D,"⟹","\\Longrightarrow",!0);p(g,x,D,"↔","\\leftrightarrow",!0);p(g,x,D,"⟷","\\longleftrightarrow",!0);p(g,x,D,"⇔","\\Leftrightarrow",!0);p(g,x,D,"⟺","\\Longleftrightarrow",!0);p(g,x,D,"↦","\\mapsto",!0);p(g,x,D,"⟼","\\longmapsto",!0);p(g,x,D,"↗","\\nearrow",!0);p(g,x,D,"↩","\\hookleftarrow",!0);p(g,x,D,"↪","\\hookrightarrow",!0);p(g,x,D,"↘","\\searrow",!0);p(g,x,D,"↼","\\leftharpoonup",!0);p(g,x,D,"⇀","\\rightharpoonup",!0);p(g,x,D,"↙","\\swarrow",!0);p(g,x,D,"↽","\\leftharpoondown",!0);p(g,x,D,"⇁","\\rightharpoondown",!0);p(g,x,D,"↖","\\nwarrow",!0);p(g,x,D,"⇌","\\rightleftharpoons",!0);p(g,L,D,"≮","\\nless",!0);p(g,L,D,"","\\@nleqslant");p(g,L,D,"","\\@nleqq");p(g,L,D,"⪇","\\lneq",!0);p(g,L,D,"≨","\\lneqq",!0);p(g,L,D,"","\\@lvertneqq");p(g,L,D,"⋦","\\lnsim",!0);p(g,L,D,"⪉","\\lnapprox",!0);p(g,L,D,"⊀","\\nprec",!0);p(g,L,D,"⋠","\\npreceq",!0);p(g,L,D,"⋨","\\precnsim",!0);p(g,L,D,"⪹","\\precnapprox",!0);p(g,L,D,"≁","\\nsim",!0);p(g,L,D,"","\\@nshortmid");p(g,L,D,"∤","\\nmid",!0);p(g,L,D,"⊬","\\nvdash",!0);p(g,L,D,"⊭","\\nvDash",!0);p(g,L,D,"⋪","\\ntriangleleft");p(g,L,D,"⋬","\\ntrianglelefteq",!0);p(g,L,D,"⊊","\\subsetneq",!0);p(g,L,D,"","\\@varsubsetneq");p(g,L,D,"⫋","\\subsetneqq",!0);p(g,L,D,"","\\@varsubsetneqq");p(g,L,D,"≯","\\ngtr",!0);p(g,L,D,"","\\@ngeqslant");p(g,L,D,"","\\@ngeqq");p(g,L,D,"⪈","\\gneq",!0);p(g,L,D,"≩","\\gneqq",!0);p(g,L,D,"","\\@gvertneqq");p(g,L,D,"⋧","\\gnsim",!0);p(g,L,D,"⪊","\\gnapprox",!0);p(g,L,D,"⊁","\\nsucc",!0);p(g,L,D,"⋡","\\nsucceq",!0);p(g,L,D,"⋩","\\succnsim",!0);p(g,L,D,"⪺","\\succnapprox",!0);p(g,L,D,"≆","\\ncong",!0);p(g,L,D,"","\\@nshortparallel");p(g,L,D,"∦","\\nparallel",!0);p(g,L,D,"⊯","\\nVDash",!0);p(g,L,D,"⋫","\\ntriangleright");p(g,L,D,"⋭","\\ntrianglerighteq",!0);p(g,L,D,"","\\@nsupseteqq");p(g,L,D,"⊋","\\supsetneq",!0);p(g,L,D,"","\\@varsupsetneq");p(g,L,D,"⫌","\\supsetneqq",!0);p(g,L,D,"","\\@varsupsetneqq");p(g,L,D,"⊮","\\nVdash",!0);p(g,L,D,"⪵","\\precneqq",!0);p(g,L,D,"⪶","\\succneqq",!0);p(g,L,D,"","\\@nsubseteqq");p(g,L,be,"⊴","\\unlhd");p(g,L,be,"⊵","\\unrhd");p(g,L,D,"↚","\\nleftarrow",!0);p(g,L,D,"↛","\\nrightarrow",!0);p(g,L,D,"⇍","\\nLeftarrow",!0);p(g,L,D,"⇏","\\nRightarrow",!0);p(g,L,D,"↮","\\nleftrightarrow",!0);p(g,L,D,"⇎","\\nLeftrightarrow",!0);p(g,L,D,"△","\\vartriangle");p(g,L,z,"ℏ","\\hslash");p(g,L,z,"▽","\\triangledown");p(g,L,z,"◊","\\lozenge");p(g,L,z,"Ⓢ","\\circledS");p(g,L,z,"®","\\circledR");p(ae,L,z,"®","\\circledR");p(g,L,z,"∡","\\measuredangle",!0);p(g,L,z,"∄","\\nexists");p(g,L,z,"℧","\\mho");p(g,L,z,"Ⅎ","\\Finv",!0);p(g,L,z,"⅁","\\Game",!0);p(g,L,z,"‵","\\backprime");p(g,L,z,"▲","\\blacktriangle");p(g,L,z,"▼","\\blacktriangledown");p(g,L,z,"■","\\blacksquare");p(g,L,z,"⧫","\\blacklozenge");p(g,L,z,"★","\\bigstar");p(g,L,z,"∢","\\sphericalangle",!0);p(g,L,z,"∁","\\complement",!0);p(g,L,z,"ð","\\eth",!0);p(ae,x,z,"ð","ð");p(g,L,z,"╱","\\diagup");p(g,L,z,"╲","\\diagdown");p(g,L,z,"□","\\square");p(g,L,z,"□","\\Box");p(g,L,z,"◊","\\Diamond");p(g,L,z,"¥","\\yen",!0);p(ae,L,z,"¥","\\yen",!0);p(g,L,z,"✓","\\checkmark",!0);p(ae,L,z,"✓","\\checkmark");p(g,L,z,"ℶ","\\beth",!0);p(g,L,z,"ℸ","\\daleth",!0);p(g,L,z,"ℷ","\\gimel",!0);p(g,L,z,"ϝ","\\digamma",!0);p(g,L,z,"ϰ","\\varkappa");p(g,L,gr,"┌","\\@ulcorner",!0);p(g,L,Gt,"┐","\\@urcorner",!0);p(g,L,gr,"└","\\@llcorner",!0);p(g,L,Gt,"┘","\\@lrcorner",!0);p(g,L,D,"≦","\\leqq",!0);p(g,L,D,"⩽","\\leqslant",!0);p(g,L,D,"⪕","\\eqslantless",!0);p(g,L,D,"≲","\\lesssim",!0);p(g,L,D,"⪅","\\lessapprox",!0);p(g,L,D,"≊","\\approxeq",!0);p(g,L,be,"⋖","\\lessdot");p(g,L,D,"⋘","\\lll",!0);p(g,L,D,"≶","\\lessgtr",!0);p(g,L,D,"⋚","\\lesseqgtr",!0);p(g,L,D,"⪋","\\lesseqqgtr",!0);p(g,L,D,"≑","\\doteqdot");p(g,L,D,"≓","\\risingdotseq",!0);p(g,L,D,"≒","\\fallingdotseq",!0);p(g,L,D,"∽","\\backsim",!0);p(g,L,D,"⋍","\\backsimeq",!0);p(g,L,D,"⫅","\\subseteqq",!0);p(g,L,D,"⋐","\\Subset",!0);p(g,L,D,"⊏","\\sqsubset",!0);p(g,L,D,"≼","\\preccurlyeq",!0);p(g,L,D,"⋞","\\curlyeqprec",!0);p(g,L,D,"≾","\\precsim",!0);p(g,L,D,"⪷","\\precapprox",!0);p(g,L,D,"⊲","\\vartriangleleft");p(g,L,D,"⊴","\\trianglelefteq");p(g,L,D,"⊨","\\vDash",!0);p(g,L,D,"⊪","\\Vvdash",!0);p(g,L,D,"⌣","\\smallsmile");p(g,L,D,"⌢","\\smallfrown");p(g,L,D,"≏","\\bumpeq",!0);p(g,L,D,"≎","\\Bumpeq",!0);p(g,L,D,"≧","\\geqq",!0);p(g,L,D,"⩾","\\geqslant",!0);p(g,L,D,"⪖","\\eqslantgtr",!0);p(g,L,D,"≳","\\gtrsim",!0);p(g,L,D,"⪆","\\gtrapprox",!0);p(g,L,be,"⋗","\\gtrdot");p(g,L,D,"⋙","\\ggg",!0);p(g,L,D,"≷","\\gtrless",!0);p(g,L,D,"⋛","\\gtreqless",!0);p(g,L,D,"⪌","\\gtreqqless",!0);p(g,L,D,"≖","\\eqcirc",!0);p(g,L,D,"≗","\\circeq",!0);p(g,L,D,"≜","\\triangleq",!0);p(g,L,D,"∼","\\thicksim");p(g,L,D,"≈","\\thickapprox");p(g,L,D,"⫆","\\supseteqq",!0);p(g,L,D,"⋑","\\Supset",!0);p(g,L,D,"⊐","\\sqsupset",!0);p(g,L,D,"≽","\\succcurlyeq",!0);p(g,L,D,"⋟","\\curlyeqsucc",!0);p(g,L,D,"≿","\\succsim",!0);p(g,L,D,"⪸","\\succapprox",!0);p(g,L,D,"⊳","\\vartriangleright");p(g,L,D,"⊵","\\trianglerighteq");p(g,L,D,"⊩","\\Vdash",!0);p(g,L,D,"∣","\\shortmid");p(g,L,D,"∥","\\shortparallel");p(g,L,D,"≬","\\between",!0);p(g,L,D,"⋔","\\pitchfork",!0);p(g,L,D,"∝","\\varpropto");p(g,L,D,"◀","\\blacktriangleleft");p(g,L,D,"∴","\\therefore",!0);p(g,L,D,"∍","\\backepsilon");p(g,L,D,"▶","\\blacktriangleright");p(g,L,D,"∵","\\because",!0);p(g,L,D,"⋘","\\llless");p(g,L,D,"⋙","\\gggtr");p(g,L,be,"⊲","\\lhd");p(g,L,be,"⊳","\\rhd");p(g,L,D,"≂","\\eqsim",!0);p(g,x,D,"⋈","\\Join");p(g,L,D,"≑","\\Doteq",!0);p(g,L,be,"∔","\\dotplus",!0);p(g,L,be,"∖","\\smallsetminus");p(g,L,be,"⋒","\\Cap",!0);p(g,L,be,"⋓","\\Cup",!0);p(g,L,be,"⩞","\\doublebarwedge",!0);p(g,L,be,"⊟","\\boxminus",!0);p(g,L,be,"⊞","\\boxplus",!0);p(g,L,be,"⋇","\\divideontimes",!0);p(g,L,be,"⋉","\\ltimes",!0);p(g,L,be,"⋊","\\rtimes",!0);p(g,L,be,"⋋","\\leftthreetimes",!0);p(g,L,be,"⋌","\\rightthreetimes",!0);p(g,L,be,"⋏","\\curlywedge",!0);p(g,L,be,"⋎","\\curlyvee",!0);p(g,L,be,"⊝","\\circleddash",!0);p(g,L,be,"⊛","\\circledast",!0);p(g,L,be,"⋅","\\centerdot");p(g,L,be,"⊺","\\intercal",!0);p(g,L,be,"⋒","\\doublecap");p(g,L,be,"⋓","\\doublecup");p(g,L,be,"⊠","\\boxtimes",!0);p(g,L,D,"⇢","\\dashrightarrow",!0);p(g,L,D,"⇠","\\dashleftarrow",!0);p(g,L,D,"⇇","\\leftleftarrows",!0);p(g,L,D,"⇆","\\leftrightarrows",!0);p(g,L,D,"⇚","\\Lleftarrow",!0);p(g,L,D,"↞","\\twoheadleftarrow",!0);p(g,L,D,"↢","\\leftarrowtail",!0);p(g,L,D,"↫","\\looparrowleft",!0);p(g,L,D,"⇋","\\leftrightharpoons",!0);p(g,L,D,"↶","\\curvearrowleft",!0);p(g,L,D,"↺","\\circlearrowleft",!0);p(g,L,D,"↰","\\Lsh",!0);p(g,L,D,"⇈","\\upuparrows",!0);p(g,L,D,"↿","\\upharpoonleft",!0);p(g,L,D,"⇃","\\downharpoonleft",!0);p(g,x,D,"⊶","\\origof",!0);p(g,x,D,"⊷","\\imageof",!0);p(g,L,D,"⊸","\\multimap",!0);p(g,L,D,"↭","\\leftrightsquigarrow",!0);p(g,L,D,"⇉","\\rightrightarrows",!0);p(g,L,D,"⇄","\\rightleftarrows",!0);p(g,L,D,"↠","\\twoheadrightarrow",!0);p(g,L,D,"↣","\\rightarrowtail",!0);p(g,L,D,"↬","\\looparrowright",!0);p(g,L,D,"↷","\\curvearrowright",!0);p(g,L,D,"↻","\\circlearrowright",!0);p(g,L,D,"↱","\\Rsh",!0);p(g,L,D,"⇊","\\downdownarrows",!0);p(g,L,D,"↾","\\upharpoonright",!0);p(g,L,D,"⇂","\\downharpoonright",!0);p(g,L,D,"⇝","\\rightsquigarrow",!0);p(g,L,D,"⇝","\\leadsto");p(g,L,D,"⇛","\\Rrightarrow",!0);p(g,L,D,"↾","\\restriction");p(g,x,z,"‘","`");p(g,x,z,"$","\\$");p(ae,x,z,"$","\\$");p(ae,x,z,"$","\\textdollar");p(g,x,z,"%","\\%");p(ae,x,z,"%","\\%");p(g,x,z,"_","\\_");p(ae,x,z,"_","\\_");p(ae,x,z,"_","\\textunderscore");p(g,x,z,"∠","\\angle",!0);p(g,x,z,"∞","\\infty",!0);p(g,x,z,"′","\\prime");p(g,x,z,"△","\\triangle");p(g,x,z,"Γ","\\Gamma",!0);p(g,x,z,"Δ","\\Delta",!0);p(g,x,z,"Θ","\\Theta",!0);p(g,x,z,"Λ","\\Lambda",!0);p(g,x,z,"Ξ","\\Xi",!0);p(g,x,z,"Π","\\Pi",!0);p(g,x,z,"Σ","\\Sigma",!0);p(g,x,z,"Υ","\\Upsilon",!0);p(g,x,z,"Φ","\\Phi",!0);p(g,x,z,"Ψ","\\Psi",!0);p(g,x,z,"Ω","\\Omega",!0);p(g,x,z,"A","Α");p(g,x,z,"B","Β");p(g,x,z,"E","Ε");p(g,x,z,"Z","Ζ");p(g,x,z,"H","Η");p(g,x,z,"I","Ι");p(g,x,z,"K","Κ");p(g,x,z,"M","Μ");p(g,x,z,"N","Ν");p(g,x,z,"O","Ο");p(g,x,z,"P","Ρ");p(g,x,z,"T","Τ");p(g,x,z,"X","Χ");p(g,x,z,"¬","\\neg",!0);p(g,x,z,"¬","\\lnot");p(g,x,z,"⊤","\\top");p(g,x,z,"⊥","\\bot");p(g,x,z,"∅","\\emptyset");p(g,L,z,"∅","\\varnothing");p(g,x,ke,"α","\\alpha",!0);p(g,x,ke,"β","\\beta",!0);p(g,x,ke,"γ","\\gamma",!0);p(g,x,ke,"δ","\\delta",!0);p(g,x,ke,"ϵ","\\epsilon",!0);p(g,x,ke,"ζ","\\zeta",!0);p(g,x,ke,"η","\\eta",!0);p(g,x,ke,"θ","\\theta",!0);p(g,x,ke,"ι","\\iota",!0);p(g,x,ke,"κ","\\kappa",!0);p(g,x,ke,"λ","\\lambda",!0);p(g,x,ke,"μ","\\mu",!0);p(g,x,ke,"ν","\\nu",!0);p(g,x,ke,"ξ","\\xi",!0);p(g,x,ke,"ο","\\omicron",!0);p(g,x,ke,"π","\\pi",!0);p(g,x,ke,"ρ","\\rho",!0);p(g,x,ke,"σ","\\sigma",!0);p(g,x,ke,"τ","\\tau",!0);p(g,x,ke,"υ","\\upsilon",!0);p(g,x,ke,"ϕ","\\phi",!0);p(g,x,ke,"χ","\\chi",!0);p(g,x,ke,"ψ","\\psi",!0);p(g,x,ke,"ω","\\omega",!0);p(g,x,ke,"ε","\\varepsilon",!0);p(g,x,ke,"ϑ","\\vartheta",!0);p(g,x,ke,"ϖ","\\varpi",!0);p(g,x,ke,"ϱ","\\varrho",!0);p(g,x,ke,"ς","\\varsigma",!0);p(g,x,ke,"φ","\\varphi",!0);p(g,x,be,"∗","*",!0);p(g,x,be,"+","+");p(g,x,be,"−","-",!0);p(g,x,be,"⋅","\\cdot",!0);p(g,x,be,"∘","\\circ",!0);p(g,x,be,"÷","\\div",!0);p(g,x,be,"±","\\pm",!0);p(g,x,be,"×","\\times",!0);p(g,x,be,"∩","\\cap",!0);p(g,x,be,"∪","\\cup",!0);p(g,x,be,"∖","\\setminus",!0);p(g,x,be,"∧","\\land");p(g,x,be,"∨","\\lor");p(g,x,be,"∧","\\wedge",!0);p(g,x,be,"∨","\\vee",!0);p(g,x,z,"√","\\surd");p(g,x,gr,"⟨","\\langle",!0);p(g,x,gr,"∣","\\lvert");p(g,x,gr,"∥","\\lVert");p(g,x,Gt,"?","?");p(g,x,Gt,"!","!");p(g,x,Gt,"⟩","\\rangle",!0);p(g,x,Gt,"∣","\\rvert");p(g,x,Gt,"∥","\\rVert");p(g,x,D,"=","=");p(g,x,D,":",":");p(g,x,D,"≈","\\approx",!0);p(g,x,D,"≅","\\cong",!0);p(g,x,D,"≥","\\ge");p(g,x,D,"≥","\\geq",!0);p(g,x,D,"←","\\gets");p(g,x,D,">","\\gt",!0);p(g,x,D,"∈","\\in",!0);p(g,x,D,"","\\@not");p(g,x,D,"⊂","\\subset",!0);p(g,x,D,"⊃","\\supset",!0);p(g,x,D,"⊆","\\subseteq",!0);p(g,x,D,"⊇","\\supseteq",!0);p(g,L,D,"⊈","\\nsubseteq",!0);p(g,L,D,"⊉","\\nsupseteq",!0);p(g,x,D,"⊨","\\models");p(g,x,D,"←","\\leftarrow",!0);p(g,x,D,"≤","\\le");p(g,x,D,"≤","\\leq",!0);p(g,x,D,"<","\\lt",!0);p(g,x,D,"→","\\rightarrow",!0);p(g,x,D,"→","\\to");p(g,L,D,"≱","\\ngeq",!0);p(g,L,D,"≰","\\nleq",!0);p(g,x,An," ","\\ ");p(g,x,An," ","\\space");p(g,x,An," ","\\nobreakspace");p(ae,x,An," ","\\ ");p(ae,x,An," "," ");p(ae,x,An," ","\\space");p(ae,x,An," ","\\nobreakspace");p(g,x,An,null,"\\nobreak");p(g,x,An,null,"\\allowbreak");p(g,x,Yo,",",",");p(g,x,Yo,";",";");p(g,L,be,"⊼","\\barwedge",!0);p(g,L,be,"⊻","\\veebar",!0);p(g,x,be,"⊙","\\odot",!0);p(g,x,be,"⊕","\\oplus",!0);p(g,x,be,"⊗","\\otimes",!0);p(g,x,z,"∂","\\partial",!0);p(g,x,be,"⊘","\\oslash",!0);p(g,L,be,"⊚","\\circledcirc",!0);p(g,L,be,"⊡","\\boxdot",!0);p(g,x,be,"△","\\bigtriangleup");p(g,x,be,"▽","\\bigtriangledown");p(g,x,be,"†","\\dagger");p(g,x,be,"⋄","\\diamond");p(g,x,be,"⋆","\\star");p(g,x,be,"◃","\\triangleleft");p(g,x,be,"▹","\\triangleright");p(g,x,gr,"{","\\{");p(ae,x,z,"{","\\{");p(ae,x,z,"{","\\textbraceleft");p(g,x,Gt,"}","\\}");p(ae,x,z,"}","\\}");p(ae,x,z,"}","\\textbraceright");p(g,x,gr,"{","\\lbrace");p(g,x,Gt,"}","\\rbrace");p(g,x,gr,"[","\\lbrack",!0);p(ae,x,z,"[","\\lbrack",!0);p(g,x,Gt,"]","\\rbrack",!0);p(ae,x,z,"]","\\rbrack",!0);p(g,x,gr,"(","\\lparen",!0);p(g,x,Gt,")","\\rparen",!0);p(ae,x,z,"<","\\textless",!0);p(ae,x,z,">","\\textgreater",!0);p(g,x,gr,"⌊","\\lfloor",!0);p(g,x,Gt,"⌋","\\rfloor",!0);p(g,x,gr,"⌈","\\lceil",!0);p(g,x,Gt,"⌉","\\rceil",!0);p(g,x,z,"\\","\\backslash");p(g,x,z,"∣","|");p(g,x,z,"∣","\\vert");p(ae,x,z,"|","\\textbar",!0);p(g,x,z,"∥","\\|");p(g,x,z,"∥","\\Vert");p(ae,x,z,"∥","\\textbardbl");p(ae,x,z,"~","\\textasciitilde");p(ae,x,z,"\\","\\textbackslash");p(ae,x,z,"^","\\textasciicircum");p(g,x,D,"↑","\\uparrow",!0);p(g,x,D,"⇑","\\Uparrow",!0);p(g,x,D,"↓","\\downarrow",!0);p(g,x,D,"⇓","\\Downarrow",!0);p(g,x,D,"↕","\\updownarrow",!0);p(g,x,D,"⇕","\\Updownarrow",!0);p(g,x,Et,"∐","\\coprod");p(g,x,Et,"⋁","\\bigvee");p(g,x,Et,"⋀","\\bigwedge");p(g,x,Et,"⨄","\\biguplus");p(g,x,Et,"⋂","\\bigcap");p(g,x,Et,"⋃","\\bigcup");p(g,x,Et,"∫","\\int");p(g,x,Et,"∫","\\intop");p(g,x,Et,"∬","\\iint");p(g,x,Et,"∭","\\iiint");p(g,x,Et,"∏","\\prod");p(g,x,Et,"∑","\\sum");p(g,x,Et,"⨂","\\bigotimes");p(g,x,Et,"⨁","\\bigoplus");p(g,x,Et,"⨀","\\bigodot");p(g,x,Et,"∮","\\oint");p(g,x,Et,"∯","\\oiint");p(g,x,Et,"∰","\\oiiint");p(g,x,Et,"⨆","\\bigsqcup");p(g,x,Et,"∫","\\smallint");p(ae,x,ri,"…","\\textellipsis");p(g,x,ri,"…","\\mathellipsis");p(ae,x,ri,"…","\\ldots",!0);p(g,x,ri,"…","\\ldots",!0);p(g,x,ri,"⋯","\\@cdots",!0);p(g,x,ri,"⋱","\\ddots",!0);p(g,x,z,"⋮","\\varvdots");p(ae,x,z,"⋮","\\varvdots");p(g,x,ot,"ˊ","\\acute");p(g,x,ot,"ˋ","\\grave");p(g,x,ot,"¨","\\ddot");p(g,x,ot,"~","\\tilde");p(g,x,ot,"ˉ","\\bar");p(g,x,ot,"˘","\\breve");p(g,x,ot,"ˇ","\\check");p(g,x,ot,"^","\\hat");p(g,x,ot,"⃗","\\vec");p(g,x,ot,"˙","\\dot");p(g,x,ot,"˚","\\mathring");p(g,x,ke,"","\\@imath");p(g,x,ke,"","\\@jmath");p(g,x,z,"ı","ı");p(g,x,z,"ȷ","ȷ");p(ae,x,z,"ı","\\i",!0);p(ae,x,z,"ȷ","\\j",!0);p(ae,x,z,"ß","\\ss",!0);p(ae,x,z,"æ","\\ae",!0);p(ae,x,z,"œ","\\oe",!0);p(ae,x,z,"ø","\\o",!0);p(ae,x,z,"Æ","\\AE",!0);p(ae,x,z,"Œ","\\OE",!0);p(ae,x,z,"Ø","\\O",!0);p(ae,x,ot,"ˊ","\\'");p(ae,x,ot,"ˋ","\\`");p(ae,x,ot,"ˆ","\\^");p(ae,x,ot,"˜","\\~");p(ae,x,ot,"ˉ","\\=");p(ae,x,ot,"˘","\\u");p(ae,x,ot,"˙","\\.");p(ae,x,ot,"¸","\\c");p(ae,x,ot,"˚","\\r");p(ae,x,ot,"ˇ","\\v");p(ae,x,ot,"¨",'\\"');p(ae,x,ot,"˝","\\H");p(ae,x,ot,"◯","\\textcircled");var Fm={"--":!0,"---":!0,"``":!0,"''":!0};p(ae,x,z,"–","--",!0);p(ae,x,z,"–","\\textendash");p(ae,x,z,"—","---",!0);p(ae,x,z,"—","\\textemdash");p(ae,x,z,"‘","`",!0);p(ae,x,z,"‘","\\textquoteleft");p(ae,x,z,"’","'",!0);p(ae,x,z,"’","\\textquoteright");p(ae,x,z,"“","``",!0);p(ae,x,z,"“","\\textquotedblleft");p(ae,x,z,"”","''",!0);p(ae,x,z,"”","\\textquotedblright");p(g,x,z,"°","\\degree",!0);p(ae,x,z,"°","\\degree");p(ae,x,z,"°","\\textdegree",!0);p(g,x,z,"£","\\pounds");p(g,x,z,"£","\\mathsterling",!0);p(ae,x,z,"£","\\pounds");p(ae,x,z,"£","\\textsterling",!0);p(g,L,z,"✠","\\maltese");p(ae,L,z,"✠","\\maltese");var Md='0123456789/@."';for(var _l=0;_l<Md.length;_l++){var Pd=Md.charAt(_l);p(g,x,z,Pd,Pd)}var Bd='0123456789!@*()-=+";:?/.,';for(var Cl=0;Cl<Bd.length;Cl++){var Fd=Bd.charAt(Cl);p(ae,x,z,Fd,Fd)}var xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Nl=0;Nl<xo.length;Nl++){var Is=xo.charAt(Nl);p(g,x,ke,Is,Is),p(ae,x,z,Is,Is)}p(g,L,z,"C","ℂ");p(ae,L,z,"C","ℂ");p(g,L,z,"H","ℍ");p(ae,L,z,"H","ℍ");p(g,L,z,"N","ℕ");p(ae,L,z,"N","ℕ");p(g,L,z,"P","ℙ");p(ae,L,z,"P","ℙ");p(g,L,z,"Q","ℚ");p(ae,L,z,"Q","ℚ");p(g,L,z,"R","ℝ");p(ae,L,z,"R","ℝ");p(g,L,z,"Z","ℤ");p(ae,L,z,"Z","ℤ");p(g,x,ke,"h","ℎ");p(ae,x,ke,"h","ℎ");var Se="";for(var jt=0;jt<xo.length;jt++){var dt=xo.charAt(jt);Se=String.fromCharCode(55349,56320+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56372+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56424+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56580+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56684+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56736+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56788+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56840+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56944+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),jt<26&&(Se=String.fromCharCode(55349,56632+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se),Se=String.fromCharCode(55349,56476+jt),p(g,x,ke,dt,Se),p(ae,x,z,dt,Se))}Se="𝕜";p(g,x,ke,"k",Se);p(ae,x,z,"k",Se);for(var ra=0;ra<10;ra++){var Mn=ra.toString();Se=String.fromCharCode(55349,57294+ra),p(g,x,ke,Mn,Se),p(ae,x,z,Mn,Se),Se=String.fromCharCode(55349,57314+ra),p(g,x,ke,Mn,Se),p(ae,x,z,Mn,Se),Se=String.fromCharCode(55349,57324+ra),p(g,x,ke,Mn,Se),p(ae,x,z,Mn,Se),Se=String.fromCharCode(55349,57334+ra),p(g,x,ke,Mn,Se),p(ae,x,z,Mn,Se)}var Fu="ÐÞþ";for(var Il=0;Il<Fu.length;Il++){var Rs=Fu.charAt(Il);p(g,x,ke,Rs,Rs),p(ae,x,z,Rs,Rs)}var Os=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Hd=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],V7=function(t,r){var n=t.charCodeAt(0),a=t.charCodeAt(1),i=(n-55296)*1024+(a-56320)+65536,s=r==="math"?0:1;if(119808<=i&&i<120484){var o=Math.floor((i-119808)/26);return[Os[o][2],Os[o][s]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[Hd[l][2],Hd[l][s]]}else{if(i===120485||i===120486)return[Os[0][2],Os[0][s]];if(120486<i&&i<120782)return["",""];throw new ue("Unsupported character: "+t)}},Xo=function(t,r,n){return rt[n][t]&&rt[n][t].replace&&(t=rt[n][t].replace),{value:t,metrics:z0(t,r,n)}},Or=function(t,r,n,a,i){var s=Xo(t,r,n),o=s.metrics;t=s.value;var l;if(o){var u=o.italic;(n==="text"||a&&a.font==="mathit")&&(u=0),l=new kr(t,o.height,o.depth,u,o.skew,o.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),l=new kr(t,0,0,0,0,0,i);if(a){l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var d=a.getColor();d&&(l.style.color=d)}return l},W7=function(t,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Xo(t,"Main-Bold",r).metrics?Or(t,"Main-Bold",r,n,a.concat(["mathbf"])):t==="\\"||rt[r][t].font==="main"?Or(t,"Main-Regular",r,n,a):Or(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},G7=function(t,r,n,a,i){return i!=="textord"&&Xo(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Y7=function(t,r,n){var a=t.mode,i=t.text,s=["mord"],o=a==="math"||a==="text"&&r.font,l=o?r.font:r.fontFamily,u="",d="";if(i.charCodeAt(0)===55349&&([u,d]=V7(i,a)),u.length>0)return Or(i,u,a,r,s.concat(d));if(l){var c,f;if(l==="boldsymbol"){var m=G7(i,a,r,s,n);c=m.fontName,f=[m.fontClass]}else o?(c=Um[l].fontName,f=[l]):(c=Ls(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(Xo(i,c,a).metrics)return Or(i,c,a,r,s.concat(f));if(Fm.hasOwnProperty(i)&&c.slice(0,10)==="Typewriter"){for(var b=[],y=0;y<i.length;y++)b.push(Or(i[y],c,a,r,s.concat(f)));return zm(b)}}if(n==="mathord")return Or(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var w=rt[a][i]&&rt[a][i].font;if(w==="ams"){var E=Ls("amsrm",r.fontWeight,r.fontShape);return Or(i,E,a,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(w==="main"||!w){var A=Ls("textrm",r.fontWeight,r.fontShape);return Or(i,A,a,r,s.concat(r.fontWeight,r.fontShape))}else{var N=Ls(w,r.fontWeight,r.fontShape);return Or(i,N,a,r,s.concat(N,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},X7=(e,t)=>{if(Yn(e.classes)!==Yn(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},K7=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof kr&&n instanceof kr&&X7(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},j0=function(t){for(var r=0,n=0,a=0,i=0;i<t.children.length;i++){var s=t.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=a},Zt=function(t,r,n,a){var i=new cs(t,r,n,a);return j0(i),i},Hm=(e,t,r,n)=>new cs(e,t,r,n),Q7=function(t,r,n){var a=Zt([t],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=he(a.height),a.maxFontSize=1,a},J7=function(t,r,n,a){var i=new U0(t,r,n,a);return j0(i),i},zm=function(t){var r=new us(t);return j0(r),r},Z7=function(t,r){return t instanceof us?Zt([],[t],r):t},ey=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var o=-r[s].shift-i-r[s].elem.depth,l=o-(r[s-1].elem.height+r[s-1].elem.depth);i=i+o,n.push({type:"kern",size:l}),n.push(r[s])}return{children:n,depth:a}}var u;if(t.positionType==="top"){for(var d=t.positionData,c=0;c<t.children.length;c++){var f=t.children[c];d-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}u=d}else if(t.positionType==="bottom")u=-t.positionData;else{var m=t.children[0];if(m.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-m.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-m.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},ty=function(t,r){for(var{children:n,depth:a}=ey(t),i=0,s=0;s<n.length;s++){var o=n[s];if(o.type==="elem"){var l=o.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var u=Zt(["pstrut"],[]);u.style.height=he(i);for(var d=[],c=a,f=a,m=a,b=0;b<n.length;b++){var y=n[b];if(y.type==="kern")m+=y.size;else{var w=y.elem,E=y.wrapperClasses||[],A=y.wrapperStyle||{},N=Zt(E,[u,w],void 0,A);N.style.top=he(-i-m-w.depth),y.marginLeft&&(N.style.marginLeft=y.marginLeft),y.marginRight&&(N.style.marginRight=y.marginRight),d.push(N),m+=w.height+w.depth}c=Math.min(c,m),f=Math.max(f,m)}var F=Zt(["vlist"],d);F.style.height=he(f);var U;if(c<0){var O=Zt([],[]),W=Zt(["vlist"],[O]);W.style.height=he(-c);var X=Zt(["vlist-s"],[new kr("")]);U=[Zt(["vlist-r"],[F,X]),Zt(["vlist-r"],[W])]}else U=[Zt(["vlist-r"],[F])];var Z=Zt(["vlist-t"],U);return U.length===2&&Z.classes.push("vlist-t2"),Z.height=f,Z.depth=-c,Z},ry=(e,t)=>{var r=Zt(["mspace"],[],t),n=ut(e,t);return r.style.marginRight=he(n),r},Ls=function(t,r,n){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},Um={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"}},jm={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ny=function(t,r){var[n,a,i]=jm[t],s=new Xn(n),o=new vn([s],{width:he(a),height:he(i),style:"width:"+he(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Hm(["overlay"],[o],r);return l.height=i,l.style.height=he(i),l.style.width=he(a),l},Q={fontMap:Um,makeSymbol:Or,mathsym:W7,makeSpan:Zt,makeSvgSpan:Hm,makeLineSpan:Q7,makeAnchor:J7,makeFragment:zm,wrapFragment:Z7,makeVList:ty,makeOrd:Y7,makeGlue:ry,staticSvg:ny,svgData:jm,tryCombineChars:K7},lt={number:3,unit:"mu"},na={number:4,unit:"mu"},dn={number:5,unit:"mu"},ay={mord:{mop:lt,mbin:na,mrel:dn,minner:lt},mop:{mord:lt,mop:lt,mrel:dn,minner:lt},mbin:{mord:na,mop:na,mopen:na,minner:na},mrel:{mord:dn,mop:dn,mopen:dn,minner:dn},mopen:{},mclose:{mop:lt,mbin:na,mrel:dn,minner:lt},mpunct:{mord:lt,mop:lt,mrel:dn,mopen:lt,mclose:lt,mpunct:lt,minner:lt},minner:{mord:lt,mop:lt,mbin:na,mrel:dn,mopen:lt,mpunct:lt,minner:lt}},iy={mord:{mop:lt},mop:{mord:lt,mop:lt},mbin:{},mrel:{},mopen:{},mclose:{mop:lt},mpunct:{},minner:{mop:lt}},$m={},Eo={},To={};function ge(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<r.length;++l)$m[r[l]]=o;t&&(i&&(Eo[t]=i),s&&(To[t]=s))}function Ea(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;ge({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var vo=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},gt=function(t){return t.type==="ordgroup"?t.body:[t]},wn=Q.makeSpan,sy=["leftmost","mbin","mopen","mrel","mop","mpunct"],oy=["rightmost","mrel","mclose","mpunct"],ly={display:Ae.DISPLAY,text:Ae.TEXT,script:Ae.SCRIPT,scriptscript:Ae.SCRIPTSCRIPT},uy={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},kt=function(t,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<t.length;s++){var o=We(t[s],r);if(o instanceof us){var l=o.children;i.push(...l)}else i.push(o)}if(Q.tryCombineChars(i),!n)return i;var u=r;if(t.length===1){var d=t[0];d.type==="sizing"?u=r.havingSize(d.size):d.type==="styling"&&(u=r.havingStyle(ly[d.style]))}var c=wn([a[0]||"leftmost"],[],r),f=wn([a[1]||"rightmost"],[],r),m=n==="root";return zd(i,(b,y)=>{var w=y.classes[0],E=b.classes[0];w==="mbin"&&oy.includes(E)?y.classes[0]="mord":E==="mbin"&&sy.includes(w)&&(b.classes[0]="mord")},{node:c},f,m),zd(i,(b,y)=>{var w=Hu(y),E=Hu(b),A=w&&E?b.hasClass("mtight")?iy[w][E]:ay[w][E]:null;if(A)return Q.makeGlue(A,u)},{node:c},f,m),i},zd=function e(t,r,n,a,i){a&&t.push(a);for(var s=0;s<t.length;s++){var o=t[s],l=qm(o);if(l){e(l.children,r,n,null,i);continue}var u=!o.hasClass("mspace");if(u){var d=r(o,n.node);d&&(n.insertAfter?n.insertAfter(d):(t.unshift(d),s++))}u?n.node=o:i&&o.hasClass("newline")&&(n.node=wn(["leftmost"])),n.insertAfter=(c=>f=>{t.splice(c+1,0,f),s++})(s)}a&&t.pop()},qm=function(t){return t instanceof us||t instanceof U0||t instanceof cs&&t.hasClass("enclosing")?t:null},cy=function e(t,r){var n=qm(t);if(n){var a=n.children;if(a.length){if(r==="right")return e(a[a.length-1],"right");if(r==="left")return e(a[0],"left")}}return t},Hu=function(t,r){return t?(r&&(t=cy(t,r)),uy[t.classes[0]]||null):null},Qi=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return wn(r.concat(n))},We=function(t,r,n){if(!t)return wn();if(Eo[t.type]){var a=Eo[t.type](t,r);if(n&&r.size!==n.size){a=wn(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new ue("Got group of unknown type: '"+t.type+"'")};function Ds(e,t){var r=wn(["base"],e,t),n=wn(["strut"]);return n.style.height=he(r.height+r.depth),r.depth&&(n.style.verticalAlign=he(-r.depth)),r.children.unshift(n),r}function zu(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=kt(e,t,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var l=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(l=!0);l||(i.push(Ds(s,t)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(i.push(Ds(s,t)),s=[]),i.push(n[o]));s.length>0&&i.push(Ds(s,t));var u;r?(u=Ds(kt(r,t,!0)),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=wn(["katex-html"],i);if(d.setAttribute("aria-hidden","true"),u){var c=u.children[0];c.style.height=he(d.height+d.depth),d.depth&&(c.style.verticalAlign=he(-d.depth))}return d}function Vm(e){return new us(e)}class dr{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Yn(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Jr&&this.children[n+1]instanceof Jr){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Jr;)a+=this.children[++n].toText();t.appendChild(new Jr(a).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Ye.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Ye.escape(Yn(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Jr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ye.escape(this.toText())}toText(){return this.text}}class dy{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",he(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+he(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var le={MathNode:dr,TextNode:Jr,SpaceNode:dy,newDocumentFragment:Vm},Ar=function(t,r,n){return rt[r][t]&&rt[r][t].replace&&t.charCodeAt(0)!==55349&&!(Fm.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=rt[r][t].replace),new le.TextNode(t)},$0=function(t){return t.length===1?t[0]:new le.MathNode("mrow",t)},q0=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var a=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var i=t.text;if(["\\imath","\\jmath"].includes(i))return null;rt[a][i]&&rt[a][i].replace&&(i=rt[a][i].replace);var s=Q.fontMap[n].fontName;return z0(i,s,a)?Q.fontMap[n].variant:null};function Rl(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Jr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Jr&&r.text===","}else return!1}var ar=function(t,r,n){if(t.length===1){var a=Je(t[0],r);return n&&a instanceof dr&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<t.length;o++){var l=Je(t[o],r);if(l instanceof dr&&s instanceof dr){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(Rl(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&Rl(s))l.children=[...s.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||Rl(s))){var u=l.children[0];u instanceof dr&&u.type==="mn"&&(u.children=[...s.children,...u.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof Jr&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var c=l.children[0];c instanceof Jr&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(l),s=l}return i},Kn=function(t,r,n){return $0(ar(t,r,n))},Je=function(t,r){if(!t)return new le.MathNode("mrow");if(To[t.type]){var n=To[t.type](t,r);return n}else throw new ue("Got group of unknown type: '"+t.type+"'")};function Ud(e,t,r,n,a){var i=ar(e,r),s;i.length===1&&i[0]instanceof dr&&["mrow","mtable"].includes(i[0].type)?s=i[0]:s=new le.MathNode("mrow",i);var o=new le.MathNode("annotation",[new le.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new le.MathNode("semantics",[s,o]),u=new le.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=a?"katex":"katex-mathml";return Q.makeSpan([d],[u])}var Wm=function(t){return new pn({style:t.displayMode?Ae.DISPLAY:Ae.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Gm=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Q.makeSpan(n,[t])}return t},fy=function(t,r,n){var a=Wm(n),i;if(n.output==="mathml")return Ud(t,r,a,n.displayMode,!0);if(n.output==="html"){var s=zu(t,a);i=Q.makeSpan(["katex"],[s])}else{var o=Ud(t,r,a,n.displayMode,!1),l=zu(t,a);i=Q.makeSpan(["katex"],[o,l])}return Gm(i,n)},hy=function(t,r,n){var a=Wm(n),i=zu(t,a),s=Q.makeSpan(["katex"],[i]);return Gm(s,n)},my={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},py=function(t){var r=new le.MathNode("mo",[new le.TextNode(my[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},gy={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},by=function(t){return t.type==="ordgroup"?t.body.length:1},yy=function(t,r){function n(){var o=4e5,l=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var u=t,d=by(u.base),c,f,m;if(d>5)l==="widehat"||l==="widecheck"?(c=420,o=2364,m=.42,f=l+"4"):(c=312,o=2340,m=.34,f="tilde4");else{var b=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][b],c=[0,239,300,360,420][b],m=[0,.24,.3,.3,.36,.42][b],f=l+b):(o=[0,600,1033,2339,2340][b],c=[0,260,286,306,312][b],m=[0,.26,.286,.3,.306,.34][b],f="tilde"+b)}var y=new Xn(f),w=new vn([y],{width:"100%",height:he(m),viewBox:"0 0 "+o+" "+c,preserveAspectRatio:"none"});return{span:Q.makeSvgSpan([],[w],r),minWidth:0,height:m}}else{var E=[],A=gy[l],[N,F,U]=A,O=U/1e3,W=N.length,X,Z;if(W===1){var B=A[3];X=["hide-tail"],Z=[B]}else if(W===2)X=["halfarrow-left","halfarrow-right"],Z=["xMinYMin","xMaxYMin"];else if(W===3)X=["brace-left","brace-center","brace-right"],Z=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
284
|
+
`+W+" children.");for(var re=0;re<W;re++){var j=new Xn(N[re]),S=new vn([j],{width:"400em",height:he(O),viewBox:"0 0 "+o+" "+U,preserveAspectRatio:Z[re]+" slice"}),H=Q.makeSvgSpan([X[re]],[S],r);if(W===1)return{span:H,minWidth:F,height:O};H.style.height=he(O),E.push(H)}return{span:Q.makeSpan(["stretchy"],E,r),minWidth:F,height:O}}}var{span:a,minWidth:i,height:s}=n();return a.height=s,a.style.height=he(s),i>0&&(a.style.minWidth=he(i)),a},xy=function(t,r,n,a,i){var s,o=t.height+t.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=Q.makeSpan(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new Bu({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new Bu({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new vn(u,{width:"100%",height:he(o)});s=Q.makeSvgSpan([],[d],i)}return s.height=o,s.style.height=he(o),s},kn={encloseSpan:xy,mathMLnode:py,svgSpan:yy};function Pe(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 V0(e){var t=Ko(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 Ko(e){return e&&(e.type==="atom"||q7.hasOwnProperty(e.type))?e:null}var W0=(e,t)=>{var r,n,a;e&&e.type==="supsub"?(n=Pe(e.base,"accent"),r=n.base,e.base=r,a=j7(We(e,t)),e.base=n):(n=Pe(e,"accent"),r=n.base);var i=We(r,t.havingCrampedStyle()),s=n.isShifty&&Ye.isCharacterBox(r),o=0;if(s){var l=Ye.getBaseElem(r),u=We(l,t.havingCrampedStyle());o=Dd(u).skew}var d=n.label==="\\c",c=d?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),f;if(n.isStretchy)f=kn.svgSpan(n,t),f=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+he(2*o)+")",marginLeft:he(2*o)}:void 0}]},t);else{var m,b;n.label==="\\vec"?(m=Q.staticSvg("vec",t),b=Q.svgData.vec[1]):(m=Q.makeOrd({mode:n.mode,text:n.label},t,"textord"),m=Dd(m),m.italic=0,b=m.width,d&&(c+=m.depth)),f=Q.makeSpan(["accent-body"],[m]);var y=n.label==="\\textcircled";y&&(f.classes.push("accent-full"),c=i.height);var w=o;y||(w-=b/2),f.style.left=he(w),n.label==="\\textcircled"&&(f.style.top=".2em"),f=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:f}]},t)}var E=Q.makeSpan(["mord","accent"],[f],t);return a?(a.children[0]=E,a.height=Math.max(E.height,a.height),a.classes[0]="mord",a):E},Ym=(e,t)=>{var r=e.isStretchy?kn.mathMLnode(e.label):new le.MathNode("mo",[Ar(e.label,e.mode)]),n=new le.MathNode("mover",[Je(e.base,t),r]);return n.setAttribute("accent","true"),n},Ey=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ge({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 r=vo(t[0]),n=!Ey.test(e.funcName),a=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:W0,mathmlBuilder:Ym});ge({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:W0,mathmlBuilder:Ym});ge({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=We(e.base,t),n=kn.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,i=Q.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return Q.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=kn.mathMLnode(e.label),n=new le.MathNode("munder",[Je(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Ms=e=>{var t=new le.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ge({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,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),a=Q.wrapFragment(We(e.body,n,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=Q.wrapFragment(We(e.below,n,t),t),s.classes.push(i+"-arrow-pad"));var o=kn.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(s){var c=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:c}]},t)}else d=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),Q.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var r=kn.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var a=Ms(Je(e.body,t));if(e.below){var i=Ms(Je(e.below,t));n=new le.MathNode("munderover",[r,i,a])}else n=new le.MathNode("mover",[r,a])}else if(e.below){var s=Ms(Je(e.below,t));n=new le.MathNode("munder",[r,s])}else n=Ms(),n=new le.MathNode("mover",[r,n]);return n}});var Ty=Q.makeSpan;function Xm(e,t){var r=kt(e.body,t,!0);return Ty([e.mclass],r,t)}function Km(e,t){var r,n=ar(e.body,t);return e.mclass==="minner"?r=new le.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new le.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new le.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ge({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:gt(a),isCharacterBox:Ye.isCharacterBox(a)}},htmlBuilder:Xm,mathmlBuilder:Km});var Qo=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"};ge({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Qo(t[0]),body:gt(t[1]),isCharacterBox:Ye.isCharacterBox(t[1])}}});ge({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,a=t[1],i=t[0],s;n!=="\\stackrel"?s=Qo(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:gt(a)},l={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:Ye.isCharacterBox(l)}},htmlBuilder:Xm,mathmlBuilder:Km});ge({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Qo(t[0]),body:gt(t[0])}},htmlBuilder(e,t){var r=kt(e.body,t,!0),n=Q.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=ar(e.body,t),n=new le.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var vy={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},jd=()=>({type:"styling",body:[],mode:"math",style:"display"}),$d=e=>e.type==="textord"&&e.text==="@",wy=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function ky(e,t,r){var n=vy[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[a,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Ay(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 r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new ue("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],i=0;i<t.length;i++){for(var s=t[i],o=jd(),l=0;l<s.length;l++)if(!$d(s[l]))o.body.push(s[l]);else{n.push(o),l+=1;var u=V0(s[l]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var c=0;c<2;c++){for(var f=!0,m=l+1;m<s.length;m++){if(wy(s[m],u)){f=!1,l=m;break}if($d(s[m]))throw new ue("Missing a "+u+" character to complete a CD arrow.",s[m]);d[c].body.push(s[m])}if(f)throw new ue("Missing a "+u+" character to complete a CD arrow.",s[l])}else throw new ue('Expected one of "<>AV=|." after @',s[l]);var b=ky(u,d,e),y={type:"styling",body:[b],mode:"math",style:"display"};n.push(y),o=jd()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var w=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:w,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}ge({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Q.wrapFragment(We(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=he(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new le.MathNode("mrow",[Je(e.label,t)]);return r=new le.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new le.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ge({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Q.wrapFragment(We(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new le.MathNode("mrow",[Je(e.fragment,t)])}});ge({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Pe(t[0],"ordgroup"),a=n.body,i="",s=0;s<a.length;s++){var o=Pe(a[s],"textord");i+=o.text}var l=parseInt(i),u;if(isNaN(l))throw new ue("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new ue("\\@char with invalid code point "+i);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var Qm=(e,t)=>{var r=kt(e.body,t.withColor(e.color),!1);return Q.makeFragment(r)},Jm=(e,t)=>{var r=ar(e.body,t.withColor(e.color)),n=new le.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};ge({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Pe(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:gt(a)}},htmlBuilder:Qm,mathmlBuilder:Jm});ge({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=Pe(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:Qm,mathmlBuilder:Jm});ge({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&Pe(a,"size").value}},htmlBuilder(e,t){var r=Q.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=he(ut(e.size,t)))),r},mathmlBuilder(e,t){var r=new le.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",he(ut(e.size,t)))),r}});var Uu={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Zm=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ue("Expected a control sequence",e);return t},Sy=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},ep=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};ge({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Uu[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Uu[n.text]),Pe(t.parseFunction(),"internal");throw new ue("Invalid token after macro prefix",n)}});ge({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new ue("Expected a control sequence",n);for(var i=0,s,o=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[i].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new ue('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new ue('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new ue("Expected a macro definition");o[i].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(a,{tokens:l,numArgs:i,delimiters:o},r===Uu[r]),{type:"internal",mode:t.mode}}});ge({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Zm(t.gullet.popToken());t.gullet.consumeSpaces();var a=Sy(t);return ep(t,n,a,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ge({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Zm(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return ep(t,n,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Ni=function(t,r,n){var a=rt.math[t]&&rt.math[t].replace,i=z0(a||t,r,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},G0=function(t,r,n,a){var i=n.havingBaseStyle(r),s=Q.makeSpan(a.concat(i.sizingClasses(n)),[t],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},tp=function(t,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=he(i),t.height-=i,t.depth+=i},_y=function(t,r,n,a,i,s){var o=Q.makeSymbol(t,"Main-Regular",i,a),l=G0(o,r,a,s);return n&&tp(l,a,r),l},Cy=function(t,r,n,a){return Q.makeSymbol(t,"Size"+r+"-Regular",n,a)},rp=function(t,r,n,a,i,s){var o=Cy(t,r,i,a),l=G0(Q.makeSpan(["delimsizing","size"+r],[o],a),Ae.TEXT,a,s);return n&&tp(l,a,Ae.TEXT),l},Ol=function(t,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=Q.makeSpan(["delimsizinginner",a],[Q.makeSpan([],[Q.makeSymbol(t,r,n)])]);return{type:"elem",elem:i}},Ll=function(t,r,n){var a=Qr["Size4-Regular"][t.charCodeAt(0)]?Qr["Size4-Regular"][t.charCodeAt(0)][4]:Qr["Size1-Regular"][t.charCodeAt(0)][4],i=new Xn("inner",D7(t,Math.round(1e3*r))),s=new vn([i],{width:he(a),height:he(r),style:"width:"+he(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=Q.makeSvgSpan([],[s],n);return o.height=r,o.style.height=he(r),o.style.width=he(a),{type:"elem",elem:o}},ju=.008,Ps={type:"kern",size:-1*ju},Ny=["|","\\lvert","\\rvert","\\vert"],Iy=["\\|","\\lVert","\\rVert","\\Vert"],np=function(t,r,n,a,i,s){var o,l,u,d,c="",f=0;o=u=d=t,l=null;var m="Size1-Regular";t==="\\uparrow"?u=d="⏐":t==="\\Uparrow"?u=d="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):Ny.includes(t)?(u="∣",c="vert",f=333):Iy.includes(t)?(u="∥",c="doublevert",f=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",d="⎣",m="Size4-Regular",c="lbrack",f=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",d="⎦",m="Size4-Regular",c="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",d="⎣",m="Size4-Regular",c="lfloor",f=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=d="⎢",m="Size4-Regular",c="lceil",f=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",d="⎦",m="Size4-Regular",c="rfloor",f=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=d="⎥",m="Size4-Regular",c="rceil",f=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",d="⎝",m="Size4-Regular",c="lparen",f=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",d="⎠",m="Size4-Regular",c="rparen",f=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",m="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",d="⎩",u="⎪",m="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",d="⎭",u="⎪",m="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",d="⎭",u="⎪",m="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",d="⎩",u="⎪",m="Size4-Regular");var b=Ni(o,m,i),y=b.height+b.depth,w=Ni(u,m,i),E=w.height+w.depth,A=Ni(d,m,i),N=A.height+A.depth,F=0,U=1;if(l!==null){var O=Ni(l,m,i);F=O.height+O.depth,U=2}var W=y+N+F,X=Math.max(0,Math.ceil((r-W)/(U*E))),Z=W+X*U*E,B=a.fontMetrics().axisHeight;n&&(B*=a.sizeMultiplier);var re=Z/2-B,j=[];if(c.length>0){var S=Z-y-N,H=Math.round(Z*1e3),$=M7(c,Math.round(S*1e3)),q=new Xn(c,$),V=(f/1e3).toFixed(3)+"em",G=(H/1e3).toFixed(3)+"em",se=new vn([q],{width:V,height:G,viewBox:"0 0 "+f+" "+H}),C=Q.makeSvgSpan([],[se],a);C.height=H/1e3,C.style.width=V,C.style.height=G,j.push({type:"elem",elem:C})}else{if(j.push(Ol(d,m,i)),j.push(Ps),l===null){var fe=Z-y-N+2*ju;j.push(Ll(u,fe,a))}else{var ye=(Z-y-N-F)/2+2*ju;j.push(Ll(u,ye,a)),j.push(Ps),j.push(Ol(l,m,i)),j.push(Ps),j.push(Ll(u,ye,a))}j.push(Ps),j.push(Ol(o,m,i))}var R=a.havingBaseStyle(Ae.TEXT),we=Q.makeVList({positionType:"bottom",positionData:re,children:j},R);return G0(Q.makeSpan(["delimsizing","mult"],[we],R),Ae.TEXT,a,s)},Dl=80,Ml=.08,Pl=function(t,r,n,a,i){var s=L7(t,a,n),o=new Xn(t,s),l=new vn([o],{width:"400em",height:he(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Q.makeSvgSpan(["hide-tail"],[l],i)},Ry=function(t,r){var n=r.havingBaseSizing(),a=op("\\surd",t*n.sizeMultiplier,sp,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,c;return a.type==="small"?(d=1e3+1e3*s+Dl,t<1?i=1:t<1.4&&(i=.7),l=(1+s+Ml)/i,u=(1+s)/i,o=Pl("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",c=.833/i):a.type==="large"?(d=(1e3+Dl)*Mi[a.size],u=(Mi[a.size]+s)/i,l=(Mi[a.size]+s+Ml)/i,o=Pl("sqrtSize"+a.size,l,d,s,r),o.style.minWidth="1.02em",c=1/i):(l=t+s+Ml,u=t+s,d=Math.floor(1e3*t+s)+Dl,o=Pl("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",c=1.056),o.height=u,o.style.height=he(l),{span:o,advanceWidth:c,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},ap=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Oy=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ip=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Mi=[0,1.2,1.8,2.4,3],Ly=function(t,r,n,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ap.includes(t)||ip.includes(t))return rp(t,r,!1,n,a,i);if(Oy.includes(t))return np(t,Mi[r],!1,n,a,i);throw new ue("Illegal delimiter: '"+t+"'")},Dy=[{type:"small",style:Ae.SCRIPTSCRIPT},{type:"small",style:Ae.SCRIPT},{type:"small",style:Ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],My=[{type:"small",style:Ae.SCRIPTSCRIPT},{type:"small",style:Ae.SCRIPT},{type:"small",style:Ae.TEXT},{type:"stack"}],sp=[{type:"small",style:Ae.SCRIPTSCRIPT},{type:"small",style:Ae.SCRIPT},{type:"small",style:Ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Py=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},op=function(t,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length&&n[s].type!=="stack";s++){var o=Ni(t,Py(n[s]),"math"),l=o.height+o.depth;if(n[s].type==="small"){var u=a.havingBaseStyle(n[s].style);l*=u.sizeMultiplier}if(l>r)return n[s]}return n[n.length-1]},lp=function(t,r,n,a,i,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;ip.includes(t)?o=Dy:ap.includes(t)?o=sp:o=My;var l=op(t,r,o,a);return l.type==="small"?_y(t,l.style,n,a,i,s):l.type==="large"?rp(t,l.size,n,a,i,s):np(t,r,n,a,i,s)},By=function(t,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),c=Math.max(d/500*l,2*d-u);return lp(t,c,!0,a,i,s)},xn={sqrtImage:Ry,sizedDelim:Ly,sizeToMaxHeight:Mi,customSizedDelim:lp,leftRightDelim:By},qd={"\\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}},Fy=["(","\\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 Jo(e,t){var r=Ko(e);if(r&&Fy.includes(r.text))return r;throw r?new ue("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new ue("Invalid delimiter type '"+e.type+"'",e)}ge({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 r=Jo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:qd[e.funcName].size,mclass:qd[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Q.makeSpan([e.mclass]):xn.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Ar(e.delim,e.mode));var r=new le.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=he(xn.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Vd(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ge({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new ue("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Jo(t[0],e).text,color:r}}});ge({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Jo(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=Pe(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Vd(e);for(var r=kt(e.body,t,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++)r[s].isMiddle?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a));n*=t.sizeMultiplier,a*=t.sizeMultiplier;var o;if(e.left==="."?o=Qi(t,["mopen"]):o=xn.leftRightDelim(e.left,n,a,t,e.mode,["mopen"]),r.unshift(o),i)for(var l=1;l<r.length;l++){var u=r[l],d=u.isMiddle;d&&(r[l]=xn.leftRightDelim(d.delim,n,a,d.options,e.mode,[]))}var c;if(e.right===".")c=Qi(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;c=xn.leftRightDelim(e.right,n,a,f,e.mode,["mclose"])}return r.push(c),Q.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{Vd(e);var r=ar(e.body,t);if(e.left!=="."){var n=new le.MathNode("mo",[Ar(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var a=new le.MathNode("mo",[Ar(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return $0(r)}});ge({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Jo(t[0],e);if(!e.parser.leftrightDepth)throw new ue("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Qi(t,[]);else{r=xn.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Ar("|","text"):Ar(e.delim,e.mode),n=new le.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Y0=(e,t)=>{var r=Q.wrapFragment(We(e.body,t),t),n=e.label.slice(1),a=t.sizeMultiplier,i,s=0,o=Ye.isCharacterBox(e.body);if(n==="sout")i=Q.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var l=ut({number:.6,unit:"pt"},t),u=ut({number:.35,unit:"ex"},t),d=t.havingBaseSizing();a=a/d.sizeMultiplier;var c=r.height+r.depth+l+u;r.style.paddingLeft=he(c/2+l);var f=Math.floor(1e3*c*a),m=R7(f),b=new vn([new Xn("phase",m)],{width:"400em",height:he(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=Q.makeSvgSpan(["hide-tail"],[b],t),i.style.height=he(c),s=r.depth+l+u}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,w=0,E=0;/box/.test(n)?(E=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(n==="colorbox"?0:E),w=y):n==="angl"?(E=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*E,w=Math.max(0,.25-r.depth)):(y=o?.2:0,w=y),i=kn.encloseSpan(r,n,y,w,t),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=he(E)):n==="angl"&&E!==.049&&(i.style.borderTopWidth=he(E),i.style.borderRightWidth=he(E)),s=r.depth+w,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var A;if(e.backgroundColor)A=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]},t);else{var N=/cancel|phase/.test(n)?["svg-align"]:[];A=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:N}]},t)}return/cancel/.test(n)&&(A.height=r.height,A.depth=r.depth),/cancel/.test(n)&&!o?Q.makeSpan(["mord","cancel-lap"],[A],t):Q.makeSpan(["mord"],[A],t)},X0=(e,t)=>{var r=0,n=new le.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Je(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};ge({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=Pe(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Y0,mathmlBuilder:X0});ge({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=Pe(t[0],"color-token").color,s=Pe(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:Y0,mathmlBuilder:X0});ge({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ge({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Y0,mathmlBuilder:X0});ge({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var up={};function nn(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)up[r[l]]=o;i&&(Eo[t]=i),s&&(To[t]=s)}var cp={};function v(e,t){cp[e]=t}function Wd(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var Zo=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ue("{"+e.envName+"} can be used only in display mode.")};function K0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Jn(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:c,leqno:f}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var m=e.gullet.expandMacroAsText("\\arraystretch");if(m==null)s=1;else if(s=parseFloat(m),!s||s<0)throw new ue("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var b=[],y=[b],w=[],E=[],A=l!=null?[]:void 0;function N(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function F(){A&&(e.gullet.macros.get("\\df@tag")?(A.push(e.subparse([new mr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):A.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(N(),E.push(Wd(e));;){var U=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),U={type:"ordgroup",mode:e.mode,body:U},r&&(U={type:"styling",mode:e.mode,style:r,body:[U]}),b.push(U);var O=e.fetch().text;if(O==="&"){if(c&&b.length===c){if(u||o)throw new ue("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(O==="\\end"){F(),b.length===1&&U.type==="styling"&&U.body[0].body.length===0&&(y.length>1||!d)&&y.pop(),E.length<y.length+1&&E.push([]);break}else if(O==="\\\\"){e.consume();var W=void 0;e.gullet.future().text!==" "&&(W=e.parseSizeGroup(!0)),w.push(W?W.value:null),F(),E.push(Wd(e)),b=[],y.push(b),N()}else throw new ue("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:s,body:y,cols:i,rowGaps:w,hskipBeforeAndAfter:n,hLinesBeforeRow:E,colSeparationType:o,tags:A,leqno:f}}function Q0(e){return e.slice(0,1)==="d"?"display":"text"}var an=function(t,r){var n,a,i=t.body.length,s=t.hLinesBeforeRow,o=0,l=new Array(i),u=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),c=1/r.fontMetrics().ptPerEm,f=5*c;if(t.colSeparationType&&t.colSeparationType==="small"){var m=r.havingStyle(Ae.SCRIPT).sizeMultiplier;f=.2778*(m/r.sizeMultiplier)}var b=t.colSeparationType==="CD"?ut({number:3,unit:"ex"},r):12*c,y=3*c,w=t.arraystretch*b,E=.7*w,A=.3*w,N=0;function F(Cr){for(var ct=0;ct<Cr.length;++ct)ct>0&&(N+=.25),u.push({pos:N,isDashed:Cr[ct]})}for(F(s[0]),n=0;n<t.body.length;++n){var U=t.body[n],O=E,W=A;o<U.length&&(o=U.length);var X=new Array(U.length);for(a=0;a<U.length;++a){var Z=We(U[a],r);W<Z.depth&&(W=Z.depth),O<Z.height&&(O=Z.height),X[a]=Z}var B=t.rowGaps[n],re=0;B&&(re=ut(B,r),re>0&&(re+=A,W<re&&(W=re),re=0)),t.addJot&&(W+=y),X.height=O,X.depth=W,N+=O,X.pos=N,N+=W+re,l[n]=X,F(s[n+1])}var j=N/2+r.fontMetrics().axisHeight,S=t.cols||[],H=[],$,q,V=[];if(t.tags&&t.tags.some(Cr=>Cr))for(n=0;n<i;++n){var G=l[n],se=G.pos-j,C=t.tags[n],fe=void 0;C===!0?fe=Q.makeSpan(["eqn-num"],[],r):C===!1?fe=Q.makeSpan([],[],r):fe=Q.makeSpan([],kt(C,r,!0),r),fe.depth=G.depth,fe.height=G.height,V.push({type:"elem",elem:fe,shift:se})}for(a=0,q=0;a<o||q<S.length;++a,++q){for(var ye=S[q]||{},R=!0;ye.type==="separator";){if(R||($=Q.makeSpan(["arraycolsep"],[]),$.style.width=he(r.fontMetrics().doubleRuleSep),H.push($)),ye.separator==="|"||ye.separator===":"){var we=ye.separator==="|"?"solid":"dashed",Ne=Q.makeSpan(["vertical-separator"],[],r);Ne.style.height=he(N),Ne.style.borderRightWidth=he(d),Ne.style.borderRightStyle=we,Ne.style.margin="0 "+he(-d/2);var He=N-j;He&&(Ne.style.verticalAlign=he(-He)),H.push(Ne)}else throw new ue("Invalid separator type: "+ye.separator);q++,ye=S[q]||{},R=!1}if(!(a>=o)){var Re=void 0;(a>0||t.hskipBeforeAndAfter)&&(Re=Ye.deflt(ye.pregap,f),Re!==0&&($=Q.makeSpan(["arraycolsep"],[]),$.style.width=he(Re),H.push($)));var _e=[];for(n=0;n<i;++n){var Ze=l[n],it=Ze[a];if(it){var At=Ze.pos-j;it.depth=Ze.depth,it.height=Ze.height,_e.push({type:"elem",elem:it,shift:At})}}_e=Q.makeVList({positionType:"individualShift",children:_e},r),_e=Q.makeSpan(["col-align-"+(ye.align||"c")],[_e]),H.push(_e),(a<o-1||t.hskipBeforeAndAfter)&&(Re=Ye.deflt(ye.postgap,f),Re!==0&&($=Q.makeSpan(["arraycolsep"],[]),$.style.width=he(Re),H.push($)))}}if(l=Q.makeSpan(["mtable"],H),u.length>0){for(var St=Q.makeLineSpan("hline",r,d),_r=Q.makeLineSpan("hdashline",r,d),br=[{type:"elem",elem:l,shift:0}];u.length>0;){var un=u.pop(),Hr=un.pos-j;un.isDashed?br.push({type:"elem",elem:_r,shift:Hr}):br.push({type:"elem",elem:St,shift:Hr})}l=Q.makeVList({positionType:"individualShift",children:br},r)}if(V.length===0)return Q.makeSpan(["mord"],[l],r);var Yt=Q.makeVList({positionType:"individualShift",children:V},r);return Yt=Q.makeSpan(["tag"],[Yt],r),Q.makeFragment([l,Yt])},Hy={c:"center ",l:"left ",r:"right "},sn=function(t,r){for(var n=[],a=new le.MathNode("mtd",[],["mtr-glue"]),i=new le.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var o=t.body[s],l=[],u=0;u<o.length;u++)l.push(new le.MathNode("mtd",[Je(o[u],r)]));t.tags&&t.tags[s]&&(l.unshift(a),l.push(a),t.leqno?l.unshift(i):l.push(i)),n.push(new le.MathNode("mtr",l))}var d=new le.MathNode("mtable",n),c=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);d.setAttribute("rowspacing",he(c));var f="",m="";if(t.cols&&t.cols.length>0){var b=t.cols,y="",w=!1,E=0,A=b.length;b[0].type==="separator"&&(f+="top ",E=1),b[b.length-1].type==="separator"&&(f+="bottom ",A-=1);for(var N=E;N<A;N++)b[N].type==="align"?(m+=Hy[b[N].align],w&&(y+="none "),w=!0):b[N].type==="separator"&&w&&(y+=b[N].separator==="|"?"solid ":"dashed ",w=!1);d.setAttribute("columnalign",m.trim()),/[sd]/.test(y)&&d.setAttribute("columnlines",y.trim())}if(t.colSeparationType==="align"){for(var F=t.cols||[],U="",O=1;O<F.length;O++)U+=O%2?"0em ":"1em ";d.setAttribute("columnspacing",U.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var W="",X=t.hLinesBeforeRow;f+=X[0].length>0?"left ":"",f+=X[X.length-1].length>0?"right ":"";for(var Z=1;Z<X.length-1;Z++)W+=X[Z].length===0?"none ":X[Z][0]?"dashed ":"solid ";return/[sd]/.test(W)&&d.setAttribute("rowlines",W.trim()),f!==""&&(d=new le.MathNode("menclose",[d]),d.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(d=new le.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},dp=function(t,r){t.envName.indexOf("ed")===-1&&Zo(t);var n=[],a=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",s=Jn(t.parser,{cols:n,addJot:!0,autoTag:i?void 0:K0(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var d="",c=0;c<r[0].body.length;c++){var f=Pe(r[0].body[c],"textord");d+=f.text}o=Number(d),l=o*2}var m=!l;s.body.forEach(function(E){for(var A=1;A<E.length;A+=2){var N=Pe(E[A],"styling"),F=Pe(N.body[0],"ordgroup");F.body.unshift(u)}if(m)l<E.length&&(l=E.length);else{var U=E.length/2;if(o<U)throw new ue("Too many math in a row: "+("expected "+o+", but got "+U),E[0])}});for(var b=0;b<l;++b){var y="r",w=0;b%2===1?y="l":b>0&&m&&(w=1),n[b]={type:"align",align:y,pregap:w,postgap:0}}return s.colSeparationType=m?"align":"alignat",s};nn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Ko(t[0]),n=r?[t[0]]:Pe(t[0],"ordgroup").body,a=n.map(function(s){var o=V0(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new ue("Unknown column alignment: "+l,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Jn(e.parser,i,Q0(e.envName))},htmlBuilder:an,mathmlBuilder:sn});nn({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("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,"lcr".indexOf(r)===-1)throw new ue("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=Jn(e.parser,n,Q0(e.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:an,mathmlBuilder:sn});nn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Jn(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:an,mathmlBuilder:sn});nn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Ko(t[0]),n=r?[t[0]]:Pe(t[0],"ordgroup").body,a=n.map(function(s){var o=V0(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new ue("Unknown column alignment: "+l,s)});if(a.length>1)throw new ue("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=Jn(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new ue("{subarray} can contain only one column");return i},htmlBuilder:an,mathmlBuilder:sn});nn({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}]},r=Jn(e.parser,t,Q0(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:an,mathmlBuilder:sn});nn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:dp,htmlBuilder:an,mathmlBuilder:sn});nn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&Zo(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:K0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Jn(e.parser,t,"display")},htmlBuilder:an,mathmlBuilder:sn});nn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:dp,htmlBuilder:an,mathmlBuilder:sn});nn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Zo(e);var t={autoTag:K0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Jn(e.parser,t,"display")},htmlBuilder:an,mathmlBuilder:sn});nn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Zo(e),Ay(e.parser)},htmlBuilder:an,mathmlBuilder:sn});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");ge({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ue(e.funcName+" valid only within array environment")}});var Gd=up;ge({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if(a.type!=="ordgroup")throw new ue("Invalid environment name",a);for(var i="",s=0;s<a.body.length;++s)i+=Pe(a.body[s],"textord").text;if(n==="\\begin"){if(!Gd.hasOwnProperty(i))throw new ue("No such environment: "+i,a);var o=Gd[i],{args:l,optArgs:u}=r.parseArguments("\\begin{"+i+"}",o),d={mode:r.mode,envName:i,parser:r},c=o.handler(d,l,u);r.expect("\\end",!1);var f=r.nextToken,m=Pe(r.parseFunction(),"environment");if(m.name!==i)throw new ue("Mismatch: \\begin{"+i+"} matched by \\end{"+m.name+"}",f);return c}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var fp=(e,t)=>{var r=e.font,n=t.withFont(r);return We(e.body,n)},hp=(e,t)=>{var r=e.font,n=t.withFont(r);return Je(e.body,n)},Yd={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ge({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:r,funcName:n}=e,a=vo(t[0]),i=n;return i in Yd&&(i=Yd[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:fp,mathmlBuilder:hp});ge({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],a=Ye.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Qo(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}});ge({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,s=r.parseExpression(!0,a),o="math"+n.slice(1);return{type:"font",mode:i,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:fp,mathmlBuilder:hp});var mp=(e,t)=>{var r=t;return e==="display"?r=r.id>=Ae.SCRIPT.id?r.text():Ae.DISPLAY:e==="text"&&r.size===Ae.DISPLAY.size?r=Ae.TEXT:e==="script"?r=Ae.SCRIPT:e==="scriptscript"&&(r=Ae.SCRIPTSCRIPT),r},J0=(e,t)=>{var r=mp(e.size,t.style),n=r.fracNum(),a=r.fracDen(),i;i=t.havingStyle(n);var s=We(e.numer,i,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<l?l:s.depth}i=t.havingStyle(a);var u=We(e.denom,i,t),d,c,f;e.hasBarLine?(e.barSize?(c=ut(e.barSize,t),d=Q.makeLineSpan("frac-line",t,c)):d=Q.makeLineSpan("frac-line",t),c=d.height,f=d.height):(d=null,c=0,f=t.fontMetrics().defaultRuleThickness);var m,b,y;r.size===Ae.DISPLAY.size||e.size==="display"?(m=t.fontMetrics().num1,c>0?b=3*f:b=7*f,y=t.fontMetrics().denom1):(c>0?(m=t.fontMetrics().num2,b=f):(m=t.fontMetrics().num3,b=3*f),y=t.fontMetrics().denom2);var w;if(d){var A=t.fontMetrics().axisHeight;m-s.depth-(A+.5*c)<b&&(m+=b-(m-s.depth-(A+.5*c))),A-.5*c-(u.height-y)<b&&(y+=b-(A-.5*c-(u.height-y)));var N=-(A-.5*c);w=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:y},{type:"elem",elem:d,shift:N},{type:"elem",elem:s,shift:-m}]},t)}else{var E=m-s.depth-(u.height-y);E<b&&(m+=.5*(b-E),y+=.5*(b-E)),w=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:y},{type:"elem",elem:s,shift:-m}]},t)}i=t.havingStyle(r),w.height*=i.sizeMultiplier/t.sizeMultiplier,w.depth*=i.sizeMultiplier/t.sizeMultiplier;var F;r.size===Ae.DISPLAY.size?F=t.fontMetrics().delim1:r.size===Ae.SCRIPTSCRIPT.size?F=t.havingStyle(Ae.SCRIPT).fontMetrics().delim2:F=t.fontMetrics().delim2;var U,O;return e.leftDelim==null?U=Qi(t,["mopen"]):U=xn.customSizedDelim(e.leftDelim,F,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?O=Q.makeSpan([]):e.rightDelim==null?O=Qi(t,["mclose"]):O=xn.customSizedDelim(e.rightDelim,F,!0,t.havingStyle(r),e.mode,["mclose"]),Q.makeSpan(["mord"].concat(i.sizingClasses(t)),[U,Q.makeSpan(["mfrac"],[w]),O],t)},Z0=(e,t)=>{var r=new le.MathNode("mfrac",[Je(e.numer,t),Je(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=ut(e.barSize,t);r.setAttribute("linethickness",he(n))}var a=mp(e.size,t.style);if(a.size!==t.style.size){r=new le.MathNode("mstyle",[r]);var i=a.size===Ae.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new le.MathNode("mo",[new le.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(r),e.rightDelim!=null){var l=new le.MathNode("mo",[new le.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return $0(s)}return r};ge({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1],s,o=null,l=null,u="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:a,denom:i,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:J0,mathmlBuilder:Z0});ge({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ge({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,a;switch(r){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:n}}});var Xd=["display","text","script","scriptscript"],Kd=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ge({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],a=t[5],i=vo(t[0]),s=i.type==="atom"&&i.family==="open"?Kd(i.text):null,o=vo(t[1]),l=o.type==="atom"&&o.family==="close"?Kd(o.text):null,u=Pe(t[2],"size"),d,c=null;u.isBlank?d=!0:(c=u.value,d=c.number>0);var f="auto",m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var b=Pe(m.body[0],"textord");f=Xd[Number(b.text)]}}else m=Pe(m,"textord"),f=Xd[Number(m.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:d,barSize:c,leftDelim:s,rightDelim:l,size:f}},htmlBuilder:J0,mathmlBuilder:Z0});ge({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Pe(t[0],"size").value,token:a}}});ge({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=g7(Pe(t[1],"infix").size),s=t[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:J0,mathmlBuilder:Z0});var pp=(e,t)=>{var r=t.style,n,a;e.type==="supsub"?(n=e.sup?We(e.sup,t.havingStyle(r.sup()),t):We(e.sub,t.havingStyle(r.sub()),t),a=Pe(e.base,"horizBrace")):a=Pe(e,"horizBrace");var i=We(a.base,t.havingBaseStyle(Ae.DISPLAY)),s=kn.svgSpan(a,t),o;if(a.isOver?(o=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Q.makeVList({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Q.makeSpan(["mord",a.isOver?"mover":"munder"],[o],t);a.isOver?o=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):o=Q.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Q.makeSpan(["mord",a.isOver?"mover":"munder"],[o],t)},zy=(e,t)=>{var r=kn.mathMLnode(e.label);return new le.MathNode(e.isOver?"mover":"munder",[Je(e.base,t),r])};ge({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:pp,mathmlBuilder:zy});ge({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=Pe(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:gt(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=kt(e.body,t,!1);return Q.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Kn(e.body,t);return r instanceof dr||(r=new dr("mrow",[r])),r.setAttribute("href",e.href),r}});ge({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Pe(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:gt(o)}}});ge({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:gt(t[0])}},htmlBuilder(e,t){var r=kt(e.body,t,!1);return Q.makeFragment(r)},mathmlBuilder(e,t){return new le.MathNode("mrow",ar(e.body,t))}});ge({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:a}=e,i=Pe(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d<u.length;d++){var c=u[d].split("=");if(c.length!==2)throw new ue("Error parsing key-value for \\htmlData");l["data-"+c[0].trim()]=c[1].trim()}o={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:l,body:gt(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=kt(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=Q.makeSpan(n,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>Kn(e.body,t)});ge({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:gt(t[0]),mathml:gt(t[1])}},htmlBuilder:(e,t)=>{var r=kt(e.html,t,!1);return Q.makeFragment(r)},mathmlBuilder:(e,t)=>Kn(e.mathml,t)});var Bl=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new ue("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Dm(n))throw new ue("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ge({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=Pe(r[0],"raw").string,u=l.split(","),d=0;d<u.length;d++){var c=u[d].split("=");if(c.length===2){var f=c[1].trim();switch(c[0].trim()){case"alt":o=f;break;case"width":a=Bl(f);break;case"height":i=Bl(f);break;case"totalheight":s=Bl(f);break;default:throw new ue("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var m=Pe(t[0],"url").url;return o===""&&(o=m,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:m}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=ut(e.height,t),n=0;e.totalheight.number>0&&(n=ut(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=ut(e.width,t));var i={height:he(r+n)};a>0&&(i.width=he(a)),n>0&&(i.verticalAlign=he(-n));var s=new z7(e.src,e.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new le.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=ut(e.height,t),a=0;if(e.totalheight.number>0&&(a=ut(e.totalheight,t)-n,r.setAttribute("valign",he(-a))),r.setAttribute("height",he(n+a)),e.width.number>0){var i=ut(e.width,t);r.setAttribute("width",he(i))}return r.setAttribute("src",e.src),r}});ge({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=Pe(t[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(e,t){return Q.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=ut(e.dimension,t);return new le.SpaceNode(r)}});ge({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Q.makeSpan([],[We(e.body,t)]),r=Q.makeSpan(["inner"],[r],t)):r=Q.makeSpan(["inner"],[We(e.body,t)]);var n=Q.makeSpan(["fix"],[]),a=Q.makeSpan([e.alignment],[r,n],t),i=Q.makeSpan(["strut"]);return i.style.height=he(a.height+a.depth),a.depth&&(i.style.verticalAlign=he(-a.depth)),a.children.unshift(i),a=Q.makeSpan(["thinbox"],[a],t),Q.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new le.MathNode("mpadded",[Je(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});ge({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:s}}});ge({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ue("Mismatched "+e.funcName)}});var Qd=(e,t)=>{switch(t.style.size){case Ae.DISPLAY.size:return e.display;case Ae.TEXT.size:return e.text;case Ae.SCRIPT.size:return e.script;case Ae.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ge({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:gt(t[0]),text:gt(t[1]),script:gt(t[2]),scriptscript:gt(t[3])}},htmlBuilder:(e,t)=>{var r=Qd(e,t),n=kt(r,t,!1);return Q.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Qd(e,t);return Kn(r,t)}});var gp=(e,t,r,n,a,i,s)=>{e=Q.makeSpan([],[e]);var o=r&&Ye.isCharacterBox(r),l,u;if(t){var d=We(t,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var c=We(r,n.havingStyle(a.sub()),n);l={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-c.height)}}var f;if(u&&l){var m=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;f=Q.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:he(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:he(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(l){var b=e.height-s;f=Q.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:he(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},n)}else if(u){var y=e.depth+s;f=Q.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:he(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var w=[f];if(l&&i!==0&&!o){var E=Q.makeSpan(["mspace"],[],n);E.style.marginRight=he(i),w.unshift(E)}return Q.makeSpan(["mop","op-limits"],w,n)},bp=["\\smallint"],ni=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=Pe(e.base,"op"),a=!0):i=Pe(e,"op");var s=t.style,o=!1;s.size===Ae.DISPLAY.size&&i.symbol&&!bp.includes(i.name)&&(o=!0);var l;if(i.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(d=i.name.slice(1),i.name=d==="oiint"?"\\iint":"\\iiint"),l=Q.makeSymbol(i.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var c=l.italic,f=Q.staticSvg(d+"Size"+(o?"2":"1"),t);l=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]},t),i.name="\\"+d,l.classes.unshift("mop"),l.italic=c}}else if(i.body){var m=kt(i.body,t,!0);m.length===1&&m[0]instanceof kr?(l=m[0],l.classes[0]="mop"):l=Q.makeSpan(["mop"],m,t)}else{for(var b=[],y=1;y<i.name.length;y++)b.push(Q.mathsym(i.name[y],i.mode,t));l=Q.makeSpan(["mop"],b,t)}var w=0,E=0;return(l instanceof kr||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(w=(l.height-l.depth)/2-t.fontMetrics().axisHeight,E=l.italic),a?gp(l,r,n,t,s,E,w):(w&&(l.style.position="relative",l.style.top=he(w)),l)},ds=(e,t)=>{var r;if(e.symbol)r=new dr("mo",[Ar(e.name,e.mode)]),bp.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new dr("mo",ar(e.body,t));else{r=new dr("mi",[new Jr(e.name.slice(1))]);var n=new dr("mo",[Ar("","text")]);e.parentIsSupSub?r=new dr("mrow",[r,n]):r=Vm([r,n])}return r},Uy={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ge({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:r,funcName:n}=e,a=n;return a.length===1&&(a=Uy[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ni,mathmlBuilder:ds});ge({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:gt(n)}},htmlBuilder:ni,mathmlBuilder:ds});var jy={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ge({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:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ni,mathmlBuilder:ds});ge({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ni,mathmlBuilder:ds});ge({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=jy[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ni,mathmlBuilder:ds});var yp=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=Pe(e.base,"operatorname"),a=!0):i=Pe(e,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(c=>{var f=c.text;return typeof f=="string"?{type:"textord",mode:c.mode,text:f}:c}),l=kt(o,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var d=l[u];d instanceof kr&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=Q.makeSpan(["mop"],l,t)}else s=Q.makeSpan(["mop"],[],t);return a?gp(s,r,n,t,t.style,0,0):s},$y=(e,t)=>{for(var r=ar(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof le.SpaceNode))if(i instanceof le.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof le.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(d=>d.toText()).join("");r=[new le.TextNode(o)]}var l=new le.MathNode("mi",r);l.setAttribute("mathvariant","normal");var u=new le.MathNode("mo",[Ar("","text")]);return e.parentIsSupSub?new le.MathNode("mrow",[l,u]):le.newDocumentFragment([l,u])};ge({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:gt(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:yp,mathmlBuilder:$y});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Ea({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Q.makeFragment(kt(e.body,t,!1)):Q.makeSpan(["mord"],kt(e.body,t,!0),t)},mathmlBuilder(e,t){return Kn(e.body,t,!0)}});ge({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=We(e.body,t.havingCrampedStyle()),n=Q.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t);return Q.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new le.MathNode("mo",[new le.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new le.MathNode("mover",[Je(e.body,t),r]);return n.setAttribute("accent","true"),n}});ge({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:gt(n)}},htmlBuilder:(e,t)=>{var r=kt(e.body,t.withPhantom(),!1);return Q.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=ar(e.body,t);return new le.MathNode("mphantom",r)}});ge({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Q.makeSpan([],[We(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),Q.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=ar(gt(e.body),t),n=new le.MathNode("mphantom",r),a=new le.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});ge({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Q.makeSpan(["inner"],[We(e.body,t.withPhantom())]),n=Q.makeSpan(["fix"],[]);return Q.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=ar(gt(e.body),t),n=new le.MathNode("mphantom",r),a=new le.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}});ge({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Pe(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=We(e.body,t),n=ut(e.dy,t);return Q.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new le.MathNode("mpadded",[Je(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});ge({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ge({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],i=Pe(t[0],"size"),s=Pe(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&Pe(a,"size").value,width:i.value,height:s.value}},htmlBuilder(e,t){var r=Q.makeSpan(["mord","rule"],[],t),n=ut(e.width,t),a=ut(e.height,t),i=e.shift?ut(e.shift,t):0;return r.style.borderRightWidth=he(n),r.style.borderTopWidth=he(a),r.style.bottom=he(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=ut(e.width,t),n=ut(e.height,t),a=e.shift?ut(e.shift,t):0,i=t.color&&t.getColor()||"black",s=new le.MathNode("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",he(r)),s.setAttribute("height",he(n));var o=new le.MathNode("mpadded",[s]);return a>=0?o.setAttribute("height",he(a)):(o.setAttribute("height",he(a)),o.setAttribute("depth",he(-a))),o.setAttribute("voffset",he(a)),o}});function xp(e,t,r){for(var n=kt(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+t.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Q.makeFragment(n)}var Jd=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],qy=(e,t)=>{var r=t.havingSize(e.size);return xp(e.body,r,t)};ge({type:"sizing",names:Jd,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Jd.indexOf(n)+1,body:i}},htmlBuilder:qy,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=ar(e.body,r),a=new le.MathNode("mstyle",n);return a.setAttribute("mathsize",he(r.sizeMultiplier)),a}});ge({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,s=r[0]&&Pe(r[0],"ordgroup");if(s)for(var o="",l=0;l<s.body.length;++l){var u=s.body[l];if(o=u.text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var d=t[0];return{type:"smash",mode:n.mode,body:d,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var r=Q.makeSpan([],[We(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].depth=0;var i=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return Q.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new le.MathNode("mpadded",[Je(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ge({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=We(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Q.wrapFragment(r,t);var n=t.fontMetrics(),a=n.defaultRuleThickness,i=a;t.style.id<Ae.TEXT.id&&(i=t.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,{span:l,ruleWidth:u,advanceWidth:d}=xn.sqrtImage(o,t),c=l.height-u;c>r.height+r.depth+s&&(s=(s+c-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=he(d);var m=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var b=t.havingStyle(Ae.SCRIPTSCRIPT),y=We(e.index,b,t),w=.6*(m.height-m.depth),E=Q.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:y}]},t),A=Q.makeSpan(["root"],[E]);return Q.makeSpan(["mord","sqrt"],[A,m],t)}else return Q.makeSpan(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new le.MathNode("mroot",[Je(r,t),Je(n,t)]):new le.MathNode("msqrt",[Je(r,t)])}});var Zd={display:Ae.DISPLAY,text:Ae.TEXT,script:Ae.SCRIPT,scriptscript:Ae.SCRIPTSCRIPT};ge({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(e,t){var r=Zd[e.style],n=t.havingStyle(r).withFont("");return xp(e.body,n,t)},mathmlBuilder(e,t){var r=Zd[e.style],n=t.havingStyle(r),a=ar(e.body,n),i=new le.MathNode("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var Vy=function(t,r){var n=t.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===Ae.DISPLAY.size||n.alwaysHandleSupSub);return a?ni:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===Ae.DISPLAY.size||n.limits);return i?yp:null}else{if(n.type==="accent")return Ye.isCharacterBox(n.base)?W0:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?pp:null}else return null}else return null};Ea({type:"supsub",htmlBuilder(e,t){var r=Vy(e,t);if(r)return r(e,t);var{base:n,sup:a,sub:i}=e,s=We(n,t),o,l,u=t.fontMetrics(),d=0,c=0,f=n&&Ye.isCharacterBox(n);if(a){var m=t.havingStyle(t.style.sup());o=We(a,m,t),f||(d=s.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(i){var b=t.havingStyle(t.style.sub());l=We(i,b,t),f||(c=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var y;t.style===Ae.DISPLAY?y=u.sup1:t.style.cramped?y=u.sup3:y=u.sup2;var w=t.sizeMultiplier,E=he(.5/u.ptPerEm/w),A=null;if(l){var N=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof kr||N)&&(A=he(-s.italic))}var F;if(o&&l){d=Math.max(d,y,o.depth+.25*u.xHeight),c=Math.max(c,u.sub2);var U=u.defaultRuleThickness,O=4*U;if(d-o.depth-(l.height-c)<O){c=O-(d-o.depth)+l.height;var W=.8*u.xHeight-(d-o.depth);W>0&&(d+=W,c-=W)}var X=[{type:"elem",elem:l,shift:c,marginRight:E,marginLeft:A},{type:"elem",elem:o,shift:-d,marginRight:E}];F=Q.makeVList({positionType:"individualShift",children:X},t)}else if(l){c=Math.max(c,u.sub1,l.height-.8*u.xHeight);var Z=[{type:"elem",elem:l,marginLeft:A,marginRight:E}];F=Q.makeVList({positionType:"shift",positionData:c,children:Z},t)}else if(o)d=Math.max(d,y,o.depth+.25*u.xHeight),F=Q.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:E}]},t);else throw new Error("supsub must have either sup or sub.");var B=Hu(s,"right")||"mord";return Q.makeSpan([B],[s,Q.makeSpan(["msupsub"],[F])],t)},mathmlBuilder(e,t){var r=!1,n,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[Je(e.base,t)];e.sub&&i.push(Je(e.sub,t)),e.sup&&i.push(Je(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Ae.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Ae.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ae.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ae.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Ae.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Ae.DISPLAY)?s="mover":s="msup"}return new le.MathNode(s,i)}});Ea({type:"atom",htmlBuilder(e,t){return Q.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new le.MathNode("mo",[Ar(e.text,e.mode)]);if(e.family==="bin"){var n=q0(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Ep={mi:"italic",mn:"normal",mtext:"normal"};Ea({type:"mathord",htmlBuilder(e,t){return Q.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new le.MathNode("mi",[Ar(e.text,e.mode,t)]),n=q0(e,t)||"italic";return n!==Ep[r.type]&&r.setAttribute("mathvariant",n),r}});Ea({type:"textord",htmlBuilder(e,t){return Q.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=Ar(e.text,e.mode,t),n=q0(e,t)||"normal",a;return e.mode==="text"?a=new le.MathNode("mtext",[r]):/[0-9]/.test(e.text)?a=new le.MathNode("mn",[r]):e.text==="\\prime"?a=new le.MathNode("mo",[r]):a=new le.MathNode("mi",[r]),n!==Ep[a.type]&&a.setAttribute("mathvariant",n),a}});var Fl={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Hl={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ea({type:"spacing",htmlBuilder(e,t){if(Hl.hasOwnProperty(e.text)){var r=Hl[e.text].className||"";if(e.mode==="text"){var n=Q.makeOrd(e,t,"textord");return n.classes.push(r),n}else return Q.makeSpan(["mspace",r],[Q.mathsym(e.text,e.mode,t)],t)}else{if(Fl.hasOwnProperty(e.text))return Q.makeSpan(["mspace",Fl[e.text]],[],t);throw new ue('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Hl.hasOwnProperty(e.text))r=new le.MathNode("mtext",[new le.TextNode(" ")]);else{if(Fl.hasOwnProperty(e.text))return new le.MathNode("mspace");throw new ue('Unknown type of space "'+e.text+'"')}return r}});var ef=()=>{var e=new le.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Ea({type:"tag",mathmlBuilder(e,t){var r=new le.MathNode("mtable",[new le.MathNode("mtr",[ef(),new le.MathNode("mtd",[Kn(e.body,t)]),ef(),new le.MathNode("mtd",[Kn(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var tf={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},rf={"\\textbf":"textbf","\\textmd":"textmd"},Wy={"\\textit":"textit","\\textup":"textup"},nf=(e,t)=>{var r=e.font;if(r){if(tf[r])return t.withTextFontFamily(tf[r]);if(rf[r])return t.withTextFontWeight(rf[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Wy[r])};ge({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:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:gt(a),font:n}},htmlBuilder(e,t){var r=nf(e,t),n=kt(e.body,r,!0);return Q.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=nf(e,t);return Kn(e.body,r)}});ge({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=We(e.body,t),n=Q.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Q.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return Q.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new le.MathNode("mo",[new le.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new le.MathNode("munder",[Je(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});ge({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=We(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Q.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new le.MathNode("mpadded",[Je(e.body,t)],["vcenter"])}});ge({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new ue("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=af(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(Q.makeSymbol(s,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return Q.makeSpan(["mord","text"].concat(a.sizingClasses(t)),Q.tryCombineChars(n),a)},mathmlBuilder(e,t){var r=new le.TextNode(af(e)),n=new le.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var af=e=>e.body.replace(/ /g,e.star?"␣":" "),$n=$m,Tp=`[ \r
|
|
285
|
+
]`,Gy="\\\\[a-zA-Z@]+",Yy="\\\\[^\uD800-\uDFFF]",Xy="("+Gy+")"+Tp+"*",Ky=`\\\\(
|
|
286
|
+
|[ \r ]+
|
|
287
|
+
?)[ \r ]*`,$u="[̀-ͯ]",Qy=new RegExp($u+"+$"),Jy="("+Tp+"+)|"+(Ky+"|")+"([!-\\[\\]-‧-豈-]"+($u+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+($u+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Xy)+("|"+Yy+")");class sf{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(Jy,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new mr("EOF",new tr(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new ue("Unexpected character: '"+t[r]+"'",new mr(t[r],new tr(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
|
|
288
|
+
`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new mr(a,new tr(this,r,this.tokenRegex.lastIndex))}}class Zy{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ue("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}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,r,n){if(n===void 0&&(n=!1),n){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]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var ex=cp;v("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});v("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});v("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});v("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});v("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");v("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var of={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};v("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new ue("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=of[t.text],n==null||n>=r)throw new ue("Invalid base-"+r+" digit "+t.text);for(var a;(a=of[e.future().text])!=null&&a<r;)n*=r,n+=a,e.popToken()}return"\\@char{"+n+"}"});var ec=(e,t,r,n)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new ue("\\newcommand's first argument must be a macro name");var i=a[0].text,s=e.isDefined(i);if(s&&!t)throw new ue("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new ue("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new ue("Invalid number of arguments: "+l);o=parseInt(l),a=e.consumeArg().tokens}return s&&n||e.macros.set(i,{tokens:a,numArgs:o}),""};v("\\newcommand",e=>ec(e,!1,!0,!1));v("\\renewcommand",e=>ec(e,!0,!1,!1));v("\\providecommand",e=>ec(e,!0,!0,!0));v("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});v("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});v("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),$n[r],rt.math[r],rt.text[r]),""});v("\\bgroup","{");v("\\egroup","}");v("~","\\nobreakspace");v("\\lq","`");v("\\rq","'");v("\\aa","\\r a");v("\\AA","\\r A");v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");v("ℬ","\\mathscr{B}");v("ℰ","\\mathscr{E}");v("ℱ","\\mathscr{F}");v("ℋ","\\mathscr{H}");v("ℐ","\\mathscr{I}");v("ℒ","\\mathscr{L}");v("ℳ","\\mathscr{M}");v("ℛ","\\mathscr{R}");v("ℭ","\\mathfrak{C}");v("ℌ","\\mathfrak{H}");v("ℨ","\\mathfrak{Z}");v("\\Bbbk","\\Bbb{k}");v("·","\\cdotp");v("\\llap","\\mathllap{\\textrm{#1}}");v("\\rlap","\\mathrlap{\\textrm{#1}}");v("\\clap","\\mathclap{\\textrm{#1}}");v("\\mathstrut","\\vphantom{(}");v("\\underbar","\\underline{\\text{#1}}");v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");v("\\ne","\\neq");v("≠","\\neq");v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");v("∉","\\notin");v("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");v("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");v("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");v("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");v("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");v("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");v("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");v("⟂","\\perp");v("‼","\\mathclose{!\\mkern-0.8mu!}");v("∌","\\notni");v("⌜","\\ulcorner");v("⌝","\\urcorner");v("⌞","\\llcorner");v("⌟","\\lrcorner");v("©","\\copyright");v("®","\\textregistered");v("️","\\textregistered");v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");v("⋮","\\vdots");v("\\varGamma","\\mathit{\\Gamma}");v("\\varDelta","\\mathit{\\Delta}");v("\\varTheta","\\mathit{\\Theta}");v("\\varLambda","\\mathit{\\Lambda}");v("\\varXi","\\mathit{\\Xi}");v("\\varPi","\\mathit{\\Pi}");v("\\varSigma","\\mathit{\\Sigma}");v("\\varUpsilon","\\mathit{\\Upsilon}");v("\\varPhi","\\mathit{\\Phi}");v("\\varPsi","\\mathit{\\Psi}");v("\\varOmega","\\mathit{\\Omega}");v("\\substack","\\begin{subarray}{c}#1\\end{subarray}");v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");v("\\boxed","\\fbox{$\\displaystyle{#1}$}");v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");v("\\implies","\\DOTSB\\;\\Longrightarrow\\;");v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var lf={",":"\\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"};v("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in lf?t=lf[r]:(r.slice(0,4)==="\\not"||r in rt.math&&["bin","rel"].includes(rt.math[r].group))&&(t="\\dotsb"),t});var tc={")":!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};v("\\dotso",function(e){var t=e.future().text;return t in tc?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(e){var t=e.future().text;return t in tc&&t!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(e){var t=e.future().text;return t in tc?"\\@cdots\\,":"\\@cdots"});v("\\dotsb","\\cdots");v("\\dotsm","\\cdots");v("\\dotsi","\\!\\cdots");v("\\dotsx","\\ldots\\,");v("\\DOTSI","\\relax");v("\\DOTSB","\\relax");v("\\DOTSX","\\relax");v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");v("\\,","\\tmspace+{3mu}{.1667em}");v("\\thinspace","\\,");v("\\>","\\mskip{4mu}");v("\\:","\\tmspace+{4mu}{.2222em}");v("\\medspace","\\:");v("\\;","\\tmspace+{5mu}{.2777em}");v("\\thickspace","\\;");v("\\!","\\tmspace-{3mu}{.1667em}");v("\\negthinspace","\\!");v("\\negmedspace","\\tmspace-{4mu}{.2222em}");v("\\negthickspace","\\tmspace-{5mu}{.277em}");v("\\enspace","\\kern.5em ");v("\\enskip","\\hskip.5em\\relax");v("\\quad","\\hskip1em\\relax");v("\\qquad","\\hskip2em\\relax");v("\\tag","\\@ifstar\\tag@literal\\tag@paren");v("\\tag@paren","\\tag@literal{({#1})}");v("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ue("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");v("\\newline","\\\\\\relax");v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var vp=he(Qr["Main-Regular"][84][1]-.7*Qr["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+vp+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+vp+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");v("\\hspace","\\@ifstar\\@hspacer\\@hspace");v("\\@hspace","\\hskip #1\\relax");v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");v("\\ordinarycolon",":");v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');v("∷","\\dblcolon");v("∹","\\eqcolon");v("≔","\\coloneqq");v("≕","\\eqqcolon");v("⩴","\\Coloneqq");v("\\ratio","\\vcentcolon");v("\\coloncolon","\\dblcolon");v("\\colonequals","\\coloneqq");v("\\coloncolonequals","\\Coloneqq");v("\\equalscolon","\\eqqcolon");v("\\equalscoloncolon","\\Eqqcolon");v("\\colonminus","\\coloneq");v("\\coloncolonminus","\\Coloneq");v("\\minuscolon","\\eqcolon");v("\\minuscoloncolon","\\Eqcolon");v("\\coloncolonapprox","\\Colonapprox");v("\\coloncolonsim","\\Colonsim");v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");v("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");v("\\nleqq","\\html@mathml{\\@nleqq}{≰}");v("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");v("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");v("\\imath","\\html@mathml{\\@imath}{ı}");v("\\jmath","\\html@mathml{\\@jmath}{ȷ}");v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");v("⟦","\\llbracket");v("⟧","\\rrbracket");v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");v("⦃","\\lBrace");v("⦄","\\rBrace");v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");v("⦵","\\minuso");v("\\darr","\\downarrow");v("\\dArr","\\Downarrow");v("\\Darr","\\Downarrow");v("\\lang","\\langle");v("\\rang","\\rangle");v("\\uarr","\\uparrow");v("\\uArr","\\Uparrow");v("\\Uarr","\\Uparrow");v("\\N","\\mathbb{N}");v("\\R","\\mathbb{R}");v("\\Z","\\mathbb{Z}");v("\\alef","\\aleph");v("\\alefsym","\\aleph");v("\\Alpha","\\mathrm{A}");v("\\Beta","\\mathrm{B}");v("\\bull","\\bullet");v("\\Chi","\\mathrm{X}");v("\\clubs","\\clubsuit");v("\\cnums","\\mathbb{C}");v("\\Complex","\\mathbb{C}");v("\\Dagger","\\ddagger");v("\\diamonds","\\diamondsuit");v("\\empty","\\emptyset");v("\\Epsilon","\\mathrm{E}");v("\\Eta","\\mathrm{H}");v("\\exist","\\exists");v("\\harr","\\leftrightarrow");v("\\hArr","\\Leftrightarrow");v("\\Harr","\\Leftrightarrow");v("\\hearts","\\heartsuit");v("\\image","\\Im");v("\\infin","\\infty");v("\\Iota","\\mathrm{I}");v("\\isin","\\in");v("\\Kappa","\\mathrm{K}");v("\\larr","\\leftarrow");v("\\lArr","\\Leftarrow");v("\\Larr","\\Leftarrow");v("\\lrarr","\\leftrightarrow");v("\\lrArr","\\Leftrightarrow");v("\\Lrarr","\\Leftrightarrow");v("\\Mu","\\mathrm{M}");v("\\natnums","\\mathbb{N}");v("\\Nu","\\mathrm{N}");v("\\Omicron","\\mathrm{O}");v("\\plusmn","\\pm");v("\\rarr","\\rightarrow");v("\\rArr","\\Rightarrow");v("\\Rarr","\\Rightarrow");v("\\real","\\Re");v("\\reals","\\mathbb{R}");v("\\Reals","\\mathbb{R}");v("\\Rho","\\mathrm{P}");v("\\sdot","\\cdot");v("\\sect","\\S");v("\\spades","\\spadesuit");v("\\sub","\\subset");v("\\sube","\\subseteq");v("\\supe","\\supseteq");v("\\Tau","\\mathrm{T}");v("\\thetasym","\\vartheta");v("\\weierp","\\wp");v("\\Zeta","\\mathrm{Z}");v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");v("\\bra","\\mathinner{\\langle{#1}|}");v("\\ket","\\mathinner{|{#1}\\rangle}");v("\\braket","\\mathinner{\\langle{#1}\\rangle}");v("\\Bra","\\left\\langle#1\\right|");v("\\Ket","\\left|#1\\right\\rangle");var wp=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=c=>f=>{e&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",o));var m=c;if(!c&&a.length){var b=f.future();b.text==="|"&&(f.popToken(),m=!0)}return{tokens:m?a:n,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...i,...u,...r]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};v("\\bra@ket",wp(!1));v("\\bra@set",wp(!0));v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");v("\\angln","{\\angl n}");v("\\blue","\\textcolor{##6495ed}{#1}");v("\\orange","\\textcolor{##ffa500}{#1}");v("\\pink","\\textcolor{##ff00af}{#1}");v("\\red","\\textcolor{##df0030}{#1}");v("\\green","\\textcolor{##28ae7b}{#1}");v("\\gray","\\textcolor{gray}{#1}");v("\\purple","\\textcolor{##9d38bd}{#1}");v("\\blueA","\\textcolor{##ccfaff}{#1}");v("\\blueB","\\textcolor{##80f6ff}{#1}");v("\\blueC","\\textcolor{##63d9ea}{#1}");v("\\blueD","\\textcolor{##11accd}{#1}");v("\\blueE","\\textcolor{##0c7f99}{#1}");v("\\tealA","\\textcolor{##94fff5}{#1}");v("\\tealB","\\textcolor{##26edd5}{#1}");v("\\tealC","\\textcolor{##01d1c1}{#1}");v("\\tealD","\\textcolor{##01a995}{#1}");v("\\tealE","\\textcolor{##208170}{#1}");v("\\greenA","\\textcolor{##b6ffb0}{#1}");v("\\greenB","\\textcolor{##8af281}{#1}");v("\\greenC","\\textcolor{##74cf70}{#1}");v("\\greenD","\\textcolor{##1fab54}{#1}");v("\\greenE","\\textcolor{##0d923f}{#1}");v("\\goldA","\\textcolor{##ffd0a9}{#1}");v("\\goldB","\\textcolor{##ffbb71}{#1}");v("\\goldC","\\textcolor{##ff9c39}{#1}");v("\\goldD","\\textcolor{##e07d10}{#1}");v("\\goldE","\\textcolor{##a75a05}{#1}");v("\\redA","\\textcolor{##fca9a9}{#1}");v("\\redB","\\textcolor{##ff8482}{#1}");v("\\redC","\\textcolor{##f9685d}{#1}");v("\\redD","\\textcolor{##e84d39}{#1}");v("\\redE","\\textcolor{##bc2612}{#1}");v("\\maroonA","\\textcolor{##ffbde0}{#1}");v("\\maroonB","\\textcolor{##ff92c6}{#1}");v("\\maroonC","\\textcolor{##ed5fa6}{#1}");v("\\maroonD","\\textcolor{##ca337c}{#1}");v("\\maroonE","\\textcolor{##9e034e}{#1}");v("\\purpleA","\\textcolor{##ddd7ff}{#1}");v("\\purpleB","\\textcolor{##c6b9fc}{#1}");v("\\purpleC","\\textcolor{##aa87ff}{#1}");v("\\purpleD","\\textcolor{##7854ab}{#1}");v("\\purpleE","\\textcolor{##543b78}{#1}");v("\\mintA","\\textcolor{##f5f9e8}{#1}");v("\\mintB","\\textcolor{##edf2df}{#1}");v("\\mintC","\\textcolor{##e0e5cc}{#1}");v("\\grayA","\\textcolor{##f6f7f7}{#1}");v("\\grayB","\\textcolor{##f0f1f2}{#1}");v("\\grayC","\\textcolor{##e3e5e6}{#1}");v("\\grayD","\\textcolor{##d6d8da}{#1}");v("\\grayE","\\textcolor{##babec2}{#1}");v("\\grayF","\\textcolor{##888d93}{#1}");v("\\grayG","\\textcolor{##626569}{#1}");v("\\grayH","\\textcolor{##3b3e40}{#1}");v("\\grayI","\\textcolor{##21242c}{#1}");v("\\kaBlue","\\textcolor{##314453}{#1}");v("\\kaGreen","\\textcolor{##71B307}{#1}");var kp={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class tx{constructor(t,r,n){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=r,this.expansionCount=0,this.feed(t),this.macros=new Zy(ex,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new sf(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 r,n,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new mr("EOF",n.loc)),this.pushTokens(a),new mr("",tr.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new ue("Extra }",i)}else if(i.text==="EOF")throw new ue("Unexpected end of input in a macro argument, expected '"+(t&&n?t[o]:"}")+"'",i);if(t&&n)if((s===0||s===1&&t[o]==="{")&&i.text===t[o]){if(++o,o===t.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new ue("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new ue("Use of the macro doesn't match its definition",i)}}for(var s=[],o=0;o<t;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new ue("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||t&&a.unexpandable){if(t&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new ue("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new ue("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new ue("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new mr(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.indexOf("#")!==-1)for(var s=a.replace(/##/g,"");s.indexOf("#"+(i+1))!==-1;)++i;for(var o=new sf(a,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return a}isDefined(t){return this.macros.has(t)||$n.hasOwnProperty(t)||rt.math.hasOwnProperty(t)||rt.text.hasOwnProperty(t)||kp.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:$n.hasOwnProperty(t)&&!$n[t].primitive}}var uf=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Bs=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),zl={"́":{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"}},cf={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Ap=class Sp{constructor(t,r){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 tx(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new ue("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&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 r=this.nextToken;this.consume(),this.gullet.pushToken(new mr("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Sp.endOfExpression.indexOf(a.text)!==-1||r&&a.text===r||t&&$n[a.text]&&$n[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,a=0;a<t.length;a++)if(t[a].type==="infix"){if(r!==-1)throw new ue("only one infix operator per group",t[a].token);r=a,n=t[a].replaceWith}if(r!==-1&&n){var i,s,o=t.slice(0,r),l=t.slice(r+1);o.length===1&&o[0].type==="ordgroup"?i=o[0]:i={type:"ordgroup",mode:this.mode,body:o},l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[i,t[r],s],[]):u=this.callFunction(n,[i,s],[]),[u]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(t)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new ue("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var s=i.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new ue("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new ue("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new ue("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new ue("Double superscript",i);var o={type:"textord",mode:this.mode,text:"\\prime"},l=[o];for(this.consume();this.fetch().text==="'";)l.push(o),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:l}}else if(Bs[i.text]){var u=uf.test(i.text),d=[];for(d.push(new mr(Bs[i.text])),this.consume();;){var c=this.fetch().text;if(!Bs[c]||uf.test(c)!==u)break;d.unshift(new mr(Bs[c])),this.consume()}var f=this.subparse(d);u?a={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n||a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:r}parseFunction(t,r){var n=this.fetch(),a=n.text,i=$n[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new ue("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new ue("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new ue("Can't use function '"+a+"' in math mode",n);var{args:s,optArgs:o}=this.parseArguments(a,i);return this.callFunction(a,s,o,n,t)}callFunction(t,r,n,a,i){var s={funcName:t,parser:this,token:a,breakOnTokenText:i},o=$n[t];if(o&&o.handler)return o.handler(s,r,n);throw new ue("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],i=[],s=0;s<n;s++){var o=r.argTypes&&r.argTypes[s],l=s<r.numOptionalArgs;(r.primitive&&o==null||r.type==="sqrt"&&s===1&&i[0]==null)&&(o="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",o,l);if(l)i.push(u);else if(u!=null)a.push(u);else throw new ue("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new ue("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new ue("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new ue("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(t,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&t.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new ue("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new ue("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new ue("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!Dm(i))throw new ue("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),s}parseGroup(t,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:tr.range(n,l),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!kp.hasOwnProperty(a)){if(this.settings.throwOnError)throw new ue("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var a=t[n],i=a.text;i==="-"&&t[n+1].text==="-"&&(n+1<r&&t[n+2].text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:tr.range(a,t[n+2]),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:tr.range(a,t[n+1]),text:"--"}),r-=1)),(i==="'"||i==="`")&&t[n+1].text===i&&(t.splice(n,2,{type:"textord",mode:"text",loc:tr.range(a,t[n+1]),text:i+i}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new ue(`\\verb assertion failed --
|
|
289
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}cf.hasOwnProperty(r[0])&&!rt[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=cf[r[0]]+r.slice(1));var i=Qy.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(rt[this.mode][r]){this.settings.strict&&this.mode==="math"&&Fu.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var o=rt[this.mode][r].group,l=tr.range(t),u;if($7.hasOwnProperty(o)){var d=o;u={type:"atom",mode:this.mode,family:d,loc:l,text:r}}else u={type:o,mode:this.mode,loc:l,text:r};s=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Om(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:tr.range(t),text:r};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var f=i[0][c];if(!zl[f])throw new ue("Unknown accent ' "+f+"'",t);var m=zl[f][this.mode]||zl[f].text;if(!m)throw new ue("Accent "+f+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:tr.range(t),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}};Ap.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var rc=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Ap(t,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new ue("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new mr("\\df@tag")])}]}return a},nc=function(t,r,n){r.textContent="";var a=el(t,n).toNode();r.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."),nc=function(){throw new ue("KaTeX doesn't work in quirks mode.")});var _p=function(t,r){var n=el(t,r).toMarkup();return n},Cp=function(t,r){var n=new F0(r);return rc(t,n)},Np=function(t,r,n){if(n.throwOnError||!(t instanceof ue))throw t;var a=Q.makeSpan(["katex-error"],[new kr(r)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+n.errorColor),a},el=function(t,r){var n=new F0(r);try{var a=rc(t,n);return fy(a,t,n)}catch(i){return Np(i,t,n)}},Ip=function(t,r){var n=new F0(r);try{var a=rc(t,n);return hy(a,t,n)}catch(i){return Np(i,t,n)}},Rp="0.16.25",Op={Span:cs,Anchor:U0,SymbolNode:kr,SvgNode:vn,PathNode:Xn,LineNode:Bu},qu={version:Rp,render:nc,renderToString:_p,ParseError:ue,SETTINGS_SCHEMA:Di,__parse:Cp,__renderToDomTree:el,__renderToHTMLTree:Ip,__setFontMetrics:Lm,__defineSymbol:p,__defineFunction:ge,__defineMacro:v,__domTree:Op};const XM=Object.freeze(Object.defineProperty({__proto__:null,ParseError:ue,SETTINGS_SCHEMA:Di,__defineFunction:ge,__defineMacro:v,__defineSymbol:p,__domTree:Op,__parse:Cp,__renderToDomTree:el,__renderToHTMLTree:Ip,__setFontMetrics:Lm,default:qu,get render(){return nc},renderToString:_p,version:Rp},Symbol.toStringTag,{value:"Module"}));const Lp=[],rx=!0,df=!1,Dp="skip";function Mp(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=Za(a),s=n?-1:1;o(e,void 0,[])();function o(l,u,d){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const m=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return f;function f(){let m=Lp,b,y,w;if((!t||i(l,u,d[d.length-1]||void 0))&&(m=nx(r(l,d)),m[0]===df))return m;if("children"in l&&l.children){const E=l;if(E.children&&m[0]!==Dp)for(y=(n?E.children.length:-1)+s,w=d.concat(E);y>-1&&y<E.children.length;){const A=E.children[y];if(b=o(A,y,w)(),b[0]===df)return b;y=typeof b[1]=="number"?b[1]:y+s}}return m}}}function nx(e){return Array.isArray(e)?e:typeof e=="number"?[rx,e]:e==null?Lp:[e]}const ax={},ix=[];function Vu(e){const t=e||ax;return function(r,n){Mp(r,"element",function(a,i){const s=Array.isArray(a.properties.className)?a.properties.className:ix,o=s.includes("language-math"),l=s.includes("math-display"),u=s.includes("math-inline");let d=l;if(!o&&!l&&!u)return;let c=i[i.length-1],f=a;if(a.tagName==="code"&&o&&c&&c.type==="element"&&c.tagName==="pre"&&(f=c,c=i[i.length-2],d=!0),!c)return;const m=r7(f,{whitespace:"pre"});let b;try{b=qu.renderToString(m,{...t,displayMode:d,throwOnError:!0})}catch(w){const E=w,A=E.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...i,a],cause:E,place:a.position,ruleId:A,source:"rehype-katex"});try{b=qu.renderToString(m,{...t,displayMode:d,strict:"ignore",throwOnError:!1})}catch{b=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(w)},children:[{type:"text",value:m}]}]}}typeof b=="string"&&(b=Y8(b).children);const y=c.children.indexOf(f);return c.children.splice(y,1,...b),Dp})}}const Pp=-1,tl=0,Pi=1,wo=2,ac=3,ic=4,sc=5,oc=6,Bp=7,Fp=8,ff=typeof self=="object"?self:globalThis,sx=(e,t)=>{const r=(a,i)=>(e.set(i,a),a),n=a=>{if(e.has(a))return e.get(a);const[i,s]=t[a];switch(i){case tl:case Pp:return r(s,a);case Pi:{const o=r([],a);for(const l of s)o.push(n(l));return o}case wo:{const o=r({},a);for(const[l,u]of s)o[n(l)]=n(u);return o}case ac:return r(new Date(s),a);case ic:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case sc:{const o=r(new Map,a);for(const[l,u]of s)o.set(n(l),n(u));return o}case oc:{const o=r(new Set,a);for(const l of s)o.add(n(l));return o}case Bp:{const{name:o,message:l}=s;return r(new ff[o](l),a)}case Fp:return r(BigInt(s),a);case"BigInt":return r(Object(BigInt(s)),a);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new ff[i](s),a)};return n},hf=e=>sx(new Map,e)(0),Sa="",{toString:ox}={},{keys:lx}=Object,mi=e=>{const t=typeof e;if(t!=="object"||!e)return[tl,t];const r=ox.call(e).slice(8,-1);switch(r){case"Array":return[Pi,Sa];case"Object":return[wo,Sa];case"Date":return[ac,Sa];case"RegExp":return[ic,Sa];case"Map":return[sc,Sa];case"Set":return[oc,Sa];case"DataView":return[Pi,r]}return r.includes("Array")?[Pi,r]:r.includes("Error")?[Bp,r]:[wo,r]},Fs=([e,t])=>e===tl&&(t==="function"||t==="symbol"),ux=(e,t,r,n)=>{const a=(s,o)=>{const l=n.push(s)-1;return r.set(o,l),l},i=s=>{if(r.has(s))return r.get(s);let[o,l]=mi(s);switch(o){case tl:{let d=s;switch(l){case"bigint":o=Fp,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return a([Pp],s)}return a([o,d],s)}case Pi:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),a([l,[...f]],s)}const d=[],c=a([o,d],s);for(const f of s)d.push(i(f));return c}case wo:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const d=[],c=a([o,d],s);for(const f of lx(s))(e||!Fs(mi(s[f])))&&d.push([i(f),i(s[f])]);return c}case ac:return a([o,s.toISOString()],s);case ic:{const{source:d,flags:c}=s;return a([o,{source:d,flags:c}],s)}case sc:{const d=[],c=a([o,d],s);for(const[f,m]of s)(e||!(Fs(mi(f))||Fs(mi(m))))&&d.push([i(f),i(m)]);return c}case oc:{const d=[],c=a([o,d],s);for(const f of s)(e||!Fs(mi(f)))&&d.push(i(f));return c}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return i},mf=(e,{json:t,lossy:r}={})=>{const n=[];return ux(!(t||r),!!t,new Map,n)(e),n},fa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?hf(mf(e,t)):structuredClone(e):(e,t)=>hf(mf(e,t));function cx(e){const t=String(e),r=[];return{toOffset:a,toPoint:n};function n(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let o=r[s];if(o===void 0){const l=pf(t,r[s-1]);o=l===-1?t.length+1:l+1,r[s]=o}if(o>i)return{line:s+1,column:i-(s>0?r[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;r.length<i.line;){const o=r[r.length-1],l=pf(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;r.push(u)}const s=(i.line>1?r[i.line-2]:0)+i.column-1;if(s<r[i.line-1])return s}}}function pf(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
|
|
290
|
+
`,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const Hp={}.hasOwnProperty,dx=Object.prototype;function fx(e,t){const r=t||{};return lc({file:r.file||void 0,location:!1,schema:r.space==="svg"?ti:Go,verbose:r.verbose||!1},e)}function lc(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},so(e,n,r),r}case"#document":case"#document-fragment":{const n=t,a="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:zp(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=cx(i),o=s.toPoint(0),l=s.toPoint(i.length);r.position={start:o,end:l}}return r}case"#documentType":{const n=t;return r={type:"doctype"},so(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},so(e,n,r),r}default:return r=hx(e,t),r}}function zp(e,t){let r=-1;const n=[];for(;++r<t.length;){const a=lc(e,t[r]);n.push(a)}return n}function hx(e,t){const r=e.schema;e.schema=t.namespaceURI===Kr.svg?ti:Go;let n=-1;const a={};for(;++n<t.attrs.length;){const o=t.attrs[n],l=(o.prefix?o.prefix+":":"")+o.name;Hp.call(dx,l)||(a[l]=o.value)}const s=(e.schema.space==="svg"?km:wm)(t.tagName,a,zp(e,t.childNodes));if(so(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&La(l.startTag),d=l&&l.endTag&&La(l.endTag),c=lc(e,o.content);u&&d&&e.file&&(c.position={start:u.end,end:d.start}),s.content=c}return e.schema=r,s}function so(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=mx(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function mx(e,t,r){const n=La(r);if(t.type==="element"){const a=t.children[t.children.length-1];if(n&&!r.endTag&&a&&a.position&&a.position.end&&(n.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(r.attrs)for(s in r.attrs)Hp.call(r.attrs,s)&&(i[P0(e.schema,s).property]=La(r.attrs[s]));r.startTag;const o=La(r.startTag),l=r.endTag?La(r.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=i,t.data={position:u}}}return n}function La(e){const t=gf({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=gf({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function gf(e){return e.line&&e.column?e:void 0}class fs{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}fs.prototype.property={};fs.prototype.normal={};fs.prototype.space=null;function Up(e,t){const r={},n={};let a=-1;for(;++a<e.length;)Object.assign(r,e[a].property),Object.assign(n,e[a].normal);return new fs(r,n,t)}function Wu(e){return e.toLowerCase()}class Sr{constructor(t,r){this.property=t,this.attribute=r}}Sr.prototype.space=null;Sr.prototype.boolean=!1;Sr.prototype.booleanish=!1;Sr.prototype.overloadedBoolean=!1;Sr.prototype.number=!1;Sr.prototype.commaSeparated=!1;Sr.prototype.spaceSeparated=!1;Sr.prototype.commaOrSpaceSeparated=!1;Sr.prototype.mustUseProperty=!1;Sr.prototype.defined=!1;let px=0;const Ie=Ta(),yt=Ta(),jp=Ta(),de=Ta(),tt=Ta(),za=Ta(),ur=Ta();function Ta(){return 2**++px}const Gu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:yt,commaOrSpaceSeparated:ur,commaSeparated:za,number:de,overloadedBoolean:jp,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),Ul=Object.keys(Gu);class uc extends Sr{constructor(t,r,n,a){let i=-1;if(super(t,r),bf(this,"space",a),typeof n=="number")for(;++i<Ul.length;){const s=Ul[i];bf(this,Ul[i],(n&Gu[s])===Gu[s])}}}uc.prototype.defined=!0;function bf(e,t,r){r&&(e[t]=r)}const gx={}.hasOwnProperty;function ai(e){const t={},r={};let n;for(n in e.properties)if(gx.call(e.properties,n)){const a=e.properties[n],i=new uc(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[Wu(n)]=n,r[Wu(i.attribute)]=n}return new fs(t,r,e.space)}const $p=ai({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),qp=ai({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Vp(e,t){return t in e?e[t]:t}function Wp(e,t){return Vp(e,t.toLowerCase())}const Gp=ai({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Wp,properties:{xmlns:null,xmlnsXLink:null}}),Yp=ai({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:tt,ariaCurrent:null,ariaDescribedBy:tt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:tt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:tt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tt,ariaLevel:de,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:tt,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:tt,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:yt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null}}),bx=ai({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Wp,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:za,acceptCharset:tt,accessKey:tt,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:tt,autoFocus:Ie,autoPlay:Ie,blocking:tt,capture:null,charSet:null,checked:Ie,cite:null,className:tt,cols:de,colSpan:null,content:null,contentEditable:yt,controls:Ie,controlsList:tt,coords:de|za,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:jp,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:tt,height:de,hidden:Ie,high:de,href:null,hrefLang:null,htmlFor:tt,httpEquiv:tt,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:tt,itemRef:tt,itemScope:Ie,itemType:tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:de,pattern:null,ping:tt,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:tt,required:Ie,reversed:Ie,rows:de,rowSpan:de,sandbox:tt,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:yt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tt,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:de,security:null,unselectable:null}}),yx=ai({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Vp,properties:{about:ur,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:tt,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:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,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:za,g2:za,glyphName:za,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:ur,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,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:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ur,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ur,rev:ur,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ur,requiredFeatures:ur,requiredFonts:ur,requiredFormats:ur,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:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:ur,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ur,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ur,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xx=/^data[-\w.:]+$/i,yf=/-[a-z]/g,Ex=/[A-Z]/g;function Tx(e,t){const r=Wu(t);let n=t,a=Sr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&xx.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(yf,wx);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!yf.test(i)){let s=i.replace(Ex,vx);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=uc}return new a(n,t)}function vx(e){return"-"+e.toLowerCase()}function wx(e){return e.charAt(1).toUpperCase()}const kx=Up([qp,$p,Gp,Yp,bx],"html"),Xp=Up([qp,$p,Gp,Yp,yx],"svg"),xf={}.hasOwnProperty;function Kp(e,t){const r=t||{};function n(a,...i){let s=n.invalid;const o=n.handlers;if(a&&xf.call(a,e)){const l=String(a[e]);s=xf.call(o,l)?o[l]:n.unknown}if(s)return s.call(this,a,...i)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const Ax={},Sx={}.hasOwnProperty,Qp=Kp("type",{handlers:{root:Cx,element:Lx,text:Rx,comment:Ox,doctype:Ix}});function _x(e,t){const n=(t||Ax).space;return Qp(e,n==="svg"?Xp:kx)}function Cx(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=cc(e.children,r,t),ii(e,r),r}function Nx(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=cc(e.children,r,t),ii(e,r),r}function Ix(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ii(e,t),t}function Rx(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ii(e,t),t}function Ox(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ii(e,t),t}function Lx(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=Xp);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Sx.call(e.properties,i)){const l=Dx(n,i,e.properties[i]);l&&a.push(l)}}const s=n.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Kr[s],childNodes:[],parentNode:null};return o.childNodes=cc(e.children,o,n),ii(e,o),e.tagName==="template"&&e.content&&(o.content=Nx(e.content,n)),o}function Dx(e,t,r){const n=Tx(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?Em(r):Tm(r));const a={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=n.attribute.slice(0,i)),a.namespace=Kr[n.space]}return a}function cc(e,t,r){let n=-1;const a=[];if(e)for(;++n<e.length;){const i=Qp(e[n],r);i.parentNode=t,a.push(i)}return a}function ii(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const Mx=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Px=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]),st="�";var _;(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"})(_||(_={}));const Qt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Jp(e){return e>=55296&&e<=57343}function Bx(e){return e>=56320&&e<=57343}function Fx(e,t){return(e-55296)*1024+9216+t}function Zp(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function e2(e){return e>=64976&&e<=65007||Px.has(e)}var ee;(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"})(ee||(ee={}));const Hx=65536;class zx{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=Hx,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,r){const{line:n,col:a,offset:i}=this,s=a+r,o=i+r;return{code:t,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:o,endOffset:o}}_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 r=this.html.charCodeAt(this.pos+1);if(Bx(r))return this.pos++,this._addGap(),Fx(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,_.EOF;return this._err(ee.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,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;const n=this.html.charCodeAt(r);return n===_.CARRIAGE_RETURN?_.LINE_FEED:n}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,_.EOF;let t=this.html.charCodeAt(this.pos);return t===_.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,_.LINE_FEED):t===_.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Jp(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===_.LINE_FEED||t===_.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Zp(t)?this._err(ee.controlCharacterInInputStream):e2(t)&&this._err(ee.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ze;(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"})(ze||(ze={}));function t2(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const Ux=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),jx=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 $x(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=jx.get(e))!==null&&t!==void 0?t:e}var It;(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"})(It||(It={}));const qx=32;var qn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(qn||(qn={}));function Yu(e){return e>=It.ZERO&&e<=It.NINE}function Vx(e){return e>=It.UPPER_A&&e<=It.UPPER_F||e>=It.LOWER_A&&e<=It.LOWER_F}function Wx(e){return e>=It.UPPER_A&&e<=It.UPPER_Z||e>=It.LOWER_A&&e<=It.LOWER_Z||Yu(e)}function Gx(e){return e===It.EQUALS||Wx(e)}var Ct;(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"})(Ct||(Ct={}));var gn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(gn||(gn={}));class Yx{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Ct.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=gn.Strict}startEntity(t){this.decodeMode=t,this.state=Ct.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Ct.EntityStart:return t.charCodeAt(r)===It.NUM?(this.state=Ct.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Ct.NamedEntity,this.stateNamedEntity(t,r));case Ct.NumericStart:return this.stateNumericStart(t,r);case Ct.NumericDecimal:return this.stateNumericDecimal(t,r);case Ct.NumericHex:return this.stateNumericHex(t,r);case Ct.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|qx)===It.LOWER_X?(this.state=Ct.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Ct.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,a){if(r!==n){const i=n-r;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(r,i),a),this.consumed+=i}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(Yu(a)||Vx(a))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(Yu(a))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===It.SEMI)this.consumed+=1;else if(this.decodeMode===gn.Strict)return 0;return this.emitCodePoint($x(this.result),this.consumed),this.errors&&(t!==It.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let a=n[this.treeIndex],i=(a&qn.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=Xx(n,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===gn.Attribute&&(i===0||Gx(s))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&qn.VALUE_LENGTH)>>14,i!==0){if(s===It.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==gn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,a=(n[r]&qn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[t]&~qn.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case Ct.NamedEntity:return this.result!==0&&(this.decodeMode!==gn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ct.NumericDecimal:return this.emitNumericEntity(0,2);case Ct.NumericHex:return this.emitNumericEntity(0,3);case Ct.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ct.EntityStart:return 0}}}function Xx(e,t,r,n){const a=(t&qn.BRANCH_LENGTH)>>7,i=t&qn.JUMP_TABLE;if(a===0)return i!==0&&n===i?r:-1;if(i){const l=n-i;return l<0||l>=a?-1:e[r+l]-1}let s=r,o=s+a-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<n)s=l+1;else if(u>n)o=l-1;else return e[l+a]}return-1}var ie;(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/"})(ie||(ie={}));var la;(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"})(la||(la={}));var xr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(xr||(xr={}));var Y;(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"})(Y||(Y={}));var h;(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"})(h||(h={}));const Kx=new Map([[Y.A,h.A],[Y.ADDRESS,h.ADDRESS],[Y.ANNOTATION_XML,h.ANNOTATION_XML],[Y.APPLET,h.APPLET],[Y.AREA,h.AREA],[Y.ARTICLE,h.ARTICLE],[Y.ASIDE,h.ASIDE],[Y.B,h.B],[Y.BASE,h.BASE],[Y.BASEFONT,h.BASEFONT],[Y.BGSOUND,h.BGSOUND],[Y.BIG,h.BIG],[Y.BLOCKQUOTE,h.BLOCKQUOTE],[Y.BODY,h.BODY],[Y.BR,h.BR],[Y.BUTTON,h.BUTTON],[Y.CAPTION,h.CAPTION],[Y.CENTER,h.CENTER],[Y.CODE,h.CODE],[Y.COL,h.COL],[Y.COLGROUP,h.COLGROUP],[Y.DD,h.DD],[Y.DESC,h.DESC],[Y.DETAILS,h.DETAILS],[Y.DIALOG,h.DIALOG],[Y.DIR,h.DIR],[Y.DIV,h.DIV],[Y.DL,h.DL],[Y.DT,h.DT],[Y.EM,h.EM],[Y.EMBED,h.EMBED],[Y.FIELDSET,h.FIELDSET],[Y.FIGCAPTION,h.FIGCAPTION],[Y.FIGURE,h.FIGURE],[Y.FONT,h.FONT],[Y.FOOTER,h.FOOTER],[Y.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[Y.FORM,h.FORM],[Y.FRAME,h.FRAME],[Y.FRAMESET,h.FRAMESET],[Y.H1,h.H1],[Y.H2,h.H2],[Y.H3,h.H3],[Y.H4,h.H4],[Y.H5,h.H5],[Y.H6,h.H6],[Y.HEAD,h.HEAD],[Y.HEADER,h.HEADER],[Y.HGROUP,h.HGROUP],[Y.HR,h.HR],[Y.HTML,h.HTML],[Y.I,h.I],[Y.IMG,h.IMG],[Y.IMAGE,h.IMAGE],[Y.INPUT,h.INPUT],[Y.IFRAME,h.IFRAME],[Y.KEYGEN,h.KEYGEN],[Y.LABEL,h.LABEL],[Y.LI,h.LI],[Y.LINK,h.LINK],[Y.LISTING,h.LISTING],[Y.MAIN,h.MAIN],[Y.MALIGNMARK,h.MALIGNMARK],[Y.MARQUEE,h.MARQUEE],[Y.MATH,h.MATH],[Y.MENU,h.MENU],[Y.META,h.META],[Y.MGLYPH,h.MGLYPH],[Y.MI,h.MI],[Y.MO,h.MO],[Y.MN,h.MN],[Y.MS,h.MS],[Y.MTEXT,h.MTEXT],[Y.NAV,h.NAV],[Y.NOBR,h.NOBR],[Y.NOFRAMES,h.NOFRAMES],[Y.NOEMBED,h.NOEMBED],[Y.NOSCRIPT,h.NOSCRIPT],[Y.OBJECT,h.OBJECT],[Y.OL,h.OL],[Y.OPTGROUP,h.OPTGROUP],[Y.OPTION,h.OPTION],[Y.P,h.P],[Y.PARAM,h.PARAM],[Y.PLAINTEXT,h.PLAINTEXT],[Y.PRE,h.PRE],[Y.RB,h.RB],[Y.RP,h.RP],[Y.RT,h.RT],[Y.RTC,h.RTC],[Y.RUBY,h.RUBY],[Y.S,h.S],[Y.SCRIPT,h.SCRIPT],[Y.SEARCH,h.SEARCH],[Y.SECTION,h.SECTION],[Y.SELECT,h.SELECT],[Y.SOURCE,h.SOURCE],[Y.SMALL,h.SMALL],[Y.SPAN,h.SPAN],[Y.STRIKE,h.STRIKE],[Y.STRONG,h.STRONG],[Y.STYLE,h.STYLE],[Y.SUB,h.SUB],[Y.SUMMARY,h.SUMMARY],[Y.SUP,h.SUP],[Y.TABLE,h.TABLE],[Y.TBODY,h.TBODY],[Y.TEMPLATE,h.TEMPLATE],[Y.TEXTAREA,h.TEXTAREA],[Y.TFOOT,h.TFOOT],[Y.TD,h.TD],[Y.TH,h.TH],[Y.THEAD,h.THEAD],[Y.TITLE,h.TITLE],[Y.TR,h.TR],[Y.TRACK,h.TRACK],[Y.TT,h.TT],[Y.U,h.U],[Y.UL,h.UL],[Y.SVG,h.SVG],[Y.VAR,h.VAR],[Y.WBR,h.WBR],[Y.XMP,h.XMP]]);function si(e){var t;return(t=Kx.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const oe=h,Qx={[ie.HTML]:new Set([oe.ADDRESS,oe.APPLET,oe.AREA,oe.ARTICLE,oe.ASIDE,oe.BASE,oe.BASEFONT,oe.BGSOUND,oe.BLOCKQUOTE,oe.BODY,oe.BR,oe.BUTTON,oe.CAPTION,oe.CENTER,oe.COL,oe.COLGROUP,oe.DD,oe.DETAILS,oe.DIR,oe.DIV,oe.DL,oe.DT,oe.EMBED,oe.FIELDSET,oe.FIGCAPTION,oe.FIGURE,oe.FOOTER,oe.FORM,oe.FRAME,oe.FRAMESET,oe.H1,oe.H2,oe.H3,oe.H4,oe.H5,oe.H6,oe.HEAD,oe.HEADER,oe.HGROUP,oe.HR,oe.HTML,oe.IFRAME,oe.IMG,oe.INPUT,oe.LI,oe.LINK,oe.LISTING,oe.MAIN,oe.MARQUEE,oe.MENU,oe.META,oe.NAV,oe.NOEMBED,oe.NOFRAMES,oe.NOSCRIPT,oe.OBJECT,oe.OL,oe.P,oe.PARAM,oe.PLAINTEXT,oe.PRE,oe.SCRIPT,oe.SECTION,oe.SELECT,oe.SOURCE,oe.STYLE,oe.SUMMARY,oe.TABLE,oe.TBODY,oe.TD,oe.TEMPLATE,oe.TEXTAREA,oe.TFOOT,oe.TH,oe.THEAD,oe.TITLE,oe.TR,oe.TRACK,oe.UL,oe.WBR,oe.XMP]),[ie.MATHML]:new Set([oe.MI,oe.MO,oe.MN,oe.MS,oe.MTEXT,oe.ANNOTATION_XML]),[ie.SVG]:new Set([oe.TITLE,oe.FOREIGN_OBJECT,oe.DESC]),[ie.XLINK]:new Set,[ie.XML]:new Set,[ie.XMLNS]:new Set},Xu=new Set([oe.H1,oe.H2,oe.H3,oe.H4,oe.H5,oe.H6]);Y.STYLE,Y.SCRIPT,Y.XMP,Y.IFRAME,Y.NOEMBED,Y.NOFRAMES,Y.PLAINTEXT;var I;(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"})(I||(I={}));const pt={DATA:I.DATA,RCDATA:I.RCDATA,RAWTEXT:I.RAWTEXT,SCRIPT_DATA:I.SCRIPT_DATA,PLAINTEXT:I.PLAINTEXT,CDATA_SECTION:I.CDATA_SECTION};function Jx(e){return e>=_.DIGIT_0&&e<=_.DIGIT_9}function Ii(e){return e>=_.LATIN_CAPITAL_A&&e<=_.LATIN_CAPITAL_Z}function Zx(e){return e>=_.LATIN_SMALL_A&&e<=_.LATIN_SMALL_Z}function Hn(e){return Zx(e)||Ii(e)}function Ef(e){return Hn(e)||Jx(e)}function Hs(e){return e+32}function r2(e){return e===_.SPACE||e===_.LINE_FEED||e===_.TABULATION||e===_.FORM_FEED}function Tf(e){return r2(e)||e===_.SOLIDUS||e===_.GREATER_THAN_SIGN}function eE(e){return e===_.NULL?ee.nullCharacterReference:e>1114111?ee.characterReferenceOutsideUnicodeRange:Jp(e)?ee.surrogateCharacterReference:e2(e)?ee.noncharacterCharacterReference:Zp(e)||e===_.CARRIAGE_RETURN?ee.controlCharacterReference:null}class tE{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=I.DATA,this.returnState=I.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new zx(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Yx(Ux,(n,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const a=eE(n);a&&this._err(a,1)}}:void 0)}_err(t,r=0){var n,a;(a=(n=this.handler).onParseError)===null||a===void 0||a.call(n,this.preprocessor.getError(t,r))}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,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n==null||n()}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 r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ze.START_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ze.END_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ze.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ze.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(t2(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const a=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ee.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=si(t.tagName),t.type===ze.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ee.endTagWithAttributes),t.selfClosing&&this._err(ee.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 ze.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ze.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ze.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:ze.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=r2(t)?ze.WHITESPACE_CHARACTER:t===_.NULL?ze.NULL_CHARACTER:ze.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ze.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=I.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?gn.Attribute:gn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===I.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case I.DATA:{this._stateData(t);break}case I.RCDATA:{this._stateRcdata(t);break}case I.RAWTEXT:{this._stateRawtext(t);break}case I.SCRIPT_DATA:{this._stateScriptData(t);break}case I.PLAINTEXT:{this._statePlaintext(t);break}case I.TAG_OPEN:{this._stateTagOpen(t);break}case I.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case I.TAG_NAME:{this._stateTagName(t);break}case I.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case I.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case I.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case I.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case I.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case I.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case I.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case I.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case I.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case I.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case I.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case I.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case I.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case I.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case I.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case I.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case I.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case I.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case I.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case I.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case I.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case I.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case I.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case I.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case I.BOGUS_COMMENT:{this._stateBogusComment(t);break}case I.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case I.COMMENT_START:{this._stateCommentStart(t);break}case I.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case I.COMMENT:{this._stateComment(t);break}case I.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case I.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case I.COMMENT_END:{this._stateCommentEnd(t);break}case I.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case I.DOCTYPE:{this._stateDoctype(t);break}case I.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case I.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case I.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case I.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case I.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case I.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case I.CDATA_SECTION:{this._stateCdataSection(t);break}case I.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case I.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case I.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case I.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=I.TAG_OPEN;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this._emitCodePoint(t);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case _.AMPERSAND:{this._startCharacterReference();break}case _.LESS_THAN_SIGN:{this.state=I.RCDATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(st);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case _.LESS_THAN_SIGN:{this.state=I.RAWTEXT_LESS_THAN_SIGN;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(st);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(st);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case _.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(st);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Hn(t))this._createStartTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case _.EXCLAMATION_MARK:{this.state=I.MARKUP_DECLARATION_OPEN;break}case _.SOLIDUS:{this.state=I.END_TAG_OPEN;break}case _.QUESTION_MARK:{this._err(ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t);break}case _.EOF:{this._err(ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=I.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Hn(t))this._createEndTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case _.GREATER_THAN_SIGN:{this._err(ee.missingEndTagName),this.state=I.DATA;break}case _.EOF:{this._err(ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=I.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this.state=I.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(ee.unexpectedNullCharacter),r.tagName+=st;break}case _.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(Ii(t)?Hs(t):t)}}_stateRcdataLessThanSign(t){t===_.SOLIDUS?this.state=I.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Hn(t)?(this.state=I.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=I.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=I.BEFORE_ATTRIBUTE_NAME,!1;case _.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=I.SELF_CLOSING_START_TAG,!1;case _.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=I.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===_.SOLIDUS?this.state=I.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Hn(t)?(this.state=I.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case _.SOLIDUS:{this.state=I.SCRIPT_DATA_END_TAG_OPEN;break}case _.EXCLAMATION_MARK:{this.state=I.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=I.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Hn(t)?(this.state=I.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===_.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===_.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(st);break}case _.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(st);break}case _.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.GREATER_THAN_SIGN:{this.state=I.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(st);break}case _.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===_.SOLIDUS?this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Hn(t)?(this._emitChars("<"),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Hn(t)?(this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Qt.SCRIPT,!1)&&Tf(this.preprocessor.peek(Qt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Qt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(st);break}case _.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(st);break}case _.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.GREATER_THAN_SIGN:{this.state=I.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(st);break}case _.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===_.SOLIDUS?(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Qt.SCRIPT,!1)&&Tf(this.preprocessor.peek(Qt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Qt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=I.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._err(ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=I.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this._leaveAttrName(),this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._leaveAttrName(),this.state=I.BEFORE_ATTRIBUTE_VALUE;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:{this._err(ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.name+=st;break}default:this.currentAttr.name+=String.fromCodePoint(Ii(t)?Hs(t):t)}}_stateAfterAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:{this.state=I.SELF_CLOSING_START_TAG;break}case _.EQUALS_SIGN:{this.state=I.BEFORE_ATTRIBUTE_VALUE;break}case _.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{this.state=I.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this.state=I.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ee.missingAttributeValue),this.state=I.DATA,this.emitCurrentTagToken();break}default:this.state=I.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case _.QUOTATION_MARK:{this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=st;break}case _.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case _.APOSTROPHE:{this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=st;break}case _.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=st;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:case _.EQUALS_SIGN:case _.GRAVE_ACCENT:{this._err(ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case _.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this._leaveAttrValue(),this.state=I.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._err(ee.missingWhitespaceBetweenAttributes),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case _.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=I.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._err(ee.unexpectedSolidusInTag),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentComment(r);break}case _.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case _.NULL:{this._err(ee.unexpectedNullCharacter),r.data+=st;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Qt.DASH_DASH,!0)?(this._createCommentToken(Qt.DASH_DASH.length+1),this.state=I.COMMENT_START):this._consumeSequenceIfMatch(Qt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Qt.DOCTYPE.length+1),this.state=I.DOCTYPE):this._consumeSequenceIfMatch(Qt.CDATA_START,!0)?this.inForeignNode?this.state=I.CDATA_SECTION:(this._err(ee.cdataInHtmlContent),this._createCommentToken(Qt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=I.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ee.incorrectlyOpenedComment),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case _.HYPHEN_MINUS:{this.state=I.COMMENT_START_DASH;break}case _.GREATER_THAN_SIGN:{this._err(ee.abruptClosingOfEmptyComment),this.state=I.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=I.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=I.COMMENT_END;break}case _.GREATER_THAN_SIGN:{this._err(ee.abruptClosingOfEmptyComment),this.state=I.DATA,this.emitCurrentComment(r);break}case _.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=I.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=I.COMMENT_END_DASH;break}case _.LESS_THAN_SIGN:{r.data+="<",this.state=I.COMMENT_LESS_THAN_SIGN;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),r.data+=st;break}case _.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case _.EXCLAMATION_MARK:{r.data+="!",this.state=I.COMMENT_LESS_THAN_SIGN_BANG;break}case _.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=I.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===_.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=I.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===_.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=I.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==_.GREATER_THAN_SIGN&&t!==_.EOF&&this._err(ee.nestedComment),this.state=I.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=I.COMMENT_END;break}case _.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=I.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentComment(r);break}case _.EXCLAMATION_MARK:{this.state=I.COMMENT_END_BANG;break}case _.HYPHEN_MINUS:{r.data+="-";break}case _.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=I.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case _.HYPHEN_MINUS:{r.data+="--!",this.state=I.COMMENT_END_DASH;break}case _.GREATER_THAN_SIGN:{this._err(ee.incorrectlyClosedComment),this.state=I.DATA,this.emitCurrentComment(r);break}case _.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=I.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case _.EOF:{this._err(ee.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ee.missingWhitespaceBeforeDoctypeName),this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ii(t))this._createDoctypeToken(String.fromCharCode(Hs(t))),this.state=I.DOCTYPE_NAME;else switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.NULL:{this._err(ee.unexpectedNullCharacter),this._createDoctypeToken(st),this.state=I.DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case _.EOF:{this._err(ee.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=I.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=I.AFTER_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(r);break}case _.NULL:{this._err(ee.unexpectedNullCharacter),r.name+=st;break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(Ii(t)?Hs(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(r);break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Qt.PUBLIC,!1)?this.state=I.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Qt.SYSTEM,!1)?this.state=I.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ee.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ee.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(r);break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{r.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{r.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ee.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(r);break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),r.publicId+=st;break}case _.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case _.APOSTROPHE:{this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),r.publicId+=st;break}case _.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case _.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(r);break}case _.QUOTATION_MARK:{this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=I.DATA;break}case _.QUOTATION_MARK:{r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(r);break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(r);break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),r.systemId+=st;break}case _.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case _.APOSTROPHE:{this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(ee.unexpectedNullCharacter),r.systemId+=st;break}case _.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=I.DATA;break}case _.EOF:{this._err(ee.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=I.DATA;break}case _.NULL:{this._err(ee.unexpectedNullCharacter);break}case _.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case _.RIGHT_SQUARE_BRACKET:{this.state=I.CDATA_SECTION_BRACKET;break}case _.EOF:{this._err(ee.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===_.RIGHT_SQUARE_BRACKET?this.state=I.CDATA_SECTION_END:(this._emitChars("]"),this.state=I.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case _.GREATER_THAN_SIGN:{this.state=I.DATA;break}case _.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=I.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(_.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ef(this.preprocessor.peek(1))?I.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ef(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===_.SEMICOLON&&this._err(ee.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const n2=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),vf=new Set([...n2,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),ko=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),rE=new Set([...ko,h.OL,h.UL]),nE=new Set([...ko,h.BUTTON]),wf=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),kf=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),aE=new Set([h.TR,h.TEMPLATE,h.HTML]),iE=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),sE=new Set([h.TABLE,h.TEMPLATE,h.HTML]),oE=new Set([h.TD,h.TH]);class lE{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ie.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const a=this._indexOf(t)+1;this.items.splice(a,0,r),this.tagIDs.splice(a,0,n),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 r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==ie.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xu,ie.HTML)}popUntilTableCellPopped(){this.popUntilPopped(oE,ie.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(sE,ie.HTML)}clearBackToTableBodyContext(){this.clearBackTo(iE,ie.HTML)}clearBackToTableRowContext(){this.clearBackTo(aE,ie.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case ie.HTML:{if(a===t)return!0;if(r.has(a))return!1;break}case ie.SVG:{if(kf.has(a))return!1;break}case ie.MATHML:{if(wf.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ko)}hasInListItemScope(t){return this.hasInDynamicScope(t,rE)}hasInButtonScope(t){return this.hasInDynamicScope(t,nE)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ie.HTML:{if(Xu.has(r))return!0;if(ko.has(r))return!1;break}case ie.SVG:{if(kf.has(r))return!1;break}case ie.MATHML:{if(wf.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ie.HTML)switch(this.tagIDs[r]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ie.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ie.HTML)switch(this.tagIDs[r]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&n2.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&vf.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&vf.has(this.currentTagId);)this.pop()}}const jl=3;var Gr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Gr||(Gr={}));const Af={type:Gr.Marker};class uE{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],a=r.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Gr.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===s){const d=this.treeAdapter.getAttrList(u);d.length===a&&n.push({idx:o,attrs:d})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<jl)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<jl)return;const a=new Map(r.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<n.length;s++){const o=n[s];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=jl&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Af)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Gr.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Gr.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Af);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===Gr.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===Gr.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Gr.Element&&r.element===t)}}const zn={createDocument(){return{nodeName:"#document",mode:xr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,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,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=r,a.systemId=n;else{const i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};zn.appendChild(e,i)}},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 r=e.childNodes[e.childNodes.length-1];if(zn.isTextNode(r)){r.value+=t;return}}zn.appendChild(e,zn.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&zn.isTextNode(n)?n.value+=t:zn.insertBefore(e,zn.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},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}}},a2="html",cE="about:legacy-compat",dE="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",i2=["+//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//"],fE=[...i2,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],hE=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),s2=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],mE=[...s2,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Sf(e,t){return t.some(r=>e.startsWith(r))}function pE(e){return e.name===a2&&e.publicId===null&&(e.systemId===null||e.systemId===cE)}function gE(e){if(e.name!==a2)return xr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===dE)return xr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),hE.has(r))return xr.QUIRKS;let n=t===null?fE:i2;if(Sf(r,n))return xr.QUIRKS;if(n=t===null?s2:mE,Sf(r,n))return xr.LIMITED_QUIRKS}return xr.NO_QUIRKS}const _f={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bE="definitionurl",yE="definitionURL",xE=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])),EE=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ie.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ie.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ie.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ie.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ie.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ie.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ie.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ie.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ie.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ie.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ie.XMLNS}]]),TE=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])),vE=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function wE(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:n})=>n===la.COLOR||n===la.SIZE||n===la.FACE)||vE.has(t)}function o2(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===bE){e.attrs[t].name=yE;break}}function l2(e){for(let t=0;t<e.attrs.length;t++){const r=xE.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function dc(e){for(let t=0;t<e.attrs.length;t++){const r=EE.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function kE(e){const t=TE.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=si(e.tagName))}function AE(e,t){return t===ie.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function SE(e,t,r){if(t===ie.MATHML&&e===h.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===la.ENCODING){const a=r[n].value.toLowerCase();return a===_f.TEXT_HTML||a===_f.APPLICATION_XML}}return t===ie.SVG&&(e===h.FOREIGN_OBJECT||e===h.DESC||e===h.TITLE)}function _E(e,t,r,n){return(!n||n===ie.HTML)&&SE(e,t,r)||(!n||n===ie.MATHML)&&AE(e,t)}const CE="hidden",NE=8,IE=3;var M;(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"})(M||(M={}));const RE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},u2=new Set([h.TABLE,h.TBODY,h.TFOOT,h.THEAD,h.TR]),Cf={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:zn,onParseError:null};class Nf{constructor(t,r,n=null,a=null){this.fragmentContext=n,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=M.INITIAL,this.originalInsertionMode=M.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={...Cf,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new tE(this.options,this),this.activeFormattingElements=new uE(this.treeAdapter),this.fragmentContextID=n?si(this.treeAdapter.getTagName(n)):h.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new lE(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...Cf,...r};t??(t=n.treeAdapter.createElement(Y.TEMPLATE,ie.HTML,[]));const a=n.treeAdapter.createElement("documentmock",ie.HTML,[]),i=new this(n,a,t);return i.fragmentContextID===h.TEMPLATE&&i.tmplInsertionModeStack.unshift(M.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:RE,s={code:r,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,r,n){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(n=this.treeAdapter).onItemPop)===null||a===void 0||a.call(n,t,this.openElements.current),r){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,r){const n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ie.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,ie.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=M.TEXT}switchToPlaintextParsing(){this.insertionMode=M.TEXT,this.originalInsertionMode=M.IN_BODY,this.tokenizer.state=pt.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)===Y.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ie.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=pt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=pt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=pt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=pt.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,ie.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,ie.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Y.HTML,ie.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(r),i=n?a.lastIndexOf(n):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,a=this.treeAdapter.getTagName(t),i=r.type===ze.END_TAG&&a===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(r)===Y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===ie.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,ie.HTML)}_processToken(t){switch(t.type){case ze.CHARACTER:{this.onCharacter(t);break}case ze.NULL_CHARACTER:{this.onNullCharacter(t);break}case ze.COMMENT:{this.onComment(t);break}case ze.DOCTYPE:{this.onDoctype(t);break}case ze.START_TAG:{this._processStartTag(t);break}case ze.END_TAG:{this.onEndTag(t);break}case ze.EOF:{this.onEof(t);break}case ze.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const a=this.treeAdapter.getNamespaceURI(r),i=this.treeAdapter.getAttrList(r);return _E(t,a,i,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(a=>a.type===Gr.Marker||this.openElements.contains(a.element)),n=r===-1?t-1:r-1;for(let a=n;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=M.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=M.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=M.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=M.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=M.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=M.IN_TABLE;return}case h.BODY:{this.insertionMode=M.IN_BODY;return}case h.FRAMESET:{this.insertionMode=M.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?M.AFTER_HEAD:M.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=M.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=M.IN_HEAD;return}break}}this.insertionMode=M.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===h.TEMPLATE)break;if(n===h.TABLE){this.insertionMode=M.IN_SELECT_IN_TABLE;return}}this.insertionMode=M.IN_SELECT}_isElementCausesFosterParenting(t){return u2.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 r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===ie.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case h.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return Qx[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){oT(this,t);return}switch(this.insertionMode){case M.INITIAL:{pi(this,t);break}case M.BEFORE_HTML:{Bi(this,t);break}case M.BEFORE_HEAD:{Fi(this,t);break}case M.IN_HEAD:{Hi(this,t);break}case M.IN_HEAD_NO_SCRIPT:{zi(this,t);break}case M.AFTER_HEAD:{Ui(this,t);break}case M.IN_BODY:case M.IN_CAPTION:case M.IN_CELL:case M.IN_TEMPLATE:{d2(this,t);break}case M.TEXT:case M.IN_SELECT:case M.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case M.IN_TABLE:case M.IN_TABLE_BODY:case M.IN_ROW:{$l(this,t);break}case M.IN_TABLE_TEXT:{b2(this,t);break}case M.IN_COLUMN_GROUP:{Ao(this,t);break}case M.AFTER_BODY:{So(this,t);break}case M.AFTER_AFTER_BODY:{oo(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sT(this,t);return}switch(this.insertionMode){case M.INITIAL:{pi(this,t);break}case M.BEFORE_HTML:{Bi(this,t);break}case M.BEFORE_HEAD:{Fi(this,t);break}case M.IN_HEAD:{Hi(this,t);break}case M.IN_HEAD_NO_SCRIPT:{zi(this,t);break}case M.AFTER_HEAD:{Ui(this,t);break}case M.TEXT:{this._insertCharacters(t);break}case M.IN_TABLE:case M.IN_TABLE_BODY:case M.IN_ROW:{$l(this,t);break}case M.IN_COLUMN_GROUP:{Ao(this,t);break}case M.AFTER_BODY:{So(this,t);break}case M.AFTER_AFTER_BODY:{oo(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ku(this,t);return}switch(this.insertionMode){case M.INITIAL:case M.BEFORE_HTML:case M.BEFORE_HEAD:case M.IN_HEAD:case M.IN_HEAD_NO_SCRIPT:case M.AFTER_HEAD:case M.IN_BODY:case M.IN_TABLE:case M.IN_CAPTION:case M.IN_COLUMN_GROUP:case M.IN_TABLE_BODY:case M.IN_ROW:case M.IN_CELL:case M.IN_SELECT:case M.IN_SELECT_IN_TABLE:case M.IN_TEMPLATE:case M.IN_FRAMESET:case M.AFTER_FRAMESET:{Ku(this,t);break}case M.IN_TABLE_TEXT:{gi(this,t);break}case M.AFTER_BODY:{FE(this,t);break}case M.AFTER_AFTER_BODY:case M.AFTER_AFTER_FRAMESET:{HE(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case M.INITIAL:{zE(this,t);break}case M.BEFORE_HEAD:case M.IN_HEAD:case M.IN_HEAD_NO_SCRIPT:case M.AFTER_HEAD:{this._err(t,ee.misplacedDoctype);break}case M.IN_TABLE_TEXT:{gi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?lT(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case M.INITIAL:{pi(this,t);break}case M.BEFORE_HTML:{UE(this,t);break}case M.BEFORE_HEAD:{$E(this,t);break}case M.IN_HEAD:{Fr(this,t);break}case M.IN_HEAD_NO_SCRIPT:{WE(this,t);break}case M.AFTER_HEAD:{YE(this,t);break}case M.IN_BODY:{Ft(this,t);break}case M.IN_TABLE:{Ga(this,t);break}case M.IN_TABLE_TEXT:{gi(this,t);break}case M.IN_CAPTION:{q9(this,t);break}case M.IN_COLUMN_GROUP:{mc(this,t);break}case M.IN_TABLE_BODY:{al(this,t);break}case M.IN_ROW:{il(this,t);break}case M.IN_CELL:{G9(this,t);break}case M.IN_SELECT:{E2(this,t);break}case M.IN_SELECT_IN_TABLE:{X9(this,t);break}case M.IN_TEMPLATE:{Q9(this,t);break}case M.AFTER_BODY:{Z9(this,t);break}case M.IN_FRAMESET:{eT(this,t);break}case M.AFTER_FRAMESET:{rT(this,t);break}case M.AFTER_AFTER_BODY:{aT(this,t);break}case M.AFTER_AFTER_FRAMESET:{iT(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?uT(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case M.INITIAL:{pi(this,t);break}case M.BEFORE_HTML:{jE(this,t);break}case M.BEFORE_HEAD:{qE(this,t);break}case M.IN_HEAD:{VE(this,t);break}case M.IN_HEAD_NO_SCRIPT:{GE(this,t);break}case M.AFTER_HEAD:{XE(this,t);break}case M.IN_BODY:{nl(this,t);break}case M.TEXT:{D9(this,t);break}case M.IN_TABLE:{Ji(this,t);break}case M.IN_TABLE_TEXT:{gi(this,t);break}case M.IN_CAPTION:{V9(this,t);break}case M.IN_COLUMN_GROUP:{W9(this,t);break}case M.IN_TABLE_BODY:{Qu(this,t);break}case M.IN_ROW:{x2(this,t);break}case M.IN_CELL:{Y9(this,t);break}case M.IN_SELECT:{T2(this,t);break}case M.IN_SELECT_IN_TABLE:{K9(this,t);break}case M.IN_TEMPLATE:{J9(this,t);break}case M.AFTER_BODY:{w2(this,t);break}case M.IN_FRAMESET:{tT(this,t);break}case M.AFTER_FRAMESET:{nT(this,t);break}case M.AFTER_AFTER_BODY:{oo(this,t);break}}}onEof(t){switch(this.insertionMode){case M.INITIAL:{pi(this,t);break}case M.BEFORE_HTML:{Bi(this,t);break}case M.BEFORE_HEAD:{Fi(this,t);break}case M.IN_HEAD:{Hi(this,t);break}case M.IN_HEAD_NO_SCRIPT:{zi(this,t);break}case M.AFTER_HEAD:{Ui(this,t);break}case M.IN_BODY:case M.IN_TABLE:case M.IN_CAPTION:case M.IN_COLUMN_GROUP:case M.IN_TABLE_BODY:case M.IN_ROW:case M.IN_CELL:case M.IN_SELECT:case M.IN_SELECT_IN_TABLE:{p2(this,t);break}case M.TEXT:{M9(this,t);break}case M.IN_TABLE_TEXT:{gi(this,t);break}case M.IN_TEMPLATE:{v2(this,t);break}case M.AFTER_BODY:case M.IN_FRAMESET:case M.AFTER_FRAMESET:case M.AFTER_AFTER_BODY:case M.AFTER_AFTER_FRAMESET:{hc(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===_.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 M.IN_HEAD:case M.IN_HEAD_NO_SCRIPT:case M.AFTER_HEAD:case M.TEXT:case M.IN_COLUMN_GROUP:case M.IN_SELECT:case M.IN_SELECT_IN_TABLE:case M.IN_FRAMESET:case M.AFTER_FRAMESET:{this._insertCharacters(t);break}case M.IN_BODY:case M.IN_CAPTION:case M.IN_CELL:case M.IN_TEMPLATE:case M.AFTER_BODY:case M.AFTER_AFTER_BODY:case M.AFTER_AFTER_FRAMESET:{c2(this,t);break}case M.IN_TABLE:case M.IN_TABLE_BODY:case M.IN_ROW:{$l(this,t);break}case M.IN_TABLE_TEXT:{g2(this,t);break}}}}function OE(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):m2(e,t),r}function LE(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const a=e.openElements.items[n];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[n])&&(r=a)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function DE(e,t,r){let n=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==r;i++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&i>=IE;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=ME(e,o),n===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function ME(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function PE(e,t,r){const n=e.treeAdapter.getTagName(t),a=si(n);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const i=e.treeAdapter.getNamespaceURI(t);a===h.TEMPLATE&&i===ie.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function BE(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:a}=r,i=e.treeAdapter.createElement(a.tagName,n,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,i,a.tagID)}function fc(e,t){for(let r=0;r<NE;r++){const n=OE(e,t);if(!n)break;const a=LE(e,n);if(!a)break;e.activeFormattingElements.bookmark=n;const i=DE(e,a,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),s&&PE(e,s,i),BE(e,a,n)}}function Ku(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function FE(e,t){e._appendCommentNode(t,e.openElements.items[0])}function HE(e,t){e._appendCommentNode(t,e.document)}function hc(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(n);if(a&&!a.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function zE(e,t){e._setDocumentType(t);const r=t.forceQuirks?xr.QUIRKS:gE(t);pE(t)||e._err(t,ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=M.BEFORE_HTML}function pi(e,t){e._err(t,ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,xr.QUIRKS),e.insertionMode=M.BEFORE_HTML,e._processToken(t)}function UE(e,t){t.tagID===h.HTML?(e._insertElement(t,ie.HTML),e.insertionMode=M.BEFORE_HEAD):Bi(e,t)}function jE(e,t){const r=t.tagID;(r===h.HTML||r===h.HEAD||r===h.BODY||r===h.BR)&&Bi(e,t)}function Bi(e,t){e._insertFakeRootElement(),e.insertionMode=M.BEFORE_HEAD,e._processToken(t)}function $E(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.HEAD:{e._insertElement(t,ie.HTML),e.headElement=e.openElements.current,e.insertionMode=M.IN_HEAD;break}default:Fi(e,t)}}function qE(e,t){const r=t.tagID;r===h.HEAD||r===h.BODY||r===h.HTML||r===h.BR?Fi(e,t):e._err(t,ee.endTagWithoutMatchingOpenElement)}function Fi(e,t){e._insertFakeElement(Y.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=M.IN_HEAD,e._processToken(t)}function Fr(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,pt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,pt.RAWTEXT):(e._insertElement(t,ie.HTML),e.insertionMode=M.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,pt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,pt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=M.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(M.IN_TEMPLATE);break}case h.HEAD:{e._err(t,ee.misplacedStartTagForHeadElement);break}default:Hi(e,t)}}function VE(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=M.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Hi(e,t);break}case h.TEMPLATE:{va(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function va(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ee.endTagWithoutMatchingOpenElement)}function Hi(e,t){e.openElements.pop(),e.insertionMode=M.AFTER_HEAD,e._processToken(t)}function WE(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{Fr(e,t);break}case h.NOSCRIPT:{e._err(t,ee.nestedNoscriptInHead);break}default:zi(e,t)}}function GE(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=M.IN_HEAD;break}case h.BR:{zi(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function zi(e,t){const r=t.type===ze.EOF?ee.openElementsLeftAfterEof:ee.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=M.IN_HEAD,e._processToken(t)}function YE(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.BODY:{e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=M.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,ie.HTML),e.insertionMode=M.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,ee.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),Fr(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,ee.misplacedStartTagForHeadElement);break}default:Ui(e,t)}}function XE(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Ui(e,t);break}case h.TEMPLATE:{va(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function Ui(e,t){e._insertFakeElement(Y.BODY,h.BODY),e.insertionMode=M.IN_BODY,rl(e,t)}function rl(e,t){switch(t.type){case ze.CHARACTER:{d2(e,t);break}case ze.WHITESPACE_CHARACTER:{c2(e,t);break}case ze.COMMENT:{Ku(e,t);break}case ze.START_TAG:{Ft(e,t);break}case ze.END_TAG:{nl(e,t);break}case ze.EOF:{p2(e,t);break}}}function c2(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function d2(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function KE(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function QE(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function JE(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_FRAMESET)}function ZE(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ie.HTML)}function e9(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Xu.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ie.HTML)}function t9(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function r9(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ie.HTML),r||(e.formElement=e.openElements.current))}function n9(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const a=e.openElements.tagIDs[n];if(r===h.LI&&a===h.LI||(r===h.DD||r===h.DT)&&(a===h.DD||a===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(e.openElements.items[n],a))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ie.HTML)}function a9(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.tokenizer.state=pt.PLAINTEXT}function i9(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.framesetOk=!1}function s9(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);r&&(fc(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function o9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function l9(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(fc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function u9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function c9(e,t){e.treeAdapter.getDocumentMode(e.document)!==xr.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=M.IN_TABLE}function f2(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function h2(e){const t=t2(e,la.TYPE);return t!=null&&t.toLowerCase()===CE}function d9(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ie.HTML),h2(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function f9(e,t){e._appendElement(t,ie.HTML),t.ackSelfClosing=!0}function h9(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function m9(e,t){t.tagName=Y.IMG,t.tagID=h.IMG,f2(e,t)}function p9(e,t){e._insertElement(t,ie.HTML),e.skipNextNewLine=!0,e.tokenizer.state=pt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=M.TEXT}function g9(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,pt.RAWTEXT)}function b9(e,t){e.framesetOk=!1,e._switchToTextParsing(t,pt.RAWTEXT)}function If(e,t){e._switchToTextParsing(t,pt.RAWTEXT)}function y9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===M.IN_TABLE||e.insertionMode===M.IN_CAPTION||e.insertionMode===M.IN_TABLE_BODY||e.insertionMode===M.IN_ROW||e.insertionMode===M.IN_CELL?M.IN_SELECT_IN_TABLE:M.IN_SELECT}function x9(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML)}function E9(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ie.HTML)}function T9(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,ie.HTML)}function v9(e,t){e._reconstructActiveFormattingElements(),o2(t),dc(t),t.selfClosing?e._appendElement(t,ie.MATHML):e._insertElement(t,ie.MATHML),t.ackSelfClosing=!0}function w9(e,t){e._reconstructActiveFormattingElements(),l2(t),dc(t),t.selfClosing?e._appendElement(t,ie.SVG):e._insertElement(t,ie.SVG),t.ackSelfClosing=!0}function Rf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML)}function Ft(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{o9(e,t);break}case h.A:{s9(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{e9(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{ZE(e,t);break}case h.LI:case h.DD:case h.DT:{n9(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{f2(e,t);break}case h.HR:{h9(e,t);break}case h.RB:case h.RTC:{E9(e,t);break}case h.RT:case h.RP:{T9(e,t);break}case h.PRE:case h.LISTING:{t9(e,t);break}case h.XMP:{g9(e,t);break}case h.SVG:{w9(e,t);break}case h.HTML:{KE(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{Fr(e,t);break}case h.BODY:{QE(e,t);break}case h.FORM:{r9(e,t);break}case h.NOBR:{l9(e,t);break}case h.MATH:{v9(e,t);break}case h.TABLE:{c9(e,t);break}case h.INPUT:{d9(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{f9(e,t);break}case h.IMAGE:{m9(e,t);break}case h.BUTTON:{i9(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{u9(e,t);break}case h.IFRAME:{b9(e,t);break}case h.SELECT:{y9(e,t);break}case h.OPTION:case h.OPTGROUP:{x9(e,t);break}case h.NOEMBED:case h.NOFRAMES:{If(e,t);break}case h.FRAMESET:{JE(e,t);break}case h.TEXTAREA:{p9(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?If(e,t):Rf(e,t);break}case h.PLAINTEXT:{a9(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:Rf(e,t)}}function k9(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=M.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function A9(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=M.AFTER_BODY,w2(e,t))}function S9(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function _9(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):r&&e.openElements.remove(r))}function C9(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(Y.P,h.P),e._closePElement()}function N9(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function I9(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function R9(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function O9(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function L9(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function m2(e,t){const r=t.tagName,n=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(n===s&&(n!==h.UNKNOWN||e.treeAdapter.getTagName(i)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function nl(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{fc(e,t);break}case h.P:{C9(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{S9(e,t);break}case h.LI:{N9(e);break}case h.DD:case h.DT:{I9(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{R9(e);break}case h.BR:{L9(e);break}case h.BODY:{k9(e,t);break}case h.HTML:{A9(e,t);break}case h.FORM:{_9(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{O9(e,t);break}case h.TEMPLATE:{va(e,t);break}default:m2(e,t)}}function p2(e,t){e.tmplInsertionModeStack.length>0?v2(e,t):hc(e,t)}function D9(e,t){var r;t.tagID===h.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function M9(e,t){e._err(t,ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function $l(e,t){if(e.openElements.currentTagId!==void 0&&u2.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=M.IN_TABLE_TEXT,t.type){case ze.CHARACTER:{b2(e,t);break}case ze.WHITESPACE_CHARACTER:{g2(e,t);break}}else hs(e,t)}function P9(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_CAPTION}function B9(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_COLUMN_GROUP}function F9(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,h.COLGROUP),e.insertionMode=M.IN_COLUMN_GROUP,mc(e,t)}function H9(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_TABLE_BODY}function z9(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,h.TBODY),e.insertionMode=M.IN_TABLE_BODY,al(e,t)}function U9(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function j9(e,t){h2(t)?e._appendElement(t,ie.HTML):hs(e,t),t.ackSelfClosing=!0}function $9(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ie.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ga(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{z9(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{Fr(e,t);break}case h.COL:{F9(e,t);break}case h.FORM:{$9(e,t);break}case h.TABLE:{U9(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{H9(e,t);break}case h.INPUT:{j9(e,t);break}case h.CAPTION:{P9(e,t);break}case h.COLGROUP:{B9(e,t);break}default:hs(e,t)}}function Ji(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{va(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:hs(e,t)}}function hs(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,rl(e,t),e.fosterParentingEnabled=r}function g2(e,t){e.pendingCharacterTokens.push(t)}function b2(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function gi(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)hs(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const y2=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function q9(e,t){const r=t.tagID;y2.has(r)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M.IN_TABLE,Ga(e,t)):Ft(e,t)}function V9(e,t){const r=t.tagID;switch(r){case h.CAPTION:case h.TABLE:{e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M.IN_TABLE,r===h.TABLE&&Ji(e,t));break}case h.BODY:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:nl(e,t)}}function mc(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.COL:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case h.TEMPLATE:{Fr(e,t);break}default:Ao(e,t)}}function W9(e,t){switch(t.tagID){case h.COLGROUP:{e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=M.IN_TABLE);break}case h.TEMPLATE:{va(e,t);break}case h.COL:break;default:Ao(e,t)}}function Ao(e,t){e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=M.IN_TABLE,e._processToken(t))}function al(e,t){switch(t.tagID){case h.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_ROW;break}case h.TH:case h.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Y.TR,h.TR),e.insertionMode=M.IN_ROW,il(e,t);break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE,Ga(e,t));break}default:Ga(e,t)}}function Qu(e,t){const r=t.tagID;switch(t.tagID){case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE);break}case h.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE,Ji(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:case h.TR:break;default:Ji(e,t)}}function il(e,t){switch(t.tagID){case h.TH:case h.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_CELL,e.activeFormattingElements.insertMarker();break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY,al(e,t));break}default:Ga(e,t)}}function x2(e,t){switch(t.tagID){case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY);break}case h.TABLE:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY,Qu(e,t));break}case h.TBODY:case h.TFOOT:case h.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY,Qu(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:break;default:Ji(e,t)}}function G9(e,t){const r=t.tagID;y2.has(r)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),il(e,t)):Ft(e,t)}function Y9(e,t){const r=t.tagID;switch(r){case h.TD:case h.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M.IN_ROW);break}case h.TABLE:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),x2(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:nl(e,t)}}function E2(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._insertElement(t,ie.HTML);break}case h.OPTGROUP:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ie.HTML);break}case h.HR:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case h.INPUT:case h.KEYGEN:case h.TEXTAREA:case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),t.tagID!==h.SELECT&&e._processStartTag(t));break}case h.SCRIPT:case h.TEMPLATE:{Fr(e,t);break}}}function T2(e,t){switch(t.tagID){case h.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{va(e,t);break}}}function X9(e,t){const r=t.tagID;r===h.CAPTION||r===h.TABLE||r===h.TBODY||r===h.TFOOT||r===h.THEAD||r===h.TR||r===h.TD||r===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):E2(e,t)}function K9(e,t){const r=t.tagID;r===h.CAPTION||r===h.TABLE||r===h.TBODY||r===h.TFOOT||r===h.THEAD||r===h.TR||r===h.TD||r===h.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):T2(e,t)}function Q9(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{Fr(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=M.IN_TABLE,e.insertionMode=M.IN_TABLE,Ga(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=M.IN_COLUMN_GROUP,e.insertionMode=M.IN_COLUMN_GROUP,mc(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=M.IN_TABLE_BODY,e.insertionMode=M.IN_TABLE_BODY,al(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=M.IN_ROW,e.insertionMode=M.IN_ROW,il(e,t);break}default:e.tmplInsertionModeStack[0]=M.IN_BODY,e.insertionMode=M.IN_BODY,Ft(e,t)}}function J9(e,t){t.tagID===h.TEMPLATE&&va(e,t)}function v2(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):hc(e,t)}function Z9(e,t){t.tagID===h.HTML?Ft(e,t):So(e,t)}function w2(e,t){var r;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=M.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else So(e,t)}function So(e,t){e.insertionMode=M.IN_BODY,rl(e,t)}function eT(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.FRAMESET:{e._insertElement(t,ie.HTML);break}case h.FRAME:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{Fr(e,t);break}}}function tT(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=M.AFTER_FRAMESET))}function rT(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.NOFRAMES:{Fr(e,t);break}}}function nT(e,t){t.tagID===h.HTML&&(e.insertionMode=M.AFTER_AFTER_FRAMESET)}function aT(e,t){t.tagID===h.HTML?Ft(e,t):oo(e,t)}function oo(e,t){e.insertionMode=M.IN_BODY,rl(e,t)}function iT(e,t){switch(t.tagID){case h.HTML:{Ft(e,t);break}case h.NOFRAMES:{Fr(e,t);break}}}function sT(e,t){t.chars=st,e._insertCharacters(t)}function oT(e,t){e._insertCharacters(t),e.framesetOk=!1}function k2(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ie.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function lT(e,t){if(wE(t))k2(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===ie.MATHML?o2(t):n===ie.SVG&&(kE(t),l2(t)),dc(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function uT(e,t){if(t.tagID===h.P||t.tagID===h.BR){k2(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===ie.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(n);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(r);break}}}Y.AREA,Y.BASE,Y.BASEFONT,Y.BGSOUND,Y.BR,Y.COL,Y.EMBED,Y.FRAME,Y.HR,Y.IMG,Y.INPUT,Y.KEYGEN,Y.LINK,Y.META,Y.PARAM,Y.SOURCE,Y.TRACK,Y.WBR;const sl=A2("end"),on=A2("start");function A2(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function S2(e){const t=on(e),r=sl(e);if(t&&r)return{start:t,end:r}}const cT=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,dT=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Of={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function _2(e,t){const r=TT(e),n=Kp("type",{handlers:{root:fT,element:hT,text:mT,comment:N2,doctype:pT,raw:bT},unknown:yT}),a={parser:r?new Nf(Of):Nf.getFragmentParser(void 0,Of),handle(o){n(o,a)},stitches:!1,options:t||{}};n(e,a),oi(a,on());const i=r?a.parser.document:a.parser.getFragment(),s=fx(i,{file:a.options.file});return a.stitches&&Va(s,"comment",function(o,l,u){const d=o;if(d.value.stitch&&u&&l!==void 0){const c=u.children;return c[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function C2(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function fT(e,t){C2(e.children,t)}function hT(e,t){xT(e,t),C2(e.children,t),ET(e,t)}function mT(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:ze.CHARACTER,chars:e.value,location:ms(e)};oi(t,on(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function pT(e,t){const r={type:ze.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ms(e)};oi(t,on(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function gT(e,t){t.stitches=!0;const r=vT(e);if("children"in e&&"children"in r){const n=_2({type:"root",children:e.children},t.options);r.children=n.children}N2({type:"comment",value:{stitch:r}},t)}function N2(e,t){const r=e.value,n={type:ze.COMMENT,data:r,location:ms(e)};oi(t,on(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function bT(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,I2(t,on(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(cT,"<$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 r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function yT(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))gT(r,t);else{let n="";throw dT.has(r.type)&&(n=". 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 `"+r.type+"` node"+n)}}function oi(e,t){I2(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,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=pt.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 I2(e,t){if(t&&t.offset!==void 0){const r={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=r}}function xT(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===pt.PLAINTEXT)return;oi(t,on(e));const n=t.parser.openElements.current;let a="namespaceURI"in n?n.namespaceURI:Kr.html;a===Kr.html&&r==="svg"&&(a=Kr.svg);const i=_x({...e,children:[]},{space:a===Kr.svg?"svg":"html"}),s={type:ze.START_TAG,tagName:r,tagID:si(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:ms(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function ET(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Mx.includes(r)||t.parser.tokenizer.state===pt.PLAINTEXT)return;oi(t,sl(e));const n={type:ze.END_TAG,tagName:r,tagID:si(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ms(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===pt.RCDATA||t.parser.tokenizer.state===pt.RAWTEXT||t.parser.tokenizer.state===pt.SCRIPT_DATA)&&(t.parser.tokenizer.state=pt.DATA)}function TT(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ms(e){const t=on(e)||{line:void 0,column:void 0,offset:void 0},r=sl(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function vT(e){return"children"in e?fa({...e,children:[]}):fa(e)}function wT(e){return function(t,r){return _2(t,{...e,file:r})}}const aa=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Lf={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...aa,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...aa],h2:[["className","sr-only"]],img:[...aa,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...aa,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...aa],table:[...aa],ul:[...aa,["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"]},Un={}.hasOwnProperty;function kT(e,t){let r={type:"root",children:[]};const n={schema:t?{...Lf,...t}:Lf,stack:[]},a=R2(n,e);return a&&(Array.isArray(a)?a.length===1?r=a[0]:r.children=a:r=a),r}function R2(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return AT(e,r);case"doctype":return ST(e,r);case"element":return _T(e,r);case"root":return CT(e,r);case"text":return NT(e,r)}}}function AT(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),i={type:"comment",value:n<0?r:r.slice(0,n)};return ps(i,t),i}}function ST(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return ps(r,t),r}}function _T(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const n=O2(e,t.children),a=IT(e,t.properties);e.stack.pop();let i=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(i=!0,e.schema.ancestors&&Un.call(e.schema.ancestors,r))){const o=e.schema.ancestors[r];let l=-1;for(i=!1;++l<o.length;)e.stack.includes(o[l])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;const s={type:"element",tagName:r,properties:a,children:n};return ps(s,t),s}function CT(e,t){const n={type:"root",children:O2(e,t.children)};return ps(n,t),n}function NT(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return ps(n,t),n}function O2(e,t){const r=[];if(Array.isArray(t)){const n=t;let a=-1;for(;++a<n.length;){const i=R2(e,n[a]);i&&(Array.isArray(i)?r.push(...i):r.push(i))}}return r}function IT(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,a=e.schema.required,i=n&&Un.call(n,r)?n[r]:void 0,s=n&&Un.call(n,"*")?n["*"]:void 0,o=t&&typeof t=="object"?t:{},l={};let u;for(u in o)if(Un.call(o,u)){const d=o[u];let c=Df(e,Mf(i,u),u,d);c==null&&(c=Df(e,Mf(s,u),u,d)),c!=null&&(l[u]=c)}if(a&&Un.call(a,r)){const d=a[r];for(u in d)Un.call(d,u)&&!Un.call(l,u)&&(l[u]=d[u])}return l}function Df(e,t,r,n){return t?Array.isArray(n)?RT(e,t,r,n):L2(e,t,r,n):void 0}function RT(e,t,r,n){let a=-1;const i=[];for(;++a<n.length;){const s=L2(e,t,r,n[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function L2(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&OT(e,r,n)){if(typeof t=="object"&&t.length>1){let a=!1,i=0;for(;++i<t.length;){const s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){a=!0;break}}else if(s===n){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function OT(e,t,r){const n=e.schema.protocols&&Un.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;const a=String(r),i=a.indexOf(":"),s=a.indexOf("?"),o=a.indexOf("#"),l=a.indexOf("/");if(i<0||l>-1&&i>l||s>-1&&i>s||o>-1&&i>o)return!0;let u=-1;for(;++u<n.length;){const d=n[u];if(i===d.length&&a.slice(0,d.length)===d)return!0}return!1}function ps(e,t){const r=S2(t);t.data&&(e.data=fa(t.data)),r&&(e.position=r)}function Mf(e,t){let r,n=-1;if(e)for(;++n<e.length;){const a=e[n],i=typeof a=="string"?a:a[0];if(i===t)return a;i==="data*"&&(r=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function LT(e){return function(t){return kT(t,e)}}const bn={eof:null,asterisk:42,underscore:95,tilde:126},Ya={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},$r={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"},qt=Zn(/[A-Za-z]/),Pt=Zn(/[\dA-Za-z]/),DT=Zn(/[#-'*+\--9=?A-Z^-~]/);function _o(e){return e!==null&&(e<32||e===127)}const Ju=Zn(/\d/),MT=Zn(/[\dA-Fa-f]/),PT=Zn(/[!-/:-@[-`{-~]/);function ve(e){return e!==null&&e<-2}function Qe(e){return e!==null&&(e<0||e===32)}function je(e){return e===-2||e===-1||e===32}const ol=Zn(new RegExp("\\p{P}|\\p{S}","u")),ha=Zn(/\s/);function Zn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function BT(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function FT(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function HT(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function zT(e){return BT(e)?"ambiguous":FT(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":HT(e)?"wide":"neutral"}function UT(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function jT(e){return UT(e),zT(e)}var $T=Object.defineProperty,qT=(e,t,r)=>t in e?$T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VT=(e,t,r)=>qT(e,t+"",r);function WT(e){return new RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e))}function GT(e){if(!e||e<4352)return!1;switch(jT(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!WT(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return new RegExp("^\\p{sc=Hangul}","u").test(String.fromCodePoint(e))}}function YT(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function XT(e){return e!==null&&e>=65024&&e<=65038}var KT=D2(new RegExp("\\p{P}|\\p{S}","u")),QT=D2(/\s/);function D2(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}var pr;(e=>{e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(pr||(pr={}));function Ua(e){if(e===bn.eof||Qe(e)||QT(e))return Ya.characterGroupWhitespace;let t=0;if(e>=4352){if(XT(e))return pr.nonEmojiGeneralUseVS;switch(GT(e)){case null:return pr.ivs;case!0:t|=pr.cjk;break}}return KT(e)&&(t|=Ya.characterGroupPunctuation),t}function M2(e,t,r){if(!tv(e))return e;const n=t(),a=Ua(n);return!n||Zi(a)?e:YT(n,r)?pr.cjkPunctuation:JT(a)}function JT(e){return e&~pr.ivs}function Zi(e){return!!(e&Ya.characterGroupWhitespace)}function Co(e){return(e&pr.cjkPunctuation)===Ya.characterGroupPunctuation}function Zu(e){return!!(e&pr.cjk)}function ZT(e){return e===pr.ivs}function ev(e){return!!(e&pr.cjkOrIvs)}function tv(e){return e===pr.nonEmojiGeneralUseVS}function Pf(e){return!!(e&pr.spaceOrPunctuation)}function P2(e){return!!(e&&e>=55296&&e<=56319)}function B2(e){return!!(e&&e>=56320&&e<=57343)}function F2(e,t,r){if(t._bufferIndex<2)return e;const a=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return a&&a>=65536?a:e}function rv(e,t,r){const n=e>=65536?2:1;if(t._bufferIndex<1+n)return null;const a=t._bufferIndex-n-2,i=r({start:{...t,_bufferIndex:a>=0?a:0},end:{...t,_bufferIndex:t._bufferIndex-n}}),s=i.charCodeAt(i.length-1);if(Number.isNaN(s))return null;if(i.length<2||s<56320||57343<s)return s;const o=i.codePointAt(0);return o&&o>=65536?o:s}var H2=class{constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r,VT(this,"cachedValue")}value(){return this.cachedValue===void 0&&(this.cachedValue=rv(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function z2(e,t,r){const n=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return n&&n>=65536?n:e}function Lt(e,t,r,n){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i<n.length;)s=n.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Ot(e,t){return e.length>0?(Lt(e,e.length,0,t),e):t}function li(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}var ql={name:"attention",resolveAll:nv,tokenize:av};function nv(e,t){let r=-1,n,a,i,s,o,l,u,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c={...e[n][1].end},f={...e[r][1].start};Bf(c,-l),Bf(f,l),s={type:l>1?$r.strongSequence:$r.emphasisSequence,start:c,end:{...e[n][1].end}},o={type:l>1?$r.strongSequence:$r.emphasisSequence,start:{...e[r][1].start},end:f},i={type:l>1?$r.strongText:$r.emphasisText,start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?$r.strong:$r.emphasis,start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Ot(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Ot(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),t.parser.constructs.insideSpan.null,u=Ot(u,li(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Ot(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,u=Ot(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,Lt(e,n-1,r-n+3,u),r=n+u.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function av(e,t){const r=this.parser.constructs.attentionMarkers.null,{now:n,sliceSerialize:a,previous:i}=this,s=B2(i)?F2(i,n(),a):i,o=Ua(s),l=new H2(s,n(),a),u=M2(o,l.value.bind(l),s);let d;return c;function c(m){return d=m,e.enter("attentionSequence"),f(m)}function f(m){if(m===d)return e.consume(m),f;const b=e.exit("attentionSequence"),y=P2(m)?z2(m,n(),a):m,w=Ua(y),E=Co(u),A=E||Zi(u),N=Co(w),F=N||Zi(w),U=ev(u),O=!F||N&&(A||U)||r.includes(m),W=!A||E&&(F||Zu(w))||r.includes(s);return b._open=!!(d===bn.asterisk?O:O&&(Pf(u)||!W)),b._close=!!(d===bn.asterisk?W:W&&(Pf(w)||!O)),t(m)}}function Bf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function iv(){return{text:{[bn.asterisk]:ql,[bn.underscore]:ql},insideSpan:{null:[ql]}}}function sv(){const e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(iv())}function ov(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{[bn.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[bn.tilde]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},c={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",c,o]],m=o.parser.constructs.insideSpan.null;m&&Lt(f,f.length,0,li(m,s.slice(u+1,l),o)),Lt(f,f.length,0,[["exit",c,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),Lt(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type=$r.data);return s}function i(s,o,l){const{now:u,sliceSerialize:d,previous:c}=this,f=B2(c)?F2(c,u(),d):c,m=Ua(f),b=new H2(f,u(),d),y=M2(m,b.value.bind(b),f),w=this.events;let E=0;return A;function A(F){return f===bn.tilde&&w[w.length-1][1].type!==$r.characterEscape?l(F):(s.enter("strikethroughSequenceTemporary"),N(F))}function N(F){const U=Ua(f);if(F===bn.tilde)return E>1?l(F):(s.consume(F),E++,N);if(E<2&&!r)return l(F);const O=s.exit("strikethroughSequenceTemporary"),W=P2(F)?z2(F,u(),d):F,X=Ua(W),B=Co(y)||Zi(y),j=Co(X)||Zi(X),S=Zu(y)||ZT(U);return O._open=!j||X===Ya.attentionSideAfter&&(B||S),O._close=!B||U===Ya.attentionSideAfter&&(j||Zu(X)),o(F)}}}function lv(e){const t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(ov(e))}function Ff(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,a=r.indexOf(t);for(;a!==-1;)n++,a=r.indexOf(t,a+t.length);return n}function uv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function cv(e,t,r){const a=Za((r||{}).ignore||[]),i=dv(t);let s=-1;for(;++s<i.length;)Mp(e,"text",o);function o(u,d){let c=-1,f;for(;++c<d.length;){const m=d[c],b=f?f.children:void 0;if(a(m,b?b.indexOf(m):void 0,f))return;f=m}if(f)return l(u,d)}function l(u,d){const c=d[d.length-1],f=i[s][0],m=i[s][1];let b=0;const w=c.children.indexOf(u);let E=!1,A=[];f.lastIndex=0;let N=f.exec(u.value);for(;N;){const F=N.index,U={index:N.index,input:N.input,stack:[...d,u]};let O=m(...N,U);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?f.lastIndex=F+1:(b!==F&&A.push({type:"text",value:u.value.slice(b,F)}),Array.isArray(O)?A.push(...O):O&&A.push(O),b=F+N[0].length,E=!0),!f.global)break;N=f.exec(u.value)}return E?(b<u.value.length&&A.push({type:"text",value:u.value.slice(b)}),c.children.splice(w,1,...A)):A=[u],w+A.length}}function dv(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const a=r[n];t.push([fv(a[0]),hv(a[1])])}return t}function fv(e){return typeof e=="string"?new RegExp(uv(e),"g"):e}function hv(e){return typeof e=="function"?e:function(){return e}}const Vl="phrasing",Wl=["autolink","link","image","label"];function mv(){return{transforms:[Tv],enter:{literalAutolink:gv,literalAutolinkEmail:Gl,literalAutolinkHttp:Gl,literalAutolinkWww:Gl},exit:{literalAutolink:Ev,literalAutolinkEmail:xv,literalAutolinkHttp:bv,literalAutolinkWww:yv}}}function pv(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vl,notInConstruct:Wl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vl,notInConstruct:Wl},{character:":",before:"[ps]",after:"\\/",inConstruct:Vl,notInConstruct:Wl}]}}function gv(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Gl(e){this.config.enter.autolinkProtocol.call(this,e)}function bv(e){this.config.exit.autolinkProtocol.call(this,e)}function yv(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 xv(e){this.config.exit.autolinkEmail.call(this,e)}function Ev(e){this.exit(e)}function Tv(e){cv(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,vv],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),wv]],{ignore:["link","linkReference"]})}function vv(e,t,r,n,a){let i="";if(!U2(a)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!kv(r)))return!1;const s=Av(r+n);if(!s[0])return!1;const o={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function wv(e,t,r,n){return!U2(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function kv(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 Av(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const a=Ff(e,"(");let i=Ff(e,")");for(;n!==-1&&a>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function U2(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ha(r)||ol(r))&&(!t||r!==47)}function Dr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}j2.peek=Dv;function Sv(){this.buffer()}function _v(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cv(){this.buffer()}function Nv(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Iv(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Rv(e){this.exit(e)}function Ov(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Lv(e){this.exit(e)}function Dv(){return"["}function j2(e,t,r,n){const a=r.createTracker(n);let i=a.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return i+=a.move(r.safe(r.associationId(e),{after:"]",before:i})),o(),s(),i+=a.move("]"),i}function Mv(){return{enter:{gfmFootnoteCallString:Sv,gfmFootnoteCall:_v,gfmFootnoteDefinitionLabelString:Cv,gfmFootnoteDefinition:Nv},exit:{gfmFootnoteCallString:Iv,gfmFootnoteCall:Rv,gfmFootnoteDefinitionLabelString:Ov,gfmFootnoteDefinition:Lv}}}function Pv(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:j2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,a,i,s){const o=i.createTracker(s);let l=o.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return l+=o.move(i.safe(i.associationId(n),{before:l,after:"]"})),d(),l+=o.move("]:"),n.children&&n.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
291
|
+
`:" ")+i.indentLines(i.containerFlow(n,o.current()),t?$2:Bv))),u(),l}}function Bv(e,t,r){return t===0?e:$2(e,t,r)}function $2(e,t,r){return(r?"":" ")+e}const Fv=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];q2.peek=$v;function Hv(){return{canContainEols:["delete"],enter:{strikethrough:Uv},exit:{strikethrough:jv}}}function zv(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Fv}],handlers:{delete:q2}}}function Uv(e){this.enter({type:"delete",children:[]},e)}function jv(e){this.exit(e)}function q2(e,t,r,n){const a=r.createTracker(n),i=r.enter("strikethrough");let s=a.move("~~");return s+=r.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function $v(){return"~"}function qv(e){return e.length}function Vv(e,t){const r=t||{},n=(r.align||[]).concat(),a=r.stringLength||qv,i=[],s=[],o=[],l=[];let u=0,d=-1;for(;++d<e.length;){const y=[],w=[];let E=-1;for(e[d].length>u&&(u=e[d].length);++E<e[d].length;){const A=Wv(e[d][E]);if(r.alignDelimiters!==!1){const N=a(A);w[E]=N,(l[E]===void 0||N>l[E])&&(l[E]=N)}y.push(A)}s[d]=y,o[d]=w}let c=-1;if(typeof n=="object"&&"length"in n)for(;++c<u;)i[c]=Hf(n[c]);else{const y=Hf(n);for(;++c<u;)i[c]=y}c=-1;const f=[],m=[];for(;++c<u;){const y=i[c];let w="",E="";y===99?(w=":",E=":"):y===108?w=":":y===114&&(E=":");let A=r.alignDelimiters===!1?1:Math.max(1,l[c]-w.length-E.length);const N=w+"-".repeat(A)+E;r.alignDelimiters!==!1&&(A=w.length+A+E.length,A>l[c]&&(l[c]=A),m[c]=A),f[c]=N}s.splice(1,0,f),o.splice(1,0,m),d=-1;const b=[];for(;++d<s.length;){const y=s[d],w=o[d];c=-1;const E=[];for(;++c<u;){const A=y[c]||"";let N="",F="";if(r.alignDelimiters!==!1){const U=l[c]-(w[c]||0),O=i[c];O===114?N=" ".repeat(U):O===99?U%2?(N=" ".repeat(U/2+.5),F=" ".repeat(U/2-.5)):(N=" ".repeat(U/2),F=N):F=" ".repeat(U)}r.delimiterStart!==!1&&!c&&E.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&A==="")&&(r.delimiterStart!==!1||c)&&E.push(" "),r.alignDelimiters!==!1&&E.push(N),E.push(A),r.alignDelimiters!==!1&&E.push(F),r.padding!==!1&&E.push(" "),(r.delimiterEnd!==!1||c!==u-1)&&E.push("|")}b.push(r.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return b.join(`
|
|
292
|
+
`)}function Wv(e){return e==null?"":String(e)}function Hf(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}function Gv(e,t,r,n){const a=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const s=r.indentLines(r.containerFlow(e,i.current()),Yv);return a(),s}function Yv(e,t,r){return">"+(r?"":" ")+e}function Xv(e,t){return zf(e,t.inConstruct,!0)&&!zf(e,t.notInConstruct,!1)}function zf(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Uf(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
|
|
293
|
+
`&&Xv(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
294
|
+
`}function V2(e,t){const r=String(e);let n=r.indexOf(t),a=n,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===a?++i>s&&(s=i):i=1,a=n+t.length,n=r.indexOf(t,a);return s}function Kv(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 Qv(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 Jv(e,t,r,n){const a=Qv(r),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(Kv(e,r)){const c=r.enter("codeIndented"),f=r.indentLines(i,Zv);return c(),f}const o=r.createTracker(n),l=a.repeat(Math.max(V2(i,a)+1,3)),u=r.enter("codeFenced");let d=o.move(l);if(e.lang){const c=r.enter(`codeFencedLang${s}`);d+=o.move(r.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),c()}if(e.lang&&e.meta){const c=r.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(r.safe(e.meta,{before:d,after:`
|
|
295
|
+
`,encode:["`"],...o.current()})),c()}return d+=o.move(`
|
|
296
|
+
`),i&&(d+=o.move(i+`
|
|
297
|
+
`)),d+=o.move(l),u(),d}function Zv(e,t,r){return(r?"":" ")+e}function pc(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 ew(e,t,r,n){const a=pc(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=r.enter("label");const l=r.createTracker(n);let u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
298
|
+
`,...l.current()}))),o(),e.title&&(o=r.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),s(),u}function tw(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 es(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Xa(e){if(e===null||Qe(e)||ha(e))return 1;if(ol(e))return 2}function No(e,t,r){const n=Xa(e),a=Xa(t);return n===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===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}}W2.peek=rw;function W2(e,t,r,n){const a=tw(r),i=r.enter("emphasis"),s=r.createTracker(n),o=s.move(a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),d=No(n.before.charCodeAt(n.before.length-1),u,a);d.inside&&(l=es(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=No(n.after.charCodeAt(0),c,a);f.inside&&(l=l.slice(0,-1)+es(c));const m=s.move(a);return i(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},o+l+m}function rw(e,t,r){return r.options.emphasis||"*"}const nw={};function gc(e,t){const r=nw,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return G2(e,n,a)}function G2(e,t,r){if(aw(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return jf(e.children,t,r)}return Array.isArray(e)?jf(e,t,r):""}function jf(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=G2(e[a],t,r);return n.join("")}function aw(e){return!!(e&&typeof e=="object")}function iw(e,t){let r=!1;return Va(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Nu}),!!((!e.depth||e.depth<3)&&gc(e)&&(t.options.setext||r))}function sw(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(iw(e,r)){const d=r.enter("headingSetext"),c=r.enter("phrasing"),f=r.containerPhrasing(e,{...i.current(),before:`
|
|
299
|
+
`,after:`
|
|
300
|
+
`});return c(),d(),f+`
|
|
301
|
+
`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
302
|
+
`))+1))}const s="#".repeat(a),o=r.enter("headingAtx"),l=r.enter("phrasing");i.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
303
|
+
`,...i.current()});return/^[\t ]/.test(u)&&(u=es(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}Y2.peek=ow;function Y2(e){return e.value||""}function ow(){return"<"}X2.peek=lw;function X2(e,t,r,n){const a=pc(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const l=r.createTracker(n);let u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),u+=l.move(")"),s(),u}function lw(){return"!"}K2.peek=uw;function K2(e,t,r,n){const a=e.referenceType,i=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(n);let l=o.move("![");const u=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const c=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=d,i(),a==="full"||!u||u!==c?l+=o.move(c+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function uw(){return"!"}Q2.peek=cw;function Q2(e,t,r){let n=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const s=r.unsafe[i],o=r.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return a+n+a}function cw(){return"`"}function J2(e,t){const r=gc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Z2.peek=dw;function Z2(e,t,r,n){const a=pc(r),i=a==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let o,l;if(J2(e,r)){const d=r.stack;r.stack=[],o=r.enter("autolink");let c=s.move("<");return c+=s.move(r.containerPhrasing(e,{before:c,after:">",...s.current()})),c+=s.move(">"),o(),r.stack=d,c}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(r.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function dw(e,t,r){return J2(e,r)?"<":"["}eg.peek=fw;function eg(e,t,r,n){const a=e.referenceType,i=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(n);let l=o.move("[");const u=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const c=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=d,i(),a==="full"||!u||u!==c?l+=o.move(c+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function fw(){return"["}function bc(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 hw(e){const t=bc(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function mw(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 tg(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 pw(e,t,r,n){const a=r.enter("list"),i=r.bulletCurrent;let s=e.ordered?mw(r):bc(r);const o=e.ordered?s==="."?")":".":hw(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),tg(r)===s&&d){let c=-1;for(;++c<e.children.length;){const f=e.children[c];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=i,a(),u}function gw(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 bw(e,t,r,n){const a=gw(r);let i=r.bulletCurrent||bc(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(n);o.move(i+" ".repeat(s-i.length)),o.shift(s);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,o.current()),d);return l(),u;function d(c,f,m){return f?(m?"":" ".repeat(s))+c:(m?i:i+" ".repeat(s-i.length))+c}}function yw(e,t,r,n){const a=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),a(),s}const xw=Za(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ew(e,t,r,n){return(e.children.some(function(s){return xw(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function Tw(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rg.peek=vw;function rg(e,t,r,n){const a=Tw(r),i=r.enter("strong"),s=r.createTracker(n),o=s.move(a+a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),d=No(n.before.charCodeAt(n.before.length-1),u,a);d.inside&&(l=es(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=No(n.after.charCodeAt(0),c,a);f.inside&&(l=l.slice(0,-1)+es(c));const m=s.move(a+a);return i(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},o+l+m}function vw(e,t,r){return r.options.strong||"*"}function ww(e,t,r,n){return r.safe(e.value,n)}function kw(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 Aw(e,t,r){const n=(tg(r)+(r.options.ruleSpaces?" ":"")).repeat(kw(r));return r.options.ruleSpaces?n.slice(0,-1):n}const ng={blockquote:Gv,break:Uf,code:Jv,definition:ew,emphasis:W2,hardBreak:Uf,heading:sw,html:Y2,image:X2,imageReference:K2,inlineCode:Q2,link:Z2,linkReference:eg,list:pw,listItem:bw,paragraph:yw,root:Ew,strong:rg,text:ww,thematicBreak:Aw},$f=document.createElement("i");function yc(e){const t="&"+e+";";$f.innerHTML=t;const r=$f.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ag(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}const Sw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _w(e){return e.replace(Sw,Cw)}function Cw(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),i=a===120||a===88;return ag(r.slice(i?2:1),i?16:10)}return yc(r)||e}function Nw(){return{enter:{table:Iw,tableData:qf,tableHeader:qf,tableRow:Ow},exit:{codeText:Lw,table:Rw,tableData:Yl,tableHeader:Yl,tableRow:Yl}}}function Iw(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function Rw(e){this.exit(e),this.data.inTable=void 0}function Ow(e){this.enter({type:"tableRow",children:[]},e)}function Yl(e){this.exit(e)}function qf(e){this.enter({type:"tableCell",children:[]},e)}function Lw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Dw));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Dw(e,t){return t==="|"?t:e}function Mw(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
304
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(m,b,y,w){return u(d(m,y,w),m.align)}function o(m,b,y,w){const E=c(m,y,w),A=u([E]);return A.slice(0,A.indexOf(`
|
|
305
|
+
`))}function l(m,b,y,w){const E=y.enter("tableCell"),A=y.enter("phrasing"),N=y.containerPhrasing(m,{...w,before:i,after:i});return A(),E(),N}function u(m,b){return Vv(m,{align:b,alignDelimiters:n,padding:r,stringLength:a})}function d(m,b,y){const w=m.children;let E=-1;const A=[],N=b.enter("table");for(;++E<w.length;)A[E]=c(w[E],b,y);return N(),A}function c(m,b,y){const w=m.children;let E=-1;const A=[],N=b.enter("tableRow");for(;++E<w.length;)A[E]=l(w[E],m,b,y);return N(),A}function f(m,b,y){let w=ng.inlineCode(m,b,y);return y.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function Pw(){return{exit:{taskListCheckValueChecked:Vf,taskListCheckValueUnchecked:Vf,paragraph:Fw}}}function Bw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Hw}}}function Vf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Fw(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=t.children;let i=-1,s;for(;++i<a.length;){const o=a[i];if(o.type==="paragraph"){s=o;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Hw(e,t,r,n){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(n);i&&o.move(s);let l=ng.listItem(e,t,r,{...n,...o.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+s}}function zw(){return[mv(),Mv(),Hv(),Nw(),Pw()]}function Uw(e){return{extensions:[pv(),Pv(e),zv(),Mw(e),Bw()]}}const Wf={}.hasOwnProperty;function ig(e){const t={};let r=-1;for(;++r<e.length;)jw(t,e[r]);return t}function jw(e,t){let r;for(r in t){const a=(Wf.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let s;if(i)for(s in i){Wf.call(a,s)||(a[s]=[]);const o=i[s];$w(a[s],Array.isArray(o)?o:o?[o]:[])}}}function $w(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Lt(e,0,0,n)}const qw={tokenize:Kw,partial:!0},sg={tokenize:Qw,partial:!0},og={tokenize:Jw,partial:!0},lg={tokenize:Zw,partial:!0},Vw={tokenize:ek,partial:!0},ug={name:"wwwAutolink",tokenize:Yw,previous:dg},cg={name:"protocolAutolink",tokenize:Xw,previous:fg},Sn={name:"emailAutolink",tokenize:Gw,previous:hg},ln={};function Ww(){return{text:ln}}let ia=48;for(;ia<123;)ln[ia]=Sn,ia++,ia===58?ia=65:ia===91&&(ia=97);ln[43]=Sn;ln[45]=Sn;ln[46]=Sn;ln[95]=Sn;ln[72]=[Sn,cg];ln[104]=[Sn,cg];ln[87]=[Sn,ug];ln[119]=[Sn,ug];function Gw(e,t,r){const n=this;let a,i;return s;function s(c){return!e0(c)||!hg.call(n,n.previous)||xc(n.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return e0(c)?(e.consume(c),o):c===64?(e.consume(c),l):r(c)}function l(c){return c===46?e.check(Vw,d,u)(c):c===45||c===95||Pt(c)?(i=!0,e.consume(c),l):d(c)}function u(c){return e.consume(c),a=!0,l}function d(c){return i&&a&&qt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):r(c)}}function Yw(e,t,r){const n=this;return a;function a(s){return s!==87&&s!==119||!dg.call(n,n.previous)||xc(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(qw,e.attempt(sg,e.attempt(og,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Xw(e,t,r){const n=this;let a="",i=!1;return s;function s(c){return(c===72||c===104)&&fg.call(n,n.previous)&&!xc(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(c),e.consume(c),o):r(c)}function o(c){if(qt(c)&&a.length<5)return a+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(c),l}return r(c)}function l(c){return c===47?(e.consume(c),i?u:(i=!0,l)):r(c)}function u(c){return c===null||_o(c)||Qe(c)||ha(c)||ol(c)?r(c):e.attempt(sg,e.attempt(og,d),r)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Kw(e,t,r){let n=0;return a;function a(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),a):s===46&&n===3?(e.consume(s),i):r(s)}function i(s){return s===null?r(s):t(s)}}function Qw(e,t,r){let n,a,i;return s;function s(u){return u===46||u===95?e.check(lg,l,o)(u):u===null||Qe(u)||ha(u)||u!==45&&ol(u)?l(u):(i=!0,e.consume(u),s)}function o(u){return u===95?n=!0:(a=n,n=void 0),e.consume(u),s}function l(u){return a||n||!i?r(u):t(u)}}function Jw(e,t){let r=0,n=0;return a;function a(s){return s===40?(r++,e.consume(s),a):s===41&&n<r?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(lg,t,i)(s):s===null||Qe(s)||ha(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&n++,e.consume(s),a}}function Zw(e,t,r){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),n):o===38?(e.consume(o),i):o===93?(e.consume(o),a):o===60||o===null||Qe(o)||ha(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||Qe(o)||ha(o)?t(o):n(o)}function i(o){return qt(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),n):qt(o)?(e.consume(o),s):r(o)}}function ek(e,t,r){return n;function n(i){return e.consume(i),a}function a(i){return Pt(i)?r(i):t(i)}}function dg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Qe(e)}function fg(e){return!qt(e)}function hg(e){return!(e===47||e0(e))}function e0(e){return e===43||e===45||e===46||e===95||Pt(e)}function xc(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function ui(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const i=e.charCodeAt(r);let s="";if(i===37&&Pt(e.charCodeAt(r+1))&&Pt(e.charCodeAt(r+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(r+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+a+1,s=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}const t0={name:"attention",resolveAll:tk,tokenize:rk};function tk(e,t){let r=-1,n,a,i,s,o,l,u,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c={...e[n][1].end},f={...e[r][1].start};Gf(c,-l),Gf(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Ot(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Ot(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=Ot(u,li(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Ot(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,u=Ot(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,Lt(e,n-1,r-n+3,u),r=n+u.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function rk(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=Xa(n);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===i)return e.consume(l),o;const u=e.exit("attentionSequence"),d=Xa(l),c=!d||d===2&&a||r.includes(l),f=!a||a===2&&d||r.includes(n);return u._open=!!(i===42?c:c&&(a||!f)),u._close=!!(i===42?f:f&&(d||!c)),t(l)}}function Gf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nk={name:"autolink",tokenize:ak};function ak(e,t,r){let n=0;return a;function a(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(m){return qt(m)?(e.consume(m),s):m===64?r(m):u(m)}function s(m){return m===43||m===45||m===46||Pt(m)?(n=1,o(m)):u(m)}function o(m){return m===58?(e.consume(m),n=0,l):(m===43||m===45||m===46||Pt(m))&&n++<32?(e.consume(m),o):(n=0,u(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||_o(m)?r(m):(e.consume(m),l)}function u(m){return m===64?(e.consume(m),d):DT(m)?(e.consume(m),u):r(m)}function d(m){return Pt(m)?c(m):r(m)}function c(m){return m===46?(e.consume(m),n=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):f(m)}function f(m){if((m===45||Pt(m))&&n++<63){const b=m===45?f:c;return e.consume(m),b}return r(m)}}function Ue(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return je(l)?(e.enter(r),o(l)):t(l)}function o(l){return je(l)&&i++<a?(e.consume(l),o):(e.exit(r),t(l))}}const gs={partial:!0,tokenize:ik};function ik(e,t,r){return n;function n(i){return je(i)?Ue(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ve(i)?t(i):r(i)}}const mg={continuation:{tokenize:ok},exit:lk,name:"blockQuote",tokenize:sk};function sk(e,t,r){const n=this;return a;function a(s){if(s===62){const o=n.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return r(s)}function i(s){return je(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function ok(e,t,r){const n=this;return a;function a(s){return je(s)?Ue(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(mg,t,r)(s)}}function lk(e){e.exit("blockQuote")}const pg={name:"characterEscape",tokenize:uk};function uk(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return PT(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const gg={name:"characterReference",tokenize:ck};function ck(e,t,r){const n=this;let a=0,i,s;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,s=Pt,d(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=MT,d):(e.enter("characterReferenceValue"),i=7,s=Ju,d(c))}function d(c){if(c===59&&a){const f=e.exit("characterReferenceValue");return s===Pt&&!yc(n.sliceSerialize(f))?r(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(c)&&a++<i?(e.consume(c),d):r(c)}}const Yf={partial:!0,tokenize:fk},Xf={concrete:!0,name:"codeFenced",tokenize:dk};function dk(e,t,r){const n=this,a={partial:!0,tokenize:U};let i=0,s=0,o;return l;function l(O){return u(O)}function u(O){const W=n.events[n.events.length-1];return i=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,o=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(O)}function d(O){return O===o?(s++,e.consume(O),d):s<3?r(O):(e.exit("codeFencedFenceSequence"),je(O)?Ue(e,c,"whitespace")(O):c(O))}function c(O){return O===null||ve(O)?(e.exit("codeFencedFence"),n.interrupt?t(O):e.check(Yf,y,F)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(O))}function f(O){return O===null||ve(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(O)):je(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ue(e,m,"whitespace")(O)):O===96&&O===o?r(O):(e.consume(O),f)}function m(O){return O===null||ve(O)?c(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(O))}function b(O){return O===null||ve(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(O)):O===96&&O===o?r(O):(e.consume(O),b)}function y(O){return e.attempt(a,F,w)(O)}function w(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),E}function E(O){return i>0&&je(O)?Ue(e,A,"linePrefix",i+1)(O):A(O)}function A(O){return O===null||ve(O)?e.check(Yf,y,F)(O):(e.enter("codeFlowValue"),N(O))}function N(O){return O===null||ve(O)?(e.exit("codeFlowValue"),A(O)):(e.consume(O),N)}function F(O){return e.exit("codeFenced"),t(O)}function U(O,W,X){let Z=0;return B;function B($){return O.enter("lineEnding"),O.consume($),O.exit("lineEnding"),re}function re($){return O.enter("codeFencedFence"),je($)?Ue(O,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):j($)}function j($){return $===o?(O.enter("codeFencedFenceSequence"),S($)):X($)}function S($){return $===o?(Z++,O.consume($),S):Z>=s?(O.exit("codeFencedFenceSequence"),je($)?Ue(O,H,"whitespace")($):H($)):X($)}function H($){return $===null||ve($)?(O.exit("codeFencedFence"),W($)):X($)}}}function fk(e,t,r){const n=this;return a;function a(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const Xl={name:"codeIndented",tokenize:mk},hk={partial:!0,tokenize:pk};function mk(e,t,r){const n=this;return a;function a(u){return e.enter("codeIndented"),Ue(e,i,"linePrefix",5)(u)}function i(u){const d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):ve(u)?e.attempt(hk,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||ve(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function pk(e,t,r){const n=this;return a;function a(s){return n.parser.lazy[n.now().line]?r(s):ve(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Ue(e,i,"linePrefix",5)(s)}function i(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ve(s)?a(s):r(s)}}const gk={name:"codeText",previous:yk,resolve:bk,tokenize:xk};function bk(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function yk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xk(e,t,r){let n=0,a,i;return s;function s(c){return e.enter("codeText"),e.enter("codeTextSequence"),o(c)}function o(c){return c===96?(e.consume(c),n++,o):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?r(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(i=e.enter("codeTextSequence"),a=0,d(c)):ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||ve(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function d(c){return c===96?(e.consume(c),a++,d):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(i.type="codeTextData",u(c))}}class Ek{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,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const a=r||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&bi(this.left,n),i.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),bi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bi(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);bi(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bi(this.left,r.reverse())}}}function bi(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function bg(e){const t={};let r=-1,n,a,i,s,o,l,u;const d=new Ek(e);for(;++r<d.length;){for(;r in t;)r=t[r];if(n=d.get(r),r&&n[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Tk(d,r)),r=t[r],u=!0);else if(n[1]._container){for(i=r,a=void 0;i--;)if(s=d.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(n[1].end={...d.get(a)[1].start},o=d.slice(a,r),o.unshift(n),d.splice(a,r-a+1,o))}}return Lt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function Tk(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const i=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let d,c,f=-1,m=r,b=0,y=0;const w=[y];for(;m;){for(;e.get(++a)[1]!==m;);i.push(a),m._tokenizer||(d=n.sliceStream(m),m.next||d.push(null),c&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),c=m,m=m.next}for(m=r;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(y=f+1,w.push(y),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):w.pop(),f=w.length;f--;){const E=o.slice(w[f],w[f+1]),A=i.pop();l.push([A,A+E.length-1]),e.splice(A,2,E)}for(l.reverse(),f=-1;++f<l.length;)u[b+l[f][0]]=b+l[f][1],b+=l[f][1]-l[f][0]-1;return u}const vk={resolve:kk,tokenize:Ak},wk={partial:!0,tokenize:Sk};function kk(e){return bg(e),e}function Ak(e,t){let r;return n;function n(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ve(o)?e.check(wk,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function Sk(e,t,r){const n=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ue(e,i,"linePrefix")}function i(s){if(s===null||ve(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function yg(e,t,r,n,a,i,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return c;function c(E){return E===60?(e.enter(n),e.enter(a),e.enter(i),e.consume(E),e.exit(i),f):E===null||E===32||E===41||_o(E)?r(E):(e.enter(n),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(E))}function f(E){return E===62?(e.enter(i),e.consume(E),e.exit(i),e.exit(a),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===62?(e.exit("chunkString"),e.exit(o),f(E)):E===null||E===60||ve(E)?r(E):(e.consume(E),E===92?b:m)}function b(E){return E===60||E===62||E===92?(e.consume(E),m):m(E)}function y(E){return!d&&(E===null||E===41||Qe(E))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(n),t(E)):d<u&&E===40?(e.consume(E),d++,y):E===41?(e.consume(E),d--,y):E===null||E===32||E===40||_o(E)?r(E):(e.consume(E),E===92?w:y)}function w(E){return E===40||E===41||E===92?(e.consume(E),y):y(E)}}function xg(e,t,r,n,a,i){const s=this;let o=0,l;return u;function u(m){return e.enter(n),e.enter(a),e.consume(m),e.exit(a),e.enter(i),d}function d(m){return o>999||m===null||m===91||m===93&&!l||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(m):m===93?(e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(n),t):ve(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===null||m===91||m===93||ve(m)||o++>999?(e.exit("chunkString"),d(m)):(e.consume(m),l||(l=!je(m)),m===92?f:c)}function f(m){return m===91||m===92||m===93?(e.consume(m),o++,c):c(m)}}function Eg(e,t,r,n,a,i){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(n),e.enter(a),e.consume(f),e.exit(a),s=f===40?41:f,l):r(f)}function l(f){return f===s?(e.enter(a),e.consume(f),e.exit(a),e.exit(n),t):(e.enter(i),u(f))}function u(f){return f===s?(e.exit(i),l(s)):f===null?r(f):ve(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ue(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===s||f===null||ve(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?c:d)}function c(f){return f===s||f===92?(e.consume(f),d):d(f)}}function ji(e,t){let r;return n;function n(a){return ve(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):je(a)?Ue(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const _k={name:"definition",tokenize:Nk},Ck={partial:!0,tokenize:Ik};function Nk(e,t,r){const n=this;let a;return i;function i(m){return e.enter("definition"),s(m)}function s(m){return xg.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=Dr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):r(m)}function l(m){return Qe(m)?ji(e,u)(m):u(m)}function u(m){return yg(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(Ck,c,c)(m)}function c(m){return je(m)?Ue(e,f,"whitespace")(m):f(m)}function f(m){return m===null||ve(m)?(e.exit("definition"),n.parser.defined.push(a),t(m)):r(m)}}function Ik(e,t,r){return n;function n(o){return Qe(o)?ji(e,a)(o):r(o)}function a(o){return Eg(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return je(o)?Ue(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ve(o)?t(o):r(o)}}const Rk={name:"hardBreakEscape",tokenize:Ok};function Ok(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ve(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const Lk={name:"headingAtx",resolve:Dk,tokenize:Mk};function Dk(e,t){let r=e.length-2,n=3,a,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Lt(e,n,r-n+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Mk(e,t,r){let n=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&n++<6?(e.consume(d),s):d===null||Qe(d)?(e.exit("atxHeadingSequence"),o(d)):r(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ve(d)?(e.exit("atxHeading"),t(d)):je(d)?Ue(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||Qe(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const Pk=["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"],Kf=["pre","script","style","textarea"],Bk={concrete:!0,name:"htmlFlow",resolveTo:zk,tokenize:Uk},Fk={partial:!0,tokenize:$k},Hk={partial:!0,tokenize:jk};function zk(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 Uk(e,t,r){const n=this;let a,i,s,o,l;return u;function u(R){return d(R)}function d(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),c}function c(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,y):R===63?(e.consume(R),a=3,n.interrupt?t:C):qt(R)?(e.consume(R),s=String.fromCharCode(R),w):r(R)}function f(R){return R===45?(e.consume(R),a=2,m):R===91?(e.consume(R),a=5,o=0,b):qt(R)?(e.consume(R),a=4,n.interrupt?t:C):r(R)}function m(R){return R===45?(e.consume(R),n.interrupt?t:C):r(R)}function b(R){const we="CDATA[";return R===we.charCodeAt(o++)?(e.consume(R),o===we.length?n.interrupt?t:j:b):r(R)}function y(R){return qt(R)?(e.consume(R),s=String.fromCharCode(R),w):r(R)}function w(R){if(R===null||R===47||R===62||Qe(R)){const we=R===47,Ne=s.toLowerCase();return!we&&!i&&Kf.includes(Ne)?(a=1,n.interrupt?t(R):j(R)):Pk.includes(s.toLowerCase())?(a=6,we?(e.consume(R),E):n.interrupt?t(R):j(R)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(R):i?A(R):N(R))}return R===45||Pt(R)?(e.consume(R),s+=String.fromCharCode(R),w):r(R)}function E(R){return R===62?(e.consume(R),n.interrupt?t:j):r(R)}function A(R){return je(R)?(e.consume(R),A):B(R)}function N(R){return R===47?(e.consume(R),B):R===58||R===95||qt(R)?(e.consume(R),F):je(R)?(e.consume(R),N):B(R)}function F(R){return R===45||R===46||R===58||R===95||Pt(R)?(e.consume(R),F):U(R)}function U(R){return R===61?(e.consume(R),O):je(R)?(e.consume(R),U):N(R)}function O(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),l=R,W):je(R)?(e.consume(R),O):X(R)}function W(R){return R===l?(e.consume(R),l=null,Z):R===null||ve(R)?r(R):(e.consume(R),W)}function X(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Qe(R)?U(R):(e.consume(R),X)}function Z(R){return R===47||R===62||je(R)?N(R):r(R)}function B(R){return R===62?(e.consume(R),re):r(R)}function re(R){return R===null||ve(R)?j(R):je(R)?(e.consume(R),re):r(R)}function j(R){return R===45&&a===2?(e.consume(R),q):R===60&&a===1?(e.consume(R),V):R===62&&a===4?(e.consume(R),fe):R===63&&a===3?(e.consume(R),C):R===93&&a===5?(e.consume(R),se):ve(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Fk,ye,S)(R)):R===null||ve(R)?(e.exit("htmlFlowData"),S(R)):(e.consume(R),j)}function S(R){return e.check(Hk,H,ye)(R)}function H(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),$}function $(R){return R===null||ve(R)?S(R):(e.enter("htmlFlowData"),j(R))}function q(R){return R===45?(e.consume(R),C):j(R)}function V(R){return R===47?(e.consume(R),s="",G):j(R)}function G(R){if(R===62){const we=s.toLowerCase();return Kf.includes(we)?(e.consume(R),fe):j(R)}return qt(R)&&s.length<8?(e.consume(R),s+=String.fromCharCode(R),G):j(R)}function se(R){return R===93?(e.consume(R),C):j(R)}function C(R){return R===62?(e.consume(R),fe):R===45&&a===2?(e.consume(R),C):j(R)}function fe(R){return R===null||ve(R)?(e.exit("htmlFlowData"),ye(R)):(e.consume(R),fe)}function ye(R){return e.exit("htmlFlow"),t(R)}}function jk(e,t,r){const n=this;return a;function a(s){return ve(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):r(s)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function $k(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(gs,t,r)}}const qk={name:"htmlText",tokenize:Vk};function Vk(e,t,r){const n=this;let a,i,s;return o;function o(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),l}function l(C){return C===33?(e.consume(C),u):C===47?(e.consume(C),U):C===63?(e.consume(C),N):qt(C)?(e.consume(C),X):r(C)}function u(C){return C===45?(e.consume(C),d):C===91?(e.consume(C),i=0,b):qt(C)?(e.consume(C),A):r(C)}function d(C){return C===45?(e.consume(C),m):r(C)}function c(C){return C===null?r(C):C===45?(e.consume(C),f):ve(C)?(s=c,V(C)):(e.consume(C),c)}function f(C){return C===45?(e.consume(C),m):c(C)}function m(C){return C===62?q(C):C===45?f(C):c(C)}function b(C){const fe="CDATA[";return C===fe.charCodeAt(i++)?(e.consume(C),i===fe.length?y:b):r(C)}function y(C){return C===null?r(C):C===93?(e.consume(C),w):ve(C)?(s=y,V(C)):(e.consume(C),y)}function w(C){return C===93?(e.consume(C),E):y(C)}function E(C){return C===62?q(C):C===93?(e.consume(C),E):y(C)}function A(C){return C===null||C===62?q(C):ve(C)?(s=A,V(C)):(e.consume(C),A)}function N(C){return C===null?r(C):C===63?(e.consume(C),F):ve(C)?(s=N,V(C)):(e.consume(C),N)}function F(C){return C===62?q(C):N(C)}function U(C){return qt(C)?(e.consume(C),O):r(C)}function O(C){return C===45||Pt(C)?(e.consume(C),O):W(C)}function W(C){return ve(C)?(s=W,V(C)):je(C)?(e.consume(C),W):q(C)}function X(C){return C===45||Pt(C)?(e.consume(C),X):C===47||C===62||Qe(C)?Z(C):r(C)}function Z(C){return C===47?(e.consume(C),q):C===58||C===95||qt(C)?(e.consume(C),B):ve(C)?(s=Z,V(C)):je(C)?(e.consume(C),Z):q(C)}function B(C){return C===45||C===46||C===58||C===95||Pt(C)?(e.consume(C),B):re(C)}function re(C){return C===61?(e.consume(C),j):ve(C)?(s=re,V(C)):je(C)?(e.consume(C),re):Z(C)}function j(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),a=C,S):ve(C)?(s=j,V(C)):je(C)?(e.consume(C),j):(e.consume(C),H)}function S(C){return C===a?(e.consume(C),a=void 0,$):C===null?r(C):ve(C)?(s=S,V(C)):(e.consume(C),S)}function H(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||Qe(C)?Z(C):(e.consume(C),H)}function $(C){return C===47||C===62||Qe(C)?Z(C):r(C)}function q(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function V(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),G}function G(C){return je(C)?Ue(e,se,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):se(C)}function se(C){return e.enter("htmlTextData"),s(C)}}const Ec={name:"labelEnd",resolveAll:Xk,resolveTo:Kk,tokenize:Qk},Wk={tokenize:Jk},Gk={tokenize:Zk},Yk={tokenize:eA};function Xk(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const a=n.type==="labelImage"?4:2;n.type="data",t+=a}}return e.length!==r.length&&Lt(e,0,e.length,r),e}function Kk(e,t){let r=e.length,n=0,a,i,s,o;for(;r--;)if(a=e[r][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=r,a.type!=="labelLink")){n=2;break}}else a.type==="labelEnd"&&(s=r);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=Ot(o,e.slice(i+1,i+n+3)),o=Ot(o,[["enter",d,t]]),o=Ot(o,li(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),o=Ot(o,[["exit",d,t],e[s-2],e[s-1],["exit",u,t]]),o=Ot(o,e.slice(s+1)),o=Ot(o,[["exit",l,t]]),Lt(e,i,e.length,o),e}function Qk(e,t,r){const n=this;let a=n.events.length,i,s;for(;a--;)if((n.events[a][1].type==="labelImage"||n.events[a][1].type==="labelLink")&&!n.events[a][1]._balanced){i=n.events[a][1];break}return o;function o(f){return i?i._inactive?c(f):(s=n.parser.defined.includes(Dr(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):r(f)}function l(f){return f===40?e.attempt(Wk,d,s?d:c)(f):f===91?e.attempt(Gk,d,s?u:c)(f):s?d(f):c(f)}function u(f){return e.attempt(Yk,d,c)(f)}function d(f){return t(f)}function c(f){return i._balanced=!0,r(f)}}function Jk(e,t,r){return n;function n(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),a}function a(c){return Qe(c)?ji(e,i)(c):i(c)}function i(c){return c===41?d(c):yg(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function s(c){return Qe(c)?ji(e,l)(c):d(c)}function o(c){return r(c)}function l(c){return c===34||c===39||c===40?Eg(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return Qe(c)?ji(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):r(c)}}function Zk(e,t,r){const n=this;return a;function a(o){return xg.call(n,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return n.parser.defined.includes(Dr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function eA(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}const tA={name:"labelStartImage",resolveAll:Ec.resolveAll,tokenize:rA};function rA(e,t,r){const n=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const nA={name:"labelStartLink",resolveAll:Ec.resolveAll,tokenize:aA};function aA(e,t,r){const n=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const Kl={name:"lineEnding",tokenize:iA};function iA(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ue(e,t,"linePrefix")}}const lo={name:"thematicBreak",tokenize:sA};function sA(e,t,r){let n=0,a;return i;function i(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||ve(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===a?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),je(u)?Ue(e,o,"whitespace")(u):o(u))}}const Jt={continuation:{tokenize:cA},exit:fA,name:"list",tokenize:uA},oA={partial:!0,tokenize:hA},lA={partial:!0,tokenize:dA};function uA(e,t,r){const n=this,a=n.events[n.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(m){const b=n.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!n.containerState.marker||m===n.containerState.marker:Ju(m)){if(n.containerState.type||(n.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(lo,r,u)(m):u(m);if(!n.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return r(m)}function l(m){return Ju(m)&&++s<10?(e.consume(m),l):(!n.interrupt||s<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):r(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,e.check(gs,n.interrupt?r:d,e.attempt(oA,f,c))}function d(m){return n.containerState.initialBlankLine=!0,i++,f(m)}function c(m){return je(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):r(m)}function f(m){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function cA(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(gs,a,i);function a(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Ue(e,t,"listItemIndent",n.containerState.size+1)(o)}function i(o){return n.containerState.furtherBlankLines||!je(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(lA,t,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Ue(e,e.attempt(Jt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function dA(e,t,r){const n=this;return Ue(e,a,"listItemIndent",n.containerState.size+1);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(i):r(i)}}function fA(e){e.exit(this.containerState.type)}function hA(e,t,r){const n=this;return Ue(e,a,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=n.events[n.events.length-1];return!je(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const Qf={name:"setextUnderline",resolveTo:mA,tokenize:pA};function mA(e,t){let r=e.length,n,a,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function pA(e,t,r){const n=this;let a;return i;function i(u){let d=n.events.length,c;for(;d--;)if(n.events[d][1].type!=="lineEnding"&&n.events[d][1].type!=="linePrefix"&&n.events[d][1].type!=="content"){c=n.events[d][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||c)?(e.enter("setextHeadingLine"),a=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),je(u)?Ue(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const gA={tokenize:kA,partial:!0};function bA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:TA,continuation:{tokenize:vA},exit:wA}},text:{91:{name:"gfmFootnoteCall",tokenize:EA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yA,resolveTo:xA}}}}function yA(e,t,r){const n=this;let a=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;a--;){const l=n.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const u=Dr(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function xA(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...o),e}function EA(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i=0,s;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?r(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(i>999||c===93&&!s||c===null||c===91||Qe(c))return r(c);if(c===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(Dr(n.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(c)}return Qe(c)||(s=!0),i++,e.consume(c),c===92?d:u}function d(c){return c===91||c===92||c===93?(e.consume(c),i++,u):u(c)}}function TA(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,s=0,o;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):r(b)}function d(b){if(s>999||b===93&&!o||b===null||b===91||Qe(b))return r(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=Dr(n.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Qe(b)||(o=!0),s++,e.consume(b),b===92?c:d}function c(b){return b===91||b===92||b===93?(e.consume(b),s++,d):d(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),Ue(e,m,"gfmFootnoteDefinitionWhitespace")):r(b)}function m(b){return t(b)}}function vA(e,t,r){return e.check(gs,t,e.attempt(gA,t,r))}function wA(e){e.exit("gfmFootnoteDefinition")}function kA(e,t,r){const n=this;return Ue(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):r(i)}}function AA(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},c={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",c,o]],m=o.parser.constructs.insideSpan.null;m&&Lt(f,f.length,0,li(m,s.slice(u+1,l),o)),Lt(f,f.length,0,[["exit",c,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),Lt(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,o,l){const u=this.previous,d=this.events;let c=0;return f;function f(b){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(b):(s.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const y=Xa(u);if(b===126)return c>1?l(b):(s.consume(b),c++,m);if(c<2&&!r)return l(b);const w=s.exit("strikethroughSequenceTemporary"),E=Xa(b);return w._open=!E||E===2&&!!y,w._close=!y||y===2&&!!E,o(b)}}}class SA{constructor(){this.map=[]}add(t,r,n){_A(this,t,r,n)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let a=n.pop();for(;a;){for(const i of a)t.push(i);a=n.pop()}this.map.length=0}}function _A(e,t,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...n);return}a+=1}e.map.push([t,r,n])}}function CA(e,t){let r=!1;const n=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function NA(){return{flow:{null:{name:"table",tokenize:IA,resolveAll:RA}}}}function IA(e,t,r){const n=this;let a=0,i=0,s;return o;function o(B){let re=n.events.length-1;for(;re>-1;){const H=n.events[re][1].type;if(H==="lineEnding"||H==="linePrefix")re--;else break}const j=re>-1?n.events[re][1].type:null,S=j==="tableHead"||j==="tableRow"?O:l;return S===O&&n.parser.lazy[n.now().line]?r(B):S(B)}function l(B){return e.enter("tableHead"),e.enter("tableRow"),u(B)}function u(B){return B===124||(s=!0,i+=1),d(B)}function d(B){return B===null?r(B):ve(B)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),m):r(B):je(B)?Ue(e,d,"whitespace")(B):(i+=1,s&&(s=!1,a+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),c(B)))}function c(B){return B===null||B===124||Qe(B)?(e.exit("data"),d(B)):(e.consume(B),B===92?f:c)}function f(B){return B===92||B===124?(e.consume(B),c):c(B)}function m(B){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(B):(e.enter("tableDelimiterRow"),s=!1,je(B)?Ue(e,b,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):b(B))}function b(B){return B===45||B===58?w(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),y):U(B)}function y(B){return je(B)?Ue(e,w,"whitespace")(B):w(B)}function w(B){return B===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),E):B===45?(i+=1,E(B)):B===null||ve(B)?F(B):U(B)}function E(B){return B===45?(e.enter("tableDelimiterFiller"),A(B)):U(B)}function A(B){return B===45?(e.consume(B),A):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(B))}function N(B){return je(B)?Ue(e,F,"whitespace")(B):F(B)}function F(B){return B===124?b(B):B===null||ve(B)?!s||a!==i?U(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):U(B)}function U(B){return r(B)}function O(B){return e.enter("tableRow"),W(B)}function W(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),W):B===null||ve(B)?(e.exit("tableRow"),t(B)):je(B)?Ue(e,W,"whitespace")(B):(e.enter("data"),X(B))}function X(B){return B===null||B===124||Qe(B)?(e.exit("data"),W(B)):(e.consume(B),B===92?Z:X)}function Z(B){return B===92||B===124?(e.consume(B),X):X(B)}}function RA(e,t){let r=-1,n=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,c;const f=new SA;for(;++r<e.length;){const m=e[r],b=m[1];m[0]==="enter"?b.type==="tableHead"?(o=!1,l!==0&&(Jf(f,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(r,0,[["enter",u,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(n=!0,c=void 0,i=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(r,0,[["enter",d,t]])),a=b.type==="tableDelimiterRow"?2:d?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],c=zs(f,t,i,a,void 0,c),i=[0,0,0,0]),s[2]=r)):b.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],c=zs(f,t,i,a,void 0,c)),i=s,s=[i[1],r,0,0])):b.type==="tableHead"?(o=!0,l=r):b.type==="tableRow"||b.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],c=zs(f,t,i,a,r,c)):s[1]!==0&&(c=zs(f,t,s,a,r,c)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&Jf(f,t,l,u,d),f.consume(t.events),r=-1;++r<t.events.length;){const m=t.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=CA(t.events,r))}return e}function zs(e,t,r,n,a,i){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(i.end=Object.assign({},Ra(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const l=Ra(t.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){const u=Ra(t.events,r[2]),d=Ra(t.events,r[3]),c={type:o,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(r[2],0,[["enter",c,t]]),n!==2){const f=t.events[r[2]],m=t.events[r[3]];if(f[1].end=Object.assign({},m[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const b=r[2]+1,y=r[3]-r[2]-1;e.add(b,y,[])}}e.add(r[3]+1,0,[["exit",c,t]])}return a!==void 0&&(i.end=Object.assign({},Ra(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function Jf(e,t,r,n,a){const i=[],s=Ra(t.events,r);a&&(a.end=Object.assign({},s),i.push(["exit",a,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function Ra(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const OA={name:"tasklistCheck",tokenize:DA};function LA(){return{text:{91:OA}}}function DA(e,t,r){const n=this;return a;function a(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Qe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(l)}function o(l){return ve(l)?t(l):je(l)?e.check({tokenize:MA},t,r)(l):r(l)}}function MA(e,t,r){return Ue(e,n,"whitespace");function n(a){return a===null?r(a):t(a)}}function PA(e){return ig([Ww(),bA(),AA(e),NA(),LA()])}const BA={};function FA(e){const t=this,r=e||BA,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(PA(r)),i.push(zw()),s.push(Uw(r))}function HA(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:o,mathText:s,mathTextData:o}};function e(l){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function r(){const l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(l){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u;const c=d.data.hChildren[0];c.type,c.tagName,c.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const u=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u,d.data.hChildren.push({type:"text",value:u})}function o(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function zA(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
306
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(i,s,o,l){const u=i.value||"",d=o.createTracker(l),c="$".repeat(Math.max(V2(u,"$")+1,2)),f=o.enter("mathFlow");let m=d.move(c);if(i.meta){const b=o.enter("mathFlowMeta");m+=d.move(o.safe(i.meta,{after:`
|
|
307
|
+
`,before:m,encode:["$"],...d.current()})),b()}return m+=d.move(`
|
|
308
|
+
`),u&&(m+=d.move(u+`
|
|
309
|
+
`)),m+=d.move(c),f(),m}function n(i,s,o){let l=i.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const d="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let c=-1;for(;++c<o.unsafe.length;){const f=o.unsafe[c];if(!f.atBreak)continue;const m=o.compilePattern(f);let b;for(;b=m.exec(l);){let y=b.index;l.codePointAt(y)===10&&l.codePointAt(y-1)===13&&y--,l=l.slice(0,y)+" "+l.slice(b.index+1)}}return d+l+d}function a(){return"$"}}const UA={tokenize:jA,concrete:!0,name:"mathFlow"},Zf={tokenize:$A,partial:!0};function jA(e,t,r){const n=this,a=n.events[n.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let s=0;return o;function o(A){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(A)}function l(A){return A===36?(e.consume(A),s++,l):s<2?r(A):(e.exit("mathFlowFenceSequence"),Ue(e,u,"whitespace")(A))}function u(A){return A===null||ve(A)?c(A):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(A))}function d(A){return A===null||ve(A)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),c(A)):A===36?r(A):(e.consume(A),d)}function c(A){return e.exit("mathFlowFence"),n.interrupt?t(A):e.attempt(Zf,f,w)(A)}function f(A){return e.attempt({tokenize:E,partial:!0},w,m)(A)}function m(A){return(i?Ue(e,b,"linePrefix",i+1):b)(A)}function b(A){return A===null?w(A):ve(A)?e.attempt(Zf,f,w)(A):(e.enter("mathFlowValue"),y(A))}function y(A){return A===null||ve(A)?(e.exit("mathFlowValue"),b(A)):(e.consume(A),y)}function w(A){return e.exit("mathFlow"),t(A)}function E(A,N,F){let U=0;return Ue(A,O,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function O(Z){return A.enter("mathFlowFence"),A.enter("mathFlowFenceSequence"),W(Z)}function W(Z){return Z===36?(U++,A.consume(Z),W):U<s?F(Z):(A.exit("mathFlowFenceSequence"),Ue(A,X,"whitespace")(Z))}function X(Z){return Z===null||ve(Z)?(A.exit("mathFlowFence"),N(Z)):F(Z)}}}function $A(e,t,r){const n=this;return a;function a(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function qA(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:VA,previous:WA,name:"mathText"};function n(a,i,s){let o=0,l,u;return d;function d(y){return a.enter("mathText"),a.enter("mathTextSequence"),c(y)}function c(y){return y===36?(a.consume(y),o++,c):o<2&&!r?s(y):(a.exit("mathTextSequence"),f(y))}function f(y){return y===null?s(y):y===36?(u=a.enter("mathTextSequence"),l=0,b(y)):y===32?(a.enter("space"),a.consume(y),a.exit("space"),f):ve(y)?(a.enter("lineEnding"),a.consume(y),a.exit("lineEnding"),f):(a.enter("mathTextData"),m(y))}function m(y){return y===null||y===32||y===36||ve(y)?(a.exit("mathTextData"),f(y)):(a.consume(y),m)}function b(y){return y===36?(a.consume(y),l++,b):l===o?(a.exit("mathTextSequence"),a.exit("mathText"),i(y)):(u.type="mathTextData",m(y))}}}function VA(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="mathTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function WA(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function GA(e){return{flow:{36:UA},text:{36:qA(e)}}}const YA={};function r0(e){const t=this,r=e||YA,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(GA(r)),i.push(HA()),s.push(zA(r))}var XA=/(\*\*)([^*]*?)$/,KA=/(__)([^_]*?)$/,QA=/(\*\*\*)([^*]*?)$/,JA=/(\*)([^*]*?)$/,ZA=/(_)([^_]*?)$/,eS=/(`)([^`]*?)$/,tS=/(~~)([^~]*?)$/,wa=/^[\s_~*`]*$/,Tg=/^[\s]*[-*+][\s]+$/,rS=/[\p{L}\p{N}_]/u,nS=/^```[^`\n]*```?$/,aS=/^\*{4,}$/,Qn=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:rS.test(e)},ll=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(`
|
|
310
|
+
`)},iS=(e,t)=>{let r=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")r+=1;else if(e[n]==="["&&(r-=1,r===0))return n;return-1},sS=(e,t)=>{let r=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")r+=1;else if(e[n]==="]"&&(r-=1,r===0))return n;return-1},vg=(e,t)=>{let r=!1,n=!1;for(let a=0;a<e.length&&a<t;a+=1){if(e[a]==="\\"&&e[a+1]==="$"){a+=1;continue}e[a]==="$"&&(e[a+1]==="$"?(n=!n,a+=1,r=!1):n||(r=!r))}return r||n},oS=(e,t,r)=>{if(r!==" "&&r!==" ")return!1;let n=0;for(let a=t-1;a>=0;a-=1)if(e[a]===`
|
|
311
|
+
`){n=a+1;break}for(let a=n;a<t;a+=1)if(e[a]!==" "&&e[a]!==" ")return!1;return!0},lS=(e,t,r,n)=>!!(r==="\\"||r==="*"||n==="*"||r&&n&&Qn(r)&&Qn(n)||oS(e,t,n)),uS=e=>{let t=0,r=e.length;for(let n=0;n<r;n+=1){if(e[n]!=="*")continue;let a=n>0?e[n-1]:"",i=n<r-1?e[n+1]:"";lS(e,n,a,i)||(t+=1)}return t},cS=(e,t,r,n)=>!!(r==="\\"||e.includes("$")&&vg(e,t)||r==="_"||n==="_"||r&&n&&Qn(r)&&Qn(n)),dS=e=>{let t=0,r=e.length;for(let n=0;n<r;n+=1){if(e[n]!=="_")continue;let a=n>0?e[n-1]:"",i=n<r-1?e[n+1]:"";cS(e,n,a,i)||(t+=1)}return t},fS=e=>{let t=0,r=0;for(let n=0;n<e.length;n+=1)e[n]==="*"?r+=1:(r>=3&&(t+=Math.floor(r/3)),r=0);return r>=3&&(t+=Math.floor(r/3)),t},hS=e=>{if(ll(e))return e;let t=e.match(XA);if(t){let r=t[2];if(!r||wa.test(r))return e;let n=e.lastIndexOf(t[1]),a=e.substring(0,n).lastIndexOf(`
|
|
312
|
+
`),i=a===-1?0:a+1,s=e.substring(i,n);if(Tg.test(s)&&r.includes(`
|
|
313
|
+
`))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},mS=e=>{let t=e.match(KA);if(t){let r=t[2];if(!r||wa.test(r))return e;let n=e.lastIndexOf(t[1]),a=e.substring(0,n).lastIndexOf(`
|
|
314
|
+
`),i=a===-1?0:a+1,s=e.substring(i,n);if(Tg.test(s)&&r.includes(`
|
|
315
|
+
`))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},pS=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="*"&&e[t-1]!=="*"&&e[t+1]!=="*"&&e[t-1]!=="\\"){let r=t>0?e[t-1]:"",n=t<e.length-1?e[t+1]:"";if(r&&n&&Qn(r)&&Qn(n))continue;return t}return-1},gS=e=>{if(ll(e)||!e.match(JA))return e;let t=pS(e);if(t===-1)return e;let r=e.substring(t+1);return!r||wa.test(r)?e:uS(e)%2===1?`${e}*`:e},bS=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="_"&&e[t-1]!=="_"&&e[t+1]!=="_"&&e[t-1]!=="\\"&&!vg(e,t)){let r=t>0?e[t-1]:"",n=t<e.length-1?e[t+1]:"";if(r&&n&&Qn(r)&&Qn(n))continue;return t}return-1},yS=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
316
|
+
`;)t-=1;if(t<e.length){let r=e.slice(0,t),n=e.slice(t);return`${r}_${n}`}return`${e}_`},xS=e=>{if(ll(e)||!e.match(ZA))return e;let t=bS(e);if(t===-1)return e;let r=e.substring(t+1);return!r||wa.test(r)?e:dS(e)%2===1?yS(e):e},ES=e=>{if(ll(e)||aS.test(e))return e;let t=e.match(QA);if(t){let r=t[2];if(!r||wa.test(r))return e;if(fS(e)%2===1)return`${e}***`}return e},n0=(e,t)=>{let r=!1,n=!1;for(let a=0;a<t;a+=1){if(e.substring(a,a+3)==="```"){n=!n,a+=2;continue}!n&&e[a]==="`"&&(r=!r)}return r||n},TS=(e,t)=>{let r=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",a=t>1&&e.substring(t-2,t+1)==="```";return r||n||a},vS=e=>{let t=0;for(let r=0;r<e.length;r+=1)e[r]==="`"&&!TS(e,r)&&(t+=1);return t},wS=e=>!e.match(nS)||e.includes(`
|
|
317
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,kS=e=>{let t=(e.match(/```/g)||[]).length;return!!(t>0&&t%2===0&&e.includes(`
|
|
318
|
+
`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)},AS=e=>(e.match(/```/g)||[]).length%2===1,SS=e=>{let t=wS(e);if(t!==null)return t;if(kS(e))return e;let r=e.match(eS);if(r&&!AS(e)){let n=r[2];if(!n||wa.test(n))return e;if(vS(e)%2===1)return`${e}\``}return e},_S=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
319
|
+
`,t)!==-1&&!e.endsWith(`
|
|
320
|
+
`)?`${e}
|
|
321
|
+
$$`:`${e}$$`},CS=(e,t)=>{if(e.substring(t+2).includes(")"))return null;let r=iS(e,t);if(r===-1||n0(e,r))return null;let n=r>0&&e[r-1]==="!",a=n?r-1:r,i=e.substring(0,a);if(n)return i;let s=e.substring(r+1,t);return`${i}[${s}](streamdown:incomplete-link)`},NS=(e,t)=>{let r=t>0&&e[t-1]==="!",n=r?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,n);return r?a:`${e}](streamdown:incomplete-link)`}if(sS(e,t)===-1){let a=e.substring(0,n);return r?a:`${e}](streamdown:incomplete-link)`}return null},IS=e=>{let t=e.lastIndexOf("](");if(t!==-1&&!n0(e,t)){let r=CS(e,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!n0(e,r)){let n=NS(e,r);if(n!==null)return n}return e},RS=e=>{let t=e.match(tS);if(t){let r=t[2];if(!r||wa.test(r))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},OS=e=>{if(!e||typeof e!="string")return e;let t=e,r=IS(t);return r.endsWith("](streamdown:incomplete-link)")?r:(t=r,t=ES(t),t=hS(t),t=mS(t),t=gS(t),t=xS(t),t=SS(t),t=RS(t),t=_S(t),t)},LS=OS;/**
|
|
322
|
+
* @license lucide-react v0.542.0 - ISC
|
|
323
|
+
*
|
|
324
|
+
* This source code is licensed under the ISC license.
|
|
325
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
+
*/const DS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),MS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),eh=e=>{const t=MS(e);return t.charAt(0).toUpperCase()+t.slice(1)},wg=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),PS=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
327
|
+
* @license lucide-react v0.542.0 - ISC
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the ISC license.
|
|
330
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/var BS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
332
|
+
* @license lucide-react v0.542.0 - ISC
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the ISC license.
|
|
335
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/const FS=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:s,...o},l)=>k.createElement("svg",{ref:l,...BS,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:wg("lucide",a),...!i&&!PS(o)&&{"aria-hidden":"true"},...o},[...s.map(([u,d])=>k.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
|
|
337
|
+
* @license lucide-react v0.542.0 - ISC
|
|
338
|
+
*
|
|
339
|
+
* This source code is licensed under the ISC license.
|
|
340
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/const _n=(e,t)=>{const r=k.forwardRef(({className:n,...a},i)=>k.createElement(FS,{ref:i,iconNode:t,className:wg(`lucide-${DS(eh(e))}`,`lucide-${e}`,n),...a}));return r.displayName=eh(e),r};/**
|
|
342
|
+
* @license lucide-react v0.542.0 - ISC
|
|
343
|
+
*
|
|
344
|
+
* This source code is licensed under the ISC license.
|
|
345
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
+
*/const HS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kg=_n("check",HS);/**
|
|
347
|
+
* @license lucide-react v0.542.0 - ISC
|
|
348
|
+
*
|
|
349
|
+
* This source code is licensed under the ISC license.
|
|
350
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
+
*/const zS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ag=_n("copy",zS);/**
|
|
352
|
+
* @license lucide-react v0.542.0 - ISC
|
|
353
|
+
*
|
|
354
|
+
* This source code is licensed under the ISC license.
|
|
355
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
+
*/const US=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ul=_n("download",US);/**
|
|
357
|
+
* @license lucide-react v0.542.0 - ISC
|
|
358
|
+
*
|
|
359
|
+
* This source code is licensed under the ISC license.
|
|
360
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
+
*/const jS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],$S=_n("loader-circle",jS);/**
|
|
362
|
+
* @license lucide-react v0.542.0 - ISC
|
|
363
|
+
*
|
|
364
|
+
* This source code is licensed under the ISC license.
|
|
365
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
+
*/const qS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],VS=_n("maximize-2",qS);/**
|
|
367
|
+
* @license lucide-react v0.542.0 - ISC
|
|
368
|
+
*
|
|
369
|
+
* This source code is licensed under the ISC license.
|
|
370
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
+
*/const WS=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],GS=_n("rotate-ccw",WS);/**
|
|
372
|
+
* @license lucide-react v0.542.0 - ISC
|
|
373
|
+
*
|
|
374
|
+
* This source code is licensed under the ISC license.
|
|
375
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
+
*/const YS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],XS=_n("x",YS);/**
|
|
377
|
+
* @license lucide-react v0.542.0 - ISC
|
|
378
|
+
*
|
|
379
|
+
* This source code is licensed under the ISC license.
|
|
380
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
+
*/const KS=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],QS=_n("zoom-in",KS);/**
|
|
382
|
+
* @license lucide-react v0.542.0 - ISC
|
|
383
|
+
*
|
|
384
|
+
* This source code is licensed under the ISC license.
|
|
385
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
386
|
+
*/const JS=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ZS=_n("zoom-out",JS),e_=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},t_=(e,t)=>({classGroupId:e,validator:t}),Sg=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Io="-",th=[],r_="arbitrary..",n_=e=>{const t=i_(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return a_(s);const o=s.split(Io),l=o[0]===""&&o.length>1?1:0;return _g(o,l,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const l=n[s],u=r[s];return l?u?e_(u,l):l:u||th}return r[s]||th}}},_g=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],i=r.nextPart.get(a);if(i){const u=_g(e,t+1,i);if(u)return u}const s=r.validators;if(s===null)return;const o=t===0?e.join(Io):e.slice(t).join(Io),l=s.length;for(let u=0;u<l;u++){const d=s[u];if(d.validator(o))return d.classGroupId}},a_=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?r_+n:void 0})(),i_=e=>{const{theme:t,classGroups:r}=e;return s_(r,t)},s_=(e,t)=>{const r=Sg();for(const n in e){const a=e[n];Tc(a,r,n,t)}return r},Tc=(e,t,r,n)=>{const a=e.length;for(let i=0;i<a;i++){const s=e[i];o_(s,t,r,n)}},o_=(e,t,r,n)=>{if(typeof e=="string"){l_(e,t,r);return}if(typeof e=="function"){u_(e,t,r,n);return}c_(e,t,r,n)},l_=(e,t,r)=>{const n=e===""?t:Cg(t,e);n.classGroupId=r},u_=(e,t,r,n)=>{if(d_(e)){Tc(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(t_(r,e))},c_=(e,t,r,n)=>{const a=Object.entries(e),i=a.length;for(let s=0;s<i;s++){const[o,l]=a[s];Tc(l,Cg(t,o),r,n)}},Cg=(e,t)=>{let r=e;const n=t.split(Io),a=n.length;for(let i=0;i<a;i++){const s=n[i];let o=r.nextPart.get(s);o||(o=Sg(),r.nextPart.set(s,o)),r=o}return r},d_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,f_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const a=(i,s)=>{r[i]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return a(i,s),s},set(i,s){i in r?r[i]=s:a(i,s)}}},a0="!",rh=":",h_=[],nh=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),m_=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=a=>{const i=[];let s=0,o=0,l=0,u;const d=a.length;for(let y=0;y<d;y++){const w=a[y];if(s===0&&o===0){if(w===rh){i.push(a.slice(l,y)),l=y+1;continue}if(w==="/"){u=y;continue}}w==="["?s++:w==="]"?s--:w==="("?o++:w===")"&&o--}const c=i.length===0?a:a.slice(l);let f=c,m=!1;c.endsWith(a0)?(f=c.slice(0,-1),m=!0):c.startsWith(a0)&&(f=c.slice(1),m=!0);const b=u&&u>l?u-l:void 0;return nh(i,m,f,b)};if(t){const a=t+rh,i=n;n=s=>s.startsWith(a)?i(s.slice(a.length)):nh(h_,!1,s,void 0,!0)}if(r){const a=n;n=i=>r({className:i,parseClassName:a})}return n},p_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let a=[];for(let i=0;i<r.length;i++){const s=r[i],o=s[0]==="[",l=t.has(s);o||l?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(s)):a.push(s)}return a.length>0&&(a.sort(),n.push(...a)),n}},g_=e=>({cache:f_(e.cacheSize),parseClassName:m_(e),sortModifiers:p_(e),...n_(e)}),b_=/\s+/,y_=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=t,s=[],o=e.trim().split(b_);let l="";for(let u=o.length-1;u>=0;u-=1){const d=o[u],{isExternal:c,modifiers:f,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:y}=r(d);if(c){l=d+(l.length>0?" "+l:l);continue}let w=!!y,E=n(w?b.substring(0,y):b);if(!E){if(!w){l=d+(l.length>0?" "+l:l);continue}if(E=n(b),!E){l=d+(l.length>0?" "+l:l);continue}w=!1}const A=f.length===0?"":f.length===1?f[0]:i(f).join(":"),N=m?A+a0:A,F=N+E;if(s.indexOf(F)>-1)continue;s.push(F);const U=a(E,w);for(let O=0;O<U.length;++O){const W=U[O];s.push(N+W)}l=d+(l.length>0?" "+l:l)}return l},x_=(...e)=>{let t=0,r,n,a="";for(;t<e.length;)(r=e[t++])&&(n=Ng(r))&&(a&&(a+=" "),a+=n);return a},Ng=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ng(e[n]))&&(r&&(r+=" "),r+=t);return r},E_=(e,...t)=>{let r,n,a,i;const s=l=>{const u=t.reduce((d,c)=>c(d),e());return r=g_(u),n=r.cache.get,a=r.cache.set,i=o,o(l)},o=l=>{const u=n(l);if(u)return u;const d=y_(l,r);return a(l,d),d};return i=s,(...l)=>i(x_(...l))},T_=[],Tt=e=>{const t=r=>r[e]||T_;return t.isThemeGetter=!0,t},Ig=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,v_=/^\d+\/\d+$/,w_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,__=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_a=e=>v_.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),Pn=e=>!!e&&Number.isInteger(Number(e)),Ql=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),fn=e=>w_.test(e),C_=()=>!0,N_=e=>k_.test(e)&&!A_.test(e),Og=()=>!1,I_=e=>S_.test(e),R_=e=>__.test(e),O_=e=>!xe(e)&&!Ee(e),L_=e=>ci(e,Mg,Og),xe=e=>Ig.test(e),sa=e=>ci(e,Pg,N_),Jl=e=>ci(e,F_,Fe),ah=e=>ci(e,Lg,Og),D_=e=>ci(e,Dg,R_),Us=e=>ci(e,Bg,I_),Ee=e=>Rg.test(e),yi=e=>di(e,Pg),M_=e=>di(e,H_),ih=e=>di(e,Lg),P_=e=>di(e,Mg),B_=e=>di(e,Dg),js=e=>di(e,Bg,!0),ci=(e,t,r)=>{const n=Ig.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},di=(e,t,r=!1)=>{const n=Rg.exec(e);return n?n[1]?t(n[1]):r:!1},Lg=e=>e==="position"||e==="percentage",Dg=e=>e==="image"||e==="url",Mg=e=>e==="length"||e==="size"||e==="bg-size",Pg=e=>e==="length",F_=e=>e==="number",H_=e=>e==="family-name",Bg=e=>e==="shadow",z_=()=>{const e=Tt("color"),t=Tt("font"),r=Tt("text"),n=Tt("font-weight"),a=Tt("tracking"),i=Tt("leading"),s=Tt("breakpoint"),o=Tt("container"),l=Tt("spacing"),u=Tt("radius"),d=Tt("shadow"),c=Tt("inset-shadow"),f=Tt("text-shadow"),m=Tt("drop-shadow"),b=Tt("blur"),y=Tt("perspective"),w=Tt("aspect"),E=Tt("ease"),A=Tt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...F(),Ee,xe],O=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],X=()=>[Ee,xe,l],Z=()=>[_a,"full","auto",...X()],B=()=>[Pn,"none","subgrid",Ee,xe],re=()=>["auto",{span:["full",Pn,Ee,xe]},Pn,Ee,xe],j=()=>[Pn,"auto",Ee,xe],S=()=>["auto","min","max","fr",Ee,xe],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...X()],V=()=>[_a,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...X()],G=()=>[e,Ee,xe],se=()=>[...F(),ih,ah,{position:[Ee,xe]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],fe=()=>["auto","cover","contain",P_,L_,{size:[Ee,xe]}],ye=()=>[Ql,yi,sa],R=()=>["","none","full",u,Ee,xe],we=()=>["",Fe,yi,sa],Ne=()=>["solid","dashed","dotted","double"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Re=()=>[Fe,Ql,ih,ah],_e=()=>["","none",b,Ee,xe],Ze=()=>["none",Fe,Ee,xe],it=()=>["none",Fe,Ee,xe],At=()=>[Fe,Ee,xe],St=()=>[_a,"full",...X()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fn],breakpoint:[fn],color:[C_],container:[fn],"drop-shadow":[fn],ease:["in","out","in-out"],font:[O_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fn],shadow:[fn],spacing:["px",Fe],text:[fn],"text-shadow":[fn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_a,xe,Ee,w]}],container:["container"],columns:[{columns:[Fe,xe,Ee,o]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Pn,"auto",Ee,xe]}],basis:[{basis:[_a,"full","auto",o,...X()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,_a,"auto","initial","none",xe]}],grow:[{grow:["",Fe,Ee,xe]}],shrink:[{shrink:["",Fe,Ee,xe]}],order:[{order:[Pn,"first","last","none",Ee,xe]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:X()}],"gap-x":[{"gap-x":X()}],"gap-y":[{"gap-y":X()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:X()}],px:[{px:X()}],py:[{py:X()}],ps:[{ps:X()}],pe:[{pe:X()}],pt:[{pt:X()}],pr:[{pr:X()}],pb:[{pb:X()}],pl:[{pl:X()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":X()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":X()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[o,"screen",...V()]}],"min-w":[{"min-w":[o,"screen","none",...V()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,yi,sa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ee,Jl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ql,xe]}],"font-family":[{font:[M_,xe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Ee,xe]}],"line-clamp":[{"line-clamp":[Fe,"none",Ee,Jl]}],leading:[{leading:[i,...X()]}],"list-image":[{"list-image":["none",Ee,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",Ee,sa]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[Fe,"auto",Ee,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pn,Ee,xe],radial:["",Ee,xe],conic:[Pn,Ee,xe]},B_,D_]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ne(),"hidden","none"]}],"divide-style":[{divide:[...Ne(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...Ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,Ee,xe]}],"outline-w":[{outline:["",Fe,yi,sa]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",d,js,Us]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",c,js,Us]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[Fe,sa]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",f,js,Us]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[Fe,Ee,xe]}],"mix-blend":[{"mix-blend":[...He(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":He()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Re()}],"mask-image-linear-to-pos":[{"mask-linear-to":Re()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":Re()}],"mask-image-t-to-pos":[{"mask-t-to":Re()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":Re()}],"mask-image-r-to-pos":[{"mask-r-to":Re()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":Re()}],"mask-image-b-to-pos":[{"mask-b-to":Re()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":Re()}],"mask-image-l-to-pos":[{"mask-l-to":Re()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":Re()}],"mask-image-x-to-pos":[{"mask-x-to":Re()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":Re()}],"mask-image-y-to-pos":[{"mask-y-to":Re()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[Ee,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Re()}],"mask-image-radial-to-pos":[{"mask-radial-to":Re()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Re()}],"mask-image-conic-to-pos":[{"mask-conic-to":Re()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,xe]}],filter:[{filter:["","none",Ee,xe]}],blur:[{blur:_e()}],brightness:[{brightness:[Fe,Ee,xe]}],contrast:[{contrast:[Fe,Ee,xe]}],"drop-shadow":[{"drop-shadow":["","none",m,js,Us]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",Fe,Ee,xe]}],"hue-rotate":[{"hue-rotate":[Fe,Ee,xe]}],invert:[{invert:["",Fe,Ee,xe]}],saturate:[{saturate:[Fe,Ee,xe]}],sepia:[{sepia:["",Fe,Ee,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,xe]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,Ee,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,Ee,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,Ee,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,Ee,xe]}],"backdrop-invert":[{"backdrop-invert":["",Fe,Ee,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,Ee,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,Ee,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,Ee,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":X()}],"border-spacing-x":[{"border-spacing-x":X()}],"border-spacing-y":[{"border-spacing-y":X()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",Ee,xe]}],ease:[{ease:["linear","initial",E,Ee,xe]}],delay:[{delay:[Fe,Ee,xe]}],animate:[{animate:["none",A,Ee,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Ee,xe]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:it()}],"scale-x":[{"scale-x":it()}],"scale-y":[{"scale-y":it()}],"scale-z":[{"scale-z":it()}],"scale-3d":["scale-3d"],skew:[{skew:At()}],"skew-x":[{"skew-x":At()}],"skew-y":[{"skew-y":At()}],transform:[{transform:[Ee,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee,xe]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[Fe,yi,sa,Jl]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},U_=E_(z_),j_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q_={};function sh(e,t){return(q_.jsx?$_:j_).test(e)}const V_=/[ \t\n\f\r]/g;function W_(e){return typeof e=="object"?e.type==="text"?oh(e.value):!1:oh(e)}function oh(e){return e.replace(V_,"")===""}var Ca={},Zl,lh;function G_(){if(lh)return Zl;lh=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
387
|
+
`,u="/",d="*",c="",f="comment",m="declaration";Zl=function(y,w){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];w=w||{};var E=1,A=1;function N(S){var H=S.match(t);H&&(E+=H.length);var $=S.lastIndexOf(l);A=~$?S.length-$:A+S.length}function F(){var S={line:E,column:A};return function(H){return H.position=new U(S),X(),H}}function U(S){this.start=S,this.end={line:E,column:A},this.source=w.source}U.prototype.content=y;function O(S){var H=new Error(w.source+":"+E+":"+A+": "+S);if(H.reason=S,H.filename=w.source,H.line=E,H.column=A,H.source=y,!w.silent)throw H}function W(S){var H=S.exec(y);if(H){var $=H[0];return N($),y=y.slice($.length),H}}function X(){W(r)}function Z(S){var H;for(S=S||[];H=B();)H!==!1&&S.push(H);return S}function B(){var S=F();if(!(u!=y.charAt(0)||d!=y.charAt(1))){for(var H=2;c!=y.charAt(H)&&(d!=y.charAt(H)||u!=y.charAt(H+1));)++H;if(H+=2,c===y.charAt(H-1))return O("End of comment missing");var $=y.slice(2,H-2);return A+=2,N($),y=y.slice(H),A+=2,S({type:f,comment:$})}}function re(){var S=F(),H=W(n);if(H){if(B(),!W(a))return O("property missing ':'");var $=W(i),q=S({type:m,property:b(H[0].replace(e,c)),value:$?b($[0].replace(e,c)):c});return W(s),q}}function j(){var S=[];Z(S);for(var H;H=re();)H!==!1&&(S.push(H),Z(S));return S}return X(),j()};function b(y){return y?y.replace(o,c):c}return Zl}var uh;function Y_(){if(uh)return Ca;uh=1;var e=Ca&&Ca.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.default=r;var t=e(G_());function r(n,a){var i=null;if(!n||typeof n!="string")return i;var s=(0,t.default)(n),o=typeof a=="function";return s.forEach(function(l){if(l.type==="declaration"){var u=l.property,d=l.value;o?a(u,d,l):d&&(i=i||{},i[u]=d)}}),i}return Ca}var xi={},ch;function X_(){if(ch)return xi;ch=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(u){return!u||r.test(u)||e.test(u)},s=function(u,d){return d.toUpperCase()},o=function(u,d){return"".concat(d,"-")},l=function(u,d){return d===void 0&&(d={}),i(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(a,o):u=u.replace(n,o),u.replace(t,s))};return xi.camelCase=l,xi}var Ei,dh;function K_(){if(dh)return Ei;dh=1;var e=Ei&&Ei.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Y_()),r=X_();function n(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,l){o&&l&&(s[(0,r.camelCase)(o,i)]=l)}),s}return n.default=n,Ei=n,Ei}var Q_=K_();const J_=d1(Q_);function $i(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fh(e.position):"start"in e||"end"in e?fh(e):"line"in e||"column"in e?i0(e):""}function i0(e){return hh(e&&e.line)+":"+hh(e&&e.column)}function fh(e){return i0(e&&e.start)+"-"+i0(e&&e.end)}function hh(e){return e&&typeof e=="number"?e:1}class Ht extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",i={},s=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=$i(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ht.prototype.file="";Ht.prototype.name="";Ht.prototype.reason="";Ht.prototype.message="";Ht.prototype.stack="";Ht.prototype.column=void 0;Ht.prototype.line=void 0;Ht.prototype.ancestors=void 0;Ht.prototype.cause=void 0;Ht.prototype.fatal=void 0;Ht.prototype.place=void 0;Ht.prototype.ruleId=void 0;Ht.prototype.source=void 0;const vc={}.hasOwnProperty,Z_=new Map,eC=/[A-Z]/g,tC=new Set(["table","tbody","thead","tfoot","tr"]),rC=new Set(["td","th"]),Fg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=dC(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=cC(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ti:Go,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Hg(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Hg(e,t,r){if(t.type==="element")return aC(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return iC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return oC(e,t,r);if(t.type==="mdxjsEsm")return sC(e,t);if(t.type==="root")return lC(e,t,r);if(t.type==="text")return uC(e,t)}function aC(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=ti,e.schema=a),e.ancestors.push(t);const i=Ug(e,t.tagName,!1),s=fC(e,t);let o=kc(e,t);return tC.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!W_(l):!0})),zg(e,s,i,t),wc(s,o),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function iC(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ts(e,t.position)}function sC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ts(e,t.position)}function oC(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=ti,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Ug(e,t.name,!0),s=hC(e,t),o=kc(e,t);return zg(e,s,i,t),wc(s,o),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function lC(e,t,r){const n={};return wc(n,kc(e,t)),e.create(t,e.Fragment,n,r)}function uC(e,t){return t.value}function zg(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function wc(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function cC(e,t,r){return n;function n(a,i,s,o){const u=Array.isArray(s.children)?r:t;return o?u(i,s,o):u(i,s)}}function dC(e,t){return r;function r(n,a,i,s){const o=Array.isArray(i.children),l=on(n);return t(a,i,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function fC(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&vc.call(t.properties,a)){const i=mC(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&rC.has(t.tagName)?n=o:r[s]=o}}if(n){const i=r.style||(r.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function hC(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else ts(e,t.position);else{const a=n.name;let i;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const o=n.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else ts(e,t.position);else i=n.value===null?!0:n.value;r[a]=i}return r}function kc(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:Z_;for(;++n<t.children.length;){const i=t.children[n];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=Hg(e,i,s);o!==void 0&&r.push(o)}return r}function mC(e,t,r){const n=P0(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?Em(r):Tm(r)),n.property==="style"){let a=typeof r=="object"?r:pC(e,String(r));return e.stylePropertyNameCase==="css"&&(a=gC(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?R8[n.property]||n.property:n.attribute,r]}}function pC(e,t){try{return J_(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new Ht("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Fg+"#cannot-parse-style-attribute",a}}function Ug(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=sh(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}n=s}else n=sh(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return vc.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);ts(e)}function ts(e,t){const r=new Ht("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Fg+"#cannot-handle-mdx-estrees-without-createevaluater",r}function gC(e){const t={};let r;for(r in e)vc.call(e,r)&&(t[bC(r)]=e[r]);return t}function bC(e){let t=e.replace(eC,yC);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function yC(e){return"-"+e.toLowerCase()}const xC={tokenize:EC};function EC(e){const t=e.attempt(this.parser.constructs.contentInitial,n,a);let r;return t;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ue(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ve(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const TC={tokenize:vC},mh={tokenize:wC};function vC(e){const t=this,r=[];let n=0,a,i,s;return o;function o(N){if(n<r.length){const F=r[n];return t.containerState=F[1],e.attempt(F[0].continuation,l,u)(N)}return u(N)}function l(N){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&A();const F=t.events.length;let U=F,O;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){O=t.events[U][1].end;break}E(n);let W=F;for(;W<t.events.length;)t.events[W][1].end={...O},W++;return Lt(t.events,U+1,0,t.events.slice(F)),t.events.length=W,u(N)}return o(N)}function u(N){if(n===r.length){if(!a)return f(N);if(a.currentConstruct&&a.currentConstruct.concrete)return b(N);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(mh,d,c)(N)}function d(N){return a&&A(),E(n),f(N)}function c(N){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,b(N)}function f(N){return t.containerState={},e.attempt(mh,m,b)(N)}function m(N){return n++,r.push([t.currentConstruct,t.containerState]),f(N)}function b(N){if(N===null){a&&A(),E(0),e.consume(N);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),y(N)}function y(N){if(N===null){w(e.exit("chunkFlow"),!0),E(0),e.consume(N);return}return ve(N)?(e.consume(N),w(e.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(e.consume(N),y)}function w(N,F){const U=t.sliceStream(N);if(F&&U.push(null),N.previous=i,i&&(i.next=N),i=N,a.defineSkip(N.start),a.write(U),t.parser.lazy[N.start.line]){let O=a.events.length;for(;O--;)if(a.events[O][1].start.offset<s&&(!a.events[O][1].end||a.events[O][1].end.offset>s))return;const W=t.events.length;let X=W,Z,B;for(;X--;)if(t.events[X][0]==="exit"&&t.events[X][1].type==="chunkFlow"){if(Z){B=t.events[X][1].end;break}Z=!0}for(E(n),O=W;O<t.events.length;)t.events[O][1].end={...B},O++;Lt(t.events,X+1,0,t.events.slice(W)),t.events.length=O}}function E(N){let F=r.length;for(;F-- >N;){const U=r[F];t.containerState=U[1],U[0].exit.call(t,e)}r.length=N}function A(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function wC(e,t,r){return Ue(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const kC={tokenize:AC};function AC(e){const t=this,r=e.attempt(gs,n,e.attempt(this.parser.constructs.flowInitial,a,Ue(e,e.attempt(this.parser.constructs.flow,a,e.attempt(vk,a)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const SC={resolveAll:$g()},_C=jg("string"),CC=jg("text");function jg(e){return{resolveAll:$g(e==="text"?NC:void 0),tokenize:t};function t(r){const n=this,a=this.parser.constructs[e],i=r.attempt(a,s,o);return s;function s(d){return u(d)?i(d):o(d)}function o(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),l}function l(d){return u(d)?(r.exit("data"),i(d)):(r.consume(d),l)}function u(d){if(d===null)return!0;const c=a[d];let f=-1;if(c)for(;++f<c.length;){const m=c[f];if(!m.previous||m.previous.call(n,n.previous))return!0}return!1}}}function $g(e){return t;function t(r,n){let a=-1,i;for(;++a<=r.length;)i===void 0?r[a]&&r[a][1].type==="data"&&(i=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==i+2&&(r[i][1].end=r[a-1][1].end,r.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(r,n):r}}function NC(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],a=t.sliceStream(n);let i=a.length,s=-1,o=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const u={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:n.start._bufferIndex+s,_index:n.start._index+i,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const IC={42:Jt,43:Jt,45:Jt,48:Jt,49:Jt,50:Jt,51:Jt,52:Jt,53:Jt,54:Jt,55:Jt,56:Jt,57:Jt,62:mg},RC={91:_k},OC={[-2]:Xl,[-1]:Xl,32:Xl},LC={35:Lk,42:lo,45:[Qf,lo],60:Bk,61:Qf,95:lo,96:Xf,126:Xf},DC={38:gg,92:pg},MC={[-5]:Kl,[-4]:Kl,[-3]:Kl,33:tA,38:gg,42:t0,60:[nk,qk],91:nA,92:[Rk,pg],93:Ec,95:t0,96:gk},PC={null:[t0,SC]},BC={null:[42,95]},FC={null:[]},HC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:BC,contentInitial:RC,disable:FC,document:IC,flow:LC,flowInitial:OC,insideSpan:PC,string:DC,text:MC},Symbol.toStringTag,{value:"Module"}));function zC(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},i=[];let s=[],o=[];const l={attempt:W(U),check:W(O),consume:A,enter:N,exit:F,interrupt:W(O,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:b,parser:e,previous:null,sliceSerialize:f,sliceStream:m,write:c};let d=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function c(re){return s=Ot(s,re),w(),s[s.length-1]!==null?[]:(X(t,0),u.events=li(i,u.events,u),u.events)}function f(re,j){return jC(m(re),j)}function m(re){return UC(s,re)}function b(){const{_bufferIndex:re,_index:j,line:S,column:H,offset:$}=n;return{_bufferIndex:re,_index:j,line:S,column:H,offset:$}}function y(re){a[re.line]=re.column,B()}function w(){let re;for(;n._index<s.length;){const j=s[n._index];if(typeof j=="string")for(re=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===re&&n._bufferIndex<j.length;)E(j.charCodeAt(n._bufferIndex));else E(j)}}function E(re){d=d(re)}function A(re){ve(re)?(n.line++,n.column=1,n.offset+=re===-3?2:1,B()):re!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=re}function N(re,j){const S=j||{};return S.type=re,S.start=b(),u.events.push(["enter",S,u]),o.push(S),S}function F(re){const j=o.pop();return j.end=b(),u.events.push(["exit",j,u]),j}function U(re,j){X(re,j.from)}function O(re,j){j.restore()}function W(re,j){return S;function S(H,$,q){let V,G,se,C;return Array.isArray(H)?ye(H):"tokenize"in H?ye([H]):fe(H);function fe(He){return Re;function Re(_e){const Ze=_e!==null&&He[_e],it=_e!==null&&He.null,At=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(it)?it:it?[it]:[]];return ye(At)(_e)}}function ye(He){return V=He,G=0,He.length===0?q:R(He[G])}function R(He){return Re;function Re(_e){return C=Z(),se=He,He.partial||(u.currentConstruct=He),He.name&&u.parser.constructs.disable.null.includes(He.name)?Ne():He.tokenize.call(j?Object.assign(Object.create(u),j):u,l,we,Ne)(_e)}}function we(He){return re(se,C),$}function Ne(He){return C.restore(),++G<V.length?R(V[G]):q}}}function X(re,j){re.resolveAll&&!i.includes(re)&&i.push(re),re.resolve&&Lt(u.events,j,u.events.length-j,re.resolve(u.events.slice(j),u)),re.resolveTo&&(u.events=re.resolveTo(u.events,u))}function Z(){const re=b(),j=u.previous,S=u.currentConstruct,H=u.events.length,$=Array.from(o);return{from:H,restore:q};function q(){n=re,u.previous=j,u.currentConstruct=S,u.events.length=H,o=$,B()}}function B(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function UC(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(r===a)s=[e[r].slice(n,i)];else{if(s=e.slice(r,a),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function jC(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const i=e[r];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
388
|
+
`;break}case-3:{s=`\r
|
|
389
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,n.push(s)}return n.join("")}function $C(e){const n={constructs:ig([HC,...(e||{}).extensions||[]]),content:a(xC),defined:[],document:a(TC),flow:a(kC),lazy:{},string:a(_C),text:a(CC)};return n;function a(i){return s;function s(o){return zC(n,i,o)}}}function qC(e){for(;!bg(e););return e}const ph=/[\0\t\n\r]/g;function VC(){let e=1,t="",r=!0,n;return a;function a(i,s,o){const l=[];let u,d,c,f,m;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),c=0,t="",r&&(i.charCodeAt(0)===65279&&c++,r=void 0);c<i.length;){if(ph.lastIndex=c,u=ph.exec(i),f=u&&u.index!==void 0?u.index:i.length,m=i.charCodeAt(f),!u){t=i.slice(c);break}if(m===10&&c===f&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),c<f&&(l.push(i.slice(c,f)),e+=f-c),m){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}c=f+1}return o&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const qg={}.hasOwnProperty;function WC(e,t,r){return typeof t!="string"&&(r=t,t=void 0),GC(r)(qC($C(r).document().write(VC()(e,t,!0))))}function GC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ct),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:i(un),blockQuote:i(it),characterEscape:Z,characterReference:Z,codeFenced:i(At),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(At,s),codeText:i(St,s),codeTextData:Z,data:Z,codeFlowValue:Z,definition:i(_r),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(br),hardBreakEscape:i(Hr),hardBreakTrailing:i(Hr),htmlFlow:i(Yt,s),htmlFlowData:Z,htmlText:i(Yt,s),htmlTextData:Z,image:i(Cr),label:s,link:i(ct),listItem:i(bl),listItemValue:f,listOrdered:i(vs,c),listUnordered:i(vs),paragraph:i(Ut),reference:R,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(un),strong:i(Cn),thematicBreak:i(xl)},exit:{atxHeading:l(),atxHeadingSequence:U,autolink:l(),autolinkEmail:Ze,autolinkProtocol:_e,blockQuote:l(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:He,characterReference:Re,codeFenced:l(w),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:B,codeIndented:l(E),codeText:l($),codeTextData:B,data:B,definition:l(),definitionDestinationString:F,definitionLabelString:A,definitionTitleString:N,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(S),htmlFlowData:B,htmlText:l(H),htmlTextData:B,image:l(V),label:se,labelText:G,lineEnding:re,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:we,resourceDestinationString:C,resourceTitleString:fe,resource:ye,setextHeading:l(X),setextHeadingLineSequence:W,setextHeadingText:O,strong:l(),thematicBreak:l()}};Vg(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(te){let me={type:"root",children:[]};const Ce={stack:[me],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:d,data:r},Be=[];let Ve=-1;for(;++Ve<te.length;)if(te[Ve][1].type==="listOrdered"||te[Ve][1].type==="listUnordered")if(te[Ve][0]==="enter")Be.push(Ve);else{const Xt=Be.pop();Ve=a(te,Xt,Ve)}for(Ve=-1;++Ve<te.length;){const Xt=t[te[Ve][0]];qg.call(Xt,te[Ve][1].type)&&Xt[te[Ve][1].type].call(Object.assign({sliceSerialize:te[Ve][2].sliceSerialize},Ce),te[Ve][1])}if(Ce.tokenStack.length>0){const Xt=Ce.tokenStack[Ce.tokenStack.length-1];(Xt[1]||gh).call(Ce,void 0,Xt[0])}for(me.position={start:Bn(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:Bn(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<t.transforms.length;)me=t.transforms[Ve](me)||me;return me}function a(te,me,Ce){let Be=me-1,Ve=-1,Xt=!1,Kt,Nr,ea,Nn;for(;++Be<=Ce;){const Dt=te[Be];switch(Dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Dt[0]==="enter"?Ve++:Ve--,Nn=void 0;break}case"lineEndingBlank":{Dt[0]==="enter"&&(Kt&&!Nn&&!Ve&&!ea&&(ea=Be),Nn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nn=void 0}if(!Ve&&Dt[0]==="enter"&&Dt[1].type==="listItemPrefix"||Ve===-1&&Dt[0]==="exit"&&(Dt[1].type==="listUnordered"||Dt[1].type==="listOrdered")){if(Kt){let In=Be;for(Nr=void 0;In--;){const ir=te[In];if(ir[1].type==="lineEnding"||ir[1].type==="lineEndingBlank"){if(ir[0]==="exit")continue;Nr&&(te[Nr][1].type="lineEndingBlank",Xt=!0),ir[1].type="lineEnding",Nr=In}else if(!(ir[1].type==="linePrefix"||ir[1].type==="blockQuotePrefix"||ir[1].type==="blockQuotePrefixWhitespace"||ir[1].type==="blockQuoteMarker"||ir[1].type==="listItemIndent"))break}ea&&(!Nr||ea<Nr)&&(Kt._spread=!0),Kt.end=Object.assign({},Nr?te[Nr][1].start:Dt[1].end),te.splice(Nr||Be,0,["exit",Kt,Dt[2]]),Be++,Ce++}if(Dt[1].type==="listItemPrefix"){const In={type:"listItem",_spread:!1,start:Object.assign({},Dt[1].start),end:void 0};Kt=In,te.splice(Be,0,["enter",In,Dt[2]]),Be++,Ce++,ea=void 0,Nn=!0}}}return te[me][1]._spread=Xt,Ce}function i(te,me){return Ce;function Ce(Be){o.call(this,te(Be),Be),me&&me.call(this,Be)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(te,me,Ce){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([me,Ce||void 0]),te.position={start:Bn(me.start),end:void 0}}function l(te){return me;function me(Ce){te&&te.call(this,Ce),u.call(this,Ce)}}function u(te,me){const Ce=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==te.type&&(me?me.call(this,te,Be[0]):(Be[1]||gh).call(this,te,Be[0]));else throw new Error("Cannot close `"+te.type+"` ("+$i({start:te.start,end:te.end})+"): it’s not open");Ce.position.end=Bn(te.end)}function d(){return gc(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function f(te){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function m(){const te=this.resume(),me=this.stack[this.stack.length-1];me.lang=te}function b(){const te=this.resume(),me=this.stack[this.stack.length-1];me.meta=te}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const te=this.resume(),me=this.stack[this.stack.length-1];me.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const te=this.resume(),me=this.stack[this.stack.length-1];me.value=te.replace(/(\r?\n|\r)$/g,"")}function A(te){const me=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=me,Ce.identifier=Dr(this.sliceSerialize(te)).toLowerCase()}function N(){const te=this.resume(),me=this.stack[this.stack.length-1];me.title=te}function F(){const te=this.resume(),me=this.stack[this.stack.length-1];me.url=te}function U(te){const me=this.stack[this.stack.length-1];if(!me.depth){const Ce=this.sliceSerialize(te).length;me.depth=Ce}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function W(te){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(te){const Ce=this.stack[this.stack.length-1].children;let Be=Ce[Ce.length-1];(!Be||Be.type!=="text")&&(Be=yl(),Be.position={start:Bn(te.start),end:void 0},Ce.push(Be)),this.stack.push(Be)}function B(te){const me=this.stack.pop();me.value+=this.sliceSerialize(te),me.position.end=Bn(te.end)}function re(te){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=me.children[me.children.length-1];Ce.position.end=Bn(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(me.type)&&(Z.call(this,te),B.call(this,te))}function j(){this.data.atHardBreak=!0}function S(){const te=this.resume(),me=this.stack[this.stack.length-1];me.value=te}function H(){const te=this.resume(),me=this.stack[this.stack.length-1];me.value=te}function $(){const te=this.resume(),me=this.stack[this.stack.length-1];me.value=te}function q(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=me,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function V(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=me,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function G(te){const me=this.sliceSerialize(te),Ce=this.stack[this.stack.length-2];Ce.label=_w(me),Ce.identifier=Dr(me).toLowerCase()}function se(){const te=this.stack[this.stack.length-1],me=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Be=te.children;Ce.children=Be}else Ce.alt=me}function C(){const te=this.resume(),me=this.stack[this.stack.length-1];me.url=te}function fe(){const te=this.resume(),me=this.stack[this.stack.length-1];me.title=te}function ye(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function we(te){const me=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=me,Ce.identifier=Dr(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function Ne(te){this.data.characterReferenceType=te.type}function He(te){const me=this.sliceSerialize(te),Ce=this.data.characterReferenceType;let Be;Ce?(Be=ag(me,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=yc(me);const Ve=this.stack[this.stack.length-1];Ve.value+=Be}function Re(te){const me=this.stack.pop();me.position.end=Bn(te.end)}function _e(te){B.call(this,te);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(te)}function Ze(te){B.call(this,te);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(te)}function it(){return{type:"blockquote",children:[]}}function At(){return{type:"code",lang:null,meta:null,value:""}}function St(){return{type:"inlineCode",value:""}}function _r(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function br(){return{type:"emphasis",children:[]}}function un(){return{type:"heading",depth:0,children:[]}}function Hr(){return{type:"break"}}function Yt(){return{type:"html",value:""}}function Cr(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function vs(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function bl(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function Ut(){return{type:"paragraph",children:[]}}function Cn(){return{type:"strong",children:[]}}function yl(){return{type:"text",value:""}}function xl(){return{type:"thematicBreak"}}}function Bn(e){return{line:e.line,column:e.column,offset:e.offset}}function Vg(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Vg(e,n):YC(e,n)}}function YC(e,t){let r;for(r in t)if(qg.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function gh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$i({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$i({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$i({start:t.start,end:t.end})+") is still open")}function XC(e){const t=this;t.parser=r;function r(n){return WC(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function KC(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function QC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
390
|
+
`}]}function JC(e,t){const r=t.value?t.value+`
|
|
391
|
+
`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function ZC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function eN(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tN(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=ui(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let s,o=e.footnoteCounts.get(n);o===void 0?(o=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(n,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function rN(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nN(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Wg(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=n:a.push({type:"text",value:n}),a}function aN(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Wg(e,t);const a={src:ui(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function iN(e,t){const r={src:ui(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function sN(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function oN(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Wg(e,t);const a={href:ui(n.url||"")};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function lN(e,t){const r={href:ui(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uN(e,t,r){const n=e.all(t),a=r?cN(r):Gg(t),i={},s=[];if(typeof t.checked=="boolean"){const d=n[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},n.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const d=n[o];(a||o!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
|
|
392
|
+
`}),d.type==="element"&&d.tagName==="p"&&!a?s.push(...d.children):s.push(d)}const l=n[n.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
393
|
+
`});const u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)}function cN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Gg(r[n])}return t}function Gg(e){const t=e.spread;return t??e.children.length>1}function dN(e,t){const r={},n=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<n.length;){const s=n[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function fN(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hN(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function mN(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pN(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),a.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=on(t.children[1]),l=sl(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function gN(e,t,r){const n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const c=t.children[l],f={},m=s?s[l]:void 0;m&&(f.align=m);let b={type:"element",tagName:i,properties:f,children:[]};c&&(b.children=e.all(c),e.patch(c,b),b=e.applyData(c,b)),u.push(b)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function bN(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const bh=9,yh=32;function yN(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const i=[];for(;n;)i.push(xh(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return i.push(xh(t.slice(a),a>0,!1)),i.join("")}function xh(e,t,r){let n=0,a=e.length;if(t){let i=e.codePointAt(n);for(;i===bh||i===yh;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(a-1);for(;i===bh||i===yh;)a--,i=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function xN(e,t){const r={type:"text",value:yN(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function EN(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const TN={blockquote:KC,break:QC,code:JC,delete:ZC,emphasis:eN,footnoteReference:tN,heading:rN,html:nN,imageReference:aN,image:iN,inlineCode:sN,linkReference:oN,link:lN,listItem:uN,list:dN,paragraph:fN,root:hN,strong:mN,table:pN,tableCell:bN,tableRow:gN,text:xN,thematicBreak:EN,toml:$s,yaml:$s,definition:$s,footnoteDefinition:$s};function $s(){}function vN(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function wN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kN(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||vN,n=e.options.footnoteBackLabel||wN,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const d=e.all(u),c=String(u.identifier).toUpperCase(),f=ui(c.toLowerCase());let m=0;const b=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++m<=y;){b.length>0&&b.push({type:"text",value:" "});let A=typeof r=="string"?r:r(l,m);typeof A=="string"&&(A={type:"text",value:A}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,m),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const A=w.children[w.children.length-1];A&&A.type==="text"?A.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else d.push(...b);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,E),o.push(E)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...fa(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
394
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
395
|
+
`}]}}const s0={}.hasOwnProperty,AN={};function SN(e,t){const r=t||AN,n=new Map,a=new Map,i=new Map,s={...TN,...r.handlers},o={all:u,applyData:CN,definitionById:n,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:r,patch:_N,wrap:IN};return Va(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?n:a,f=String(d.identifier).toUpperCase();c.has(f)||c.set(f,d)}}),o;function l(d,c){const f=d.type,m=o.handlers[f];if(s0.call(o.handlers,f)&&m)return m(o,d,c);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in d){const{children:y,...w}=d,E=fa(w);return E.children=o.all(d),E}return fa(d)}return(o.options.unknownHandler||NN)(o,d,c)}function u(d){const c=[];if("children"in d){const f=d.children;let m=-1;for(;++m<f.length;){const b=o.one(f[m],d);if(b){if(m&&f[m-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Eh(b.value)),!Array.isArray(b)&&b.type==="element")){const y=b.children[0];y&&y.type==="text"&&(y.value=Eh(y.value))}Array.isArray(b)?c.push(...b):c.push(b)}}}return c}}function _N(e,t){e.position&&(t.position=S2(e))}function CN(e,t){let r=t;if(e&&e.data){const n=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&i&&Object.assign(r.properties,fa(i)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function NN(e,t){const r=t.data||{},n="value"in t&&!(s0.call(r,"hProperties")||s0.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IN(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
|
396
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
397
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
398
|
+
`}),r}function Eh(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Th(e,t){const r=SN(e,t),n=r.one(e,void 0),a=kN(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
399
|
+
`},a),i}function RN(e,t){return e&&"run"in e?async function(r,n){const a=Th(r,{file:n,...t});await e.run(a,n)}:function(r,n){return Th(r,{file:n,...e||t})}}function vh(e){if(e)throw e}var eu,wh;function ON(){if(wh)return eu;wh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},i=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!c)return!1;var f;for(f in u);return typeof f>"u"||e.call(u,f)},s=function(u,d){r&&d.name==="__proto__"?r(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},o=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(n)return n(u,d).value}else return;return u[d]};return eu=function l(){var u,d,c,f,m,b,y=arguments[0],w=1,E=arguments.length,A=!1;for(typeof y=="boolean"&&(A=y,y=arguments[1]||{},w=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});w<E;++w)if(u=arguments[w],u!=null)for(d in u)c=o(y,d),f=o(u,d),y!==f&&(A&&f&&(i(f)||(m=a(f)))?(m?(m=!1,b=c&&a(c)?c:[]):b=c&&i(c)?c:{},s(y,{name:d,newValue:l(A,b,f)})):typeof f<"u"&&s(y,{name:d,newValue:f}));return y},eu}var LN=ON();const tu=d1(LN);function o0(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 DN(){const e=[],t={run:r,use:n};return t;function r(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...u){const d=e[++i];let c=-1;if(l){s(l);return}for(;++c<a.length;)(u[c]===null||u[c]===void 0)&&(u[c]=a[c]);a=u,d?MN(d,o)(...u):s(null,...u)}}function n(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function MN(e,t){let r;return n;function n(...s){const o=e.length>s.length;let l;o&&s.push(a);try{l=e.apply(this,s)}catch(u){const d=u;if(o&&r)throw d;return a(d)}o||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(s,...o){r||(r=!0,t(s,...o))}function i(s){a(null,s)}}const qr={basename:PN,dirname:BN,extname:FN,join:HN,sep:"/"};function PN(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bs(e);let r=0,n=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(n=a):(o=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function BN(e){if(bs(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function FN(e){bs(e);let t=e.length,r=-1,n=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||r<0||i===0||i===1&&a===r-1&&a===n+1?"":e.slice(a,r)}function HN(...e){let t=-1,r;for(;++t<e.length;)bs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":zN(r)}function zN(e){bs(e);const t=e.codePointAt(0)===47;let r=UN(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function UN(e,t){let r="",n=0,a=-1,i=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),a=s,i=0;continue}}else if(r.length>0){r="",n=0,a=s,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),n=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return r}function bs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const jN={cwd:$N};function $N(){return"/"}function l0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qN(e){if(typeof e=="string")e=new URL(e);else if(!l0(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 VN(e)}function VN(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===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 ru=["history","path","basename","stem","extname","dirname"];class WN{constructor(t){let r;t?l0(t)?r={path:t}:typeof t=="string"||GN(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":jN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ru.length;){const i=ru[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let a;for(a in r)ru.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?qr.basename(this.path):void 0}set basename(t){au(t,"basename"),nu(t,"basename"),this.path=qr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qr.dirname(this.path):void 0}set dirname(t){kh(this.basename,"dirname"),this.path=qr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qr.extname(this.path):void 0}set extname(t){if(nu(t,"extname"),kh(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=qr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){l0(t)&&(t=qN(t)),au(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qr.basename(this.path,this.extname):void 0}set stem(t){au(t,"stem"),nu(t,"stem"),this.path=qr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const a=this.message(t,r,n);throw a.fatal=!0,a}info(t,r,n){const a=this.message(t,r,n);return a.fatal=void 0,a}message(t,r,n){const a=new Ht(t,r,n);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 nu(e,t){if(e&&e.includes(qr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qr.sep+"`")}function au(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function GN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const YN=(function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i}),XN={}.hasOwnProperty;class Ac extends YN{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=DN()}copy(){const t=new Ac;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(tu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(ou("data",this.frozen),this.namespace[t]=r,this):XN.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ou("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[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const a=r.call(t,...n);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=qs(t),n=this.parser||this.Parser;return iu("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),iu("process",this.parser||this.Parser),su("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(i,s){const o=qs(t),l=n.parse(o);n.run(l,o,function(d,c,f){if(d||!c||!f)return u(d);const m=c,b=n.stringify(m,f);JN(b)?f.value=b:f.result=b,u(d,f)});function u(d,c){d||!c?s(d):i?i(c):r(void 0,c)}}}processSync(t){let r=!1,n;return this.freeze(),iu("processSync",this.parser||this.Parser),su("processSync",this.compiler||this.Compiler),this.process(t,a),Sh("processSync","process",r),n;function a(i,s){r=!0,vh(i),n=s}}run(t,r,n){Ah(t),this.freeze();const a=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(s,o){const l=qs(r);a.run(t,l,u);function u(d,c,f){const m=c||t;d?o(d):s?s(m):n(void 0,m,f)}}}runSync(t,r){let n=!1,a;return this.run(t,r,i),Sh("runSync","run",n),a;function i(s,o){vh(s),a=o,n=!0}}stringify(t,r){this.freeze();const n=qs(r),a=this.compiler||this.Compiler;return su("stringify",a),Ah(t),a(t,n)}use(t,...r){const n=this.attachers,a=this.namespace;if(ou("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...c]=u;l(d,c)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(a.settings=tu(!0,a.settings,u.settings))}function o(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const c=u[d];i(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let c=-1,f=-1;for(;++c<n.length;)if(n[c][0]===u){f=c;break}if(f===-1)n.push([u,...d]);else if(d.length>0){let[m,...b]=d;const y=n[f][1];o0(y)&&o0(m)&&(m=tu(!0,y,m)),n[f]=[u,m,...b]}}}}const KN=new Ac().freeze();function iu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function su(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ou(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 Ah(e){if(!o0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sh(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qs(e){return QN(e)?e:new WN(e)}function QN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function JN(e){return typeof e=="string"||ZN(e)}function ZN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Sc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ka=Sc();function Yg(e){ka=e}var qi={exec:()=>null};function Xe(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Wt.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,t)};return n}var Wt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},eI=/^(?:[ \t]*(?:\n|$))+/,tI=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rI=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ys=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nI=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_c=/(?:[*+-]|\d{1,9}[.)])/,Xg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Kg=Xe(Xg).replace(/bull/g,_c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),aI=Xe(Xg).replace(/bull/g,_c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Cc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,iI=/^[^\n]+/,Nc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sI=Xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Nc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),oI=Xe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_c).getRegex(),cl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ic=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lI=Xe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ic).replace("tag",cl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qg=Xe(Cc).replace("hr",ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",cl).getRegex(),uI=Xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Qg).getRegex(),Rc={blockquote:uI,code:tI,def:sI,fences:rI,heading:nI,hr:ys,html:lI,lheading:Kg,list:oI,newline:eI,paragraph:Qg,table:qi,text:iI},_h=Xe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",cl).getRegex(),cI={...Rc,lheading:aI,table:_h,paragraph:Xe(Cc).replace("hr",ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_h).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",cl).getRegex()},dI={...Rc,html:Xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ic).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:qi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Xe(Cc).replace("hr",ys).replace("heading",` *#{1,6} *[^
|
|
400
|
+
]`).replace("lheading",Kg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fI=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hI=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Jg=/^( {2,}|\\)\n(?!\s*$)/,mI=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,dl=/[\p{P}\p{S}]/u,Oc=/[\s\p{P}\p{S}]/u,Zg=/[^\s\p{P}\p{S}]/u,pI=Xe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Oc).getRegex(),e4=/(?!~)[\p{P}\p{S}]/u,gI=/(?!~)[\s\p{P}\p{S}]/u,bI=/(?:[^\s\p{P}\p{S}]|~)/u,yI=Xe(/link|code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<!`)(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("code",new RegExp("(?<!`)(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),t4=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,xI=Xe(t4,"u").replace(/punct/g,dl).getRegex(),EI=Xe(t4,"u").replace(/punct/g,e4).getRegex(),r4="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",TI=Xe(r4,"gu").replace(/notPunctSpace/g,Zg).replace(/punctSpace/g,Oc).replace(/punct/g,dl).getRegex(),vI=Xe(r4,"gu").replace(/notPunctSpace/g,bI).replace(/punctSpace/g,gI).replace(/punct/g,e4).getRegex(),wI=Xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zg).replace(/punctSpace/g,Oc).replace(/punct/g,dl).getRegex(),kI=Xe(/\\(punct)/,"gu").replace(/punct/g,dl).getRegex(),AI=Xe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),SI=Xe(Ic).replace("(?:-->|$)","-->").getRegex(),_I=Xe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",SI).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ro=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,CI=Xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ro).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),n4=Xe(/^!?\[(label)\]\[(ref)\]/).replace("label",Ro).replace("ref",Nc).getRegex(),a4=Xe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Nc).getRegex(),NI=Xe("reflink|nolink(?!\\()","g").replace("reflink",n4).replace("nolink",a4).getRegex(),Ch=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Lc={_backpedal:qi,anyPunctuation:kI,autolink:AI,blockSkip:yI,br:Jg,code:hI,del:qi,emStrongLDelim:xI,emStrongRDelimAst:TI,emStrongRDelimUnd:wI,escape:fI,link:CI,nolink:a4,punctuation:pI,reflink:n4,reflinkSearch:NI,tag:_I,text:mI,url:qi},II={...Lc,link:Xe(/^!?\[(label)\]\((.*?)\)/).replace("label",Ro).getRegex(),reflink:Xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ro).getRegex()},u0={...Lc,emStrongRDelimAst:vI,emStrongLDelim:EI,url:Xe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ch).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Xe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ch).getRegex()},RI={...u0,br:Xe(Jg).replace("{2,}","*").getRegex(),text:Xe(u0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Vs={normal:Rc,gfm:cI,pedantic:dI},Ti={normal:Lc,gfm:u0,breaks:RI,pedantic:II},OI={"&":"&","<":"<",">":">",'"':""","'":"'"},Nh=e=>OI[e];function jr(e,t){if(t){if(Wt.escapeTest.test(e))return e.replace(Wt.escapeReplace,Nh)}else if(Wt.escapeTestNoEncode.test(e))return e.replace(Wt.escapeReplaceNoEncode,Nh);return e}function Ih(e){try{e=encodeURI(e).replace(Wt.percentDecode,"%")}catch{return null}return e}function Rh(e,t){var i;let r=e.replace(Wt.findPipe,(s,o,l)=>{let u=!1,d=o;for(;--d>=0&&l[d]==="\\";)u=!u;return u?"|":" |"}),n=r.split(Wt.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!((i=n.at(-1))!=null&&i.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Wt.slashPipe,"|");return n}function vi(e,t,r){let n=e.length;if(n===0)return"";let a=0;for(;a<n&&e.charAt(n-a-1)===t;)a++;return e.slice(0,n-a)}function LI(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function Oh(e,t,r,n,a){let i=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function DI(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let a=n[1];return t.split(`
|
|
401
|
+
`).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
|
|
402
|
+
`)}var Oo=class{constructor(e){Ge(this,"options");Ge(this,"rules");Ge(this,"lexer");this.options=e||ka}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:vi(r,`
|
|
403
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=DI(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=vi(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:vi(t[0],`
|
|
404
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=vi(t[0],`
|
|
405
|
+
`).split(`
|
|
406
|
+
`),n="",a="",i=[];for(;r.length>0;){let s=!1,o=[],l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))o.push(r[l]),s=!0;else if(!s)o.push(r[l]);else break;r=r.slice(l);let u=o.join(`
|
|
407
|
+
`),d=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
408
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
409
|
+
${u}`:u,a=a?`${a}
|
|
410
|
+
${d}`:d;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,i,!0),this.lexer.state.top=c,r.length===0)break;let f=i.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let m=f,b=m.raw+`
|
|
411
|
+
`+r.join(`
|
|
412
|
+
`),y=this.blockquote(b);i[i.length-1]=y,n=n.substring(0,n.length-m.raw.length)+y.raw,a=a.substring(0,a.length-m.text.length)+y.text;break}else if((f==null?void 0:f.type)==="list"){let m=f,b=m.raw+`
|
|
413
|
+
`+r.join(`
|
|
414
|
+
`),y=this.list(b);i[i.length-1]=y,n=n.substring(0,n.length-f.raw.length)+y.raw,a=a.substring(0,a.length-m.raw.length)+y.raw,r=b.substring(i.at(-1).raw.length).split(`
|
|
415
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:i,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,a={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),s=!1;for(;e;){let l=!1,u="",d="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let c=t[2].split(`
|
|
416
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,E=>" ".repeat(3*E.length)),f=e.split(`
|
|
417
|
+
`,1)[0],m=!c.trim(),b=0;if(this.options.pedantic?(b=2,d=c.trimStart()):m?b=t[1].length+1:(b=t[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,d=c.slice(b),b+=t[1].length),m&&this.rules.other.blankLine.test(f)&&(u+=f+`
|
|
418
|
+
`,e=e.substring(f.length+1),l=!0),!l){let E=this.rules.other.nextBulletRegex(b),A=this.rules.other.hrRegex(b),N=this.rules.other.fencesBeginRegex(b),F=this.rules.other.headingBeginRegex(b),U=this.rules.other.htmlBeginRegex(b);for(;e;){let O=e.split(`
|
|
419
|
+
`,1)[0],W;if(f=O,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),W=f):W=f.replace(this.rules.other.tabCharGlobal," "),N.test(f)||F.test(f)||U.test(f)||E.test(f)||A.test(f))break;if(W.search(this.rules.other.nonSpaceChar)>=b||!f.trim())d+=`
|
|
420
|
+
`+W.slice(b);else{if(m||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(c)||F.test(c)||A.test(c))break;d+=`
|
|
421
|
+
`+f}!m&&!f.trim()&&(m=!0),u+=O+`
|
|
422
|
+
`,e=e.substring(O.length+1),c=W.slice(b)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(s=!0));let y=null,w;this.options.gfm&&(y=this.rules.other.listIsTask.exec(d),y&&(w=y[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:u,task:!!y,checked:w,loose:!1,text:d,tokens:[]}),a.raw+=u}let o=a.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let l=0;l<a.items.length;l++)if(this.lexer.state.top=!1,a.items[l].tokens=this.lexer.blockTokens(a.items[l].text,[]),!a.loose){let u=a.items[l].tokens.filter(c=>c.type==="space"),d=u.length>0&&u.some(c=>this.rules.other.anyLine.test(c.raw));a.loose=d}if(a.loose)for(let l=0;l<a.items.length;l++)a.items[l].loose=!0;return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:a}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=Rh(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
423
|
+
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<r.length;o++)i.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:i.align[o]});for(let o of a)i.rows.push(Rh(o,i.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:i.align[u]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
|
|
424
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let i=vi(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=LI(t[2],"()");if(i===-2)return;if(i>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let n=t[2],a="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(n);i&&(n=i[1],a=i[3])}else a=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),Oh(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=t[n.toLowerCase()];if(!a){let i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return Oh(r,a,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,o=a,l=0,u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);(n=u.exec(t))!=null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(s=[...i].length,n[3]||n[4]){o+=s;continue}else if((n[5]||n[6])&&a%3&&!((a+s)%3)){l+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+l);let d=[...n[0]][0].length,c=e.slice(0,a+n.index+d+s);if(Math.min(a,s)%2){let m=c.slice(1,-1);return{type:"em",raw:c,text:m,tokens:this.lexer.inlineTokens(m)}}let f=c.slice(2,-2);return{type:"strong",raw:c,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),a=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&a&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,a;if(t[2]==="@")n=t[0],a="mailto:"+n;else{let i;do i=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(i!==t[0]);n=t[0],t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},Er=class c0{constructor(t){Ge(this,"tokens");Ge(this,"options");Ge(this,"state");Ge(this,"tokenizer");Ge(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ka,this.options.tokenizer=this.options.tokenizer||new Oo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Wt,block:Vs.normal,inline:Ti.normal};this.options.pedantic?(r.block=Vs.pedantic,r.inline=Ti.pedantic):this.options.gfm&&(r.block=Vs.gfm,this.options.breaks?r.inline=Ti.breaks:r.inline=Ti.gfm),this.tokenizer.rules=r}static get rules(){return{block:Vs,inline:Ti}}static lex(t,r){return new c0(r).lex(t)}static lexInline(t,r){return new c0(r).inlineTokens(t)}lex(t){t=t.replace(Wt.carriageReturn,`
|
|
425
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var a,i,s;for(this.options.pedantic&&(t=t.replace(Wt.tabCharGlobal," ").replace(Wt.spaceLine,""));t;){let o;if((i=(a=this.options.extensions)==null?void 0:a.block)!=null&&i.some(u=>(o=u.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let u=r.at(-1);o.raw.length===1&&u!==void 0?u.raw+=`
|
|
426
|
+
`:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
427
|
+
`)?"":`
|
|
428
|
+
`)+o.raw,u.text+=`
|
|
429
|
+
`+o.text,this.inlineQueue.at(-1).src=u.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
430
|
+
`)?"":`
|
|
431
|
+
`)+o.raw,u.text+=`
|
|
432
|
+
`+o.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let l=t;if((s=this.options.extensions)!=null&&s.startBlock){let u=1/0,d=t.slice(1),c;this.options.extensions.startBlock.forEach(f=>{c=f.call({lexer:this},d),typeof c=="number"&&c>=0&&(u=Math.min(u,c))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){let u=r.at(-1);n&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=(u.raw.endsWith(`
|
|
433
|
+
`)?"":`
|
|
434
|
+
`)+o.raw,u.text+=`
|
|
435
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):r.push(o),n=l.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
436
|
+
`)?"":`
|
|
437
|
+
`)+o.raw,u.text+=`
|
|
438
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):r.push(o);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var o,l,u,d,c;let n=t,a=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,a.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((l=(o=this.options.hooks)==null?void 0:o.emStrongMask)==null?void 0:l.call({lexer:this},n))??n;let i=!1,s="";for(;t;){i||(s=""),i=!1;let f;if((d=(u=this.options.extensions)==null?void 0:u.inline)!=null&&d.some(b=>(f=b.call({lexer:this},t,r))?(t=t.substring(f.raw.length),r.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let b=r.at(-1);f.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=f.raw,b.text+=f.text):r.push(f);continue}if(f=this.tokenizer.emStrong(t,n,s)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),r.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),r.push(f);continue}let m=t;if((c=this.options.extensions)!=null&&c.startInline){let b=1/0,y=t.slice(1),w;this.options.extensions.startInline.forEach(E=>{w=E.call({lexer:this},y),typeof w=="number"&&w>=0&&(b=Math.min(b,w))}),b<1/0&&b>=0&&(m=t.substring(0,b+1))}if(f=this.tokenizer.inlineText(m)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(s=f.raw.slice(-1)),i=!0;let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=f.raw,b.text+=f.text):r.push(f);continue}if(t){let b="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return r}},Lo=class{constructor(e){Ge(this,"options");Ge(this,"parser");this.options=e||ka}space(e){return""}code({text:e,lang:t,escaped:r}){var i;let n=(i=(t||"").match(Wt.notSpaceStart))==null?void 0:i[0],a=e.replace(Wt.endingNewline,"")+`
|
|
439
|
+
`;return n?'<pre><code class="language-'+jr(n)+'">'+(r?a:jr(a,!0))+`</code></pre>
|
|
440
|
+
`:"<pre><code>"+(r?a:jr(a,!0))+`</code></pre>
|
|
441
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
442
|
+
${this.parser.parse(e)}</blockquote>
|
|
443
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
444
|
+
`}hr(e){return`<hr>
|
|
445
|
+
`}list(e){let t=e.ordered,r=e.start,n="";for(let s=0;s<e.items.length;s++){let o=e.items[s];n+=this.listitem(o)}let a=t?"ol":"ul",i=t&&r!==1?' start="'+r+'"':"";return"<"+a+i+`>
|
|
446
|
+
`+n+"</"+a+`>
|
|
447
|
+
`}listitem(e){var r;let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+jr(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
448
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
449
|
+
`}table(e){let t="",r="";for(let a=0;a<e.header.length;a++)r+=this.tablecell(e.header[a]);t+=this.tablerow({text:r});let n="";for(let a=0;a<e.rows.length;a++){let i=e.rows[a];r="";for(let s=0;s<i.length;s++)r+=this.tablecell(i[s]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
450
|
+
<thead>
|
|
451
|
+
`+t+`</thead>
|
|
452
|
+
`+n+`</table>
|
|
453
|
+
`}tablerow({text:e}){return`<tr>
|
|
454
|
+
${e}</tr>
|
|
455
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
456
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${jr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),a=Ih(e);if(a===null)return n;e=a;let i='<a href="'+e+'"';return t&&(i+=' title="'+jr(t)+'"'),i+=">"+n+"</a>",i}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=Ih(e);if(a===null)return jr(r);e=a;let i=`<img src="${e}" alt="${r}"`;return t&&(i+=` title="${jr(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:jr(e.text)}},Dc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Lr=class d0{constructor(t){Ge(this,"options");Ge(this,"renderer");Ge(this,"textRenderer");this.options=t||ka,this.options.renderer=this.options.renderer||new Lo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Dc}static parse(t,r){return new d0(r).parse(t)}static parseInline(t,r){return new d0(r).parseInline(t)}parse(t,r=!0){var a,i;let n="";for(let s=0;s<t.length;s++){let o=t[s];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[o.type]){let u=o,d=this.options.extensions.renderers[u.type].call({parser:this},u);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){n+=d||"";continue}}let l=o;switch(l.type){case"space":{n+=this.renderer.space(l);continue}case"hr":{n+=this.renderer.hr(l);continue}case"heading":{n+=this.renderer.heading(l);continue}case"code":{n+=this.renderer.code(l);continue}case"table":{n+=this.renderer.table(l);continue}case"blockquote":{n+=this.renderer.blockquote(l);continue}case"list":{n+=this.renderer.list(l);continue}case"html":{n+=this.renderer.html(l);continue}case"def":{n+=this.renderer.def(l);continue}case"paragraph":{n+=this.renderer.paragraph(l);continue}case"text":{let u=l,d=this.renderer.text(u);for(;s+1<t.length&&t[s+1].type==="text";)u=t[++s],d+=`
|
|
457
|
+
`+this.renderer.text(u);r?n+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):n+=d;continue}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,r=this.renderer){var a,i;let n="";for(let s=0;s<t.length;s++){let o=t[s];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[o.type]){let u=this.options.extensions.renderers[o.type].call({parser:this},o);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=u||"";continue}}let l=o;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}},Zs,Ri=(Zs=class{constructor(e){Ge(this,"options");Ge(this,"block");this.options=e||ka}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Er.lex:Er.lexInline}provideParser(){return this.block?Lr.parse:Lr.parseInline}},Ge(Zs,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ge(Zs,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Zs),MI=class{constructor(...e){Ge(this,"defaults",Sc());Ge(this,"options",this.setOptions);Ge(this,"parse",this.parseMarkdown(!0));Ge(this,"parseInline",this.parseMarkdown(!1));Ge(this,"Parser",Lr);Ge(this,"Renderer",Lo);Ge(this,"TextRenderer",Dc);Ge(this,"Lexer",Er);Ge(this,"Tokenizer",Oo);Ge(this,"Hooks",Ri);this.use(...e)}walkTokens(e,t){var n,a;let r=[];for(let i of e)switch(r=r.concat(t.call(this,i)),i.type){case"table":{let s=i;for(let o of s.header)r=r.concat(this.walkTokens(o.tokens,t));for(let o of s.rows)for(let l of o)r=r.concat(this.walkTokens(l.tokens,t));break}case"list":{let s=i;r=r.concat(this.walkTokens(s.items,t));break}default:{let s=i;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[s.type]?this.defaults.extensions.childTokens[s.type].forEach(o=>{let l=s[o].flat(1/0);r=r.concat(this.walkTokens(l,t))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=t.renderers[a.name];i?t.renderers[a.name]=function(...s){let o=a.renderer.apply(this,s);return o===!1&&(o=i.apply(this,s)),o}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[a.level];i?i.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),n.extensions=t),r.renderer){let a=this.defaults.renderer||new Lo(this.defaults);for(let i in r.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,o=r.renderer[s],l=a[s];a[s]=(...u)=>{let d=o.apply(a,u);return d===!1&&(d=l.apply(a,u)),d||""}}n.renderer=a}if(r.tokenizer){let a=this.defaults.tokenizer||new Oo(this.defaults);for(let i in r.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,o=r.tokenizer[s],l=a[s];a[s]=(...u)=>{let d=o.apply(a,u);return d===!1&&(d=l.apply(a,u)),d}}n.tokenizer=a}if(r.hooks){let a=this.defaults.hooks||new Ri;for(let i in r.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,o=r.hooks[s],l=a[s];Ri.passThroughHooks.has(i)?a[s]=u=>{if(this.defaults.async&&Ri.passThroughHooksRespectAsync.has(i))return(async()=>{let c=await o.call(a,u);return l.call(a,c)})();let d=o.call(a,u);return l.call(a,d)}:a[s]=(...u)=>{if(this.defaults.async)return(async()=>{let c=await o.apply(a,u);return c===!1&&(c=await l.apply(a,u)),c})();let d=o.apply(a,u);return d===!1&&(d=l.apply(a,u)),d}}n.hooks=a}if(r.walkTokens){let a=this.defaults.walkTokens,i=r.walkTokens;n.walkTokens=function(s){let o=[];return o.push(i.call(this,s)),a&&(o=o.concat(a.call(this,s))),o}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Er.lex(e,t??this.defaults)}parser(e,t){return Lr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(t):t,o=await(a.hooks?await a.hooks.provideLexer():e?Er.lex:Er.lexInline)(s,a),l=a.hooks?await a.hooks.processAllTokens(o):o;a.walkTokens&&await Promise.all(this.walkTokens(l,a.walkTokens));let u=await(a.hooks?await a.hooks.provideParser():e?Lr.parse:Lr.parseInline)(l,a);return a.hooks?await a.hooks.postprocess(u):u})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let s=(a.hooks?a.hooks.provideLexer():e?Er.lex:Er.lexInline)(t,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let o=(a.hooks?a.hooks.provideParser():e?Lr.parse:Lr.parseInline)(s,a);return a.hooks&&(o=a.hooks.postprocess(o)),o}catch(s){return i(s)}}}onError(e,t){return r=>{if(r.message+=`
|
|
458
|
+
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+jr(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},ma=new MI;function Ke(e,t){return ma.parse(e,t)}Ke.options=Ke.setOptions=function(e){return ma.setOptions(e),Ke.defaults=ma.defaults,Yg(Ke.defaults),Ke};Ke.getDefaults=Sc;Ke.defaults=ka;Ke.use=function(...e){return ma.use(...e),Ke.defaults=ma.defaults,Yg(Ke.defaults),Ke};Ke.walkTokens=function(e,t){return ma.walkTokens(e,t)};Ke.parseInline=ma.parseInline;Ke.Parser=Lr;Ke.parser=Lr.parse;Ke.Renderer=Lo;Ke.TextRenderer=Dc;Ke.Lexer=Er;Ke.lexer=Er.lex;Ke.Tokenizer=Oo;Ke.Hooks=Ri;Ke.parse=Ke;Ke.options;Ke.setOptions;Ke.use;Ke.walkTokens;Ke.parseInline;Lr.parse;Er.lex;var Me=(...e)=>U_(Bt(e)),ja=(e,t,r)=>{let n=typeof t=="string"?new Blob([t],{type:r}):t,a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)},PI=k.createContext({code:""}),i4=()=>k.useContext(PI),Lh=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:a,code:i,...s})=>{let[o,l]=k.useState(!1),u=k.useRef(0),{code:d}=i4(),{isAnimating:c}=k.useContext(Br),f=i??d,m=async()=>{var y;if(typeof window>"u"||!((y=navigator==null?void 0:navigator.clipboard)!=null&&y.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(f),l(!0),e==null||e(),u.current=window.setTimeout(()=>l(!1),r))}catch(w){t==null||t(w)}};k.useEffect(()=>()=>{window.clearTimeout(u.current)},[]);let b=o?kg:Ag;return T.jsx("button",{className:Me("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:c,onClick:m,title:"Copy Code",type:"button",...s,children:n??T.jsx(b,{size:14})})},Dh={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},BI=({onDownload:e,onError:t,language:r,children:n,className:a,code:i,...s})=>{let{code:o}=i4(),{isAnimating:l}=k.useContext(Br),u=i??o,d=`file.${r&&r in Dh?Dh[r]:"txt"}`,c="text/plain",f=()=>{try{ja(d,u,c),e==null||e()}catch(m){t==null||t(m)}};return T.jsx("button",{className:Me("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:l,onClick:f,title:"Download file",type:"button",...s,children:n??T.jsx(ul,{size:14})})},Mh=()=>T.jsxs("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[T.jsx("div",{className:"h-[46px] w-full bg-muted/80"}),T.jsx("div",{className:"flex w-full items-center justify-center p-4",children:T.jsx($S,{className:"size-4 animate-spin"})})]}),FI=/\.[^/.]+$/,HI=({node:e,className:t,src:r,alt:n,...a})=>{let i=async()=>{if(r)try{let s=await(await fetch(r)).blob(),o=new URL(r,window.location.origin).pathname.split("/").pop()||"",l=o.split(".").pop(),u=o.includes(".")&&l!==void 0&&l.length<=4,d="";if(u)d=o;else{let c=s.type,f="png";c.includes("jpeg")||c.includes("jpg")?f="jpg":c.includes("png")?f="png":c.includes("svg")?f="svg":c.includes("gif")?f="gif":c.includes("webp")&&(f="webp"),d=`${(n||o||"image").replace(FI,"")}.${f}`}ja(d,s,s.type)}catch(s){console.error("Failed to download image:",s)}};return r?T.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[T.jsx("img",{alt:n,className:Me("max-w-full rounded-lg",t),"data-streamdown":"image",src:r,...a}),T.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),T.jsx("button",{className:Me("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:i,title:"Download image",type:"button",children:T.jsx(ul,{size:14})})]}):null},s4=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},r=(await Vo(async()=>{const{default:n}=await import("./mermaid.core-CAJGJsUa.js").then(a=>a.bp);return{default:n}},__vite__mapDeps([0,1,2]))).default;return r.initialize(t),r},zI=(e,t)=>{var r;let n=(r=void 0)!=null?r:5;return new Promise((a,i)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let l=document.createElement("canvas"),u=o.width*n,d=o.height*n;l.width=u,l.height=d;let c=l.getContext("2d");if(!c){i(new Error("Failed to create 2D canvas context for PNG export"));return}c.drawImage(o,0,0,u,d),l.toBlob(f=>{if(!f){i(new Error("Failed to create PNG blob"));return}a(f)},"image/png")},o.onerror=()=>i(new Error("Failed to load SVG image")),o.src=s})},UI=({chart:e,children:t,className:r,onDownload:n,config:a,onError:i})=>{let[s,o]=k.useState(!1),l=k.useRef(null),{isAnimating:u}=k.useContext(Br),d=async c=>{try{if(c==="mmd"){ja("diagram.mmd",e,"text/plain"),o(!1),n==null||n(c);return}let f=await s4(a),m=e.split("").reduce((w,E)=>(w<<5)-w+E.charCodeAt(0)|0,0),b=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:y}=await f.render(b,e);if(!y){i==null||i(new Error("SVG not found. Please wait for the diagram to render."));return}if(c==="svg"){ja("diagram.svg",y,"image/svg+xml"),o(!1),n==null||n(c);return}if(c==="png"){let w=await zI(y);ja("diagram.png",w,"image/png"),n==null||n(c),o(!1);return}}catch(f){i==null||i(f)}};return k.useEffect(()=>{let c=f=>{l.current&&!l.current.contains(f.target)&&o(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[]),T.jsxs("div",{className:"relative",ref:l,children:[T.jsx("button",{className:Me("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:u,onClick:()=>o(!s),title:"Download diagram",type:"button",children:t??T.jsx(ul,{size:14})}),s&&T.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[T.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),T.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),T.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]})]})},Vi=0,jI=()=>{Vi+=1,Vi===1&&(document.body.style.overflow="hidden")},$I=()=>{Vi=Math.max(0,Vi-1),Vi===0&&(document.body.style.overflow="")},qI=({chart:e,config:t,onFullscreen:r,onExit:n,className:a,...i})=>{let[s,o]=k.useState(!1),{isAnimating:l,controls:u}=k.useContext(Br),d=(()=>{if(typeof u=="boolean")return u;let f=u.mermaid;return f===!1?!1:f===!0||f===void 0?!0:f.panZoom!==!1})(),c=()=>{o(!s)};return k.useEffect(()=>{if(s){jI();let f=m=>{m.key==="Escape"&&o(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),$I()}}},[s]),k.useEffect(()=>{s?r==null||r():n&&n()},[s,r,n]),T.jsxs(T.Fragment,{children:[T.jsx("button",{className:Me("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:l,onClick:c,title:"View fullscreen",type:"button",...i,children:T.jsx(VS,{size:14})}),s&&T.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:c,onKeyDown:f=>{f.key==="Escape"&&c()},role:"button",tabIndex:0,children:[T.jsx("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:c,title:"Exit fullscreen",type:"button",children:T.jsx(XS,{size:20})}),T.jsx("div",{className:"flex h-full w-full items-center justify-center p-4",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:T.jsx(M4,{chart:e,className:"h-full w-full [&>div]:h-full [&>div]:overflow-hidden [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:d})})]})]})},o4=e=>{var t,r;let n=[],a=[],i=e.querySelectorAll("thead th");for(let o of i)n.push(((t=o.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let o of s){let l=[],u=o.querySelectorAll("td");for(let d of u)l.push(((r=d.textContent)==null?void 0:r.trim())||"");a.push(l)}return{headers:n,rows:a}},l4=e=>{let{headers:t,rows:r}=e,n=o=>{let l=!1,u=!1;for(let d=0;d<o.length;d+=1){let c=o[d];if(c==='"'){l=!0,u=!0;break}(c===","||c===`
|
|
459
|
+
`)&&(l=!0)}return l?u?`"${o.replace(/"/g,'""')}"`:`"${o}"`:o},a=t.length>0?r.length+1:r.length,i=new Array(a),s=0;t.length>0&&(i[s]=t.map(n).join(","),s+=1);for(let o of r)i[s]=o.map(n).join(","),s+=1;return i.join(`
|
|
460
|
+
`)},VI=e=>{let{headers:t,rows:r}=e,n=o=>{let l=!1;for(let d=0;d<o.length;d+=1){let c=o[d];if(c===" "||c===`
|
|
461
|
+
`||c==="\r"){l=!0;break}}if(!l)return o;let u=[];for(let d=0;d<o.length;d+=1){let c=o[d];c===" "?u.push("\\t"):c===`
|
|
462
|
+
`?u.push("\\n"):c==="\r"?u.push("\\r"):u.push(c)}return u.join("")},a=t.length>0?r.length+1:r.length,i=new Array(a),s=0;t.length>0&&(i[s]=t.map(n).join(" "),s+=1);for(let o of r)i[s]=o.map(n).join(" "),s+=1;return i.join(`
|
|
463
|
+
`)},lu=e=>{let t=!1;for(let n=0;n<e.length;n+=1){let a=e[n];if(a==="\\"||a==="|"){t=!0;break}}if(!t)return e;let r=[];for(let n=0;n<e.length;n+=1){let a=e[n];a==="\\"?r.push("\\\\"):a==="|"?r.push("\\|"):r.push(a)}return r.join("")},WI=e=>{let{headers:t,rows:r}=e;if(t.length===0)return"";let n=new Array(r.length+2),a=0,i=t.map(o=>lu(o));n[a]=`| ${i.join(" | ")} |`,a+=1;let s=new Array(t.length);for(let o=0;o<t.length;o+=1)s[o]="---";n[a]=`| ${s.join(" | ")} |`,a+=1;for(let o of r)if(o.length<t.length){let l=new Array(t.length);for(let u=0;u<t.length;u+=1)l[u]=u<o.length?lu(o[u]):"";n[a]=`| ${l.join(" | ")} |`,a+=1}else{let l=o.map(u=>lu(u));n[a]=`| ${l.join(" | ")} |`,a+=1}return n.join(`
|
|
464
|
+
`)},GI=({children:e,className:t,onCopy:r,onError:n,timeout:a=2e3})=>{let[i,s]=k.useState(!1),[o,l]=k.useState(!1),u=k.useRef(null),d=k.useRef(0),{isAnimating:c}=k.useContext(Br),f=async b=>{var y,w;if(typeof window>"u"||!((y=navigator==null?void 0:navigator.clipboard)!=null&&y.write)){n==null||n(new Error("Clipboard API not available"));return}try{let E=(w=u.current)==null?void 0:w.closest('[data-streamdown="table-wrapper"]'),A=E==null?void 0:E.querySelector("table");if(!A){n==null||n(new Error("Table not found"));return}let N=o4(A),F=b==="csv"?l4(N):VI(N),U=new ClipboardItem({"text/plain":new Blob([F],{type:"text/plain"}),"text/html":new Blob([A.outerHTML],{type:"text/html"})});await navigator.clipboard.write([U]),l(!0),s(!1),r==null||r(b),d.current=window.setTimeout(()=>l(!1),a)}catch(E){n==null||n(E)}};k.useEffect(()=>{let b=y=>{u.current&&!u.current.contains(y.target)&&s(!1)};return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b),window.clearTimeout(d.current)}},[]);let m=o?kg:Ag;return T.jsxs("div",{className:"relative",ref:u,children:[T.jsx("button",{className:Me("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:c,onClick:()=>s(!i),title:"Copy table",type:"button",children:e??T.jsx(m,{size:14})}),i&&T.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[T.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),T.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]})]})},YI=({children:e,className:t,onDownload:r,onError:n})=>{let[a,i]=k.useState(!1),s=k.useRef(null),{isAnimating:o}=k.useContext(Br),l=u=>{var d;try{let c=(d=s.current)==null?void 0:d.closest('[data-streamdown="table-wrapper"]'),f=c==null?void 0:c.querySelector("table");if(!f){n==null||n(new Error("Table not found"));return}let m=o4(f),b=u==="csv"?l4(m):WI(m);ja(`table.${u==="csv"?"csv":"md"}`,b,u==="csv"?"text/csv":"text/markdown"),i(!1),r==null||r(u)}catch(c){n==null||n(c)}};return k.useEffect(()=>{let u=d=>{s.current&&!s.current.contains(d.target)&&i(!1)};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]),T.jsxs("div",{className:"relative",ref:s,children:[T.jsx("button",{className:Me("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>i(!a),title:"Download table",type:"button",children:e??T.jsx(ul,{size:14})}),a&&T.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[T.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),T.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]})]})},XI=({children:e,className:t,showControls:r,...n})=>T.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[r&&T.jsxs("div",{className:"flex items-center justify-end gap-1",children:[T.jsx(GI,{}),T.jsx(YI,{})]}),T.jsx("div",{className:"overflow-x-auto",children:T.jsx("table",{className:Me("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]}),KI=k.lazy(()=>Vo(()=>import("./code-block-IT6T5CEO-BOexmHI_.js"),__vite__mapDeps([3,1])).then(e=>({default:e.CodeBlock}))),QI=k.lazy(()=>Vo(()=>Promise.resolve().then(()=>MM),void 0).then(e=>({default:e.Mermaid}))),JI=/language-([^\s]+)/;function fl(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let r=e.position.start,n=t.position.start,a=e.position.end,i=t.position.end;return(r==null?void 0:r.line)===(n==null?void 0:n.line)&&(r==null?void 0:r.column)===(n==null?void 0:n.column)&&(a==null?void 0:a.line)===(i==null?void 0:i.line)&&(a==null?void 0:a.column)===(i==null?void 0:i.column)}function ht(e,t){return e.className===t.className&&fl(e.node,t.node)}var f0=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Ws=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Mc=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("ol",{className:Me("list-inside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>ht(e,t));Mc.displayName="MarkdownOl";var u4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("li",{className:Me("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&fl(e.node,t.node));u4.displayName="MarkdownLi";var c4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("ul",{className:Me("list-inside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>ht(e,t));c4.displayName="MarkdownUl";var d4=k.memo(({className:e,node:t,...r})=>T.jsx("hr",{className:Me("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r}),(e,t)=>ht(e,t));d4.displayName="MarkdownHr";var f4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("span",{className:Me("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>ht(e,t));f4.displayName="MarkdownStrong";var h4=k.memo(({children:e,className:t,href:r,node:n,...a})=>{let i=r==="streamdown:incomplete-link";return T.jsx("a",{className:Me("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":i,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...a,children:e})},(e,t)=>ht(e,t)&&e.href===t.href);h4.displayName="MarkdownA";var m4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("h1",{className:Me("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>ht(e,t));m4.displayName="MarkdownH1";var p4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("h2",{className:Me("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>ht(e,t));p4.displayName="MarkdownH2";var g4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("h3",{className:Me("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>ht(e,t));g4.displayName="MarkdownH3";var b4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("h4",{className:Me("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>ht(e,t));b4.displayName="MarkdownH4";var y4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("h5",{className:Me("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>ht(e,t));y4.displayName="MarkdownH5";var x4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("h6",{className:Me("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>ht(e,t));x4.displayName="MarkdownH6";var E4=k.memo(({children:e,className:t,node:r,...n})=>{let{controls:a}=k.useContext(Br),i=f0(a,"table");return T.jsx(XI,{className:t,"data-streamdown":"table-wrapper",showControls:i,...n,children:e})},(e,t)=>ht(e,t));E4.displayName="MarkdownTable";var T4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("thead",{className:Me("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>ht(e,t));T4.displayName="MarkdownThead";var v4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("tbody",{className:Me("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>ht(e,t));v4.displayName="MarkdownTbody";var w4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("tr",{className:Me("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>ht(e,t));w4.displayName="MarkdownTr";var k4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("th",{className:Me("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>ht(e,t));k4.displayName="MarkdownTh";var A4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("td",{className:Me("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>ht(e,t));A4.displayName="MarkdownTd";var S4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("blockquote",{className:Me("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>ht(e,t));S4.displayName="MarkdownBlockquote";var _4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("sup",{className:Me("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>ht(e,t));_4.displayName="MarkdownSup";var C4=k.memo(({children:e,className:t,node:r,...n})=>T.jsx("sub",{className:Me("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>ht(e,t));C4.displayName="MarkdownSub";var N4=k.memo(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let a=s=>{var o,l;if(!k.isValidElement(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],d=!1,c=!1;for(let f of u)if(f){if(typeof f=="string")f.trim()!==""&&(d=!0);else if(k.isValidElement(f))if(((o=f.props)==null?void 0:o["data-footnote-backref"])!==void 0)c=!0;else{let m=Array.isArray(f.props.children)?f.props.children:[f.props.children];for(let b of m){if(typeof b=="string"&&b.trim()!==""){d=!0;break}if(k.isValidElement(b)&&((l=b.props)==null?void 0:l["data-footnote-backref"])===void 0){d=!0;break}}}}return c&&!d},i=Array.isArray(e)?e.map(s=>{if(!k.isValidElement(s))return s;if(s.type===Mc){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!a(l));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(i)?i.some(s=>s!==null):i!==null)?T.jsx("section",{className:t,...n,children:i}):null}return T.jsx("section",{className:t,...n,children:e})},(e,t)=>ht(e,t));N4.displayName="MarkdownSection";var ZI=({node:e,className:t,children:r,...n})=>{var a,i,s;let o=((a=e==null?void 0:e.position)==null?void 0:a.start.line)===((i=e==null?void 0:e.position)==null?void 0:i.end.line),{mermaid:l,controls:u}=k.useContext(Br);if(o)return T.jsx("code",{className:Me("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let d=t==null?void 0:t.match(JI),c=(s=d==null?void 0:d.at(1))!=null?s:"",f="";if(k.isValidElement(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?f=r.props.children:typeof r=="string"&&(f=r),c==="mermaid"){let b=f0(u,"mermaid"),y=Ws(u,"download"),w=Ws(u,"copy"),E=Ws(u,"fullscreen"),A=Ws(u,"panZoom");return T.jsx(k.Suspense,{fallback:T.jsx(Mh,{}),children:T.jsxs("div",{className:Me("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[b&&(y||w||E)&&T.jsxs("div",{className:"flex items-center justify-end gap-2",children:[y&&T.jsx(UI,{chart:f,config:l==null?void 0:l.config}),w&&T.jsx(Lh,{code:f}),E&&T.jsx(qI,{chart:f,config:l==null?void 0:l.config})]}),T.jsx(QI,{chart:f,config:l==null?void 0:l.config,showControls:A})]})})}let m=f0(u,"code");return T.jsx(k.Suspense,{fallback:T.jsx(Mh,{}),children:T.jsx(KI,{className:Me("overflow-x-auto border-border border-t",t),code:f,language:c,children:m&&T.jsxs(T.Fragment,{children:[T.jsx(BI,{code:f,language:c}),T.jsx(Lh,{})]})})})},I4=k.memo(ZI,(e,t)=>e.className===t.className&&fl(e.node,t.node));I4.displayName="MarkdownCode";var R4=k.memo(HI,(e,t)=>e.className===t.className&&fl(e.node,t.node));R4.displayName="MarkdownImg";var O4=k.memo(({children:e,className:t,node:r,...n})=>{var a;let i=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");return i.length===1&&k.isValidElement(i[0])&&((a=i[0].props.node)==null?void 0:a.tagName)==="img"?T.jsx(T.Fragment,{children:e}):T.jsx("p",{className:t,...n,children:e})},(e,t)=>ht(e,t));O4.displayName="MarkdownParagraph";var eR={ol:Mc,li:u4,ul:c4,hr:d4,strong:f4,a:h4,h1:m4,h2:p4,h3:g4,h4:b4,h5:y4,h6:x4,table:E4,thead:T4,tbody:v4,tr:w4,th:k4,td:A4,blockquote:S4,code:I4,img:R4,pre:({children:e})=>e,sup:_4,sub:C4,p:O4,section:N4},Ph=[],Bh={allowDangerousHtml:!0},Gs=new WeakMap,tR=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,a=e.remarkRehypeOptions;if(!(r||n||a)){let d="default";return this.keyCache.set(e,d),d}let i=d=>{if(!d||d.length===0)return"";let c="";for(let f=0;f<d.length;f+=1){let m=d[f];if(f>0&&(c+=","),Array.isArray(m)){let[b,y]=m;if(typeof b=="function"){let w=Gs.get(b);w||(w=b.name,Gs.set(b,w)),c+=w}else c+=String(b);c+=":",c+=JSON.stringify(y)}else if(typeof m=="function"){let b=Gs.get(m);b||(b=m.name,Gs.set(m,b)),c+=b}else c+=String(m)}return c},s=i(r),o=i(n),l=a?JSON.stringify(a):"",u=`${o}::${s}::${l}`;return this.keyCache.set(e,u),u}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n&&this.cache.delete(n)}this.cache.set(r,t)}clear(){this.cache.clear()}},Fh=new tR,L4=e=>{let t=rR(e),r=e.children||"";return aR(t.runSync(t.parse(r),r),e)},rR=e=>{let t=Fh.get(e);if(t)return t;let r=nR(e);return Fh.set(e,r),r},nR=e=>{let t=e.rehypePlugins||Ph,r=e.remarkPlugins||Ph,n=e.remarkRehypeOptions?{...Bh,...e.remarkRehypeOptions}:Bh;return KN().use(XC).use(r).use(RN,n).use(t)},aR=(e,t)=>nC(e,{Fragment:T.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0}),iR=/\[\^[^\]\s]{1,200}\](?!:)/,sR=/\[\^[^\]\s]{1,200}\]:/,oR=/<\/(\w+)>/,lR=/<(\w+)[\s>]/,uu=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
465
|
+
`||e[t]==="\r");)t+=1;return t+1<e.length&&e[t]==="$"&&e[t+1]==="$"},uR=e=>{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
466
|
+
`||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},cu=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},cR=e=>{let t=iR.test(e),r=sR.test(e);if(t||r)return[e];let n=Er.lex(e,{gfm:!0}),a=[],i=[];for(let s of n){let o=s.raw,l=a.length;if(i.length>0){if(a[l-1]+=o,s.type==="html"){let u=o.match(oR);if(u){let d=u[1];i.at(-1)===d&&i.pop()}}continue}if(s.type==="html"&&s.block){let u=o.match(lR);if(u){let d=u[1];o.includes(`</${d}>`)||i.push(d)}}if(o.trim()==="$$"&&l>0){let u=a[l-1],d=uu(u),c=cu(u);if(d&&c%2===1){a[l-1]=u+o;continue}}if(l>0&&uR(o)){let u=a[l-1],d=uu(u),c=cu(u),f=cu(o);if(d&&c%2===1&&!uu(o)&&f===1){a[l-1]=u+o;continue}}a.push(o)}return a},dR={raw:wT,katex:[Vu,{errorColor:"var(--color-muted-foreground)"}],sanitize:[LT,{}],harden:[w8,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},fR={gfm:[FA,{}],math:[r0,{singleDollarTextMath:!1}],cjkFriendly:[sv,{}],cjkFriendlyGfmStrikethrough:[lv,{}]},hR=Object.values(dR),mR=Object.values(fR),pR={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0},Br=k.createContext(pR),D4=k.memo(({content:e,shouldParseIncompleteMarkdown:t,...r})=>{let n=k.useMemo(()=>typeof e=="string"&&t?LS(e.trim()):e,[e,t]);return T.jsx(L4,{...r,children:n})},(e,t)=>{if(e.content!==t.content||e.shouldParseIncompleteMarkdown!==t.shouldParseIncompleteMarkdown||e.index!==t.index)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),n=Object.keys(t.components||{});if(r.length!==n.length||r.some(a=>{var i,s;return((i=e.components)==null?void 0:i[a])!==((s=t.components)==null?void 0:s[a])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});D4.displayName="Block";var gR=["github-light","github-dark"],bR=k.memo(({children:e,mode:t="streaming",parseIncompleteMarkdown:r=!0,components:n,rehypePlugins:a=hR,remarkPlugins:i=mR,className:s,shikiTheme:o=gR,mermaid:l,controls:u=!0,isAnimating:d=!1,BlockComponent:c=D4,parseMarkdownIntoBlocksFn:f=cR,...m})=>{let b=k.useId(),[y,w]=k.useTransition(),[E,A]=k.useState([]),N=k.useMemo(()=>f(typeof e=="string"?e:""),[e,f]);k.useEffect(()=>{t==="streaming"?w(()=>{A(N)}):A(N)},[N,t]);let F=t==="streaming"?E:N,U=k.useMemo(()=>F.map((X,Z)=>`${b}-${Z}`),[F.length,b]),O=k.useMemo(()=>({shikiTheme:o,controls:u,isAnimating:d,mode:t,mermaid:l}),[o,u,d,t,l]),W=k.useMemo(()=>({...eR,...n}),[n]);return k.useEffect(()=>{if(!(Array.isArray(a)&&a.some(j=>Array.isArray(j)?j[0]===Vu:j===Vu)))return;let X=!1;if(Array.isArray(i)){let j=i.find(S=>Array.isArray(S)?S[0]===r0:S===r0);j&&Array.isArray(j)&&j[1]&&(X=j[1].singleDollarTextMath===!0)}let Z=typeof e=="string"?e:"",B=Z.includes("$$"),re=X&&(/[^$]\$[^$]/.test(Z)||/^\$[^$]/.test(Z)||/[^$]\$$/.test(Z));(B||re)&&Vo(()=>Promise.resolve({}),__vite__mapDeps([4]))},[a,i,e]),t==="static"?T.jsx(Br.Provider,{value:O,children:T.jsx("div",{className:Me("space-y-4 whitespace-normal",s),children:T.jsx(L4,{components:W,rehypePlugins:a,remarkPlugins:i,...m,children:e})})}):T.jsx(Br.Provider,{value:O,children:T.jsx("div",{className:Me("space-y-4 whitespace-normal",s),children:F.map((X,Z)=>T.jsx(c,{components:W,content:X,index:Z,rehypePlugins:a,remarkPlugins:i,shouldParseIncompleteMarkdown:r,...m},U[Z]))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode);bR.displayName="Streamdown";var yR=({children:e,className:t,minZoom:r=.5,maxZoom:n=3,zoomStep:a=.1,showControls:i=!0,initialZoom:s=1,fullscreen:o=!1})=>{let l=k.useRef(null),u=k.useRef(null),[d,c]=k.useState(s),[f,m]=k.useState({x:0,y:0}),[b,y]=k.useState(!1),[w,E]=k.useState({x:0,y:0}),[A,N]=k.useState({x:0,y:0}),F=k.useCallback(j=>{c(S=>Math.max(r,Math.min(n,S+j)))},[r,n]),U=k.useCallback(()=>{F(a)},[F,a]),O=k.useCallback(()=>{F(-a)},[F,a]),W=k.useCallback(()=>{c(s),m({x:0,y:0})},[s]),X=k.useCallback(j=>{j.preventDefault();let S=j.deltaY>0?-a:a;F(S)},[F,a]),Z=k.useCallback(j=>{if(j.button!==0||j.isPrimary===!1)return;y(!0),E({x:j.clientX,y:j.clientY}),N(f);let S=j.currentTarget;S instanceof HTMLElement&&S.setPointerCapture(j.pointerId)},[f]),B=k.useCallback(j=>{if(!b)return;j.preventDefault();let S=j.clientX-w.x,H=j.clientY-w.y;m({x:A.x+S,y:A.y+H})},[b,w,A]),re=k.useCallback(j=>{y(!1);let S=j.currentTarget;S instanceof HTMLElement&&S.releasePointerCapture(j.pointerId)},[]);return k.useEffect(()=>{let j=l.current;if(j)return j.addEventListener("wheel",X,{passive:!1}),()=>{j.removeEventListener("wheel",X)}},[X]),k.useEffect(()=>{let j=u.current;if(j&&b)return document.body.style.userSelect="none",j.addEventListener("pointermove",B,{passive:!1}),j.addEventListener("pointerup",re),j.addEventListener("pointercancel",re),()=>{document.body.style.userSelect="",j.removeEventListener("pointermove",B),j.removeEventListener("pointerup",re),j.removeEventListener("pointercancel",re)}},[b,B,re]),T.jsxs("div",{className:Me("relative",o?"h-full w-full":"w-full",t),ref:l,style:{cursor:b?"grabbing":"grab"},children:[i&&T.jsxs("div",{className:Me("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[T.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:d>=n,onClick:U,title:"Zoom in",type:"button",children:T.jsx(QS,{size:16})}),T.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:d<=r,onClick:O,title:"Zoom out",type:"button",children:T.jsx(ZS,{size:16})}),T.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:W,title:"Reset zoom and pan",type:"button",children:T.jsx(GS,{size:16})})]}),T.jsx("div",{className:Me("origin-center transition-transform duration-150 ease-out",o&&"flex w-full items-center justify-center"),onPointerDown:Z,ref:u,role:"application",style:{transform:`translate(${f.x}px, ${f.y}px) scale(${d})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},M4=({chart:e,className:t,config:r,fullscreen:n=!1,showControls:a=!0})=>{let[i,s]=k.useState(null),[o,l]=k.useState(!0),[u,d]=k.useState(""),[c,f]=k.useState(""),[m,b]=k.useState(0),{mermaid:y}=k.useContext(Br),w=y==null?void 0:y.errorComponent;if(k.useEffect(()=>{(async()=>{try{s(null),l(!0);let A=await s4(r),N=e.split("").reduce((O,W)=>(O<<5)-O+W.charCodeAt(0)|0,0),F=`mermaid-${Math.abs(N)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:U}=await A.render(F,e);d(U),f(U)}catch(A){if(!(c||u)){let N=A instanceof Error?A.message:"Failed to render Mermaid chart";s(N)}}finally{l(!1)}})()},[e,r,m]),o&&!u&&!c)return T.jsx("div",{className:Me("my-4 flex justify-center p-4",t),children:T.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[T.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),T.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(i&&!u&&!c){let A=()=>b(N=>N+1);return w?T.jsx(w,{chart:e,error:i,retry:A}):T.jsxs("div",{className:Me("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[T.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",i]}),T.jsxs("details",{className:"mt-2",children:[T.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),T.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]})}let E=u||c;return T.jsx(yR,{className:Me(n?"h-full w-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:n,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:T.jsx("div",{"aria-label":"Mermaid chart",className:Me("flex justify-center",n&&"h-full w-full items-center"),dangerouslySetInnerHTML:{__html:E},role:"img"})})};const xR=40,ER=8,Oa=56,Do=8,rs=2,Vn=24,hl=24,KM=8,TR=()=>{if(!("document"in globalThis))return 0;const e=400,t=document.createElement("div");t.style.width=`${e}px`,t.style.height=`${e}px`,t.style.overflow="scroll",document.body.appendChild(t);const r=e-t.scrollWidth;return t.remove(),r},Pc={root:{startTime:0,endTime:1,duration:1,depth:0,children:[]},spanMap:{},resourceMap:{},filter:"",selected:null,baseScale:1,scaleRatio:1,scale:1,width:640,height:480,timelineWidth:640,timelineHeight:480,panelWidth:380,panelHeight:480,scrollbarWidth:0,timelineRef:{current:null},scrollSnapshotRef:{current:void 0},memoCacheRef:{current:new Map},getQuickLinks:()=>[],withPanel:!1,isMobile:!1},Hh=e=>(e.timelineWidth-e.scrollbarWidth)/e.root.duration,Bc=k.createContext({state:Pc,dispatch:()=>{}});Bc.displayName="TraceViewerContext";const mt=(e,t)=>{var r;switch(t.type){case"setRoot":return e.scrollSnapshotRef.current=void 0,e.memoCacheRef.current.clear(),mt({...e,root:t.root,spanMap:t.spanMap,resourceMap:Object.fromEntries(t.resources.map(({name:n,attributes:a})=>[n,a]))},{type:"detectBaseScale"});case"setSize":{const n=t.height-Oa-xR-3*ER,a=e.withPanel&&t.width<=768;let i={...e,width:t.width,height:t.height,timelineWidth:t.width-+!!(e.selected&&e.withPanel&&!a)*e.panelWidth,timelineHeight:n,panelHeight:n,isMobile:a};return i.width!==e.width&&(i=mt(i,{type:"detectBaseScale"})),i}case"setPanelWidth":{const n=Math.max(240,Math.min(t.width,e.width-240)),a=e.withPanel&&e.selected&&!e.isMobile?e.width-n:e.width;return mt({...e,timelineWidth:a,panelWidth:n},{type:"detectBaseScale"})}case"setFilter":return{...e,filter:t.filter};case"deselect":return mt({...e,selected:null,timelineWidth:e.width},{type:"detectBaseScale"});case"select":{const n=e.spanMap[t.id];return n?mt({...e,selected:n,timelineWidth:e.width-(e.withPanel&&!e.isMobile?e.panelWidth:0)},{type:"detectBaseScale"}):e}case"escape":return e.selected?mt(e,{type:"deselect"}):mt(e,{type:"resetScale"});case"toggleSelection":{let n=e;return e.selected&&(n=mt(n,{type:"deselect"})),((r=e.selected)==null?void 0:r.span.spanId)===t.id?n:mt(n,{type:"select",id:t.id})}case"detectBaseScale":{const n=(e.timelineWidth-e.scrollbarWidth)/e.root.duration;return mt({...e,baseScale:n,scale:n*e.scaleRatio},{type:"minScale"})}case"setScale":return{...e,scaleRatio:t.scale,scale:e.baseScale*t.scale};case"resetScale":return mt(e,{type:"scaleToRange",t1:e.root.startTime,t2:e.root.endTime});case"scaleToNode":{const n=e.spanMap[t.id];return n?mt(mt(e,{type:"setScale",scale:(e.width-e.scrollbarWidth-(e.withPanel&&!e.isMobile?e.panelWidth:0))/n.duration/e.baseScale}),{type:"setScrollSnapshot",anchorT:n.startTime-e.root.startTime,anchorX:0}):e}case"scaleToRange":{const n=Math.abs(t.t1-t.t2);return mt(mt(e,{type:"setScale",scale:(e.width-e.scrollbarWidth-(e.selected&&e.withPanel?e.panelWidth:0))/n/e.baseScale}),{type:"setScrollSnapshot",anchorT:Math.min(t.t1,t.t2)-e.root.startTime,anchorX:0})}case"adjustScaleRatio":{let{scaleRatio:n}=e;switch(t.direction){case-1:n*=.8;break;case 1:n*=1.25;break;default:n=1;break}const a=e.timelineRef.current;if(!a)return console.warn("timelineRef is null"),e;const{clientWidth:i,scrollLeft:s}=a;return mt(mt({...e,scaleRatio:n,scale:e.baseScale*n},{type:"minScale"}),{type:"setScrollSnapshot",anchorT:(s+i*.5)/e.scale,anchorX:i*.5})}case"trackpadScale":{const n=Hh(e)/e.baseScale,a=Math.max(n,e.scaleRatio*(1+.2*Math.sign(t.delta)*Math.sqrt(Math.abs(t.delta))));return mt({...e,scaleRatio:a,scale:e.baseScale*a},{type:"setScrollSnapshot",anchorT:t.anchorT,anchorX:t.anchorX})}case"minScale":{const n=Hh(e);return e.scale>=n?e:{...e,scale:n,scaleRatio:n/e.baseScale}}case"setScrollSnapshot":{const n=e.timelineRef.current;if(!n)return e;const{anchorT:a,anchorX:i}=t,s=a*e.scale-i,{scrollTop:o}=n,l=(o-hl-Do)/(Vn+rs),u=l+Math.ceil(e.timelineHeight/(Vn+rs));return e.scrollSnapshotRef.current={anchorT:a,anchorX:i,scrollLeft:s,scrollTop:o,startTime:e.root.startTime+s/e.scale,endTime:e.root.startTime+(s+e.timelineWidth)/e.scale,startRow:l,endRow:u,scale:e.scale},e}case"setWithPanel":{if(e.withPanel===t.withPanel)return e;const n=t.withPanel&&e.selected&&!e.isMobile?e.width-e.panelWidth:e.width;return mt({...e,withPanel:t.withPanel,timelineWidth:n},{type:"detectBaseScale"})}case"forceRender":return e.memoCacheRef.current.set("",{}),{...e};case"updateRoot":return e.memoCacheRef.current.set("",{}),mt({...e,root:t.root,spanMap:t.spanMap,resourceMap:Object.fromEntries(t.resources.map(({name:n,attributes:a})=>[n,a]))},{type:"detectBaseScale"})}};function QM({getQuickLinks:e,withPanel:t=!1,children:r,customSpanClassNameFunc:n,customSpanEventClassNameFunc:a,customPanelComponent:i=null}){const s=k.useRef(null),o=k.useRef(void 0),l=k.useRef(e);l.current=e;const u=k.useRef(new Map),d=k.useRef(new Map),[c,f]=k.useReducer(mt,Pc,b=>({...b,scrollbarWidth:TR(),timelineRef:s,scrollSnapshotRef:o,customSpanClassNameFunc:n,customSpanEventClassNameFunc:a,memoCacheRef:u,withPanel:t,getQuickLinks:y=>{var N;const w=y.spanId,E=d.current.get(w);if(E)return E;const A=((N=l.current)==null?void 0:N.call(l,y))||[];return d.current.set(w,A),A}}));k.useEffect(()=>f({type:"setWithPanel",withPanel:t}),[t]);const m=k.useMemo(()=>({state:c,dispatch:f}),[c,f]);return T.jsx(P4.Provider,{value:i,children:T.jsx(Bc.Provider,{value:m,children:r})})}const ml=()=>k.useContext(Bc),P4=k.createContext(null),vR=()=>k.useContext(P4),wR="_traceNode_1fmf2_1",kR="_childRow_1fmf2_5",AR="_spanNode_1fmf2_11",SR="_huge_1fmf2_31",_R="_spanName_1fmf2_34",CR="_spanSpacer_1fmf2_40",NR="_spanDuration_1fmf2_44",IR="_small_1fmf2_62",RR="_xHover_1fmf2_62",OR="_spanNodeEvent_1fmf2_118",LR="_eventDiamond_1fmf2_124",DR="_customEventColor_1fmf2_140",MR="_hoverInfo_1fmf2_145",PR="_eventName_1fmf2_149",BR="_eventTimestamp_1fmf2_153",FR="_alignStart_1fmf2_174",HR="_alignEnd_1fmf2_178",zR="_colorVercel_1fmf2_205",UR="_color0_1fmf2_213",jR="_color1_1fmf2_220",$R="_color2_1fmf2_227",qR="_color3_1fmf2_234",VR="_color4_1fmf2_241",WR="_colorHighlight_1fmf2_248",GR="_unlit_1fmf2_256",YR="_mapContainer_1fmf2_262",XR="_spanDetailPanel_1fmf2_329",KR="_spanDetailPanelResizer_1fmf2_338",QR="_spanDetailPanelTop_1fmf2_353",JR="_spanDetailPanelBody_1fmf2_362",ZR="_spanDetailPanelTopInfo_1fmf2_375",eO="_spanNameDetailPanel_1fmf2_389",tO="_spanDetailPanelTruncatedHeading_1fmf2_395",rO="_spanDetailPanelName_1fmf2_405",nO="_spanDetailPanelDuration_1fmf2_416",aO="_spanDetailPanelCorner_1fmf2_427",iO="_spanDetailPanelCornerInner_1fmf2_437",sO="_spanDetailPanelCloseVerticalRule_1fmf2_445",oO="_spanDetailPanelClose_1fmf2_445",lO="_spanDetailPanelAttribute_1fmf2_467",uO="_spanDetailPanelAttributeKey_1fmf2_484",cO="_spanDetailPanelAttributeValue_1fmf2_492",dO="_spanDetailPanelQuickLink_1fmf2_503",fO="_spanDetailPanelQuickLinkLabel_1fmf2_506",hO="_detailGroup_1fmf2_519",mO="_expanded_1fmf2_533",pO="_collapsed_1fmf2_534",gO="_ancestorGroup_1fmf2_535",bO="_detailHeading_1fmf2_539",yO="_buttonLink_1fmf2_562",xO="_note_1fmf2_581",EO="_skeleton_1fmf2_589",TO="_skeletonRounded_1fmf2_595",vO="_detailHeadingIcon_1fmf2_599",wO="_infraSpanDescription_1fmf2_603",kO="_ancestorNode_1fmf2_613",AO="_ancestorText_1fmf2_629",SO="_ancestorName_1fmf2_639",_O="_ancestorDuration_1fmf2_644",CO="_ancestorLineContainer_1fmf2_649",NO="_ancestorLine_1fmf2_649",IO="_zoomButtonGroup_1fmf2_701",RO="_zoomButton_1fmf2_701",OO="_divider_1fmf2_751",LO="_markersContainer_1fmf2_758",DO="_markers_1fmf2_758",MO="_marker_1fmf2_758",PO="_notch_1fmf2_792",BO="_markerLabel_1fmf2_798",FO="_markerClockTime_1fmf2_807",HO="_eventMarkersContainer_1fmf2_816",zO="_eventMarkers_1fmf2_816",UO="_eventMarker_1fmf2_816",jO="_cursorMarkerStickyParent_1fmf2_839",$O="_cursorMarkerLabelContainer_1fmf2_848",qO="_cursorMarkerLabel_1fmf2_848",VO="_cursorMarkerContainer_1fmf2_898",WO="_cursorMarker_1fmf2_839",GO="_cursorSelection_1fmf2_916",YO="_traceViewer_1fmf2_966",XO="_mapCanvas_1fmf2_972",KO="_zoomButtonTraceViewer_1fmf2_988",QO="_timeline_1fmf2_1011",JO="_searchBar_1fmf2_1019",ZO="_searchInput_1fmf2_1031",eL="_searchInputLabel_1fmf2_1038",tL="_searchInputPrefix_1fmf2_1063",rL="_mapThumb_1fmf2_1101",nL="_spanDetailPanelTraceViewer_1fmf2_1115",aL="_traceViewerContent_1fmf2_1134",iL="_inert_1fmf2_1144",sL="_hidden_1fmf2_1180",oL="_mobile_1fmf2_1184",lL="_spanRunning_1fmf2_1194",uL="_spanPending_1fmf2_1195",cL="_spanCompleted_1fmf2_1203",dL="_spanCancelled_1fmf2_1211",fL="_spanFailed_1fmf2_1219",hL="_spanPendingStriped_1fmf2_1228",mL="_hasQueuedTime_1fmf2_1242",pL="_spanSleep_1fmf2_1254",gL="_spanHook_1fmf2_1263",bL="_segmentLayer_1fmf2_1275",yL="_segment_1fmf2_1275",xL="_segmentLabel_1fmf2_1291",EL="_segmentTag_1fmf2_1306",TL="_segQueued_1fmf2_1314",vL="_segRunning_1fmf2_1325",wL="_segFailed_1fmf2_1330",kL="_segRetrying_1fmf2_1335",AL="_segSucceeded_1fmf2_1346",SL="_segWaiting_1fmf2_1351",_L="_segSleeping_1fmf2_1362",CL="_segReceived_1fmf2_1367",NL="_boundaryMarker_1fmf2_1372",IL="_boundaryLine_1fmf2_1373",RL="_hasSegments_1fmf2_1395",OL="_eventFailed_1fmf2_1432",LL="_eventRetrying_1fmf2_1441",DL="_eventHook_1fmf2_1450",ML="_eventDefault_1fmf2_1459",pe={traceNode:wR,childRow:kR,spanNode:AR,huge:SR,spanName:_R,spanSpacer:CR,spanDuration:NR,small:IR,xHover:RR,spanNodeEvent:OR,eventDiamond:LR,customEventColor:DR,hoverInfo:MR,eventName:PR,eventTimestamp:BR,alignStart:FR,alignEnd:HR,colorVercel:zR,color0:UR,color1:jR,color2:$R,color3:qR,color4:VR,colorHighlight:WR,unlit:GR,mapContainer:YR,spanDetailPanel:XR,spanDetailPanelResizer:KR,spanDetailPanelTop:QR,spanDetailPanelBody:JR,spanDetailPanelTopInfo:ZR,spanNameDetailPanel:eO,spanDetailPanelTruncatedHeading:tO,spanDetailPanelName:rO,spanDetailPanelDuration:nO,spanDetailPanelCorner:aO,spanDetailPanelCornerInner:iO,spanDetailPanelCloseVerticalRule:sO,spanDetailPanelClose:oO,spanDetailPanelAttribute:lO,spanDetailPanelAttributeKey:uO,spanDetailPanelAttributeValue:cO,spanDetailPanelQuickLink:dO,spanDetailPanelQuickLinkLabel:fO,detailGroup:hO,expanded:mO,collapsed:pO,ancestorGroup:gO,detailHeading:bO,buttonLink:yO,note:xO,skeleton:EO,skeletonRounded:TO,detailHeadingIcon:vO,infraSpanDescription:wO,ancestorNode:kO,ancestorText:AO,ancestorName:SO,ancestorDuration:_O,ancestorLineContainer:CO,ancestorLine:NO,zoomButtonGroup:IO,"zoom-buttons-fade-in":"_zoom-buttons-fade-in_1fmf2_1",zoomButton:RO,divider:OO,markersContainer:LO,markers:DO,marker:MO,notch:PO,markerLabel:BO,markerClockTime:FO,eventMarkersContainer:HO,eventMarkers:zO,eventMarker:UO,cursorMarkerStickyParent:jO,cursorMarkerLabelContainer:$O,cursorMarkerLabel:qO,cursorMarkerContainer:VO,cursorMarker:WO,cursorSelection:GO,traceViewer:YO,"span-skeleton":"_span-skeleton_1fmf2_1",mapCanvas:XO,zoomButtonTraceViewer:KO,timeline:QO,searchBar:JO,searchInput:ZO,searchInputLabel:eL,searchInputPrefix:tL,mapThumb:rL,spanDetailPanelTraceViewer:nL,traceViewerContent:aL,inert:iL,hidden:sL,mobile:oL,spanRunning:lL,spanPending:uL,spanCompleted:cL,spanCancelled:dL,spanFailed:fL,spanPendingStriped:hL,hasQueuedTime:mL,spanSleep:pL,spanHook:gL,segmentLayer:bL,segment:yL,segmentLabel:xL,segmentTag:EL,segQueued:TL,segRunning:vL,segFailed:wL,segRetrying:kL,segSucceeded:AL,segWaiting:SL,segSleeping:_L,segReceived:CL,boundaryMarker:NL,boundaryLine:IL,hasSegments:RL,eventFailed:OL,eventRetrying:LL,eventHook:DL,eventDefault:ML};function Ys([e,t]){return e*1e3+t/1e6}function JM(e){return[Math.floor(e/1e3),e%1e3*1e3]}const ZM=e=>hr(e,!0),zh=new Intl.NumberFormat(void 0,{minimumFractionDigits:2,maximumFractionDigits:2});function eP(e){return e>=1e3?`${zh.format(e/1e3)}s`:`${zh.format(e)}ms`}function tP(e){const t=new Date(e),r=String(t.getHours()).padStart(2,"0"),n=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0"),i=String(t.getMilliseconds()).padStart(3,"0");return`${r}:${n}:${a}.${i}`}const PL={queued:"segQueued",running:"segRunning",failed:"segFailed",retrying:"segRetrying",succeeded:"segSucceeded",waiting:"segWaiting",sleeping:"segSleeping",received:"segReceived"};function BL(e){return Math.max(0,Math.min(1,e))}function en(e,t,r){return r<=0?0:BL((e-t)/r)}function xs(e){return[...e].sort((t,r)=>t.timestamp-r.timestamp)}function FL(e){const t=e.events?xs(e.events):[],{startTime:r,duration:n}=e,a=[];if(n<=0)return a;const i=t.filter(l=>["step_started","step_retrying","step_failed","step_completed"].includes(l.event.name)).map(l=>({time:l.timestamp,type:l.event.name}));if(i.length===0)return a.push({startFraction:0,endFraction:1,status:"running"}),a;const s=i[0],o=en(s.time,r,n);o>.001&&a.push({startFraction:0,endFraction:o,status:"queued"});for(let l=0;l<i.length;l++){const u=i[l],d=en(u.time,r,n),c=i[l+1],f=c?en(c.time,r,n):1;if(u.type==="step_started")if(l===i.length-1)a.push({startFraction:d,endFraction:1,status:"succeeded"});else{const b=c.type,y=b==="step_retrying"||b==="step_failed"?"failed":b==="step_completed"?"succeeded":"running";a.push({startFraction:d,endFraction:f,status:y})}else u.type==="step_retrying"?a.push({startFraction:d,endFraction:f,status:"retrying"}):u.type==="step_failed"?d<.999&&a.push({startFraction:d,endFraction:1,status:"failed"}):u.type}return a}function HL(e){const t=e.events?xs(e.events):[],{startTime:r,duration:n}=e,a=[];if(n<=0)return a;const i=t.find(u=>u.event.name==="hook_received"),s=t.find(u=>u.event.name==="hook_disposed");if(!i&&!s)return a.push({startFraction:0,endFraction:1,status:"waiting"}),a;const o=i?en(i.timestamp,r,n):null,l=s?en(s.timestamp,r,n):null;if(o!==null&&o>.001?a.push({startFraction:0,endFraction:o,status:"waiting"}):o===null&&l!==null&&a.push({startFraction:0,endFraction:l,status:"waiting"}),o!==null){const u=l??1;a.push({startFraction:o,endFraction:u,status:"received"})}return l!==null&&l<.999&&a.push({startFraction:l,endFraction:1,status:"succeeded"}),a}function zL(e){const t=e.events?xs(e.events):[],{startTime:r,duration:n}=e,a=[];if(n<=0)return a;const i=t.find(o=>o.event.name==="wait_completed");if(!i)return a.push({startFraction:0,endFraction:1,status:"sleeping"}),a;const s=en(i.timestamp,r,n);return s>.001&&a.push({startFraction:0,endFraction:s,status:"sleeping"}),a.push({startFraction:s,endFraction:1,status:"succeeded"}),a}function UL(e){const t=e.events?xs(e.events):[],{startTime:r,duration:n,activeStartTime:a}=e,i=[];if(n<=0)return i;const s=t.find(u=>u.event.name==="run_failed"),o=t.find(u=>u.event.name==="run_completed");let l=0;if(a&&a>r){const u=en(a,r,n);u>.001&&(i.push({startFraction:0,endFraction:u,status:"queued"}),l=u)}if(s){const u=en(s.timestamp,r,n);u>l+.001&&i.push({startFraction:l,endFraction:u,status:"running"}),i.push({startFraction:u,endFraction:1,status:"failed"})}else if(o){const u=en(o.timestamp,r,n);u>l+.001&&i.push({startFraction:l,endFraction:u,status:"running"}),i.push({startFraction:u,endFraction:1,status:"succeeded"})}else i.push({startFraction:l,endFraction:1,status:"running"});return i}const jL={step_started:"Started",step_retrying:"Retrying",step_failed:"Failed",hook_created:"Created",hook_received:"Received",hook_disposed:"Resolved",wait_created:"Sleep started",wait_completed:"Sleep completed",run_completed:"Completed",run_failed:"Run failed",step_completed:"Completed"};function Xs(e,t){const r=e.events?xs(e.events):[],{startTime:n,duration:a}=e;if(a<=0)return[];const i=[];for(const s of r){if(!t.includes(s.event.name))continue;const o=en(s.timestamp,n,a);o<.01||o>.99||i.push({fraction:o,label:jL[s.event.name]??s.event.name,offsetMs:s.timestamp-n})}return i}function B4(e,t){switch(e){case"step":return{segments:FL(t),boundaries:Xs(t,["step_started","step_retrying","step_failed","step_completed"])};case"hook":return{segments:HL(t),boundaries:Xs(t,["hook_created","hook_received","hook_disposed"])};case"sleep":return{segments:zL(t),boundaries:Xs(t,["wait_created","wait_completed"])};case"run":return{segments:UL(t),boundaries:Xs(t,["run_completed","run_failed"])};default:return{segments:[],boundaries:[]}}}function $L(e){return e.isInstrumentationHint?"Get Started":hr(e.duration)}const F4={queued:"Queued",running:"",failed:"Failed",retrying:"Retry wait",succeeded:"Executed",waiting:"Waiting",sleeping:"Sleeping",received:"Received"};function qL({segments:e,spanDuration:t}){return e.length===0?null:T.jsx("div",{className:pe.segmentLayer,children:e.map((r,n)=>{const a=pe[PL[r.status]],i=(r.endFraction-r.startFraction)*t,s=F4[r.status],o={left:`${r.startFraction*100}%`,width:`${(r.endFraction-r.startFraction)*100}%`};return T.jsx("div",{className:`${pe.segment} ${String(a)}`,style:o,title:s?`${s} ${hr(i)}`:hr(i)},`seg-${r.status}-${String(n)}`)})})}function VL(e,t){const r=[];for(let n=0;n<e.length;n++){const a=e[n],i=F4[a.status];if(!i)continue;let s=(a.endFraction-a.startFraction)*t;if(s<1&&(a.status==="succeeded"||a.status==="failed")&&n>0){const o=e[n-1];o.status==="running"&&(s=(o.endFraction-o.startFraction)*t)}s<1||r.push({label:i,duration:hr(s)})}return r}function H4({node:e,layout:t,durationMs:r,segmentTags:n}){const a=e.isInstrumentationHint?$L(e):hr(r??e.duration);if(t.isSmall&&!t.isHovered)return null;const i=n&&n.length>0&&(t.isHovered||t.width>200);return T.jsxs(T.Fragment,{children:[T.jsxs("span",{className:pe.spanName,children:[e.label||e.span.name,i?n.map((s,o)=>T.jsxs("span",{className:pe.segmentTag,children:[" · ",s.label," ",s.duration]},o)):null]}),t.isHuge?T.jsx("span",{className:pe.spanSpacer}):null,t.isHovered||t.width>128?T.jsx("span",{className:pe.spanDuration,children:a}):null]})}function WL({node:e,layout:t}){return T.jsx(H4,{node:e,layout:t})}function pl({resourceType:e,node:t,layout:r,durationMs:n}){const a=n??t.duration,{segments:i}=B4(e,t),s=VL(i,a);return T.jsxs(T.Fragment,{children:[T.jsx(qL,{segments:i,spanDuration:a}),T.jsx(H4,{durationMs:a,node:t,layout:r,segmentTags:s})]})}function GL(e){return T.jsx(pl,{resourceType:"run",...e})}function YL(e){return T.jsx(pl,{resourceType:"step",...e})}function XL(e){return T.jsx(pl,{resourceType:"hook",...e})}function KL(e){return T.jsx(pl,{resourceType:"sleep",...e})}function QL({resourceType:e,...t}){switch(e){case"run":return T.jsx(GL,{...t});case"step":return T.jsx(YL,{...t});case"hook":return T.jsx(XL,{...t});case"sleep":return T.jsx(KL,{...t});default:return T.jsx(WL,{...t})}}const JL=4;function ZL(e){var r;const t=(r=e.span.attributes)==null?void 0:r.resource;return t==="run"||t==="step"||t==="hook"||t==="sleep"?t:"default"}function eD(e){return e<64}function tD(e){return e>=500}function rD(e,t){return e.isHovered&&!t&&e.isHighlighted!==!1}function nD(e,t,r,n){if(!n)return!1;let a=t.duration,i=t.endTime;const s=r.current;return s&&(a=s.endTime-s.startTime,i=s.endTime),i-e.startTime<.25*a}function Es(e,t,r,n){const a=(e.startTime-t.startTime)*r;let i=hl+(Vn+rs)*e.row;const s=e.duration*r,o=Math.max(s,JL);let l=Vn;const u=tD(s),d=eD(s),c=rD(e,u),f=c||!!e.isSelected;d&&!f&&(l*=.4,i+=(Vn-l)*.5);const m=nD(e,t,n,f);return{width:o,actualWidth:s,height:l,top:i,left:a,isSmall:d,isHuge:u,isHovered:c,isExpanded:f,isNearRightSide:m}}function aD(e,t,r,n){return Es(e,t,r,n)}function iD(e,t,r,n){return Es(e,t,r,n)}function sD(e,t,r,n){return Es(e,t,r,n)}function oD(e,t,r,n){return Es(e,t,r,n)}function lD(e,t,r,n,a){switch(e){case"run":return aD(t,r,n,a);case"step":return iD(t,r,n,a);case"hook":return sD(t,r,n,a);case"sleep":return oD(t,r,n,a);default:return Es(t,r,n,a)}}const Fc=e=>e.isVercel?String(pe.colorVercel):String(pe[`color${e.resourceIndex%5}`]);function uD(e,t){const r=t.events;if(r!=null&&r.length)switch(e){case"hook":for(let n=r.length;n--;)if(r[n].event.name==="hook_disposed")return r[n].timestamp;return;case"sleep":for(let n=r.length;n--;)if(r[n].event.name==="wait_completed")return r[n].timestamp;return;case"run":for(let n=r.length;n--;){const a=r[n].event.name;if(a==="run_completed"||a==="run_failed"||a==="run_cancelled")return r[n].timestamp}return;case"step":for(let n=r.length;n--;){const a=r[n].event.name;if(a==="step_completed"||a==="step_failed")return r[n].timestamp;if(a==="step_started"||a==="step_retrying")return}return;default:return}}const rP=k.memo(function({root:t,scale:r,spans:n,isLive:a=!1,scrollSnapshotRef:i,cache:s,customSpanClassNameFunc:o,customSpanEventClassNameFunc:l}){return n.map(u=>T.jsx(dD,{cacheKey:s.get(u.span.spanId),customSpanEventClassNameFunc:l,customSpanClassNameFunc:o,node:u,root:t,scale:r,traceIsLive:a,scrollSnapshotRef:i},u.span.spanId))});function cD(e,t,r,n){const a=e.isExpanded;return{"--span-width":`${Math.max(e.actualWidth,1)}px`,minWidth:a?e.width:void 0,width:a?void 0:e.width,height:e.height,maxWidth:a&&!e.isNearRightSide?(r.endTime-t.startTime)*n:void 0,containIntrinsicWidth:a?void 0:e.width,containIntrinsicHeight:e.height,left:e.isNearRightSide?void 0:e.left,right:e.isNearRightSide?(r.endTime-t.endTime)*n:void 0,top:e.top}}const dD=k.memo(function({node:t,root:r,scale:n,traceIsLive:a=!1,scrollSnapshotRef:i,customSpanClassNameFunc:s,customSpanEventClassNameFunc:o}){var q;const l=k.useRef(null);k.useEffect(()=>(t.ref=l,()=>{t.ref=void 0}),[t]);const{span:u}=t,d=ZL(t),[c,f]=k.useState(0),m=s?s(t):"",b=d!=="default",y=(q=u.attributes)==null?void 0:q.data,w=uD(d,t),E=w!=null,N=(d==="hook"?!!(y!=null&&y.disposedAt):!!(y!=null&&y.completedAt))||E,F=a&&b&&!N;k.useEffect(()=>{if(!F)return;f(Date.now());const V=setInterval(()=>{f(Date.now())},250);return()=>clearInterval(V)},[F]);const U=Ys(u.startTime),O=Ys(u.endTime),W=Ys(u.duration),X=u.activeStartTime?Ys(u.activeStartTime):void 0,Z=w!=null?Math.max(0,w-U):F?Math.max(0,(c||Date.now())-U):W,B=t.isInstrumentationHint?"Get Started":hr(Z),re={...t,startTime:U,endTime:O,duration:W,activeStartTime:X},j=F?{...re,duration:Z,endTime:U+Z}:re,S=b&&B4(d,j).segments.length>0,H=lD(d,j,r,n,i);if(F){const G=Z*n,se=Math.max(G,4);H.actualWidth=G,H.width=se,H.isSmall=G<64,H.isHuge=G>=500,H.isSmall||(H.height=Vn,H.top=hl+(Vn+rs)*j.row)}k.useEffect(()=>{if(!F||!l.current)return;let V=0;const G=()=>{const se=l.current;if(!se)return;const C=Date.now()-U,fe=Math.max(C*n,2);se.style.width=`${fe}px`,se.style.setProperty("--span-width",`${fe}px`),V=requestAnimationFrame(G)};return V=requestAnimationFrame(G),()=>cancelAnimationFrame(V)},[F,U,n]);const $=j;return T.jsxs(T.Fragment,{children:[T.jsx("button",{"aria-label":`${u.name} - ${B}`,className:Bt(pe.spanNode,H.isHuge&&pe.huge,H.isSmall&&pe.small,H.isExpanded&&pe.xHover,t.isHighlighted?pe.colorHighlight:Fc(t),t.isHighlighted===!1&&pe.unlit,m,S&&pe.hasSegments),"data-span-id":u.spanId,"data-start-time":j.startTime-r.startTime,"data-right-side":H.isNearRightSide,"data-selected":t.isSelected?"":void 0,ref:l,style:cD(H,j,r,n),type:"button",children:T.jsx(QL,{durationMs:Z,resourceType:d,node:$,layout:H})}),j.events&&!H.isSmall?j.events.map(V=>T.jsx(hD,{customSpanEventClassNameFunc:o,event:V,node:j,root:r,scale:n,asBoundary:b},V.key)):null]})}),fD={step_started:"Started",step_retrying:"Retrying",step_failed:"Failed",hook_created:"Created",hook_received:"Received",hook_disposed:"Resolved",wait_created:"Sleep started",wait_completed:"Sleep completed",run_started:"Started",run_completed:"Completed",run_failed:"Run failed",step_completed:"Completed"},hD=k.memo(function({event:t,node:r,root:n,scale:a,customSpanEventClassNameFunc:i,asBoundary:s=!1}){const o=k.useRef(null);k.useEffect(()=>(t.ref=o,()=>{t.ref=void 0}),[t]);const{event:{name:l}}=t,u=hr(t.timestamp-n.startTime),d=s?fD[l]??l:l,c=s&&(l==="step_started"||l==="run_started"||l==="step_retrying"),f=s&&(l==="step_completed"||l==="run_completed");let m=null,b=null;if((c||f)&&r.events){const N=[...r.events].sort((U,O)=>U.timestamp-O.timestamp),F=N.findIndex(U=>U.key===t.key);if(f){let U=null;for(let O=F-1;O>=0;O--)if(N[O].event.name==="step_started"){U=N[O].timestamp;break}U!==null&&(m=hr(t.timestamp-U),b="Executed")}else{const U=N[F+1],O=U?U.timestamp:r.endTime;m=hr(O-t.timestamp),b=l==="step_retrying"?"Waited":"Executed"}}const y=(t.timestamp-n.startTime)*a,w=hl+(Vn+rs)*r.row,E=r.duration<=0||(t.timestamp-r.startTime)/r.duration<.5,A=i?i(t):"";return T.jsxs("div",{title:m?`${d} ${u}
|
|
467
|
+
${b} ${m}`:`${d} ${u}`,className:Bt(pe.spanNodeEvent,A,s&&pe.boundaryMarker,r.isHighlighted?pe.colorHighlight:Fc(r),r.isHighlighted===!1&&pe.unlit),"data-hovered":t.isHovered,ref:o,style:{left:y,top:w},children:[T.jsx("div",{className:Bt(pe.hoverInfo,E?pe.alignStart:pe.alignEnd),children:s?T.jsxs(T.Fragment,{children:[T.jsx("span",{className:pe.eventName,children:d}),T.jsx("span",{className:pe.eventTimestamp,children:u}),m?T.jsxs(T.Fragment,{children:[T.jsx("span",{className:pe.eventName,children:b}),T.jsx("span",{className:pe.eventTimestamp,children:m})]}):null]}):T.jsxs(T.Fragment,{children:[T.jsx("span",{className:pe.eventName,children:l}),T.jsx("span",{className:pe.eventTimestamp,children:u})]})}),s?T.jsx("div",{className:pe.boundaryLine}):T.jsx("div",{className:pe.eventDiamond})]})}),z4={"gray-700":"var(--ds-gray-700)","gray-900":"var(--ds-gray-900)"};function mD({size:e=16,color:t="gray-700"}){const r={color:z4[t]||t};return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:r,"aria-hidden":!0,children:[T.jsx("title",{children:"Cross"}),T.jsx("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function pD({size:e=16}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,className:pe.detailHeadingIcon,children:[T.jsx("title",{children:"Chevron Down"}),T.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function gD({size:e=16,color:t="gray-900"}){const r={color:z4[t]||t};return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:r,"aria-hidden":!0,children:[T.jsx("title",{children:"External Small"}),T.jsx("path",{d:"M14 4h6m0 0v6m0-6L10 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),T.jsx("path",{d:"M20 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function bD(e){const{as:t,className:r,href:n,children:a,...i}=e;return(t||"a")==="span"||!n?T.jsx("span",{className:r,...i,children:a}):T.jsx("a",{className:r,href:n,...i,children:a})}function yD(e){const{className:t,children:r,size:n,...a}=e;return T.jsx("a",{...a,className:Bt(pe.buttonLink,t),children:r})}function xD({children:e,className:t}){return T.jsx("div",{className:Bt(pe.note,t),children:e})}function Uh({width:e,height:t,rounded:r}){return T.jsx("span",{className:Bt(pe.skeleton,r&&pe.skeletonRounded),style:{width:e,height:t},"aria-hidden":!0})}const jh=e=>`${(100*e).toFixed(3)}%`,$h=(e,t)=>e<t?-1:e>t?1:0,qh=e=>{const t={};for(const[n,a]of Object.entries(e)){const i=n.indexOf(".");let s="",o="";i!==-1?(s=n.substring(0,i),o=n.substring(i+1)):o=n;let l=t[s];l||(l={prefix:s,attributes:[]},t[s]=l),l.attributes.push({key:n,suffix:o,value:String(a)})}const r=Array.from(Object.values(t)).sort((n,a)=>$h(n.prefix,a.prefix));for(const n of r)n.attributes.sort((a,i)=>$h(a.suffix,i.suffix));return r},ED=(e,t)=>{const r=[];if(!t)return r;for(let n=t;"parent"in n;n=n.parent)r.unshift(n);return r},TD=()=>{var d;const{state:{root:e,selected:t,resourceMap:r,getQuickLinks:n},dispatch:a}=ml(),i=k.useMemo(()=>ED(e,t),[e,t]),s=k.useMemo(()=>qh((t==null?void 0:t.span.attributes)??{}),[t]),o=k.useMemo(()=>{const c=t==null?void 0:t.span.resource;if(!c)return[];const f=r[c];return f?qh(f):[]},[r,t]);if(!t)return null;const{span:l}=t,u=U4(t);return T.jsxs(T.Fragment,{children:[t.isVercel?T.jsx(AD,{node:t}):null,t.isInstrumentationHint?T.jsx(ND,{}):null,!t.isInstrumentationHint&&i.length?T.jsx(jn,{className:pe.ancestorGroup,name:"Location",children:i.map(c=>T.jsxs("button",{className:pe.ancestorNode,onClick:()=>a({type:"select",id:c.span.spanId}),type:"button",children:[T.jsxs("div",{className:pe.ancestorText,children:[T.jsx("span",{className:pe.ancestorName,children:c.label||c.span.name}),T.jsx("span",{className:pe.ancestorDuration,children:hr(c.duration)})]}),T.jsx("span",{"aria-hidden":!0,className:pe.ancestorLineContainer,children:T.jsx("span",{className:Bt(pe.ancestorLine,Fc(c)),style:{left:jh((c.startTime-e.startTime)/e.duration),width:jh(c.duration/e.duration)}})})]},`${t.span.spanId}.${c.span.spanId}`))}):null,u?T.jsx(SD,{getQuickLinks:n,span:t.span}):null,(d=t.events)!=null&&d.length?T.jsx(jn,{name:"Events",children:t.events.map(c=>T.jsxs(k.Fragment,{children:[T.jsxs("dl",{className:pe.spanDetailPanelAttribute,children:[T.jsx("dt",{className:pe.spanDetailPanelAttributeKey,children:c.event.name}),T.jsx("dd",{className:pe.spanDetailPanelAttributeValue,children:hr(c.timestamp-e.startTime)})]}),Object.entries(c.event.attributes).map(([f,m])=>T.jsx(wi,{name:`${c.event.name}.${f}`,value:m},f))]},c.key))}):null,s.length?T.jsx(jn,{name:"Attributes",children:s.map(c=>T.jsx(k.Fragment,{children:c.attributes.map(({key:f,value:m})=>T.jsx(wi,{name:f,value:m},f))},c.prefix))}):null,o.length?T.jsx(jn,{name:"Resource",children:o.map(c=>T.jsx(k.Fragment,{children:c.attributes.map(({key:f,value:m})=>T.jsx(wi,{name:f,value:m},f))},c.prefix))}):null,t.isInstrumentationHint?null:T.jsxs(jn,{name:"Library",children:[T.jsx(wi,{name:"name",value:l.library.name}),l.library.version?T.jsx(wi,{name:"version",value:l.library.version}):null]})]})};function nP({attached:e=!1}){const{state:{selected:t,isMobile:r},dispatch:n}=ml(),a=vR();if(!t)return null;const{span:i}=t;return T.jsxs("div",{className:Bt(pe.spanDetailPanel,r&&pe.mobile),children:[e&&!r?T.jsx(ID,{}):null,T.jsx("div",{className:pe.spanDetailPanelTop,children:T.jsxs("div",{className:pe.spanDetailPanelTopInfo,children:[T.jsx("span",{className:pe.spanDetailPanelName,title:i.name,children:i.name}),T.jsxs("div",{className:pe.spanDetailPanelCorner,children:[t.isInstrumentationHint?null:T.jsx("span",{className:pe.spanDetailPanelDuration,children:hr(t.duration)}),T.jsx("div",{className:pe.spanDetailPanelCloseVerticalRule}),T.jsx("button",{"aria-label":"Close Span Details",className:pe.spanDetailPanelClose,onClick:()=>n({type:"deselect"}),type:"button",children:T.jsx(mD,{color:"gray-700",size:20})})]})]})}),T.jsx("div",{className:Bt("flex gap-3",pe.spanDetailPanelBody),children:a||T.jsx(TD,{})})]})}const Vh="vc-trace-span-exp:";function jn({name:e,className:t="",children:r}){const[n,a]=k.useState(()=>"localStorage"in globalThis?localStorage.getItem(`${Vh}${e}`)!=="0":!0),i=k.useCallback(()=>{a(s=>{const o=!s;return localStorage.setItem(`${Vh}${e}`,String(Number(o))),o})},[e]);return T.jsxs("div",{className:Bt(pe.detailGroup,n?pe.expanded:pe.collapsed,t),children:[T.jsxs("button",{className:pe.detailHeading,onClick:i,type:"button",children:[T.jsx("span",{children:e}),T.jsx(pD,{})]}),n?r:null]})}const vD=new Set(["OPTIONS","HEAD","GET","PUT","POST","DELETE"]),wD={"Resolve Deployment":"How long it took Vercel's routing layer to retrieve details for the deployment.","Resolve Cache":"How long it took Vercel's routing layer to check for a cached function invocation.","Resolve Route":"How long it took Vercel's routing layer to resolve routing rules, including redirects and rewrites.","Invoke Middleware":"How long it took this middleware to start and run user code.","Invoke Function":"How long it took this Vercel Function to start and run user code.",waitUntil:"How long it took to run user code inside of waitUntil.","Start VM":"How long it took to start the Virtual Machine which contains the Vercel Function.","Spawn Node.js":"How long it took the Virtual Machine to start the Node.js runtime.","Spawn Python":"How long it took the Virtual Machine to start the Python runtime.","Init User Code":"How long it took to import the user code and run any globally-scoped code."},Wh=new Set(["Start VM","Spawn Node.js","Spawn Python","Init User Code"]),Gh=e=>{if(!e||!("span"in e))return null;const t=e.span.attributes,r=t["vercel.region"]||t["vercel.function.region"];return r?String(r):null},kD=e=>{const{name:t}=e.span,r=Gh(e),n=Gh(e.parent);return e.span.attributes["vercel.middleware.internal"]==="true"?"The Vercel Toolbar created this middleware.":Wh.has(t)||t==="Invoke Function"&&e.children.some(a=>Wh.has(a.span.name))?"This function encountered a cold start.":r&&n&&r!==n?"This request was routed across regions.":null},U4=e=>{if(!e.isVercel)return!1;const{name:t}=e.span,r=t.indexOf(" ");if(r===-1)return!1;const n=t.substring(0,r);return vD.has(n)};function AD({node:e}){const{name:t}=e.span;let r=wD[t];if(!r&&U4(e)&&(r="How long it took for Vercel to process the request and send the response."),!r)return null;const n=kD(e);return T.jsx(jn,{name:"What is this?",children:T.jsxs("div",{className:pe.infraSpanDescription,children:[T.jsx("span",{children:r}),n&&T.jsx(xD,{children:n})]})})}const SD=k.memo(function({getQuickLinks:t,span:r}){const n=t(r);return n.length?T.jsx(jn,{name:"Links",children:n.map(({key:a,value:i})=>T.jsx(CD,{link:i,name:a},a))}):null});function _D(e){const[t,r]=k.useState({}),n=e.__resolvedValue!==void 0||e.__rejectedValue!==void 0;return k.useEffect(()=>{n||e.then(a=>{e.__resolvedValue=a}).catch(a=>{e.__rejectedValue=a}).finally(()=>r({}))},[e,n]),e.__resolvedValue}function CD({name:e,link:t}){const r=_D(t);return T.jsxs(bD,{as:r?void 0:"span",className:Bt(pe.spanDetailPanelAttribute,pe.spanDetailPanelQuickLink),href:(r==null?void 0:r.href)||"",children:[T.jsx("span",{className:pe.spanDetailPanelAttributeKey,children:e}),T.jsx("span",{className:Bt(pe.spanDetailPanelAttributeValue,pe.spanDetailPanelQuickLinkLabel),children:r?T.jsxs(T.Fragment,{children:[r.label,r.icon||T.jsx(gD,{color:"gray-900"})]}):T.jsxs(T.Fragment,{children:[T.jsx(Uh,{height:18,width:32+e.length*8}),T.jsx(Uh,{height:18,rounded:!0,width:18})]})})]})}function ND(){return T.jsx(jn,{name:"What is this?",children:T.jsxs("div",{className:pe.infraSpanDescription,children:[T.jsx("span",{children:"You can visualize your application's spans alongside Vercel's spans in this viewer."}),T.jsx(yD,{href:"https://vercel.com/docs/session-tracing#adding-custom-spans",size:"small",target:"_blank",children:"Get Started"})]})})}function wi({name:e,value:t}){return T.jsxs("dl",{className:pe.spanDetailPanelAttribute,children:[T.jsx("dt",{className:pe.spanDetailPanelAttributeKey,children:e}),T.jsx("dd",{className:pe.spanDetailPanelAttributeValue,title:String(t),children:String(t)})]})}function ID(){const{state:{panelWidth:e},dispatch:t}=ml(),r=k.useRef({start:{x:0,width:e},x:0,width:e,isHeld:!1});r.current.width=e;const n=k.useCallback(i=>{if(i.pointerType!=="mouse")return;i.preventDefault();const s=r.current;s.start.x=i.clientX,s.x=i.clientX,s.start.width=s.width,s.isHeld=!0},[]),a=k.useCallback(()=>{t({type:"setPanelWidth",width:Pc.panelWidth})},[t]);return k.useEffect(()=>{let i=0;const s=()=>{const u=r.current,d=u.start.width+u.start.x-u.x;t({type:"setPanelWidth",width:d})},o=u=>{r.current.isHeld&&(u.preventDefault(),r.current.x=u.clientX,cancelAnimationFrame(i),i=requestAnimationFrame(s))},l=()=>{r.current.isHeld=!1};return window.addEventListener("pointermove",o),window.addEventListener("pointerup",l),()=>{window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",l)}},[t]),T.jsx("div",{"aria-hidden":!0,className:pe.spanDetailPanelResizer,onDoubleClick:a,onPointerDown:n})}function RD(e){const t=k.useRef({});return{setStyle:k.useCallback((n,a)=>{if(t.current[n]=a,!!e.current){if(!a){e.current.style.removeProperty(n);return}e.current.style.setProperty(n,a)}},[e]),styleRef:t,style:{...t.current}}}const OD=()=>"devicePixelRatio"in globalThis&&globalThis.devicePixelRatio||1,LD=()=>{const[e,t]=k.useState(1);return k.useLayoutEffect(()=>{const r=()=>t(OD()),n=matchMedia(`(resolution: ${e}dppx)`);return n.addEventListener("change",r),r(),()=>{n.removeEventListener("change",r)}},[e]),e},ki=Do,aP=k.memo(function({timelineRef:t,rows:r,scale:n}){const{state:{root:a,baseScale:i,timelineWidth:s,width:o,scrollbarWidth:l}}=ml(),u=o+Do*2,d=LD(),c=k.useRef(null),f=k.useRef(null),m=o/(o-l)*Math.min(o/s,i/n),b=Math.min(o,(s-l)*m);k.useEffect(()=>{let A=!1,N=0,F;const U=S=>{var H;return!!((H=c.current)!=null&&H.contains(S))};let O=0;const W=()=>{if(!A||!F)return;const S=t.current;if(!S)return;const H=N-b*.5-F.left;S.scrollLeft=H/m},X=S=>{({clientX:N}=S),cancelAnimationFrame(O),O=requestAnimationFrame(W)},Z=S=>{var H;U(S.target)&&(A=!0,F=(H=c.current)==null?void 0:H.getBoundingClientRect(),X(S))},B=()=>{A=!1,F=void 0},re=S=>{U(S.target)&&S.cancelable&&S.preventDefault()},j=S=>{A&&S.cancelable&&S.preventDefault()};return window.addEventListener("pointerdown",Z),window.addEventListener("pointermove",X),window.addEventListener("pointerup",B),window.addEventListener("blur",B),window.addEventListener("touchstart",re,{passive:!1}),window.addEventListener("touchmove",j,{passive:!1}),()=>{window.removeEventListener("pointerdown",Z),window.removeEventListener("pointermove",X),window.removeEventListener("pointerup",B),window.removeEventListener("blur",B),window.removeEventListener("touchstart",re),window.removeEventListener("touchmove",j),cancelAnimationFrame(O)}},[t,m,b]),k.useEffect(()=>{const A=f.current,N=A==null?void 0:A.getContext("2d");if(!A||!N)return;const U=requestAnimationFrame(()=>{N.resetTransform(),N.clearRect(0,0,A.width,A.height),N.scale(d,d);const O=1,W=3,X=(u-ki*2)/a.duration;N.fillStyle="#ccc",N.beginPath();for(const Z of r)for(const B of Z){const re=ki-O+(O+W)*B.row;if(re>=Oa-W-ki)break;const j=ki+(B.startTime-a.startTime)*X,S=B.duration*X;N.roundRect(j,re,S,W,W)}N.fill()});return()=>cancelAnimationFrame(U)},[d,a,u,r]);const y=k.useRef(null),{style:w,setStyle:E}=RD(y);return k.useLayoutEffect(()=>{const A=t.current;if(!A)return;let N=0;const F=()=>{E("transform",`translateX(${ki+A.scrollLeft*m}px)`)};F();const U=()=>{cancelAnimationFrame(N),N=requestAnimationFrame(F)};return A.addEventListener("scroll",U),()=>{cancelAnimationFrame(N),A.removeEventListener("scroll",U)}},[t,m,E]),T.jsxs("div",{className:pe.mapContainer,ref:c,style:{width:b>0?u:"100%",height:Oa},children:[T.jsx("canvas",{className:pe.mapCanvas,height:Oa*d,ref:f,style:{width:u,height:Oa},width:u*d}),T.jsx("div",{className:pe.mapThumb,ref:y,style:{transform:w.transform,width:b>0?b:`calc(100% - ${Do*2}px)`,top:2,height:Oa-4}})]})});function DD(e){try{const t=JSON.parse(e);return typeof t=="string"?t:JSON.stringify(t,null,2)}catch{return e}}function MD(e){try{return JSON.parse(e)}catch{return e}}const PD=J.memo(function({chunk:t,index:r}){const n=MD(t.text);return T.jsxs("div",{className:"text-[11px] rounded-md border p-3",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-gray-100)"},children:[T.jsxs("span",{className:"select-none mr-2",style:{color:"var(--ds-gray-500)"},children:["[",r,"]"]}),typeof n=="string"?T.jsx("span",{className:"whitespace-pre-wrap break-words",style:{color:"var(--ds-gray-1000)"},children:DD(n)}):T.jsx(z5,{data:n,expandLevel:1})]})});function BD(){return T.jsxs("div",{className:"flex flex-col gap-3 animate-in fade-in",children:[T.jsx(fd,{style:{width:120,height:16,borderRadius:4}}),[1,2,3,4].map(e=>T.jsx(fd,{style:{height:56,borderRadius:6}},e))]})}function iP({streamId:e,chunks:t,isLive:r,error:n,isLoading:a}){const[i,s]=k.useState(!1),o=k.useRef(null),l=k.useCallback(()=>{if(o.current){const{scrollTop:u,scrollHeight:d,clientHeight:c}=o.current,f=d-u-c<10;s(!f&&d>c)}},[]);return k.useEffect(()=>{o.current&&(o.current.scrollTop=o.current.scrollHeight),l()},[t.length,l]),a&&t.length===0?T.jsx("div",{className:"flex flex-col h-full pb-4",children:T.jsx(BD,{})}):T.jsxs("div",{className:"flex flex-col h-full pb-4",children:[r&&T.jsxs("div",{className:"flex items-center gap-1.5 mb-3 px-1",children:[T.jsx("span",{className:"inline-block w-2 h-2 rounded-full",style:{backgroundColor:"var(--ds-green-600)"}}),T.jsx("span",{className:"text-xs",style:{color:"var(--ds-green-700)"},children:"Live"})]}),t.length>0&&T.jsxs("div",{className:"flex items-center gap-2 mb-2 px-1",children:[T.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--ds-gray-900)"},children:"Stream Chunks"}),T.jsxs("span",{className:"text-xs tabular-nums",style:{color:"var(--ds-gray-600)"},children:["(",t.length,")"]})]}),T.jsxs("div",{className:"relative flex-1 min-h-[200px]",children:[T.jsx("div",{ref:o,onScroll:l,className:"absolute inset-0 overflow-auto flex flex-col gap-2",children:n?T.jsxs("div",{className:"text-[11px] rounded-md border p-3",style:{borderColor:"var(--ds-red-300)",backgroundColor:"var(--ds-red-100)",color:"var(--ds-red-700)"},children:[T.jsx("div",{children:"Error reading stream:"}),T.jsx("div",{children:n})]}):t.length===0?T.jsx("div",{className:"text-[11px] rounded-md border p-3",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-gray-100)",color:"var(--ds-gray-600)"},children:r?"Waiting for stream data...":"Stream is empty"}):t.map((u,d)=>T.jsx(PD,{chunk:u,index:d},`${e}-chunk-${u.id}`))}),i&&T.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 pointer-events-none",style:{background:"linear-gradient(to top, var(--ds-background-100), transparent)"}})]})]})}function FD(e){const t=zD(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let a=0;a<r.byteLength;a++)n.setUint8(a,t.charCodeAt(a));return r}const HD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function zD(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",r=0,n=0;for(let a=0;a<e.length;a++)r<<=6,r|=HD.indexOf(e[a]),n+=6,n===24&&(t+=String.fromCharCode((r&16711680)>>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const UD=-1,jD=-2,$D=-3,qD=-4,VD=-5,WD=-6;function GD(e,t){return j4(JSON.parse(e),t)}function j4(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);function a(i,s=!1){if(i===UD)return;if(i===$D)return NaN;if(i===qD)return 1/0;if(i===VD)return-1/0;if(i===WD)return-0;if(s||typeof i!="number")throw new Error("Invalid input");if(i in n)return n[i];const o=r[i];if(!o||typeof o!="object")n[i]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const l=o[0],u=t==null?void 0:t[l];if(u){let d=o[1];return typeof d!="number"&&(d=r.push(o[1])-1),n[i]=u(a(d))}switch(l){case"Date":n[i]=new Date(o[1]);break;case"Set":const d=new Set;n[i]=d;for(let m=1;m<o.length;m+=1)d.add(a(o[m]));break;case"Map":const c=new Map;n[i]=c;for(let m=1;m<o.length;m+=2)c.set(a(o[m]),a(o[m+1]));break;case"RegExp":n[i]=new RegExp(o[1],o[2]);break;case"Object":n[i]=Object(o[1]);break;case"BigInt":n[i]=BigInt(o[1]);break;case"null":const f=Object.create(null);n[i]=f;for(let m=1;m<o.length;m+=2)f[o[m]]=a(o[m+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const m=globalThis[l],b=new m(a(o[1]));n[i]=o[2]!==void 0?b.subarray(o[2],o[3]):b;break}case"ArrayBuffer":{const m=o[1],b=FD(m);n[i]=b;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const m=l.slice(9);n[i]=Temporal[m].from(o[1]);break}case"URL":{const m=new URL(o[1]);n[i]=m;break}case"URLSearchParams":{const m=new URLSearchParams(o[1]);n[i]=m;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(o.length);n[i]=l;for(let u=0;u<o.length;u+=1){const d=o[u];d!==jD&&(l[u]=a(d))}}else{const l={};n[i]=l;for(const u in o){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=o[u];l[u]=a(d)}}return n[i]}return a(0)}const h0={DEVALUE_V1:"devl"},Ks=4;new TextEncoder;const YD=new TextDecoder;function XD(e){if(!(e instanceof Uint8Array))return{format:h0.DEVALUE_V1,payload:new TextEncoder().encode(JSON.stringify(e))};if(e.length<Ks)throw new Error(`Data too short to contain format prefix: expected at least ${Ks} bytes, got ${e.length}`);const t=e.subarray(0,Ks),r=YD.decode(t),n=Object.values(h0);if(!n.includes(r))throw new Error(`Unknown serialization format: "${r}". Known formats: ${n.join(", ")}`);const a=e.subarray(Ks);return{format:r,payload:a}}function Yr(e,t){if(e instanceof Uint8Array){const{format:r,payload:n}=XD(e);if(r===h0.DEVALUE_V1){const a=new TextDecoder().decode(n);return GD(a,t)}throw new Error(`Unsupported serialization format: ${r}`)}return Array.isArray(e)?j4(e,t):e}const du="strm_",KD="__workflow_stream_ref__",QD="__workflow_class_instance_ref__";class JD{constructor(t,r,n){Ge(this,"className");Ge(this,"classId");Ge(this,"data");Ge(this,"__type",QD);this.className=t,this.classId=r,this.data=n}toJSON(){return{__type:this.__type,className:this.className,classId:this.classId,data:this.data}}}const fu=e=>{let t;if("name"in e){const r=String(e.name);r.startsWith(du)?t=r:t=`${du}${r}`}else t=`${du}null`;return{__type:KD,streamId:t}},ZD=e=>!e||typeof e!="object"?"null":"stepId"in e?`<step:${e.stepId}>`:"<function>",$4=e=>{if(!e)return"Unknown";const t=e.split("/");return t[t.length-1]||e},eM=e=>new JD($4(e.classId),e.classId,e.data),tM=e=>`<class:${$4(e.classId)}>`,sP={ReadableStream:fu,WritableStream:fu,TransformStream:fu,StepFunction:ZD,Instance:eM,Class:tM};function rM(e,t){let r=e.input,n=e.output;if(e.input!=null)try{r=Yr(e.input,t)}catch{}if(e.output!=null)try{n=Yr(e.output,t)}catch{}return{...e,input:r,output:n}}function nM(e,t){let r=e.input,n=e.output;if(e.input!=null)try{r=Yr(e.input,t)}catch{}if(e.output!=null)try{n=Yr(e.output,t)}catch{}return{...e,input:r,output:n}}function aM(e,t){if(!e.eventData)return e;const r={...e.eventData};if("result"in r&&r.result!=null)try{r.result=Yr(r.result,t)}catch{}if("input"in r&&r.input!=null)try{r.input=Yr(r.input,t)}catch{}if("output"in r&&r.output!=null)try{r.output=Yr(r.output,t)}catch{}if("metadata"in r&&r.metadata!=null)try{r.metadata=Yr(r.metadata,t)}catch{}if("payload"in r&&r.payload!=null)try{r.payload=Yr(r.payload,t)}catch{}return{...e,eventData:r}}function iM(e,t){if(e.metadata==null)return e;let r=e.metadata;try{r=Yr(e.metadata,t)}catch{}return{...e,metadata:r}}function oP(e,t){if(!e)return e;let r;if("stepId"in e?r=rM(e,t):"hookId"in e?r=iM(e,t):"eventId"in e?r=aM(e,t):r=nM(e,t),"executionContext"in r){const{executionContext:n,...a}=r,i=n&&typeof n=="object"&&"workflowCoreVersion"in n?n.workflowCoreVersion:void 0;return i?{...a,workflowCoreVersion:i}:a}return r}const lP=10;function q4(...e){return tm(Bt(e))}const uP=5e3;function cP(e,t,r){return r?`Page ${e} of ${t}+`:`Page ${e} of ${t}`}const dP=v6,fP=w6,sM=k.forwardRef(({className:e,sideOffset:t=4,...r},n)=>T.jsx(Y1,{ref:n,sideOffset:t,className:q4("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));sM.displayName=Y1.displayName;const V4=k.createContext(null);function hP({children:e,serverConfig:t}){const r={serverConfig:t};return T.jsx(V4.Provider,{value:r,children:e})}function mP(){const e=k.useContext(V4);if(!e)throw new Error("useServerConfig must be used within a ServerConfigProvider");return e}function Yh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function W4(...e){return t=>{let r=!1;const n=e.map(a=>{const i=Yh(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():Yh(e[a],null)}}}}function pP(...e){return k.useCallback(W4(...e),e)}var G4=k.forwardRef((e,t)=>{const{children:r,...n}=e,a=k.Children.toArray(r),i=a.find(lM);if(i){const s=i.props.children,o=a.map(l=>l===i?k.Children.count(s)>1?k.Children.only(null):k.isValidElement(s)?s.props.children:null:l);return T.jsx(m0,{...n,ref:t,children:k.isValidElement(s)?k.cloneElement(s,void 0,o):null})}return T.jsx(m0,{...n,ref:t,children:r})});G4.displayName="Slot";var m0=k.forwardRef((e,t)=>{const{children:r,...n}=e;if(k.isValidElement(r)){const a=cM(r);return k.cloneElement(r,{...uM(n,r.props),ref:t?W4(t,a):a})}return k.Children.count(r)>1?k.Children.only(null):null});m0.displayName="SlotClone";var oM=({children:e})=>T.jsx(T.Fragment,{children:e});function lM(e){return k.isValidElement(e)&&e.type===oM}function uM(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...o)=>{i(...o),a(...o)}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function cM(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Xh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kh=Bt,dM=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Kh(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=t,s=Object.keys(a).map(u=>{const d=r==null?void 0:r[u],c=i==null?void 0:i[u];if(d===null)return null;const f=Xh(d)||Xh(c);return a[u][f]}),o=r&&Object.entries(r).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:c,className:f,...m}=d;return Object.entries(m).every(b=>{let[y,w]=b;return Array.isArray(w)?w.includes({...i,...o}[y]):{...i,...o}[y]===w})?[...u,c,f]:u},[]);return Kh(e,s,l,r==null?void 0:r.class,r==null?void 0:r.className)},fM=dM("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),hM=k.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...a},i)=>{const s=n?G4:"button";return T.jsx(s,{className:q4(fM({variant:t,size:r,className:e})),ref:i,...a})});hM.displayName="Button";let p0;try{p0=new TextDecoder}catch{}let Te,ua,ne=0;const mM=105,pM=57342,gM=57343,Qh=57337,Jh=6,Na={};let Ai=11281e4,hn=1681e4,$e={},ft,Mo,Po=0,ns=0,wt,Tr,xt=[],g0=[],rr,$t,Oi,Zh={useRecords:!1,mapsAsObjects:!0},as=!1,Y4=2;try{new Function("")}catch{Y4=1/0}class is{constructor(t){if(t&&((t.keyMap||t._keyMap)&&!t.useRecords&&(t.useRecords=!1,t.mapsAsObjects=!0),t.useRecords===!1&&t.mapsAsObjects===void 0&&(t.mapsAsObjects=!0),t.getStructures&&(t.getShared=t.getStructures),t.getShared&&!t.structures&&((t.structures=[]).uninitialized=!0),t.keyMap)){this.mapKey=new Map;for(let[r,n]of Object.entries(t.keyMap))this.mapKey.set(n,r)}Object.assign(this,t)}decodeKey(t){return this.keyMap&&this.mapKey.get(t)||t}encodeKey(t){return this.keyMap&&this.keyMap.hasOwnProperty(t)?this.keyMap[t]:t}encodeKeys(t){if(!this._keyMap)return t;let r=new Map;for(let[n,a]of Object.entries(t))r.set(this._keyMap.hasOwnProperty(n)?this._keyMap[n]:n,a);return r}decodeKeys(t){if(!this._keyMap||t.constructor.name!="Map")return t;if(!this._mapKey){this._mapKey=new Map;for(let[n,a]of Object.entries(this._keyMap))this._mapKey.set(a,n)}let r={};return t.forEach((n,a)=>r[vr(this._mapKey.has(a)?this._mapKey.get(a):a)]=n),r}mapDecode(t,r){let n=this.decode(t);if(this._keyMap)switch(n.constructor.name){case"Array":return n.map(a=>this.decodeKeys(a))}return n}decode(t,r){if(Te)return J4(()=>(E0(),this?this.decode(t,r):is.prototype.decode.call(Zh,t,r)));ua=r>-1?r:t.length,ne=0,ns=0,Mo=null,wt=null,Te=t;try{$t=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(n){throw Te=null,t instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(t&&typeof t=="object"?t.constructor.name:typeof t))}if(this instanceof is){if($e=this,rr=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return ft=this.structures,Qs();(!ft||ft.length>0)&&(ft=[])}else $e=Zh,(!ft||ft.length>0)&&(ft=[]),rr=null;return Qs()}decodeMultiple(t,r){let n,a=0;try{let i=t.length;as=!0;let s=this?this.decode(t,i):Uc.decode(t,i);if(r){if(r(s)===!1)return;for(;ne<i;)if(a=ne,r(Qs())===!1)return}else{for(n=[s];ne<i;)a=ne,n.push(Qs());return n}}catch(i){throw i.lastPosition=a,i.values=n,i}finally{as=!1,E0()}}}function Qs(){try{let e=qe();if(wt){if(ne>=wt.postBundlePosition){let t=new Error("Unexpected bundle position");throw t.incomplete=!0,t}ne=wt.postBundlePosition,wt=null}if(ne==ua)ft=null,Te=null,Tr&&(Tr=null);else if(ne>ua){let t=new Error("Unexpected end of CBOR data");throw t.incomplete=!0,t}else if(!as)throw new Error("Data read, but end of buffer not reached");return e}catch(e){throw E0(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function qe(){let e=Te[ne++],t=e>>5;if(e=e&31,e>23)switch(e){case 24:e=Te[ne++];break;case 25:if(t==7)return EM();e=$t.getUint16(ne),ne+=2;break;case 26:if(t==7){let r=$t.getFloat32(ne);if($e.useFloat32>2){let n=zc[(Te[ne]&127)<<1|Te[ne+1]>>7];return ne+=4,(n*r+(r>0?.5:-.5)>>0)/n}return ne+=4,r}e=$t.getUint32(ne),ne+=4;break;case 27:if(t==7){let r=$t.getFloat64(ne);return ne+=8,r}if(t>1){if($t.getUint32(ne)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=$t.getUint32(ne+4)}else $e.int64AsNumber?(e=$t.getUint32(ne)*4294967296,e+=$t.getUint32(ne+4)):e=$t.getBigUint64(ne);ne+=8;break;case 31:switch(t){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let r=[],n,a=0;for(;(n=qe())!=Na;){if(a>=Ai)throw new Error(`Array length exceeds ${Ai}`);r[a++]=n}return t==4?r:t==3?r.join(""):Buffer.concat(r);case 5:let i;if($e.mapsAsObjects){let s={},o=0;if($e.keyMap)for(;(i=qe())!=Na;){if(o++>=hn)throw new Error(`Property count exceeds ${hn}`);s[vr($e.decodeKey(i))]=qe()}else for(;(i=qe())!=Na;){if(o++>=hn)throw new Error(`Property count exceeds ${hn}`);s[vr(i)]=qe()}return s}else{Oi&&($e.mapsAsObjects=!0,Oi=!1);let s=new Map;if($e.keyMap){let o=0;for(;(i=qe())!=Na;){if(o++>=hn)throw new Error(`Map size exceeds ${hn}`);s.set($e.decodeKey(i),qe())}}else{let o=0;for(;(i=qe())!=Na;){if(o++>=hn)throw new Error(`Map size exceeds ${hn}`);s.set(i,qe())}}return s}case 7:return Na;default:throw new Error("Invalid major type for indefinite length "+t)}default:throw new Error("Unknown token "+e)}switch(t){case 0:return e;case 1:return~e;case 2:return xM(e);case 3:if(ns>=ne)return Mo.slice(ne-Po,(ne+=e)-Po);if(ns==0&&ua<140&&e<32){let a=e<16?X4(e):yM(e);if(a!=null)return a}return bM(e);case 4:if(e>=Ai)throw new Error(`Array length exceeds ${Ai}`);let r=new Array(e);for(let a=0;a<e;a++)r[a]=qe();return r;case 5:if(e>=hn)throw new Error(`Map size exceeds ${Ai}`);if($e.mapsAsObjects){let a={};if($e.keyMap)for(let i=0;i<e;i++)a[vr($e.decodeKey(qe()))]=qe();else for(let i=0;i<e;i++)a[vr(qe())]=qe();return a}else{Oi&&($e.mapsAsObjects=!0,Oi=!1);let a=new Map;if($e.keyMap)for(let i=0;i<e;i++)a.set($e.decodeKey(qe()),qe());else for(let i=0;i<e;i++)a.set(qe(),qe());return a}case 6:if(e>=Qh){let a=ft[e&8191];if(a)return a.read||(a.read=b0(a)),a.read();if(e<65536){if(e==gM){let i=Da(),s=qe(),o=qe();x0(s,o);let l={};if($e.keyMap)for(let u=2;u<i;u++){let d=$e.decodeKey(o[u-2]);l[vr(d)]=qe()}else for(let u=2;u<i;u++){let d=o[u-2];l[vr(d)]=qe()}return l}else if(e==pM){let i=Da(),s=qe();for(let o=2;o<i;o++)x0(s++,qe());return qe()}else if(e==Qh)return SM();if($e.getShared&&(Hc(),a=ft[e&8191],a))return a.read||(a.read=b0(a)),a.read()}}let n=xt[e];if(n)return n.handlesRead?n(qe):n(qe());{let a=qe();for(let i=0;i<g0.length;i++){let s=g0[i](e,a);if(s!==void 0)return s}return new pa(a,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 31:default:let a=(rr||oa())[e];if(a!==void 0)return a;throw new Error("Unknown token "+e)}default:if(isNaN(e)){let a=new Error("Unexpected end of CBOR data");throw a.incomplete=!0,a}throw new Error("Unknown CBOR token "+e)}}const e1=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function b0(e){if(!e)throw new Error("Structure is required in record definition");function t(){let r=Te[ne++];if(r=r&31,r>23)switch(r){case 24:r=Te[ne++];break;case 25:r=$t.getUint16(ne),ne+=2;break;case 26:r=$t.getUint32(ne),ne+=4;break;default:throw new Error("Expected array header, but got "+Te[ne-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===r)return n(qe);n=n.next}if(this.slowReads++>=Y4){let i=this.length==r?this:this.slice(0,r);return n=$e.keyMap?new Function("r","return {"+i.map(s=>$e.decodeKey(s)).map(s=>e1.test(s)?vr(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>e1.test(s)?vr(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=r,this.compiledReader=n,n(qe)}let a={};if($e.keyMap)for(let i=0;i<r;i++)a[vr($e.decodeKey(this[i]))]=qe();else for(let i=0;i<r;i++)a[vr(this[i])]=qe();return a}return e.slowReads=0,t}function vr(e){if(typeof e=="string")return e==="__proto__"?"__proto_":e;if(typeof e=="number"||typeof e=="boolean"||typeof e=="bigint")return e.toString();if(e==null)return e+"";throw new Error("Invalid property name type "+typeof e)}let bM=y0;function y0(e){let t;if(e<16&&(t=X4(e)))return t;if(e>64&&p0)return p0.decode(Te.subarray(ne,ne+=e));const r=ne+e,n=[];for(t="";ne<r;){const a=Te[ne++];if((a&128)===0)n.push(a);else if((a&224)===192){const i=Te[ne++]&63;n.push((a&31)<<6|i)}else if((a&240)===224){const i=Te[ne++]&63,s=Te[ne++]&63;n.push((a&31)<<12|i<<6|s)}else if((a&248)===240){const i=Te[ne++]&63,s=Te[ne++]&63,o=Te[ne++]&63;let l=(a&7)<<18|i<<12|s<<6|o;l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|l&1023),n.push(l)}else n.push(a);n.length>=4096&&(t+=Nt.apply(String,n),n.length=0)}return n.length>0&&(t+=Nt.apply(String,n)),t}let Nt=String.fromCharCode;function yM(e){let t=ne,r=new Array(e);for(let n=0;n<e;n++){const a=Te[ne++];if((a&128)>0){ne=t;return}r[n]=a}return Nt.apply(String,r)}function X4(e){if(e<4)if(e<2){if(e===0)return"";{let t=Te[ne++];if((t&128)>1){ne-=1;return}return Nt(t)}}else{let t=Te[ne++],r=Te[ne++];if((t&128)>0||(r&128)>0){ne-=2;return}if(e<3)return Nt(t,r);let n=Te[ne++];if((n&128)>0){ne-=3;return}return Nt(t,r,n)}else{let t=Te[ne++],r=Te[ne++],n=Te[ne++],a=Te[ne++];if((t&128)>0||(r&128)>0||(n&128)>0||(a&128)>0){ne-=4;return}if(e<6){if(e===4)return Nt(t,r,n,a);{let i=Te[ne++];if((i&128)>0){ne-=5;return}return Nt(t,r,n,a,i)}}else if(e<8){let i=Te[ne++],s=Te[ne++];if((i&128)>0||(s&128)>0){ne-=6;return}if(e<7)return Nt(t,r,n,a,i,s);let o=Te[ne++];if((o&128)>0){ne-=7;return}return Nt(t,r,n,a,i,s,o)}else{let i=Te[ne++],s=Te[ne++],o=Te[ne++],l=Te[ne++];if((i&128)>0||(s&128)>0||(o&128)>0||(l&128)>0){ne-=8;return}if(e<10){if(e===8)return Nt(t,r,n,a,i,s,o,l);{let u=Te[ne++];if((u&128)>0){ne-=9;return}return Nt(t,r,n,a,i,s,o,l,u)}}else if(e<12){let u=Te[ne++],d=Te[ne++];if((u&128)>0||(d&128)>0){ne-=10;return}if(e<11)return Nt(t,r,n,a,i,s,o,l,u,d);let c=Te[ne++];if((c&128)>0){ne-=11;return}return Nt(t,r,n,a,i,s,o,l,u,d,c)}else{let u=Te[ne++],d=Te[ne++],c=Te[ne++],f=Te[ne++];if((u&128)>0||(d&128)>0||(c&128)>0||(f&128)>0){ne-=12;return}if(e<14){if(e===12)return Nt(t,r,n,a,i,s,o,l,u,d,c,f);{let m=Te[ne++];if((m&128)>0){ne-=13;return}return Nt(t,r,n,a,i,s,o,l,u,d,c,f,m)}}else{let m=Te[ne++],b=Te[ne++];if((m&128)>0||(b&128)>0){ne-=14;return}if(e<15)return Nt(t,r,n,a,i,s,o,l,u,d,c,f,m,b);let y=Te[ne++];if((y&128)>0){ne-=15;return}return Nt(t,r,n,a,i,s,o,l,u,d,c,f,m,b,y)}}}}}function xM(e){return $e.copyBuffers?Uint8Array.prototype.slice.call(Te,ne,ne+=e):Te.subarray(ne,ne+=e)}let K4=new Float32Array(1),Js=new Uint8Array(K4.buffer,0,4);function EM(){let e=Te[ne++],t=Te[ne++],r=(e&127)>>2;if(r===31)return t||e&3?NaN:e&128?-1/0:1/0;if(r===0){let n=((e&3)<<8|t)/16777216;return e&128?-n:n}return Js[3]=e&128|(r>>1)+56,Js[2]=(e&7)<<5|t>>3,Js[1]=t<<5,Js[0]=0,K4[0]}new Array(4096);class pa{constructor(t,r){this.value=t,this.tag=r}}xt[0]=e=>new Date(e);xt[1]=e=>new Date(Math.round(e*1e3));xt[2]=e=>{let t=BigInt(0);for(let r=0,n=e.byteLength;r<n;r++)t=BigInt(e[r])+(t<<BigInt(8));return t};xt[3]=e=>BigInt(-1)-xt[2](e);xt[4]=e=>+(e[1]+"e"+e[0]);xt[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const x0=(e,t)=>{e=e-57344;let r=ft[e];r&&r.isShared&&((ft.restoreStructures||(ft.restoreStructures=[]))[e]=r),ft[e]=t,t.read=b0(t)};xt[mM]=e=>{let t=e.length,r=e[1];x0(e[0],r);let n={};for(let a=2;a<t;a++){let i=r[a-2];n[vr(i)]=e[a]}return n};xt[14]=e=>wt?wt[0].slice(wt.position0,wt.position0+=e):new pa(e,14);xt[15]=e=>wt?wt[1].slice(wt.position1,wt.position1+=e):new pa(e,15);let TM={Error,RegExp};xt[27]=e=>(TM[e[0]]||Error)(e[1],e[2]);const Q4=e=>{if(Te[ne++]!=132){let r=new Error("Packed values structure must be followed by a 4 element array");throw Te.length<ne&&(r.incomplete=!0),r}let t=e();if(!t||!t.length){let r=new Error("Packed values structure must be followed by a 4 element array");throw r.incomplete=!0,r}return rr=rr?t.concat(rr.slice(t.length)):t,rr.prefixes=e(),rr.suffixes=e(),e()};Q4.handlesRead=!0;xt[51]=Q4;xt[Jh]=e=>{if(!rr)if($e.getShared)Hc();else return new pa(e,Jh);if(typeof e=="number")return rr[16+(e>=0?2*e:-2*e-1)];let t=new Error("No support for non-integer packed references yet");throw e===void 0&&(t.incomplete=!0),t};xt[28]=e=>{Tr||(Tr=new Map,Tr.id=0);let t=Tr.id++,r=ne,n=Te[ne],a;n>>5==4?a=[]:a={};let i={target:a};Tr.set(t,i);let s=e();return i.used?(Object.getPrototypeOf(a)!==Object.getPrototypeOf(s)&&(ne=r,a=s,Tr.set(t,{target:a}),s=e()),Object.assign(a,s)):(i.target=s,s)};xt[28].handlesRead=!0;xt[29]=e=>{let t=Tr.get(e);return t.used=!0,t.target};xt[258]=e=>new Set(e);(xt[259]=e=>($e.mapsAsObjects&&($e.mapsAsObjects=!1,Oi=!0),e())).handlesRead=!0;function Ia(e,t){return typeof e=="string"?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function oa(){if(!rr)if($e.getShared)Hc();else throw new Error("No packed values available");return rr}const vM=1399353956;g0.push((e,t)=>{if(e>=225&&e<=255)return Ia(oa().prefixes[e-224],t);if(e>=28704&&e<=32767)return Ia(oa().prefixes[e-28672],t);if(e>=1879052288&&e<=2147483647)return Ia(oa().prefixes[e-1879048192],t);if(e>=216&&e<=223)return Ia(t,oa().suffixes[e-216]);if(e>=27647&&e<=28671)return Ia(t,oa().suffixes[e-27639]);if(e>=1811940352&&e<=1879048191)return Ia(t,oa().suffixes[e-1811939328]);if(e==vM)return{packedValues:rr,structures:ft.slice(0),version:t};if(e==55799)return t});const wM=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,t1=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array>"u"?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array>"u"?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],kM=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e<t1.length;e++)AM(t1[e],kM[e]);function AM(e,t){let r="get"+e.name.slice(0,-5),n;typeof e=="function"?n=e.BYTES_PER_ELEMENT:e=null;for(let a=0;a<2;a++){if(!a&&n==1)continue;let i=n==2?1:n==4?2:n==8?3:0;xt[a?t:t-4]=n==1||a==wM?s=>{if(!e)throw new Error("Could not find typed array for code "+t);return!$e.copyBuffers&&(n===1||n===2&&!(s.byteOffset&1)||n===4&&!(s.byteOffset&3)||n===8&&!(s.byteOffset&7))?new e(s.buffer,s.byteOffset,s.byteLength>>i):new e(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!e)throw new Error("Could not find typed array for code "+t);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),l=s.length>>i,u=new e(l),d=o[r];for(let c=0;c<l;c++)u[c]=d.call(o,c<<i,a);return u}}}function SM(){let e=Da(),t=ne+qe();for(let n=2;n<e;n++){let a=Da();ne+=a}let r=ne;return ne=t,wt=[y0(Da()),y0(Da())],wt.position0=0,wt.position1=0,wt.postBundlePosition=ne,ne=r,qe()}function Da(){let e=Te[ne++]&31;if(e>23)switch(e){case 24:e=Te[ne++];break;case 25:e=$t.getUint16(ne),ne+=2;break;case 26:e=$t.getUint32(ne),ne+=4;break}return e}function Hc(){if($e.getShared){let e=J4(()=>(Te=null,$e.getShared()))||{},t=e.structures||[];$e.sharedVersion=e.version,rr=$e.sharedValues=e.packedValues,ft===!0?$e.structures=ft=t:ft.splice.apply(ft,[0,t.length].concat(t))}}function J4(e){let t=ua,r=ne,n=Po,a=ns,i=Mo,s=Tr,o=wt,l=new Uint8Array(Te.slice(0,ua)),u=ft,d=$e,c=as,f=e();return ua=t,ne=r,Po=n,ns=a,Mo=i,Tr=s,wt=o,Te=l,as=c,ft=u,$e=d,$t=new DataView(Te.buffer,Te.byteOffset,Te.byteLength),f}function E0(){Te=null,Tr=null,ft=null}const zc=new Array(147);for(let e=0;e<256;e++)zc[e]=+("1e"+Math.floor(45.15-e*.30103));let Uc=new is({useRecords:!1});const r1=Uc.decode;Uc.decodeMultiple;let uo;try{uo=new TextEncoder}catch{}let T0,Z4;const gl=typeof globalThis=="object"&&globalThis.Buffer,Ts=typeof gl<"u",hu=Ts?gl.allocUnsafeSlow:Uint8Array,n1=Ts?gl:Uint8Array,a1=256,i1=Ts?4294967296:2144337920;let mu,K,at,P=0,Fn,vt=null;const _M=61440,CM=/[\u0080-\uFFFF]/,or=Symbol("record-id");class NM extends is{constructor(t){super(t),this.offset=0;let r,n,a,i,s;t=t||{};let o=n1.prototype.utf8Write?function(S,H,$){return K.utf8Write(S,H,$)}:uo&&uo.encodeInto?function(S,H){return uo.encodeInto(S,K.subarray(H)).written}:!1,l=this,u=t.structures||t.saveStructures,d=t.maxSharedStructures;if(d==null&&(d=u?128:0),d>8190)throw new Error("Maximum maxSharedStructure is 8190");let c=t.sequential;c&&(d=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let f,m,b=t.sharedValues,y;if(b){y=Object.create(null);for(let S=0,H=b.length;S<H;S++)y[b[S]]=S}let w=[],E=0,A=0;this.mapEncode=function(S,H){if(this._keyMap&&!this._mapped)switch(S.constructor.name){case"Array":S=S.map($=>this.encodeKeys($));break}return this.encode(S,H)},this.encode=function(S,H){if(K||(K=new hu(8192),at=new DataView(K.buffer,0,8192),P=0),Fn=K.length-10,Fn-P<2048?(K=new hu(K.length),at=new DataView(K.buffer,0,K.length),Fn=K.length-10,P=0):H===l1&&(P=P+7&2147483640),r=P,l.useSelfDescribedHeader&&(at.setUint32(P,3654940416),P+=3),s=l.structuredClone?new Map:null,l.bundleStrings&&typeof S!="string"?(vt=[],vt.size=1/0):vt=null,n=l.structures,n){if(n.uninitialized){let q=l.getShared()||{};l.structures=n=q.structures||[],l.sharedVersion=q.version;let V=l.sharedValues=q.packedValues;if(V){y={};for(let G=0,se=V.length;G<se;G++)y[V[G]]=G}}let $=n.length;if($>d&&!c&&($=d),!n.transitions){n.transitions=Object.create(null);for(let q=0;q<$;q++){let V=n[q];if(!V)continue;let G,se=n.transitions;for(let C=0,fe=V.length;C<fe;C++){se[or]===void 0&&(se[or]=q);let ye=V[C];G=se[ye],G||(G=se[ye]=Object.create(null)),se=G}se[or]=q|1048576}}c||(n.nextId=$)}if(a&&(a=!1),i=n||[],m=y,t.pack){let $=new Map;if($.values=[],$.encoder=l,$.maxValues=t.maxPrivatePackedValues||(y?16:1/0),$.objectMap=y||!1,$.samplingPackedValues=f,co(S,$),$.values.length>0){K[P++]=216,K[P++]=51,Vr(4);let q=$.values;N(q),Vr(0),Vr(0),m=Object.create(y||null);for(let V=0,G=q.length;V<G;V++)m[q[V]]=V}}mu=H&gu;try{if(mu)return;if(N(S),vt&&o1(r,N),l.offset=P,s&&s.idsToInsert){P+=s.idsToInsert.length*2,P>Fn&&U(P),l.offset=P;let $=OM(K.subarray(r,P),s.idsToInsert);return s=null,$}return H&l1?(K.start=r,K.end=P,K):K.subarray(r,P)}finally{if(n){if(A<10&&A++,n.length>d&&(n.length=d),E>1e4)n.transitions=null,A=0,E=0,w.length>0&&(w=[]);else if(w.length>0&&!c){for(let $=0,q=w.length;$<q;$++)w[$][or]=void 0;w=[]}}if(a&&l.saveShared){l.structures.length>d&&(l.structures=l.structures.slice(0,d));let $=K.subarray(r,P);return l.updateSharedData()===!1?l.encode(S):$}H&DM&&(P=r)}},this.findCommonStringsToPack=()=>(f=new Map,y||(y=Object.create(null)),S=>{let H=S&&S.threshold||4,$=this.pack?S.maxPrivatePackedValues||16:0;b||(b=this.sharedValues=[]);for(let[q,V]of f)V.count>H&&(y[q]=$++,b.push(q),a=!0);for(;this.saveShared&&this.updateSharedData()===!1;);f=null});const N=S=>{P>Fn&&(K=U(P));var H=typeof S,$;if(H==="string"){if(m){let se=m[S];if(se>=0){se<16?K[P++]=se+224:(K[P++]=198,se&1?N(15-se>>1):N(se-16>>1));return}else if(f&&!t.pack){let C=f.get(S);C?C.count++:f.set(S,{count:1})}}let q=S.length;if(vt&&q>=4&&q<1024){if((vt.size+=q)>_M){let C,fe=(vt[0]?vt[0].length*3+vt[1].length:0)+10;P+fe>Fn&&(K=U(P+fe)),K[P++]=217,K[P++]=223,K[P++]=249,K[P++]=vt.position?132:130,K[P++]=26,C=P-r,P+=4,vt.position&&o1(r,N),vt=["",""],vt.size=0,vt.position=C}let se=CM.test(S);vt[se?0:1]+=S,K[P++]=se?206:207,N(q);return}let V;q<32?V=1:q<256?V=2:q<65536?V=3:V=5;let G=q*3;if(P+G>Fn&&(K=U(P+G)),q<64||!o){let se,C,fe,ye=P+V;for(se=0;se<q;se++)C=S.charCodeAt(se),C<128?K[ye++]=C:C<2048?(K[ye++]=C>>6|192,K[ye++]=C&63|128):(C&64512)===55296&&((fe=S.charCodeAt(se+1))&64512)===56320?(C=65536+((C&1023)<<10)+(fe&1023),se++,K[ye++]=C>>18|240,K[ye++]=C>>12&63|128,K[ye++]=C>>6&63|128,K[ye++]=C&63|128):(K[ye++]=C>>12|224,K[ye++]=C>>6&63|128,K[ye++]=C&63|128);$=ye-P-V}else $=o(S,P+V,G);$<24?K[P++]=96|$:$<256?(V<2&&K.copyWithin(P+2,P+1,P+1+$),K[P++]=120,K[P++]=$):$<65536?(V<3&&K.copyWithin(P+3,P+2,P+2+$),K[P++]=121,K[P++]=$>>8,K[P++]=$&255):(V<5&&K.copyWithin(P+5,P+3,P+3+$),K[P++]=122,at.setUint32(P,$),P+=4),P+=$}else if(H==="number")if(!this.alwaysUseFloat&&S>>>0===S)S<24?K[P++]=S:S<256?(K[P++]=24,K[P++]=S):S<65536?(K[P++]=25,K[P++]=S>>8,K[P++]=S&255):(K[P++]=26,at.setUint32(P,S),P+=4);else if(!this.alwaysUseFloat&&S>>0===S)S>=-24?K[P++]=31-S:S>=-256?(K[P++]=56,K[P++]=~S):S>=-65536?(K[P++]=57,at.setUint16(P,~S),P+=2):(K[P++]=58,at.setUint32(P,~S),P+=4);else{let q;if((q=this.useFloat32)>0&&S<4294967296&&S>=-2147483648){K[P++]=250,at.setFloat32(P,S);let V;if(q<4||(V=S*zc[(K[P]&127)<<1|K[P+1]>>7])>>0===V){P+=4;return}else P--}K[P++]=251,at.setFloat64(P,S),P+=8}else if(H==="object")if(!S)K[P++]=246;else{if(s){let V=s.get(S);if(V){if(K[P++]=216,K[P++]=29,K[P++]=25,!V.references){let G=s.idsToInsert||(s.idsToInsert=[]);V.references=[],G.push(V)}V.references.push(P-r),P+=2;return}else s.set(S,{offset:P-r})}let q=S.constructor;if(q===Object)F(S);else if(q===Array){$=S.length,$<24?K[P++]=128|$:Vr($);for(let V=0;V<$;V++)N(S[V])}else if(q===Map)if((this.mapsAsObjects?this.useTag259ForMaps!==!1:this.useTag259ForMaps)&&(K[P++]=217,K[P++]=1,K[P++]=3),$=S.size,$<24?K[P++]=160|$:$<256?(K[P++]=184,K[P++]=$):$<65536?(K[P++]=185,K[P++]=$>>8,K[P++]=$&255):(K[P++]=186,at.setUint32(P,$),P+=4),l.keyMap)for(let[V,G]of S)N(l.encodeKey(V)),N(G);else for(let[V,G]of S)N(V),N(G);else{for(let V=0,G=T0.length;V<G;V++){let se=Z4[V];if(S instanceof se){let C=T0[V],fe=C.tag;fe==null&&(fe=C.getTag&&C.getTag.call(this,S)),fe<24?K[P++]=192|fe:fe<256?(K[P++]=216,K[P++]=fe):fe<65536?(K[P++]=217,K[P++]=fe>>8,K[P++]=fe&255):fe>-1&&(K[P++]=218,at.setUint32(P,fe),P+=4),C.encode.call(this,S,N,U);return}}if(S[Symbol.iterator]){if(mu){let V=new Error("Iterable should be serialized as iterator");throw V.iteratorNotHandled=!0,V}K[P++]=159;for(let V of S)N(V);K[P++]=255;return}if(S[Symbol.asyncIterator]||pu(S)){let V=new Error("Iterable/blob should be serialized as iterator");throw V.iteratorNotHandled=!0,V}if(this.useToJSON&&S.toJSON){const V=S.toJSON();if(V!==S)return N(V)}F(S)}}else if(H==="boolean")K[P++]=S?245:244;else if(H==="bigint"){if(S<BigInt(1)<<BigInt(64)&&S>=0)K[P++]=27,at.setBigUint64(P,S);else if(S>-(BigInt(1)<<BigInt(64))&&S<0)K[P++]=59,at.setBigUint64(P,-S-BigInt(1));else if(this.largeBigIntToFloat)K[P++]=251,at.setFloat64(P,Number(S));else{S>=BigInt(0)?K[P++]=194:(K[P++]=195,S=BigInt(-1)-S);let q=[];for(;S;)q.push(Number(S&BigInt(255))),S>>=BigInt(8);v0(new Uint8Array(q.reverse()),U);return}P+=8}else if(H==="undefined")K[P++]=247;else throw new Error("Unknown type: "+H)},F=this.useRecords===!1?this.variableMapSize?S=>{let H=Object.keys(S),$=Object.values(S),q=H.length;if(q<24?K[P++]=160|q:q<256?(K[P++]=184,K[P++]=q):q<65536?(K[P++]=185,K[P++]=q>>8,K[P++]=q&255):(K[P++]=186,at.setUint32(P,q),P+=4),l.keyMap)for(let V=0;V<q;V++)N(l.encodeKey(H[V])),N($[V]);else for(let V=0;V<q;V++)N(H[V]),N($[V])}:S=>{K[P++]=185;let H=P-r;P+=2;let $=0;if(l.keyMap)for(let q in S)(typeof S.hasOwnProperty!="function"||S.hasOwnProperty(q))&&(N(l.encodeKey(q)),N(S[q]),$++);else for(let q in S)(typeof S.hasOwnProperty!="function"||S.hasOwnProperty(q))&&(N(q),N(S[q]),$++);K[H+++r]=$>>8,K[H+r]=$&255}:(S,H)=>{let $,q=i.transitions||(i.transitions=Object.create(null)),V=0,G=0,se,C;if(this.keyMap){C=Object.keys(S).map(ye=>this.encodeKey(ye)),G=C.length;for(let ye=0;ye<G;ye++){let R=C[ye];$=q[R],$||($=q[R]=Object.create(null),V++),q=$}}else for(let ye in S)(typeof S.hasOwnProperty!="function"||S.hasOwnProperty(ye))&&($=q[ye],$||(q[or]&1048576&&(se=q[or]&65535),$=q[ye]=Object.create(null),V++),q=$,G++);let fe=q[or];if(fe!==void 0)fe&=65535,K[P++]=217,K[P++]=fe>>8|224,K[P++]=fe&255;else if(C||(C=q.__keys__||(q.__keys__=Object.keys(S))),se===void 0?(fe=i.nextId++,fe||(fe=0,i.nextId=1),fe>=a1&&(i.nextId=(fe=d)+1)):fe=se,i[fe]=C,fe<d){K[P++]=217,K[P++]=fe>>8|224,K[P++]=fe&255,q=i.transitions;for(let ye=0;ye<G;ye++)(q[or]===void 0||q[or]&1048576)&&(q[or]=fe),q=q[C[ye]];q[or]=fe|1048576,a=!0}else{if(q[or]=fe,at.setUint32(P,3655335680),P+=3,V&&(E+=A*V),w.length>=a1-d&&(w.shift()[or]=void 0),w.push(q),Vr(G+2),N(57344+fe),N(C),H)return;for(let ye in S)(typeof S.hasOwnProperty!="function"||S.hasOwnProperty(ye))&&N(S[ye]);return}if(G<24?K[P++]=128|G:Vr(G),!H)for(let ye in S)(typeof S.hasOwnProperty!="function"||S.hasOwnProperty(ye))&&N(S[ye])},U=S=>{let H;if(S>16777216){if(S-r>i1)throw new Error("Encoded buffer would be larger than maximum buffer size");H=Math.min(i1,Math.round(Math.max((S-r)*(S>67108864?1.25:2),4194304)/4096)*4096)}else H=(Math.max(S-r<<2,K.length-1)>>12)+1<<12;let $=new hu(H);return at=new DataView($.buffer,0,H),K.copy?K.copy($,0,r,S):$.set(K.slice(r,S)),P-=r,r=0,Fn=$.length-10,K=$};let O=100,W=1e3;this.encodeAsIterable=function(S,H){return re(S,H,X)},this.encodeAsAsyncIterable=function(S,H){return re(S,H,j)};function*X(S,H,$){let q=S.constructor;if(q===Object){let V=l.useRecords!==!1;V?F(S,!0):s1(Object.keys(S).length,160);for(let G in S){let se=S[G];V||N(G),se&&typeof se=="object"?H[G]?yield*X(se,H[G]):yield*Z(se,H,G):N(se)}}else if(q===Array){let V=S.length;Vr(V);for(let G=0;G<V;G++){let se=S[G];se&&(typeof se=="object"||P-r>O)?H.element?yield*X(se,H.element):yield*Z(se,H,"element"):N(se)}}else if(S[Symbol.iterator]&&!S.buffer){K[P++]=159;for(let V of S)V&&(typeof V=="object"||P-r>O)?H.element?yield*X(V,H.element):yield*Z(V,H,"element"):N(V);K[P++]=255}else pu(S)?(s1(S.size,64),yield K.subarray(r,P),yield S,B()):S[Symbol.asyncIterator]?(K[P++]=159,yield K.subarray(r,P),yield S,B(),K[P++]=255):N(S);$&&P>r?yield K.subarray(r,P):P-r>O&&(yield K.subarray(r,P),B())}function*Z(S,H,$){let q=P-r;try{N(S),P-r>O&&(yield K.subarray(r,P),B())}catch(V){if(V.iteratorNotHandled)H[$]={},P=r+q,yield*X.call(this,S,H[$]);else throw V}}function B(){O=W,l.encode(null,gu)}function re(S,H,$){return H&&H.chunkThreshold?O=W=H.chunkThreshold:O=100,S&&typeof S=="object"?(l.encode(null,gu),$(S,l.iterateProperties||(l.iterateProperties={}),!0)):[l.encode(S)]}async function*j(S,H){for(let $ of X(S,H,!0)){let q=$.constructor;if(q===n1||q===Uint8Array)yield $;else if(pu($)){let V=$.stream().getReader(),G;for(;!(G=await V.read()).done;)yield G.value}else if($[Symbol.asyncIterator])for await(let V of $)B(),V?yield*j(V,H.async||(H.async={})):yield l.encode(V);else yield $}}}useBuffer(t){K=t,at=new DataView(K.buffer,K.byteOffset,K.byteLength),P=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let t=this.sharedVersion||0;this.sharedVersion=t+1;let r=this.structures.slice(0),n=new e3(r,this.sharedValues,this.sharedVersion),a=this.saveShared(n,i=>(i&&i.version||0)==t);return a===!1?(n=this.getShared()||{},this.structures=n.structures||[],this.sharedValues=n.packedValues,this.sharedVersion=n.version,this.structures.nextId=this.structures.length):r.forEach((i,s)=>this.structures[s]=i),a}}function s1(e,t){e<24?K[P++]=t|e:e<256?(K[P++]=t|24,K[P++]=e):e<65536?(K[P++]=t|25,K[P++]=e>>8,K[P++]=e&255):(K[P++]=t|26,at.setUint32(P,e),P+=4)}class e3{constructor(t,r,n){this.structures=t,this.packedValues=r,this.version=n}}function Vr(e){e<24?K[P++]=128|e:e<256?(K[P++]=152,K[P++]=e):e<65536?(K[P++]=153,K[P++]=e>>8,K[P++]=e&255):(K[P++]=154,at.setUint32(P,e),P+=4)}const IM=typeof Blob>"u"?function(){}:Blob;function pu(e){if(e instanceof IM)return!0;let t=e[Symbol.toStringTag];return t==="Blob"||t==="File"}function co(e,t){switch(typeof e){case"string":if(e.length>3){if(t.objectMap[e]>-1||t.values.length>=t.maxValues)return;let n=t.get(e);if(n)++n.count==2&&t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let a=t.samplingPackedValues.get(e);a?a.count++:t.samplingPackedValues.set(e,{count:1})}}break;case"object":if(e)if(e instanceof Array)for(let n=0,a=e.length;n<a;n++)co(e[n],t);else{let n=!t.encoder.useRecords;for(var r in e)e.hasOwnProperty(r)&&(n&&co(r,t),co(e[r],t))}break;case"function":console.log(e)}}const RM=new Uint8Array(new Uint16Array([1]).buffer)[0]==1;Z4=[Date,Set,Error,RegExp,pa,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array>"u"?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array>"u"?function(){}:BigInt64Array,Float32Array,Float64Array,e3];T0=[{tag:1,encode(e,t){let r=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&&r>=0&&r<4294967296?(K[P++]=26,at.setUint32(P,r),P+=4):(K[P++]=251,at.setFloat64(P,r),P+=8)}},{tag:258,encode(e,t){let r=Array.from(e);t(r)}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag(e){return e.tag},encode(e,t){t(e.value)}},{encode(e,t,r){v0(e,r)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||Ts&&this.tagUint8Array!==!1))return 64},encode(e,t,r){v0(e,r)}},Ur(68,1),Ur(69,2),Ur(70,4),Ur(71,8),Ur(72,1),Ur(77,2),Ur(78,4),Ur(79,8),Ur(85,4),Ur(86,8),{encode(e,t){let r=e.packedValues||[],n=e.structures||[];if(r.values.length>0){K[P++]=216,K[P++]=51,Vr(4);let a=r.values;t(a),Vr(0),Vr(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let i=0,s=a.length;i<s;i++)packedObjectMap[a[i]]=i}if(n){at.setUint32(P,3655335424),P+=3;let a=n.slice(0);a.unshift(57344),a.push(new pa(e.version,1399353956)),t(a)}else t(new pa(e.version,1399353956))}}];function Ur(e,t){return!RM&&t>1&&(e-=4),{tag:e,encode:function(n,a){let i=n.byteLength,s=n.byteOffset||0,o=n.buffer||n;a(Ts?gl.from(o,s,i):new Uint8Array(o,s,i))}}}function v0(e,t){let r=e.byteLength;r<24?K[P++]=64+r:r<256?(K[P++]=88,K[P++]=r):r<65536?(K[P++]=89,K[P++]=r>>8,K[P++]=r&255):(K[P++]=90,at.setUint32(P,r),P+=4),P+r>=K.length&&t(P+r),K.set(e.buffer?e:new Uint8Array(e),P),P+=r}function OM(e,t){let r,n=t.length*2,a=e.length-n;t.sort((i,s)=>i.offset>s.offset?1:-1);for(let i=0;i<t.length;i++){let s=t[i];s.id=i;for(let o of s.references)e[o++]=i>>8,e[o]=i&255}for(;r=t.pop();){let i=r.offset;e.copyWithin(i+n,i,a),n-=2;let s=i+n;e[s++]=216,e[s++]=28,a=i}return e}function o1(e,t){at.setUint32(vt.position+e,P-vt.position-e+1);let r=vt;vt=null,t(r[0]),t(r[1])}let jc=new NM({useRecords:!1});const LM=jc.encode;jc.encodeAsIterable;jc.encodeAsAsyncIterable;const l1=512,DM=1024,gu=2048;async function zt(e,t){var a;const r=await fetch("/api/rpc",{method:"POST",headers:{"Content-Type":"application/cbor",Accept:"application/cbor"},body:new Uint8Array(LM({method:e,params:t??{}}))});if(!r.ok){try{const i=await r.arrayBuffer(),s=r1(new Uint8Array(i));if((a=s==null?void 0:s.error)!=null&&a.message)throw new Error(s.error.message)}catch(i){if(i instanceof Error&&i.message!==`RPC call ${e} failed`)throw i}throw new Error(`RPC call ${e} failed: ${r.status} ${r.statusText}`)}const n=await r.arrayBuffer();return r1(new Uint8Array(n))}async function gP(e,t){return zt("fetchRuns",{worldEnv:e,params:t})}async function bP(e,t,r="all"){return zt("fetchRun",{worldEnv:e,runId:t,resolveData:r})}async function yP(e,t,r){return zt("fetchSteps",{worldEnv:e,runId:t,params:r})}async function xP(e,t,r,n="all"){return zt("fetchStep",{worldEnv:e,runId:t,stepId:r,resolveData:n})}async function EP(e,t,r){return zt("fetchEvents",{worldEnv:e,runId:t,params:r})}async function TP(e,t,r){return zt("fetchEventsByCorrelationId",{worldEnv:e,correlationId:t,params:r})}async function vP(e,t){return zt("fetchHooks",{worldEnv:e,params:t})}async function wP(e,t,r="all"){return zt("fetchHook",{worldEnv:e,hookId:t,resolveData:r})}async function kP(e,t){return zt("cancelRun",{worldEnv:e,runId:t})}async function AP(e,t,r){return zt("recreateRun",{worldEnv:e,runId:t,deploymentId:r})}async function SP(e,t){return zt("reenqueueRun",{worldEnv:e,runId:t})}async function _P(e,t,r){return zt("wakeUpRun",{worldEnv:e,runId:t,options:r})}async function CP(e,t,r){return zt("resumeHook",{worldEnv:e,token:t,payload:r})}async function NP(e,t){return zt("fetchStreams",{worldEnv:e,runId:t})}async function IP(e){return zt("fetchWorkflowsManifest",{worldEnv:e})}async function RP(e,t,r){return zt("runHealthCheck",{worldEnv:e,endpoint:t,options:r})}const MM=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:M4},Symbol.toStringTag,{value:"Module"}));export{rs as $,Wb as A,hM as B,Gb as C,lP as D,hr as E,fd as F,z5 as G,cm as H,jM as I,$M as J,Bt as K,UM as L,ml as M,pe as N,ZM as O,ba as P,tP as Q,Vb as R,hP as S,dP as T,RD as U,r6 as V,Do as W,eP as X,hl as Y,Vn as Z,bR as _,fP as a,xR as a0,Ys as a1,JM as a2,KM as a3,Oa as a4,ER as a5,aP as a6,rP as a7,nP as a8,QM as a9,_b as aA,Nb as aB,Ib as aC,Ob as aD,Lb as aE,Mb as aF,Db as aG,Rb as aH,bb as aI,gP as aJ,cP as aK,kP as aL,SP as aM,vP as aN,_P as aO,CP as aP,yP as aQ,wP as aR,xP as aS,NP as aT,AP as aU,IP as aV,Ke as aW,XM as aX,G4 as aa,oM as ab,fM as ac,r1 as ad,Yr as ae,uP as af,iP as ag,W_ as ah,ti as ai,P0 as aj,Em as ak,Tm as al,Ff as am,Kp as an,Go as ao,Mx as ap,Vo as aq,Br as ar,PI as as,Me as at,i5 as au,oP as av,$4 as aw,sP as ax,dM as ay,W4 as az,sM as b,a5 as c,q4 as d,VM as e,o6 as f,ca as g,TP as h,Bo as i,ga as j,R1 as k,h1 as l,mn as m,A3 as n,o3 as o,g1 as p,Zb as q,RP as r,Yb as s,qM as t,mP as u,pP as v,bP as w,EP as x,z1 as y,HM as z};
|