 `#!/usr/bin/env node
+(function() {
 `
-#require('source-map-support').install()
 unless window?
   path = require 'path'
   fs = require 'fs'

    console.log 'Not enough filename arguments'
    help()

exports =
  Symbol: Symbol
  Drawing: Drawing
module?.exports ?= exports
window?.svgtiler ?= exports

unless window?
  main()

    super()
    for own key, value of options
      @[key] = value
    ## Force SVG namespace when parsing, so nodes have correct namespaceURI.
    ## (This is especially important on the browser, so the results can be
    ## reparented into an HTML Document.)
    @svg = @svg.replace /^\s*<(?:[^<>'"\/]|'[^']*'|"[^"]*")*\s*(\/?\s*>)/,
      (match, end) ->
        unless 'xmlns' in match
          match = match[...match.length-end.length] +
            " xmlns='#{SVGNS}'" + match[match.length-end.length..]
        match
    @xml = new DOMParser
      locator:  ## needed when specifying errorHandler
        line: 1
