to-markdown.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.toMarkdown = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  2. /*
  3. * to-markdown - an HTML to Markdown converter
  4. *
  5. * Copyright 2011+, Dom Christie
  6. * Licenced under the MIT licence
  7. *
  8. */
  9. 'use strict'
  10. var toMarkdown
  11. var converters
  12. var mdConverters = require('./lib/md-converters')
  13. var gfmConverters = require('./lib/gfm-converters')
  14. var HtmlParser = require('./lib/html-parser')
  15. var collapse = require('collapse-whitespace')
  16. /*
  17. * Utilities
  18. */
  19. var blocks = ['address', 'article', 'aside', 'audio', 'blockquote', 'body',
  20. 'canvas', 'center', 'dd', 'dir', 'div', 'dl', 'dt', 'fieldset', 'figcaption',
  21. 'figure', 'footer', 'form', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
  22. 'header', 'hgroup', 'hr', 'html', 'isindex', 'li', 'main', 'menu', 'nav',
  23. 'noframes', 'noscript', 'ol', 'output', 'p', 'pre', 'section', 'table',
  24. 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'ul'
  25. ]
  26. function isBlock (node) {
  27. return blocks.indexOf(node.nodeName.toLowerCase()) !== -1
  28. }
  29. var voids = [
  30. 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input',
  31. 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr'
  32. ]
  33. function isVoid (node) {
  34. return voids.indexOf(node.nodeName.toLowerCase()) !== -1
  35. }
  36. function htmlToDom (string) {
  37. var tree = new HtmlParser().parseFromString(string, 'text/html')
  38. collapse(tree.documentElement, isBlock)
  39. return tree
  40. }
  41. /*
  42. * Flattens DOM tree into single array
  43. */
  44. function bfsOrder (node) {
  45. var inqueue = [node]
  46. var outqueue = []
  47. var elem
  48. var children
  49. var i
  50. while (inqueue.length > 0) {
  51. elem = inqueue.shift()
  52. outqueue.push(elem)
  53. children = elem.childNodes
  54. for (i = 0; i < children.length; i++) {
  55. if (children[i].nodeType === 1) inqueue.push(children[i])
  56. }
  57. }
  58. outqueue.shift()
  59. return outqueue
  60. }
  61. /*
  62. * Contructs a Markdown string of replacement text for a given node
  63. */
  64. function getContent (node) {
  65. var text = ''
  66. for (var i = 0; i < node.childNodes.length; i++) {
  67. if (node.childNodes[i].nodeType === 1) {
  68. text += node.childNodes[i]._replacement
  69. } else if (node.childNodes[i].nodeType === 3) {
  70. text += node.childNodes[i].data
  71. } else continue
  72. }
  73. return text
  74. }
  75. /*
  76. * Returns the HTML string of an element with its contents converted
  77. */
  78. function outer (node, content) {
  79. return node.cloneNode(false).outerHTML.replace('><', '>' + content + '<')
  80. }
  81. function canConvert (node, filter) {
  82. if (typeof filter === 'string') {
  83. return filter === node.nodeName.toLowerCase()
  84. }
  85. if (Array.isArray(filter)) {
  86. return filter.indexOf(node.nodeName.toLowerCase()) !== -1
  87. } else if (typeof filter === 'function') {
  88. return filter.call(toMarkdown, node)
  89. } else {
  90. throw new TypeError('`filter` needs to be a string, array, or function')
  91. }
  92. }
  93. function isFlankedByWhitespace (side, node) {
  94. var sibling
  95. var regExp
  96. var isFlanked
  97. if (side === 'left') {
  98. sibling = node.previousSibling
  99. regExp = / $/
  100. } else {
  101. sibling = node.nextSibling
  102. regExp = /^ /
  103. }
  104. if (sibling) {
  105. if (sibling.nodeType === 3) {
  106. isFlanked = regExp.test(sibling.nodeValue)
  107. } else if (sibling.nodeType === 1 && !isBlock(sibling)) {
  108. isFlanked = regExp.test(sibling.textContent)
  109. }
  110. }
  111. return isFlanked
  112. }
  113. function flankingWhitespace (node, content) {
  114. var leading = ''
  115. var trailing = ''
  116. if (!isBlock(node)) {
  117. var hasLeading = /^[ \r\n\t]/.test(content)
  118. var hasTrailing = /[ \r\n\t]$/.test(content)
  119. if (hasLeading && !isFlankedByWhitespace('left', node)) {
  120. leading = ' '
  121. }
  122. if (hasTrailing && !isFlankedByWhitespace('right', node)) {
  123. trailing = ' '
  124. }
  125. }
  126. return { leading: leading, trailing: trailing }
  127. }
  128. /*
  129. * Finds a Markdown converter, gets the replacement, and sets it on
  130. * `_replacement`
  131. */
  132. function process (node) {
  133. var replacement
  134. var content = getContent(node)
  135. // Remove blank nodes
  136. if (!isVoid(node) && !/A|TH|TD/.test(node.nodeName) && /^\s*$/i.test(content)) {
  137. node._replacement = ''
  138. return
  139. }
  140. for (var i = 0; i < converters.length; i++) {
  141. var converter = converters[i]
  142. if (canConvert(node, converter.filter)) {
  143. if (typeof converter.replacement !== 'function') {
  144. throw new TypeError(
  145. '`replacement` needs to be a function that returns a string'
  146. )
  147. }
  148. var whitespace = flankingWhitespace(node, content)
  149. if (whitespace.leading || whitespace.trailing) {
  150. content = content.trim()
  151. }
  152. replacement = whitespace.leading +
  153. converter.replacement.call(toMarkdown, content, node) +
  154. whitespace.trailing
  155. break
  156. }
  157. }
  158. node._replacement = replacement
  159. }
  160. toMarkdown = function (input, options) {
  161. options = options || {}
  162. if (typeof input !== 'string') {
  163. throw new TypeError(input + ' is not a string')
  164. }
  165. if (input === '') {
  166. return ''
  167. }
  168. // Escape potential ol triggers
  169. input = input.replace(/(\d+)\. /g, '$1\\. ')
  170. var clone = htmlToDom(input).body
  171. var nodes = bfsOrder(clone)
  172. var output
  173. converters = mdConverters.slice(0)
  174. if (options.gfm) {
  175. converters = gfmConverters.concat(converters)
  176. }
  177. if (options.converters) {
  178. converters = options.converters.concat(converters)
  179. }
  180. // Process through nodes in reverse (so deepest child elements are first).
  181. for (var i = nodes.length - 1; i >= 0; i--) {
  182. process(nodes[i])
  183. }
  184. output = getContent(clone)
  185. return output.replace(/^[\t\r\n]+|[\t\r\n\s]+$/g, '')
  186. .replace(/\n\s+\n/g, '\n\n')
  187. .replace(/\n{3,}/g, '\n\n')
  188. }
  189. toMarkdown.isBlock = isBlock
  190. toMarkdown.isVoid = isVoid
  191. toMarkdown.outer = outer
  192. module.exports = toMarkdown
  193. },{"./lib/gfm-converters":2,"./lib/html-parser":3,"./lib/md-converters":4,"collapse-whitespace":7}],2:[function(require,module,exports){
  194. 'use strict'
  195. function cell (content, node) {
  196. var index = Array.prototype.indexOf.call(node.parentNode.childNodes, node)
  197. var prefix = ' '
  198. if (index === 0) prefix = '| '
  199. return prefix + content + ' |'
  200. }
  201. var highlightRegEx = /highlight highlight-(\S+)/
  202. module.exports = [
  203. {
  204. filter: 'br',
  205. replacement: function () {
  206. return '\n'
  207. }
  208. },
  209. {
  210. filter: ['del', 's', 'strike'],
  211. replacement: function (content) {
  212. return '~~' + content + '~~'
  213. }
  214. },
  215. {
  216. filter: function (node) {
  217. return node.type === 'checkbox' && node.parentNode.nodeName === 'LI'
  218. },
  219. replacement: function (content, node) {
  220. return (node.checked ? '[x]' : '[ ]') + ' '
  221. }
  222. },
  223. {
  224. filter: ['th', 'td'],
  225. replacement: function (content, node) {
  226. return cell(content, node)
  227. }
  228. },
  229. {
  230. filter: 'tr',
  231. replacement: function (content, node) {
  232. var borderCells = ''
  233. var alignMap = { left: ':--', right: '--:', center: ':-:' }
  234. if (node.parentNode.nodeName === 'THEAD') {
  235. for (var i = 0; i < node.childNodes.length; i++) {
  236. var align = node.childNodes[i].attributes.align
  237. var border = '---'
  238. if (align) border = alignMap[align.value] || border
  239. borderCells += cell(border, node.childNodes[i])
  240. }
  241. }
  242. return '\n' + content + (borderCells ? '\n' + borderCells : '')
  243. }
  244. },
  245. {
  246. filter: 'table',
  247. replacement: function (content) {
  248. return '\n\n' + content + '\n\n'
  249. }
  250. },
  251. {
  252. filter: ['thead', 'tbody', 'tfoot'],
  253. replacement: function (content) {
  254. return content
  255. }
  256. },
  257. // Fenced code blocks
  258. {
  259. filter: function (node) {
  260. return node.nodeName === 'PRE' &&
  261. node.firstChild &&
  262. node.firstChild.nodeName === 'CODE'
  263. },
  264. replacement: function (content, node) {
  265. return '\n\n```\n' + node.firstChild.textContent + '\n```\n\n'
  266. }
  267. },
  268. // Syntax-highlighted code blocks
  269. {
  270. filter: function (node) {
  271. return node.nodeName === 'PRE' &&
  272. node.parentNode.nodeName === 'DIV' &&
  273. highlightRegEx.test(node.parentNode.className)
  274. },
  275. replacement: function (content, node) {
  276. var language = node.parentNode.className.match(highlightRegEx)[1]
  277. return '\n\n```' + language + '\n' + node.textContent + '\n```\n\n'
  278. }
  279. },
  280. {
  281. filter: function (node) {
  282. return node.nodeName === 'DIV' &&
  283. highlightRegEx.test(node.className)
  284. },
  285. replacement: function (content) {
  286. return '\n\n' + content + '\n\n'
  287. }
  288. }
  289. ]
  290. },{}],3:[function(require,module,exports){
  291. /*
  292. * Set up window for Node.js
  293. */
  294. var _window = (typeof window !== 'undefined' ? window : this)
  295. /*
  296. * Parsing HTML strings
  297. */
  298. function canParseHtmlNatively () {
  299. var Parser = _window.DOMParser
  300. var canParse = false
  301. // Adapted from https://gist.github.com/1129031
  302. // Firefox/Opera/IE throw errors on unsupported types
  303. try {
  304. // WebKit returns null on unsupported types
  305. if (new Parser().parseFromString('', 'text/html')) {
  306. canParse = true
  307. }
  308. } catch (e) {}
  309. return canParse
  310. }
  311. function createHtmlParser () {
  312. var Parser = function () {}
  313. // For Node.js environments
  314. if (typeof document === 'undefined') {
  315. var jsdom = require('jsdom')
  316. Parser.prototype.parseFromString = function (string) {
  317. return jsdom.jsdom(string, {
  318. features: {
  319. FetchExternalResources: [],
  320. ProcessExternalResources: false
  321. }
  322. })
  323. }
  324. } else {
  325. if (!shouldUseActiveX()) {
  326. Parser.prototype.parseFromString = function (string) {
  327. var doc = document.implementation.createHTMLDocument('')
  328. doc.open()
  329. doc.write(string)
  330. doc.close()
  331. return doc
  332. }
  333. } else {
  334. Parser.prototype.parseFromString = function (string) {
  335. var doc = new window.ActiveXObject('htmlfile')
  336. doc.designMode = 'on' // disable on-page scripts
  337. doc.open()
  338. doc.write(string)
  339. doc.close()
  340. return doc
  341. }
  342. }
  343. }
  344. return Parser
  345. }
  346. function shouldUseActiveX () {
  347. var useActiveX = false
  348. try {
  349. document.implementation.createHTMLDocument('').open()
  350. } catch (e) {
  351. if (window.ActiveXObject) useActiveX = true
  352. }
  353. return useActiveX
  354. }
  355. module.exports = canParseHtmlNatively() ? _window.DOMParser : createHtmlParser()
  356. },{"jsdom":6}],4:[function(require,module,exports){
  357. 'use strict'
  358. module.exports = [
  359. {
  360. filter: 'p',
  361. replacement: function (content) {
  362. return '\n\n' + content + '\n\n'
  363. }
  364. },
  365. {
  366. filter: 'br',
  367. replacement: function () {
  368. return ' \n'
  369. }
  370. },
  371. {
  372. filter: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
  373. replacement: function (content, node) {
  374. var hLevel = node.nodeName.charAt(1)
  375. var hPrefix = ''
  376. for (var i = 0; i < hLevel; i++) {
  377. hPrefix += '#'
  378. }
  379. return '\n\n' + hPrefix + ' ' + content + '\n\n'
  380. }
  381. },
  382. {
  383. filter: 'hr',
  384. replacement: function () {
  385. return '\n\n* * *\n\n'
  386. }
  387. },
  388. {
  389. filter: ['em', 'i'],
  390. replacement: function (content) {
  391. return '_' + content + '_'
  392. }
  393. },
  394. {
  395. filter: ['strong', 'b'],
  396. replacement: function (content) {
  397. return '**' + content + '**'
  398. }
  399. },
  400. // Inline code
  401. {
  402. filter: function (node) {
  403. var hasSiblings = node.previousSibling || node.nextSibling
  404. var isCodeBlock = node.parentNode.nodeName === 'PRE' && !hasSiblings
  405. return node.nodeName === 'CODE' && !isCodeBlock
  406. },
  407. replacement: function (content) {
  408. return '`' + content + '`'
  409. }
  410. },
  411. {
  412. filter: function (node) {
  413. return node.nodeName === 'A' && node.getAttribute('href')
  414. },
  415. replacement: function (content, node) {
  416. var titlePart = node.title ? ' "' + node.title + '"' : ''
  417. return '[' + content + '](' + node.getAttribute('href') + titlePart + ')'
  418. }
  419. },
  420. {
  421. filter: 'img',
  422. replacement: function (content, node) {
  423. var alt = node.alt || ''
  424. var src = node.getAttribute('src') || ''
  425. var title = node.title || ''
  426. var titlePart = title ? ' "' + title + '"' : ''
  427. return src ? '![' + alt + ']' + '(' + src + titlePart + ')' : ''
  428. }
  429. },
  430. // Code blocks
  431. {
  432. filter: function (node) {
  433. return node.nodeName === 'PRE' && node.firstChild.nodeName === 'CODE'
  434. },
  435. replacement: function (content, node) {
  436. return '\n\n ' + node.firstChild.textContent.replace(/\n/g, '\n ') + '\n\n'
  437. }
  438. },
  439. {
  440. filter: 'blockquote',
  441. replacement: function (content) {
  442. content = content.trim()
  443. content = content.replace(/\n{3,}/g, '\n\n')
  444. content = content.replace(/^/gm, '> ')
  445. return '\n\n' + content + '\n\n'
  446. }
  447. },
  448. {
  449. filter: 'li',
  450. replacement: function (content, node) {
  451. content = content.replace(/^\s+/, '').replace(/\n/gm, '\n ')
  452. var prefix = '* '
  453. var parent = node.parentNode
  454. var index = Array.prototype.indexOf.call(parent.children, node) + 1
  455. prefix = /ol/i.test(parent.nodeName) ? index + '. ' : '* '
  456. return prefix + content
  457. }
  458. },
  459. {
  460. filter: ['ul', 'ol'],
  461. replacement: function (content, node) {
  462. var strings = []
  463. for (var i = 0; i < node.childNodes.length; i++) {
  464. strings.push(node.childNodes[i]._replacement)
  465. }
  466. if (/li/i.test(node.parentNode.nodeName)) {
  467. return '\n' + strings.join('\n')
  468. }
  469. return '\n\n' + strings.join('\n') + '\n\n'
  470. }
  471. },
  472. {
  473. filter: function (node) {
  474. return this.isBlock(node)
  475. },
  476. replacement: function (content, node) {
  477. return '\n\n' + this.outer(node, content) + '\n\n'
  478. }
  479. },
  480. // Anything else!
  481. {
  482. filter: function () {
  483. return true
  484. },
  485. replacement: function (content, node) {
  486. return this.outer(node, content)
  487. }
  488. }
  489. ]
  490. },{}],5:[function(require,module,exports){
  491. /**
  492. * This file automatically generated from `build.js`.
  493. * Do not manually edit.
  494. */
  495. module.exports = [
  496. "address",
  497. "article",
  498. "aside",
  499. "audio",
  500. "blockquote",
  501. "canvas",
  502. "dd",
  503. "div",
  504. "dl",
  505. "fieldset",
  506. "figcaption",
  507. "figure",
  508. "footer",
  509. "form",
  510. "h1",
  511. "h2",
  512. "h3",
  513. "h4",
  514. "h5",
  515. "h6",
  516. "header",
  517. "hgroup",
  518. "hr",
  519. "main",
  520. "nav",
  521. "noscript",
  522. "ol",
  523. "output",
  524. "p",
  525. "pre",
  526. "section",
  527. "table",
  528. "tfoot",
  529. "ul",
  530. "video"
  531. ];
  532. },{}],6:[function(require,module,exports){
  533. },{}],7:[function(require,module,exports){
  534. 'use strict';
  535. var voidElements = require('void-elements');
  536. Object.keys(voidElements).forEach(function (name) {
  537. voidElements[name.toUpperCase()] = 1;
  538. });
  539. var blockElements = {};
  540. require('block-elements').forEach(function (name) {
  541. blockElements[name.toUpperCase()] = 1;
  542. });
  543. /**
  544. * isBlockElem(node) determines if the given node is a block element.
  545. *
  546. * @param {Node} node
  547. * @return {Boolean}
  548. */
  549. function isBlockElem(node) {
  550. return !!(node && blockElements[node.nodeName]);
  551. }
  552. /**
  553. * isVoid(node) determines if the given node is a void element.
  554. *
  555. * @param {Node} node
  556. * @return {Boolean}
  557. */
  558. function isVoid(node) {
  559. return !!(node && voidElements[node.nodeName]);
  560. }
  561. /**
  562. * whitespace(elem [, isBlock]) removes extraneous whitespace from an
  563. * the given element. The function isBlock may optionally be passed in
  564. * to determine whether or not an element is a block element; if none
  565. * is provided, defaults to using the list of block elements provided
  566. * by the `block-elements` module.
  567. *
  568. * @param {Node} elem
  569. * @param {Function} blockTest
  570. */
  571. function collapseWhitespace(elem, isBlock) {
  572. if (!elem.firstChild || elem.nodeName === 'PRE') return;
  573. if (typeof isBlock !== 'function') {
  574. isBlock = isBlockElem;
  575. }
  576. var prevText = null;
  577. var prevVoid = false;
  578. var prev = null;
  579. var node = next(prev, elem);
  580. while (node !== elem) {
  581. if (node.nodeType === 3) {
  582. // Node.TEXT_NODE
  583. var text = node.data.replace(/[ \r\n\t]+/g, ' ');
  584. if ((!prevText || / $/.test(prevText.data)) && !prevVoid && text[0] === ' ') {
  585. text = text.substr(1);
  586. }
  587. // `text` might be empty at this point.
  588. if (!text) {
  589. node = remove(node);
  590. continue;
  591. }
  592. node.data = text;
  593. prevText = node;
  594. } else if (node.nodeType === 1) {
  595. // Node.ELEMENT_NODE
  596. if (isBlock(node) || node.nodeName === 'BR') {
  597. if (prevText) {
  598. prevText.data = prevText.data.replace(/ $/, '');
  599. }
  600. prevText = null;
  601. prevVoid = false;
  602. } else if (isVoid(node)) {
  603. // Avoid trimming space around non-block, non-BR void elements.
  604. prevText = null;
  605. prevVoid = true;
  606. }
  607. } else {
  608. node = remove(node);
  609. continue;
  610. }
  611. var nextNode = next(prev, node);
  612. prev = node;
  613. node = nextNode;
  614. }
  615. if (prevText) {
  616. prevText.data = prevText.data.replace(/ $/, '');
  617. if (!prevText.data) {
  618. remove(prevText);
  619. }
  620. }
  621. }
  622. /**
  623. * remove(node) removes the given node from the DOM and returns the
  624. * next node in the sequence.
  625. *
  626. * @param {Node} node
  627. * @return {Node} node
  628. */
  629. function remove(node) {
  630. var next = node.nextSibling || node.parentNode;
  631. node.parentNode.removeChild(node);
  632. return next;
  633. }
  634. /**
  635. * next(prev, current) returns the next node in the sequence, given the
  636. * current and previous nodes.
  637. *
  638. * @param {Node} prev
  639. * @param {Node} current
  640. * @return {Node}
  641. */
  642. function next(prev, current) {
  643. if (prev && prev.parentNode === current || current.nodeName === 'PRE') {
  644. return current.nextSibling || current.parentNode;
  645. }
  646. return current.firstChild || current.nextSibling || current.parentNode;
  647. }
  648. module.exports = collapseWhitespace;
  649. },{"block-elements":5,"void-elements":8}],8:[function(require,module,exports){
  650. /**
  651. * This file automatically generated from `pre-publish.js`.
  652. * Do not manually edit.
  653. */
  654. module.exports = {
  655. "area": true,
  656. "base": true,
  657. "br": true,
  658. "col": true,
  659. "embed": true,
  660. "hr": true,
  661. "img": true,
  662. "input": true,
  663. "keygen": true,
  664. "link": true,
  665. "menuitem": true,
  666. "meta": true,
  667. "param": true,
  668. "source": true,
  669. "track": true,
  670. "wbr": true
  671. };
  672. },{}]},{},[1])(1)
  673. });