mulmoclaude 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/README.md +1 -0
  2. package/client/assets/{AllPackages-Dw2RXFr1.js → AllPackages-BEk5YJDm.js} +1 -1
  3. package/client/assets/{BaseConfiguration-D3cG9hNe.js → BaseConfiguration-BNAavVmS.js} +1 -1
  4. package/client/assets/{Element-Cv7I_0yC.js → Element-9N081W6i.js} +1 -1
  5. package/client/assets/{Entities-C8-4eSNA.js → Entities-CStqDzQa.js} +1 -1
  6. package/client/assets/{FunctionList-vF4juMGB.js → FunctionList-BiRbmGuH.js} +1 -1
  7. package/client/assets/{InputJax-DgXeQ-Ah.js → InputJax-BIXwEG13.js} +1 -1
  8. package/client/assets/{JsonEditor-ZvNJuqs_.js → JsonEditor-FKfzzMkt.js} +1 -1
  9. package/client/assets/{MathItem-Detxmt2G.js → MathItem-BGdp9nCn.js} +1 -1
  10. package/client/assets/{MmlFactory-CIQ3138s.js → MmlFactory-BtWqthmC.js} +1 -1
  11. package/client/assets/{Options-DmQY5iBM.js → Options-D4NRwRVE.js} +1 -1
  12. package/client/assets/{OutputJax-CAQGaq8b.js → OutputJax-ClIqqRdT.js} +1 -1
  13. package/client/assets/{PrioritizedList-kZ7_WZX-.js → PrioritizedList-CnJ310Kt.js} +1 -1
  14. package/client/assets/{Styles-B53-i2nc.js → Styles-D3y1lCFc.js} +1 -1
  15. package/client/assets/{TeXAtom-Dwnbvu2N.js → TeXAtom-ZEaqimtW.js} +1 -1
  16. package/client/assets/__vite-browser-external-B2LgiLf-.js +1 -0
  17. package/client/assets/{abnfDiagram-YUKMZFIV-D2izv3tI.js → abnfDiagram-WEYOIA3C-BscsEU67.js} +1 -1
  18. package/client/assets/{arc-Dy-vWwtK.js → arc-Dl4OzSiI.js} +1 -1
  19. package/client/assets/{architectureDiagram-47P4ROYG-BMqz_hfK.js → architectureDiagram-ZHVYKT53-DVrv2QNl.js} +1 -1
  20. package/client/assets/{assistive-mml-BBZjDstH.js → assistive-mml-x7F99dtt.js} +1 -1
  21. package/client/assets/{blockDiagram-E7TT5TSB-BC_6nVzg.js → blockDiagram-RJAE7QA3-CL9VjhIy.js} +1 -1
  22. package/client/assets/{c4Diagram-CRA5TL53-CMlgEq-D.js → c4Diagram-XDPPPE54-ClAuW1Su.js} +1 -1
  23. package/client/assets/channel-C7tbw03E.js +1 -0
  24. package/client/assets/{chunk-AW2ZBBNX-CRAjzqLf.js → chunk-2E7WHVMD-BpfatsVl.js} +1 -1
  25. package/client/assets/{chunk-HTAEGDNF-BpIQa4ai.js → chunk-4EMNKR2T-CNryqYUD.js} +1 -1
  26. package/client/assets/{chunk-7TKQ45FW-BY_vhyym.js → chunk-55XCU76K-CQJx4wsK.js} +1 -1
  27. package/client/assets/{chunk-3YJQHVM4-B_LDijS0.js → chunk-7S6XSTFO-B8TJqaKm.js} +1 -1
  28. package/client/assets/{chunk-E2ZNV5FY-CRk3Pfq3.js → chunk-AQDTSKZB-dUGlA8XM.js} +1 -1
  29. package/client/assets/{chunk-VPRB5NB3-CYQe0pjV.js → chunk-DSNLSHJZ-Bc29O7Kj.js} +2 -2
  30. package/client/assets/chunk-HAGFOTED-SRXWMJmA.js +62 -0
  31. package/client/assets/chunk-HNE4Q36P-XIsiGulF.js +1 -0
  32. package/client/assets/{chunk-EU5HNXII-C7SKkz7x.js → chunk-NQOKRVIF-CNDyB28A.js} +1 -1
  33. package/client/assets/{chunk-4EA7E6EY-DB8ZoOxD.js → chunk-UHW7PFBP-D7z_YIHC.js} +1 -1
  34. package/client/assets/{chunk-KQW6MTUR-CzqgqmsR.js → chunk-VQ5W62QI-CfTNhJXC.js} +1 -1
  35. package/client/assets/chunk-WQQL4CDK--oD9-mIV.js +10 -0
  36. package/client/assets/{chunk-XXDRQBXY-DCiQN07N.js → chunk-XXDRQBXY-BuQ7FvNe.js} +1 -1
  37. package/client/assets/{chunk-HJ2JQQFS-CdiwUyEn.js → chunk-YZO67HFG-CVfUxFvr.js} +1 -1
  38. package/client/assets/{chunk-DBDB3WZW-CfsLqRL8.js → chunk-ZAUX2LTX-DPy60Elv.js} +1 -1
  39. package/client/assets/{chunk-FVRAUYC3-9lHES_Ib.js → chunk-ZCHMQSOR-4NYZgH42.js} +1 -1
  40. package/client/assets/{classDiagram-v2-K4WV4PDN-BNPHLuup.js → classDiagram-v2-4MYWR3UA-lJp1Kd7m.js} +1 -1
  41. package/client/assets/{cose-bilkent-JH36ORCC-dF6741Or.js → cose-bilkent-JH36ORCC-DcDTRz3u.js} +1 -1
  42. package/client/assets/{cynefinDiagram-3GCD6N5R-4XXRJFyl.js → cynefinDiagram-WF24UDRP-QSqrt6_X.js} +1 -1
  43. package/client/assets/{dagre-W4DXFKR2-PkNbgDcl.js → dagre-NK4GIZVX-8E7OP13B.js} +1 -1
  44. package/client/assets/{diagram-OVF4WLC6-Cy-3YXv9.js → diagram-CBK3MWTC-C2JHQxLJ.js} +1 -1
  45. package/client/assets/{diagram-UMYRVEAY-BWotPjlO.js → diagram-I5XIIV2D-xBXWQfqG.js} +1 -1
  46. package/client/assets/{diagram-PFPMY2P6-ckbdhYhd.js → diagram-ODIL2UCW-sA3o0YaV.js} +1 -1
  47. package/client/assets/{diagram-ZIFT7M5P-DIZ_YPN4.js → diagram-PFBEJUXE-Bzk9qOX0.js} +1 -1
  48. package/client/assets/{diagram-YEKJPTXX-Drfsm5Ei.js → diagram-RJA3I4VV-BwqRpVus.js} +1 -1
  49. package/client/assets/{diagram-2UJZ2QOL-D5UsCT69.js → diagram-TYUNFSNR-DOTRQeA3.js} +1 -1
  50. package/client/assets/{dist-DovUe4bX.js → dist-COSwdJCZ.js} +1 -1
  51. package/client/assets/{ebnfDiagram-VR2GEFS7-BZqd1z6D.js → ebnfDiagram-V4P3TTPT-C39RhWYu.js} +1 -1
  52. package/client/assets/elk-QONTBCTQ-dPy-h9Po.js +27 -0
  53. package/client/assets/{erDiagram-O2IAPWRE-B62N9MOe.js → erDiagram-KYQIGQAA-B5Fn1BL_.js} +1 -1
  54. package/client/assets/flowDiagram-IUGLLWBU-sQjDH9CV.js +1 -0
  55. package/client/assets/{ganttDiagram-R7TSEDQI-yzG4IDV2.js → ganttDiagram-R7GPNTJY-DSvw-AAx.js} +1 -1
  56. package/client/assets/{gitGraphDiagram-XJZIOB7I-DKNU3c7Q.js → gitGraphDiagram-PDYL7XHY-DwXIb1T8.js} +1 -1
  57. package/client/assets/{heic2any-B4wtRmxS.js → heic2any-7DJPuAa-.js} +1 -1
  58. package/client/assets/{html-CR7kQNkU.js → html-Ct7pOTau.js} +1 -1
  59. package/client/assets/index-BII5bTJI.css +2 -0
  60. package/client/assets/{index-CkmW0yWc.js → index-CoMmb_Su.js} +2170 -411
  61. package/client/assets/{infoDiagram-5W2HQ5XZ-1fGGWi6i.js → infoDiagram-MVDRKAX5-BP0sp6PG.js} +1 -1
  62. package/client/assets/{ishikawaDiagram-K3B6WC7H-D8UbvNjQ.js → ishikawaDiagram-HPEHV2GE-DkZCnfkB.js} +1 -1
  63. package/client/assets/{journeyDiagram-COXZFDF6-DODfPsn6.js → journeyDiagram-BOSHW7O7-C5lBrmWk.js} +1 -1
  64. package/client/assets/{kanban-definition-P3RFRI5V-C_4kym-D.js → kanban-definition-FNSA4HC5-k1P4cerJ.js} +1 -1
  65. package/client/assets/katex-B940_AAO.js +257 -0
  66. package/client/assets/{lengths-BWBolkW1.js → lengths-DaFrXNkv.js} +1 -1
  67. package/client/assets/{line-CHud_SQT.js → line-DG8MUuK4.js} +1 -1
  68. package/client/assets/{linear-N0xOv4AO.js → linear-QypFZXrA.js} +1 -1
  69. package/client/assets/{liteAdaptor-BcJ0akeI.js → liteAdaptor-Bcghdd_u.js} +1 -1
  70. package/client/assets/{manifold-DUBpAdN8.js → manifold-CyOGI3vv.js} +2 -2
  71. package/client/assets/{marp-OXXg-yyV.js → marp-uBg3qXiP.js} +1 -1
  72. package/client/assets/{mathjax-B2LxS74s.js → mathjax-D7JHkqwo.js} +1 -1
  73. package/client/assets/{mermaid.core-Ck4FoAPC.js → mermaid.core-DGklhdAB.js} +5 -5
  74. package/client/assets/{mindmap-definition-LZFPQGKD-2U3eDZgj.js → mindmap-definition-6OY57UG3-gzS6FyZY.js} +11 -9
  75. package/client/assets/{mo-C-TLAbzI.js → mo-BjiDe2hG.js} +1 -1
  76. package/client/assets/{pegDiagram-BGZESJAR-CPSrx-ye.js → pegDiagram-ECIUJNBX-Cq66EodD.js} +1 -1
  77. package/client/assets/{pieDiagram-CAPJLFHJ-5f_PIyeW.js → pieDiagram-GNMPY74T-xAtnNnqX.js} +1 -1
  78. package/client/assets/purify.es-BXhPiKO5.js +3 -0
  79. package/client/assets/{quadrantDiagram-GDMTTRAM-DtTnwXGk.js → quadrantDiagram-D57K4MC3-Du892PsV.js} +1 -1
  80. package/client/assets/{railroadDiagram-SM67HX2B-D_vgpY1Q.js → railroadDiagram-Y72NRBL7-CKdD2y_X.js} +1 -1
  81. package/client/assets/{requirementDiagram-X7JNWC4A-D73sEQMU.js → requirementDiagram-EQYSW5RA-Bq_GbYUM.js} +1 -1
  82. package/client/assets/{runtime-protocol-vue-CSgbWzhp.js → runtime-protocol-vue-DDgG0sdu.js} +1 -1
  83. package/client/assets/{runtime-vue-vwmCYkQi.js → runtime-vue-D3lOcL9y.js} +1 -1
  84. package/client/assets/{sankeyDiagram-UM26HJRW-D937W4Di.js → sankeyDiagram-SY24JHO5-CfVDH0Xd.js} +1 -1
  85. package/client/assets/{sequenceDiagram-ZO4K6R2Y-CQxSGPhF.js → sequenceDiagram-BLEHNHQU-BfLzBJr6.js} +1 -1
  86. package/client/assets/{src-tZFcq4Tp.js → src-BgGykKNK.js} +1 -1
  87. package/client/assets/{stateDiagram-v2-TBUQTH76-Dh3_ywoS.js → stateDiagram-v2-A6IESKWZ-Drw4P5gp.js} +1 -1
  88. package/client/assets/{svg-DmHVKe1q.js → svg-Cqon0dX1.js} +1 -1
  89. package/client/assets/swimlanes-B3ENRKFQ-BQFHcOaN.js +1 -0
  90. package/client/assets/swimlanesDiagram-AYQRV4AK-BCeSnUvS.js +8 -0
  91. package/client/assets/{tex-ClbW-kMH.js → tex-CPHJ5d-t.js} +1 -1
  92. package/client/assets/{timeline-definition-YOQAKGHF-CLrIBvH8.js → timeline-definition-JXYKGLGB-DKG-sSoZ.js} +1 -1
  93. package/client/assets/{usecaseDiagram-VIAY4XPW-E2sLzIvc.js → usecaseDiagram-WPOLBNNX-6b-VgS7o.js} +1 -1
  94. package/client/assets/{vennDiagram-BLWOH2XV-DRtM4O4i.js → vennDiagram-Q3Y3IDCW-DWz364sx.js} +1 -1
  95. package/client/assets/{vue-i18n-BbRMUmOW.js → vue-i18n-2bgWpywp.js} +1 -1
  96. package/client/assets/{vue-C_VSdwOG.js → vue-imO0VoyF.js} +1 -1
  97. package/client/assets/vue.runtime.esm-bundler-Cwm3cFXF.js +5 -0
  98. package/client/assets/{wardleyDiagram-YMQ3BMBF-CK584zEb.js → wardleyDiagram-IVAIDKWA-C43sB-35.js} +1 -1
  99. package/client/assets/{xychartDiagram-TAQBALBS-D47LTZYZ.js → xychartDiagram-4URNHDU4-D-n9TuYW.js} +1 -1
  100. package/client/index.html +9 -9
  101. package/package.json +7 -6
  102. package/server/build/mcp-server.mjs +554 -552
  103. package/client/assets/__vite-browser-external-0OnNcCAs.js +0 -1
  104. package/client/assets/channel-D5MgCXLU.js +0 -1
  105. package/client/assets/chunk-2BW5OAIV-BmsIcsho.js +0 -10
  106. package/client/assets/chunk-NTY3LDVX-DJFUMgKq.js +0 -1
  107. package/client/assets/chunk-XC4XBNZT-Crw0ZTTY.js +0 -62
  108. package/client/assets/elk-IJKZMXRS-CU7dBhBG.js +0 -27
  109. package/client/assets/flowDiagram-OXPTDLAJ-BWPfh4Ws.js +0 -1
  110. package/client/assets/index-Da2v4SOh.css +0 -2
  111. package/client/assets/katex-DJhrJSbw.js +0 -257
  112. package/client/assets/purify.es-B0LuI4JX.js +0 -3
  113. package/client/assets/swimlanes-N4OXWK64-CzBA2aUH.js +0 -1
  114. package/client/assets/swimlanesDiagram-K3J5GTZL-DpGZyRA0.js +0 -8
  115. package/client/assets/vue.runtime.esm-bundler-C6akXk9q.js +0 -5
@@ -1,10 +1,10 @@
1
- import{t as e}from"./v4-DDdyfk2q.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-tZFcq4Tp.js";import{O as r,b as i,et as a,f as o,rt as s,tt as c,y as l,z as u}from"./chunk-VPRB5NB3-CYQe0pjV.js";import"./chunk-3YJQHVM4-B_LDijS0.js";import"./chunk-HJ2JQQFS-CdiwUyEn.js";import"./chunk-E2ZNV5FY-CRk3Pfq3.js";import"./chunk-4EA7E6EY-DB8ZoOxD.js";import"./chunk-XC4XBNZT-Crw0ZTTY.js";import"./chunk-DBDB3WZW-CfsLqRL8.js";import"./chunk-2BW5OAIV-BmsIcsho.js";import{t as d}from"./chunk-XXDRQBXY-DCiQN07N.js";import{t as f}from"./chunk-KQW6MTUR-CzqgqmsR.js";import"./chunk-NTY3LDVX-DJFUMgKq.js";import{i as p,r as m}from"./mermaid.core-Ck4FoAPC.js";var h=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{t as e}from"./v4-DDdyfk2q.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-BgGykKNK.js";import{O as r,b as i,et as a,f as o,rt as s,tt as c,y as l,z as u}from"./chunk-DSNLSHJZ-Bc29O7Kj.js";import"./chunk-7S6XSTFO-B8TJqaKm.js";import"./chunk-YZO67HFG-CVfUxFvr.js";import"./chunk-AQDTSKZB-dUGlA8XM.js";import"./chunk-UHW7PFBP-D7z_YIHC.js";import"./chunk-HAGFOTED-SRXWMJmA.js";import"./chunk-ZAUX2LTX-DPy60Elv.js";import"./chunk-WQQL4CDK--oD9-mIV.js";import{t as d}from"./chunk-XXDRQBXY-BuQ7FvNe.js";import{t as f}from"./chunk-VQ5W62QI-CfTNhJXC.js";import"./chunk-HNE4Q36P-XIsiGulF.js";import{i as p,r as m}from"./mermaid.core-DGklhdAB.js";var h=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
5
  `+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return t(y,`Parser`),y.prototype=v,v.Parser=y,new y})();h.parser=h;var g=h,_=12,v={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},y=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=v,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,t,r,a){n.info(`addNode`,e,t,r,a);let s=!1;this.nodes.length===0?(this.baseLevel=e,e=0,s=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,s=!1);let c=i(),l=c.mindmap?.padding??o.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:l*=2}let d={id:this.count++,nodeId:u(t,c),level:e,descr:u(r,c),type:a,children:[],width:c.mindmap?.maxNodeWidth??o.mindmap.maxNodeWidth,padding:l,isRoot:s},f=this.getParent(e);if(f)f.children.push(d),this.nodes.push(d);else if(s)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(e,t){switch(n.debug(`In get type`,e,t),e){case`[`:return this.nodeType.RECT;case`(`:return t===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=i(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=u(e.icon,t)),e.class&&(n.class=u(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.section=e.level===0?void 0:t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(_-1):t;this.assignSections(r,i)}}flattenNodes(e,n){let r=i(),a=[`mindmap-node`];e.isRoot===!0?a.push(`section-root`,`section--1`):e.section!==void 0&&a.push(`section-${e.section}`),e.class&&a.push(e.class);let o=a.join(` `),s=t(e=>{let t=(r.theme?.toLowerCase()??``).includes(`redux`);switch(e){case v.CIRCLE:return`mindmapCircle`;case v.RECT:return`rect`;case v.ROUNDED_RECT:return`rounded`;case v.CLOUD:return`cloud`;case v.BANG:return`bang`;case v.HEXAGON:return`hexagon`;case v.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case v.NO_BORDER:default:return`rect`}},`getShapeFromType`),c={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:s(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:o,cssStyles:[],look:r.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(n.push(c),e.children)for(let t of e.children)this.flattenNodes(t,n)}generateEdges(e,t){if(!e.children)return;let n=i();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let t=this.getMindmap(),a=i(),o=r().layout!==void 0,s=a;if(o||(s.layout=`cose-bilkent`),!t)return{nodes:[],edges:[],config:s};n.debug(`getData: mindmapRoot`,t,a),this.assignSections(t);let c=[],l=[];this.flattenNodes(t,c),this.generateEdges(t,l),n.debug(`getData: processed ${c.length} nodes and ${l.length} edges`);let u=new Map;for(let e of c)u.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:c,edges:l,config:s,rootNode:t,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(u),type:`mindmap`,diagramId:`mindmap-`+e()}}getLogger(){return n}},b={draw:t(async(e,t,r,i)=>{n.debug(`Rendering mindmap diagram
7
- `+e);let a=i.db,s=a.getData(),c=d(t,s.config.securityLevel);if(s.type=i.type,s.layoutAlgorithm=m(s.config.layout,{fallback:`cose-bilkent`}),s.diagramId=t,!a.getMindmap())return;s.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await p(s,c);let{themeVariables:u}=l(),{useGradient:h,gradientStart:g,gradientStop:_}=u;if(h&&g&&_){let e=c.attr(`id`),t=c.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}f(c,s.config.mindmap?.padding??o.mindmap.padding,`mindmapDiagram`,s.config.mindmap?.useMaxWidth??o.mindmap.useMaxWidth)},`draw`)},x=t(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],s(e[`lineColor`+t])?e[`lineColor`+t]=c(e[`lineColor`+t],20):e[`lineColor`+t]=a(e[`lineColor`+t],20);for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let a=``+(n===`neo`?Math.max(10-(i-1)*2,2):17-3*i);r+=`
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return t(y,`Parser`),y.prototype=v,v.Parser=y,new y})();h.parser=h;var g=h,_=12,v={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},y=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=v,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,t,r,a){n.info(`addNode`,e,t,r,a);let s=!1;this.nodes.length===0?(this.baseLevel=e,e=0,s=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,s=!1);let c=i(),l=c.mindmap?.padding??o.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:l*=2}let d={id:this.count++,nodeId:u(t,c),level:e,descr:u(r,c),type:a,children:[],width:c.mindmap?.maxNodeWidth??o.mindmap.maxNodeWidth,padding:l,isRoot:s},f=this.getParent(e);if(f)f.children.push(d),this.nodes.push(d);else if(s)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(e,t){switch(n.debug(`In get type`,e,t),e){case`[`:return this.nodeType.RECT;case`(`:return t===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=i(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=u(e.icon,t)),e.class&&(n.class=u(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t,n=0,r=!1){if(e.section=e.level===0?void 0:r?(n-1)%(_-1):t,e.children)for(let[i,a]of e.children.entries()){let o=e.level===0?i%(_-1):t;this.assignSections(a,o,n+1,r)}}flattenNodes(e,n){let r=i(),a=[`mindmap-node`];e.isRoot===!0?a.push(`section-root`,`section--1`):e.section!==void 0&&a.push(`section-${e.section}`),e.class&&a.push(e.class);let o=a.join(` `),s=t(e=>{let t=(r.theme?.toLowerCase()??``).includes(`redux`);switch(e){case v.CIRCLE:return`mindmapCircle`;case v.RECT:return`rect`;case v.ROUNDED_RECT:return`rounded`;case v.CLOUD:return`cloud`;case v.BANG:return`bang`;case v.HEXAGON:return`hexagon`;case v.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case v.NO_BORDER:default:return`rect`}},`getShapeFromType`),c={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:s(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:o,cssStyles:[],centerLabel:!0,look:r.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(n.push(c),e.children)for(let t of e.children)this.flattenNodes(t,n)}generateEdges(e,t){if(!e.children)return;let n=i();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let t=this.getMindmap(),a=i(),o=r().layout!==void 0,s=a;if(o||(s.layout=`cose-bilkent`),!t)return{nodes:[],edges:[],config:s};n.debug(`getData: mindmapRoot`,t,a),this.assignSections(t,void 0,0,a.mindmap?.colorBy===`depth`);let c=[],l=[];this.flattenNodes(t,c),this.generateEdges(t,l),n.debug(`getData: processed ${c.length} nodes and ${l.length} edges`);let u=new Map;for(let e of c)u.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:c,edges:l,config:s,rootNode:t,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(u),type:`mindmap`,diagramId:`mindmap-`+e()}}getLogger(){return n}},b={draw:t(async(e,t,r,i)=>{n.debug(`Rendering mindmap diagram
7
+ `+e);let a=i.db,s=a.getData(),c=d(t,s.config.securityLevel);if(s.type=i.type,s.layoutAlgorithm=m(s.config.layout,{fallback:`cose-bilkent`}),s.diagramId=t,!a.getMindmap())return;s.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await p(s,c);let{themeVariables:u}=l(),{useGradient:h,gradientStart:g,gradientStop:_}=u;if(h&&g&&_){let e=c.attr(`id`),t=c.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}f(c,s.config.mindmap?.padding??o.mindmap.padding,`mindmapDiagram`,s.config.mindmap?.useMaxWidth??o.mindmap.useMaxWidth)},`draw`)},x=t(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],s(e[`lineColor`+t])?e[`lineColor`+t]=c(e[`lineColor`+t],20):e[`lineColor`+t]=a(e[`lineColor`+t],20);for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let a=``+(n===`neo`?Math.max(10-(i-1)*2,2):17-3*i),o=t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:i)];r+=`
8
8
  .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
9
9
  fill: ${e[`cScale`+i]};
10
10
  }
@@ -43,8 +43,9 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
43
43
  [data-look="neo"].section-edge-${i-1}{
44
44
  stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+i]};
45
45
  }
46
- [data-look="neo"].mindmap-node.section-${i-1} text {
47
- fill: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:i)]};
46
+ [data-look="neo"].mindmap-node.section-${i-1} text, [data-look="neo"].mindmap-node.section-${i-1} span {
47
+ fill: ${o};
48
+ color: ${o};
48
49
  }
49
50
  `}return r},`genSections`),S=t((e,t,n)=>{let r=``;for(let i=0;i<e;i++)r+=`
50
51
  [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
@@ -53,7 +54,7 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
53
54
  }
54
55
  .section-${i-1} line {
55
56
  stroke-width: 0;
56
- }`;return r},`genGradient`),C={get db(){return new y},renderer:b,parser:g,styles:t(e=>{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
57
+ }`;return r},`genGradient`),C={get db(){return new y},renderer:b,parser:g,styles:t(e=>{let{theme:t}=e,n=e.svgId,r=t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)],i=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
57
58
  .edge {
58
59
  stroke-width: 3;
59
60
  }
@@ -84,13 +85,14 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
84
85
  text-align: center;
85
86
  }
86
87
  [data-look="neo"].mindmap-node {
87
- filter: ${r};
88
+ filter: ${i};
88
89
  }
89
90
  [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
90
91
  fill: ${t?.includes(`redux`)?e.mainBkg:e.git0};
91
92
  }
92
- [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
93
- fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]};
93
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan, [data-look="neo"].mindmap-node.section-root span {
94
+ fill: ${r};
95
+ color: ${r};
94
96
  }
95
97
  ${e.useGradient&&n&&e.mainBkg?S(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
96
98
  `},`getStyles`)};export{C as diagram};
@@ -1 +1 @@
1
- import{Pr as e}from"./vue.runtime.esm-bundler-C6akXk9q.js";var t=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFactory=void 0,e.AbstractFactory=function(){function e(e){var n,r;e===void 0&&(e=null),this.defaultKind=`unknown`,this.nodeMap=new Map,this.node={},e===null&&(e=this.constructor.defaultNodes);try{for(var i=t(Object.keys(e)),a=i.next();!a.done;a=i.next()){var o=a.value;this.setNodeClass(o,e[o])}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}return e.prototype.create=function(e){var t=[...arguments].slice(1);return(this.node[e]||this.node[this.defaultKind]).apply(void 0,r([],n(t),!1))},e.prototype.setNodeClass=function(e,t){this.nodeMap.set(e,t);var i=this,a=this.nodeMap.get(e);this.node[e]=function(){var e=[...arguments];return new(a.bind.apply(a,r([void 0,i],n(e),!1)))}},e.prototype.getNodeClass=function(e){return this.nodeMap.get(e)},e.prototype.deleteNodeClass=function(e){this.nodeMap.delete(e),delete this.node[e]},e.prototype.nodeIsKind=function(e,t){return e instanceof this.getNodeClass(t)},e.prototype.getKinds=function(){return Array.from(this.nodeMap.keys())},e.defaultNodes={},e}()})),n=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.Attributes=e.INHERIT=void 0,e.INHERIT=`_inherit_`,e.Attributes=function(){function n(e,t){this.global=t,this.defaults=Object.create(t),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,e)}return n.prototype.set=function(e,t){this.attributes[e]=t},n.prototype.setList=function(e){Object.assign(this.attributes,e)},n.prototype.get=function(t){var n=this.attributes[t];return n===e.INHERIT&&(n=this.global[t]),n},n.prototype.getExplicit=function(e){if(this.attributes.hasOwnProperty(e))return this.attributes[e]},n.prototype.getList=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a={};try{for(var o=t(r),s=o.next();!s.done;s=o.next()){var c=s.value;a[c]=this.get(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return a},n.prototype.setInherited=function(e,t){this.inherited[e]=t},n.prototype.getInherited=function(e){return this.inherited[e]},n.prototype.getDefault=function(e){return this.defaults[e]},n.prototype.isSet=function(e){return this.attributes.hasOwnProperty(e)||this.inherited.hasOwnProperty(e)},n.prototype.hasDefault=function(e){return e in this.defaults},n.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},n.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},n.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},n.prototype.getGlobalNames=function(){return Object.keys(this.global)},n.prototype.getAllAttributes=function(){return this.attributes},n.prototype.getAllInherited=function(){return this.inherited},n.prototype.getAllDefaults=function(){return this.defaults},n.prototype.getAllGlobals=function(){return this.global},n}()})),r=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEmptyNode=e.AbstractNode=void 0;var i=function(){function e(e,t,n){var i,a;t===void 0&&(t={}),n===void 0&&(n=[]),this.factory=e,this.parent=null,this.properties={},this.childNodes=[];try{for(var o=r(Object.keys(t)),s=o.next();!s.done;s=o.next()){var c=s.value;this.setProperty(c,t[c])}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}n.length&&this.setChildren(n)}return Object.defineProperty(e.prototype,"kind",{get:function(){return`unknown`},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(e,t){this.properties[e]=t},e.prototype.getProperty=function(e){return this.properties[e]},e.prototype.getPropertyNames=function(){return Object.keys(this.properties)},e.prototype.getAllProperties=function(){return this.properties},e.prototype.removeProperty=function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var a=r(n),o=a.next();!o.done;o=a.next()){var s=o.value;delete this.properties[s]}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},e.prototype.isKind=function(e){return this.factory.nodeIsKind(this,e)},e.prototype.setChildren=function(e){var t,n;this.childNodes=[];try{for(var i=r(e),a=i.next();!a.done;a=i.next()){var o=a.value;this.appendChild(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.appendChild=function(e){return this.childNodes.push(e),e.parent=this,e},e.prototype.replaceChild=function(e,t){var n=this.childIndex(t);return n!==null&&(this.childNodes[n]=e,e.parent=this,t.parent=null),e},e.prototype.removeChild=function(e){var t=this.childIndex(e);return t!==null&&(this.childNodes.splice(t,1),e.parent=null),e},e.prototype.childIndex=function(e){var t=this.childNodes.indexOf(e);return t===-1?null:t},e.prototype.copy=function(){var e,t,i=this.factory.create(this.kind);i.properties=n({},this.properties);try{for(var a=r(this.childNodes||[]),o=a.next();!o.done;o=a.next()){var s=o.value;s&&i.appendChild(s.copy())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i},e.prototype.findNodes=function(e){var t=[];return this.walkTree(function(n){n.isKind(e)&&t.push(n)}),t},e.prototype.walkTree=function(e,t){var n,i;e(this,t);try{for(var a=r(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s&&s.walkTree(e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t},e.prototype.toString=function(){return this.kind+`(`+this.childNodes.join(`,`)+`)`},e}();e.AbstractNode=i,e.AbstractEmptyNode=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.setChildren=function(e){},n.prototype.appendChild=function(e){return e},n.prototype.replaceChild=function(e,t){return t},n.prototype.childIndex=function(e){return null},n.prototype.walkTree=function(e,t){return e(this,t),t},n.prototype.toString=function(){return this.kind},n}(i)})),i=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var s=n(),c=r();e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},e.TEXCLASSNAMES=[`ORD`,`OP`,`BIN`,`REL`,`OPEN`,`CLOSE`,`PUNCT`,`INNER`,`VCENTER`];var l=[``,`thinmathspace`,`mediummathspace`,`thickmathspace`],u=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];e.indentAttributes=[`indentalign`,`indentalignfirst`,`indentshift`,`indentshiftfirst`];var d=function(n){t(r,n);function r(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var i=n.call(this,e)||this;return i.prevClass=null,i.prevLevel=null,i.texclass=null,i.arity<0&&(i.childNodes=[e.create(`inferredMrow`)],i.childNodes[0].parent=i),i.setChildren(r),i.attributes=new s.Attributes(e.getNodeClass(i.kind).defaults,e.getNodeClass(`math`).defaults),i.attributes.setList(t),i}return r.prototype.copy=function(e){var t,n,r,o;e===void 0&&(e=!1);var s=this.factory.create(this.kind);if(s.properties=i({},this.properties),this.attributes){var c=this.attributes.getAllAttributes();try{for(var l=a(Object.keys(c)),u=l.next();!u.done;u=l.next()){var d=u.value;(d!==`id`||e)&&s.attributes.set(d,c[d])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}if(this.childNodes&&this.childNodes.length){var f=this.childNodes;f.length===1&&f[0].isInferred&&(f=f[0].childNodes);try{for(var p=a(f),m=p.next();!m.done;m=p.next()){var h=m.value;h?s.appendChild(h.copy()):s.childNodes.push(null)}}catch(e){r={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}return s},Object.defineProperty(r.prototype,"texClass",{get:function(){return this.texclass},set:function(e){this.texclass=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parent",{get:function(){for(var e=this.parent;e&&e.notParent;)e=e.Parent;return e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.setChildren=function(e){return this.arity<0?this.childNodes[0].setChildren(e):n.prototype.setChildren.call(this,e)},r.prototype.appendChild=function(e){var t,r,i=this;if(this.arity<0)return this.childNodes[0].appendChild(e),e;if(e.isInferred){if(this.arity===1/0)return e.childNodes.forEach(function(e){return n.prototype.appendChild.call(i,e)}),e;var o=e;e=this.factory.create(`mrow`),e.setChildren(o.childNodes),e.attributes=o.attributes;try{for(var s=a(o.getPropertyNames()),c=s.next();!c.done;c=s.next()){var l=c.value;e.setProperty(l,o.getProperty(l))}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}return n.prototype.appendChild.call(this,e)},r.prototype.replaceChild=function(e,t){return this.arity<0?(this.childNodes[0].replaceChild(e,t),e):n.prototype.replaceChild.call(this,e,t)},r.prototype.core=function(){return this},r.prototype.coreMO=function(){return this},r.prototype.coreIndex=function(){return 0},r.prototype.childPosition=function(){for(var e,t,n=this,r=n.parent;r&&r.notParent;)n=r,r=r.parent;if(r){var i=0;try{for(var o=a(r.childNodes),s=o.next();!s.done;s=o.next()){if(s.value===n)return i;i++}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}return null},r.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.texClass==null?e:this},r.prototype.updateTeXclass=function(e){e&&(this.prevClass=e.prevClass,this.prevLevel=e.prevLevel,e.prevClass=e.prevLevel=null,this.texClass=e.texClass)},r.prototype.getPrevClass=function(e){e&&(this.prevClass=e.texClass,this.prevLevel=e.attributes.get(`scriptlevel`))},r.prototype.texSpacing=function(){var t=this.prevClass==null?e.TEXCLASS.NONE:this.prevClass,n=this.texClass||e.TEXCLASS.ORD;if(t===e.TEXCLASS.NONE||n===e.TEXCLASS.NONE)return``;t===e.TEXCLASS.VCENTER&&(t=e.TEXCLASS.ORD),n===e.TEXCLASS.VCENTER&&(n=e.TEXCLASS.ORD);var r=u[t][n];return(this.prevLevel>0||this.attributes.get(`scriptlevel`)>0)&&r>=0?``:l[Math.abs(r)]},r.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},r.prototype.setInheritedAttributes=function(e,t,n,i){var s,c;e===void 0&&(e={}),t===void 0&&(t=!1),n===void 0&&(n=0),i===void 0&&(i=!1);var l=this.attributes.getAllDefaults();try{for(var u=a(Object.keys(e)),d=u.next();!d.done;d=u.next()){var f=d.value;if(l.hasOwnProperty(f)||r.alwaysInherit.hasOwnProperty(f)){var p=o(e[f],2),m=p[0],h=p[1];((r.noInherit[m]||{})[this.kind]||{})[f]||this.attributes.setInherited(f,h)}}}catch(e){s={error:e}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}this.attributes.getExplicit(`displaystyle`)===void 0&&this.attributes.setInherited(`displaystyle`,t),this.attributes.getExplicit(`scriptlevel`)===void 0&&this.attributes.setInherited(`scriptlevel`,n),i&&this.setProperty(`texprimestyle`,i);var g=this.arity;if(g>=0&&g!==1/0&&(g===1&&this.childNodes.length===0||g!==1&&this.childNodes.length!==g)){if(g<this.childNodes.length)this.childNodes=this.childNodes.slice(0,g);else for(;this.childNodes.length<g;)this.appendChild(this.factory.create(`mrow`))}this.setChildInheritedAttributes(e,t,n,i)},r.prototype.setChildInheritedAttributes=function(e,t,n,r){var i,o;try{for(var s=a(this.childNodes),c=s.next();!c.done;c=s.next())c.value.setInheritedAttributes(e,t,n,r)}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},r.prototype.addInheritedAttributes=function(e,t){var n,r,o=i({},e);try{for(var s=a(Object.keys(t)),c=s.next();!c.done;c=s.next()){var l=c.value;l!==`displaystyle`&&l!==`scriptlevel`&&l!==`style`&&(o[l]=[this.kind,t[l]])}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o},r.prototype.inheritAttributesFrom=function(e){var t=e.attributes,n=t.get(`displaystyle`),r=t.get(`scriptlevel`),i=t.isSet(`mathsize`)?{mathsize:[`math`,t.get(`mathsize`)]}:{},a=e.getProperty(`texprimestyle`)||!1;this.setInheritedAttributes(i,n,r,a)},r.prototype.verifyTree=function(e){if(e===void 0&&(e=null),e!==null){this.verifyAttributes(e);var t=this.arity;e.checkArity&&t>=0&&t!==1/0&&(t===1&&this.childNodes.length===0||t!==1&&this.childNodes.length!==t)&&this.mError(`Wrong number of children for "`+this.kind+`" node`,e,!0),this.verifyChildren(e)}},r.prototype.verifyAttributes=function(e){var t,n;if(e.checkAttributes){var r=this.attributes,i=[];try{for(var o=a(r.getExplicitNames()),s=o.next();!s.done;s=o.next()){var c=s.value;c.substr(0,5)!==`data-`&&r.getDefault(c)===void 0&&!c.match(/^(?:class|style|id|(?:xlink:)?href)$/)&&i.push(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}i.length&&this.mError(`Unknown attributes for `+this.kind+` node: `+i.join(`, `),e)}},r.prototype.verifyChildren=function(e){var t,n;try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next())i.value.verifyTree(e)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},r.prototype.mError=function(e,t,n){if(n===void 0&&(n=!1),this.parent&&this.parent.isKind(`merror`))return null;var r=this.factory.create(`merror`);if(r.attributes.set(`data-mjx-message`,e),t.fullErrors||n){var i=this.factory.create(`mtext`),a=this.factory.create(`text`);a.setText(t.fullErrors?e:this.kind),i.appendChild(a),r.appendChild(i),this.parent.replaceChild(r,this)}else this.parent.replaceChild(r,this),r.appendChild(this);return r},r.defaults={mathbackground:s.INHERIT,mathcolor:s.INHERIT,mathsize:s.INHERIT,dir:s.INHERIT},r.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},r.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},r.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},r}(c.AbstractNode);e.AbstractMmlNode=d,e.AbstractMmlTokenNode=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.getText=function(){var e,t,n=``;try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next()){var o=i.value;o instanceof p&&(n+=o.getText())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},n.prototype.setChildInheritedAttributes=function(e,t,n,r){var i,o;try{for(var s=a(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value;l instanceof d&&l.setInheritedAttributes(e,t,n,r)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},n.prototype.walkTree=function(e,t){var n,r;e(this,t);try{for(var i=a(this.childNodes),o=i.next();!o.done;o=i.next()){var s=o.value;s instanceof d&&s.walkTree(e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},n.defaults=i(i({},d.defaults),{mathvariant:`normal`,mathsize:s.INHERIT}),n}(d),e.AbstractMmlLayoutNode=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),n.prototype.core=function(){return this.childNodes[0]},n.prototype.coreMO=function(){return this.childNodes[0].coreMO()},n.prototype.setTeXclass=function(e){return e=this.childNodes[0].setTeXclass(e),this.updateTeXclass(this.childNodes[0]),e},n.defaults=d.defaults,n}(d),e.AbstractMmlBaseNode=function(n){t(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),r.prototype.core=function(){return this.childNodes[0]},r.prototype.coreMO=function(){return this.childNodes[0].coreMO()},r.prototype.setTeXclass=function(t){var n,r;this.getPrevClass(t),this.texClass=e.TEXCLASS.ORD;var i=this.childNodes[0];i?this.isEmbellished||i.isKind(`mi`)?(t=i.setTeXclass(t),this.updateTeXclass(this.core())):(i.setTeXclass(null),t=this):t=this;try{for(var o=a(this.childNodes.slice(1)),s=o.next();!s.done;s=o.next()){var c=s.value;c&&c.setTeXclass(null)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},r.defaults=d.defaults,r}(d);var f=function(n){t(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),r.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(r.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),r.prototype.core=function(){return this},r.prototype.coreMO=function(){return this},r.prototype.coreIndex=function(){return 0},r.prototype.childPosition=function(){return 0},r.prototype.setTeXclass=function(e){return e},r.prototype.texSpacing=function(){return``},r.prototype.setInheritedAttributes=function(e,t,n,r){},r.prototype.inheritAttributesFrom=function(e){},r.prototype.verifyTree=function(e){},r.prototype.mError=function(e,t,n){return n===void 0&&(n=!1),null},r}(c.AbstractEmptyNode);e.AbstractMmlEmptyNode=f;var p=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.text=``,t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`text`},enumerable:!1,configurable:!0}),n.prototype.getText=function(){return this.text},n.prototype.setText=function(e){return this.text=e,this},n.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},n.prototype.toString=function(){return this.text},n}(f);e.TextNode=p,e.XMLNode=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.xml=null,t.adaptor=null,t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`XML`},enumerable:!1,configurable:!0}),n.prototype.getXML=function(){return this.xml},n.prototype.setXML=function(e,t){return t===void 0&&(t=null),this.xml=e,this.adaptor=t,this},n.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},n.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},n.prototype.toString=function(){return`XML data`},n}(f)})),a=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var n=i();function r(e,t,r,i){return r===void 0&&(r=n.TEXCLASS.BIN),i===void 0&&(i=null),[e,t,r,i]}e.OPDEF=r,e.MO={ORD:r(0,0,n.TEXCLASS.ORD),ORD11:r(1,1,n.TEXCLASS.ORD),ORD21:r(2,1,n.TEXCLASS.ORD),ORD02:r(0,2,n.TEXCLASS.ORD),ORD55:r(5,5,n.TEXCLASS.ORD),NONE:r(0,0,n.TEXCLASS.NONE),OP:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:r(0,1,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:r(1,2,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:r(3,3,n.TEXCLASS.BIN),BIN4:r(4,4,n.TEXCLASS.BIN),BIN01:r(0,1,n.TEXCLASS.BIN),BIN5:r(5,5,n.TEXCLASS.BIN),TALLBIN:r(4,4,n.TEXCLASS.BIN,{stretchy:!0}),BINOP:r(4,4,n.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:r(5,5,n.TEXCLASS.REL),REL1:r(1,1,n.TEXCLASS.REL,{stretchy:!0}),REL4:r(4,4,n.TEXCLASS.REL),RELSTRETCH:r(5,5,n.TEXCLASS.REL,{stretchy:!0}),RELACCENT:r(5,5,n.TEXCLASS.REL,{accent:!0}),WIDEREL:r(5,5,n.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:r(0,0,n.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:r(0,0,n.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:r(0,0,n.TEXCLASS.INNER),PUNCT:r(0,3,n.TEXCLASS.PUNCT),ACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0,stretchy:!0})},e.RANGES=[[32,127,n.TEXCLASS.REL,`mo`],[160,191,n.TEXCLASS.ORD,`mo`],[192,591,n.TEXCLASS.ORD,`mi`],[688,879,n.TEXCLASS.ORD,`mo`],[880,6688,n.TEXCLASS.ORD,`mi`],[6832,6911,n.TEXCLASS.ORD,`mo`],[6912,7615,n.TEXCLASS.ORD,`mi`],[7616,7679,n.TEXCLASS.ORD,`mo`],[7680,8191,n.TEXCLASS.ORD,`mi`],[8192,8303,n.TEXCLASS.ORD,`mo`],[8304,8351,n.TEXCLASS.ORD,`mo`],[8448,8527,n.TEXCLASS.ORD,`mi`],[8528,8591,n.TEXCLASS.ORD,`mn`],[8592,8703,n.TEXCLASS.REL,`mo`],[8704,8959,n.TEXCLASS.BIN,`mo`],[8960,9215,n.TEXCLASS.ORD,`mo`],[9312,9471,n.TEXCLASS.ORD,`mn`],[9472,10223,n.TEXCLASS.ORD,`mo`],[10224,10239,n.TEXCLASS.REL,`mo`],[10240,10495,n.TEXCLASS.ORD,`mtext`],[10496,10623,n.TEXCLASS.REL,`mo`],[10624,10751,n.TEXCLASS.ORD,`mo`],[10752,11007,n.TEXCLASS.BIN,`mo`],[11008,11055,n.TEXCLASS.ORD,`mo`],[11056,11087,n.TEXCLASS.REL,`mo`],[11088,11263,n.TEXCLASS.ORD,`mo`],[11264,11744,n.TEXCLASS.ORD,`mi`],[11776,11903,n.TEXCLASS.ORD,`mo`],[11904,12255,n.TEXCLASS.ORD,`mi`,`normal`],[12272,12351,n.TEXCLASS.ORD,`mo`],[12352,42143,n.TEXCLASS.ORD,`mi`,`normal`],[42192,43055,n.TEXCLASS.ORD,`mi`],[43056,43071,n.TEXCLASS.ORD,`mn`],[43072,55295,n.TEXCLASS.ORD,`mi`],[63744,64255,n.TEXCLASS.ORD,`mi`,`normal`],[64256,65023,n.TEXCLASS.ORD,`mi`],[65024,65135,n.TEXCLASS.ORD,`mo`],[65136,65791,n.TEXCLASS.ORD,`mi`],[65792,65935,n.TEXCLASS.ORD,`mn`],[65936,74751,n.TEXCLASS.ORD,`mi`,`normal`],[74752,74879,n.TEXCLASS.ORD,`mn`],[74880,113823,n.TEXCLASS.ORD,`mi`,`normal`],[113824,119391,n.TEXCLASS.ORD,`mo`],[119648,119679,n.TEXCLASS.ORD,`mn`],[119808,120781,n.TEXCLASS.ORD,`mi`],[120782,120831,n.TEXCLASS.ORD,`mn`],[122624,129023,n.TEXCLASS.ORD,`mo`],[129024,129279,n.TEXCLASS.REL,`mo`],[129280,129535,n.TEXCLASS.ORD,`mo`],[131072,195103,n.TEXCLASS.ORD,`mi`,`normnal`]];function a(n){var r,i,a=n.codePointAt(0);try{for(var o=t(e.RANGES),s=o.next();!s.done;s=o.next()){var c=s.value;if(a<=c[1]){if(a>=c[0])return c;break}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return null}e.getRange=a,e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":e.MO.ORD21,"±":e.MO.BIN01,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,n.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,n.TEXCLASS.OPEN,{fence:!0}],ⅅ:e.MO.ORD21,ⅆ:r(2,0,n.TEXCLASS.ORD),"∀":e.MO.ORD21,"∂":e.MO.ORD21,"∃":e.MO.ORD21,"∄":e.MO.ORD21,"∇":e.MO.ORD21,"∏":e.MO.OP,"∐":e.MO.OP,"∑":e.MO.OP,"−":e.MO.BIN01,"∓":e.MO.BIN01,"√":[1,1,n.TEXCLASS.ORD,{stretchy:!0}],"∛":e.MO.ORD11,"∜":e.MO.ORD11,"∠":e.MO.ORD,"∡":e.MO.ORD,"∢":e.MO.ORD,"∫":e.MO.INTEGRAL,"∬":e.MO.INTEGRAL,"∭":e.MO.INTEGRAL,"∮":e.MO.INTEGRAL,"∯":e.MO.INTEGRAL,"∰":e.MO.INTEGRAL,"∱":e.MO.INTEGRAL,"∲":e.MO.INTEGRAL,"∳":e.MO.INTEGRAL,"⋀":e.MO.OP,"⋁":e.MO.OP,"⋂":e.MO.OP,"⋃":e.MO.OP,"⌈":e.MO.OPEN,"⌊":e.MO.OPEN,"〈":e.MO.OPEN,"❲":e.MO.OPEN,"⟦":e.MO.OPEN,"⟨":e.MO.OPEN,"⟪":e.MO.OPEN,"⟬":e.MO.OPEN,"⟮":e.MO.OPEN,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":e.MO.OPEN,"⦅":e.MO.OPEN,"⦇":e.MO.OPEN,"⦉":e.MO.OPEN,"⦋":e.MO.OPEN,"⦍":e.MO.OPEN,"⦏":e.MO.OPEN,"⦑":e.MO.OPEN,"⦓":e.MO.OPEN,"⦕":e.MO.OPEN,"⦗":e.MO.OPEN,"⧼":e.MO.OPEN,"⨀":e.MO.OP,"⨁":e.MO.OP,"⨂":e.MO.OP,"⨃":e.MO.OP,"⨄":e.MO.OP,"⨅":e.MO.OP,"⨆":e.MO.OP,"⨇":e.MO.OP,"⨈":e.MO.OP,"⨉":e.MO.OP,"⨊":e.MO.OP,"⨋":e.MO.INTEGRAL2,"⨌":e.MO.INTEGRAL,"⨍":e.MO.INTEGRAL2,"⨎":e.MO.INTEGRAL2,"⨏":e.MO.INTEGRAL2,"⨐":e.MO.OP,"⨑":e.MO.OP,"⨒":e.MO.OP,"⨓":e.MO.OP,"⨔":e.MO.OP,"⨕":e.MO.INTEGRAL2,"⨖":e.MO.INTEGRAL2,"⨗":e.MO.INTEGRAL2,"⨘":e.MO.INTEGRAL2,"⨙":e.MO.INTEGRAL2,"⨚":e.MO.INTEGRAL2,"⨛":e.MO.INTEGRAL2,"⨜":e.MO.INTEGRAL2,"⫼":e.MO.OP,"⫿":e.MO.OP},postfix:{"!!":r(1,0),"!":[1,0,n.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":r(0,0),"--":r(0,0),"..":r(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":e.MO.ACCENT,ª:e.MO.ACCENT,"¯":e.MO.WIDEACCENT,"°":e.MO.ORD,"²":e.MO.ACCENT,"³":e.MO.ACCENT,"´":e.MO.ACCENT,"¸":e.MO.ACCENT,"¹":e.MO.ACCENT,º:e.MO.ACCENT,ˆ:e.MO.WIDEACCENT,ˇ:e.MO.WIDEACCENT,ˉ:e.MO.WIDEACCENT,ˊ:e.MO.ACCENT,ˋ:e.MO.ACCENT,ˍ:e.MO.WIDEACCENT,"˘":e.MO.ACCENT,"˙":e.MO.ACCENT,"˚":e.MO.ACCENT,"˜":e.MO.WIDEACCENT,"˝":e.MO.ACCENT,"˷":e.MO.WIDEACCENT,"̂":e.MO.WIDEACCENT,"̑":e.MO.ACCENT,"϶":e.MO.REL,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"‚":e.MO.ACCENT,"‛":e.MO.ACCENT,"”":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"„":e.MO.ACCENT,"‟":e.MO.ACCENT,"′":e.MO.ORD,"″":e.MO.ACCENT,"‴":e.MO.ACCENT,"‵":e.MO.ACCENT,"‶":e.MO.ACCENT,"‷":e.MO.ACCENT,"‾":e.MO.WIDEACCENT,"⁗":e.MO.ACCENT,"⃛":e.MO.ACCENT,"⃜":e.MO.ACCENT,"⌉":e.MO.CLOSE,"⌋":e.MO.CLOSE,"〉":e.MO.CLOSE,"⎴":e.MO.WIDEACCENT,"⎵":e.MO.WIDEACCENT,"⏜":e.MO.WIDEACCENT,"⏝":e.MO.WIDEACCENT,"⏞":e.MO.WIDEACCENT,"⏟":e.MO.WIDEACCENT,"⏠":e.MO.WIDEACCENT,"⏡":e.MO.WIDEACCENT,"■":e.MO.BIN3,"□":e.MO.BIN3,"▪":e.MO.BIN3,"▫":e.MO.BIN3,"▭":e.MO.BIN3,"▮":e.MO.BIN3,"▯":e.MO.BIN3,"▰":e.MO.BIN3,"▱":e.MO.BIN3,"▲":e.MO.BIN4,"▴":e.MO.BIN4,"▶":e.MO.BIN4,"▷":e.MO.BIN4,"▸":e.MO.BIN4,"▼":e.MO.BIN4,"▾":e.MO.BIN4,"◀":e.MO.BIN4,"◁":e.MO.BIN4,"◂":e.MO.BIN4,"◄":e.MO.BIN4,"◅":e.MO.BIN4,"◆":e.MO.BIN4,"◇":e.MO.BIN4,"◈":e.MO.BIN4,"◉":e.MO.BIN4,"◌":e.MO.BIN4,"◍":e.MO.BIN4,"◎":e.MO.BIN4,"●":e.MO.BIN4,"◖":e.MO.BIN4,"◗":e.MO.BIN4,"◦":e.MO.BIN4,"♭":e.MO.ORD02,"♮":e.MO.ORD02,"♯":e.MO.ORD02,"❳":e.MO.CLOSE,"⟧":e.MO.CLOSE,"⟩":e.MO.CLOSE,"⟫":e.MO.CLOSE,"⟭":e.MO.CLOSE,"⟯":e.MO.CLOSE,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":e.MO.CLOSE,"⦆":e.MO.CLOSE,"⦈":e.MO.CLOSE,"⦊":e.MO.CLOSE,"⦌":e.MO.CLOSE,"⦎":e.MO.CLOSE,"⦐":e.MO.CLOSE,"⦒":e.MO.CLOSE,"⦔":e.MO.CLOSE,"⦖":e.MO.CLOSE,"⦘":e.MO.CLOSE,"⧽":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,n.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":r(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:`after`,separator:!0}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,n.TEXCLASS.PUNCT,{separator:!0}],"/":e.MO.ORD11,"//":r(1,1),"/=":e.MO.BIN4,":":[1,2,n.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:`after`,separator:!0}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":r(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,n.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":e.MO.BIN4,"·":e.MO.BIN4,"×":e.MO.BIN4,"÷":e.MO.BIN4,ʹ:e.MO.ORD,"̀":e.MO.ACCENT,"́":e.MO.ACCENT,"̃":e.MO.WIDEACCENT,"̄":e.MO.ACCENT,"̆":e.MO.ACCENT,"̇":e.MO.ACCENT,"̈":e.MO.ACCENT,"̌":e.MO.ACCENT,"̲":e.MO.WIDEACCENT,"̸":e.MO.REL4,"―":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"†":e.MO.BIN3,"‡":e.MO.BIN3,"•":e.MO.BIN4,"…":e.MO.INNER,"⁃":e.MO.BIN4,"⁄":e.MO.TALLBIN,"⁡":e.MO.NONE,"⁢":e.MO.NONE,"⁣":[0,0,n.TEXCLASS.NONE,{linebreakstyle:`after`,separator:!0}],"⁤":e.MO.NONE,"⃗":e.MO.ACCENT,ℑ:e.MO.ORD,ℓ:e.MO.ORD,℘:e.MO.ORD,ℜ:e.MO.ORD,"←":e.MO.WIDEREL,"↑":e.MO.RELSTRETCH,"→":e.MO.WIDEREL,"↓":e.MO.RELSTRETCH,"↔":e.MO.WIDEREL,"↕":e.MO.RELSTRETCH,"↖":e.MO.RELSTRETCH,"↗":e.MO.RELSTRETCH,"↘":e.MO.RELSTRETCH,"↙":e.MO.RELSTRETCH,"↚":e.MO.RELACCENT,"↛":e.MO.RELACCENT,"↜":e.MO.WIDEREL,"↝":e.MO.WIDEREL,"↞":e.MO.WIDEREL,"↟":e.MO.WIDEREL,"↠":e.MO.WIDEREL,"↡":e.MO.RELSTRETCH,"↢":e.MO.WIDEREL,"↣":e.MO.WIDEREL,"↤":e.MO.WIDEREL,"↥":e.MO.RELSTRETCH,"↦":e.MO.WIDEREL,"↧":e.MO.RELSTRETCH,"↨":e.MO.RELSTRETCH,"↩":e.MO.WIDEREL,"↪":e.MO.WIDEREL,"↫":e.MO.WIDEREL,"↬":e.MO.WIDEREL,"↭":e.MO.WIDEREL,"↮":e.MO.RELACCENT,"↯":e.MO.RELSTRETCH,"↰":e.MO.RELSTRETCH,"↱":e.MO.RELSTRETCH,"↲":e.MO.RELSTRETCH,"↳":e.MO.RELSTRETCH,"↴":e.MO.RELSTRETCH,"↵":e.MO.RELSTRETCH,"↶":e.MO.RELACCENT,"↷":e.MO.RELACCENT,"↸":e.MO.REL,"↹":e.MO.WIDEREL,"↺":e.MO.REL,"↻":e.MO.REL,"↼":e.MO.WIDEREL,"↽":e.MO.WIDEREL,"↾":e.MO.RELSTRETCH,"↿":e.MO.RELSTRETCH,"⇀":e.MO.WIDEREL,"⇁":e.MO.WIDEREL,"⇂":e.MO.RELSTRETCH,"⇃":e.MO.RELSTRETCH,"⇄":e.MO.WIDEREL,"⇅":e.MO.RELSTRETCH,"⇆":e.MO.WIDEREL,"⇇":e.MO.WIDEREL,"⇈":e.MO.RELSTRETCH,"⇉":e.MO.WIDEREL,"⇊":e.MO.RELSTRETCH,"⇋":e.MO.WIDEREL,"⇌":e.MO.WIDEREL,"⇍":e.MO.RELACCENT,"⇎":e.MO.RELACCENT,"⇏":e.MO.RELACCENT,"⇐":e.MO.WIDEREL,"⇑":e.MO.RELSTRETCH,"⇒":e.MO.WIDEREL,"⇓":e.MO.RELSTRETCH,"⇔":e.MO.WIDEREL,"⇕":e.MO.RELSTRETCH,"⇖":e.MO.RELSTRETCH,"⇗":e.MO.RELSTRETCH,"⇘":e.MO.RELSTRETCH,"⇙":e.MO.RELSTRETCH,"⇚":e.MO.WIDEREL,"⇛":e.MO.WIDEREL,"⇜":e.MO.WIDEREL,"⇝":e.MO.WIDEREL,"⇞":e.MO.REL,"⇟":e.MO.REL,"⇠":e.MO.WIDEREL,"⇡":e.MO.RELSTRETCH,"⇢":e.MO.WIDEREL,"⇣":e.MO.RELSTRETCH,"⇤":e.MO.WIDEREL,"⇥":e.MO.WIDEREL,"⇦":e.MO.WIDEREL,"⇧":e.MO.RELSTRETCH,"⇨":e.MO.WIDEREL,"⇩":e.MO.RELSTRETCH,"⇪":e.MO.RELSTRETCH,"⇫":e.MO.RELSTRETCH,"⇬":e.MO.RELSTRETCH,"⇭":e.MO.RELSTRETCH,"⇮":e.MO.RELSTRETCH,"⇯":e.MO.RELSTRETCH,"⇰":e.MO.WIDEREL,"⇱":e.MO.REL,"⇲":e.MO.REL,"⇳":e.MO.RELSTRETCH,"⇴":e.MO.RELACCENT,"⇵":e.MO.RELSTRETCH,"⇶":e.MO.WIDEREL,"⇷":e.MO.RELACCENT,"⇸":e.MO.RELACCENT,"⇹":e.MO.RELACCENT,"⇺":e.MO.RELACCENT,"⇻":e.MO.RELACCENT,"⇼":e.MO.RELACCENT,"⇽":e.MO.WIDEREL,"⇾":e.MO.WIDEREL,"⇿":e.MO.WIDEREL,"∁":r(1,2,n.TEXCLASS.ORD),"∅":e.MO.ORD,"∆":e.MO.BIN3,"∈":e.MO.REL,"∉":e.MO.REL,"∊":e.MO.REL,"∋":e.MO.REL,"∌":e.MO.REL,"∍":e.MO.REL,"∎":e.MO.BIN3,"−":e.MO.BIN4,"∓":e.MO.BIN4,"∔":e.MO.BIN4,"∕":e.MO.TALLBIN,"∖":e.MO.BIN4,"∗":e.MO.BIN4,"∘":e.MO.BIN4,"∙":e.MO.BIN4,"∝":e.MO.REL,"∞":e.MO.ORD,"∟":e.MO.REL,"∣":e.MO.REL,"∤":e.MO.REL,"∥":e.MO.REL,"∦":e.MO.REL,"∧":e.MO.BIN4,"∨":e.MO.BIN4,"∩":e.MO.BIN4,"∪":e.MO.BIN4,"∴":e.MO.REL,"∵":e.MO.REL,"∶":e.MO.REL,"∷":e.MO.REL,"∸":e.MO.BIN4,"∹":e.MO.REL,"∺":e.MO.BIN4,"∻":e.MO.REL,"∼":e.MO.REL,"∽":e.MO.REL,"∽̱":e.MO.BIN3,"∾":e.MO.REL,"∿":e.MO.BIN3,"≀":e.MO.BIN4,"≁":e.MO.REL,"≂":e.MO.REL,"≂̸":e.MO.REL,"≃":e.MO.REL,"≄":e.MO.REL,"≅":e.MO.REL,"≆":e.MO.REL,"≇":e.MO.REL,"≈":e.MO.REL,"≉":e.MO.REL,"≊":e.MO.REL,"≋":e.MO.REL,"≌":e.MO.REL,"≍":e.MO.REL,"≎":e.MO.REL,"≎̸":e.MO.REL,"≏":e.MO.REL,"≏̸":e.MO.REL,"≐":e.MO.REL,"≑":e.MO.REL,"≒":e.MO.REL,"≓":e.MO.REL,"≔":e.MO.REL,"≕":e.MO.REL,"≖":e.MO.REL,"≗":e.MO.REL,"≘":e.MO.REL,"≙":e.MO.REL,"≚":e.MO.REL,"≛":e.MO.REL,"≜":e.MO.REL,"≝":e.MO.REL,"≞":e.MO.REL,"≟":e.MO.REL,"≠":e.MO.REL,"≡":e.MO.REL,"≢":e.MO.REL,"≣":e.MO.REL,"≤":e.MO.REL,"≥":e.MO.REL,"≦":e.MO.REL,"≦̸":e.MO.REL,"≧":e.MO.REL,"≨":e.MO.REL,"≩":e.MO.REL,"≪":e.MO.REL,"≪̸":e.MO.REL,"≫":e.MO.REL,"≫̸":e.MO.REL,"≬":e.MO.REL,"≭":e.MO.REL,"≮":e.MO.REL,"≯":e.MO.REL,"≰":e.MO.REL,"≱":e.MO.REL,"≲":e.MO.REL,"≳":e.MO.REL,"≴":e.MO.REL,"≵":e.MO.REL,"≶":e.MO.REL,"≷":e.MO.REL,"≸":e.MO.REL,"≹":e.MO.REL,"≺":e.MO.REL,"≻":e.MO.REL,"≼":e.MO.REL,"≽":e.MO.REL,"≾":e.MO.REL,"≿":e.MO.REL,"≿̸":e.MO.REL,"⊀":e.MO.REL,"⊁":e.MO.REL,"⊂":e.MO.REL,"⊂⃒":e.MO.REL,"⊃":e.MO.REL,"⊃⃒":e.MO.REL,"⊄":e.MO.REL,"⊅":e.MO.REL,"⊆":e.MO.REL,"⊇":e.MO.REL,"⊈":e.MO.REL,"⊉":e.MO.REL,"⊊":e.MO.REL,"⊋":e.MO.REL,"⊌":e.MO.BIN4,"⊍":e.MO.BIN4,"⊎":e.MO.BIN4,"⊏":e.MO.REL,"⊏̸":e.MO.REL,"⊐":e.MO.REL,"⊐̸":e.MO.REL,"⊑":e.MO.REL,"⊒":e.MO.REL,"⊓":e.MO.BIN4,"⊔":e.MO.BIN4,"⊕":e.MO.BIN4,"⊖":e.MO.BIN4,"⊗":e.MO.BIN4,"⊘":e.MO.BIN4,"⊙":e.MO.BIN4,"⊚":e.MO.BIN4,"⊛":e.MO.BIN4,"⊜":e.MO.BIN4,"⊝":e.MO.BIN4,"⊞":e.MO.BIN4,"⊟":e.MO.BIN4,"⊠":e.MO.BIN4,"⊡":e.MO.BIN4,"⊢":e.MO.REL,"⊣":e.MO.REL,"⊤":e.MO.ORD55,"⊥":e.MO.REL,"⊦":e.MO.REL,"⊧":e.MO.REL,"⊨":e.MO.REL,"⊩":e.MO.REL,"⊪":e.MO.REL,"⊫":e.MO.REL,"⊬":e.MO.REL,"⊭":e.MO.REL,"⊮":e.MO.REL,"⊯":e.MO.REL,"⊰":e.MO.REL,"⊱":e.MO.REL,"⊲":e.MO.REL,"⊳":e.MO.REL,"⊴":e.MO.REL,"⊵":e.MO.REL,"⊶":e.MO.REL,"⊷":e.MO.REL,"⊸":e.MO.REL,"⊹":e.MO.REL,"⊺":e.MO.BIN4,"⊻":e.MO.BIN4,"⊼":e.MO.BIN4,"⊽":e.MO.BIN4,"⊾":e.MO.BIN3,"⊿":e.MO.BIN3,"⋄":e.MO.BIN4,"⋅":e.MO.BIN4,"⋆":e.MO.BIN4,"⋇":e.MO.BIN4,"⋈":e.MO.REL,"⋉":e.MO.BIN4,"⋊":e.MO.BIN4,"⋋":e.MO.BIN4,"⋌":e.MO.BIN4,"⋍":e.MO.REL,"⋎":e.MO.BIN4,"⋏":e.MO.BIN4,"⋐":e.MO.REL,"⋑":e.MO.REL,"⋒":e.MO.BIN4,"⋓":e.MO.BIN4,"⋔":e.MO.REL,"⋕":e.MO.REL,"⋖":e.MO.REL,"⋗":e.MO.REL,"⋘":e.MO.REL,"⋙":e.MO.REL,"⋚":e.MO.REL,"⋛":e.MO.REL,"⋜":e.MO.REL,"⋝":e.MO.REL,"⋞":e.MO.REL,"⋟":e.MO.REL,"⋠":e.MO.REL,"⋡":e.MO.REL,"⋢":e.MO.REL,"⋣":e.MO.REL,"⋤":e.MO.REL,"⋥":e.MO.REL,"⋦":e.MO.REL,"⋧":e.MO.REL,"⋨":e.MO.REL,"⋩":e.MO.REL,"⋪":e.MO.REL,"⋫":e.MO.REL,"⋬":e.MO.REL,"⋭":e.MO.REL,"⋮":e.MO.ORD55,"⋯":e.MO.INNER,"⋰":e.MO.REL,"⋱":[5,5,n.TEXCLASS.INNER,null],"⋲":e.MO.REL,"⋳":e.MO.REL,"⋴":e.MO.REL,"⋵":e.MO.REL,"⋶":e.MO.REL,"⋷":e.MO.REL,"⋸":e.MO.REL,"⋹":e.MO.REL,"⋺":e.MO.REL,"⋻":e.MO.REL,"⋼":e.MO.REL,"⋽":e.MO.REL,"⋾":e.MO.REL,"⋿":e.MO.REL,"⌅":e.MO.BIN3,"⌆":e.MO.BIN3,"⌢":e.MO.REL4,"⌣":e.MO.REL4,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"⎪":e.MO.ORD,"⎯":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"⎰":e.MO.OPEN,"⎱":e.MO.CLOSE,"─":e.MO.ORD,"△":e.MO.BIN4,"▵":e.MO.BIN4,"▹":e.MO.BIN4,"▽":e.MO.BIN4,"▿":e.MO.BIN4,"◃":e.MO.BIN4,"◯":e.MO.BIN3,"♠":e.MO.ORD,"♡":e.MO.ORD,"♢":e.MO.ORD,"♣":e.MO.ORD,"❘":e.MO.REL,"⟰":e.MO.RELSTRETCH,"⟱":e.MO.RELSTRETCH,"⟵":e.MO.WIDEREL,"⟶":e.MO.WIDEREL,"⟷":e.MO.WIDEREL,"⟸":e.MO.WIDEREL,"⟹":e.MO.WIDEREL,"⟺":e.MO.WIDEREL,"⟻":e.MO.WIDEREL,"⟼":e.MO.WIDEREL,"⟽":e.MO.WIDEREL,"⟾":e.MO.WIDEREL,"⟿":e.MO.WIDEREL,"⤀":e.MO.RELACCENT,"⤁":e.MO.RELACCENT,"⤂":e.MO.RELACCENT,"⤃":e.MO.RELACCENT,"⤄":e.MO.RELACCENT,"⤅":e.MO.RELACCENT,"⤆":e.MO.RELACCENT,"⤇":e.MO.RELACCENT,"⤈":e.MO.REL,"⤉":e.MO.REL,"⤊":e.MO.RELSTRETCH,"⤋":e.MO.RELSTRETCH,"⤌":e.MO.WIDEREL,"⤍":e.MO.WIDEREL,"⤎":e.MO.WIDEREL,"⤏":e.MO.WIDEREL,"⤐":e.MO.WIDEREL,"⤑":e.MO.RELACCENT,"⤒":e.MO.RELSTRETCH,"⤓":e.MO.RELSTRETCH,"⤔":e.MO.RELACCENT,"⤕":e.MO.RELACCENT,"⤖":e.MO.RELACCENT,"⤗":e.MO.RELACCENT,"⤘":e.MO.RELACCENT,"⤙":e.MO.RELACCENT,"⤚":e.MO.RELACCENT,"⤛":e.MO.RELACCENT,"⤜":e.MO.RELACCENT,"⤝":e.MO.RELACCENT,"⤞":e.MO.RELACCENT,"⤟":e.MO.RELACCENT,"⤠":e.MO.RELACCENT,"⤡":e.MO.RELSTRETCH,"⤢":e.MO.RELSTRETCH,"⤣":e.MO.REL,"⤤":e.MO.REL,"⤥":e.MO.REL,"⤦":e.MO.REL,"⤧":e.MO.REL,"⤨":e.MO.REL,"⤩":e.MO.REL,"⤪":e.MO.REL,"⤫":e.MO.REL,"⤬":e.MO.REL,"⤭":e.MO.REL,"⤮":e.MO.REL,"⤯":e.MO.REL,"⤰":e.MO.REL,"⤱":e.MO.REL,"⤲":e.MO.REL,"⤳":e.MO.RELACCENT,"⤴":e.MO.REL,"⤵":e.MO.REL,"⤶":e.MO.REL,"⤷":e.MO.REL,"⤸":e.MO.REL,"⤹":e.MO.REL,"⤺":e.MO.RELACCENT,"⤻":e.MO.RELACCENT,"⤼":e.MO.RELACCENT,"⤽":e.MO.RELACCENT,"⤾":e.MO.REL,"⤿":e.MO.REL,"⥀":e.MO.REL,"⥁":e.MO.REL,"⥂":e.MO.RELACCENT,"⥃":e.MO.RELACCENT,"⥄":e.MO.RELACCENT,"⥅":e.MO.RELACCENT,"⥆":e.MO.RELACCENT,"⥇":e.MO.RELACCENT,"⥈":e.MO.RELACCENT,"⥉":e.MO.REL,"⥊":e.MO.RELACCENT,"⥋":e.MO.RELACCENT,"⥌":e.MO.REL,"⥍":e.MO.REL,"⥎":e.MO.WIDEREL,"⥏":e.MO.RELSTRETCH,"⥐":e.MO.WIDEREL,"⥑":e.MO.RELSTRETCH,"⥒":e.MO.WIDEREL,"⥓":e.MO.WIDEREL,"⥔":e.MO.RELSTRETCH,"⥕":e.MO.RELSTRETCH,"⥖":e.MO.RELSTRETCH,"⥗":e.MO.RELSTRETCH,"⥘":e.MO.RELSTRETCH,"⥙":e.MO.RELSTRETCH,"⥚":e.MO.WIDEREL,"⥛":e.MO.WIDEREL,"⥜":e.MO.RELSTRETCH,"⥝":e.MO.RELSTRETCH,"⥞":e.MO.WIDEREL,"⥟":e.MO.WIDEREL,"⥠":e.MO.RELSTRETCH,"⥡":e.MO.RELSTRETCH,"⥢":e.MO.RELACCENT,"⥣":e.MO.REL,"⥤":e.MO.RELACCENT,"⥥":e.MO.REL,"⥦":e.MO.RELACCENT,"⥧":e.MO.RELACCENT,"⥨":e.MO.RELACCENT,"⥩":e.MO.RELACCENT,"⥪":e.MO.RELACCENT,"⥫":e.MO.RELACCENT,"⥬":e.MO.RELACCENT,"⥭":e.MO.RELACCENT,"⥮":e.MO.RELSTRETCH,"⥯":e.MO.RELSTRETCH,"⥰":e.MO.RELACCENT,"⥱":e.MO.RELACCENT,"⥲":e.MO.RELACCENT,"⥳":e.MO.RELACCENT,"⥴":e.MO.RELACCENT,"⥵":e.MO.RELACCENT,"⥶":e.MO.RELACCENT,"⥷":e.MO.RELACCENT,"⥸":e.MO.RELACCENT,"⥹":e.MO.RELACCENT,"⥺":e.MO.RELACCENT,"⥻":e.MO.RELACCENT,"⥼":e.MO.RELACCENT,"⥽":e.MO.RELACCENT,"⥾":e.MO.REL,"⥿":e.MO.REL,"⦁":e.MO.BIN3,"⦂":e.MO.BIN3,"⦙":e.MO.BIN3,"⦚":e.MO.BIN3,"⦛":e.MO.BIN3,"⦜":e.MO.BIN3,"⦝":e.MO.BIN3,"⦞":e.MO.BIN3,"⦟":e.MO.BIN3,"⦠":e.MO.BIN3,"⦡":e.MO.BIN3,"⦢":e.MO.BIN3,"⦣":e.MO.BIN3,"⦤":e.MO.BIN3,"⦥":e.MO.BIN3,"⦦":e.MO.BIN3,"⦧":e.MO.BIN3,"⦨":e.MO.BIN3,"⦩":e.MO.BIN3,"⦪":e.MO.BIN3,"⦫":e.MO.BIN3,"⦬":e.MO.BIN3,"⦭":e.MO.BIN3,"⦮":e.MO.BIN3,"⦯":e.MO.BIN3,"⦰":e.MO.BIN3,"⦱":e.MO.BIN3,"⦲":e.MO.BIN3,"⦳":e.MO.BIN3,"⦴":e.MO.BIN3,"⦵":e.MO.BIN3,"⦶":e.MO.BIN4,"⦷":e.MO.BIN4,"⦸":e.MO.BIN4,"⦹":e.MO.BIN4,"⦺":e.MO.BIN4,"⦻":e.MO.BIN4,"⦼":e.MO.BIN4,"⦽":e.MO.BIN4,"⦾":e.MO.BIN4,"⦿":e.MO.BIN4,"⧀":e.MO.REL,"⧁":e.MO.REL,"⧂":e.MO.BIN3,"⧃":e.MO.BIN3,"⧄":e.MO.BIN4,"⧅":e.MO.BIN4,"⧆":e.MO.BIN4,"⧇":e.MO.BIN4,"⧈":e.MO.BIN4,"⧉":e.MO.BIN3,"⧊":e.MO.BIN3,"⧋":e.MO.BIN3,"⧌":e.MO.BIN3,"⧍":e.MO.BIN3,"⧎":e.MO.REL,"⧏":e.MO.REL,"⧏̸":e.MO.REL,"⧐":e.MO.REL,"⧐̸":e.MO.REL,"⧑":e.MO.REL,"⧒":e.MO.REL,"⧓":e.MO.REL,"⧔":e.MO.REL,"⧕":e.MO.REL,"⧖":e.MO.BIN4,"⧗":e.MO.BIN4,"⧘":e.MO.BIN3,"⧙":e.MO.BIN3,"⧛":e.MO.BIN3,"⧜":e.MO.BIN3,"⧝":e.MO.BIN3,"⧞":e.MO.REL,"⧟":e.MO.BIN3,"⧠":e.MO.BIN3,"⧡":e.MO.REL,"⧢":e.MO.BIN4,"⧣":e.MO.REL,"⧤":e.MO.REL,"⧥":e.MO.REL,"⧦":e.MO.REL,"⧧":e.MO.BIN3,"⧨":e.MO.BIN3,"⧩":e.MO.BIN3,"⧪":e.MO.BIN3,"⧫":e.MO.BIN3,"⧬":e.MO.BIN3,"⧭":e.MO.BIN3,"⧮":e.MO.BIN3,"⧯":e.MO.BIN3,"⧰":e.MO.BIN3,"⧱":e.MO.BIN3,"⧲":e.MO.BIN3,"⧳":e.MO.BIN3,"⧴":e.MO.REL,"⧵":e.MO.BIN4,"⧶":e.MO.BIN4,"⧷":e.MO.BIN4,"⧸":e.MO.BIN3,"⧹":e.MO.BIN3,"⧺":e.MO.BIN3,"⧻":e.MO.BIN3,"⧾":e.MO.BIN4,"⧿":e.MO.BIN4,"⨝":e.MO.BIN3,"⨞":e.MO.BIN3,"⨟":e.MO.BIN3,"⨠":e.MO.BIN3,"⨡":e.MO.BIN3,"⨢":e.MO.BIN4,"⨣":e.MO.BIN4,"⨤":e.MO.BIN4,"⨥":e.MO.BIN4,"⨦":e.MO.BIN4,"⨧":e.MO.BIN4,"⨨":e.MO.BIN4,"⨩":e.MO.BIN4,"⨪":e.MO.BIN4,"⨫":e.MO.BIN4,"⨬":e.MO.BIN4,"⨭":e.MO.BIN4,"⨮":e.MO.BIN4,"⨯":e.MO.BIN4,"⨰":e.MO.BIN4,"⨱":e.MO.BIN4,"⨲":e.MO.BIN4,"⨳":e.MO.BIN4,"⨴":e.MO.BIN4,"⨵":e.MO.BIN4,"⨶":e.MO.BIN4,"⨷":e.MO.BIN4,"⨸":e.MO.BIN4,"⨹":e.MO.BIN4,"⨺":e.MO.BIN4,"⨻":e.MO.BIN4,"⨼":e.MO.BIN4,"⨽":e.MO.BIN4,"⨾":e.MO.BIN4,"⨿":e.MO.BIN4,"⩀":e.MO.BIN4,"⩁":e.MO.BIN4,"⩂":e.MO.BIN4,"⩃":e.MO.BIN4,"⩄":e.MO.BIN4,"⩅":e.MO.BIN4,"⩆":e.MO.BIN4,"⩇":e.MO.BIN4,"⩈":e.MO.BIN4,"⩉":e.MO.BIN4,"⩊":e.MO.BIN4,"⩋":e.MO.BIN4,"⩌":e.MO.BIN4,"⩍":e.MO.BIN4,"⩎":e.MO.BIN4,"⩏":e.MO.BIN4,"⩐":e.MO.BIN4,"⩑":e.MO.BIN4,"⩒":e.MO.BIN4,"⩓":e.MO.BIN4,"⩔":e.MO.BIN4,"⩕":e.MO.BIN4,"⩖":e.MO.BIN4,"⩗":e.MO.BIN4,"⩘":e.MO.BIN4,"⩙":e.MO.REL,"⩚":e.MO.BIN4,"⩛":e.MO.BIN4,"⩜":e.MO.BIN4,"⩝":e.MO.BIN4,"⩞":e.MO.BIN4,"⩟":e.MO.BIN4,"⩠":e.MO.BIN4,"⩡":e.MO.BIN4,"⩢":e.MO.BIN4,"⩣":e.MO.BIN4,"⩤":e.MO.BIN4,"⩥":e.MO.BIN4,"⩦":e.MO.REL,"⩧":e.MO.REL,"⩨":e.MO.REL,"⩩":e.MO.REL,"⩪":e.MO.REL,"⩫":e.MO.REL,"⩬":e.MO.REL,"⩭":e.MO.REL,"⩮":e.MO.REL,"⩯":e.MO.REL,"⩰":e.MO.REL,"⩱":e.MO.BIN4,"⩲":e.MO.BIN4,"⩳":e.MO.REL,"⩴":e.MO.REL,"⩵":e.MO.REL,"⩶":e.MO.REL,"⩷":e.MO.REL,"⩸":e.MO.REL,"⩹":e.MO.REL,"⩺":e.MO.REL,"⩻":e.MO.REL,"⩼":e.MO.REL,"⩽":e.MO.REL,"⩽̸":e.MO.REL,"⩾":e.MO.REL,"⩾̸":e.MO.REL,"⩿":e.MO.REL,"⪀":e.MO.REL,"⪁":e.MO.REL,"⪂":e.MO.REL,"⪃":e.MO.REL,"⪄":e.MO.REL,"⪅":e.MO.REL,"⪆":e.MO.REL,"⪇":e.MO.REL,"⪈":e.MO.REL,"⪉":e.MO.REL,"⪊":e.MO.REL,"⪋":e.MO.REL,"⪌":e.MO.REL,"⪍":e.MO.REL,"⪎":e.MO.REL,"⪏":e.MO.REL,"⪐":e.MO.REL,"⪑":e.MO.REL,"⪒":e.MO.REL,"⪓":e.MO.REL,"⪔":e.MO.REL,"⪕":e.MO.REL,"⪖":e.MO.REL,"⪗":e.MO.REL,"⪘":e.MO.REL,"⪙":e.MO.REL,"⪚":e.MO.REL,"⪛":e.MO.REL,"⪜":e.MO.REL,"⪝":e.MO.REL,"⪞":e.MO.REL,"⪟":e.MO.REL,"⪠":e.MO.REL,"⪡":e.MO.REL,"⪡̸":e.MO.REL,"⪢":e.MO.REL,"⪢̸":e.MO.REL,"⪣":e.MO.REL,"⪤":e.MO.REL,"⪥":e.MO.REL,"⪦":e.MO.REL,"⪧":e.MO.REL,"⪨":e.MO.REL,"⪩":e.MO.REL,"⪪":e.MO.REL,"⪫":e.MO.REL,"⪬":e.MO.REL,"⪭":e.MO.REL,"⪮":e.MO.REL,"⪯":e.MO.REL,"⪯̸":e.MO.REL,"⪰":e.MO.REL,"⪰̸":e.MO.REL,"⪱":e.MO.REL,"⪲":e.MO.REL,"⪳":e.MO.REL,"⪴":e.MO.REL,"⪵":e.MO.REL,"⪶":e.MO.REL,"⪷":e.MO.REL,"⪸":e.MO.REL,"⪹":e.MO.REL,"⪺":e.MO.REL,"⪻":e.MO.REL,"⪼":e.MO.REL,"⪽":e.MO.REL,"⪾":e.MO.REL,"⪿":e.MO.REL,"⫀":e.MO.REL,"⫁":e.MO.REL,"⫂":e.MO.REL,"⫃":e.MO.REL,"⫄":e.MO.REL,"⫅":e.MO.REL,"⫆":e.MO.REL,"⫇":e.MO.REL,"⫈":e.MO.REL,"⫉":e.MO.REL,"⫊":e.MO.REL,"⫋":e.MO.REL,"⫌":e.MO.REL,"⫍":e.MO.REL,"⫎":e.MO.REL,"⫏":e.MO.REL,"⫐":e.MO.REL,"⫑":e.MO.REL,"⫒":e.MO.REL,"⫓":e.MO.REL,"⫔":e.MO.REL,"⫕":e.MO.REL,"⫖":e.MO.REL,"⫗":e.MO.REL,"⫘":e.MO.REL,"⫙":e.MO.REL,"⫚":e.MO.REL,"⫛":e.MO.REL,"⫝":e.MO.REL,"⫝̸":e.MO.REL,"⫞":e.MO.REL,"⫟":e.MO.REL,"⫠":e.MO.REL,"⫡":e.MO.REL,"⫢":e.MO.REL,"⫣":e.MO.REL,"⫤":e.MO.REL,"⫥":e.MO.REL,"⫦":e.MO.REL,"⫧":e.MO.REL,"⫨":e.MO.REL,"⫩":e.MO.REL,"⫪":e.MO.REL,"⫫":e.MO.REL,"⫬":e.MO.REL,"⫭":e.MO.REL,"⫮":e.MO.REL,"⫯":e.MO.REL,"⫰":e.MO.REL,"⫱":e.MO.REL,"⫲":e.MO.REL,"⫳":e.MO.REL,"⫴":e.MO.BIN4,"⫵":e.MO.BIN4,"⫶":e.MO.BIN4,"⫷":e.MO.REL,"⫸":e.MO.REL,"⫹":e.MO.REL,"⫺":e.MO.REL,"⫻":e.MO.BIN4,"⫽":e.MO.BIN4,"⫾":e.MO.BIN3,"⭅":e.MO.RELSTRETCH,"⭆":e.MO.RELSTRETCH,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"︷":e.MO.WIDEACCENT,"︸":e.MO.WIDEACCENT}},e.OPTABLE.infix[`^`]=e.MO.WIDEREL,e.OPTABLE.infix._=e.MO.WIDEREL,e.OPTABLE.infix[`⫝̸`]=e.MO.REL})),o=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.split=e.isPercent=e.unicodeString=e.unicodeChars=e.quotePattern=e.sortLength=void 0;function r(e,t){return e.length===t.length?e===t?0:e<t?-1:1:t.length-e.length}e.sortLength=r;function i(e){return e.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,`\\$1`)}e.quotePattern=i;function a(e){return Array.from(e).map(function(e){return e.codePointAt(0)})}e.unicodeChars=a;function o(e){return String.fromCodePoint.apply(String,n([],t(e),!1))}e.unicodeString=o;function s(e){return!!e.match(/%\s*$/)}e.isPercent=s;function c(e){return e.trim().split(/\s+/)}e.split=c})),s=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},s=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=void 0;var c=i(),l=a(),u=o();e.MmlMo=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t._texClass=null,t.lspace=5/18,t.rspace=5/18,t}return Object.defineProperty(i.prototype,"texClass",{get:function(){if(this._texClass===null){var e=this.getText(),t=r(this.handleExplicitForm(this.getForms()),3),n=t[0],i=t[1],a=t[2],o=this.constructor.OPTABLE,s=o[n][e]||o[i][e]||o[a][e];return s?s[2]:c.TEXCLASS.REL}return this._texClass},set:function(e){this._texClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"kind",{get:function(){return`mo`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasNewLine",{get:function(){return this.attributes.get(`linebreak`)===`newline`},enumerable:!1,configurable:!0}),i.prototype.coreParent=function(){for(var e=this,t=this,n=this.factory.getNodeClass(`math`);t&&t.isEmbellished&&t.coreMO()===this&&!(t instanceof n);)e=t,t=t.parent;return e},i.prototype.coreText=function(e){if(!e)return``;if(e.isEmbellished)return e.coreMO().getText();for(;((e.isKind(`mrow`)||e.isKind(`TeXAtom`)&&e.texClass!==c.TEXCLASS.VCENTER||e.isKind(`mstyle`)||e.isKind(`mphantom`))&&e.childNodes.length===1||e.isKind(`munderover`))&&e.childNodes[0];)e=e.childNodes[0];return e.isToken?e.getText():``},i.prototype.hasSpacingAttributes=function(){return this.attributes.isSet(`lspace`)||this.attributes.isSet(`rspace`)},Object.defineProperty(i.prototype,"isAccent",{get:function(){var e=!1,t=this.coreParent().parent;if(t){var n=t.isKind(`mover`)?t.childNodes[t.over].coreMO()?`accent`:``:t.isKind(`munder`)?t.childNodes[t.under].coreMO()?`accentunder`:``:t.isKind(`munderover`)?this===t.childNodes[t.over].coreMO()?`accent`:this===t.childNodes[t.under].coreMO()?`accentunder`:``:``;n&&(e=t.attributes.getExplicit(n)===void 0?this.attributes.get(`accent`):e)}return e},enumerable:!1,configurable:!0}),i.prototype.setTeXclass=function(e){var t=this.attributes.getList(`form`,`fence`),n=t.form,r=t.fence;return this.getProperty(`texClass`)===void 0&&(this.attributes.isSet(`lspace`)||this.attributes.isSet(`rspace`))?null:(r&&this.texClass===c.TEXCLASS.REL&&(n===`prefix`&&(this.texClass=c.TEXCLASS.OPEN),n===`postfix`&&(this.texClass=c.TEXCLASS.CLOSE)),this.adjustTeXclass(e))},i.prototype.adjustTeXclass=function(e){var t=this.texClass,n=this.prevClass;if(t===c.TEXCLASS.NONE)return e;if(e?(e.getProperty(`autoOP`)&&(t===c.TEXCLASS.BIN||t===c.TEXCLASS.REL)&&(n=e.texClass=c.TEXCLASS.ORD),n=this.prevClass=e.texClass||c.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited(`scriptlevel`)):n=this.prevClass=c.TEXCLASS.NONE,t===c.TEXCLASS.BIN&&(n===c.TEXCLASS.NONE||n===c.TEXCLASS.BIN||n===c.TEXCLASS.OP||n===c.TEXCLASS.REL||n===c.TEXCLASS.OPEN||n===c.TEXCLASS.PUNCT))this.texClass=c.TEXCLASS.ORD;else if(n===c.TEXCLASS.BIN&&(t===c.TEXCLASS.REL||t===c.TEXCLASS.CLOSE||t===c.TEXCLASS.PUNCT))e.texClass=this.prevClass=c.TEXCLASS.ORD;else if(t===c.TEXCLASS.BIN){for(var r=this,i=this.parent;i&&i.parent&&i.isEmbellished&&(i.childNodes.length===1||!i.isKind(`mrow`)&&i.core()===r);)r=i,i=i.parent;i.childNodes[i.childNodes.length-1]===r&&(this.texClass=c.TEXCLASS.ORD)}return this},i.prototype.setInheritedAttributes=function(t,n,r,i){t===void 0&&(t={}),n===void 0&&(n=!1),r===void 0&&(r=0),i===void 0&&(i=!1),e.prototype.setInheritedAttributes.call(this,t,n,r,i);var a=this.getText();this.checkOperatorTable(a),this.checkPseudoScripts(a),this.checkPrimes(a),this.checkMathAccent(a)},i.prototype.checkOperatorTable=function(e){var t,n,i=r(this.handleExplicitForm(this.getForms()),3),a=i[0],o=i[1],c=i[2];this.attributes.setInherited(`form`,a);var u=this.constructor.OPTABLE,d=u[a][e]||u[o][e]||u[c][e];if(d){this.getProperty(`texClass`)===void 0&&(this.texClass=d[2]);try{for(var f=s(Object.keys(d[3]||{})),p=f.next();!p.done;p=f.next()){var m=p.value;this.attributes.setInherited(m,d[3][m])}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}this.lspace=(d[0]+1)/18,this.rspace=(d[1]+1)/18}else{var h=(0,l.getRange)(e);if(h){this.getProperty(`texClass`)===void 0&&(this.texClass=h[2]);var g=this.constructor.MMLSPACING[h[2]];this.lspace=(g[0]+1)/18,this.rspace=(g[1]+1)/18}}},i.prototype.getForms=function(){for(var e=this,t=this.parent,n=this.Parent;n&&n.isEmbellished;)e=t,t=n.parent,n=n.Parent;if(t&&t.isKind(`mrow`)&&t.nonSpaceLength()!==1){if(t.firstNonSpace()===e)return[`prefix`,`infix`,`postfix`];if(t.lastNonSpace()===e)return[`postfix`,`infix`,`prefix`]}return[`infix`,`prefix`,`postfix`]},i.prototype.handleExplicitForm=function(e){if(this.attributes.isSet(`form`)){var t=this.attributes.get(`form`);e=[t].concat(e.filter(function(e){return e!==t}))}return e},i.prototype.checkPseudoScripts=function(e){var t=this.constructor.pseudoScripts;if(e.match(t)){var n=this.coreParent().Parent,r=!n||!(n.isKind(`msubsup`)&&!n.isKind(`msub`));this.setProperty(`pseudoscript`,r),r&&(this.attributes.setInherited(`lspace`,0),this.attributes.setInherited(`rspace`,0))}},i.prototype.checkPrimes=function(e){var t=this.constructor.primes;if(e.match(t)){var n=this.constructor.remapPrimes,r=(0,u.unicodeString)((0,u.unicodeChars)(e).map(function(e){return n[e]}));this.setProperty(`primes`,r)}},i.prototype.checkMathAccent=function(e){var t=this.Parent;if(this.getProperty(`mathaccent`)===void 0&&t&&t.isKind(`munderover`)){var n=t.childNodes[0];if(!(n.isEmbellished&&n.coreMO()===this)){var r=this.constructor.mathaccents;e.match(r)&&this.setProperty(`mathaccent`,!0)}}},i.defaults=n(n({},c.AbstractMmlTokenNode.defaults),{form:`infix`,fence:!1,separator:!1,lspace:`thickmathspace`,rspace:`thickmathspace`,stretchy:!1,symmetric:!1,maxsize:`infinity`,minsize:`0em`,largeop:!1,movablelimits:!1,accent:!1,linebreak:`auto`,lineleading:`1ex`,linebreakstyle:`before`,indentalign:`auto`,indentshift:`0`,indenttarget:``,indentalignfirst:`indentalign`,indentshiftfirst:`indentshift`,indentalignlast:`indentalign`,indentshiftlast:`indentshift`}),i.MMLSPACING=l.MMLSPACING,i.OPTABLE=l.OPTABLE,i.pseudoScripts=new RegExp([`^["'*\``,`ª`,`°`,`²-´`,`¹`,`º`,`‘-‟`,`′-‷⁗`,`⁰ⁱ`,`⁴-ⁿ`,`₀-₎`,`]+$`].join(``)),i.primes=new RegExp([`^["'\``,`‘-‟`,`]+$`].join(``)),i.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},i.mathaccents=new RegExp([`^[`,`´́ˊ`,"`̀ˋ",`¨̈`,`~̃˜`,`¯̄ˉ`,`˘̆`,`ˇ̌`,`^̂ˆ`,`→⃗`,`˙̇`,`˚̊`,`⃛`,`⃜`,`]$`].join(``)),i}(c.AbstractMmlTokenNode)}));export{r as a,i,o as n,n as o,a as r,t as s,s as t};
1
+ import{Pr as e}from"./vue.runtime.esm-bundler-Cwm3cFXF.js";var t=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFactory=void 0,e.AbstractFactory=function(){function e(e){var n,r;e===void 0&&(e=null),this.defaultKind=`unknown`,this.nodeMap=new Map,this.node={},e===null&&(e=this.constructor.defaultNodes);try{for(var i=t(Object.keys(e)),a=i.next();!a.done;a=i.next()){var o=a.value;this.setNodeClass(o,e[o])}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}return e.prototype.create=function(e){var t=[...arguments].slice(1);return(this.node[e]||this.node[this.defaultKind]).apply(void 0,r([],n(t),!1))},e.prototype.setNodeClass=function(e,t){this.nodeMap.set(e,t);var i=this,a=this.nodeMap.get(e);this.node[e]=function(){var e=[...arguments];return new(a.bind.apply(a,r([void 0,i],n(e),!1)))}},e.prototype.getNodeClass=function(e){return this.nodeMap.get(e)},e.prototype.deleteNodeClass=function(e){this.nodeMap.delete(e),delete this.node[e]},e.prototype.nodeIsKind=function(e,t){return e instanceof this.getNodeClass(t)},e.prototype.getKinds=function(){return Array.from(this.nodeMap.keys())},e.defaultNodes={},e}()})),n=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.Attributes=e.INHERIT=void 0,e.INHERIT=`_inherit_`,e.Attributes=function(){function n(e,t){this.global=t,this.defaults=Object.create(t),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,e)}return n.prototype.set=function(e,t){this.attributes[e]=t},n.prototype.setList=function(e){Object.assign(this.attributes,e)},n.prototype.get=function(t){var n=this.attributes[t];return n===e.INHERIT&&(n=this.global[t]),n},n.prototype.getExplicit=function(e){if(this.attributes.hasOwnProperty(e))return this.attributes[e]},n.prototype.getList=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a={};try{for(var o=t(r),s=o.next();!s.done;s=o.next()){var c=s.value;a[c]=this.get(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return a},n.prototype.setInherited=function(e,t){this.inherited[e]=t},n.prototype.getInherited=function(e){return this.inherited[e]},n.prototype.getDefault=function(e){return this.defaults[e]},n.prototype.isSet=function(e){return this.attributes.hasOwnProperty(e)||this.inherited.hasOwnProperty(e)},n.prototype.hasDefault=function(e){return e in this.defaults},n.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},n.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},n.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},n.prototype.getGlobalNames=function(){return Object.keys(this.global)},n.prototype.getAllAttributes=function(){return this.attributes},n.prototype.getAllInherited=function(){return this.inherited},n.prototype.getAllDefaults=function(){return this.defaults},n.prototype.getAllGlobals=function(){return this.global},n}()})),r=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEmptyNode=e.AbstractNode=void 0;var i=function(){function e(e,t,n){var i,a;t===void 0&&(t={}),n===void 0&&(n=[]),this.factory=e,this.parent=null,this.properties={},this.childNodes=[];try{for(var o=r(Object.keys(t)),s=o.next();!s.done;s=o.next()){var c=s.value;this.setProperty(c,t[c])}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}n.length&&this.setChildren(n)}return Object.defineProperty(e.prototype,"kind",{get:function(){return`unknown`},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(e,t){this.properties[e]=t},e.prototype.getProperty=function(e){return this.properties[e]},e.prototype.getPropertyNames=function(){return Object.keys(this.properties)},e.prototype.getAllProperties=function(){return this.properties},e.prototype.removeProperty=function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var a=r(n),o=a.next();!o.done;o=a.next()){var s=o.value;delete this.properties[s]}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},e.prototype.isKind=function(e){return this.factory.nodeIsKind(this,e)},e.prototype.setChildren=function(e){var t,n;this.childNodes=[];try{for(var i=r(e),a=i.next();!a.done;a=i.next()){var o=a.value;this.appendChild(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.appendChild=function(e){return this.childNodes.push(e),e.parent=this,e},e.prototype.replaceChild=function(e,t){var n=this.childIndex(t);return n!==null&&(this.childNodes[n]=e,e.parent=this,t.parent=null),e},e.prototype.removeChild=function(e){var t=this.childIndex(e);return t!==null&&(this.childNodes.splice(t,1),e.parent=null),e},e.prototype.childIndex=function(e){var t=this.childNodes.indexOf(e);return t===-1?null:t},e.prototype.copy=function(){var e,t,i=this.factory.create(this.kind);i.properties=n({},this.properties);try{for(var a=r(this.childNodes||[]),o=a.next();!o.done;o=a.next()){var s=o.value;s&&i.appendChild(s.copy())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i},e.prototype.findNodes=function(e){var t=[];return this.walkTree(function(n){n.isKind(e)&&t.push(n)}),t},e.prototype.walkTree=function(e,t){var n,i;e(this,t);try{for(var a=r(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s&&s.walkTree(e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t},e.prototype.toString=function(){return this.kind+`(`+this.childNodes.join(`,`)+`)`},e}();e.AbstractNode=i,e.AbstractEmptyNode=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.setChildren=function(e){},n.prototype.appendChild=function(e){return e},n.prototype.replaceChild=function(e,t){return t},n.prototype.childIndex=function(e){return null},n.prototype.walkTree=function(e,t){return e(this,t),t},n.prototype.toString=function(){return this.kind},n}(i)})),i=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var s=n(),c=r();e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},e.TEXCLASSNAMES=[`ORD`,`OP`,`BIN`,`REL`,`OPEN`,`CLOSE`,`PUNCT`,`INNER`,`VCENTER`];var l=[``,`thinmathspace`,`mediummathspace`,`thickmathspace`],u=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];e.indentAttributes=[`indentalign`,`indentalignfirst`,`indentshift`,`indentshiftfirst`];var d=function(n){t(r,n);function r(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var i=n.call(this,e)||this;return i.prevClass=null,i.prevLevel=null,i.texclass=null,i.arity<0&&(i.childNodes=[e.create(`inferredMrow`)],i.childNodes[0].parent=i),i.setChildren(r),i.attributes=new s.Attributes(e.getNodeClass(i.kind).defaults,e.getNodeClass(`math`).defaults),i.attributes.setList(t),i}return r.prototype.copy=function(e){var t,n,r,o;e===void 0&&(e=!1);var s=this.factory.create(this.kind);if(s.properties=i({},this.properties),this.attributes){var c=this.attributes.getAllAttributes();try{for(var l=a(Object.keys(c)),u=l.next();!u.done;u=l.next()){var d=u.value;(d!==`id`||e)&&s.attributes.set(d,c[d])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}if(this.childNodes&&this.childNodes.length){var f=this.childNodes;f.length===1&&f[0].isInferred&&(f=f[0].childNodes);try{for(var p=a(f),m=p.next();!m.done;m=p.next()){var h=m.value;h?s.appendChild(h.copy()):s.childNodes.push(null)}}catch(e){r={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}return s},Object.defineProperty(r.prototype,"texClass",{get:function(){return this.texclass},set:function(e){this.texclass=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parent",{get:function(){for(var e=this.parent;e&&e.notParent;)e=e.Parent;return e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.setChildren=function(e){return this.arity<0?this.childNodes[0].setChildren(e):n.prototype.setChildren.call(this,e)},r.prototype.appendChild=function(e){var t,r,i=this;if(this.arity<0)return this.childNodes[0].appendChild(e),e;if(e.isInferred){if(this.arity===1/0)return e.childNodes.forEach(function(e){return n.prototype.appendChild.call(i,e)}),e;var o=e;e=this.factory.create(`mrow`),e.setChildren(o.childNodes),e.attributes=o.attributes;try{for(var s=a(o.getPropertyNames()),c=s.next();!c.done;c=s.next()){var l=c.value;e.setProperty(l,o.getProperty(l))}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}return n.prototype.appendChild.call(this,e)},r.prototype.replaceChild=function(e,t){return this.arity<0?(this.childNodes[0].replaceChild(e,t),e):n.prototype.replaceChild.call(this,e,t)},r.prototype.core=function(){return this},r.prototype.coreMO=function(){return this},r.prototype.coreIndex=function(){return 0},r.prototype.childPosition=function(){for(var e,t,n=this,r=n.parent;r&&r.notParent;)n=r,r=r.parent;if(r){var i=0;try{for(var o=a(r.childNodes),s=o.next();!s.done;s=o.next()){if(s.value===n)return i;i++}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}return null},r.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.texClass==null?e:this},r.prototype.updateTeXclass=function(e){e&&(this.prevClass=e.prevClass,this.prevLevel=e.prevLevel,e.prevClass=e.prevLevel=null,this.texClass=e.texClass)},r.prototype.getPrevClass=function(e){e&&(this.prevClass=e.texClass,this.prevLevel=e.attributes.get(`scriptlevel`))},r.prototype.texSpacing=function(){var t=this.prevClass==null?e.TEXCLASS.NONE:this.prevClass,n=this.texClass||e.TEXCLASS.ORD;if(t===e.TEXCLASS.NONE||n===e.TEXCLASS.NONE)return``;t===e.TEXCLASS.VCENTER&&(t=e.TEXCLASS.ORD),n===e.TEXCLASS.VCENTER&&(n=e.TEXCLASS.ORD);var r=u[t][n];return(this.prevLevel>0||this.attributes.get(`scriptlevel`)>0)&&r>=0?``:l[Math.abs(r)]},r.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},r.prototype.setInheritedAttributes=function(e,t,n,i){var s,c;e===void 0&&(e={}),t===void 0&&(t=!1),n===void 0&&(n=0),i===void 0&&(i=!1);var l=this.attributes.getAllDefaults();try{for(var u=a(Object.keys(e)),d=u.next();!d.done;d=u.next()){var f=d.value;if(l.hasOwnProperty(f)||r.alwaysInherit.hasOwnProperty(f)){var p=o(e[f],2),m=p[0],h=p[1];((r.noInherit[m]||{})[this.kind]||{})[f]||this.attributes.setInherited(f,h)}}}catch(e){s={error:e}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}this.attributes.getExplicit(`displaystyle`)===void 0&&this.attributes.setInherited(`displaystyle`,t),this.attributes.getExplicit(`scriptlevel`)===void 0&&this.attributes.setInherited(`scriptlevel`,n),i&&this.setProperty(`texprimestyle`,i);var g=this.arity;if(g>=0&&g!==1/0&&(g===1&&this.childNodes.length===0||g!==1&&this.childNodes.length!==g)){if(g<this.childNodes.length)this.childNodes=this.childNodes.slice(0,g);else for(;this.childNodes.length<g;)this.appendChild(this.factory.create(`mrow`))}this.setChildInheritedAttributes(e,t,n,i)},r.prototype.setChildInheritedAttributes=function(e,t,n,r){var i,o;try{for(var s=a(this.childNodes),c=s.next();!c.done;c=s.next())c.value.setInheritedAttributes(e,t,n,r)}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},r.prototype.addInheritedAttributes=function(e,t){var n,r,o=i({},e);try{for(var s=a(Object.keys(t)),c=s.next();!c.done;c=s.next()){var l=c.value;l!==`displaystyle`&&l!==`scriptlevel`&&l!==`style`&&(o[l]=[this.kind,t[l]])}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o},r.prototype.inheritAttributesFrom=function(e){var t=e.attributes,n=t.get(`displaystyle`),r=t.get(`scriptlevel`),i=t.isSet(`mathsize`)?{mathsize:[`math`,t.get(`mathsize`)]}:{},a=e.getProperty(`texprimestyle`)||!1;this.setInheritedAttributes(i,n,r,a)},r.prototype.verifyTree=function(e){if(e===void 0&&(e=null),e!==null){this.verifyAttributes(e);var t=this.arity;e.checkArity&&t>=0&&t!==1/0&&(t===1&&this.childNodes.length===0||t!==1&&this.childNodes.length!==t)&&this.mError(`Wrong number of children for "`+this.kind+`" node`,e,!0),this.verifyChildren(e)}},r.prototype.verifyAttributes=function(e){var t,n;if(e.checkAttributes){var r=this.attributes,i=[];try{for(var o=a(r.getExplicitNames()),s=o.next();!s.done;s=o.next()){var c=s.value;c.substr(0,5)!==`data-`&&r.getDefault(c)===void 0&&!c.match(/^(?:class|style|id|(?:xlink:)?href)$/)&&i.push(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}i.length&&this.mError(`Unknown attributes for `+this.kind+` node: `+i.join(`, `),e)}},r.prototype.verifyChildren=function(e){var t,n;try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next())i.value.verifyTree(e)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},r.prototype.mError=function(e,t,n){if(n===void 0&&(n=!1),this.parent&&this.parent.isKind(`merror`))return null;var r=this.factory.create(`merror`);if(r.attributes.set(`data-mjx-message`,e),t.fullErrors||n){var i=this.factory.create(`mtext`),a=this.factory.create(`text`);a.setText(t.fullErrors?e:this.kind),i.appendChild(a),r.appendChild(i),this.parent.replaceChild(r,this)}else this.parent.replaceChild(r,this),r.appendChild(this);return r},r.defaults={mathbackground:s.INHERIT,mathcolor:s.INHERIT,mathsize:s.INHERIT,dir:s.INHERIT},r.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},r.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},r.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},r}(c.AbstractNode);e.AbstractMmlNode=d,e.AbstractMmlTokenNode=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.getText=function(){var e,t,n=``;try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next()){var o=i.value;o instanceof p&&(n+=o.getText())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},n.prototype.setChildInheritedAttributes=function(e,t,n,r){var i,o;try{for(var s=a(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value;l instanceof d&&l.setInheritedAttributes(e,t,n,r)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},n.prototype.walkTree=function(e,t){var n,r;e(this,t);try{for(var i=a(this.childNodes),o=i.next();!o.done;o=i.next()){var s=o.value;s instanceof d&&s.walkTree(e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},n.defaults=i(i({},d.defaults),{mathvariant:`normal`,mathsize:s.INHERIT}),n}(d),e.AbstractMmlLayoutNode=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),n.prototype.core=function(){return this.childNodes[0]},n.prototype.coreMO=function(){return this.childNodes[0].coreMO()},n.prototype.setTeXclass=function(e){return e=this.childNodes[0].setTeXclass(e),this.updateTeXclass(this.childNodes[0]),e},n.defaults=d.defaults,n}(d),e.AbstractMmlBaseNode=function(n){t(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),r.prototype.core=function(){return this.childNodes[0]},r.prototype.coreMO=function(){return this.childNodes[0].coreMO()},r.prototype.setTeXclass=function(t){var n,r;this.getPrevClass(t),this.texClass=e.TEXCLASS.ORD;var i=this.childNodes[0];i?this.isEmbellished||i.isKind(`mi`)?(t=i.setTeXclass(t),this.updateTeXclass(this.core())):(i.setTeXclass(null),t=this):t=this;try{for(var o=a(this.childNodes.slice(1)),s=o.next();!s.done;s=o.next()){var c=s.value;c&&c.setTeXclass(null)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},r.defaults=d.defaults,r}(d);var f=function(n){t(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),r.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(r.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),r.prototype.core=function(){return this},r.prototype.coreMO=function(){return this},r.prototype.coreIndex=function(){return 0},r.prototype.childPosition=function(){return 0},r.prototype.setTeXclass=function(e){return e},r.prototype.texSpacing=function(){return``},r.prototype.setInheritedAttributes=function(e,t,n,r){},r.prototype.inheritAttributesFrom=function(e){},r.prototype.verifyTree=function(e){},r.prototype.mError=function(e,t,n){return n===void 0&&(n=!1),null},r}(c.AbstractEmptyNode);e.AbstractMmlEmptyNode=f;var p=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.text=``,t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`text`},enumerable:!1,configurable:!0}),n.prototype.getText=function(){return this.text},n.prototype.setText=function(e){return this.text=e,this},n.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},n.prototype.toString=function(){return this.text},n}(f);e.TextNode=p,e.XMLNode=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.xml=null,t.adaptor=null,t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`XML`},enumerable:!1,configurable:!0}),n.prototype.getXML=function(){return this.xml},n.prototype.setXML=function(e,t){return t===void 0&&(t=null),this.xml=e,this.adaptor=t,this},n.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},n.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},n.prototype.toString=function(){return`XML data`},n}(f)})),a=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var n=i();function r(e,t,r,i){return r===void 0&&(r=n.TEXCLASS.BIN),i===void 0&&(i=null),[e,t,r,i]}e.OPDEF=r,e.MO={ORD:r(0,0,n.TEXCLASS.ORD),ORD11:r(1,1,n.TEXCLASS.ORD),ORD21:r(2,1,n.TEXCLASS.ORD),ORD02:r(0,2,n.TEXCLASS.ORD),ORD55:r(5,5,n.TEXCLASS.ORD),NONE:r(0,0,n.TEXCLASS.NONE),OP:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:r(0,1,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:r(1,2,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:r(3,3,n.TEXCLASS.BIN),BIN4:r(4,4,n.TEXCLASS.BIN),BIN01:r(0,1,n.TEXCLASS.BIN),BIN5:r(5,5,n.TEXCLASS.BIN),TALLBIN:r(4,4,n.TEXCLASS.BIN,{stretchy:!0}),BINOP:r(4,4,n.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:r(5,5,n.TEXCLASS.REL),REL1:r(1,1,n.TEXCLASS.REL,{stretchy:!0}),REL4:r(4,4,n.TEXCLASS.REL),RELSTRETCH:r(5,5,n.TEXCLASS.REL,{stretchy:!0}),RELACCENT:r(5,5,n.TEXCLASS.REL,{accent:!0}),WIDEREL:r(5,5,n.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:r(0,0,n.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:r(0,0,n.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:r(0,0,n.TEXCLASS.INNER),PUNCT:r(0,3,n.TEXCLASS.PUNCT),ACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0,stretchy:!0})},e.RANGES=[[32,127,n.TEXCLASS.REL,`mo`],[160,191,n.TEXCLASS.ORD,`mo`],[192,591,n.TEXCLASS.ORD,`mi`],[688,879,n.TEXCLASS.ORD,`mo`],[880,6688,n.TEXCLASS.ORD,`mi`],[6832,6911,n.TEXCLASS.ORD,`mo`],[6912,7615,n.TEXCLASS.ORD,`mi`],[7616,7679,n.TEXCLASS.ORD,`mo`],[7680,8191,n.TEXCLASS.ORD,`mi`],[8192,8303,n.TEXCLASS.ORD,`mo`],[8304,8351,n.TEXCLASS.ORD,`mo`],[8448,8527,n.TEXCLASS.ORD,`mi`],[8528,8591,n.TEXCLASS.ORD,`mn`],[8592,8703,n.TEXCLASS.REL,`mo`],[8704,8959,n.TEXCLASS.BIN,`mo`],[8960,9215,n.TEXCLASS.ORD,`mo`],[9312,9471,n.TEXCLASS.ORD,`mn`],[9472,10223,n.TEXCLASS.ORD,`mo`],[10224,10239,n.TEXCLASS.REL,`mo`],[10240,10495,n.TEXCLASS.ORD,`mtext`],[10496,10623,n.TEXCLASS.REL,`mo`],[10624,10751,n.TEXCLASS.ORD,`mo`],[10752,11007,n.TEXCLASS.BIN,`mo`],[11008,11055,n.TEXCLASS.ORD,`mo`],[11056,11087,n.TEXCLASS.REL,`mo`],[11088,11263,n.TEXCLASS.ORD,`mo`],[11264,11744,n.TEXCLASS.ORD,`mi`],[11776,11903,n.TEXCLASS.ORD,`mo`],[11904,12255,n.TEXCLASS.ORD,`mi`,`normal`],[12272,12351,n.TEXCLASS.ORD,`mo`],[12352,42143,n.TEXCLASS.ORD,`mi`,`normal`],[42192,43055,n.TEXCLASS.ORD,`mi`],[43056,43071,n.TEXCLASS.ORD,`mn`],[43072,55295,n.TEXCLASS.ORD,`mi`],[63744,64255,n.TEXCLASS.ORD,`mi`,`normal`],[64256,65023,n.TEXCLASS.ORD,`mi`],[65024,65135,n.TEXCLASS.ORD,`mo`],[65136,65791,n.TEXCLASS.ORD,`mi`],[65792,65935,n.TEXCLASS.ORD,`mn`],[65936,74751,n.TEXCLASS.ORD,`mi`,`normal`],[74752,74879,n.TEXCLASS.ORD,`mn`],[74880,113823,n.TEXCLASS.ORD,`mi`,`normal`],[113824,119391,n.TEXCLASS.ORD,`mo`],[119648,119679,n.TEXCLASS.ORD,`mn`],[119808,120781,n.TEXCLASS.ORD,`mi`],[120782,120831,n.TEXCLASS.ORD,`mn`],[122624,129023,n.TEXCLASS.ORD,`mo`],[129024,129279,n.TEXCLASS.REL,`mo`],[129280,129535,n.TEXCLASS.ORD,`mo`],[131072,195103,n.TEXCLASS.ORD,`mi`,`normnal`]];function a(n){var r,i,a=n.codePointAt(0);try{for(var o=t(e.RANGES),s=o.next();!s.done;s=o.next()){var c=s.value;if(a<=c[1]){if(a>=c[0])return c;break}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return null}e.getRange=a,e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":e.MO.ORD21,"±":e.MO.BIN01,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,n.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,n.TEXCLASS.OPEN,{fence:!0}],ⅅ:e.MO.ORD21,ⅆ:r(2,0,n.TEXCLASS.ORD),"∀":e.MO.ORD21,"∂":e.MO.ORD21,"∃":e.MO.ORD21,"∄":e.MO.ORD21,"∇":e.MO.ORD21,"∏":e.MO.OP,"∐":e.MO.OP,"∑":e.MO.OP,"−":e.MO.BIN01,"∓":e.MO.BIN01,"√":[1,1,n.TEXCLASS.ORD,{stretchy:!0}],"∛":e.MO.ORD11,"∜":e.MO.ORD11,"∠":e.MO.ORD,"∡":e.MO.ORD,"∢":e.MO.ORD,"∫":e.MO.INTEGRAL,"∬":e.MO.INTEGRAL,"∭":e.MO.INTEGRAL,"∮":e.MO.INTEGRAL,"∯":e.MO.INTEGRAL,"∰":e.MO.INTEGRAL,"∱":e.MO.INTEGRAL,"∲":e.MO.INTEGRAL,"∳":e.MO.INTEGRAL,"⋀":e.MO.OP,"⋁":e.MO.OP,"⋂":e.MO.OP,"⋃":e.MO.OP,"⌈":e.MO.OPEN,"⌊":e.MO.OPEN,"〈":e.MO.OPEN,"❲":e.MO.OPEN,"⟦":e.MO.OPEN,"⟨":e.MO.OPEN,"⟪":e.MO.OPEN,"⟬":e.MO.OPEN,"⟮":e.MO.OPEN,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":e.MO.OPEN,"⦅":e.MO.OPEN,"⦇":e.MO.OPEN,"⦉":e.MO.OPEN,"⦋":e.MO.OPEN,"⦍":e.MO.OPEN,"⦏":e.MO.OPEN,"⦑":e.MO.OPEN,"⦓":e.MO.OPEN,"⦕":e.MO.OPEN,"⦗":e.MO.OPEN,"⧼":e.MO.OPEN,"⨀":e.MO.OP,"⨁":e.MO.OP,"⨂":e.MO.OP,"⨃":e.MO.OP,"⨄":e.MO.OP,"⨅":e.MO.OP,"⨆":e.MO.OP,"⨇":e.MO.OP,"⨈":e.MO.OP,"⨉":e.MO.OP,"⨊":e.MO.OP,"⨋":e.MO.INTEGRAL2,"⨌":e.MO.INTEGRAL,"⨍":e.MO.INTEGRAL2,"⨎":e.MO.INTEGRAL2,"⨏":e.MO.INTEGRAL2,"⨐":e.MO.OP,"⨑":e.MO.OP,"⨒":e.MO.OP,"⨓":e.MO.OP,"⨔":e.MO.OP,"⨕":e.MO.INTEGRAL2,"⨖":e.MO.INTEGRAL2,"⨗":e.MO.INTEGRAL2,"⨘":e.MO.INTEGRAL2,"⨙":e.MO.INTEGRAL2,"⨚":e.MO.INTEGRAL2,"⨛":e.MO.INTEGRAL2,"⨜":e.MO.INTEGRAL2,"⫼":e.MO.OP,"⫿":e.MO.OP},postfix:{"!!":r(1,0),"!":[1,0,n.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":r(0,0),"--":r(0,0),"..":r(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":e.MO.ACCENT,ª:e.MO.ACCENT,"¯":e.MO.WIDEACCENT,"°":e.MO.ORD,"²":e.MO.ACCENT,"³":e.MO.ACCENT,"´":e.MO.ACCENT,"¸":e.MO.ACCENT,"¹":e.MO.ACCENT,º:e.MO.ACCENT,ˆ:e.MO.WIDEACCENT,ˇ:e.MO.WIDEACCENT,ˉ:e.MO.WIDEACCENT,ˊ:e.MO.ACCENT,ˋ:e.MO.ACCENT,ˍ:e.MO.WIDEACCENT,"˘":e.MO.ACCENT,"˙":e.MO.ACCENT,"˚":e.MO.ACCENT,"˜":e.MO.WIDEACCENT,"˝":e.MO.ACCENT,"˷":e.MO.WIDEACCENT,"̂":e.MO.WIDEACCENT,"̑":e.MO.ACCENT,"϶":e.MO.REL,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"‚":e.MO.ACCENT,"‛":e.MO.ACCENT,"”":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"„":e.MO.ACCENT,"‟":e.MO.ACCENT,"′":e.MO.ORD,"″":e.MO.ACCENT,"‴":e.MO.ACCENT,"‵":e.MO.ACCENT,"‶":e.MO.ACCENT,"‷":e.MO.ACCENT,"‾":e.MO.WIDEACCENT,"⁗":e.MO.ACCENT,"⃛":e.MO.ACCENT,"⃜":e.MO.ACCENT,"⌉":e.MO.CLOSE,"⌋":e.MO.CLOSE,"〉":e.MO.CLOSE,"⎴":e.MO.WIDEACCENT,"⎵":e.MO.WIDEACCENT,"⏜":e.MO.WIDEACCENT,"⏝":e.MO.WIDEACCENT,"⏞":e.MO.WIDEACCENT,"⏟":e.MO.WIDEACCENT,"⏠":e.MO.WIDEACCENT,"⏡":e.MO.WIDEACCENT,"■":e.MO.BIN3,"□":e.MO.BIN3,"▪":e.MO.BIN3,"▫":e.MO.BIN3,"▭":e.MO.BIN3,"▮":e.MO.BIN3,"▯":e.MO.BIN3,"▰":e.MO.BIN3,"▱":e.MO.BIN3,"▲":e.MO.BIN4,"▴":e.MO.BIN4,"▶":e.MO.BIN4,"▷":e.MO.BIN4,"▸":e.MO.BIN4,"▼":e.MO.BIN4,"▾":e.MO.BIN4,"◀":e.MO.BIN4,"◁":e.MO.BIN4,"◂":e.MO.BIN4,"◄":e.MO.BIN4,"◅":e.MO.BIN4,"◆":e.MO.BIN4,"◇":e.MO.BIN4,"◈":e.MO.BIN4,"◉":e.MO.BIN4,"◌":e.MO.BIN4,"◍":e.MO.BIN4,"◎":e.MO.BIN4,"●":e.MO.BIN4,"◖":e.MO.BIN4,"◗":e.MO.BIN4,"◦":e.MO.BIN4,"♭":e.MO.ORD02,"♮":e.MO.ORD02,"♯":e.MO.ORD02,"❳":e.MO.CLOSE,"⟧":e.MO.CLOSE,"⟩":e.MO.CLOSE,"⟫":e.MO.CLOSE,"⟭":e.MO.CLOSE,"⟯":e.MO.CLOSE,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":e.MO.CLOSE,"⦆":e.MO.CLOSE,"⦈":e.MO.CLOSE,"⦊":e.MO.CLOSE,"⦌":e.MO.CLOSE,"⦎":e.MO.CLOSE,"⦐":e.MO.CLOSE,"⦒":e.MO.CLOSE,"⦔":e.MO.CLOSE,"⦖":e.MO.CLOSE,"⦘":e.MO.CLOSE,"⧽":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,n.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":r(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:`after`,separator:!0}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,n.TEXCLASS.PUNCT,{separator:!0}],"/":e.MO.ORD11,"//":r(1,1),"/=":e.MO.BIN4,":":[1,2,n.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:`after`,separator:!0}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":r(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,n.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":e.MO.BIN4,"·":e.MO.BIN4,"×":e.MO.BIN4,"÷":e.MO.BIN4,ʹ:e.MO.ORD,"̀":e.MO.ACCENT,"́":e.MO.ACCENT,"̃":e.MO.WIDEACCENT,"̄":e.MO.ACCENT,"̆":e.MO.ACCENT,"̇":e.MO.ACCENT,"̈":e.MO.ACCENT,"̌":e.MO.ACCENT,"̲":e.MO.WIDEACCENT,"̸":e.MO.REL4,"―":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"†":e.MO.BIN3,"‡":e.MO.BIN3,"•":e.MO.BIN4,"…":e.MO.INNER,"⁃":e.MO.BIN4,"⁄":e.MO.TALLBIN,"⁡":e.MO.NONE,"⁢":e.MO.NONE,"⁣":[0,0,n.TEXCLASS.NONE,{linebreakstyle:`after`,separator:!0}],"⁤":e.MO.NONE,"⃗":e.MO.ACCENT,ℑ:e.MO.ORD,ℓ:e.MO.ORD,℘:e.MO.ORD,ℜ:e.MO.ORD,"←":e.MO.WIDEREL,"↑":e.MO.RELSTRETCH,"→":e.MO.WIDEREL,"↓":e.MO.RELSTRETCH,"↔":e.MO.WIDEREL,"↕":e.MO.RELSTRETCH,"↖":e.MO.RELSTRETCH,"↗":e.MO.RELSTRETCH,"↘":e.MO.RELSTRETCH,"↙":e.MO.RELSTRETCH,"↚":e.MO.RELACCENT,"↛":e.MO.RELACCENT,"↜":e.MO.WIDEREL,"↝":e.MO.WIDEREL,"↞":e.MO.WIDEREL,"↟":e.MO.WIDEREL,"↠":e.MO.WIDEREL,"↡":e.MO.RELSTRETCH,"↢":e.MO.WIDEREL,"↣":e.MO.WIDEREL,"↤":e.MO.WIDEREL,"↥":e.MO.RELSTRETCH,"↦":e.MO.WIDEREL,"↧":e.MO.RELSTRETCH,"↨":e.MO.RELSTRETCH,"↩":e.MO.WIDEREL,"↪":e.MO.WIDEREL,"↫":e.MO.WIDEREL,"↬":e.MO.WIDEREL,"↭":e.MO.WIDEREL,"↮":e.MO.RELACCENT,"↯":e.MO.RELSTRETCH,"↰":e.MO.RELSTRETCH,"↱":e.MO.RELSTRETCH,"↲":e.MO.RELSTRETCH,"↳":e.MO.RELSTRETCH,"↴":e.MO.RELSTRETCH,"↵":e.MO.RELSTRETCH,"↶":e.MO.RELACCENT,"↷":e.MO.RELACCENT,"↸":e.MO.REL,"↹":e.MO.WIDEREL,"↺":e.MO.REL,"↻":e.MO.REL,"↼":e.MO.WIDEREL,"↽":e.MO.WIDEREL,"↾":e.MO.RELSTRETCH,"↿":e.MO.RELSTRETCH,"⇀":e.MO.WIDEREL,"⇁":e.MO.WIDEREL,"⇂":e.MO.RELSTRETCH,"⇃":e.MO.RELSTRETCH,"⇄":e.MO.WIDEREL,"⇅":e.MO.RELSTRETCH,"⇆":e.MO.WIDEREL,"⇇":e.MO.WIDEREL,"⇈":e.MO.RELSTRETCH,"⇉":e.MO.WIDEREL,"⇊":e.MO.RELSTRETCH,"⇋":e.MO.WIDEREL,"⇌":e.MO.WIDEREL,"⇍":e.MO.RELACCENT,"⇎":e.MO.RELACCENT,"⇏":e.MO.RELACCENT,"⇐":e.MO.WIDEREL,"⇑":e.MO.RELSTRETCH,"⇒":e.MO.WIDEREL,"⇓":e.MO.RELSTRETCH,"⇔":e.MO.WIDEREL,"⇕":e.MO.RELSTRETCH,"⇖":e.MO.RELSTRETCH,"⇗":e.MO.RELSTRETCH,"⇘":e.MO.RELSTRETCH,"⇙":e.MO.RELSTRETCH,"⇚":e.MO.WIDEREL,"⇛":e.MO.WIDEREL,"⇜":e.MO.WIDEREL,"⇝":e.MO.WIDEREL,"⇞":e.MO.REL,"⇟":e.MO.REL,"⇠":e.MO.WIDEREL,"⇡":e.MO.RELSTRETCH,"⇢":e.MO.WIDEREL,"⇣":e.MO.RELSTRETCH,"⇤":e.MO.WIDEREL,"⇥":e.MO.WIDEREL,"⇦":e.MO.WIDEREL,"⇧":e.MO.RELSTRETCH,"⇨":e.MO.WIDEREL,"⇩":e.MO.RELSTRETCH,"⇪":e.MO.RELSTRETCH,"⇫":e.MO.RELSTRETCH,"⇬":e.MO.RELSTRETCH,"⇭":e.MO.RELSTRETCH,"⇮":e.MO.RELSTRETCH,"⇯":e.MO.RELSTRETCH,"⇰":e.MO.WIDEREL,"⇱":e.MO.REL,"⇲":e.MO.REL,"⇳":e.MO.RELSTRETCH,"⇴":e.MO.RELACCENT,"⇵":e.MO.RELSTRETCH,"⇶":e.MO.WIDEREL,"⇷":e.MO.RELACCENT,"⇸":e.MO.RELACCENT,"⇹":e.MO.RELACCENT,"⇺":e.MO.RELACCENT,"⇻":e.MO.RELACCENT,"⇼":e.MO.RELACCENT,"⇽":e.MO.WIDEREL,"⇾":e.MO.WIDEREL,"⇿":e.MO.WIDEREL,"∁":r(1,2,n.TEXCLASS.ORD),"∅":e.MO.ORD,"∆":e.MO.BIN3,"∈":e.MO.REL,"∉":e.MO.REL,"∊":e.MO.REL,"∋":e.MO.REL,"∌":e.MO.REL,"∍":e.MO.REL,"∎":e.MO.BIN3,"−":e.MO.BIN4,"∓":e.MO.BIN4,"∔":e.MO.BIN4,"∕":e.MO.TALLBIN,"∖":e.MO.BIN4,"∗":e.MO.BIN4,"∘":e.MO.BIN4,"∙":e.MO.BIN4,"∝":e.MO.REL,"∞":e.MO.ORD,"∟":e.MO.REL,"∣":e.MO.REL,"∤":e.MO.REL,"∥":e.MO.REL,"∦":e.MO.REL,"∧":e.MO.BIN4,"∨":e.MO.BIN4,"∩":e.MO.BIN4,"∪":e.MO.BIN4,"∴":e.MO.REL,"∵":e.MO.REL,"∶":e.MO.REL,"∷":e.MO.REL,"∸":e.MO.BIN4,"∹":e.MO.REL,"∺":e.MO.BIN4,"∻":e.MO.REL,"∼":e.MO.REL,"∽":e.MO.REL,"∽̱":e.MO.BIN3,"∾":e.MO.REL,"∿":e.MO.BIN3,"≀":e.MO.BIN4,"≁":e.MO.REL,"≂":e.MO.REL,"≂̸":e.MO.REL,"≃":e.MO.REL,"≄":e.MO.REL,"≅":e.MO.REL,"≆":e.MO.REL,"≇":e.MO.REL,"≈":e.MO.REL,"≉":e.MO.REL,"≊":e.MO.REL,"≋":e.MO.REL,"≌":e.MO.REL,"≍":e.MO.REL,"≎":e.MO.REL,"≎̸":e.MO.REL,"≏":e.MO.REL,"≏̸":e.MO.REL,"≐":e.MO.REL,"≑":e.MO.REL,"≒":e.MO.REL,"≓":e.MO.REL,"≔":e.MO.REL,"≕":e.MO.REL,"≖":e.MO.REL,"≗":e.MO.REL,"≘":e.MO.REL,"≙":e.MO.REL,"≚":e.MO.REL,"≛":e.MO.REL,"≜":e.MO.REL,"≝":e.MO.REL,"≞":e.MO.REL,"≟":e.MO.REL,"≠":e.MO.REL,"≡":e.MO.REL,"≢":e.MO.REL,"≣":e.MO.REL,"≤":e.MO.REL,"≥":e.MO.REL,"≦":e.MO.REL,"≦̸":e.MO.REL,"≧":e.MO.REL,"≨":e.MO.REL,"≩":e.MO.REL,"≪":e.MO.REL,"≪̸":e.MO.REL,"≫":e.MO.REL,"≫̸":e.MO.REL,"≬":e.MO.REL,"≭":e.MO.REL,"≮":e.MO.REL,"≯":e.MO.REL,"≰":e.MO.REL,"≱":e.MO.REL,"≲":e.MO.REL,"≳":e.MO.REL,"≴":e.MO.REL,"≵":e.MO.REL,"≶":e.MO.REL,"≷":e.MO.REL,"≸":e.MO.REL,"≹":e.MO.REL,"≺":e.MO.REL,"≻":e.MO.REL,"≼":e.MO.REL,"≽":e.MO.REL,"≾":e.MO.REL,"≿":e.MO.REL,"≿̸":e.MO.REL,"⊀":e.MO.REL,"⊁":e.MO.REL,"⊂":e.MO.REL,"⊂⃒":e.MO.REL,"⊃":e.MO.REL,"⊃⃒":e.MO.REL,"⊄":e.MO.REL,"⊅":e.MO.REL,"⊆":e.MO.REL,"⊇":e.MO.REL,"⊈":e.MO.REL,"⊉":e.MO.REL,"⊊":e.MO.REL,"⊋":e.MO.REL,"⊌":e.MO.BIN4,"⊍":e.MO.BIN4,"⊎":e.MO.BIN4,"⊏":e.MO.REL,"⊏̸":e.MO.REL,"⊐":e.MO.REL,"⊐̸":e.MO.REL,"⊑":e.MO.REL,"⊒":e.MO.REL,"⊓":e.MO.BIN4,"⊔":e.MO.BIN4,"⊕":e.MO.BIN4,"⊖":e.MO.BIN4,"⊗":e.MO.BIN4,"⊘":e.MO.BIN4,"⊙":e.MO.BIN4,"⊚":e.MO.BIN4,"⊛":e.MO.BIN4,"⊜":e.MO.BIN4,"⊝":e.MO.BIN4,"⊞":e.MO.BIN4,"⊟":e.MO.BIN4,"⊠":e.MO.BIN4,"⊡":e.MO.BIN4,"⊢":e.MO.REL,"⊣":e.MO.REL,"⊤":e.MO.ORD55,"⊥":e.MO.REL,"⊦":e.MO.REL,"⊧":e.MO.REL,"⊨":e.MO.REL,"⊩":e.MO.REL,"⊪":e.MO.REL,"⊫":e.MO.REL,"⊬":e.MO.REL,"⊭":e.MO.REL,"⊮":e.MO.REL,"⊯":e.MO.REL,"⊰":e.MO.REL,"⊱":e.MO.REL,"⊲":e.MO.REL,"⊳":e.MO.REL,"⊴":e.MO.REL,"⊵":e.MO.REL,"⊶":e.MO.REL,"⊷":e.MO.REL,"⊸":e.MO.REL,"⊹":e.MO.REL,"⊺":e.MO.BIN4,"⊻":e.MO.BIN4,"⊼":e.MO.BIN4,"⊽":e.MO.BIN4,"⊾":e.MO.BIN3,"⊿":e.MO.BIN3,"⋄":e.MO.BIN4,"⋅":e.MO.BIN4,"⋆":e.MO.BIN4,"⋇":e.MO.BIN4,"⋈":e.MO.REL,"⋉":e.MO.BIN4,"⋊":e.MO.BIN4,"⋋":e.MO.BIN4,"⋌":e.MO.BIN4,"⋍":e.MO.REL,"⋎":e.MO.BIN4,"⋏":e.MO.BIN4,"⋐":e.MO.REL,"⋑":e.MO.REL,"⋒":e.MO.BIN4,"⋓":e.MO.BIN4,"⋔":e.MO.REL,"⋕":e.MO.REL,"⋖":e.MO.REL,"⋗":e.MO.REL,"⋘":e.MO.REL,"⋙":e.MO.REL,"⋚":e.MO.REL,"⋛":e.MO.REL,"⋜":e.MO.REL,"⋝":e.MO.REL,"⋞":e.MO.REL,"⋟":e.MO.REL,"⋠":e.MO.REL,"⋡":e.MO.REL,"⋢":e.MO.REL,"⋣":e.MO.REL,"⋤":e.MO.REL,"⋥":e.MO.REL,"⋦":e.MO.REL,"⋧":e.MO.REL,"⋨":e.MO.REL,"⋩":e.MO.REL,"⋪":e.MO.REL,"⋫":e.MO.REL,"⋬":e.MO.REL,"⋭":e.MO.REL,"⋮":e.MO.ORD55,"⋯":e.MO.INNER,"⋰":e.MO.REL,"⋱":[5,5,n.TEXCLASS.INNER,null],"⋲":e.MO.REL,"⋳":e.MO.REL,"⋴":e.MO.REL,"⋵":e.MO.REL,"⋶":e.MO.REL,"⋷":e.MO.REL,"⋸":e.MO.REL,"⋹":e.MO.REL,"⋺":e.MO.REL,"⋻":e.MO.REL,"⋼":e.MO.REL,"⋽":e.MO.REL,"⋾":e.MO.REL,"⋿":e.MO.REL,"⌅":e.MO.BIN3,"⌆":e.MO.BIN3,"⌢":e.MO.REL4,"⌣":e.MO.REL4,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"⎪":e.MO.ORD,"⎯":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"⎰":e.MO.OPEN,"⎱":e.MO.CLOSE,"─":e.MO.ORD,"△":e.MO.BIN4,"▵":e.MO.BIN4,"▹":e.MO.BIN4,"▽":e.MO.BIN4,"▿":e.MO.BIN4,"◃":e.MO.BIN4,"◯":e.MO.BIN3,"♠":e.MO.ORD,"♡":e.MO.ORD,"♢":e.MO.ORD,"♣":e.MO.ORD,"❘":e.MO.REL,"⟰":e.MO.RELSTRETCH,"⟱":e.MO.RELSTRETCH,"⟵":e.MO.WIDEREL,"⟶":e.MO.WIDEREL,"⟷":e.MO.WIDEREL,"⟸":e.MO.WIDEREL,"⟹":e.MO.WIDEREL,"⟺":e.MO.WIDEREL,"⟻":e.MO.WIDEREL,"⟼":e.MO.WIDEREL,"⟽":e.MO.WIDEREL,"⟾":e.MO.WIDEREL,"⟿":e.MO.WIDEREL,"⤀":e.MO.RELACCENT,"⤁":e.MO.RELACCENT,"⤂":e.MO.RELACCENT,"⤃":e.MO.RELACCENT,"⤄":e.MO.RELACCENT,"⤅":e.MO.RELACCENT,"⤆":e.MO.RELACCENT,"⤇":e.MO.RELACCENT,"⤈":e.MO.REL,"⤉":e.MO.REL,"⤊":e.MO.RELSTRETCH,"⤋":e.MO.RELSTRETCH,"⤌":e.MO.WIDEREL,"⤍":e.MO.WIDEREL,"⤎":e.MO.WIDEREL,"⤏":e.MO.WIDEREL,"⤐":e.MO.WIDEREL,"⤑":e.MO.RELACCENT,"⤒":e.MO.RELSTRETCH,"⤓":e.MO.RELSTRETCH,"⤔":e.MO.RELACCENT,"⤕":e.MO.RELACCENT,"⤖":e.MO.RELACCENT,"⤗":e.MO.RELACCENT,"⤘":e.MO.RELACCENT,"⤙":e.MO.RELACCENT,"⤚":e.MO.RELACCENT,"⤛":e.MO.RELACCENT,"⤜":e.MO.RELACCENT,"⤝":e.MO.RELACCENT,"⤞":e.MO.RELACCENT,"⤟":e.MO.RELACCENT,"⤠":e.MO.RELACCENT,"⤡":e.MO.RELSTRETCH,"⤢":e.MO.RELSTRETCH,"⤣":e.MO.REL,"⤤":e.MO.REL,"⤥":e.MO.REL,"⤦":e.MO.REL,"⤧":e.MO.REL,"⤨":e.MO.REL,"⤩":e.MO.REL,"⤪":e.MO.REL,"⤫":e.MO.REL,"⤬":e.MO.REL,"⤭":e.MO.REL,"⤮":e.MO.REL,"⤯":e.MO.REL,"⤰":e.MO.REL,"⤱":e.MO.REL,"⤲":e.MO.REL,"⤳":e.MO.RELACCENT,"⤴":e.MO.REL,"⤵":e.MO.REL,"⤶":e.MO.REL,"⤷":e.MO.REL,"⤸":e.MO.REL,"⤹":e.MO.REL,"⤺":e.MO.RELACCENT,"⤻":e.MO.RELACCENT,"⤼":e.MO.RELACCENT,"⤽":e.MO.RELACCENT,"⤾":e.MO.REL,"⤿":e.MO.REL,"⥀":e.MO.REL,"⥁":e.MO.REL,"⥂":e.MO.RELACCENT,"⥃":e.MO.RELACCENT,"⥄":e.MO.RELACCENT,"⥅":e.MO.RELACCENT,"⥆":e.MO.RELACCENT,"⥇":e.MO.RELACCENT,"⥈":e.MO.RELACCENT,"⥉":e.MO.REL,"⥊":e.MO.RELACCENT,"⥋":e.MO.RELACCENT,"⥌":e.MO.REL,"⥍":e.MO.REL,"⥎":e.MO.WIDEREL,"⥏":e.MO.RELSTRETCH,"⥐":e.MO.WIDEREL,"⥑":e.MO.RELSTRETCH,"⥒":e.MO.WIDEREL,"⥓":e.MO.WIDEREL,"⥔":e.MO.RELSTRETCH,"⥕":e.MO.RELSTRETCH,"⥖":e.MO.RELSTRETCH,"⥗":e.MO.RELSTRETCH,"⥘":e.MO.RELSTRETCH,"⥙":e.MO.RELSTRETCH,"⥚":e.MO.WIDEREL,"⥛":e.MO.WIDEREL,"⥜":e.MO.RELSTRETCH,"⥝":e.MO.RELSTRETCH,"⥞":e.MO.WIDEREL,"⥟":e.MO.WIDEREL,"⥠":e.MO.RELSTRETCH,"⥡":e.MO.RELSTRETCH,"⥢":e.MO.RELACCENT,"⥣":e.MO.REL,"⥤":e.MO.RELACCENT,"⥥":e.MO.REL,"⥦":e.MO.RELACCENT,"⥧":e.MO.RELACCENT,"⥨":e.MO.RELACCENT,"⥩":e.MO.RELACCENT,"⥪":e.MO.RELACCENT,"⥫":e.MO.RELACCENT,"⥬":e.MO.RELACCENT,"⥭":e.MO.RELACCENT,"⥮":e.MO.RELSTRETCH,"⥯":e.MO.RELSTRETCH,"⥰":e.MO.RELACCENT,"⥱":e.MO.RELACCENT,"⥲":e.MO.RELACCENT,"⥳":e.MO.RELACCENT,"⥴":e.MO.RELACCENT,"⥵":e.MO.RELACCENT,"⥶":e.MO.RELACCENT,"⥷":e.MO.RELACCENT,"⥸":e.MO.RELACCENT,"⥹":e.MO.RELACCENT,"⥺":e.MO.RELACCENT,"⥻":e.MO.RELACCENT,"⥼":e.MO.RELACCENT,"⥽":e.MO.RELACCENT,"⥾":e.MO.REL,"⥿":e.MO.REL,"⦁":e.MO.BIN3,"⦂":e.MO.BIN3,"⦙":e.MO.BIN3,"⦚":e.MO.BIN3,"⦛":e.MO.BIN3,"⦜":e.MO.BIN3,"⦝":e.MO.BIN3,"⦞":e.MO.BIN3,"⦟":e.MO.BIN3,"⦠":e.MO.BIN3,"⦡":e.MO.BIN3,"⦢":e.MO.BIN3,"⦣":e.MO.BIN3,"⦤":e.MO.BIN3,"⦥":e.MO.BIN3,"⦦":e.MO.BIN3,"⦧":e.MO.BIN3,"⦨":e.MO.BIN3,"⦩":e.MO.BIN3,"⦪":e.MO.BIN3,"⦫":e.MO.BIN3,"⦬":e.MO.BIN3,"⦭":e.MO.BIN3,"⦮":e.MO.BIN3,"⦯":e.MO.BIN3,"⦰":e.MO.BIN3,"⦱":e.MO.BIN3,"⦲":e.MO.BIN3,"⦳":e.MO.BIN3,"⦴":e.MO.BIN3,"⦵":e.MO.BIN3,"⦶":e.MO.BIN4,"⦷":e.MO.BIN4,"⦸":e.MO.BIN4,"⦹":e.MO.BIN4,"⦺":e.MO.BIN4,"⦻":e.MO.BIN4,"⦼":e.MO.BIN4,"⦽":e.MO.BIN4,"⦾":e.MO.BIN4,"⦿":e.MO.BIN4,"⧀":e.MO.REL,"⧁":e.MO.REL,"⧂":e.MO.BIN3,"⧃":e.MO.BIN3,"⧄":e.MO.BIN4,"⧅":e.MO.BIN4,"⧆":e.MO.BIN4,"⧇":e.MO.BIN4,"⧈":e.MO.BIN4,"⧉":e.MO.BIN3,"⧊":e.MO.BIN3,"⧋":e.MO.BIN3,"⧌":e.MO.BIN3,"⧍":e.MO.BIN3,"⧎":e.MO.REL,"⧏":e.MO.REL,"⧏̸":e.MO.REL,"⧐":e.MO.REL,"⧐̸":e.MO.REL,"⧑":e.MO.REL,"⧒":e.MO.REL,"⧓":e.MO.REL,"⧔":e.MO.REL,"⧕":e.MO.REL,"⧖":e.MO.BIN4,"⧗":e.MO.BIN4,"⧘":e.MO.BIN3,"⧙":e.MO.BIN3,"⧛":e.MO.BIN3,"⧜":e.MO.BIN3,"⧝":e.MO.BIN3,"⧞":e.MO.REL,"⧟":e.MO.BIN3,"⧠":e.MO.BIN3,"⧡":e.MO.REL,"⧢":e.MO.BIN4,"⧣":e.MO.REL,"⧤":e.MO.REL,"⧥":e.MO.REL,"⧦":e.MO.REL,"⧧":e.MO.BIN3,"⧨":e.MO.BIN3,"⧩":e.MO.BIN3,"⧪":e.MO.BIN3,"⧫":e.MO.BIN3,"⧬":e.MO.BIN3,"⧭":e.MO.BIN3,"⧮":e.MO.BIN3,"⧯":e.MO.BIN3,"⧰":e.MO.BIN3,"⧱":e.MO.BIN3,"⧲":e.MO.BIN3,"⧳":e.MO.BIN3,"⧴":e.MO.REL,"⧵":e.MO.BIN4,"⧶":e.MO.BIN4,"⧷":e.MO.BIN4,"⧸":e.MO.BIN3,"⧹":e.MO.BIN3,"⧺":e.MO.BIN3,"⧻":e.MO.BIN3,"⧾":e.MO.BIN4,"⧿":e.MO.BIN4,"⨝":e.MO.BIN3,"⨞":e.MO.BIN3,"⨟":e.MO.BIN3,"⨠":e.MO.BIN3,"⨡":e.MO.BIN3,"⨢":e.MO.BIN4,"⨣":e.MO.BIN4,"⨤":e.MO.BIN4,"⨥":e.MO.BIN4,"⨦":e.MO.BIN4,"⨧":e.MO.BIN4,"⨨":e.MO.BIN4,"⨩":e.MO.BIN4,"⨪":e.MO.BIN4,"⨫":e.MO.BIN4,"⨬":e.MO.BIN4,"⨭":e.MO.BIN4,"⨮":e.MO.BIN4,"⨯":e.MO.BIN4,"⨰":e.MO.BIN4,"⨱":e.MO.BIN4,"⨲":e.MO.BIN4,"⨳":e.MO.BIN4,"⨴":e.MO.BIN4,"⨵":e.MO.BIN4,"⨶":e.MO.BIN4,"⨷":e.MO.BIN4,"⨸":e.MO.BIN4,"⨹":e.MO.BIN4,"⨺":e.MO.BIN4,"⨻":e.MO.BIN4,"⨼":e.MO.BIN4,"⨽":e.MO.BIN4,"⨾":e.MO.BIN4,"⨿":e.MO.BIN4,"⩀":e.MO.BIN4,"⩁":e.MO.BIN4,"⩂":e.MO.BIN4,"⩃":e.MO.BIN4,"⩄":e.MO.BIN4,"⩅":e.MO.BIN4,"⩆":e.MO.BIN4,"⩇":e.MO.BIN4,"⩈":e.MO.BIN4,"⩉":e.MO.BIN4,"⩊":e.MO.BIN4,"⩋":e.MO.BIN4,"⩌":e.MO.BIN4,"⩍":e.MO.BIN4,"⩎":e.MO.BIN4,"⩏":e.MO.BIN4,"⩐":e.MO.BIN4,"⩑":e.MO.BIN4,"⩒":e.MO.BIN4,"⩓":e.MO.BIN4,"⩔":e.MO.BIN4,"⩕":e.MO.BIN4,"⩖":e.MO.BIN4,"⩗":e.MO.BIN4,"⩘":e.MO.BIN4,"⩙":e.MO.REL,"⩚":e.MO.BIN4,"⩛":e.MO.BIN4,"⩜":e.MO.BIN4,"⩝":e.MO.BIN4,"⩞":e.MO.BIN4,"⩟":e.MO.BIN4,"⩠":e.MO.BIN4,"⩡":e.MO.BIN4,"⩢":e.MO.BIN4,"⩣":e.MO.BIN4,"⩤":e.MO.BIN4,"⩥":e.MO.BIN4,"⩦":e.MO.REL,"⩧":e.MO.REL,"⩨":e.MO.REL,"⩩":e.MO.REL,"⩪":e.MO.REL,"⩫":e.MO.REL,"⩬":e.MO.REL,"⩭":e.MO.REL,"⩮":e.MO.REL,"⩯":e.MO.REL,"⩰":e.MO.REL,"⩱":e.MO.BIN4,"⩲":e.MO.BIN4,"⩳":e.MO.REL,"⩴":e.MO.REL,"⩵":e.MO.REL,"⩶":e.MO.REL,"⩷":e.MO.REL,"⩸":e.MO.REL,"⩹":e.MO.REL,"⩺":e.MO.REL,"⩻":e.MO.REL,"⩼":e.MO.REL,"⩽":e.MO.REL,"⩽̸":e.MO.REL,"⩾":e.MO.REL,"⩾̸":e.MO.REL,"⩿":e.MO.REL,"⪀":e.MO.REL,"⪁":e.MO.REL,"⪂":e.MO.REL,"⪃":e.MO.REL,"⪄":e.MO.REL,"⪅":e.MO.REL,"⪆":e.MO.REL,"⪇":e.MO.REL,"⪈":e.MO.REL,"⪉":e.MO.REL,"⪊":e.MO.REL,"⪋":e.MO.REL,"⪌":e.MO.REL,"⪍":e.MO.REL,"⪎":e.MO.REL,"⪏":e.MO.REL,"⪐":e.MO.REL,"⪑":e.MO.REL,"⪒":e.MO.REL,"⪓":e.MO.REL,"⪔":e.MO.REL,"⪕":e.MO.REL,"⪖":e.MO.REL,"⪗":e.MO.REL,"⪘":e.MO.REL,"⪙":e.MO.REL,"⪚":e.MO.REL,"⪛":e.MO.REL,"⪜":e.MO.REL,"⪝":e.MO.REL,"⪞":e.MO.REL,"⪟":e.MO.REL,"⪠":e.MO.REL,"⪡":e.MO.REL,"⪡̸":e.MO.REL,"⪢":e.MO.REL,"⪢̸":e.MO.REL,"⪣":e.MO.REL,"⪤":e.MO.REL,"⪥":e.MO.REL,"⪦":e.MO.REL,"⪧":e.MO.REL,"⪨":e.MO.REL,"⪩":e.MO.REL,"⪪":e.MO.REL,"⪫":e.MO.REL,"⪬":e.MO.REL,"⪭":e.MO.REL,"⪮":e.MO.REL,"⪯":e.MO.REL,"⪯̸":e.MO.REL,"⪰":e.MO.REL,"⪰̸":e.MO.REL,"⪱":e.MO.REL,"⪲":e.MO.REL,"⪳":e.MO.REL,"⪴":e.MO.REL,"⪵":e.MO.REL,"⪶":e.MO.REL,"⪷":e.MO.REL,"⪸":e.MO.REL,"⪹":e.MO.REL,"⪺":e.MO.REL,"⪻":e.MO.REL,"⪼":e.MO.REL,"⪽":e.MO.REL,"⪾":e.MO.REL,"⪿":e.MO.REL,"⫀":e.MO.REL,"⫁":e.MO.REL,"⫂":e.MO.REL,"⫃":e.MO.REL,"⫄":e.MO.REL,"⫅":e.MO.REL,"⫆":e.MO.REL,"⫇":e.MO.REL,"⫈":e.MO.REL,"⫉":e.MO.REL,"⫊":e.MO.REL,"⫋":e.MO.REL,"⫌":e.MO.REL,"⫍":e.MO.REL,"⫎":e.MO.REL,"⫏":e.MO.REL,"⫐":e.MO.REL,"⫑":e.MO.REL,"⫒":e.MO.REL,"⫓":e.MO.REL,"⫔":e.MO.REL,"⫕":e.MO.REL,"⫖":e.MO.REL,"⫗":e.MO.REL,"⫘":e.MO.REL,"⫙":e.MO.REL,"⫚":e.MO.REL,"⫛":e.MO.REL,"⫝":e.MO.REL,"⫝̸":e.MO.REL,"⫞":e.MO.REL,"⫟":e.MO.REL,"⫠":e.MO.REL,"⫡":e.MO.REL,"⫢":e.MO.REL,"⫣":e.MO.REL,"⫤":e.MO.REL,"⫥":e.MO.REL,"⫦":e.MO.REL,"⫧":e.MO.REL,"⫨":e.MO.REL,"⫩":e.MO.REL,"⫪":e.MO.REL,"⫫":e.MO.REL,"⫬":e.MO.REL,"⫭":e.MO.REL,"⫮":e.MO.REL,"⫯":e.MO.REL,"⫰":e.MO.REL,"⫱":e.MO.REL,"⫲":e.MO.REL,"⫳":e.MO.REL,"⫴":e.MO.BIN4,"⫵":e.MO.BIN4,"⫶":e.MO.BIN4,"⫷":e.MO.REL,"⫸":e.MO.REL,"⫹":e.MO.REL,"⫺":e.MO.REL,"⫻":e.MO.BIN4,"⫽":e.MO.BIN4,"⫾":e.MO.BIN3,"⭅":e.MO.RELSTRETCH,"⭆":e.MO.RELSTRETCH,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"︷":e.MO.WIDEACCENT,"︸":e.MO.WIDEACCENT}},e.OPTABLE.infix[`^`]=e.MO.WIDEREL,e.OPTABLE.infix._=e.MO.WIDEREL,e.OPTABLE.infix[`⫝̸`]=e.MO.REL})),o=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.split=e.isPercent=e.unicodeString=e.unicodeChars=e.quotePattern=e.sortLength=void 0;function r(e,t){return e.length===t.length?e===t?0:e<t?-1:1:t.length-e.length}e.sortLength=r;function i(e){return e.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,`\\$1`)}e.quotePattern=i;function a(e){return Array.from(e).map(function(e){return e.codePointAt(0)})}e.unicodeChars=a;function o(e){return String.fromCodePoint.apply(String,n([],t(e),!1))}e.unicodeString=o;function s(e){return!!e.match(/%\s*$/)}e.isPercent=s;function c(e){return e.trim().split(/\s+/)}e.split=c})),s=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},s=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=void 0;var c=i(),l=a(),u=o();e.MmlMo=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t._texClass=null,t.lspace=5/18,t.rspace=5/18,t}return Object.defineProperty(i.prototype,"texClass",{get:function(){if(this._texClass===null){var e=this.getText(),t=r(this.handleExplicitForm(this.getForms()),3),n=t[0],i=t[1],a=t[2],o=this.constructor.OPTABLE,s=o[n][e]||o[i][e]||o[a][e];return s?s[2]:c.TEXCLASS.REL}return this._texClass},set:function(e){this._texClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"kind",{get:function(){return`mo`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasNewLine",{get:function(){return this.attributes.get(`linebreak`)===`newline`},enumerable:!1,configurable:!0}),i.prototype.coreParent=function(){for(var e=this,t=this,n=this.factory.getNodeClass(`math`);t&&t.isEmbellished&&t.coreMO()===this&&!(t instanceof n);)e=t,t=t.parent;return e},i.prototype.coreText=function(e){if(!e)return``;if(e.isEmbellished)return e.coreMO().getText();for(;((e.isKind(`mrow`)||e.isKind(`TeXAtom`)&&e.texClass!==c.TEXCLASS.VCENTER||e.isKind(`mstyle`)||e.isKind(`mphantom`))&&e.childNodes.length===1||e.isKind(`munderover`))&&e.childNodes[0];)e=e.childNodes[0];return e.isToken?e.getText():``},i.prototype.hasSpacingAttributes=function(){return this.attributes.isSet(`lspace`)||this.attributes.isSet(`rspace`)},Object.defineProperty(i.prototype,"isAccent",{get:function(){var e=!1,t=this.coreParent().parent;if(t){var n=t.isKind(`mover`)?t.childNodes[t.over].coreMO()?`accent`:``:t.isKind(`munder`)?t.childNodes[t.under].coreMO()?`accentunder`:``:t.isKind(`munderover`)?this===t.childNodes[t.over].coreMO()?`accent`:this===t.childNodes[t.under].coreMO()?`accentunder`:``:``;n&&(e=t.attributes.getExplicit(n)===void 0?this.attributes.get(`accent`):e)}return e},enumerable:!1,configurable:!0}),i.prototype.setTeXclass=function(e){var t=this.attributes.getList(`form`,`fence`),n=t.form,r=t.fence;return this.getProperty(`texClass`)===void 0&&(this.attributes.isSet(`lspace`)||this.attributes.isSet(`rspace`))?null:(r&&this.texClass===c.TEXCLASS.REL&&(n===`prefix`&&(this.texClass=c.TEXCLASS.OPEN),n===`postfix`&&(this.texClass=c.TEXCLASS.CLOSE)),this.adjustTeXclass(e))},i.prototype.adjustTeXclass=function(e){var t=this.texClass,n=this.prevClass;if(t===c.TEXCLASS.NONE)return e;if(e?(e.getProperty(`autoOP`)&&(t===c.TEXCLASS.BIN||t===c.TEXCLASS.REL)&&(n=e.texClass=c.TEXCLASS.ORD),n=this.prevClass=e.texClass||c.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited(`scriptlevel`)):n=this.prevClass=c.TEXCLASS.NONE,t===c.TEXCLASS.BIN&&(n===c.TEXCLASS.NONE||n===c.TEXCLASS.BIN||n===c.TEXCLASS.OP||n===c.TEXCLASS.REL||n===c.TEXCLASS.OPEN||n===c.TEXCLASS.PUNCT))this.texClass=c.TEXCLASS.ORD;else if(n===c.TEXCLASS.BIN&&(t===c.TEXCLASS.REL||t===c.TEXCLASS.CLOSE||t===c.TEXCLASS.PUNCT))e.texClass=this.prevClass=c.TEXCLASS.ORD;else if(t===c.TEXCLASS.BIN){for(var r=this,i=this.parent;i&&i.parent&&i.isEmbellished&&(i.childNodes.length===1||!i.isKind(`mrow`)&&i.core()===r);)r=i,i=i.parent;i.childNodes[i.childNodes.length-1]===r&&(this.texClass=c.TEXCLASS.ORD)}return this},i.prototype.setInheritedAttributes=function(t,n,r,i){t===void 0&&(t={}),n===void 0&&(n=!1),r===void 0&&(r=0),i===void 0&&(i=!1),e.prototype.setInheritedAttributes.call(this,t,n,r,i);var a=this.getText();this.checkOperatorTable(a),this.checkPseudoScripts(a),this.checkPrimes(a),this.checkMathAccent(a)},i.prototype.checkOperatorTable=function(e){var t,n,i=r(this.handleExplicitForm(this.getForms()),3),a=i[0],o=i[1],c=i[2];this.attributes.setInherited(`form`,a);var u=this.constructor.OPTABLE,d=u[a][e]||u[o][e]||u[c][e];if(d){this.getProperty(`texClass`)===void 0&&(this.texClass=d[2]);try{for(var f=s(Object.keys(d[3]||{})),p=f.next();!p.done;p=f.next()){var m=p.value;this.attributes.setInherited(m,d[3][m])}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}this.lspace=(d[0]+1)/18,this.rspace=(d[1]+1)/18}else{var h=(0,l.getRange)(e);if(h){this.getProperty(`texClass`)===void 0&&(this.texClass=h[2]);var g=this.constructor.MMLSPACING[h[2]];this.lspace=(g[0]+1)/18,this.rspace=(g[1]+1)/18}}},i.prototype.getForms=function(){for(var e=this,t=this.parent,n=this.Parent;n&&n.isEmbellished;)e=t,t=n.parent,n=n.Parent;if(t&&t.isKind(`mrow`)&&t.nonSpaceLength()!==1){if(t.firstNonSpace()===e)return[`prefix`,`infix`,`postfix`];if(t.lastNonSpace()===e)return[`postfix`,`infix`,`prefix`]}return[`infix`,`prefix`,`postfix`]},i.prototype.handleExplicitForm=function(e){if(this.attributes.isSet(`form`)){var t=this.attributes.get(`form`);e=[t].concat(e.filter(function(e){return e!==t}))}return e},i.prototype.checkPseudoScripts=function(e){var t=this.constructor.pseudoScripts;if(e.match(t)){var n=this.coreParent().Parent,r=!n||!(n.isKind(`msubsup`)&&!n.isKind(`msub`));this.setProperty(`pseudoscript`,r),r&&(this.attributes.setInherited(`lspace`,0),this.attributes.setInherited(`rspace`,0))}},i.prototype.checkPrimes=function(e){var t=this.constructor.primes;if(e.match(t)){var n=this.constructor.remapPrimes,r=(0,u.unicodeString)((0,u.unicodeChars)(e).map(function(e){return n[e]}));this.setProperty(`primes`,r)}},i.prototype.checkMathAccent=function(e){var t=this.Parent;if(this.getProperty(`mathaccent`)===void 0&&t&&t.isKind(`munderover`)){var n=t.childNodes[0];if(!(n.isEmbellished&&n.coreMO()===this)){var r=this.constructor.mathaccents;e.match(r)&&this.setProperty(`mathaccent`,!0)}}},i.defaults=n(n({},c.AbstractMmlTokenNode.defaults),{form:`infix`,fence:!1,separator:!1,lspace:`thickmathspace`,rspace:`thickmathspace`,stretchy:!1,symmetric:!1,maxsize:`infinity`,minsize:`0em`,largeop:!1,movablelimits:!1,accent:!1,linebreak:`auto`,lineleading:`1ex`,linebreakstyle:`before`,indentalign:`auto`,indentshift:`0`,indenttarget:``,indentalignfirst:`indentalign`,indentshiftfirst:`indentshift`,indentalignlast:`indentalign`,indentshiftlast:`indentshift`}),i.MMLSPACING=l.MMLSPACING,i.OPTABLE=l.OPTABLE,i.pseudoScripts=new RegExp([`^["'*\``,`ª`,`°`,`²-´`,`¹`,`º`,`‘-‟`,`′-‷⁗`,`⁰ⁱ`,`⁴-ⁿ`,`₀-₎`,`]+$`].join(``)),i.primes=new RegExp([`^["'\``,`‘-‟`,`]+$`].join(``)),i.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},i.mathaccents=new RegExp([`^[`,`´́ˊ`,"`̀ˋ",`¨̈`,`~̃˜`,`¯̄ˉ`,`˘̆`,`ˇ̌`,`^̂ˆ`,`→⃗`,`˙̇`,`˚̊`,`⃛`,`⃜`,`]$`].join(``)),i}(c.AbstractMmlTokenNode)}));export{r as a,i,o as n,n as o,a as r,t as s,s as t};
@@ -1 +1 @@
1
- import{t as e,u as t}from"./mermaid-parser.core-B5c-1CnP.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-tZFcq4Tp.js";import"./chunk-VPRB5NB3-CYQe0pjV.js";import{n as i,r as a,t as o}from"./chunk-AW2ZBBNX-CRAjzqLf.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-Ck4FoAPC.js";var c=t().RailroadPeg.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=n(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=n(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=n(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:n(t=>{o.clear(),r.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let i=n.value;r.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),r.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
1
+ import{t as e,u as t}from"./mermaid-parser.core-B5c-1CnP.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-BgGykKNK.js";import"./chunk-DSNLSHJZ-Bc29O7Kj.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-BpfatsVl.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-DGklhdAB.js";var c=t().RailroadPeg.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=n(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=n(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=n(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:n(t=>{o.clear(),r.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let i=n.value;r.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),r.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./mermaid-parser.core-B5c-1CnP.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-tZFcq4Tp.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,c as l,f as u,q as d,v as f}from"./chunk-VPRB5NB3-CYQe0pjV.js";import{t as p}from"./ordinal-DtR4qwUh.js";import{n as m}from"./path-fybaL0A-.js";import{m as h}from"./dist-DovUe4bX.js";import{t as g}from"./arc-Dy-vWwtK.js";import{t as _}from"./array-BifhSqXX.js";import{i as v,m as y}from"./chunk-3YJQHVM4-B_LDijS0.js";import{t as b}from"./chunk-JWPE2WC7-DVXcaiue.js";import{a as x}from"./mermaid.core-Ck4FoAPC.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=u.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:t(()=>structuredClone(k),`getConfig`),clear:t(()=>{D=new Map,O=E.showData,s()},`clear`),setDiagramTitle:d,getDiagramTitle:r,setAccTitle:a,getAccTitle:f,setAccDescription:i,getAccDescription:o,addSection:t(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),n.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:t(()=>D,`getSections`),setShowData:t(e=>{O=e},`setShowData`),getShowData:t(()=>O,`getShowData`)},j=t((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:t(async t=>{let r=await e(`pie`,t);n.debug(r),j(r,A)},`parse`)},N=t(e=>`
1
+ import{n as e}from"./mermaid-parser.core-B5c-1CnP.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-BgGykKNK.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,c as l,f as u,q as d,v as f}from"./chunk-DSNLSHJZ-Bc29O7Kj.js";import{t as p}from"./ordinal-DtR4qwUh.js";import{n as m}from"./path-fybaL0A-.js";import{m as h}from"./dist-COSwdJCZ.js";import{t as g}from"./arc-Dl4OzSiI.js";import{t as _}from"./array-BifhSqXX.js";import{i as v,m as y}from"./chunk-7S6XSTFO-B8TJqaKm.js";import{t as b}from"./chunk-JWPE2WC7-DVXcaiue.js";import{a as x}from"./mermaid.core-DGklhdAB.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=u.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:t(()=>structuredClone(k),`getConfig`),clear:t(()=>{D=new Map,O=E.showData,s()},`clear`),setDiagramTitle:d,getDiagramTitle:r,setAccTitle:a,getAccTitle:f,setAccDescription:i,getAccDescription:o,addSection:t(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),n.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:t(()=>D,`getSections`),setShowData:t(e=>{O=e},`setShowData`),getShowData:t(()=>O,`getShowData`)},j=t((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:t(async t=>{let r=await e(`pie`,t);n.debug(r),j(r,A)},`parse`)},N=t(e=>`
2
2
  .pieCircle{
3
3
  stroke: ${e.pieStrokeColor};
4
4
  stroke-width : ${e.pieStrokeWidth};
@@ -0,0 +1,3 @@
1
+ function e(e,t){this.v=e,this.k=t}function t(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(e){if(Array.isArray(e))return e}function r(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){return n(e)||r(e,t)||o(e,t)||i()}function o(e,n){if(e){if(typeof e==`string`)return t(e,n);var r={}.toString.call(e).slice(8,-1);return r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`?Array.from(e):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function s(t){var n,r;function i(n,r){try{var o=t[n](r),s=o.value,c=s instanceof e;Promise.resolve(c?s.v:s).then(function(e){if(c){var r=n===`return`&&s.k?n:`next`;if(!s.k||e.done)return i(r,e);e=t[r](e).value}a(!!o.done,e)},function(e){i(`throw`,e)})}catch(e){a(2,e)}}function a(e,t){e===2?n.reject(t):n.resolve({value:t,done:e}),(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(a,o){var s={key:e,arg:t,resolve:a,reject:o,next:null};r?r=r.next=s:(n=r=s,i(e,t))})},typeof t.return!=`function`&&(this.return=void 0)}s.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},s.prototype.next=function(e){return this._invoke(`next`,e)},s.prototype.throw=function(e){return this._invoke(`throw`,e)},s.prototype.return=function(e){return this._invoke(`return`,e)};var c=Object.entries,l=Object.setPrototypeOf,u=Object.isFrozen,d=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,p=Object.freeze,m=Object.seal,h=Object.create,ee=typeof Reflect<`u`&&Reflect,te=ee.apply,ne=ee.construct;p||=function(e){return e},m||=function(e){return e},te||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ne||=function(e){return new e(...[...arguments].slice(1))};var g=T(Array.prototype.forEach);Array.prototype.indexOf;var re=T(Array.prototype.lastIndexOf),ie=T(Array.prototype.pop),ae=T(Array.prototype.push),oe=T(Array.prototype.slice),se=T(Array.prototype.splice),_=Array.isArray,ce=E(Set),le=T(Set.prototype.add),ue=T(Set.prototype.has),v=T(String.prototype.toLowerCase),de=T(String.prototype.toString),fe=T(String.prototype.match),pe=T(String.prototype.replace),me=T(String.prototype.indexOf),he=T(String.prototype.trim),ge=T(Number.prototype.toString),y=T(Boolean.prototype.toString),b=typeof BigInt>`u`?null:T(BigInt.prototype.toString),_e=typeof Symbol>`u`?null:T(Symbol.prototype.toString),x=T(Object.prototype.hasOwnProperty),S=T(Object.prototype.toString),C=T(RegExp.prototype.test),w=E(TypeError);function T(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return te(e,t,n)}}function E(e){return function(){return ne(e,[...arguments])}}function D(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v;if(l&&l(e,null),!_(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(u(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ve(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function O(e){let t=h(null);for(let r of c(e)){var n=a(r,2);let i=n[0],o=n[1];x(e,i)&&(t[i]=_(o)?ve(o):o&&typeof o==`object`&&o.constructor===Object?O(o):o)}return t}function ye(e){switch(typeof e){case`string`:return e;case`number`:return ge(e);case`boolean`:return y(e);case`bigint`:return b?b(e):`0`;case`symbol`:return _e?_e(e):`Symbol()`;case`undefined`:return S(e);case`function`:case`object`:{if(e===null)return S(e);let t=e,n=k(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:S(e)}return S(e)}default:return S(e)}}function k(e,t){for(;e!==null;){let n=f(e,t);if(n){if(n.get)return T(n.get);if(typeof n.value==`function`)return T(n.value)}e=d(e)}function n(){return null}return n}function be(e,t){for(;e!==null;){let n=f(e,t);if(n)return n.get?T(n.get):null;e=d(e)}return null}function xe(e){try{return C(e,``),!0}catch{return!1}}var Se=p(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ce=p(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),we=p([`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`]),Te=p([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Ee=p(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),De=p([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Oe=p([`#text`]),ke=p(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Ae=p(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),je=p(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Me=p([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ne=m(/{{[\w\W]*|^[\w\W]*}}/g),Pe=m(/<%[\w\W]*|^[\w\W]*%>/g),Fe=m(/\${[\w\W]*/g),Ie=m(/^data-[\-\w.\u00B7-\uFFFF]+$/),Le=m(/^aria-[\-\w]+$/),Re=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ze=m(/^(?:\w+script|data):/i),Be=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ve=m(/^html$/i),He=m(/^[a-z][.\w]*(-[.\w]+)+$/i),Ue=m(/<[/\w!]/g),We=m(/<[/\w]/g),Ge=m(/<\/no(script|embed|frames)/i),Ke=m(/\/>/i),A={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qe=p(D({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),Je=function(){return typeof window>`u`?null:window},Ye=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Xe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},j=function(e,t,n,r){return x(e,t)&&_(e[t])?D(r.base?O(r.base):{},e[t],r.transform):n},Ze=function(e,t,n){let r=x(e,t)?e[t]:void 0;return r&&typeof r==`object`?O(r):n()};function Qe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Je(),t=e=>Qe(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==A.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,ee=k(f,`cloneNode`),te=k(f,`remove`),ne=k(f,`removeAttributeNode`),ge=k(f,`nextSibling`),y=k(f,`childNodes`),b=k(f,`parentNode`),_e=k(f,`shadowRoot`),S=k(f,`attributes`),T=o&&o.prototype?k(o.prototype,`nodeType`):null,E=o&&o.prototype?k(o.prototype,`nodeName`):null,ve=o&&o.prototype?k(o.prototype,`ownerDocument`):null,M=function(e){return T?T(e):e.nodeType},$e=function(e){return E?E(e):e.nodeName},et=be(f,`namespaceURI`),tt=function(e){return et?et(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let N,P=``,nt,rt=!1,it=0,at=function(){if(it>0)throw w(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},F=function(e){at(),it++;try{return N.createHTML(e)}finally{it--}},ot=function(e){at(),it++;try{return N.createScriptURL(e)}finally{it--}},st=function(){return rt||=(nt=Ye(d,i),!0),nt},ct=n,lt=ct.implementation,ut=ct.createNodeIterator,dt=ct.createDocumentFragment,ft=ct.getElementsByTagName,pt=r.importNode,I=Xe();t.isSupported=typeof c==`function`&&typeof b==`function`&&lt&&lt.createHTMLDocument!==void 0;let mt=Ne,ht=Pe,gt=Fe,_t=Ie,vt=Le,yt=ze,bt=Be,xt=He,St=Re,L=null,Ct=D({},[...Se,...Ce,...we,...Ee,...Oe]),R=null,wt=D({},[...ke,...Ae,...je,...Me]),z=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,Et=null,B=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Dt=!0,Ot=!0,kt=!1,At=!0,V=!1,H=!0,U=!1,jt=!1,Mt=null,Nt=null,Pt=!1,W=!1,Ft=!1,It=!1,Lt=!0,Rt=!1,zt=`user-content-`,Bt=!0,Vt=!1,G=null,K={},q=null,Ht=D({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ut=null,Wt=D({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Gt=null,Kt=D({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),qt=`http://www.w3.org/1998/Math/MathML`,Jt=`http://www.w3.org/2000/svg`,J=`http://www.w3.org/1999/xhtml`,Y=J,Yt=!1,Xt=null,Zt=D({},[qt,Jt,J],de),Qt=p([`mi`,`mo`,`mn`,`ms`,`mtext`]),$t=D({},Qt),en=p([`annotation-xml`]),tn=D({},en),nn=D({},[`title`,`style`,`font`,`a`,`script`]),rn=null,an=[`application/xhtml+xml`,`text/html`],X=null,on=null,sn=n.createElement(`form`),cn=function(e){return e instanceof RegExp||e instanceof Function},ln=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(on&&on===e)return;(!e||typeof e!=`object`)&&(e={}),e=O(e),rn=an.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,X=rn===`application/xhtml+xml`?de:v,L=j(e,`ALLOWED_TAGS`,Ct,{transform:X}),R=j(e,`ALLOWED_ATTR`,wt,{transform:X}),Xt=j(e,`ALLOWED_NAMESPACES`,Zt,{transform:de}),Gt=j(e,`ADD_URI_SAFE_ATTR`,Kt,{transform:X,base:Kt}),Ut=j(e,`ADD_DATA_URI_TAGS`,Wt,{transform:X,base:Wt}),q=j(e,`FORBID_CONTENTS`,Ht,{transform:X}),Tt=j(e,`FORBID_TAGS`,O({}),{transform:X}),Et=j(e,`FORBID_ATTR`,O({}),{transform:X}),K=x(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?O(e.USE_PROFILES):e.USE_PROFILES:!1,Dt=e.ALLOW_ARIA_ATTR!==!1,Ot=e.ALLOW_DATA_ATTR!==!1,kt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,At=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V=e.SAFE_FOR_TEMPLATES||!1,H=e.SAFE_FOR_XML!==!1,U=e.WHOLE_DOCUMENT||!1,W=e.RETURN_DOM||!1,Ft=e.RETURN_DOM_FRAGMENT||!1,It=e.RETURN_TRUSTED_TYPE||!1,Pt=e.FORCE_BODY||!1,Lt=e.SANITIZE_DOM!==!1,Rt=e.SANITIZE_NAMED_PROPS||!1,Bt=e.KEEP_CONTENT!==!1,Vt=e.IN_PLACE||!1,St=xe(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Re,Y=typeof e.NAMESPACE==`string`?e.NAMESPACE:J,$t=Ze(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>D({},Qt)),tn=Ze(e,`HTML_INTEGRATION_POINTS`,()=>D({},en));let t=Ze(e,`CUSTOM_ELEMENT_HANDLING`,()=>h(null));if(z=h(null),x(t,`tagNameCheck`)&&cn(t.tagNameCheck)&&(z.tagNameCheck=t.tagNameCheck),x(t,`attributeNameCheck`)&&cn(t.attributeNameCheck)&&(z.attributeNameCheck=t.attributeNameCheck),x(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(z.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),m(z),V&&(Ot=!1),Ft&&(W=!0),K&&(L=D({},Oe),R=h(null),K.html===!0&&(D(L,Se),D(R,ke)),K.svg===!0&&(D(L,Ce),D(R,Ae),D(R,Me)),K.svgFilters===!0&&(D(L,we),D(R,Ae),D(R,Me)),K.mathMl===!0&&(D(L,Ee),D(R,je),D(R,Me))),B.tagCheck=null,B.attributeCheck=null,x(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?B.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(L===Ct&&(L=O(L)),D(L,e.ADD_TAGS,X))),x(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?B.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(R===wt&&(R=O(R)),D(R,e.ADD_ATTR,X))),x(e,`ADD_FORBID_CONTENTS`)&&_(e.ADD_FORBID_CONTENTS)&&(q===Ht&&(q=O(q)),D(q,e.ADD_FORBID_CONTENTS,X)),Bt&&(L[`#text`]=!0),U&&D(L,[`html`,`head`,`body`]),L.table&&(D(L,[`tbody`]),delete Tt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw w(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw w(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=N;N=e.TRUSTED_TYPES_POLICY;try{P=F(``)}catch(e){throw N=t,e}}else e.TRUSTED_TYPES_POLICY===null?(N=void 0,P=``):(N===void 0&&(N=st()),N&&typeof P==`string`&&(P=F(``)));p&&p(e),on=e},un=D({},[...Ce,...we,...Te]),dn=D({},[...Ee,...De]),fn=function(e,t,n){return t.namespaceURI===J?e===`svg`:t.namespaceURI===qt?e===`svg`&&(n===`annotation-xml`||$t[n]):!!un[e]},pn=function(e,t,n){return t.namespaceURI===J?e===`math`:t.namespaceURI===Jt?e===`math`&&tn[n]:!!dn[e]},mn=function(e,t,n){return t.namespaceURI===Jt&&!tn[n]||t.namespaceURI===qt&&!$t[n]?!1:!dn[e]&&(nn[e]||!un[e])},hn=function(e){let t=tt(e),n=v($e(e)),r=b(e),i,a;return r&&M(r)===A.element?(i={namespaceURI:tt(r)},a=v($e(r))):(i={namespaceURI:Y},a=`template`),Xt[t]?t===Jt?fn(n,i,a):t===qt?pn(n,i,a):t===J?mn(n,i,a):!!(rn===`application/xhtml+xml`&&Xt[t]):!1},Z=function(e){ae(t.removed,{element:e});try{b(e).removeChild(e)}catch{if(te(e),!b(e))throw w(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},gn=function(e,t,n){try{ne(e,t)}catch{try{e.removeAttribute(n)}catch{}}},_n=function(e){xn(e);let t=y(e);t&&g(oe(t),e=>{try{te(e)}catch{}});let n=M(e)===A.element?S(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&gn(e,r,i)}},vn=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}ae(t.removed,{attribute:r||null,from:n});try{r?ne(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(W||Ft)try{Z(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},yn=function(e){let t=S(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||R[X(i)]||gn(e,r,i)}},bn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&M(e)===A.element){let t=_e(e);Q(t)&&r.push(t)}let i=y(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},xn=function(e){bn(e,e=>{M(e)===A.element&&yn(e)})},Sn=function(e){let t=[];return bn(e,e=>{t.push(e)},!0),t},Cn=function(e,t){let n=ce();g(Sn(e),e=>{M(e)===A.element&&le(n,e)}),g(t,e=>{M(e)===A.element&&!ue(n,e)&&yn(e)})},wn=function(e,n){let r=!1;return g(t.removed,t=>{t.element&&(r||=t.element===e,xn(t.element))}),Cn(e,n),r},Tn=function(e,t){let n=G,r=null,i=()=>(r||(r=ce(),g(t,e=>{le(r,e)})),r);for(let t=0;;t++){let r=Sn(e),a=[e],o=!1;if(g(r,e=>{M(e)===A.documentFragment?ae(a,e):!o&&!ue(n,e)&&(o=ue(i(),e))}),!o)return;if(t>=8)throw w(`the tree kept changing during in-place sanitization; refusing to return it`);g(a,(t,n)=>{En(t,n>0,e,i())})}},En=function(e,t,n,r){let i=jn(e),a;for(;a=i.nextNode();)ue(r,a)&&!ue(G,a)&&(t&&$(I.uponSanitizeShadowNode,a,null),Hn(a,n),Yn(a,n),Q(a.content)&&Xn(a.content))},Dn=function(e){G&&le(G,e)},On=function(e,t){return H?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},kn=function(e){H&&bn(e,e=>{let t=M(e);if(t===A.processingInstruction||t===A.comment&&C(We,e.data)){try{te(e)}catch{}return!1}if(t===A.element){let t=e,n=X($e(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&On(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},An=function(e){let t=null,r=null;if(Pt)e=`<remove></remove>`+e;else{let t=fe(e,/^[\r\n\t ]+/);r=t&&t[0]}rn===`application/xhtml+xml`&&Y===J&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=N?F(e):e;if(Y===J)try{t=new u().parseFromString(i,rn)}catch{}if(!t||!t.documentElement){t=lt.createDocument(Y,`template`,null);try{t.documentElement.innerHTML=Yt?P:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Y===J?ft.call(t,U?`html`:`body`)[0]:U?t.documentElement:a},jn=function(e){let t=ve?ve(e):e.ownerDocument;return ut.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Mn=function(e){return e=pe(e,mt,` `),e=pe(e,ht,` `),e=pe(e,gt,` `),e},Nn=function(e){Pn(e);let t=e.querySelectorAll?.call(e,`template`);t&&g(t,e=>{Q(e.content)&&Nn(e.content)})},Pn=function(e){e.normalize();let t=ve?ve(e):e.ownerDocument,n=ut.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Mn(r.data),r=n.nextNode()},Fn=function(e){let t=E?E(e):null;return typeof t!=`string`||X(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==S(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==T(e)||e.childNodes!==y(e)},Q=function(e){if(!T||typeof e!=`object`||!e)return!1;try{return T(e)===A.documentFragment}catch{return!1}},In=function(e){if(!T||typeof e!=`object`||!e)return!1;try{return typeof T(e)==`number`}catch{return!1}};function $(e,n,r){e.length!==0&&g(e,e=>{e.call(t,n,r,on)})}let Ln=function(e,t){return!!(H&&e.hasChildNodes()&&!In(e.firstElementChild)&&C(Ue,e.textContent)&&C(Ue,e.innerHTML)||H&&qe[t]&&M(e)===A.element&&tt(e)===J&&(In(e.firstElementChild)||typeof e.textContent==`string`&&C(Ue,e.textContent))||e.nodeType===A.processingInstruction||H&&e.nodeType===A.comment&&C(We,e.data))},Rn=function(e,t){return e instanceof RegExp?C(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},zn=function(e,t,n){if(!Tt[t]&&Gn(t)&&Rn(z.tagNameCheck,t))return!1;if(Bt&&!q[t]&&!q[v(t)]){let t=b(e),r=y(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?ee(r[a],!0):r[a];t.insertBefore(i,ge(e))}}}return Z(e),!0},Bn=function(e,t,n,r){return e.length===0?t:t===n||t===r?O(t):t},Vn=function(e,t){return e===t||b(e)!==null?!1:(Vt&&xn(e),!0)},Hn=function(e,n){if(Dn(e),$(I.beforeSanitizeElements,e,null),Vn(e,n))return!0;if(Fn(e))return Z(e),!0;let r=X($e(e));if(L=Bn(I.uponSanitizeElement,L,Ct,Mt),$(I.uponSanitizeElement,e,{tagName:r,allowedTags:L}),Vn(e,n))return!0;if(Ln(e,r))return Z(e),!0;if(Tt[r]||!(B.tagCheck instanceof Function&&B.tagCheck(r))&&!L[r]){let t=zn(e,r,n);return t===!1&&($(I.afterSanitizeElements,e,null),Vn(e,n))?!0:t}if(M(e)===A.element&&!hn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&C(Ge,e.innerHTML))return Z(e),!0;if(V&&e.nodeType===A.text){let n=Mn(e.textContent);e.textContent!==n&&(ae(t.removed,{element:e.cloneNode()}),e.textContent=n)}return $(I.afterSanitizeElements,e,null),Vn(e,n)},Un=function(e,t,r){if(Et[t]||On(t,e)||Lt&&(t===`id`||t===`name`)&&(r in n||r in sn))return!1;let i=R[t]||B.attributeCheck instanceof Function&&B.attributeCheck(t,e);return Ot&&C(_t,t)||Dt&&C(vt,t)?!0:i?Gt[t]||C(St,pe(r,bt,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&me(r,`data:`)===0&&Ut[e]||kt&&!C(yt,pe(r,bt,``))?!0:!r:Gn(e)&&Rn(z.tagNameCheck,e)&&Rn(z.attributeNameCheck,t,e)||t===`is`&&z.allowCustomizedBuiltInElements&&Rn(z.tagNameCheck,r)},Wn=D({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Gn=function(e){return!Wn[v(e)]&&C(xt,e)},Kn=function(e,t,n,r){if(N&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return F(r);case`TrustedScriptURL`:return ot(r)}return r},qn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Fn(e)||(Z(e),!1)}catch{return vn(t,e),!1}},Jn=function(e,t){return H&&C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:v(e)===`attributename`&&fe(t,`href`)!==null},Yn=function(e,n){if($(I.beforeSanitizeAttributes,e,null),Vn(e,n))return;let r=e.attributes;if(!r||Fn(e))return;R=Bn(I.uponSanitizeAttribute,R,wt,Nt);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0},a=r.length,o=X(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=X(s),d=l,f=s===`value`?d:he(d),p=!1;i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,$(I.uponSanitizeAttribute,e,i),f=i.attrValue,Rt&&(u===`id`||u===`name`)&&me(f,zt)!==0&&(vn(s,e,n),f=zt+f,p=!0),Jn(s,f)?vn(s,e,n):i.forceKeepAttr||(i.keepAttr?!At&&C(Ke,f)?vn(s,e,n):(V&&(f=Mn(f)),Un(o,u,f)?(f=Kn(o,u,c,f),f!==d&&qn(e,s,c,f)&&p&&ie(t.removed)):vn(s,e,n)):vn(s,e,n))}$(I.afterSanitizeAttributes,e,null),Vn(e,n)},Xn=function(e){let t=null,n=jn(e);for($(I.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if($(I.uponSanitizeShadowNode,t,null),Hn(t,e),Yn(t,e),Q(t.content)&&Xn(t.content),M(t)===A.element){let e=_e(t);Q(e)&&(Zn(e),Xn(e))}V&&Pn(e),$(I.afterSanitizeShadowDOM,e,null)},Zn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Xn(e.shadow);continue}let n=e.node,r=M(n)===A.element,i=y(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=E?E(n):null;if(typeof e==`string`&&X(e)===`template`){let e=n.content;Q(e)&&t.push({node:e,shadow:null})}}if(r){let e=_e(n);Q(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Yt=!e,Yt&&(e=`<!-->`),typeof e!=`string`&&!In(e)&&(e=ye(e),typeof e!=`string`))throw w(`dirty is not a string, aborting`);if(!t.isSupported)return e;jt?(L=Mt,R=Nt):ln(n),(I.uponSanitizeElement.length>0||I.uponSanitizeAttribute.length>0)&&(L=O(L)),I.uponSanitizeAttribute.length>0&&(R=O(R)),t.removed=[];let c=Vt&&typeof e!=`string`&&In(e),l=[],u=G;if(c){kn(e);let t=$e(e);if(typeof t==`string`){let n=X(t);if(!L[n]||Tt[n])throw _n(e),w(`root node is forbidden and cannot be sanitized in-place`)}if(Fn(e))throw _n(e),w(`root node is clobbered and cannot be sanitized in-place`);l=Sn(e),G=ce()}else if(In(e))i=An(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===A.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Zn(i);else{if(!W&&!V&&!U&&e.indexOf(`<`)===-1)return N&&It?F(e):e;if(i=An(e),!i)return W?null:It?P:``}i&&Pt&&Z(i.firstChild);let d=c?e:i;try{c&&Zn(e);let t=jn(d);for(;o=t.nextNode();)Hn(o,d),Yn(o,d),Q(o.content)&&Xn(o.content);c&&Tn(e,l)}catch(t){throw c&&(_n(e),wn(e,l)),t}finally{G=u}if(c){if(wn(e,l))throw w(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return V&&Nn(e),e}if(W){if(V&&Nn(i),Ft)for(s=dt.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(R.shadowroot||R.shadowrootmode)&&(s=pt.call(r,s,!0)),s}let f=U?i.outerHTML:i.innerHTML;return U&&L[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&C(Ve,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
3
+ `+f),V&&(f=Mn(f)),N&&It?F(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(e),jt=!0,Mt=L,Nt=R},t.clearConfig=function(){on=null,jt=!1,Mt=null,Nt=null,N=nt,P=``},t.isValidAttribute=function(e,t,n){on||ln({});let r=X(e),i=X(t);return typeof n==`string`&&(Jn(t,n)||!At&&C(Ke,n))?!1:Un(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&x(I,e)&&ae(I[e],t)},t.removeHook=function(e,t){if(x(I,e)){if(t!==void 0){let n=re(I[e],t);return n===-1?void 0:se(I[e],n,1)[0]}return ie(I[e])}},t.removeHooks=function(e){x(I,e)&&(I[e]=[])},t.removeAllHooks=function(){I=Xe()},t}var M=Qe();export{M as t};