@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
|
@@ -1,478 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-CCG8erLJ.js","assets/index-DS8xNWtl.js","assets/transform-BcRQlmJM.js","assets/code-block-IT6T5CEO-CNZ5MxhC.js","assets/katex-CyAuISp2.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var y3=Object.defineProperty;var E3=(e,t,r)=>t in e?y3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xe=(e,t,r)=>E3(e,typeof t!="symbol"?t+"":t,r);import{b as A,v,f as R1,G as D1,R as J,B as v3,g as L1}from"./index-DS8xNWtl.js";function Cn(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 hd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function M1(...e){return t=>{let r=!1;const n=e.map(a=>{const i=hd(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():hd(e[a],null)}}}}function Ma(...e){return A.useCallback(M1(...e),e)}function MM(e,t){const r=A.createContext(t),n=i=>{const{children:s,...o}=i,l=A.useMemo(()=>o,Object.values(o));return v.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function a(i){const s=A.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 P1(e,t=[]){let r=[];function n(i,s){const o=A.createContext(s),l=r.length;r=[...r,s];const u=c=>{var E;const{scope:h,children:m,...b}=c,x=((E=h==null?void 0:h[e])==null?void 0:E[l])||o,T=A.useMemo(()=>b,Object.values(b));return v.jsx(x.Provider,{value:T,children:m})};u.displayName=i+"Provider";function d(c,h){var x;const m=((x=h==null?void 0:h[e])==null?void 0:x[l])||o,b=A.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=>A.createContext(s));return function(o){const l=(o==null?void 0:o[e])||i;return A.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return a.scopeName=e,[n,T3(a,...t)]}function T3(...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 A.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function w3(e){const t=k3(e),r=A.forwardRef((n,a)=>{const{children:i,...s}=n,o=A.Children.toArray(i),l=o.find(S3);if(l){const u=l.props.children,d=o.map(c=>c===l?A.Children.count(u)>1?A.Children.only(null):A.isValidElement(u)?u.props.children:null:c);return v.jsx(t,{...s,ref:a,children:A.isValidElement(u)?A.cloneElement(u,void 0,d):null})}return v.jsx(t,{...s,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}function k3(e){const t=A.forwardRef((r,n)=>{const{children:a,...i}=r;if(A.isValidElement(a)){const s=_3(a),o=C3(i,a.props);return a.type!==A.Fragment&&(o.ref=n?M1(n,s):s),A.cloneElement(a,o)}return A.Children.count(a)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var B1=Symbol("radix.slottable");function A3(e){const t=({children:r})=>v.jsx(v.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=B1,t}function S3(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===B1}function C3(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 _3(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 N3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pa=N3.reduce((e,t)=>{const r=w3(`Primitive.${t}`),n=A.forwardRef((a,i)=>{const{asChild:s,...o}=a,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...o,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function I3(e,t){e&&R1.flushSync(()=>e.dispatchEvent(t))}function il(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function O3(e,t=globalThis==null?void 0:globalThis.document){const r=il(e);A.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 R3="DismissableLayer",Pu="dismissableLayer.update",D3="dismissableLayer.pointerDownOutside",L3="dismissableLayer.focusOutside",fd,F1=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z1=A.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:o,...l}=e,u=A.useContext(F1),[d,c]=A.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=A.useState({}),b=Ma(t,V=>c(V)),x=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(T),k=d?x.indexOf(d):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,P=k>=E,U=B3(V=>{const Y=V.target,ee=[...u.branches].some(F=>F.contains(Y));!P||ee||(a==null||a(V),s==null||s(V),V.defaultPrevented||o==null||o())},h),D=F3(V=>{const Y=V.target;[...u.branches].some(F=>F.contains(Y))||(i==null||i(V),s==null||s(V),V.defaultPrevented||o==null||o())},h);return O3(V=>{k===u.layers.size-1&&(n==null||n(V),!V.defaultPrevented&&o&&(V.preventDefault(),o()))},h),A.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),md(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=fd)}},[d,h,r,u]),A.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),md())},[d,u]),A.useEffect(()=>{const V=()=>m({});return document.addEventListener(Pu,V),()=>document.removeEventListener(Pu,V)},[]),v.jsx(Pa.div,{...l,ref:b,style:{pointerEvents:_?P?"auto":"none":void 0,...e.style},onFocusCapture:Cn(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Cn(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Cn(e.onPointerDownCapture,U.onPointerDownCapture)})});z1.displayName=R3;var M3="DismissableLayerBranch",P3=A.forwardRef((e,t)=>{const r=A.useContext(F1),n=A.useRef(null),a=Ma(t,n);return A.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),v.jsx(Pa.div,{...e,ref:a})});P3.displayName=M3;function B3(e,t=globalThis==null?void 0:globalThis.document){const r=il(e),n=A.useRef(!1),a=A.useRef(()=>{});return A.useEffect(()=>{const i=o=>{if(o.target&&!n.current){let l=function(){H1(D3,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 F3(e,t=globalThis==null?void 0:globalThis.document){const r=il(e),n=A.useRef(!1);return A.useEffect(()=>{const a=i=>{i.target&&!n.current&&H1(L3,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 md(){const e=new CustomEvent(Pu);document.dispatchEvent(e)}function H1(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?I3(a,i):a.dispatchEvent(i)}var _a=globalThis!=null&&globalThis.document?A.useLayoutEffect:()=>{},z3=D1[" useId ".trim().toString()]||(()=>{}),H3=0;function U3(e){const[t,r]=A.useState(z3());return _a(()=>{r(n=>n??String(H3++))},[e]),t?`radix-${t}`:""}const j3=["top","right","bottom","left"],oa=Math.min,mr=Math.max,Do=Math.round,Vs=Math.floor,fn=e=>({x:e,y:e}),$3={left:"right",right:"left",bottom:"top",top:"bottom"},q3={start:"end",end:"start"};function Bu(e,t,r){return mr(e,oa(t,r))}function Dn(e,t){return typeof e=="function"?e(t):e}function Ln(e){return e.split("-")[0]}function xi(e){return e.split("-")[1]}function H0(e){return e==="x"?"y":"x"}function U0(e){return e==="y"?"height":"width"}const V3=new Set(["top","bottom"]);function un(e){return V3.has(Ln(e))?"y":"x"}function j0(e){return H0(un(e))}function W3(e,t,r){r===void 0&&(r=!1);const n=xi(e),a=j0(e),i=U0(a);let s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Lo(s)),[s,Lo(s)]}function G3(e){const t=Lo(e);return[Fu(e),t,Fu(t)]}function Fu(e){return e.replace(/start|end/g,t=>q3[t])}const pd=["left","right"],gd=["right","left"],Y3=["top","bottom"],X3=["bottom","top"];function K3(e,t,r){switch(e){case"top":case"bottom":return r?t?gd:pd:t?pd:gd;case"left":case"right":return t?Y3:X3;default:return[]}}function Q3(e,t,r,n){const a=xi(e);let i=K3(Ln(e),r==="start",n);return a&&(i=i.map(s=>s+"-"+a),t&&(i=i.concat(i.map(Fu)))),i}function Lo(e){return e.replace(/left|right|bottom|top/g,t=>$3[t])}function J3(e){return{top:0,right:0,bottom:0,left:0,...e}}function U1(e){return typeof e!="number"?J3(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 bd(e,t,r){let{reference:n,floating:a}=e;const i=un(t),s=j0(t),o=U0(s),l=Ln(t),u=i==="y",d=n.x+n.width/2-a.width/2,c=n.y+n.height/2-a.height/2,h=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(xi(t)){case"start":m[s]-=h*(r&&u?-1:1);break;case"end":m[s]+=h*(r&&u?-1:1);break}return m}const Z3=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}=bd(u,n,l),h=n,m={},b=0;for(let x=0;x<o.length;x++){const{name:T,fn:E}=o[x],{x:k,y:_,data:P,reset:U}=await E({x:d,y:c,initialPlacement:n,placement:h,strategy:a,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=k??d,c=_??c,m={...m,[T]:{...m[T],...P}},U&&b<=50&&(b++,typeof U=="object"&&(U.placement&&(h=U.placement),U.rects&&(u=U.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):U.rects),{x:d,y:c}=bd(u,h,l)),x=-1)}return{x:d,y:c,placement:h,strategy:a,middlewareData:m}};async function ms(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:h=!1,padding:m=0}=Dn(t,e),b=U1(m),T=o[h?c==="floating"?"reference":"floating":c],E=Mo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(T)))==null||r?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:d,strategy:l})),k=c==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),P=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},U=Mo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:k,offsetParent:_,strategy:l}):k);return{top:(E.top-U.top+b.top)/P.y,bottom:(U.bottom-E.bottom+b.bottom)/P.y,left:(E.left-U.left+b.left)/P.x,right:(U.right-E.right+b.right)/P.x}}const eb=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}=Dn(e,t)||{};if(u==null)return{};const c=U1(d),h={x:r,y:n},m=j0(a),b=U0(m),x=await s.getDimensions(u),T=m==="y",E=T?"top":"left",k=T?"bottom":"right",_=T?"clientHeight":"clientWidth",P=i.reference[b]+i.reference[m]-h[m]-i.floating[b],U=h[m]-i.reference[m],D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let V=D?D[_]:0;(!V||!await(s.isElement==null?void 0:s.isElement(D)))&&(V=o.floating[_]||i.floating[b]);const Y=P/2-U/2,ee=V/2-x[b]/2-1,F=oa(c[E],ee),ne=oa(c[k],ee),$=F,C=V-x[b]-ne,H=V/2-x[b]/2+Y,j=Bu($,H,C),q=!l.arrow&&xi(a)!=null&&H!==j&&i.reference[b]/2-(H<$?F:ne)-x[b]/2<0,W=q?H<$?H-$:H-C:0;return{[m]:h[m]+W,data:{[m]:j,centerOffset:H-j-W,...q&&{alignmentOffset:W}},reset:q}}}),tb=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:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...T}=Dn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const E=Ln(a),k=un(o),_=Ln(o)===o,P=await(l.isRTL==null?void 0:l.isRTL(u.floating)),U=h||(_||!x?[Lo(o)]:G3(o)),D=b!=="none";!h&&D&&U.push(...Q3(o,x,b,P));const V=[o,...U],Y=await ms(t,T),ee=[];let F=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&ee.push(Y[E]),c){const H=W3(a,s,P);ee.push(Y[H[0]],Y[H[1]])}if(F=[...F,{placement:a,overflows:ee}],!ee.every(H=>H<=0)){var ne,$;const H=(((ne=i.flip)==null?void 0:ne.index)||0)+1,j=V[H];if(j&&(!(c==="alignment"?k!==un(j):!1)||F.every(X=>un(X.placement)===k?X.overflows[0]>0:!0)))return{data:{index:H,overflows:F},reset:{placement:j}};let q=($=F.filter(W=>W.overflows[0]<=0).sort((W,X)=>W.overflows[1]-X.overflows[1])[0])==null?void 0:$.placement;if(!q)switch(m){case"bestFit":{var C;const W=(C=F.filter(X=>{if(D){const ue=un(X.placement);return ue===k||ue==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(ue=>ue>0).reduce((ue,N)=>ue+N,0)]).sort((X,ue)=>X[1]-ue[1])[0])==null?void 0:C[0];W&&(q=W);break}case"initialPlacement":q=o;break}if(a!==q)return{reset:{placement:q}}}return{}}}};function xd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yd(e){return j3.some(t=>e[t]>=0)}const rb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=Dn(e,t);switch(n){case"referenceHidden":{const i=await ms(t,{...a,elementContext:"reference"}),s=xd(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:yd(s)}}}case"escaped":{const i=await ms(t,{...a,altBoundary:!0}),s=xd(i,r.floating);return{data:{escapedOffsets:s,escaped:yd(s)}}}default:return{}}}}},j1=new Set(["left","top"]);async function nb(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=Ln(r),o=xi(r),l=un(r)==="y",u=j1.has(s)?-1:1,d=i&&l?-1:1,c=Dn(t,e);let{mainAxis:h,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:h*u}:{x:h*u,y:m*d}}const ab=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 nb(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}}}}},ib=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:T=>{let{x:E,y:k}=T;return{x:E,y:k}}},...l}=Dn(e,t),u={x:r,y:n},d=await ms(t,l),c=un(Ln(a)),h=H0(c);let m=u[h],b=u[c];if(i){const T=h==="y"?"top":"left",E=h==="y"?"bottom":"right",k=m+d[T],_=m-d[E];m=Bu(k,m,_)}if(s){const T=c==="y"?"top":"left",E=c==="y"?"bottom":"right",k=b+d[T],_=b-d[E];b=Bu(k,b,_)}const x=o.fn({...t,[h]:m,[c]:b});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[h]:i,[c]:s}}}}}},sb=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}=Dn(e,t),d={x:r,y:n},c=un(a),h=H0(c);let m=d[h],b=d[c];const x=Dn(o,t),T=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){const _=h==="y"?"height":"width",P=i.reference[h]-i.floating[_]+T.mainAxis,U=i.reference[h]+i.reference[_]-T.mainAxis;m<P?m=P:m>U&&(m=U)}if(u){var E,k;const _=h==="y"?"width":"height",P=j1.has(Ln(a)),U=i.reference[c]-i.floating[_]+(P&&((E=s.offset)==null?void 0:E[c])||0)+(P?0:T.crossAxis),D=i.reference[c]+i.reference[_]+(P?0:((k=s.offset)==null?void 0:k[c])||0)-(P?T.crossAxis:0);b<U?b=U:b>D&&(b=D)}return{[h]:m,[c]:b}}}},ob=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}=Dn(e,t),d=await ms(t,u),c=Ln(a),h=xi(a),m=un(a)==="y",{width:b,height:x}=i.floating;let T,E;c==="top"||c==="bottom"?(T=c,E=h===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(E=c,T=h==="end"?"top":"bottom");const k=x-d.top-d.bottom,_=b-d.left-d.right,P=oa(x-d[T],k),U=oa(b-d[E],_),D=!t.middlewareData.shift;let V=P,Y=U;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(Y=_),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(V=k),D&&!h){const F=mr(d.left,0),ne=mr(d.right,0),$=mr(d.top,0),C=mr(d.bottom,0);m?Y=b-2*(F!==0||ne!==0?F+ne:mr(d.left,d.right)):V=x-2*($!==0||C!==0?$+C:mr(d.top,d.bottom))}await l({...t,availableWidth:Y,availableHeight:V});const ee=await s.getDimensions(o.floating);return b!==ee.width||x!==ee.height?{reset:{rects:!0}}:{}}}};function sl(){return typeof window<"u"}function yi(e){return $1(e)?(e.nodeName||"").toLowerCase():"#document"}function gr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pn(e){var t;return(t=($1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $1(e){return sl()?e instanceof Node||e instanceof gr(e).Node:!1}function Ur(e){return sl()?e instanceof Element||e instanceof gr(e).Element:!1}function mn(e){return sl()?e instanceof HTMLElement||e instanceof gr(e).HTMLElement:!1}function Ed(e){return!sl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gr(e).ShadowRoot}const lb=new Set(["inline","contents"]);function _s(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=jr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!lb.has(a)}const ub=new Set(["table","td","th"]);function cb(e){return ub.has(yi(e))}const db=[":popover-open",":modal"];function ol(e){return db.some(t=>{try{return e.matches(t)}catch{return!1}})}const hb=["transform","translate","scale","rotate","perspective"],fb=["transform","translate","scale","rotate","perspective","filter"],mb=["paint","layout","strict","content"];function $0(e){const t=q0(),r=Ur(e)?jr(e):e;return hb.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)||fb.some(n=>(r.willChange||"").includes(n))||mb.some(n=>(r.contain||"").includes(n))}function pb(e){let t=la(e);for(;mn(t)&&!di(t);){if($0(t))return t;if(ol(t))return null;t=la(t)}return null}function q0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gb=new Set(["html","body","#document"]);function di(e){return gb.has(yi(e))}function jr(e){return gr(e).getComputedStyle(e)}function ll(e){return Ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function la(e){if(yi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ed(e)&&e.host||pn(e);return Ed(t)?t.host:t}function q1(e){const t=la(e);return di(t)?e.ownerDocument?e.ownerDocument.body:e.body:mn(t)&&_s(t)?t:q1(t)}function ps(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=q1(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=gr(a);if(i){const o=zu(s);return t.concat(s,s.visualViewport||[],_s(a)?a:[],o&&r?ps(o):[])}return t.concat(a,ps(a,[],r))}function zu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function V1(e){const t=jr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=mn(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,o=Do(r)!==i||Do(n)!==s;return o&&(r=i,n=s),{width:r,height:n,$:o}}function V0(e){return Ur(e)?e:e.contextElement}function ni(e){const t=V0(e);if(!mn(t))return fn(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=V1(t);let s=(i?Do(r.width):r.width)/n,o=(i?Do(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const bb=fn(0);function W1(e){const t=gr(e);return!q0()||!t.visualViewport?bb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xb(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==gr(e)?!1:t}function Na(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=V0(e);let s=fn(1);t&&(n?Ur(n)&&(s=ni(n)):s=ni(e));const o=xb(i,r,n)?W1(i):fn(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 h=gr(i),m=n&&Ur(n)?gr(n):n;let b=h,x=zu(b);for(;x&&n&&m!==b;){const T=ni(x),E=x.getBoundingClientRect(),k=jr(x),_=E.left+(x.clientLeft+parseFloat(k.paddingLeft))*T.x,P=E.top+(x.clientTop+parseFloat(k.paddingTop))*T.y;l*=T.x,u*=T.y,d*=T.x,c*=T.y,l+=_,u+=P,b=gr(x),x=zu(b)}}return Mo({width:d,height:c,x:l,y:u})}function ul(e,t){const r=ll(e).scrollLeft;return t?t.left+r:Na(pn(e)).left+r}function G1(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-ul(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function yb(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",s=pn(n),o=t?ol(t.floating):!1;if(n===s||o&&i)return r;let l={scrollLeft:0,scrollTop:0},u=fn(1);const d=fn(0),c=mn(n);if((c||!c&&!i)&&((yi(n)!=="body"||_s(s))&&(l=ll(n)),mn(n))){const m=Na(n);u=ni(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const h=s&&!c&&!i?G1(s,l):fn(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function Eb(e){return Array.from(e.getClientRects())}function vb(e){const t=pn(e),r=ll(e),n=e.ownerDocument.body,a=mr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=mr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ul(e);const o=-r.scrollTop;return jr(n).direction==="rtl"&&(s+=mr(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:o}}const vd=25;function Tb(e,t){const r=gr(e),n=pn(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=q0();(!d||d&&t==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}const u=ul(n);if(u<=0){const d=n.ownerDocument,c=d.body,h=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(n.clientWidth-c.clientWidth-m);b<=vd&&(i-=b)}else u<=vd&&(i+=u);return{width:i,height:s,x:o,y:l}}const wb=new Set(["absolute","fixed"]);function kb(e,t){const r=Na(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=mn(e)?ni(e):fn(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 Td(e,t,r){let n;if(t==="viewport")n=Tb(e,r);else if(t==="document")n=vb(pn(e));else if(Ur(t))n=kb(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 Y1(e,t){const r=la(e);return r===t||!Ur(r)||di(r)?!1:jr(r).position==="fixed"||Y1(r,t)}function Ab(e,t){const r=t.get(e);if(r)return r;let n=ps(e,[],!1).filter(o=>Ur(o)&&yi(o)!=="body"),a=null;const i=jr(e).position==="fixed";let s=i?la(e):e;for(;Ur(s)&&!di(s);){const o=jr(s),l=$0(s);!l&&o.position==="fixed"&&(a=null),(i?!l&&!a:!l&&o.position==="static"&&!!a&&wb.has(a.position)||_s(s)&&!l&&Y1(e,s))?n=n.filter(d=>d!==s):a=o,s=la(s)}return t.set(e,n),n}function Sb(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const s=[...r==="clippingAncestors"?ol(t)?[]:Ab(t,this._c):[].concat(r),n],o=s[0],l=s.reduce((u,d)=>{const c=Td(t,d,a);return u.top=mr(c.top,u.top),u.right=oa(c.right,u.right),u.bottom=oa(c.bottom,u.bottom),u.left=mr(c.left,u.left),u},Td(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Cb(e){const{width:t,height:r}=V1(e);return{width:t,height:r}}function _b(e,t,r){const n=mn(t),a=pn(t),i=r==="fixed",s=Na(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const l=fn(0);function u(){l.x=ul(a)}if(n||!n&&!i)if((yi(t)!=="body"||_s(a))&&(o=ll(t)),n){const m=Na(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?G1(a,o):fn(0),c=s.left+o.scrollLeft-l.x-d.x,h=s.top+o.scrollTop-l.y-d.y;return{x:c,y:h,width:s.width,height:s.height}}function zl(e){return jr(e).position==="static"}function wd(e,t){if(!mn(e)||jr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return pn(e)===r&&(r=r.ownerDocument.body),r}function X1(e,t){const r=gr(e);if(ol(e))return r;if(!mn(e)){let a=la(e);for(;a&&!di(a);){if(Ur(a)&&!zl(a))return a;a=la(a)}return r}let n=wd(e,t);for(;n&&cb(n)&&zl(n);)n=wd(n,t);return n&&di(n)&&zl(n)&&!$0(n)?r:n||pb(e)||r}const Nb=async function(e){const t=this.getOffsetParent||X1,r=this.getDimensions,n=await r(e.floating);return{reference:_b(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ib(e){return jr(e).direction==="rtl"}const Ob={convertOffsetParentRelativeRectToViewportRelativeRect:yb,getDocumentElement:pn,getClippingRect:Sb,getOffsetParent:X1,getElementRects:Nb,getClientRects:Eb,getDimensions:Cb,getScale:ni,isElement:Ur,isRTL:Ib};function K1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rb(e,t){let r=null,n;const a=pn(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:h,height:m}=u;if(o||t(),!h||!m)return;const b=Vs(c),x=Vs(a.clientWidth-(d+h)),T=Vs(a.clientHeight-(c+m)),E=Vs(d),_={rootMargin:-b+"px "+-x+"px "+-T+"px "+-E+"px",threshold:mr(0,oa(1,l))||1};let P=!0;function U(D){const V=D[0].intersectionRatio;if(V!==l){if(!P)return s();V?s(!1,V):n=setTimeout(()=>{s(!1,1e-7)},1e3)}V===1&&!K1(u,e.getBoundingClientRect())&&s(),P=!1}try{r=new IntersectionObserver(U,{..._,root:a.ownerDocument})}catch{r=new IntersectionObserver(U,_)}r.observe(e)}return s(!0),i}function Db(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=V0(e),d=a||i?[...u?ps(u):[],...ps(t)]:[];d.forEach(E=>{a&&E.addEventListener("scroll",r,{passive:!0}),i&&E.addEventListener("resize",r)});const c=u&&o?Rb(u,r):null;let h=-1,m=null;s&&(m=new ResizeObserver(E=>{let[k]=E;k&&k.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),r()}),u&&!l&&m.observe(u),m.observe(t));let b,x=l?Na(e):null;l&&T();function T(){const E=Na(e);x&&!K1(x,E)&&r(),x=E,b=requestAnimationFrame(T)}return r(),()=>{var E;d.forEach(k=>{a&&k.removeEventListener("scroll",r),i&&k.removeEventListener("resize",r)}),c==null||c(),(E=m)==null||E.disconnect(),m=null,l&&cancelAnimationFrame(b)}}const Lb=ab,Mb=ib,Pb=tb,Bb=ob,Fb=rb,kd=eb,zb=sb,Hb=(e,t,r)=>{const n=new Map,a={platform:Ob,...r},i={...a.platform,_c:n};return Z3(e,t,{...a,platform:i})};var Ub=typeof document<"u",jb=function(){},Eo=Ub?A.useLayoutEffect:jb;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 Q1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ad(e,t){const r=Q1(e);return Math.round(t*r)/r}function Hl(e){const t=A.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]=A.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=A.useState(n);Po(h,n)||m(n);const[b,x]=A.useState(null),[T,E]=A.useState(null),k=A.useCallback(X=>{X!==D.current&&(D.current=X,x(X))},[]),_=A.useCallback(X=>{X!==V.current&&(V.current=X,E(X))},[]),P=i||b,U=s||T,D=A.useRef(null),V=A.useRef(null),Y=A.useRef(d),ee=l!=null,F=Hl(l),ne=Hl(a),$=Hl(u),C=A.useCallback(()=>{if(!D.current||!V.current)return;const X={placement:t,strategy:r,middleware:h};ne.current&&(X.platform=ne.current),Hb(D.current,V.current,X).then(ue=>{const N={...ue,isPositioned:$.current!==!1};H.current&&!Po(Y.current,N)&&(Y.current=N,R1.flushSync(()=>{c(N)}))})},[h,t,r,ne,$]);Eo(()=>{u===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,c(X=>({...X,isPositioned:!1})))},[u]);const H=A.useRef(!1);Eo(()=>(H.current=!0,()=>{H.current=!1}),[]),Eo(()=>{if(P&&(D.current=P),U&&(V.current=U),P&&U){if(F.current)return F.current(P,U,C);C()}},[P,U,C,F,ee]);const j=A.useMemo(()=>({reference:D,floating:V,setReference:k,setFloating:_}),[k,_]),q=A.useMemo(()=>({reference:P,floating:U}),[P,U]),W=A.useMemo(()=>{const X={position:r,left:0,top:0};if(!q.floating)return X;const ue=Ad(q.floating,d.x),N=Ad(q.floating,d.y);return o?{...X,transform:"translate("+ue+"px, "+N+"px)",...Q1(q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ue,top:N}},[r,o,q.floating,d.x,d.y]);return A.useMemo(()=>({...d,update:C,refs:j,elements:q,floatingStyles:W}),[d,C,j,q,W])}const qb=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?kd({element:n.current,padding:a}).fn(r):{}:n?kd({element:n,padding:a}).fn(r):{}}}},Vb=(e,t)=>({...Lb(e),options:[e,t]}),Wb=(e,t)=>({...Mb(e),options:[e,t]}),Gb=(e,t)=>({...zb(e),options:[e,t]}),Yb=(e,t)=>({...Pb(e),options:[e,t]}),Xb=(e,t)=>({...Bb(e),options:[e,t]}),Kb=(e,t)=>({...Fb(e),options:[e,t]}),Qb=(e,t)=>({...qb(e),options:[e,t]});var Jb="Arrow",J1=A.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...i}=e;return v.jsx(Pa.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});J1.displayName=Jb;var Zb=J1;function e6(e){const[t,r]=A.useState(void 0);return _a(()=>{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 W0="Popper",[Z1,em]=P1(W0),[t6,tm]=Z1(W0),rm=e=>{const{__scopePopper:t,children:r}=e,[n,a]=A.useState(null);return v.jsx(t6,{scope:t,anchor:n,onAnchorChange:a,children:r})};rm.displayName=W0;var nm="PopperAnchor",am=A.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,i=tm(nm,r),s=A.useRef(null),o=Ma(t,s),l=A.useRef(null);return A.useEffect(()=>{const u=l.current;l.current=(n==null?void 0:n.current)||s.current,u!==l.current&&i.onAnchorChange(l.current)}),n?null:v.jsx(Pa.div,{...a,ref:o})});am.displayName=nm;var G0="PopperContent",[r6,n6]=Z1(G0),im=A.forwardRef((e,t)=>{var Le,Ne,rt,lt,Ct,_t;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:h=!1,updatePositionStrategy:m="optimized",onPlaced:b,...x}=e,T=tm(G0,r),[E,k]=A.useState(null),_=Ma(t,Ir=>k(Ir)),[P,U]=A.useState(null),D=e6(P),V=(D==null?void 0:D.width)??0,Y=(D==null?void 0:D.height)??0,ee=n+(i!=="center"?"-"+i:""),F=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},ne=Array.isArray(u)?u:[u],$=ne.length>0,C={padding:F,boundary:ne.filter(i6),altBoundary:$},{refs:H,floatingStyles:j,placement:q,isPositioned:W,middlewareData:X}=$b({strategy:"fixed",placement:ee,whileElementsMounted:(...Ir)=>Db(...Ir,{animationFrame:m==="always"}),elements:{reference:T.anchor},middleware:[Vb({mainAxis:a+Y,alignmentAxis:s}),l&&Wb({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Gb():void 0,...C}),l&&Yb({...C}),Xb({...C,apply:({elements:Ir,rects:Er,availableWidth:vn,availableHeight:Vr})=>{const{width:Jt,height:Or}=Er.reference,ft=Ir.floating.style;ft.setProperty("--radix-popper-available-width",`${vn}px`),ft.setProperty("--radix-popper-available-height",`${Vr}px`),ft.setProperty("--radix-popper-anchor-width",`${Jt}px`),ft.setProperty("--radix-popper-anchor-height",`${Or}px`)}}),P&&Qb({element:P,padding:o}),s6({arrowWidth:V,arrowHeight:Y}),h&&Kb({strategy:"referenceHidden",...C})]}),[ue,N]=lm(q),he=il(b);_a(()=>{W&&(he==null||he())},[W,he]);const be=(Le=X.arrow)==null?void 0:Le.x,O=(Ne=X.arrow)==null?void 0:Ne.y,Ae=((rt=X.arrow)==null?void 0:rt.centerOffset)!==0,[Re,je]=A.useState();return _a(()=>{E&&je(window.getComputedStyle(E).zIndex)},[E]),v.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:W?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(lt=X.transformOrigin)==null?void 0:lt.x,(Ct=X.transformOrigin)==null?void 0:Ct.y].join(" "),...((_t=X.hide)==null?void 0:_t.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(r6,{scope:r,placedSide:ue,onArrowChange:U,arrowX:be,arrowY:O,shouldHideArrow:Ae,children:v.jsx(Pa.div,{"data-side":ue,"data-align":N,...x,ref:_,style:{...x.style,animation:W?void 0:"none"}})})})});im.displayName=G0;var sm="PopperArrow",a6={top:"bottom",right:"left",bottom:"top",left:"right"},om=A.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,i=n6(sm,n),s=a6[i.placedSide];return v.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:v.jsx(Zb,{...a,ref:r,style:{...a.style,display:"block"}})})});om.displayName=sm;function i6(e){return e!==null}var s6=e=>({name:"transformOrigin",options:e,fn(t){var T,E,k;const{placement:r,rects:n,middlewareData:a}=t,s=((T=a.arrow)==null?void 0:T.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=lm(r),c={start:"0%",center:"50%",end:"100%"}[d],h=(((E=a.arrow)==null?void 0:E.x)??0)+o/2,m=(((k=a.arrow)==null?void 0:k.y)??0)+l/2;let b="",x="";return u==="bottom"?(b=s?c:`${h}px`,x=`${-l}px`):u==="top"?(b=s?c:`${h}px`,x=`${n.floating.height+l}px`):u==="right"?(b=`${-l}px`,x=s?c:`${m}px`):u==="left"&&(b=`${n.floating.width+l}px`,x=s?c:`${m}px`),{data:{x:b,y:x}}}});function lm(e){const[t,r="center"]=e.split("-");return[t,r]}var o6=rm,l6=am,u6=im,c6=om;function d6(e,t){return A.useReducer((r,n)=>t[r][n]??r,e)}var um=e=>{const{present:t,children:r}=e,n=h6(t),a=typeof r=="function"?r({present:n.isPresent}):A.Children.only(r),i=Ma(n.ref,f6(a));return typeof r=="function"||n.isPresent?A.cloneElement(a,{ref:i}):null};um.displayName="Presence";function h6(e){const[t,r]=A.useState(),n=A.useRef(null),a=A.useRef(e),i=A.useRef("none"),s=e?"mounted":"unmounted",[o,l]=d6(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const u=Ws(n.current);i.current=o==="mounted"?u:"none"},[o]),_a(()=>{const u=n.current,d=a.current;if(d!==e){const h=i.current,m=Ws(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),_a(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=m=>{const x=Ws(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&x&&(l("ANIMATION_END"),!a.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},h=m=>{m.target===t&&(i.current=Ws(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:A.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Ws(e){return(e==null?void 0:e.animationName)||"none"}function f6(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 m6=D1[" useInsertionEffect ".trim().toString()]||_a;function p6({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,i,s]=g6({defaultProp:t,onChange:r}),o=e!==void 0,l=o?e:a;{const d=A.useRef(e!==void 0);A.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=A.useCallback(d=>{var c;if(o){const h=b6(d)?d(e):d;h!==e&&((c=s.current)==null||c.call(s,h))}else i(d)},[o,e,i,s]);return[l,u]}function g6({defaultProp:e,onChange:t}){const[r,n]=A.useState(e),a=A.useRef(r),i=A.useRef(t);return m6(()=>{i.current=t},[t]),A.useEffect(()=>{var s;a.current!==r&&((s=i.current)==null||s.call(i,r),a.current=r)},[r,a]),[r,n,i]}function b6(e){return typeof e=="function"}var x6=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"}),y6="VisuallyHidden",cm=A.forwardRef((e,t)=>v.jsx(Pa.span,{...e,ref:t,style:{...x6,...e.style}}));cm.displayName=y6;var E6=cm,[cl]=P1("Tooltip",[em]),dl=em(),dm="TooltipProvider",v6=700,Hu="tooltip.open",[T6,Y0]=cl(dm),w6=e=>{const{__scopeTooltip:t,delayDuration:r=v6,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=e,s=A.useRef(!0),o=A.useRef(!1),l=A.useRef(0);return A.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),v.jsx(T6,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:A.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:A.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:o,onPointerInTransitChange:A.useCallback(u=>{o.current=u},[]),disableHoverableContent:a,children:i})};w6.displayName=dm;var gs="Tooltip",[k6,hl]=cl(gs),hm=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:a,onOpenChange:i,disableHoverableContent:s,delayDuration:o}=e,l=Y0(gs,e.__scopeTooltip),u=dl(t),[d,c]=A.useState(null),h=U3(),m=A.useRef(0),b=s??l.disableHoverableContent,x=o??l.delayDuration,T=A.useRef(!1),[E,k]=p6({prop:n,defaultProp:a??!1,onChange:V=>{V?(l.onOpen(),document.dispatchEvent(new CustomEvent(Hu))):l.onClose(),i==null||i(V)},caller:gs}),_=A.useMemo(()=>E?T.current?"delayed-open":"instant-open":"closed",[E]),P=A.useCallback(()=>{window.clearTimeout(m.current),m.current=0,T.current=!1,k(!0)},[k]),U=A.useCallback(()=>{window.clearTimeout(m.current),m.current=0,k(!1)},[k]),D=A.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{T.current=!0,k(!0),m.current=0},x)},[x,k]);return A.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),v.jsx(o6,{...u,children:v.jsx(k6,{scope:t,contentId:h,open:E,stateAttribute:_,trigger:d,onTriggerChange:c,onTriggerEnter:A.useCallback(()=>{l.isOpenDelayedRef.current?D():P()},[l.isOpenDelayedRef,D,P]),onTriggerLeave:A.useCallback(()=>{b?U():(window.clearTimeout(m.current),m.current=0)},[U,b]),onOpen:P,onClose:U,disableHoverableContent:b,children:r})})};hm.displayName=gs;var Uu="TooltipTrigger",fm=A.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=hl(Uu,r),i=Y0(Uu,r),s=dl(r),o=A.useRef(null),l=Ma(t,o,a.onTriggerChange),u=A.useRef(!1),d=A.useRef(!1),c=A.useCallback(()=>u.current=!1,[]);return A.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),v.jsx(l6,{asChild:!0,...s,children:v.jsx(Pa.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:l,onPointerMove:Cn(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:Cn(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:Cn(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Cn(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:Cn(e.onBlur,a.onClose),onClick:Cn(e.onClick,a.onClose)})})});fm.displayName=Uu;var A6="TooltipPortal",[PM,S6]=cl(A6,{forceMount:void 0}),hi="TooltipContent",mm=A.forwardRef((e,t)=>{const r=S6(hi,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...i}=e,s=hl(hi,e.__scopeTooltip);return v.jsx(um,{present:n||s.open,children:s.disableHoverableContent?v.jsx(pm,{side:a,...i,ref:t}):v.jsx(C6,{side:a,...i,ref:t})})}),C6=A.forwardRef((e,t)=>{const r=hl(hi,e.__scopeTooltip),n=Y0(hi,e.__scopeTooltip),a=A.useRef(null),i=Ma(t,a),[s,o]=A.useState(null),{trigger:l,onClose:u}=r,d=a.current,{onPointerInTransitChange:c}=n,h=A.useCallback(()=>{o(null),c(!1)},[c]),m=A.useCallback((b,x)=>{const T=b.currentTarget,E={x:b.clientX,y:b.clientY},k=R6(E,T.getBoundingClientRect()),_=D6(E,k),P=L6(x.getBoundingClientRect()),U=P6([..._,...P]);o(U),c(!0)},[c]);return A.useEffect(()=>()=>h(),[h]),A.useEffect(()=>{if(l&&d){const b=T=>m(T,d),x=T=>m(T,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",x),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",x)}}},[l,d,m,h]),A.useEffect(()=>{if(s){const b=x=>{const T=x.target,E={x:x.clientX,y:x.clientY},k=(l==null?void 0:l.contains(T))||(d==null?void 0:d.contains(T)),_=!M6(E,s);k?h():_&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,s,u,h]),v.jsx(pm,{...e,ref:i})}),[_6,N6]=cl(gs,{isInside:!1}),I6=A3("TooltipContent"),pm=A.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:s,...o}=e,l=hl(hi,r),u=dl(r),{onClose:d}=l;return A.useEffect(()=>(document.addEventListener(Hu,d),()=>document.removeEventListener(Hu,d)),[d]),A.useEffect(()=>{if(l.trigger){const c=h=>{const m=h.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),v.jsx(z1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:v.jsxs(u6,{"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:[v.jsx(I6,{children:n}),v.jsx(_6,{scope:r,isInside:!0,children:v.jsx(E6,{id:l.contentId,role:"tooltip",children:a||n})})]})})});mm.displayName=hi;var gm="TooltipArrow",O6=A.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=dl(r);return N6(gm,r).isInside?null:v.jsx(c6,{...a,...n,ref:t})});O6.displayName=gm;function R6(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 D6(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 L6(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 M6(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,h=l.y;d>n!=h>n&&r<(c-u)*(n-d)/(h-d)+u&&(a=!a)}return a}function P6(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),B6(t)}function B6(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 F6=hm,z6=fm,bm=mm;function xm(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=xm(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=xm(e))&&(n&&(n+=" "),n+=t);return n}const X0="-",H6=e=>{const t=j6(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const o=s.split(X0);return o[0]===""&&o.length!==1&&o.shift(),ym(o,t)||U6(s)},getConflictingClassGroupIds:(s,o)=>{const l=r[s]||[];return o&&n[s]?[...l,...n[s]]:l}}},ym=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?ym(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(X0);return(s=t.validators.find(({validator:o})=>o(i)))==null?void 0:s.classGroupId},Sd=/^\[(.+)\]$/,U6=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}},j6=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return q6(Object.entries(e.classGroups),r).forEach(([i,s])=>{ju(s,n,i,t)}),n},ju=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:Cd(t,a);i.classGroupId=r;return}if(typeof a=="function"){if($6(a)){ju(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,s])=>{ju(s,Cd(t,i),r,n)})})},Cd=(e,t)=>{let r=e;return t.split(X0).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},$6=e=>e.isThemeGetter,q6=(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,V6=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)}}},Em="!",W6=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 T=0;T<o.length;T++){let E=o[T];if(u===0){if(E===a&&(n||o.slice(T,T+i)===t)){l.push(o.slice(d,T)),d=T+i;continue}if(E==="/"){c=T;continue}}E==="["?u++:E==="]"&&u--}const h=l.length===0?o:o.substring(d),m=h.startsWith(Em),b=m?h.substring(1):h,x=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:x}};return r?o=>r({className:o,parseClassName:s}):s},G6=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},Y6=e=>({cache:V6(e.cacheSize),parseClassName:W6(e),...H6(e)}),X6=/\s+/,K6=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(X6);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:h,maybePostfixModifierPosition:m}=r(u);let b=!!m,x=n(b?h.substring(0,m):h);if(!x){if(!b){o=u+(o.length>0?" "+o:o);continue}if(x=n(h),!x){o=u+(o.length>0?" "+o:o);continue}b=!1}const T=G6(d).join(":"),E=c?T+Em:T,k=E+x;if(i.includes(k))continue;i.push(k);const _=a(x,b);for(let P=0;P<_.length;++P){const U=_[P];i.push(E+U)}o=u+(o.length>0?" "+o:o)}return o};function Q6(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=vm(t))&&(n&&(n+=" "),n+=r);return n}const vm=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=vm(e[n]))&&(r&&(r+=" "),r+=t);return r};function J6(e,...t){let r,n,a,i=s;function s(l){const u=t.reduce((d,c)=>c(d),e());return r=Y6(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=K6(l,r);return a(l,d),d}return function(){return i(Q6.apply(null,arguments))}}const st=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Tm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Z6=/^\d+\/\d+$/,e5=new Set(["px","full","screen"]),t5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,r5=/\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$/,n5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,a5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,i5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=e=>ai(e)||e5.has(e)||Z6.test(e),Vn=e=>Ei(e,"length",f5),ai=e=>!!e&&!Number.isNaN(Number(e)),Ul=e=>Ei(e,"number",ai),Li=e=>!!e&&Number.isInteger(Number(e)),s5=e=>e.endsWith("%")&&ai(e.slice(0,-1)),Pe=e=>Tm.test(e),Wn=e=>t5.test(e),o5=new Set(["length","size","percentage"]),l5=e=>Ei(e,o5,wm),u5=e=>Ei(e,"position",wm),c5=new Set(["image","url"]),d5=e=>Ei(e,c5,p5),h5=e=>Ei(e,"",m5),Mi=()=>!0,Ei=(e,t,r)=>{const n=Tm.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},f5=e=>r5.test(e)&&!n5.test(e),wm=()=>!1,m5=e=>a5.test(e),p5=e=>i5.test(e),g5=()=>{const e=st("colors"),t=st("spacing"),r=st("blur"),n=st("brightness"),a=st("borderColor"),i=st("borderRadius"),s=st("borderSpacing"),o=st("borderWidth"),l=st("contrast"),u=st("grayscale"),d=st("hueRotate"),c=st("invert"),h=st("gap"),m=st("gradientColorStops"),b=st("gradientColorStopPositions"),x=st("inset"),T=st("margin"),E=st("opacity"),k=st("padding"),_=st("saturate"),P=st("scale"),U=st("sepia"),D=st("skew"),V=st("space"),Y=st("translate"),ee=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",Pe,t],$=()=>[Pe,t],C=()=>["",Tn,Vn],H=()=>["auto",ai,Pe],j=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",Pe],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[ai,Pe];return{cacheSize:500,separator:":",theme:{colors:[Mi],spacing:[Tn,Vn],blur:["none","",Wn,Pe],brightness:he(),borderColor:[e],borderRadius:["none","","full",Wn,Pe],borderSpacing:$(),borderWidth:C(),contrast:he(),grayscale:ue(),hueRotate:he(),invert:ue(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[s5,Vn],inset:ne(),margin:ne(),opacity:he(),padding:$(),saturate:he(),scale:he(),sepia:ue(),skew:he(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",Pe]}],container:["container"],columns:[{columns:[Wn]}],"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"],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:[...j(),Pe]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Li,Pe]}],basis:[{basis:ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pe]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",Li,Pe]}],"grid-cols":[{"grid-cols":[Mi]}],"col-start-end":[{col:["auto",{span:["full",Li,Pe]},Pe]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[Mi]}],"row-start-end":[{row:["auto",{span:[Li,Pe]},Pe]}],"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",Pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Pe,t]}],"min-w":[{"min-w":[Pe,t,"min","max","fit"]}],"max-w":[{"max-w":[Pe,t,"none","full","min","max","fit","prose",{screen:[Wn]},Wn]}],h:[{h:[Pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wn,Vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ul]}],"font-family":[{font:[Mi]}],"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",Pe]}],"line-clamp":[{"line-clamp":["none",ai,Ul]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,Pe]}],"list-image":[{"list-image":["none",Pe]}],"list-style-type":[{list:["none","disc","decimal",Pe]}],"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",Tn,Vn]}],"underline-offset":[{"underline-offset":["auto",Tn,Pe]}],"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:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe]}],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",Pe]}],"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:[...j(),u5]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",l5]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},d5]}],"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":[Tn,Pe]}],"outline-w":[{outline:[Tn,Vn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Tn,Vn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wn,h5]}],"shadow-color":[{shadow:[Mi]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Wn,Pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[_]}],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":[_]}],"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",Pe]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",Pe]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[Li,Pe]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pe]}],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",Pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",Pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tn,Vn,Ul]}],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"]}}},km=J6(g5);function Am(e,t){if(typeof t!="string")return null;const[r,n,...a]=t.split("//");if(r!==e||!n||a.length===0)return null;const i=a.join("//");let s=i.split("/").at(-1)??"",o="";if(n.startsWith("./"))o=n.split("/").at(-1)??"";else{const l=n.split("@").slice(0,-1).join("@")||n.split("@")[0];o=(l==null?void 0:l.split("/").at(-1))??""}return["default","__default"].includes(s)&&o&&(s=o),{shortName:s,moduleSpecifier:n,functionName:i}}function b5(e){return Am("workflow",e)}function x5(e){return Am("step",e)}/**
|
|
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 y5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sm=(...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 E5={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 v5=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:s,...o},l)=>A.createElement("svg",{ref:l,...E5,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Sm("lucide",a),...o},[...s.map(([u,d])=>A.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 K0=(e,t)=>{const r=A.forwardRef(({className:n,...a},i)=>A.createElement(v5,{ref:i,iconNode:t,className:Sm(`lucide-${y5(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 T5=K0("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
28
|
-
* @license lucide-react v0.469.0 - ISC
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the ISC license.
|
|
31
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/const w5=K0("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
33
|
-
* @license lucide-react v0.469.0 - ISC
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the ISC license.
|
|
36
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/const BM=K0("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function _d(...e){return km(Bt(e))}const Gs=new Intl.NumberFormat(void 0,{maximumFractionDigits:2}),vo=1e3,Yi=60*vo,Xi=60*Yi,Nd=24*Xi;function bs(e,t=!1){if(e===0)return"0";if(e<vo)return`${Gs.format(e)}ms`;if(e<Yi)return`${Gs.format(e/vo)}s`;if(t)return e<Xi?`${Gs.format(e/Yi)}m`:`${Gs.format(e/Xi)}h`;const r=Math.floor(e/Nd),n=Math.floor(e%Nd/Xi),a=Math.floor(e%Xi/Yi),i=Math.floor(e%Yi/vo),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 k5(e){return e.endsWith("//doStreamStep")}function A5(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}function Cm({title:e,className:t,details:r="Unknown error"}){const[n,a]=A.useState(!1);return v.jsx("div",{className:"flex justify-center w-full",children:v.jsxs("div",{className:_d("rounded-lg border border-destructive/50 bg-destructive/5 w-full max-w-[800px]",t),children:[v.jsxs("button",{type:"button",onClick:()=>a(!n),className:"w-full px-4 py-3 flex items-center justify-between gap-2 text-left hover:bg-destructive/10 transition-colors",children:[v.jsxs("div",{className:"flex items-center gap-2 text-destructive",children:[v.jsx(w5,{className:"h-4 w-4 shrink-0"}),v.jsx("span",{className:"font-medium text-sm",children:e})]}),v.jsxs("div",{className:"flex items-center gap-1.5 text-destructive/70",children:[v.jsx("span",{className:"text-xs",children:"Click to show details"}),v.jsx(T5,{className:_d("h-4 w-4 transition-transform duration-200",n&&"rotate-180")})]})]}),n&&r&&v.jsx("div",{className:"px-4 pb-3 border-t border-destructive/20",children:v.jsx("pre",{className:"mt-3 p-3 rounded-md bg-destructive/10 text-destructive text-xs font-mono whitespace-pre-wrap break-words overflow-auto",children:r})})]})})}class FM extends J.Component{constructor(r){super(r);Xe(this,"handleReset",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,n){console.error("Error caught by boundary:",r,n)}render(){if(this.state.hasError&&this.state.error){if(this.props.fallback)return this.props.fallback(this.state.error,this.handleReset);const r=this.state.error.stack?`${this.state.error.message}
|
|
38
|
-
|
|
39
|
-
${this.state.error.stack}`:this.state.error.message;return v.jsx(Cm,{title:this.props.title||"An error occurred",details:r})}return this.props.children}}var S5=Object.create,Q0=Object.defineProperty,C5=Object.getOwnPropertyDescriptor,_m=Object.getOwnPropertyNames,_5=Object.getPrototypeOf,N5=Object.prototype.hasOwnProperty,J0=(e,t)=>function(){return t||(0,e[_m(e)[0]])((t={exports:{}}).exports,t),t.exports},I5=(e,t)=>{for(var r in t)Q0(e,r,{get:t[r],enumerable:!0})},O5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _m(t))!N5.call(e,a)&&a!==r&&Q0(e,a,{get:()=>t[a],enumerable:!(n=C5(t,a))||n.enumerable});return e},R5=(e,t,r)=>(r=e!=null?S5(_5(e)):{},O5(Q0(r,"default",{value:e,enumerable:!0}),e)),D5=J0({"node_modules/is-object/index.js"(e,t){t.exports=function(n){return typeof n=="object"&&n!==null}}}),L5=J0({"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}}}),M5=J0({"node_modules/is-dom/index.js"(e,t){var r=D5(),n=L5();function a(i){return!r(i)||!n(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}t.exports=a}}),Bo={};I5(Bo,{chromeDark:()=>P5,chromeLight:()=>B5});var P5={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"},Nm=A.createContext([{},()=>{}]),jl={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},To=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,...jl},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`}:{},...jl},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,...jl}}),$u="chromeLight",Im=A.createContext(To(Bo[$u])),Ns=e=>A.useContext(Im)[e],F5=e=>({theme:r=$u,...n})=>{const a=A.useMemo(()=>{switch(Object.prototype.toString.call(r)){case"[object String]":return To(Bo[r]);case"[object Object]":return To(r);default:return To(Bo[$u])}},[r]);return J.createElement(Im.Provider,{value:a},J.createElement(e,{...n}))},z5=({expanded:e,styles:t})=>J.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶"),H5=A.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=Ns("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||A.Children.count(n)>0?J.createElement(z5,{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))}),Fo="$",Id="*";function wo(e,t){return!t(e).next().done}var U5=e=>Array.from({length:e},(t,r)=>[Fo].concat(Array.from({length:r},()=>"*")).join(".")),j5=(e,t,r,n,a)=>{const i=[].concat(U5(n)).concat(r).filter(o=>typeof o=="string"),s=[];return i.forEach(o=>{const l=o.split("."),u=(d,c,h)=>{if(h===l.length){s.push(c);return}const m=l[h];if(h===0)wo(d,t)&&(m===Fo||m===Id)&&u(d,Fo,h+1);else if(m===Id)for(const{name:b,data:x}of t(d))wo(x,t)&&u(x,`${c}.${b}`,h+1);else{const b=d[m];wo(b,t)&&u(b,`${c}.${m}`,h+1)}};u(e,"",0)}),s.reduce((o,l)=>(o[l]=!0,o),{...a})},Om=A.memo(e=>{const{data:t,dataIterator:r,path:n,depth:a,nodeRenderer:i}=e,[s,o]=A.useContext(Nm),l=wo(t,r),u=!!s[n],d=A.useCallback(()=>l&&o(c=>({...c,[n]:!u})),[l,o,n,u]);return J.createElement(H5,{expanded:u,onClick:d,shouldShowArrow:l,shouldShowPlaceholder:a>0,nodeRenderer:i,...e},u?[...r(t)].map(({name:c,data:h,...m})=>J.createElement(Om,{name:c,data:h,depth:a+1,path:`${n}.${c}`,key:c,dataIterator:r,nodeRenderer:i,...m})):null)}),$5=A.memo(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:a,expandLevel:i})=>{const s=Ns("TreeView"),o=A.useState({}),[,l]=o;return A.useLayoutEffect(()=>l(u=>j5(t,r,a,i,u)),[t,r,a,i]),J.createElement(Nm.Provider,{value:o},J.createElement("ol",{role:"tree",style:s.treeViewOutline},J.createElement(Om,{name:e,data:t,dataIterator:r,depth:0,path:Fo,nodeRenderer:n})))}),Z0=({name:e,dimmed:t=!1,styles:r={}})=>{const n=Ns("ObjectName"),a={...n.base,...t?n.dimmed:{},...r};return J.createElement("span",{style:a},e)},ko=({object:e,styles:t})=>{const r=Ns("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)}},q5=Object.prototype.hasOwnProperty,V5=Object.prototype.propertyIsEnumerable;function qu(e,t){const r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function Od(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var Vu=({data:e})=>{const t=Ns("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return J.createElement(ko,{object:r});if(Array.isArray(r)){const n=t.arrayMaxProperties,a=r.slice(0,n).map((s,o)=>J.createElement(ko,{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},"[",Od(a,", "),"]"))}else{const n=t.objectMaxProperties,a=[];for(const s in r)if(q5.call(r,s)){let o;a.length===n-1&&Object.keys(r).length>n&&(o=J.createElement("span",{key:"ellipsis"},"…"));const l=qu(r,s);if(a.push(J.createElement("span",{key:s},J.createElement(Z0,{name:s||'""'}),": ",J.createElement(ko,{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},"{",Od(a,", "),"}"))}},W5=({name:e,data:t})=>typeof e=="string"?J.createElement("span",null,J.createElement(Z0,{name:e}),J.createElement("span",null,": "),J.createElement(Vu,{data:t})):J.createElement(Vu,{data:t}),G5=({name:e,data:t,isNonenumerable:r=!1})=>{const n=t;return J.createElement("span",null,typeof e=="string"?J.createElement(Z0,{name:e,dimmed:r}):J.createElement(Vu,{data:e}),J.createElement("span",null,": "),J.createElement(ko,{object:n}))},Y5=(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(V5.call(n,o)){const l=qu(n,o);yield{name:o||'""',data:l}}else if(e){let l;try{l=qu(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})}},X5=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?J.createElement(W5,{name:t,data:r}):J.createElement(G5,{name:t,data:r,isNonenumerable:n}),K5=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{const a=Y5(e,t),i=r||X5;return J.createElement($5,{nodeRenderer:i,dataIterator:a,...n})},Q5=F5(K5);R5(M5());const Rm=()=>{const[e,t]=A.useState(()=>typeof document>"u"?!1:document.documentElement.classList.contains("dark"));return A.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},Dm={BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.4,BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:"var(--ds-gray-1000)",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:"var(--ds-gray-600)",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_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)",TABLE_DATA_BACKGROUND_IMAGE:"none",TABLE_DATA_BACKGROUND_SIZE:"0"},J5={...Dm,BASE_COLOR:"var(--ds-gray-1000)",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_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)"};function Z5(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 e8=e=>{switch(e){case"success":return n8;case"info":return i8;case"warning":return a8;case"error":return s8;default:return null}},t8=Array(12).fill(0),r8=({visible:e,className:t})=>J.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},J.createElement("div",{className:"sonner-spinner"},t8.map((r,n)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),n8=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"})),a8=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"})),i8=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"})),s8=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"})),o8=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"})),l8=()=>{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 Wu=1;class u8{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:Wu++,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(d8(u)&&!u.ok){i=!1;const c=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,h=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:h,...b})}else if(u instanceof Error){i=!1;const c=typeof r.error=="function"?await r.error(u):r.error,h=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:h,...b})}else if(r.success!==void 0){i=!1;const c=typeof r.success=="function"?await r.success(u):r.success,h=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:h,...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)||Wu++;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 ar=new u8,c8=(e,t)=>{const r=(t==null?void 0:t.id)||Wu++;return ar.addToast({title:e,...t,id:r}),r},d8=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",h8=c8,f8=()=>ar.toasts,m8=()=>ar.getActiveToasts(),zM=Object.assign(h8,{success:ar.success,info:ar.info,warning:ar.warning,error:ar.error,custom:ar.custom,message:ar.message,promise:ar.promise,dismiss:ar.dismiss,loading:ar.loading},{getHistory:f8,getToasts:m8});Z5("[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 Ys(e){return e.label!==void 0}const p8=3,g8="24px",b8="16px",Rd=4e3,x8=356,y8=14,E8=45,v8=200;function Wr(...e){return e.filter(Boolean).join(" ")}function T8(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}const w8=e=>{var t,r,n,a,i,s,o,l,u;const{invert:d,toast:c,unstyled:h,interacting:m,setHeights:b,visibleToasts:x,heights:T,index:E,toasts:k,expanded:_,removeToast:P,defaultRichColors:U,closeButton:D,style:V,cancelButtonStyle:Y,actionButtonStyle:ee,className:F="",descriptionClassName:ne="",duration:$,position:C,gap:H,expandByDefault:j,classNames:q,icons:W,closeButtonAriaLabel:X="Close toast"}=e,[ue,N]=J.useState(null),[he,be]=J.useState(null),[O,Ae]=J.useState(!1),[Re,je]=J.useState(!1),[Le,Ne]=J.useState(!1),[rt,lt]=J.useState(!1),[Ct,_t]=J.useState(!1),[Ir,Er]=J.useState(0),[vn,Vr]=J.useState(0),Jt=J.useRef(c.duration||$||Rd),Or=J.useRef(null),ft=J.useRef(null),js=E===0,Pl=E+1<=x,Vt=c.type,Un=c.dismissible!==!1,Bl=c.className||"",Fl=c.descriptionClassName||"",te=J.useMemo(()=>T.findIndex(Me=>Me.toastId===c.id)||0,[T,c.id]),me=J.useMemo(()=>{var Me;return(Me=c.closeButton)!=null?Me:D},[c.closeButton,D]),Ie=J.useMemo(()=>c.duration||$||Rd,[c.duration,$]),He=J.useRef(0),Ye=J.useRef(0),Zt=J.useRef(0),er=J.useRef(null),[Rr,pa]=C.split("-"),jn=J.useMemo(()=>T.reduce((Me,Nt,zt)=>zt>=te?Me:Me+Nt.height,0),[T,te]),Ft=l8(),$n=c.invert||d,ur=Vt==="loading";Ye.current=J.useMemo(()=>te*H+jn,[te,jn]),J.useEffect(()=>{Jt.current=Ie},[Ie]),J.useEffect(()=>{Ae(!0)},[]),J.useEffect(()=>{const Me=ft.current;if(Me){const Nt=Me.getBoundingClientRect().height;return Vr(Nt),b(zt=>[{toastId:c.id,height:Nt,position:c.position},...zt]),()=>b(zt=>zt.filter(cr=>cr.toastId!==c.id))}},[b,c.id]),J.useLayoutEffect(()=>{if(!O)return;const Me=ft.current,Nt=Me.style.height;Me.style.height="auto";const zt=Me.getBoundingClientRect().height;Me.style.height=Nt,Vr(zt),b(cr=>cr.find(Lt=>Lt.toastId===c.id)?cr.map(Lt=>Lt.toastId===c.id?{...Lt,height:zt}:Lt):[{toastId:c.id,height:zt,position:c.position},...cr])},[O,c.title,c.description,b,c.id,c.jsx,c.action,c.cancel]);const qn=J.useCallback(()=>{je(!0),Er(Ye.current),b(Me=>Me.filter(Nt=>Nt.toastId!==c.id)),setTimeout(()=>{P(c)},v8)},[c,P,b,Ye]);J.useEffect(()=>{if(c.promise&&Vt==="loading"||c.duration===1/0||c.type==="loading")return;let Me;return _||m||Ft?(()=>{if(Zt.current<He.current){const cr=new Date().getTime()-He.current;Jt.current=Jt.current-cr}Zt.current=new Date().getTime()})():(()=>{Jt.current!==1/0&&(He.current=new Date().getTime(),Me=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),qn()},Jt.current))})(),()=>clearTimeout(Me)},[_,m,c,Vt,Ft,qn]),J.useEffect(()=>{c.delete&&(qn(),c.onDismiss==null||c.onDismiss.call(c,c))},[qn,c.delete]);function b3(){var Me;if(W!=null&&W.loading){var Nt;return J.createElement("div",{className:Wr(q==null?void 0:q.loader,c==null||(Nt=c.classNames)==null?void 0:Nt.loader,"sonner-loader"),"data-visible":Vt==="loading"},W.loading)}return J.createElement(r8,{className:Wr(q==null?void 0:q.loader,c==null||(Me=c.classNames)==null?void 0:Me.loader),visible:Vt==="loading"})}const x3=c.icon||(W==null?void 0:W[Vt])||e8(Vt);var ud,cd;return J.createElement("li",{tabIndex:0,ref:ft,className:Wr(F,Bl,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[Vt],c==null||(r=c.classNames)==null?void 0:r[Vt]),"data-sonner-toast":"","data-rich-colors":(ud=c.richColors)!=null?ud:U,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":O,"data-promise":!!c.promise,"data-swiped":Ct,"data-removed":Re,"data-visible":Pl,"data-y-position":Rr,"data-x-position":pa,"data-index":E,"data-front":js,"data-swiping":Le,"data-dismissible":Un,"data-type":Vt,"data-invert":$n,"data-swipe-out":rt,"data-swipe-direction":he,"data-expanded":!!(_||j&&O),"data-testid":c.testId,style:{"--index":E,"--toasts-before":E,"--z-index":k.length-E,"--offset":`${Re?Ir:Ye.current}px`,"--initial-height":j?"auto":`${vn}px`,...V,...c.style},onDragEnd:()=>{Ne(!1),N(null),er.current=null},onPointerDown:Me=>{Me.button!==2&&(ur||!Un||(Or.current=new Date,Er(Ye.current),Me.target.setPointerCapture(Me.pointerId),Me.target.tagName!=="BUTTON"&&(Ne(!0),er.current={x:Me.clientX,y:Me.clientY})))},onPointerUp:()=>{var Me,Nt,zt;if(rt||!Un)return;er.current=null;const cr=Number(((Me=ft.current)==null?void 0:Me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),$s=Number(((Nt=ft.current)==null?void 0:Nt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Lt=new Date().getTime()-((zt=Or.current)==null?void 0:zt.getTime()),vr=ue==="x"?cr:$s,qs=Math.abs(vr)/Lt;if(Math.abs(vr)>=E8||qs>.11){Er(Ye.current),c.onDismiss==null||c.onDismiss.call(c,c),be(ue==="x"?cr>0?"right":"left":$s>0?"down":"up"),qn(),lt(!0);return}else{var Dr,Lr;(Dr=ft.current)==null||Dr.style.setProperty("--swipe-amount-x","0px"),(Lr=ft.current)==null||Lr.style.setProperty("--swipe-amount-y","0px")}_t(!1),Ne(!1),N(null)},onPointerMove:Me=>{var Nt,zt,cr;if(!er.current||!Un||((Nt=window.getSelection())==null?void 0:Nt.toString().length)>0)return;const Lt=Me.clientY-er.current.y,vr=Me.clientX-er.current.x;var qs;const Dr=(qs=e.swipeDirections)!=null?qs:T8(C);!ue&&(Math.abs(vr)>1||Math.abs(Lt)>1)&&N(Math.abs(vr)>Math.abs(Lt)?"x":"y");let Lr={x:0,y:0};const dd=ga=>1/(1.5+Math.abs(ga)/20);if(ue==="y"){if(Dr.includes("top")||Dr.includes("bottom"))if(Dr.includes("top")&&Lt<0||Dr.includes("bottom")&&Lt>0)Lr.y=Lt;else{const ga=Lt*dd(Lt);Lr.y=Math.abs(ga)<Math.abs(Lt)?ga:Lt}}else if(ue==="x"&&(Dr.includes("left")||Dr.includes("right")))if(Dr.includes("left")&&vr<0||Dr.includes("right")&&vr>0)Lr.x=vr;else{const ga=vr*dd(vr);Lr.x=Math.abs(ga)<Math.abs(vr)?ga:vr}(Math.abs(Lr.x)>0||Math.abs(Lr.y)>0)&&_t(!0),(zt=ft.current)==null||zt.style.setProperty("--swipe-amount-x",`${Lr.x}px`),(cr=ft.current)==null||cr.style.setProperty("--swipe-amount-y",`${Lr.y}px`)}},me&&!c.jsx&&Vt!=="loading"?J.createElement("button",{"aria-label":X,"data-disabled":ur,"data-close-button":!0,onClick:ur||!Un?()=>{}:()=>{qn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Wr(q==null?void 0:q.closeButton,c==null||(n=c.classNames)==null?void 0:n.closeButton)},(cd=W==null?void 0:W.close)!=null?cd:o8):null,(Vt||c.icon||c.promise)&&c.icon!==null&&((W==null?void 0:W[Vt])!==null||c.icon)?J.createElement("div",{"data-icon":"",className:Wr(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||b3():null,c.type!=="loading"?x3:null):null,J.createElement("div",{"data-content":"",className:Wr(q==null?void 0:q.content,c==null||(i=c.classNames)==null?void 0:i.content)},J.createElement("div",{"data-title":"",className:Wr(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:Wr(ne,Fl,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&&Ys(c.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||Y,onClick:Me=>{Ys(c.cancel)&&Un&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Me),qn())},className:Wr(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&&Ys(c.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||ee,onClick:Me=>{Ys(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Me),!Me.defaultPrevented&&qn())},className:Wr(q==null?void 0:q.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Dd(){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 k8(e,t){const r={};return[e,t].forEach((n,a)=>{const i=a===1,s=i?"--mobile-offset":"--offset",o=i?b8:g8;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 HM=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:h="light",richColors:m,duration:b,style:x,visibleToasts:T=p8,toastOptions:E,dir:k=Dd(),gap:_=y8,icons:P,containerAriaLabel:U="Notifications"}=t,[D,V]=J.useState([]),Y=J.useMemo(()=>n?D.filter(O=>O.toasterId===n):D.filter(O=>!O.toasterId),[D,n]),ee=J.useMemo(()=>Array.from(new Set([i].concat(Y.filter(O=>O.position).map(O=>O.position)))),[Y,i]),[F,ne]=J.useState([]),[$,C]=J.useState(!1),[H,j]=J.useState(!1),[q,W]=J.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=J.useRef(null),ue=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=J.useRef(null),he=J.useRef(!1),be=J.useCallback(O=>{V(Ae=>{var Re;return(Re=Ae.find(je=>je.id===O.id))!=null&&Re.delete||ar.dismiss(O.id),Ae.filter(({id:je})=>je!==O.id)})},[]);return J.useEffect(()=>ar.subscribe(O=>{if(O.dismiss){requestAnimationFrame(()=>{V(Ae=>Ae.map(Re=>Re.id===O.id?{...Re,delete:!0}:Re))});return}setTimeout(()=>{v3.flushSync(()=>{V(Ae=>{const Re=Ae.findIndex(je=>je.id===O.id);return Re!==-1?[...Ae.slice(0,Re),{...Ae[Re],...O},...Ae.slice(Re+1)]:[O,...Ae]})})})}),[D]),J.useEffect(()=>{if(h!=="system"){W(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;const O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:Ae})=>{W(Ae?"dark":"light")})}catch{O.addListener(({matches:Re})=>{try{W(Re?"dark":"light")}catch(je){console.error(je)}})}},[h]),J.useEffect(()=>{D.length<=1&&C(!1)},[D]),J.useEffect(()=>{const O=Ae=>{var Re;if(s.every(Ne=>Ae[Ne]||Ae.code===Ne)){var Le;C(!0),(Le=X.current)==null||Le.focus()}Ae.code==="Escape"&&(document.activeElement===X.current||(Re=X.current)!=null&&Re.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[s]),J.useEffect(()=>{if(X.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,he.current=!1)}},[X.current]),J.createElement("section",{ref:r,"aria-label":`${U} ${ue}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ee.map((O,Ae)=>{var Re;const[je,Le]=O.split("-");return Y.length?J.createElement("ol",{key:O,dir:k==="auto"?Dd():k,tabIndex:-1,ref:X,className:u,"data-sonner-toaster":!0,"data-sonner-theme":q,"data-y-position":je,"data-x-position":Le,style:{"--front-toast-height":`${((Re=F[0])==null?void 0:Re.height)||0}px`,"--width":`${x8}px`,"--gap":`${_}px`,...x,...k8(d,c)},onBlur:Ne=>{he.current&&!Ne.currentTarget.contains(Ne.relatedTarget)&&(he.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:Ne=>{Ne.target instanceof HTMLElement&&Ne.target.dataset.dismissible==="false"||he.current||(he.current=!0,N.current=Ne.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{H||C(!1)},onDragEnd:()=>C(!1),onPointerDown:Ne=>{Ne.target instanceof HTMLElement&&Ne.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},Y.filter(Ne=>!Ne.position&&Ae===0||Ne.position===O).map((Ne,rt)=>{var lt,Ct;return J.createElement(w8,{key:Ne.id,icons:P,index:rt,toast:Ne,defaultRichColors:m,duration:(lt=E==null?void 0:E.duration)!=null?lt:b,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:a,visibleToasts:T,closeButton:(Ct=E==null?void 0:E.closeButton)!=null?Ct:l,interacting:H,position:O,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:be,toasts:Y.filter(_t=>_t.position==Ne.position),heights:F.filter(_t=>_t.position==Ne.position),setHeights:ne,expandByDefault:o,gap:_,expanded:$,swipeDirections:t.swipeDirections})})):null}))}),A8="modulepreload",S8=function(e){return"/"+e},Ld={},fl=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=S8(u),u in Ld)return;Ld[u]=!0;const d=u.endsWith(".css"),c=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":A8,d||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((m,b)=>{h.addEventListener("load",m),h.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)})},vi=(function(e){if(e==null)return I8;if(typeof e=="function")return ml(e);if(typeof e=="object")return Array.isArray(e)?C8(e):_8(e);if(typeof e=="string")return N8(e);throw new Error("Expected function, string, or object as test")});function C8(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=vi(e[r]);return ml(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function _8(e){const t=e;return ml(r);function r(n){const a=n;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function N8(e){return ml(t);function t(r){return r&&r.type===e}}function ml(e){return t;function t(r,n,a){return!!(O8(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function I8(){return!0}function O8(e){return e!==null&&typeof e=="object"&&"type"in e}const Lm=[],Ki=!0,Gu=!1,Yu="skip";function R8(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=vi(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(h,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=Lm,b,x,T;if((!t||i(l,u,d[d.length-1]||void 0))&&(m=D8(r(l,d)),m[0]===Gu))return m;if("children"in l&&l.children){const E=l;if(E.children&&m[0]!==Yu)for(x=(n?E.children.length:-1)+s,T=d.concat(E);x>-1&&x<E.children.length;){const k=E.children[x];if(b=o(k,x,T)(),b[0]===Gu)return b;x=typeof b[1]=="number"?b[1]:x+s}}return m}}}function D8(e){return Array.isArray(e)?e:typeof e=="number"?[Ki,e]:e==null?Lm:[e]}function fi(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),R8(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 L8({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=F8(e,t,r,n,a,i,s);fi(u,d)}}function Md(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 M8(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const P8=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),B8=new Set(["javascript:","data:","file:","vbscript:"]);function Pd(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=Md(e,r);if(!s||B8.has(s.protocol)||!(P8.has(s.protocol)||i.includes(s.protocol)||i.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=M8(e);return s&&t.some(u=>{const d=Md(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 $l=Symbol("node-seen"),F8=(e,t,r,n,a,i,s)=>{const o=(l,u,d)=>{if(l.type!=="element"||l[$l])return Ki;if(l.tagName==="a"){const c=Pd(l.properties.href,t,e,!1,!1,a);return c===null?(l[$l]=!0,fi(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]"}]}),Yu):(l.properties.href=c,l.properties.target="_blank",l.properties.rel="noopener noreferrer",Ki)}if(l.tagName==="img"){const c=Pd(l.properties.src,r,e,n,!0,a);return c===null?(l[$l]=!0,fi(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")+"]"}]}),Yu):(l.properties.src=c,Ki)}return Ki};return o};let Is=class{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};Is.prototype.normal={};Is.prototype.property={};Is.prototype.space=void 0;function Mm(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new Is(r,n,t)}function xs(e){return e.toLowerCase()}let or=class{constructor(t,r){this.attribute=r,this.property=t}};or.prototype.attribute="";or.prototype.booleanish=!1;or.prototype.boolean=!1;or.prototype.commaOrSpaceSeparated=!1;or.prototype.commaSeparated=!1;or.prototype.defined=!1;or.prototype.mustUseProperty=!1;or.prototype.number=!1;or.prototype.overloadedBoolean=!1;or.prototype.property="";or.prototype.spaceSeparated=!1;or.prototype.space=void 0;let z8=0;const Be=Ba(),yt=Ba(),Xu=Ba(),ce=Ba(),nt=Ba(),ii=Ba(),hr=Ba();function Ba(){return 2**++z8}const Ku=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:yt,commaOrSpaceSeparated:hr,commaSeparated:ii,number:ce,overloadedBoolean:Xu,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),ql=Object.keys(Ku);let ec=class extends or{constructor(t,r,n,a){let i=-1;if(super(t,r),Bd(this,"space",a),typeof n=="number")for(;++i<ql.length;){const s=ql[i];Bd(this,ql[i],(n&Ku[s])===Ku[s])}}};ec.prototype.defined=!0;function Bd(e,t,r){r&&(e[t]=r)}function Ti(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const i=new ec(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[xs(n)]=n,r[xs(i.attribute)]=n}return new Is(t,r,e.space)}const Pm=Ti({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:nt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:ce,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:nt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:yt,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 Bm(e,t){return t in e?e[t]:t}function Fm(e,t){return Bm(e,t.toLowerCase())}const H8=Ti({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ii,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:nt,autoFocus:Be,autoPlay:Be,blocking:nt,capture:null,charSet:null,checked:Be,cite:null,className:nt,cols:ce,colSpan:null,content:null,contentEditable:yt,controls:Be,controlsList:nt,coords:ce|ii,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:Xu,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:nt,height:ce,hidden:Xu,high:ce,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:nt,itemRef:nt,itemScope:Be,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,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:Be,optimum:ce,pattern:null,ping:nt,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:nt,required:Be,reversed:Be,rows:ce,rowSpan:ce,sandbox:nt,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:yt,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:Be,useMap:null,value:yt,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,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:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:yt,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:Be,disableRemotePlayback:Be,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:Fm}),U8=Ti({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:hr,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:nt,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:Be,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:ii,g2:ii,glyphName:ii,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:hr,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:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hr,rev:hr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hr,requiredFeatures:hr,requiredFonts:hr,requiredFormats:hr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant: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:hr,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:hr,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:hr,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:Bm}),zm=Ti({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()}}),Hm=Ti({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fm}),Um=Ti({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),j8={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"},$8=/[A-Z]/g,Fd=/-[a-z]/g,q8=/^data[-\w.:]+$/i;function tc(e,t){const r=xs(t);let n=t,a=or;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&q8.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Fd,W8);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Fd.test(i)){let s=i.replace($8,V8);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=ec}return new a(n,t)}function V8(e){return"-"+e.toLowerCase()}function W8(e){return e.charAt(1).toUpperCase()}const pl=Mm([Pm,H8,zm,Hm,Um],"html"),wi=Mm([Pm,U8,zm,Hm,Um],"svg");function zd(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 jm(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Hd=/[#.]/g;function G8(e,t){const r=e||"",n={};let a=0,i,s;for(;a<r.length;){Hd.lastIndex=a;const o=Hd.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 Ud(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function $m(e){return e.join(" ").trim()}function qm(e,t,r){const n=r?Q8(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=G8(i,t);const u=l.tagName.toLowerCase(),d=n?n.get(u):void 0;if(l.tagName=d||u,Y8(s))o.unshift(s);else for(const[c,h]of Object.entries(s))X8(e,l.properties,c,h)}for(const u of o)Qu(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function Y8(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 X8(e,t,r,n){const a=tc(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=Ud(n):a.commaSeparated?i=zd(n):a.commaOrSpaceSeparated?i=Ud(zd(n).join(" ")):i=jd(a,a.property,n):Array.isArray(n)?i=[...n]:i=a.property==="style"?K8(n):String(n);if(Array.isArray(i)){const s=[];for(const o of i)s.push(jd(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Qu(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)Qu(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Qu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function jd(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||xs(r)===xs(t)))return!0}return r}function K8(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function Q8(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const J8=["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"],Vm=qm(pl,"div"),Wm=qm(wi,"g",J8),cn={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 Z8(e,t){return Gm(e,{})||{type:"root",children:[]}}function Gm(e,t){const r=ex(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function ex(e,t){switch(e.nodeType){case 1:return ax(e,t);case 3:return rx(e);case 8:return nx(e);case 9:return $d(e,t);case 10:return tx();case 11:return $d(e,t);default:return}}function $d(e,t){return{type:"root",children:Ym(e,t)}}function tx(){return{type:"doctype"}}function rx(e){return{type:"text",value:e.nodeValue||""}}function nx(e){return{type:"comment",value:e.nodeValue||""}}function ax(e,t){const r=e.namespaceURI,n=r===cn.svg?Wm:Vm,a=r===cn.html?e.tagName.toLowerCase():e.tagName,i=r===cn.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,Ym(i,t))}function Ym(e,t){const r=e.childNodes,n=[];let a=-1;for(;++a<r.length;){const i=Gm(r[a],t);i!==void 0&&n.push(i)}return n}new DOMParser;function ix(e,t){const r=sx(e);return Z8(r)}function sx(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const qd=(function(e,t,r){const n=vi(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]}),Fa=(function(e){if(e==null)return ux;if(typeof e=="string")return lx(e);if(typeof e=="object")return ox(e);if(typeof e=="function")return rc(e);throw new Error("Expected function, string, or array as `test`")});function ox(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Fa(e[r]);return rc(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function lx(e){return rc(t);function t(r){return r.tagName===e}}function rc(e){return t;function t(r,n,a){return!!(cx(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function ux(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function cx(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Vd=/\n/g,Wd=/[\t ]+/g,Ju=Fa("br"),Gd=Fa(xx),dx=Fa("p"),Yd=Fa("tr"),hx=Fa(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",bx,yx]),Xm=Fa(["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 fx(e,t){const r=t||{},n="children"in e?e.children:[],a=Xm(e),i=Jm(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...Qm(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)s.push(...Km(n[o],e,{whitespace:i,breakBefore:o?void 0:a,breakAfter:o<n.length-1?Ju(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(`
|
|
40
|
-
`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function Km(e,t,r){return e.type==="element"?mx(e,t,r):e.type==="text"?r.whitespace==="normal"?Qm(e,r):px(e):[]}function mx(e,t,r){const n=Jm(e,r),a=e.children||[];let i=-1,s=[];if(hx(e))return s;let o,l;for(Ju(e)||Yd(e)&&qd(t,e,Yd)?l=`
|
|
41
|
-
`:dx(e)?(o=2,l=2):Xm(e)&&(o=1,l=1);++i<a.length;)s=s.concat(Km(a[i],e,{whitespace:n,breakBefore:i?void 0:o,breakAfter:i<a.length-1?Ju(a[i+1]):l}));return Gd(e)&&qd(t,e,Gd)&&s.push(" "),o&&s.unshift(o),l&&s.push(l),s}function Qm(e,t){const r=String(e.value),n=[],a=[];let i=0;for(;i<=r.length;){Vd.lastIndex=i;const l=Vd.exec(r),u=l&&"index"in l?l.index:r.length;n.push(gx(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 px(e){return[String(e.value)]}function gx(e,t,r){const n=[];let a=0,i;for(;a<e.length;){Wd.lastIndex=a;const s=Wd.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 Jm(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 bx(e){return!!(e.properties||{}).hidden}function xx(e){return e.tagName==="td"||e.tagName==="th"}function yx(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class ir{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 ir(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class br{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 br(r,ir.range(this,t))}}class le{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__=le.prototype,c.position=a,a!=null&&i!=null&&(c.length=i-a),c.rawMessage=t,c}}le.prototype.__proto__=Error.prototype;var Ex=function(t,r){return t===void 0?r:t},vx=/([A-Z])/g,Tx=function(t){return t.replace(vx,"-$1").toLowerCase()},wx={"&":"&",">":">","<":"<",'"':""","'":"'"},kx=/[&><"']/g;function Ax(e){return String(e).replace(kx,t=>wx[t])}var Zm=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},Sx=function(t){var r=Zm(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},Cx=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},_x=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"},Qe={deflt:Ex,escape:Ax,hyphenate:Tx,getBaseElem:Zm,isCharacterBox:Sx,protocolFromUrl:_x},Ao={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 Nx(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 nc{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 Ao)if(Ao.hasOwnProperty(r)){var n=Ao[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:Nx(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 le("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=Qe.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 Gn{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 on[Ix[this.id]]}sub(){return on[Ox[this.id]]}fracNum(){return on[Rx[this.id]]}fracDen(){return on[Dx[this.id]]}cramp(){return on[Lx[this.id]]}text(){return on[Mx[this.id]]}isTight(){return this.size>=2}}var ac=0,zo=1,si=2,On=3,ys=4,Sr=5,mi=6,Xt=7,on=[new Gn(ac,0,!1),new Gn(zo,0,!0),new Gn(si,1,!1),new Gn(On,1,!0),new Gn(ys,2,!1),new Gn(Sr,2,!0),new Gn(mi,3,!1),new Gn(Xt,3,!0)],Ix=[ys,Sr,ys,Sr,mi,Xt,mi,Xt],Ox=[Sr,Sr,Sr,Sr,Xt,Xt,Xt,Xt],Rx=[si,On,ys,Sr,mi,Xt,mi,Xt],Dx=[On,On,Sr,Sr,Xt,Xt,Xt,Xt],Lx=[zo,zo,On,On,Sr,Sr,Xt,Xt],Mx=[ac,zo,si,On,si,On,si,On],Ce={DISPLAY:on[ac],TEXT:on[si],SCRIPT:on[ys],SCRIPTSCRIPT:on[mi]},Zu=[{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 Px(e){for(var t=0;t<Zu.length;t++)for(var r=Zu[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 So=[];Zu.forEach(e=>e.blocks.forEach(t=>So.push(...t)));function ep(e){for(var t=0;t<So.length;t+=2)if(e>=So[t]&&e<=So[t+1])return!0;return!1}var qa=80,Bx=function(t,r){return"M95,"+(622+t+r)+`
|
|
42
|
-
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
43
|
-
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
44
|
-
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
|
|
45
|
-
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
46
|
-
c69,-144,104.5,-217.7,106.5,-221
|
|
47
|
-
l`+t/2.075+" -"+t+`
|
|
48
|
-
c5.3,-9.3,12,-14,20,-14
|
|
49
|
-
H400000v`+(40+t)+`H845.2724
|
|
50
|
-
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
51
|
-
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
52
|
-
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Fx=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
53
|
-
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
54
|
-
c340,-704.7,510.7,-1060.3,512,-1067
|
|
55
|
-
l`+t/2.084+" -"+t+`
|
|
56
|
-
c4.7,-7.3,11,-11,19,-11
|
|
57
|
-
H40000v`+(40+t)+`H1012.3
|
|
58
|
-
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
59
|
-
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
|
|
60
|
-
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
61
|
-
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
62
|
-
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},zx=function(t,r){return"M983 "+(10+t+r)+`
|
|
63
|
-
l`+t/3.13+" -"+t+`
|
|
64
|
-
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
65
|
-
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
|
|
66
|
-
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
|
|
67
|
-
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
68
|
-
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
69
|
-
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
70
|
-
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
71
|
-
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Hx=function(t,r){return"M424,"+(2398+t+r)+`
|
|
72
|
-
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
73
|
-
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
|
|
74
|
-
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
75
|
-
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
76
|
-
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
77
|
-
v`+(40+t)+`H1014.6
|
|
78
|
-
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
79
|
-
c-2,6,-10,9,-24,9
|
|
80
|
-
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
81
|
-
h400000v`+(40+t)+"h-400000z"},Ux=function(t,r){return"M473,"+(2713+t+r)+`
|
|
82
|
-
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
83
|
-
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
84
|
-
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
85
|
-
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
|
|
86
|
-
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
|
|
87
|
-
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
88
|
-
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},jx=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},$x=function(t,r,n){var a=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
89
|
-
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
|
|
90
|
-
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
91
|
-
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
92
|
-
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},qx=function(t,r,n){r=1e3*r;var a="";switch(t){case"sqrtMain":a=Bx(r,qa);break;case"sqrtSize1":a=Fx(r,qa);break;case"sqrtSize2":a=zx(r,qa);break;case"sqrtSize3":a=Hx(r,qa);break;case"sqrtSize4":a=Ux(r,qa);break;case"sqrtTall":a=$x(r,qa,n)}return a},Vx=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""}},Xd={doubleleftarrow:`M262 157
|
|
93
|
-
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
|
|
94
|
-
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
|
|
95
|
-
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
|
|
96
|
-
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
|
|
97
|
-
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
|
|
98
|
-
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
99
|
-
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
100
|
-
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
101
|
-
-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
|
|
102
|
-
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
|
|
103
|
-
-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
|
|
104
|
-
-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
|
|
105
|
-
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
106
|
-
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
107
|
-
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
108
|
-
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
|
|
109
|
-
-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
|
|
110
|
-
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
|
|
111
|
-
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
|
|
112
|
-
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
|
|
113
|
-
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
114
|
-
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
115
|
-
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
|
|
116
|
-
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
|
|
117
|
-
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
118
|
-
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
119
|
-
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
|
|
120
|
-
435 0h399565z`,leftgroupunder:`M400000 262
|
|
121
|
-
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
|
|
122
|
-
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
123
|
-
-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
|
|
124
|
-
-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
|
|
125
|
-
-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
|
|
126
|
-
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
|
|
127
|
-
-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
|
|
128
|
-
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
129
|
-
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
130
|
-
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
131
|
-
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
|
|
132
|
-
-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
|
|
133
|
-
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
|
|
134
|
-
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
135
|
-
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
|
|
136
|
-
-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
|
|
137
|
-
-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
|
|
138
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
139
|
-
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
140
|
-
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
141
|
-
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
142
|
-
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
|
|
143
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
144
|
-
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
145
|
-
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
|
|
146
|
-
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
147
|
-
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
|
|
148
|
-
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
149
|
-
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
|
|
150
|
-
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
151
|
-
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
|
|
152
|
-
-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
|
|
153
|
-
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
154
|
-
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
|
|
155
|
-
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
|
|
156
|
-
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
157
|
-
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
158
|
-
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
|
|
159
|
-
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
160
|
-
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
|
|
161
|
-
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
|
|
162
|
-
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
163
|
-
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
164
|
-
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
|
|
165
|
-
-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
|
|
166
|
-
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
|
|
167
|
-
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
|
|
168
|
-
-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
|
|
169
|
-
-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
|
|
170
|
-
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
171
|
-
-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
|
|
172
|
-
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
|
|
173
|
-
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
|
|
174
|
-
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
175
|
-
-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
|
|
176
|
-
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
|
|
177
|
-
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
|
|
178
|
-
-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
|
|
179
|
-
-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
|
|
180
|
-
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
|
|
181
|
-
-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
|
|
182
|
-
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
|
|
183
|
-
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
|
|
184
|
-
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
|
|
185
|
-
-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
|
|
186
|
-
-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
|
|
187
|
-
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
|
|
188
|
-
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
|
|
189
|
-
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
190
|
-
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
|
|
191
|
-
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
|
|
192
|
-
-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
|
|
193
|
-
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
|
|
194
|
-
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
|
|
195
|
-
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
196
|
-
-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
|
|
197
|
-
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
198
|
-
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
|
|
199
|
-
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
200
|
-
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
201
|
-
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
202
|
-
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
|
|
203
|
-
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
|
|
204
|
-
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
|
|
205
|
-
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
206
|
-
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
207
|
-
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
|
|
208
|
-
-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
|
|
209
|
-
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
|
|
210
|
-
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
211
|
-
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
212
|
-
-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
|
|
213
|
-
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
214
|
-
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
|
|
215
|
-
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
|
|
216
|
-
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
217
|
-
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
218
|
-
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
219
|
-
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
220
|
-
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
221
|
-
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
222
|
-
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
223
|
-
-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
|
|
224
|
-
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
225
|
-
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
|
|
226
|
-
-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
|
|
227
|
-
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
228
|
-
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
229
|
-
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
|
|
230
|
-
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
|
|
231
|
-
-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
|
|
232
|
-
-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
|
|
233
|
-
-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,
|
|
234
|
-
-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,
|
|
235
|
-
-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,
|
|
236
|
-
-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,
|
|
237
|
-
-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
|
|
238
|
-
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
239
|
-
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
|
|
240
|
-
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
|
|
241
|
-
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
|
|
242
|
-
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
|
|
243
|
-
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
244
|
-
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
245
|
-
-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
|
|
246
|
-
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
|
|
247
|
-
-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
|
|
248
|
-
-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
|
|
249
|
-
-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
|
|
250
|
-
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
251
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
252
|
-
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
|
|
253
|
-
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
254
|
-
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
255
|
-
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
256
|
-
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,
|
|
257
|
-
-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
|
|
258
|
-
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
|
|
259
|
-
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
|
|
260
|
-
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,
|
|
261
|
-
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,
|
|
262
|
-
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
263
|
-
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
|
|
264
|
-
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,
|
|
265
|
-
-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
|
|
266
|
-
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
|
|
267
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Wx=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|
268
|
-
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
|
|
269
|
-
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
|
|
270
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
271
|
-
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
|
|
272
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
273
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
274
|
-
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
275
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
276
|
-
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
|
|
277
|
-
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
278
|
-
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
279
|
-
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
280
|
-
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
|
|
281
|
-
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,
|
|
282
|
-
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
283
|
-
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
|
|
284
|
-
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,
|
|
285
|
-
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
286
|
-
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
287
|
-
-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,
|
|
288
|
-
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
289
|
-
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
290
|
-
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
|
|
291
|
-
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
|
|
292
|
-
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
|
|
293
|
-
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
294
|
-
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
295
|
-
-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 Os{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 dn={"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]}},Xs={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]},Kd={Å:"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 Gx(e,t){dn[e]=t}function ic(e,t,r){if(!dn[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=dn[t][n];if(!a&&e[0]in Kd&&(n=Kd[e[0]].charCodeAt(0),a=dn[t][n]),!a&&r==="text"&&ep(n)&&(a=dn[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Vl={};function Yx(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Vl[t]){var r=Vl[t]={cssEmPerMu:Xs.quad[t]/18};for(var n in Xs)Xs.hasOwnProperty(n)&&(r[n]=Xs[n][t])}return Vl[t]}var Xx=[[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]],Qd=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Jd=function(t,r){return r.size<2?t:Xx[t-1][r.size-1]};class _n{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||_n.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=Qd[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 _n(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Jd(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:Qd[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Jd(_n.BASESIZE,t);return this.size===r&&this.textSize===_n.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!==_n.BASESIZE?["sizing","reset-size"+this.size,"size"+_n.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Yx(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}_n.BASESIZE=6;var e0={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},Kx={ex:!0,em:!0,mu:!0},tp=function(t){return typeof t!="string"&&(t=t.unit),t in e0||t in Kx||t==="ex"},ht=function(t,r){var n;if(t.unit in e0)n=e0[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 le("Invalid unit: '"+t.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},fe=function(t){return+t.toFixed(4)+"em"},ua=function(t){return t.filter(r=>r).join(" ")},rp=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)}},np=function(t){var r=document.createElement(t);r.className=ua(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},Qx=/[\s"'>/=\x00-\x1f]/,ap=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Qe.escape(ua(this.classes))+'"');var n="";for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=Qe.hyphenate(a)+":"+this.style[a]+";");n&&(r+=' style="'+Qe.escape(n)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(Qx.test(i))throw new le("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Qe.escape(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class Rs{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,rp.call(this,t,n,a),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return np.call(this,"span")}toMarkup(){return ap.call(this,"span")}}class sc{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,rp.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 np.call(this,"a")}toMarkup(){return ap.call(this,"a")}}class Jx{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="'+Qe.escape(this.src)+'"'+(' alt="'+Qe.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=Qe.hyphenate(n)+":"+this.style[n]+";");return r&&(t+=' style="'+Qe.escape(r)+'"'),t+="'/>",t}}var Zx={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Cr{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=Px(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Zx[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=fe(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=ua(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+=Qe.escape(ua(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+=Qe.hyphenate(a)+":"+this.style[a]+";");n&&(t=!0,r+=' style="'+Qe.escape(n)+'"');var i=Qe.escape(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class Mn{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+'="'+Qe.escape(this.attributes[r])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class ca{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",Xd[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Qe.escape(this.alternate)+'"/>':'<path d="'+Qe.escape(Xd[this.pathName])+'"/>'}}class t0{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+'="'+Qe.escape(this.attributes[r])+'"');return t+="/>",t}}function Zd(e){if(e instanceof Cr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function e7(e){if(e instanceof Rs)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var t7={bin:1,close:1,inner:1,open:1,punct:1,rel:1},r7={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},it={math:{},text:{}};function p(e,t,r,n,a,i){it[e][a]={font:t,group:r,replace:n},i&&n&&(it[e][n]=it[e][a])}var g="math",ae="text",y="main",R="ams",ct="accent-token",ge="bin",Qt="close",ki="inner",Se="mathord",Tt="op-token",yr="open",gl="punct",L="rel",Fn="spacing",z="textord";p(g,y,L,"≡","\\equiv",!0);p(g,y,L,"≺","\\prec",!0);p(g,y,L,"≻","\\succ",!0);p(g,y,L,"∼","\\sim",!0);p(g,y,L,"⊥","\\perp");p(g,y,L,"⪯","\\preceq",!0);p(g,y,L,"⪰","\\succeq",!0);p(g,y,L,"≃","\\simeq",!0);p(g,y,L,"∣","\\mid",!0);p(g,y,L,"≪","\\ll",!0);p(g,y,L,"≫","\\gg",!0);p(g,y,L,"≍","\\asymp",!0);p(g,y,L,"∥","\\parallel");p(g,y,L,"⋈","\\bowtie",!0);p(g,y,L,"⌣","\\smile",!0);p(g,y,L,"⊑","\\sqsubseteq",!0);p(g,y,L,"⊒","\\sqsupseteq",!0);p(g,y,L,"≐","\\doteq",!0);p(g,y,L,"⌢","\\frown",!0);p(g,y,L,"∋","\\ni",!0);p(g,y,L,"∝","\\propto",!0);p(g,y,L,"⊢","\\vdash",!0);p(g,y,L,"⊣","\\dashv",!0);p(g,y,L,"∋","\\owns");p(g,y,gl,".","\\ldotp");p(g,y,gl,"⋅","\\cdotp");p(g,y,z,"#","\\#");p(ae,y,z,"#","\\#");p(g,y,z,"&","\\&");p(ae,y,z,"&","\\&");p(g,y,z,"ℵ","\\aleph",!0);p(g,y,z,"∀","\\forall",!0);p(g,y,z,"ℏ","\\hbar",!0);p(g,y,z,"∃","\\exists",!0);p(g,y,z,"∇","\\nabla",!0);p(g,y,z,"♭","\\flat",!0);p(g,y,z,"ℓ","\\ell",!0);p(g,y,z,"♮","\\natural",!0);p(g,y,z,"♣","\\clubsuit",!0);p(g,y,z,"℘","\\wp",!0);p(g,y,z,"♯","\\sharp",!0);p(g,y,z,"♢","\\diamondsuit",!0);p(g,y,z,"ℜ","\\Re",!0);p(g,y,z,"♡","\\heartsuit",!0);p(g,y,z,"ℑ","\\Im",!0);p(g,y,z,"♠","\\spadesuit",!0);p(g,y,z,"§","\\S",!0);p(ae,y,z,"§","\\S");p(g,y,z,"¶","\\P",!0);p(ae,y,z,"¶","\\P");p(g,y,z,"†","\\dag");p(ae,y,z,"†","\\dag");p(ae,y,z,"†","\\textdagger");p(g,y,z,"‡","\\ddag");p(ae,y,z,"‡","\\ddag");p(ae,y,z,"‡","\\textdaggerdbl");p(g,y,Qt,"⎱","\\rmoustache",!0);p(g,y,yr,"⎰","\\lmoustache",!0);p(g,y,Qt,"⟯","\\rgroup",!0);p(g,y,yr,"⟮","\\lgroup",!0);p(g,y,ge,"∓","\\mp",!0);p(g,y,ge,"⊖","\\ominus",!0);p(g,y,ge,"⊎","\\uplus",!0);p(g,y,ge,"⊓","\\sqcap",!0);p(g,y,ge,"∗","\\ast");p(g,y,ge,"⊔","\\sqcup",!0);p(g,y,ge,"◯","\\bigcirc",!0);p(g,y,ge,"∙","\\bullet",!0);p(g,y,ge,"‡","\\ddagger");p(g,y,ge,"≀","\\wr",!0);p(g,y,ge,"⨿","\\amalg");p(g,y,ge,"&","\\And");p(g,y,L,"⟵","\\longleftarrow",!0);p(g,y,L,"⇐","\\Leftarrow",!0);p(g,y,L,"⟸","\\Longleftarrow",!0);p(g,y,L,"⟶","\\longrightarrow",!0);p(g,y,L,"⇒","\\Rightarrow",!0);p(g,y,L,"⟹","\\Longrightarrow",!0);p(g,y,L,"↔","\\leftrightarrow",!0);p(g,y,L,"⟷","\\longleftrightarrow",!0);p(g,y,L,"⇔","\\Leftrightarrow",!0);p(g,y,L,"⟺","\\Longleftrightarrow",!0);p(g,y,L,"↦","\\mapsto",!0);p(g,y,L,"⟼","\\longmapsto",!0);p(g,y,L,"↗","\\nearrow",!0);p(g,y,L,"↩","\\hookleftarrow",!0);p(g,y,L,"↪","\\hookrightarrow",!0);p(g,y,L,"↘","\\searrow",!0);p(g,y,L,"↼","\\leftharpoonup",!0);p(g,y,L,"⇀","\\rightharpoonup",!0);p(g,y,L,"↙","\\swarrow",!0);p(g,y,L,"↽","\\leftharpoondown",!0);p(g,y,L,"⇁","\\rightharpoondown",!0);p(g,y,L,"↖","\\nwarrow",!0);p(g,y,L,"⇌","\\rightleftharpoons",!0);p(g,R,L,"≮","\\nless",!0);p(g,R,L,"","\\@nleqslant");p(g,R,L,"","\\@nleqq");p(g,R,L,"⪇","\\lneq",!0);p(g,R,L,"≨","\\lneqq",!0);p(g,R,L,"","\\@lvertneqq");p(g,R,L,"⋦","\\lnsim",!0);p(g,R,L,"⪉","\\lnapprox",!0);p(g,R,L,"⊀","\\nprec",!0);p(g,R,L,"⋠","\\npreceq",!0);p(g,R,L,"⋨","\\precnsim",!0);p(g,R,L,"⪹","\\precnapprox",!0);p(g,R,L,"≁","\\nsim",!0);p(g,R,L,"","\\@nshortmid");p(g,R,L,"∤","\\nmid",!0);p(g,R,L,"⊬","\\nvdash",!0);p(g,R,L,"⊭","\\nvDash",!0);p(g,R,L,"⋪","\\ntriangleleft");p(g,R,L,"⋬","\\ntrianglelefteq",!0);p(g,R,L,"⊊","\\subsetneq",!0);p(g,R,L,"","\\@varsubsetneq");p(g,R,L,"⫋","\\subsetneqq",!0);p(g,R,L,"","\\@varsubsetneqq");p(g,R,L,"≯","\\ngtr",!0);p(g,R,L,"","\\@ngeqslant");p(g,R,L,"","\\@ngeqq");p(g,R,L,"⪈","\\gneq",!0);p(g,R,L,"≩","\\gneqq",!0);p(g,R,L,"","\\@gvertneqq");p(g,R,L,"⋧","\\gnsim",!0);p(g,R,L,"⪊","\\gnapprox",!0);p(g,R,L,"⊁","\\nsucc",!0);p(g,R,L,"⋡","\\nsucceq",!0);p(g,R,L,"⋩","\\succnsim",!0);p(g,R,L,"⪺","\\succnapprox",!0);p(g,R,L,"≆","\\ncong",!0);p(g,R,L,"","\\@nshortparallel");p(g,R,L,"∦","\\nparallel",!0);p(g,R,L,"⊯","\\nVDash",!0);p(g,R,L,"⋫","\\ntriangleright");p(g,R,L,"⋭","\\ntrianglerighteq",!0);p(g,R,L,"","\\@nsupseteqq");p(g,R,L,"⊋","\\supsetneq",!0);p(g,R,L,"","\\@varsupsetneq");p(g,R,L,"⫌","\\supsetneqq",!0);p(g,R,L,"","\\@varsupsetneqq");p(g,R,L,"⊮","\\nVdash",!0);p(g,R,L,"⪵","\\precneqq",!0);p(g,R,L,"⪶","\\succneqq",!0);p(g,R,L,"","\\@nsubseteqq");p(g,R,ge,"⊴","\\unlhd");p(g,R,ge,"⊵","\\unrhd");p(g,R,L,"↚","\\nleftarrow",!0);p(g,R,L,"↛","\\nrightarrow",!0);p(g,R,L,"⇍","\\nLeftarrow",!0);p(g,R,L,"⇏","\\nRightarrow",!0);p(g,R,L,"↮","\\nleftrightarrow",!0);p(g,R,L,"⇎","\\nLeftrightarrow",!0);p(g,R,L,"△","\\vartriangle");p(g,R,z,"ℏ","\\hslash");p(g,R,z,"▽","\\triangledown");p(g,R,z,"◊","\\lozenge");p(g,R,z,"Ⓢ","\\circledS");p(g,R,z,"®","\\circledR");p(ae,R,z,"®","\\circledR");p(g,R,z,"∡","\\measuredangle",!0);p(g,R,z,"∄","\\nexists");p(g,R,z,"℧","\\mho");p(g,R,z,"Ⅎ","\\Finv",!0);p(g,R,z,"⅁","\\Game",!0);p(g,R,z,"‵","\\backprime");p(g,R,z,"▲","\\blacktriangle");p(g,R,z,"▼","\\blacktriangledown");p(g,R,z,"■","\\blacksquare");p(g,R,z,"⧫","\\blacklozenge");p(g,R,z,"★","\\bigstar");p(g,R,z,"∢","\\sphericalangle",!0);p(g,R,z,"∁","\\complement",!0);p(g,R,z,"ð","\\eth",!0);p(ae,y,z,"ð","ð");p(g,R,z,"╱","\\diagup");p(g,R,z,"╲","\\diagdown");p(g,R,z,"□","\\square");p(g,R,z,"□","\\Box");p(g,R,z,"◊","\\Diamond");p(g,R,z,"¥","\\yen",!0);p(ae,R,z,"¥","\\yen",!0);p(g,R,z,"✓","\\checkmark",!0);p(ae,R,z,"✓","\\checkmark");p(g,R,z,"ℶ","\\beth",!0);p(g,R,z,"ℸ","\\daleth",!0);p(g,R,z,"ℷ","\\gimel",!0);p(g,R,z,"ϝ","\\digamma",!0);p(g,R,z,"ϰ","\\varkappa");p(g,R,yr,"┌","\\@ulcorner",!0);p(g,R,Qt,"┐","\\@urcorner",!0);p(g,R,yr,"└","\\@llcorner",!0);p(g,R,Qt,"┘","\\@lrcorner",!0);p(g,R,L,"≦","\\leqq",!0);p(g,R,L,"⩽","\\leqslant",!0);p(g,R,L,"⪕","\\eqslantless",!0);p(g,R,L,"≲","\\lesssim",!0);p(g,R,L,"⪅","\\lessapprox",!0);p(g,R,L,"≊","\\approxeq",!0);p(g,R,ge,"⋖","\\lessdot");p(g,R,L,"⋘","\\lll",!0);p(g,R,L,"≶","\\lessgtr",!0);p(g,R,L,"⋚","\\lesseqgtr",!0);p(g,R,L,"⪋","\\lesseqqgtr",!0);p(g,R,L,"≑","\\doteqdot");p(g,R,L,"≓","\\risingdotseq",!0);p(g,R,L,"≒","\\fallingdotseq",!0);p(g,R,L,"∽","\\backsim",!0);p(g,R,L,"⋍","\\backsimeq",!0);p(g,R,L,"⫅","\\subseteqq",!0);p(g,R,L,"⋐","\\Subset",!0);p(g,R,L,"⊏","\\sqsubset",!0);p(g,R,L,"≼","\\preccurlyeq",!0);p(g,R,L,"⋞","\\curlyeqprec",!0);p(g,R,L,"≾","\\precsim",!0);p(g,R,L,"⪷","\\precapprox",!0);p(g,R,L,"⊲","\\vartriangleleft");p(g,R,L,"⊴","\\trianglelefteq");p(g,R,L,"⊨","\\vDash",!0);p(g,R,L,"⊪","\\Vvdash",!0);p(g,R,L,"⌣","\\smallsmile");p(g,R,L,"⌢","\\smallfrown");p(g,R,L,"≏","\\bumpeq",!0);p(g,R,L,"≎","\\Bumpeq",!0);p(g,R,L,"≧","\\geqq",!0);p(g,R,L,"⩾","\\geqslant",!0);p(g,R,L,"⪖","\\eqslantgtr",!0);p(g,R,L,"≳","\\gtrsim",!0);p(g,R,L,"⪆","\\gtrapprox",!0);p(g,R,ge,"⋗","\\gtrdot");p(g,R,L,"⋙","\\ggg",!0);p(g,R,L,"≷","\\gtrless",!0);p(g,R,L,"⋛","\\gtreqless",!0);p(g,R,L,"⪌","\\gtreqqless",!0);p(g,R,L,"≖","\\eqcirc",!0);p(g,R,L,"≗","\\circeq",!0);p(g,R,L,"≜","\\triangleq",!0);p(g,R,L,"∼","\\thicksim");p(g,R,L,"≈","\\thickapprox");p(g,R,L,"⫆","\\supseteqq",!0);p(g,R,L,"⋑","\\Supset",!0);p(g,R,L,"⊐","\\sqsupset",!0);p(g,R,L,"≽","\\succcurlyeq",!0);p(g,R,L,"⋟","\\curlyeqsucc",!0);p(g,R,L,"≿","\\succsim",!0);p(g,R,L,"⪸","\\succapprox",!0);p(g,R,L,"⊳","\\vartriangleright");p(g,R,L,"⊵","\\trianglerighteq");p(g,R,L,"⊩","\\Vdash",!0);p(g,R,L,"∣","\\shortmid");p(g,R,L,"∥","\\shortparallel");p(g,R,L,"≬","\\between",!0);p(g,R,L,"⋔","\\pitchfork",!0);p(g,R,L,"∝","\\varpropto");p(g,R,L,"◀","\\blacktriangleleft");p(g,R,L,"∴","\\therefore",!0);p(g,R,L,"∍","\\backepsilon");p(g,R,L,"▶","\\blacktriangleright");p(g,R,L,"∵","\\because",!0);p(g,R,L,"⋘","\\llless");p(g,R,L,"⋙","\\gggtr");p(g,R,ge,"⊲","\\lhd");p(g,R,ge,"⊳","\\rhd");p(g,R,L,"≂","\\eqsim",!0);p(g,y,L,"⋈","\\Join");p(g,R,L,"≑","\\Doteq",!0);p(g,R,ge,"∔","\\dotplus",!0);p(g,R,ge,"∖","\\smallsetminus");p(g,R,ge,"⋒","\\Cap",!0);p(g,R,ge,"⋓","\\Cup",!0);p(g,R,ge,"⩞","\\doublebarwedge",!0);p(g,R,ge,"⊟","\\boxminus",!0);p(g,R,ge,"⊞","\\boxplus",!0);p(g,R,ge,"⋇","\\divideontimes",!0);p(g,R,ge,"⋉","\\ltimes",!0);p(g,R,ge,"⋊","\\rtimes",!0);p(g,R,ge,"⋋","\\leftthreetimes",!0);p(g,R,ge,"⋌","\\rightthreetimes",!0);p(g,R,ge,"⋏","\\curlywedge",!0);p(g,R,ge,"⋎","\\curlyvee",!0);p(g,R,ge,"⊝","\\circleddash",!0);p(g,R,ge,"⊛","\\circledast",!0);p(g,R,ge,"⋅","\\centerdot");p(g,R,ge,"⊺","\\intercal",!0);p(g,R,ge,"⋒","\\doublecap");p(g,R,ge,"⋓","\\doublecup");p(g,R,ge,"⊠","\\boxtimes",!0);p(g,R,L,"⇢","\\dashrightarrow",!0);p(g,R,L,"⇠","\\dashleftarrow",!0);p(g,R,L,"⇇","\\leftleftarrows",!0);p(g,R,L,"⇆","\\leftrightarrows",!0);p(g,R,L,"⇚","\\Lleftarrow",!0);p(g,R,L,"↞","\\twoheadleftarrow",!0);p(g,R,L,"↢","\\leftarrowtail",!0);p(g,R,L,"↫","\\looparrowleft",!0);p(g,R,L,"⇋","\\leftrightharpoons",!0);p(g,R,L,"↶","\\curvearrowleft",!0);p(g,R,L,"↺","\\circlearrowleft",!0);p(g,R,L,"↰","\\Lsh",!0);p(g,R,L,"⇈","\\upuparrows",!0);p(g,R,L,"↿","\\upharpoonleft",!0);p(g,R,L,"⇃","\\downharpoonleft",!0);p(g,y,L,"⊶","\\origof",!0);p(g,y,L,"⊷","\\imageof",!0);p(g,R,L,"⊸","\\multimap",!0);p(g,R,L,"↭","\\leftrightsquigarrow",!0);p(g,R,L,"⇉","\\rightrightarrows",!0);p(g,R,L,"⇄","\\rightleftarrows",!0);p(g,R,L,"↠","\\twoheadrightarrow",!0);p(g,R,L,"↣","\\rightarrowtail",!0);p(g,R,L,"↬","\\looparrowright",!0);p(g,R,L,"↷","\\curvearrowright",!0);p(g,R,L,"↻","\\circlearrowright",!0);p(g,R,L,"↱","\\Rsh",!0);p(g,R,L,"⇊","\\downdownarrows",!0);p(g,R,L,"↾","\\upharpoonright",!0);p(g,R,L,"⇂","\\downharpoonright",!0);p(g,R,L,"⇝","\\rightsquigarrow",!0);p(g,R,L,"⇝","\\leadsto");p(g,R,L,"⇛","\\Rrightarrow",!0);p(g,R,L,"↾","\\restriction");p(g,y,z,"‘","`");p(g,y,z,"$","\\$");p(ae,y,z,"$","\\$");p(ae,y,z,"$","\\textdollar");p(g,y,z,"%","\\%");p(ae,y,z,"%","\\%");p(g,y,z,"_","\\_");p(ae,y,z,"_","\\_");p(ae,y,z,"_","\\textunderscore");p(g,y,z,"∠","\\angle",!0);p(g,y,z,"∞","\\infty",!0);p(g,y,z,"′","\\prime");p(g,y,z,"△","\\triangle");p(g,y,z,"Γ","\\Gamma",!0);p(g,y,z,"Δ","\\Delta",!0);p(g,y,z,"Θ","\\Theta",!0);p(g,y,z,"Λ","\\Lambda",!0);p(g,y,z,"Ξ","\\Xi",!0);p(g,y,z,"Π","\\Pi",!0);p(g,y,z,"Σ","\\Sigma",!0);p(g,y,z,"Υ","\\Upsilon",!0);p(g,y,z,"Φ","\\Phi",!0);p(g,y,z,"Ψ","\\Psi",!0);p(g,y,z,"Ω","\\Omega",!0);p(g,y,z,"A","Α");p(g,y,z,"B","Β");p(g,y,z,"E","Ε");p(g,y,z,"Z","Ζ");p(g,y,z,"H","Η");p(g,y,z,"I","Ι");p(g,y,z,"K","Κ");p(g,y,z,"M","Μ");p(g,y,z,"N","Ν");p(g,y,z,"O","Ο");p(g,y,z,"P","Ρ");p(g,y,z,"T","Τ");p(g,y,z,"X","Χ");p(g,y,z,"¬","\\neg",!0);p(g,y,z,"¬","\\lnot");p(g,y,z,"⊤","\\top");p(g,y,z,"⊥","\\bot");p(g,y,z,"∅","\\emptyset");p(g,R,z,"∅","\\varnothing");p(g,y,Se,"α","\\alpha",!0);p(g,y,Se,"β","\\beta",!0);p(g,y,Se,"γ","\\gamma",!0);p(g,y,Se,"δ","\\delta",!0);p(g,y,Se,"ϵ","\\epsilon",!0);p(g,y,Se,"ζ","\\zeta",!0);p(g,y,Se,"η","\\eta",!0);p(g,y,Se,"θ","\\theta",!0);p(g,y,Se,"ι","\\iota",!0);p(g,y,Se,"κ","\\kappa",!0);p(g,y,Se,"λ","\\lambda",!0);p(g,y,Se,"μ","\\mu",!0);p(g,y,Se,"ν","\\nu",!0);p(g,y,Se,"ξ","\\xi",!0);p(g,y,Se,"ο","\\omicron",!0);p(g,y,Se,"π","\\pi",!0);p(g,y,Se,"ρ","\\rho",!0);p(g,y,Se,"σ","\\sigma",!0);p(g,y,Se,"τ","\\tau",!0);p(g,y,Se,"υ","\\upsilon",!0);p(g,y,Se,"ϕ","\\phi",!0);p(g,y,Se,"χ","\\chi",!0);p(g,y,Se,"ψ","\\psi",!0);p(g,y,Se,"ω","\\omega",!0);p(g,y,Se,"ε","\\varepsilon",!0);p(g,y,Se,"ϑ","\\vartheta",!0);p(g,y,Se,"ϖ","\\varpi",!0);p(g,y,Se,"ϱ","\\varrho",!0);p(g,y,Se,"ς","\\varsigma",!0);p(g,y,Se,"φ","\\varphi",!0);p(g,y,ge,"∗","*",!0);p(g,y,ge,"+","+");p(g,y,ge,"−","-",!0);p(g,y,ge,"⋅","\\cdot",!0);p(g,y,ge,"∘","\\circ",!0);p(g,y,ge,"÷","\\div",!0);p(g,y,ge,"±","\\pm",!0);p(g,y,ge,"×","\\times",!0);p(g,y,ge,"∩","\\cap",!0);p(g,y,ge,"∪","\\cup",!0);p(g,y,ge,"∖","\\setminus",!0);p(g,y,ge,"∧","\\land");p(g,y,ge,"∨","\\lor");p(g,y,ge,"∧","\\wedge",!0);p(g,y,ge,"∨","\\vee",!0);p(g,y,z,"√","\\surd");p(g,y,yr,"⟨","\\langle",!0);p(g,y,yr,"∣","\\lvert");p(g,y,yr,"∥","\\lVert");p(g,y,Qt,"?","?");p(g,y,Qt,"!","!");p(g,y,Qt,"⟩","\\rangle",!0);p(g,y,Qt,"∣","\\rvert");p(g,y,Qt,"∥","\\rVert");p(g,y,L,"=","=");p(g,y,L,":",":");p(g,y,L,"≈","\\approx",!0);p(g,y,L,"≅","\\cong",!0);p(g,y,L,"≥","\\ge");p(g,y,L,"≥","\\geq",!0);p(g,y,L,"←","\\gets");p(g,y,L,">","\\gt",!0);p(g,y,L,"∈","\\in",!0);p(g,y,L,"","\\@not");p(g,y,L,"⊂","\\subset",!0);p(g,y,L,"⊃","\\supset",!0);p(g,y,L,"⊆","\\subseteq",!0);p(g,y,L,"⊇","\\supseteq",!0);p(g,R,L,"⊈","\\nsubseteq",!0);p(g,R,L,"⊉","\\nsupseteq",!0);p(g,y,L,"⊨","\\models");p(g,y,L,"←","\\leftarrow",!0);p(g,y,L,"≤","\\le");p(g,y,L,"≤","\\leq",!0);p(g,y,L,"<","\\lt",!0);p(g,y,L,"→","\\rightarrow",!0);p(g,y,L,"→","\\to");p(g,R,L,"≱","\\ngeq",!0);p(g,R,L,"≰","\\nleq",!0);p(g,y,Fn," ","\\ ");p(g,y,Fn," ","\\space");p(g,y,Fn," ","\\nobreakspace");p(ae,y,Fn," ","\\ ");p(ae,y,Fn," "," ");p(ae,y,Fn," ","\\space");p(ae,y,Fn," ","\\nobreakspace");p(g,y,Fn,null,"\\nobreak");p(g,y,Fn,null,"\\allowbreak");p(g,y,gl,",",",");p(g,y,gl,";",";");p(g,R,ge,"⊼","\\barwedge",!0);p(g,R,ge,"⊻","\\veebar",!0);p(g,y,ge,"⊙","\\odot",!0);p(g,y,ge,"⊕","\\oplus",!0);p(g,y,ge,"⊗","\\otimes",!0);p(g,y,z,"∂","\\partial",!0);p(g,y,ge,"⊘","\\oslash",!0);p(g,R,ge,"⊚","\\circledcirc",!0);p(g,R,ge,"⊡","\\boxdot",!0);p(g,y,ge,"△","\\bigtriangleup");p(g,y,ge,"▽","\\bigtriangledown");p(g,y,ge,"†","\\dagger");p(g,y,ge,"⋄","\\diamond");p(g,y,ge,"⋆","\\star");p(g,y,ge,"◃","\\triangleleft");p(g,y,ge,"▹","\\triangleright");p(g,y,yr,"{","\\{");p(ae,y,z,"{","\\{");p(ae,y,z,"{","\\textbraceleft");p(g,y,Qt,"}","\\}");p(ae,y,z,"}","\\}");p(ae,y,z,"}","\\textbraceright");p(g,y,yr,"{","\\lbrace");p(g,y,Qt,"}","\\rbrace");p(g,y,yr,"[","\\lbrack",!0);p(ae,y,z,"[","\\lbrack",!0);p(g,y,Qt,"]","\\rbrack",!0);p(ae,y,z,"]","\\rbrack",!0);p(g,y,yr,"(","\\lparen",!0);p(g,y,Qt,")","\\rparen",!0);p(ae,y,z,"<","\\textless",!0);p(ae,y,z,">","\\textgreater",!0);p(g,y,yr,"⌊","\\lfloor",!0);p(g,y,Qt,"⌋","\\rfloor",!0);p(g,y,yr,"⌈","\\lceil",!0);p(g,y,Qt,"⌉","\\rceil",!0);p(g,y,z,"\\","\\backslash");p(g,y,z,"∣","|");p(g,y,z,"∣","\\vert");p(ae,y,z,"|","\\textbar",!0);p(g,y,z,"∥","\\|");p(g,y,z,"∥","\\Vert");p(ae,y,z,"∥","\\textbardbl");p(ae,y,z,"~","\\textasciitilde");p(ae,y,z,"\\","\\textbackslash");p(ae,y,z,"^","\\textasciicircum");p(g,y,L,"↑","\\uparrow",!0);p(g,y,L,"⇑","\\Uparrow",!0);p(g,y,L,"↓","\\downarrow",!0);p(g,y,L,"⇓","\\Downarrow",!0);p(g,y,L,"↕","\\updownarrow",!0);p(g,y,L,"⇕","\\Updownarrow",!0);p(g,y,Tt,"∐","\\coprod");p(g,y,Tt,"⋁","\\bigvee");p(g,y,Tt,"⋀","\\bigwedge");p(g,y,Tt,"⨄","\\biguplus");p(g,y,Tt,"⋂","\\bigcap");p(g,y,Tt,"⋃","\\bigcup");p(g,y,Tt,"∫","\\int");p(g,y,Tt,"∫","\\intop");p(g,y,Tt,"∬","\\iint");p(g,y,Tt,"∭","\\iiint");p(g,y,Tt,"∏","\\prod");p(g,y,Tt,"∑","\\sum");p(g,y,Tt,"⨂","\\bigotimes");p(g,y,Tt,"⨁","\\bigoplus");p(g,y,Tt,"⨀","\\bigodot");p(g,y,Tt,"∮","\\oint");p(g,y,Tt,"∯","\\oiint");p(g,y,Tt,"∰","\\oiiint");p(g,y,Tt,"⨆","\\bigsqcup");p(g,y,Tt,"∫","\\smallint");p(ae,y,ki,"…","\\textellipsis");p(g,y,ki,"…","\\mathellipsis");p(ae,y,ki,"…","\\ldots",!0);p(g,y,ki,"…","\\ldots",!0);p(g,y,ki,"⋯","\\@cdots",!0);p(g,y,ki,"⋱","\\ddots",!0);p(g,y,z,"⋮","\\varvdots");p(ae,y,z,"⋮","\\varvdots");p(g,y,ct,"ˊ","\\acute");p(g,y,ct,"ˋ","\\grave");p(g,y,ct,"¨","\\ddot");p(g,y,ct,"~","\\tilde");p(g,y,ct,"ˉ","\\bar");p(g,y,ct,"˘","\\breve");p(g,y,ct,"ˇ","\\check");p(g,y,ct,"^","\\hat");p(g,y,ct,"⃗","\\vec");p(g,y,ct,"˙","\\dot");p(g,y,ct,"˚","\\mathring");p(g,y,Se,"","\\@imath");p(g,y,Se,"","\\@jmath");p(g,y,z,"ı","ı");p(g,y,z,"ȷ","ȷ");p(ae,y,z,"ı","\\i",!0);p(ae,y,z,"ȷ","\\j",!0);p(ae,y,z,"ß","\\ss",!0);p(ae,y,z,"æ","\\ae",!0);p(ae,y,z,"œ","\\oe",!0);p(ae,y,z,"ø","\\o",!0);p(ae,y,z,"Æ","\\AE",!0);p(ae,y,z,"Œ","\\OE",!0);p(ae,y,z,"Ø","\\O",!0);p(ae,y,ct,"ˊ","\\'");p(ae,y,ct,"ˋ","\\`");p(ae,y,ct,"ˆ","\\^");p(ae,y,ct,"˜","\\~");p(ae,y,ct,"ˉ","\\=");p(ae,y,ct,"˘","\\u");p(ae,y,ct,"˙","\\.");p(ae,y,ct,"¸","\\c");p(ae,y,ct,"˚","\\r");p(ae,y,ct,"ˇ","\\v");p(ae,y,ct,"¨",'\\"');p(ae,y,ct,"˝","\\H");p(ae,y,ct,"◯","\\textcircled");var ip={"--":!0,"---":!0,"``":!0,"''":!0};p(ae,y,z,"–","--",!0);p(ae,y,z,"–","\\textendash");p(ae,y,z,"—","---",!0);p(ae,y,z,"—","\\textemdash");p(ae,y,z,"‘","`",!0);p(ae,y,z,"‘","\\textquoteleft");p(ae,y,z,"’","'",!0);p(ae,y,z,"’","\\textquoteright");p(ae,y,z,"“","``",!0);p(ae,y,z,"“","\\textquotedblleft");p(ae,y,z,"”","''",!0);p(ae,y,z,"”","\\textquotedblright");p(g,y,z,"°","\\degree",!0);p(ae,y,z,"°","\\degree");p(ae,y,z,"°","\\textdegree",!0);p(g,y,z,"£","\\pounds");p(g,y,z,"£","\\mathsterling",!0);p(ae,y,z,"£","\\pounds");p(ae,y,z,"£","\\textsterling",!0);p(g,R,z,"✠","\\maltese");p(ae,R,z,"✠","\\maltese");var eh='0123456789/@."';for(var Wl=0;Wl<eh.length;Wl++){var th=eh.charAt(Wl);p(g,y,z,th,th)}var rh='0123456789!@*()-=+";:?/.,';for(var Gl=0;Gl<rh.length;Gl++){var nh=rh.charAt(Gl);p(ae,y,z,nh,nh)}var Ho="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Yl=0;Yl<Ho.length;Yl++){var Ks=Ho.charAt(Yl);p(g,y,Se,Ks,Ks),p(ae,y,z,Ks,Ks)}p(g,R,z,"C","ℂ");p(ae,R,z,"C","ℂ");p(g,R,z,"H","ℍ");p(ae,R,z,"H","ℍ");p(g,R,z,"N","ℕ");p(ae,R,z,"N","ℕ");p(g,R,z,"P","ℙ");p(ae,R,z,"P","ℙ");p(g,R,z,"Q","ℚ");p(ae,R,z,"Q","ℚ");p(g,R,z,"R","ℝ");p(ae,R,z,"R","ℝ");p(g,R,z,"Z","ℤ");p(ae,R,z,"Z","ℤ");p(g,y,Se,"h","ℎ");p(ae,y,Se,"h","ℎ");var _e="";for(var Wt=0;Wt<Ho.length;Wt++){var mt=Ho.charAt(Wt);_e=String.fromCharCode(55349,56320+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56372+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56424+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56580+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56684+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56736+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56788+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56840+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56944+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),Wt<26&&(_e=String.fromCharCode(55349,56632+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e),_e=String.fromCharCode(55349,56476+Wt),p(g,y,Se,mt,_e),p(ae,y,z,mt,_e))}_e="𝕜";p(g,y,Se,"k",_e);p(ae,y,z,"k",_e);for(var ba=0;ba<10;ba++){var Yn=ba.toString();_e=String.fromCharCode(55349,57294+ba),p(g,y,Se,Yn,_e),p(ae,y,z,Yn,_e),_e=String.fromCharCode(55349,57314+ba),p(g,y,Se,Yn,_e),p(ae,y,z,Yn,_e),_e=String.fromCharCode(55349,57324+ba),p(g,y,Se,Yn,_e),p(ae,y,z,Yn,_e),_e=String.fromCharCode(55349,57334+ba),p(g,y,Se,Yn,_e),p(ae,y,z,Yn,_e)}var r0="ÐÞþ";for(var Xl=0;Xl<r0.length;Xl++){var Qs=r0.charAt(Xl);p(g,y,Se,Qs,Qs),p(ae,y,z,Qs,Qs)}var Js=[["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"]],ah=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],n7=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[Js[o][2],Js[o][s]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[ah[l][2],ah[l][s]]}else{if(i===120485||i===120486)return[Js[0][2],Js[0][s]];if(120486<i&&i<120782)return["",""];throw new le("Unsupported character: "+t)}},bl=function(t,r,n){return it[n][t]&&it[n][t].replace&&(t=it[n][t].replace),{value:t,metrics:ic(t,r,n)}},Fr=function(t,r,n,a,i){var s=bl(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 Cr(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 Cr(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},a7=function(t,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&bl(t,"Main-Bold",r).metrics?Fr(t,"Main-Bold",r,n,a.concat(["mathbf"])):t==="\\"||it[r][t].font==="main"?Fr(t,"Main-Regular",r,n,a):Fr(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},i7=function(t,r,n,a,i){return i!=="textord"&&bl(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},s7=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]=n7(i,a)),u.length>0)return Fr(i,u,a,r,s.concat(d));if(l){var c,h;if(l==="boldsymbol"){var m=i7(i,a,r,s,n);c=m.fontName,h=[m.fontClass]}else o?(c=lp[l].fontName,h=[l]):(c=Zs(l,r.fontWeight,r.fontShape),h=[l,r.fontWeight,r.fontShape]);if(bl(i,c,a).metrics)return Fr(i,c,a,r,s.concat(h));if(ip.hasOwnProperty(i)&&c.slice(0,10)==="Typewriter"){for(var b=[],x=0;x<i.length;x++)b.push(Fr(i[x],c,a,r,s.concat(h)));return op(b)}}if(n==="mathord")return Fr(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var T=it[a][i]&&it[a][i].font;if(T==="ams"){var E=Zs("amsrm",r.fontWeight,r.fontShape);return Fr(i,E,a,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(T==="main"||!T){var k=Zs("textrm",r.fontWeight,r.fontShape);return Fr(i,k,a,r,s.concat(r.fontWeight,r.fontShape))}else{var _=Zs(T,r.fontWeight,r.fontShape);return Fr(i,_,a,r,s.concat(_,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},o7=(e,t)=>{if(ua(e.classes)!==ua(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},l7=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Cr&&n instanceof Cr&&o7(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},oc=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},nr=function(t,r,n,a){var i=new Rs(t,r,n,a);return oc(i),i},sp=(e,t,r,n)=>new Rs(e,t,r,n),u7=function(t,r,n){var a=nr([t],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=fe(a.height),a.maxFontSize=1,a},c7=function(t,r,n,a){var i=new sc(t,r,n,a);return oc(i),i},op=function(t){var r=new Os(t);return oc(r),r},d7=function(t,r){return t instanceof Os?nr([],[t],r):t},h7=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 h=t.children[c];d-=h.type==="kern"?h.size:h.elem.height+h.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}},f7=function(t,r){for(var{children:n,depth:a}=h7(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=nr(["pstrut"],[]);u.style.height=fe(i);for(var d=[],c=a,h=a,m=a,b=0;b<n.length;b++){var x=n[b];if(x.type==="kern")m+=x.size;else{var T=x.elem,E=x.wrapperClasses||[],k=x.wrapperStyle||{},_=nr(E,[u,T],void 0,k);_.style.top=fe(-i-m-T.depth),x.marginLeft&&(_.style.marginLeft=x.marginLeft),x.marginRight&&(_.style.marginRight=x.marginRight),d.push(_),m+=T.height+T.depth}c=Math.min(c,m),h=Math.max(h,m)}var P=nr(["vlist"],d);P.style.height=fe(h);var U;if(c<0){var D=nr([],[]),V=nr(["vlist"],[D]);V.style.height=fe(-c);var Y=nr(["vlist-s"],[new Cr("")]);U=[nr(["vlist-r"],[P,Y]),nr(["vlist-r"],[V])]}else U=[nr(["vlist-r"],[P])];var ee=nr(["vlist-t"],U);return U.length===2&&ee.classes.push("vlist-t2"),ee.height=h,ee.depth=-c,ee},m7=(e,t)=>{var r=nr(["mspace"],[],t),n=ht(e,t);return r.style.marginRight=fe(n),r},Zs=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},lp={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"}},up={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},p7=function(t,r){var[n,a,i]=up[t],s=new ca(n),o=new Mn([s],{width:fe(a),height:fe(i),style:"width:"+fe(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=sp(["overlay"],[o],r);return l.height=i,l.style.height=fe(i),l.style.width=fe(a),l},Q={fontMap:lp,makeSymbol:Fr,mathsym:a7,makeSpan:nr,makeSvgSpan:sp,makeLineSpan:u7,makeAnchor:c7,makeFragment:op,wrapFragment:d7,makeVList:f7,makeOrd:s7,makeGlue:m7,staticSvg:p7,svgData:up,tryCombineChars:l7},dt={number:3,unit:"mu"},xa={number:4,unit:"mu"},wn={number:5,unit:"mu"},g7={mord:{mop:dt,mbin:xa,mrel:wn,minner:dt},mop:{mord:dt,mop:dt,mrel:wn,minner:dt},mbin:{mord:xa,mop:xa,mopen:xa,minner:xa},mrel:{mord:wn,mop:wn,mopen:wn,minner:wn},mopen:{},mclose:{mop:dt,mbin:xa,mrel:wn,minner:dt},mpunct:{mord:dt,mop:dt,mrel:wn,mopen:dt,mclose:dt,mpunct:dt,minner:dt},minner:{mord:dt,mop:dt,mbin:xa,mrel:wn,mopen:dt,mpunct:dt,minner:dt}},b7={mord:{mop:dt},mop:{mord:dt,mop:dt},mbin:{},mrel:{},mopen:{},mclose:{mop:dt},mpunct:{},minner:{mop:dt}},cp={},Uo={},jo={};function pe(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)cp[r[l]]=o;t&&(i&&(Uo[t]=i),s&&(jo[t]=s))}function za(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;pe({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var $o=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},xt=function(t){return t.type==="ordgroup"?t.body:[t]},Pn=Q.makeSpan,x7=["leftmost","mbin","mopen","mrel","mop","mpunct"],y7=["rightmost","mrel","mclose","mpunct"],E7={display:Ce.DISPLAY,text:Ce.TEXT,script:Ce.SCRIPT,scriptscript:Ce.SCRIPTSCRIPT},v7={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},St=function(t,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<t.length;s++){var o=Ke(t[s],r);if(o instanceof Os){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(E7[d.style]))}var c=Pn([a[0]||"leftmost"],[],r),h=Pn([a[1]||"rightmost"],[],r),m=n==="root";return ih(i,(b,x)=>{var T=x.classes[0],E=b.classes[0];T==="mbin"&&y7.includes(E)?x.classes[0]="mord":E==="mbin"&&x7.includes(T)&&(b.classes[0]="mord")},{node:c},h,m),ih(i,(b,x)=>{var T=n0(x),E=n0(b),k=T&&E?b.hasClass("mtight")?b7[T][E]:g7[T][E]:null;if(k)return Q.makeGlue(k,u)},{node:c},h,m),i},ih=function e(t,r,n,a,i){a&&t.push(a);for(var s=0;s<t.length;s++){var o=t[s],l=dp(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=Pn(["leftmost"])),n.insertAfter=(c=>h=>{t.splice(c+1,0,h),s++})(s)}a&&t.pop()},dp=function(t){return t instanceof Os||t instanceof sc||t instanceof Rs&&t.hasClass("enclosing")?t:null},T7=function e(t,r){var n=dp(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},n0=function(t,r){return t?(r&&(t=T7(t,r)),v7[t.classes[0]]||null):null},Es=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Pn(r.concat(n))},Ke=function(t,r,n){if(!t)return Pn();if(Uo[t.type]){var a=Uo[t.type](t,r);if(n&&r.size!==n.size){a=Pn(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new le("Got group of unknown type: '"+t.type+"'")};function eo(e,t){var r=Pn(["base"],e,t),n=Pn(["strut"]);return n.style.height=fe(r.height+r.depth),r.depth&&(n.style.verticalAlign=fe(-r.depth)),r.children.unshift(n),r}function a0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=St(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(eo(s,t)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(i.push(eo(s,t)),s=[]),i.push(n[o]));s.length>0&&i.push(eo(s,t));var u;r?(u=eo(St(r,t,!0)),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=Pn(["katex-html"],i);if(d.setAttribute("aria-hidden","true"),u){var c=u.children[0];c.style.height=fe(d.height+d.depth),d.depth&&(c.style.verticalAlign=fe(-d.depth))}return d}function hp(e){return new Os(e)}class pr{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=ua(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof hn&&this.children[n+1]instanceof hn){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof hn;)a+=this.children[++n].toText();t.appendChild(new hn(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+=Qe.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Qe.escape(ua(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 hn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Qe.escape(this.toText())}toText(){return this.text}}class w7{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",fe(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+fe(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var oe={MathNode:pr,TextNode:hn,SpaceNode:w7,newDocumentFragment:hp},_r=function(t,r,n){return it[r][t]&&it[r][t].replace&&t.charCodeAt(0)!==55349&&!(ip.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=it[r][t].replace),new oe.TextNode(t)},lc=function(t){return t.length===1?t[0]:new oe.MathNode("mrow",t)},uc=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;it[a][i]&&it[a][i].replace&&(i=it[a][i].replace);var s=Q.fontMap[n].fontName;return ic(i,s,a)?Q.fontMap[n].variant:null};function Kl(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof hn&&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 hn&&r.text===","}else return!1}var lr=function(t,r,n){if(t.length===1){var a=tt(t[0],r);return n&&a instanceof pr&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<t.length;o++){var l=tt(t[o],r);if(l instanceof pr&&s instanceof pr){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(Kl(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&Kl(s))l.children=[...s.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||Kl(s))){var u=l.children[0];u instanceof pr&&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 hn&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var c=l.children[0];c instanceof hn&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(l),s=l}return i},da=function(t,r,n){return lc(lr(t,r,n))},tt=function(t,r){if(!t)return new oe.MathNode("mrow");if(jo[t.type]){var n=jo[t.type](t,r);return n}else throw new le("Got group of unknown type: '"+t.type+"'")};function sh(e,t,r,n,a){var i=lr(e,r),s;i.length===1&&i[0]instanceof pr&&["mrow","mtable"].includes(i[0].type)?s=i[0]:s=new oe.MathNode("mrow",i);var o=new oe.MathNode("annotation",[new oe.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new oe.MathNode("semantics",[s,o]),u=new oe.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 fp=function(t){return new _n({style:t.displayMode?Ce.DISPLAY:Ce.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},mp=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},k7=function(t,r,n){var a=fp(n),i;if(n.output==="mathml")return sh(t,r,a,n.displayMode,!0);if(n.output==="html"){var s=a0(t,a);i=Q.makeSpan(["katex"],[s])}else{var o=sh(t,r,a,n.displayMode,!1),l=a0(t,a);i=Q.makeSpan(["katex"],[o,l])}return mp(i,n)},A7=function(t,r,n){var a=fp(n),i=a0(t,a),s=Q.makeSpan(["katex"],[i]);return mp(s,n)},S7={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":"="},C7=function(t){var r=new oe.MathNode("mo",[new oe.TextNode(S7[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},_7={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]},N7=function(t){return t.type==="ordgroup"?t.body.length:1},I7=function(t,r){function n(){var o=4e5,l=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var u=t,d=N7(u.base),c,h,m;if(d>5)l==="widehat"||l==="widecheck"?(c=420,o=2364,m=.42,h=l+"4"):(c=312,o=2340,m=.34,h="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],h=l+b):(o=[0,600,1033,2339,2340][b],c=[0,260,286,306,312][b],m=[0,.26,.286,.3,.306,.34][b],h="tilde"+b)}var x=new ca(h),T=new Mn([x],{width:"100%",height:fe(m),viewBox:"0 0 "+o+" "+c,preserveAspectRatio:"none"});return{span:Q.makeSvgSpan([],[T],r),minWidth:0,height:m}}else{var E=[],k=_7[l],[_,P,U]=k,D=U/1e3,V=_.length,Y,ee;if(V===1){var F=k[3];Y=["hide-tail"],ee=[F]}else if(V===2)Y=["halfarrow-left","halfarrow-right"],ee=["xMinYMin","xMaxYMin"];else if(V===3)Y=["brace-left","brace-center","brace-right"],ee=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
296
|
-
`+V+" children.");for(var ne=0;ne<V;ne++){var $=new ca(_[ne]),C=new Mn([$],{width:"400em",height:fe(D),viewBox:"0 0 "+o+" "+U,preserveAspectRatio:ee[ne]+" slice"}),H=Q.makeSvgSpan([Y[ne]],[C],r);if(V===1)return{span:H,minWidth:P,height:D};H.style.height=fe(D),E.push(H)}return{span:Q.makeSpan(["stretchy"],E,r),minWidth:P,height:D}}}var{span:a,minWidth:i,height:s}=n();return a.height=s,a.style.height=fe(s),i>0&&(a.style.minWidth=fe(i)),a},O7=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 t0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new t0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new Mn(u,{width:"100%",height:fe(o)});s=Q.makeSvgSpan([],[d],i)}return s.height=o,s.style.height=fe(o),s},Bn={encloseSpan:O7,mathMLnode:C7,svgSpan:I7};function ze(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 cc(e){var t=xl(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 xl(e){return e&&(e.type==="atom"||r7.hasOwnProperty(e.type))?e:null}var dc=(e,t)=>{var r,n,a;e&&e.type==="supsub"?(n=ze(e.base,"accent"),r=n.base,e.base=r,a=e7(Ke(e,t)),e.base=n):(n=ze(e,"accent"),r=n.base);var i=Ke(r,t.havingCrampedStyle()),s=n.isShifty&&Qe.isCharacterBox(r),o=0;if(s){var l=Qe.getBaseElem(r),u=Ke(l,t.havingCrampedStyle());o=Zd(u).skew}var d=n.label==="\\c",c=d?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),h;if(n.isStretchy)h=Bn.svgSpan(n,t),h=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+fe(2*o)+")",marginLeft:fe(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=Zd(m),m.italic=0,b=m.width,d&&(c+=m.depth)),h=Q.makeSpan(["accent-body"],[m]);var x=n.label==="\\textcircled";x&&(h.classes.push("accent-full"),c=i.height);var T=o;x||(T-=b/2),h.style.left=fe(T),n.label==="\\textcircled"&&(h.style.top=".2em"),h=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:h}]},t)}var E=Q.makeSpan(["mord","accent"],[h],t);return a?(a.children[0]=E,a.height=Math.max(E.height,a.height),a.classes[0]="mord",a):E},pp=(e,t)=>{var r=e.isStretchy?Bn.mathMLnode(e.label):new oe.MathNode("mo",[_r(e.label,e.mode)]),n=new oe.MathNode("mover",[tt(e.base,t),r]);return n.setAttribute("accent","true"),n},R7=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));pe({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=$o(t[0]),n=!R7.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:dc,mathmlBuilder:pp});pe({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:dc,mathmlBuilder:pp});pe({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=Ke(e.base,t),n=Bn.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=Bn.mathMLnode(e.label),n=new oe.MathNode("munder",[tt(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var to=e=>{var t=new oe.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};pe({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(Ke(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(Ke(e.below,n,t),t),s.classes.push(i+"-arrow-pad"));var o=Bn.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=Bn.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var a=to(tt(e.body,t));if(e.below){var i=to(tt(e.below,t));n=new oe.MathNode("munderover",[r,i,a])}else n=new oe.MathNode("mover",[r,a])}else if(e.below){var s=to(tt(e.below,t));n=new oe.MathNode("munder",[r,s])}else n=to(),n=new oe.MathNode("mover",[r,n]);return n}});var D7=Q.makeSpan;function gp(e,t){var r=St(e.body,t,!0);return D7([e.mclass],r,t)}function bp(e,t){var r,n=lr(e.body,t);return e.mclass==="minner"?r=new oe.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new oe.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new oe.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}pe({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:xt(a),isCharacterBox:Qe.isCharacterBox(a)}},htmlBuilder:gp,mathmlBuilder:bp});var yl=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"};pe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:yl(t[0]),body:xt(t[1]),isCharacterBox:Qe.isCharacterBox(t[1])}}});pe({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=yl(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:xt(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:Qe.isCharacterBox(l)}},htmlBuilder:gp,mathmlBuilder:bp});pe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:yl(t[0]),body:xt(t[0])}},htmlBuilder(e,t){var r=St(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=lr(e.body,t),n=new oe.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var L7={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},oh=()=>({type:"styling",body:[],mode:"math",style:"display"}),lh=e=>e.type==="textord"&&e.text==="@",M7=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function P7(e,t,r){var n=L7[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 B7(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 le("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],i=0;i<t.length;i++){for(var s=t[i],o=oh(),l=0;l<s.length;l++)if(!lh(s[l]))o.body.push(s[l]);else{n.push(o),l+=1;var u=cc(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 h=!0,m=l+1;m<s.length;m++){if(M7(s[m],u)){h=!1,l=m;break}if(lh(s[m]))throw new le("Missing a "+u+" character to complete a CD arrow.",s[m]);d[c].body.push(s[m])}if(h)throw new le("Missing a "+u+" character to complete a CD arrow.",s[l])}else throw new le('Expected one of "<>AV=|." after @',s[l]);var b=P7(u,d,e),x={type:"styling",body:[b],mode:"math",style:"display"};n.push(x),o=oh()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var T=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:T,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}pe({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(Ke(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=fe(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new oe.MathNode("mrow",[tt(e.label,t)]);return r=new oe.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new oe.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});pe({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(Ke(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new oe.MathNode("mrow",[tt(e.fragment,t)])}});pe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=ze(t[0],"ordgroup"),a=n.body,i="",s=0;s<a.length;s++){var o=ze(a[s],"textord");i+=o.text}var l=parseInt(i),u;if(isNaN(l))throw new le("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new le("\\@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 xp=(e,t)=>{var r=St(e.body,t.withColor(e.color),!1);return Q.makeFragment(r)},yp=(e,t)=>{var r=lr(e.body,t.withColor(e.color)),n=new oe.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};pe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=ze(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:xt(a)}},htmlBuilder:xp,mathmlBuilder:yp});pe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=ze(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:xp,mathmlBuilder:yp});pe({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&&ze(a,"size").value}},htmlBuilder(e,t){var r=Q.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=fe(ht(e.size,t)))),r},mathmlBuilder(e,t){var r=new oe.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",fe(ht(e.size,t)))),r}});var i0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Ep=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new le("Expected a control sequence",e);return t},F7=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},vp=(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)};pe({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(i0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=i0[n.text]),ze(t.parseFunction(),"internal");throw new le("Invalid token after macro prefix",n)}});pe({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 le("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 le('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new le('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new le("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===i0[r]),{type:"internal",mode:t.mode}}});pe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Ep(t.gullet.popToken());t.gullet.consumeSpaces();var a=F7(t);return vp(t,n,a,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});pe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Ep(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return vp(t,n,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Qi=function(t,r,n){var a=it.math[t]&&it.math[t].replace,i=ic(a||t,r,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},hc=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=fe(i),t.height-=i,t.depth+=i},z7=function(t,r,n,a,i,s){var o=Q.makeSymbol(t,"Main-Regular",i,a),l=hc(o,r,a,s);return n&&Tp(l,a,r),l},H7=function(t,r,n,a){return Q.makeSymbol(t,"Size"+r+"-Regular",n,a)},wp=function(t,r,n,a,i,s){var o=H7(t,r,i,a),l=hc(Q.makeSpan(["delimsizing","size"+r],[o],a),Ce.TEXT,a,s);return n&&Tp(l,a,Ce.TEXT),l},Ql=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}},Jl=function(t,r,n){var a=dn["Size4-Regular"][t.charCodeAt(0)]?dn["Size4-Regular"][t.charCodeAt(0)][4]:dn["Size1-Regular"][t.charCodeAt(0)][4],i=new ca("inner",Vx(t,Math.round(1e3*r))),s=new Mn([i],{width:fe(a),height:fe(r),style:"width:"+fe(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=Q.makeSvgSpan([],[s],n);return o.height=r,o.style.height=fe(r),o.style.width=fe(a),{type:"elem",elem:o}},s0=.008,ro={type:"kern",size:-1*s0},U7=["|","\\lvert","\\rvert","\\vert"],j7=["\\|","\\lVert","\\rVert","\\Vert"],kp=function(t,r,n,a,i,s){var o,l,u,d,c="",h=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"):U7.includes(t)?(u="∣",c="vert",h=333):j7.includes(t)?(u="∥",c="doublevert",h=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",d="⎣",m="Size4-Regular",c="lbrack",h=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",d="⎦",m="Size4-Regular",c="rbrack",h=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",d="⎣",m="Size4-Regular",c="lfloor",h=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=d="⎢",m="Size4-Regular",c="lceil",h=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",d="⎦",m="Size4-Regular",c="rfloor",h=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=d="⎥",m="Size4-Regular",c="rceil",h=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",d="⎝",m="Size4-Regular",c="lparen",h=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",d="⎠",m="Size4-Regular",c="rparen",h=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=Qi(o,m,i),x=b.height+b.depth,T=Qi(u,m,i),E=T.height+T.depth,k=Qi(d,m,i),_=k.height+k.depth,P=0,U=1;if(l!==null){var D=Qi(l,m,i);P=D.height+D.depth,U=2}var V=x+_+P,Y=Math.max(0,Math.ceil((r-V)/(U*E))),ee=V+Y*U*E,F=a.fontMetrics().axisHeight;n&&(F*=a.sizeMultiplier);var ne=ee/2-F,$=[];if(c.length>0){var C=ee-x-_,H=Math.round(ee*1e3),j=Wx(c,Math.round(C*1e3)),q=new ca(c,j),W=(h/1e3).toFixed(3)+"em",X=(H/1e3).toFixed(3)+"em",ue=new Mn([q],{width:W,height:X,viewBox:"0 0 "+h+" "+H}),N=Q.makeSvgSpan([],[ue],a);N.height=H/1e3,N.style.width=W,N.style.height=X,$.push({type:"elem",elem:N})}else{if($.push(Ql(d,m,i)),$.push(ro),l===null){var he=ee-x-_+2*s0;$.push(Jl(u,he,a))}else{var be=(ee-x-_-P)/2+2*s0;$.push(Jl(u,be,a)),$.push(ro),$.push(Ql(l,m,i)),$.push(ro),$.push(Jl(u,be,a))}$.push(ro),$.push(Ql(o,m,i))}var O=a.havingBaseStyle(Ce.TEXT),Ae=Q.makeVList({positionType:"bottom",positionData:ne,children:$},O);return hc(Q.makeSpan(["delimsizing","mult"],[Ae],O),Ce.TEXT,a,s)},Zl=80,eu=.08,tu=function(t,r,n,a,i){var s=qx(t,a,n),o=new ca(t,s),l=new Mn([o],{width:"400em",height:fe(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Q.makeSvgSpan(["hide-tail"],[l],i)},$7=function(t,r){var n=r.havingBaseSizing(),a=_p("\\surd",t*n.sizeMultiplier,Cp,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+Zl,t<1?i=1:t<1.4&&(i=.7),l=(1+s+eu)/i,u=(1+s)/i,o=tu("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",c=.833/i):a.type==="large"?(d=(1e3+Zl)*ns[a.size],u=(ns[a.size]+s)/i,l=(ns[a.size]+s+eu)/i,o=tu("sqrtSize"+a.size,l,d,s,r),o.style.minWidth="1.02em",c=1/i):(l=t+s+eu,u=t+s,d=Math.floor(1e3*t+s)+Zl,o=tu("sqrtTall",l,d,s,r),o.style.minWidth="0.742em",c=1.056),o.height=u,o.style.height=fe(l),{span:o,advanceWidth:c,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},Ap=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],q7=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Sp=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ns=[0,1.2,1.8,2.4,3],V7=function(t,r,n,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ap.includes(t)||Sp.includes(t))return wp(t,r,!1,n,a,i);if(q7.includes(t))return kp(t,ns[r],!1,n,a,i);throw new le("Illegal delimiter: '"+t+"'")},W7=[{type:"small",style:Ce.SCRIPTSCRIPT},{type:"small",style:Ce.SCRIPT},{type:"small",style:Ce.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],G7=[{type:"small",style:Ce.SCRIPTSCRIPT},{type:"small",style:Ce.SCRIPT},{type:"small",style:Ce.TEXT},{type:"stack"}],Cp=[{type:"small",style:Ce.SCRIPTSCRIPT},{type:"small",style:Ce.SCRIPT},{type:"small",style:Ce.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Y7=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.")},_p=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=Qi(t,Y7(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]},Np=function(t,r,n,a,i,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;Sp.includes(t)?o=W7:Ap.includes(t)?o=Cp:o=G7;var l=_p(t,r,o,a);return l.type==="small"?z7(t,l.style,n,a,i,s):l.type==="large"?wp(t,l.size,n,a,i,s):kp(t,r,n,a,i,s)},X7=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 Np(t,c,!0,a,i,s)},Rn={sqrtImage:$7,sizedDelim:V7,sizeToMaxHeight:ns,customSizedDelim:Np,leftRightDelim:X7},uh={"\\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}},K7=["(","\\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 El(e,t){var r=xl(e);if(r&&K7.includes(r.text))return r;throw r?new le("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new le("Invalid delimiter type '"+e.type+"'",e)}pe({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=El(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:uh[e.funcName].size,mclass:uh[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Q.makeSpan([e.mclass]):Rn.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(_r(e.delim,e.mode));var r=new oe.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=fe(Rn.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function ch(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}pe({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 le("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:El(t[0],e).text,color:r}}});pe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=El(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=ze(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{ch(e);for(var r=St(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=Es(t,["mopen"]):o=Rn.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]=Rn.leftRightDelim(d.delim,n,a,d.options,e.mode,[]))}var c;if(e.right===".")c=Es(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;c=Rn.leftRightDelim(e.right,n,a,h,e.mode,["mclose"])}return r.push(c),Q.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{ch(e);var r=lr(e.body,t);if(e.left!=="."){var n=new oe.MathNode("mo",[_r(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var a=new oe.MathNode("mo",[_r(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return lc(r)}});pe({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=El(t[0],e);if(!e.parser.leftrightDepth)throw new le("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Es(t,[]);else{r=Rn.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==="|"?_r("|","text"):_r(e.delim,e.mode),n=new oe.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var fc=(e,t)=>{var r=Q.wrapFragment(Ke(e.body,t),t),n=e.label.slice(1),a=t.sizeMultiplier,i,s=0,o=Qe.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=ht({number:.6,unit:"pt"},t),u=ht({number:.35,unit:"ex"},t),d=t.havingBaseSizing();a=a/d.sizeMultiplier;var c=r.height+r.depth+l+u;r.style.paddingLeft=fe(c/2+l);var h=Math.floor(1e3*c*a),m=jx(h),b=new Mn([new ca("phase",m)],{width:"400em",height:fe(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});i=Q.makeSvgSpan(["hide-tail"],[b],t),i.style.height=fe(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 x=0,T=0,E=0;/box/.test(n)?(E=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(n==="colorbox"?0:E),T=x):n==="angl"?(E=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*E,T=Math.max(0,.25-r.depth)):(x=o?.2:0,T=x),i=Bn.encloseSpan(r,n,x,T,t),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=fe(E)):n==="angl"&&E!==.049&&(i.style.borderTopWidth=fe(E),i.style.borderRightWidth=fe(E)),s=r.depth+T,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var k;if(e.backgroundColor)k=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]},t);else{var _=/cancel|phase/.test(n)?["svg-align"]:[];k=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:_}]},t)}return/cancel/.test(n)&&(k.height=r.height,k.depth=r.depth),/cancel/.test(n)&&!o?Q.makeSpan(["mord","cancel-lap"],[k],t):Q.makeSpan(["mord"],[k],t)},mc=(e,t)=>{var r=0,n=new oe.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[tt(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};pe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=ze(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:fc,mathmlBuilder:mc});pe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=ze(t[0],"color-token").color,s=ze(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:fc,mathmlBuilder:mc});pe({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]}}});pe({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:fc,mathmlBuilder:mc});pe({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 Ip={};function gn(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)Ip[r[l]]=o;i&&(Uo[t]=i),s&&(jo[t]=s)}var Op={};function w(e,t){Op[e]=t}function dh(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 vl=e=>{var t=e.parser.settings;if(!t.displayMode)throw new le("{"+e.envName+"} can be used only in display mode.")};function pc(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function fa(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:c,leqno:h}=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 le("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var b=[],x=[b],T=[],E=[],k=l!=null?[]:void 0;function _(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function P(){k&&(e.gullet.macros.get("\\df@tag")?(k.push(e.subparse([new br("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):k.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),E.push(dh(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 D=e.fetch().text;if(D==="&"){if(c&&b.length===c){if(u||o)throw new le("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(D==="\\end"){P(),b.length===1&&U.type==="styling"&&U.body[0].body.length===0&&(x.length>1||!d)&&x.pop(),E.length<x.length+1&&E.push([]);break}else if(D==="\\\\"){e.consume();var V=void 0;e.gullet.future().text!==" "&&(V=e.parseSizeGroup(!0)),T.push(V?V.value:null),P(),E.push(dh(e)),b=[],x.push(b),_()}else throw new le("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:x,cols:i,rowGaps:T,hskipBeforeAndAfter:n,hLinesBeforeRow:E,colSeparationType:o,tags:k,leqno:h}}function gc(e){return e.slice(0,1)==="d"?"display":"text"}var bn=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,h=5*c;if(t.colSeparationType&&t.colSeparationType==="small"){var m=r.havingStyle(Ce.SCRIPT).sizeMultiplier;h=.2778*(m/r.sizeMultiplier)}var b=t.colSeparationType==="CD"?ht({number:3,unit:"ex"},r):12*c,x=3*c,T=t.arraystretch*b,E=.7*T,k=.3*T,_=0;function P(Or){for(var ft=0;ft<Or.length;++ft)ft>0&&(_+=.25),u.push({pos:_,isDashed:Or[ft]})}for(P(s[0]),n=0;n<t.body.length;++n){var U=t.body[n],D=E,V=k;o<U.length&&(o=U.length);var Y=new Array(U.length);for(a=0;a<U.length;++a){var ee=Ke(U[a],r);V<ee.depth&&(V=ee.depth),D<ee.height&&(D=ee.height),Y[a]=ee}var F=t.rowGaps[n],ne=0;F&&(ne=ht(F,r),ne>0&&(ne+=k,V<ne&&(V=ne),ne=0)),t.addJot&&(V+=x),Y.height=D,Y.depth=V,_+=D,Y.pos=_,_+=V+ne,l[n]=Y,P(s[n+1])}var $=_/2+r.fontMetrics().axisHeight,C=t.cols||[],H=[],j,q,W=[];if(t.tags&&t.tags.some(Or=>Or))for(n=0;n<i;++n){var X=l[n],ue=X.pos-$,N=t.tags[n],he=void 0;N===!0?he=Q.makeSpan(["eqn-num"],[],r):N===!1?he=Q.makeSpan([],[],r):he=Q.makeSpan([],St(N,r,!0),r),he.depth=X.depth,he.height=X.height,W.push({type:"elem",elem:he,shift:ue})}for(a=0,q=0;a<o||q<C.length;++a,++q){for(var be=C[q]||{},O=!0;be.type==="separator";){if(O||(j=Q.makeSpan(["arraycolsep"],[]),j.style.width=fe(r.fontMetrics().doubleRuleSep),H.push(j)),be.separator==="|"||be.separator===":"){var Ae=be.separator==="|"?"solid":"dashed",Re=Q.makeSpan(["vertical-separator"],[],r);Re.style.height=fe(_),Re.style.borderRightWidth=fe(d),Re.style.borderRightStyle=Ae,Re.style.margin="0 "+fe(-d/2);var je=_-$;je&&(Re.style.verticalAlign=fe(-je)),H.push(Re)}else throw new le("Invalid separator type: "+be.separator);q++,be=C[q]||{},O=!1}if(!(a>=o)){var Le=void 0;(a>0||t.hskipBeforeAndAfter)&&(Le=Qe.deflt(be.pregap,h),Le!==0&&(j=Q.makeSpan(["arraycolsep"],[]),j.style.width=fe(Le),H.push(j)));var Ne=[];for(n=0;n<i;++n){var rt=l[n],lt=rt[a];if(lt){var Ct=rt.pos-$;lt.depth=rt.depth,lt.height=rt.height,Ne.push({type:"elem",elem:lt,shift:Ct})}}Ne=Q.makeVList({positionType:"individualShift",children:Ne},r),Ne=Q.makeSpan(["col-align-"+(be.align||"c")],[Ne]),H.push(Ne),(a<o-1||t.hskipBeforeAndAfter)&&(Le=Qe.deflt(be.postgap,h),Le!==0&&(j=Q.makeSpan(["arraycolsep"],[]),j.style.width=fe(Le),H.push(j)))}}if(l=Q.makeSpan(["mtable"],H),u.length>0){for(var _t=Q.makeLineSpan("hline",r,d),Ir=Q.makeLineSpan("hdashline",r,d),Er=[{type:"elem",elem:l,shift:0}];u.length>0;){var vn=u.pop(),Vr=vn.pos-$;vn.isDashed?Er.push({type:"elem",elem:Ir,shift:Vr}):Er.push({type:"elem",elem:_t,shift:Vr})}l=Q.makeVList({positionType:"individualShift",children:Er},r)}if(W.length===0)return Q.makeSpan(["mord"],[l],r);var Jt=Q.makeVList({positionType:"individualShift",children:W},r);return Jt=Q.makeSpan(["tag"],[Jt],r),Q.makeFragment([l,Jt])},Q7={c:"center ",l:"left ",r:"right "},xn=function(t,r){for(var n=[],a=new oe.MathNode("mtd",[],["mtr-glue"]),i=new oe.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 oe.MathNode("mtd",[tt(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 oe.MathNode("mtr",l))}var d=new oe.MathNode("mtable",n),c=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);d.setAttribute("rowspacing",fe(c));var h="",m="";if(t.cols&&t.cols.length>0){var b=t.cols,x="",T=!1,E=0,k=b.length;b[0].type==="separator"&&(h+="top ",E=1),b[b.length-1].type==="separator"&&(h+="bottom ",k-=1);for(var _=E;_<k;_++)b[_].type==="align"?(m+=Q7[b[_].align],T&&(x+="none "),T=!0):b[_].type==="separator"&&T&&(x+=b[_].separator==="|"?"solid ":"dashed ",T=!1);d.setAttribute("columnalign",m.trim()),/[sd]/.test(x)&&d.setAttribute("columnlines",x.trim())}if(t.colSeparationType==="align"){for(var P=t.cols||[],U="",D=1;D<P.length;D++)U+=D%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 V="",Y=t.hLinesBeforeRow;h+=Y[0].length>0?"left ":"",h+=Y[Y.length-1].length>0?"right ":"";for(var ee=1;ee<Y.length-1;ee++)V+=Y[ee].length===0?"none ":Y[ee][0]?"dashed ":"solid ";return/[sd]/.test(V)&&d.setAttribute("rowlines",V.trim()),h!==""&&(d=new oe.MathNode("menclose",[d]),d.setAttribute("notation",h.trim())),t.arraystretch&&t.arraystretch<1&&(d=new oe.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},Rp=function(t,r){t.envName.indexOf("ed")===-1&&vl(t);var n=[],a=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",s=fa(t.parser,{cols:n,addJot:!0,autoTag:i?void 0:pc(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 h=ze(r[0].body[c],"textord");d+=h.text}o=Number(d),l=o*2}var m=!l;s.body.forEach(function(E){for(var k=1;k<E.length;k+=2){var _=ze(E[k],"styling"),P=ze(_.body[0],"ordgroup");P.body.unshift(u)}if(m)l<E.length&&(l=E.length);else{var U=E.length/2;if(o<U)throw new le("Too many math in a row: "+("expected "+o+", but got "+U),E[0])}});for(var b=0;b<l;++b){var x="r",T=0;b%2===1?x="l":b>0&&m&&(T=1),n[b]={type:"align",align:x,pregap:T,postgap:0}}return s.colSeparationType=m?"align":"alignat",s};gn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=xl(t[0]),n=r?[t[0]]:ze(t[0],"ordgroup").body,a=n.map(function(s){var o=cc(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 le("Unknown column alignment: "+l,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return fa(e.parser,i,gc(e.envName))},htmlBuilder:bn,mathmlBuilder:xn});gn({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 le("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=fa(e.parser,n,gc(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:bn,mathmlBuilder:xn});gn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=fa(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:bn,mathmlBuilder:xn});gn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=xl(t[0]),n=r?[t[0]]:ze(t[0],"ordgroup").body,a=n.map(function(s){var o=cc(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new le("Unknown column alignment: "+l,s)});if(a.length>1)throw new le("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=fa(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new le("{subarray} can contain only one column");return i},htmlBuilder:bn,mathmlBuilder:xn});gn({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=fa(e.parser,t,gc(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:bn,mathmlBuilder:xn});gn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Rp,htmlBuilder:bn,mathmlBuilder:xn});gn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&vl(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:pc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return fa(e.parser,t,"display")},htmlBuilder:bn,mathmlBuilder:xn});gn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Rp,htmlBuilder:bn,mathmlBuilder:xn});gn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){vl(e);var t={autoTag:pc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return fa(e.parser,t,"display")},htmlBuilder:bn,mathmlBuilder:xn});gn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return vl(e),B7(e.parser)},htmlBuilder:bn,mathmlBuilder:xn});w("\\nonumber","\\gdef\\@eqnsw{0}");w("\\notag","\\nonumber");pe({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new le(e.funcName+" valid only within array environment")}});var hh=Ip;pe({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 le("Invalid environment name",a);for(var i="",s=0;s<a.body.length;++s)i+=ze(a.body[s],"textord").text;if(n==="\\begin"){if(!hh.hasOwnProperty(i))throw new le("No such environment: "+i,a);var o=hh[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 h=r.nextToken,m=ze(r.parseFunction(),"environment");if(m.name!==i)throw new le("Mismatch: \\begin{"+i+"} matched by \\end{"+m.name+"}",h);return c}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var Dp=(e,t)=>{var r=e.font,n=t.withFont(r);return Ke(e.body,n)},Lp=(e,t)=>{var r=e.font,n=t.withFont(r);return tt(e.body,n)},fh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};pe({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=$o(t[0]),i=n;return i in fh&&(i=fh[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Dp,mathmlBuilder:Lp});pe({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],a=Qe.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:yl(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}});pe({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:Dp,mathmlBuilder:Lp});var Mp=(e,t)=>{var r=t;return e==="display"?r=r.id>=Ce.SCRIPT.id?r.text():Ce.DISPLAY:e==="text"&&r.size===Ce.DISPLAY.size?r=Ce.TEXT:e==="script"?r=Ce.SCRIPT:e==="scriptscript"&&(r=Ce.SCRIPTSCRIPT),r},bc=(e,t)=>{var r=Mp(e.size,t.style),n=r.fracNum(),a=r.fracDen(),i;i=t.havingStyle(n);var s=Ke(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=Ke(e.denom,i,t),d,c,h;e.hasBarLine?(e.barSize?(c=ht(e.barSize,t),d=Q.makeLineSpan("frac-line",t,c)):d=Q.makeLineSpan("frac-line",t),c=d.height,h=d.height):(d=null,c=0,h=t.fontMetrics().defaultRuleThickness);var m,b,x;r.size===Ce.DISPLAY.size||e.size==="display"?(m=t.fontMetrics().num1,c>0?b=3*h:b=7*h,x=t.fontMetrics().denom1):(c>0?(m=t.fontMetrics().num2,b=h):(m=t.fontMetrics().num3,b=3*h),x=t.fontMetrics().denom2);var T;if(d){var k=t.fontMetrics().axisHeight;m-s.depth-(k+.5*c)<b&&(m+=b-(m-s.depth-(k+.5*c))),k-.5*c-(u.height-x)<b&&(x+=b-(k-.5*c-(u.height-x)));var _=-(k-.5*c);T=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:x},{type:"elem",elem:d,shift:_},{type:"elem",elem:s,shift:-m}]},t)}else{var E=m-s.depth-(u.height-x);E<b&&(m+=.5*(b-E),x+=.5*(b-E)),T=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:x},{type:"elem",elem:s,shift:-m}]},t)}i=t.havingStyle(r),T.height*=i.sizeMultiplier/t.sizeMultiplier,T.depth*=i.sizeMultiplier/t.sizeMultiplier;var P;r.size===Ce.DISPLAY.size?P=t.fontMetrics().delim1:r.size===Ce.SCRIPTSCRIPT.size?P=t.havingStyle(Ce.SCRIPT).fontMetrics().delim2:P=t.fontMetrics().delim2;var U,D;return e.leftDelim==null?U=Es(t,["mopen"]):U=Rn.customSizedDelim(e.leftDelim,P,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?D=Q.makeSpan([]):e.rightDelim==null?D=Es(t,["mclose"]):D=Rn.customSizedDelim(e.rightDelim,P,!0,t.havingStyle(r),e.mode,["mclose"]),Q.makeSpan(["mord"].concat(i.sizingClasses(t)),[U,Q.makeSpan(["mfrac"],[T]),D],t)},xc=(e,t)=>{var r=new oe.MathNode("mfrac",[tt(e.numer,t),tt(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=ht(e.barSize,t);r.setAttribute("linethickness",fe(n))}var a=Mp(e.size,t.style);if(a.size!==t.style.size){r=new oe.MathNode("mstyle",[r]);var i=a.size===Ce.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 oe.MathNode("mo",[new oe.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(r),e.rightDelim!=null){var l=new oe.MathNode("mo",[new oe.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return lc(s)}return r};pe({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:bc,mathmlBuilder:xc});pe({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}}});pe({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 mh=["display","text","script","scriptscript"],ph=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};pe({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=$o(t[0]),s=i.type==="atom"&&i.family==="open"?ph(i.text):null,o=$o(t[1]),l=o.type==="atom"&&o.family==="close"?ph(o.text):null,u=ze(t[2],"size"),d,c=null;u.isBlank?d=!0:(c=u.value,d=c.number>0);var h="auto",m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var b=ze(m.body[0],"textord");h=mh[Number(b.text)]}}else m=ze(m,"textord"),h=mh[Number(m.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:d,barSize:c,leftDelim:s,rightDelim:l,size:h}},htmlBuilder:bc,mathmlBuilder:xc});pe({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:ze(t[0],"size").value,token:a}}});pe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=Cx(ze(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:bc,mathmlBuilder:xc});var Pp=(e,t)=>{var r=t.style,n,a;e.type==="supsub"?(n=e.sup?Ke(e.sup,t.havingStyle(r.sup()),t):Ke(e.sub,t.havingStyle(r.sub()),t),a=ze(e.base,"horizBrace")):a=ze(e,"horizBrace");var i=Ke(a.base,t.havingBaseStyle(Ce.DISPLAY)),s=Bn.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)},J7=(e,t)=>{var r=Bn.mathMLnode(e.label);return new oe.MathNode(e.isOver?"mover":"munder",[tt(e.base,t),r])};pe({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:J7});pe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=ze(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:xt(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=St(e.body,t,!1);return Q.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=da(e.body,t);return r instanceof pr||(r=new pr("mrow",[r])),r.setAttribute("href",e.href),r}});pe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=ze(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:xt(o)}}});pe({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:xt(t[0])}},htmlBuilder(e,t){var r=St(e.body,t,!1);return Q.makeFragment(r)},mathmlBuilder(e,t){return new oe.MathNode("mrow",lr(e.body,t))}});pe({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=ze(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],h=c.indexOf("=");if(h<0)throw new le("\\htmlData key/value '"+c+"' missing equals sign");var m=c.slice(0,h),b=c.slice(h+1);l["data-"+m.trim()]=b}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:xt(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=St(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)=>da(e.body,t)});pe({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:xt(t[0]),mathml:xt(t[1])}},htmlBuilder:(e,t)=>{var r=St(e.html,t,!1);return Q.makeFragment(r)},mathmlBuilder:(e,t)=>da(e.mathml,t)});var ru=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 le("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!tp(n))throw new le("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};pe({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=ze(r[0],"raw").string,u=l.split(","),d=0;d<u.length;d++){var c=u[d].split("=");if(c.length===2){var h=c[1].trim();switch(c[0].trim()){case"alt":o=h;break;case"width":a=ru(h);break;case"height":i=ru(h);break;case"totalheight":s=ru(h);break;default:throw new le("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var m=ze(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=ht(e.height,t),n=0;e.totalheight.number>0&&(n=ht(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=ht(e.width,t));var i={height:fe(r+n)};a>0&&(i.width=fe(a)),n>0&&(i.verticalAlign=fe(-n));var s=new Jx(e.src,e.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new oe.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=ht(e.height,t),a=0;if(e.totalheight.number>0&&(a=ht(e.totalheight,t)-n,r.setAttribute("valign",fe(-a))),r.setAttribute("height",fe(n+a)),e.width.number>0){var i=ht(e.width,t);r.setAttribute("width",fe(i))}return r.setAttribute("src",e.src),r}});pe({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=ze(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=ht(e.dimension,t);return new oe.SpaceNode(r)}});pe({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([],[Ke(e.body,t)]),r=Q.makeSpan(["inner"],[r],t)):r=Q.makeSpan(["inner"],[Ke(e.body,t)]);var n=Q.makeSpan(["fix"],[]),a=Q.makeSpan([e.alignment],[r,n],t),i=Q.makeSpan(["strut"]);return i.style.height=fe(a.height+a.depth),a.depth&&(i.style.verticalAlign=fe(-a.depth)),a.children.unshift(i),a=Q.makeSpan(["thinbox"],[a],t),Q.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new oe.MathNode("mpadded",[tt(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}});pe({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}}});pe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new le("Mismatched "+e.funcName)}});var gh=(e,t)=>{switch(t.style.size){case Ce.DISPLAY.size:return e.display;case Ce.TEXT.size:return e.text;case Ce.SCRIPT.size:return e.script;case Ce.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};pe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:xt(t[0]),text:xt(t[1]),script:xt(t[2]),scriptscript:xt(t[3])}},htmlBuilder:(e,t)=>{var r=gh(e,t),n=St(r,t,!1);return Q.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=gh(e,t);return da(r,t)}});var Bp=(e,t,r,n,a,i,s)=>{e=Q.makeSpan([],[e]);var o=r&&Qe.isCharacterBox(r),l,u;if(t){var d=Ke(t,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var c=Ke(r,n.havingStyle(a.sub()),n);l={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-c.height)}}var h;if(u&&l){var m=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;h=Q.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:fe(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:fe(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(l){var b=e.height-s;h=Q.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:fe(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},n)}else if(u){var x=e.depth+s;h=Q.makeVList({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:fe(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var T=[h];if(l&&i!==0&&!o){var E=Q.makeSpan(["mspace"],[],n);E.style.marginRight=fe(i),T.unshift(E)}return Q.makeSpan(["mop","op-limits"],T,n)},Fp=["\\smallint"],Ai=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=ze(e.base,"op"),a=!0):i=ze(e,"op");var s=t.style,o=!1;s.size===Ce.DISPLAY.size&&i.symbol&&!Fp.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,h=Q.staticSvg(d+"Size"+(o?"2":"1"),t);l=Q.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:o?.08:0}]},t),i.name="\\"+d,l.classes.unshift("mop"),l.italic=c}}else if(i.body){var m=St(i.body,t,!0);m.length===1&&m[0]instanceof Cr?(l=m[0],l.classes[0]="mop"):l=Q.makeSpan(["mop"],m,t)}else{for(var b=[],x=1;x<i.name.length;x++)b.push(Q.mathsym(i.name[x],i.mode,t));l=Q.makeSpan(["mop"],b,t)}var T=0,E=0;return(l instanceof Cr||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(T=(l.height-l.depth)/2-t.fontMetrics().axisHeight,E=l.italic),a?Bp(l,r,n,t,s,E,T):(T&&(l.style.position="relative",l.style.top=fe(T)),l)},Ds=(e,t)=>{var r;if(e.symbol)r=new pr("mo",[_r(e.name,e.mode)]),Fp.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new pr("mo",lr(e.body,t));else{r=new pr("mi",[new hn(e.name.slice(1))]);var n=new pr("mo",[_r("","text")]);e.parentIsSupSub?r=new pr("mrow",[r,n]):r=hp([r,n])}return r},Z7={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};pe({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=Z7[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Ai,mathmlBuilder:Ds});pe({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:xt(n)}},htmlBuilder:Ai,mathmlBuilder:Ds});var ey={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};pe({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:Ai,mathmlBuilder:Ds});pe({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:Ai,mathmlBuilder:Ds});pe({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=ey[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Ai,mathmlBuilder:Ds});var zp=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=ze(e.base,"operatorname"),a=!0):i=ze(e,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(c=>{var h=c.text;return typeof h=="string"?{type:"textord",mode:c.mode,text:h}:c}),l=St(o,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var d=l[u];d instanceof Cr&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=Q.makeSpan(["mop"],l,t)}else s=Q.makeSpan(["mop"],[],t);return a?Bp(s,r,n,t,t.style,0,0):s},ty=(e,t)=>{for(var r=lr(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof oe.SpaceNode))if(i instanceof oe.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 oe.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 oe.TextNode(o)]}var l=new oe.MathNode("mi",r);l.setAttribute("mathvariant","normal");var u=new oe.MathNode("mo",[_r("","text")]);return e.parentIsSupSub?new oe.MathNode("mrow",[l,u]):oe.newDocumentFragment([l,u])};pe({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:xt(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:zp,mathmlBuilder:ty});w("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");za({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Q.makeFragment(St(e.body,t,!1)):Q.makeSpan(["mord"],St(e.body,t,!0),t)},mathmlBuilder(e,t){return da(e.body,t,!0)}});pe({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=Ke(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 oe.MathNode("mo",[new oe.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new oe.MathNode("mover",[tt(e.body,t),r]);return n.setAttribute("accent","true"),n}});pe({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:xt(n)}},htmlBuilder:(e,t)=>{var r=St(e.body,t.withPhantom(),!1);return Q.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=lr(e.body,t);return new oe.MathNode("mphantom",r)}});pe({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([],[Ke(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=lr(xt(e.body),t),n=new oe.MathNode("mphantom",r),a=new oe.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});pe({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"],[Ke(e.body,t.withPhantom())]),n=Q.makeSpan(["fix"],[]);return Q.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=lr(xt(e.body),t),n=new oe.MathNode("mphantom",r),a=new oe.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}});pe({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=ze(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=Ke(e.body,t),n=ht(e.dy,t);return Q.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new oe.MathNode("mpadded",[tt(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});pe({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});pe({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=ze(t[0],"size"),s=ze(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&ze(a,"size").value,width:i.value,height:s.value}},htmlBuilder(e,t){var r=Q.makeSpan(["mord","rule"],[],t),n=ht(e.width,t),a=ht(e.height,t),i=e.shift?ht(e.shift,t):0;return r.style.borderRightWidth=fe(n),r.style.borderTopWidth=fe(a),r.style.bottom=fe(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=ht(e.width,t),n=ht(e.height,t),a=e.shift?ht(e.shift,t):0,i=t.color&&t.getColor()||"black",s=new oe.MathNode("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",fe(r)),s.setAttribute("height",fe(n));var o=new oe.MathNode("mpadded",[s]);return a>=0?o.setAttribute("height",fe(a)):(o.setAttribute("height",fe(a)),o.setAttribute("depth",fe(-a))),o.setAttribute("voffset",fe(a)),o}});function Hp(e,t,r){for(var n=St(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 bh=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ry=(e,t)=>{var r=t.havingSize(e.size);return Hp(e.body,r,t)};pe({type:"sizing",names:bh,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:bh.indexOf(n)+1,body:i}},htmlBuilder:ry,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=lr(e.body,r),a=new oe.MathNode("mstyle",n);return a.setAttribute("mathsize",fe(r.sizeMultiplier)),a}});pe({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]&&ze(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([],[Ke(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 oe.MathNode("mpadded",[tt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});pe({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=Ke(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<Ce.TEXT.id&&(i=t.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,{span:l,ruleWidth:u,advanceWidth:d}=Rn.sqrtImage(o,t),c=l.height-u;c>r.height+r.depth+s&&(s=(s+c-r.height-r.depth)/2);var h=l.height-r.height-s-u;r.style.paddingLeft=fe(d);var m=Q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+h)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var b=t.havingStyle(Ce.SCRIPTSCRIPT),x=Ke(e.index,b,t),T=.6*(m.height-m.depth),E=Q.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:x}]},t),k=Q.makeSpan(["root"],[E]);return Q.makeSpan(["mord","sqrt"],[k,m],t)}else return Q.makeSpan(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new oe.MathNode("mroot",[tt(r,t),tt(n,t)]):new oe.MathNode("msqrt",[tt(r,t)])}});var xh={display:Ce.DISPLAY,text:Ce.TEXT,script:Ce.SCRIPT,scriptscript:Ce.SCRIPTSCRIPT};pe({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=xh[e.style],n=t.havingStyle(r).withFont("");return Hp(e.body,n,t)},mathmlBuilder(e,t){var r=xh[e.style],n=t.havingStyle(r),a=lr(e.body,n),i=new oe.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 ny=function(t,r){var n=t.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===Ce.DISPLAY.size||n.alwaysHandleSupSub);return a?Ai:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===Ce.DISPLAY.size||n.limits);return i?zp:null}else{if(n.type==="accent")return Qe.isCharacterBox(n.base)?dc:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?Pp:null}else return null}else return null};za({type:"supsub",htmlBuilder(e,t){var r=ny(e,t);if(r)return r(e,t);var{base:n,sup:a,sub:i}=e,s=Ke(n,t),o,l,u=t.fontMetrics(),d=0,c=0,h=n&&Qe.isCharacterBox(n);if(a){var m=t.havingStyle(t.style.sup());o=Ke(a,m,t),h||(d=s.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(i){var b=t.havingStyle(t.style.sub());l=Ke(i,b,t),h||(c=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var x;t.style===Ce.DISPLAY?x=u.sup1:t.style.cramped?x=u.sup3:x=u.sup2;var T=t.sizeMultiplier,E=fe(.5/u.ptPerEm/T),k=null;if(l){var _=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Cr||_)&&(k=fe(-s.italic))}var P;if(o&&l){d=Math.max(d,x,o.depth+.25*u.xHeight),c=Math.max(c,u.sub2);var U=u.defaultRuleThickness,D=4*U;if(d-o.depth-(l.height-c)<D){c=D-(d-o.depth)+l.height;var V=.8*u.xHeight-(d-o.depth);V>0&&(d+=V,c-=V)}var Y=[{type:"elem",elem:l,shift:c,marginRight:E,marginLeft:k},{type:"elem",elem:o,shift:-d,marginRight:E}];P=Q.makeVList({positionType:"individualShift",children:Y},t)}else if(l){c=Math.max(c,u.sub1,l.height-.8*u.xHeight);var ee=[{type:"elem",elem:l,marginLeft:k,marginRight:E}];P=Q.makeVList({positionType:"shift",positionData:c,children:ee},t)}else if(o)d=Math.max(d,x,o.depth+.25*u.xHeight),P=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 F=n0(s,"right")||"mord";return Q.makeSpan([F],[s,Q.makeSpan(["msupsub"],[P])],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=[tt(e.base,t)];e.sub&&i.push(tt(e.sub,t)),e.sup&&i.push(tt(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===Ce.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Ce.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ce.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ce.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Ce.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Ce.DISPLAY)?s="mover":s="msup"}return new oe.MathNode(s,i)}});za({type:"atom",htmlBuilder(e,t){return Q.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new oe.MathNode("mo",[_r(e.text,e.mode)]);if(e.family==="bin"){var n=uc(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 Up={mi:"italic",mn:"normal",mtext:"normal"};za({type:"mathord",htmlBuilder(e,t){return Q.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new oe.MathNode("mi",[_r(e.text,e.mode,t)]),n=uc(e,t)||"italic";return n!==Up[r.type]&&r.setAttribute("mathvariant",n),r}});za({type:"textord",htmlBuilder(e,t){return Q.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=_r(e.text,e.mode,t),n=uc(e,t)||"normal",a;return e.mode==="text"?a=new oe.MathNode("mtext",[r]):/[0-9]/.test(e.text)?a=new oe.MathNode("mn",[r]):e.text==="\\prime"?a=new oe.MathNode("mo",[r]):a=new oe.MathNode("mi",[r]),n!==Up[a.type]&&a.setAttribute("mathvariant",n),a}});var nu={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},au={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};za({type:"spacing",htmlBuilder(e,t){if(au.hasOwnProperty(e.text)){var r=au[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(nu.hasOwnProperty(e.text))return Q.makeSpan(["mspace",nu[e.text]],[],t);throw new le('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(au.hasOwnProperty(e.text))r=new oe.MathNode("mtext",[new oe.TextNode(" ")]);else{if(nu.hasOwnProperty(e.text))return new oe.MathNode("mspace");throw new le('Unknown type of space "'+e.text+'"')}return r}});var yh=()=>{var e=new oe.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};za({type:"tag",mathmlBuilder(e,t){var r=new oe.MathNode("mtable",[new oe.MathNode("mtr",[yh(),new oe.MathNode("mtd",[da(e.body,t)]),yh(),new oe.MathNode("mtd",[da(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Eh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},vh={"\\textbf":"textbf","\\textmd":"textmd"},ay={"\\textit":"textit","\\textup":"textup"},Th=(e,t)=>{var r=e.font;if(r){if(Eh[r])return t.withTextFontFamily(Eh[r]);if(vh[r])return t.withTextFontWeight(vh[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(ay[r])};pe({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:xt(a),font:n}},htmlBuilder(e,t){var r=Th(e,t),n=St(e.body,r,!0);return Q.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Th(e,t);return da(e.body,r)}});pe({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=Ke(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 oe.MathNode("mo",[new oe.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new oe.MathNode("munder",[tt(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});pe({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=Ke(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 oe.MathNode("mpadded",[tt(e.body,t)],["vcenter"])}});pe({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new le("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=wh(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 oe.TextNode(wh(e)),n=new oe.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var wh=e=>e.body.replace(/ /g,e.star?"␣":" "),ia=cp,jp=`[ \r
|
|
297
|
-
]`,iy="\\\\[a-zA-Z@]+",sy="\\\\[^\uD800-\uDFFF]",oy="("+iy+")"+jp+"*",ly=`\\\\(
|
|
298
|
-
|[ \r ]+
|
|
299
|
-
?)[ \r ]*`,o0="[̀-ͯ]",uy=new RegExp(o0+"+$"),cy="("+jp+"+)|"+(ly+"|")+"([!-\\[\\]-‧-豈-]"+(o0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(o0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+oy)+("|"+sy+")");class kh{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(cy,"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 br("EOF",new ir(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new le("Unexpected character: '"+t[r]+"'",new br(t[r],new ir(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
|
|
300
|
-
`,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 br(a,new ir(this,r,this.tokenRegex.lastIndex))}}class dy{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 le("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 hy=Op;w("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});w("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});w("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});w("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});w("\\@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}});w("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");w("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Ah={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};w("\\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 le("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Ah[t.text],n==null||n>=r)throw new le("Invalid base-"+r+" digit "+t.text);for(var a;(a=Ah[e.future().text])!=null&&a<r;)n*=r,n+=a,e.popToken()}return"\\@char{"+n+"}"});var yc=(e,t,r,n)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new le("\\newcommand's first argument must be a macro name");var i=a[0].text,s=e.isDefined(i);if(s&&!t)throw new le("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new le("\\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 le("Invalid number of arguments: "+l);o=parseInt(l),a=e.consumeArg().tokens}return s&&n||e.macros.set(i,{tokens:a,numArgs:o}),""};w("\\newcommand",e=>yc(e,!1,!0,!1));w("\\renewcommand",e=>yc(e,!0,!1,!1));w("\\providecommand",e=>yc(e,!0,!0,!0));w("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});w("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});w("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),ia[r],it.math[r],it.text[r]),""});w("\\bgroup","{");w("\\egroup","}");w("~","\\nobreakspace");w("\\lq","`");w("\\rq","'");w("\\aa","\\r a");w("\\AA","\\r A");w("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");w("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");w("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");w("ℬ","\\mathscr{B}");w("ℰ","\\mathscr{E}");w("ℱ","\\mathscr{F}");w("ℋ","\\mathscr{H}");w("ℐ","\\mathscr{I}");w("ℒ","\\mathscr{L}");w("ℳ","\\mathscr{M}");w("ℛ","\\mathscr{R}");w("ℭ","\\mathfrak{C}");w("ℌ","\\mathfrak{H}");w("ℨ","\\mathfrak{Z}");w("\\Bbbk","\\Bbb{k}");w("·","\\cdotp");w("\\llap","\\mathllap{\\textrm{#1}}");w("\\rlap","\\mathrlap{\\textrm{#1}}");w("\\clap","\\mathclap{\\textrm{#1}}");w("\\mathstrut","\\vphantom{(}");w("\\underbar","\\underline{\\text{#1}}");w("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');w("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");w("\\ne","\\neq");w("≠","\\neq");w("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");w("∉","\\notin");w("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");w("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");w("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");w("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");w("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");w("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");w("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");w("⟂","\\perp");w("‼","\\mathclose{!\\mkern-0.8mu!}");w("∌","\\notni");w("⌜","\\ulcorner");w("⌝","\\urcorner");w("⌞","\\llcorner");w("⌟","\\lrcorner");w("©","\\copyright");w("®","\\textregistered");w("️","\\textregistered");w("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');w("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');w("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');w("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');w("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");w("⋮","\\vdots");w("\\varGamma","\\mathit{\\Gamma}");w("\\varDelta","\\mathit{\\Delta}");w("\\varTheta","\\mathit{\\Theta}");w("\\varLambda","\\mathit{\\Lambda}");w("\\varXi","\\mathit{\\Xi}");w("\\varPi","\\mathit{\\Pi}");w("\\varSigma","\\mathit{\\Sigma}");w("\\varUpsilon","\\mathit{\\Upsilon}");w("\\varPhi","\\mathit{\\Phi}");w("\\varPsi","\\mathit{\\Psi}");w("\\varOmega","\\mathit{\\Omega}");w("\\substack","\\begin{subarray}{c}#1\\end{subarray}");w("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");w("\\boxed","\\fbox{$\\displaystyle{#1}$}");w("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");w("\\implies","\\DOTSB\\;\\Longrightarrow\\;");w("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");w("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");w("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Sh={",":"\\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"};w("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Sh?t=Sh[r]:(r.slice(0,4)==="\\not"||r in it.math&&["bin","rel"].includes(it.math[r].group))&&(t="\\dotsb"),t});var Ec={")":!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};w("\\dotso",function(e){var t=e.future().text;return t in Ec?"\\ldots\\,":"\\ldots"});w("\\dotsc",function(e){var t=e.future().text;return t in Ec&&t!==","?"\\ldots\\,":"\\ldots"});w("\\cdots",function(e){var t=e.future().text;return t in Ec?"\\@cdots\\,":"\\@cdots"});w("\\dotsb","\\cdots");w("\\dotsm","\\cdots");w("\\dotsi","\\!\\cdots");w("\\dotsx","\\ldots\\,");w("\\DOTSI","\\relax");w("\\DOTSB","\\relax");w("\\DOTSX","\\relax");w("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");w("\\,","\\tmspace+{3mu}{.1667em}");w("\\thinspace","\\,");w("\\>","\\mskip{4mu}");w("\\:","\\tmspace+{4mu}{.2222em}");w("\\medspace","\\:");w("\\;","\\tmspace+{5mu}{.2777em}");w("\\thickspace","\\;");w("\\!","\\tmspace-{3mu}{.1667em}");w("\\negthinspace","\\!");w("\\negmedspace","\\tmspace-{4mu}{.2222em}");w("\\negthickspace","\\tmspace-{5mu}{.277em}");w("\\enspace","\\kern.5em ");w("\\enskip","\\hskip.5em\\relax");w("\\quad","\\hskip1em\\relax");w("\\qquad","\\hskip2em\\relax");w("\\tag","\\@ifstar\\tag@literal\\tag@paren");w("\\tag@paren","\\tag@literal{({#1})}");w("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new le("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});w("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");w("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");w("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");w("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");w("\\newline","\\\\\\relax");w("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var $p=fe(dn["Main-Regular"][84][1]-.7*dn["Main-Regular"][65][1]);w("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+$p+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");w("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+$p+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");w("\\hspace","\\@ifstar\\@hspacer\\@hspace");w("\\@hspace","\\hskip #1\\relax");w("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");w("\\ordinarycolon",":");w("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");w("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');w("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');w("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');w("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');w("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');w("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');w("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');w("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');w("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');w("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');w("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');w("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');w("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');w("∷","\\dblcolon");w("∹","\\eqcolon");w("≔","\\coloneqq");w("≕","\\eqqcolon");w("⩴","\\Coloneqq");w("\\ratio","\\vcentcolon");w("\\coloncolon","\\dblcolon");w("\\colonequals","\\coloneqq");w("\\coloncolonequals","\\Coloneqq");w("\\equalscolon","\\eqqcolon");w("\\equalscoloncolon","\\Eqqcolon");w("\\colonminus","\\coloneq");w("\\coloncolonminus","\\Coloneq");w("\\minuscolon","\\eqcolon");w("\\minuscoloncolon","\\Eqcolon");w("\\coloncolonapprox","\\Colonapprox");w("\\coloncolonsim","\\Colonsim");w("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");w("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");w("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");w("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");w("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");w("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");w("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");w("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");w("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");w("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");w("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");w("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");w("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");w("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");w("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");w("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");w("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");w("\\nleqq","\\html@mathml{\\@nleqq}{≰}");w("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");w("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");w("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");w("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");w("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");w("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");w("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");w("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");w("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");w("\\imath","\\html@mathml{\\@imath}{ı}");w("\\jmath","\\html@mathml{\\@jmath}{ȷ}");w("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");w("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");w("⟦","\\llbracket");w("⟧","\\rrbracket");w("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");w("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");w("⦃","\\lBrace");w("⦄","\\rBrace");w("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");w("⦵","\\minuso");w("\\darr","\\downarrow");w("\\dArr","\\Downarrow");w("\\Darr","\\Downarrow");w("\\lang","\\langle");w("\\rang","\\rangle");w("\\uarr","\\uparrow");w("\\uArr","\\Uparrow");w("\\Uarr","\\Uparrow");w("\\N","\\mathbb{N}");w("\\R","\\mathbb{R}");w("\\Z","\\mathbb{Z}");w("\\alef","\\aleph");w("\\alefsym","\\aleph");w("\\Alpha","\\mathrm{A}");w("\\Beta","\\mathrm{B}");w("\\bull","\\bullet");w("\\Chi","\\mathrm{X}");w("\\clubs","\\clubsuit");w("\\cnums","\\mathbb{C}");w("\\Complex","\\mathbb{C}");w("\\Dagger","\\ddagger");w("\\diamonds","\\diamondsuit");w("\\empty","\\emptyset");w("\\Epsilon","\\mathrm{E}");w("\\Eta","\\mathrm{H}");w("\\exist","\\exists");w("\\harr","\\leftrightarrow");w("\\hArr","\\Leftrightarrow");w("\\Harr","\\Leftrightarrow");w("\\hearts","\\heartsuit");w("\\image","\\Im");w("\\infin","\\infty");w("\\Iota","\\mathrm{I}");w("\\isin","\\in");w("\\Kappa","\\mathrm{K}");w("\\larr","\\leftarrow");w("\\lArr","\\Leftarrow");w("\\Larr","\\Leftarrow");w("\\lrarr","\\leftrightarrow");w("\\lrArr","\\Leftrightarrow");w("\\Lrarr","\\Leftrightarrow");w("\\Mu","\\mathrm{M}");w("\\natnums","\\mathbb{N}");w("\\Nu","\\mathrm{N}");w("\\Omicron","\\mathrm{O}");w("\\plusmn","\\pm");w("\\rarr","\\rightarrow");w("\\rArr","\\Rightarrow");w("\\Rarr","\\Rightarrow");w("\\real","\\Re");w("\\reals","\\mathbb{R}");w("\\Reals","\\mathbb{R}");w("\\Rho","\\mathrm{P}");w("\\sdot","\\cdot");w("\\sect","\\S");w("\\spades","\\spadesuit");w("\\sub","\\subset");w("\\sube","\\subseteq");w("\\supe","\\supseteq");w("\\Tau","\\mathrm{T}");w("\\thetasym","\\vartheta");w("\\weierp","\\wp");w("\\Zeta","\\mathrm{Z}");w("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");w("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");w("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");w("\\bra","\\mathinner{\\langle{#1}|}");w("\\ket","\\mathinner{|{#1}\\rangle}");w("\\braket","\\mathinner{\\langle{#1}\\rangle}");w("\\Bra","\\left\\langle#1\\right|");w("\\Ket","\\left|#1\\right\\rangle");var qp=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=>h=>{e&&(h.macros.set("|",s),a.length&&h.macros.set("\\|",o));var m=c;if(!c&&a.length){var b=h.future();b.text==="|"&&(h.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}};w("\\bra@ket",qp(!1));w("\\bra@set",qp(!0));w("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");w("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");w("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");w("\\angln","{\\angl n}");w("\\blue","\\textcolor{##6495ed}{#1}");w("\\orange","\\textcolor{##ffa500}{#1}");w("\\pink","\\textcolor{##ff00af}{#1}");w("\\red","\\textcolor{##df0030}{#1}");w("\\green","\\textcolor{##28ae7b}{#1}");w("\\gray","\\textcolor{gray}{#1}");w("\\purple","\\textcolor{##9d38bd}{#1}");w("\\blueA","\\textcolor{##ccfaff}{#1}");w("\\blueB","\\textcolor{##80f6ff}{#1}");w("\\blueC","\\textcolor{##63d9ea}{#1}");w("\\blueD","\\textcolor{##11accd}{#1}");w("\\blueE","\\textcolor{##0c7f99}{#1}");w("\\tealA","\\textcolor{##94fff5}{#1}");w("\\tealB","\\textcolor{##26edd5}{#1}");w("\\tealC","\\textcolor{##01d1c1}{#1}");w("\\tealD","\\textcolor{##01a995}{#1}");w("\\tealE","\\textcolor{##208170}{#1}");w("\\greenA","\\textcolor{##b6ffb0}{#1}");w("\\greenB","\\textcolor{##8af281}{#1}");w("\\greenC","\\textcolor{##74cf70}{#1}");w("\\greenD","\\textcolor{##1fab54}{#1}");w("\\greenE","\\textcolor{##0d923f}{#1}");w("\\goldA","\\textcolor{##ffd0a9}{#1}");w("\\goldB","\\textcolor{##ffbb71}{#1}");w("\\goldC","\\textcolor{##ff9c39}{#1}");w("\\goldD","\\textcolor{##e07d10}{#1}");w("\\goldE","\\textcolor{##a75a05}{#1}");w("\\redA","\\textcolor{##fca9a9}{#1}");w("\\redB","\\textcolor{##ff8482}{#1}");w("\\redC","\\textcolor{##f9685d}{#1}");w("\\redD","\\textcolor{##e84d39}{#1}");w("\\redE","\\textcolor{##bc2612}{#1}");w("\\maroonA","\\textcolor{##ffbde0}{#1}");w("\\maroonB","\\textcolor{##ff92c6}{#1}");w("\\maroonC","\\textcolor{##ed5fa6}{#1}");w("\\maroonD","\\textcolor{##ca337c}{#1}");w("\\maroonE","\\textcolor{##9e034e}{#1}");w("\\purpleA","\\textcolor{##ddd7ff}{#1}");w("\\purpleB","\\textcolor{##c6b9fc}{#1}");w("\\purpleC","\\textcolor{##aa87ff}{#1}");w("\\purpleD","\\textcolor{##7854ab}{#1}");w("\\purpleE","\\textcolor{##543b78}{#1}");w("\\mintA","\\textcolor{##f5f9e8}{#1}");w("\\mintB","\\textcolor{##edf2df}{#1}");w("\\mintC","\\textcolor{##e0e5cc}{#1}");w("\\grayA","\\textcolor{##f6f7f7}{#1}");w("\\grayB","\\textcolor{##f0f1f2}{#1}");w("\\grayC","\\textcolor{##e3e5e6}{#1}");w("\\grayD","\\textcolor{##d6d8da}{#1}");w("\\grayE","\\textcolor{##babec2}{#1}");w("\\grayF","\\textcolor{##888d93}{#1}");w("\\grayG","\\textcolor{##626569}{#1}");w("\\grayH","\\textcolor{##3b3e40}{#1}");w("\\grayI","\\textcolor{##21242c}{#1}");w("\\kaBlue","\\textcolor{##314453}{#1}");w("\\kaGreen","\\textcolor{##71B307}{#1}");var Vp={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class fy{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 dy(hy,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new kh(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 br("EOF",n.loc)),this.pushTokens(a),new br("",ir.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 le("Extra }",i)}else if(i.text==="EOF")throw new le("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 le("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 le("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 le("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 le("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 le("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 le("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 br(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 kh(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)||ia.hasOwnProperty(t)||it.math.hasOwnProperty(t)||it.text.hasOwnProperty(t)||Vp.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:ia.hasOwnProperty(t)&&!ia[t].primitive}}var Ch=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,no=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),iu={"́":{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"}},_h={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Wp=class Gp{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 fy(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 le("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 br("}")),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(Gp.endOfExpression.indexOf(a.text)!==-1||r&&a.text===r||t&&ia[a.text]&&ia[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 le("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 le("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 le("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new le("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new le("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new le("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(no[i.text]){var u=Ch.test(i.text),d=[];for(d.push(new br(no[i.text])),this.consume();;){var c=this.fetch().text;if(!no[c]||Ch.test(c)!==u)break;d.unshift(new br(no[c])),this.consume()}var h=this.subparse(d);u?a={type:"ordgroup",mode:"math",body:h}:n={type:"ordgroup",mode:"math",body:h}}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=ia[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new le("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new le("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new le("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=ia[t];if(o&&o.handler)return o.handler(s,r,n);throw new le("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 le("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 le("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new le("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new le("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 le("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 le("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 le("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!tp(i))throw new le("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:ir.range(n,l),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Vp.hasOwnProperty(a)){if(this.settings.throwOnError)throw new le("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:ir.range(a,t[n+2]),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:ir.range(a,t[n+1]),text:"--"}),r-=1)),(i==="'"||i==="`")&&t[n+1].text===i&&(t.splice(n,2,{type:"textord",mode:"text",loc:ir.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 le(`\\verb assertion failed --
|
|
301
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}_h.hasOwnProperty(r[0])&&!it[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=_h[r[0]]+r.slice(1));var i=uy.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(it[this.mode][r]){this.settings.strict&&this.mode==="math"&&r0.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var o=it[this.mode][r].group,l=ir.range(t),u;if(t7.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&&(ep(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:ir.range(t),text:r};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var h=i[0][c];if(!iu[h])throw new le("Unknown accent ' "+h+"'",t);var m=iu[h][this.mode]||iu[h].text;if(!m)throw new le("Accent "+h+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:ir.range(t),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}};Wp.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var vc=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Wp(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 le("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new br("\\df@tag")])}]}return a},Yp=function(t,r,n){r.textContent="";var a=Tc(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."),Yp=function(){throw new le("KaTeX doesn't work in quirks mode.")});var my=function(t,r){var n=Tc(t,r).toMarkup();return n},py=function(t,r){var n=new nc(r);return vc(t,n)},Xp=function(t,r,n){if(n.throwOnError||!(t instanceof le))throw t;var a=Q.makeSpan(["katex-error"],[new Cr(r)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+n.errorColor),a},Tc=function(t,r){var n=new nc(r);try{var a=vc(t,n);return k7(a,t,n)}catch(i){return Xp(i,t,n)}},gy=function(t,r){var n=new nc(r);try{var a=vc(t,n);return A7(a,t,n)}catch(i){return Xp(i,t,n)}},by="0.16.28",xy={Span:Rs,Anchor:sc,SymbolNode:Cr,SvgNode:Mn,PathNode:ca,LineNode:t0},Nh={version:by,render:Yp,renderToString:my,ParseError:le,SETTINGS_SCHEMA:Ao,__parse:py,__renderToDomTree:Tc,__renderToHTMLTree:gy,__setFontMetrics:Gx,__defineSymbol:p,__defineFunction:pe,__defineMacro:w,__domTree:xy};const Kp=[],yy=!0,Ih=!1,Qp="skip";function Jp(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=vi(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(h,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=Kp,b,x,T;if((!t||i(l,u,d[d.length-1]||void 0))&&(m=Ey(r(l,d)),m[0]===Ih))return m;if("children"in l&&l.children){const E=l;if(E.children&&m[0]!==Qp)for(x=(n?E.children.length:-1)+s,T=d.concat(E);x>-1&&x<E.children.length;){const k=E.children[x];if(b=o(k,x,T)(),b[0]===Ih)return b;x=typeof b[1]=="number"?b[1]:x+s}}return m}}}function Ey(e){return Array.isArray(e)?e:typeof e=="number"?[yy,e]:e==null?Kp:[e]}const vy={},Ty=[];function l0(e){const t=e||vy;return function(r,n){Jp(r,"element",function(a,i){const s=Array.isArray(a.properties.className)?a.properties.className:Ty,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],h=a;if(a.tagName==="code"&&o&&c&&c.type==="element"&&c.tagName==="pre"&&(h=c,c=i[i.length-2],d=!0),!c)return;const m=fx(h,{whitespace:"pre"});let b;try{b=Nh.renderToString(m,{...t,displayMode:d,throwOnError:!0})}catch(T){const E=T,k=E.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...i,a],cause:E,place:a.position,ruleId:k,source:"rehype-katex"});try{b=Nh.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(T)},children:[{type:"text",value:m}]}]}}typeof b=="string"&&(b=ix(b).children);const x=c.children.indexOf(h);return c.children.splice(x,1,...b),Qp})}}const Zp=-1,Tl=0,as=1,qo=2,wc=3,kc=4,Ac=5,Sc=6,e2=7,t2=8,Oh=typeof self=="object"?self:globalThis,wy=(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 Zp:return r(s,a);case as:{const o=r([],a);for(const l of s)o.push(n(l));return o}case qo:{const o=r({},a);for(const[l,u]of s)o[n(l)]=n(u);return o}case wc:return r(new Date(s),a);case kc:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case Ac:{const o=r(new Map,a);for(const[l,u]of s)o.set(n(l),n(u));return o}case Sc:{const o=r(new Set,a);for(const l of s)o.add(n(l));return o}case e2:{const{name:o,message:l}=s;return r(new Oh[o](l),a)}case t2: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 Oh[i](s),a)};return n},Rh=e=>wy(new Map,e)(0),Va="",{toString:ky}={},{keys:Ay}=Object,Pi=e=>{const t=typeof e;if(t!=="object"||!e)return[Tl,t];const r=ky.call(e).slice(8,-1);switch(r){case"Array":return[as,Va];case"Object":return[qo,Va];case"Date":return[wc,Va];case"RegExp":return[kc,Va];case"Map":return[Ac,Va];case"Set":return[Sc,Va];case"DataView":return[as,r]}return r.includes("Array")?[as,r]:r.includes("Error")?[e2,r]:[qo,r]},ao=([e,t])=>e===Tl&&(t==="function"||t==="symbol"),Sy=(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]=Pi(s);switch(o){case Tl:{let d=s;switch(l){case"bigint":o=t2,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return a([Zp],s)}return a([o,d],s)}case as:{if(l){let h=s;return l==="DataView"?h=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(s)),a([l,[...h]],s)}const d=[],c=a([o,d],s);for(const h of s)d.push(i(h));return c}case qo:{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 h of Ay(s))(e||!ao(Pi(s[h])))&&d.push([i(h),i(s[h])]);return c}case wc:return a([o,s.toISOString()],s);case kc:{const{source:d,flags:c}=s;return a([o,{source:d,flags:c}],s)}case Ac:{const d=[],c=a([o,d],s);for(const[h,m]of s)(e||!(ao(Pi(h))||ao(Pi(m))))&&d.push([i(h),i(m)]);return c}case Sc:{const d=[],c=a([o,d],s);for(const h of s)(e||!ao(Pi(h)))&&d.push(i(h));return c}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return i},Dh=(e,{json:t,lossy:r}={})=>{const n=[];return Sy(!(t||r),!!t,new Map,n)(e),n},Ia=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Rh(Dh(e,t)):structuredClone(e):(e,t)=>Rh(Dh(e,t));function Cy(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=Lh(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=Lh(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 Lh(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
|
|
302
|
-
`,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const r2={}.hasOwnProperty,_y=Object.prototype;function Ny(e,t){const r=t||{};return Cc({file:r.file||void 0,location:!1,schema:r.space==="svg"?wi:pl,verbose:r.verbose||!1},e)}function Cc(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},Co(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:n2(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=Cy(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"},Co(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},Co(e,n,r),r}default:return r=Iy(e,t),r}}function n2(e,t){let r=-1;const n=[];for(;++r<t.length;){const a=Cc(e,t[r]);n.push(a)}return n}function Iy(e,t){const r=e.schema;e.schema=t.namespaceURI===cn.svg?wi:pl;let n=-1;const a={};for(;++n<t.attrs.length;){const o=t.attrs[n],l=(o.prefix?o.prefix+":":"")+o.name;r2.call(_y,l)||(a[l]=o.value)}const s=(e.schema.space==="svg"?Wm:Vm)(t.tagName,a,n2(e,t.childNodes));if(Co(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&ti(l.startTag),d=l&&l.endTag&&ti(l.endTag),c=Cc(e,o.content);u&&d&&e.file&&(c.position={start:u.end,end:d.start}),s.content=c}return e.schema=r,s}function Co(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=Oy(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function Oy(e,t,r){const n=ti(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)r2.call(r.attrs,s)&&(i[tc(e.schema,s).property]=ti(r.attrs[s]));r.startTag;const o=ti(r.startTag),l=r.endTag?ti(r.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=i,t.data={position:u}}}return n}function ti(e){const t=Mh({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Mh({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Mh(e){return e.line&&e.column?e:void 0}class Ls{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Ls.prototype.property={};Ls.prototype.normal={};Ls.prototype.space=null;function a2(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 Ls(r,n,t)}function u0(e){return e.toLowerCase()}class Nr{constructor(t,r){this.property=t,this.attribute=r}}Nr.prototype.space=null;Nr.prototype.boolean=!1;Nr.prototype.booleanish=!1;Nr.prototype.overloadedBoolean=!1;Nr.prototype.number=!1;Nr.prototype.commaSeparated=!1;Nr.prototype.spaceSeparated=!1;Nr.prototype.commaOrSpaceSeparated=!1;Nr.prototype.mustUseProperty=!1;Nr.prototype.defined=!1;let Ry=0;const De=Ha(),Et=Ha(),i2=Ha(),de=Ha(),at=Ha(),oi=Ha(),fr=Ha();function Ha(){return 2**++Ry}const c0=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:Et,commaOrSpaceSeparated:fr,commaSeparated:oi,number:de,overloadedBoolean:i2,spaceSeparated:at},Symbol.toStringTag,{value:"Module"})),su=Object.keys(c0);class _c extends Nr{constructor(t,r,n,a){let i=-1;if(super(t,r),Ph(this,"space",a),typeof n=="number")for(;++i<su.length;){const s=su[i];Ph(this,su[i],(n&c0[s])===c0[s])}}}_c.prototype.defined=!0;function Ph(e,t,r){r&&(e[t]=r)}const Dy={}.hasOwnProperty;function Si(e){const t={},r={};let n;for(n in e.properties)if(Dy.call(e.properties,n)){const a=e.properties[n],i=new _c(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[u0(n)]=n,r[u0(i.attribute)]=n}return new Ls(t,r,e.space)}const s2=Si({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}}),o2=Si({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function l2(e,t){return t in e?e[t]:t}function u2(e,t){return l2(e,t.toLowerCase())}const c2=Si({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:u2,properties:{xmlns:null,xmlnsXLink:null}}),d2=Si({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Et,ariaAutoComplete:null,ariaBusy:Et,ariaChecked:Et,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:at,ariaCurrent:null,ariaDescribedBy:at,ariaDetails:null,ariaDisabled:Et,ariaDropEffect:at,ariaErrorMessage:null,ariaExpanded:Et,ariaFlowTo:at,ariaGrabbed:Et,ariaHasPopup:null,ariaHidden:Et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:at,ariaLevel:de,ariaLive:null,ariaModal:Et,ariaMultiLine:Et,ariaMultiSelectable:Et,ariaOrientation:null,ariaOwns:at,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:Et,ariaReadOnly:Et,ariaRelevant:null,ariaRequired:Et,ariaRoleDescription:at,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:Et,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null}}),Ly=Si({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:u2,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:oi,acceptCharset:at,accessKey:at,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:at,autoFocus:De,autoPlay:De,blocking:at,capture:null,charSet:null,checked:De,cite:null,className:at,cols:de,colSpan:null,content:null,contentEditable:Et,controls:De,controlsList:at,coords:de|oi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:i2,draggable:Et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:at,height:de,hidden:De,high:de,href:null,hrefLang:null,htmlFor:at,httpEquiv:at,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:at,itemRef:at,itemScope:De,itemType:at,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,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:de,pattern:null,ping:at,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:at,required:De,reversed:De,rows:de,rowSpan:de,sandbox:at,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:Et,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:De,useMap:null,value:Et,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:at,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:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:Et,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:De,disableRemotePlayback:De,prefix:null,property:null,results:de,security:null,unselectable:null}}),My=Si({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:l2,properties:{about:fr,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:at,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:De,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:oi,g2:oi,glyphName:oi,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:fr,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:at,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fr,rev:fr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fr,requiredFeatures:fr,requiredFonts:fr,requiredFormats:fr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant: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:fr,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:fr,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:fr,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}}),Py=/^data[-\w.:]+$/i,Bh=/-[a-z]/g,By=/[A-Z]/g;function Fy(e,t){const r=u0(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"&&Py.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Bh,Hy);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Bh.test(i)){let s=i.replace(By,zy);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=_c}return new a(n,t)}function zy(e){return"-"+e.toLowerCase()}function Hy(e){return e.charAt(1).toUpperCase()}const Uy=a2([o2,s2,c2,d2,Ly],"html"),h2=a2([o2,s2,c2,d2,My],"svg"),Fh={}.hasOwnProperty;function f2(e,t){const r=t||{};function n(a,...i){let s=n.invalid;const o=n.handlers;if(a&&Fh.call(a,e)){const l=String(a[e]);s=Fh.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 jy={},$y={}.hasOwnProperty,m2=f2("type",{handlers:{root:Vy,element:Ky,text:Yy,comment:Xy,doctype:Gy}});function qy(e,t){const n=(t||jy).space;return m2(e,n==="svg"?h2:Uy)}function Vy(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=Nc(e.children,r,t),Ci(e,r),r}function Wy(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=Nc(e.children,r,t),Ci(e,r),r}function Gy(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ci(e,t),t}function Yy(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ci(e,t),t}function Xy(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ci(e,t),t}function Ky(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=h2);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&$y.call(e.properties,i)){const l=Qy(n,i,e.properties[i]);l&&a.push(l)}}const s=n.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:cn[s],childNodes:[],parentNode:null};return o.childNodes=Nc(e.children,o,n),Ci(e,o),e.tagName==="template"&&e.content&&(o.content=Wy(e.content,n)),o}function Qy(e,t,r){const n=Fy(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?jm(r):$m(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=cn[n.space]}return a}function Nc(e,t,r){let n=-1;const a=[];if(e)for(;++n<e.length;){const i=m2(e[n],r);i.parentNode=t,a.push(i)}return a}function Ci(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 Jy=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Zy=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]),ut="�";var S;(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"})(S||(S={}));const tr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function p2(e){return e>=55296&&e<=57343}function eE(e){return e>=56320&&e<=57343}function tE(e,t){return(e-55296)*1024+9216+t}function g2(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function b2(e){return e>=64976&&e<=65007||Zy.has(e)}var Z;(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"})(Z||(Z={}));const rE=65536;class nE{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=rE,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(eE(r))return this.pos++,this._addGap(),tE(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,S.EOF;return this._err(Z.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,S.EOF;const n=this.html.charCodeAt(r);return n===S.CARRIAGE_RETURN?S.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,S.EOF;let t=this.html.charCodeAt(this.pos);return t===S.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,S.LINE_FEED):t===S.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,p2(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===S.LINE_FEED||t===S.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){g2(t)?this._err(Z.controlCharacterInInputStream):b2(t)&&this._err(Z.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var $e;(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"})($e||($e={}));function x2(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 aE=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))),iE=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 sE(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=iE.get(e))!==null&&t!==void 0?t:e}var Dt;(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"})(Dt||(Dt={}));const oE=32;var sa;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(sa||(sa={}));function d0(e){return e>=Dt.ZERO&&e<=Dt.NINE}function lE(e){return e>=Dt.UPPER_A&&e<=Dt.UPPER_F||e>=Dt.LOWER_A&&e<=Dt.LOWER_F}function uE(e){return e>=Dt.UPPER_A&&e<=Dt.UPPER_Z||e>=Dt.LOWER_A&&e<=Dt.LOWER_Z||d0(e)}function cE(e){return e===Dt.EQUALS||uE(e)}var Ot;(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"})(Ot||(Ot={}));var Nn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Nn||(Nn={}));class dE{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Ot.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Nn.Strict}startEntity(t){this.decodeMode=t,this.state=Ot.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Ot.EntityStart:return t.charCodeAt(r)===Dt.NUM?(this.state=Ot.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Ot.NamedEntity,this.stateNamedEntity(t,r));case Ot.NumericStart:return this.stateNumericStart(t,r);case Ot.NumericDecimal:return this.stateNumericDecimal(t,r);case Ot.NumericHex:return this.stateNumericHex(t,r);case Ot.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|oE)===Dt.LOWER_X?(this.state=Ot.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Ot.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(d0(a)||lE(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(d0(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===Dt.SEMI)this.consumed+=1;else if(this.decodeMode===Nn.Strict)return 0;return this.emitCodePoint(sE(this.result),this.consumed),this.errors&&(t!==Dt.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&sa.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=hE(n,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Nn.Attribute&&(i===0||cE(s))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&sa.VALUE_LENGTH)>>14,i!==0){if(s===Dt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Nn.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]&sa.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]&~sa.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case Ot.NamedEntity:return this.result!==0&&(this.decodeMode!==Nn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ot.NumericDecimal:return this.emitNumericEntity(0,2);case Ot.NumericHex:return this.emitNumericEntity(0,3);case Ot.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ot.EntityStart:return 0}}}function hE(e,t,r,n){const a=(t&sa.BRANCH_LENGTH)>>7,i=t&sa.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 Sa;(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"})(Sa||(Sa={}));var Tr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Tr||(Tr={}));var G;(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"})(G||(G={}));var f;(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"})(f||(f={}));const fE=new Map([[G.A,f.A],[G.ADDRESS,f.ADDRESS],[G.ANNOTATION_XML,f.ANNOTATION_XML],[G.APPLET,f.APPLET],[G.AREA,f.AREA],[G.ARTICLE,f.ARTICLE],[G.ASIDE,f.ASIDE],[G.B,f.B],[G.BASE,f.BASE],[G.BASEFONT,f.BASEFONT],[G.BGSOUND,f.BGSOUND],[G.BIG,f.BIG],[G.BLOCKQUOTE,f.BLOCKQUOTE],[G.BODY,f.BODY],[G.BR,f.BR],[G.BUTTON,f.BUTTON],[G.CAPTION,f.CAPTION],[G.CENTER,f.CENTER],[G.CODE,f.CODE],[G.COL,f.COL],[G.COLGROUP,f.COLGROUP],[G.DD,f.DD],[G.DESC,f.DESC],[G.DETAILS,f.DETAILS],[G.DIALOG,f.DIALOG],[G.DIR,f.DIR],[G.DIV,f.DIV],[G.DL,f.DL],[G.DT,f.DT],[G.EM,f.EM],[G.EMBED,f.EMBED],[G.FIELDSET,f.FIELDSET],[G.FIGCAPTION,f.FIGCAPTION],[G.FIGURE,f.FIGURE],[G.FONT,f.FONT],[G.FOOTER,f.FOOTER],[G.FOREIGN_OBJECT,f.FOREIGN_OBJECT],[G.FORM,f.FORM],[G.FRAME,f.FRAME],[G.FRAMESET,f.FRAMESET],[G.H1,f.H1],[G.H2,f.H2],[G.H3,f.H3],[G.H4,f.H4],[G.H5,f.H5],[G.H6,f.H6],[G.HEAD,f.HEAD],[G.HEADER,f.HEADER],[G.HGROUP,f.HGROUP],[G.HR,f.HR],[G.HTML,f.HTML],[G.I,f.I],[G.IMG,f.IMG],[G.IMAGE,f.IMAGE],[G.INPUT,f.INPUT],[G.IFRAME,f.IFRAME],[G.KEYGEN,f.KEYGEN],[G.LABEL,f.LABEL],[G.LI,f.LI],[G.LINK,f.LINK],[G.LISTING,f.LISTING],[G.MAIN,f.MAIN],[G.MALIGNMARK,f.MALIGNMARK],[G.MARQUEE,f.MARQUEE],[G.MATH,f.MATH],[G.MENU,f.MENU],[G.META,f.META],[G.MGLYPH,f.MGLYPH],[G.MI,f.MI],[G.MO,f.MO],[G.MN,f.MN],[G.MS,f.MS],[G.MTEXT,f.MTEXT],[G.NAV,f.NAV],[G.NOBR,f.NOBR],[G.NOFRAMES,f.NOFRAMES],[G.NOEMBED,f.NOEMBED],[G.NOSCRIPT,f.NOSCRIPT],[G.OBJECT,f.OBJECT],[G.OL,f.OL],[G.OPTGROUP,f.OPTGROUP],[G.OPTION,f.OPTION],[G.P,f.P],[G.PARAM,f.PARAM],[G.PLAINTEXT,f.PLAINTEXT],[G.PRE,f.PRE],[G.RB,f.RB],[G.RP,f.RP],[G.RT,f.RT],[G.RTC,f.RTC],[G.RUBY,f.RUBY],[G.S,f.S],[G.SCRIPT,f.SCRIPT],[G.SEARCH,f.SEARCH],[G.SECTION,f.SECTION],[G.SELECT,f.SELECT],[G.SOURCE,f.SOURCE],[G.SMALL,f.SMALL],[G.SPAN,f.SPAN],[G.STRIKE,f.STRIKE],[G.STRONG,f.STRONG],[G.STYLE,f.STYLE],[G.SUB,f.SUB],[G.SUMMARY,f.SUMMARY],[G.SUP,f.SUP],[G.TABLE,f.TABLE],[G.TBODY,f.TBODY],[G.TEMPLATE,f.TEMPLATE],[G.TEXTAREA,f.TEXTAREA],[G.TFOOT,f.TFOOT],[G.TD,f.TD],[G.TH,f.TH],[G.THEAD,f.THEAD],[G.TITLE,f.TITLE],[G.TR,f.TR],[G.TRACK,f.TRACK],[G.TT,f.TT],[G.U,f.U],[G.UL,f.UL],[G.SVG,f.SVG],[G.VAR,f.VAR],[G.WBR,f.WBR],[G.XMP,f.XMP]]);function _i(e){var t;return(t=fE.get(e))!==null&&t!==void 0?t:f.UNKNOWN}const se=f,mE={[ie.HTML]:new Set([se.ADDRESS,se.APPLET,se.AREA,se.ARTICLE,se.ASIDE,se.BASE,se.BASEFONT,se.BGSOUND,se.BLOCKQUOTE,se.BODY,se.BR,se.BUTTON,se.CAPTION,se.CENTER,se.COL,se.COLGROUP,se.DD,se.DETAILS,se.DIR,se.DIV,se.DL,se.DT,se.EMBED,se.FIELDSET,se.FIGCAPTION,se.FIGURE,se.FOOTER,se.FORM,se.FRAME,se.FRAMESET,se.H1,se.H2,se.H3,se.H4,se.H5,se.H6,se.HEAD,se.HEADER,se.HGROUP,se.HR,se.HTML,se.IFRAME,se.IMG,se.INPUT,se.LI,se.LINK,se.LISTING,se.MAIN,se.MARQUEE,se.MENU,se.META,se.NAV,se.NOEMBED,se.NOFRAMES,se.NOSCRIPT,se.OBJECT,se.OL,se.P,se.PARAM,se.PLAINTEXT,se.PRE,se.SCRIPT,se.SECTION,se.SELECT,se.SOURCE,se.STYLE,se.SUMMARY,se.TABLE,se.TBODY,se.TD,se.TEMPLATE,se.TEXTAREA,se.TFOOT,se.TH,se.THEAD,se.TITLE,se.TR,se.TRACK,se.UL,se.WBR,se.XMP]),[ie.MATHML]:new Set([se.MI,se.MO,se.MN,se.MS,se.MTEXT,se.ANNOTATION_XML]),[ie.SVG]:new Set([se.TITLE,se.FOREIGN_OBJECT,se.DESC]),[ie.XLINK]:new Set,[ie.XML]:new Set,[ie.XMLNS]:new Set},h0=new Set([se.H1,se.H2,se.H3,se.H4,se.H5,se.H6]);G.STYLE,G.SCRIPT,G.XMP,G.IFRAME,G.NOEMBED,G.NOFRAMES,G.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 bt={DATA:I.DATA,RCDATA:I.RCDATA,RAWTEXT:I.RAWTEXT,SCRIPT_DATA:I.SCRIPT_DATA,PLAINTEXT:I.PLAINTEXT,CDATA_SECTION:I.CDATA_SECTION};function pE(e){return e>=S.DIGIT_0&&e<=S.DIGIT_9}function Ji(e){return e>=S.LATIN_CAPITAL_A&&e<=S.LATIN_CAPITAL_Z}function gE(e){return e>=S.LATIN_SMALL_A&&e<=S.LATIN_SMALL_Z}function Jn(e){return gE(e)||Ji(e)}function zh(e){return Jn(e)||pE(e)}function io(e){return e+32}function y2(e){return e===S.SPACE||e===S.LINE_FEED||e===S.TABULATION||e===S.FORM_FEED}function Hh(e){return y2(e)||e===S.SOLIDUS||e===S.GREATER_THAN_SIGN}function bE(e){return e===S.NULL?Z.nullCharacterReference:e>1114111?Z.characterReferenceOutsideUnicodeRange:p2(e)?Z.surrogateCharacterReference:b2(e)?Z.noncharacterCharacterReference:g2(e)||e===S.CARRIAGE_RETURN?Z.controlCharacterReference:null}class xE{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 nE(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new dE(aE,(n,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Z.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(Z.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const a=bE(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:$e.START_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:$e.END_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:$e.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:$e.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(x2(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(Z.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=_i(t.tagName),t.type===$e.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Z.endTagWithAttributes),t.selfClosing&&this._err(Z.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 $e.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case $e.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case $e.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:$e.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=y2(t)?$e.WHITESPACE_CHARACTER:t===S.NULL?$e.NULL_CHARACTER:$e.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken($e.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=I.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Nn.Attribute:Nn.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 S.LESS_THAN_SIGN:{this.state=I.TAG_OPEN;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this._emitCodePoint(t);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case S.AMPERSAND:{this._startCharacterReference();break}case S.LESS_THAN_SIGN:{this.state=I.RCDATA_LESS_THAN_SIGN;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(ut);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case S.LESS_THAN_SIGN:{this.state=I.RAWTEXT_LESS_THAN_SIGN;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(ut);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case S.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_LESS_THAN_SIGN;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(ut);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case S.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(ut);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Jn(t))this._createStartTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case S.EXCLAMATION_MARK:{this.state=I.MARKUP_DECLARATION_OPEN;break}case S.SOLIDUS:{this.state=I.END_TAG_OPEN;break}case S.QUESTION_MARK:{this._err(Z.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t);break}case S.EOF:{this._err(Z.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Z.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=I.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Jn(t))this._createEndTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case S.GREATER_THAN_SIGN:{this._err(Z.missingEndTagName),this.state=I.DATA;break}case S.EOF:{this._err(Z.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Z.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=I.BEFORE_ATTRIBUTE_NAME;break}case S.SOLIDUS:{this.state=I.SELF_CLOSING_START_TAG;break}case S.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentTagToken();break}case S.NULL:{this._err(Z.unexpectedNullCharacter),r.tagName+=ut;break}case S.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(Ji(t)?io(t):t)}}_stateRcdataLessThanSign(t){t===S.SOLIDUS?this.state=I.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Jn(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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=I.BEFORE_ATTRIBUTE_NAME,!1;case S.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=I.SELF_CLOSING_START_TAG,!1;case S.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===S.SOLIDUS?this.state=I.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Jn(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 S.SOLIDUS:{this.state=I.SCRIPT_DATA_END_TAG_OPEN;break}case S.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){Jn(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===S.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===S.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 S.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(ut);break}case S.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case S.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(ut);break}case S.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case S.HYPHEN_MINUS:{this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.GREATER_THAN_SIGN:{this.state=I.SCRIPT_DATA,this._emitChars(">");break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(ut);break}case S.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===S.SOLIDUS?this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Jn(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){Jn(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(tr.SCRIPT,!1)&&Hh(this.preprocessor.peek(tr.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<tr.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 S.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(ut);break}case S.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case S.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ut);break}case S.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case S.HYPHEN_MINUS:{this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.GREATER_THAN_SIGN:{this.state=I.SCRIPT_DATA,this._emitChars(">");break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ut);break}case S.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===S.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(tr.SCRIPT,!1)&&Hh(this.preprocessor.peek(tr.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<tr.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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.SOLIDUS:case S.GREATER_THAN_SIGN:case S.EOF:{this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case S.EQUALS_SIGN:{this._err(Z.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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:case S.SOLIDUS:case S.GREATER_THAN_SIGN:case S.EOF:{this._leaveAttrName(),this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case S.EQUALS_SIGN:{this._leaveAttrName(),this.state=I.BEFORE_ATTRIBUTE_VALUE;break}case S.QUOTATION_MARK:case S.APOSTROPHE:case S.LESS_THAN_SIGN:{this._err(Z.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.name+=ut;break}default:this.currentAttr.name+=String.fromCodePoint(Ji(t)?io(t):t)}}_stateAfterAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.SOLIDUS:{this.state=I.SELF_CLOSING_START_TAG;break}case S.EQUALS_SIGN:{this.state=I.BEFORE_ATTRIBUTE_VALUE;break}case S.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{this.state=I.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this.state=I.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(Z.missingAttributeValue),this.state=I.DATA,this.emitCurrentTagToken();break}default:this.state=I.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case S.QUOTATION_MARK:{this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=ut;break}case S.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case S.APOSTROPHE:{this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=ut;break}case S.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break}case S.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=ut;break}case S.QUOTATION_MARK:case S.APOSTROPHE:case S.LESS_THAN_SIGN:case S.EQUALS_SIGN:case S.GRAVE_ACCENT:{this._err(Z.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case S.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break}case S.SOLIDUS:{this._leaveAttrValue(),this.state=I.SELF_CLOSING_START_TAG;break}case S.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._err(Z.missingWhitespaceBetweenAttributes),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case S.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=I.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._err(Z.unexpectedSolidusInTag),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentComment(r);break}case S.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case S.NULL:{this._err(Z.unexpectedNullCharacter),r.data+=ut;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(tr.DASH_DASH,!0)?(this._createCommentToken(tr.DASH_DASH.length+1),this.state=I.COMMENT_START):this._consumeSequenceIfMatch(tr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(tr.DOCTYPE.length+1),this.state=I.DOCTYPE):this._consumeSequenceIfMatch(tr.CDATA_START,!0)?this.inForeignNode?this.state=I.CDATA_SECTION:(this._err(Z.cdataInHtmlContent),this._createCommentToken(tr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=I.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Z.incorrectlyOpenedComment),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case S.HYPHEN_MINUS:{this.state=I.COMMENT_START_DASH;break}case S.GREATER_THAN_SIGN:{this._err(Z.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 S.HYPHEN_MINUS:{this.state=I.COMMENT_END;break}case S.GREATER_THAN_SIGN:{this._err(Z.abruptClosingOfEmptyComment),this.state=I.DATA,this.emitCurrentComment(r);break}case S.EOF:{this._err(Z.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 S.HYPHEN_MINUS:{this.state=I.COMMENT_END_DASH;break}case S.LESS_THAN_SIGN:{r.data+="<",this.state=I.COMMENT_LESS_THAN_SIGN;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),r.data+=ut;break}case S.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case S.EXCLAMATION_MARK:{r.data+="!",this.state=I.COMMENT_LESS_THAN_SIGN_BANG;break}case S.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=I.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===S.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=I.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===S.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=I.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==S.GREATER_THAN_SIGN&&t!==S.EOF&&this._err(Z.nestedComment),this.state=I.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=I.COMMENT_END;break}case S.EOF:{this._err(Z.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 S.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentComment(r);break}case S.EXCLAMATION_MARK:{this.state=I.COMMENT_END_BANG;break}case S.HYPHEN_MINUS:{r.data+="-";break}case S.EOF:{this._err(Z.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 S.HYPHEN_MINUS:{r.data+="--!",this.state=I.COMMENT_END_DASH;break}case S.GREATER_THAN_SIGN:{this._err(Z.incorrectlyClosedComment),this.state=I.DATA,this.emitCurrentComment(r);break}case S.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=I.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case S.EOF:{this._err(Z.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Z.missingWhitespaceBeforeDoctypeName),this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ji(t))this._createDoctypeToken(String.fromCharCode(io(t))),this.state=I.DOCTYPE_NAME;else switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.NULL:{this._err(Z.unexpectedNullCharacter),this._createDoctypeToken(ut),this.state=I.DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case S.EOF:{this._err(Z.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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=I.AFTER_DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(r);break}case S.NULL:{this._err(Z.unexpectedNullCharacter),r.name+=ut;break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(Ji(t)?io(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(tr.PUBLIC,!1)?this.state=I.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(tr.SYSTEM,!1)?this.state=I.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Z.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.QUOTATION_MARK:{this._err(Z.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(Z.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(Z.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{r.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{r.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(Z.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case S.QUOTATION_MARK:{this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),r.publicId+=ut;break}case S.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case S.EOF:{this._err(Z.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 S.APOSTROPHE:{this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),r.publicId+=ut;break}case S.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case S.EOF:{this._err(Z.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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case S.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(r);break}case S.QUOTATION_MARK:{this._err(Z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(Z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=I.DATA;break}case S.QUOTATION_MARK:{r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.QUOTATION_MARK:{this._err(Z.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(Z.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{r.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case S.QUOTATION_MARK:{this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),r.systemId+=ut;break}case S.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case S.EOF:{this._err(Z.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 S.APOSTROPHE:{this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.NULL:{this._err(Z.unexpectedNullCharacter),r.systemId+=ut;break}case S.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=I.DATA;break}case S.EOF:{this._err(Z.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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=I.DATA;break}case S.EOF:{this._err(Z.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Z.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=I.DATA;break}case S.NULL:{this._err(Z.unexpectedNullCharacter);break}case S.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case S.RIGHT_SQUARE_BRACKET:{this.state=I.CDATA_SECTION_BRACKET;break}case S.EOF:{this._err(Z.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===S.RIGHT_SQUARE_BRACKET?this.state=I.CDATA_SECTION_END:(this._emitChars("]"),this.state=I.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case S.GREATER_THAN_SIGN:{this.state=I.DATA;break}case S.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(S.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zh(this.preprocessor.peek(1))?I.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zh(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===S.SEMICOLON&&this._err(Z.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const E2=new Set([f.DD,f.DT,f.LI,f.OPTGROUP,f.OPTION,f.P,f.RB,f.RP,f.RT,f.RTC]),Uh=new Set([...E2,f.CAPTION,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]),Vo=new Set([f.APPLET,f.CAPTION,f.HTML,f.MARQUEE,f.OBJECT,f.TABLE,f.TD,f.TEMPLATE,f.TH]),yE=new Set([...Vo,f.OL,f.UL]),EE=new Set([...Vo,f.BUTTON]),jh=new Set([f.ANNOTATION_XML,f.MI,f.MN,f.MO,f.MS,f.MTEXT]),$h=new Set([f.DESC,f.FOREIGN_OBJECT,f.TITLE]),vE=new Set([f.TR,f.TEMPLATE,f.HTML]),TE=new Set([f.TBODY,f.TFOOT,f.THEAD,f.TEMPLATE,f.HTML]),wE=new Set([f.TABLE,f.TEMPLATE,f.HTML]),kE=new Set([f.TD,f.TH]);class AE{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=f.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===f.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(h0,ie.HTML)}popUntilTableCellPopped(){this.popUntilPopped(kE,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(wE,ie.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TE,ie.HTML)}clearBackToTableRowContext(){this.clearBackTo(vE,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]===f.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]===f.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($h.has(a))return!1;break}case ie.MATHML:{if(jh.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Vo)}hasInListItemScope(t){return this.hasInDynamicScope(t,yE)}hasInButtonScope(t){return this.hasInDynamicScope(t,EE)}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(h0.has(r))return!0;if(Vo.has(r))return!1;break}case ie.SVG:{if($h.has(r))return!1;break}case ie.MATHML:{if(jh.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 f.TABLE:case f.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 f.TBODY:case f.THEAD:case f.TFOOT:return!0;case f.TABLE:case f.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 f.OPTION:case f.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&E2.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Uh.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Uh.has(this.currentTagId);)this.pop()}}const ou=3;var ln;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ln||(ln={}));const qh={type:ln.Marker};class SE{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===ln.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<ou)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<ou)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>=ou&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(qh)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:ln.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ln.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(qh);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===ln.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===ln.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===ln.Element&&r.element===t)}}const Zn={createDocument(){return{nodeName:"#document",mode:Tr.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}}},v2="html",CE="about:legacy-compat",_E="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",T2=["+//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//"],NE=[...T2,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],IE=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),w2=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],OE=[...w2,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Vh(e,t){return t.some(r=>e.startsWith(r))}function RE(e){return e.name===v2&&e.publicId===null&&(e.systemId===null||e.systemId===CE)}function DE(e){if(e.name!==v2)return Tr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===_E)return Tr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),IE.has(r))return Tr.QUIRKS;let n=t===null?NE:T2;if(Vh(r,n))return Tr.QUIRKS;if(n=t===null?w2:OE,Vh(r,n))return Tr.LIMITED_QUIRKS}return Tr.NO_QUIRKS}const Wh={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},LE="definitionurl",ME="definitionURL",PE=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])),BE=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}]]),FE=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])),zE=new Set([f.B,f.BIG,f.BLOCKQUOTE,f.BODY,f.BR,f.CENTER,f.CODE,f.DD,f.DIV,f.DL,f.DT,f.EM,f.EMBED,f.H1,f.H2,f.H3,f.H4,f.H5,f.H6,f.HEAD,f.HR,f.I,f.IMG,f.LI,f.LISTING,f.MENU,f.META,f.NOBR,f.OL,f.P,f.PRE,f.RUBY,f.S,f.SMALL,f.SPAN,f.STRONG,f.STRIKE,f.SUB,f.SUP,f.TABLE,f.TT,f.U,f.UL,f.VAR]);function HE(e){const t=e.tagID;return t===f.FONT&&e.attrs.some(({name:n})=>n===Sa.COLOR||n===Sa.SIZE||n===Sa.FACE)||zE.has(t)}function k2(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===LE){e.attrs[t].name=ME;break}}function A2(e){for(let t=0;t<e.attrs.length;t++){const r=PE.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Ic(e){for(let t=0;t<e.attrs.length;t++){const r=BE.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 UE(e){const t=FE.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=_i(e.tagName))}function jE(e,t){return t===ie.MATHML&&(e===f.MI||e===f.MO||e===f.MN||e===f.MS||e===f.MTEXT)}function $E(e,t,r){if(t===ie.MATHML&&e===f.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===Sa.ENCODING){const a=r[n].value.toLowerCase();return a===Wh.TEXT_HTML||a===Wh.APPLICATION_XML}}return t===ie.SVG&&(e===f.FOREIGN_OBJECT||e===f.DESC||e===f.TITLE)}function qE(e,t,r,n){return(!n||n===ie.HTML)&&$E(e,t,r)||(!n||n===ie.MATHML)&&jE(e,t)}const VE="hidden",WE=8,GE=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 YE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},S2=new Set([f.TABLE,f.TBODY,f.TFOOT,f.THEAD,f.TR]),Gh={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Zn,onParseError:null};class Yh{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={...Gh,...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 xE(this.options,this),this.activeFormattingElements=new SE(this.treeAdapter),this.fragmentContextID=n?_i(this.treeAdapter.getTagName(n)):f.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new AE(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={...Gh,...r};t??(t=n.treeAdapter.createElement(G.TEMPLATE,ie.HTML,[]));const a=n.treeAdapter.createElement("documentmock",ie.HTML,[]),i=new this(n,a,t);return i.fragmentContextID===f.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:YE,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=bt.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)===G.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 f.TITLE:case f.TEXTAREA:{this.tokenizer.state=bt.RCDATA;break}case f.STYLE:case f.XMP:case f.IFRAME:case f.NOEMBED:case f.NOFRAMES:case f.NOSCRIPT:{this.tokenizer.state=bt.RAWTEXT;break}case f.SCRIPT:{this.tokenizer.state=bt.SCRIPT_DATA;break}case f.PLAINTEXT:{this.tokenizer.state=bt.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(G.HTML,ie.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,f.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===$e.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===f.SVG&&this.treeAdapter.getTagName(r)===G.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===ie.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===f.MGLYPH||t.tagID===f.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,ie.HTML)}_processToken(t){switch(t.type){case $e.CHARACTER:{this.onCharacter(t);break}case $e.NULL_CHARACTER:{this.onNullCharacter(t);break}case $e.COMMENT:{this.onComment(t);break}case $e.DOCTYPE:{this.onDoctype(t);break}case $e.START_TAG:{this._processStartTag(t);break}case $e.END_TAG:{this.onEndTag(t);break}case $e.EOF:{this.onEof(t);break}case $e.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const a=this.treeAdapter.getNamespaceURI(r),i=this.treeAdapter.getAttrList(r);return qE(t,a,i,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(a=>a.type===ln.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(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case f.TR:{this.insertionMode=M.IN_ROW;return}case f.TBODY:case f.THEAD:case f.TFOOT:{this.insertionMode=M.IN_TABLE_BODY;return}case f.CAPTION:{this.insertionMode=M.IN_CAPTION;return}case f.COLGROUP:{this.insertionMode=M.IN_COLUMN_GROUP;return}case f.TABLE:{this.insertionMode=M.IN_TABLE;return}case f.BODY:{this.insertionMode=M.IN_BODY;return}case f.FRAMESET:{this.insertionMode=M.IN_FRAMESET;return}case f.SELECT:{this._resetInsertionModeForSelect(t);return}case f.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case f.HTML:{this.insertionMode=this.headElement?M.AFTER_HEAD:M.BEFORE_HEAD;return}case f.TD:case f.TH:{if(t>0){this.insertionMode=M.IN_CELL;return}break}case f.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===f.TEMPLATE)break;if(n===f.TABLE){this.insertionMode=M.IN_SELECT_IN_TABLE;return}}this.insertionMode=M.IN_SELECT}_isElementCausesFosterParenting(t){return S2.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 f.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===ie.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case f.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 mE[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){kv(this,t);return}switch(this.insertionMode){case M.INITIAL:{Bi(this,t);break}case M.BEFORE_HTML:{is(this,t);break}case M.BEFORE_HEAD:{ss(this,t);break}case M.IN_HEAD:{os(this,t);break}case M.IN_HEAD_NO_SCRIPT:{ls(this,t);break}case M.AFTER_HEAD:{us(this,t);break}case M.IN_BODY:case M.IN_CAPTION:case M.IN_CELL:case M.IN_TEMPLATE:{_2(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:{lu(this,t);break}case M.IN_TABLE_TEXT:{L2(this,t);break}case M.IN_COLUMN_GROUP:{Wo(this,t);break}case M.AFTER_BODY:{Go(this,t);break}case M.AFTER_AFTER_BODY:{_o(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){wv(this,t);return}switch(this.insertionMode){case M.INITIAL:{Bi(this,t);break}case M.BEFORE_HTML:{is(this,t);break}case M.BEFORE_HEAD:{ss(this,t);break}case M.IN_HEAD:{os(this,t);break}case M.IN_HEAD_NO_SCRIPT:{ls(this,t);break}case M.AFTER_HEAD:{us(this,t);break}case M.TEXT:{this._insertCharacters(t);break}case M.IN_TABLE:case M.IN_TABLE_BODY:case M.IN_ROW:{lu(this,t);break}case M.IN_COLUMN_GROUP:{Wo(this,t);break}case M.AFTER_BODY:{Go(this,t);break}case M.AFTER_AFTER_BODY:{_o(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){f0(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:{f0(this,t);break}case M.IN_TABLE_TEXT:{Fi(this,t);break}case M.AFTER_BODY:{t9(this,t);break}case M.AFTER_AFTER_BODY:case M.AFTER_AFTER_FRAMESET:{r9(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case M.INITIAL:{n9(this,t);break}case M.BEFORE_HEAD:case M.IN_HEAD:case M.IN_HEAD_NO_SCRIPT:case M.AFTER_HEAD:{this._err(t,Z.misplacedDoctype);break}case M.IN_TABLE_TEXT:{Fi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Z.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Av(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case M.INITIAL:{Bi(this,t);break}case M.BEFORE_HTML:{a9(this,t);break}case M.BEFORE_HEAD:{s9(this,t);break}case M.IN_HEAD:{qr(this,t);break}case M.IN_HEAD_NO_SCRIPT:{u9(this,t);break}case M.AFTER_HEAD:{d9(this,t);break}case M.IN_BODY:{jt(this,t);break}case M.IN_TABLE:{pi(this,t);break}case M.IN_TABLE_TEXT:{Fi(this,t);break}case M.IN_CAPTION:{ov(this,t);break}case M.IN_COLUMN_GROUP:{Dc(this,t);break}case M.IN_TABLE_BODY:{Al(this,t);break}case M.IN_ROW:{Sl(this,t);break}case M.IN_CELL:{cv(this,t);break}case M.IN_SELECT:{B2(this,t);break}case M.IN_SELECT_IN_TABLE:{hv(this,t);break}case M.IN_TEMPLATE:{mv(this,t);break}case M.AFTER_BODY:{gv(this,t);break}case M.IN_FRAMESET:{bv(this,t);break}case M.AFTER_FRAMESET:{yv(this,t);break}case M.AFTER_AFTER_BODY:{vv(this,t);break}case M.AFTER_AFTER_FRAMESET:{Tv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Sv(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case M.INITIAL:{Bi(this,t);break}case M.BEFORE_HTML:{i9(this,t);break}case M.BEFORE_HEAD:{o9(this,t);break}case M.IN_HEAD:{l9(this,t);break}case M.IN_HEAD_NO_SCRIPT:{c9(this,t);break}case M.AFTER_HEAD:{h9(this,t);break}case M.IN_BODY:{kl(this,t);break}case M.TEXT:{Q9(this,t);break}case M.IN_TABLE:{vs(this,t);break}case M.IN_TABLE_TEXT:{Fi(this,t);break}case M.IN_CAPTION:{lv(this,t);break}case M.IN_COLUMN_GROUP:{uv(this,t);break}case M.IN_TABLE_BODY:{m0(this,t);break}case M.IN_ROW:{P2(this,t);break}case M.IN_CELL:{dv(this,t);break}case M.IN_SELECT:{F2(this,t);break}case M.IN_SELECT_IN_TABLE:{fv(this,t);break}case M.IN_TEMPLATE:{pv(this,t);break}case M.AFTER_BODY:{H2(this,t);break}case M.IN_FRAMESET:{xv(this,t);break}case M.AFTER_FRAMESET:{Ev(this,t);break}case M.AFTER_AFTER_BODY:{_o(this,t);break}}}onEof(t){switch(this.insertionMode){case M.INITIAL:{Bi(this,t);break}case M.BEFORE_HTML:{is(this,t);break}case M.BEFORE_HEAD:{ss(this,t);break}case M.IN_HEAD:{os(this,t);break}case M.IN_HEAD_NO_SCRIPT:{ls(this,t);break}case M.AFTER_HEAD:{us(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:{R2(this,t);break}case M.TEXT:{J9(this,t);break}case M.IN_TABLE_TEXT:{Fi(this,t);break}case M.IN_TEMPLATE:{z2(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:{Rc(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===S.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:{lu(this,t);break}case M.IN_TABLE_TEXT:{D2(this,t);break}}}}function XE(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):O2(e,t),r}function KE(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 QE(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>=GE;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=JE(e,o),n===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function JE(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 ZE(e,t,r){const n=e.treeAdapter.getTagName(t),a=_i(n);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const i=e.treeAdapter.getNamespaceURI(t);a===f.TEMPLATE&&i===ie.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function e9(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 Oc(e,t){for(let r=0;r<WE;r++){const n=XE(e,t);if(!n)break;const a=KE(e,n);if(!a)break;e.activeFormattingElements.bookmark=n;const i=QE(e,a,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),s&&ZE(e,s,i),e9(e,a,n)}}function f0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function t9(e,t){e._appendCommentNode(t,e.openElements.items[0])}function r9(e,t){e._appendCommentNode(t,e.document)}function Rc(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 n9(e,t){e._setDocumentType(t);const r=t.forceQuirks?Tr.QUIRKS:DE(t);RE(t)||e._err(t,Z.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=M.BEFORE_HTML}function Bi(e,t){e._err(t,Z.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Tr.QUIRKS),e.insertionMode=M.BEFORE_HTML,e._processToken(t)}function a9(e,t){t.tagID===f.HTML?(e._insertElement(t,ie.HTML),e.insertionMode=M.BEFORE_HEAD):is(e,t)}function i9(e,t){const r=t.tagID;(r===f.HTML||r===f.HEAD||r===f.BODY||r===f.BR)&&is(e,t)}function is(e,t){e._insertFakeRootElement(),e.insertionMode=M.BEFORE_HEAD,e._processToken(t)}function s9(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.HEAD:{e._insertElement(t,ie.HTML),e.headElement=e.openElements.current,e.insertionMode=M.IN_HEAD;break}default:ss(e,t)}}function o9(e,t){const r=t.tagID;r===f.HEAD||r===f.BODY||r===f.HTML||r===f.BR?ss(e,t):e._err(t,Z.endTagWithoutMatchingOpenElement)}function ss(e,t){e._insertFakeElement(G.HEAD,f.HEAD),e.headElement=e.openElements.current,e.insertionMode=M.IN_HEAD,e._processToken(t)}function qr(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case f.TITLE:{e._switchToTextParsing(t,bt.RCDATA);break}case f.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,bt.RAWTEXT):(e._insertElement(t,ie.HTML),e.insertionMode=M.IN_HEAD_NO_SCRIPT);break}case f.NOFRAMES:case f.STYLE:{e._switchToTextParsing(t,bt.RAWTEXT);break}case f.SCRIPT:{e._switchToTextParsing(t,bt.SCRIPT_DATA);break}case f.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=M.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(M.IN_TEMPLATE);break}case f.HEAD:{e._err(t,Z.misplacedStartTagForHeadElement);break}default:os(e,t)}}function l9(e,t){switch(t.tagID){case f.HEAD:{e.openElements.pop(),e.insertionMode=M.AFTER_HEAD;break}case f.BODY:case f.BR:case f.HTML:{os(e,t);break}case f.TEMPLATE:{Ua(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function Ua(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==f.TEMPLATE&&e._err(t,Z.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Z.endTagWithoutMatchingOpenElement)}function os(e,t){e.openElements.pop(),e.insertionMode=M.AFTER_HEAD,e._processToken(t)}function u9(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.BASEFONT:case f.BGSOUND:case f.HEAD:case f.LINK:case f.META:case f.NOFRAMES:case f.STYLE:{qr(e,t);break}case f.NOSCRIPT:{e._err(t,Z.nestedNoscriptInHead);break}default:ls(e,t)}}function c9(e,t){switch(t.tagID){case f.NOSCRIPT:{e.openElements.pop(),e.insertionMode=M.IN_HEAD;break}case f.BR:{ls(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function ls(e,t){const r=t.type===$e.EOF?Z.openElementsLeftAfterEof:Z.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=M.IN_HEAD,e._processToken(t)}function d9(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.BODY:{e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=M.IN_BODY;break}case f.FRAMESET:{e._insertElement(t,ie.HTML),e.insertionMode=M.IN_FRAMESET;break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{e._err(t,Z.abandonedHeadElementChild),e.openElements.push(e.headElement,f.HEAD),qr(e,t),e.openElements.remove(e.headElement);break}case f.HEAD:{e._err(t,Z.misplacedStartTagForHeadElement);break}default:us(e,t)}}function h9(e,t){switch(t.tagID){case f.BODY:case f.HTML:case f.BR:{us(e,t);break}case f.TEMPLATE:{Ua(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function us(e,t){e._insertFakeElement(G.BODY,f.BODY),e.insertionMode=M.IN_BODY,wl(e,t)}function wl(e,t){switch(t.type){case $e.CHARACTER:{_2(e,t);break}case $e.WHITESPACE_CHARACTER:{C2(e,t);break}case $e.COMMENT:{f0(e,t);break}case $e.START_TAG:{jt(e,t);break}case $e.END_TAG:{kl(e,t);break}case $e.EOF:{R2(e,t);break}}}function C2(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function _2(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function f9(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function m9(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function p9(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 g9(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML)}function b9(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&h0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ie.HTML)}function x9(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function y9(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML),r||(e.formElement=e.openElements.current))}function E9(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===f.LI&&a===f.LI||(r===f.DD||r===f.DT)&&(a===f.DD||a===f.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==f.ADDRESS&&a!==f.DIV&&a!==f.P&&e._isSpecialElement(e.openElements.items[n],a))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML)}function v9(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.tokenizer.state=bt.PLAINTEXT}function T9(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.framesetOk=!1}function w9(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(G.A);r&&(Oc(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 k9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function A9(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(Oc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function S9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function C9(e,t){e.treeAdapter.getDocumentMode(e.document)!==Tr.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=M.IN_TABLE}function N2(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function I2(e){const t=x2(e,Sa.TYPE);return t!=null&&t.toLowerCase()===VE}function _9(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ie.HTML),I2(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function N9(e,t){e._appendElement(t,ie.HTML),t.ackSelfClosing=!0}function I9(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function O9(e,t){t.tagName=G.IMG,t.tagID=f.IMG,N2(e,t)}function R9(e,t){e._insertElement(t,ie.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=M.TEXT}function D9(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function L9(e,t){e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function Xh(e,t){e._switchToTextParsing(t,bt.RAWTEXT)}function M9(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 P9(e,t){e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML)}function B9(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ie.HTML)}function F9(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,ie.HTML)}function z9(e,t){e._reconstructActiveFormattingElements(),k2(t),Ic(t),t.selfClosing?e._appendElement(t,ie.MATHML):e._insertElement(t,ie.MATHML),t.ackSelfClosing=!0}function H9(e,t){e._reconstructActiveFormattingElements(),A2(t),Ic(t),t.selfClosing?e._appendElement(t,ie.SVG):e._insertElement(t,ie.SVG),t.ackSelfClosing=!0}function Kh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML)}function jt(e,t){switch(t.tagID){case f.I:case f.S:case f.B:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.SMALL:case f.STRIKE:case f.STRONG:{k9(e,t);break}case f.A:{w9(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{b9(e,t);break}case f.P:case f.DL:case f.OL:case f.UL:case f.DIV:case f.DIR:case f.NAV:case f.MAIN:case f.MENU:case f.ASIDE:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.DETAILS:case f.ADDRESS:case f.ARTICLE:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{g9(e,t);break}case f.LI:case f.DD:case f.DT:{E9(e,t);break}case f.BR:case f.IMG:case f.WBR:case f.AREA:case f.EMBED:case f.KEYGEN:{N2(e,t);break}case f.HR:{I9(e,t);break}case f.RB:case f.RTC:{B9(e,t);break}case f.RT:case f.RP:{F9(e,t);break}case f.PRE:case f.LISTING:{x9(e,t);break}case f.XMP:{D9(e,t);break}case f.SVG:{H9(e,t);break}case f.HTML:{f9(e,t);break}case f.BASE:case f.LINK:case f.META:case f.STYLE:case f.TITLE:case f.SCRIPT:case f.BGSOUND:case f.BASEFONT:case f.TEMPLATE:{qr(e,t);break}case f.BODY:{m9(e,t);break}case f.FORM:{y9(e,t);break}case f.NOBR:{A9(e,t);break}case f.MATH:{z9(e,t);break}case f.TABLE:{C9(e,t);break}case f.INPUT:{_9(e,t);break}case f.PARAM:case f.TRACK:case f.SOURCE:{N9(e,t);break}case f.IMAGE:{O9(e,t);break}case f.BUTTON:{T9(e,t);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{S9(e,t);break}case f.IFRAME:{L9(e,t);break}case f.SELECT:{M9(e,t);break}case f.OPTION:case f.OPTGROUP:{P9(e,t);break}case f.NOEMBED:case f.NOFRAMES:{Xh(e,t);break}case f.FRAMESET:{p9(e,t);break}case f.TEXTAREA:{R9(e,t);break}case f.NOSCRIPT:{e.options.scriptingEnabled?Xh(e,t):Kh(e,t);break}case f.PLAINTEXT:{v9(e,t);break}case f.COL:case f.TH:case f.TD:case f.TR:case f.HEAD:case f.FRAME:case f.TBODY:case f.TFOOT:case f.THEAD:case f.CAPTION:case f.COLGROUP:break;default:Kh(e,t)}}function U9(e,t){if(e.openElements.hasInScope(f.BODY)&&(e.insertionMode=M.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function j9(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=M.AFTER_BODY,H2(e,t))}function $9(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function q9(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):r&&e.openElements.remove(r))}function V9(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(G.P,f.P),e._closePElement()}function W9(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}function G9(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function Y9(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function X9(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function K9(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(G.BR,f.BR),e.openElements.pop(),e.framesetOk=!1}function O2(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!==f.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 kl(e,t){switch(t.tagID){case f.A:case f.B:case f.I:case f.S:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.NOBR:case f.SMALL:case f.STRIKE:case f.STRONG:{Oc(e,t);break}case f.P:{V9(e);break}case f.DL:case f.UL:case f.OL:case f.DIR:case f.DIV:case f.NAV:case f.PRE:case f.MAIN:case f.MENU:case f.ASIDE:case f.BUTTON:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.ADDRESS:case f.ARTICLE:case f.DETAILS:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.LISTING:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{$9(e,t);break}case f.LI:{W9(e);break}case f.DD:case f.DT:{G9(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{Y9(e);break}case f.BR:{K9(e);break}case f.BODY:{U9(e,t);break}case f.HTML:{j9(e,t);break}case f.FORM:{q9(e);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{X9(e,t);break}case f.TEMPLATE:{Ua(e,t);break}default:O2(e,t)}}function R2(e,t){e.tmplInsertionModeStack.length>0?z2(e,t):Rc(e,t)}function Q9(e,t){var r;t.tagID===f.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function J9(e,t){e._err(t,Z.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function lu(e,t){if(e.openElements.currentTagId!==void 0&&S2.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 $e.CHARACTER:{L2(e,t);break}case $e.WHITESPACE_CHARACTER:{D2(e,t);break}}else Ms(e,t)}function Z9(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_CAPTION}function ev(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_COLUMN_GROUP}function tv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.COLGROUP,f.COLGROUP),e.insertionMode=M.IN_COLUMN_GROUP,Dc(e,t)}function rv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_TABLE_BODY}function nv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.TBODY,f.TBODY),e.insertionMode=M.IN_TABLE_BODY,Al(e,t)}function av(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function iv(e,t){I2(t)?e._appendElement(t,ie.HTML):Ms(e,t),t.ackSelfClosing=!0}function sv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ie.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function pi(e,t){switch(t.tagID){case f.TD:case f.TH:case f.TR:{nv(e,t);break}case f.STYLE:case f.SCRIPT:case f.TEMPLATE:{qr(e,t);break}case f.COL:{tv(e,t);break}case f.FORM:{sv(e,t);break}case f.TABLE:{av(e,t);break}case f.TBODY:case f.TFOOT:case f.THEAD:{rv(e,t);break}case f.INPUT:{iv(e,t);break}case f.CAPTION:{Z9(e,t);break}case f.COLGROUP:{ev(e,t);break}default:Ms(e,t)}}function vs(e,t){switch(t.tagID){case f.TABLE:{e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode());break}case f.TEMPLATE:{Ua(e,t);break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:Ms(e,t)}}function Ms(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,wl(e,t),e.fosterParentingEnabled=r}function D2(e,t){e.pendingCharacterTokens.push(t)}function L2(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Fi(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Ms(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const M2=new Set([f.CAPTION,f.COL,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]);function ov(e,t){const r=t.tagID;M2.has(r)?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M.IN_TABLE,pi(e,t)):jt(e,t)}function lv(e,t){const r=t.tagID;switch(r){case f.CAPTION:case f.TABLE:{e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M.IN_TABLE,r===f.TABLE&&vs(e,t));break}case f.BODY:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:kl(e,t)}}function Dc(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.COL:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case f.TEMPLATE:{qr(e,t);break}default:Wo(e,t)}}function uv(e,t){switch(t.tagID){case f.COLGROUP:{e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=M.IN_TABLE);break}case f.TEMPLATE:{Ua(e,t);break}case f.COL:break;default:Wo(e,t)}}function Wo(e,t){e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=M.IN_TABLE,e._processToken(t))}function Al(e,t){switch(t.tagID){case f.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_ROW;break}case f.TH:case f.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(G.TR,f.TR),e.insertionMode=M.IN_ROW,Sl(e,t);break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE,pi(e,t));break}default:pi(e,t)}}function m0(e,t){const r=t.tagID;switch(t.tagID){case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE);break}case f.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE,vs(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:case f.TR:break;default:vs(e,t)}}function Sl(e,t){switch(t.tagID){case f.TH:case f.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ie.HTML),e.insertionMode=M.IN_CELL,e.activeFormattingElements.insertMarker();break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY,Al(e,t));break}default:pi(e,t)}}function P2(e,t){switch(t.tagID){case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY);break}case f.TABLE:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY,m0(e,t));break}case f.TBODY:case f.TFOOT:case f.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY,m0(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:break;default:vs(e,t)}}function cv(e,t){const r=t.tagID;M2.has(r)?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),Sl(e,t)):jt(e,t)}function dv(e,t){const r=t.tagID;switch(r){case f.TD:case f.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M.IN_ROW);break}case f.TABLE:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),P2(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:break;default:kl(e,t)}}function B2(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._insertElement(t,ie.HTML);break}case f.OPTGROUP:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ie.HTML);break}case f.HR:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case f.INPUT:case f.KEYGEN:case f.TEXTAREA:case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),t.tagID!==f.SELECT&&e._processStartTag(t));break}case f.SCRIPT:case f.TEMPLATE:{qr(e,t);break}}}function F2(e,t){switch(t.tagID){case f.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===f.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop();break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop();break}case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode());break}case f.TEMPLATE:{Ua(e,t);break}}}function hv(e,t){const r=t.tagID;r===f.CAPTION||r===f.TABLE||r===f.TBODY||r===f.TFOOT||r===f.THEAD||r===f.TR||r===f.TD||r===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processStartTag(t)):B2(e,t)}function fv(e,t){const r=t.tagID;r===f.CAPTION||r===f.TABLE||r===f.TBODY||r===f.TFOOT||r===f.THEAD||r===f.TR||r===f.TD||r===f.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e.onEndTag(t)):F2(e,t)}function mv(e,t){switch(t.tagID){case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{qr(e,t);break}case f.CAPTION:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.tmplInsertionModeStack[0]=M.IN_TABLE,e.insertionMode=M.IN_TABLE,pi(e,t);break}case f.COL:{e.tmplInsertionModeStack[0]=M.IN_COLUMN_GROUP,e.insertionMode=M.IN_COLUMN_GROUP,Dc(e,t);break}case f.TR:{e.tmplInsertionModeStack[0]=M.IN_TABLE_BODY,e.insertionMode=M.IN_TABLE_BODY,Al(e,t);break}case f.TD:case f.TH:{e.tmplInsertionModeStack[0]=M.IN_ROW,e.insertionMode=M.IN_ROW,Sl(e,t);break}default:e.tmplInsertionModeStack[0]=M.IN_BODY,e.insertionMode=M.IN_BODY,jt(e,t)}}function pv(e,t){t.tagID===f.TEMPLATE&&Ua(e,t)}function z2(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Rc(e,t)}function gv(e,t){t.tagID===f.HTML?jt(e,t):Go(e,t)}function H2(e,t){var r;if(t.tagID===f.HTML){if(e.fragmentContext||(e.insertionMode=M.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===f.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 Go(e,t)}function Go(e,t){e.insertionMode=M.IN_BODY,wl(e,t)}function bv(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.FRAMESET:{e._insertElement(t,ie.HTML);break}case f.FRAME:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case f.NOFRAMES:{qr(e,t);break}}}function xv(e,t){t.tagID===f.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==f.FRAMESET&&(e.insertionMode=M.AFTER_FRAMESET))}function yv(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.NOFRAMES:{qr(e,t);break}}}function Ev(e,t){t.tagID===f.HTML&&(e.insertionMode=M.AFTER_AFTER_FRAMESET)}function vv(e,t){t.tagID===f.HTML?jt(e,t):_o(e,t)}function _o(e,t){e.insertionMode=M.IN_BODY,wl(e,t)}function Tv(e,t){switch(t.tagID){case f.HTML:{jt(e,t);break}case f.NOFRAMES:{qr(e,t);break}}}function wv(e,t){t.chars=ut,e._insertCharacters(t)}function kv(e,t){e._insertCharacters(t),e.framesetOk=!1}function U2(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 Av(e,t){if(HE(t))U2(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===ie.MATHML?k2(t):n===ie.SVG&&(UE(t),A2(t)),Ic(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function Sv(e,t){if(t.tagID===f.P||t.tagID===f.BR){U2(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}}}G.AREA,G.BASE,G.BASEFONT,G.BGSOUND,G.BR,G.COL,G.EMBED,G.FRAME,G.HR,G.IMG,G.INPUT,G.KEYGEN,G.LINK,G.META,G.PARAM,G.SOURCE,G.TRACK,G.WBR;const Cl=j2("end"),yn=j2("start");function j2(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 $2(e){const t=yn(e),r=Cl(e);if(t&&r)return{start:t,end:r}}const Cv=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,_v=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Qh={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function q2(e,t){const r=Fv(e),n=f2("type",{handlers:{root:Nv,element:Iv,text:Ov,comment:W2,doctype:Rv,raw:Lv},unknown:Mv}),a={parser:r?new Yh(Qh):Yh.getFragmentParser(void 0,Qh),handle(o){n(o,a)},stitches:!1,options:t||{}};n(e,a),Ni(a,yn());const i=r?a.parser.document:a.parser.getFragment(),s=Ny(i,{file:a.options.file});return a.stitches&&fi(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 V2(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function Nv(e,t){V2(e.children,t)}function Iv(e,t){Pv(e,t),V2(e.children,t),Bv(e,t)}function Ov(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:$e.CHARACTER,chars:e.value,location:Ps(e)};Ni(t,yn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Rv(e,t){const r={type:$e.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ps(e)};Ni(t,yn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Dv(e,t){t.stitches=!0;const r=zv(e);if("children"in e&&"children"in r){const n=q2({type:"root",children:e.children},t.options);r.children=n.children}W2({type:"comment",value:{stitch:r}},t)}function W2(e,t){const r=e.value,n={type:$e.COMMENT,data:r,location:Ps(e)};Ni(t,yn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Lv(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,G2(t,yn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Cv,"<$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 Mv(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))Dv(r,t);else{let n="";throw _v.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 Ni(e,t){G2(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=bt.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 G2(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 Pv(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===bt.PLAINTEXT)return;Ni(t,yn(e));const n=t.parser.openElements.current;let a="namespaceURI"in n?n.namespaceURI:cn.html;a===cn.html&&r==="svg"&&(a=cn.svg);const i=qy({...e,children:[]},{space:a===cn.svg?"svg":"html"}),s={type:$e.START_TAG,tagName:r,tagID:_i(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Ps(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function Bv(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Jy.includes(r)||t.parser.tokenizer.state===bt.PLAINTEXT)return;Ni(t,Cl(e));const n={type:$e.END_TAG,tagName:r,tagID:_i(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ps(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===bt.RCDATA||t.parser.tokenizer.state===bt.RAWTEXT||t.parser.tokenizer.state===bt.SCRIPT_DATA)&&(t.parser.tokenizer.state=bt.DATA)}function Fv(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ps(e){const t=yn(e)||{line:void 0,column:void 0,offset:void 0},r=Cl(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 zv(e){return"children"in e?Ia({...e,children:[]}):Ia(e)}function Hv(e){return function(t,r){return q2(t,{...e,file:r})}}const ya=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Jh={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ya,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ya],h2:[["className","sr-only"]],img:[...ya,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ya,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ya],table:[...ya],ul:[...ya,["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"]},na={}.hasOwnProperty;function Uv(e,t){let r={type:"root",children:[]};const n={schema:t?{...Jh,...t}:Jh,stack:[]},a=Y2(n,e);return a&&(Array.isArray(a)?a.length===1?r=a[0]:r.children=a:r=a),r}function Y2(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return jv(e,r);case"doctype":return $v(e,r);case"element":return qv(e,r);case"root":return Vv(e,r);case"text":return Wv(e,r)}}}function jv(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 Bs(i,t),i}}function $v(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return Bs(r,t),r}}function qv(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const n=X2(e,t.children),a=Gv(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&&na.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 Bs(s,t),s}function Vv(e,t){const n={type:"root",children:X2(e,t.children)};return Bs(n,t),n}function Wv(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return Bs(n,t),n}function X2(e,t){const r=[];if(Array.isArray(t)){const n=t;let a=-1;for(;++a<n.length;){const i=Y2(e,n[a]);i&&(Array.isArray(i)?r.push(...i):r.push(i))}}return r}function Gv(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,a=e.schema.required,i=n&&na.call(n,r)?n[r]:void 0,s=n&&na.call(n,"*")?n["*"]:void 0,o=t&&typeof t=="object"?t:{},l={};let u;for(u in o)if(na.call(o,u)){const d=o[u];let c=Zh(e,ef(i,u),u,d);c==null&&(c=Zh(e,ef(s,u),u,d)),c!=null&&(l[u]=c)}if(a&&na.call(a,r)){const d=a[r];for(u in d)na.call(d,u)&&!na.call(l,u)&&(l[u]=d[u])}return l}function Zh(e,t,r,n){return t?Array.isArray(n)?Yv(e,t,r,n):K2(e,t,r,n):void 0}function Yv(e,t,r,n){let a=-1;const i=[];for(;++a<n.length;){const s=K2(e,t,r,n[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function K2(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&Xv(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 Xv(e,t,r){const n=e.schema.protocols&&na.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 Bs(e,t){const r=$2(t);t.data&&(e.data=Ia(t.data)),r&&(e.position=r)}function ef(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 Kv(e){return function(t){return Uv(t,e)}}const In={eof:null,asterisk:42,underscore:95,tilde:126},gi={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},nn={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"},Yt=ma(/[A-Za-z]/),Ut=ma(/[\dA-Za-z]/),Qv=ma(/[#-'*+\--9=?A-Z^-~]/);function Yo(e){return e!==null&&(e<32||e===127)}const p0=ma(/\d/),Jv=ma(/[\dA-Fa-f]/),Zv=ma(/[!-/:-@[-`{-~]/);function ke(e){return e!==null&&e<-2}function et(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const _l=ma(new RegExp("\\p{P}|\\p{S}","u")),Oa=ma(/\s/);function ma(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function eT(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 tT(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function rT(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 nT(e){return eT(e)?"ambiguous":tT(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":rT(e)?"wide":"neutral"}function aT(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function iT(e){return aT(e),nT(e)}var sT=Object.defineProperty,oT=(e,t,r)=>t in e?sT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lT=(e,t,r)=>oT(e,t+"",r);function uT(e){return new RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e))}function cT(e){if(!e||e<4352)return!1;switch(iT(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!uT(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 dT(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function hT(e){return e!==null&&e>=65024&&e<=65038}var fT=Q2(new RegExp("\\p{P}|\\p{S}","u")),mT=Q2(/\s/);function Q2(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}var xr;(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})(xr||(xr={}));function li(e){if(e===In.eof||et(e)||mT(e))return gi.characterGroupWhitespace;let t=0;if(e>=4352){if(hT(e))return xr.nonEmojiGeneralUseVS;switch(cT(e)){case null:return xr.ivs;case!0:t|=xr.cjk;break}}return fT(e)&&(t|=gi.characterGroupPunctuation),t}function J2(e,t,r){if(!xT(e))return e;const n=t(),a=li(n);return!n||Ts(a)?e:dT(n,r)?xr.cjkPunctuation:pT(a)}function pT(e){return e&~xr.ivs}function Ts(e){return!!(e&gi.characterGroupWhitespace)}function Xo(e){return(e&xr.cjkPunctuation)===gi.characterGroupPunctuation}function g0(e){return!!(e&xr.cjk)}function gT(e){return e===xr.ivs}function bT(e){return!!(e&xr.cjkOrIvs)}function xT(e){return e===xr.nonEmojiGeneralUseVS}function tf(e){return!!(e&xr.spaceOrPunctuation)}function Z2(e){return!!(e&&e>=55296&&e<=56319)}function eg(e){return!!(e&&e>=56320&&e<=57343)}function tg(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 yT(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 rg=class{constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r,lT(this,"cachedValue")}value(){return this.cachedValue===void 0&&(this.cachedValue=yT(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function ng(e,t,r){const n=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return n&&n>=65536?n:e}function Pt(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 Mt(e,t){return e.length>0?(Pt(e,e.length,0,t),e):t}function Ii(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 uu={name:"attention",resolveAll:ET,tokenize:vT};function ET(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},h={...e[r][1].start};rf(c,-l),rf(h,l),s={type:l>1?nn.strongSequence:nn.emphasisSequence,start:c,end:{...e[n][1].end}},o={type:l>1?nn.strongSequence:nn.emphasisSequence,start:{...e[r][1].start},end:h},i={type:l>1?nn.strongText:nn.emphasisText,start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?nn.strong:nn.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=Mt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Mt(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),t.parser.constructs.insideSpan.null,u=Mt(u,Ii(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Mt(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=Mt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,Pt(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 vT(e,t){const r=this.parser.constructs.attentionMarkers.null,{now:n,sliceSerialize:a,previous:i}=this,s=eg(i)?tg(i,n(),a):i,o=li(s),l=new rg(s,n(),a),u=J2(o,l.value.bind(l),s);let d;return c;function c(m){return d=m,e.enter("attentionSequence"),h(m)}function h(m){if(m===d)return e.consume(m),h;const b=e.exit("attentionSequence"),x=Z2(m)?ng(m,n(),a):m,T=li(x),E=Xo(u),k=E||Ts(u),_=Xo(T),P=_||Ts(T),U=bT(u),D=!P||_&&(k||U)||r.includes(m),V=!k||E&&(P||g0(T))||r.includes(s);return b._open=!!(d===In.asterisk?D:D&&(tf(u)||!V)),b._close=!!(d===In.asterisk?V:V&&(tf(T)||!D)),t(m)}}function rf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function TT(){return{text:{[In.asterisk]:uu,[In.underscore]:uu},insideSpan:{null:[uu]}}}function wT(){const e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(TT())}function kT(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{[In.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[In.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)},h=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",c,o]],m=o.parser.constructs.insideSpan.null;m&&Pt(h,h.length,0,Ii(m,s.slice(u+1,l),o)),Pt(h,h.length,0,[["exit",c,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),Pt(s,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type=nn.data);return s}function i(s,o,l){const{now:u,sliceSerialize:d,previous:c}=this,h=eg(c)?tg(c,u(),d):c,m=li(h),b=new rg(h,u(),d),x=J2(m,b.value.bind(b),h),T=this.events;let E=0;return k;function k(P){return h===In.tilde&&T[T.length-1][1].type!==nn.characterEscape?l(P):(s.enter("strikethroughSequenceTemporary"),_(P))}function _(P){const U=li(h);if(P===In.tilde)return E>1?l(P):(s.consume(P),E++,_);if(E<2&&!r)return l(P);const D=s.exit("strikethroughSequenceTemporary"),V=Z2(P)?ng(P,u(),d):P,Y=li(V),F=Xo(x)||Ts(x),$=Xo(Y)||Ts(Y),C=g0(x)||gT(U);return D._open=!$||Y===gi.attentionSideAfter&&(F||C),D._close=!F||U===gi.attentionSideAfter&&($||g0(Y)),o(P)}}}function AT(e){const t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(kT(e))}function nf(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 ST(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function CT(e,t,r){const a=vi((r||{}).ignore||[]),i=_T(t);let s=-1;for(;++s<i.length;)Jp(e,"text",o);function o(u,d){let c=-1,h;for(;++c<d.length;){const m=d[c],b=h?h.children:void 0;if(a(m,b?b.indexOf(m):void 0,h))return;h=m}if(h)return l(u,d)}function l(u,d){const c=d[d.length-1],h=i[s][0],m=i[s][1];let b=0;const T=c.children.indexOf(u);let E=!1,k=[];h.lastIndex=0;let _=h.exec(u.value);for(;_;){const P=_.index,U={index:_.index,input:_.input,stack:[...d,u]};let D=m(..._,U);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?h.lastIndex=P+1:(b!==P&&k.push({type:"text",value:u.value.slice(b,P)}),Array.isArray(D)?k.push(...D):D&&k.push(D),b=P+_[0].length,E=!0),!h.global)break;_=h.exec(u.value)}return E?(b<u.value.length&&k.push({type:"text",value:u.value.slice(b)}),c.children.splice(T,1,...k)):k=[u],T+k.length}}function _T(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([NT(a[0]),IT(a[1])])}return t}function NT(e){return typeof e=="string"?new RegExp(ST(e),"g"):e}function IT(e){return typeof e=="function"?e:function(){return e}}const cu="phrasing",du=["autolink","link","image","label"];function OT(){return{transforms:[FT],enter:{literalAutolink:DT,literalAutolinkEmail:hu,literalAutolinkHttp:hu,literalAutolinkWww:hu},exit:{literalAutolink:BT,literalAutolinkEmail:PT,literalAutolinkHttp:LT,literalAutolinkWww:MT}}}function RT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:cu,notInConstruct:du},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:cu,notInConstruct:du},{character:":",before:"[ps]",after:"\\/",inConstruct:cu,notInConstruct:du}]}}function DT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hu(e){this.config.enter.autolinkProtocol.call(this,e)}function LT(e){this.config.exit.autolinkProtocol.call(this,e)}function MT(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 PT(e){this.config.exit.autolinkEmail.call(this,e)}function BT(e){this.exit(e)}function FT(e){CT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,zT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),HT]],{ignore:["link","linkReference"]})}function zT(e,t,r,n,a){let i="";if(!ag(a)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!UT(r)))return!1;const s=jT(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 HT(e,t,r,n){return!ag(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function UT(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 jT(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=nf(e,"(");let i=nf(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 ag(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Oa(r)||_l(r))&&(!t||r!==47)}function Hr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ig.peek=QT;function $T(){this.buffer()}function qT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function VT(){this.buffer()}function WT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function GT(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Hr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function YT(e){this.exit(e)}function XT(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Hr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function KT(e){this.exit(e)}function QT(){return"["}function ig(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 JT(){return{enter:{gfmFootnoteCallString:$T,gfmFootnoteCall:qT,gfmFootnoteDefinitionLabelString:VT,gfmFootnoteDefinition:WT},exit:{gfmFootnoteCallString:GT,gfmFootnoteCall:YT,gfmFootnoteDefinitionLabelString:XT,gfmFootnoteDefinition:KT}}}function ZT(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:ig},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?`
|
|
303
|
-
`:" ")+i.indentLines(i.containerFlow(n,o.current()),t?sg:ew))),u(),l}}function ew(e,t,r){return t===0?e:sg(e,t,r)}function sg(e,t,r){return(r?"":" ")+e}const tw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];og.peek=sw;function rw(){return{canContainEols:["delete"],enter:{strikethrough:aw},exit:{strikethrough:iw}}}function nw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tw}],handlers:{delete:og}}}function aw(e){this.enter({type:"delete",children:[]},e)}function iw(e){this.exit(e)}function og(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 sw(){return"~"}function ow(e){return e.length}function lw(e,t){const r=t||{},n=(r.align||[]).concat(),a=r.stringLength||ow,i=[],s=[],o=[],l=[];let u=0,d=-1;for(;++d<e.length;){const x=[],T=[];let E=-1;for(e[d].length>u&&(u=e[d].length);++E<e[d].length;){const k=uw(e[d][E]);if(r.alignDelimiters!==!1){const _=a(k);T[E]=_,(l[E]===void 0||_>l[E])&&(l[E]=_)}x.push(k)}s[d]=x,o[d]=T}let c=-1;if(typeof n=="object"&&"length"in n)for(;++c<u;)i[c]=af(n[c]);else{const x=af(n);for(;++c<u;)i[c]=x}c=-1;const h=[],m=[];for(;++c<u;){const x=i[c];let T="",E="";x===99?(T=":",E=":"):x===108?T=":":x===114&&(E=":");let k=r.alignDelimiters===!1?1:Math.max(1,l[c]-T.length-E.length);const _=T+"-".repeat(k)+E;r.alignDelimiters!==!1&&(k=T.length+k+E.length,k>l[c]&&(l[c]=k),m[c]=k),h[c]=_}s.splice(1,0,h),o.splice(1,0,m),d=-1;const b=[];for(;++d<s.length;){const x=s[d],T=o[d];c=-1;const E=[];for(;++c<u;){const k=x[c]||"";let _="",P="";if(r.alignDelimiters!==!1){const U=l[c]-(T[c]||0),D=i[c];D===114?_=" ".repeat(U):D===99?U%2?(_=" ".repeat(U/2+.5),P=" ".repeat(U/2-.5)):(_=" ".repeat(U/2),P=_):P=" ".repeat(U)}r.delimiterStart!==!1&&!c&&E.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&k==="")&&(r.delimiterStart!==!1||c)&&E.push(" "),r.alignDelimiters!==!1&&E.push(_),E.push(k),r.alignDelimiters!==!1&&E.push(P),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(`
|
|
304
|
-
`)}function uw(e){return e==null?"":String(e)}function af(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 cw(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()),dw);return a(),s}function dw(e,t,r){return">"+(r?"":" ")+e}function hw(e,t){return sf(e,t.inConstruct,!0)&&!sf(e,t.notInConstruct,!1)}function sf(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 of(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
|
|
305
|
-
`&&hw(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
306
|
-
`}function lg(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 fw(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 mw(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 pw(e,t,r,n){const a=mw(r),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(fw(e,r)){const c=r.enter("codeIndented"),h=r.indentLines(i,gw);return c(),h}const o=r.createTracker(n),l=a.repeat(Math.max(lg(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:`
|
|
307
|
-
`,encode:["`"],...o.current()})),c()}return d+=o.move(`
|
|
308
|
-
`),i&&(d+=o.move(i+`
|
|
309
|
-
`)),d+=o.move(l),u(),d}function gw(e,t,r){return(r?"":" ")+e}function Lc(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 bw(e,t,r,n){const a=Lc(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?" ":`
|
|
310
|
-
`,...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 xw(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 ws(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bi(e){if(e===null||et(e)||Oa(e))return 1;if(_l(e))return 2}function Ko(e,t,r){const n=bi(e),a=bi(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}}ug.peek=yw;function ug(e,t,r,n){const a=xw(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=Ko(n.before.charCodeAt(n.before.length-1),u,a);d.inside&&(l=ws(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=Ko(n.after.charCodeAt(0),c,a);h.inside&&(l=l.slice(0,-1)+ws(c));const m=s.move(a);return i(),r.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},o+l+m}function yw(e,t,r){return r.options.emphasis||"*"}const Ew={};function Mc(e,t){const r=Ew,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return cg(e,n,a)}function cg(e,t,r){if(vw(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 lf(e.children,t,r)}return Array.isArray(e)?lf(e,t,r):""}function lf(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=cg(e[a],t,r);return n.join("")}function vw(e){return!!(e&&typeof e=="object")}function Tw(e,t){let r=!1;return fi(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Gu}),!!((!e.depth||e.depth<3)&&Mc(e)&&(t.options.setext||r))}function ww(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(Tw(e,r)){const d=r.enter("headingSetext"),c=r.enter("phrasing"),h=r.containerPhrasing(e,{...i.current(),before:`
|
|
311
|
-
`,after:`
|
|
312
|
-
`});return c(),d(),h+`
|
|
313
|
-
`+(a===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
314
|
-
`))+1))}const s="#".repeat(a),o=r.enter("headingAtx"),l=r.enter("phrasing");i.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
315
|
-
`,...i.current()});return/^[\t ]/.test(u)&&(u=ws(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}dg.peek=kw;function dg(e){return e.value||""}function kw(){return"<"}hg.peek=Aw;function hg(e,t,r,n){const a=Lc(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 Aw(){return"!"}fg.peek=Sw;function fg(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 Sw(){return"!"}mg.peek=Cw;function mg(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 pg(e,t){const r=Mc(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))}gg.peek=_w;function gg(e,t,r,n){const a=Lc(r),i=a==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let o,l;if(pg(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 _w(e,t,r){return pg(e,r)?"<":"["}bg.peek=Nw;function bg(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 Nw(){return"["}function Pc(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 Iw(e){const t=Pc(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 Ow(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 xg(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 Rw(e,t,r,n){const a=r.enter("list"),i=r.bulletCurrent;let s=e.ordered?Ow(r):Pc(r);const o=e.ordered?s==="."?")":".":Iw(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),xg(r)===s&&d){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.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 Dw(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 Lw(e,t,r,n){const a=Dw(r);let i=r.bulletCurrent||Pc(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,h,m){return h?(m?"":" ".repeat(s))+c:(m?i:i+" ".repeat(s-i.length))+c}}function Mw(e,t,r,n){const a=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),a(),s}const Pw=vi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Bw(e,t,r,n){return(e.children.some(function(s){return Pw(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function Fw(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}yg.peek=zw;function yg(e,t,r,n){const a=Fw(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=Ko(n.before.charCodeAt(n.before.length-1),u,a);d.inside&&(l=ws(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=Ko(n.after.charCodeAt(0),c,a);h.inside&&(l=l.slice(0,-1)+ws(c));const m=s.move(a+a);return i(),r.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},o+l+m}function zw(e,t,r){return r.options.strong||"*"}function Hw(e,t,r,n){return r.safe(e.value,n)}function Uw(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 jw(e,t,r){const n=(xg(r)+(r.options.ruleSpaces?" ":"")).repeat(Uw(r));return r.options.ruleSpaces?n.slice(0,-1):n}const Eg={blockquote:cw,break:of,code:pw,definition:bw,emphasis:ug,hardBreak:of,heading:ww,html:dg,image:hg,imageReference:fg,inlineCode:mg,link:gg,linkReference:bg,list:Rw,listItem:Lw,paragraph:Mw,root:Bw,strong:yg,text:Hw,thematicBreak:jw},uf=document.createElement("i");function Bc(e){const t="&"+e+";";uf.innerHTML=t;const r=uf.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function vg(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 $w=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qw(e){return e.replace($w,Vw)}function Vw(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),i=a===120||a===88;return vg(r.slice(i?2:1),i?16:10)}return Bc(r)||e}function Ww(){return{enter:{table:Gw,tableData:cf,tableHeader:cf,tableRow:Xw},exit:{codeText:Kw,table:Yw,tableData:fu,tableHeader:fu,tableRow:fu}}}function Gw(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 Yw(e){this.exit(e),this.data.inTable=void 0}function Xw(e){this.enter({type:"tableRow",children:[]},e)}function fu(e){this.exit(e)}function cf(e){this.enter({type:"tableCell",children:[]},e)}function Kw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Qw));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Qw(e,t){return t==="|"?t:e}function Jw(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
316
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:l,tableRow:o}};function s(m,b,x,T){return u(d(m,x,T),m.align)}function o(m,b,x,T){const E=c(m,x,T),k=u([E]);return k.slice(0,k.indexOf(`
|
|
317
|
-
`))}function l(m,b,x,T){const E=x.enter("tableCell"),k=x.enter("phrasing"),_=x.containerPhrasing(m,{...T,before:i,after:i});return k(),E(),_}function u(m,b){return lw(m,{align:b,alignDelimiters:n,padding:r,stringLength:a})}function d(m,b,x){const T=m.children;let E=-1;const k=[],_=b.enter("table");for(;++E<T.length;)k[E]=c(T[E],b,x);return _(),k}function c(m,b,x){const T=m.children;let E=-1;const k=[],_=b.enter("tableRow");for(;++E<T.length;)k[E]=l(T[E],m,b,x);return _(),k}function h(m,b,x){let T=Eg.inlineCode(m,b,x);return x.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function Zw(){return{exit:{taskListCheckValueChecked:df,taskListCheckValueUnchecked:df,paragraph:tk}}}function ek(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rk}}}function df(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function tk(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 rk(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=Eg.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 nk(){return[OT(),JT(),rw(),Ww(),Zw()]}function ak(e){return{extensions:[RT(),ZT(e),nw(),Jw(e),ek()]}}const hf={}.hasOwnProperty;function Tg(e){const t={};let r=-1;for(;++r<e.length;)ik(t,e[r]);return t}function ik(e,t){let r;for(r in t){const a=(hf.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let s;if(i)for(s in i){hf.call(a,s)||(a[s]=[]);const o=i[s];sk(a[s],Array.isArray(o)?o:o?[o]:[])}}}function sk(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Pt(e,0,0,n)}const ok={tokenize:fk,partial:!0},wg={tokenize:mk,partial:!0},kg={tokenize:pk,partial:!0},Ag={tokenize:gk,partial:!0},lk={tokenize:bk,partial:!0},Sg={name:"wwwAutolink",tokenize:dk,previous:_g},Cg={name:"protocolAutolink",tokenize:hk,previous:Ng},zn={name:"emailAutolink",tokenize:ck,previous:Ig},En={};function uk(){return{text:En}}let Ea=48;for(;Ea<123;)En[Ea]=zn,Ea++,Ea===58?Ea=65:Ea===91&&(Ea=97);En[43]=zn;En[45]=zn;En[46]=zn;En[95]=zn;En[72]=[zn,Cg];En[104]=[zn,Cg];En[87]=[zn,Sg];En[119]=[zn,Sg];function ck(e,t,r){const n=this;let a,i;return s;function s(c){return!b0(c)||!Ig.call(n,n.previous)||Fc(n.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return b0(c)?(e.consume(c),o):c===64?(e.consume(c),l):r(c)}function l(c){return c===46?e.check(lk,d,u)(c):c===45||c===95||Ut(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&&Yt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):r(c)}}function dk(e,t,r){const n=this;return a;function a(s){return s!==87&&s!==119||!_g.call(n,n.previous)||Fc(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ok,e.attempt(wg,e.attempt(kg,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function hk(e,t,r){const n=this;let a="",i=!1;return s;function s(c){return(c===72||c===104)&&Ng.call(n,n.previous)&&!Fc(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(c),e.consume(c),o):r(c)}function o(c){if(Yt(c)&&a.length<5)return a+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const h=a.toLowerCase();if(h==="http"||h==="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||Yo(c)||et(c)||Oa(c)||_l(c)?r(c):e.attempt(wg,e.attempt(kg,d),r)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function fk(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 mk(e,t,r){let n,a,i;return s;function s(u){return u===46||u===95?e.check(Ag,l,o)(u):u===null||et(u)||Oa(u)||u!==45&&_l(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 pk(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(Ag,t,i)(s):s===null||et(s)||Oa(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&n++,e.consume(s),a}}function gk(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||et(o)||Oa(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||et(o)||Oa(o)?t(o):n(o)}function i(o){return Yt(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),n):Yt(o)?(e.consume(o),s):r(o)}}function bk(e,t,r){return n;function n(i){return e.consume(i),a}function a(i){return Ut(i)?r(i):t(i)}}function _g(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||et(e)}function Ng(e){return!Yt(e)}function Ig(e){return!(e===47||b0(e))}function b0(e){return e===43||e===45||e===46||e===95||Ut(e)}function Fc(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 Oi(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const i=e.charCodeAt(r);let s="";if(i===37&&Ut(e.charCodeAt(r+1))&&Ut(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 x0={name:"attention",resolveAll:xk,tokenize:yk};function xk(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},h={...e[r][1].start};ff(c,-l),ff(h,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:h},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=Mt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Mt(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=Mt(u,Ii(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Mt(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=Mt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,Pt(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 yk(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=bi(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=bi(l),c=!d||d===2&&a||r.includes(l),h=!a||a===2&&d||r.includes(n);return u._open=!!(i===42?c:c&&(a||!h)),u._close=!!(i===42?h:h&&(d||!c)),t(l)}}function ff(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ek={name:"autolink",tokenize:vk};function vk(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 Yt(m)?(e.consume(m),s):m===64?r(m):u(m)}function s(m){return m===43||m===45||m===46||Ut(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||Ut(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||Yo(m)?r(m):(e.consume(m),l)}function u(m){return m===64?(e.consume(m),d):Qv(m)?(e.consume(m),u):r(m)}function d(m){return Ut(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):h(m)}function h(m){if((m===45||Ut(m))&&n++<63){const b=m===45?h:c;return e.consume(m),b}return r(m)}}function qe(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return Ve(l)?(e.enter(r),o(l)):t(l)}function o(l){return Ve(l)&&i++<a?(e.consume(l),o):(e.exit(r),t(l))}}const Fs={partial:!0,tokenize:Tk};function Tk(e,t,r){return n;function n(i){return Ve(i)?qe(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ke(i)?t(i):r(i)}}const Og={continuation:{tokenize:kk},exit:Ak,name:"blockQuote",tokenize:wk};function wk(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 Ve(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function kk(e,t,r){const n=this;return a;function a(s){return Ve(s)?qe(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Og,t,r)(s)}}function Ak(e){e.exit("blockQuote")}const Rg={name:"characterEscape",tokenize:Sk};function Sk(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 Zv(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const Dg={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=Ut,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=Jv,d):(e.enter("characterReferenceValue"),i=7,s=p0,d(c))}function d(c){if(c===59&&a){const h=e.exit("characterReferenceValue");return s===Ut&&!Bc(n.sliceSerialize(h))?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 mf={partial:!0,tokenize:Nk},pf={concrete:!0,name:"codeFenced",tokenize:_k};function _k(e,t,r){const n=this,a={partial:!0,tokenize:U};let i=0,s=0,o;return l;function l(D){return u(D)}function u(D){const V=n.events[n.events.length-1];return i=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,o=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(D)}function d(D){return D===o?(s++,e.consume(D),d):s<3?r(D):(e.exit("codeFencedFenceSequence"),Ve(D)?qe(e,c,"whitespace")(D):c(D))}function c(D){return D===null||ke(D)?(e.exit("codeFencedFence"),n.interrupt?t(D):e.check(mf,x,P)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(D))}function h(D){return D===null||ke(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(D)):Ve(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),qe(e,m,"whitespace")(D)):D===96&&D===o?r(D):(e.consume(D),h)}function m(D){return D===null||ke(D)?c(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(D))}function b(D){return D===null||ke(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(D)):D===96&&D===o?r(D):(e.consume(D),b)}function x(D){return e.attempt(a,P,T)(D)}function T(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),E}function E(D){return i>0&&Ve(D)?qe(e,k,"linePrefix",i+1)(D):k(D)}function k(D){return D===null||ke(D)?e.check(mf,x,P)(D):(e.enter("codeFlowValue"),_(D))}function _(D){return D===null||ke(D)?(e.exit("codeFlowValue"),k(D)):(e.consume(D),_)}function P(D){return e.exit("codeFenced"),t(D)}function U(D,V,Y){let ee=0;return F;function F(j){return D.enter("lineEnding"),D.consume(j),D.exit("lineEnding"),ne}function ne(j){return D.enter("codeFencedFence"),Ve(j)?qe(D,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):$(j)}function $(j){return j===o?(D.enter("codeFencedFenceSequence"),C(j)):Y(j)}function C(j){return j===o?(ee++,D.consume(j),C):ee>=s?(D.exit("codeFencedFenceSequence"),Ve(j)?qe(D,H,"whitespace")(j):H(j)):Y(j)}function H(j){return j===null||ke(j)?(D.exit("codeFencedFence"),V(j)):Y(j)}}}function Nk(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 mu={name:"codeIndented",tokenize:Ok},Ik={partial:!0,tokenize:Rk};function Ok(e,t,r){const n=this;return a;function a(u){return e.enter("codeIndented"),qe(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):ke(u)?e.attempt(Ik,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||ke(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Rk(e,t,r){const n=this;return a;function a(s){return n.parser.lazy[n.now().line]?r(s):ke(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):qe(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):ke(s)?a(s):r(s)}}const Dk={name:"codeText",previous:Mk,resolve:Lk,tokenize:Pk};function Lk(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 Mk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Pk(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)):ke(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||ke(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 Bk{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&&zi(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),zi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),zi(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);zi(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);zi(this.left,r.reverse())}}}function zi(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 Lg(e){const t={};let r=-1,n,a,i,s,o,l,u;const d=new Bk(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,Fk(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 Pt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function Fk(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,h=-1,m=r,b=0,x=0;const T=[x];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;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(x=h+1,T.push(x),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):T.pop(),h=T.length;h--;){const E=o.slice(T[h],T[h+1]),k=i.pop();l.push([k,k+E.length-1]),e.splice(k,2,E)}for(l.reverse(),h=-1;++h<l.length;)u[b+l[h][0]]=b+l[h][1],b+=l[h][1]-l[h][0]-1;return u}const zk={resolve:Uk,tokenize:jk},Hk={partial:!0,tokenize:$k};function Uk(e){return Lg(e),e}function jk(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):ke(o)?e.check(Hk,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 $k(e,t,r){const n=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),qe(e,i,"linePrefix")}function i(s){if(s===null||ke(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 Mg(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),h):E===null||E===32||E===41||Yo(E)?r(E):(e.enter(n),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),x(E))}function h(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),h(E)):E===null||E===60||ke(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 x(E){return!d&&(E===null||E===41||et(E))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(n),t(E)):d<u&&E===40?(e.consume(E),d++,x):E===41?(e.consume(E),d--,x):E===null||E===32||E===40||Yo(E)?r(E):(e.consume(E),E===92?T:x)}function T(E){return E===40||E===41||E===92?(e.consume(E),x):x(E)}}function Pg(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):ke(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||ke(m)||o++>999?(e.exit("chunkString"),d(m)):(e.consume(m),l||(l=!Ve(m)),m===92?h:c)}function h(m){return m===91||m===92||m===93?(e.consume(m),o++,c):c(m)}}function Bg(e,t,r,n,a,i){let s;return o;function o(h){return h===34||h===39||h===40?(e.enter(n),e.enter(a),e.consume(h),e.exit(a),s=h===40?41:h,l):r(h)}function l(h){return h===s?(e.enter(a),e.consume(h),e.exit(a),e.exit(n),t):(e.enter(i),u(h))}function u(h){return h===s?(e.exit(i),l(s)):h===null?r(h):ke(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),qe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===s||h===null||ke(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:d)}function c(h){return h===s||h===92?(e.consume(h),d):d(h)}}function cs(e,t){let r;return n;function n(a){return ke(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):Ve(a)?qe(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const qk={name:"definition",tokenize:Wk},Vk={partial:!0,tokenize:Gk};function Wk(e,t,r){const n=this;let a;return i;function i(m){return e.enter("definition"),s(m)}function s(m){return Pg.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=Hr(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 et(m)?cs(e,u)(m):u(m)}function u(m){return Mg(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(Vk,c,c)(m)}function c(m){return Ve(m)?qe(e,h,"whitespace")(m):h(m)}function h(m){return m===null||ke(m)?(e.exit("definition"),n.parser.defined.push(a),t(m)):r(m)}}function Gk(e,t,r){return n;function n(o){return et(o)?cs(e,a)(o):r(o)}function a(o){return Bg(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return Ve(o)?qe(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ke(o)?t(o):r(o)}}const Yk={name:"hardBreakEscape",tokenize:Xk};function Xk(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ke(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const Kk={name:"headingAtx",resolve:Qk,tokenize:Jk};function Qk(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"},Pt(e,n,r-n+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Jk(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||et(d)?(e.exit("atxHeadingSequence"),o(d)):r(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ke(d)?(e.exit("atxHeading"),t(d)):Ve(d)?qe(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||et(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const Zk=["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"],gf=["pre","script","style","textarea"],eA={concrete:!0,name:"htmlFlow",resolveTo:nA,tokenize:aA},tA={partial:!0,tokenize:sA},rA={partial:!0,tokenize:iA};function nA(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 aA(e,t,r){const n=this;let a,i,s,o,l;return u;function u(O){return d(O)}function d(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),c}function c(O){return O===33?(e.consume(O),h):O===47?(e.consume(O),i=!0,x):O===63?(e.consume(O),a=3,n.interrupt?t:N):Yt(O)?(e.consume(O),s=String.fromCharCode(O),T):r(O)}function h(O){return O===45?(e.consume(O),a=2,m):O===91?(e.consume(O),a=5,o=0,b):Yt(O)?(e.consume(O),a=4,n.interrupt?t:N):r(O)}function m(O){return O===45?(e.consume(O),n.interrupt?t:N):r(O)}function b(O){const Ae="CDATA[";return O===Ae.charCodeAt(o++)?(e.consume(O),o===Ae.length?n.interrupt?t:$:b):r(O)}function x(O){return Yt(O)?(e.consume(O),s=String.fromCharCode(O),T):r(O)}function T(O){if(O===null||O===47||O===62||et(O)){const Ae=O===47,Re=s.toLowerCase();return!Ae&&!i&&gf.includes(Re)?(a=1,n.interrupt?t(O):$(O)):Zk.includes(s.toLowerCase())?(a=6,Ae?(e.consume(O),E):n.interrupt?t(O):$(O)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(O):i?k(O):_(O))}return O===45||Ut(O)?(e.consume(O),s+=String.fromCharCode(O),T):r(O)}function E(O){return O===62?(e.consume(O),n.interrupt?t:$):r(O)}function k(O){return Ve(O)?(e.consume(O),k):F(O)}function _(O){return O===47?(e.consume(O),F):O===58||O===95||Yt(O)?(e.consume(O),P):Ve(O)?(e.consume(O),_):F(O)}function P(O){return O===45||O===46||O===58||O===95||Ut(O)?(e.consume(O),P):U(O)}function U(O){return O===61?(e.consume(O),D):Ve(O)?(e.consume(O),U):_(O)}function D(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),l=O,V):Ve(O)?(e.consume(O),D):Y(O)}function V(O){return O===l?(e.consume(O),l=null,ee):O===null||ke(O)?r(O):(e.consume(O),V)}function Y(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||et(O)?U(O):(e.consume(O),Y)}function ee(O){return O===47||O===62||Ve(O)?_(O):r(O)}function F(O){return O===62?(e.consume(O),ne):r(O)}function ne(O){return O===null||ke(O)?$(O):Ve(O)?(e.consume(O),ne):r(O)}function $(O){return O===45&&a===2?(e.consume(O),q):O===60&&a===1?(e.consume(O),W):O===62&&a===4?(e.consume(O),he):O===63&&a===3?(e.consume(O),N):O===93&&a===5?(e.consume(O),ue):ke(O)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(tA,be,C)(O)):O===null||ke(O)?(e.exit("htmlFlowData"),C(O)):(e.consume(O),$)}function C(O){return e.check(rA,H,be)(O)}function H(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),j}function j(O){return O===null||ke(O)?C(O):(e.enter("htmlFlowData"),$(O))}function q(O){return O===45?(e.consume(O),N):$(O)}function W(O){return O===47?(e.consume(O),s="",X):$(O)}function X(O){if(O===62){const Ae=s.toLowerCase();return gf.includes(Ae)?(e.consume(O),he):$(O)}return Yt(O)&&s.length<8?(e.consume(O),s+=String.fromCharCode(O),X):$(O)}function ue(O){return O===93?(e.consume(O),N):$(O)}function N(O){return O===62?(e.consume(O),he):O===45&&a===2?(e.consume(O),N):$(O)}function he(O){return O===null||ke(O)?(e.exit("htmlFlowData"),be(O)):(e.consume(O),he)}function be(O){return e.exit("htmlFlow"),t(O)}}function iA(e,t,r){const n=this;return a;function a(s){return ke(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 sA(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Fs,t,r)}}const oA={name:"htmlText",tokenize:lA};function lA(e,t,r){const n=this;let a,i,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),u):N===47?(e.consume(N),U):N===63?(e.consume(N),_):Yt(N)?(e.consume(N),Y):r(N)}function u(N){return N===45?(e.consume(N),d):N===91?(e.consume(N),i=0,b):Yt(N)?(e.consume(N),k):r(N)}function d(N){return N===45?(e.consume(N),m):r(N)}function c(N){return N===null?r(N):N===45?(e.consume(N),h):ke(N)?(s=c,W(N)):(e.consume(N),c)}function h(N){return N===45?(e.consume(N),m):c(N)}function m(N){return N===62?q(N):N===45?h(N):c(N)}function b(N){const he="CDATA[";return N===he.charCodeAt(i++)?(e.consume(N),i===he.length?x:b):r(N)}function x(N){return N===null?r(N):N===93?(e.consume(N),T):ke(N)?(s=x,W(N)):(e.consume(N),x)}function T(N){return N===93?(e.consume(N),E):x(N)}function E(N){return N===62?q(N):N===93?(e.consume(N),E):x(N)}function k(N){return N===null||N===62?q(N):ke(N)?(s=k,W(N)):(e.consume(N),k)}function _(N){return N===null?r(N):N===63?(e.consume(N),P):ke(N)?(s=_,W(N)):(e.consume(N),_)}function P(N){return N===62?q(N):_(N)}function U(N){return Yt(N)?(e.consume(N),D):r(N)}function D(N){return N===45||Ut(N)?(e.consume(N),D):V(N)}function V(N){return ke(N)?(s=V,W(N)):Ve(N)?(e.consume(N),V):q(N)}function Y(N){return N===45||Ut(N)?(e.consume(N),Y):N===47||N===62||et(N)?ee(N):r(N)}function ee(N){return N===47?(e.consume(N),q):N===58||N===95||Yt(N)?(e.consume(N),F):ke(N)?(s=ee,W(N)):Ve(N)?(e.consume(N),ee):q(N)}function F(N){return N===45||N===46||N===58||N===95||Ut(N)?(e.consume(N),F):ne(N)}function ne(N){return N===61?(e.consume(N),$):ke(N)?(s=ne,W(N)):Ve(N)?(e.consume(N),ne):ee(N)}function $(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),a=N,C):ke(N)?(s=$,W(N)):Ve(N)?(e.consume(N),$):(e.consume(N),H)}function C(N){return N===a?(e.consume(N),a=void 0,j):N===null?r(N):ke(N)?(s=C,W(N)):(e.consume(N),C)}function H(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||et(N)?ee(N):(e.consume(N),H)}function j(N){return N===47||N===62||et(N)?ee(N):r(N)}function q(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):r(N)}function W(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),X}function X(N){return Ve(N)?qe(e,ue,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ue(N)}function ue(N){return e.enter("htmlTextData"),s(N)}}const zc={name:"labelEnd",resolveAll:hA,resolveTo:fA,tokenize:mA},uA={tokenize:pA},cA={tokenize:gA},dA={tokenize:bA};function hA(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&&Pt(e,0,e.length,r),e}function fA(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=Mt(o,e.slice(i+1,i+n+3)),o=Mt(o,[["enter",d,t]]),o=Mt(o,Ii(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),o=Mt(o,[["exit",d,t],e[s-2],e[s-1],["exit",u,t]]),o=Mt(o,e.slice(s+1)),o=Mt(o,[["exit",l,t]]),Pt(e,i,e.length,o),e}function mA(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(h){return i?i._inactive?c(h):(s=n.parser.defined.includes(Hr(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):r(h)}function l(h){return h===40?e.attempt(uA,d,s?d:c)(h):h===91?e.attempt(cA,d,s?u:c)(h):s?d(h):c(h)}function u(h){return e.attempt(dA,d,c)(h)}function d(h){return t(h)}function c(h){return i._balanced=!0,r(h)}}function pA(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 et(c)?cs(e,i)(c):i(c)}function i(c){return c===41?d(c):Mg(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function s(c){return et(c)?cs(e,l)(c):d(c)}function o(c){return r(c)}function l(c){return c===34||c===39||c===40?Bg(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return et(c)?cs(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 gA(e,t,r){const n=this;return a;function a(o){return Pg.call(n,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return n.parser.defined.includes(Hr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function bA(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 xA={name:"labelStartImage",resolveAll:zc.resolveAll,tokenize:yA};function yA(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 EA={name:"labelStartLink",resolveAll:zc.resolveAll,tokenize:vA};function vA(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 pu={name:"lineEnding",tokenize:TA};function TA(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),qe(e,t,"linePrefix")}}const No={name:"thematicBreak",tokenize:wA};function wA(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||ke(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===a?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),Ve(u)?qe(e,o,"whitespace")(u):o(u))}}const rr={continuation:{tokenize:CA},exit:NA,name:"list",tokenize:SA},kA={partial:!0,tokenize:IA},AA={partial:!0,tokenize:_A};function SA(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:p0(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(No,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 p0(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(Fs,n.interrupt?r:d,e.attempt(kA,h,c))}function d(m){return n.containerState.initialBlankLine=!0,i++,h(m)}function c(m){return Ve(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):r(m)}function h(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(Fs,a,i);function a(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,qe(e,t,"listItemIndent",n.containerState.size+1)(o)}function i(o){return n.containerState.furtherBlankLines||!Ve(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(AA,t,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,qe(e,e.attempt(rr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function _A(e,t,r){const n=this;return qe(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 NA(e){e.exit(this.containerState.type)}function IA(e,t,r){const n=this;return qe(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!Ve(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const bf={name:"setextUnderline",resolveTo:OA,tokenize:RA};function OA(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 RA(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"),Ve(u)?qe(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ke(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const DA={tokenize:UA,partial:!0};function LA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FA,continuation:{tokenize:zA},exit:HA}},text:{91:{name:"gfmFootnoteCall",tokenize:BA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:MA,resolveTo:PA}}}}function MA(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=Hr(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 PA(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 BA(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||et(c))return r(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return a.includes(Hr(n.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(c)}return et(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 FA(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||et(b))return r(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return i=Hr(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return et(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 h(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),qe(e,m,"gfmFootnoteDefinitionWhitespace")):r(b)}function m(b){return t(b)}}function zA(e,t,r){return e.check(Fs,t,e.attempt(DA,t,r))}function HA(e){e.exit("gfmFootnoteDefinition")}function UA(e,t,r){const n=this;return qe(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 jA(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)},h=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",c,o]],m=o.parser.constructs.insideSpan.null;m&&Pt(h,h.length,0,Ii(m,s.slice(u+1,l),o)),Pt(h,h.length,0,[["exit",c,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),Pt(s,u-1,l-u+3,h),l=u+h.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 h;function h(b){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(b):(s.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const x=bi(u);if(b===126)return c>1?l(b):(s.consume(b),c++,m);if(c<2&&!r)return l(b);const T=s.exit("strikethroughSequenceTemporary"),E=bi(b);return T._open=!E||E===2&&!!x,T._close=!x||x===2&&!!E,o(b)}}}class $A{constructor(){this.map=[]}add(t,r,n){qA(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 qA(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 VA(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 WA(){return{flow:{null:{name:"table",tokenize:GA,resolveAll:YA}}}}function GA(e,t,r){const n=this;let a=0,i=0,s;return o;function o(F){let ne=n.events.length-1;for(;ne>-1;){const H=n.events[ne][1].type;if(H==="lineEnding"||H==="linePrefix")ne--;else break}const $=ne>-1?n.events[ne][1].type:null,C=$==="tableHead"||$==="tableRow"?D:l;return C===D&&n.parser.lazy[n.now().line]?r(F):C(F)}function l(F){return e.enter("tableHead"),e.enter("tableRow"),u(F)}function u(F){return F===124||(s=!0,i+=1),d(F)}function d(F){return F===null?r(F):ke(F)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),m):r(F):Ve(F)?qe(e,d,"whitespace")(F):(i+=1,s&&(s=!1,a+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),c(F)))}function c(F){return F===null||F===124||et(F)?(e.exit("data"),d(F)):(e.consume(F),F===92?h:c)}function h(F){return F===92||F===124?(e.consume(F),c):c(F)}function m(F){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(F):(e.enter("tableDelimiterRow"),s=!1,Ve(F)?qe(e,b,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):b(F))}function b(F){return F===45||F===58?T(F):F===124?(s=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),x):U(F)}function x(F){return Ve(F)?qe(e,T,"whitespace")(F):T(F)}function T(F){return F===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),E):F===45?(i+=1,E(F)):F===null||ke(F)?P(F):U(F)}function E(F){return F===45?(e.enter("tableDelimiterFiller"),k(F)):U(F)}function k(F){return F===45?(e.consume(F),k):F===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(F))}function _(F){return Ve(F)?qe(e,P,"whitespace")(F):P(F)}function P(F){return F===124?b(F):F===null||ke(F)?!s||a!==i?U(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):U(F)}function U(F){return r(F)}function D(F){return e.enter("tableRow"),V(F)}function V(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),V):F===null||ke(F)?(e.exit("tableRow"),t(F)):Ve(F)?qe(e,V,"whitespace")(F):(e.enter("data"),Y(F))}function Y(F){return F===null||F===124||et(F)?(e.exit("data"),V(F)):(e.consume(F),F===92?ee:Y)}function ee(F){return F===92||F===124?(e.consume(F),Y):Y(F)}}function YA(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 h=new $A;for(;++r<e.length;){const m=e[r],b=m[1];m[0]==="enter"?b.type==="tableHead"?(o=!1,l!==0&&(xf(h,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},h.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)},h.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=so(h,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=so(h,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=so(h,t,i,a,r,c)):s[1]!==0&&(c=so(h,t,s,a,r,c)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&xf(h,t,l,u,d),h.consume(t.events),r=-1;++r<t.events.length;){const m=t.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=VA(t.events,r))}return e}function so(e,t,r,n,a,i){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(i.end=Object.assign({},Qa(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const l=Qa(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=Qa(t.events,r[2]),d=Qa(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 h=t.events[r[2]],m=t.events[r[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",r[3]>r[2]+1){const b=r[2]+1,x=r[3]-r[2]-1;e.add(b,x,[])}}e.add(r[3]+1,0,[["exit",c,t]])}return a!==void 0&&(i.end=Object.assign({},Qa(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function xf(e,t,r,n,a){const i=[],s=Qa(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 Qa(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const XA={name:"tasklistCheck",tokenize:QA};function KA(){return{text:{91:XA}}}function QA(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 et(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 ke(l)?t(l):Ve(l)?e.check({tokenize:JA},t,r)(l):r(l)}}function JA(e,t,r){return qe(e,n,"whitespace");function n(a){return a===null?r(a):t(a)}}function ZA(e){return Tg([uk(),LA(),jA(e),WA(),KA()])}const eS={};function tS(e){const t=this,r=e||eS,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(ZA(r)),i.push(nk()),s.push(ak(r))}function rS(){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 nS(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
318
|
-
`,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(lg(u,"$")+1,2)),h=o.enter("mathFlow");let m=d.move(c);if(i.meta){const b=o.enter("mathFlowMeta");m+=d.move(o.safe(i.meta,{after:`
|
|
319
|
-
`,before:m,encode:["$"],...d.current()})),b()}return m+=d.move(`
|
|
320
|
-
`),u&&(m+=d.move(u+`
|
|
321
|
-
`)),m+=d.move(c),h(),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 h=o.unsafe[c];if(!h.atBreak)continue;const m=o.compilePattern(h);let b;for(;b=m.exec(l);){let x=b.index;l.codePointAt(x)===10&&l.codePointAt(x-1)===13&&x--,l=l.slice(0,x)+" "+l.slice(b.index+1)}}return d+l+d}function a(){return"$"}}const aS={tokenize:iS,concrete:!0,name:"mathFlow"},yf={tokenize:sS,partial:!0};function iS(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(k){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(k)}function l(k){return k===36?(e.consume(k),s++,l):s<2?r(k):(e.exit("mathFlowFenceSequence"),qe(e,u,"whitespace")(k))}function u(k){return k===null||ke(k)?c(k):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||ke(k)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),c(k)):k===36?r(k):(e.consume(k),d)}function c(k){return e.exit("mathFlowFence"),n.interrupt?t(k):e.attempt(yf,h,T)(k)}function h(k){return e.attempt({tokenize:E,partial:!0},T,m)(k)}function m(k){return(i?qe(e,b,"linePrefix",i+1):b)(k)}function b(k){return k===null?T(k):ke(k)?e.attempt(yf,h,T)(k):(e.enter("mathFlowValue"),x(k))}function x(k){return k===null||ke(k)?(e.exit("mathFlowValue"),b(k)):(e.consume(k),x)}function T(k){return e.exit("mathFlow"),t(k)}function E(k,_,P){let U=0;return qe(k,D,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(ee){return k.enter("mathFlowFence"),k.enter("mathFlowFenceSequence"),V(ee)}function V(ee){return ee===36?(U++,k.consume(ee),V):U<s?P(ee):(k.exit("mathFlowFenceSequence"),qe(k,Y,"whitespace")(ee))}function Y(ee){return ee===null||ke(ee)?(k.exit("mathFlowFence"),_(ee)):P(ee)}}}function sS(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 oS(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:lS,previous:uS,name:"mathText"};function n(a,i,s){let o=0,l,u;return d;function d(x){return a.enter("mathText"),a.enter("mathTextSequence"),c(x)}function c(x){return x===36?(a.consume(x),o++,c):o<2&&!r?s(x):(a.exit("mathTextSequence"),h(x))}function h(x){return x===null?s(x):x===36?(u=a.enter("mathTextSequence"),l=0,b(x)):x===32?(a.enter("space"),a.consume(x),a.exit("space"),h):ke(x)?(a.enter("lineEnding"),a.consume(x),a.exit("lineEnding"),h):(a.enter("mathTextData"),m(x))}function m(x){return x===null||x===32||x===36||ke(x)?(a.exit("mathTextData"),h(x)):(a.consume(x),m)}function b(x){return x===36?(a.consume(x),l++,b):l===o?(a.exit("mathTextSequence"),a.exit("mathText"),i(x)):(u.type="mathTextData",m(x))}}}function lS(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 uS(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function cS(e){return{flow:{36:aS},text:{36:oS(e)}}}const dS={};function y0(e){const t=this,r=e||dS,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(cS(r)),i.push(rS()),s.push(nS(r))}var hS=/(\*\*)([^*]*?)$/,fS=/(__)([^_]*?)$/,mS=/(\*\*\*)([^*]*?)$/,pS=/(\*)([^*]*?)$/,gS=/(_)([^_]*?)$/,bS=/(`)([^`]*?)$/,xS=/(~~)([^~]*?)$/,ja=/^[\s_~*`]*$/,Fg=/^[\s]*[-*+][\s]+$/,yS=/[\p{L}\p{N}_]/u,ES=/^```[^`\n]*```?$/,vS=/^\*{4,}$/,ha=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:yS.test(e)},Nl=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(`
|
|
322
|
-
`)},TS=(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},wS=(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},zg=(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},kS=(e,t,r)=>{if(r!==" "&&r!==" ")return!1;let n=0;for(let a=t-1;a>=0;a-=1)if(e[a]===`
|
|
323
|
-
`){n=a+1;break}for(let a=n;a<t;a+=1)if(e[a]!==" "&&e[a]!==" ")return!1;return!0},AS=(e,t,r,n)=>!!(r==="\\"||r==="*"||n==="*"||r&&n&&ha(r)&&ha(n)||kS(e,t,n)),SS=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]:"";AS(e,n,a,i)||(t+=1)}return t},CS=(e,t,r,n)=>!!(r==="\\"||e.includes("$")&&zg(e,t)||r==="_"||n==="_"||r&&n&&ha(r)&&ha(n)),_S=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},NS=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},IS=e=>{if(Nl(e))return e;let t=e.match(hS);if(t){let r=t[2];if(!r||ja.test(r))return e;let n=e.lastIndexOf(t[1]),a=e.substring(0,n).lastIndexOf(`
|
|
324
|
-
`),i=a===-1?0:a+1,s=e.substring(i,n);if(Fg.test(s)&&r.includes(`
|
|
325
|
-
`))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},OS=e=>{let t=e.match(fS);if(t){let r=t[2];if(!r||ja.test(r))return e;let n=e.lastIndexOf(t[1]),a=e.substring(0,n).lastIndexOf(`
|
|
326
|
-
`),i=a===-1?0:a+1,s=e.substring(i,n);if(Fg.test(s)&&r.includes(`
|
|
327
|
-
`))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},RS=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&&ha(r)&&ha(n))continue;return t}return-1},DS=e=>{if(Nl(e)||!e.match(pS))return e;let t=RS(e);if(t===-1)return e;let r=e.substring(t+1);return!r||ja.test(r)?e:SS(e)%2===1?`${e}*`:e},LS=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="_"&&e[t-1]!=="_"&&e[t+1]!=="_"&&e[t-1]!=="\\"&&!zg(e,t)){let r=t>0?e[t-1]:"",n=t<e.length-1?e[t+1]:"";if(r&&n&&ha(r)&&ha(n))continue;return t}return-1},MS=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
328
|
-
`;)t-=1;if(t<e.length){let r=e.slice(0,t),n=e.slice(t);return`${r}_${n}`}return`${e}_`},PS=e=>{if(Nl(e)||!e.match(gS))return e;let t=LS(e);if(t===-1)return e;let r=e.substring(t+1);return!r||ja.test(r)?e:_S(e)%2===1?MS(e):e},BS=e=>{if(Nl(e)||vS.test(e))return e;let t=e.match(mS);if(t){let r=t[2];if(!r||ja.test(r))return e;if(NS(e)%2===1)return`${e}***`}return e},E0=(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},FS=(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},zS=e=>{let t=0;for(let r=0;r<e.length;r+=1)e[r]==="`"&&!FS(e,r)&&(t+=1);return t},HS=e=>!e.match(ES)||e.includes(`
|
|
329
|
-
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,US=e=>{let t=(e.match(/```/g)||[]).length;return!!(t>0&&t%2===0&&e.includes(`
|
|
330
|
-
`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)},jS=e=>(e.match(/```/g)||[]).length%2===1,$S=e=>{let t=HS(e);if(t!==null)return t;if(US(e))return e;let r=e.match(bS);if(r&&!jS(e)){let n=r[2];if(!n||ja.test(n))return e;if(zS(e)%2===1)return`${e}\``}return e},qS=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
331
|
-
`,t)!==-1&&!e.endsWith(`
|
|
332
|
-
`)?`${e}
|
|
333
|
-
$$`:`${e}$$`},VS=(e,t)=>{if(e.substring(t+2).includes(")"))return null;let r=TS(e,t);if(r===-1||E0(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)`},WS=(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(wS(e,t)===-1){let a=e.substring(0,n);return r?a:`${e}](streamdown:incomplete-link)`}return null},GS=e=>{let t=e.lastIndexOf("](");if(t!==-1&&!E0(e,t)){let r=VS(e,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!E0(e,r)){let n=WS(e,r);if(n!==null)return n}return e},YS=e=>{let t=e.match(xS);if(t){let r=t[2];if(!r||ja.test(r))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},XS=e=>{if(!e||typeof e!="string")return e;let t=e,r=GS(t);return r.endsWith("](streamdown:incomplete-link)")?r:(t=r,t=BS(t),t=IS(t),t=OS(t),t=DS(t),t=PS(t),t=$S(t),t=YS(t),t=qS(t),t)},KS=XS;/**
|
|
334
|
-
* @license lucide-react v0.542.0 - ISC
|
|
335
|
-
*
|
|
336
|
-
* This source code is licensed under the ISC license.
|
|
337
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
-
*/const QS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),JS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Ef=e=>{const t=JS(e);return t.charAt(0).toUpperCase()+t.slice(1)},Hg=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),ZS=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
339
|
-
* @license lucide-react v0.542.0 - ISC
|
|
340
|
-
*
|
|
341
|
-
* This source code is licensed under the ISC license.
|
|
342
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
-
*/var eC={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"};/**
|
|
344
|
-
* @license lucide-react v0.542.0 - ISC
|
|
345
|
-
*
|
|
346
|
-
* This source code is licensed under the ISC license.
|
|
347
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
-
*/const tC=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:s,...o},l)=>A.createElement("svg",{ref:l,...eC,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Hg("lucide",a),...!i&&!ZS(o)&&{"aria-hidden":"true"},...o},[...s.map(([u,d])=>A.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
|
|
349
|
-
* @license lucide-react v0.542.0 - ISC
|
|
350
|
-
*
|
|
351
|
-
* This source code is licensed under the ISC license.
|
|
352
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
353
|
-
*/const Hn=(e,t)=>{const r=A.forwardRef(({className:n,...a},i)=>A.createElement(tC,{ref:i,iconNode:t,className:Hg(`lucide-${QS(Ef(e))}`,`lucide-${e}`,n),...a}));return r.displayName=Ef(e),r};/**
|
|
354
|
-
* @license lucide-react v0.542.0 - ISC
|
|
355
|
-
*
|
|
356
|
-
* This source code is licensed under the ISC license.
|
|
357
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
358
|
-
*/const rC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ug=Hn("check",rC);/**
|
|
359
|
-
* @license lucide-react v0.542.0 - ISC
|
|
360
|
-
*
|
|
361
|
-
* This source code is licensed under the ISC license.
|
|
362
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
363
|
-
*/const nC=[["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"}]],jg=Hn("copy",nC);/**
|
|
364
|
-
* @license lucide-react v0.542.0 - ISC
|
|
365
|
-
*
|
|
366
|
-
* This source code is licensed under the ISC license.
|
|
367
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
368
|
-
*/const aC=[["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"}]],Il=Hn("download",aC);/**
|
|
369
|
-
* @license lucide-react v0.542.0 - ISC
|
|
370
|
-
*
|
|
371
|
-
* This source code is licensed under the ISC license.
|
|
372
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
373
|
-
*/const iC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sC=Hn("loader-circle",iC);/**
|
|
374
|
-
* @license lucide-react v0.542.0 - ISC
|
|
375
|
-
*
|
|
376
|
-
* This source code is licensed under the ISC license.
|
|
377
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
378
|
-
*/const oC=[["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"}]],lC=Hn("maximize-2",oC);/**
|
|
379
|
-
* @license lucide-react v0.542.0 - ISC
|
|
380
|
-
*
|
|
381
|
-
* This source code is licensed under the ISC license.
|
|
382
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
383
|
-
*/const uC=[["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"}]],cC=Hn("rotate-ccw",uC);/**
|
|
384
|
-
* @license lucide-react v0.542.0 - ISC
|
|
385
|
-
*
|
|
386
|
-
* This source code is licensed under the ISC license.
|
|
387
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
388
|
-
*/const dC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hC=Hn("x",dC);/**
|
|
389
|
-
* @license lucide-react v0.542.0 - ISC
|
|
390
|
-
*
|
|
391
|
-
* This source code is licensed under the ISC license.
|
|
392
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
393
|
-
*/const fC=[["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"}]],mC=Hn("zoom-in",fC);/**
|
|
394
|
-
* @license lucide-react v0.542.0 - ISC
|
|
395
|
-
*
|
|
396
|
-
* This source code is licensed under the ISC license.
|
|
397
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
398
|
-
*/const pC=[["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"}]],gC=Hn("zoom-out",pC),bC=(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},xC=(e,t)=>({classGroupId:e,validator:t}),$g=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Qo="-",vf=[],yC="arbitrary..",EC=e=>{const t=TC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return vC(s);const o=s.split(Qo),l=o[0]===""&&o.length>1?1:0;return qg(o,l,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const l=n[s],u=r[s];return l?u?bC(u,l):l:u||vf}return r[s]||vf}}},qg=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],i=r.nextPart.get(a);if(i){const u=qg(e,t+1,i);if(u)return u}const s=r.validators;if(s===null)return;const o=t===0?e.join(Qo):e.slice(t).join(Qo),l=s.length;for(let u=0;u<l;u++){const d=s[u];if(d.validator(o))return d.classGroupId}},vC=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?yC+n:void 0})(),TC=e=>{const{theme:t,classGroups:r}=e;return wC(r,t)},wC=(e,t)=>{const r=$g();for(const n in e){const a=e[n];Hc(a,r,n,t)}return r},Hc=(e,t,r,n)=>{const a=e.length;for(let i=0;i<a;i++){const s=e[i];kC(s,t,r,n)}},kC=(e,t,r,n)=>{if(typeof e=="string"){AC(e,t,r);return}if(typeof e=="function"){SC(e,t,r,n);return}CC(e,t,r,n)},AC=(e,t,r)=>{const n=e===""?t:Vg(t,e);n.classGroupId=r},SC=(e,t,r,n)=>{if(_C(e)){Hc(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(xC(r,e))},CC=(e,t,r,n)=>{const a=Object.entries(e),i=a.length;for(let s=0;s<i;s++){const[o,l]=a[s];Hc(l,Vg(t,o),r,n)}},Vg=(e,t)=>{let r=e;const n=t.split(Qo),a=n.length;for(let i=0;i<a;i++){const s=n[i];let o=r.nextPart.get(s);o||(o=$g(),r.nextPart.set(s,o)),r=o}return r},_C=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,NC=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)}}},v0="!",Tf=":",IC=[],wf=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),OC=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 x=0;x<d;x++){const T=a[x];if(s===0&&o===0){if(T===Tf){i.push(a.slice(l,x)),l=x+1;continue}if(T==="/"){u=x;continue}}T==="["?s++:T==="]"?s--:T==="("?o++:T===")"&&o--}const c=i.length===0?a:a.slice(l);let h=c,m=!1;c.endsWith(v0)?(h=c.slice(0,-1),m=!0):c.startsWith(v0)&&(h=c.slice(1),m=!0);const b=u&&u>l?u-l:void 0;return wf(i,m,h,b)};if(t){const a=t+Tf,i=n;n=s=>s.startsWith(a)?i(s.slice(a.length)):wf(IC,!1,s,void 0,!0)}if(r){const a=n;n=i=>r({className:i,parseClassName:a})}return n},RC=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}},DC=e=>({cache:NC(e.cacheSize),parseClassName:OC(e),sortModifiers:RC(e),...EC(e)}),LC=/\s+/,MC=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=t,s=[],o=e.trim().split(LC);let l="";for(let u=o.length-1;u>=0;u-=1){const d=o[u],{isExternal:c,modifiers:h,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:x}=r(d);if(c){l=d+(l.length>0?" "+l:l);continue}let T=!!x,E=n(T?b.substring(0,x):b);if(!E){if(!T){l=d+(l.length>0?" "+l:l);continue}if(E=n(b),!E){l=d+(l.length>0?" "+l:l);continue}T=!1}const k=h.length===0?"":h.length===1?h[0]:i(h).join(":"),_=m?k+v0:k,P=_+E;if(s.indexOf(P)>-1)continue;s.push(P);const U=a(E,T);for(let D=0;D<U.length;++D){const V=U[D];s.push(_+V)}l=d+(l.length>0?" "+l:l)}return l},PC=(...e)=>{let t=0,r,n,a="";for(;t<e.length;)(r=e[t++])&&(n=Wg(r))&&(a&&(a+=" "),a+=n);return a},Wg=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Wg(e[n]))&&(r&&(r+=" "),r+=t);return r},BC=(e,...t)=>{let r,n,a,i;const s=l=>{const u=t.reduce((d,c)=>c(d),e());return r=DC(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=MC(l,r);return a(l,d),d};return i=s,(...l)=>i(PC(...l))},FC=[],wt=e=>{const t=r=>r[e]||FC;return t.isThemeGetter=!0,t},Gg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zC=/^\d+\/\d+$/,HC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UC=/\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$/,jC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wa=e=>zC.test(e),Ue=e=>!!e&&!Number.isNaN(Number(e)),Xn=e=>!!e&&Number.isInteger(Number(e)),gu=e=>e.endsWith("%")&&Ue(e.slice(0,-1)),kn=e=>HC.test(e),VC=()=>!0,WC=e=>UC.test(e)&&!jC.test(e),Xg=()=>!1,GC=e=>$C.test(e),YC=e=>qC.test(e),XC=e=>!Ee(e)&&!ve(e),KC=e=>Ri(e,Jg,Xg),Ee=e=>Gg.test(e),va=e=>Ri(e,Zg,WC),bu=e=>Ri(e,t_,Ue),kf=e=>Ri(e,Kg,Xg),QC=e=>Ri(e,Qg,YC),oo=e=>Ri(e,e4,GC),ve=e=>Yg.test(e),Hi=e=>Di(e,Zg),JC=e=>Di(e,r_),Af=e=>Di(e,Kg),ZC=e=>Di(e,Jg),e_=e=>Di(e,Qg),lo=e=>Di(e,e4,!0),Ri=(e,t,r)=>{const n=Gg.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Di=(e,t,r=!1)=>{const n=Yg.exec(e);return n?n[1]?t(n[1]):r:!1},Kg=e=>e==="position"||e==="percentage",Qg=e=>e==="image"||e==="url",Jg=e=>e==="length"||e==="size"||e==="bg-size",Zg=e=>e==="length",t_=e=>e==="number",r_=e=>e==="family-name",e4=e=>e==="shadow",n_=()=>{const e=wt("color"),t=wt("font"),r=wt("text"),n=wt("font-weight"),a=wt("tracking"),i=wt("leading"),s=wt("breakpoint"),o=wt("container"),l=wt("spacing"),u=wt("radius"),d=wt("shadow"),c=wt("inset-shadow"),h=wt("text-shadow"),m=wt("drop-shadow"),b=wt("blur"),x=wt("perspective"),T=wt("aspect"),E=wt("ease"),k=wt("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...P(),ve,Ee],D=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],Y=()=>[ve,Ee,l],ee=()=>[Wa,"full","auto",...Y()],F=()=>[Xn,"none","subgrid",ve,Ee],ne=()=>["auto",{span:["full",Xn,ve,Ee]},Xn,ve,Ee],$=()=>[Xn,"auto",ve,Ee],C=()=>["auto","min","max","fr",ve,Ee],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...Y()],W=()=>[Wa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],X=()=>[e,ve,Ee],ue=()=>[...P(),Af,kf,{position:[ve,Ee]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",ZC,KC,{size:[ve,Ee]}],be=()=>[gu,Hi,va],O=()=>["","none","full",u,ve,Ee],Ae=()=>["",Ue,Hi,va],Re=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>[Ue,gu,Af,kf],Ne=()=>["","none",b,ve,Ee],rt=()=>["none",Ue,ve,Ee],lt=()=>["none",Ue,ve,Ee],Ct=()=>[Ue,ve,Ee],_t=()=>[Wa,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kn],breakpoint:[kn],color:[VC],container:[kn],"drop-shadow":[kn],ease:["in","out","in-out"],font:[XC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kn],shadow:[kn],spacing:["px",Ue],text:[kn],"text-shadow":[kn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wa,Ee,ve,T]}],container:["container"],columns:[{columns:[Ue,Ee,ve,o]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[Xn,"auto",ve,Ee]}],basis:[{basis:[Wa,"full","auto",o,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ue,Wa,"auto","initial","none",Ee]}],grow:[{grow:["",Ue,ve,Ee]}],shrink:[{shrink:["",Ue,ve,Ee]}],order:[{order:[Xn,"first","last","none",ve,Ee]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],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":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[o,"screen",...W()]}],"min-w":[{"min-w":[o,"screen","none",...W()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,Hi,va]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ve,bu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gu,Ee]}],"font-family":[{font:[JC,Ee,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,ve,Ee]}],"line-clamp":[{"line-clamp":[Ue,"none",ve,bu]}],leading:[{leading:[i,...Y()]}],"list-image":[{"list-image":["none",ve,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ue,"from-font","auto",ve,va]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[Ue,"auto",ve,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,Ee]}],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",ve,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xn,ve,Ee],radial:["",ve,Ee],conic:[Xn,ve,Ee]},e_,QC]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:Ae()}],"border-w-x":[{"border-x":Ae()}],"border-w-y":[{"border-y":Ae()}],"border-w-s":[{"border-s":Ae()}],"border-w-e":[{"border-e":Ae()}],"border-w-t":[{"border-t":Ae()}],"border-w-r":[{"border-r":Ae()}],"border-w-b":[{"border-b":Ae()}],"border-w-l":[{"border-l":Ae()}],"divide-x":[{"divide-x":Ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Re(),"hidden","none"]}],"divide-style":[{divide:[...Re(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...Re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ue,ve,Ee]}],"outline-w":[{outline:["",Ue,Hi,va]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",d,lo,oo]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",c,lo,oo]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[Ue,va]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":Ae()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",h,lo,oo]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[Ue,ve,Ee]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"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":[Ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":Le()}],"mask-image-linear-to-pos":[{"mask-linear-to":Le()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":Le()}],"mask-image-t-to-pos":[{"mask-t-to":Le()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":Le()}],"mask-image-r-to-pos":[{"mask-r-to":Le()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":Le()}],"mask-image-b-to-pos":[{"mask-b-to":Le()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":Le()}],"mask-image-l-to-pos":[{"mask-l-to":Le()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":Le()}],"mask-image-x-to-pos":[{"mask-x-to":Le()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":Le()}],"mask-image-y-to-pos":[{"mask-y-to":Le()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[ve,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":Le()}],"mask-image-radial-to-pos":[{"mask-radial-to":Le()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[Ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":Le()}],"mask-image-conic-to-pos":[{"mask-conic-to":Le()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,Ee]}],filter:[{filter:["","none",ve,Ee]}],blur:[{blur:Ne()}],brightness:[{brightness:[Ue,ve,Ee]}],contrast:[{contrast:[Ue,ve,Ee]}],"drop-shadow":[{"drop-shadow":["","none",m,lo,oo]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",Ue,ve,Ee]}],"hue-rotate":[{"hue-rotate":[Ue,ve,Ee]}],invert:[{invert:["",Ue,ve,Ee]}],saturate:[{saturate:[Ue,ve,Ee]}],sepia:[{sepia:["",Ue,ve,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,Ee]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[Ue,ve,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[Ue,ve,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ue,ve,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ue,ve,Ee]}],"backdrop-invert":[{"backdrop-invert":["",Ue,ve,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[Ue,ve,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[Ue,ve,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",Ue,ve,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ue,"initial",ve,Ee]}],ease:[{ease:["linear","initial",E,ve,Ee]}],delay:[{delay:[Ue,ve,Ee]}],animate:[{animate:["none",k,ve,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,ve,Ee]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:rt()}],"rotate-x":[{"rotate-x":rt()}],"rotate-y":[{"rotate-y":rt()}],"rotate-z":[{"rotate-z":rt()}],scale:[{scale:lt()}],"scale-x":[{"scale-x":lt()}],"scale-y":[{"scale-y":lt()}],"scale-z":[{"scale-z":lt()}],"scale-3d":["scale-3d"],skew:[{skew:Ct()}],"skew-x":[{"skew-x":Ct()}],"skew-y":[{"skew-y":Ct()}],transform:[{transform:[ve,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_t()}],"translate-x":[{"translate-x":_t()}],"translate-y":[{"translate-y":_t()}],"translate-z":[{"translate-z":_t()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"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",ve,Ee]}],"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":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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",ve,Ee]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[Ue,Hi,va,bu]}],stroke:[{stroke:["none",...X()]}],"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"]}},a_=BC(n_),i_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o_={};function Sf(e,t){return(o_.jsx?s_:i_).test(e)}const l_=/[ \t\n\f\r]/g;function u_(e){return typeof e=="object"?e.type==="text"?Cf(e.value):!1:Cf(e)}function Cf(e){return e.replace(l_,"")===""}var Ga={},xu,_f;function c_(){if(_f)return xu;_f=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=`
|
|
399
|
-
`,u="/",d="*",c="",h="comment",m="declaration";xu=function(x,T){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];T=T||{};var E=1,k=1;function _(C){var H=C.match(t);H&&(E+=H.length);var j=C.lastIndexOf(l);k=~j?C.length-j:k+C.length}function P(){var C={line:E,column:k};return function(H){return H.position=new U(C),Y(),H}}function U(C){this.start=C,this.end={line:E,column:k},this.source=T.source}U.prototype.content=x;function D(C){var H=new Error(T.source+":"+E+":"+k+": "+C);if(H.reason=C,H.filename=T.source,H.line=E,H.column=k,H.source=x,!T.silent)throw H}function V(C){var H=C.exec(x);if(H){var j=H[0];return _(j),x=x.slice(j.length),H}}function Y(){V(r)}function ee(C){var H;for(C=C||[];H=F();)H!==!1&&C.push(H);return C}function F(){var C=P();if(!(u!=x.charAt(0)||d!=x.charAt(1))){for(var H=2;c!=x.charAt(H)&&(d!=x.charAt(H)||u!=x.charAt(H+1));)++H;if(H+=2,c===x.charAt(H-1))return D("End of comment missing");var j=x.slice(2,H-2);return k+=2,_(j),x=x.slice(H),k+=2,C({type:h,comment:j})}}function ne(){var C=P(),H=V(n);if(H){if(F(),!V(a))return D("property missing ':'");var j=V(i),q=C({type:m,property:b(H[0].replace(e,c)),value:j?b(j[0].replace(e,c)):c});return V(s),q}}function $(){var C=[];ee(C);for(var H;H=ne();)H!==!1&&(C.push(H),ee(C));return C}return Y(),$()};function b(x){return x?x.replace(o,c):c}return xu}var Nf;function d_(){if(Nf)return Ga;Nf=1;var e=Ga&&Ga.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.default=r;var t=e(c_());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 Ga}var Ui={},If;function h_(){if(If)return Ui;If=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.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 Ui.camelCase=l,Ui}var ji,Of;function f_(){if(Of)return ji;Of=1;var e=ji&&ji.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(d_()),r=h_();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,ji=n,ji}var m_=f_();const p_=L1(m_);function ds(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Rf(e.position):"start"in e||"end"in e?Rf(e):"line"in e||"column"in e?T0(e):""}function T0(e){return Df(e&&e.line)+":"+Df(e&&e.column)}function Rf(e){return T0(e&&e.start)+"-"+T0(e&&e.end)}function Df(e){return e&&typeof e=="number"?e:1}class $t 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=ds(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}}$t.prototype.file="";$t.prototype.name="";$t.prototype.reason="";$t.prototype.message="";$t.prototype.stack="";$t.prototype.column=void 0;$t.prototype.line=void 0;$t.prototype.ancestors=void 0;$t.prototype.cause=void 0;$t.prototype.fatal=void 0;$t.prototype.place=void 0;$t.prototype.ruleId=void 0;$t.prototype.source=void 0;const Uc={}.hasOwnProperty,g_=new Map,b_=/[A-Z]/g,x_=new Set(["table","tbody","thead","tfoot","tr"]),y_=new Set(["td","th"]),t4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function E_(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=__(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=C_(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"?wi:pl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=r4(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function r4(e,t,r){if(t.type==="element")return v_(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return T_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return k_(e,t,r);if(t.type==="mdxjsEsm")return w_(e,t);if(t.type==="root")return A_(e,t,r);if(t.type==="text")return S_(e,t)}function v_(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=wi,e.schema=a),e.ancestors.push(t);const i=a4(e,t.tagName,!1),s=N_(e,t);let o=$c(e,t);return x_.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!u_(l):!0})),n4(e,s,i,t),jc(s,o),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function T_(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)}ks(e,t.position)}function w_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ks(e,t.position)}function k_(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=wi,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:a4(e,t.name,!0),s=I_(e,t),o=$c(e,t);return n4(e,s,i,t),jc(s,o),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function A_(e,t,r){const n={};return jc(n,$c(e,t)),e.create(t,e.Fragment,n,r)}function S_(e,t){return t.value}function n4(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function jc(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function C_(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 __(e,t){return r;function r(n,a,i,s){const o=Array.isArray(i.children),l=yn(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 N_(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&Uc.call(t.properties,a)){const i=O_(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&y_.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 I_(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 ks(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 ks(e,t.position);else i=n.value===null?!0:n.value;r[a]=i}return r}function $c(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:g_;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=r4(e,i,s);o!==void 0&&r.push(o)}return r}function O_(e,t,r){const n=tc(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?jm(r):$m(r)),n.property==="style"){let a=typeof r=="object"?r:R_(e,String(r));return e.stylePropertyNameCase==="css"&&(a=D_(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?j8[n.property]||n.property:n.attribute,r]}}function R_(e,t){try{return p_(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new $t("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=t4+"#cannot-parse-style-attribute",a}}function a4(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=Sf(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=Sf(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return Uc.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);ks(e)}function ks(e,t){const r=new $t("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=t4+"#cannot-handle-mdx-estrees-without-createevaluater",r}function D_(e){const t={};let r;for(r in e)Uc.call(e,r)&&(t[L_(r)]=e[r]);return t}function L_(e){let t=e.replace(b_,M_);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function M_(e){return"-"+e.toLowerCase()}const P_={tokenize:B_};function B_(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"),qe(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 ke(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const F_={tokenize:z_},Lf={tokenize:H_};function z_(e){const t=this,r=[];let n=0,a,i,s;return o;function o(_){if(n<r.length){const P=r[n];return t.containerState=P[1],e.attempt(P[0].continuation,l,u)(_)}return u(_)}function l(_){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&k();const P=t.events.length;let U=P,D;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){D=t.events[U][1].end;break}E(n);let V=P;for(;V<t.events.length;)t.events[V][1].end={...D},V++;return Pt(t.events,U+1,0,t.events.slice(P)),t.events.length=V,u(_)}return o(_)}function u(_){if(n===r.length){if(!a)return h(_);if(a.currentConstruct&&a.currentConstruct.concrete)return b(_);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lf,d,c)(_)}function d(_){return a&&k(),E(n),h(_)}function c(_){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,b(_)}function h(_){return t.containerState={},e.attempt(Lf,m,b)(_)}function m(_){return n++,r.push([t.currentConstruct,t.containerState]),h(_)}function b(_){if(_===null){a&&k(),E(0),e.consume(_);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),x(_)}function x(_){if(_===null){T(e.exit("chunkFlow"),!0),E(0),e.consume(_);return}return ke(_)?(e.consume(_),T(e.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(e.consume(_),x)}function T(_,P){const U=t.sliceStream(_);if(P&&U.push(null),_.previous=i,i&&(i.next=_),i=_,a.defineSkip(_.start),a.write(U),t.parser.lazy[_.start.line]){let D=a.events.length;for(;D--;)if(a.events[D][1].start.offset<s&&(!a.events[D][1].end||a.events[D][1].end.offset>s))return;const V=t.events.length;let Y=V,ee,F;for(;Y--;)if(t.events[Y][0]==="exit"&&t.events[Y][1].type==="chunkFlow"){if(ee){F=t.events[Y][1].end;break}ee=!0}for(E(n),D=V;D<t.events.length;)t.events[D][1].end={...F},D++;Pt(t.events,Y+1,0,t.events.slice(V)),t.events.length=D}}function E(_){let P=r.length;for(;P-- >_;){const U=r[P];t.containerState=U[1],U[0].exit.call(t,e)}r.length=_}function k(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function H_(e,t,r){return qe(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const U_={tokenize:j_};function j_(e){const t=this,r=e.attempt(Fs,n,e.attempt(this.parser.constructs.flowInitial,a,qe(e,e.attempt(this.parser.constructs.flow,a,e.attempt(zk,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 $_={resolveAll:s4()},q_=i4("string"),V_=i4("text");function i4(e){return{resolveAll:s4(e==="text"?W_: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 h=-1;if(c)for(;++h<c.length;){const m=c[h];if(!m.previous||m.previous.call(n,n.previous))return!0}return!1}}}function s4(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 W_(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 G_={42:rr,43:rr,45:rr,48:rr,49:rr,50:rr,51:rr,52:rr,53:rr,54:rr,55:rr,56:rr,57:rr,62:Og},Y_={91:qk},X_={[-2]:mu,[-1]:mu,32:mu},K_={35:Kk,42:No,45:[bf,No],60:eA,61:bf,95:No,96:pf,126:pf},Q_={38:Dg,92:Rg},J_={[-5]:pu,[-4]:pu,[-3]:pu,33:xA,38:Dg,42:x0,60:[Ek,oA],91:EA,92:[Yk,Rg],93:zc,95:x0,96:Dk},Z_={null:[x0,$_]},eN={null:[42,95]},tN={null:[]},rN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:eN,contentInitial:Y_,disable:tN,document:G_,flow:K_,flowInitial:X_,insideSpan:Z_,string:Q_,text:J_},Symbol.toStringTag,{value:"Module"}));function nN(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:V(U),check:V(D),consume:k,enter:_,exit:P,interrupt:V(D,{interrupt:!0})},u={code:null,containerState:{},defineSkip:x,events:[],now:b,parser:e,previous:null,sliceSerialize:h,sliceStream:m,write:c};let d=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function c(ne){return s=Mt(s,ne),T(),s[s.length-1]!==null?[]:(Y(t,0),u.events=Ii(i,u.events,u),u.events)}function h(ne,$){return iN(m(ne),$)}function m(ne){return aN(s,ne)}function b(){const{_bufferIndex:ne,_index:$,line:C,column:H,offset:j}=n;return{_bufferIndex:ne,_index:$,line:C,column:H,offset:j}}function x(ne){a[ne.line]=ne.column,F()}function T(){let ne;for(;n._index<s.length;){const $=s[n._index];if(typeof $=="string")for(ne=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ne&&n._bufferIndex<$.length;)E($.charCodeAt(n._bufferIndex));else E($)}}function E(ne){d=d(ne)}function k(ne){ke(ne)?(n.line++,n.column=1,n.offset+=ne===-3?2:1,F()):ne!==-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=ne}function _(ne,$){const C=$||{};return C.type=ne,C.start=b(),u.events.push(["enter",C,u]),o.push(C),C}function P(ne){const $=o.pop();return $.end=b(),u.events.push(["exit",$,u]),$}function U(ne,$){Y(ne,$.from)}function D(ne,$){$.restore()}function V(ne,$){return C;function C(H,j,q){let W,X,ue,N;return Array.isArray(H)?be(H):"tokenize"in H?be([H]):he(H);function he(je){return Le;function Le(Ne){const rt=Ne!==null&&je[Ne],lt=Ne!==null&&je.null,Ct=[...Array.isArray(rt)?rt:rt?[rt]:[],...Array.isArray(lt)?lt:lt?[lt]:[]];return be(Ct)(Ne)}}function be(je){return W=je,X=0,je.length===0?q:O(je[X])}function O(je){return Le;function Le(Ne){return N=ee(),ue=je,je.partial||(u.currentConstruct=je),je.name&&u.parser.constructs.disable.null.includes(je.name)?Re():je.tokenize.call($?Object.assign(Object.create(u),$):u,l,Ae,Re)(Ne)}}function Ae(je){return ne(ue,N),j}function Re(je){return N.restore(),++X<W.length?O(W[X]):q}}}function Y(ne,$){ne.resolveAll&&!i.includes(ne)&&i.push(ne),ne.resolve&&Pt(u.events,$,u.events.length-$,ne.resolve(u.events.slice($),u)),ne.resolveTo&&(u.events=ne.resolveTo(u.events,u))}function ee(){const ne=b(),$=u.previous,C=u.currentConstruct,H=u.events.length,j=Array.from(o);return{from:H,restore:q};function q(){n=ne,u.previous=$,u.currentConstruct=C,u.events.length=H,o=j,F()}}function F(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function aN(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 iN(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=`
|
|
400
|
-
`;break}case-3:{s=`\r
|
|
401
|
-
`;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 sN(e){const n={constructs:Tg([rN,...(e||{}).extensions||[]]),content:a(P_),defined:[],document:a(F_),flow:a(U_),lazy:{},string:a(q_),text:a(V_)};return n;function a(i){return s;function s(o){return nN(n,i,o)}}}function oN(e){for(;!Lg(e););return e}const Mf=/[\0\t\n\r]/g;function lN(){let e=1,t="",r=!0,n;return a;function a(i,s,o){const l=[];let u,d,c,h,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(Mf.lastIndex=c,u=Mf.exec(i),h=u&&u.index!==void 0?u.index:i.length,m=i.charCodeAt(h),!u){t=i.slice(c);break}if(m===10&&c===h&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),c<h&&(l.push(i.slice(c,h)),e+=h-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=h+1}return o&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const o4={}.hasOwnProperty;function uN(e,t,r){return typeof t!="string"&&(r=t,t=void 0),cN(r)(oN(sN(r).document().write(lN()(e,t,!0))))}function cN(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ft),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:i(vn),blockQuote:i(lt),characterEscape:ee,characterReference:ee,codeFenced:i(Ct),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Ct,s),codeText:i(_t,s),codeTextData:ee,data:ee,codeFlowValue:ee,definition:i(Ir),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Er),hardBreakEscape:i(Vr),hardBreakTrailing:i(Vr),htmlFlow:i(Jt,s),htmlFlowData:ee,htmlText:i(Jt,s),htmlTextData:ee,image:i(Or),label:s,link:i(ft),listItem:i(Pl),listItemValue:h,listOrdered:i(js,c),listUnordered:i(js),paragraph:i(Vt),reference:O,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(vn),strong:i(Un),thematicBreak:i(Fl)},exit:{atxHeading:l(),atxHeadingSequence:U,autolink:l(),autolinkEmail:rt,autolinkProtocol:Ne,blockQuote:l(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:je,characterReference:Le,codeFenced:l(T),codeFencedFence:x,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:F,codeIndented:l(E),codeText:l(j),codeTextData:F,data:F,definition:l(),definitionDestinationString:P,definitionLabelString:k,definitionTitleString:_,emphasis:l(),hardBreakEscape:l($),hardBreakTrailing:l($),htmlFlow:l(C),htmlFlowData:F,htmlText:l(H),htmlTextData:F,image:l(W),label:ue,labelText:X,lineEnding:ne,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ae,resourceDestinationString:N,resourceTitleString:he,resource:be,setextHeading:l(Y),setextHeadingLineSequence:V,setextHeadingText:D,strong:l(),thematicBreak:l()}};l4(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(te){let me={type:"root",children:[]};const Ie={stack:[me],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:d,data:r},He=[];let Ye=-1;for(;++Ye<te.length;)if(te[Ye][1].type==="listOrdered"||te[Ye][1].type==="listUnordered")if(te[Ye][0]==="enter")He.push(Ye);else{const Zt=He.pop();Ye=a(te,Zt,Ye)}for(Ye=-1;++Ye<te.length;){const Zt=t[te[Ye][0]];o4.call(Zt,te[Ye][1].type)&&Zt[te[Ye][1].type].call(Object.assign({sliceSerialize:te[Ye][2].sliceSerialize},Ie),te[Ye][1])}if(Ie.tokenStack.length>0){const Zt=Ie.tokenStack[Ie.tokenStack.length-1];(Zt[1]||Pf).call(Ie,void 0,Zt[0])}for(me.position={start:Kn(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:Kn(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<t.transforms.length;)me=t.transforms[Ye](me)||me;return me}function a(te,me,Ie){let He=me-1,Ye=-1,Zt=!1,er,Rr,pa,jn;for(;++He<=Ie;){const Ft=te[He];switch(Ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ft[0]==="enter"?Ye++:Ye--,jn=void 0;break}case"lineEndingBlank":{Ft[0]==="enter"&&(er&&!jn&&!Ye&&!pa&&(pa=He),jn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:jn=void 0}if(!Ye&&Ft[0]==="enter"&&Ft[1].type==="listItemPrefix"||Ye===-1&&Ft[0]==="exit"&&(Ft[1].type==="listUnordered"||Ft[1].type==="listOrdered")){if(er){let $n=He;for(Rr=void 0;$n--;){const ur=te[$n];if(ur[1].type==="lineEnding"||ur[1].type==="lineEndingBlank"){if(ur[0]==="exit")continue;Rr&&(te[Rr][1].type="lineEndingBlank",Zt=!0),ur[1].type="lineEnding",Rr=$n}else if(!(ur[1].type==="linePrefix"||ur[1].type==="blockQuotePrefix"||ur[1].type==="blockQuotePrefixWhitespace"||ur[1].type==="blockQuoteMarker"||ur[1].type==="listItemIndent"))break}pa&&(!Rr||pa<Rr)&&(er._spread=!0),er.end=Object.assign({},Rr?te[Rr][1].start:Ft[1].end),te.splice(Rr||He,0,["exit",er,Ft[2]]),He++,Ie++}if(Ft[1].type==="listItemPrefix"){const $n={type:"listItem",_spread:!1,start:Object.assign({},Ft[1].start),end:void 0};er=$n,te.splice(He,0,["enter",$n,Ft[2]]),He++,Ie++,pa=void 0,jn=!0}}}return te[me][1]._spread=Zt,Ie}function i(te,me){return Ie;function Ie(He){o.call(this,te(He),He),me&&me.call(this,He)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(te,me,Ie){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([me,Ie||void 0]),te.position={start:Kn(me.start),end:void 0}}function l(te){return me;function me(Ie){te&&te.call(this,Ie),u.call(this,Ie)}}function u(te,me){const Ie=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==te.type&&(me?me.call(this,te,He[0]):(He[1]||Pf).call(this,te,He[0]));else throw new Error("Cannot close `"+te.type+"` ("+ds({start:te.start,end:te.end})+"): it’s not open");Ie.position.end=Kn(te.end)}function d(){return Mc(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(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 x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){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 k(te){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=me,Ie.identifier=Hr(this.sliceSerialize(te)).toLowerCase()}function _(){const te=this.resume(),me=this.stack[this.stack.length-1];me.title=te}function P(){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 Ie=this.sliceSerialize(te).length;me.depth=Ie}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function V(te){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(te){const Ie=this.stack[this.stack.length-1].children;let He=Ie[Ie.length-1];(!He||He.type!=="text")&&(He=Bl(),He.position={start:Kn(te.start),end:void 0},Ie.push(He)),this.stack.push(He)}function F(te){const me=this.stack.pop();me.value+=this.sliceSerialize(te),me.position.end=Kn(te.end)}function ne(te){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ie=me.children[me.children.length-1];Ie.position.end=Kn(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(me.type)&&(ee.call(this,te),F.call(this,te))}function $(){this.data.atHardBreak=!0}function C(){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 j(){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 W(){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 X(te){const me=this.sliceSerialize(te),Ie=this.stack[this.stack.length-2];Ie.label=qw(me),Ie.identifier=Hr(me).toLowerCase()}function ue(){const te=this.stack[this.stack.length-1],me=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){const He=te.children;Ie.children=He}else Ie.alt=me}function N(){const te=this.resume(),me=this.stack[this.stack.length-1];me.url=te}function he(){const te=this.resume(),me=this.stack[this.stack.length-1];me.title=te}function be(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function Ae(te){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=me,Ie.identifier=Hr(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function Re(te){this.data.characterReferenceType=te.type}function je(te){const me=this.sliceSerialize(te),Ie=this.data.characterReferenceType;let He;Ie?(He=vg(me,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=Bc(me);const Ye=this.stack[this.stack.length-1];Ye.value+=He}function Le(te){const me=this.stack.pop();me.position.end=Kn(te.end)}function Ne(te){F.call(this,te);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(te)}function rt(te){F.call(this,te);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(te)}function lt(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function _t(){return{type:"inlineCode",value:""}}function Ir(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Er(){return{type:"emphasis",children:[]}}function vn(){return{type:"heading",depth:0,children:[]}}function Vr(){return{type:"break"}}function Jt(){return{type:"html",value:""}}function Or(){return{type:"image",title:null,url:"",alt:null}}function ft(){return{type:"link",title:null,url:"",children:[]}}function js(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function Pl(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function Vt(){return{type:"paragraph",children:[]}}function Un(){return{type:"strong",children:[]}}function Bl(){return{type:"text",value:""}}function Fl(){return{type:"thematicBreak"}}}function Kn(e){return{line:e.line,column:e.column,offset:e.offset}}function l4(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?l4(e,n):dN(e,n)}}function dN(e,t){let r;for(r in t)if(o4.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 Pf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ds({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is still open")}function hN(e){const t=this;t.parser=r;function r(n){return uN(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function fN(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 mN(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
402
|
-
`}]}function pN(e,t){const r=t.value?t.value+`
|
|
403
|
-
`:"",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 gN(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bN(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xN(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=Oi(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 yN(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 EN(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function u4(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 vN(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return u4(e,t);const a={src:Oi(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 TN(e,t){const r={src:Oi(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 wN(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 kN(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return u4(e,t);const a={href:Oi(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 AN(e,t){const r={href:Oi(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 SN(e,t,r){const n=e.all(t),a=r?CN(r):c4(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:`
|
|
404
|
-
`}),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:`
|
|
405
|
-
`});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=c4(r[n])}return t}function c4(e){const t=e.spread;return t??e.children.length>1}function _N(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 NN(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IN(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function ON(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function RN(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=yn(t.children[1]),l=Cl(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 DN(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],h={},m=s?s[l]:void 0;m&&(h.align=m);let b={type:"element",tagName:i,properties:h,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 LN(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Bf=9,Ff=32;function MN(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const i=[];for(;n;)i.push(zf(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return i.push(zf(t.slice(a),a>0,!1)),i.join("")}function zf(e,t,r){let n=0,a=e.length;if(t){let i=e.codePointAt(n);for(;i===Bf||i===Ff;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(a-1);for(;i===Bf||i===Ff;)a--,i=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function PN(e,t){const r={type:"text",value:MN(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function BN(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const FN={blockquote:fN,break:mN,code:pN,delete:gN,emphasis:bN,footnoteReference:xN,heading:yN,html:EN,imageReference:vN,image:TN,inlineCode:wN,linkReference:kN,link:AN,listItem:SN,list:_N,paragraph:NN,root:IN,strong:ON,table:RN,tableCell:LN,tableRow:DN,text:PN,thematicBreak:BN,toml:uo,yaml:uo,definition:uo,footnoteDefinition:uo};function uo(){}function zN(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 HN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function UN(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||zN,n=e.options.footnoteBackLabel||HN,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(),h=Oi(c.toLowerCase());let m=0;const b=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++m<=x;){b.length>0&&b.push({type:"text",value:" "});let k=typeof r=="string"?r:r(l,m);typeof k=="string"&&(k={type:"text",value:k}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,m),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const T=d[d.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const k=T.children[T.children.length-1];k&&k.type==="text"?k.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...b)}else d.push(...b);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+h},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:{...Ia(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
406
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
407
|
-
`}]}}const w0={}.hasOwnProperty,jN={};function $N(e,t){const r=t||jN,n=new Map,a=new Map,i=new Map,s={...FN,...r.handlers},o={all:u,applyData:VN,definitionById:n,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:r,patch:qN,wrap:GN};return fi(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?n:a,h=String(d.identifier).toUpperCase();c.has(h)||c.set(h,d)}}),o;function l(d,c){const h=d.type,m=o.handlers[h];if(w0.call(o.handlers,h)&&m)return m(o,d,c);if(o.options.passThrough&&o.options.passThrough.includes(h)){if("children"in d){const{children:x,...T}=d,E=Ia(T);return E.children=o.all(d),E}return Ia(d)}return(o.options.unknownHandler||WN)(o,d,c)}function u(d){const c=[];if("children"in d){const h=d.children;let m=-1;for(;++m<h.length;){const b=o.one(h[m],d);if(b){if(m&&h[m-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Hf(b.value)),!Array.isArray(b)&&b.type==="element")){const x=b.children[0];x&&x.type==="text"&&(x.value=Hf(x.value))}Array.isArray(b)?c.push(...b):c.push(b)}}}return c}}function qN(e,t){e.position&&(t.position=$2(e))}function VN(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,Ia(i)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function WN(e,t){const r=t.data||{},n="value"in t&&!(w0.call(r,"hProperties")||w0.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 GN(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
|
408
|
-
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
409
|
-
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
410
|
-
`}),r}function Hf(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Uf(e,t){const r=$N(e,t),n=r.one(e,void 0),a=UN(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
411
|
-
`},a),i}function YN(e,t){return e&&"run"in e?async function(r,n){const a=Uf(r,{file:n,...t});await e.run(a,n)}:function(r,n){return Uf(r,{file:n,...e||t})}}function jf(e){if(e)throw e}var yu,$f;function XN(){if($f)return yu;$f=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 h;for(h in u);return typeof h>"u"||e.call(u,h)},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 yu=function l(){var u,d,c,h,m,b,x=arguments[0],T=1,E=arguments.length,k=!1;for(typeof x=="boolean"&&(k=x,x=arguments[1]||{},T=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});T<E;++T)if(u=arguments[T],u!=null)for(d in u)c=o(x,d),h=o(u,d),x!==h&&(k&&h&&(i(h)||(m=a(h)))?(m?(m=!1,b=c&&a(c)?c:[]):b=c&&i(c)?c:{},s(x,{name:d,newValue:l(k,b,h)})):typeof h<"u"&&s(x,{name:d,newValue:h}));return x},yu}var KN=XN();const Eu=L1(KN);function k0(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 QN(){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?JN(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 JN(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 an={basename:ZN,dirname:eI,extname:tI,join:rI,sep:"/"};function ZN(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zs(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 eI(e){if(zs(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 tI(e){zs(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 rI(...e){let t=-1,r;for(;++t<e.length;)zs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":nI(r)}function nI(e){zs(e);const t=e.codePointAt(0)===47;let r=aI(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function aI(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 zs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iI={cwd:sI};function sI(){return"/"}function A0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function oI(e){if(typeof e=="string")e=new URL(e);else if(!A0(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 lI(e)}function lI(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 vu=["history","path","basename","stem","extname","dirname"];class uI{constructor(t){let r;t?A0(t)?r={path:t}:typeof t=="string"||cI(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":iI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<vu.length;){const i=vu[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)vu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?an.basename(this.path):void 0}set basename(t){wu(t,"basename"),Tu(t,"basename"),this.path=an.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?an.dirname(this.path):void 0}set dirname(t){qf(this.basename,"dirname"),this.path=an.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?an.extname(this.path):void 0}set extname(t){if(Tu(t,"extname"),qf(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=an.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){A0(t)&&(t=oI(t)),wu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?an.basename(this.path,this.extname):void 0}set stem(t){wu(t,"stem"),Tu(t,"stem"),this.path=an.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 $t(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 Tu(e,t){if(e&&e.includes(an.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+an.sep+"`")}function wu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function qf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function cI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dI=(function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i}),hI={}.hasOwnProperty;class qc extends dI{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=QN()}copy(){const t=new qc;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(Eu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Su("data",this.frozen),this.namespace[t]=r,this):hI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Su("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=co(t),n=this.parser||this.Parser;return ku("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),ku("process",this.parser||this.Parser),Au("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(i,s){const o=co(t),l=n.parse(o);n.run(l,o,function(d,c,h){if(d||!c||!h)return u(d);const m=c,b=n.stringify(m,h);pI(b)?h.value=b:h.result=b,u(d,h)});function u(d,c){d||!c?s(d):i?i(c):r(void 0,c)}}}processSync(t){let r=!1,n;return this.freeze(),ku("processSync",this.parser||this.Parser),Au("processSync",this.compiler||this.Compiler),this.process(t,a),Wf("processSync","process",r),n;function a(i,s){r=!0,jf(i),n=s}}run(t,r,n){Vf(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=co(r);a.run(t,l,u);function u(d,c,h){const m=c||t;d?o(d):s?s(m):n(void 0,m,h)}}}runSync(t,r){let n=!1,a;return this.run(t,r,i),Wf("runSync","run",n),a;function i(s,o){jf(s),a=o,n=!0}}stringify(t,r){this.freeze();const n=co(r),a=this.compiler||this.Compiler;return Au("stringify",a),Vf(t),a(t,n)}use(t,...r){const n=this.attachers,a=this.namespace;if(Su("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=Eu(!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,h=-1;for(;++c<n.length;)if(n[c][0]===u){h=c;break}if(h===-1)n.push([u,...d]);else if(d.length>0){let[m,...b]=d;const x=n[h][1];k0(x)&&k0(m)&&(m=Eu(!0,x,m)),n[h]=[u,m,...b]}}}}const fI=new qc().freeze();function ku(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Au(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Su(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 Vf(e){if(!k0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Wf(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function co(e){return mI(e)?e:new uI(e)}function mI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pI(e){return typeof e=="string"||gI(e)}function gI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Vc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $a=Vc();function d4(e){$a=e}var hs={exec:()=>null};function Je(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(Kt.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,t)};return n}var Kt={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")},bI=/^(?:[ \t]*(?:\n|$))+/,xI=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yI=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,EI=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Wc=/(?:[*+-]|\d{1,9}[.)])/,h4=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f4=Je(h4).replace(/bull/g,Wc).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(),vI=Je(h4).replace(/bull/g,Wc).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(),Gc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,TI=/^[^\n]+/,Yc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,wI=Je(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Yc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),kI=Je(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Wc).getRegex(),Ol="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",Xc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,AI=Je("^ {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",Xc).replace("tag",Ol).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),m4=Je(Gc).replace("hr",Hs).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",Ol).getRegex(),SI=Je(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",m4).getRegex(),Kc={blockquote:SI,code:xI,def:wI,fences:yI,heading:EI,hr:Hs,html:AI,lheading:f4,list:kI,newline:bI,paragraph:m4,table:hs,text:TI},Gf=Je("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hs).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",Ol).getRegex(),CI={...Kc,lheading:vI,table:Gf,paragraph:Je(Gc).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Gf).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",Ol).getRegex()},_I={...Kc,html:Je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xc).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:hs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Je(Gc).replace("hr",Hs).replace("heading",` *#{1,6} *[^
|
|
412
|
-
]`).replace("lheading",f4).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},NI=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,II=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,p4=/^( {2,}|\\)\n(?!\s*$)/,OI=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Rl=/[\p{P}\p{S}]/u,Qc=/[\s\p{P}\p{S}]/u,g4=/[^\s\p{P}\p{S}]/u,RI=Je(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Qc).getRegex(),b4=/(?!~)[\p{P}\p{S}]/u,DI=/(?!~)[\s\p{P}\p{S}]/u,LI=/(?:[^\s\p{P}\p{S}]|~)/u,MI=Je(/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(),x4=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,PI=Je(x4,"u").replace(/punct/g,Rl).getRegex(),BI=Je(x4,"u").replace(/punct/g,b4).getRegex(),y4="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",FI=Je(y4,"gu").replace(/notPunctSpace/g,g4).replace(/punctSpace/g,Qc).replace(/punct/g,Rl).getRegex(),zI=Je(y4,"gu").replace(/notPunctSpace/g,LI).replace(/punctSpace/g,DI).replace(/punct/g,b4).getRegex(),HI=Je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,g4).replace(/punctSpace/g,Qc).replace(/punct/g,Rl).getRegex(),UI=Je(/\\(punct)/,"gu").replace(/punct/g,Rl).getRegex(),jI=Je(/^<(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(),$I=Je(Xc).replace("(?:-->|$)","-->").getRegex(),qI=Je("^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",$I).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Jo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,VI=Je(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Jo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),E4=Je(/^!?\[(label)\]\[(ref)\]/).replace("label",Jo).replace("ref",Yc).getRegex(),v4=Je(/^!?\[(ref)\](?:\[\])?/).replace("ref",Yc).getRegex(),WI=Je("reflink|nolink(?!\\()","g").replace("reflink",E4).replace("nolink",v4).getRegex(),Yf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Jc={_backpedal:hs,anyPunctuation:UI,autolink:jI,blockSkip:MI,br:p4,code:II,del:hs,emStrongLDelim:PI,emStrongRDelimAst:FI,emStrongRDelimUnd:HI,escape:NI,link:VI,nolink:v4,punctuation:RI,reflink:E4,reflinkSearch:WI,tag:qI,text:OI,url:hs},GI={...Jc,link:Je(/^!?\[(label)\]\((.*?)\)/).replace("label",Jo).getRegex(),reflink:Je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Jo).getRegex()},S0={...Jc,emStrongRDelimAst:zI,emStrongLDelim:BI,url:Je(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Yf).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:Je(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Yf).getRegex()},YI={...S0,br:Je(p4).replace("{2,}","*").getRegex(),text:Je(S0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ho={normal:Kc,gfm:CI,pedantic:_I},$i={normal:Jc,gfm:S0,breaks:YI,pedantic:GI},XI={"&":"&","<":"<",">":">",'"':""","'":"'"},Xf=e=>XI[e];function Yr(e,t){if(t){if(Kt.escapeTest.test(e))return e.replace(Kt.escapeReplace,Xf)}else if(Kt.escapeTestNoEncode.test(e))return e.replace(Kt.escapeReplaceNoEncode,Xf);return e}function Kf(e){try{e=encodeURI(e).replace(Kt.percentDecode,"%")}catch{return null}return e}function Qf(e,t){var i;let r=e.replace(Kt.findPipe,(s,o,l)=>{let u=!1,d=o;for(;--d>=0&&l[d]==="\\";)u=!u;return u?"|":" |"}),n=r.split(Kt.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(Kt.slashPipe,"|");return n}function qi(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 KI(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 Jf(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 QI(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let a=n[1];return t.split(`
|
|
413
|
-
`).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(`
|
|
414
|
-
`)}var Zo=class{constructor(e){Xe(this,"options");Xe(this,"rules");Xe(this,"lexer");this.options=e||$a}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:qi(r,`
|
|
415
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=QI(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=qi(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:qi(t[0],`
|
|
416
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=qi(t[0],`
|
|
417
|
-
`).split(`
|
|
418
|
-
`),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(`
|
|
419
|
-
`),d=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
420
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
421
|
-
${u}`:u,a=a?`${a}
|
|
422
|
-
${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 h=i.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let m=h,b=m.raw+`
|
|
423
|
-
`+r.join(`
|
|
424
|
-
`),x=this.blockquote(b);i[i.length-1]=x,n=n.substring(0,n.length-m.raw.length)+x.raw,a=a.substring(0,a.length-m.text.length)+x.text;break}else if((h==null?void 0:h.type)==="list"){let m=h,b=m.raw+`
|
|
425
|
-
`+r.join(`
|
|
426
|
-
`),x=this.list(b);i[i.length-1]=x,n=n.substring(0,n.length-h.raw.length)+x.raw,a=a.substring(0,a.length-m.raw.length)+x.raw,r=b.substring(i.at(-1).raw.length).split(`
|
|
427
|
-
`);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(`
|
|
428
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,E=>" ".repeat(3*E.length)),h=e.split(`
|
|
429
|
-
`,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(h)&&(u+=h+`
|
|
430
|
-
`,e=e.substring(h.length+1),l=!0),!l){let E=this.rules.other.nextBulletRegex(b),k=this.rules.other.hrRegex(b),_=this.rules.other.fencesBeginRegex(b),P=this.rules.other.headingBeginRegex(b),U=this.rules.other.htmlBeginRegex(b);for(;e;){let D=e.split(`
|
|
431
|
-
`,1)[0],V;if(h=D,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),V=h):V=h.replace(this.rules.other.tabCharGlobal," "),_.test(h)||P.test(h)||U.test(h)||E.test(h)||k.test(h))break;if(V.search(this.rules.other.nonSpaceChar)>=b||!h.trim())d+=`
|
|
432
|
-
`+V.slice(b);else{if(m||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(c)||P.test(c)||k.test(c))break;d+=`
|
|
433
|
-
`+h}!m&&!h.trim()&&(m=!0),u+=D+`
|
|
434
|
-
`,e=e.substring(D.length+1),c=V.slice(b)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(s=!0));let x=null,T;this.options.gfm&&(x=this.rules.other.listIsTask.exec(d),x&&(T=x[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:u,task:!!x,checked:T,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=Qf(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(`
|
|
435
|
-
`):[],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(Qf(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)===`
|
|
436
|
-
`?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=qi(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=KI(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)),Jf(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 Jf(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 h=c.slice(2,-2);return{type:"strong",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}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}}}},wr=class C0{constructor(t){Xe(this,"tokens");Xe(this,"options");Xe(this,"state");Xe(this,"tokenizer");Xe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||$a,this.options.tokenizer=this.options.tokenizer||new Zo,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:Kt,block:ho.normal,inline:$i.normal};this.options.pedantic?(r.block=ho.pedantic,r.inline=$i.pedantic):this.options.gfm&&(r.block=ho.gfm,this.options.breaks?r.inline=$i.breaks:r.inline=$i.gfm),this.tokenizer.rules=r}static get rules(){return{block:ho,inline:$i}}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(Kt.carriageReturn,`
|
|
437
|
-
`),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(Kt.tabCharGlobal," ").replace(Kt.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+=`
|
|
438
|
-
`: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(`
|
|
439
|
-
`)?"":`
|
|
440
|
-
`)+o.raw,u.text+=`
|
|
441
|
-
`+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(`
|
|
442
|
-
`)?"":`
|
|
443
|
-
`)+o.raw,u.text+=`
|
|
444
|
-
`+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(h=>{c=h.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(`
|
|
445
|
-
`)?"":`
|
|
446
|
-
`)+o.raw,u.text+=`
|
|
447
|
-
`+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(`
|
|
448
|
-
`)?"":`
|
|
449
|
-
`)+o.raw,u.text+=`
|
|
450
|
-
`+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 h=Object.keys(this.tokens.links);if(h.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.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 h;if((d=(u=this.options.extensions)==null?void 0:u.inline)!=null&&d.some(b=>(h=b.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let b=r.at(-1);h.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=h.raw,b.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,s)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let m=t;if((c=this.options.extensions)!=null&&c.startInline){let b=1/0,x=t.slice(1),T;this.options.extensions.startInline.forEach(E=>{T=E.call({lexer:this},x),typeof T=="number"&&T>=0&&(b=Math.min(b,T))}),b<1/0&&b>=0&&(m=t.substring(0,b+1))}if(h=this.tokenizer.inlineText(m)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(s=h.raw.slice(-1)),i=!0;let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=h.raw,b.text+=h.text):r.push(h);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}},el=class{constructor(e){Xe(this,"options");Xe(this,"parser");this.options=e||$a}space(e){return""}code({text:e,lang:t,escaped:r}){var i;let n=(i=(t||"").match(Kt.notSpaceStart))==null?void 0:i[0],a=e.replace(Kt.endingNewline,"")+`
|
|
451
|
-
`;return n?'<pre><code class="language-'+Yr(n)+'">'+(r?a:Yr(a,!0))+`</code></pre>
|
|
452
|
-
`:"<pre><code>"+(r?a:Yr(a,!0))+`</code></pre>
|
|
453
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
454
|
-
${this.parser.parse(e)}</blockquote>
|
|
455
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
456
|
-
`}hr(e){return`<hr>
|
|
457
|
-
`}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+`>
|
|
458
|
-
`+n+"</"+a+`>
|
|
459
|
-
`}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+" "+Yr(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>
|
|
460
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
461
|
-
`}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>
|
|
462
|
-
<thead>
|
|
463
|
-
`+t+`</thead>
|
|
464
|
-
`+n+`</table>
|
|
465
|
-
`}tablerow({text:e}){return`<tr>
|
|
466
|
-
${e}</tr>
|
|
467
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
468
|
-
`}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>${Yr(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=Kf(e);if(a===null)return n;e=a;let i='<a href="'+e+'"';return t&&(i+=' title="'+Yr(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=Kf(e);if(a===null)return Yr(r);e=a;let i=`<img src="${e}" alt="${r}"`;return t&&(i+=` title="${Yr(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Yr(e.text)}},Zc=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""}},zr=class _0{constructor(t){Xe(this,"options");Xe(this,"renderer");Xe(this,"textRenderer");this.options=t||$a,this.options.renderer=this.options.renderer||new el,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zc}static parse(t,r){return new _0(r).parse(t)}static parseInline(t,r){return new _0(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+=`
|
|
469
|
-
`+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}},yo,Zi=(yo=class{constructor(e){Xe(this,"options");Xe(this,"block");this.options=e||$a}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?wr.lex:wr.lexInline}provideParser(){return this.block?zr.parse:zr.parseInline}},Xe(yo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Xe(yo,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),yo),JI=class{constructor(...e){Xe(this,"defaults",Vc());Xe(this,"options",this.setOptions);Xe(this,"parse",this.parseMarkdown(!0));Xe(this,"parseInline",this.parseMarkdown(!1));Xe(this,"Parser",zr);Xe(this,"Renderer",el);Xe(this,"TextRenderer",Zc);Xe(this,"Lexer",wr);Xe(this,"Tokenizer",Zo);Xe(this,"Hooks",Zi);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 el(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 Zo(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 Zi;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];Zi.passThroughHooks.has(i)?a[s]=u=>{if(this.defaults.async&&Zi.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 wr.lex(e,t??this.defaults)}parser(e,t){return zr.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?wr.lex:wr.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?zr.parse:zr.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?wr.lex:wr.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?zr.parse:zr.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+=`
|
|
470
|
-
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+Yr(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Ra=new JI;function Ze(e,t){return Ra.parse(e,t)}Ze.options=Ze.setOptions=function(e){return Ra.setOptions(e),Ze.defaults=Ra.defaults,d4(Ze.defaults),Ze};Ze.getDefaults=Vc;Ze.defaults=$a;Ze.use=function(...e){return Ra.use(...e),Ze.defaults=Ra.defaults,d4(Ze.defaults),Ze};Ze.walkTokens=function(e,t){return Ra.walkTokens(e,t)};Ze.parseInline=Ra.parseInline;Ze.Parser=zr;Ze.parser=zr.parse;Ze.Renderer=el;Ze.TextRenderer=Zc;Ze.Lexer=wr;Ze.lexer=wr.lex;Ze.Tokenizer=Zo;Ze.Hooks=Zi;Ze.parse=Ze;Ze.options;Ze.setOptions;Ze.use;Ze.walkTokens;Ze.parseInline;zr.parse;wr.lex;var Fe=(...e)=>a_(Bt(e)),ui=(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)},ZI=A.createContext({code:""}),T4=()=>A.useContext(ZI),Zf=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:a,code:i,...s})=>{let[o,l]=A.useState(!1),u=A.useRef(0),{code:d}=T4(),{isAnimating:c}=A.useContext($r),h=i??d,m=async()=>{var x;if(typeof window>"u"||!((x=navigator==null?void 0:navigator.clipboard)!=null&&x.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(h),l(!0),e==null||e(),u.current=window.setTimeout(()=>l(!1),r))}catch(T){t==null||t(T)}};A.useEffect(()=>()=>{window.clearTimeout(u.current)},[]);let b=o?Ug:jg;return v.jsx("button",{className:Fe("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??v.jsx(b,{size:14})})},e1={"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"},eO=({onDownload:e,onError:t,language:r,children:n,className:a,code:i,...s})=>{let{code:o}=T4(),{isAnimating:l}=A.useContext($r),u=i??o,d=`file.${r&&r in e1?e1[r]:"txt"}`,c="text/plain",h=()=>{try{ui(d,u,c),e==null||e()}catch(m){t==null||t(m)}};return v.jsx("button",{className:Fe("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:h,title:"Download file",type:"button",...s,children:n??v.jsx(Il,{size:14})})},t1=()=>v.jsxs("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[v.jsx("div",{className:"h-[46px] w-full bg-muted/80"}),v.jsx("div",{className:"flex w-full items-center justify-center p-4",children:v.jsx(sC,{className:"size-4 animate-spin"})})]}),tO=/\.[^/.]+$/,rO=({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,h="png";c.includes("jpeg")||c.includes("jpg")?h="jpg":c.includes("png")?h="png":c.includes("svg")?h="svg":c.includes("gif")?h="gif":c.includes("webp")&&(h="webp"),d=`${(n||o||"image").replace(tO,"")}.${h}`}ui(d,s,s.type)}catch(s){console.error("Failed to download image:",s)}};return r?v.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[v.jsx("img",{alt:n,className:Fe("max-w-full rounded-lg",t),"data-streamdown":"image",src:r,...a}),v.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),v.jsx("button",{className:Fe("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:v.jsx(Il,{size:14})})]}):null},w4=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},r=(await fl(async()=>{const{default:n}=await import("./mermaid.core-CCG8erLJ.js").then(a=>a.bp);return{default:n}},__vite__mapDeps([0,1,2]))).default;return r.initialize(t),r},nO=(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(h=>{if(!h){i(new Error("Failed to create PNG blob"));return}a(h)},"image/png")},o.onerror=()=>i(new Error("Failed to load SVG image")),o.src=s})},aO=({chart:e,children:t,className:r,onDownload:n,config:a,onError:i})=>{let[s,o]=A.useState(!1),l=A.useRef(null),{isAnimating:u}=A.useContext($r),d=async c=>{try{if(c==="mmd"){ui("diagram.mmd",e,"text/plain"),o(!1),n==null||n(c);return}let h=await w4(a),m=e.split("").reduce((T,E)=>(T<<5)-T+E.charCodeAt(0)|0,0),b=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:x}=await h.render(b,e);if(!x){i==null||i(new Error("SVG not found. Please wait for the diagram to render."));return}if(c==="svg"){ui("diagram.svg",x,"image/svg+xml"),o(!1),n==null||n(c);return}if(c==="png"){let T=await nO(x);ui("diagram.png",T,"image/png"),n==null||n(c),o(!1);return}}catch(h){i==null||i(h)}};return A.useEffect(()=>{let c=h=>{l.current&&!l.current.contains(h.target)&&o(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[]),v.jsxs("div",{className:"relative",ref:l,children:[v.jsx("button",{className:Fe("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??v.jsx(Il,{size:14})}),s&&v.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:[v.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"}),v.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"}),v.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"})]})]})},fs=0,iO=()=>{fs+=1,fs===1&&(document.body.style.overflow="hidden")},sO=()=>{fs=Math.max(0,fs-1),fs===0&&(document.body.style.overflow="")},oO=({chart:e,config:t,onFullscreen:r,onExit:n,className:a,...i})=>{let[s,o]=A.useState(!1),{isAnimating:l,controls:u}=A.useContext($r),d=(()=>{if(typeof u=="boolean")return u;let h=u.mermaid;return h===!1?!1:h===!0||h===void 0?!0:h.panZoom!==!1})(),c=()=>{o(!s)};return A.useEffect(()=>{if(s){iO();let h=m=>{m.key==="Escape"&&o(!1)};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h),sO()}}},[s]),A.useEffect(()=>{s?r==null||r():n&&n()},[s,r,n]),v.jsxs(v.Fragment,{children:[v.jsx("button",{className:Fe("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:v.jsx(lC,{size:14})}),s&&v.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:c,onKeyDown:h=>{h.key==="Escape"&&c()},role:"button",tabIndex:0,children:[v.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:v.jsx(hC,{size:20})}),v.jsx("div",{className:"flex h-full w-full items-center justify-center p-4",onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),role:"presentation",children:v.jsx(Z4,{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})})]})]})},k4=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}},A4=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===`
|
|
471
|
-
`)&&(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(`
|
|
472
|
-
`)},lO=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===`
|
|
473
|
-
`||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===`
|
|
474
|
-
`?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(`
|
|
475
|
-
`)},Cu=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("")},uO=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=>Cu(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?Cu(o[u]):"";n[a]=`| ${l.join(" | ")} |`,a+=1}else{let l=o.map(u=>Cu(u));n[a]=`| ${l.join(" | ")} |`,a+=1}return n.join(`
|
|
476
|
-
`)},cO=({children:e,className:t,onCopy:r,onError:n,timeout:a=2e3})=>{let[i,s]=A.useState(!1),[o,l]=A.useState(!1),u=A.useRef(null),d=A.useRef(0),{isAnimating:c}=A.useContext($r),h=async b=>{var x,T;if(typeof window>"u"||!((x=navigator==null?void 0:navigator.clipboard)!=null&&x.write)){n==null||n(new Error("Clipboard API not available"));return}try{let E=(T=u.current)==null?void 0:T.closest('[data-streamdown="table-wrapper"]'),k=E==null?void 0:E.querySelector("table");if(!k){n==null||n(new Error("Table not found"));return}let _=k4(k),P=b==="csv"?A4(_):lO(_),U=new ClipboardItem({"text/plain":new Blob([P],{type:"text/plain"}),"text/html":new Blob([k.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)}};A.useEffect(()=>{let b=x=>{u.current&&!u.current.contains(x.target)&&s(!1)};return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b),window.clearTimeout(d.current)}},[]);let m=o?Ug:jg;return v.jsxs("div",{className:"relative",ref:u,children:[v.jsx("button",{className:Fe("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??v.jsx(m,{size:14})}),i&&v.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:[v.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),v.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]})]})},dO=({children:e,className:t,onDownload:r,onError:n})=>{let[a,i]=A.useState(!1),s=A.useRef(null),{isAnimating:o}=A.useContext($r),l=u=>{var d;try{let c=(d=s.current)==null?void 0:d.closest('[data-streamdown="table-wrapper"]'),h=c==null?void 0:c.querySelector("table");if(!h){n==null||n(new Error("Table not found"));return}let m=k4(h),b=u==="csv"?A4(m):uO(m);ui(`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 A.useEffect(()=>{let u=d=>{s.current&&!s.current.contains(d.target)&&i(!1)};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]),v.jsxs("div",{className:"relative",ref:s,children:[v.jsx("button",{className:Fe("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??v.jsx(Il,{size:14})}),a&&v.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:[v.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"}),v.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"})]})]})},hO=({children:e,className:t,showControls:r,...n})=>v.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[r&&v.jsxs("div",{className:"flex items-center justify-end gap-1",children:[v.jsx(cO,{}),v.jsx(dO,{})]}),v.jsx("div",{className:"overflow-x-auto",children:v.jsx("table",{className:Fe("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]}),fO=A.lazy(()=>fl(()=>import("./code-block-IT6T5CEO-CNZ5MxhC.js"),__vite__mapDeps([3,1])).then(e=>({default:e.CodeBlock}))),mO=A.lazy(()=>fl(()=>Promise.resolve().then(()=>OM),void 0).then(e=>({default:e.Mermaid}))),pO=/language-([^\s]+)/;function Dl(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 gt(e,t){return e.className===t.className&&Dl(e.node,t.node)}var N0=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,fo=(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},ed=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("ol",{className:Fe("list-inside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>gt(e,t));ed.displayName="MarkdownOl";var S4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("li",{className:Fe("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&Dl(e.node,t.node));S4.displayName="MarkdownLi";var C4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("ul",{className:Fe("list-inside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>gt(e,t));C4.displayName="MarkdownUl";var _4=A.memo(({className:e,node:t,...r})=>v.jsx("hr",{className:Fe("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r}),(e,t)=>gt(e,t));_4.displayName="MarkdownHr";var N4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("span",{className:Fe("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>gt(e,t));N4.displayName="MarkdownStrong";var I4=A.memo(({children:e,className:t,href:r,node:n,...a})=>{let i=r==="streamdown:incomplete-link";return v.jsx("a",{className:Fe("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)=>gt(e,t)&&e.href===t.href);I4.displayName="MarkdownA";var O4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("h1",{className:Fe("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>gt(e,t));O4.displayName="MarkdownH1";var R4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("h2",{className:Fe("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>gt(e,t));R4.displayName="MarkdownH2";var D4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("h3",{className:Fe("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>gt(e,t));D4.displayName="MarkdownH3";var L4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("h4",{className:Fe("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>gt(e,t));L4.displayName="MarkdownH4";var M4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("h5",{className:Fe("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>gt(e,t));M4.displayName="MarkdownH5";var P4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("h6",{className:Fe("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>gt(e,t));P4.displayName="MarkdownH6";var B4=A.memo(({children:e,className:t,node:r,...n})=>{let{controls:a}=A.useContext($r),i=N0(a,"table");return v.jsx(hO,{className:t,"data-streamdown":"table-wrapper",showControls:i,...n,children:e})},(e,t)=>gt(e,t));B4.displayName="MarkdownTable";var F4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("thead",{className:Fe("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>gt(e,t));F4.displayName="MarkdownThead";var z4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("tbody",{className:Fe("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>gt(e,t));z4.displayName="MarkdownTbody";var H4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("tr",{className:Fe("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>gt(e,t));H4.displayName="MarkdownTr";var U4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("th",{className:Fe("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>gt(e,t));U4.displayName="MarkdownTh";var j4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("td",{className:Fe("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>gt(e,t));j4.displayName="MarkdownTd";var $4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("blockquote",{className:Fe("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>gt(e,t));$4.displayName="MarkdownBlockquote";var q4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("sup",{className:Fe("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>gt(e,t));q4.displayName="MarkdownSup";var V4=A.memo(({children:e,className:t,node:r,...n})=>v.jsx("sub",{className:Fe("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>gt(e,t));V4.displayName="MarkdownSub";var W4=A.memo(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let a=s=>{var o,l;if(!A.isValidElement(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],d=!1,c=!1;for(let h of u)if(h){if(typeof h=="string")h.trim()!==""&&(d=!0);else if(A.isValidElement(h))if(((o=h.props)==null?void 0:o["data-footnote-backref"])!==void 0)c=!0;else{let m=Array.isArray(h.props.children)?h.props.children:[h.props.children];for(let b of m){if(typeof b=="string"&&b.trim()!==""){d=!0;break}if(A.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(!A.isValidElement(s))return s;if(s.type===ed){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)?v.jsx("section",{className:t,...n,children:i}):null}return v.jsx("section",{className:t,...n,children:e})},(e,t)=>gt(e,t));W4.displayName="MarkdownSection";var gO=({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}=A.useContext($r);if(o)return v.jsx("code",{className:Fe("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(pO),c=(s=d==null?void 0:d.at(1))!=null?s:"",h="";if(A.isValidElement(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?h=r.props.children:typeof r=="string"&&(h=r),c==="mermaid"){let b=N0(u,"mermaid"),x=fo(u,"download"),T=fo(u,"copy"),E=fo(u,"fullscreen"),k=fo(u,"panZoom");return v.jsx(A.Suspense,{fallback:v.jsx(t1,{}),children:v.jsxs("div",{className:Fe("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[b&&(x||T||E)&&v.jsxs("div",{className:"flex items-center justify-end gap-2",children:[x&&v.jsx(aO,{chart:h,config:l==null?void 0:l.config}),T&&v.jsx(Zf,{code:h}),E&&v.jsx(oO,{chart:h,config:l==null?void 0:l.config})]}),v.jsx(mO,{chart:h,config:l==null?void 0:l.config,showControls:k})]})})}let m=N0(u,"code");return v.jsx(A.Suspense,{fallback:v.jsx(t1,{}),children:v.jsx(fO,{className:Fe("overflow-x-auto border-border border-t",t),code:h,language:c,children:m&&v.jsxs(v.Fragment,{children:[v.jsx(eO,{code:h,language:c}),v.jsx(Zf,{})]})})})},G4=A.memo(gO,(e,t)=>e.className===t.className&&Dl(e.node,t.node));G4.displayName="MarkdownCode";var Y4=A.memo(rO,(e,t)=>e.className===t.className&&Dl(e.node,t.node));Y4.displayName="MarkdownImg";var X4=A.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&&A.isValidElement(i[0])&&((a=i[0].props.node)==null?void 0:a.tagName)==="img"?v.jsx(v.Fragment,{children:e}):v.jsx("p",{className:t,...n,children:e})},(e,t)=>gt(e,t));X4.displayName="MarkdownParagraph";var bO={ol:ed,li:S4,ul:C4,hr:_4,strong:N4,a:I4,h1:O4,h2:R4,h3:D4,h4:L4,h5:M4,h6:P4,table:B4,thead:F4,tbody:z4,tr:H4,th:U4,td:j4,blockquote:$4,code:G4,img:Y4,pre:({children:e})=>e,sup:q4,sub:V4,p:X4,section:W4},r1=[],n1={allowDangerousHtml:!0},mo=new WeakMap,xO=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 h=0;h<d.length;h+=1){let m=d[h];if(h>0&&(c+=","),Array.isArray(m)){let[b,x]=m;if(typeof b=="function"){let T=mo.get(b);T||(T=b.name,mo.set(b,T)),c+=T}else c+=String(b);c+=":",c+=JSON.stringify(x)}else if(typeof m=="function"){let b=mo.get(m);b||(b=m.name,mo.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()}},a1=new xO,K4=e=>{let t=yO(e),r=e.children||"";return vO(t.runSync(t.parse(r),r),e)},yO=e=>{let t=a1.get(e);if(t)return t;let r=EO(e);return a1.set(e,r),r},EO=e=>{let t=e.rehypePlugins||r1,r=e.remarkPlugins||r1,n=e.remarkRehypeOptions?{...n1,...e.remarkRehypeOptions}:n1;return fI().use(hN).use(r).use(YN,n).use(t)},vO=(e,t)=>E_(e,{Fragment:v.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0}),TO=/\[\^[^\]\s]{1,200}\](?!:)/,wO=/\[\^[^\]\s]{1,200}\]:/,kO=/<\/(\w+)>/,AO=/<(\w+)[\s>]/,_u=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
477
|
-
`||e[t]==="\r");)t+=1;return t+1<e.length&&e[t]==="$"&&e[t+1]==="$"},SO=e=>{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
478
|
-
`||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},Nu=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},CO=e=>{let t=TO.test(e),r=wO.test(e);if(t||r)return[e];let n=wr.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(kO);if(u){let d=u[1];i.at(-1)===d&&i.pop()}}continue}if(s.type==="html"&&s.block){let u=o.match(AO);if(u){let d=u[1];o.includes(`</${d}>`)||i.push(d)}}if(o.trim()==="$$"&&l>0){let u=a[l-1],d=_u(u),c=Nu(u);if(d&&c%2===1){a[l-1]=u+o;continue}}if(l>0&&SO(o)){let u=a[l-1],d=_u(u),c=Nu(u),h=Nu(o);if(d&&c%2===1&&!_u(o)&&h===1){a[l-1]=u+o;continue}}a.push(o)}return a},_O={raw:Hv,katex:[l0,{errorColor:"var(--color-muted-foreground)"}],sanitize:[Kv,{}],harden:[L8,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},NO={gfm:[tS,{}],math:[y0,{singleDollarTextMath:!1}],cjkFriendly:[wT,{}],cjkFriendlyGfmStrikethrough:[AT,{}]},IO=Object.values(_O),OO=Object.values(NO),RO={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0},$r=A.createContext(RO),Q4=A.memo(({content:e,shouldParseIncompleteMarkdown:t,...r})=>{let n=A.useMemo(()=>typeof e=="string"&&t?KS(e.trim()):e,[e,t]);return v.jsx(K4,{...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)});Q4.displayName="Block";var DO=["github-light","github-dark"],J4=A.memo(({children:e,mode:t="streaming",parseIncompleteMarkdown:r=!0,components:n,rehypePlugins:a=IO,remarkPlugins:i=OO,className:s,shikiTheme:o=DO,mermaid:l,controls:u=!0,isAnimating:d=!1,BlockComponent:c=Q4,parseMarkdownIntoBlocksFn:h=CO,...m})=>{let b=A.useId(),[x,T]=A.useTransition(),[E,k]=A.useState([]),_=A.useMemo(()=>h(typeof e=="string"?e:""),[e,h]);A.useEffect(()=>{t==="streaming"?T(()=>{k(_)}):k(_)},[_,t]);let P=t==="streaming"?E:_,U=A.useMemo(()=>P.map((Y,ee)=>`${b}-${ee}`),[P.length,b]),D=A.useMemo(()=>({shikiTheme:o,controls:u,isAnimating:d,mode:t,mermaid:l}),[o,u,d,t,l]),V=A.useMemo(()=>({...bO,...n}),[n]);return A.useEffect(()=>{if(!(Array.isArray(a)&&a.some($=>Array.isArray($)?$[0]===l0:$===l0)))return;let Y=!1;if(Array.isArray(i)){let $=i.find(C=>Array.isArray(C)?C[0]===y0:C===y0);$&&Array.isArray($)&&$[1]&&(Y=$[1].singleDollarTextMath===!0)}let ee=typeof e=="string"?e:"",F=ee.includes("$$"),ne=Y&&(/[^$]\$[^$]/.test(ee)||/^\$[^$]/.test(ee)||/[^$]\$$/.test(ee));(F||ne)&&fl(()=>Promise.resolve({}),__vite__mapDeps([4]))},[a,i,e]),t==="static"?v.jsx($r.Provider,{value:D,children:v.jsx("div",{className:Fe("space-y-4 whitespace-normal",s),children:v.jsx(K4,{components:V,rehypePlugins:a,remarkPlugins:i,...m,children:e})})}):v.jsx($r.Provider,{value:D,children:v.jsx("div",{className:Fe("space-y-4 whitespace-normal",s),children:P.map((Y,ee)=>v.jsx(c,{components:V,content:Y,index:ee,rehypePlugins:a,remarkPlugins:i,shouldParseIncompleteMarkdown:r,...m},U[ee]))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode);J4.displayName="Streamdown";var LO=({children:e,className:t,minZoom:r=.5,maxZoom:n=3,zoomStep:a=.1,showControls:i=!0,initialZoom:s=1,fullscreen:o=!1})=>{let l=A.useRef(null),u=A.useRef(null),[d,c]=A.useState(s),[h,m]=A.useState({x:0,y:0}),[b,x]=A.useState(!1),[T,E]=A.useState({x:0,y:0}),[k,_]=A.useState({x:0,y:0}),P=A.useCallback($=>{c(C=>Math.max(r,Math.min(n,C+$)))},[r,n]),U=A.useCallback(()=>{P(a)},[P,a]),D=A.useCallback(()=>{P(-a)},[P,a]),V=A.useCallback(()=>{c(s),m({x:0,y:0})},[s]),Y=A.useCallback($=>{$.preventDefault();let C=$.deltaY>0?-a:a;P(C)},[P,a]),ee=A.useCallback($=>{if($.button!==0||$.isPrimary===!1)return;x(!0),E({x:$.clientX,y:$.clientY}),_(h);let C=$.currentTarget;C instanceof HTMLElement&&C.setPointerCapture($.pointerId)},[h]),F=A.useCallback($=>{if(!b)return;$.preventDefault();let C=$.clientX-T.x,H=$.clientY-T.y;m({x:k.x+C,y:k.y+H})},[b,T,k]),ne=A.useCallback($=>{x(!1);let C=$.currentTarget;C instanceof HTMLElement&&C.releasePointerCapture($.pointerId)},[]);return A.useEffect(()=>{let $=l.current;if($)return $.addEventListener("wheel",Y,{passive:!1}),()=>{$.removeEventListener("wheel",Y)}},[Y]),A.useEffect(()=>{let $=u.current;if($&&b)return document.body.style.userSelect="none",$.addEventListener("pointermove",F,{passive:!1}),$.addEventListener("pointerup",ne),$.addEventListener("pointercancel",ne),()=>{document.body.style.userSelect="",$.removeEventListener("pointermove",F),$.removeEventListener("pointerup",ne),$.removeEventListener("pointercancel",ne)}},[b,F,ne]),v.jsxs("div",{className:Fe("relative",o?"h-full w-full":"w-full",t),ref:l,style:{cursor:b?"grabbing":"grab"},children:[i&&v.jsxs("div",{className:Fe("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:[v.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:v.jsx(mC,{size:16})}),v.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:D,title:"Zoom out",type:"button",children:v.jsx(gC,{size:16})}),v.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:V,title:"Reset zoom and pan",type:"button",children:v.jsx(cC,{size:16})})]}),v.jsx("div",{className:Fe("origin-center transition-transform duration-150 ease-out",o&&"flex w-full items-center justify-center"),onPointerDown:ee,ref:u,role:"application",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${d})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Z4=({chart:e,className:t,config:r,fullscreen:n=!1,showControls:a=!0})=>{let[i,s]=A.useState(null),[o,l]=A.useState(!0),[u,d]=A.useState(""),[c,h]=A.useState(""),[m,b]=A.useState(0),{mermaid:x}=A.useContext($r),T=x==null?void 0:x.errorComponent;if(A.useEffect(()=>{(async()=>{try{s(null),l(!0);let k=await w4(r),_=e.split("").reduce((D,V)=>(D<<5)-D+V.charCodeAt(0)|0,0),P=`mermaid-${Math.abs(_)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:U}=await k.render(P,e);d(U),h(U)}catch(k){if(!(c||u)){let _=k instanceof Error?k.message:"Failed to render Mermaid chart";s(_)}}finally{l(!1)}})()},[e,r,m]),o&&!u&&!c)return v.jsx("div",{className:Fe("my-4 flex justify-center p-4",t),children:v.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[v.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),v.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(i&&!u&&!c){let k=()=>b(_=>_+1);return T?v.jsx(T,{chart:e,error:i,retry:k}):v.jsxs("div",{className:Fe("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[v.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",i]}),v.jsxs("details",{className:"mt-2",children:[v.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),v.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 v.jsx(LO,{className:Fe(n?"h-full w-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:n,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:v.jsx("div",{"aria-label":"Mermaid chart",className:Fe("flex justify-center",n&&"h-full w-full items-center"),dangerouslySetInnerHTML:{__html:E},role:"img"})})};function MO({messages:e}){return e.length===0?v.jsx("div",{className:"text-center py-8 text-[11px]",style:{color:"var(--ds-gray-600)"},children:"No messages"}):v.jsx("div",{className:"flex flex-col gap-3 p-3",children:e.map((t,r)=>v.jsx(PO,{message:t},r))})}function PO({message:e}){const t=e.role,r=zO(e.content),n=FO(t);return v.jsxs("div",{className:"rounded-md border text-[11px]",style:{backgroundColor:n.bg,borderColor:n.border},children:[v.jsx("div",{className:"px-2.5 py-1 border-b text-[10px] font-medium uppercase tracking-wide",style:{borderColor:n.border,color:n.label},children:t}),v.jsx("div",{className:"px-2.5 py-2 space-y-2",children:r.map((a,i)=>v.jsx(BO,{part:a,role:t},i))})]})}function BO({part:e,role:t}){if(e.type==="text")return e.text?t==="assistant"?v.jsx("div",{className:"prose prose-sm max-w-none text-[11px] [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",style:{color:"var(--ds-gray-1000)"},children:v.jsx(J4,{children:e.text})}):v.jsx("div",{className:"whitespace-pre-wrap break-words",style:{color:"var(--ds-gray-1000)"},children:e.text}):null;if(e.type==="tool-call")return v.jsxs("div",{className:"rounded border px-2 py-1.5",style:{backgroundColor:"var(--ds-purple-100)",borderColor:"var(--ds-purple-300)"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-medium",children:[v.jsx("span",{children:"🔧"}),v.jsx("span",{style:{color:"var(--ds-purple-900)"},children:e.toolName})]}),e.input!=null&&v.jsx("pre",{className:"mt-1.5 text-[10px] overflow-x-auto p-1.5 rounded",style:{backgroundColor:"var(--ds-gray-100)",color:"var(--ds-gray-800)"},children:typeof e.input=="string"?e.input:JSON.stringify(e.input,null,2)})]});if(e.type==="tool-result"){const r=HO(e.output);return v.jsxs("div",{className:"rounded border px-2 py-1.5",style:{backgroundColor:"var(--ds-green-100)",borderColor:"var(--ds-green-300)"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-medium",children:[v.jsx("span",{children:"✓"}),v.jsxs("span",{style:{color:"var(--ds-green-900)"},children:[e.toolName," result"]})]}),r&&v.jsx("pre",{className:"mt-1.5 text-[10px] overflow-x-auto max-h-[80px] p-1.5 rounded",style:{backgroundColor:"var(--ds-gray-100)",color:"var(--ds-gray-800)"},children:r})]})}return null}function FO(e){switch(e){case"user":return{bg:"var(--ds-blue-100)",border:"var(--ds-blue-300)",label:"var(--ds-blue-700)"};case"assistant":return{bg:"var(--ds-gray-100)",border:"var(--ds-gray-300)",label:"var(--ds-gray-700)"};case"system":return{bg:"var(--ds-amber-100)",border:"var(--ds-amber-300)",label:"var(--ds-amber-700)"};case"tool":return{bg:"var(--ds-green-50)",border:"var(--ds-green-300)",label:"var(--ds-green-700)"};default:return{bg:"var(--ds-gray-100)",border:"var(--ds-gray-300)",label:"var(--ds-gray-700)"}}}function zO(e){return typeof e=="string"?[{type:"text",text:e}]:Array.isArray(e)?e.map(t=>typeof t=="string"?{type:"text",text:t}:(t==null?void 0:t.type)==="text"?{type:"text",text:String(t.text??"")}:(t==null?void 0:t.type)==="tool-call"?{type:"tool-call",toolName:t.toolName,input:t.input}:(t==null?void 0:t.type)==="tool-result"?{type:"tool-result",toolName:t.toolName,output:t.output}:{type:"text",text:""}):[]}function HO(e){if(e==null)return null;const t=typeof e=="string"?e:JSON.stringify(e,null,2);return t.length>500?`${t.slice(0,500)}...`:t}function Sn({summary:e,children:t,onToggle:r}){return v.jsxs("details",{className:"group",onToggle:n=>r==null?void 0:r(n.target.open),children:[v.jsx("summary",{className:"cursor-pointer rounded-md border px-2.5 py-1.5 text-xs hover:brightness-95",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-gray-100)",color:"var(--ds-gray-900)"},children:e}),v.jsxs("div",{className:"relative pl-6 mt-3",children:[v.jsx("div",{className:"absolute left-3 -top-3 w-px h-3",style:{backgroundColor:"var(--ds-gray-400)"}}),v.jsx("div",{className:"absolute left-3 top-0 w-3 h-3 border-l border-b rounded-bl-lg",style:{borderColor:"var(--ds-gray-400)"}}),v.jsx("div",{className:"absolute left-6 top-3 w-0 h-px -translate-y-px",style:{backgroundColor:"var(--ds-gray-400)"}}),v.jsx("div",{children:t})]})]})}var Oe=function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r},xe=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},ea,wa,Pr,Ja,es,Xr,Kr,Qr,Jr,Zr,en,tn,rn,ka,Za,ta,Io,ra;const UO=function(e){var t=131,r=137,n=0;e+="x";var a=Math.floor(9007199254740991/r);for(let i=0;i<e.length;i++)n>a&&(n=Math.floor(n/r)),n=n*t+e.charCodeAt(i);return n},ye="0123456789abcdef".split(""),jO=[-2147483648,8388608,32768,128],Mr=[24,16,8,0],po=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],It=[];class $O{constructor(t=!1,r=!1){ea.set(this,void 0),wa.set(this,void 0),Pr.set(this,void 0),Ja.set(this,void 0),es.set(this,void 0),Xr.set(this,void 0),Kr.set(this,void 0),Qr.set(this,void 0),Jr.set(this,void 0),Zr.set(this,void 0),en.set(this,void 0),tn.set(this,void 0),rn.set(this,void 0),ka.set(this,void 0),Za.set(this,void 0),ta.set(this,void 0),Io.set(this,0),ra.set(this,void 0),this.init(t,r)}init(t,r){r?(It[0]=It[16]=It[1]=It[2]=It[3]=It[4]=It[5]=It[6]=It[7]=It[8]=It[9]=It[10]=It[11]=It[12]=It[13]=It[14]=It[15]=0,Oe(this,wa,It)):Oe(this,wa,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t?(Oe(this,Xr,3238371032),Oe(this,Kr,914150663),Oe(this,Qr,812702999),Oe(this,Jr,4144912697),Oe(this,Zr,4290775857),Oe(this,en,1750603025),Oe(this,tn,1694076839),Oe(this,rn,3204075428)):(Oe(this,Xr,1779033703),Oe(this,Kr,3144134277),Oe(this,Qr,1013904242),Oe(this,Jr,2773480762),Oe(this,Zr,1359893119),Oe(this,en,2600822924),Oe(this,tn,528734635),Oe(this,rn,1541459225)),Oe(this,ea,Oe(this,ra,Oe(this,Pr,Oe(this,Za,0)))),Oe(this,Ja,Oe(this,ka,!1)),Oe(this,es,!0),Oe(this,ta,t)}update(t){if(xe(this,Ja))return this;let r;t instanceof ArrayBuffer?r=new Uint8Array(t):r=t;let n=0;const a=r.length,i=xe(this,wa);for(;n<a;){let s;if(xe(this,ka)&&(Oe(this,ka,!1),i[0]=xe(this,ea),i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),typeof r!="string")for(s=xe(this,ra);n<a&&s<64;++n)i[s>>2]|=r[n]<<Mr[s++&3];else for(s=xe(this,ra);n<a&&s<64;++n){let o=r.charCodeAt(n);o<128?i[s>>2]|=o<<Mr[s++&3]:o<2048?(i[s>>2]|=(192|o>>6)<<Mr[s++&3],i[s>>2]|=(128|o&63)<<Mr[s++&3]):o<55296||o>=57344?(i[s>>2]|=(224|o>>12)<<Mr[s++&3],i[s>>2]|=(128|o>>6&63)<<Mr[s++&3],i[s>>2]|=(128|o&63)<<Mr[s++&3]):(o=65536+((o&1023)<<10|r.charCodeAt(++n)&1023),i[s>>2]|=(240|o>>18)<<Mr[s++&3],i[s>>2]|=(128|o>>12&63)<<Mr[s++&3],i[s>>2]|=(128|o>>6&63)<<Mr[s++&3],i[s>>2]|=(128|o&63)<<Mr[s++&3])}Oe(this,Io,s),Oe(this,Pr,xe(this,Pr)+(s-xe(this,ra))),s>=64?(Oe(this,ea,i[16]),Oe(this,ra,s-64),this.hash(),Oe(this,ka,!0)):Oe(this,ra,s)}return xe(this,Pr)>4294967295&&(Oe(this,Za,xe(this,Za)+(xe(this,Pr)/4294967296<<0)),Oe(this,Pr,xe(this,Pr)%4294967296)),this}finalize(){if(xe(this,Ja))return;Oe(this,Ja,!0);const t=xe(this,wa),r=xe(this,Io);t[16]=xe(this,ea),t[r>>2]|=jO[r&3],Oe(this,ea,t[16]),r>=56&&(xe(this,ka)||this.hash(),t[0]=xe(this,ea),t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=xe(this,Za)<<3|xe(this,Pr)>>>29,t[15]=xe(this,Pr)<<3,this.hash()}hash(){let t=xe(this,Xr),r=xe(this,Kr),n=xe(this,Qr),a=xe(this,Jr),i=xe(this,Zr),s=xe(this,en),o=xe(this,tn),l=xe(this,rn);const u=xe(this,wa);let d,c,h,m,b,x,T,E,k,_;for(let P=16;P<64;++P)m=u[P-15],d=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=u[P-2],c=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,u[P]=u[P-16]+d+u[P-7]+c<<0;_=r&n;for(let P=0;P<64;P+=4)xe(this,es)?(xe(this,ta)?(T=300032,m=u[0]-1413257819,l=m-150054599<<0,a=m+24177077<<0):(T=704751109,m=u[0]-210244248,l=m-1521486534<<0,a=m+143694565<<0),Oe(this,es,!1)):(d=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),c=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),T=t&r,h=T^t&n^_,x=i&s^~i&o,m=l+c+x+po[P]+u[P],b=d+h,l=a+m<<0,a=m+b<<0),d=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),c=(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7),E=a&t,h=E^a&r^T,x=l&i^~l&s,m=o+c+x+po[P+1]+u[P+1],b=d+h,o=n+m<<0,n=m+b<<0,d=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),c=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),k=n&a,h=k^n&t^E,x=o&l^~o&i,m=s+c+x+po[P+2]+u[P+2],b=d+h,s=r+m<<0,r=m+b<<0,d=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),c=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),_=r&n,h=_^r&a^k,x=s&o^~s&l,m=i+c+x+po[P+3]+u[P+3],b=d+h,i=t+m<<0,t=m+b<<0;Oe(this,Xr,xe(this,Xr)+t<<0),Oe(this,Kr,xe(this,Kr)+r<<0),Oe(this,Qr,xe(this,Qr)+n<<0),Oe(this,Jr,xe(this,Jr)+a<<0),Oe(this,Zr,xe(this,Zr)+i<<0),Oe(this,en,xe(this,en)+s<<0),Oe(this,tn,xe(this,tn)+o<<0),Oe(this,rn,xe(this,rn)+l<<0)}hex(){this.finalize();const t=xe(this,Xr),r=xe(this,Kr),n=xe(this,Qr),a=xe(this,Jr),i=xe(this,Zr),s=xe(this,en),o=xe(this,tn),l=xe(this,rn);let u=ye[t>>28&15]+ye[t>>24&15]+ye[t>>20&15]+ye[t>>16&15]+ye[t>>12&15]+ye[t>>8&15]+ye[t>>4&15]+ye[t&15]+ye[r>>28&15]+ye[r>>24&15]+ye[r>>20&15]+ye[r>>16&15]+ye[r>>12&15]+ye[r>>8&15]+ye[r>>4&15]+ye[r&15]+ye[n>>28&15]+ye[n>>24&15]+ye[n>>20&15]+ye[n>>16&15]+ye[n>>12&15]+ye[n>>8&15]+ye[n>>4&15]+ye[n&15]+ye[a>>28&15]+ye[a>>24&15]+ye[a>>20&15]+ye[a>>16&15]+ye[a>>12&15]+ye[a>>8&15]+ye[a>>4&15]+ye[a&15]+ye[i>>28&15]+ye[i>>24&15]+ye[i>>20&15]+ye[i>>16&15]+ye[i>>12&15]+ye[i>>8&15]+ye[i>>4&15]+ye[i&15]+ye[s>>28&15]+ye[s>>24&15]+ye[s>>20&15]+ye[s>>16&15]+ye[s>>12&15]+ye[s>>8&15]+ye[s>>4&15]+ye[s&15]+ye[o>>28&15]+ye[o>>24&15]+ye[o>>20&15]+ye[o>>16&15]+ye[o>>12&15]+ye[o>>8&15]+ye[o>>4&15]+ye[o&15];return xe(this,ta)||(u+=ye[l>>28&15]+ye[l>>24&15]+ye[l>>20&15]+ye[l>>16&15]+ye[l>>12&15]+ye[l>>8&15]+ye[l>>4&15]+ye[l&15]),u}toString(){return this.hex()}digest(){this.finalize();const t=xe(this,Xr),r=xe(this,Kr),n=xe(this,Qr),a=xe(this,Jr),i=xe(this,Zr),s=xe(this,en),o=xe(this,tn),l=xe(this,rn),u=[t>>24&255,t>>16&255,t>>8&255,t&255,r>>24&255,r>>16&255,r>>8&255,r&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,s>>24&255,s>>16&255,s>>8&255,s&255,o>>24&255,o>>16&255,o>>8&255,o&255];return xe(this,ta)||u.push(l>>24&255,l>>16&255,l>>8&255,l&255),u}array(){return this.digest()}arrayBuffer(){this.finalize();const t=new ArrayBuffer(xe(this,ta)?28:32),r=new DataView(t);return r.setUint32(0,xe(this,Xr)),r.setUint32(4,xe(this,Kr)),r.setUint32(8,xe(this,Qr)),r.setUint32(12,xe(this,Jr)),r.setUint32(16,xe(this,Zr)),r.setUint32(20,xe(this,en)),r.setUint32(24,xe(this,tn)),xe(this,ta)||r.setUint32(28,xe(this,rn)),t}}ea=new WeakMap,wa=new WeakMap,Pr=new WeakMap,Ja=new WeakMap,es=new WeakMap,Xr=new WeakMap,Kr=new WeakMap,Qr=new WeakMap,Jr=new WeakMap,Zr=new WeakMap,en=new WeakMap,tn=new WeakMap,rn=new WeakMap,ka=new WeakMap,Za=new WeakMap,ta=new WeakMap,Io=new WeakMap,ra=new WeakMap;function qO(e){const t=new $O;return t.update(e),parseInt(t.hex().substring(0,8),16)}const VO=function(e){var t="#";return e.forEach(function(r){r<16&&(t+=0),t+=r.toString(16)}),t},WO=function(e,t,r){e/=360;var n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;return[e+1/3,e,e-1/3].map(function(i){return i<0&&i++,i>1&&i--,i<1/6?i=a+(n-a)*6*i:i<.5?i=n:i<2/3?i=a+(n-a)*6*(2/3-i):i=a,Math.round(i*255)})};class GO{constructor(t={}){const[r,n]=[t.lightness,t.saturation].map(function(a){return a=a!==void 0?a:[.35,.5,.65],Array.isArray(a)?a.concat():[a]});this.L=r,this.S=n,typeof t.hue=="number"&&(t.hue={min:t.hue,max:t.hue}),typeof t.hue=="object"&&!Array.isArray(t.hue)&&(t.hue=[t.hue]),typeof t.hue>"u"&&(t.hue=[]),this.hueRanges=t.hue.map(function(a){return{min:typeof a.min>"u"?0:a.min,max:typeof a.max>"u"?360:a.max}}),this.hash=qO,typeof t.hash=="function"&&(this.hash=t.hash),t.hash==="bkdr"&&(this.hash=UO)}hsl(t){var r,n,a,i=this.hash(t),s=727;if(this.hueRanges.length){const o=this.hueRanges[i%this.hueRanges.length];r=i/this.hueRanges.length%s*(o.max-o.min)/s+o.min}else r=i%359;return i=Math.ceil(i/360),n=this.S[i%this.S.length],i=Math.ceil(i/this.S.length),a=this.L[i%this.L.length],[r,n,a]}rgb(t){var r=this.hsl(t);return WO.apply(this,r)}hex(t){var r=this.rgb(t);return VO(r)}}function i1({active:e,onClick:t,children:r}){return v.jsx("button",{type:"button",onClick:t,className:"px-3 py-1.5 text-[11px] font-medium transition-colors -mb-px",style:{backgroundColor:"transparent",borderTop:"none",borderLeft:"none",borderRight:"none",borderBottom:`2px solid ${e?"var(--ds-blue-600)":"transparent"}`,borderRadius:0,outline:"none",boxShadow:"none",cursor:"pointer",color:e?"var(--ds-gray-1000)":"var(--ds-gray-600)"},children:r})}function YO({conversation:e,args:t}){const[r,n]=A.useState("conversation");return v.jsx(Sn,{summary:`Input (${e.length} messages)`,children:v.jsxs("div",{className:"rounded-md border",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"transparent"},children:[v.jsxs("div",{className:"flex gap-1 border-b",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"transparent"},children:[v.jsx(i1,{active:r==="conversation",onClick:()=>n("conversation"),children:"Conversation"}),v.jsx(i1,{active:r==="json",onClick:()=>n("json"),children:"Raw JSON"})]}),r==="conversation"?v.jsx(MO,{messages:e}):v.jsx("div",{className:"p-3",children:Array.isArray(t)?t.map((a,i)=>v.jsx("div",{className:"mt-2 first:mt-0",children:Br(a)},i)):Br(t)})]})})}const e3=A.createContext(void 0),XO="__workflow_stream_ref__",KO=e=>e!==null&&typeof e=="object"&&"__type"in e&&e.__type===XO&&"streamId"in e&&typeof e.streamId=="string",QO="__workflow_class_instance_ref__",JO=e=>e!==null&&typeof e=="object"&&"__type"in e&&e.__type===QO&&"className"in e&&typeof e.className=="string",ZO=new GO({saturation:[.5,.6,.7],lightness:[.4,.5,.6]}),Ya=(e,t,r)=>`hsl(${e}, ${Math.round(t*100)}%, ${Math.round(r*100)}%)`,eR=(e,t)=>{const[r,n,a]=ZO.hsl(e);return t?{header:Ya(r,n,Math.min(a+.1,.6)),body:Ya(r,n*.8,.15),text:Ya(r,n*.6,.8)}:{header:Ya(r,n,a),body:Ya(r,n*.4,.95),text:Ya(r,n*.8,.25)}},tR=({classInstanceRef:e})=>{const t=Rm(),r=eR(e.classId,t);return v.jsxs("div",{className:"inline-flex flex-col rounded text-[11px] font-mono my-1",style:{backgroundColor:r.body,border:`1px solid ${r.header}`},children:[v.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-t",style:{backgroundColor:r.header,color:"#FFFFFF"},title:`Custom class: ${e.classId}`,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("title",{children:"Class instance"}),v.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),v.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),v.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]}),v.jsx("span",{className:"font-semibold",children:e.className})]}),v.jsx("pre",{className:"px-2 py-1.5 overflow-x-auto whitespace-pre-wrap",style:{color:r.text},children:JSON.stringify(e.data,null,2)})]})},rR=({streamRef:e})=>{const t=A.useContext(e3),r=()=>{t&&t(e.streamId)};return v.jsxs("button",{type:"button",onClick:r,className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-mono cursor-pointer hover:opacity-80 transition-opacity",style:{backgroundColor:"var(--ds-blue-200)",color:"var(--ds-blue-900)",border:"1px solid var(--ds-blue-400)"},title:`Click to view stream: ${e.streamId}`,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("title",{children:"Stream icon"}),v.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),v.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),e.streamId.length>40?`${e.streamId.slice(0,20)}...${e.streamId.slice(-15)}`:e.streamId]})},Br=e=>v.jsx(nR,{data:e});function nR({data:e}){const t=Rm();return KO(e)?v.jsx(rR,{streamRef:e}):JO(e)?v.jsx(tR,{classInstanceRef:e}):v.jsx("div",{className:"overflow-x-auto rounded-md border p-3",style:{borderColor:"var(--ds-gray-300)"},children:v.jsx(Q5,{data:e,theme:t?J5:Dm,expandLevel:2})})}const s1=["workflowName","stepName","status","stepId","hookId","eventId","runId","attempt","token","correlationId","eventType","deploymentId","specVersion","workflowCoreVersion","ownerId","projectId","environment","executionContext","createdAt","startedAt","updatedAt","completedAt","expiredAt","retryAfter","error","metadata","eventData","input","output","resumeAt"],o1=(e,t)=>{const r=s1.indexOf(e)||0,n=s1.indexOf(t)||0;return r-n},aR={workflowCoreVersion:"@workflow/core version"},iR=e=>aR[e]??e,Ta=e=>{let t;return e instanceof Date?t=e:typeof e=="number"?t=new Date(e):typeof e=="string"?t=new Date(e):t=new Date(String(e)),t.toLocaleString(void 0,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3})},ts={workflowName:e=>{var t;return((t=b5(String(e)))==null?void 0:t.shortName)??"?"},stepName:e=>{var t;return((t=x5(String(e)))==null?void 0:t.shortName)??"?"},runId:e=>String(e),stepId:e=>String(e),hookId:e=>String(e),eventId:e=>String(e),status:e=>String(e),attempt:e=>String(e),token:e=>String(e),eventType:e=>String(e),correlationId:e=>String(e),deploymentId:e=>String(e),specVersion:e=>String(e),workflowCoreVersion:e=>String(e),ownerId:e=>null,projectId:e=>null,environment:e=>null,executionContext:e=>null,createdAt:Ta,startedAt:Ta,updatedAt:Ta,completedAt:Ta,expiredAt:Ta,retryAfter:Ta,resumeAt:Ta,metadata:Br,input:(e,t)=>{if(e&&typeof e=="object"&&"args"in e){const{args:n,closureVars:a}=e,i=Array.isArray(n)?n.length:0,s=a&&Object.keys(a).length>0;if(t!=null&&t.stepName&&k5(t.stepName)){const o=A5(n);if(o&&o.length>0)return v.jsxs(v.Fragment,{children:[v.jsx(YO,{conversation:o,args:n}),s&&v.jsx(Sn,{summary:"Closure Variables",children:Br(a)})]})}return v.jsxs(v.Fragment,{children:[v.jsx(Sn,{summary:`Input (${i} arguments)`,children:Array.isArray(n)?n.map((o,l)=>v.jsx("div",{className:"mt-2",children:Br(o)},l)):Br(n)}),s&&v.jsx(Sn,{summary:"Closure Variables",children:Br(a)})]})}const r=Array.isArray(e)?e.length:0;return v.jsx(Sn,{summary:`Input (${r} arguments)`,children:Array.isArray(e)?e.map((n,a)=>v.jsx("div",{className:"mt-2",children:Br(n)},a)):Br(e)})},output:e=>v.jsx(Sn,{summary:"Output",children:Br(e)}),error:e=>{if(e&&typeof e=="object"&&"message"in e){const t=e;return v.jsx(Sn,{summary:"Error",children:v.jsxs("div",{className:"flex flex-col gap-2",children:[t.code&&v.jsxs("div",{children:[v.jsxs("span",{className:"text-[11px] font-medium",style:{color:"var(--ds-gray-700)"},children:["Error Code:"," "]}),v.jsx("code",{className:"text-[11px]",style:{color:"var(--ds-gray-1000)"},children:t.code})]}),v.jsx("pre",{className:"text-[11px] overflow-x-auto rounded-md border p-3",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-gray-100)",color:"var(--ds-gray-1000)",whiteSpace:"pre-wrap"},children:v.jsx("code",{children:t.stack||t.message})})]})})}return v.jsx(Sn,{summary:"Error",children:v.jsx("pre",{className:"text-[11px] overflow-x-auto rounded-md border p-3",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-gray-100)",color:"var(--ds-gray-1000)",whiteSpace:"pre-wrap"},children:v.jsx("code",{children:String(e)})})})},eventData:e=>v.jsx(Sn,{summary:"Event Data",children:Br(e)})},l1=["input","output","error","metadata","eventData"],sR=()=>v.jsx("div",{className:"text-copy-12 rounded-md border p-4 my-2",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-gray-100)",color:"var(--ds-gray-700)"},children:v.jsx("span",{children:"The data for this run has expired and is no longer available."})}),oR=({attribute:e,value:t,isLoading:r,inline:n=!1,context:a})=>{const i=ts[e];if(!i)return null;const s=i(t,a);return s?n?v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("span",{className:"text-[11px] font-medium",style:{color:"var(--ds-gray-700)"},children:e}),v.jsx("span",{className:"text-[11px]",style:{color:"var(--ds-gray-1000)"},children:s})]}):v.jsxs("div",{className:"relative",children:[typeof r=="boolean"&&r&&v.jsx("div",{className:"absolute top-9 right-4",children:v.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2",style:{borderColor:"var(--ds-gray-900)"}})}),v.jsxs("div",{className:"flex flex-col gap-0 my-2",children:[v.jsx("span",{className:"text-xs font-medium",style:{color:"var(--ds-gray-700)"},children:e}),v.jsx("span",{className:"text-xs",style:{color:"var(--ds-gray-1000)"},children:s})]},e)]}):null},qM=({data:e,isLoading:t,error:r,expiredAt:n,onStreamClick:a})=>{const i=A.useMemo(()=>{const c={...e},h=e.executionContext;return h!=null&&h.workflowCoreVersion&&(c.workflowCoreVersion=h.workflowCoreVersion),c},[e]),s=n!=null&&new Date(n)<new Date,o=Object.keys(i).filter(c=>!l1.includes(c)).sort(o1),l=Object.keys(i).filter(c=>l1.includes(c)).sort(o1),u=o.filter(c=>{const h=ts[c];return h?h(i[c])!==null:!1}),d=A.useMemo(()=>({stepName:i.stepName}),[i.stepName]);return v.jsx(e3.Provider,{value:a,children:v.jsxs("div",{children:[u.length>0&&v.jsx("div",{className:"flex flex-col divide-y rounded-lg border mb-3 overflow-hidden",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-gray-100)"},children:u.map(c=>{var h;return v.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5",style:{borderColor:"var(--ds-gray-300)"},children:[v.jsx("span",{className:"text-[11px] font-medium",style:{color:"var(--ds-gray-700)"},children:iR(c)}),v.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--ds-gray-1000)"},children:(h=ts[c])==null?void 0:h.call(ts,i[c])})]},c)})}),r?v.jsx(Cm,{title:"Failed to load resource details",details:r.message,className:"my-4"}):s?v.jsx(sR,{}):l.map(c=>v.jsx(oR,{isLoading:t,attribute:c,value:i[c],context:d},c))]})})},lR=40,uR=8,ei=56,tl=8,rl=2,ci=24,td=24,VM=8,cR=()=>{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},rd={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,customPanelComponent:null},u1=e=>(e.width-e.scrollbarWidth-+!!(e.selected&&e.withPanel)*e.panelWidth)/e.root.duration,nd=A.createContext({state:rd,dispatch:()=>{}});nd.displayName="TraceViewerContext";const Ht=(e,t)=>{var r;switch(t.type){case"setRoot":return e.scrollSnapshotRef.current=void 0,e.memoCacheRef.current.clear(),Ht({...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-ei-lR-3*uR,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=Ht(i,{type:"detectBaseScale"})),i}case"setPanelWidth":{const n=Math.max(240,Math.min(t.width,e.width-240));return{...e,timelineWidth:e.width-n,panelWidth:n}}case"setFilter":return{...e,filter:t.filter};case"deselect":return Ht({...e,selected:null,timelineWidth:e.width},{type:"minScale"});case"select":{const n=e.spanMap[t.id];return n?{...e,selected:n,timelineWidth:e.width-(e.withPanel&&!e.isMobile?e.panelWidth:0)}:e}case"escape":return e.selected?Ht(e,{type:"deselect"}):Ht(e,{type:"resetScale"});case"toggleSelection":{let n=e;return e.selected&&(n=Ht(n,{type:"deselect"})),((r=e.selected)==null?void 0:r.span.spanId)===t.id?n:Ht(n,{type:"select",id:t.id})}case"detectBaseScale":{const n=(e.width-e.scrollbarWidth)/e.root.duration;return{...e,baseScale:n,scale:n*e.scaleRatio}}case"setScale":return{...e,scaleRatio:t.scale,scale:e.baseScale*t.scale};case"resetScale":return Ht(e,{type:"scaleToRange",t1:e.root.startTime,t2:e.root.endTime});case"scaleToNode":{const n=e.spanMap[t.id];return n?Ht(Ht(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 Ht(Ht(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 Ht(Ht({...e,scaleRatio:n,scale:e.baseScale*n},{type:"minScale"}),{type:"setScrollSnapshot",anchorT:(s+i*.5)/e.scale,anchorX:i*.5})}case"trackpadScale":{const n=u1(e)/e.baseScale,a=Math.max(n,e.scaleRatio*(1+.2*Math.sign(t.delta)*Math.sqrt(Math.abs(t.delta))));return Ht({...e,scaleRatio:a,scale:e.baseScale*a},{type:"setScrollSnapshot",anchorT:t.anchorT,anchorX:t.anchorX})}case"minScale":{const n=u1(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-td-tl)/(ci+rl),u=l+Math.ceil(e.timelineHeight/(ci+rl));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":return e.withPanel===t.withPanel?e:{...e,withPanel:t.withPanel};case"forceRender":return e.memoCacheRef.current.set("",{}),{...e}}};function WM({getQuickLinks:e,withPanel:t=!1,children:r,customSpanClassNameFunc:n,customSpanEventClassNameFunc:a,customPanelComponent:i=null}){const s=A.useRef(null),o=A.useRef(void 0),l=A.useRef(e);l.current=e;const u=A.useRef(new Map),d=A.useRef(new Map),[c,h]=A.useReducer(Ht,rd,b=>({...b,scrollbarWidth:cR(),timelineRef:s,scrollSnapshotRef:o,customSpanClassNameFunc:n,customSpanEventClassNameFunc:a,customPanelComponent:i,memoCacheRef:u,withPanel:t,getQuickLinks:x=>{var _;const T=x.spanId,E=d.current.get(T);if(E)return E;const k=((_=l.current)==null?void 0:_.call(l,x))||[];return d.current.set(T,k),k}}));A.useEffect(()=>h({type:"setWithPanel",withPanel:t}),[t]);const m=A.useMemo(()=>({state:c,dispatch:h}),[c,h]);return v.jsx(nd.Provider,{value:m,children:r})}const Ll=()=>A.useContext(nd),dR="_traceNode_txe1v_1",hR="_childRow_txe1v_5",fR="_spanNode_txe1v_11",mR="_huge_txe1v_31",pR="_spanName_txe1v_34",gR="_spanSpacer_txe1v_40",bR="_spanDuration_txe1v_44",xR="_small_txe1v_62",yR="_xHover_txe1v_62",ER="_selected_txe1v_66",vR="_spanNodeEvent_txe1v_117",TR="_eventDiamond_txe1v_123",wR="_customEventColor_txe1v_139",kR="_hoverInfo_txe1v_144",AR="_eventName_txe1v_148",SR="_eventTimestamp_txe1v_152",CR="_alignStart_txe1v_173",_R="_alignEnd_txe1v_177",NR="_colorVercel_txe1v_204",IR="_color0_txe1v_212",OR="_color1_txe1v_219",RR="_color2_txe1v_226",DR="_color3_txe1v_233",LR="_color4_txe1v_240",MR="_colorHighlight_txe1v_247",PR="_unlit_txe1v_255",BR="_mapContainer_txe1v_261",FR="_spanDetailPanel_txe1v_324",zR="_spanDetailPanelResizer_txe1v_333",HR="_spanDetailPanelTop_txe1v_348",UR="_spanDetailPanelBody_txe1v_357",jR="_spanDetailPanelTopInfo_txe1v_370",$R="_spanNameDetailPanel_txe1v_384",qR="_spanDetailPanelTruncatedHeading_txe1v_390",VR="_spanDetailPanelName_txe1v_400",WR="_spanDetailPanelDuration_txe1v_411",GR="_spanDetailPanelCorner_txe1v_422",YR="_spanDetailPanelCornerInner_txe1v_432",XR="_spanDetailPanelCloseVerticalRule_txe1v_440",KR="_spanDetailPanelClose_txe1v_440",QR="_spanDetailPanelAttribute_txe1v_462",JR="_spanDetailPanelAttributeKey_txe1v_479",ZR="_spanDetailPanelAttributeValue_txe1v_487",eD="_spanDetailPanelQuickLink_txe1v_498",tD="_spanDetailPanelQuickLinkLabel_txe1v_501",rD="_detailGroup_txe1v_514",nD="_expanded_txe1v_528",aD="_collapsed_txe1v_529",iD="_ancestorGroup_txe1v_530",sD="_detailHeading_txe1v_534",oD="_buttonLink_txe1v_557",lD="_note_txe1v_576",uD="_skeleton_txe1v_584",cD="_skeletonRounded_txe1v_590",dD="_detailHeadingIcon_txe1v_594",hD="_infraSpanDescription_txe1v_598",fD="_ancestorNode_txe1v_608",mD="_ancestorText_txe1v_624",pD="_ancestorName_txe1v_634",gD="_ancestorDuration_txe1v_639",bD="_ancestorLineContainer_txe1v_644",xD="_ancestorLine_txe1v_644",yD="_zoomButtonGroup_txe1v_696",ED="_zoomButton_txe1v_696",vD="_divider_txe1v_746",TD="_markersContainer_txe1v_753",wD="_markers_txe1v_753",kD="_marker_txe1v_753",AD="_notch_txe1v_787",SD="_markerLabel_txe1v_793",CD="_eventMarkersContainer_txe1v_801",_D="_eventMarkers_txe1v_801",ND="_eventMarker_txe1v_801",ID="_cursorMarkerStickyParent_txe1v_824",OD="_cursorMarkerLabelContainer_txe1v_833",RD="_cursorMarkerLabel_txe1v_833",DD="_cursorMarkerContainer_txe1v_883",LD="_cursorMarker_txe1v_824",MD="_cursorSelection_txe1v_901",PD="_traceViewer_txe1v_951",BD="_mapCanvas_txe1v_957",FD="_zoomButtonTraceViewer_txe1v_973",zD="_timeline_txe1v_996",HD="_searchBar_txe1v_1004",UD="_searchInput_txe1v_1016",jD="_searchInputLabel_txe1v_1023",$D="_searchInputPrefix_txe1v_1048",qD="_mapThumb_txe1v_1086",VD="_spanDetailPanelTraceViewer_txe1v_1100",WD="_traceViewerContent_txe1v_1119",GD="_inert_txe1v_1129",YD="_hidden_txe1v_1165",XD="_mobile_txe1v_1169",KD="_spanRunning_txe1v_1179",QD="_spanPending_txe1v_1180",JD="_spanCompleted_txe1v_1188",ZD="_spanCancelled_txe1v_1196",eL="_spanFailed_txe1v_1204",tL="_spanPendingStriped_txe1v_1213",rL="_hasQueuedTime_txe1v_1227",nL="_spanSleep_txe1v_1239",aL="_spanHook_txe1v_1248",iL="_eventFailed_txe1v_1259",sL="_eventRetrying_txe1v_1268",oL="_eventHook_txe1v_1277",lL="_eventDefault_txe1v_1286",we={traceNode:dR,childRow:hR,spanNode:fR,huge:mR,spanName:pR,spanSpacer:gR,spanDuration:bR,small:xR,xHover:yR,selected:ER,spanNodeEvent:vR,eventDiamond:TR,customEventColor:wR,hoverInfo:kR,eventName:AR,eventTimestamp:SR,alignStart:CR,alignEnd:_R,colorVercel:NR,color0:IR,color1:OR,color2:RR,color3:DR,color4:LR,colorHighlight:MR,unlit:PR,mapContainer:BR,spanDetailPanel:FR,spanDetailPanelResizer:zR,spanDetailPanelTop:HR,spanDetailPanelBody:UR,spanDetailPanelTopInfo:jR,spanNameDetailPanel:$R,spanDetailPanelTruncatedHeading:qR,spanDetailPanelName:VR,spanDetailPanelDuration:WR,spanDetailPanelCorner:GR,spanDetailPanelCornerInner:YR,spanDetailPanelCloseVerticalRule:XR,spanDetailPanelClose:KR,spanDetailPanelAttribute:QR,spanDetailPanelAttributeKey:JR,spanDetailPanelAttributeValue:ZR,spanDetailPanelQuickLink:eD,spanDetailPanelQuickLinkLabel:tD,detailGroup:rD,expanded:nD,collapsed:aD,ancestorGroup:iD,detailHeading:sD,buttonLink:oD,note:lD,skeleton:uD,skeletonRounded:cD,detailHeadingIcon:dD,infraSpanDescription:hD,ancestorNode:fD,ancestorText:mD,ancestorName:pD,ancestorDuration:gD,ancestorLineContainer:bD,ancestorLine:xD,zoomButtonGroup:yD,"zoom-buttons-fade-in":"_zoom-buttons-fade-in_txe1v_1",zoomButton:ED,divider:vD,markersContainer:TD,markers:wD,marker:kD,notch:AD,markerLabel:SD,eventMarkersContainer:CD,eventMarkers:_D,eventMarker:ND,cursorMarkerStickyParent:ID,cursorMarkerLabelContainer:OD,cursorMarkerLabel:RD,cursorMarkerContainer:DD,cursorMarker:LD,cursorSelection:MD,traceViewer:PD,"span-skeleton":"_span-skeleton_txe1v_1",mapCanvas:BD,zoomButtonTraceViewer:FD,timeline:zD,searchBar:HD,searchInput:UD,searchInputLabel:jD,searchInputPrefix:$D,mapThumb:qD,spanDetailPanelTraceViewer:VD,traceViewerContent:WD,inert:GD,hidden:YD,mobile:XD,spanRunning:KD,spanPending:QD,spanCompleted:JD,spanCancelled:ZD,spanFailed:eL,spanPendingStriped:tL,hasQueuedTime:rL,spanSleep:nL,spanHook:aL,eventFailed:iL,eventRetrying:sL,eventHook:oL,eventDefault:lL},uL=(e,t)=>e.duration*t<64,t3=(e,t)=>e.duration*t>=500,ad=e=>e.isVercel?String(we.colorVercel):String(we[`color${e.resourceIndex%5}`]),cL=(e,t)=>{const r=t3(e,t),n=e.isHovered&&!r&&e.isHighlighted!==!1;return Bt(we.spanNode,r&&we.huge,uL(e,t)&&we.small,e.isSelected&&we.selected,n&&we.xHover,e.isHighlighted?we.colorHighlight:ad(e),e.isHighlighted===!1&&we.unlit)},dL=e=>e.isInstrumentationHint?"Get Started":bs(e.duration),GM=A.memo(function({root:t,scale:r,spans:n,scrollSnapshotRef:a,cache:i,customSpanClassNameFunc:s,customSpanEventClassNameFunc:o}){return n.map(l=>v.jsx(hL,{cacheKey:i.get(l.span.spanId),customSpanEventClassNameFunc:o,customSpanClassNameFunc:s,node:l,root:t,scale:r,scrollSnapshotRef:a},l.span.spanId))}),hL=A.memo(function({node:t,root:r,scale:n,scrollSnapshotRef:a,customSpanClassNameFunc:i,customSpanEventClassNameFunc:s}){const o=A.useRef(null);t.ref=o;const{span:l}=t,u=dL(t),d=(t.startTime-r.startTime)*n;let c=td+(ci+rl)*t.row;const h=t.duration*n,b=Math.max(h,4);let x=ci;const T=t3(t,n),E=h<64,k=t.isHovered&&!T&&t.isHighlighted!==!1;E&&!k&&(x*=.4,c+=(ci-x)*.5);let _=!1;if(k){let{duration:U,endTime:D}=r;const V=a.current;V&&(U=V.endTime-V.startTime,D=V.endTime),_=D-t.startTime<.25*U}const P=i?i(t):"";return v.jsxs(v.Fragment,{children:[v.jsx("button",{"aria-label":`${l.name} - ${u}`,className:Bt(cL(t,n),P),"data-span-id":l.spanId,"data-start-time":t.startTime-r.startTime,"data-right-side":_,ref:o,style:{"--span-width":`${Math.max(h,1)}px`,minWidth:k?b:void 0,width:k?void 0:b,height:x,maxWidth:k&&!_?(r.endTime-t.startTime)*n:void 0,containIntrinsicWidth:k?void 0:b,containIntrinsicHeight:x,left:_?void 0:d,right:_?(r.endTime-t.endTime)*n:void 0,top:c},type:"button",children:E&&!k?null:v.jsxs(v.Fragment,{children:[v.jsx("span",{className:we.spanName,children:t.label||l.name}),T?v.jsx("span",{className:we.spanSpacer}):null,k||b>128?v.jsx("span",{className:we.spanDuration,children:u}):null]})}),t.events&&!E?t.events.map(U=>v.jsx(fL,{customSpanEventClassNameFunc:s,event:U,node:t,root:r,scale:n},U.key)):null]})}),fL=A.memo(function({event:t,node:r,root:n,scale:a,customSpanEventClassNameFunc:i}){const s=A.useRef(null);t.ref=s;const{event:{name:o}}=t,l=bs(t.timestamp-n.startTime),u=(t.timestamp-n.startTime)*a,d=td+(ci+rl)*r.row,c=i?i(t):"";return v.jsxs("div",{title:`${o} at ${l}`,className:Bt(we.spanNodeEvent,c,r.isHighlighted?we.colorHighlight:ad(r),r.isHighlighted===!1&&we.unlit),"data-hovered":t.isHovered,ref:s,style:{left:u,top:d},children:[v.jsxs("div",{className:Bt(we.hoverInfo,(t.timestamp-r.startTime)/r.duration<.5?we.alignStart:we.alignEnd),children:[v.jsx("span",{className:we.eventName,children:o}),v.jsx("span",{className:we.eventTimestamp,children:l})]}),v.jsx("div",{className:we.eventDiamond})]})}),r3={"gray-700":"var(--ds-gray-700)","gray-900":"var(--ds-gray-900)"};function mL({size:e=16,color:t="gray-700"}){const r={color:r3[t]||t};return v.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:r,"aria-hidden":!0,children:[v.jsx("title",{children:"Cross"}),v.jsx("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function pL({size:e=16}){return v.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,className:we.detailHeadingIcon,children:[v.jsx("title",{children:"Chevron Down"}),v.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function gL({size:e=16,color:t="gray-900"}){const r={color:r3[t]||t};return v.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:r,"aria-hidden":!0,children:[v.jsx("title",{children:"External Small"}),v.jsx("path",{d:"M14 4h6m0 0v6m0-6L10 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),v.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 bL(e){const{as:t,className:r,href:n,children:a,...i}=e;return(t||"a")==="span"||!n?v.jsx("span",{className:r,...i,children:a}):v.jsx("a",{className:r,href:n,...i,children:a})}function xL(e){const{className:t,children:r,size:n,...a}=e;return v.jsx("a",{...a,className:Bt(we.buttonLink,t),children:r})}function yL({children:e,className:t}){return v.jsx("div",{className:Bt(we.note,t),children:e})}function c1({width:e,height:t,rounded:r}){return v.jsx("span",{className:Bt(we.skeleton,r&&we.skeletonRounded),style:{width:e,height:t},"aria-hidden":!0})}const d1=e=>`${(100*e).toFixed(3)}%`,h1=(e,t)=>e<t?-1:e>t?1:0,f1=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)=>h1(n.prefix,a.prefix));for(const n of r)n.attributes.sort((a,i)=>h1(a.suffix,i.suffix));return r},EL=(e,t)=>{const r=[];if(!t)return r;for(let n=t;"parent"in n;n=n.parent)r.unshift(n);return r},vL=()=>{var d;const{state:{root:e,selected:t,resourceMap:r,getQuickLinks:n},dispatch:a}=Ll(),i=A.useMemo(()=>EL(e,t),[e,t]),s=A.useMemo(()=>f1((t==null?void 0:t.span.attributes)??{}),[t]),o=A.useMemo(()=>{const c=t==null?void 0:t.span.resource;if(!c)return[];const h=r[c];return h?f1(h):[]},[r,t]);if(!t)return null;const{span:l}=t,u=n3(t);return v.jsxs(v.Fragment,{children:[t.isVercel?v.jsx(AL,{node:t}):null,t.isInstrumentationHint?v.jsx(NL,{}):null,!t.isInstrumentationHint&&i.length?v.jsx(aa,{className:we.ancestorGroup,name:"Location",children:i.map(c=>v.jsxs("button",{className:we.ancestorNode,onClick:()=>a({type:"select",id:c.span.spanId}),type:"button",children:[v.jsxs("div",{className:we.ancestorText,children:[v.jsx("span",{className:we.ancestorName,children:c.label||c.span.name}),v.jsx("span",{className:we.ancestorDuration,children:bs(c.duration)})]}),v.jsx("span",{"aria-hidden":!0,className:we.ancestorLineContainer,children:v.jsx("span",{className:Bt(we.ancestorLine,ad(c)),style:{left:d1((c.startTime-e.startTime)/e.duration),width:d1(c.duration/e.duration)}})})]},`${t.span.spanId}.${c.span.spanId}`))}):null,u?v.jsx(SL,{getQuickLinks:n,span:t.span}):null,(d=t.events)!=null&&d.length?v.jsx(aa,{name:"Events",children:t.events.map(c=>v.jsxs(A.Fragment,{children:[v.jsxs("dl",{className:we.spanDetailPanelAttribute,children:[v.jsx("dt",{className:we.spanDetailPanelAttributeKey,children:c.event.name}),v.jsx("dd",{className:we.spanDetailPanelAttributeValue,children:bs(c.timestamp-e.startTime)})]}),Object.entries(c.event.attributes).map(([h,m])=>v.jsx(Vi,{name:`${c.event.name}.${h}`,value:m},h))]},c.key))}):null,s.length?v.jsx(aa,{name:"Attributes",children:s.map(c=>v.jsx(A.Fragment,{children:c.attributes.map(({key:h,value:m})=>v.jsx(Vi,{name:h,value:m},h))},c.prefix))}):null,o.length?v.jsx(aa,{name:"Resource",children:o.map(c=>v.jsx(A.Fragment,{children:c.attributes.map(({key:h,value:m})=>v.jsx(Vi,{name:h,value:m},h))},c.prefix))}):null,t.isInstrumentationHint?null:v.jsxs(aa,{name:"Library",children:[v.jsx(Vi,{name:"name",value:l.library.name}),l.library.version?v.jsx(Vi,{name:"version",value:l.library.version}):null]})]})};function YM({attached:e=!1}){const{state:{selected:t,isMobile:r,customPanelComponent:n},dispatch:a}=Ll();if(!t)return null;const{span:i}=t;return v.jsxs("div",{className:Bt(we.spanDetailPanel,r&&we.mobile),children:[e&&!r?v.jsx(IL,{}):null,v.jsx("div",{className:we.spanDetailPanelTop,children:v.jsxs("div",{className:we.spanDetailPanelTopInfo,children:[v.jsx("span",{className:we.spanDetailPanelName,title:i.name,children:i.name}),v.jsxs("div",{className:we.spanDetailPanelCorner,children:[t.isInstrumentationHint?null:v.jsx("span",{className:we.spanDetailPanelDuration,children:bs(t.duration)}),v.jsx("div",{className:we.spanDetailPanelCloseVerticalRule}),v.jsx("button",{"aria-label":"Close Span Details",className:we.spanDetailPanelClose,onClick:()=>a({type:"deselect"}),type:"button",children:v.jsx(mL,{color:"gray-700",size:20})})]})]})}),v.jsx("div",{className:Bt("flex gap-3",we.spanDetailPanelBody),children:n||v.jsx(vL,{})})]})}const m1="vc-trace-span-exp:";function aa({name:e,className:t="",children:r}){const[n,a]=A.useState(()=>"localStorage"in globalThis?localStorage.getItem(`${m1}${e}`)!=="0":!0),i=A.useCallback(()=>{a(s=>{const o=!s;return localStorage.setItem(`${m1}${e}`,String(Number(o))),o})},[e]);return v.jsxs("div",{className:Bt(we.detailGroup,n?we.expanded:we.collapsed,t),children:[v.jsxs("button",{className:we.detailHeading,onClick:i,type:"button",children:[v.jsx("span",{children:e}),v.jsx(pL,{})]}),n?r:null]})}const TL=new Set(["OPTIONS","HEAD","GET","PUT","POST","DELETE"]),wL={"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."},p1=new Set(["Start VM","Spawn Node.js","Spawn Python","Init User Code"]),g1=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},kL=e=>{const{name:t}=e.span,r=g1(e),n=g1(e.parent);return e.span.attributes["vercel.middleware.internal"]==="true"?"The Vercel Toolbar created this middleware.":p1.has(t)||t==="Invoke Function"&&e.children.some(a=>p1.has(a.span.name))?"This function encountered a cold start.":r&&n&&r!==n?"This request was routed across regions.":null},n3=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 TL.has(n)};function AL({node:e}){const{name:t}=e.span;let r=wL[t];if(!r&&n3(e)&&(r="How long it took for Vercel to process the request and send the response."),!r)return null;const n=kL(e);return v.jsx(aa,{name:"What is this?",children:v.jsxs("div",{className:we.infraSpanDescription,children:[v.jsx("span",{children:r}),n&&v.jsx(yL,{children:n})]})})}const SL=A.memo(function({getQuickLinks:t,span:r}){const n=t(r);return n.length?v.jsx(aa,{name:"Links",children:n.map(({key:a,value:i})=>v.jsx(_L,{link:i,name:a},a))}):null});function CL(e){const[t,r]=A.useState({}),n=e.__resolvedValue!==void 0||e.__rejectedValue!==void 0;return A.useEffect(()=>{n||e.then(a=>{e.__resolvedValue=a}).catch(a=>{e.__rejectedValue=a}).finally(()=>r({}))},[e,n]),e.__resolvedValue}function _L({name:e,link:t}){const r=CL(t);return v.jsxs(bL,{as:r?void 0:"span",className:Bt(we.spanDetailPanelAttribute,we.spanDetailPanelQuickLink),href:(r==null?void 0:r.href)||"",children:[v.jsx("span",{className:we.spanDetailPanelAttributeKey,children:e}),v.jsx("span",{className:Bt(we.spanDetailPanelAttributeValue,we.spanDetailPanelQuickLinkLabel),children:r?v.jsxs(v.Fragment,{children:[r.label,r.icon||v.jsx(gL,{color:"gray-900"})]}):v.jsxs(v.Fragment,{children:[v.jsx(c1,{height:18,width:32+e.length*8}),v.jsx(c1,{height:18,rounded:!0,width:18})]})})]})}function NL(){return v.jsx(aa,{name:"What is this?",children:v.jsxs("div",{className:we.infraSpanDescription,children:[v.jsx("span",{children:"You can visualize your application's spans alongside Vercel's spans in this viewer."}),v.jsx(xL,{href:"https://vercel.com/docs/session-tracing#adding-custom-spans",size:"small",target:"_blank",children:"Get Started"})]})})}function Vi({name:e,value:t}){return v.jsxs("dl",{className:we.spanDetailPanelAttribute,children:[v.jsx("dt",{className:we.spanDetailPanelAttributeKey,children:e}),v.jsx("dd",{className:we.spanDetailPanelAttributeValue,title:String(t),children:String(t)})]})}function IL(){const{state:{panelWidth:e},dispatch:t}=Ll(),r=A.useRef({start:{x:0,width:e},x:0,width:e,isHeld:!1});r.current.width=e;const n=A.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=A.useCallback(()=>{t({type:"setPanelWidth",width:rd.panelWidth})},[t]);return A.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]),v.jsx("div",{"aria-hidden":!0,className:we.spanDetailPanelResizer,onDoubleClick:a,onPointerDown:n})}function OL(e){const t=A.useRef({});return{setStyle:A.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 RL=()=>"devicePixelRatio"in globalThis&&globalThis.devicePixelRatio||1,DL=()=>{const[e,t]=A.useState(1);return A.useLayoutEffect(()=>{const r=()=>t(RL()),n=matchMedia(`(resolution: ${e}dppx)`);return n.addEventListener("change",r),r(),()=>{n.removeEventListener("change",r)}},[e]),e},Wi=tl,XM=A.memo(function({timelineRef:t,rows:r,scale:n}){const{state:{root:a,baseScale:i,timelineWidth:s,width:o,scrollbarWidth:l}}=Ll(),u=o+tl*2,d=DL(),c=A.useRef(null),h=A.useRef(null),m=o/(o-l)*Math.min(o/s,i/n),b=Math.min(o,(s-l)*m);A.useEffect(()=>{let k=!1,_=0,P;const U=C=>{var H;return!!((H=c.current)!=null&&H.contains(C))};let D=0;const V=()=>{if(!k||!P)return;const C=t.current;if(!C)return;const H=_-b*.5-P.left;C.scrollLeft=H/m},Y=C=>{({clientX:_}=C),cancelAnimationFrame(D),D=requestAnimationFrame(V)},ee=C=>{var H;U(C.target)&&(k=!0,P=(H=c.current)==null?void 0:H.getBoundingClientRect(),Y(C))},F=()=>{k=!1,P=void 0},ne=C=>{U(C.target)&&C.cancelable&&C.preventDefault()},$=C=>{k&&C.cancelable&&C.preventDefault()};return window.addEventListener("pointerdown",ee),window.addEventListener("pointermove",Y),window.addEventListener("pointerup",F),window.addEventListener("blur",F),window.addEventListener("touchstart",ne,{passive:!1}),window.addEventListener("touchmove",$,{passive:!1}),()=>{window.removeEventListener("pointerdown",ee),window.removeEventListener("pointermove",Y),window.removeEventListener("pointerup",F),window.removeEventListener("blur",F),window.removeEventListener("touchstart",ne),window.removeEventListener("touchmove",$),cancelAnimationFrame(D)}},[t,m,b]),A.useEffect(()=>{const k=h.current,_=k==null?void 0:k.getContext("2d");if(!k||!_)return;const U=requestAnimationFrame(()=>{_.resetTransform(),_.clearRect(0,0,k.width,k.height),_.scale(d,d);const D=1,V=3,Y=(u-Wi*2)/a.duration;_.fillStyle="#ccc",_.beginPath();for(const ee of r)for(const F of ee){const ne=Wi-D+(D+V)*F.row;if(ne>=ei-V-Wi)break;const $=Wi+(F.startTime-a.startTime)*Y,C=F.duration*Y;_.roundRect($,ne,C,V,V)}_.fill()});return()=>cancelAnimationFrame(U)},[d,a,u,r]);const x=A.useRef(null),{style:T,setStyle:E}=OL(x);return A.useLayoutEffect(()=>{const k=t.current;if(!k)return;let _=0;const P=()=>{E("transform",`translateX(${Wi+k.scrollLeft*m}px)`)};P();const U=()=>{cancelAnimationFrame(_),_=requestAnimationFrame(P)};return k.addEventListener("scroll",U),()=>{cancelAnimationFrame(_),k.removeEventListener("scroll",U)}},[t,m,E]),v.jsxs("div",{className:we.mapContainer,ref:c,style:{width:b>0?u:"100%",height:ei},children:[v.jsx("canvas",{className:we.mapCanvas,height:ei*d,ref:h,style:{width:u,height:ei},width:u*d}),v.jsx("div",{className:we.mapThumb,ref:x,style:{transform:T.transform,width:b>0?b:`calc(100% - ${tl*2}px)`,top:2,height:ei-4}})]})});function LL(e){const t=PL(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 ML="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function PL(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|=ML.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 BL=-1,FL=-2,zL=-3,HL=-4,UL=-5,jL=-6;function $L(e,t){return a3(JSON.parse(e),t)}function a3(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===BL)return;if(i===zL)return NaN;if(i===HL)return 1/0;if(i===UL)return-1/0;if(i===jL)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 h=Object.create(null);n[i]=h;for(let m=1;m<o.length;m+=2)h[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=LL(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!==FL&&(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 I0={DEVALUE_V1:"devl"},go=4;new TextEncoder;const qL=new TextDecoder;function VL(e){if(!(e instanceof Uint8Array))return{format:I0.DEVALUE_V1,payload:new TextEncoder().encode(JSON.stringify(e))};if(e.length<go)throw new Error(`Data too short to contain format prefix: expected at least ${go} bytes, got ${e.length}`);const t=e.subarray(0,go),r=qL.decode(t),n=Object.values(I0);if(!n.includes(r))throw new Error(`Unknown serialization format: "${r}". Known formats: ${n.join(", ")}`);const a=e.subarray(go);return{format:r,payload:a}}function Da(e,t){if(e instanceof Uint8Array){const{format:r,payload:n}=VL(e);if(r===I0.DEVALUE_V1){const a=new TextDecoder().decode(n);return $L(a,t)}throw new Error(`Unsupported serialization format: ${r}`)}return Array.isArray(e)?a3(e,t):e}const Iu="strm_",WL="__workflow_stream_ref__",GL="__workflow_class_instance_ref__";class YL{constructor(t,r,n){Xe(this,"className");Xe(this,"classId");Xe(this,"data");Xe(this,"__type",GL);this.className=t,this.classId=r,this.data=n}toJSON(){return{__type:this.__type,className:this.className,classId:this.classId,data:this.data}}}const Ou=e=>{let t;if("name"in e){const r=String(e.name);r.startsWith(Iu)?t=r:t=`${Iu}${r}`}else t=`${Iu}null`;return{__type:WL,streamId:t}},XL=e=>!e||typeof e!="object"?"null":"stepId"in e?`<step:${e.stepId}>`:"<function>",i3=e=>{if(!e)return"Unknown";const t=e.split("/");return t[t.length-1]||e},KL=e=>new YL(i3(e.classId),e.classId,e.data),QL=e=>`<class:${i3(e.classId)}>`,KM={ReadableStream:Ou,WritableStream:Ou,TransformStream:Ou,StepFunction:XL,Instance:KL,Class:QL};function JL(e,t){let r=e.input,n=e.output;if(e.input!=null)try{r=Da(e.input,t)}catch{}if(e.output!=null)try{n=Da(e.output,t)}catch{}return{...e,input:r,output:n}}function ZL(e,t){let r=e.input,n=e.output;if(e.input!=null)try{r=Da(e.input,t)}catch{}if(e.output!=null)try{n=Da(e.output,t)}catch{}return{...e,input:r,output:n}}function eM(e,t){if(!e.eventData)return e;const r={...e.eventData};if("result"in r&&r.result!=null)try{r.result=Da(r.result,t)}catch{}if("input"in r&&r.input!=null)try{r.input=Da(r.input,t)}catch{}return{...e,eventData:r}}function tM(e,t){if(e.metadata==null)return e;let r=e.metadata;try{r=Da(e.metadata,t)}catch{}return{...e,metadata:r}}function QM(e,t){if(!e)return e;let r;if("stepId"in e?r=JL(e,t):"hookId"in e?r=tM(e,t):"eventId"in e?r=eM(e,t):r=ZL(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 JM=10;function s3(...e){return km(Bt(e))}const ZM=5e3;function eP(e,t,r){return r?`Page ${e} of ${t}+`:`Page ${e} of ${t}`}const tP=F6,rP=z6,rM=A.forwardRef(({className:e,sideOffset:t=4,...r},n)=>v.jsx(bm,{ref:n,sideOffset:t,className:s3("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}));rM.displayName=bm.displayName;const o3=A.createContext(null);function nP({children:e,serverConfig:t}){const r={serverConfig:t};return v.jsx(o3.Provider,{value:r,children:e})}function aP(){const e=A.useContext(o3);if(!e)throw new Error("useServerConfig must be used within a ServerConfigProvider");return e}function b1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l3(...e){return t=>{let r=!1;const n=e.map(a=>{const i=b1(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():b1(e[a],null)}}}}function iP(...e){return A.useCallback(l3(...e),e)}var u3=A.forwardRef((e,t)=>{const{children:r,...n}=e,a=A.Children.toArray(r),i=a.find(aM);if(i){const s=i.props.children,o=a.map(l=>l===i?A.Children.count(s)>1?A.Children.only(null):A.isValidElement(s)?s.props.children:null:l);return v.jsx(O0,{...n,ref:t,children:A.isValidElement(s)?A.cloneElement(s,void 0,o):null})}return v.jsx(O0,{...n,ref:t,children:r})});u3.displayName="Slot";var O0=A.forwardRef((e,t)=>{const{children:r,...n}=e;if(A.isValidElement(r)){const a=sM(r);return A.cloneElement(r,{...iM(n,r.props),ref:t?l3(t,a):a})}return A.Children.count(r)>1?A.Children.only(null):null});O0.displayName="SlotClone";var nM=({children:e})=>v.jsx(v.Fragment,{children:e});function aM(e){return A.isValidElement(e)&&e.type===nM}function iM(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 sM(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 x1=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,y1=Bt,oM=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return y1(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 h=x1(d)||x1(c);return a[u][h]}),o=r&&Object.entries(r).reduce((u,d)=>{let[c,h]=d;return h===void 0||(u[c]=h),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:c,className:h,...m}=d;return Object.entries(m).every(b=>{let[x,T]=b;return Array.isArray(T)?T.includes({...i,...o}[x]):{...i,...o}[x]===T})?[...u,c,h]:u},[]);return y1(e,s,l,r==null?void 0:r.class,r==null?void 0:r.className)},lM=oM("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"}}),uM=A.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...a},i)=>{const s=n?u3:"button";return v.jsx(s,{className:s3(lM({variant:t,size:r,className:e})),ref:i,...a})});uM.displayName="Button";let R0;try{R0=new TextDecoder}catch{}let Te,Ca,re=0;const cM=105,dM=57342,hM=57343,E1=57337,v1=6,Xa={};let Gi=11281e4,An=1681e4,We={},pt,nl,al=0,As=0,At,kr,vt=[],D0=[],sr,Gt,rs,T1={useRecords:!1,mapsAsObjects:!0},Ss=!1,c3=2;try{new Function("")}catch{c3=1/0}class Cs{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[Ar(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 m3(()=>(B0(),this?this.decode(t,r):Cs.prototype.decode.call(T1,t,r)));Ca=r>-1?r:t.length,re=0,As=0,nl=null,At=null,Te=t;try{Gt=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 Cs){if(We=this,sr=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return pt=this.structures,bo();(!pt||pt.length>0)&&(pt=[])}else We=T1,(!pt||pt.length>0)&&(pt=[]),sr=null;return bo()}decodeMultiple(t,r){let n,a=0;try{let i=t.length;Ss=!0;let s=this?this.decode(t,i):od.decode(t,i);if(r){if(r(s)===!1)return;for(;re<i;)if(a=re,r(bo())===!1)return}else{for(n=[s];re<i;)a=re,n.push(bo());return n}}catch(i){throw i.lastPosition=a,i.values=n,i}finally{Ss=!1,B0()}}}function bo(){try{let e=Ge();if(At){if(re>=At.postBundlePosition){let t=new Error("Unexpected bundle position");throw t.incomplete=!0,t}re=At.postBundlePosition,At=null}if(re==Ca)pt=null,Te=null,kr&&(kr=null);else if(re>Ca){let t=new Error("Unexpected end of CBOR data");throw t.incomplete=!0,t}else if(!Ss)throw new Error("Data read, but end of buffer not reached");return e}catch(e){throw B0(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function Ge(){let e=Te[re++],t=e>>5;if(e=e&31,e>23)switch(e){case 24:e=Te[re++];break;case 25:if(t==7)return gM();e=Gt.getUint16(re),re+=2;break;case 26:if(t==7){let r=Gt.getFloat32(re);if(We.useFloat32>2){let n=sd[(Te[re]&127)<<1|Te[re+1]>>7];return re+=4,(n*r+(r>0?.5:-.5)>>0)/n}return re+=4,r}e=Gt.getUint32(re),re+=4;break;case 27:if(t==7){let r=Gt.getFloat64(re);return re+=8,r}if(t>1){if(Gt.getUint32(re)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=Gt.getUint32(re+4)}else We.int64AsNumber?(e=Gt.getUint32(re)*4294967296,e+=Gt.getUint32(re+4)):e=Gt.getBigUint64(re);re+=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=Ge())!=Xa;){if(a>=Gi)throw new Error(`Array length exceeds ${Gi}`);r[a++]=n}return t==4?r:t==3?r.join(""):Buffer.concat(r);case 5:let i;if(We.mapsAsObjects){let s={},o=0;if(We.keyMap)for(;(i=Ge())!=Xa;){if(o++>=An)throw new Error(`Property count exceeds ${An}`);s[Ar(We.decodeKey(i))]=Ge()}else for(;(i=Ge())!=Xa;){if(o++>=An)throw new Error(`Property count exceeds ${An}`);s[Ar(i)]=Ge()}return s}else{rs&&(We.mapsAsObjects=!0,rs=!1);let s=new Map;if(We.keyMap){let o=0;for(;(i=Ge())!=Xa;){if(o++>=An)throw new Error(`Map size exceeds ${An}`);s.set(We.decodeKey(i),Ge())}}else{let o=0;for(;(i=Ge())!=Xa;){if(o++>=An)throw new Error(`Map size exceeds ${An}`);s.set(i,Ge())}}return s}case 7:return Xa;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 pM(e);case 3:if(As>=re)return nl.slice(re-al,(re+=e)-al);if(As==0&&Ca<140&&e<32){let a=e<16?d3(e):mM(e);if(a!=null)return a}return fM(e);case 4:if(e>=Gi)throw new Error(`Array length exceeds ${Gi}`);let r=new Array(e);for(let a=0;a<e;a++)r[a]=Ge();return r;case 5:if(e>=An)throw new Error(`Map size exceeds ${Gi}`);if(We.mapsAsObjects){let a={};if(We.keyMap)for(let i=0;i<e;i++)a[Ar(We.decodeKey(Ge()))]=Ge();else for(let i=0;i<e;i++)a[Ar(Ge())]=Ge();return a}else{rs&&(We.mapsAsObjects=!0,rs=!1);let a=new Map;if(We.keyMap)for(let i=0;i<e;i++)a.set(We.decodeKey(Ge()),Ge());else for(let i=0;i<e;i++)a.set(Ge(),Ge());return a}case 6:if(e>=E1){let a=pt[e&8191];if(a)return a.read||(a.read=L0(a)),a.read();if(e<65536){if(e==hM){let i=ri(),s=Ge(),o=Ge();P0(s,o);let l={};if(We.keyMap)for(let u=2;u<i;u++){let d=We.decodeKey(o[u-2]);l[Ar(d)]=Ge()}else for(let u=2;u<i;u++){let d=o[u-2];l[Ar(d)]=Ge()}return l}else if(e==dM){let i=ri(),s=Ge();for(let o=2;o<i;o++)P0(s++,Ge());return Ge()}else if(e==E1)return TM();if(We.getShared&&(id(),a=pt[e&8191],a))return a.read||(a.read=L0(a)),a.read()}}let n=vt[e];if(n)return n.handlesRead?n(Ge):n(Ge());{let a=Ge();for(let i=0;i<D0.length;i++){let s=D0[i](e,a);if(s!==void 0)return s}return new La(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=(sr||Aa())[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 w1=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function L0(e){if(!e)throw new Error("Structure is required in record definition");function t(){let r=Te[re++];if(r=r&31,r>23)switch(r){case 24:r=Te[re++];break;case 25:r=Gt.getUint16(re),re+=2;break;case 26:r=Gt.getUint32(re),re+=4;break;default:throw new Error("Expected array header, but got "+Te[re-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===r)return n(Ge);n=n.next}if(this.slowReads++>=c3){let i=this.length==r?this:this.slice(0,r);return n=We.keyMap?new Function("r","return {"+i.map(s=>We.decodeKey(s)).map(s=>w1.test(s)?Ar(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>w1.test(s)?Ar(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=r,this.compiledReader=n,n(Ge)}let a={};if(We.keyMap)for(let i=0;i<r;i++)a[Ar(We.decodeKey(this[i]))]=Ge();else for(let i=0;i<r;i++)a[Ar(this[i])]=Ge();return a}return e.slowReads=0,t}function Ar(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 fM=M0;function M0(e){let t;if(e<16&&(t=d3(e)))return t;if(e>64&&R0)return R0.decode(Te.subarray(re,re+=e));const r=re+e,n=[];for(t="";re<r;){const a=Te[re++];if((a&128)===0)n.push(a);else if((a&224)===192){const i=Te[re++]&63;n.push((a&31)<<6|i)}else if((a&240)===224){const i=Te[re++]&63,s=Te[re++]&63;n.push((a&31)<<12|i<<6|s)}else if((a&248)===240){const i=Te[re++]&63,s=Te[re++]&63,o=Te[re++]&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+=Rt.apply(String,n),n.length=0)}return n.length>0&&(t+=Rt.apply(String,n)),t}let Rt=String.fromCharCode;function mM(e){let t=re,r=new Array(e);for(let n=0;n<e;n++){const a=Te[re++];if((a&128)>0){re=t;return}r[n]=a}return Rt.apply(String,r)}function d3(e){if(e<4)if(e<2){if(e===0)return"";{let t=Te[re++];if((t&128)>1){re-=1;return}return Rt(t)}}else{let t=Te[re++],r=Te[re++];if((t&128)>0||(r&128)>0){re-=2;return}if(e<3)return Rt(t,r);let n=Te[re++];if((n&128)>0){re-=3;return}return Rt(t,r,n)}else{let t=Te[re++],r=Te[re++],n=Te[re++],a=Te[re++];if((t&128)>0||(r&128)>0||(n&128)>0||(a&128)>0){re-=4;return}if(e<6){if(e===4)return Rt(t,r,n,a);{let i=Te[re++];if((i&128)>0){re-=5;return}return Rt(t,r,n,a,i)}}else if(e<8){let i=Te[re++],s=Te[re++];if((i&128)>0||(s&128)>0){re-=6;return}if(e<7)return Rt(t,r,n,a,i,s);let o=Te[re++];if((o&128)>0){re-=7;return}return Rt(t,r,n,a,i,s,o)}else{let i=Te[re++],s=Te[re++],o=Te[re++],l=Te[re++];if((i&128)>0||(s&128)>0||(o&128)>0||(l&128)>0){re-=8;return}if(e<10){if(e===8)return Rt(t,r,n,a,i,s,o,l);{let u=Te[re++];if((u&128)>0){re-=9;return}return Rt(t,r,n,a,i,s,o,l,u)}}else if(e<12){let u=Te[re++],d=Te[re++];if((u&128)>0||(d&128)>0){re-=10;return}if(e<11)return Rt(t,r,n,a,i,s,o,l,u,d);let c=Te[re++];if((c&128)>0){re-=11;return}return Rt(t,r,n,a,i,s,o,l,u,d,c)}else{let u=Te[re++],d=Te[re++],c=Te[re++],h=Te[re++];if((u&128)>0||(d&128)>0||(c&128)>0||(h&128)>0){re-=12;return}if(e<14){if(e===12)return Rt(t,r,n,a,i,s,o,l,u,d,c,h);{let m=Te[re++];if((m&128)>0){re-=13;return}return Rt(t,r,n,a,i,s,o,l,u,d,c,h,m)}}else{let m=Te[re++],b=Te[re++];if((m&128)>0||(b&128)>0){re-=14;return}if(e<15)return Rt(t,r,n,a,i,s,o,l,u,d,c,h,m,b);let x=Te[re++];if((x&128)>0){re-=15;return}return Rt(t,r,n,a,i,s,o,l,u,d,c,h,m,b,x)}}}}}function pM(e){return We.copyBuffers?Uint8Array.prototype.slice.call(Te,re,re+=e):Te.subarray(re,re+=e)}let h3=new Float32Array(1),xo=new Uint8Array(h3.buffer,0,4);function gM(){let e=Te[re++],t=Te[re++],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 xo[3]=e&128|(r>>1)+56,xo[2]=(e&7)<<5|t>>3,xo[1]=t<<5,xo[0]=0,h3[0]}new Array(4096);class La{constructor(t,r){this.value=t,this.tag=r}}vt[0]=e=>new Date(e);vt[1]=e=>new Date(Math.round(e*1e3));vt[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};vt[3]=e=>BigInt(-1)-vt[2](e);vt[4]=e=>+(e[1]+"e"+e[0]);vt[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const P0=(e,t)=>{e=e-57344;let r=pt[e];r&&r.isShared&&((pt.restoreStructures||(pt.restoreStructures=[]))[e]=r),pt[e]=t,t.read=L0(t)};vt[cM]=e=>{let t=e.length,r=e[1];P0(e[0],r);let n={};for(let a=2;a<t;a++){let i=r[a-2];n[Ar(i)]=e[a]}return n};vt[14]=e=>At?At[0].slice(At.position0,At.position0+=e):new La(e,14);vt[15]=e=>At?At[1].slice(At.position1,At.position1+=e):new La(e,15);let bM={Error,RegExp};vt[27]=e=>(bM[e[0]]||Error)(e[1],e[2]);const f3=e=>{if(Te[re++]!=132){let r=new Error("Packed values structure must be followed by a 4 element array");throw Te.length<re&&(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 sr=sr?t.concat(sr.slice(t.length)):t,sr.prefixes=e(),sr.suffixes=e(),e()};f3.handlesRead=!0;vt[51]=f3;vt[v1]=e=>{if(!sr)if(We.getShared)id();else return new La(e,v1);if(typeof e=="number")return sr[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};vt[28]=e=>{kr||(kr=new Map,kr.id=0);let t=kr.id++,r=re,n=Te[re],a;n>>5==4?a=[]:a={};let i={target:a};kr.set(t,i);let s=e();return i.used?(Object.getPrototypeOf(a)!==Object.getPrototypeOf(s)&&(re=r,a=s,kr.set(t,{target:a}),s=e()),Object.assign(a,s)):(i.target=s,s)};vt[28].handlesRead=!0;vt[29]=e=>{let t=kr.get(e);return t.used=!0,t.target};vt[258]=e=>new Set(e);(vt[259]=e=>(We.mapsAsObjects&&(We.mapsAsObjects=!1,rs=!0),e())).handlesRead=!0;function Ka(e,t){return typeof e=="string"?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function Aa(){if(!sr)if(We.getShared)id();else throw new Error("No packed values available");return sr}const xM=1399353956;D0.push((e,t)=>{if(e>=225&&e<=255)return Ka(Aa().prefixes[e-224],t);if(e>=28704&&e<=32767)return Ka(Aa().prefixes[e-28672],t);if(e>=1879052288&&e<=2147483647)return Ka(Aa().prefixes[e-1879048192],t);if(e>=216&&e<=223)return Ka(t,Aa().suffixes[e-216]);if(e>=27647&&e<=28671)return Ka(t,Aa().suffixes[e-27639]);if(e>=1811940352&&e<=1879048191)return Ka(t,Aa().suffixes[e-1811939328]);if(e==xM)return{packedValues:sr,structures:pt.slice(0),version:t};if(e==55799)return t});const yM=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,k1=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array>"u"?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array>"u"?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],EM=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e<k1.length;e++)vM(k1[e],EM[e]);function vM(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;vt[a?t:t-4]=n==1||a==yM?s=>{if(!e)throw new Error("Could not find typed array for code "+t);return!We.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 TM(){let e=ri(),t=re+Ge();for(let n=2;n<e;n++){let a=ri();re+=a}let r=re;return re=t,At=[M0(ri()),M0(ri())],At.position0=0,At.position1=0,At.postBundlePosition=re,re=r,Ge()}function ri(){let e=Te[re++]&31;if(e>23)switch(e){case 24:e=Te[re++];break;case 25:e=Gt.getUint16(re),re+=2;break;case 26:e=Gt.getUint32(re),re+=4;break}return e}function id(){if(We.getShared){let e=m3(()=>(Te=null,We.getShared()))||{},t=e.structures||[];We.sharedVersion=e.version,sr=We.sharedValues=e.packedValues,pt===!0?We.structures=pt=t:pt.splice.apply(pt,[0,t.length].concat(t))}}function m3(e){let t=Ca,r=re,n=al,a=As,i=nl,s=kr,o=At,l=new Uint8Array(Te.slice(0,Ca)),u=pt,d=We,c=Ss,h=e();return Ca=t,re=r,al=n,As=a,nl=i,kr=s,At=o,Te=l,Ss=c,pt=u,We=d,Gt=new DataView(Te.buffer,Te.byteOffset,Te.byteLength),h}function B0(){Te=null,kr=null,pt=null}const sd=new Array(147);for(let e=0;e<256;e++)sd[e]=+("1e"+Math.floor(45.15-e*.30103));let od=new Cs({useRecords:!1});const A1=od.decode;od.decodeMultiple;let Oo;try{Oo=new TextEncoder}catch{}let F0,p3;const Ml=typeof globalThis=="object"&&globalThis.Buffer,Us=typeof Ml<"u",Ru=Us?Ml.allocUnsafeSlow:Uint8Array,S1=Us?Ml:Uint8Array,C1=256,_1=Us?4294967296:2144337920;let Du,K,ot,B=0,Qn,kt=null;const wM=61440,kM=/[\u0080-\uFFFF]/,dr=Symbol("record-id");class AM extends Cs{constructor(t){super(t),this.offset=0;let r,n,a,i,s;t=t||{};let o=S1.prototype.utf8Write?function(C,H,j){return K.utf8Write(C,H,j)}:Oo&&Oo.encodeInto?function(C,H){return Oo.encodeInto(C,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 h,m,b=t.sharedValues,x;if(b){x=Object.create(null);for(let C=0,H=b.length;C<H;C++)x[b[C]]=C}let T=[],E=0,k=0;this.mapEncode=function(C,H){if(this._keyMap&&!this._mapped)switch(C.constructor.name){case"Array":C=C.map(j=>this.encodeKeys(j));break}return this.encode(C,H)},this.encode=function(C,H){if(K||(K=new Ru(8192),ot=new DataView(K.buffer,0,8192),B=0),Qn=K.length-10,Qn-B<2048?(K=new Ru(K.length),ot=new DataView(K.buffer,0,K.length),Qn=K.length-10,B=0):H===O1&&(B=B+7&2147483640),r=B,l.useSelfDescribedHeader&&(ot.setUint32(B,3654940416),B+=3),s=l.structuredClone?new Map:null,l.bundleStrings&&typeof C!="string"?(kt=[],kt.size=1/0):kt=null,n=l.structures,n){if(n.uninitialized){let q=l.getShared()||{};l.structures=n=q.structures||[],l.sharedVersion=q.version;let W=l.sharedValues=q.packedValues;if(W){x={};for(let X=0,ue=W.length;X<ue;X++)x[W[X]]=X}}let j=n.length;if(j>d&&!c&&(j=d),!n.transitions){n.transitions=Object.create(null);for(let q=0;q<j;q++){let W=n[q];if(!W)continue;let X,ue=n.transitions;for(let N=0,he=W.length;N<he;N++){ue[dr]===void 0&&(ue[dr]=q);let be=W[N];X=ue[be],X||(X=ue[be]=Object.create(null)),ue=X}ue[dr]=q|1048576}}c||(n.nextId=j)}if(a&&(a=!1),i=n||[],m=x,t.pack){let j=new Map;if(j.values=[],j.encoder=l,j.maxValues=t.maxPrivatePackedValues||(x?16:1/0),j.objectMap=x||!1,j.samplingPackedValues=h,Ro(C,j),j.values.length>0){K[B++]=216,K[B++]=51,sn(4);let q=j.values;_(q),sn(0),sn(0),m=Object.create(x||null);for(let W=0,X=q.length;W<X;W++)m[q[W]]=W}}Du=HΜtry{if(Du)return;if(_(C),kt&&I1(r,_),l.offset=B,s&&s.idsToInsert){B+=s.idsToInsert.length*2,B>Qn&&U(B),l.offset=B;let j=_M(K.subarray(r,B),s.idsToInsert);return s=null,j}return H&O1?(K.start=r,K.end=B,K):K.subarray(r,B)}finally{if(n){if(k<10&&k++,n.length>d&&(n.length=d),E>1e4)n.transitions=null,k=0,E=0,T.length>0&&(T=[]);else if(T.length>0&&!c){for(let j=0,q=T.length;j<q;j++)T[j][dr]=void 0;T=[]}}if(a&&l.saveShared){l.structures.length>d&&(l.structures=l.structures.slice(0,d));let j=K.subarray(r,B);return l.updateSharedData()===!1?l.encode(C):j}H&IM&&(B=r)}},this.findCommonStringsToPack=()=>(h=new Map,x||(x=Object.create(null)),C=>{let H=C&&C.threshold||4,j=this.pack?C.maxPrivatePackedValues||16:0;b||(b=this.sharedValues=[]);for(let[q,W]of h)W.count>H&&(x[q]=j++,b.push(q),a=!0);for(;this.saveShared&&this.updateSharedData()===!1;);h=null});const _=C=>{B>Qn&&(K=U(B));var H=typeof C,j;if(H==="string"){if(m){let ue=m[C];if(ue>=0){ue<16?K[B++]=ue+224:(K[B++]=198,ue&1?_(15-ue>>1):_(ue-16>>1));return}else if(h&&!t.pack){let N=h.get(C);N?N.count++:h.set(C,{count:1})}}let q=C.length;if(kt&&q>=4&&q<1024){if((kt.size+=q)>wM){let N,he=(kt[0]?kt[0].length*3+kt[1].length:0)+10;B+he>Qn&&(K=U(B+he)),K[B++]=217,K[B++]=223,K[B++]=249,K[B++]=kt.position?132:130,K[B++]=26,N=B-r,B+=4,kt.position&&I1(r,_),kt=["",""],kt.size=0,kt.position=N}let ue=kM.test(C);kt[ue?0:1]+=C,K[B++]=ue?206:207,_(q);return}let W;q<32?W=1:q<256?W=2:q<65536?W=3:W=5;let X=q*3;if(B+X>Qn&&(K=U(B+X)),q<64||!o){let ue,N,he,be=B+W;for(ue=0;ue<q;ue++)N=C.charCodeAt(ue),N<128?K[be++]=N:N<2048?(K[be++]=N>>6|192,K[be++]=N&63|128):(N&64512)===55296&&((he=C.charCodeAt(ue+1))&64512)===56320?(N=65536+((N&1023)<<10)+(he&1023),ue++,K[be++]=N>>18|240,K[be++]=N>>12&63|128,K[be++]=N>>6&63|128,K[be++]=N&63|128):(K[be++]=N>>12|224,K[be++]=N>>6&63|128,K[be++]=N&63|128);j=be-B-W}else j=o(C,B+W,X);j<24?K[B++]=96|j:j<256?(W<2&&K.copyWithin(B+2,B+1,B+1+j),K[B++]=120,K[B++]=j):j<65536?(W<3&&K.copyWithin(B+3,B+2,B+2+j),K[B++]=121,K[B++]=j>>8,K[B++]=j&255):(W<5&&K.copyWithin(B+5,B+3,B+3+j),K[B++]=122,ot.setUint32(B,j),B+=4),B+=j}else if(H==="number")if(!this.alwaysUseFloat&&C>>>0===C)C<24?K[B++]=C:C<256?(K[B++]=24,K[B++]=C):C<65536?(K[B++]=25,K[B++]=C>>8,K[B++]=C&255):(K[B++]=26,ot.setUint32(B,C),B+=4);else if(!this.alwaysUseFloat&&C>>0===C)C>=-24?K[B++]=31-C:C>=-256?(K[B++]=56,K[B++]=~C):C>=-65536?(K[B++]=57,ot.setUint16(B,~C),B+=2):(K[B++]=58,ot.setUint32(B,~C),B+=4);else{let q;if((q=this.useFloat32)>0&&C<4294967296&&C>=-2147483648){K[B++]=250,ot.setFloat32(B,C);let W;if(q<4||(W=C*sd[(K[B]&127)<<1|K[B+1]>>7])>>0===W){B+=4;return}else B--}K[B++]=251,ot.setFloat64(B,C),B+=8}else if(H==="object")if(!C)K[B++]=246;else{if(s){let W=s.get(C);if(W){if(K[B++]=216,K[B++]=29,K[B++]=25,!W.references){let X=s.idsToInsert||(s.idsToInsert=[]);W.references=[],X.push(W)}W.references.push(B-r),B+=2;return}else s.set(C,{offset:B-r})}let q=C.constructor;if(q===Object)P(C);else if(q===Array){j=C.length,j<24?K[B++]=128|j:sn(j);for(let W=0;W<j;W++)_(C[W])}else if(q===Map)if((this.mapsAsObjects?this.useTag259ForMaps!==!1:this.useTag259ForMaps)&&(K[B++]=217,K[B++]=1,K[B++]=3),j=C.size,j<24?K[B++]=160|j:j<256?(K[B++]=184,K[B++]=j):j<65536?(K[B++]=185,K[B++]=j>>8,K[B++]=j&255):(K[B++]=186,ot.setUint32(B,j),B+=4),l.keyMap)for(let[W,X]of C)_(l.encodeKey(W)),_(X);else for(let[W,X]of C)_(W),_(X);else{for(let W=0,X=F0.length;W<X;W++){let ue=p3[W];if(C instanceof ue){let N=F0[W],he=N.tag;he==null&&(he=N.getTag&&N.getTag.call(this,C)),he<24?K[B++]=192|he:he<256?(K[B++]=216,K[B++]=he):he<65536?(K[B++]=217,K[B++]=he>>8,K[B++]=he&255):he>-1&&(K[B++]=218,ot.setUint32(B,he),B+=4),N.encode.call(this,C,_,U);return}}if(C[Symbol.iterator]){if(Du){let W=new Error("Iterable should be serialized as iterator");throw W.iteratorNotHandled=!0,W}K[B++]=159;for(let W of C)_(W);K[B++]=255;return}if(C[Symbol.asyncIterator]||Lu(C)){let W=new Error("Iterable/blob should be serialized as iterator");throw W.iteratorNotHandled=!0,W}if(this.useToJSON&&C.toJSON){const W=C.toJSON();if(W!==C)return _(W)}P(C)}}else if(H==="boolean")K[B++]=C?245:244;else if(H==="bigint"){if(C<BigInt(1)<<BigInt(64)&&C>=0)K[B++]=27,ot.setBigUint64(B,C);else if(C>-(BigInt(1)<<BigInt(64))&&C<0)K[B++]=59,ot.setBigUint64(B,-C-BigInt(1));else if(this.largeBigIntToFloat)K[B++]=251,ot.setFloat64(B,Number(C));else{C>=BigInt(0)?K[B++]=194:(K[B++]=195,C=BigInt(-1)-C);let q=[];for(;C;)q.push(Number(C&BigInt(255))),C>>=BigInt(8);z0(new Uint8Array(q.reverse()),U);return}B+=8}else if(H==="undefined")K[B++]=247;else throw new Error("Unknown type: "+H)},P=this.useRecords===!1?this.variableMapSize?C=>{let H=Object.keys(C),j=Object.values(C),q=H.length;if(q<24?K[B++]=160|q:q<256?(K[B++]=184,K[B++]=q):q<65536?(K[B++]=185,K[B++]=q>>8,K[B++]=q&255):(K[B++]=186,ot.setUint32(B,q),B+=4),l.keyMap)for(let W=0;W<q;W++)_(l.encodeKey(H[W])),_(j[W]);else for(let W=0;W<q;W++)_(H[W]),_(j[W])}:C=>{K[B++]=185;let H=B-r;B+=2;let j=0;if(l.keyMap)for(let q in C)(typeof C.hasOwnProperty!="function"||C.hasOwnProperty(q))&&(_(l.encodeKey(q)),_(C[q]),j++);else for(let q in C)(typeof C.hasOwnProperty!="function"||C.hasOwnProperty(q))&&(_(q),_(C[q]),j++);K[H+++r]=j>>8,K[H+r]=j&255}:(C,H)=>{let j,q=i.transitions||(i.transitions=Object.create(null)),W=0,X=0,ue,N;if(this.keyMap){N=Object.keys(C).map(be=>this.encodeKey(be)),X=N.length;for(let be=0;be<X;be++){let O=N[be];j=q[O],j||(j=q[O]=Object.create(null),W++),q=j}}else for(let be in C)(typeof C.hasOwnProperty!="function"||C.hasOwnProperty(be))&&(j=q[be],j||(q[dr]&1048576&&(ue=q[dr]&65535),j=q[be]=Object.create(null),W++),q=j,X++);let he=q[dr];if(he!==void 0)he&=65535,K[B++]=217,K[B++]=he>>8|224,K[B++]=he&255;else if(N||(N=q.__keys__||(q.__keys__=Object.keys(C))),ue===void 0?(he=i.nextId++,he||(he=0,i.nextId=1),he>=C1&&(i.nextId=(he=d)+1)):he=ue,i[he]=N,he<d){K[B++]=217,K[B++]=he>>8|224,K[B++]=he&255,q=i.transitions;for(let be=0;be<X;be++)(q[dr]===void 0||q[dr]&1048576)&&(q[dr]=he),q=q[N[be]];q[dr]=he|1048576,a=!0}else{if(q[dr]=he,ot.setUint32(B,3655335680),B+=3,W&&(E+=k*W),T.length>=C1-d&&(T.shift()[dr]=void 0),T.push(q),sn(X+2),_(57344+he),_(N),H)return;for(let be in C)(typeof C.hasOwnProperty!="function"||C.hasOwnProperty(be))&&_(C[be]);return}if(X<24?K[B++]=128|X:sn(X),!H)for(let be in C)(typeof C.hasOwnProperty!="function"||C.hasOwnProperty(be))&&_(C[be])},U=C=>{let H;if(C>16777216){if(C-r>_1)throw new Error("Encoded buffer would be larger than maximum buffer size");H=Math.min(_1,Math.round(Math.max((C-r)*(C>67108864?1.25:2),4194304)/4096)*4096)}else H=(Math.max(C-r<<2,K.length-1)>>12)+1<<12;let j=new Ru(H);return ot=new DataView(j.buffer,0,H),K.copy?K.copy(j,0,r,C):j.set(K.slice(r,C)),B-=r,r=0,Qn=j.length-10,K=j};let D=100,V=1e3;this.encodeAsIterable=function(C,H){return ne(C,H,Y)},this.encodeAsAsyncIterable=function(C,H){return ne(C,H,$)};function*Y(C,H,j){let q=C.constructor;if(q===Object){let W=l.useRecords!==!1;W?P(C,!0):N1(Object.keys(C).length,160);for(let X in C){let ue=C[X];W||_(X),ue&&typeof ue=="object"?H[X]?yield*Y(ue,H[X]):yield*ee(ue,H,X):_(ue)}}else if(q===Array){let W=C.length;sn(W);for(let X=0;X<W;X++){let ue=C[X];ue&&(typeof ue=="object"||B-r>D)?H.element?yield*Y(ue,H.element):yield*ee(ue,H,"element"):_(ue)}}else if(C[Symbol.iterator]&&!C.buffer){K[B++]=159;for(let W of C)W&&(typeof W=="object"||B-r>D)?H.element?yield*Y(W,H.element):yield*ee(W,H,"element"):_(W);K[B++]=255}else Lu(C)?(N1(C.size,64),yield K.subarray(r,B),yield C,F()):C[Symbol.asyncIterator]?(K[B++]=159,yield K.subarray(r,B),yield C,F(),K[B++]=255):_(C);j&&B>r?yield K.subarray(r,B):B-r>D&&(yield K.subarray(r,B),F())}function*ee(C,H,j){let q=B-r;try{_(C),B-r>D&&(yield K.subarray(r,B),F())}catch(W){if(W.iteratorNotHandled)H[j]={},B=r+q,yield*Y.call(this,C,H[j]);else throw W}}function F(){D=V,l.encode(null,Mu)}function ne(C,H,j){return H&&H.chunkThreshold?D=V=H.chunkThreshold:D=100,C&&typeof C=="object"?(l.encode(null,Mu),j(C,l.iterateProperties||(l.iterateProperties={}),!0)):[l.encode(C)]}async function*$(C,H){for(let j of Y(C,H,!0)){let q=j.constructor;if(q===S1||q===Uint8Array)yield j;else if(Lu(j)){let W=j.stream().getReader(),X;for(;!(X=await W.read()).done;)yield X.value}else if(j[Symbol.asyncIterator])for await(let W of j)F(),W?yield*$(W,H.async||(H.async={})):yield l.encode(W);else yield j}}}useBuffer(t){K=t,ot=new DataView(K.buffer,K.byteOffset,K.byteLength),B=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 g3(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 N1(e,t){e<24?K[B++]=t|e:e<256?(K[B++]=t|24,K[B++]=e):e<65536?(K[B++]=t|25,K[B++]=e>>8,K[B++]=e&255):(K[B++]=t|26,ot.setUint32(B,e),B+=4)}class g3{constructor(t,r,n){this.structures=t,this.packedValues=r,this.version=n}}function sn(e){e<24?K[B++]=128|e:e<256?(K[B++]=152,K[B++]=e):e<65536?(K[B++]=153,K[B++]=e>>8,K[B++]=e&255):(K[B++]=154,ot.setUint32(B,e),B+=4)}const SM=typeof Blob>"u"?function(){}:Blob;function Lu(e){if(e instanceof SM)return!0;let t=e[Symbol.toStringTag];return t==="Blob"||t==="File"}function Ro(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++)Ro(e[n],t);else{let n=!t.encoder.useRecords;for(var r in e)e.hasOwnProperty(r)&&(n&&Ro(r,t),Ro(e[r],t))}break;case"function":console.log(e)}}const CM=new Uint8Array(new Uint16Array([1]).buffer)[0]==1;p3=[Date,Set,Error,RegExp,La,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array>"u"?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array>"u"?function(){}:BigInt64Array,Float32Array,Float64Array,g3];F0=[{tag:1,encode(e,t){let r=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&&r>=0&&r<4294967296?(K[B++]=26,ot.setUint32(B,r),B+=4):(K[B++]=251,ot.setFloat64(B,r),B+=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){z0(e,r)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||Us&&this.tagUint8Array!==!1))return 64},encode(e,t,r){z0(e,r)}},Gr(68,1),Gr(69,2),Gr(70,4),Gr(71,8),Gr(72,1),Gr(77,2),Gr(78,4),Gr(79,8),Gr(85,4),Gr(86,8),{encode(e,t){let r=e.packedValues||[],n=e.structures||[];if(r.values.length>0){K[B++]=216,K[B++]=51,sn(4);let a=r.values;t(a),sn(0),sn(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let i=0,s=a.length;i<s;i++)packedObjectMap[a[i]]=i}if(n){ot.setUint32(B,3655335424),B+=3;let a=n.slice(0);a.unshift(57344),a.push(new La(e.version,1399353956)),t(a)}else t(new La(e.version,1399353956))}}];function Gr(e,t){return!CM&&t>1&&(e-=4),{tag:e,encode:function(n,a){let i=n.byteLength,s=n.byteOffset||0,o=n.buffer||n;a(Us?Ml.from(o,s,i):new Uint8Array(o,s,i))}}}function z0(e,t){let r=e.byteLength;r<24?K[B++]=64+r:r<256?(K[B++]=88,K[B++]=r):r<65536?(K[B++]=89,K[B++]=r>>8,K[B++]=r&255):(K[B++]=90,ot.setUint32(B,r),B+=4),B+r>=K.length&&t(B+r),K.set(e.buffer?e:new Uint8Array(e),B),B+=r}function _M(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 I1(e,t){ot.setUint32(kt.position+e,B-kt.position-e+1);let r=kt;kt=null,t(r[0]),t(r[1])}let ld=new AM({useRecords:!1});const NM=ld.encode;ld.encodeAsIterable;ld.encodeAsAsyncIterable;const O1=512,IM=1024,Mu=2048;async function qt(e,t){var a;const r=await fetch("/api/rpc",{method:"POST",headers:{"Content-Type":"application/cbor",Accept:"application/cbor"},body:new Uint8Array(NM({method:e,params:t??{}}))});if(!r.ok){try{const i=await r.arrayBuffer(),s=A1(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 A1(new Uint8Array(n))}async function sP(e,t){return qt("fetchRuns",{worldEnv:e,params:t})}async function oP(e,t,r="all"){return qt("fetchRun",{worldEnv:e,runId:t,resolveData:r})}async function lP(e,t,r){return qt("fetchSteps",{worldEnv:e,runId:t,params:r})}async function uP(e,t,r,n="all"){return qt("fetchStep",{worldEnv:e,runId:t,stepId:r,resolveData:n})}async function cP(e,t,r){return qt("fetchEvents",{worldEnv:e,runId:t,params:r})}async function dP(e,t,r){return qt("fetchEventsByCorrelationId",{worldEnv:e,correlationId:t,params:r})}async function hP(e,t){return qt("fetchHooks",{worldEnv:e,params:t})}async function fP(e,t,r="all"){return qt("fetchHook",{worldEnv:e,hookId:t,resolveData:r})}async function mP(e,t){return qt("cancelRun",{worldEnv:e,runId:t})}async function pP(e,t,r){return qt("recreateRun",{worldEnv:e,runId:t,deploymentId:r})}async function gP(e,t){return qt("reenqueueRun",{worldEnv:e,runId:t})}async function bP(e,t,r){return qt("wakeUpRun",{worldEnv:e,runId:t,options:r})}async function xP(e,t,r){return qt("resumeHook",{worldEnv:e,token:t,payload:r})}async function yP(e,t){return qt("fetchStreams",{worldEnv:e,runId:t})}async function EP(e){return qt("fetchWorkflowsManifest",{worldEnv:e})}async function vP(e,t,r){return qt("runHealthCheck",{worldEnv:e,endpoint:t,options:r})}const OM=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:Z4},Symbol.toStringTag,{value:"Module"}));export{td as $,l6 as A,uM as B,w5 as C,JM as D,cP as E,um as F,MM as G,FM as H,Rm as I,Q5 as J,J5 as K,BM as L,Dm as M,Sn as N,Ta as O,Pa as P,Bt as Q,o6 as R,nP as S,tP as T,qM as U,x6 as V,bs as W,Ll as X,we as Y,OL as Z,tl as _,rP as a,ci as a0,rl as a1,lR as a2,cL as a3,VM as a4,ei as a5,uR as a6,XM as a7,GM as a8,YM as a9,oM as aA,l3 as aB,$b as aC,Vb as aD,Wb as aE,Yb as aF,Xb as aG,Qb as aH,Kb as aI,Gb as aJ,Db as aK,sP as aL,eP as aM,mP as aN,gP as aO,hP as aP,bP as aQ,xP as aR,lP as aS,fP as aT,uP as aU,yP as aV,pP as aW,EP as aX,Ze as aY,_d as aa,WM as ab,u3 as ac,nM as ad,lM as ae,A1 as af,Da as ag,ZM as ah,u_ as ai,wi as aj,tc as ak,jm as al,$m as am,nf as an,f2 as ao,pl as ap,Jy as aq,fl as ar,$r as as,ZI as at,Fe as au,x5 as av,QM as aw,YL as ax,i3 as ay,KM as az,rM as b,K0 as c,s3 as d,HM as e,w6 as f,_a as g,dP as h,il as i,Ma as j,em as k,P1 as l,Cn as m,U3 as n,w3 as o,z1 as p,u6 as q,vP as r,p6 as s,zM as t,aP as u,c6 as v,T5 as w,iP as x,b5 as y,oP as z};
|