diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..fe7acbd
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,1058 @@
+### 3.19.6
+
+Fix speed regression when having big document with many rawxml tag.
+
+This was caused by the fact that expandToOne was a recursive function.
+
+Now that the function uses simple for loop, the rendering is way faster.
+
+If you use the PRO word-run module, you should update the word-run-module to version 3.1.1
+
+### 3.19.5
+
+Bugfix when data contains double array, the scope parser would not do the right thing.
+
+With the following template + data :
+
+```
+{#a}{.}{/a}
+```
+
+and the following data :
+
+```
+{ a: [[ "b", "c"]] }
+```
+
+This would render just the "c", but it should render the array `[ "b", "c" ]` which will render as `b,c`
+
+### 3.19.4
+
+Avoid corruption when having self closing `` in the document.
+
+### 3.19.3
+
+Throw an error when calling render on an invalid template.
+
+Before this version, it was possible to do the following on an invalid template :
+
+```
+try {
+ doc.compile();
+}
+catch (e) {
+ doc.render();
+}
+```
+
+And, this would produce, most of the times, a generated document that is corrupted.
+
+Now, `doc.render()` will also throw in this case the error "You should not call .render on a document that had compilation errors"
+
+### 3.19.2
+
+Update typescript bindings to be able to write `doc.resolveData()`
+
+### 3.19.1
+
+[Internal Only, for tests] : Rewrite xml-prettify to handle canonicalization of `Hello>`
+
+### 3.19.0
+
+When there are errors both in the header and the footer, all errors are shown up instead of seeing only the errors of the first parsed file. This helps to find errors more quickly.
+
+Huge performance improvements when using resolveData with loops with many iterations or with huge content inside the loop. On a document with loops of 8000 iterations, a total of 130000 Promises were created, now only about 8000 are created, (This is a 16x improvement in this case). This will produce noticeable improvements in particular in browser environments, where creating many promises costs more than in Node JS.
+
+Some other improvements to call the `parser()` function only when needed, and using some internal caching.
+
+If you're using the PRO xlsx module, you should upgrade the module to version 3.3.4 or higher, or you might see some rendered values duplicated at multiple points in the generated spreadsheet.
+
+### 3.18.0
+
+- Throw error if calling `.resolveData(data)` before `.compile()`
+- Add TypeScript typings
+
+### 3.17.9
+
+Bugfix corruption when having loops containing one section.
+
+In that case, the generated file would be marked as corrupt by Word.
+
+### 3.17.8
+
+Do not mutate options when calling setOptions.
+
+This means that if you do :
+
+```
+const options = { paragraphLoop: true };
+doc.setOptions(options);
+```
+
+The options object will not be mutated at all anymore. Before this release, this could lead to fatal errors if using the options object across multiple Docxtemplater instances.
+
+### 3.17.7
+
+When using docxtemplater in async mode, inside loops, rejections would be ignored.
+
+With this version, if one or more tags turn into a rejected Promise,
+`doc.resolveData(data)` will also reject (with a multi error containing all
+suberrors)
+
+### 3.17.6
+
+Add support for dotx and dotm file formats
+
+### 3.17.5
+
+- Make expandToOne recursive, to allow to have multiple tags expand to the same level. (for example, for multiple "paragraph-placeholder" tags in the same paragraph).
+- Update moduleApiVersion to 3.24.0.
+- Make sure all postparse (also recursive ones) get the options such as filePath and contentType
+
+### 3.17.4
+
+Make docxtemplater fail with following error messages when using the v4 constructor with either setOptions or attachModule :
+
+- `setOptions() should not be called manually when using the v4 constructor`
+- `attachModule() should not be called manually when using the v4 constructor`
+
+You should not write :
+
+```
+const doc = new Docxtemplater(zip);
+doc.setOptions({
+ delimiters: {
+ start: "<",
+ end: ">",
+ },
+});
+doc.attachModule(new ImageModule())
+```
+
+You should instead write :
+
+```
+const doc = new Docxtemplater(zip, {
+ modules: [new ImageModule()],
+ delimiters: {
+ start: "<",
+ end: ">",
+ },
+});
+```
+
+### 3.17.3
+
+- Update moduleApiVersion to 3.23.0.
+- Add `contentType` property in options passed to parse, postparse, render and postrender.
+- Bugfix in apiversion check, the patch version was not taken into account at all previously
+
+### 3.17.2
+
+Add proofstate module to allow to remove the `` tag during `.render()`
+
+### 3.17.1
+
+- Add support for automatically detaching modules that do not support the current filetype when using constructor v4. In previous versions, you would do the following:
+
+```
+let doc = new Docxtemplater();
+const zip = new PizZip(buffer)
+doc.loadZip(zip);
+
+if (doc.fileType === "pptx") {
+ doc.attachModule(new SlidesModule());
+}
+```
+
+Now it is possible to write the following, without needing the condition on filetype:
+
+```
+const zip = new PizZip(buffer)
+const options = {
+ modules: [new SlidesModule()],
+}
+try {
+ const doc = new Docxtemplater(zip, options);
+}
+catch (e) {
+ console.log(e);
+ // error handler
+}
+```
+
+- Update moduleApiVersion to 3.22.0.
+
+### 3.17.0
+
+- Add a constructor method that accepts zip and optionally modules and other options. This constructor will be the official constructor in docxtemplater v4 and the methods: `loadZip`, `attachModule`, `setOptions` and `compile` will no more be available.
+
+You can migrate the following code:
+
+```
+const doc = new Docxtemplater();
+doc.loadZip(zip)
+doc.setOptions({
+ delimiters: {
+ start: "<",
+ end: ">",
+ },
+});
+doc.attachModule(new ImageModule())
+doc.attachModule(new Htmlmodule())
+doc.attachModule(new Pptxmodule())
+try {
+ doc.compile();
+}
+catch (e) {
+ // error handler
+}
+```
+
+to
+
+```
+const options = {
+ modules: [new ImageModule(), new Htmlmodule(), new Pptxmodule()],
+ delimiters: {
+ start: "<",
+ end: ">",
+ },
+}
+try {
+ const doc = new Docxtemplater(zip, options);
+}
+catch (e) {
+ // error handler
+}
+```
+
+- This change is backward compatible, meaning that you can continue to use the constructor with no arguments for the time being.
+
+### 3.16.11
+
+- Add specific error (`Duplicate open tag` and `Duplicate close tag`) when using `{{foobar}}` in a template when the delimiters are just one single `{` and `}`
+- Avoid error `TypeError: Cannot set property 'file' of undefined` that hides the real error
+
+### 3.16.10
+
+- Properly decode `>` into `>` in templates, in previous versions, the value was decoded to `>`
+
+### 3.16.9
+
+- Pass in `{match, getValue, getValues}` functions to second argument of module.parse
+- Allow to have a promise at the root level in resolveData
+- Update moduleApiVersion to 3.21.0
+
+### 3.16.8
+
+(Internal, for modules) Pass whole part instead of just part.value to explanation function
+
+### 3.16.7
+
+Bugfix with paragraphLoops containing pagebreaks + tables, the pagebreak got reordered
+
+### 3.16.6
+
+Bugfix corrupt document when using dashloop : `{-a:p loop}` inside table cell which renders false
+
+### 3.16.5
+
+Other bugfixes related to pagebreaks and loops
+
+### 3.16.4
+
+Bugfix issue with paragraphLoop and pagebreaks.
+
+In some situations, the pagebreak got removed if the start of the loop is at the top of the page (right after the `w:br` element).
+
+### 3.16.3
+
+- Add options.lIndex and other information about the current token in the `module.parse` method.
+- Update moduleApiVersion to 3.20.0
+
+### 3.16.2
+
+Since this version, modules using the expandToOne trait will be able to throw a specific error instead of the one related to the raw-xml module, ("Raw tag not in paragraph")
+
+### 3.16.1
+
+Bugfix for loop module contained inside grid slides module : Do not fail with error "Unopened loop"
+
+### 3.16.0
+
+Bugfix for loop module and raw module : when having an "execution" error in the parser (eg on render, after the compilation of the template, for example with the angular parser when a filter is called with bad arguments), if one `{#looptag}` or `{@rawtag}` had an execution error, the code would immediately stop collecting other errors. Now docxtemplater will collect all errors, for simple tags, for loop tags, and for rawxml tags.
+
+This means that if your template was like this :
+
+```
+{#foobar|badfilter1}test{/}
+{#foobar|badfilter2}test{/}
+{@rawvalue|badfilter3}
+```
+
+Before version 3.16.0, calling `render` on this template would throw an error with just the first tag erroring.
+
+Since version 3.16.0, a multi error is thrown with all three tags in error being in `.properties.errors`.
+
+This is fixed in sync mode (when calling `doc.render` directly) and also in async mode (when calling `doc.resolveData` and then `doc.render`)
+
+### 3.15.5
+
+- Add scopePathLength to scopemanager to be able to write "\$isLast".
+- Update moduleApiVersion to 3.19.0
+
+### 3.15.4
+
+Add offset property to following errors :
+
+```
+"No w:p was found at the left"
+"No w:p was found at the right"
+```
+
+### 3.15.3
+
+Bugfix when having dashloop inside normal loop, like this :
+
+```
+{#foo}test {-w:p loop}loop{/}{/}
+```
+
+we now throw a multi error instead of just the first error encountered.
+
+### 3.15.2
+
+- Update moduleApiVersion to 3.18.0
+- (internal) Use array of string for shouldContain to fix corruptions
+- Do not add `` in `` if it contains a ``
+
+### 3.15.1
+
+- If you use the xlsx module, please update the xlsx module to 3.1.1 or you will get a stacktrace `Cannot set property 'parse' of undefined`
+- Update moduleApiVersion to 3.17.0
+- Add `options.parse` function in `parse(placeholder, options)` to allow "recursive" parsing
+- Fill empty `` with `` to avoid corruption
+
+### 3.15.0
+
+- Update moduleApiVersion to 3.16.0
+- Disallow to call attachModule twice on a given module
+- Add options to `parse` and `postparse` such as filePath
+
+### 3.14.10
+
+Use `{}` (empty object) instead of "false" for the `fs` shim in the browser.
+
+### 3.14.9
+
+- Bugfix for joinUncorrupt method, which produced a corrupt document when having a paragraphLoop containing a table containing a `{-w:tr loop}` loop.
+
+### 3.14.8
+
+- Update moduleApiVersion to 3.15.0
+
+- Add `joinUncorrupt` to `options` in `module.render` to be able to fix corruptions
+
+- Fixes corruption when using `{#loops}` that contain tables with `{@rawXML}` evaluating to empty.
+
+### 3.14.7
+
+- Add p:txBody to pptx-lexed to handle corruption on pptx
+
+### 3.14.6
+
+- Update moduleApiVersion to 3.14.0
+
+- Add `getNearestLeftIndex`, `getNearestRightIndex`, `getNearestLeftIndexWithCache`, `getNearestRightIndexWithCache` to doc-utils.
+
+- Add `preparse` method to modules to be able to retrieve info about document before the parsing of the whole document by other modules.
+
+- Add `tagShouldContain` to the filetype API to be able to make the documents valid, which would make it possible to remove the `part.emptyValue` trick.
+
+### 3.14.5
+
+Bugfix when using paragraphLoop section with a pagebreak : at the end of the paragraphLoop, the pagebreak was removed by mistake. This is no longer the case since this version
+
+### 3.14.4
+
+Bugfix speed issue when having many loop tags in the same paragraph (over 50 loop tags in one paragraph).
+
+(internal) Update verify moduleAPI to 3.13.0 (addition of `getNearestLeftWithCache`, `getNearestRightWithCache`, `buildNearestCache`)
+
+### 3.14.3
+
+Throw Error with offsets when having loop start tag inside table and loop end tag outside table
+
+### 3.14.2
+
+Update xmlprettify and test it
+
+Update dependencies
+
+### 3.14.1
+
+Add support for `.docm` format
+
+### 3.14.0
+
+Document the usage of PizZip instead of JSZip
+
+### 3.13.6
+
+Improved fix for 3.13.5, to still create a scope but that is the same as the parent scope (without deep copy)
+
+### 3.13.5
+
+Bugfix condition when value is truthy, the subscope was incorrect
+
+(This is a fix on top of 3.13.3, which fixed a bug for the value `true` but not for other truthy values such as integers, strings).
+
+### 3.13.4
+
+Fix support for Node 6 (also for Nashorn): Rebuild js after upgrade to latest babel version
+
+### 3.13.3
+
+Bugfix condition when value is === true, the subscope was incorrect
+
+### 3.13.2
+
+Auto verify moduleAPI version on attachModule
+
+### 3.13.1
+
+Fix undefined is not a function evaluating 'object.getOwnPropertyDescriptors', by downgrading to babel 7.4
+
+### 3.13.0
+
+- Throw multi Error with offsets when having rendering error (makes it possible to use the error location module on rendering errors).
+
+- Avoid false positive error "The filetype for this file could not be identified" when the document uses `` in the `[Content_Types].xml` file
+
+- Add getFileType module API to add potential support for other filetypes
+
+### 3.12.0
+
+Add support for setting the same delimiter on the start and beginning, for example :
+
+`%user%`, by doing doc.setOptions({delimiters: {start: "%", end: "%"}});
+
+Remove (internal) scopeManager.clone, which is no more used
+
+### 3.11.4
+
+Add offset property to unopened/unclosed loop error
+
+### 3.11.3
+
+Parse selfclosing tag correctly, such as in ``
+
+### 3.11.2
+
+- Bugfix issue with conditions in async mode conflicting sometimes
+
+For example with the template :
+
+```
+{#loop}
+ {#cond2}
+ {label}
+ {/cond2}
+ {#cond3}
+ {label}
+ {/cond3}
+{/loop}
+```
+
+and the data :
+
+```
+{
+ label: "outer",
+ loop: [
+ {
+ cond2: true,
+ label: "inner",
+ },
+ ],
+}
+```
+
+The label would render as `outer` even though it should render as `inner`.
+
+### 3.11.1
+
+- Bugfix speed issue introduced in 3.10.0 for rawXmlModule
+
+### 3.11.0
+
+- Bugfix corruption when using paragraphLoop with a template containing `` as direct childs of other ``.
+
+- Update getLeft, getRight, getNearestLeft, getNearestRight, getLeftOrNull, getRightOrNull to take into account the nesting of tags.
+
+- Ensure that the `f` functor is always called when using chunkBy (like the native `.map` function)
+
+- In expandOne trait, call `getLeft` before `getRight`
+
+### 3.10.1
+
+- Improve detection of filetype to read information directly from `[Content_Types].xml` instead of from zip files.
+
+### 3.10.0
+
+- WIPED - Published by mistake.
+
+### 3.9.9
+
+- Add support for multiple elements in getRightOrNull and getLeftOrNull (to be able to specify array of elements in traits.expandToOne
+
+- Add postparse to expandToOne
+
+### 3.9.8
+
+- Add `index` and `prefix` property to `render` method in the second argument ( `options.prefix` and `options.render` )
+
+- Make sure that postrender returns an array of the same length as it gets
+
+- Update moduleApiVersion to 3.9.0
+
+### 3.9.7
+
+- Update moduleApiVersion to 3.8.0
+
+### 3.9.6
+
+When using a paragraphLoop inside a table like this :
+
+{#loop} Content {/loop}
+
+When loop was falsey, the table cell caused a corruption in the resulting document.
+
+This now fixes the issue, an empty "/w:p" is insereted.
+
+### 3.9.5
+
+Performance fix in inspectModule. This performance fix concerns you only if you do `doc.attachModule(inspectModule)`.
+
+On some templates, and when reusing the same inspectModule instance, the rendering could be very slow (20 minutes in some cases). On a simple test case, the rendering time has decreased from 6 seconds to 90ms.
+
+### 3.9.4
+
+Render all spaces when using linebreak option
+
+### 3.9.3
+
+Remove .babelrc from published module
+
+### 3.9.2
+
+Expose `Lexer` to modules (API Version 3-7-0)
+
+### 3.9.1
+
+Fix issue with nested loops with `paragraphLoop` :
+
+```
+{#user}{#pets}
+{name}
+{/}{/}
+```
+
+would produce `No tag "w:p" was found at the left`
+
+It now renders the same way as without paragraphLoop
+
+### 3.9.0
+
+- Add possibility to change the prefix of the rawxmlmodule and of the loopmodule
+
+- In parsed output, also add raw containing the full tag, for example {#loop} will be parsed to : {value: "loop", raw: "#loop"}
+
+### 3.8.4
+
+Fix bug with {linebreaks: true} throwing `a.split is not a function`
+
+### 3.8.3
+
+Add templating of more meta data of the document, including :
+
+Author, Title, Topic, marks, Categories, Comments, Company
+
+### 3.8.2
+
+Fix bug with resolveData algorithm, which raised the error : "Cannot read property value of undefined" in the render call.
+
+### 3.8.1
+
+Fix bug wrong styling when using linebreaks.
+
+### 3.8.0
+
+- Add linebreaks option for pptx and docx
+
+### 3.7.1
+
+Revert : Add back lIndex to parsed in addition to endLindex : Fixes issue with async rendering of multiple tags (images, qrcode, ...)
+
+### 3.7.0
+
+- Add nullGetter module API
+
+- Update inspectModule to have :
+
+ - Unused variables (nullValues)
+ - filetype
+ - data from setData()
+ - templatedFiles
+ - list of tags
+
+### 3.6.8
+
+In firefox, fix : `Argument 1 of DOMParser.constructor does not implement interface Principal`
+
+### 3.6.7
+
+Fix issue of remaining `xmlns=""` in some docx files
+
+### 3.6.6
+
+Fix issue with loopmodule eating up whitespace characters
+
+### 3.6.5
+
+Allow to set delimiters to `{start: '<', end: '>'}` #403
+
+### 3.6.4
+
+Add meta context argument to custom parser with information about the tag for each types of tags
+
+### 3.6.3
+
+Fix infinite loop when XML is invalid (throw an explicit error instead)
+
+Fixes https://github.com/open-xml-templating/docxtemplater/issues/398
+
+### 3.6.2
+
+Fix https://github.com/open-xml-templating/docxtemplater/issues/397 : Add more information to `context` in the parser to be able to write `{#users}{$index} - {name}`.
+
+See https://docxtemplater.readthedocs.io/en/latest/configuration.html#custom-parser for full doc.
+
+### 3.6.1
+
+Add `scopeManager` argument to nullGetter to know what variable is undefined.
+
+### 3.6.0
+
+- Move cli out of main repository : https://github.com/open-xml-templating/docxtemplater-cli
+
+- Get meta attributes with raw-xml tag.
+
+### 3.5.2
+
+- Fix #226 when using {@rawXml} tag inside table column, the document is no longer corrupted
+
+### 3.5.1
+
+- Use JSZipUtils in tests
+
+### 3.5.0
+
+- Add resolveData function for async data resolving
+
+- Fix bugs with spacing : Now space="preserve" is applied in the first and last `` of each placeholder
+
+### 3.4.3
+
+- Update getAllTags to work with multiple loops by merging fields.
+
+### 3.4.2
+
+- Add getAllTags to inspectModule
+
+- Add base-modules after `loadZip` instead of on `compile`
+
+### 3.4.1
+
+**Breaking change** : The syntax of change delimiter has been changed from :
+
+```
+{=<% %>}
+```
+
+to:
+
+```
+{=<% %>=}
+```
+
+To change to `<%` and `%>` delimiters.
+
+The reason is that this allows to parse the delimiters without any assumption.
+
+For example `{={{ }}}` was not possible to parse at version 3.4.0, but by adding the ending equal sign : `{={{ }}=}`, the ambiguity is removed.
+
+### 3.4.0
+
+Add change delimiter syntax from inside template :
+
+For example :
+
+```
+* {default_tags}
+{=<% %>}
+* <% erb_style_tags %>
+<%={ }%>
+* { default_tags_again }
+```
+
+- Add `getTags` to `InspectModule`.
+
+### 3.3.1
+
+- Automatically strip empty namespaces in xml files
+
+- Do not throw postparsed errors for tags that are unclosed/unopened
+
+### 3.3.0
+
+Throw error if the output contains invalid XML characters
+
+### 3.2.5
+
+Take into account paragraphLoop for PPTX documents
+
+### 3.2.4
+
+Correctly replace titles of PPTX documents
+
+### 3.2.3
+
+Add support for Office365 generated documents (with `word/document2.xml` file)
+
+### 3.2.2
+
+- Fix rendering issues with `paragraphLoop`
+
+When setting `paragraphLoop`, the intention is to have a special case for loops when you write :
+
+```
+{#users}
+{name}
+{/users}
+```
+
+Eg : both the start of the loop and the end of the loop are in a paragraph, surrounded by no other content. In that particular case, we render the content of the loop (`{name}`) in this use case, in a new paragraph each time, so that there would be no additional whitespace added to the loop.
+
+On version 3.2.1, the paragraphLoop would change the rendering for most of the loops, for example, if you wrote :
+
+```
+My paragraph {#users}
+{name}
+{/users}
+```
+
+the paragraphLoop code was triggered, and if users was [], even the text "My paragraph" would be removed, which was a bug.
+
+This release fixes that bug.
+
+### 3.2.1
+
+- Fix bug with tr loop inside `paragraphLoop`
+
+If doing
+
+```
+{#par}
+======================
+| {#row} | {/row} |
+======================
+{/par}
+```
+
+An unexpected error 'No "w:tr" found at the left' would be raised.
+
+### 3.2.0
+
+Add `paragraphLoop` option, that permits to have better rendering for spaces (Fixes #272)
+
+It is recommended to turn that option on, because the templates are more readable. However since it breaks backwards-compatibility, it is turned off by default.
+
+### 3.1.12
+
+Inspect postparsed in compile() method instead of render()
+
+### 3.1.11
+
+- Add support for self-closing tag in xmlMatcher -
+- Add tag information in parsed/postparsed
+
+### 3.1.10
+
+- Review testing code to always use "real" docx
+
+### 3.1.9
+
+- Add support for setting the prefix when attaching a module.
+- Bugfix when looping over selfclosing tag
+
+### 3.1.8
+
+Add error `loop_position_invalid` when the position of the loop would produce invalid xml (for example, when putting the start of a loop in a table and the end outside the loop
+
+### 3.1.7
+
+Use createFolders JSZip option to avoid docx corruption
+
+### 3.1.6
+
+Show clear error if file is ODT, escape " as `"`
+
+### 3.1.5
+
+Template values in docProps/core.xml and docProps/app.xml
+
+### 3.1.4
+
+Add possibility to have RenderingErrors (if data is incorrect)
+
+### 3.1.3
+
+Fix `RangeError: Maximum call stack size exceeded` with very big document
+
+### 3.1.2
+
+Handle unclosed tag and
+
+### 3.1.1
+
+Bugfix loop over string value (fixes https://github.com/open-xml-templating/docxtemplater/issues/309\)
+
+### 3.1.0
+
+Add support for multi errors :
+
+docxtemplater doesn't fail on the first error, but instead, will throw multiple errors at the time. See https://docxtemplater.readthedocs.io/en/latest/errors.html for a detailled explanation.
+
+### 3.0.12
+
+Add js/tests to npm package (for modules)
+
+### 3.0.11
+
+Reduce size of the package
+
+### 3.0.10
+
+Reduce size of the package
+
+### 3.0.9
+
+Reduce size of the package (718.9 MB to 1.0 MB), and add prepublish script to ensure the size will never exceed 1.5MB
+
+### 3.0.8
+
+Add expanded property when using expandTo
+
+### 3.0.7
+
+Bugfix : Do not decode utf8 in xmlDocuments
+
+### 3.0.6
+
+- When using getRenderedMap in the modules, we now pass the filepath of the file that will be generated instead of the path of the template.
+
+### 3.0.5
+
+- Remove cycle between traits and docutils
+- Make sure fileTypeConfig is uptodate
+
+### 3.0.4
+
+- Autodetection of filetype : if you use pptx, you don't have to write doc.setOptions({fileType: "pptx"}) anymore.
+
+- Intelligent tagging for pptx (Fixes issue #284)
+
+### 3.0.3
+
+- Update documentation
+- Completely remove intelligentTagging (which is on for everyone)
+- Performance improvements for arrays: prefer push over concat
+- Add automatic module wrapping
+- Add mecanism to change which files to template with modules
+
+### 3.0.2
+
+- The modules are now ordered in the following order : baseModules, and then attachedModules. Before version 3.0.2, the attachedModules came before baseModules. This fixes : https://github.com/open-xml-templating/docxtemplater-image-module/issues/76
+
+### 3.0.1 [YANKED]
+
+This release was published by error, and should not be used at all.
+
+### 3.0.0
+
+- The rendering of the templates has now multiple steps : Lexing, Parsing, and Rendering. This makes the code much more robust, they might be bugs at the beginning, but in the long run, the code is much easier to understand/debug/change.
+- The module system was completely changed, no compatibility is kept between version 2 and version 3, please make sure to update your modules if needed.
+- You can't have the same startTag and endTag (for example `$foo$`), because this would make the code more complex and the errorHandling quite impossible.
+- All extended features (loop, rawxml, invertedloops), are written as v3 modules. We dogfood our own module system, and will hopefully improve it that way.
+
+- The constructor arguments have been removed, and you are responsible to load the JSZip.
+
+ Instead of :
+
+ ```
+ var doc = new Docxtemplater(content);
+ ```
+
+ You now should do :
+
+ ```
+ var zip = new JSZip(content);
+ var doc=new Docxtemplater().loadZip(zip)
+ ```
+
+- getTags() has been removed. It is now not easily possible to get the tags. See https://github.com/open-xml-templating/docxtemplater/issues/258 for a alternate solution
+
+The **JSZip version that you use should be 2.x**, the 3.x is now exclusively async, which Docxtemplater doesn't handle yet.
+
+### 2.1.5
+
+- Fix stacktrace not showing up (#245)
+
+### 2.1.4
+
+- Fixed a memory leak when using large document (10Mb document.xml) (#237)
+- Add fileTypeConfig options in setOptions to define your own fileType config (#235)
+
+### 2.1.3
+
+- {@rawXml} has been fixed for pptx
+
+### 2.1.2
+
+- Add possibility to close loopTag with {/} #192
+
+### 2.1.1
+
+- Bug fix : Some times, docxtemplater could eat lots of memory due to the new "compilation" feature that was only experimental. As this feature is not yet used, it was completely removed from the codebase.
+- Performance : The code has been made a little bit faster.
+
+### 2.1.0
+
+- **Speed Improvements** : docxtemplater had a regression causing it to be slow for loops. The regression would cause the code to run in O(n²) instead of O(n) where n is the length of the loops (with {#users}{name}{/users}. The bug is now fixed, and docxtemplater gained a lot of speed for users of lengthy loops.
+
+### 2.0.0
+
+- **Breaking** : To choose between docx or pptx, you now have to pass doc.setOptions({fileType:'docx'}) where the fileTypes are one of 'pptx', 'docx' (default is 'docx')
+- Using es6 instead of coffeescript to code (code is still compiled to es5, to be usable with node v0.{10,12} or in the browser)
+- Add finalize step in render function to throw an error if a tag is unclosed
+- Module API has been updated, notably the tagXml property doesn't exist anymore, you should use the properties in `fileTypeConfig`
+- You should check if your modules have updated for the new module API, for instance, you should use version 1.0 of the docxtemplater image module
+
+For example :
+
+```javascript
+var xmlTemplater = this.manager.getInstance("xmlTemplater");
+var tagXml = xmlTemplater.fileTypeConfig.tagsXmlArray[0];
+```
+
+### 1.2.1
+
+- It is now possible to use tags inside of docx equations
+
+### 1.2.0
+
+- This release adds error management, all errors that are thrown by docxtemplater are now typed and contain additional properties.
+
+### 1.1.6
+
+- fix : When using loops with images inside, the modulemanager was not updated and would continue to return 'image' for the type of the tag even if the type changed
+
+### 1.1.5
+
+- feature : it is now possible to set the nullgetter for simple tags and for raw xml tags.
+
+### 1.1.4
+
+- bugfix for the modulemanager : it was not in sync in some cases
+
+### 1.1.3
+
+- They now is a default value for rawtags {@rawXml}, which is '' (this will delete the paragraph)
+
+### 1.1.2
+
+- bugfix (There was still '{' and '}' hardcoded)
+
+### 1.1.1
+
+- It is now possible to output the delimiters in the output (for example output "Mark } Z" with the template {name}
+- scopeManager now doesn't return the string 'undefined' when the parser returns null. That behaviour is moved to the xmlTemplater class
+
+### 1.1.0
+
+- docxtemplater is now much faster to process loops #131
+- docutils should not be used any more except for `DocUtils.defaults` (eg docutils is deprecated)
+- Module maintainers: please don't rely on docUtils anymore, except for docUtils.defaults
+- Some templates would output corrupt templates, this should not happen anymore (if it still does, please open an issue)
+
+Upgrade guide :
+
+- If you use modules (image-module, chart-module, or others) its best to update those because they shouldn't use DocUtils anymore
+
+### 1.0.8
+
+- Add ScopeManager.loopOverValue
+
+### 1.0.7
+
+- {@rawXml} works in pptx
+- Created new docxtemplater.com website
+- Using mocha instead of jasmine-node
+- New FAQ section in docs
+
+### 1.0.6
+
+- Corrupt documents when `}{/body}`
+
+### 1.0.5
+
+- New events for moduleManager : `xmlRendering` and `xmlRendered`
+
+### 1.0.4
+
+- pptx generation was repaired 2be10b69d47e8c4ba0f541e4d201b29ef6281505
+- header generation works with any amount of headers/footers
+- slide generation works with any amount of slides
+
+### 1.0.3
+
+- doc.setOptions({delimiters:{start:”[“,end:”]”}}) now works e2d06dedd88860d2dac3d598b590bf81e2d113a6
+
+### 1.0.2
+
+- allowing same tag as start and end delimiter (eg @user@ instead of {user}) 32b9a7645f659ae835fd695e4d8ea99cc6bbec94
+
+### 1.0.1
+
+- made it possible to use objects to loop over (eg {#user} {name} {/user}) 97411cb3537be08f48ff707ac34d6aac8b008c50
+
+### From 0.7.x to 1
+
+- docxtemplater doesn’t depend on fs anymore, for transparency and security reasons.
+- `loadFromFile` has been removed. You now just have to pass the content to Docxtemplater’s constructor.
+- `setTags` has been renamed to `setData`
+- `applyTags` has been renamed to `render`
+- the constructor has changed: eg `new Docxtemplater(content,options)` will now call `JSzip.load(content,options)`.
+- To pass options (such as the parser), you will have to call `setOptions`
+- The `output` function has been removed. You should now call `getZip().generate(options)` where the options are documented here: https://stuk.github.io/jszip/documentation/api_jszip/generate.html
+- the qrcode module has been removed, and will be developped in an other package that will be attached to docxtemplater
+
+### From 0.6.0 to 0.7.0
+
+**The QrCode Option had a security issue**. If you don’t upgrade according to this, the functionality should continue to work but the leak will still be there. If you are running in the browser, the vulnerability will not affect you (no access to the filesystem). If the users can’t change the qrCodes or their value, you’re safe too.
+
+If you set qrCode:true, you are affected. The Command Line is not affected as of v0.7.0 (but was on 0.6.3 and less). However the command line as of v0.7.0 is not more able to load images over the filesystem.
+
+You should set qrCode to a function now, according to https://docxtemplater.readthedocs.io/en/latest/configuration.html#image-replacing.
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..76adecb
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,651 @@
+docxtemplater is dual licensed. You may use it under the MIT license *or* the GPLv3
+license.
+
+The MIT License
+===============
+
+Copyright (c) Edgar HIPP
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+
+GPL version 3
+=============
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
diff --git a/README.md b/README.md
index e69de29..813bb84 100644
--- a/README.md
+++ b/README.md
@@ -0,0 +1,69 @@
+# docxtemplater
+
+[](https://travis-ci.org/open-xml-templating/docxtemplater) [](https://www.npmjs.org/package/docxtemplater) [](https://www.npmjs.org/package/docxtemplater) [](https://cdnjs.com/libraries/docxtemplater) [](https://raw.githubusercontent.com/open-xml-templating/docxtemplater-build/master/build/docxtemplater-latest.min.js) [](https://raw.githubusercontent.com/open-xml-templating/docxtemplater-build/master/build/docxtemplater-latest.min.js)
+
+[](https://saucelabs.com/u/jsninja)
+
+[](https://docxtemplater.com/)
+
+**docxtemplater** is a library to generate docx/pptx documents from a docx/pptx template. It can replace {placeholders} with data and also supports loops and conditions. The templates can be edited by non-programmers, for example your clients.
+
+## Features
+
+[Demo Site](https://docxtemplater.com/demo)
+
+- Replace a {placeholder} by a value
+- Use loops: {#users} {name} {/users}
+- Use loops in tables to generate columns
+- Use conditions (if users.length>3) with angular Parsing
+- Insert custom XML {@rawXml} (for formatted text for example)
+
+## Quickstart
+
+- [Installation in node](https://docxtemplater.readthedocs.io/en/latest/installation.html#node)
+- [Installation in the browser](https://docxtemplater.readthedocs.io/en/latest/installation.html#browser)
+- [Generate a document in node](https://docxtemplater.readthedocs.io/en/latest/generate.html#node)
+- [Generate a document in the browser](https://docxtemplater.readthedocs.io/en/latest/generate.html#browser)
+
+## Documentation
+
+The full documentation of the latest version can be found on [read the docs](http://docxtemplater.readthedocs.io/en/latest/).
+
+See [CHANGELOG.md](CHANGELOG.md) for information about how to migrate from older versions.
+
+## Similar libraries
+
+There are a few similar libraries that work with docx, here’s a list of those I know a bit about:
+
+- [docx4j](https://www.docx4java.org/trac/docx4j) : JAVA, this is probably the biggest docx library out there. There is no built in templating engine, but you can generate your docx yourself programmatically.
+- [docx.js](https://github.com/stephen-hardy/DOCX.js) : Javascript in the browser, you can create (not modify) your docx from scratch, but only do very simple things such as adding non formatted text. Documentation is missing.
+- [redocx](https://github.com/nitin42/redocx) : Create Docx document from scratch, using JSX syntax, last commit on December 2018.
+- [officegen](https://github.com/Ziv-Barber/officegen) : works only server side for the moment.
+
+## Modules
+
+Functionality can be added with modules. Here is the list of existing modules:
+
+PRO Modules developped by docxtemplater core team :
+
+- [Image module](https://docxtemplater.com/modules/image/) to add a given image with the syntax: `{%image}`.
+- [Html Module](https://docxtemplater.com/modules/html/) to insert formatted text in a docx document.
+- [Html-Pptx Module](https://docxtemplater.com/modules/html-pptx/) to insert formatted text in a pptx document.
+- [Slides Module](https://docxtemplater.com/modules/slides/) to create multiple slides dynamically.
+- [Subtemplate Module](https://docxtemplater.com/modules/subtemplate) to include an external docx file inside a given docx file.
+- [Subsection Module](https://docxtemplater.com/modules/subsection) to include subsections (headers/footers) from an other document.
+- [Subtemplate-pptx Module](https://docxtemplater.com/modules/pptx-sub/) to include an external pptx file inside a given pptx file.
+- [Word-Run Module](https://docxtemplater.com/modules/word-run) to include raw runs () inside the document. This makes it possible to include styled text without having to remove the enclosing paragraph like in the {@rawXml} tag.
+- [QrCode Module](https://docxtemplater.com/modules/qrcode) to replace an image, keeping any existing properties.
+- [Error Location Module](https://docxtemplater.com/modules/error-location) to show the errors in the template with comments inside the template.
+- [Table Module](https://docxtemplater.com/modules/table) to create tables from two dimensional data.
+- [Meta Module](https://docxtemplater.com/modules/meta) to make a document readonly, add a text watermark or update the margins.
+- [Styling Module](https://docxtemplater.com/modules/styling) restyle a paragraph, a cell or a table depending on some data.
+- [XLSX Module](https://docxtemplater.com/modules/xlsx) to be able to do templating on Excel files (xlsx extension), also with loops and conditions.
+- [Footnotes Module](https://docxtemplater.com/modules/footnotes) to be able to add footnotes to a document.
+- [Paragraph Placeholder Module](https://docxtemplater.com/modules/paragraph-placeholder) to simplify conditions that should show or hide a given paragraph.
+
+User-contributed modules :
+
+- [Chart Module](https://github.com/prog666/docxtemplater-chart-module) using the syntax: `{$chart}` , user contributed (compatible with v2 only)
+- [Hyperlink module](https://github.com/sujith3g/docxtemplater-link-module) using the syntax: `{^link}`, (compatible with v2 only)
diff --git a/browser/.gitkeep b/browser/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/check-casing.bash b/check-casing.bash
new file mode 100755
index 0000000..4443bd7
--- /dev/null
+++ b/check-casing.bash
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+tgrep() {
+ grep "$@" || true
+}
+
+( git status --short|cut -d\ -f2- && git ls-files ) |
+sort -u |
+( xargs -d '\n' -- stat -c%n 2>/dev/null ||: ) > trackedfiles.log
+
+count="$(grep -vE '(Makefile)' /dev/null 2>&1; echo $$?), 1)
+$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
+endif
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
+
+help:
+ @echo "Please use \`make ' where is one of"
+ @echo " html to make standalone HTML files"
+ @echo " dirhtml to make HTML files named index.html in directories"
+ @echo " singlehtml to make a single large HTML file"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " qthelp to make HTML files and a qthelp project"
+ @echo " devhelp to make HTML files and a Devhelp project"
+ @echo " epub to make an epub"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
+ @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
+ @echo " text to make text files"
+ @echo " man to make manual pages"
+ @echo " texinfo to make Texinfo files"
+ @echo " info to make Texinfo files and run them through makeinfo"
+ @echo " gettext to make PO message catalogs"
+ @echo " changes to make an overview of all changed/added/deprecated items"
+ @echo " xml to make Docutils-native XML files"
+ @echo " pseudoxml to make pseudoxml-XML files for display purposes"
+ @echo " linkcheck to check all external links for integrity"
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+ rm -rf $(BUILDDIR)/*
+
+html:
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+ @echo
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+json:
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+ @echo
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/docxtemplater.qhcp"
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/docxtemplater.qhc"
+
+devhelp:
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+ @echo
+ @echo "Build finished."
+ @echo "To view the help file:"
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/docxtemplater"
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/docxtemplater"
+ @echo "# devhelp"
+
+epub:
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+ @echo
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
+ "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through pdflatex..."
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+latexpdfja:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through platex and dvipdfmx..."
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+ @echo
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+ @echo
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+texinfo:
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+ @echo
+ @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
+ @echo "Run \`make' in that directory to run these through makeinfo" \
+ "(use \`make info' here to do that automatically)."
+
+info:
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+ @echo "Running Texinfo files through makeinfo..."
+ make -C $(BUILDDIR)/texinfo info
+ @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
+
+gettext:
+ $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
+ @echo
+ @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
+
+changes:
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+ @echo
+ @echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+ @echo "Testing of doctests in the sources finished, look at the " \
+ "results in $(BUILDDIR)/doctest/output.txt."
+
+xml:
+ $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
+ @echo
+ @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
+
+pseudoxml:
+ $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
+ @echo
+ @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
diff --git a/docs/make.bat b/docs/make.bat
new file mode 100644
index 0000000..4f5af9c
--- /dev/null
+++ b/docs/make.bat
@@ -0,0 +1,242 @@
+@ECHO OFF
+
+REM Command file for Sphinx documentation
+
+if "%SPHINXBUILD%" == "" (
+ set SPHINXBUILD=sphinx-build
+)
+set BUILDDIR=build
+set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
+set I18NSPHINXOPTS=%SPHINXOPTS% source
+if NOT "%PAPER%" == "" (
+ set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
+ set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
+)
+
+if "%1" == "" goto help
+
+if "%1" == "help" (
+ :help
+ echo.Please use `make ^` where ^ is one of
+ echo. html to make standalone HTML files
+ echo. dirhtml to make HTML files named index.html in directories
+ echo. singlehtml to make a single large HTML file
+ echo. pickle to make pickle files
+ echo. json to make JSON files
+ echo. htmlhelp to make HTML files and a HTML help project
+ echo. qthelp to make HTML files and a qthelp project
+ echo. devhelp to make HTML files and a Devhelp project
+ echo. epub to make an epub
+ echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
+ echo. text to make text files
+ echo. man to make manual pages
+ echo. texinfo to make Texinfo files
+ echo. gettext to make PO message catalogs
+ echo. changes to make an overview over all changed/added/deprecated items
+ echo. xml to make Docutils-native XML files
+ echo. pseudoxml to make pseudoxml-XML files for display purposes
+ echo. linkcheck to check all external links for integrity
+ echo. doctest to run all doctests embedded in the documentation if enabled
+ goto end
+)
+
+if "%1" == "clean" (
+ for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
+ del /q /s %BUILDDIR%\*
+ goto end
+)
+
+
+%SPHINXBUILD% 2> nul
+if errorlevel 9009 (
+ echo.
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
+ echo.installed, then set the SPHINXBUILD environment variable to point
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
+ echo.may add the Sphinx directory to PATH.
+ echo.
+ echo.If you don't have Sphinx installed, grab it from
+ echo.http://sphinx-doc.org/
+ exit /b 1
+)
+
+if "%1" == "html" (
+ %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The HTML pages are in %BUILDDIR%/html.
+ goto end
+)
+
+if "%1" == "dirhtml" (
+ %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
+ goto end
+)
+
+if "%1" == "singlehtml" (
+ %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
+ goto end
+)
+
+if "%1" == "pickle" (
+ %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished; now you can process the pickle files.
+ goto end
+)
+
+if "%1" == "json" (
+ %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished; now you can process the JSON files.
+ goto end
+)
+
+if "%1" == "htmlhelp" (
+ %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished; now you can run HTML Help Workshop with the ^
+.hhp project file in %BUILDDIR%/htmlhelp.
+ goto end
+)
+
+if "%1" == "qthelp" (
+ %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished; now you can run "qcollectiongenerator" with the ^
+.qhcp project file in %BUILDDIR%/qthelp, like this:
+ echo.^> qcollectiongenerator %BUILDDIR%\qthelp\docxtemplater.qhcp
+ echo.To view the help file:
+ echo.^> assistant -collectionFile %BUILDDIR%\qthelp\docxtemplater.ghc
+ goto end
+)
+
+if "%1" == "devhelp" (
+ %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished.
+ goto end
+)
+
+if "%1" == "epub" (
+ %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The epub file is in %BUILDDIR%/epub.
+ goto end
+)
+
+if "%1" == "latex" (
+ %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
+ goto end
+)
+
+if "%1" == "latexpdf" (
+ %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+ cd %BUILDDIR%/latex
+ make all-pdf
+ cd %BUILDDIR%/..
+ echo.
+ echo.Build finished; the PDF files are in %BUILDDIR%/latex.
+ goto end
+)
+
+if "%1" == "latexpdfja" (
+ %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+ cd %BUILDDIR%/latex
+ make all-pdf-ja
+ cd %BUILDDIR%/..
+ echo.
+ echo.Build finished; the PDF files are in %BUILDDIR%/latex.
+ goto end
+)
+
+if "%1" == "text" (
+ %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The text files are in %BUILDDIR%/text.
+ goto end
+)
+
+if "%1" == "man" (
+ %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The manual pages are in %BUILDDIR%/man.
+ goto end
+)
+
+if "%1" == "texinfo" (
+ %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
+ goto end
+)
+
+if "%1" == "gettext" (
+ %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
+ goto end
+)
+
+if "%1" == "changes" (
+ %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.The overview file is in %BUILDDIR%/changes.
+ goto end
+)
+
+if "%1" == "linkcheck" (
+ %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Link check complete; look for any errors in the above output ^
+or in %BUILDDIR%/linkcheck/output.txt.
+ goto end
+)
+
+if "%1" == "doctest" (
+ %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Testing of doctests in the sources finished, look at the ^
+results in %BUILDDIR%/doctest/output.txt.
+ goto end
+)
+
+if "%1" == "xml" (
+ %SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The XML files are in %BUILDDIR%/xml.
+ goto end
+)
+
+if "%1" == "pseudoxml" (
+ %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml
+ if errorlevel 1 exit /b 1
+ echo.
+ echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml.
+ goto end
+)
+
+:end
diff --git a/docs/source/angular_parse.rst b/docs/source/angular_parse.rst
new file mode 100644
index 0000000..9494d38
--- /dev/null
+++ b/docs/source/angular_parse.rst
@@ -0,0 +1,345 @@
+.. _angular_parse:
+
+.. index::
+ single: Angular parser
+
+Angular parser
+==============
+
+Introduction
+------------
+
+The angular-parser makes creating complex templates easier.
+You can for example now use :
+
+.. code-block:: text
+
+ {user.name}
+
+To access the nested name property in the following data :
+
+.. code-block:: javascript
+
+ {
+ user: {
+ name: 'John'
+ }
+ }
+
+You can also use `+`, `-`, `*`, `/`, `>`, `<` operators.
+
+Setup
+-----
+
+Here's a code sample for how to use the angularParser :
+
+.. code-block:: javascript
+
+ // Please make sure to use angular-expressions 1.0.1 or later
+ // More detail at https://github.com/open-xml-templating/docxtemplater/issues/488
+ var expressions = require('angular-expressions');
+ var assign = require("lodash/assign");
+ // define your filter functions here, for example, to be able to write {clientname | lower}
+ expressions.filters.lower = function(input) {
+ // This condition should be used to make sure that if your input is
+ // undefined, your output will be undefined as well and will not
+ // throw an error
+ if(!input) return input;
+ return input.toLowerCase();
+ }
+ function angularParser(tag) {
+ if (tag === '.') {
+ return {
+ get: function(s){ return s;}
+ };
+ }
+ const expr = expressions.compile(
+ tag.replace(/(’|‘)/g, "'").replace(/(“|”)/g, '"')
+ );
+ return {
+ get: function(scope, context) {
+ let obj = {};
+ const scopeList = context.scopeList;
+ const num = context.num;
+ for (let i = 0, len = num + 1; i < len; i++) {
+ obj = assign(obj, scopeList[i]);
+ }
+ return expr(scope, obj);
+ }
+ };
+ }
+ new Docxtemplater(zip, {parser:angularParser});
+
+.. note::
+
+ The require() will not work in a browser, you have to use a module bundler like `webpack`_ or `browserify`_. Alternatively, you can download an outdated version at https://raw.githubusercontent.com/open-xml-templating/docxtemplater/6c8c76210d555fd0f6b3dbc927522a3805f17469/vendor/angular-parse-browser.js
+
+.. _`webpack`: https://webpack.github.io/
+.. _`browserify`: http://browserify.org/
+
+Conditions
+----------
+
+With the angularParser option set, you can also use conditions :
+
+.. code-block:: text
+
+ {#users.length>1}
+ There are multiple users
+ {/}
+
+ {#userName == "John"}
+ Hello John, welcome back
+ {/}
+
+The first conditional will render the section only if there are 2 users or more.
+
+The second conditional will render the section only if the userName is the string "John".
+
+It also handles the boolean operators AND ``&&``, OR ``||``, ``+``, ``-``, the ternary operator ``a ? b : c``, operator precendence with parenthesis ``(a && b) || c``, and many other javascript features.
+
+For example, it is possible to write the following template :
+
+
+.. code-block:: text
+
+ {#generalCondition}
+ {#cond1 || cond2}
+ Paragraph 1
+ {/}
+ {#cond2 && cond3}
+ Paragraph 2
+ {/}
+ {#cond4 ? users : usersWithAdminRights}
+ Paragraph 3
+ {/}
+ There are {users.length} users.
+ {/generalCondition}
+
+Filters
+-------
+
+With filters, it is possible to write the following template to have the resulting string be uppercased:
+
+.. code-block:: text
+
+ {user.name | upper}
+
+.. code-block:: javascript
+
+ var expressions = require('angular-expressions');
+ expressions.filters.upper = function(input) {
+ // This condition should be used to make sure that if your input is
+ // undefined, your output will be undefined as well and will not
+ // throw an error
+ if(!input) return input;
+ return input.toUpperCase();
+ }
+
+More complex filters are possible, for example, if you would like to list the names of all active users. If your data is the following :
+
+.. code-block:: json
+
+ {
+ "users": [
+ {
+ "name": "John",
+ "age": 15,
+ },
+ {
+ "name": "Mary",
+ "age": 26,
+ }
+ ],
+ }
+
+You could show the list of users that are older than 18, by writing the following code :
+
+.. code-block:: javascript
+
+ var expressions = require('angular-expressions');
+ expressions.filters.olderThan = function(users, minAge) {
+ // This condition should be used to make sure that if your input is
+ // undefined, your output will be undefined as well and will not
+ // throw an error
+ if(!users) return users;
+ return users.filter(function(user) {
+ return user.age >= minAge;
+ });
+ }
+
+And in your template,
+
+.. code-block:: text
+
+ The allowed users are :
+
+ {#users | olderThan:15}
+ {name} - {age} years old
+ {/}
+
+There are some interesting use cases for filters
+
+Data aggregation
+~~~~~~~~~~~~~~~~
+
+If your data is the following :
+
+.. code-block:: json
+
+ {
+ "items": [
+ {
+ "name": "Acme Computer",
+ "price": 1000,
+ },
+ {
+ "name": "Mouse & Keyboard",
+ "price": 150,
+ }
+ ],
+ }
+
+And you would like to show the total price, you can write in your template :
+
+.. code-block:: text
+
+ {#items}
+ {name} for a price of {price} €
+ {/}
+ Total Price of your purchase : {items | sumby:'price'}€
+
+The `sumby` is a filter that you can write like this :
+
+.. code-block:: javascript
+
+ expressions.filters.sumby = function(input, field) {
+ // In our example field is the string "price"
+ // This condition should be used to make sure that if your input is
+ // undefined, your output will be undefined as well and will not
+ // throw an error
+ if(!input) return input;
+ return input.reduce(function(sum, object) {
+ return sum + object[field];
+ }, 0);
+ }
+
+Data formatting
+~~~~~~~~~~~~~~~
+
+This example is to format numbers in the format : "150.00" (2 digits of precision)
+If your data is the following :
+
+.. code-block:: json
+
+ {
+ "items": [
+ {
+ "name": "Acme Computer",
+ "price": 1000,
+ },
+ {
+ "name": "Mouse & Keyboard",
+ "price": 150,
+ }
+ ],
+ }
+
+And you would like to show the price with two digits of precision, you can write in your template :
+
+.. code-block:: text
+
+ {#items}
+ {name} for a price of {price | toFixed:2} €
+ {/}
+
+The `toFixed` is an angular filter that you can write like this :
+
+.. code-block:: javascript
+
+ expressions.filters.toFixed = function(input, precision) {
+ // In our example precision is the integer 2
+ // This condition should be used to make sure that if your input is
+ // undefined, your output will be undefined as well and will not
+ // throw an error
+ if(!input) return input;
+ return input.toFixed(precision);
+ }
+
+
+Assignments
+-----------
+
+With the angular expression option, it is possible to assign a value to a variable directly from your template.
+
+For example, in your template, write :
+
+.. code-block:: text
+
+ {full_name = first_name + last_name}
+
+The problem with this expression is that it will return the value of full_name.
+There are two ways to fix this issue, either, if you still would like to keep this as the default behavior, add `; ''` after your expression, for example
+
+.. code-block:: text
+
+ {full_name = first_name + last_name; ''}
+
+This will first execute the expression, and then execute the second statement which is an empty string, and return it.
+
+An other approach is to automatically silence the return values of expression containing variable assignments.
+
+You can do so by using the following parser option :
+
+.. code-block:: javascript
+
+ var expressions = require("angular-expressions");
+ var assign = require("lodash/assign");
+
+ function angularParser(tag) {
+ if (tag === ".") {
+ return {
+ get(s) {
+ return s;
+ },
+ };
+ }
+ const expr = expressions.compile(
+ tag.replace(/(’|‘)/g, "'").replace(/(“|”)/g, '"')
+ );
+ // isAngularAssignment will be true if your tag contains a `=`, for example
+ // when you write the following in your template :
+ // {full_name = first_name + last_name}
+ // In that case, it makes sense to return an empty string so
+ // that the tag does not write something to the generated document.
+ const isAngularAssignment =
+ expr.ast.body[0] &&
+ expr.ast.body[0].expression.type === "AssignmentExpression";
+
+ return {
+ get(scope, context) {
+ let obj = {};
+ const scopeList = context.scopeList;
+ const num = context.num;
+ for (let i = 0, len = num + 1; i < len; i++) {
+ obj = assign(obj, scopeList[i]);
+ }
+ const result = expr(scope, obj);
+ if (isAngularAssignment) {
+ return "";
+ }
+ return result;
+ },
+ };
+ }
+ new Docxtemplater(zip, {parser:angularParser});
+
+Note that if you use a standard tag, like `{full_name = first_name + last_name}` and if you put no other content on that paragraph, the line will still be there but it will be an empty line. If you wish to remove the line, you could use a rawXML tag which will remove the paragraph, like this :
+
+.. code-block:: text
+
+ {@full_name = first_name + last_name}
+ {@vat = price * 0.2}
+ {@total_price = price + vat}
+
+This way, all these assignment lines will be dropped.
diff --git a/docs/source/api.rst b/docs/source/api.rst
new file mode 100644
index 0000000..a4c61ad
--- /dev/null
+++ b/docs/source/api.rst
@@ -0,0 +1,87 @@
+.. _api:
+
+.. index::
+ single: API
+
+API
+===
+
+Constructor
+-----------
+
+.. code-block:: text
+
+ new Docxtemplater()
+
+ This function returns a new Docxtemplater instance
+
+.. code-block:: text
+
+ new Docxtemplater(zip[, options])
+
+ This constructor is preferred over the constructor without any arguments. The constructor without arguments will be removed in docxtemplater version 4.
+ When calling the constructor with a zip file as the first argument, the document will be compiled during instantiation, meaning that this will throw an error if some tag is misplaced in your document.
+ The options parameter allows you to attach some modules, and they will be attached before compilation.
+
+ zip:
+ a zip instance to that method, coming from pizzip or jszip version 2.
+
+ options: (default {modules:[]})
+ You can use this object to configure docxtemplater. It is possible to configure in the following ways:
+
+ * You can pass options to change custom parser, custom delimiters, etc.
+ * You can pass the list of modules that you would like to attach.
+
+ For example :
+ const options = {
+ modules: [ new ImageModule(imageOpts) ],
+ delimiters: {
+ start: "<",
+ end: ">",
+ },
+ }
+ const doc = new Docxtemplater(zip, options);
+
+ This function returns a new Docxtemplater instance
+
+
+Methods
+-------
+
+.. code-block:: text
+
+ setData(Tags)
+
+ Tags:
+ Type: Object {tag_name:tag_replacement}
+ Object containing for each tag_name, the replacement for this tag. For example, if you want to replace firstName by David, your Object should be: {"firstName":"David"}
+
+ render()
+
+ This function replaces all template variables by their values
+
+ getZip()
+
+ This will return you the zip that represents the docx. You can then call `.generate` on this to generate a buffer, string , ... (see https://github.com/open-xml-templating/pizzip/blob/master/documentation/api_pizzip/generate.md)
+
+ compile()
+
+ This function is **deprecated** and you should instead use the new constructor with two arguments.
+ This function parses the template to prepare for the rendering. If your template has some issues in the syntax (for example if your tag is never closed like in : `Hello {user`), this function will throw an error with extra properties describing the error. This function is called for you in render() if you didn't call it yourself. This function should be called before doing resolveData() if you have some async data.
+
+ loadZip(zip)
+
+ This function is **deprecated** and you should instead use the new constructor with two arguments.
+ You have to pass a zip instance to that method, coming from pizzip or jszip version 2
+
+ setOptions()
+
+ This function is **deprecated** and you should instead use the new constructor with two arguments.
+ This function is used to configure the docxtemplater instance by changing parser, delimiters, etc. (See https://docxtemplater.readthedocs.io/en/latest/configuration.html).
+
+ attachModule(module)
+
+ This function is **deprecated** and you should instead use the new constructor with two arguments.
+ This will attach a module to the docxtemplater instance, which is usually used to add new generation features (possibility to include images, HTML, ...). Pro modules can be bought on https://docxtemplater.com/
+
+ This method can be called multiple times, for example : `doc.loadZip(zip).attachModule(imageModule).attachModule(htmlModule)`
diff --git a/docs/source/async.rst b/docs/source/async.rst
new file mode 100644
index 0000000..152fd35
--- /dev/null
+++ b/docs/source/async.rst
@@ -0,0 +1,59 @@
+.. index::
+ single: Async
+
+.. _async:
+
+Asynchronous Data Resolving
+===========================
+
+You can have promises in your data. Note that the only step running asynchronously is the resolving of your data. The compilation (parsing of your template to parse position of each tags), and the rendering (using the compiled version + the resolved data) will still be fully synchronous
+
+.. code-block:: javascript
+
+ // The error object contains additional information when logged with JSON.stringify (it contains a properties object containing all suberrors).
+ function replaceErrors(key, value) {
+ if (value instanceof Error) {
+ return Object.getOwnPropertyNames(value).reduce(function(error, key) {
+ error[key] = value[key];
+ return error;
+ }, {});
+ }
+ return value;
+ }
+
+ function errorHandler(error) {
+ console.log(JSON.stringify({error: error}, replaceErrors));
+
+ if (error.properties && error.properties.errors instanceof Array) {
+ const errorMessages = error.properties.errors.map(function (error) {
+ return error.properties.explanation;
+ }).join("\n");
+ console.log('errorMessages', errorMessages);
+ // errorMessages is a humanly readable message looking like this :
+ // 'The tag beginning with "foobar" is unopened'
+ }
+ throw error;
+ }
+
+ var doc;
+ try {
+ // Compile your document
+ doc = new Docxtemplater(zip, options);
+ }
+ catch (error) {
+ // Catch compilation errors (errors caused by the compilation of the template : misplaced tags)
+ errorHandler(error);
+ }
+
+ doc.resolveData({user: new Promise(resolve) { setTimeout(()=> resolve('John'), 1000)}})
+ .then(function() {
+ try {
+ doc.render();
+ }
+ catch (error) {
+ errorHandler(err);
+ }
+ var buf = doc.getZip()
+ .generate({type: 'nodebuffer'});
+ fs.writeFileSync(path.resolve(__dirname, 'output.docx'), buf);
+ });
diff --git a/docs/source/cli.rst b/docs/source/cli.rst
new file mode 100644
index 0000000..3e8c7d0
--- /dev/null
+++ b/docs/source/cli.rst
@@ -0,0 +1,19 @@
+.. _cli:
+
+.. index::
+ single: Command Line Interface (CLI)
+
+Command Line Interface (CLI)
+============================
+
+This section is about the commandline interface of docxtemplater.
+
+To install the cli, please use this command :
+
+npm install -g docxtemplater-cli
+
+https://github.com/open-xml-templating/docxtemplater-cli
+
+The syntax is the following:
+
+ docxtemplater input.docx data.json output.docx
diff --git a/docs/source/conf.py b/docs/source/conf.py
new file mode 100644
index 0000000..aead220
--- /dev/null
+++ b/docs/source/conf.py
@@ -0,0 +1,261 @@
+# -*- coding: utf-8 -*-
+#
+# docxtemplater documentation build configuration file, created by
+# sphinx-quickstart on Thu May 8 11:17:49 2014.
+#
+# This file is execfile()d with the current directory set to its
+# containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys
+import os
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#sys.path.insert(0, os.path.abspath('.'))
+
+# -- General configuration ------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be
+# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
+# ones.
+extensions = [
+ 'sphinx.ext.autodoc',
+]
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'docxtemplater'
+copyright = u'Edgar Hipp'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+exclude_patterns = []
+
+# The reST default role (used for this markup: `text`) to use for all
+# documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+# If true, keep warnings as "system message" paragraphs in the built documents.
+#keep_warnings = False
+
+
+# -- Options for HTML output ----------------------------------------------
+
+# The theme to use for HTML and HTML Help pages. See the documentation for
+# a list of builtin themes.
+
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
+if not on_rtd: # only import and set the theme if we're building docs locally
+ import sphinx_rtd_theme
+ html_theme = "sphinx_rtd_theme"
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further. For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+
+# The name for this set of Sphinx documents. If None, it defaults to
+# " v documentation".
+#html_title = None
+
+# A shorter title for the navigation bar. Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+# html_static_path = ['_static']
+
+# Add any extra paths that contain custom files (such as robots.txt or
+# .htaccess) here, relative to this directory. These files are copied
+# directly to the root of the documentation.
+#html_extra_path = []
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_domain_indices = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+#html_show_sourcelink = True
+
+# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
+#html_show_sphinx = True
+
+# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
+#html_show_copyright = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a tag referring to it. The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = None
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'docxtemplaterdoc'
+
+
+# -- Options for LaTeX output ---------------------------------------------
+
+latex_elements = {
+# The paper size ('letterpaper' or 'a4paper').
+#'papersize': 'letterpaper',
+
+# The font size ('10pt', '11pt' or '12pt').
+#'pointsize': '10pt',
+
+# Additional stuff for the LaTeX preamble.
+#'preamble': '',
+}
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title,
+# author, documentclass [howto, manual, or own class]).
+latex_documents = [
+ ('index', 'docxtemplater.tex', u'docxtemplater Documentation',
+ u'Edgar Hipp', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# If true, show page references after internal links.
+#latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#latex_show_urls = False
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_domain_indices = True
+
+
+# -- Options for manual page output ---------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+ ('index', 'docxtemplater', u'docxtemplater Documentation',
+ [u'Edgar Hipp'], 1)
+]
+
+# If true, show URL addresses after external links.
+#man_show_urls = False
+
+
+# -- Options for Texinfo output -------------------------------------------
+
+# Grouping the document tree into Texinfo files. List of tuples
+# (source start file, target name, title, author,
+# dir menu entry, description, category)
+texinfo_documents = [
+ ('index', 'docxtemplater', u'docxtemplater Documentation',
+ u'Edgar Hipp', 'docxtemplater', 'Generate docx documents from docx templates',
+ 'Miscellaneous'),
+]
+
+# Documents to append as an appendix to all manuals.
+#texinfo_appendices = []
+
+# If false, no module index is generated.
+#texinfo_domain_indices = True
+
+# How to display URL addresses: 'footnote', 'no', or 'inline'.
+#texinfo_show_urls = 'footnote'
+
+# If true, do not generate a @detailmenu in the "Top" node's menu.
+#texinfo_no_detailmenu = False
diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst
new file mode 100644
index 0000000..4642af9
--- /dev/null
+++ b/docs/source/configuration.rst
@@ -0,0 +1,415 @@
+.. index::
+ single: Configuration
+
+.. _configuration:
+
+Configuration
+=============
+
+You can configure docxtemplater with an options object by using the ``v4 constructor`` with two arguments.
+
+.. code-block:: javascript
+
+ var doc = new Docxtemplater(zip, options);
+
+Custom Parser
+--------------
+
+The name of this option is `parser` (function).
+
+With a custom parser you can parse the tags to for example add operators
+like '+', '-', or even create a Domain Specific Language to specify your tag values.
+
+To enable this, you need to specify a custom parser.
+
+Introduction
+~~~~~~~~~~~~
+
+To understand this option better, it is good to understand how docxtemplater manages the scope.
+
+Whenever docxtemplater needs to render any tag, for example `{name}`, docxtemplater will delegate the retrieval of the value to the scopemanager.
+
+The scopemanager does the following :
+
+ * it compiles the tag, by calling `parser('name')` where 'name' is the string representing what is inside the docxtemplater tag. For loop tags, if the tag is `{#condition}`, the passed string is only `condition` (it does not contain the #).
+
+ The compilation of that tag should return an object containing a function at the `get` property.
+
+ * whenever the tag needs to be rendered, docxtemplater calls `parser('name').get({name: 'John'})`, if `{name: 'John'}` is the current scope.
+
+When inside a loop, for example : `{#users}{name}{/users}`, there are several "scopes" in which it is possible to evaluate the `{name}` property. The "deepest" scope is always evaluated first, so if the data is : `{users: [{name: "John"}], name: "Mary"}`, the parser calls the function `parser('name').get({name:"John"})`. Now if the returned value from the `.get` method is `null` or `undefined`, docxtemplater will call the same parser one level up, until it reaches the end of the scope.
+
+If the root scope also returns `null` or `undefined` for the `.get` call, then the value from the nullGetter is used.
+
+As a second argument to the `parser()` call, you receive more meta data about the tag of the document (and you could check if it is a loop tag for example).
+
+As a second argument to the `get()` call, you receive more meta data about the scope, including the full scopeList.
+
+Lets take an example, If your template is :
+
+.. code-block:: text
+
+ Hello {user}
+
+And we call `doc.setData({user: "John"})`
+
+Default Parser
+~~~~~~~~~~~~~~
+
+docxtemplater uses by default the following parser :
+
+.. code-block:: javascript
+
+ const options = {
+ parser: function(tag) {
+ // tag is "user"
+ return {
+ 'get': function(scope) {
+ // scope will be {user: "John"}
+ if (tag === '.') {
+ return scope;
+ }
+ else {
+ // Here we return the property "user" of the object {user: "John"}
+ return scope[tag];
+ }
+ }
+ };
+ },
+ };
+ const doc = new Docxtemplater(zip, options);
+
+Angular Parser
+~~~~~~~~~~~~~~
+
+A very useful parser is the angular-expressions parser, which has implemented useful features.
+
+See `angular parser`_ for comprehensive documentation
+
+.. _`angular parser`: angular_parse.html
+
+Deep Dive on the parser
+~~~~~~~~~~~~~~~~~~~~~~~
+
+The parser function is given two arguments,
+
+For the template
+
+.. code-block:: text
+
+ Hello {#users}{.}{/}
+
+Using following data :
+
+.. code-block:: javascript
+
+ {users: ['Mary', 'John']}
+
+And with this parser
+
+.. code-block:: javascript
+
+ function parser(scope, context) [
+ console.log(scope);
+ console.log(context);
+ }
+
+
+For the tag `.` in the first iteration, the arguments will be :
+
+.. code-block:: javascript
+
+ scope = { "name": "Jane" }
+ context = {
+ "num": 1, // This corresponds to the level of the nesting, the {#users} tag is level 0, the {.} is level 1
+ "scopeList": [
+ {
+ "users": [
+ {
+ "name": "Jane"
+ },
+ {
+ "name": "Mary"
+ }
+ ]
+ },
+ {
+ "name": "Jane"
+ }
+ ],
+ "scopePath": [
+ "users"
+ ],
+ "scopePathItem": [
+ 0
+ ]
+ // Together, scopePath and scopePathItem describe where we are in the data, in this case, we are in the tag users[0] (the first user)
+ }
+
+
+Simple Parser example for [lower] and [upper]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Here is an example parser that allows you to lowercase or uppercase the data if writing your tag as : `{user[lower]}` or `{user[upper]}` :
+
+.. code-block:: javascript
+
+ options = {
+ parser: function(tag) {
+ // tag is "foo[lower]"
+ let changeCase = false;
+ if(tag.endsWith("[lower]") {
+ changeCase = "lower";
+ }
+ if(tag.endsWith("[upper]") {
+ changeCase = "upper";
+ }
+ return {
+ 'get': function(scope) {
+ let result = null;
+ // scope will be {user: "John"}
+ if (tag === '.') {
+ result = scope;
+ }
+ else {
+ // Here we use the property "user" of the object {user: "John"}
+ result = scope[tag];
+ }
+
+ if (typeof result === "string") {
+ if(changeCase === "upper") {
+ return result.toUpperCase();
+ }
+ else if(changeCase === "lower") {
+ return result.toLowerCase();
+ }
+ }
+ return result;
+ }
+ };
+ },
+ };
+ new Docxtemplater(zip, options);
+
+Simple Parser example for {$index} and {$isLast} inside loops
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+As an other example, it is possible to use the `{$index}` tag inside a loop by using following parser :
+
+.. code-block:: javascript
+
+ function parser(tag) {
+ return {
+ get(scope, context) {
+ if (tag === "$index") {
+ const indexes = context.scopePathItem;
+ return indexes[indexes.length - 1];
+ }
+ if (tag === "$isLast") {
+ const totalLength =
+ context.scopePathLength[context.scopePathLength.length - 1];
+ const index =
+ context.scopePathItem[context.scopePathItem.length - 1];
+ return index === totalLength - 1;
+ }
+ if (tag === "$isFirst") {
+ const index =
+ context.scopePathItem[context.scopePathItem.length - 1];
+ return index === 0;
+ }
+ return scope[tag];
+ },
+ };
+ }
+
+Parser example to avoid using the parent scope if a value is null on the main scope
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+When using following template:
+
+.. code-block:: text
+
+ {#products}
+ {name}, {price} €
+ {/products}
+
+With following data :
+
+.. code-block:: javascript
+
+ doc.setData({
+ name: 'Santa Katerina',
+ products: [
+ {
+ price: '$3.99'
+ }
+ ]
+ });
+
+The {name} tag will use the "root scope", since it is not present in the products array.
+
+If you explicitly don't want this behavior because you want the nullGetter to handle the tag in this case, you could use the following parser :
+
+.. code-block:: javascript
+
+ parser(tag) {
+ return {
+ get(scope, context) {
+ if (context.num < context.scopePath.length) {
+ return null;
+ }
+ // You can customize your parser here instead of scope[tag] of course
+ return scope[tag];
+ },
+ };
+ },
+
+The context.num value contains the scope level for this particular evalutation.
+
+When evaluating the {name} tag in the example above, there are two evaluations:
+
+.. code-block:: javascript
+
+ // For the first evaluation, when evaluating in the {#users} scope
+ context.num = 1;
+ context.scopePath = ["users"];
+ // This evaluation returns null because the
+ // first product doesn't have a name property
+
+ // For the second evaluation, when evaluating in the root scope
+ context.num = 0;
+ context.scopePath = ["users"];
+ // This evaluation returns null because of the extra added condition
+
+Note that you could even make this behavior dependent on a given prefix, for
+example, if you want to by default, use the mechanism of scope traversal, but
+for some tags, allow only to evaluate on the deepest scope, you could add the
+following condition :
+
+.. code-block:: javascript
+
+ parser(tag) {
+ return {
+ get(scope, context) {
+ const onlyDeepestScope = tag[0] === '!';
+ if (onlyDeepestScope) {
+ if (context.num < context.scopePath.length) {
+ return null;
+ }
+ else {
+ // Transform "!name" into "name"
+ tag = tag.substr(1);
+ }
+ }
+ // You can customize your parser here instead of scope[tag] of course
+ return scope[tag];
+ },
+ };
+ },
+
+Custom delimiters
+-----------------
+
+You can set up your custom delimiters:
+
+.. code-block:: javascript
+
+ new Docxtemplater(zip, {delimiters:{start:'[[',end:']]'}});
+
+
+paragraphLoop
+-------------
+
+The paragraphLoop option has been added in version 3.2.0.
+
+It is recommended to turn that option on, since it makes the rendering a little bit easier to reason about. Since it breaks backwards-compatibility, it is turned off by default.
+
+.. code-block:: javascript
+
+ new Docxtemplater(zip, {paragraphLoop:true});
+
+It allows to loop around paragraphs without having additional spacing.
+
+When you write the following template
+
+.. code-block:: text
+
+ The users list is :
+ {#users}
+ {name}
+ {/users}
+ End of users list
+
+Most users of the library would expect to have no spaces between the different
+names.
+
+The output without the option is as follows :
+
+.. code-block:: text
+
+ The users list is :
+
+ John
+
+ Jane
+
+ Mary
+
+ End of users list
+
+
+With the paragraphLoop option turned on, the output becomes :
+
+
+.. code-block:: text
+
+ The users list is :
+ John
+ Jane
+ Mary
+ End of users list
+
+The rule is quite simple :
+
+If the opening loop ({#users}) and the closing loop ({/users}) are both on
+separate paragraphs (and there is no other content on those paragraphs), treat
+the loop as a paragraph loop (eg create one new paragraph for each loop) where
+you remove the first and last paragraphs (the ones containing the loop open and
+loop close tags).
+
+nullGetter
+----------
+
+You can customize the value that is shown whenever the parser (documented
+above) returns 'null' or undefined. By default the nullGetter is the following
+function
+
+.. code-block:: javascript
+
+ nullGetter(part, scopeManager) {
+ if (!part.module) {
+ return "undefined";
+ }
+ if (part.module === "rawxml") {
+ return "";
+ }
+ return "";
+ },
+
+This means that the default value for simple tags is to show "undefined".
+The default for rawTags ({@rawTag}) is to drop the paragraph completely (you could enter any xml here).
+
+The scopeManager variable contains some meta information about the tag, for example, if the template is : {#users}{name}{/users} and the tag `{name}` is undefined, `scopeManager.scopePath === ["users", "name"]`
+
+linebreaks
+----------
+
+You can enable linebreaks, if your data contains newlines, those will be shown as linebreaks in the document
+
+.. code-block:: javascript
+
+ const doc = new Docxtemplater(zip, {linebreaks:true});
+ doc.setData({text: "My text,\nmultiline"});
+ doc.render();
+
diff --git a/docs/source/errors.rst b/docs/source/errors.rst
new file mode 100644
index 0000000..8a5ddb9
--- /dev/null
+++ b/docs/source/errors.rst
@@ -0,0 +1,241 @@
+.. _cli:
+
+.. index::
+ single: Errors
+
+Error handling
+==============
+
+This section is about how to handle Docxtemplater errors.
+
+To be able to see these errors, you need to catch them properly.
+
+.. code-block:: javascript
+
+ try {
+ // render the document (replace all occurences of {first_name} by John, {last_name} by Doe, ...)
+ doc.render()
+ }
+ catch (error) {
+ // The error thrown here contains additional information when logged with JSON.stringify (it contains a properties object containing all suberrors).
+ function replaceErrors(key, value) {
+ if (value instanceof Error) {
+ return Object.getOwnPropertyNames(value).reduce(function(error, key) {
+ error[key] = value[key];
+ return error;
+ }, {});
+ }
+ return value;
+ }
+ console.log(JSON.stringify({error: error}, replaceErrors));
+
+ if (error.properties && error.properties.errors instanceof Array) {
+ const errorMessages = error.properties.errors.map(function (error) {
+ return error.properties.explanation;
+ }).join("\n");
+ console.log('errorMessages', errorMessages);
+ // errorMessages is a humanly readable message looking like this :
+ // 'The tag beginning with "foobar" is unopened'
+ }
+ throw error;
+ }
+
+Error Schema
+------------
+
+All errors thrown by docxtemplater have the following schema:
+
+.. code-block:: text
+
+ {
+ name: One of [GenericError, TemplateError, ScopeParserError, InternalError, MultiError],
+ message: The message of that error,
+ properties : {
+ explanation: An error that is user friendly (in english), explaining what failed exactly. This error could be shown as is to end users
+ id: An identifier of the error that is unique for that type of Error
+ ... : The other properties are specific to each type of error.
+ }
+ }
+
+Error example
+-------------
+
+If the content of your template is `{user {name}`, docxtemplater will throw the following error :
+
+.. code-block:: javascript
+
+ try {
+ doc.render()
+ }
+ catch (e) {
+ // All these expressions are true
+ e.name === "TemplateError"
+ e.message === "Unclosed tag"
+ e.properties.explanation === "The tag beginning with '{user ' is unclosed"
+ e.properties.id === "unclosed_tag"
+ e.properties.context === "{user {"
+ e.properties.xtag === "user "
+ }
+
+
+List of all Error Identifiers
+-----------------------------
+
+All errors can be identified with their id (`e.properties.id`).
+
+The ids are :
+
+**multi_error**: This error means that multiple errors where found in the template (1 or more). See below for handling these errors.
+
+**unopened_tag**: This error happens if a tag is closed but not opened. For example with the following template :
+
+.. code-block:: text
+
+ Hello name} !
+
+**unclosed_tag**: This error happens if a tag is opened but not closed. For example with the following template :
+
+.. code-block:: text
+
+ Hello {name !
+
+**no_xml_tag_found_at_left** and **no_xml_tag_found_at_right**: This error happens if a rawXMLTag doesn't find a `` element
+
+.. code-block:: text
+
+ {@raw}
+ // Note that the `` tag is missing.
+
+**utf8_decode** is an internal error, please report it if you see it
+
+**xmltemplater_content_must_be_string** is an internal error that happens if you try to template something that is not a string (a number for example)
+
+**raw_xml_tag_should_be_only_text_in_paragraph** happens when a rawXMLTag {@raw} is not the only text in the paragraph. For example, writing ` {@raw}` (Note the spaces) is not acceptable because the {@raw} tag replaces the full paragraph. We prefer to throw an Error now rather than have "strange behavior" because the spaces "disappeared".
+
+To correct this error, you have to add manually the text that you want in your raw tag. (Or you can use the https://docxtemplater.com/modules/word-run/ which adds a tag that can replace rawXML inside a tag).
+
+Writing
+
+.. code-block:: text
+
+ {@my_first_tag}{my_second_tag}
+
+Or even
+
+.. code-block:: text
+
+ Hello {@my_first_tag}
+
+Is misusing docxtemplater.
+
+The `@` at the beginning means "replace the xml of **the current paragraph** with scope.my_first_tag" so that means that everything else in that Paragraph will be removed.
+
+**unclosed_loop** and **unopened_loop** happen when a loop is closed but never opened : for example
+
+.. code-block:: text
+
+ {#users}{name}
+
+or
+
+.. code-block:: text
+
+ {name}{/users}
+
+**closing_tag_does_not_match_opening_tag** happens when a loop is closed but doesn't match the opening tag
+
+.. code-block:: text
+
+ {#users}{name}{/people}
+
+**scopeparser_compilation_failed** happens when your parser throws an error during compilation. The parser is the second argument of the constructor ``new Docxtemplater(zip, {parser: function parser(tag) {}});``
+
+For example, if your template is :
+
+.. code-block:: text
+
+ {name++}
+
+and you use the angularParser, you will have this error. The error happens when you call parser('name++'); The underlying error can be read in `e.properties.rootError`
+
+
+**unimplemented_tag_type** happens when a tag type is not implemented. It should normally not happen, unless you changed docxtemplater code.
+
+**malformed_xml** happens when a xml file of the document cannot be parsed correctly.
+
+**loop_position_invalid** happens when a loop would produce invalid XML.
+
+For example, if you write :
+
+.. code-block:: text
+
+ ======================
+ | header1 | header2 |
+ ----------------------
+ | {#users} | content |
+ ======================
+
+ {/users}
+
+this is not allowed since a loop that starts in a table should also end in that table.
+
+Cannot attach a module that was already attached
+------------------------------------------------
+
+You might get this error :
+
+`Cannot attach a module that was already attached : "ImageModule". Maybe you are instantiating the module at the root level, and using it for multiple instances of Docxtemplater`
+
+In previous versions the error was `Cannot attach a module that was already attached`
+
+This happens if you are reusing the same module instance twice.
+
+It usually means that you are calling `new ImageModule()` just once, but you
+should call it for each instance of docxtemplater.
+
+The following code will throw the error when calling "generate" twice:
+
+.. code-block:: javascript
+
+ var Docxtemplater = require("docxtemplater");
+ var ImageModule = require("docxtemplater-image-module");
+ var imageModule = new ImageModule(opts);
+
+ function generate(content) {
+ var zip = new PizZip(content);
+ var doc = new Docxtemplater(zip, {modules: [imageModule]});
+ doc.setData(data);
+ doc.render()
+ }
+
+You should always reconstruct an imageModule for each Docxtemplater instance.
+
+The following code will no more throw the error :
+
+.. code-block:: javascript
+
+ var Docxtemplater = require("docxtemplater");
+ var ImageModule = require("docxtemplater-image-module");
+
+ function generate(content) {
+ var zip = new PizZip(content);
+ var imageModule = new ImageModule(opts);
+ var doc = new Docxtemplater(zip, {modules: [imageModule] });
+ doc.setData(data);
+ doc.render()
+ }
+
+
+Handling multiple errors
+------------------------
+
+docxtemplater now has the ability to detect multiple errors in your template.
+If it detects multiple errors, it will throw an error that has the id **multi_error**
+
+You can then have the following to view all errors :
+
+.. code-block:: javascript
+
+ e.properties.errors.forEach(function(err) {
+ console.log(err);
+ });
diff --git a/docs/source/faq.rst b/docs/source/faq.rst
new file mode 100644
index 0000000..73b41ea
--- /dev/null
+++ b/docs/source/faq.rst
@@ -0,0 +1,816 @@
+.. index::
+ single: FAQ
+
+.. _faq:
+
+Frequently asked questions
+==========================
+
+Inserting new lines
+-------------------
+
+.. code-block:: javascript
+
+ const doc = new Docxtemplater(zip, {linebreaks: true});
+
+then in your data, if a string contains a newline, it will be translated to a linebreak in the document.
+
+Insert HTML formatted text
+--------------------------
+
+It is possible to insert HTML formatted text using the `HTML pro module`_
+
+.. _`HTML pro module`: https://docxtemplater.com/modules/html/
+
+
+Generate smaller docx using compression
+---------------------------------------
+
+The size of the docx output can be big, in the case where you generate the zip the following way:
+
+.. code-block:: javascript
+
+ doc.getZip().generate({ type: "nodebuffer"})
+
+This is because the zip will not be compressed in that case. To force the compression (which could be slow because it is running in JS for files bigger than 10 MB)
+
+.. code-block:: javascript
+
+ var zip = doc.getZip().generate({
+ type: "nodebuffer",
+ compression: "DEFLATE"
+ });
+
+Writing if else
+---------------
+
+To write if/else, see the documentation on `sections`_ for if and `inverted sections`_ for else.
+
+.. _`inverted sections`: tag_types.html#inverted-sections
+.. _`sections`: tag_types.html#sections
+
+Using boolean operators (AND, OR) and comparison operators (`<`, `>`)
+---------------------------------------------------------------------
+
+You can also have conditions with comparison operators (`<` and `>`), or boolean operators (`&&` and `||`) using `angular parser conditions`_.
+
+.. _`angular parser conditions`: angular_parse.html#conditions
+
+
+Conditional Formatting
+----------------------
+
+With the `PRO styling module`_ it is possible to have a table cell be styled depending on a given condition (for example).
+
+.. _`PRO styling module`: https://docxtemplater.com/modules/styling/.
+
+Using data filters
+------------------
+
+You might want to be able to show data a bit differently for each template. For this, you can use the angular parser and the filters functionality.
+
+For example, if a user wants to put something in uppercase, you could write in your template :
+
+
+.. code-block:: text
+
+ { user.name | uppercase }
+
+See `angular parser`_ for comprehensive documentation
+
+.. _`angular parser`: angular_parse.html
+
+Keep placeholders that don't have data
+--------------------------------------
+
+It is possible to define which value to show when a tag resolves to
+undefined or null (for example when no data is present for that value).
+
+For example, with the following template
+
+.. code-block:: text
+
+ Hello {name}, your hobby is {hobby}.
+
+.. code-block:: json
+
+ {
+ "hobby": "football",
+ }
+
+The default behavior is to return "undefined" for empty values.
+
+.. code-block:: text
+
+ Hello undefined, your hobby is football.
+
+You can customize this to either return another string, or return the name of the tag itself, so that it will show :
+
+.. code-block:: text
+
+ Hello {name}, your hobby is football.
+
+It is possible to customize the value that will be shown for {name} by using the nullGetter option. In the following case, it will return "{name}", hence it will keep the placeholder {name} if the value does not exist.
+
+.. code-block:: javascript
+
+ function nullGetter(part, scopeManager) {
+ // part.module can be "loop", "rawxml", or empty, (or any other module name that you use)
+ if (!part.module) {
+ // part.value contains the content of the tag, eg "name" in our example
+ return '{' + part.value + '}';
+ }
+ if (part.module === "rawxml") {
+ return "";
+ }
+ return "";
+ }
+ const doc = new Docxtemplater(zip, {nullGetter: nullGetter});
+
+Performance
+-----------
+
+Docxtemplater is quite fast, for a pretty complex 50 page document, it can generate 250 output of those documents in 44 seconds, which is about 180ms per document.
+
+There is also an interesting blog article https://javascript-ninja.fr/ at https://javascript-ninja.fr/optimizing-speed-in-node-js/ that explains how I optimized loops in docxtemplater.
+
+Support for IE9 and lower
+-------------------------
+
+docxtemplater should work on almost all browsers as of version 1 : IE7 + . Safari, Chrome, Opera, Firefox.
+
+The only 'problem' is to load the binary file into the browser. This is not in docxtemplater's scope, but here is the recommended code to load the zip from the browser:
+
+https://github.com/open-xml-templating/pizzip/blob/master/documentation/howto/read_zip.md
+
+The following code should load the binary content on all browsers:
+
+.. code-block:: javascript
+
+ PizZipUtils.getBinaryContent('path/to/content.zip', function(err, data) {
+ if(err) {
+ throw err; // or handle err
+ }
+
+ var zip = new PizZip(data);
+ });
+
+Get list of placeholders
+-------------------------
+
+To be able to construct a form dynamically or to validate the document
+beforehand, it can be useful to get access to all placeholders defined in a
+given template. Before rendering a document, docxtemplater parses the Word
+document into a compiled form. In this compiled form, the document is stored
+in an `AST`_ which contains all the necessary information to get the list of
+the variables and list them in a JSON object.
+
+With the simple inspection module, it is possible to get this compiled form and
+show the list of tags.
+suite :
+
+.. _`AST`: https://en.wikipedia.org/wiki/Abstract_syntax_tree
+
+.. code-block:: javascript
+
+ var InspectModule = require("docxtemplater/js/inspect-module");
+ var iModule = InspectModule();
+ const doc = new Docxtemplater(zip, { modules: [iModule] });
+ doc.render();
+ var tags = iModule.getAllTags();
+ console.log(tags);
+
+With the following template :
+
+.. code-block:: text
+
+ {company}
+
+ {#users}
+ {name}
+ {age}
+ {/users}
+
+It will log this object :
+
+.. code-block:: json
+
+ {
+ "company": {},
+ "users": {
+ "name": {},
+ "age": {},
+ },
+ }
+
+You can also get a more detailled tree by using :
+
+.. code-block:: javascript
+
+ console.log(iModule.fullInspected["word/document.xml"]);
+
+The code of the inspect-module is very simple, and can be found here : https://github.com/open-xml-templating/docxtemplater/blob/master/es6/inspect-module.js
+
+Convert to PDF
+--------------
+
+It is not possible to convert docx to PDF with docxtemplater, because docxtemplater is a templating engine and doesn't know how to render a given document. There are many
+tools to do this conversion.
+
+The first one is to use `libreoffice headless`, which permits you to generate a
+PDF from a docx document :
+
+You just have to run :
+
+.. code-block:: bash
+
+ libreoffice --headless --convert-to pdf --outdir . input.docx
+
+This will convert the input.docx file into input.pdf file.
+
+The rendering is not 100% perfect, since it uses libreoffice and not microsoft
+word. If you just want to render some preview of a docx, I think this is a
+possible choice. You can do it from within your application by executing a
+process, it is not the most beautiful solution but it works.
+
+If you want something that does the rendering better, I think you should use
+some specialized software. `PDFtron`_ is one of them, I haven't used it myself,
+but I know that some of the users of docxtemplater use it. (I'm not affiliated to PDFtron in any way).
+
+.. _`PDFtron`: https://www.pdftron.com/pdfnet/addons.html
+
+Pptx support
+------------
+
+Docxtemplater handles pptx files without any special configuration (since version 3.0.4).
+
+It does so by looking at the content of the "[Content_Types].xml" file and by looking at some docx/pptx specific content types.
+
+My document is corrupted, what should I do ?
+--------------------------------------------
+
+If you are inserting multiple images inside a loop, it is possible that word cannot handle the docPr attributes correctly. You can try to add the following code in your constructor.
+
+.. code-block:: javascript
+
+ const myModule = {
+ set(options) {
+ if (options.Lexer) {
+ this.Lexer = options.Lexer;
+ }
+ if (options.zip) {
+ this.zip = options.zip;
+ }
+ },
+ on(event) {
+ if (event !== "syncing-zip") {
+ return;
+ }
+ const zip = this.zip;
+ const Lexer = this.Lexer;
+ let prId = 1;
+ function setSingleAttribute(partValue, attr, attrValue) {
+ const regex = new RegExp(`(<.* ${attr}=")([^"]+)(".*)$`);
+ if (regex.test(partValue)) {
+ return partValue.replace(regex, `$1${attrValue}$3`);
+ }
+ let end = partValue.lastIndexOf("/>");
+ if (end === -1) {
+ end = partValue.lastIndexOf(">");
+ }
+ return (
+ partValue.substr(0, end) +
+ ` ${attr}="${attrValue}"` +
+ partValue.substr(end)
+ );
+ }
+ zip.file(/\.xml$/).forEach(function(f) {
+ let text = f.asText();
+ const xmllexed = Lexer.xmlparse(text, {
+ text: [],
+ other: ["wp:docPr"],
+ });
+ if (xmllexed.length > 1) {
+ text = xmllexed.reduce(function(fullText, part) {
+ if (part.tag === "wp:docPr") {
+ return fullText + setSingleAttribute(part.value, "id", prId++);
+ }
+ return fullText + part.value;
+ }, "");
+ }
+ zip.file(f.name, text);
+ });
+ }
+ });
+ const doc = new Docxtemplater(zip, { modules: [myModule]});
+
+Attaching modules for extra functionality
+-----------------------------------------
+
+If you have created or have access to docxtemplater PRO modules, you can attach them with the following code :
+
+
+.. code-block:: javascript
+
+ const doc = new Docxtemplater(zip, {modules: [...]});
+ doc.setData(data);
+
+Ternaries are not working well with angular-parser
+--------------------------------------------------
+
+There is a common issue which is to use ternary on scopes that are not the current scope, which makes the ternary appear as if it always showed the second option.
+
+For example, with following data :
+
+.. code-block:: javascript
+
+ doc.setData({
+ user: {
+ gender: 'F',
+ name: "Mary",
+ hobbies: [{
+ name: 'play football',
+ },{
+ name: 'read books',
+ }]
+ }
+ })
+
+And by using the following template :
+
+.. code-block:: text
+
+ {#user}
+ {name} is a kind person.
+
+ {#hobbies}
+ - {gender == 'F' : 'She' : 'He'} likes to {name}
+ {/hobbies}
+ {/}
+
+This will print :
+
+
+.. code-block:: text
+
+ Mary is a kind person.
+
+ - He likes to play football
+ - He likes to read books
+
+Note that the pronoun "He" is used instead of "She".
+
+The reason for this behavior is that the {gender == 'F' : "She" : "He"} expression is evaluating in the scope of hobby, where gender does not even exist. Since the condtion `gender == 'F'` is false (since gender is undefined), the return value is "He". However, in the scope of the hobby, we do not know the gender so the return value should be null.
+
+We can instead write a custom filter that will return "She" if the input is "F", "He" if the input is "M", and null if the input is anything else.
+
+The code would look like this :
+
+.. code-block:: javascript
+
+ expressions.filters.pronoun = function(input) {
+ if(input === "F") {
+ return "She";
+ }
+ if(input === "M") {
+ return "He";
+ }
+ return null;
+ }
+
+And use the following in your template :
+
+.. code-block:: text
+
+ {#user}
+ {name} is a kind person.
+
+ {#hobbies}
+ - {gender | pronoun} likes to {name}
+ {/hobbies}
+ {/}
+
+
+Multi scope expressions do not work with the angularParser
+----------------------------------------------------------
+
+If you would like to have multi-scope expressions with the angularparser, for example :
+
+You would like to do : `{#users}{ date - age }{/users}`, where date is in the "global scope", and age in the subscope `users`, as in the following data :
+
+.. code-block:: json
+
+ {
+ "date": 2019,
+ "users": [
+ {
+ "name": "John",
+ "age": 44
+ },
+ {
+ "name": "Mary",
+ "age": 22
+ }
+ ]
+ }
+
+You can make use of a feature of the angularParser and the fact that docxtemplater gives you access to the whole scopeList.
+
+.. code-block:: javascript
+
+ // Please make sure to use angular-expressions 1.0.1 or later
+ // More detail at https://github.com/open-xml-templating/docxtemplater/issues/488
+ var expressions = require("angular-expressions");
+ var assign = require("lodash/assign");
+ function angularParser(tag) {
+ if (tag === ".") {
+ return {
+ get(s) {
+ return s;
+ },
+ };
+ }
+ const expr = expressions.compile(
+ tag.replace(/(’|‘)/g, "'").replace(/(“|”)/g, '"')
+ );
+ return {
+ get(scope, context) {
+ let obj = {};
+ const scopeList = context.scopeList;
+ const num = context.num;
+ for (let i = 0, len = num + 1; i < len; i++) {
+ obj = assign(obj, scopeList[i]);
+ }
+ return expr(scope, obj);
+ },
+ };
+ }
+
+ const doc = new Docxtemplater(zip, {parser: angularParser});
+
+.. _cors:
+
+Access to XMLHttpRequest at file.docx from origin 'null' has been blocked by CORS policy
+----------------------------------------------------------------------------------------
+
+This happens if you use the HTML sample script but are not using a webserver.
+
+If your browser window shows a URL starting with `file://`, then you are not using a webserver, but the filesystem itself.
+
+For security reasons, the browsers don't let you load files from the local file system.
+
+To do this, you have to setup a small web server.
+
+The simplest way of starting a webserver is to run following command :
+
+.. code-block:: bash
+
+ npx http-server
+ # if you don't have npx, you can also do :
+ # npm install -g http-server && http-server .
+
+On your production server, you should probably use a more robust webserver such as nginx, or any webserver that you are currently using for static files.
+
+Docxtemplater in an angular project
+-----------------------------------
+
+There is an `online angular demo`_ available on stackblitz.
+
+.. _`online angular demo`: https://stackblitz.com/edit/angular-docxtemplater-example?file=src%2Fapp%2Fproduct-list%2Fproduct-list.component.ts
+
+If you are using an angular version that supports the `import` keyword, you can use the following code :
+
+.. code-block:: javascript
+
+ import { Component } from "@angular/core";
+ import Docxtemplater from "docxtemplater";
+ import PizZip from "pizzip";
+ import PizZipUtils from "pizzip/utils/index.js";
+ import { saveAs } from "file-saver";
+
+ function loadFile(url, callback) {
+ PizZipUtils.getBinaryContent(url, callback);
+ }
+
+ @Component({
+ selector: "app-product-list",
+ templateUrl: "./product-list.component.html",
+ styleUrls: ["./product-list.component.css"]
+ })
+ export class ProductListComponent {
+ generate() {
+ loadFile("https://docxtemplater.com/tag-example.docx", function(
+ error,
+ content
+ ) {
+ if (error) {
+ throw error;
+ }
+ var zip = new PizZip(content);
+ var doc = new Docxtemplater(zip);
+ doc.setData({
+ first_name: "John",
+ last_name: "Doe",
+ phone: "0652455478",
+ description: "New Website"
+ });
+ try {
+ // render the document (replace all occurences of {first_name} by John, {last_name} by Doe, ...)
+ doc.render();
+ } catch (error) {
+ // The error thrown here contains additional information when logged with JSON.stringify (it contains a properties object containing all suberrors).
+ function replaceErrors(key, value) {
+ if (value instanceof Error) {
+ return Object.getOwnPropertyNames(value).reduce(function(
+ error,
+ key
+ ) {
+ error[key] = value[key];
+ return error;
+ },
+ {});
+ }
+ return value;
+ }
+ console.log(JSON.stringify({ error: error }, replaceErrors));
+
+ if (error.properties && error.properties.errors instanceof Array) {
+ const errorMessages = error.properties.errors
+ .map(function(error) {
+ return error.properties.explanation;
+ })
+ .join("\n");
+ console.log("errorMessages", errorMessages);
+ // errorMessages is a humanly readable message looking like this :
+ // 'The tag beginning with "foobar" is unopened'
+ }
+ throw error;
+ }
+ var out = doc.getZip().generate({
+ type: "blob",
+ mimeType:
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
+ }); //Output the document using Data-URI
+ saveAs(out, "output.docx");
+ });
+ }
+ }
+
+Docxtemplater in a vuejs project
+--------------------------------
+
+There is an `online vuejs demo`_ available on stackblitz.
+
+.. _`online vuejs demo`: https://stackblitz.com/edit/vuejs-docxtemplater-example?file=button.component.js
+
+If you are using vuejs 2.0 version that supports the `import` keyword, you can use the following code :
+
+.. code-block:: javascript
+
+ import Docxtemplater from "docxtemplater";
+ import PizZip from "pizzip";
+ import PizZipUtils from "pizzip/utils/index.js";
+ import { saveAs } from "file-saver";
+
+ function loadFile(url, callback) {
+ PizZipUtils.getBinaryContent(url, callback);
+ }
+
+ export default {
+ methods: {
+ renderDoc() {
+ loadFile("https://docxtemplater.com/tag-example.docx", function(
+ error,
+ content
+ ) {
+ if (error) {
+ throw error;
+ }
+ var zip = new PizZip(content);
+ var doc = new Docxtemplater(zip);
+ doc.setData({
+ first_name: "John",
+ last_name: "Doe",
+ phone: "0652455478",
+ description: "New Website"
+ });
+ try {
+ // render the document (replace all occurences of {first_name} by John, {last_name} by Doe, ...)
+ doc.render();
+ } catch (error) {
+ // The error thrown here contains additional information when logged with JSON.stringify (it contains a properties object containing all suberrors).
+ function replaceErrors(key, value) {
+ if (value instanceof Error) {
+ return Object.getOwnPropertyNames(value).reduce(function(
+ error,
+ key
+ ) {
+ error[key] = value[key];
+ return error;
+ },
+ {});
+ }
+ return value;
+ }
+ console.log(JSON.stringify({ error: error }, replaceErrors));
+
+ if (error.properties && error.properties.errors instanceof Array) {
+ const errorMessages = error.properties.errors
+ .map(function(error) {
+ return error.properties.explanation;
+ })
+ .join("\n");
+ console.log("errorMessages", errorMessages);
+ // errorMessages is a humanly readable message looking like this :
+ // 'The tag beginning with "foobar" is unopened'
+ }
+ throw error;
+ }
+ var out = doc.getZip().generate({
+ type: "blob",
+ mimeType:
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
+ }); //Output the document using Data-URI
+ saveAs(out, "output.docx");
+ });
+ }
+ },
+
+ template: `
+
+ `
+ };
+
+Getting access to page number / total number of pages or regenerate Table of Contents
+-------------------------------------------------------------------------------------
+
+Sometimes, you would like to know what are the total number of pages in the
+document, or what is the page number at the current tag position.
+
+This is something that will never be achievable with docxtemplater, because
+docxtemplater is only a templating engine : it does know how to parse the docx
+format. However, it has no idea on how the docx is rendered at the end : the
+width, height of each paragraph determines the number of pages in a document.
+
+Since docxtemplater does not know how to render a docx document, (which
+determines the page numbers), this is why it is impossible to regenerate the
+page numbers within docxtemplater.
+
+Also, even across different "official" rendering engines, the page numbers may vary. Depending on whether you open a document with Office Online, Word 2013 or Word 2016 or the Mac versions of Word, you can have some slight differences that will, at the end, influence the number of pages or the position of some elements within a page.
+
+The amount of work to write a good rendering engine would be very huge (a few years at least for a team of 5-10 people).
+
+Special character keys with angular parser throws error
+-------------------------------------------------------
+
+The error that you could see is this, when using the tag `{être}`.
+
+.. code-block:: text
+
+ Error: [$parse:lexerr] Lexer Error: Unexpected next character at columns 0-0 [ê] in expression [être].
+
+This is because angular-expressions does not allow non-ascii characters.
+You will need angular-expressions version 1.1.0 which adds the
+`isIdentifierStart` and `isIdentifierContinue` properties.
+
+You can fix this issue by adding the characters that you would like to support, for example :
+
+.. code-block:: javascript
+
+ function validChars(ch) {
+ return (
+ (ch >= "a" && ch <= "z") ||
+ (ch >= "A" && ch <= "Z") ||
+ ch === "_" ||
+ ch === "$" ||
+ "ÀÈÌÒÙàèìòùÁÉÍÓÚáéíóúÂÊÎÔÛâêîôûÃÑÕãñõÄËÏÖÜŸäëïöüÿß".indexOf(ch) !== -1
+ );
+ }
+ function angularParser(tag) {
+ if (tag === '.') {
+ return {
+ get: function(s){ return s;}
+ };
+ }
+ const expr = expressions.compile(
+ tag.replace(/(’|‘)/g, "'").replace(/(“|”)/g, '"'),
+ {
+ isIdentifierStart: validChars,
+ isIdentifierContinue: validChars
+ }
+ );
+ return {
+ get: function(scope, context) {
+ let obj = {};
+ const scopeList = context.scopeList;
+ const num = context.num;
+ for (let i = 0, len = num + 1; i < len; i++) {
+ obj = assign(obj, scopeList[i]);
+ }
+ return expr(scope, obj);
+ }
+ };
+ }
+ new Docxtemplater(zip, {parser:angularParser});
+
+
+Remove proofstate tag
+---------------------
+
+The proofstate tag in a document marks the document as spell-checked when last saved.
+After rendering a document with docxtemplater, some spelling errors might have been introduced by the addition of text.
+The proofstate tag is by default, not removed.
+
+To remove it, one could do the following, starting with docxtemplater 3.17.2
+
+.. code-block:: javascript
+
+ const proofstateModule = require("docxtemplater/js/proof-state-module.js");
+ doc = new Docxtemplater(zip, {modules: [proofstateModule] });
+
+Adding page break except for last item in loop
+----------------------------------------------
+
+It is possible, in a condition, to have some specific behavior for the last item in the loop using a custom parser. You can read more `about how custom parsers work here `__.
+
+It will allow you to add a page break at the end of each loop, except for the last item in the loop.
+
+The template will look like this :
+
+.. code-block:: text
+
+ {#users}
+ The user {name} is aged {age}
+ {description}
+ Some other content
+ {@$pageBreakExceptLast}
+ {/}
+
+And each user block will be followed by a pagebreak, except the last user.
+
+.. code-block:: javascript
+
+ function angularParser(tag) {
+ if (tag === '.') {
+ return {
+ get: function(s){ return s;}
+ };
+ }
+ const expr = expressions.compile(
+ tag.replace(/(’|‘)/g, "'").replace(/(“|”)/g, '"')
+ );
+ return {
+ get: function(scope, context) {
+ let obj = {};
+ const scopeList = context.scopeList;
+ const num = context.num;
+ for (let i = 0, len = num + 1; i < len; i++) {
+ obj = assign(obj, scopeList[i]);
+ }
+ return expr(scope, obj);
+ }
+ };
+ }
+ function parser(tag) {
+ // We write an exception to handle the tag "$pageBreakExceptLast"
+ if (tag === "$pageBreakExceptLast") {
+ return {
+ get(scope, context) {
+ const totalLength = context.scopePathLength[context.scopePathLength.length - 1];
+ const index = context.scopePathItem[context.scopePathItem.length - 1];
+ const isLast = index === totalLength - 1;
+ if (!isLast) {
+ return '';
+ }
+ else {
+ return '';
+ }
+ }
+ }
+ }
+ // We use the angularParser as the default fallback
+ // If you don't wish to use the angularParser,
+ // you can use the default parser as documented here :
+ // https://docxtemplater.readthedocs.io/en/latest/configuration.html#default-parser
+ return angularParser(tag);
+ }
+ const doc = new Docxtemplater(zip, {parser: parser});
+ doc.render();
+
+Encrypting files
+----------------
+
+Docxtemplater itself does not handle the Encryption of the docx files.
+
+There seem to be two solutions for this :
+
+* Use a Python tool that does exactly this, it is available here : https://github.com/nolze/msoffcrypto-tool
+
+* The xlsx-populate library also implements the Encryption/Decryption (algorithms are inspired by msoffcrypto-tool), however, the code probably needs to be a bit changed to work with docxtemplater : https://github.com/dtjohnson/xlsx-populate/blob/7480a02575c9140c0e7995623ea192c88c1886d3/lib/Encryptor.js#L236
+
+Assignment expression in template
+---------------------------------
+
+By using the angular expressions options, it is possible to add assignment expressions (for example `{full_name = first_name + last_name}` in your template. See `following part of the doc `__.
diff --git a/docs/source/generate.rst b/docs/source/generate.rst
new file mode 100644
index 0000000..7858f77
--- /dev/null
+++ b/docs/source/generate.rst
@@ -0,0 +1,199 @@
+.. _generate:
+
+.. index::
+ single: Generate a Document
+
+Generate a document
+===================
+
+.. _`Installation`: installation.html
+
+Node
+----
+
+.. code-block:: javascript
+
+ var PizZip = require('pizzip');
+ var Docxtemplater = require('docxtemplater');
+
+ var fs = require('fs');
+ var path = require('path');
+
+ // The error object contains additional information when logged with JSON.stringify (it contains a properties object containing all suberrors).
+ function replaceErrors(key, value) {
+ if (value instanceof Error) {
+ return Object.getOwnPropertyNames(value).reduce(function(error, key) {
+ error[key] = value[key];
+ return error;
+ }, {});
+ }
+ return value;
+ }
+
+ function errorHandler(error) {
+ console.log(JSON.stringify({error: error}, replaceErrors));
+
+ if (error.properties && error.properties.errors instanceof Array) {
+ const errorMessages = error.properties.errors.map(function (error) {
+ return error.properties.explanation;
+ }).join("\n");
+ console.log('errorMessages', errorMessages);
+ // errorMessages is a humanly readable message looking like this :
+ // 'The tag beginning with "foobar" is unopened'
+ }
+ throw error;
+ }
+
+ //Load the docx file as a binary
+ var content = fs
+ .readFileSync(path.resolve(__dirname, 'input.docx'), 'binary');
+
+ var zip = new PizZip(content);
+ var doc;
+ try {
+ doc = new Docxtemplater(zip);
+ } catch(error) {
+ // Catch compilation errors (errors caused by the compilation of the template : misplaced tags)
+ errorHandler(error);
+ }
+
+ //set the templateVariables
+ doc.setData({
+ first_name: 'John',
+ last_name: 'Doe',
+ phone: '0652455478',
+ description: 'New Website'
+ });
+
+ try {
+ // render the document (replace all occurences of {first_name} by John, {last_name} by Doe, ...)
+ doc.render()
+ }
+ catch (error) {
+ // Catch rendering errors (errors relating to the rendering of the template : angularParser throws an error)
+ errorHandler(error);
+ }
+
+ var buf = doc.getZip()
+ .generate({type: 'nodebuffer'});
+
+ // buf is a nodejs buffer, you can either write it to a file or do anything else with it.
+ fs.writeFileSync(path.resolve(__dirname, 'output.docx'), buf);
+
+You can download `input.docx`_ and put it in the same folder than your JS file.
+
+.. _`input.docx`: https://github.com/open-xml-templating/docxtemplater/raw/master/examples/tag-example.docx
+
+Browser
+-------
+
+.. code-block:: html
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Please note that if you want to load a docx from your filesystem, you will need a webserver or you will be blocked by CORS policy.
+
+:ref:`cors`
+
+It is also possible to read the docx from an ``, by using the following :
+
+.. code-block:: javascript
+
+ var docs = document.getElementById('doc');
+ function generate() {
+ var reader = new FileReader();
+ if (docs.files.length === 0) {
+ alert("No files selected")
+ }
+ reader.readAsBinaryString(docs.files.item(0));
+
+ reader.onerror = function (evt) {
+ console.log("error reading file", evt);
+ alert("error reading file" + evt)
+ }
+ reader.onload = function (evt) {
+ const content = evt.target.result;
+ var zip = new PizZip(content);
+ // Same code as in the main HTML example.
+ }
+ }
+
diff --git a/docs/source/goals.rst b/docs/source/goals.rst
new file mode 100644
index 0000000..b837d45
--- /dev/null
+++ b/docs/source/goals.rst
@@ -0,0 +1,42 @@
+.. _goals:
+
+.. index::
+ single: Goals
+
+What is docxtemplater ?
+=======================
+
+docxtemplater is a mail merging tool that is used programmatically and handles conditions, loops, and can be extended to insert anything (tables, html, images).
+
+docxtemplater uses JSON (Javascript objects) as data input, so it can also be used easily from other languages. It handles docx but also pptx templates.
+
+It works in the same way as a templating engine.
+
+
+Many solutions like `docx.js`_, `docx4j`_, `python-docx`_ can generate docx, but they require you to write specific code to create a title, an image, ...
+
+In contrast, docxtemplater is based on the concepts of tags, and each type of tag exposes a feature to the user writing the template.
+
+.. _docx.js: https://github.com/MrRio/DOCX.js/
+.. _docx4j: https://www.docx4java.org/trac/docx4j
+.. _python-docx: https://python-docx.readthedocs.io/en/latest/
+
+Why you shouldn't write a similar library from scratch
+------------------------------------------------------
+
+Docx is a zipped format that contains some xml.
+If you want to build a simple replace {tag} by value system, it could easily be challenging, because the {tag} is internally separated into :
+
+.. code-block:: text
+
+ {
+ tag
+ }
+
+The fact that the tags can be splitted into multiple xml tags makes the code challenging to write. I had to rewrite most of the parsing engine between version 2 and version 3 of docxtemplater to make the code more straighforward : See the migration here :https://github.com/open-xml-templating/docxtemplater/commit/59af93bd281932da4586175bb2428d28298d1e65.
+
+If you want to have loops to iterate over an array, it will become even more complicated.
+
+docxtemplater provides a very simple API that gives you abstraction to deal with loops, conditions, and other features.
+
+If you need additional features, you can either build your own module, or use one of the free or paid modules that you can find at https://docxtemplater.com/
diff --git a/docs/source/index.rst b/docs/source/index.rst
new file mode 100644
index 0000000..36a2f2c
--- /dev/null
+++ b/docs/source/index.rst
@@ -0,0 +1,50 @@
+Docxtemplater
+=============
+
+.. toctree::
+ :maxdepth: 1
+
+
+ goals
+ installation
+ generate
+ tag_types
+ configuration
+ angular_parse
+ async
+ platform_support
+ errors
+ cli
+ api
+ faq
+ testing
+
+
+`Online Demos`_
+---------------
+
+Including:
+
+
+- `Replace Variables`_
+- `Conditions`_
+- `Loops`_
+- `Loops and tables`_
+- `Lists`_
+- `Raw Xml Insertion`_
+- `HTML`_
+- `Image`_
+- `Slides`_
+- `Subtemplate`_
+
+.. _`Online Demos`: https://docxtemplater.com/demo
+.. _Replace Variables: https://docxtemplater.com/demo#simple
+.. _Conditions: https://docxtemplater.com/demo#conditions
+.. _Loops: https://docxtemplater.com/demo#loops
+.. _Loops and tables: https://docxtemplater.com/demo#loop-table
+.. _Lists: https://docxtemplater.com/demo#loop-list
+.. _Raw Xml Insertion: https://docxtemplater.com/demo#xml-insertion
+.. _HTML: https://docxtemplater.com/demo#html
+.. _Image: https://docxtemplater.com/demo#image
+.. _Slides: https://docxtemplater.com/demo#slides
+.. _Subtemplate: https://docxtemplater.com/demo#subtemplate
diff --git a/docs/source/installation.rst b/docs/source/installation.rst
new file mode 100644
index 0000000..668525c
--- /dev/null
+++ b/docs/source/installation.rst
@@ -0,0 +1,83 @@
+.. _installation:
+
+.. index::
+ single: Installation
+
+Installation
+============
+
+
+Node
+----
+
+npm is the easiest way to install docxtemplater
+
+.. code-block:: bash
+
+ npm install docxtemplater pizzip
+
+Browser
+-------
+
+You can find ``.js`` and ``.min.js`` files for docxtemplater on `this repository `__
+
+You will also need Pizzip, which you can `download here `__
+
+Build it yourself
+-----------------
+
+If you want to build docxtemplater for the browser yourself, here is how you should do :
+
+.. code-block:: bash
+
+ git clone https://github.com/open-xml-templating/docxtemplater.git
+ cd docxtemplater
+ npm install
+ npm test
+ npm run compile
+ ./node_modules/.bin/browserify -r "./js/docxtemplater.js" -s docxtemplater > "browser/docxtemplater.js"
+ ./node_modules/.bin/uglifyjs "browser/docxtemplater.js" > "browser/docxtemplater.min.js" --verbose --ascii-only
+
+Docxtemplater will be exported to window.docxtemplater for easy usage.
+
+The generated files of docxtemplater will be in /browser (minified and non minified).
+
+Minifying the build
+-------------------
+
+On Browsers that have `window.XMLSerializer` and `window.DOMParser` (all browsers normally have it), you can use that as a replacement for the xmldom dependency.
+
+As an example, if you use webpack, you can do the following in your webpack.config.js :
+
+.. code-block:: javascript
+
+ module.exports = {
+ // ...
+ // ...
+ resolve: {
+ alias: {
+ xmldom: path.resolve("./node_modules/docxtemplater/es6/browser-versions/xmldom.js"),
+ },
+ },
+ // ...
+ // ...
+ }
+
+Bower
+-----
+
+You can use bower to install docxtemplater
+
+.. code-block:: bash
+
+ bower install --save docxtemplater
+
+When using bower, you can include the following script tag in your HTML :
+
+.. code-block:: html
+
+
+
+This tag will expose docxtemplater in `window.docxtemplater`.
+
+
diff --git a/docs/source/platform_support.rst b/docs/source/platform_support.rst
new file mode 100644
index 0000000..f069c44
--- /dev/null
+++ b/docs/source/platform_support.rst
@@ -0,0 +1,28 @@
+.. _platform_support:
+
+.. index::
+ single: platform_support
+
+Platform Support
+================
+
+docxtemplater works on most modern platforms, and also some older ones. Here is a list of what is tested regularly :
+
+- Node.js versions 6, 7, 8, 9, 10, 11, 12 and all future versions (older versions will also work, but support has ended)
+- Chrome version 58,71,73
+- Firefox 55,60,66
+- Safari 11,12
+- IE10, IE11, Edge 16-18
+- Android 4.2+
+- iPads and iPhones v8.1, 10.3
+
+You can test if everything works fine on your browser by using the test runner: http://javascript-ninja.fr/docxtemplater/v3/test/mocha.html
+
+Dependencies
+------------
+
+1. `PizZip`_ to zip and unzip the docx files
+2. `xmldom`_ to parse the files as xml
+
+.. _`PizZip`: https://github.com/open-xml-templating/pizzip
+.. _`xmldom`: https://github.com/jindw/xmldom
diff --git a/docs/source/tag_types.rst b/docs/source/tag_types.rst
new file mode 100644
index 0000000..da3f6e4
--- /dev/null
+++ b/docs/source/tag_types.rst
@@ -0,0 +1,304 @@
+.. _syntax:
+
+.. index::
+ single: Types of tags
+
+Types of tags
+=============
+
+The syntax is inspired by Mustache_. The template is created in Microsoft Word or other software that can save a docx.
+
+.. _Mustache: https://mustache.github.io/
+
+Introduction
+------------
+
+With this template (input.docx):
+
+.. code-block:: text
+
+ Hello {name} !
+
+And given the following data (data.json):
+
+.. code-block:: javascript
+
+ {
+ name:'John'
+ }
+
+docxtemplater will produce (output.docx):
+
+.. code-block:: text
+
+ Hello John !
+
+Conditions
+----------
+
+Conditions start with a pound and end with a slash. That is `{#hasKitty}` starts a condition and `{/hasKitty}` ends it.
+
+.. code-block:: text
+
+ {#hasKitty}Cat’s name: {kitty}{/hasKitty}
+ {#hasDog}Dog’s name: {dog}{/hasDog}
+
+and this data:
+
+.. code-block:: javascript
+
+ {
+ "first_name":"Jane",
+ "hasKitty": true,
+ "kitty": "Minie"
+ "hasDog": false,
+ "dog" :null
+ }
+
+renders the following:
+
+.. code-block:: text
+
+ Cat’s name: Minie
+
+For a more detailled explanation about Conditions, have a look at `Sections`_
+
+You can also have "else" blocks with `Inverted Sections`_
+
+Loops
+-----
+
+In docxtemplater, conditions and loops use the same syntax called Sections
+
+The following template:
+
+.. code-block:: text
+
+ {#products}
+ {name}, {price} €
+ {/products}
+
+Given the following data:
+
+.. code-block:: javascript
+
+ {
+ "products": [
+ { name :"Windows", price: 100},
+ { name :"Mac OSX", price: 200},
+ { name :"Ubuntu", price: 0}
+ ]
+ }
+
+will result in :
+
+.. code-block:: text
+
+ Windows, 100 €
+ Mac OSX, 200 €
+ Ubuntu, 0€
+
+To loop over an array containing primitive data (ex: string):
+
+.. code-block:: javascript
+
+ {
+ "products": [
+ "Windows",
+ "Mac OSX",
+ "Ubuntu"
+ ]
+ }
+
+.. code-block:: text
+
+ {#products} {.} {/products}
+
+Will result in :
+
+.. code-block:: text
+
+ Windows Mac OSX Ubuntu
+
+Sections
+--------
+
+A section begins with a pound and ends with a slash. That is {#person} begins a "person" section while {/person} ends it.
+
+The section behaves in the following way:
+
++----------------------+---------------------------+------------------+
+| Type of the value | the section is shown | scope |
++======================+===========================+==================+
+| falsy or empty array | never | |
++----------------------+---------------------------+------------------+
+| non empty array | for each element of array | element of array |
++----------------------+---------------------------+------------------+
+| object | once | the object |
++----------------------+---------------------------+------------------+
+| other truthy value | once | unchanged |
++----------------------+---------------------------+------------------+
+
+This table shows for each type of value, what is the condition for the section to be changed and what is the scope of that section.
+
+If the value is of type **boolean**, the section is shown **once if the value is true**, and the scope of the section is **unchanged**.
+
+If we have the section
+
+.. code-block:: text
+
+ {#hasProduct}
+ {price} €
+ {/hasProduct}
+
+Given the following data:
+
+.. code-block:: javascript
+
+ {
+ "hasProduct": true,
+ "price" : 10
+ }
+
+Since hasProduct is a boolean, the section is shown once if `hasProduct` is `true`.
+Since the scope is unchanged, the subsection `{price} €` will render as `10 €`
+
+
+Inverted Sections
+-----------------
+
+An inverted section begins with a caret (hat) and ends with a slash. That is {^person} begins a "person" inverted section while {/person} ends it.
+
+While sections can be used to render text one or more times based on the value of the key, inverted sections may render text once based on the inverse value of the key. That is, they will be rendered if the key doesn't exist, is false, or is an empty list. The scope of an inverted section is unchanged.
+
+Template:
+
+.. code-block:: text
+
+ {#repo}
+ {name}
+ {/repo}
+ {^repo}
+ No repos :(
+ {/repo}
+
+Data:
+
+.. code-block:: javascript
+
+ {
+ "repo": []
+ }
+
+Output:
+
+.. code-block:: javascript
+
+ No repos :(
+
+Sections and newlines
+---------------------
+
+New lines are kept inside sections, so the template :
+
+.. code-block:: text
+
+ {#repo}
+ {name}
+ {/repo}
+ {^repo}
+ No repos :(
+ {/repo}
+
+Data:
+
+.. code-block:: javascript
+
+ {
+ "repo": [{name: "John"}]
+ "repo": [{name: "Jane"}]
+ }
+
+Will actually render
+
+.. code-block:: text
+
+ NL
+ John
+ NL
+ NL
+ Jane
+ NL
+
+(where NL represents an emptyline)
+
+The way to make this work as expected is to not put unnecessary new lines after the start of the section and before the end of the section.
+
+For our example , that would be :
+
+.. code-block:: text
+
+ {#repo} {name}
+ {/repo} {^repo} No repos :( {/repo}
+
+Raw XML syntax
+--------------
+
+It is possible to insert raw (unescaped) XML, for example to render a complex table, an equation, ...
+
+With the ``rawXML`` syntax the whole current paragraph (``w:p``) is replaced by the XML passed in the value.
+
+.. code-block:: text
+
+ {@rawXml}
+
+with this data:
+
+.. code-block:: javascript
+
+ {rawXml:'My customXML'}
+
+This will loop over the first parent tag
+
+If you want to insert HTML styled input, you can also use the docxtemplater html module : https://docxtemplater.com/modules/html/
+
+Set Delimiter
+-------------
+
+Set Delimiter tags start and end with an equal sign and change the tag delimiters from { and } to custom strings.
+
+Consider the following contrived example:
+
+.. code-block:: text
+
+ * {default_tags}
+ {=<% %>=}
+ * <% erb_style_tags %>
+ <%={ }=%>
+ * { default_tags_again }
+
+Here we have a list with three items. The first item uses the default tag style, the second uses erb style as defined by the Set Delimiter tag, and the third returns to the default style after yet another Set Delimiter declaration.
+
+Custom delimiters may not contain whitespace or the equals sign.
+
+It is also possible to `change the delimiters by using docxtemplater options object`_.
+
+.. _`change the delimiters by using docxtemplater options object`: configuration.html#custom-delimiters
+
+Dash syntax
+-----------
+
+When using sections, docxtemplater will try to find on what element to loop over by itself:
+
+If between the two tags {#tag}______{/tag}
+
+ * there is a tag ```` , that means that your loop is inside a table, and it will loop over ```` (table row).
+ * by default, it will loop over ````, which is the default Text Tag
+
+With the Dash syntax you can specify the tag you want to loop on:
+For example, if you want to loop on paragraphs (``w:p``), so that each of the loop creates a new paragraph, you can write :
+
+.. code-block:: text
+
+ {-w:p loop} {inner} {/loop}
+
diff --git a/docs/source/testing.rst b/docs/source/testing.rst
new file mode 100644
index 0000000..956374e
--- /dev/null
+++ b/docs/source/testing.rst
@@ -0,0 +1,135 @@
+.. index::
+ single: Testing
+
+.. _testing:
+
+Testing
+=======
+
+This page documents how docxtemplater is tested.
+
+First, there are multiple types of tests done in docxtemplater
+
+ * **Integration tests**, that are tests where we take a real .docx document, some JSON data, render the document and then verify that it the same as the expected document (this can be seen as snapshot testing)
+ * **Regression tests**, that are tests where we take real or fake docx to ensure that bugfixes that have been found can't occur in the future
+ * **Unit tests**, that help understand the internals of docxtemplater, and allows to verify that the internal data structures of the parsed template are correct
+ * **Speed tests**, that help to optimize the speed of docxtemplater
+
+Integration
+-----------
+
+The integration tests are in es6/tests/integration.js
+
+
+.. code-block:: javascript
+
+ it("should work with table pptx", function () {
+ const doc = createDoc("table-example.pptx");
+ doc.setData({users: [{msg: "hello", name: "mary"}, {msg: "hello", name: "john"}]}).render();
+ shouldBeSame({doc, expectedName: "expected-table-example.pptx"});
+ });
+
+All of the test documents are in the folder `examples/`
+
+* We first load a document from table-example.pptx
+* We then set data and render the document.
+* We then verify that the document is the same as "expected-table-example.pptx"
+
+shouldBeSame will, for each XML file that is inside the zip document, pretty print it, and then compare them. That way, we have a more beautiful diff and spacing differences do not matter in the output document.
+
+Regression tests
+----------------
+
+There are many regression tests, eg tests that are there to ensure that bugs that occured once will not appear again in the future.
+
+A good example of such a test is
+
+Docxtemplater https://github.com/open-xml-templating/docxtemplater/issues/14
+
+Docxtemplater was not able to render text that was written in russian (because of an issue with encoding).
+
+.. code-block:: javascript
+
+ it("should insert russian characters", function () {
+ const russian = "Пупкина"
+ const doc = createDoc("tag-example.docx");
+ const zip = new PizZip(doc.loadedContent);
+ const d = new Docxtemplater(zip);
+ d.setData({last_name: russian});
+ d.render();
+ const outputText = d.getFullText();
+ expect(outputText.substr(0, 7)).to.be.equal(russian);
+ });
+
+This test ensures that the output of the document is correct.
+
+Every time we correct a bug, we should also add a regression test to make sure that bug cannot appear in the future.
+
+Unit tests
+-----------
+
+The input/output for the unit tests can be found in es6/tests/fixtures.js :
+
+For example
+
+
+.. code-block:: javascript
+
+ simple: {
+ it: "should handle {user} with tag",
+ content: "Hi {user}",
+ scope: {
+ user: "Foo",
+ },
+ result: 'Hi Foo',
+ lexed: [
+ {type: "tag", position: "start", value: "", text: true},
+ {type: "content", value: "Hi ", position: "insidetag"},
+ {type: "delimiter", position: "start"},
+ {type: "content", value: "user", position: "insidetag"},
+ {type: "delimiter", position: "end"},
+ {type: "tag", value: "", text: true, position: "end"},
+ ],
+ parsed: [
+ {type: "tag", position: "start", value: "", text: true},
+ {type: "content", value: "Hi ", position: "insidetag"},
+ {type: "placeholder", value: "user"},
+ {type: "tag", value: "", text: true, position: "end"},
+ ],
+ postparsed: [
+ {type: "tag", position: "start", value: '', text: true},
+ {type: "content", value: "Hi ", position: "insidetag"},
+ {type: "placeholder", value: "user"},
+ {type: "tag", value: "", text: true, position: "end"},
+ ],
+ },
+
+
+There you can see what the different steps of docxtemplater are, lex, parse, postparse.
+
+
+Speed tests
+-----------
+
+To ensure that there is no regression on the speed of docxtemplater, we test the performance by generating multiple documents and we expect that the time to generate these documents should be less than for example 100ms.
+
+These tests can be found in es6/tests/speed.js
+
+For example for this test:
+
+.. code-block:: javascript
+
+ it("should be fast for loop tags", function () {
+ const content = "{#users}{name}{/users}";
+ const users = [];
+ for (let i = 1; i <= 1000; i++) {
+ users.push({name: "foo"});
+ }
+ const time = new Date();
+ createXmlTemplaterDocx(content, {tags: {users}}).render();
+ const duration = new Date() - time;
+ expect(duration).to.be.below(60);
+ });
+
+Here we verify that rendering a loop of 1000 items takes less than 60ms.
+This happens to also be a regression test, because they was a problem when generating documents with loops (the loops became very slow for more than 500 items), and we now ensure that such a regression cannot occur in the future.
diff --git a/es6/browser-versions/fs.js b/es6/browser-versions/fs.js
new file mode 100644
index 0000000..f053ebf
--- /dev/null
+++ b/es6/browser-versions/fs.js
@@ -0,0 +1 @@
+module.exports = {};
diff --git a/es6/browser-versions/xmldom.js b/es6/browser-versions/xmldom.js
new file mode 100644
index 0000000..3b3e649
--- /dev/null
+++ b/es6/browser-versions/xmldom.js
@@ -0,0 +1,5 @@
+module.exports = {
+ XMLSerializer: window.XMLSerializer,
+ DOMParser: window.DOMParser,
+ XMLDocument: window.XMLDocument,
+};
diff --git a/es6/collect-content-types.js b/es6/collect-content-types.js
new file mode 100644
index 0000000..e8436b9
--- /dev/null
+++ b/es6/collect-content-types.js
@@ -0,0 +1,28 @@
+const ctXML = "[Content_Types].xml";
+function collectContentTypes(overrides, defaults, zip) {
+ const partNames = {};
+ for (let i = 0, len = overrides.length; i < len; i++) {
+ const override = overrides[i];
+ const contentType = override.getAttribute("ContentType");
+ const partName = override.getAttribute("PartName").substr(1);
+ partNames[partName] = contentType;
+ }
+ for (let i = 0, len = defaults.length; i < len; i++) {
+ const def = defaults[i];
+ const contentType = def.getAttribute("ContentType");
+ const extension = def.getAttribute("Extension");
+ // eslint-disable-next-line no-loop-func
+ zip.file(/./).map(({ name }) => {
+ if (
+ name.slice(name.length - extension.length - 1) === ".xml" &&
+ !partNames[name] &&
+ name !== ctXML
+ ) {
+ partNames[name] = contentType;
+ }
+ });
+ }
+ return partNames;
+}
+
+module.exports = collectContentTypes;
diff --git a/es6/debugger-module.js b/es6/debugger-module.js
new file mode 100644
index 0000000..35b213e
--- /dev/null
+++ b/es6/debugger-module.js
@@ -0,0 +1,29 @@
+/* eslint-disable no-console */
+module.exports = class DebuggerModule {
+ constructor() {}
+ optionsTransformer(options, docxtemplater) {
+ console.log(JSON.stringify({ options }));
+ console.log(
+ JSON.stringify({ files: Object.keys(docxtemplater.getZip().files) })
+ );
+ return options;
+ }
+ parse() {
+ console.log(JSON.stringify({ msg: "parse" }));
+ return null;
+ }
+ postparse(parsed) {
+ console.log(JSON.stringify({ msg: "postparse" }));
+ return {
+ errors: [],
+ parsed,
+ };
+ }
+ render() {
+ console.log(JSON.stringify({ msg: "render" }));
+ return null;
+ }
+ postrender() {
+ console.log(JSON.stringify({ msg: "postrender" }));
+ }
+};
diff --git a/es6/doc-utils.js b/es6/doc-utils.js
new file mode 100644
index 0000000..b06cb3d
--- /dev/null
+++ b/es6/doc-utils.js
@@ -0,0 +1,471 @@
+"use strict";
+
+const { DOMParser, XMLSerializer } = require("xmldom");
+const { throwXmlTagNotFound } = require("./errors");
+const { last, first } = require("./utils");
+
+function parser(tag) {
+ return {
+ get(scope) {
+ if (tag === ".") {
+ return scope;
+ }
+ return scope[tag];
+ },
+ };
+}
+
+function getNearestLeftIndex(parsed, elements, index) {
+ for (let i = index; i >= 0; i--) {
+ const part = parsed[i];
+ for (let j = 0, len = elements.length; j < len; j++) {
+ const element = elements[j];
+ if (isStarting(part.value, element)) {
+ return j;
+ }
+ }
+ }
+ return null;
+}
+
+function getNearestRightIndex(parsed, elements, index) {
+ for (let i = index, l = parsed.length; i < l; i++) {
+ const part = parsed[i];
+ for (let j = 0, len = elements.length; j < len; j++) {
+ const element = elements[j];
+ if (isEnding(part.value, element)) {
+ return j;
+ }
+ }
+ }
+ return -1;
+}
+
+function getNearestLeft(parsed, elements, index) {
+ const found = getNearestLeftIndex(parsed, elements, index);
+ if (found !== -1) {
+ return elements[found];
+ }
+ return null;
+}
+
+function getNearestRight(parsed, elements, index) {
+ const found = getNearestRightIndex(parsed, elements, index);
+ if (found !== -1) {
+ return elements[found];
+ }
+ return null;
+}
+
+function buildNearestCache(postparsed, tags) {
+ return postparsed.reduce(function (cached, part, i) {
+ if (part.type === "tag" && tags.indexOf(part.tag) !== -1) {
+ cached.push({ i, part });
+ }
+ return cached;
+ }, []);
+}
+
+function getNearestLeftIndexWithCache(index, cache) {
+ if (cache.length === 0) {
+ return -1;
+ }
+ for (let i = 0, len = cache.length; i < len; i++) {
+ const current = cache[i];
+ const next = cache[i + 1];
+ if (
+ current.i < index &&
+ (!next || index < next.i) &&
+ current.part.position === "start"
+ ) {
+ return i;
+ }
+ }
+ return -1;
+}
+
+function getNearestLeftWithCache(index, cache) {
+ const found = getNearestLeftIndexWithCache(index, cache);
+ if (found !== -1) {
+ return cache[found].part.tag;
+ }
+ return null;
+}
+
+function getNearestRightIndexWithCache(index, cache) {
+ if (cache.length === 0) {
+ return -1;
+ }
+ for (let i = 0, len = cache.length; i < len; i++) {
+ const current = cache[i];
+ const last = cache[i - 1];
+ if (
+ index < current.i &&
+ (!last || last.i < index) &&
+ current.part.position === "end"
+ ) {
+ return i;
+ }
+ }
+ return -1;
+}
+
+function getNearestRightWithCache(index, cache) {
+ const found = getNearestRightIndexWithCache(index, cache);
+ if (found !== -1) {
+ return cache[found].part.tag;
+ }
+ return null;
+}
+
+function endsWith(str, suffix) {
+ return str.indexOf(suffix, str.length - suffix.length) !== -1;
+}
+function startsWith(str, prefix) {
+ return str.substring(0, prefix.length) === prefix;
+}
+
+function unique(arr) {
+ const hash = {},
+ result = [];
+ for (let i = 0, l = arr.length; i < l; ++i) {
+ if (!hash.hasOwnProperty(arr[i])) {
+ hash[arr[i]] = true;
+ result.push(arr[i]);
+ }
+ }
+ return result;
+}
+
+function chunkBy(parsed, f) {
+ return parsed
+ .reduce(
+ function (chunks, p) {
+ const currentChunk = last(chunks);
+ const res = f(p);
+ if (currentChunk.length === 0) {
+ currentChunk.push(p);
+ return chunks;
+ }
+ if (res === "start") {
+ chunks.push([p]);
+ } else if (res === "end") {
+ currentChunk.push(p);
+ chunks.push([]);
+ } else {
+ currentChunk.push(p);
+ }
+ return chunks;
+ },
+ [[]]
+ )
+ .filter(function (p) {
+ return p.length > 0;
+ });
+}
+
+const defaults = {
+ paragraphLoop: false,
+ nullGetter(part) {
+ if (!part.module) {
+ return "undefined";
+ }
+ if (part.module === "rawxml") {
+ return "";
+ }
+ return "";
+ },
+ xmlFileNames: [],
+ parser,
+ linebreaks: false,
+ fileTypeConfig: null,
+ delimiters: {
+ start: "{",
+ end: "}",
+ },
+};
+
+function mergeObjects() {
+ const resObj = {};
+ let obj, keys;
+ for (let i = 0; i < arguments.length; i += 1) {
+ obj = arguments[i];
+ keys = Object.keys(obj);
+ for (let j = 0; j < keys.length; j += 1) {
+ resObj[keys[j]] = obj[keys[j]];
+ }
+ }
+ return resObj;
+}
+
+function xml2str(xmlNode) {
+ const a = new XMLSerializer();
+ return a.serializeToString(xmlNode).replace(/xmlns(:[a-z0-9]+)?="" ?/g, "");
+}
+
+function str2xml(str) {
+ if (str.charCodeAt(0) === 65279) {
+ // BOM sequence
+ str = str.substr(1);
+ }
+ const parser = new DOMParser();
+ return parser.parseFromString(str, "text/xml");
+}
+
+const charMap = [
+ ["&", "&"],
+ ["<", "<"],
+ [">", ">"],
+ ['"', """],
+ ["'", "'"],
+];
+
+function escapeRegExp(str) {
+ // to be able to use a string as a regex
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+}
+
+const charMapRegexes = charMap.map(function ([endChar, startChar]) {
+ return {
+ rstart: new RegExp(escapeRegExp(startChar), "g"),
+ rend: new RegExp(escapeRegExp(endChar), "g"),
+ start: startChar,
+ end: endChar,
+ };
+});
+
+function wordToUtf8(string) {
+ let r;
+ for (let i = charMapRegexes.length - 1; i >= 0; i--) {
+ r = charMapRegexes[i];
+ string = string.replace(r.rstart, r.end);
+ }
+ return string;
+}
+
+function utf8ToWord(string) {
+ if (typeof string !== "string") {
+ string = string.toString();
+ }
+ let r;
+ for (let i = 0, l = charMapRegexes.length; i < l; i++) {
+ r = charMapRegexes[i];
+ string = string.replace(r.rend, r.start);
+ }
+ return string;
+}
+
+// This function is written with for loops for performance
+function concatArrays(arrays) {
+ const result = [];
+ for (let i = 0; i < arrays.length; i++) {
+ const array = arrays[i];
+ for (let j = 0, len = array.length; j < len; j++) {
+ result.push(array[j]);
+ }
+ }
+ return result;
+}
+
+const spaceRegexp = new RegExp(String.fromCharCode(160), "g");
+function convertSpaces(s) {
+ return s.replace(spaceRegexp, " ");
+}
+function pregMatchAll(regex, content) {
+ /* regex is a string, content is the content. It returns an array of all matches with their offset, for example:
+ regex=la
+ content=lolalolilala
+returns: [{array: {0: 'la'},offset: 2},{array: {0: 'la'},offset: 8},{array: {0: 'la'} ,offset: 10}]
+*/
+ const matchArray = [];
+ let match;
+ while ((match = regex.exec(content)) != null) {
+ matchArray.push({ array: match, offset: match.index });
+ }
+ return matchArray;
+}
+
+function isEnding(value, element) {
+ return value === "" + element + ">";
+}
+
+function isStarting(value, element) {
+ return (
+ value.indexOf("<" + element) === 0 &&
+ [">", " "].indexOf(value[element.length + 1]) !== -1
+ );
+}
+
+function getRight(parsed, element, index) {
+ const val = getRightOrNull(parsed, element, index);
+ if (val !== null) {
+ return val;
+ }
+ throwXmlTagNotFound({ position: "right", element, parsed, index });
+}
+
+function getRightOrNull(parsed, elements, index) {
+ if (typeof elements === "string") {
+ elements = [elements];
+ }
+ let level = 1;
+ for (let i = index, l = parsed.length; i < l; i++) {
+ const part = parsed[i];
+ for (let j = 0, len = elements.length; j < len; j++) {
+ const element = elements[j];
+ if (isEnding(part.value, element)) {
+ level--;
+ }
+ if (isStarting(part.value, element)) {
+ level++;
+ }
+ if (level === 0) {
+ return i;
+ }
+ }
+ }
+ return null;
+}
+
+function getLeft(parsed, element, index) {
+ const val = getLeftOrNull(parsed, element, index);
+ if (val !== null) {
+ return val;
+ }
+ throwXmlTagNotFound({ position: "left", element, parsed, index });
+}
+
+function getLeftOrNull(parsed, elements, index) {
+ if (typeof elements === "string") {
+ elements = [elements];
+ }
+ let level = 1;
+ for (let i = index; i >= 0; i--) {
+ const part = parsed[i];
+ for (let j = 0, len = elements.length; j < len; j++) {
+ const element = elements[j];
+ if (isStarting(part.value, element)) {
+ level--;
+ }
+ if (isEnding(part.value, element)) {
+ level++;
+ }
+ if (level === 0) {
+ return i;
+ }
+ }
+ }
+ return null;
+}
+
+function isTagStart(tagType, { type, tag, position }) {
+ return type === "tag" && tag === tagType && position === "start";
+}
+function isTagEnd(tagType, { type, tag, position }) {
+ return type === "tag" && tag === tagType && position === "end";
+}
+function isParagraphStart(options) {
+ return isTagStart("w:p", options) || isTagStart("a:p", options);
+}
+function isParagraphEnd(options) {
+ return isTagEnd("w:p", options) || isTagEnd("a:p", options);
+}
+function isTextStart(part) {
+ return part.type === "tag" && part.position === "start" && part.text;
+}
+function isTextEnd(part) {
+ return part.type === "tag" && part.position === "end" && part.text;
+}
+
+function isContent(p) {
+ return (
+ p.type === "placeholder" ||
+ (p.type === "content" && p.position === "insidetag")
+ );
+}
+
+const corruptCharacters = /[\x00-\x08\x0B\x0C\x0E-\x1F]/;
+// 00 NUL '\0' (null character)
+// 01 SOH (start of heading)
+// 02 STX (start of text)
+// 03 ETX (end of text)
+// 04 EOT (end of transmission)
+// 05 ENQ (enquiry)
+// 06 ACK (acknowledge)
+// 07 BEL '\a' (bell)
+// 08 BS '\b' (backspace)
+// 0B VT '\v' (vertical tab)
+// 0C FF '\f' (form feed)
+// 0E SO (shift out)
+// 0F SI (shift in)
+// 10 DLE (data link escape)
+// 11 DC1 (device control 1)
+// 12 DC2 (device control 2)
+// 13 DC3 (device control 3)
+// 14 DC4 (device control 4)
+// 15 NAK (negative ack.)
+// 16 SYN (synchronous idle)
+// 17 ETB (end of trans. blk)
+// 18 CAN (cancel)
+// 19 EM (end of medium)
+// 1A SUB (substitute)
+// 1B ESC (escape)
+// 1C FS (file separator)
+// 1D GS (group separator)
+// 1E RS (record separator)
+// 1F US (unit separator)
+function hasCorruptCharacters(string) {
+ return corruptCharacters.test(string);
+}
+
+function invertMap(map) {
+ return Object.keys(map).reduce(function (invertedMap, key) {
+ const value = map[key];
+ invertedMap[value] = invertedMap[value] || [];
+ invertedMap[value].push(key);
+ return invertedMap;
+ }, {});
+}
+
+module.exports = {
+ endsWith,
+ startsWith,
+ getNearestLeft,
+ getNearestRight,
+ getNearestLeftWithCache,
+ getNearestRightWithCache,
+ getNearestLeftIndex,
+ getNearestRightIndex,
+ getNearestLeftIndexWithCache,
+ getNearestRightIndexWithCache,
+ buildNearestCache,
+ isContent,
+ isParagraphStart,
+ isParagraphEnd,
+ isTagStart,
+ isTagEnd,
+ isTextStart,
+ isTextEnd,
+ unique,
+ chunkBy,
+ last,
+ first,
+ mergeObjects,
+ xml2str,
+ str2xml,
+ getRightOrNull,
+ getRight,
+ getLeftOrNull,
+ getLeft,
+ pregMatchAll,
+ convertSpaces,
+ escapeRegExp,
+ charMapRegexes,
+ hasCorruptCharacters,
+ defaults,
+ wordToUtf8,
+ utf8ToWord,
+ concatArrays,
+ invertMap,
+ charMap,
+};
diff --git a/es6/docxtemplater.d.ts b/es6/docxtemplater.d.ts
new file mode 100644
index 0000000..c6bf562
--- /dev/null
+++ b/es6/docxtemplater.d.ts
@@ -0,0 +1,113 @@
+// Type definitions for Docxtemplater 3
+// Project: https://github.com/open-xml-templating/docxtemplater/
+// Definitions by: edi9999
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 3.9
+
+export namespace DXT {
+ type integer = number;
+
+ interface SimplePart {
+ type: string
+ value: string
+ module?: string
+ [x: string]: any
+ }
+
+ interface Part {
+ type: string
+ value: string
+ module: string
+ raw: string
+ offset: integer
+ lIndex: integer
+ num: integer
+ inverted?: boolean
+ endLIndex?: integer
+ expanded?: Part[]
+ subparsed?: Part[]
+ }
+
+ interface Rendered {
+ value: string
+ errors: any[]
+ }
+
+ type Error = any
+
+ interface Module {
+ set?(options:any): void
+ parse?(placeHolderContent: string): SimplePart | null
+ render?(part: Part): Rendered | null
+ getTraits?(traitName: string, parsed: any): any
+ getFileType?(opts: any): string
+ nullGetter?(part: Part, scopeManager: any) : any
+ optionsTransformer?(options: Options): Options
+ postrender?(parts: string[], options: any) : string[]
+ errorsTransformer?(errors: Error[]) :Error[]
+ getRenderedMap?(map: any): any
+ preparse?(parsed: any, options: any): any
+ postparse?(postparsed: Part[], modules: Module[], options: any): Part[]
+ on?(event :string) :void
+ resolve?(part :Part, options: any): null | Promise
+ [x: string]: any
+ }
+
+ interface ParserContext {
+ meta: {
+ part: Part
+ }
+ scopeList: any[]
+ scopePath: string[]
+ scopePathItem: integer[]
+ scopePathLength: integer[]
+ num: integer
+ }
+
+ interface Parser{
+ get(scope: any, context: ParserContext): any
+ }
+
+ interface ConstructorOptions {
+ modules? : Module[]
+ delimiters? : { start: string, end: string }
+ paragraphLoop? : boolean
+ parser?(tag: string) : Parser
+ linebreaks?: boolean
+ nullGetter?(part: Part) : any
+ }
+
+ interface Options {
+ delimiters? : { start: string, end: string }
+ paragraphLoop? : boolean
+ parser?(tag: string) : Parser
+ linebreaks?: boolean
+ nullGetter?(part: Part) : any
+ }
+}
+
+declare class Docxtemplater {
+ /**
+ * Create Docxtemplater instance (and compile it on the fly)
+ *
+ * @param zip Serialized zip archive
+ * @param options modules and other other options
+ */
+ constructor (zip: any, options?: DXT.ConstructorOptions);
+ /**
+ * Create Docxtemplater instance, without options
+ */
+ constructor ();
+
+ setData(data: any): this
+ resolveData(data: any): Promise
+ render() : this
+ getZip() : any
+
+ loadZip(zip: any): this
+ setOptions(options: DXT.Options): this
+ attachModule(module: DXT.Module): this
+ compile(): this
+}
+
+export default Docxtemplater;
diff --git a/es6/docxtemplater.js b/es6/docxtemplater.js
new file mode 100644
index 0000000..bb30b3f
--- /dev/null
+++ b/es6/docxtemplater.js
@@ -0,0 +1,423 @@
+"use strict";
+
+const DocUtils = require("./doc-utils");
+DocUtils.traits = require("./traits");
+DocUtils.moduleWrapper = require("./module-wrapper");
+const {
+ throwMultiError,
+ throwResolveBeforeCompile,
+ throwRenderInvalidTemplate,
+} = require("./errors");
+
+const collectContentTypes = require("./collect-content-types");
+const ctXML = "[Content_Types].xml";
+const commonModule = require("./modules/common");
+
+const Lexer = require("./lexer");
+const {
+ defaults,
+ str2xml,
+ xml2str,
+ moduleWrapper,
+ utf8ToWord,
+ concatArrays,
+ unique,
+} = DocUtils;
+const {
+ XTInternalError,
+ throwFileTypeNotIdentified,
+ throwFileTypeNotHandled,
+ throwApiVersionError,
+} = require("./errors");
+
+const currentModuleApiVersion = [3, 24, 0];
+
+const Docxtemplater = class Docxtemplater {
+ constructor(zip, { modules = [], ...options } = {}) {
+ if (!Array.isArray(modules)) {
+ throw new Error(
+ "The modules argument of docxtemplater's constructor must be an array"
+ );
+ }
+ this.compiled = {};
+ this.modules = [commonModule()];
+ this.setOptions(options);
+ modules.forEach((module) => {
+ this.attachModule(module);
+ });
+ if (zip) {
+ if (!zip.files || typeof zip.file !== "function") {
+ throw new Error(
+ "The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)"
+ );
+ }
+ this.loadZip(zip);
+ // remove the unsupported modules
+ this.modules = this.modules.filter((module) => {
+ if (module.supportedFileTypes) {
+ if (!Array.isArray(module.supportedFileTypes)) {
+ throw new Error(
+ "The supportedFileTypes field of the module must be an array"
+ );
+ }
+ const isSupportedModule =
+ module.supportedFileTypes.indexOf(this.fileType) !== -1;
+ if (!isSupportedModule) {
+ module.on("detached");
+ }
+ return isSupportedModule;
+ }
+ return true;
+ });
+ this.compile();
+ this.v4Constructor = true;
+ }
+ }
+ getModuleApiVersion() {
+ return currentModuleApiVersion.join(".");
+ }
+ verifyApiVersion(neededVersion) {
+ neededVersion = neededVersion.split(".").map(function (i) {
+ return parseInt(i, 10);
+ });
+ if (neededVersion.length !== 3) {
+ throwApiVersionError("neededVersion is not a valid version", {
+ neededVersion,
+ explanation: "the neededVersion must be an array of length 3",
+ });
+ }
+ if (neededVersion[0] !== currentModuleApiVersion[0]) {
+ throwApiVersionError(
+ "The major api version do not match, you probably have to update docxtemplater with npm install --save docxtemplater",
+ {
+ neededVersion,
+ currentModuleApiVersion,
+ explanation: `moduleAPIVersionMismatch : needed=${neededVersion.join(
+ "."
+ )}, current=${currentModuleApiVersion.join(".")}`,
+ }
+ );
+ }
+ if (neededVersion[1] > currentModuleApiVersion[1]) {
+ throwApiVersionError(
+ "The minor api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",
+ {
+ neededVersion,
+ currentModuleApiVersion,
+ explanation: `moduleAPIVersionMismatch : needed=${neededVersion.join(
+ "."
+ )}, current=${currentModuleApiVersion.join(".")}`,
+ }
+ );
+ }
+ if (
+ neededVersion[1] === currentModuleApiVersion[1] &&
+ neededVersion[2] > currentModuleApiVersion[2]
+ ) {
+ throwApiVersionError(
+ "The patch api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",
+ {
+ neededVersion,
+ currentModuleApiVersion,
+ explanation: `moduleAPIVersionMismatch : needed=${neededVersion.join(
+ "."
+ )}, current=${currentModuleApiVersion.join(".")}`,
+ }
+ );
+ }
+ return true;
+ }
+ setModules(obj) {
+ this.modules.forEach((module) => {
+ module.set(obj);
+ });
+ }
+ sendEvent(eventName) {
+ this.modules.forEach((module) => {
+ module.on(eventName);
+ });
+ }
+ attachModule(module, options = {}) {
+ if (this.v4Constructor) {
+ throw new Error(
+ "attachModule() should not be called manually when using the v4 constructor"
+ );
+ }
+ if (module.requiredAPIVersion) {
+ this.verifyApiVersion(module.requiredAPIVersion);
+ }
+ if (module.attached === true) {
+ throw new Error(
+ `Cannot attach a module that was already attached : "${module.name}". Maybe you are instantiating the module at the root level, and using it for multiple instances of Docxtemplater`
+ );
+ }
+ module.attached = true;
+ const { prefix } = options;
+ if (prefix) {
+ module.prefix = prefix;
+ }
+ const wrappedModule = moduleWrapper(module);
+ this.modules.push(wrappedModule);
+ wrappedModule.on("attached");
+ return this;
+ }
+ setOptions(options) {
+ if (this.v4Constructor) {
+ throw new Error(
+ "setOptions() should not be called manually when using the v4 constructor"
+ );
+ }
+ if (!options) {
+ throw new Error(
+ "setOptions should be called with an object as first parameter"
+ );
+ }
+ if (options.delimiters) {
+ options.delimiters.start = utf8ToWord(options.delimiters.start);
+ options.delimiters.end = utf8ToWord(options.delimiters.end);
+ }
+ this.options = {};
+ Object.keys(defaults).forEach((key) => {
+ const defaultValue = defaults[key];
+ this.options[key] = options[key] != null ? options[key] : defaultValue;
+ this[key] = this.options[key];
+ });
+ if (this.zip) {
+ this.updateFileTypeConfig();
+ }
+ return this;
+ }
+ loadZip(zip) {
+ if (zip.loadAsync) {
+ throw new XTInternalError(
+ "Docxtemplater doesn't handle JSZip version >=3, please use pizzip"
+ );
+ }
+ this.zip = zip;
+ this.updateFileTypeConfig();
+
+ this.modules = concatArrays([
+ this.fileTypeConfig.baseModules.map(function (moduleFunction) {
+ return moduleFunction();
+ }),
+ this.modules,
+ ]);
+ return this;
+ }
+ compileFile(fileName) {
+ this.compiled[fileName].parse();
+ }
+ precompileFile(fileName) {
+ const currentFile = this.createTemplateClass(fileName);
+ currentFile.preparse();
+ this.compiled[fileName] = currentFile;
+ }
+ resolveData(data) {
+ let errors = [];
+ if (!Object.keys(this.compiled).length) {
+ throwResolveBeforeCompile();
+ }
+ return Promise.resolve(data)
+ .then((data) => {
+ return Promise.all(
+ Object.keys(this.compiled).map((from) => {
+ const currentFile = this.compiled[from];
+ return currentFile.resolveTags(data).catch(function (errs) {
+ errors = errors.concat(errs);
+ });
+ })
+ );
+ })
+ .then((resolved) => {
+ if (errors.length !== 0) {
+ throwMultiError(errors);
+ }
+ return concatArrays(resolved);
+ });
+ }
+ compile() {
+ if (Object.keys(this.compiled).length) {
+ return this;
+ }
+ this.options = this.modules.reduce((options, module) => {
+ return module.optionsTransformer(options, this);
+ }, this.options);
+ this.options.xmlFileNames = unique(this.options.xmlFileNames);
+ this.xmlDocuments = this.options.xmlFileNames.reduce(
+ (xmlDocuments, fileName) => {
+ const content = this.zip.files[fileName].asText();
+ xmlDocuments[fileName] = str2xml(content);
+ return xmlDocuments;
+ },
+ {}
+ );
+ this.setModules({
+ zip: this.zip,
+ xmlDocuments: this.xmlDocuments,
+ });
+ this.getTemplatedFiles();
+ this.setModules({ compiled: this.compiled });
+ // Loop inside all templatedFiles (ie xml files with content).
+ // Sometimes they don't exist (footer.xml for example)
+ this.templatedFiles.forEach((fileName) => {
+ if (this.zip.files[fileName] != null) {
+ this.precompileFile(fileName);
+ }
+ });
+ this.templatedFiles.forEach((fileName) => {
+ if (this.zip.files[fileName] != null) {
+ this.compileFile(fileName);
+ }
+ });
+ verifyErrors(this);
+ return this;
+ }
+ updateFileTypeConfig() {
+ let fileType;
+ if (this.zip.files.mimetype) {
+ fileType = "odt";
+ }
+ const contentTypes = this.zip.files[ctXML];
+ this.targets = [];
+ const contentTypeXml = contentTypes ? str2xml(contentTypes.asText()) : null;
+ const overrides = contentTypeXml
+ ? contentTypeXml.getElementsByTagName("Override")
+ : null;
+ const defaults = contentTypeXml
+ ? contentTypeXml.getElementsByTagName("Default")
+ : null;
+ if (contentTypeXml) {
+ this.filesContentTypes = collectContentTypes(
+ overrides,
+ defaults,
+ this.zip
+ );
+ this.invertedContentTypes = DocUtils.invertMap(this.filesContentTypes);
+ this.setModules({
+ contentTypes: this.contentTypes,
+ invertedContentTypes: this.invertedContentTypes,
+ });
+ }
+ this.modules.forEach((module) => {
+ fileType =
+ module.getFileType({
+ zip: this.zip,
+ contentTypes,
+ contentTypeXml,
+ overrides,
+ defaults,
+ doc: this,
+ }) || fileType;
+ });
+ if (fileType === "odt") {
+ throwFileTypeNotHandled(fileType);
+ }
+ if (!fileType) {
+ throwFileTypeNotIdentified();
+ }
+
+ this.fileType = fileType;
+
+ this.fileTypeConfig =
+ this.options.fileTypeConfig ||
+ this.fileTypeConfig ||
+ Docxtemplater.FileTypeConfig[this.fileType];
+ return this;
+ }
+ render() {
+ this.compile();
+ if (this.errors.length > 0) {
+ throwRenderInvalidTemplate();
+ }
+ this.setModules({
+ data: this.data,
+ Lexer,
+ });
+ this.mapper = this.modules.reduce(function (value, module) {
+ return module.getRenderedMap(value);
+ }, {});
+
+ this.fileTypeConfig.tagsXmlLexedArray = unique(
+ this.fileTypeConfig.tagsXmlLexedArray
+ );
+ this.fileTypeConfig.tagsXmlTextArray = unique(
+ this.fileTypeConfig.tagsXmlTextArray
+ );
+
+ Object.keys(this.mapper).forEach((to) => {
+ const { from, data } = this.mapper[to];
+ const currentFile = this.compiled[from];
+ currentFile.setTags(data);
+ currentFile.render(to);
+ this.zip.file(to, currentFile.content, { createFolders: true });
+ });
+
+ verifyErrors(this);
+ this.sendEvent("syncing-zip");
+ this.syncZip();
+ return this;
+ }
+ syncZip() {
+ Object.keys(this.xmlDocuments).forEach((fileName) => {
+ this.zip.remove(fileName);
+ const content = xml2str(this.xmlDocuments[fileName]);
+ return this.zip.file(fileName, content, { createFolders: true });
+ });
+ }
+ setData(data) {
+ this.data = data;
+ return this;
+ }
+ getZip() {
+ return this.zip;
+ }
+ createTemplateClass(path) {
+ const content = this.zip.files[path].asText();
+ return this.createTemplateClassFromContent(content, path);
+ }
+ createTemplateClassFromContent(content, filePath) {
+ const xmltOptions = {
+ filePath,
+ contentType: this.filesContentTypes[filePath],
+ };
+ Object.keys(defaults)
+ .concat(["filesContentTypes", "fileTypeConfig", "modules"])
+ .forEach((key) => {
+ xmltOptions[key] = this[key];
+ });
+ return new Docxtemplater.XmlTemplater(content, xmltOptions);
+ }
+ getFullText(path) {
+ return this.createTemplateClass(
+ path || this.fileTypeConfig.textPath(this)
+ ).getFullText();
+ }
+ getTemplatedFiles() {
+ this.templatedFiles = this.fileTypeConfig.getTemplatedFiles(this.zip);
+ this.targets.forEach((target) => {
+ this.templatedFiles.push(target);
+ });
+ return this.templatedFiles;
+ }
+};
+
+function verifyErrors(doc) {
+ const compiled = doc.compiled;
+ let allErrors = [];
+ Object.keys(compiled).forEach((name) => {
+ const templatePart = compiled[name];
+ allErrors = concatArrays([allErrors, templatePart.allErrors]);
+ });
+ doc.errors = allErrors;
+
+ if (allErrors.length !== 0) {
+ throwMultiError(allErrors);
+ }
+}
+
+Docxtemplater.DocUtils = DocUtils;
+Docxtemplater.Errors = require("./errors");
+Docxtemplater.XmlTemplater = require("./xml-templater");
+Docxtemplater.FileTypeConfig = require("./file-type-config");
+Docxtemplater.XmlMatcher = require("./xml-matcher");
+module.exports = Docxtemplater;
diff --git a/es6/docxtemplater.test-d.ts b/es6/docxtemplater.test-d.ts
new file mode 100644
index 0000000..c203525
--- /dev/null
+++ b/es6/docxtemplater.test-d.ts
@@ -0,0 +1,77 @@
+import Docxtemplater, {DXT} from "./docxtemplater";
+const PizZip: any = require('pizzip');
+import {expectType, expectError} from 'tsd';
+const doc1 = new Docxtemplater({}, {delimiters: { start: '[[', end: ']]'},
+ nullGetter: function(part) {
+ expectError(part.foobar);
+ if (part.module === "rawxml") {
+ return "";
+ }
+ if (part.type === "placeholder" && part.value === "foobar") {
+ return "{Foobar}"
+ }
+ return "Hello";
+ },
+});
+doc1.setData({foo: "bar"});
+doc1.attachModule({
+ set: function() {
+
+ },
+ parse: function(placeHolderContent) {
+ if (placeHolderContent.indexOf(":hello") === 0) {
+ return {
+ type: "placeholder",
+ module: "mycustomModule",
+ value: placeHolderContent.substr(7),
+ isEmpty: "foobar",
+ }
+ }
+ return null;
+ },
+ getFoobar: function() {
+
+ }
+});
+doc1.render()
+
+expectError(doc1.foobar())
+expectError(new Docxtemplater(1,2))
+expectError(new Docxtemplater({}, {delimiters: { start: 1, end: ']]'}}))
+expectError(new Docxtemplater({}, {delimiters: { start: '[['}}))
+
+const doc2 = new Docxtemplater();
+doc2.loadZip(new PizZip("hello"));
+
+// Error because parser should return a {get: fn} object
+expectError(doc2.setOptions({
+ parser: function(tag) {
+ return 10;
+ }
+}));
+
+doc2.setOptions({
+ parser: function(tag) {
+ expectType(tag)
+ return {
+ get: function(scope, context) {
+ const first = context.scopeList[0]
+ expectType(context.num)
+ expectError(context.foobar);
+ if (context.meta.part.value === tag) {
+ return scope[context.meta.part.value];
+ }
+ expectError(context.meta.part.other);
+ return scope[tag];
+ }
+ }
+ }
+});
+
+const doc3 = new Docxtemplater();
+doc3.loadZip(new PizZip("hello"));
+doc3.compile();
+doc3.resolveData({a: "b"}).then(function() {
+ doc3.render();
+});
+
diff --git a/es6/error-logger.js b/es6/error-logger.js
new file mode 100644
index 0000000..9506e90
--- /dev/null
+++ b/es6/error-logger.js
@@ -0,0 +1,27 @@
+// The error thrown here contains additional information when logged with JSON.stringify (it contains a properties object containing all suberrors).
+function replaceErrors(key, value) {
+ if (value instanceof Error) {
+ return Object.getOwnPropertyNames(value).reduce(function (error, key) {
+ error[key] = value[key];
+ return error;
+ }, {});
+ }
+ return value;
+}
+
+function logger(error) {
+ // eslint-disable-next-line no-console
+ console.log(JSON.stringify({ error }, replaceErrors));
+ if (error.properties && error.properties.errors instanceof Array) {
+ const errorMessages = error.properties.errors
+ .map(function (error) {
+ return error.properties.explanation;
+ })
+ .join("\n");
+ // eslint-disable-next-line no-console
+ console.log("errorMessages", errorMessages);
+ // errorMessages is a humanly readable message looking like this :
+ // 'The tag beginning with "foobar" is unopened'
+ }
+}
+module.exports = logger;
diff --git a/es6/errors.js b/es6/errors.js
new file mode 100644
index 0000000..5affac8
--- /dev/null
+++ b/es6/errors.js
@@ -0,0 +1,394 @@
+"use strict";
+const { last, first } = require("./utils");
+
+function XTError(message) {
+ this.name = "GenericError";
+ this.message = message;
+ this.stack = new Error(message).stack;
+}
+XTError.prototype = Error.prototype;
+
+function XTTemplateError(message) {
+ this.name = "TemplateError";
+ this.message = message;
+ this.stack = new Error(message).stack;
+}
+XTTemplateError.prototype = new XTError();
+
+function XTRenderingError(message) {
+ this.name = "RenderingError";
+ this.message = message;
+ this.stack = new Error(message).stack;
+}
+XTRenderingError.prototype = new XTError();
+
+function XTScopeParserError(message) {
+ this.name = "ScopeParserError";
+ this.message = message;
+ this.stack = new Error(message).stack;
+}
+XTScopeParserError.prototype = new XTError();
+
+function XTInternalError(message) {
+ this.name = "InternalError";
+ this.properties = { explanation: "InternalError" };
+ this.message = message;
+ this.stack = new Error(message).stack;
+}
+XTInternalError.prototype = new XTError();
+
+function XTAPIVersionError(message) {
+ this.name = "APIVersionError";
+ this.properties = { explanation: "APIVersionError" };
+ this.message = message;
+ this.stack = new Error(message).stack;
+}
+XTAPIVersionError.prototype = new XTError();
+
+function throwApiVersionError(msg, properties) {
+ const err = new XTAPIVersionError(msg);
+ err.properties = {
+ id: "api_version_error",
+ ...properties,
+ };
+ throw err;
+}
+
+function throwMultiError(errors) {
+ const err = new XTTemplateError("Multi error");
+ err.properties = {
+ errors,
+ id: "multi_error",
+ explanation: "The template has multiple errors",
+ };
+ throw err;
+}
+
+function getUnopenedTagException(options) {
+ const err = new XTTemplateError("Unopened tag");
+ err.properties = {
+ xtag: last(options.xtag.split(" ")),
+ id: "unopened_tag",
+ context: options.xtag,
+ offset: options.offset,
+ lIndex: options.lIndex,
+ explanation: `The tag beginning with "${options.xtag.substr(
+ 0,
+ 10
+ )}" is unopened`,
+ };
+ return err;
+}
+
+function getDuplicateOpenTagException(options) {
+ const err = new XTTemplateError("Duplicate open tag, expected one open tag");
+ err.properties = {
+ xtag: first(options.xtag.split(" ")),
+ id: "duplicate_open_tag",
+ context: options.xtag,
+ offset: options.offset,
+ lIndex: options.lIndex,
+ explanation: `The tag beginning with "${options.xtag.substr(
+ 0,
+ 10
+ )}" has duplicate open tags`,
+ };
+ return err;
+}
+
+function getDuplicateCloseTagException(options) {
+ const err = new XTTemplateError(
+ "Duplicate close tag, expected one close tag"
+ );
+ err.properties = {
+ xtag: first(options.xtag.split(" ")),
+ id: "duplicate_close_tag",
+ context: options.xtag,
+ offset: options.offset,
+ lIndex: options.lIndex,
+ explanation: `The tag ending with "${options.xtag.substr(
+ 0,
+ 10
+ )}" has duplicate close tags`,
+ };
+ return err;
+}
+
+function getUnclosedTagException(options) {
+ const err = new XTTemplateError("Unclosed tag");
+ err.properties = {
+ xtag: first(options.xtag.split(" ")).substr(1),
+ id: "unclosed_tag",
+ context: options.xtag,
+ offset: options.offset,
+ lIndex: options.lIndex,
+ explanation: `The tag beginning with "${options.xtag.substr(
+ 0,
+ 10
+ )}" is unclosed`,
+ };
+ return err;
+}
+
+function throwXmlTagNotFound(options) {
+ const err = new XTTemplateError(
+ `No tag "${options.element}" was found at the ${options.position}`
+ );
+ const part = options.parsed[options.index];
+ err.properties = {
+ id: `no_xml_tag_found_at_${options.position}`,
+ explanation: `No tag "${options.element}" was found at the ${options.position}`,
+ offset: part.offset,
+ part,
+ parsed: options.parsed,
+ index: options.index,
+ element: options.element,
+ };
+ throw err;
+}
+
+function getCorruptCharactersException({ tag, value, offset }) {
+ const err = new XTRenderingError("There are some XML corrupt characters");
+ err.properties = {
+ id: "invalid_xml_characters",
+ xtag: tag,
+ value,
+ offset,
+ explanation: "There are some corrupt characters for the field ${tag}",
+ };
+ return err;
+}
+
+function throwContentMustBeString(type) {
+ const err = new XTInternalError("Content must be a string");
+ err.properties.id = "xmltemplater_content_must_be_string";
+ err.properties.type = type;
+ throw err;
+}
+
+function throwExpandNotFound(options) {
+ const {
+ part: { value, offset },
+ id = "raw_tag_outerxml_invalid",
+ message = "Raw tag not in paragraph",
+ } = options;
+ const { part } = options;
+ let {
+ explanation = `The tag "${value}" is not inside a paragraph`,
+ } = options;
+ if (typeof explanation === "function") {
+ explanation = explanation(part);
+ }
+ const err = new XTTemplateError(message);
+ err.properties = {
+ id,
+ explanation,
+ rootError: options.rootError,
+ xtag: value,
+ offset,
+ postparsed: options.postparsed,
+ expandTo: options.expandTo,
+ index: options.index,
+ };
+ throw err;
+}
+
+function throwRawTagShouldBeOnlyTextInParagraph(options) {
+ const err = new XTTemplateError(
+ "Raw tag should be the only text in paragraph"
+ );
+ const tag = options.part.value;
+ err.properties = {
+ id: "raw_xml_tag_should_be_only_text_in_paragraph",
+ explanation: `The raw tag "${tag}" should be the only text in this paragraph. This means that this tag should not be surrounded by any text or spaces.`,
+ xtag: tag,
+ offset: options.part.offset,
+ paragraphParts: options.paragraphParts,
+ };
+ throw err;
+}
+
+function getUnmatchedLoopException(options) {
+ const { location } = options;
+ const t = location === "start" ? "unclosed" : "unopened";
+ const T = location === "start" ? "Unclosed" : "Unopened";
+
+ const err = new XTTemplateError(`${T} loop`);
+ const tag = options.part.value;
+ err.properties = {
+ id: `${t}_loop`,
+ explanation: `The loop with tag "${tag}" is ${t}`,
+ xtag: tag,
+ offset: options.part.offset,
+ };
+ return err;
+}
+
+function getClosingTagNotMatchOpeningTag({ tags }) {
+ const err = new XTTemplateError("Closing tag does not match opening tag");
+ err.properties = {
+ id: "closing_tag_does_not_match_opening_tag",
+ explanation: `The tag "${tags[0].value}" is closed by the tag "${tags[1].value}"`,
+ openingtag: first(tags).value,
+ offset: [first(tags).offset, last(tags).offset],
+ closingtag: last(tags).value,
+ };
+ return err;
+}
+
+function getScopeCompilationError({ tag, rootError, offset }) {
+ const err = new XTScopeParserError("Scope parser compilation failed");
+ err.properties = {
+ id: "scopeparser_compilation_failed",
+ offset,
+ tag,
+ explanation: `The scope parser for the tag "${tag}" failed to compile`,
+ rootError,
+ };
+ return err;
+}
+
+function getScopeParserExecutionError({ tag, scope, error, offset }) {
+ const err = new XTScopeParserError("Scope parser execution failed");
+ err.properties = {
+ id: "scopeparser_execution_failed",
+ explanation: `The scope parser for the tag ${tag} failed to execute`,
+ scope,
+ offset,
+ tag,
+ rootError: error,
+ };
+ return err;
+}
+
+function getLoopPositionProducesInvalidXMLError({ tag, offset }) {
+ const err = new XTTemplateError(
+ `The position of the loop tags "${tag}" would produce invalid XML`
+ );
+ err.properties = {
+ tag,
+ id: "loop_position_invalid",
+ explanation: `The tags "${tag}" are misplaced in the document, for example one of them is in a table and the other one outside the table`,
+ offset,
+ };
+ return err;
+}
+
+function throwUnimplementedTagType(part, index) {
+ let errorMsg = `Unimplemented tag type "${part.type}"`;
+ if (part.module) {
+ errorMsg += ` "${part.module}"`;
+ }
+ const err = new XTTemplateError(errorMsg);
+ err.properties = {
+ part,
+ index,
+ id: "unimplemented_tag_type",
+ };
+ throw err;
+}
+
+function throwMalformedXml(part) {
+ const err = new XTInternalError("Malformed xml");
+ err.properties = {
+ part,
+ id: "malformed_xml",
+ };
+ throw err;
+}
+
+function throwLocationInvalid(part) {
+ throw new XTInternalError(
+ `Location should be one of "start" or "end" (given : ${part.location})`
+ );
+}
+
+function throwResolveBeforeCompile() {
+ const err = new XTInternalError(
+ "You must run `.compile()` before running `.resolveData()`"
+ );
+ err.properties = {
+ id: "resolve_before_compile",
+ };
+ throw err;
+}
+
+function throwRenderInvalidTemplate() {
+ const err = new XTInternalError(
+ "You should not call .render on a document that had compilation errors"
+ );
+ err.properties = {
+ id: "render_on_invalid_template",
+ };
+ throw err;
+}
+
+function throwFileTypeNotIdentified() {
+ const err = new XTInternalError(
+ "The filetype for this file could not be identified, is this file corrupted ?"
+ );
+ err.properties = {
+ id: "filetype_not_identified",
+ };
+ throw err;
+}
+
+function throwXmlInvalid(content, offset) {
+ const err = new XTTemplateError("An XML file has invalid xml");
+ err.properties = {
+ id: "file_has_invalid_xml",
+ content,
+ offset,
+ explanation: "The docx contains invalid XML, it is most likely corrupt",
+ };
+ throw err;
+}
+
+function throwFileTypeNotHandled(fileType) {
+ const err = new XTInternalError(
+ `The filetype "${fileType}" is not handled by docxtemplater`
+ );
+ err.properties = {
+ id: "filetype_not_handled",
+ explanation: `The file you are trying to generate is of type "${fileType}", but only docx and pptx formats are handled`,
+ fileType,
+ };
+ throw err;
+}
+
+module.exports = {
+ XTError,
+ XTTemplateError,
+ XTInternalError,
+ XTScopeParserError,
+ XTAPIVersionError,
+ // Remove this alias in v4
+ RenderingError: XTRenderingError,
+ XTRenderingError,
+
+ getClosingTagNotMatchOpeningTag,
+ getLoopPositionProducesInvalidXMLError,
+ getScopeCompilationError,
+ getScopeParserExecutionError,
+ getUnclosedTagException,
+ getUnopenedTagException,
+ getUnmatchedLoopException,
+ getDuplicateCloseTagException,
+ getDuplicateOpenTagException,
+ getCorruptCharactersException,
+
+ throwApiVersionError,
+ throwContentMustBeString,
+ throwFileTypeNotHandled,
+ throwFileTypeNotIdentified,
+ throwLocationInvalid,
+ throwMalformedXml,
+ throwMultiError,
+ throwExpandNotFound,
+ throwRawTagShouldBeOnlyTextInParagraph,
+ throwUnimplementedTagType,
+ throwXmlTagNotFound,
+ throwXmlInvalid,
+ throwResolveBeforeCompile,
+ throwRenderInvalidTemplate,
+};
diff --git a/es6/file-type-config.js b/es6/file-type-config.js
new file mode 100644
index 0000000..bf48546
--- /dev/null
+++ b/es6/file-type-config.js
@@ -0,0 +1,135 @@
+"use strict";
+
+const loopModule = require("./modules/loop");
+const spacePreserveModule = require("./modules/space-preserve");
+const rawXmlModule = require("./modules/rawxml");
+const expandPairTrait = require("./modules/expand-pair-trait");
+const render = require("./modules/render");
+
+const PptXFileTypeConfig = {
+ getTemplatedFiles(zip) {
+ const slideTemplates = zip
+ .file(/ppt\/(slideMasters)\/(slideMaster)\d+\.xml/)
+ .map(function (file) {
+ return file.name;
+ });
+ return slideTemplates.concat([
+ "ppt/presentation.xml",
+ "docProps/app.xml",
+ "docProps/core.xml",
+ ]);
+ },
+ textPath() {
+ return "ppt/slides/slide1.xml";
+ },
+ tagsXmlTextArray: [
+ "Company",
+ "HyperlinkBase",
+ "Manager",
+ "cp:category",
+ "cp:keywords",
+ "dc:creator",
+ "dc:description",
+ "dc:subject",
+ "dc:title",
+
+ "a:t",
+ "m:t",
+ "vt:lpstr",
+ ],
+ tagsXmlLexedArray: [
+ "p:sp",
+ "a:tc",
+ "a:tr",
+ "a:table",
+ "a:p",
+ "a:r",
+ "a:rPr",
+ "p:txBody",
+ "a:txBody",
+ ],
+ expandTags: [{ contains: "a:tc", expand: "a:tr" }],
+ onParagraphLoop: [{ contains: "a:p", expand: "a:p", onlyTextInTag: true }],
+ tagRawXml: "p:sp",
+ tagTextXml: "a:t",
+ baseModules: [loopModule, expandPairTrait, rawXmlModule, render],
+ tagShouldContain: [
+ { tag: "p:txBody", shouldContain: ["a:p"], value: "" },
+ { tag: "a:txBody", shouldContain: ["a:p"], value: "" },
+ ],
+};
+
+const DocXFileTypeConfig = {
+ getTemplatedFiles(zip) {
+ const baseTags = [
+ "docProps/core.xml",
+ "docProps/app.xml",
+ "word/settings.xml",
+ ];
+ const headerFooters = zip
+ .file(/word\/(header|footer)\d+\.xml/)
+ .map(function (file) {
+ return file.name;
+ });
+ return headerFooters.concat(baseTags);
+ },
+ textPath(doc) {
+ return doc.targets[0];
+ },
+ tagsXmlTextArray: [
+ "Company",
+ "HyperlinkBase",
+ "Manager",
+ "cp:category",
+ "cp:keywords",
+ "dc:creator",
+ "dc:description",
+ "dc:subject",
+ "dc:title",
+
+ "w:t",
+ "m:t",
+ "vt:lpstr",
+ ],
+ tagsXmlLexedArray: [
+ "w:proofState",
+ "w:tc",
+ "w:tr",
+ "w:table",
+ "w:p",
+ "w:r",
+ "w:br",
+ "w:rPr",
+ "w:pPr",
+ "w:spacing",
+ "w:sdtContent",
+
+ "w:sectPr",
+ "w:headerReference",
+ "w:footerReference",
+ ],
+ expandTags: [{ contains: "w:tc", expand: "w:tr" }],
+ onParagraphLoop: [{ contains: "w:p", expand: "w:p", onlyTextInTag: true }],
+ tagRawXml: "w:p",
+ tagTextXml: "w:t",
+ baseModules: [
+ loopModule,
+ spacePreserveModule,
+ expandPairTrait,
+ rawXmlModule,
+ render,
+ ],
+ tagShouldContain: [
+ { tag: "w:tc", shouldContain: ["w:p"], value: "" },
+ {
+ tag: "w:sdtContent",
+ shouldContain: ["w:p", "w:r"],
+ value: "",
+ },
+ ],
+};
+
+module.exports = {
+ docx: DocXFileTypeConfig,
+ pptx: PptXFileTypeConfig,
+};
diff --git a/es6/inspect-module.js b/es6/inspect-module.js
new file mode 100644
index 0000000..094a222
--- /dev/null
+++ b/es6/inspect-module.js
@@ -0,0 +1,109 @@
+const { merge, cloneDeep } = require("lodash");
+
+function isPlaceholder(part) {
+ return part.type === "placeholder";
+}
+
+function getTags(postParsed) {
+ return postParsed.filter(isPlaceholder).reduce(function (tags, part) {
+ tags[part.value] = tags[part.value] || {};
+ if (part.subparsed) {
+ tags[part.value] = merge(tags[part.value], getTags(part.subparsed));
+ }
+ return tags;
+ }, {});
+}
+
+function getStructuredTags(postParsed) {
+ return postParsed.filter(isPlaceholder).map(function (part) {
+ if (part.subparsed) {
+ part.subparsed = getStructuredTags(part.subparsed);
+ }
+ return part;
+ }, {});
+}
+
+class InspectModule {
+ constructor() {
+ this.inspect = {};
+ this.fullInspected = {};
+ this.filePath = null;
+ this.nullValues = [];
+ }
+ optionsTransformer(options, docxtemplater) {
+ this.fileTypeConfig = docxtemplater.fileTypeConfig;
+ this.zip = docxtemplater.zip;
+ this.targets = docxtemplater.targets;
+ this.templatedFiles = docxtemplater.getTemplatedFiles();
+ this.fileType = docxtemplater.fileType;
+ return options;
+ }
+ on(eventName) {
+ if (eventName === "attached") {
+ this.attached = false;
+ this.inspect = {};
+ this.fullInspected = {};
+ this.filePath = null;
+ this.nullValues = [];
+ }
+ }
+ // eslint-disable-next-line complexity
+ set(obj) {
+ if (obj.data) {
+ this.inspect.tags = obj.data;
+ }
+ if (obj.inspect) {
+ if (obj.inspect.filePath) {
+ this.filePath = obj.inspect.filePath;
+ this.inspect = this.fullInspected[this.filePath] || {};
+ } else if (obj.inspect.content) {
+ this.inspect.content = obj.inspect.content;
+ } else if (obj.inspect.postparsed) {
+ this.inspect.postparsed = cloneDeep(obj.inspect.postparsed);
+ } else if (obj.inspect.parsed) {
+ this.inspect.parsed = cloneDeep(obj.inspect.parsed);
+ } else if (obj.inspect.lexed) {
+ this.inspect.lexed = cloneDeep(obj.inspect.lexed);
+ } else if (obj.inspect.xmllexed) {
+ this.inspect.xmllexed = cloneDeep(obj.inspect.xmllexed);
+ } else if (obj.inspect.resolved) {
+ this.inspect.resolved = obj.inspect.resolved;
+ }
+ this.fullInspected[this.filePath] = this.inspect;
+ }
+ }
+ nullGetter(part, scopeManager, xt) {
+ const inspected = this.fullInspected[xt.filePath];
+ inspected.nullValues = inspected.nullValues || { summary: [], detail: [] };
+ inspected.nullValues.detail.push({ part, scopeManager });
+ inspected.nullValues.summary.push(
+ scopeManager.scopePath.concat(part.value)
+ );
+ }
+ getTags(file) {
+ file = file || this.fileTypeConfig.textPath(this);
+ return getTags(cloneDeep(this.fullInspected[file].postparsed));
+ }
+ getAllTags() {
+ return Object.keys(this.fullInspected).reduce((result, file) => {
+ return merge(result, this.getTags(file));
+ }, {});
+ }
+ getStructuredTags(file) {
+ file = file || this.fileTypeConfig.textPath(this);
+ return getStructuredTags(cloneDeep(this.fullInspected[file].postparsed));
+ }
+ getAllStructuredTags() {
+ return Object.keys(this.fullInspected).reduce((result, file) => {
+ return result.concat(this.getStructuredTags(file));
+ }, []);
+ }
+ getFileType() {
+ return this.fileType;
+ }
+ getTemplatedFiles() {
+ return this.templatedFiles;
+ }
+}
+
+module.exports = () => new InspectModule();
diff --git a/es6/join-uncorrupt.js b/es6/join-uncorrupt.js
new file mode 100644
index 0000000..33ff1f1
--- /dev/null
+++ b/es6/join-uncorrupt.js
@@ -0,0 +1,45 @@
+function joinUncorrupt(parts, contains) {
+ // Before doing this "uncorruption" method here, this was done with the `part.emptyValue` trick, however, there were some corruptions that were not handled, for example with a template like this :
+ //
+ // ------------------------------------------------
+ // | {-w:p falsy}My para{/falsy} | |
+ // | {-w:p falsy}My para{/falsy} | |
+ // ------------------------------------------------
+ let collecting = "";
+ let currentlyCollecting = -1;
+ return parts.reduce(function (full, part) {
+ for (let i = 0, len = contains.length; i < len; i++) {
+ const { tag, shouldContain, value } = contains[i];
+ const startTagRegex = new RegExp(`^(<(${tag})[^>]*>)$`, "g");
+ if (currentlyCollecting === i) {
+ if (part === `${tag}>`) {
+ currentlyCollecting = -1;
+ return full + collecting + value + part;
+ }
+ collecting += part;
+ for (let j = 0, len2 = shouldContain.length; j < len2; j++) {
+ const sc = shouldContain[j];
+ if (
+ part.indexOf(`<${sc} `) !== -1 ||
+ part.indexOf(`<${sc}>`) !== -1
+ ) {
+ currentlyCollecting = -1;
+ return full + collecting;
+ }
+ }
+ return full;
+ }
+ if (currentlyCollecting === -1 && startTagRegex.test(part)) {
+ if (part[part.length - 2] === "/") {
+ return full;
+ }
+ currentlyCollecting = i;
+ collecting = part;
+ return full;
+ }
+ }
+ return full + part;
+ }, "");
+}
+
+module.exports = joinUncorrupt;
diff --git a/es6/lexer.js b/es6/lexer.js
new file mode 100644
index 0000000..0289232
--- /dev/null
+++ b/es6/lexer.js
@@ -0,0 +1,433 @@
+const {
+ getUnclosedTagException,
+ getUnopenedTagException,
+ getDuplicateOpenTagException,
+ getDuplicateCloseTagException,
+ throwMalformedXml,
+ throwXmlInvalid,
+} = require("./errors");
+const { concatArrays, isTextStart, isTextEnd } = require("./doc-utils");
+
+const NONE = -2;
+const EQUAL = 0;
+const START = -1;
+const END = 1;
+
+function inRange(range, match) {
+ return range[0] <= match.offset && match.offset < range[1];
+}
+
+function updateInTextTag(part, inTextTag) {
+ if (isTextStart(part)) {
+ if (inTextTag) {
+ throwMalformedXml(part);
+ }
+ return true;
+ }
+ if (isTextEnd(part)) {
+ if (!inTextTag) {
+ throwMalformedXml(part);
+ }
+ return false;
+ }
+ return inTextTag;
+}
+
+function getTag(tag) {
+ let position = "";
+ let start = 1;
+ let end = tag.indexOf(" ");
+ if (tag[tag.length - 2] === "/") {
+ position = "selfclosing";
+ if (end === -1) {
+ end = tag.length - 2;
+ }
+ } else if (tag[1] === "/") {
+ start = 2;
+ position = "end";
+ if (end === -1) {
+ end = tag.length - 1;
+ }
+ } else {
+ position = "start";
+ if (end === -1) {
+ end = tag.length - 1;
+ }
+ }
+ return {
+ tag: tag.slice(start, end),
+ position,
+ };
+}
+
+function tagMatcher(content, textMatchArray, othersMatchArray) {
+ let cursor = 0;
+ const contentLength = content.length;
+ const allMatches = concatArrays([
+ textMatchArray.map(function (tag) {
+ return { tag, text: true };
+ }),
+ othersMatchArray.map(function (tag) {
+ return { tag, text: false };
+ }),
+ ]).reduce(function (allMatches, t) {
+ allMatches[t.tag] = t.text;
+ return allMatches;
+ }, {});
+ const totalMatches = [];
+
+ while (cursor < contentLength) {
+ cursor = content.indexOf("<", cursor);
+ if (cursor === -1) {
+ break;
+ }
+ const offset = cursor;
+ const nextOpening = content.indexOf("<", cursor + 1);
+ cursor = content.indexOf(">", cursor);
+ if (cursor === -1 || (nextOpening !== -1 && cursor > nextOpening)) {
+ throwXmlInvalid(content, offset);
+ }
+ const tagText = content.slice(offset, cursor + 1);
+ const { tag, position } = getTag(tagText);
+ const text = allMatches[tag];
+ if (text == null) {
+ continue;
+ }
+ totalMatches.push({
+ type: "tag",
+ position,
+ text,
+ offset,
+ value: tagText,
+ tag,
+ });
+ }
+
+ return totalMatches;
+}
+
+function getDelimiterErrors(delimiterMatches, fullText, ranges) {
+ if (delimiterMatches.length === 0) {
+ return [];
+ }
+ const errors = [];
+ let inDelimiter = false;
+ let lastDelimiterMatch = { offset: 0 };
+ let xtag;
+ let rangeIndex = 0;
+ delimiterMatches.forEach(function (delimiterMatch) {
+ while (ranges[rangeIndex + 1]) {
+ if (ranges[rangeIndex + 1].offset > delimiterMatch.offset) {
+ break;
+ }
+ rangeIndex++;
+ }
+ xtag = fullText.substr(
+ lastDelimiterMatch.offset,
+ delimiterMatch.offset - lastDelimiterMatch.offset
+ );
+ if (
+ (delimiterMatch.position === "start" && inDelimiter) ||
+ (delimiterMatch.position === "end" && !inDelimiter)
+ ) {
+ if (delimiterMatch.position === "start") {
+ if (
+ lastDelimiterMatch.offset + lastDelimiterMatch.length ===
+ delimiterMatch.offset
+ ) {
+ xtag = fullText.substr(
+ lastDelimiterMatch.offset,
+ delimiterMatch.offset -
+ lastDelimiterMatch.offset +
+ lastDelimiterMatch.length +
+ 4
+ );
+ errors.push(
+ getDuplicateOpenTagException({
+ xtag,
+ offset: lastDelimiterMatch.offset,
+ })
+ );
+ } else {
+ errors.push(
+ getUnclosedTagException({ xtag, offset: lastDelimiterMatch.offset })
+ );
+ }
+ delimiterMatch.error = true;
+ } else {
+ if (
+ lastDelimiterMatch.offset + lastDelimiterMatch.length ===
+ delimiterMatch.offset
+ ) {
+ xtag = fullText.substr(
+ lastDelimiterMatch.offset - 4,
+ delimiterMatch.offset -
+ lastDelimiterMatch.offset +
+ 4 +
+ lastDelimiterMatch.length
+ );
+ errors.push(
+ getDuplicateCloseTagException({
+ xtag,
+ offset: lastDelimiterMatch.offset,
+ })
+ );
+ } else {
+ errors.push(
+ getUnopenedTagException({ xtag, offset: delimiterMatch.offset })
+ );
+ }
+ delimiterMatch.error = true;
+ }
+ } else {
+ inDelimiter = !inDelimiter;
+ }
+ lastDelimiterMatch = delimiterMatch;
+ });
+ const delimiterMatch = { offset: fullText.length };
+ xtag = fullText.substr(
+ lastDelimiterMatch.offset,
+ delimiterMatch.offset - lastDelimiterMatch.offset
+ );
+ if (inDelimiter) {
+ errors.push(
+ getUnclosedTagException({ xtag, offset: lastDelimiterMatch.offset })
+ );
+ delimiterMatch.error = true;
+ }
+ return errors;
+}
+
+function compareOffsets(startOffset, endOffset) {
+ if (startOffset === -1 && endOffset === -1) {
+ return NONE;
+ }
+ if (startOffset === endOffset) {
+ return EQUAL;
+ }
+ if (startOffset === -1 || endOffset === -1) {
+ return endOffset < startOffset ? START : END;
+ }
+ return startOffset < endOffset ? START : END;
+}
+
+function splitDelimiters(inside) {
+ const newDelimiters = inside.split(" ");
+ if (newDelimiters.length !== 2) {
+ throw new Error("New Delimiters cannot be parsed");
+ }
+ const [start, end] = newDelimiters;
+ if (start.length === 0 || end.length === 0) {
+ throw new Error("New Delimiters cannot be parsed");
+ }
+ return [start, end];
+}
+
+function getAllIndexes(fullText, delimiters) {
+ const indexes = [];
+ let { start, end } = delimiters;
+ let offset = -1;
+ let insideTag = false;
+ while (true) {
+ const startOffset = fullText.indexOf(start, offset + 1);
+ const endOffset = fullText.indexOf(end, offset + 1);
+ let position = null;
+ let len;
+ let compareResult = compareOffsets(startOffset, endOffset);
+ if (compareResult === NONE) {
+ return indexes;
+ }
+ if (compareResult === EQUAL) {
+ if (!insideTag) {
+ compareResult = START;
+ } else {
+ compareResult = END;
+ }
+ }
+ if (compareResult === END) {
+ insideTag = false;
+ offset = endOffset;
+ position = "end";
+ len = end.length;
+ }
+ if (compareResult === START) {
+ insideTag = true;
+ offset = startOffset;
+ position = "start";
+ len = start.length;
+ }
+ if (position === "start" && fullText[offset + start.length] === "=") {
+ indexes.push({
+ offset: startOffset,
+ position: "start",
+ length: start.length,
+ changedelimiter: true,
+ });
+ const nextEqual = fullText.indexOf("=", offset + start.length + 1);
+ const endOffset = fullText.indexOf(end, nextEqual + 1);
+
+ indexes.push({
+ offset: endOffset,
+ position: "end",
+ length: end.length,
+ changedelimiter: true,
+ });
+ const insideTag = fullText.substr(
+ offset + start.length + 1,
+ nextEqual - offset - start.length - 1
+ );
+ [start, end] = splitDelimiters(insideTag);
+ offset = endOffset;
+ continue;
+ }
+ indexes.push({ offset, position, length: len });
+ }
+}
+
+function parseDelimiters(innerContentParts, delimiters) {
+ const full = innerContentParts.map((p) => p.value).join("");
+ const delimiterMatches = getAllIndexes(full, delimiters);
+
+ let offset = 0;
+ const ranges = innerContentParts.map(function (part) {
+ offset += part.value.length;
+ return { offset: offset - part.value.length, lIndex: part.lIndex };
+ });
+
+ const errors = getDelimiterErrors(delimiterMatches, full, ranges);
+ let cutNext = 0;
+ let delimiterIndex = 0;
+
+ const parsed = ranges.map(function (p, i) {
+ const { offset } = p;
+ const range = [offset, offset + innerContentParts[i].value.length];
+ const partContent = innerContentParts[i].value;
+ const delimitersInOffset = [];
+ while (
+ delimiterIndex < delimiterMatches.length &&
+ inRange(range, delimiterMatches[delimiterIndex])
+ ) {
+ delimitersInOffset.push(delimiterMatches[delimiterIndex]);
+ delimiterIndex++;
+ }
+ const parts = [];
+ let cursor = 0;
+ if (cutNext > 0) {
+ cursor = cutNext;
+ cutNext = 0;
+ }
+ let insideDelimiterChange;
+ delimitersInOffset.forEach(function (delimiterInOffset) {
+ const value = partContent.substr(
+ cursor,
+ delimiterInOffset.offset - offset - cursor
+ );
+ if (value.length > 0) {
+ if (insideDelimiterChange) {
+ if (delimiterInOffset.changedelimiter) {
+ cursor =
+ delimiterInOffset.offset - offset + delimiterInOffset.length;
+ insideDelimiterChange = delimiterInOffset.position === "start";
+ }
+ return;
+ }
+ parts.push({ type: "content", value, offset: cursor + offset });
+ cursor += value.length;
+ }
+ const delimiterPart = {
+ type: "delimiter",
+ position: delimiterInOffset.position,
+ offset: cursor + offset,
+ };
+ if (delimiterInOffset.error) {
+ delimiterPart.error = delimiterInOffset.error;
+ }
+ if (delimiterInOffset.changedelimiter) {
+ insideDelimiterChange = delimiterInOffset.position === "start";
+ cursor = delimiterInOffset.offset - offset + delimiterInOffset.length;
+ return;
+ }
+ parts.push(delimiterPart);
+ cursor = delimiterInOffset.offset - offset + delimiterInOffset.length;
+ });
+ cutNext = cursor - partContent.length;
+ const value = partContent.substr(cursor);
+ if (value.length > 0) {
+ parts.push({ type: "content", value, offset });
+ }
+ return parts;
+ }, this);
+ return { parsed, errors };
+}
+
+function getContentParts(xmlparsed) {
+ let inTextTag = false;
+ const innerContentParts = [];
+ xmlparsed.forEach(function (part) {
+ inTextTag = updateInTextTag(part, inTextTag);
+ if (inTextTag && part.type === "content") {
+ innerContentParts.push(part);
+ }
+ });
+ return innerContentParts;
+}
+
+module.exports = {
+ parseDelimiters,
+ parse(xmlparsed, delimiters) {
+ let inTextTag = false;
+ const { parsed: delimiterParsed, errors } = parseDelimiters(
+ getContentParts(xmlparsed),
+ delimiters
+ );
+
+ let lexed = [];
+ let index = 0;
+ xmlparsed.forEach(function (part) {
+ inTextTag = updateInTextTag(part, inTextTag);
+ if (part.type === "content") {
+ part.position = inTextTag ? "insidetag" : "outsidetag";
+ }
+ if (inTextTag && part.type === "content") {
+ Array.prototype.push.apply(
+ lexed,
+ delimiterParsed[index].map(function (p) {
+ if (p.type === "content") {
+ p.position = "insidetag";
+ }
+ return p;
+ })
+ );
+ index++;
+ } else {
+ lexed.push(part);
+ }
+ });
+ lexed = lexed.map(function (p, i) {
+ p.lIndex = i;
+ return p;
+ });
+ return { errors, lexed };
+ },
+ xmlparse(content, xmltags) {
+ const matches = tagMatcher(content, xmltags.text, xmltags.other);
+ let cursor = 0;
+ const parsed = matches.reduce(function (parsed, match) {
+ const value = content.substr(cursor, match.offset - cursor);
+ if (value.length > 0) {
+ parsed.push({ type: "content", value });
+ }
+ cursor = match.offset + match.value.length;
+ delete match.offset;
+ if (match.value.length > 0) {
+ parsed.push(match);
+ }
+ return parsed;
+ }, []);
+ const value = content.substr(cursor);
+ if (value.length > 0) {
+ parsed.push({ type: "content", value });
+ }
+ return parsed;
+ },
+};
diff --git a/es6/mergesort.js b/es6/mergesort.js
new file mode 100644
index 0000000..09aa444
--- /dev/null
+++ b/es6/mergesort.js
@@ -0,0 +1,44 @@
+function getMinFromArrays(arrays, state) {
+ let minIndex = -1;
+ for (let i = 0, l = arrays.length; i < l; i++) {
+ if (state[i] >= arrays[i].length) {
+ continue;
+ }
+ if (
+ minIndex === -1 ||
+ arrays[i][state[i]].offset < arrays[minIndex][state[minIndex]].offset
+ ) {
+ minIndex = i;
+ }
+ }
+ if (minIndex === -1) {
+ throw new Error("minIndex negative");
+ }
+ return minIndex;
+}
+
+module.exports = function (arrays) {
+ const totalLength = arrays.reduce(function (sum, array) {
+ return sum + array.length;
+ }, 0);
+ arrays = arrays.filter(function (array) {
+ return array.length > 0;
+ });
+
+ const resultArray = new Array(totalLength);
+
+ const state = arrays.map(function () {
+ return 0;
+ });
+
+ let i = 0;
+
+ while (i <= totalLength - 1) {
+ const arrayIndex = getMinFromArrays(arrays, state);
+ resultArray[i] = arrays[arrayIndex][state[arrayIndex]];
+ state[arrayIndex]++;
+ i++;
+ }
+
+ return resultArray;
+};
diff --git a/es6/module-wrapper.js b/es6/module-wrapper.js
new file mode 100644
index 0000000..6c23721
--- /dev/null
+++ b/es6/module-wrapper.js
@@ -0,0 +1,35 @@
+function emptyFun() {}
+function identity(i) {
+ return i;
+}
+module.exports = function (module) {
+ const defaults = {
+ set: emptyFun,
+ parse: emptyFun,
+ render: emptyFun,
+ getTraits: emptyFun,
+ getFileType: emptyFun,
+ nullGetter: emptyFun,
+ optionsTransformer: identity,
+ postrender: identity,
+ errorsTransformer: identity,
+ getRenderedMap: identity,
+ preparse: identity,
+ postparse: identity,
+ on: emptyFun,
+ resolve: emptyFun,
+ };
+ if (
+ Object.keys(defaults).every(function (key) {
+ return !module[key];
+ })
+ ) {
+ throw new Error(
+ "This module cannot be wrapped, because it doesn't define any of the necessary functions"
+ );
+ }
+ Object.keys(defaults).forEach(function (key) {
+ module[key] = module[key] || defaults[key];
+ });
+ return module;
+};
diff --git a/es6/modules/common.js b/es6/modules/common.js
new file mode 100644
index 0000000..1f5b7b0
--- /dev/null
+++ b/es6/modules/common.js
@@ -0,0 +1,47 @@
+const wrapper = require("../module-wrapper");
+const { concatArrays } = require("../doc-utils");
+const docxContentType =
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml";
+const docxmContentType =
+ "application/vnd.ms-word.document.macroEnabled.main+xml";
+const pptxContentType =
+ "application/vnd.openxmlformats-officedocument.presentationml.slide+xml";
+const dotxContentType =
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml";
+const dotmContentType =
+ "application/vnd.ms-word.template.macroEnabledTemplate.main+xml";
+
+const filetypes = {
+ docx: [docxContentType, docxmContentType, dotxContentType, dotmContentType],
+ pptx: [pptxContentType],
+};
+
+class Common {
+ constructor() {
+ this.name = "Common";
+ }
+ set({ invertedContentTypes }) {
+ if (invertedContentTypes) {
+ this.invertedContentTypes = invertedContentTypes;
+ }
+ }
+ getFileType({ doc }) {
+ const invertedContentTypes = this.invertedContentTypes;
+ if (!this.invertedContentTypes) {
+ return;
+ }
+ const keys = Object.keys(filetypes);
+ for (let i = 0, len = keys.length; i < len; i++) {
+ const ftCandidate = keys[i];
+ const contentTypes = filetypes[ftCandidate];
+ for (let j = 0, len2 = contentTypes.length; j < len2; j++) {
+ const ct = contentTypes[j];
+ if (invertedContentTypes[ct]) {
+ doc.targets = concatArrays([doc.targets, invertedContentTypes[ct]]);
+ return ftCandidate;
+ }
+ }
+ }
+ }
+}
+module.exports = () => wrapper(new Common());
diff --git a/es6/modules/expand-pair-trait.js b/es6/modules/expand-pair-trait.js
new file mode 100644
index 0000000..21801c4
--- /dev/null
+++ b/es6/modules/expand-pair-trait.js
@@ -0,0 +1,139 @@
+const traitName = "expandPair";
+const mergeSort = require("../mergesort");
+const { getLeft, getRight } = require("../doc-utils");
+
+const wrapper = require("../module-wrapper");
+const { getExpandToDefault } = require("../traits");
+const {
+ getUnmatchedLoopException,
+ getClosingTagNotMatchOpeningTag,
+ throwLocationInvalid,
+} = require("../errors");
+
+function getOpenCountChange(part) {
+ switch (part.location) {
+ case "start":
+ return 1;
+ case "end":
+ return -1;
+ default:
+ throwLocationInvalid(part);
+ }
+}
+
+function getPairs(traits) {
+ const errors = [];
+ let pairs = [];
+ if (traits.length === 0) {
+ return { pairs, errors };
+ }
+ let countOpen = 1;
+ const [firstTrait] = traits;
+ if (firstTrait.part.location === "start") {
+ for (let i = 1; i < traits.length; i++) {
+ const currentTrait = traits[i];
+ countOpen += getOpenCountChange(currentTrait.part);
+ if (countOpen === 0) {
+ const outer = getPairs(traits.slice(i + 1));
+ if (
+ currentTrait.part.value !== firstTrait.part.value &&
+ currentTrait.part.value !== ""
+ ) {
+ errors.push(
+ getClosingTagNotMatchOpeningTag({
+ tags: [firstTrait.part, currentTrait.part],
+ })
+ );
+ } else {
+ pairs = [[firstTrait, currentTrait]];
+ }
+ return {
+ pairs: pairs.concat(outer.pairs),
+ errors: errors.concat(outer.errors),
+ };
+ }
+ }
+ }
+ const { part } = firstTrait;
+ errors.push(getUnmatchedLoopException({ part, location: part.location }));
+ const outer = getPairs(traits.slice(1));
+ return { pairs: outer.pairs, errors: errors.concat(outer.errors) };
+}
+
+const expandPairTrait = {
+ name: "ExpandPairTrait",
+ optionsTransformer(options, docxtemplater) {
+ this.expandTags = docxtemplater.fileTypeConfig.expandTags.concat(
+ docxtemplater.options.paragraphLoop
+ ? docxtemplater.fileTypeConfig.onParagraphLoop
+ : []
+ );
+ return options;
+ },
+ postparse(postparsed, { getTraits, postparse }) {
+ let traits = getTraits(traitName, postparsed);
+ traits = traits.map(function (trait) {
+ return trait || [];
+ });
+ traits = mergeSort(traits);
+ const { pairs, errors } = getPairs(traits);
+ const expandedPairs = pairs.map((pair) => {
+ let { expandTo } = pair[0].part;
+ if (expandTo === "auto") {
+ const result = getExpandToDefault(postparsed, pair, this.expandTags);
+ if (result.error) {
+ errors.push(result.error);
+ }
+ expandTo = result.value;
+ }
+ if (!expandTo) {
+ return [pair[0].offset, pair[1].offset];
+ }
+ let left, right;
+ try {
+ left = getLeft(postparsed, expandTo, pair[0].offset);
+ } catch (e) {
+ errors.push(e);
+ }
+ try {
+ right = getRight(postparsed, expandTo, pair[1].offset);
+ } catch (e) {
+ errors.push(e);
+ }
+ return [left, right];
+ });
+
+ let currentPairIndex = 0;
+ let innerParts;
+
+ const newParsed = postparsed.reduce(function (newParsed, part, i) {
+ const inPair =
+ currentPairIndex < pairs.length &&
+ expandedPairs[currentPairIndex][0] <= i;
+ const pair = pairs[currentPairIndex];
+ const expandedPair = expandedPairs[currentPairIndex];
+ if (!inPair) {
+ newParsed.push(part);
+ return newParsed;
+ }
+ if (expandedPair[0] === i) {
+ innerParts = [];
+ }
+ if (pair[0].offset !== i && pair[1].offset !== i) {
+ innerParts.push(part);
+ }
+ if (expandedPair[1] === i) {
+ const basePart = postparsed[pair[0].offset];
+ basePart.subparsed = postparse(innerParts, { basePart });
+ delete basePart.location;
+ delete basePart.expandTo;
+ newParsed.push(basePart);
+ currentPairIndex++;
+ }
+ return newParsed;
+ }, []);
+ return { postparsed: newParsed, errors };
+ },
+};
+
+module.exports = () => wrapper(expandPairTrait);
diff --git a/es6/modules/loop.js b/es6/modules/loop.js
new file mode 100644
index 0000000..31e3e2e
--- /dev/null
+++ b/es6/modules/loop.js
@@ -0,0 +1,353 @@
+const {
+ mergeObjects,
+ chunkBy,
+ last,
+ isParagraphStart,
+ isParagraphEnd,
+ isContent,
+ startsWith,
+} = require("../doc-utils");
+const wrapper = require("../module-wrapper");
+
+const moduleName = "loop";
+
+function hasContent(parts) {
+ return parts.some(function (part) {
+ return isContent(part);
+ });
+}
+
+function getFirstMeaningFulPart(parsed) {
+ for (let i = 0, len = parsed.length; i < len; i++) {
+ if (parsed[i].type !== "content") {
+ return parsed[i];
+ }
+ }
+ return null;
+}
+
+function isInsideParagraphLoop(part) {
+ const firstMeaningfulPart = getFirstMeaningFulPart(part.subparsed);
+ return firstMeaningfulPart != null && firstMeaningfulPart.tag !== "w:t";
+}
+
+function getPageBreakIfApplies(part) {
+ if (part.hasPageBreak) {
+ if (isInsideParagraphLoop(part)) {
+ return '';
+ }
+ }
+ return "";
+}
+
+function isEnclosedByParagraphs(parsed) {
+ if (parsed.length === 0) {
+ return false;
+ }
+ return isParagraphStart(parsed[0]) && isParagraphEnd(last(parsed));
+}
+
+function getOffset(chunk) {
+ return hasContent(chunk) ? 0 : chunk.length;
+}
+
+function addPageBreakAtEnd(subRendered) {
+ let found = false;
+ let i = subRendered.parts.length - 1;
+ for (let j = subRendered.parts.length - 1; i >= 0; i--) {
+ const p = subRendered.parts[j];
+ if (p === "" && !found) {
+ found = true;
+ subRendered.parts.splice(j, 0, '');
+ break;
+ }
+ }
+
+ if (!found) {
+ subRendered.parts.push('');
+ }
+}
+
+function addPageBreakAtBeginning(subRendered) {
+ subRendered.parts.unshift('');
+}
+
+function dropHeaderFooterRefs(parts) {
+ return parts.filter(function (text) {
+ if (
+ startsWith(text, " 0) {
+ errorList.push(...errors);
+ }
+ return resolved;
+ });
+ })
+ .then(function (value) {
+ if (errorList.length > 0) {
+ throw errorList;
+ }
+ return value;
+ });
+ });
+ }
+}
+
+module.exports = () => wrapper(new LoopModule());
diff --git a/es6/modules/rawxml.js b/es6/modules/rawxml.js
new file mode 100644
index 0000000..135b817
--- /dev/null
+++ b/es6/modules/rawxml.js
@@ -0,0 +1,89 @@
+const traits = require("../traits");
+const { isContent } = require("../doc-utils");
+const { throwRawTagShouldBeOnlyTextInParagraph } = require("../errors");
+
+const moduleName = "rawxml";
+const wrapper = require("../module-wrapper");
+
+function getInner({ part, left, right, postparsed, index }) {
+ const paragraphParts = postparsed.slice(left + 1, right);
+ paragraphParts.forEach(function (p, i) {
+ if (i === index - left - 1) {
+ return;
+ }
+ if (isContent(p)) {
+ throwRawTagShouldBeOnlyTextInParagraph({ paragraphParts, part });
+ }
+ });
+ return part;
+}
+
+class RawXmlModule {
+ constructor() {
+ this.name = "RawXmlModule";
+ this.prefix = "@";
+ }
+ optionsTransformer(options, docxtemplater) {
+ this.fileTypeConfig = docxtemplater.fileTypeConfig;
+ return options;
+ }
+ parse(placeHolderContent, { match, getValue }) {
+ const type = "placeholder";
+ if (match(this.prefix, placeHolderContent)) {
+ return {
+ type,
+ value: getValue(this.prefix, placeHolderContent),
+ module: moduleName,
+ };
+ }
+ return null;
+ }
+ postparse(postparsed) {
+ return traits.expandToOne(postparsed, {
+ moduleName,
+ getInner,
+ expandTo: this.fileTypeConfig.tagRawXml,
+ error: {
+ message: "Raw tag not in paragraph",
+ id: "raw_tag_outerxml_invalid",
+ explanation: (part) =>
+ `The tag "${part.value}" is not inside a paragraph, putting raw tags inside an inline loop is disallowed.`,
+ },
+ });
+ }
+ render(part, options) {
+ if (part.module !== moduleName) {
+ return null;
+ }
+ let value;
+ const errors = [];
+ try {
+ value = options.scopeManager.getValue(part.value, { part });
+ if (value == null) {
+ value = options.nullGetter(part);
+ }
+ } catch (e) {
+ errors.push(e);
+ return { errors };
+ }
+ if (!value) {
+ return { value: "" };
+ }
+ return { value };
+ }
+ resolve(part, options) {
+ if (part.type !== "placeholder" || part.module !== moduleName) {
+ return null;
+ }
+ return options.scopeManager
+ .getValueAsync(part.value, { part })
+ .then(function (value) {
+ if (value == null) {
+ return options.nullGetter(part);
+ }
+ return value;
+ });
+ }
+}
+
+module.exports = () => wrapper(new RawXmlModule());
diff --git a/es6/modules/render.js b/es6/modules/render.js
new file mode 100644
index 0000000..7c6c691
--- /dev/null
+++ b/es6/modules/render.js
@@ -0,0 +1,123 @@
+const wrapper = require("../module-wrapper");
+const { getScopeCompilationError } = require("../errors");
+const { utf8ToWord, hasCorruptCharacters } = require("../doc-utils");
+const { getCorruptCharactersException } = require("../errors");
+
+const ftprefix = {
+ docx: "w",
+ pptx: "a",
+};
+
+class Render {
+ constructor() {
+ this.name = "Render";
+ this.recordRun = false;
+ this.recordedRun = [];
+ }
+ set(obj) {
+ if (obj.compiled) {
+ this.compiled = obj.compiled;
+ }
+ if (obj.data != null) {
+ this.data = obj.data;
+ }
+ }
+ getRenderedMap(mapper) {
+ return Object.keys(this.compiled).reduce((mapper, from) => {
+ mapper[from] = { from, data: this.data };
+ return mapper;
+ }, mapper);
+ }
+ optionsTransformer(options, docxtemplater) {
+ this.parser = docxtemplater.parser;
+ this.fileType = docxtemplater.fileType;
+ return options;
+ }
+ postparse(postparsed, options) {
+ const errors = [];
+ postparsed.forEach((p) => {
+ if (p.type === "placeholder") {
+ const tag = p.value;
+ try {
+ options.cachedParsers[p.lIndex] = this.parser(tag, { tag: p });
+ } catch (rootError) {
+ errors.push(
+ getScopeCompilationError({ tag, rootError, offset: p.offset })
+ );
+ }
+ }
+ });
+ return { postparsed, errors };
+ }
+ recordRuns(part) {
+ if (part.tag === `${ftprefix[this.fileType]}:r`) {
+ this.recordRun = false;
+ this.recordedRun = [];
+ } else if (part.tag === `${ftprefix[this.fileType]}:rPr`) {
+ if (part.position === "start") {
+ this.recordRun = true;
+ this.recordedRun = [part.value];
+ }
+ if (part.position === "end") {
+ this.recordedRun.push(part.value);
+ this.recordRun = false;
+ }
+ } else if (this.recordRun) {
+ this.recordedRun.push(part.value);
+ }
+ }
+ render(part, { scopeManager, linebreaks, nullGetter }) {
+ if (linebreaks) {
+ this.recordRuns(part);
+ }
+ if (part.type !== "placeholder" || part.module) {
+ return;
+ }
+ let value;
+ try {
+ value = scopeManager.getValue(part.value, { part });
+ } catch (e) {
+ return { errors: [e] };
+ }
+ if (value == null) {
+ value = nullGetter(part);
+ }
+ if (hasCorruptCharacters(value)) {
+ return {
+ errors: [
+ getCorruptCharactersException({
+ tag: part.value,
+ value,
+ offset: part.offset,
+ }),
+ ],
+ };
+ }
+ if (typeof value !== "string") {
+ value = value.toString();
+ }
+ if (linebreaks) {
+ return this.renderLineBreaks(value);
+ }
+ return { value: utf8ToWord(value) };
+ }
+ renderLineBreaks(value) {
+ const p = ftprefix[this.fileType];
+ const br = this.fileType === "docx" ? "" : "";
+ const lines = value.split("\n");
+ const runprops = this.recordedRun.join("");
+ return {
+ value: lines
+ .map(function (line) {
+ return utf8ToWord(line);
+ })
+ .join(
+ `${p}:t>${p}:r>${br}<${p}:r>${runprops}<${p}:t${
+ this.fileType === "docx" ? ' xml:space="preserve"' : ""
+ }>`
+ ),
+ };
+ }
+}
+
+module.exports = () => wrapper(new Render());
diff --git a/es6/modules/space-preserve.js b/es6/modules/space-preserve.js
new file mode 100644
index 0000000..a4e1253
--- /dev/null
+++ b/es6/modules/space-preserve.js
@@ -0,0 +1,104 @@
+const wrapper = require("../module-wrapper");
+const {
+ isTextStart,
+ isTextEnd,
+ endsWith,
+ startsWith,
+} = require("../doc-utils");
+const wTpreserve = '';
+const wTpreservelen = wTpreserve.length;
+const wtEnd = "";
+const wtEndlen = wtEnd.length;
+
+function isWtStart(part) {
+ return isTextStart(part) && part.tag === "w:t";
+}
+
+function addXMLPreserve(chunk, index) {
+ const tag = chunk[index].value;
+ if (chunk[index + 1].value === "") {
+ return tag;
+ }
+ if (tag.indexOf('xml:space="preserve"') !== -1) {
+ return tag;
+ }
+ return tag.substr(0, tag.length - 1) + ' xml:space="preserve">';
+}
+
+function isInsideLoop(meta, chunk) {
+ return meta && meta.basePart && chunk.length > 1;
+}
+
+const spacePreserve = {
+ name: "SpacePreserveModule",
+ postparse(postparsed, meta) {
+ let chunk = [],
+ inTextTag = false,
+ endLindex = 0,
+ lastTextTag = 0;
+ function isStartingPlaceHolder(part, chunk) {
+ return (
+ !endLindex &&
+ part.type === "placeholder" &&
+ (!part.module || part.module === "loop") &&
+ chunk.length > 1
+ );
+ }
+ const result = postparsed.reduce(function (postparsed, part) {
+ if (isWtStart(part)) {
+ inTextTag = true;
+ lastTextTag = chunk.length;
+ }
+ if (!inTextTag) {
+ postparsed.push(part);
+ return postparsed;
+ }
+ chunk.push(part);
+ if (isInsideLoop(meta, chunk)) {
+ endLindex = meta.basePart.endLindex;
+ chunk[0].value = addXMLPreserve(chunk, 0);
+ }
+ if (isStartingPlaceHolder(part, chunk)) {
+ endLindex = part.endLindex;
+ chunk[0].value = addXMLPreserve(chunk, 0);
+ }
+ if (isTextEnd(part) && part.lIndex > endLindex) {
+ if (endLindex !== 0) {
+ chunk[lastTextTag].value = addXMLPreserve(chunk, lastTextTag);
+ }
+ Array.prototype.push.apply(postparsed, chunk);
+ chunk = [];
+ inTextTag = false;
+ endLindex = 0;
+ lastTextTag = 0;
+ }
+ return postparsed;
+ }, []);
+ Array.prototype.push.apply(result, chunk);
+ return result;
+ },
+ postrender(parts) {
+ let lastNonEmpty = "";
+ let lastNonEmptyIndex = 0;
+ return parts.reduce(function (newParts, p, index) {
+ if (p === "") {
+ newParts.push(p);
+ return newParts;
+ }
+ if (p.indexOf('') !== -1) {
+ p = p.replace(/<\/w:t>/g, "");
+ }
+ if (endsWith(lastNonEmpty, wTpreserve) && startsWith(p, wtEnd)) {
+ newParts[lastNonEmptyIndex] =
+ lastNonEmpty.substr(0, lastNonEmpty.length - wTpreservelen) +
+ "";
+ p = p.substr(wtEndlen);
+ }
+ lastNonEmpty = p;
+ lastNonEmptyIndex = index;
+ newParts.push(p);
+ return newParts;
+ }, []);
+ },
+};
+module.exports = () => wrapper(spacePreserve);
diff --git a/es6/parser.js b/es6/parser.js
new file mode 100644
index 0000000..65b4485
--- /dev/null
+++ b/es6/parser.js
@@ -0,0 +1,115 @@
+const { wordToUtf8, concatArrays } = require("./doc-utils");
+const { match, getValue, getValues } = require("./prefix-matcher");
+
+function moduleParse(placeHolderContent, options) {
+ const modules = options.modules;
+ const startOffset = options.startOffset;
+ const endLindex = options.lIndex;
+ let moduleParsed;
+ options.offset = startOffset;
+ options.lIndex = endLindex;
+ options.match = match;
+ options.getValue = getValue;
+ options.getValues = getValues;
+
+ for (let i = 0, l = modules.length; i < l; i++) {
+ const module = modules[i];
+ moduleParsed = module.parse(placeHolderContent, options);
+ if (moduleParsed) {
+ moduleParsed.offset = startOffset;
+ moduleParsed.endLindex = endLindex;
+ moduleParsed.lIndex = endLindex;
+ moduleParsed.raw = placeHolderContent;
+ return moduleParsed;
+ }
+ }
+ return {
+ type: "placeholder",
+ value: placeHolderContent,
+ offset: startOffset,
+ endLindex,
+ lIndex: endLindex,
+ };
+}
+
+const parser = {
+ preparse(parsed, modules, options) {
+ function preparse(parsed, options) {
+ return modules.forEach(function (module) {
+ module.preparse(parsed, options);
+ });
+ }
+ return { preparsed: preparse(parsed, options) };
+ },
+ postparse(postparsed, modules, options) {
+ function getTraits(traitName, postparsed) {
+ return modules.map(function (module) {
+ return module.getTraits(traitName, postparsed);
+ });
+ }
+ let errors = [];
+ function postparse(postparsed, options) {
+ return modules.reduce(function (postparsed, module) {
+ const r = module.postparse(postparsed, {
+ ...options,
+ postparse: (parsed, opts) => {
+ return postparse(parsed, { ...options, ...opts });
+ },
+ getTraits,
+ });
+ if (r == null) {
+ return postparsed;
+ }
+ if (r.errors) {
+ errors = concatArrays([errors, r.errors]);
+ return r.postparsed;
+ }
+ return r;
+ }, postparsed);
+ }
+ return { postparsed: postparse(postparsed, options), errors };
+ },
+
+ parse(lexed, modules, options) {
+ let inPlaceHolder = false;
+ let placeHolderContent = "";
+ let startOffset;
+ let tailParts = [];
+ return lexed.reduce(function lexedToParsed(parsed, token) {
+ if (token.type === "delimiter") {
+ inPlaceHolder = token.position === "start";
+ if (token.position === "end") {
+ placeHolderContent = wordToUtf8(placeHolderContent);
+ options.parse = (placeHolderContent) =>
+ moduleParse(placeHolderContent, {
+ ...options,
+ ...token,
+ startOffset,
+ modules,
+ });
+ parsed.push(options.parse(placeHolderContent));
+ Array.prototype.push.apply(parsed, tailParts);
+ tailParts = [];
+ }
+ if (token.position === "start") {
+ tailParts = [];
+ startOffset = token.offset;
+ }
+ placeHolderContent = "";
+ return parsed;
+ }
+ if (!inPlaceHolder) {
+ parsed.push(token);
+ return parsed;
+ }
+ if (token.type !== "content" || token.position !== "insidetag") {
+ tailParts.push(token);
+ return parsed;
+ }
+ placeHolderContent += token.value;
+ return parsed;
+ }, []);
+ },
+};
+
+module.exports = parser;
diff --git a/es6/postrender.js b/es6/postrender.js
new file mode 100644
index 0000000..08fe176
--- /dev/null
+++ b/es6/postrender.js
@@ -0,0 +1,12 @@
+"use strict";
+
+function postrender(parts, options) {
+ for (let i = 0, l = options.modules.length; i < l; i++) {
+ const module = options.modules[i];
+ parts = module.postrender(parts, options);
+ }
+ const contains = options.fileTypeConfig.tagShouldContain || [];
+ return options.joinUncorrupt(parts, contains);
+}
+
+module.exports = postrender;
diff --git a/es6/prefix-matcher.js b/es6/prefix-matcher.js
new file mode 100644
index 0000000..d969002
--- /dev/null
+++ b/es6/prefix-matcher.js
@@ -0,0 +1,28 @@
+function match(condition, placeHolderContent) {
+ if (typeof condition === "string") {
+ return placeHolderContent.substr(0, condition.length) === condition;
+ }
+ if (condition instanceof RegExp) {
+ return condition.test(placeHolderContent);
+ }
+}
+function getValue(condition, placeHolderContent) {
+ if (typeof condition === "string") {
+ return placeHolderContent.substr(condition.length);
+ }
+ if (condition instanceof RegExp) {
+ return placeHolderContent.match(condition)[1];
+ }
+}
+
+function getValues(condition, placeHolderContent) {
+ if (condition instanceof RegExp) {
+ return placeHolderContent.match(condition);
+ }
+}
+
+module.exports = {
+ match,
+ getValue,
+ getValues,
+};
diff --git a/es6/proof-state-module.js b/es6/proof-state-module.js
new file mode 100644
index 0000000..ba076ef
--- /dev/null
+++ b/es6/proof-state-module.js
@@ -0,0 +1,18 @@
+module.exports = {
+ on(eventName) {
+ if (eventName === "attached") {
+ this.attached = false;
+ }
+ },
+ postparse(postparsed, { filePath }) {
+ if (filePath !== "word/settings.xml") {
+ return null;
+ }
+ return postparsed.map(function (part) {
+ if (part.type === "tag" && part.tag === "w:proofState") {
+ return { type: "content", value: "" };
+ }
+ return part;
+ });
+ },
+};
diff --git a/es6/render.js b/es6/render.js
new file mode 100644
index 0000000..dad734a
--- /dev/null
+++ b/es6/render.js
@@ -0,0 +1,48 @@
+"use strict";
+
+const { concatArrays } = require("./doc-utils");
+const { throwUnimplementedTagType } = require("./errors");
+
+function moduleRender(part, options) {
+ let moduleRendered;
+ for (let i = 0, l = options.modules.length; i < l; i++) {
+ const module = options.modules[i];
+ moduleRendered = module.render(part, options);
+ if (moduleRendered) {
+ return moduleRendered;
+ }
+ }
+ return false;
+}
+
+function render(options) {
+ const baseNullGetter = options.baseNullGetter;
+ const { compiled, scopeManager } = options;
+ options.nullGetter = (part, sm) => {
+ return baseNullGetter(part, sm || scopeManager);
+ };
+ if (!options.prefix) {
+ options.prefix = "";
+ }
+ if (options.index) {
+ options.prefix = options.prefix + options.index + "-";
+ }
+ let errors = [];
+ const parts = compiled.map(function (part, i) {
+ options.index = i;
+ const moduleRendered = moduleRender(part, options);
+ if (moduleRendered) {
+ if (moduleRendered.errors) {
+ errors = concatArrays([errors, moduleRendered.errors]);
+ }
+ return moduleRendered.value;
+ }
+ if (part.type === "content" || part.type === "tag") {
+ return part.value;
+ }
+ throwUnimplementedTagType(part, i);
+ });
+ return { errors, parts };
+}
+
+module.exports = render;
diff --git a/es6/resolve.js b/es6/resolve.js
new file mode 100644
index 0000000..cd81aca
--- /dev/null
+++ b/es6/resolve.js
@@ -0,0 +1,69 @@
+"use strict";
+
+function moduleResolve(part, options) {
+ let moduleResolved;
+ for (let i = 0, l = options.modules.length; i < l; i++) {
+ const module = options.modules[i];
+ moduleResolved = module.resolve(part, options);
+ if (moduleResolved) {
+ return moduleResolved;
+ }
+ }
+ return false;
+}
+
+function resolve(options) {
+ const resolved = [];
+ const baseNullGetter = options.baseNullGetter;
+ const { compiled, scopeManager } = options;
+ options.nullGetter = (part, sm) => {
+ return baseNullGetter(part, sm || scopeManager);
+ };
+ options.resolved = resolved;
+ const errors = [];
+ return Promise.all(
+ compiled
+ .filter(function (part) {
+ return ["content", "tag"].indexOf(part.type) === -1;
+ })
+ .reduce(function (promises, part) {
+ const moduleResolved = moduleResolve(part, options);
+ let result;
+ if (moduleResolved) {
+ result = moduleResolved.then(function (value) {
+ resolved.push({ tag: part.value, value, lIndex: part.lIndex });
+ });
+ } else if (part.type === "placeholder") {
+ result = scopeManager
+ .getValueAsync(part.value, { part })
+ .then(function (value) {
+ if (value == null) {
+ value = options.nullGetter(part);
+ }
+ resolved.push({
+ tag: part.value,
+ value,
+ lIndex: part.lIndex,
+ });
+ return value;
+ });
+ } else {
+ return;
+ }
+ promises.push(
+ result.catch(function (e) {
+ if (e.length > 1) {
+ errors.push(...e);
+ } else {
+ errors.push(e);
+ }
+ })
+ );
+ return promises;
+ }, [])
+ ).then(function () {
+ return { errors, resolved };
+ });
+}
+
+module.exports = resolve;
diff --git a/es6/scope-manager.js b/es6/scope-manager.js
new file mode 100644
index 0000000..4da1c60
--- /dev/null
+++ b/es6/scope-manager.js
@@ -0,0 +1,208 @@
+"use strict";
+const { getScopeParserExecutionError } = require("./errors");
+const { last } = require("./utils");
+const { concatArrays } = require("./doc-utils");
+
+function find(list, fn) {
+ const length = list.length >>> 0;
+ let value;
+
+ for (let i = 0; i < length; i++) {
+ value = list[i];
+ if (fn.call(this, value, i, list)) {
+ return value;
+ }
+ }
+ return undefined;
+}
+
+function getValue(tag, meta, num) {
+ const scope = this.scopeList[num];
+ if (this.resolved) {
+ let w = this.resolved;
+ this.scopePath.forEach((p, index) => {
+ const lIndex = this.scopeLindex[index];
+ w = find(w, function (r) {
+ return r.lIndex === lIndex;
+ });
+ w = w.value[this.scopePathItem[index]];
+ });
+ return [
+ this.scopePath.length - 1,
+ find(w, function (r) {
+ return meta.part.lIndex === r.lIndex;
+ }).value,
+ ];
+ }
+ // search in the scopes (in reverse order) and keep the first defined value
+ let result;
+
+ let parser;
+ if (!this.cachedParsers || !meta.part) {
+ parser = this.parser(tag, {
+ scopePath: this.scopePath,
+ });
+ } else if (this.cachedParsers[meta.part.lIndex]) {
+ parser = this.cachedParsers[meta.part.lIndex];
+ } else {
+ parser = this.cachedParsers[meta.part.lIndex] = this.parser(tag, {
+ scopePath: this.scopePath,
+ });
+ }
+ try {
+ result = parser.get(scope, this.getContext(meta, num));
+ } catch (error) {
+ throw getScopeParserExecutionError({
+ tag,
+ scope,
+ error,
+ offset: meta.part.offset,
+ });
+ }
+ if (result == null && num > 0) {
+ return getValue.call(this, tag, meta, num - 1);
+ }
+ return [num, result];
+}
+
+function getValueAsync(tag, meta, num) {
+ const scope = this.scopeList[num];
+ // search in the scopes (in reverse order) and keep the first defined value
+ let parser;
+ if (!this.cachedParsers || !meta.part) {
+ parser = this.parser(tag, {
+ scopePath: this.scopePath,
+ });
+ } else if (this.cachedParsers[meta.part.lIndex]) {
+ parser = this.cachedParsers[meta.part.lIndex];
+ } else {
+ parser = this.cachedParsers[meta.part.lIndex] = this.parser(tag, {
+ scopePath: this.scopePath,
+ });
+ }
+
+ return Promise.resolve()
+ .then(() => {
+ return parser.get(scope, this.getContext(meta, num));
+ })
+ .catch(function (error) {
+ throw getScopeParserExecutionError({
+ tag,
+ scope,
+ error,
+ offset: meta.part.offset,
+ });
+ })
+ .then((result) => {
+ if (result == null && num > 0) {
+ return getValueAsync.call(this, tag, meta, num - 1);
+ }
+ return result;
+ });
+}
+
+// This class responsibility is to manage the scope
+const ScopeManager = class ScopeManager {
+ constructor(options) {
+ this.scopePath = options.scopePath;
+ this.scopePathItem = options.scopePathItem;
+ this.scopePathLength = options.scopePathLength;
+ this.scopeList = options.scopeList;
+ this.scopeLindex = options.scopeLindex;
+ this.parser = options.parser;
+ this.resolved = options.resolved;
+ this.cachedParsers = options.cachedParsers;
+ }
+ loopOver(tag, functor, inverted, meta) {
+ return this.loopOverValue(this.getValue(tag, meta), functor, inverted);
+ }
+ functorIfInverted(inverted, functor, value, i, length) {
+ if (inverted) {
+ functor(value, i, length);
+ }
+ return inverted;
+ }
+ isValueFalsy(value, type) {
+ return (
+ value == null ||
+ !value ||
+ (type === "[object Array]" && value.length === 0)
+ );
+ }
+ loopOverValue(value, functor, inverted) {
+ if (this.resolved) {
+ inverted = false;
+ }
+ const type = Object.prototype.toString.call(value);
+ if (this.isValueFalsy(value, type)) {
+ return this.functorIfInverted(
+ inverted,
+ functor,
+ last(this.scopeList),
+ 0,
+ 1
+ );
+ }
+ if (type === "[object Array]") {
+ for (let i = 0; i < value.length; i++) {
+ this.functorIfInverted(!inverted, functor, value[i], i, value.length);
+ }
+ return true;
+ }
+ if (type === "[object Object]") {
+ return this.functorIfInverted(!inverted, functor, value, 0, 1);
+ }
+ return this.functorIfInverted(
+ !inverted,
+ functor,
+ last(this.scopeList),
+ 0,
+ 1
+ );
+ }
+ getValue(tag, meta) {
+ const [num, result] = getValue.call(
+ this,
+ tag,
+ meta,
+ this.scopeList.length - 1
+ );
+ this.num = num;
+ return result;
+ }
+ getValueAsync(tag, meta) {
+ return getValueAsync.call(this, tag, meta, this.scopeList.length - 1);
+ }
+ getContext(meta, num) {
+ return {
+ num,
+ meta,
+ scopeList: this.scopeList,
+ resolved: this.resolved,
+ scopePath: this.scopePath,
+ scopePathItem: this.scopePathItem,
+ scopePathLength: this.scopePathLength,
+ };
+ }
+ createSubScopeManager(scope, tag, i, part, length) {
+ return new ScopeManager({
+ resolved: this.resolved,
+ parser: this.parser,
+ cachedParsers: this.cachedParsers,
+ scopeList: concatArrays([this.scopeList, [scope]]),
+ scopePath: concatArrays([this.scopePath, [tag]]),
+ scopePathItem: concatArrays([this.scopePathItem, [i]]),
+ scopePathLength: concatArrays([this.scopePathLength, [length]]),
+ scopeLindex: concatArrays([this.scopeLindex, [part.lIndex]]),
+ });
+ }
+};
+
+module.exports = function (options) {
+ options.scopePath = [];
+ options.scopePathItem = [];
+ options.scopePathLength = [];
+ options.scopeLindex = [];
+ options.scopeList = [options.tags];
+ return new ScopeManager(options);
+};
diff --git a/es6/tests/angular-parser.js b/es6/tests/angular-parser.js
new file mode 100644
index 0000000..372283d
--- /dev/null
+++ b/es6/tests/angular-parser.js
@@ -0,0 +1,41 @@
+const expressions = require("angular-expressions");
+const assign = require("lodash/assign");
+
+function angularParser(tag) {
+ if (tag === ".") {
+ return {
+ get(s) {
+ return s;
+ },
+ };
+ }
+ const expr = expressions.compile(
+ tag.replace(/(’|‘)/g, "'").replace(/(“|”)/g, '"')
+ );
+ // isAngularAssignment will be true if your tag contains a `=`, for example
+ // when you write the following in your template :
+ // {full_name = first_name + last_name}
+ // In that case, it makes sense to return an empty string so
+ // that the tag does not write something to the generated document.
+ const isAngularAssignment =
+ expr.ast.body[0] &&
+ expr.ast.body[0].expression.type === "AssignmentExpression";
+
+ return {
+ get(scope, context) {
+ let obj = {};
+ const scopeList = context.scopeList;
+ const num = context.num;
+ for (let i = 0, len = num + 1; i < len; i++) {
+ obj = assign(obj, scopeList[i]);
+ }
+ const result = expr(scope, obj);
+ if (isAngularAssignment) {
+ return "";
+ }
+ return result;
+ },
+ };
+}
+
+module.exports = angularParser;
diff --git a/es6/tests/assertion-module.js b/es6/tests/assertion-module.js
new file mode 100644
index 0000000..6ab8361
--- /dev/null
+++ b/es6/tests/assertion-module.js
@@ -0,0 +1,52 @@
+function isArray(thing) {
+ return thing instanceof Array;
+}
+function isObject(thing) {
+ return thing instanceof Object && !isArray(thing);
+}
+function isString(thing) {
+ return typeof thing === "string";
+}
+
+class AssertionModule {
+ preparse(parsed) {
+ if (!isArray(parsed)) {
+ throw new Error("Parsed should be an array");
+ }
+ }
+ parse(placeholderContent) {
+ if (!isString(placeholderContent)) {
+ throw new Error("placeholderContent should be a string");
+ }
+ }
+ postparse(parsed, { filePath, contentType }) {
+ if (!isArray(parsed)) {
+ throw new Error("Parsed should be an array");
+ }
+ if (!isString(filePath)) {
+ throw new Error("filePath should be a string");
+ }
+ if (!isString(contentType)) {
+ throw new Error("contentType should be a string");
+ }
+ }
+ render(part, { filePath, contentType }) {
+ if (!isObject(part)) {
+ throw new Error("part should be an object");
+ }
+ if (!isString(filePath)) {
+ throw new Error("filePath should be a string");
+ }
+ if (!isString(contentType)) {
+ throw new Error("contentType should be a string");
+ }
+ }
+ postrender(parts) {
+ if (!isArray(parts)) {
+ throw new Error("Parts should be an array");
+ }
+ return parts;
+ }
+}
+
+module.exports = AssertionModule;
diff --git a/es6/tests/base.js b/es6/tests/base.js
new file mode 100644
index 0000000..14a06c7
--- /dev/null
+++ b/es6/tests/base.js
@@ -0,0 +1,1132 @@
+const PizZip = require("pizzip");
+const { assign } = require("lodash");
+
+const angularParser = require("./angular-parser");
+const Docxtemplater = require("../docxtemplater.js");
+const Errors = require("../errors.js");
+const { last } = require("../utils.js");
+const {
+ expect,
+ createXmlTemplaterDocx,
+ createDoc,
+ expectToThrow,
+ getContent,
+ createDocV4,
+ getZip,
+} = require("./utils");
+const inspectModule = require("../inspect-module.js");
+
+function getLength(obj) {
+ if (obj instanceof ArrayBuffer) {
+ return obj.byteLength;
+ }
+ return obj.length;
+}
+
+describe("Loading", function () {
+ describe("ajax done correctly", function () {
+ it("doc and img Data should have the expected length", function () {
+ const doc = createDoc("tag-example.docx");
+ expect(getLength(doc.loadedContent)).to.be.equal(19424);
+ });
+ it("should have the right number of files (the docx unzipped)", function () {
+ const doc = createDoc("tag-example.docx");
+ expect(Object.keys(doc.zip.files).length).to.be.equal(16);
+ });
+ });
+ describe("basic loading", function () {
+ it("should load file tag-example.docx", function () {
+ const doc = createDoc("tag-example.docx");
+ expect(typeof doc).to.be.equal("object");
+ });
+ });
+ describe("content_loading", function () {
+ it("should load the right content for the footer", function () {
+ const doc = createDoc("tag-example.docx");
+ const fullText = doc.getFullText("word/footer1.xml");
+ expect(fullText.length).not.to.be.equal(0);
+ expect(fullText).to.be.equal("{last_name}{first_name}{phone}");
+ });
+ it("should load the right content for the document", function () {
+ const doc = createDoc("tag-example.docx");
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal("{last_name} {first_name}");
+ });
+ it("should load the right template files for the document", function () {
+ const doc = createDoc("tag-example.docx");
+ const templatedFiles = doc.getTemplatedFiles();
+ expect(templatedFiles.sort()).to.be.eql(
+ [
+ "word/header1.xml",
+ "word/footer1.xml",
+ "docProps/core.xml",
+ "docProps/app.xml",
+ "word/settings.xml",
+ "word/document.xml",
+ ].sort()
+ );
+ });
+ });
+ describe("output and input", function () {
+ it("should be the same", function () {
+ const zip = new PizZip(createDoc("tag-example.docx").loadedContent);
+ const doc = new Docxtemplater().loadZip(zip);
+ const output = doc.getZip().generate({ type: "base64" });
+ expect(output.length).to.be.equal(90732);
+ expect(output.substr(0, 50)).to.be.equal(
+ "UEsDBAoAAAAAAAAAIQAMTxYSlgcAAJYHAAATAAAAW0NvbnRlbn"
+ );
+ });
+ });
+});
+
+describe("Api versioning", function () {
+ it("should work with valid numbers", function () {
+ const doc = createDoc("tag-example.docx");
+ expect(doc.verifyApiVersion("3.6.0")).to.be.equal(true);
+ expect(doc.verifyApiVersion("3.5.0")).to.be.equal(true);
+ expect(doc.verifyApiVersion("3.4.2")).to.be.equal(true);
+ expect(doc.verifyApiVersion("3.4.22")).to.be.equal(true);
+ });
+
+ it("should fail with invalid versions", function () {
+ const doc = createDoc("tag-example.docx");
+ expectToThrow(
+ doc.verifyApiVersion.bind(null, "5.6.0"),
+ Errors.XTAPIVersionError,
+ {
+ message:
+ "The major api version do not match, you probably have to update docxtemplater with npm install --save docxtemplater",
+ name: "APIVersionError",
+ properties: {
+ id: "api_version_error",
+ currentModuleApiVersion: [3, 24, 0],
+ neededVersion: [5, 6, 0],
+ },
+ }
+ );
+
+ expectToThrow(
+ doc.verifyApiVersion.bind(null, "3.44.0"),
+ Errors.XTAPIVersionError,
+ {
+ message:
+ "The minor api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",
+ name: "APIVersionError",
+ properties: {
+ id: "api_version_error",
+ currentModuleApiVersion: [3, 24, 0],
+ neededVersion: [3, 44, 0],
+ },
+ }
+ );
+
+ expectToThrow(
+ doc.verifyApiVersion.bind(null, "3.24.100"),
+ Errors.XTAPIVersionError,
+ {
+ message:
+ "The patch api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",
+ name: "APIVersionError",
+ properties: {
+ id: "api_version_error",
+ currentModuleApiVersion: [3, 24, 0],
+ neededVersion: [3, 24, 100],
+ },
+ }
+ );
+ });
+});
+
+describe("Inspect module", function () {
+ it("should get main tags", function () {
+ const doc = createDoc("tag-loop-example.docx");
+ const iModule = inspectModule();
+ doc.attachModule(iModule);
+ doc.compile();
+ expect(iModule.getTags()).to.be.deep.equal({
+ offre: {
+ nom: {},
+ prix: {},
+ titre: {},
+ },
+ nom: {},
+ prenom: {},
+ });
+ const data = { offre: [{}], prenom: "John" };
+ doc.setData(data);
+ doc.render();
+ const { summary, detail } = iModule.fullInspected[
+ "word/document.xml"
+ ].nullValues;
+
+ expect(iModule.inspect.tags).to.be.deep.equal(data);
+ expect(detail).to.be.an("array");
+ expect(summary).to.be.deep.equal([
+ ["offre", "nom"],
+ ["offre", "prix"],
+ ["offre", "titre"],
+ ["nom"],
+ ]);
+ });
+
+ it("should get all tags", function () {
+ const doc = createDoc("multi-page.pptx");
+ const iModule = inspectModule();
+ doc.attachModule(iModule);
+ doc.compile();
+ expect(iModule.getFileType()).to.be.deep.equal("pptx");
+ expect(iModule.getAllTags()).to.be.deep.equal({
+ tag: {},
+ users: {
+ name: {},
+ },
+ });
+ expect(iModule.getTemplatedFiles().sort()).to.be.deep.equal(
+ [
+ "ppt/slides/slide1.xml",
+ "ppt/slides/slide2.xml",
+ "ppt/slideMasters/slideMaster1.xml",
+ "ppt/presentation.xml",
+ "docProps/app.xml",
+ "docProps/core.xml",
+ ].sort()
+ );
+ });
+
+ it("should get all tags and merge them", function () {
+ const doc = createDoc("multi-page-to-merge.pptx");
+ const iModule = inspectModule();
+ doc.attachModule(iModule);
+ doc.compile();
+ expect(iModule.getAllTags()).to.be.deep.equal({
+ tag: {},
+ users: {
+ name: {},
+ age: {},
+ company: {},
+ },
+ });
+ });
+
+ it("should get all tags with additional data", function () {
+ const doc = createDoc("tag-product-loop.docx");
+ const iModule = inspectModule();
+ doc.attachModule(iModule);
+ doc.compile();
+ expect(iModule.getAllStructuredTags()).to.be.deep.equal([
+ {
+ type: "placeholder",
+ value: "products",
+ raw: "#products",
+ lIndex: 15,
+ sectPrCount: 0,
+ module: "loop",
+ inverted: false,
+ offset: 0,
+ endLindex: 15,
+ subparsed: [
+ {
+ type: "placeholder",
+ value: "title",
+ offset: 11,
+ endLindex: 31,
+ lIndex: 31,
+ },
+ {
+ type: "placeholder",
+ value: "name",
+ offset: 33,
+ endLindex: 55,
+ lIndex: 55,
+ },
+ {
+ type: "placeholder",
+ value: "reference",
+ offset: 59,
+ endLindex: 71,
+ lIndex: 71,
+ },
+ {
+ type: "placeholder",
+ value: "avantages",
+ module: "loop",
+ raw: "#avantages",
+ inverted: false,
+ offset: 70,
+ sectPrCount: 0,
+ endLindex: 89,
+ lIndex: 89,
+ subparsed: [
+ {
+ type: "placeholder",
+ value: "title",
+ offset: 82,
+ endLindex: 105,
+ lIndex: 105,
+ },
+ {
+ type: "placeholder",
+ value: "proof",
+ module: "loop",
+ raw: "#proof",
+ sectPrCount: 0,
+ inverted: false,
+ offset: 117,
+ endLindex: 133,
+ lIndex: 133,
+ subparsed: [
+ {
+ type: "placeholder",
+ value: "reason",
+ offset: 143,
+ endLindex: 155,
+ lIndex: 155,
+ },
+ ],
+ },
+ ],
+ },
+ ],
+ },
+ ]);
+ });
+});
+
+describe("Docxtemplater loops", function () {
+ it("should replace all the tags", function () {
+ const tags = {
+ nom: "Hipp",
+ prenom: "Edgar",
+ telephone: "0652455478",
+ description: "New Website",
+ offre: [
+ { titre: "titre1", prix: "1250" },
+ { titre: "titre2", prix: "2000" },
+ { titre: "titre3", prix: "1400", nom: "Offre" },
+ ],
+ };
+ const doc = createDoc("tag-loop-example.docx");
+ doc.setData(tags);
+ doc.render();
+ expect(doc.getFullText()).to.be.equal(
+ "Votre proposition commercialeHippPrix: 1250Titre titre1HippPrix: 2000Titre titre2OffrePrix: 1400Titre titre3HippEdgar"
+ );
+ });
+ it("should work with loops inside loops", function () {
+ const tags = {
+ products: [
+ {
+ title: "Microsoft",
+ name: "DOS",
+ reference: "Win7",
+ avantages: [
+ {
+ title: "Everyone uses it",
+ proof: [
+ { reason: "it is quite cheap" },
+ { reason: "it is quit simple" },
+ { reason: "it works on a lot of different Hardware" },
+ ],
+ },
+ ],
+ },
+ {
+ title: "Linux",
+ name: "Ubuntu",
+ reference: "Ubuntu10",
+ avantages: [
+ {
+ title: "It's very powerful",
+ proof: [
+ { reason: "the terminal is your friend" },
+ { reason: "Hello world" },
+ { reason: "it's free" },
+ ],
+ },
+ ],
+ },
+ {
+ title: "Apple",
+ name: "Mac",
+ reference: "OSX",
+ avantages: [
+ {
+ title: "It's very easy",
+ proof: [
+ { reason: "you can do a lot just with the mouse" },
+ { reason: "It's nicely designed" },
+ ],
+ },
+ ],
+ },
+ ],
+ };
+ const doc = createDoc("tag-product-loop.docx");
+ doc.setData(tags);
+ doc.render();
+ const text = doc.getFullText();
+ const expectedText =
+ "MicrosoftProduct name : DOSProduct reference : Win7Everyone uses itProof that it works nicely : It works because it is quite cheap It works because it is quit simple It works because it works on a lot of different HardwareLinuxProduct name : UbuntuProduct reference : Ubuntu10It's very powerfulProof that it works nicely : It works because the terminal is your friend It works because Hello world It works because it's freeAppleProduct name : MacProduct reference : OSXIt's very easyProof that it works nicely : It works because you can do a lot just with the mouse It works because It's nicely designed";
+ expect(text.length).to.be.equal(expectedText.length);
+ expect(text).to.be.equal(expectedText);
+ });
+ it("should work with object value", function () {
+ const content = "{#todo}{todo}{/todo}";
+ const expectedContent = 'abc';
+ const scope = { todo: { todo: "abc" } };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(getContent(xmlTemplater)).to.be.deep.equal(expectedContent);
+ });
+ it("should work with string value", function () {
+ const content = "{#todo}{todo}{/todo}";
+ const expectedContent = 'abc';
+ const scope = { todo: "abc" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(xmlTemplater);
+ expect(c).to.be.deep.equal(expectedContent);
+ });
+ it("should not have sideeffects with inverted with array length 3", function () {
+ const content = `{^todos}No {/todos}Todos
+{#todos}{.}{/todos}`;
+ const expectedContent = `Todos
+ABC`;
+ const scope = { todos: ["A", "B", "C"] };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(xmlTemplater);
+ expect(c).to.be.deep.equal(expectedContent);
+ });
+ it("should not have sideeffects with inverted with empty array", function () {
+ const content = `{^todos}No {/todos}Todos
+ {#todos}{.}{/todos}`;
+ const expectedContent = `No Todos
+ `;
+ const scope = { todos: [] };
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ parser: angularParser,
+ });
+ const c = getContent(xmlTemplater);
+ expect(c).to.be.deep.equal(expectedContent);
+ });
+
+ it("should provide inverted loops", function () {
+ const content = "{^products}No products found{/products}";
+ [{ products: [] }, { products: false }, {}].forEach(function (tags) {
+ const doc = createXmlTemplaterDocx(content, { tags });
+ expect(doc.getFullText()).to.be.equal("No products found");
+ });
+
+ [
+ { products: [{ name: "Bread" }] },
+ { products: true },
+ { products: "Bread" },
+ { products: { name: "Bread" } },
+ ].forEach(function (tags) {
+ const doc = createXmlTemplaterDocx(content, { tags });
+ expect(doc.getFullText()).to.be.equal("");
+ });
+ });
+
+ it("should be possible to close loops with {/}", function () {
+ const content = "{#products}Product {name}{/}";
+ const tags = { products: [{ name: "Bread" }] };
+ const doc = createXmlTemplaterDocx(content, { tags });
+ expect(doc.getFullText()).to.be.equal("Product Bread");
+ });
+
+ it("should be possible to close double loops with {/}", function () {
+ const content = "{#companies}{#products}Product {name}{/}{/}";
+ const tags = { companies: [{ products: [{ name: "Bread" }] }] };
+ const doc = createXmlTemplaterDocx(content, { tags });
+ expect(doc.getFullText()).to.be.equal("Product Bread");
+ });
+
+ it("should work with complex loops", function () {
+ const content =
+ "{title} {#users} {name} friends are : {#friends} {.TAG..TAG},{/friends} {/usersTAG2}";
+ const scope = {
+ title: "###Title###",
+ users: [{ name: "John Doe", friends: ["Jane", "Henry"] }, {}],
+ name: "Default",
+ friends: ["None"],
+ };
+ const doc = createXmlTemplaterDocx(content, { tags: scope });
+ expect(doc.getFullText()).to.be.equal(
+ "###Title### John Doe friends are : Jane, Henry, Default friends are : None, "
+ );
+ });
+});
+
+describe("Changing the parser", function () {
+ it("should work with uppercassing", function () {
+ const content = "Hello {name}";
+ const scope = { name: "Edgar" };
+ function parser(tag) {
+ return {
+ ["get"](scope) {
+ return scope[tag].toUpperCase();
+ },
+ };
+ }
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ parser,
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello EDGAR");
+ });
+ it("should work when setting from the Docxtemplater interface", function () {
+ const doc = createDoc("tag-example.docx");
+ const zip = new PizZip(doc.loadedContent);
+ const d = new Docxtemplater().loadZip(zip);
+ const tags = {
+ first_name: "Hipp",
+ last_name: "Edgar",
+ phone: "0652455478",
+ description: "New Website",
+ };
+ d.setData(tags);
+ d.parser = function (tag) {
+ return {
+ ["get"](scope) {
+ return scope[tag].toUpperCase();
+ },
+ };
+ };
+ d.render();
+ expect(d.getFullText()).to.be.equal("EDGAR HIPP");
+ expect(d.getFullText("word/header1.xml")).to.be.equal(
+ "EDGAR HIPP0652455478NEW WEBSITE"
+ );
+ expect(d.getFullText("word/footer1.xml")).to.be.equal(
+ "EDGARHIPP0652455478"
+ );
+ });
+
+ it("should work with angular parser", function () {
+ const tags = {
+ person: {
+ first_name: "Hipp",
+ last_name: "Edgar",
+ birth_year: 1955,
+ age: 59,
+ },
+ };
+ const doc = createDoc("angular-example.docx");
+ doc.setData(tags);
+ doc.setOptions({ parser: angularParser });
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("Hipp Edgar 2014");
+ });
+
+ it("should work with loops", function () {
+ const content = "Hello {#person.adult}you{/person.adult}";
+ const scope = { person: { name: "Edgar", adult: true } };
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ parser: angularParser,
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello you");
+ });
+
+ it("should be able to access meta to get the index", function () {
+ const content =
+ "Hello {#users}{$index} {#$isFirst}@{/}{#$isLast}!{/}{name} {/users}";
+ const scope = {
+ users: [{ name: "Jane" }, { name: "Mary" }],
+ };
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ parser: function parser(tag) {
+ return {
+ get(scope, context) {
+ if (tag === "$index") {
+ return last(context.scopePathItem);
+ }
+ if (tag === "$isLast") {
+ const totalLength =
+ context.scopePathLength[context.scopePathLength.length - 1];
+ const index =
+ context.scopePathItem[context.scopePathItem.length - 1];
+ return index === totalLength - 1;
+ }
+ if (tag === "$isFirst") {
+ const index =
+ context.scopePathItem[context.scopePathItem.length - 1];
+ return index === 0;
+ }
+ return scope[tag];
+ },
+ };
+ },
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello 0 @Jane 1 !Mary ");
+ });
+
+ it("should be able to disable parent scope inheritance", function () {
+ const content = "Hello {#users}{companyName}-{name} {/}";
+ const scope = {
+ users: [{ name: "Jane" }, {}],
+ companyName: "My company, should not be shown",
+ name: "Foo",
+ };
+
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ nullGetter(part) {
+ if (!part.module) {
+ return "NULL";
+ }
+ if (part.module === "rawxml") {
+ return "";
+ }
+ return "";
+ },
+ parser(tag) {
+ return {
+ get(scope, context) {
+ if (context.num < context.scopePath.length) {
+ return null;
+ }
+ return scope[tag];
+ },
+ };
+ },
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal(
+ "Hello NULL-Jane NULL-NULL "
+ );
+ });
+
+ it("should be able to have scopePathItem with different lengths when having conditions", function () {
+ const content = "{#cond}{name}{/}";
+ const scope = {
+ cond: true,
+ name: "John",
+ };
+ let innerContext = null;
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ parser: function parser(tag) {
+ return {
+ get(scope, context) {
+ if (tag === "name") {
+ innerContext = context;
+ }
+ return scope[tag];
+ },
+ };
+ },
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal("John");
+ expect(innerContext.scopePath).to.be.deep.equal(["cond"]);
+ expect(innerContext.scopePathItem).to.be.deep.equal([0]);
+ expect(innerContext.scopeList.length).to.be.equal(2);
+ expect(innerContext.scopeList[0]).to.be.deep.equal(
+ innerContext.scopeList[1]
+ );
+ });
+
+ it("should call the parser just once", function () {
+ let calls = 0;
+ const content = "{name}";
+ const scope = {
+ name: "John",
+ };
+ createXmlTemplaterDocx(content, {
+ tags: scope,
+ parser: function parser(tag) {
+ return {
+ get(scope) {
+ calls++;
+ return scope[tag];
+ },
+ };
+ },
+ });
+ expect(calls).to.equal(1);
+ });
+
+ it("should be able to access meta to get the type of tag", function () {
+ const content = `Hello {#users}{name}{/users}
+ {@rrr}
+ `;
+ const scope = {
+ users: [{ name: "Jane" }],
+ rrr: "",
+ };
+ const contexts = [];
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ parser: function parser(tag) {
+ return {
+ get(scope, context) {
+ contexts.push(context);
+ if (tag === "$index") {
+ return last(context.scopePathItem);
+ }
+ return scope[tag];
+ },
+ };
+ },
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Jane");
+ const values = contexts.map(function ({
+ meta: {
+ part: { type, value, module },
+ },
+ }) {
+ return { type, value, module };
+ });
+ expect(values).to.be.deep.equal([
+ {
+ type: "placeholder",
+ value: "users",
+ module: "loop",
+ },
+ {
+ type: "placeholder",
+ value: "name",
+ module: undefined,
+ },
+ {
+ type: "placeholder",
+ value: "rrr",
+ module: "rawxml",
+ },
+ ]);
+ });
+});
+
+describe("Change the delimiters", function () {
+ it("should work with lt and gt delimiter < and >", function () {
+ const doc = createDoc("delimiter-gt.docx");
+ doc.setOptions({
+ delimiters: {
+ start: "<",
+ end: ">",
+ },
+ });
+ doc.setData({
+ user: "John",
+ });
+ doc.render();
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal("Hello John");
+ });
+
+ it("should work with delimiter % both sides", function () {
+ const doc = createDoc("delimiter-pct.docx");
+ doc.setOptions({
+ delimiters: {
+ start: "%",
+ end: "%",
+ },
+ });
+ doc.setData({
+ user: "John",
+ company: "PCorp",
+ });
+ doc.render();
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal("Hello John from PCorp");
+ });
+});
+
+describe("Special characters", function () {
+ it("should parse placeholder containing special characters", function () {
+ const content = "Hello {>name}";
+ const scope = { ">name": "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(xmlTemplater);
+ expect(c).to.be.deep.equal('Hello Edgar');
+ });
+
+ it("should not decode xml entities recursively", function () {
+ const content = "Hello {<}";
+ const scope = { "<": "good", "<": "bad!!" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(xmlTemplater);
+ expect(c).to.be.deep.equal('Hello good');
+ });
+
+ it("should render placeholder containing special characters", function () {
+ const content = "Hello {name}";
+ const scope = { name: "" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(xmlTemplater);
+ expect(c).to.be.deep.equal(
+ 'Hello <Edgar>'
+ );
+ });
+
+ it("should read full text correctly", function () {
+ const doc = createDoc("cyrillic.docx");
+ const fullText = doc.getFullText();
+ expect(fullText.charCodeAt(0)).to.be.equal(1024);
+ expect(fullText.charCodeAt(1)).to.be.equal(1050);
+ expect(fullText.charCodeAt(2)).to.be.equal(1048);
+ expect(fullText.charCodeAt(3)).to.be.equal(1046);
+ expect(fullText.charCodeAt(4)).to.be.equal(1044);
+ expect(fullText.charCodeAt(5)).to.be.equal(1045);
+ expect(fullText.charCodeAt(6)).to.be.equal(1039);
+ expect(fullText.charCodeAt(7)).to.be.equal(1040);
+ });
+ it("should still read full text after applying tags", function () {
+ const doc = createDoc("cyrillic.docx");
+ doc.setData({ name: "Edgar" });
+ doc.render();
+ const fullText = doc.getFullText();
+ expect(fullText.charCodeAt(0)).to.be.equal(1024);
+ expect(fullText.charCodeAt(1)).to.be.equal(1050);
+ expect(fullText.charCodeAt(2)).to.be.equal(1048);
+ expect(fullText.charCodeAt(3)).to.be.equal(1046);
+ expect(fullText.charCodeAt(4)).to.be.equal(1044);
+ expect(fullText.charCodeAt(5)).to.be.equal(1045);
+ expect(fullText.charCodeAt(6)).to.be.equal(1039);
+ expect(fullText.charCodeAt(7)).to.be.equal(1040);
+ expect(fullText.indexOf("Edgar")).to.be.equal(9);
+ });
+ it("should insert russian characters", function () {
+ const russian = "Пупкина";
+ const doc = createDoc("tag-example.docx");
+ const zip = new PizZip(doc.loadedContent);
+ const d = new Docxtemplater().loadZip(zip);
+ d.setData({ last_name: russian });
+ d.render();
+ const outputText = d.getFullText();
+ expect(outputText.substr(0, 7)).to.be.equal(russian);
+ });
+});
+
+describe("Complex table example", function () {
+ it("should not do anything special when loop outside of table", function () {
+ [
+ `{#tables}
+
+{user}
+
+{/tables}`,
+ ].forEach(function (content) {
+ const scope = {
+ tables: [{ user: "John" }, { user: "Jane" }],
+ };
+ const doc = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(doc);
+ expect(c).to.be.equal(
+ `
+
+John
+
+
+
+Jane
+
+`
+ );
+ });
+ });
+
+ it("should work when looping inside tables", function () {
+ const tags = {
+ table1: [1],
+ key: "value",
+ };
+ const template = `
+ {#table1}Hi
+ {/table1}
+
+
+ {#table1}Ho
+ {/table1}
+
+ {key}
+ `;
+ const doc = createXmlTemplaterDocx(template, { tags });
+ const fullText = doc.getFullText();
+
+ expect(fullText).to.be.equal("HiHovalue");
+ const expected = `
+ Hi
+
+
+
+ Ho
+
+
+ value
+ `;
+ const c = getContent(doc);
+ expect(c).to.be.equal(expected);
+ });
+});
+describe("Raw Xml Insertion", function () {
+ it("should work with simple example", function () {
+ const inner = "{@complexXml}";
+ const content = `${inner}`;
+ const scope = {
+ complexXml:
+ 'My custom XMLTestXmlGeneratedUnderlineHighlightingFontCenteringItalic',
+ };
+ const doc = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(doc);
+ expect(c.length).to.be.equal(
+ content.length + scope.complexXml.length - inner.length
+ );
+ expect(c).to.contain(scope.complexXml);
+ });
+
+ it("should work even when tags are after the xml", function () {
+ const content = `
+
+
+
+
+ {@complexXml}
+
+
+
+
+
+
+
+
+ {name}
+
+
+
+
+
+
+
+
+ {first_name}
+
+
+
+
+
+
+
+
+ {#products} {year}
+
+
+
+
+
+
+ {name}
+
+
+
+
+
+
+ {company}{/products}
+
+
+
+
+
+ `;
+ const scope = {
+ complexXml: "Hello",
+ name: "John",
+ first_name: "Doe",
+ products: [
+ { year: 1550, name: "Moto", company: "Fein" },
+ { year: 1987, name: "Water", company: "Test" },
+ { year: 2010, name: "Bread", company: "Yu" },
+ ],
+ };
+ const doc = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(doc);
+ expect(c).to.contain(scope.complexXml);
+ expect(doc.getFullText()).to.be.equal(
+ "HelloJohnDoe 1550MotoFein 1987WaterTest 2010BreadYu"
+ );
+ });
+
+ it("should work with closing tag in the form of }{/body}", function () {
+ const scope = { body: [{ paragraph: "hello" }] };
+ const content = `{#body}
+ {paragraph
+ }{/body}`;
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(xmlTemplater);
+ expect(c).not.to.contain("");
+ });
+ it("should work with simple example and given options", function () {
+ const scope = {
+ xmlTag:
+ 'My customXML',
+ };
+ const doc = createDoc("one-raw-xml-tag.docx");
+ doc.setOptions({
+ fileTypeConfig: assign({}, Docxtemplater.FileTypeConfig.docx, {
+ tagRawXml: "w:r",
+ }),
+ });
+ doc.setData(scope);
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("asdfMy customXMLqwery");
+ });
+});
+
+describe("Serialization", function () {
+ it("should be serialiazable (useful for logging)", function () {
+ const doc = createDoc("tag-example.docx");
+ JSON.stringify(doc);
+ });
+});
+
+describe("Constructor v4", function () {
+ it("should work when modules are attached", function () {
+ let isModuleCalled = false;
+
+ const module = {
+ optionsTransformer(options) {
+ isModuleCalled = true;
+ return options;
+ },
+ };
+
+ createDocV4("tag-example.docx", { modules: [module] });
+ expect(isModuleCalled).to.equal(true);
+ });
+
+ it("should throw an error when modules passed is not an array", function () {
+ expect(
+ createDocV4.bind(this, "tag-example.docx", { modules: {} })
+ ).to.throw(
+ "The modules argument of docxtemplater's constructor must be an array"
+ );
+ });
+
+ it("should throw an error when an invalid zip is passed", function () {
+ const zip = getZip("tag-example.docx");
+ zip.files = null;
+
+ expect(() => new Docxtemplater(zip)).to.throw(
+ "The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)"
+ );
+
+ expect(() => new Docxtemplater("content")).to.throw(
+ "The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)"
+ );
+
+ expect(() => new Docxtemplater(Buffer.from("content"))).to.throw(
+ "The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)"
+ );
+ });
+
+ it("should work when the delimiters are passed", function () {
+ const options = {
+ delimiters: {
+ start: "<",
+ end: ">",
+ },
+ };
+ const doc = createDocV4("delimiter-gt.docx", options);
+ doc.setData({
+ user: "John",
+ });
+ doc.render();
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal("Hello John");
+ });
+
+ it("should work when both modules and delimiters are passed and modules should have access to options object", function () {
+ let isModuleCalled = false,
+ optionsPassedToModule;
+ const options = {
+ delimiters: {
+ start: "%",
+ end: "%",
+ },
+ modules: [
+ {
+ optionsTransformer(options) {
+ optionsPassedToModule = options;
+ isModuleCalled = true;
+ return options;
+ },
+ },
+ ],
+ };
+ const doc = createDocV4("delimiter-pct.docx", options);
+ doc.setData({
+ user: "John",
+ company: "Acme",
+ });
+
+ expect(isModuleCalled).to.be.equal(true);
+ expect(optionsPassedToModule.delimiters.start).to.be.equal("%");
+ expect(optionsPassedToModule.delimiters.end).to.be.equal("%");
+ // Verify that default options are passed to the modules
+ expect(optionsPassedToModule.linebreaks).to.be.equal(false);
+
+ doc.render();
+
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal("Hello John from Acme");
+ });
+
+ it("should throw if using new constructor and setOptions", function () {
+ const doc = createDocV4("tag-multiline.docx");
+ doc.setData({
+ description: "a\nb\nc",
+ });
+ expect(() => doc.setOptions({ linebreaks: true })).to.throw(
+ "setOptions() should not be called manually when using the v4 constructor"
+ );
+ });
+
+ it("should throw if using new constructor and attachModule", function () {
+ const doc = createDocV4("tag-multiline.docx");
+ doc.setData({
+ description: "a\nb\nc",
+ });
+ expect(() => doc.attachModule({ render() {} })).to.throw(
+ "attachModule() should not be called manually when using the v4 constructor"
+ );
+ });
+
+ it("should render correctly", () => {
+ const doc = new Docxtemplater(getZip("tag-example.docx"));
+ const tags = {
+ first_name: "John",
+ last_name: "Doe",
+ };
+ doc.setData(tags);
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("Doe John");
+ });
+
+ it("should work when modules are attached with valid filetypes", function () {
+ let isModuleCalled = false;
+ const module = {
+ optionsTransformer(options) {
+ isModuleCalled = true;
+ return options;
+ },
+ supportedFileTypes: ["pptx", "docx"],
+ };
+ createDocV4("tag-example.docx", { modules: [module] });
+ expect(isModuleCalled).to.equal(true);
+ });
+
+ it("should throw an error when supportedFieldType property in passed module is not an Array", function () {
+ const zip = getZip("tag-example.docx");
+ const module = {
+ optionsTransformer(options) {
+ return options;
+ },
+ supportedFileTypes: "pptx",
+ };
+ expect(() => new Docxtemplater(zip, { modules: [module] })).to.throw(
+ "The supportedFileTypes field of the module must be an array"
+ );
+ });
+});
diff --git a/es6/tests/data-fixtures.js b/es6/tests/data-fixtures.js
new file mode 100644
index 0000000..2c5793f
--- /dev/null
+++ b/es6/tests/data-fixtures.js
@@ -0,0 +1,181 @@
+const expectedPrintedPostParsed = `
+(0)
+***START LOOP OF hi
+(1)
+(2)
+(3)
+(3)
+(2)
+(2)
+(2)
+(2)
+(3)
+(3)
+(3)
+(4)
+(4)
+(5)
+(5)
+(6)
+(7)
+(8) name
+(7)
+(6)
+(5)
+(4)
+(4)
+(5)
+(5)
+(6)
+(7)
+(8) phone
+(7)
+(6)
+(5)
+(4)
+(4)
+(5)
+(5)
+(6)
+(7)
+(8) website
+(7)
+(6)
+(5)
+(4)
+(3)
+(3)
+(4)
+(4)
+(5)
+(6)
+(6)
+(7)
+(8)
+(8)
+(7)
+(7)
+(8)
+=============================={foo}
+(8)
+(7)
+(6)
+(5)
+(4)
+(4)
+(4)
+(5)
+(6)
+(6)
+(7)
+(8)
+(8)
+(7)
+(7)
+(8)
+=============================={bar}
+(8)
+(7)
+(6)
+(5)
+(4)
+(4)
+(4)
+(5)
+(6)
+(6)
+(7)
+(8)
+(8)
+(7)
+(7)
+(8)
+=============================={bar}
+(8)
+(7)
+(6)
+(5)
+(4)
+(4)
+(3)
+(3)
+(3)
+(2)
+(2)
+(2)
+(1)
+(1)
+(2)
+(3)
+(3)
+(2)
+(1)
+***END LOOP OF hi
+(0)`;
+
+const rawXMLValue = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Hello World
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`;
+
+module.exports = {
+ expectedPrintedPostParsed,
+ rawXMLValue,
+};
diff --git a/es6/tests/doc-props.js b/es6/tests/doc-props.js
new file mode 100644
index 0000000..b87eff6
--- /dev/null
+++ b/es6/tests/doc-props.js
@@ -0,0 +1,23 @@
+const { createDoc, shouldBeSame, expect } = require("./utils");
+
+describe("Docx docprops", function () {
+ it("should change values with template data", function () {
+ const tags = {
+ first_name: "Hipp",
+ last_name: "Edgar",
+ phone: "0652455478",
+ description: "New Website",
+ };
+ const doc = createDoc("tag-docprops.docx");
+ doc.setData(tags);
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("Edgar Hipp");
+ expect(doc.getFullText("word/header1.xml")).to.be.equal(
+ "Edgar Hipp0652455478New Website"
+ );
+ expect(doc.getFullText("word/footer1.xml")).to.be.equal(
+ "EdgarHipp0652455478"
+ );
+ shouldBeSame({ doc, expectedName: "expected-tag-docprops.docx" });
+ });
+});
diff --git a/es6/tests/errors.js b/es6/tests/errors.js
new file mode 100644
index 0000000..e684cb9
--- /dev/null
+++ b/es6/tests/errors.js
@@ -0,0 +1,1521 @@
+const { loadFile, loadDocument, rejectSoon } = require("./utils");
+const Errors = require("../errors.js");
+const { expect } = require("chai");
+const {
+ createXmlTemplaterDocx,
+ createXmlTemplaterDocxNoRender,
+ wrapMultiError,
+ expectToThrow,
+ expectToThrowAsync,
+} = require("./utils");
+
+const angularParser = require("./angular-parser");
+
+describe("Compilation errors", function () {
+ it("should fail when parsing invalid xml (1)", function () {
+ const content = "Foobar Foobar Foobar ";
+ const expectedError = {
+ name: "TemplateError",
+ message: "An XML file has invalid xml",
+ properties: {
+ content,
+ offset: 55,
+ id: "file_has_invalid_xml",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should fail when tag unclosed at end of document", function () {
+ const content = "{unclosedtag my text";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ context: "{unclosedtag my text",
+ file: "word/document.xml",
+ id: "unclosed_tag",
+ xtag: "unclosedtag",
+ offset: 0,
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should fail when tag unclosed", function () {
+ const content = "{user {name}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ file: "word/document.xml",
+ id: "unclosed_tag",
+ context: "{user ",
+ xtag: "user",
+ offset: 0,
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should fail when tag unopened", function () {
+ const content = "foobar}age";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Unopened tag",
+ properties: {
+ file: "word/document.xml",
+ id: "unopened_tag",
+ context: "foobar",
+ offset: 6,
+ xtag: "foobar",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should fail when closing {#users} with {/foo}", function () {
+ const content = "{#users}User {name}{/foo}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Closing tag does not match opening tag",
+ properties: {
+ file: "word/document.xml",
+ id: "closing_tag_does_not_match_opening_tag",
+ openingtag: "users",
+ closingtag: "foo",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should fail when closing an unopened loop", function () {
+ const content = "{/loop} {foobar}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Unopened loop",
+ properties: {
+ file: "word/document.xml",
+ id: "unopened_loop",
+ xtag: "loop",
+ offset: 0,
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should fail when a loop is never closed", function () {
+ const content = "{#loop} {foobar}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Unclosed loop",
+ properties: {
+ file: "word/document.xml",
+ id: "unclosed_loop",
+ xtag: "loop",
+ offset: 0,
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should fail when rawtag is not in paragraph", function () {
+ const content = "{@myrawtag}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Raw tag not in paragraph",
+ properties: {
+ expandTo: "w:p",
+ id: "raw_tag_outerxml_invalid",
+ offset: 0,
+ index: 1,
+ file: "word/document.xml",
+ postparsed: [
+ {
+ position: "start",
+ text: true,
+ type: "tag",
+ value: "",
+ tag: "w:t",
+ },
+ {
+ module: "rawxml",
+ type: "placeholder",
+ value: "myrawtag",
+ raw: "@myrawtag",
+ },
+ {
+ position: "end",
+ text: true,
+ type: "tag",
+ value: "",
+ tag: "w:t",
+ },
+ ],
+ xtag: "myrawtag",
+ rootError: {
+ message: 'No tag "w:p" was found at the left',
+ },
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should fail when rawtag is in table without paragraph", function () {
+ const content = "{@myrawtag}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Raw tag not in paragraph",
+ properties: {
+ file: "word/document.xml",
+ id: "raw_tag_outerxml_invalid",
+ explanation:
+ 'The tag "myrawtag" is not inside a paragraph, putting raw tags inside an inline loop is disallowed.',
+ xtag: "myrawtag",
+ postparsed: [
+ {
+ type: "tag",
+ position: "start",
+ text: false,
+ value: "",
+ tag: "w:table",
+ },
+ {
+ type: "tag",
+ position: "start",
+ text: true,
+ value: "",
+ tag: "w:t",
+ },
+ {
+ type: "placeholder",
+ value: "myrawtag",
+ raw: "@myrawtag",
+ module: "rawxml",
+ },
+ {
+ type: "tag",
+ position: "end",
+ text: true,
+ value: "",
+ tag: "w:t",
+ },
+ {
+ type: "tag",
+ position: "end",
+ text: false,
+ value: "",
+ tag: "w:p",
+ },
+ {
+ type: "tag",
+ position: "end",
+ text: false,
+ value: "",
+ tag: "w:table",
+ },
+ ],
+ rootError: {
+ message: 'No tag "w:p" was found at the left',
+ },
+ expandTo: "w:p",
+ index: 2,
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should fail when rawtag is not only text in paragraph", function () {
+ const content = " {@myrawtag}foobar";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Raw tag should be the only text in paragraph",
+ properties: {
+ file: "word/document.xml",
+ id: "raw_xml_tag_should_be_only_text_in_paragraph",
+ xtag: "myrawtag",
+ offset: 1,
+ paragraphPartsLength: 7,
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should count 3 errors when having rawxml and two other errors", function () {
+ const content = "foo} {@bang} bar}";
+
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Unopened tag",
+ properties: {
+ file: "word/document.xml",
+ xtag: "foo",
+ id: "unopened_tag",
+ context: "foo",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unopened tag",
+ properties: {
+ file: "word/document.xml",
+ xtag: "bar",
+ id: "unopened_tag",
+ context: "} bar",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Raw tag should be the only text in paragraph",
+ properties: {
+ file: "word/document.xml",
+ id: "raw_xml_tag_should_be_only_text_in_paragraph",
+ xtag: "bang",
+ paragraphParts: [
+ {
+ type: "tag",
+ position: "start",
+ text: false,
+ value: "",
+ tag: "w:r",
+ lIndex: 1,
+ },
+ {
+ type: "tag",
+ position: "start",
+ text: true,
+ value: '',
+ tag: "w:t",
+ lIndex: 2,
+ },
+ {
+ type: "content",
+ value: "foo",
+ offset: 0,
+ position: "insidetag",
+ lIndex: 3,
+ },
+ {
+ type: "placeholder",
+ value: "",
+ endLindex: 4,
+ lIndex: 4,
+ },
+ {
+ type: "content",
+ value: " ",
+ offset: 4,
+ position: "insidetag",
+ lIndex: 5,
+ },
+ {
+ type: "placeholder",
+ value: "bang",
+ module: "rawxml",
+ offset: 5,
+ endLindex: 8,
+ lIndex: 8,
+ raw: "@bang",
+ },
+ {
+ type: "content",
+ value: " bar",
+ offset: 12,
+ position: "insidetag",
+ lIndex: 9,
+ },
+ {
+ type: "placeholder",
+ value: "",
+ offset: 5,
+ endLindex: 10,
+ lIndex: 10,
+ },
+ {
+ type: "tag",
+ position: "end",
+ text: true,
+ value: "",
+ tag: "w:t",
+ lIndex: 11,
+ },
+ {
+ type: "tag",
+ position: "end",
+ text: false,
+ value: "",
+ tag: "w:r",
+ lIndex: 12,
+ },
+ ],
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should fail when customparser fails to compile", function () {
+ const content = "{name++}";
+ const expectedError = {
+ name: "ScopeParserError",
+ message: "Scope parser compilation failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_compilation_failed",
+ tag: "name++",
+ rootError: {
+ message: `[$parse:ueoe] Unexpected end of expression: name++
+http://errors.angularjs.org/"NG_VERSION_FULL"/$parse/ueoe?p0=name%2B%2B`,
+ },
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+});
+
+describe("Runtime errors", function () {
+ it("should fail when customparser fails to execute", function () {
+ const content = " {name|upper}";
+ function errorParser() {
+ return {
+ get() {
+ throw new Error("foo bar");
+ },
+ };
+ }
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_execution_failed",
+ scope: {},
+ tag: "name|upper",
+ offset: 1,
+ rootError: { message: "foo bar" },
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: errorParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should be possible to log the error", function () {
+ let errorStringified = "";
+ const content = " {name|upper}";
+ function errorParser() {
+ return {
+ get() {
+ throw new Error("foo bar 6aaef652-8525-4442-b9b8-5ab942b2c476");
+ },
+ };
+ }
+ function replaceErrors(key, value) {
+ if (value instanceof Error) {
+ return Object.getOwnPropertyNames(value).reduce(function (error, key) {
+ error[key] = value[key];
+ return error;
+ }, {});
+ }
+ return value;
+ }
+ try {
+ createXmlTemplaterDocx(content, { parser: errorParser });
+ } catch (e) {
+ errorStringified = JSON.stringify(e, replaceErrors, 2);
+ }
+ expect(errorStringified).to.contain(
+ "foo bar 6aaef652-8525-4442-b9b8-5ab942b2c476"
+ );
+ });
+
+ it("should fail with multi-error when customparser fails to execute on multiple raw tags", function () {
+ const content = `
+ {@raw|isfalse}
+ {@raw|istrue}
+ `;
+ let count = 0;
+ function errorParser() {
+ return {
+ get() {
+ count++;
+ throw new Error(`foo ${count}`);
+ },
+ };
+ }
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ id: "scopeparser_execution_failed",
+ file: "word/document.xml",
+ scope: {},
+ tag: "raw|isfalse",
+ rootError: { message: "foo 1" },
+ offset: 0,
+ },
+ },
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_execution_failed",
+ scope: {},
+ tag: "raw|istrue",
+ rootError: { message: "foo 2" },
+ offset: 14,
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: errorParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+});
+
+describe("Internal errors", function () {
+ it("should fail if using odt format", function (done) {
+ const expectedError = {
+ name: "InternalError",
+ message: 'The filetype "odt" is not handled by docxtemplater',
+ properties: {
+ id: "filetype_not_handled",
+ fileType: "odt",
+ },
+ };
+ loadFile("test.odt", (e, name, buffer) => {
+ function create() {
+ loadDocument(name, buffer);
+ }
+ expectToThrow(create, Errors.XTInternalError, expectedError);
+ done();
+ });
+ });
+});
+
+describe("Multi errors", function () {
+ it("should work with multiple errors simple", function () {
+ const content = "foo} Hello {user, my age is {bar}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ id: "multi_error",
+ errors: [
+ {
+ message: "Unopened tag",
+ name: "TemplateError",
+ properties: {
+ offset: 3,
+ context: "foo",
+ id: "unopened_tag",
+ xtag: "foo",
+ file: "word/document.xml",
+ },
+ },
+ {
+ message: "Unclosed tag",
+ name: "TemplateError",
+ properties: {
+ offset: 11,
+ context: "{user, my age is ",
+ id: "unclosed_tag",
+ xtag: "user,",
+ file: "word/document.xml",
+ },
+ },
+ ],
+ },
+ };
+
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should work with multiple errors complex", function () {
+ const content = `foo}
+ Hello {user, my age is {bar}
+ Hi bang}, my name is {user2}
+ Hey {user}, my age is {bar}
+ Hola {bang}, my name is {user2}
+ {user, my age is {bar
+ `
+ .replace(/\t/g, "")
+ .split("\n")
+ .join("!");
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ id: "multi_error",
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Unopened tag",
+ properties: {
+ xtag: "foo",
+ id: "unopened_tag",
+ context: "foo",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ xtag: "user,",
+ id: "unclosed_tag",
+ context: "{user, my age is ",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unopened tag",
+ properties: {
+ xtag: "bang",
+ id: "unopened_tag",
+ context: "}!Hi bang",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ xtag: "user,",
+ id: "unclosed_tag",
+ context: "{user, my age is ",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ xtag: "bar!",
+ id: "unclosed_tag",
+ context: "{bar!",
+ file: "word/document.xml",
+ },
+ },
+ ],
+ },
+ };
+
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should work with loops", function () {
+ const content = `
+ {#users}User name{/foo}
+ {#bang}User name{/baz}
+
+ `;
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Closing tag does not match opening tag",
+ properties: {
+ file: "word/document.xml",
+ id: "closing_tag_does_not_match_opening_tag",
+ openingtag: "users",
+ closingtag: "foo",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Closing tag does not match opening tag",
+ properties: {
+ file: "word/document.xml",
+ id: "closing_tag_does_not_match_opening_tag",
+ openingtag: "bang",
+ closingtag: "baz",
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should work with loops unopened", function () {
+ const content = `
+ {/loop} {#users}User name{/foo}
+ {#bang}User name{/baz}
+ {/fff}
+ {#yum}
+
+ `;
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Unopened loop",
+ properties: {
+ file: "word/document.xml",
+ id: "unopened_loop",
+ xtag: "loop",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Closing tag does not match opening tag",
+ properties: {
+ id: "closing_tag_does_not_match_opening_tag",
+ openingtag: "users",
+ closingtag: "foo",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Closing tag does not match opening tag",
+ properties: {
+ id: "closing_tag_does_not_match_opening_tag",
+ openingtag: "bang",
+ closingtag: "baz",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unopened loop",
+ properties: {
+ id: "unopened_loop",
+ xtag: "fff",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unclosed loop",
+ properties: {
+ id: "unclosed_loop",
+ xtag: "yum",
+ file: "word/document.xml",
+ // To test that the offset is present and well calculated
+ offset: 68,
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should fail when having multiple rawtags without a surrounding paragraph", function () {
+ const content = "{@first}foo{@second}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Raw tag not in paragraph",
+ properties: {
+ file: "word/document.xml",
+ id: "raw_tag_outerxml_invalid",
+ xtag: "first",
+ rootError: {
+ message: 'No tag "w:p" was found at the left',
+ },
+ postparsedLength: 9,
+ expandTo: "w:p",
+ offset: 0,
+ index: 1,
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Raw tag should be the only text in paragraph",
+ properties: {
+ file: "word/document.xml",
+ id: "raw_xml_tag_should_be_only_text_in_paragraph",
+ paragraphPartsLength: 4,
+ xtag: "second",
+ offset: 11,
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+ it("should fail when customparser fails to compile", function () {
+ const content = "{name++} {foo|||bang}";
+ const expectedError = {
+ message: "Multi error",
+ name: "TemplateError",
+ properties: {
+ errors: [
+ {
+ name: "ScopeParserError",
+ message: "Scope parser compilation failed",
+ properties: {
+ file: "word/document.xml",
+ offset: 0,
+ id: "scopeparser_compilation_failed",
+ tag: "name++",
+ rootError: {
+ message: `[$parse:ueoe] Unexpected end of expression: name++
+http://errors.angularjs.org/"NG_VERSION_FULL"/$parse/ueoe?p0=name%2B%2B`,
+ },
+ },
+ },
+ {
+ name: "ScopeParserError",
+ message: "Scope parser compilation failed",
+ properties: {
+ file: "word/document.xml",
+ offset: 9,
+ id: "scopeparser_compilation_failed",
+ tag: "foo|||bang",
+ rootError: {
+ message: `[$parse:syntax] Syntax Error: Token '|' not a primary expression at column 6 of the expression [foo|||bang] starting at [|bang].
+http://errors.angularjs.org/"NG_VERSION_FULL"/$parse/syntax?p0=%7C&p1=not%20a%20primary%20expression&p2=6&p3=foo%7C%7C%7Cbang&p4=%7Cbang`,
+ },
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should fail when customparser fails to compile 2", function () {
+ const content = "{name++} {foo|||bang}";
+ const expectedError = {
+ message: "Multi error",
+ name: "TemplateError",
+ properties: {
+ errors: [
+ {
+ name: "ScopeParserError",
+ message: "Scope parser compilation failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_compilation_failed",
+ tag: "name++",
+ rootError: {
+ message: `[$parse:ueoe] Unexpected end of expression: name++
+http://errors.angularjs.org/"NG_VERSION_FULL"/$parse/ueoe?p0=name%2B%2B`,
+ },
+ },
+ },
+ {
+ name: "ScopeParserError",
+ message: "Scope parser compilation failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_compilation_failed",
+ tag: "foo|||bang",
+ rootError: {
+ message: `[$parse:syntax] Syntax Error: Token '|' not a primary expression at column 6 of the expression [foo|||bang] starting at [|bang].
+http://errors.angularjs.org/"NG_VERSION_FULL"/$parse/syntax?p0=%7C&p1=not%20a%20primary%20expression&p2=6&p3=foo%7C%7C%7Cbang&p4=%7Cbang`,
+ },
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should work with lexer and customparser", function () {
+ const content = "foo} Hello {name++}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ id: "multi_error",
+ errors: [
+ {
+ message: "Unopened tag",
+ name: "TemplateError",
+ properties: {
+ context: "foo",
+ id: "unopened_tag",
+ xtag: "foo",
+ file: "word/document.xml",
+ },
+ },
+ {
+ message: "Scope parser compilation failed",
+ name: "ScopeParserError",
+ properties: {
+ id: "scopeparser_compilation_failed",
+ tag: "name++",
+ rootError: {
+ message: `[$parse:ueoe] Unexpected end of expression: name++
+http://errors.angularjs.org/"NG_VERSION_FULL"/$parse/ueoe?p0=name%2B%2B`,
+ },
+ file: "word/document.xml",
+ },
+ },
+ ],
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should work with lexer and loop", function () {
+ const content = "foo} The users are {#users}{/bar}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ id: "multi_error",
+ errors: [
+ {
+ message: "Unopened tag",
+ name: "TemplateError",
+ properties: {
+ context: "foo",
+ id: "unopened_tag",
+ xtag: "foo",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Closing tag does not match opening tag",
+ properties: {
+ id: "closing_tag_does_not_match_opening_tag",
+ openingtag: "users",
+ closingtag: "bar",
+ file: "word/document.xml",
+ },
+ },
+ ],
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should work with multiple errors", function () {
+ const content =
+ "foo} The users are {#users}{/bar} {@bang} ";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ id: "multi_error",
+ errors: [
+ {
+ message: "Unopened tag",
+ name: "TemplateError",
+ properties: {
+ context: "foo",
+ id: "unopened_tag",
+ xtag: "foo",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Closing tag does not match opening tag",
+ properties: {
+ id: "closing_tag_does_not_match_opening_tag",
+ openingtag: "users",
+ closingtag: "bar",
+ offset: [19, 27],
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Raw tag not in paragraph",
+ properties: {
+ id: "raw_tag_outerxml_invalid",
+ xtag: "bang",
+ rootError: {
+ message: 'No tag "w:p" was found at the left',
+ },
+ postparsedLength: 12,
+ expandTo: "w:p",
+ index: 9,
+ file: "word/document.xml",
+ },
+ },
+ ],
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should work with multiple unclosed", function () {
+ const content = `foo
+ {city, {state {zip `;
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ offset: 3,
+ xtag: "city,",
+ id: "unclosed_tag",
+ context: "{city, ",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ offset: 10,
+ xtag: "state",
+ id: "unclosed_tag",
+ context: "{state ",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ offset: 17,
+ xtag: "zip",
+ id: "unclosed_tag",
+ context: "{zip ",
+ file: "word/document.xml",
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should work with multiple unopened", function () {
+ const content = `foo
+ city}, state} zip}`;
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Unopened tag",
+ properties: {
+ xtag: "city",
+ id: "unopened_tag",
+ context: "foo city",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unopened tag",
+ properties: {
+ xtag: "state",
+ id: "unopened_tag",
+ context: "}, state",
+ file: "word/document.xml",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unopened tag",
+ properties: {
+ xtag: "zip",
+ id: "unopened_tag",
+ context: "} zip",
+ file: "word/document.xml",
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should show an error when loop tag are badly used (xml open count !== xml close count)", function () {
+ const content = `
+
+
+ {#users} test
+
+
+ test2
+
+
+
+
+ {/users}
+ `;
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "TemplateError",
+ message:
+ 'The position of the loop tags "users" would produce invalid XML',
+ properties: {
+ tag: "users",
+ offset: [0, 17],
+ id: "loop_position_invalid",
+ file: "word/document.xml",
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ });
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should show clean error message when using {{ with single delimiter", function () {
+ const content = `
+ {{name}}
+ `;
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Duplicate open tag, expected one open tag",
+ properties: {
+ context: "{{name",
+ file: "word/document.xml",
+ id: "duplicate_open_tag",
+ offset: 0,
+ xtag: "{{name",
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Duplicate close tag, expected one close tag",
+ properties: {
+ context: "name}}",
+ file: "word/document.xml",
+ id: "duplicate_close_tag",
+ xtag: "name}}",
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+
+ const create = createXmlTemplaterDocx.bind(null, content);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+});
+
+describe("Rendering error", function () {
+ it("should show an error when using corrupt characters", function () {
+ const content = " {user}";
+ const expectedError = {
+ name: "RenderingError",
+ message: "There are some XML corrupt characters",
+ properties: {
+ id: "invalid_xml_characters",
+ value: "\u001c",
+ xtag: "user",
+ offset: 1,
+ file: "word/document.xml",
+ },
+ };
+ const create = createXmlTemplaterDocx.bind(null, content, {
+ parser: angularParser,
+ tags: { user: String.fromCharCode(28) },
+ });
+ expectToThrow(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+});
+
+describe("Async errors", function () {
+ it("should show error when having async promise", function () {
+ const content = "{user}";
+ const expectedError = {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_execution_failed",
+ tag: "user",
+ scope: {
+ user: {},
+ },
+ rootError: {
+ message: "Foobar",
+ },
+ },
+ };
+ const doc = createXmlTemplaterDocxNoRender(content);
+ doc.compile();
+ function create() {
+ return doc.resolveData({ user: rejectSoon(new Error("Foobar")) });
+ }
+ return expectToThrowAsync(
+ create,
+ Errors.XTTemplateError,
+ wrapMultiError(expectedError)
+ );
+ });
+
+ it("should show error when having async reject within loop", function () {
+ const content = "{#users}{user}{/}";
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_execution_failed",
+ scope: 1,
+ tag: "user",
+ rootError: { message: "foo 1" },
+ },
+ },
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_execution_failed",
+ scope: 2,
+ tag: "user",
+ rootError: { message: "foo 2" },
+ },
+ },
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ file: "word/document.xml",
+ id: "scopeparser_execution_failed",
+ scope: 3,
+ tag: "user",
+ rootError: { message: "foo 3" },
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ let count = 0;
+ function errorParser(tag) {
+ return {
+ get() {
+ if (tag === "users") {
+ return [1, 2, 3];
+ }
+ count++;
+ throw new Error(`foo ${count}`);
+ },
+ };
+ }
+ const doc = createXmlTemplaterDocxNoRender(content, {
+ parser: errorParser,
+ });
+ doc.compile();
+ function create() {
+ return doc.resolveData({});
+ }
+ return expectToThrowAsync(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should show error when running resolveData before compile", function () {
+ const content = "{#users}{user}{/}";
+ const expectedError = {
+ name: "InternalError",
+ message: "You must run `.compile()` before running `.resolveData()`",
+ properties: {
+ id: "resolve_before_compile",
+ },
+ };
+ const doc = createXmlTemplaterDocxNoRender(content);
+ function create() {
+ return doc.resolveData({});
+ }
+ return expectToThrowAsync(create, Errors.XTInternalError, expectedError);
+ });
+
+ it("should fail when customparser fails to execute on multiple tags", function () {
+ const content =
+ "{#name|istrue}Name{/} {name|upper} {othername|upper}";
+ let count = 0;
+ function errorParser() {
+ return {
+ get() {
+ count++;
+ throw new Error(`foo ${count}`);
+ },
+ };
+ }
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ id: "scopeparser_execution_failed",
+ file: "word/document.xml",
+ scope: {},
+ tag: "name|upper",
+ rootError: { message: "foo 2" },
+ offset: 22,
+ },
+ },
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ id: "scopeparser_execution_failed",
+ file: "word/document.xml",
+ scope: {},
+ tag: "othername|upper",
+ rootError: { message: "foo 3" },
+ offset: 35,
+ },
+ },
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ id: "scopeparser_execution_failed",
+ file: "word/document.xml",
+ scope: {},
+ tag: "name|istrue",
+ rootError: { message: "foo 1" },
+ offset: 0,
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const doc = createXmlTemplaterDocxNoRender(content, {
+ parser: errorParser,
+ });
+ doc.compile();
+ function create() {
+ return doc.resolveData().then(function () {
+ return doc.render();
+ });
+ }
+ return expectToThrowAsync(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should fail when customparser fails to execute on multiple raw tags", function () {
+ const content = `
+ {@raw|isfalse}
+ {@raw|istrue}
+ `;
+ let count = 0;
+ function errorParser() {
+ return {
+ get() {
+ count++;
+ throw new Error(`foo ${count}`);
+ },
+ };
+ }
+ const expectedError = {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ errors: [
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ id: "scopeparser_execution_failed",
+ file: "word/document.xml",
+ scope: {},
+ tag: "raw|isfalse",
+ rootError: { message: "foo 1" },
+ offset: 0,
+ },
+ },
+ {
+ name: "ScopeParserError",
+ message: "Scope parser execution failed",
+ properties: {
+ id: "scopeparser_execution_failed",
+ file: "word/document.xml",
+ scope: {},
+ tag: "raw|istrue",
+ rootError: { message: "foo 2" },
+ offset: 14,
+ },
+ },
+ ],
+ id: "multi_error",
+ },
+ };
+ const doc = createXmlTemplaterDocxNoRender(content, {
+ parser: errorParser,
+ });
+ doc.compile();
+ function create() {
+ return doc.resolveData().then(function () {
+ return doc.render();
+ });
+ }
+ return expectToThrowAsync(create, Errors.XTTemplateError, expectedError);
+ });
+});
diff --git a/es6/tests/fixtures.js b/es6/tests/fixtures.js
new file mode 100644
index 0000000..bcfc257
--- /dev/null
+++ b/es6/tests/fixtures.js
@@ -0,0 +1,1301 @@
+const { clone, assign } = require("lodash");
+const angularParser = require("./angular-parser");
+
+const xmlSpacePreserveTag = {
+ type: "tag",
+ position: "start",
+ value: '',
+ text: true,
+ tag: "w:t",
+};
+const startText = {
+ type: "tag",
+ position: "start",
+ value: "",
+ text: true,
+ tag: "w:t",
+};
+const endText = {
+ type: "tag",
+ value: "",
+ text: true,
+ position: "end",
+ tag: "w:t",
+};
+const startParagraph = {
+ type: "tag",
+ value: "",
+ text: false,
+ position: "start",
+ tag: "w:p",
+};
+const endParagraph = {
+ type: "tag",
+ value: "",
+ text: false,
+ position: "end",
+ tag: "w:p",
+};
+
+const tableRowStart = {
+ type: "tag",
+ position: "start",
+ text: false,
+ value: "",
+ tag: "w:tr",
+};
+const tableRowEnd = {
+ type: "tag",
+ value: "",
+ text: false,
+ position: "end",
+ tag: "w:tr",
+};
+
+const delimiters = {
+ start: { type: "delimiter", position: "start" },
+ end: { type: "delimiter", position: "end" },
+};
+function content(value) {
+ return { type: "content", value, position: "insidetag" };
+}
+function externalContent(value) {
+ return { type: "content", value, position: "outsidetag" };
+}
+
+const fixtures = {
+ simple: {
+ it: "should handle {user} with tag",
+ content: "Hi {user}",
+ scope: {
+ user: "Foo",
+ },
+ result: 'Hi Foo',
+ lexed: [
+ startText,
+ content("Hi "),
+ delimiters.start,
+ content("user"),
+ delimiters.end,
+ endText,
+ ],
+ parsed: [
+ startText,
+ content("Hi "),
+ { type: "placeholder", value: "user" },
+ endText,
+ ],
+ postparsed: [
+ xmlSpacePreserveTag,
+ content("Hi "),
+ { type: "placeholder", value: "user" },
+ endText,
+ ],
+ },
+ dot: {
+ it: "should handle {.} with tag",
+ content: "Hi {.}",
+ scope: "Foo",
+ result: 'Hi Foo',
+ lexed: [
+ startText,
+ content("Hi "),
+ delimiters.start,
+ content("."),
+ delimiters.end,
+ endText,
+ ],
+ parsed: [
+ startText,
+ content("Hi "),
+ { type: "placeholder", value: "." },
+ endText,
+ ],
+ postparsed: [
+ xmlSpacePreserveTag,
+ content("Hi "),
+ { type: "placeholder", value: "." },
+ endText,
+ ],
+ },
+ strangetags: {
+ it: "should xmlparse strange tags",
+ content: "{name} {FOOageBAR}",
+ scope: {
+ name: "Foo",
+ age: 12,
+ },
+ result:
+ 'Foo 12FOOBAR',
+ parsed: [
+ startText,
+ { type: "placeholder", value: "name" },
+ content(" "),
+ { type: "placeholder", value: "age" },
+ endText,
+ externalContent("FOO"),
+ startText,
+ endText,
+ externalContent("BAR"),
+ startText,
+ endText,
+ ],
+ xmllexed: [
+ startText,
+ { type: "content", value: "{name} {" },
+ endText,
+ { type: "content", value: "FOO" },
+ startText,
+ { type: "content", value: "age" },
+ endText,
+ { type: "content", value: "BAR" },
+ startText,
+ { type: "content", value: "}" },
+ endText,
+ ],
+ lexed: [
+ startText,
+ delimiters.start,
+ content("name"),
+ delimiters.end,
+ content(" "),
+ delimiters.start,
+ endText,
+ externalContent("FOO"),
+ startText,
+ content("age"),
+ endText,
+ externalContent("BAR"),
+ startText,
+ delimiters.end,
+ endText,
+ ],
+ postparsed: null,
+ },
+ otherdelimiters: {
+ it: "should work with custom delimiters",
+ content: "Hello [[[name]]",
+ scope: {
+ name: "John Doe",
+ },
+ result: 'Hello John Doe',
+ delimiters: {
+ start: "[[[",
+ end: "]]",
+ },
+ lexed: [
+ startText,
+ content("Hello "),
+ delimiters.start,
+ content("name"),
+ delimiters.end,
+ endText,
+ ],
+ parsed: [
+ startText,
+ content("Hello "),
+ { type: "placeholder", value: "name" },
+ endText,
+ ],
+ postparsed: null,
+ },
+ otherdelimiterssplitted: {
+ it: "should work with custom delimiters splitted",
+ content: 'Hello {name}}, how is it ?',
+ scope: {
+ name: "John Doe",
+ },
+ result:
+ 'Hello John Doe, how is it ?',
+ delimiters: {
+ start: "{",
+ end: "}}",
+ },
+ lexed: [
+ startText,
+ content("Hello "),
+ delimiters.start,
+ content("name"),
+ delimiters.end,
+ endText,
+ {
+ type: "tag",
+ value: '',
+ text: true,
+ position: "start",
+ tag: "w:t",
+ },
+ content(", how is it ?"),
+ endText,
+ ],
+ parsed: [
+ startText,
+ content("Hello "),
+ { type: "placeholder", value: "name" },
+ endText,
+ {
+ type: "tag",
+ value: '',
+ text: true,
+ position: "start",
+ tag: "w:t",
+ },
+ content(", how is it ?"),
+ endText,
+ ],
+ postparsed: null,
+ },
+ otherdelimiterssplittedover2tags: {
+ it: "should work with custom delimiters splitted over > 2 tags",
+ content:
+ "Hello {name}}TAG}}}foobar",
+ scope: {
+ name: "John Doe",
+ },
+ result:
+ 'Hello John DoeTAGfoobar',
+ delimiters: {
+ start: "{",
+ end: "}}}}}",
+ },
+ lexed: [
+ startText,
+ content("Hello "),
+ delimiters.start,
+ content("name"),
+ delimiters.end,
+ endText,
+ startText,
+ endText,
+ externalContent("TAG"),
+ startText,
+ endText,
+ startText,
+ content("foobar"),
+ endText,
+ ],
+ parsed: [
+ startText,
+ content("Hello "),
+ { type: "placeholder", value: "name" },
+ endText,
+ startText,
+ endText,
+ externalContent("TAG"),
+ startText,
+ endText,
+ startText,
+ content("foobar"),
+ endText,
+ ],
+ postparsed: null,
+ },
+ looptag: {
+ it: "should work with loops",
+ content: "Hello {#users}{name}, {/users}",
+ scope: {
+ users: [{ name: "John Doe" }, { name: "Jane Doe" }, { name: "Wane Doe" }],
+ },
+ result:
+ 'Hello John Doe, Jane Doe, Wane Doe, ',
+ lexed: [
+ startText,
+ content("Hello "),
+ delimiters.start,
+ content("#users"),
+ delimiters.end,
+ delimiters.start,
+ content("name"),
+ delimiters.end,
+ content(", "),
+ delimiters.start,
+ content("/users"),
+ delimiters.end,
+ endText,
+ ],
+ parsed: [
+ startText,
+ content("Hello "),
+ {
+ type: "placeholder",
+ value: "users",
+ location: "start",
+ module: "loop",
+ inverted: false,
+ expandTo: "auto",
+ },
+ { type: "placeholder", value: "name" },
+ content(", "),
+ { type: "placeholder", value: "users", location: "end", module: "loop" },
+ endText,
+ ],
+ postparsed: [
+ xmlSpacePreserveTag,
+ content("Hello "),
+ {
+ type: "placeholder",
+ value: "users",
+ module: "loop",
+ inverted: false,
+ sectPrCount: 0,
+ subparsed: [{ type: "placeholder", value: "name" }, content(", ")],
+ },
+ endText,
+ ],
+ },
+ paragraphlooptag: {
+ it: "should work with paragraph loops",
+ content:
+ "Hello {#users}User {.}{/users}",
+ scope: {
+ users: ["John Doe", "Jane Doe", "Wane Doe"],
+ },
+ result:
+ 'Hello User John DoeUser Jane DoeUser Wane Doe',
+ lexed: [
+ startParagraph,
+ startText,
+ content("Hello "),
+ endText,
+ endParagraph,
+ startParagraph,
+ startText,
+ delimiters.start,
+ content("#users"),
+ delimiters.end,
+ endText,
+ endParagraph,
+ startParagraph,
+ startText,
+ content("User "),
+ delimiters.start,
+ content("."),
+ delimiters.end,
+ endText,
+ endParagraph,
+ startParagraph,
+ startText,
+ delimiters.start,
+ content("/users"),
+ delimiters.end,
+ endText,
+ endParagraph,
+ ],
+ parsed: [
+ startParagraph,
+ startText,
+ content("Hello "),
+ endText,
+ endParagraph,
+ startParagraph,
+ startText,
+ {
+ type: "placeholder",
+ value: "users",
+ location: "start",
+ module: "loop",
+ inverted: false,
+ expandTo: "auto",
+ },
+ endText,
+ endParagraph,
+ startParagraph,
+ startText,
+ content("User "),
+ { type: "placeholder", value: "." },
+ endText,
+ endParagraph,
+ startParagraph,
+ startText,
+ { type: "placeholder", value: "users", location: "end", module: "loop" },
+ endText,
+ endParagraph,
+ ],
+ postparsed: [
+ startParagraph,
+ startText,
+ content("Hello "),
+ endText,
+ endParagraph,
+ {
+ type: "placeholder",
+ value: "users",
+ module: "loop",
+ sectPrCount: 0,
+ hasPageBreak: false,
+ hasPageBreakBeginning: false,
+ inverted: false,
+ subparsed: [
+ startParagraph,
+ xmlSpacePreserveTag,
+ content("User "),
+ { type: "placeholder", value: "." },
+ endText,
+ endParagraph,
+ ],
+ },
+ ],
+ options: {
+ paragraphLoop: true,
+ },
+ },
+ nestedparagraphlooptag: {
+ it: "should not fail with nested loops if using paragraphLoop",
+ content:
+ "{#users} {#pets}Pet {.}{/pets}{/users}",
+ scope: {
+ users: [
+ {
+ pets: ["Cat", "Dog"],
+ },
+ {
+ pets: ["Cat", "Dog"],
+ },
+ ],
+ },
+ result:
+ ' Pet CatPet Dog Pet CatPet Dog',
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ options: {
+ paragraphLoop: true,
+ },
+ },
+ spacingloops: {
+ it: "should work with spacing loops",
+ content: "{#condition} hello{/condition}",
+ result: ' hello',
+ scope: {
+ condition: true,
+ },
+ lexed: [
+ startText,
+ delimiters.start,
+ content("#condition"),
+ endText,
+ startText,
+ delimiters.end,
+ content(" hello"),
+ delimiters.start,
+ content("/"),
+ endText,
+ startText,
+ content("condition"),
+ delimiters.end,
+ endText,
+ ],
+ parsed: [
+ startText,
+ {
+ type: "placeholder",
+ value: "condition",
+ location: "start",
+ module: "loop",
+ inverted: false,
+ expandTo: "auto",
+ },
+ endText,
+ startText,
+ content(" hello"),
+ {
+ type: "placeholder",
+ value: "condition",
+ location: "end",
+ module: "loop",
+ },
+ endText,
+ startText,
+ endText,
+ ],
+ postparsed: null,
+ },
+ spacingloops2: {
+ it: "should work with spacing loops 2",
+ content: "{#condition}{text}{/condition}",
+ result: ' hello ',
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ scope: {
+ condition: [{ text: " hello " }],
+ },
+ },
+ spacingloops3: {
+ it: "should work with spacing loops 3",
+ content: "{#condition}{/condition} foo",
+ result: ' foo',
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ scope: {
+ condition: false,
+ },
+ },
+ spacingloops4: {
+ it: "should work with spacing loops 4",
+ content: "{#condition}foo{/condition}",
+ result: "",
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ scope: {
+ condition: false,
+ },
+ },
+ dashlooptag: {
+ it: "should work with dashloops",
+ content: "Hello {-w:p users}{name}, {/users}",
+ scope: {
+ users: [{ name: "John Doe" }, { name: "Jane Doe" }, { name: "Wane Doe" }],
+ },
+ result:
+ 'Hello John Doe, Hello Jane Doe, Hello Wane Doe, ',
+ lexed: [
+ startParagraph,
+ startText,
+ content("Hello "),
+ delimiters.start,
+ content("-w:p users"),
+ delimiters.end,
+ delimiters.start,
+ content("name"),
+ delimiters.end,
+ content(", "),
+ delimiters.start,
+ content("/users"),
+ delimiters.end,
+ endText,
+ endParagraph,
+ ],
+ parsed: [
+ startParagraph,
+ startText,
+ content("Hello "),
+ {
+ type: "placeholder",
+ value: "users",
+ location: "start",
+ module: "loop",
+ inverted: false,
+ expandTo: "w:p",
+ },
+ { type: "placeholder", value: "name" },
+ content(", "),
+ { type: "placeholder", value: "users", location: "end", module: "loop" },
+ endText,
+ endParagraph,
+ ],
+ postparsed: [
+ {
+ type: "placeholder",
+ value: "users",
+ module: "loop",
+ inverted: false,
+ sectPrCount: 0,
+ subparsed: [
+ startParagraph,
+ xmlSpacePreserveTag,
+ content("Hello "),
+ { type: "placeholder", value: "name" },
+ content(", "),
+ endText,
+ endParagraph,
+ ],
+ },
+ ],
+ },
+ dashloopnested: {
+ it: "should work with dashloops nested",
+ content:
+ "{-w:tr columns} Hello {-w:p users}{name}, {/users}{/columns}",
+ scope: {
+ columns: [
+ {
+ users: [
+ { name: "John Doe" },
+ { name: "Jane Doe" },
+ { name: "Wane Doe" },
+ ],
+ },
+ ],
+ },
+ result:
+ ' Hello John Doe, Hello Jane Doe, Hello Wane Doe, ',
+ lexed: [
+ tableRowStart,
+ startParagraph,
+ startText,
+ delimiters.start,
+ content("-w:tr columns"),
+ delimiters.end,
+ content(" Hello "),
+ delimiters.start,
+ content("-w:p users"),
+ delimiters.end,
+ delimiters.start,
+ content("name"),
+ delimiters.end,
+ content(", "),
+ delimiters.start,
+ content("/users"),
+ delimiters.end,
+ endText,
+ startText,
+ delimiters.start,
+ content("/columns"),
+ delimiters.end,
+ endText,
+ endParagraph,
+ tableRowEnd,
+ ],
+ parsed: [
+ tableRowStart,
+ startParagraph,
+ startText,
+ {
+ type: "placeholder",
+ value: "columns",
+ location: "start",
+ module: "loop",
+ inverted: false,
+ expandTo: "w:tr",
+ },
+ content(" Hello "),
+ {
+ type: "placeholder",
+ value: "users",
+ location: "start",
+ module: "loop",
+ inverted: false,
+ expandTo: "w:p",
+ },
+ { type: "placeholder", value: "name" },
+ content(", "),
+ { type: "placeholder", value: "users", location: "end", module: "loop" },
+ endText,
+ startText,
+ {
+ type: "placeholder",
+ value: "columns",
+ location: "end",
+ module: "loop",
+ },
+ endText,
+ endParagraph,
+ tableRowEnd,
+ ],
+ postparsed: null,
+ },
+ rawxml: {
+ it: "should work with rawxml",
+ content: "BEFORE{@rawxml}AFTER",
+ scope: {
+ rawxml:
+ 'My customXML',
+ },
+ result:
+ 'BEFOREMy customXMLAFTER',
+ lexed: [
+ externalContent("BEFORE"),
+ startParagraph,
+ startText,
+ delimiters.start,
+ content("@rawxml"),
+ delimiters.end,
+ endText,
+ endParagraph,
+ externalContent("AFTER"),
+ ],
+ parsed: [
+ externalContent("BEFORE"),
+ startParagraph,
+ startText,
+ { type: "placeholder", value: "rawxml", module: "rawxml" },
+ endText,
+ endParagraph,
+ externalContent("AFTER"),
+ ],
+ postparsed: [
+ externalContent("BEFORE"),
+ {
+ type: "placeholder",
+ value: "rawxml",
+ module: "rawxml",
+ expanded: [
+ [startParagraph, startText],
+ [endText, endParagraph],
+ ],
+ },
+ externalContent("AFTER"),
+ ],
+ },
+ selfclosing: {
+ it: "should handle selfclose tag",
+ content: "",
+ scope: {
+ user: "Foo",
+ },
+ result: "",
+ lexed: [
+ {
+ type: "tag",
+ value: "",
+ text: true,
+ position: "selfclosing",
+ tag: "w:t",
+ },
+ ],
+ parsed: [
+ {
+ type: "tag",
+ position: "selfclosing",
+ value: "",
+ text: true,
+ tag: "w:t",
+ },
+ ],
+ postparsed: [
+ {
+ type: "tag",
+ position: "selfclosing",
+ value: "",
+ text: true,
+ tag: "w:t",
+ },
+ ],
+ },
+ selfclosing_with_placeholderr: {
+ it: "should handle {user} with tag with selfclosing",
+ content: "Hi {user}",
+ scope: {
+ user: "Foo",
+ },
+ result: 'Hi Foo',
+ lexed: [
+ {
+ type: "tag",
+ value: "",
+ text: true,
+ position: "selfclosing",
+ tag: "w:t",
+ },
+ startText,
+ content("Hi "),
+ delimiters.start,
+ content("user"),
+ delimiters.end,
+ endText,
+ ],
+ parsed: [
+ {
+ type: "tag",
+ position: "selfclosing",
+ value: "",
+ text: true,
+ tag: "w:t",
+ },
+ startText,
+ content("Hi "),
+ { type: "placeholder", value: "user" },
+ endText,
+ ],
+ postparsed: [
+ {
+ type: "tag",
+ position: "selfclosing",
+ value: "",
+ text: true,
+ tag: "w:t",
+ },
+ xmlSpacePreserveTag,
+ content("Hi "),
+ { type: "placeholder", value: "user" },
+ endText,
+ ],
+ },
+ delimiters_change: {
+ it: "should be possible to change the delimiters",
+ content: "Hi {=[[ ]]=}[[user]][[={ }=]] and {user2}",
+ scope: {
+ user: "John",
+ user2: "Jane",
+ },
+ result: 'Hi John and Jane',
+ lexed: [
+ startText,
+ content("Hi "),
+ delimiters.start,
+ content("user"),
+ delimiters.end,
+ content(" and "),
+ delimiters.start,
+ content("user2"),
+ delimiters.end,
+ endText,
+ ],
+ parsed: [
+ startText,
+ content("Hi "),
+ { type: "placeholder", value: "user" },
+ content(" and "),
+ { type: "placeholder", value: "user2" },
+ endText,
+ ],
+ postparsed: [
+ xmlSpacePreserveTag,
+ content("Hi "),
+ { type: "placeholder", value: "user" },
+ content(" and "),
+ { type: "placeholder", value: "user2" },
+ endText,
+ ],
+ },
+ delimiters_change_complex: {
+ it: "should be possible to change the delimiters with complex example",
+ content: "Hi {={{[ ]}}=}{{[user]}}{{[={{ ]=]}} and {{user2]",
+ scope: {
+ user: "John",
+ user2: "Jane",
+ },
+ result: 'Hi John and Jane',
+ lexed: [
+ startText,
+ content("Hi "),
+ delimiters.start,
+ content("user"),
+ delimiters.end,
+ content(" and "),
+ delimiters.start,
+ content("user2"),
+ delimiters.end,
+ endText,
+ ],
+ parsed: [
+ startText,
+ content("Hi "),
+ { type: "placeholder", value: "user" },
+ content(" and "),
+ { type: "placeholder", value: "user2" },
+ endText,
+ ],
+ postparsed: [
+ xmlSpacePreserveTag,
+ content("Hi "),
+ { type: "placeholder", value: "user" },
+ content(" and "),
+ { type: "placeholder", value: "user2" },
+ endText,
+ ],
+ },
+ error_resolve: {
+ it: "should resolve the data correctly",
+ content: "{test}{#test}{label}{/test}{test}",
+ result: 'trueT1true',
+ scope: {
+ label: "T1",
+ test: true,
+ },
+ resolved: [
+ {
+ tag: "test",
+ value: true,
+ lIndex: 3,
+ },
+ {
+ tag: "test",
+ value: true,
+ lIndex: 15,
+ },
+ {
+ tag: "test",
+ value: [
+ [
+ {
+ tag: "label",
+ value: "T1",
+ lIndex: 9,
+ },
+ ],
+ ],
+ lIndex: 6,
+ },
+ ],
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ },
+ error_resolve_2: {
+ it: "should resolve 2 the data correctly",
+ content: "{^a}{label}{/a}",
+ result: "",
+ scope: {
+ a: true,
+ },
+ resolved: [
+ {
+ tag: "a",
+ value: [],
+ lIndex: 3,
+ },
+ ],
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ },
+ error_resolve_3: {
+ it: "should resolve 3 the data correctly",
+ content:
+ "{#frames}{#true}{label}{#false}{label}{/false}{/true}{#false}{label}{/false}{/frames}",
+ result: 'T1',
+ scope: {
+ frames: [
+ {
+ label: "T1",
+ true: true,
+ },
+ ],
+ },
+ resolved: [
+ {
+ tag: "frames",
+ value: [
+ [
+ {
+ tag: "false",
+ value: [],
+ lIndex: 24,
+ },
+ {
+ tag: "true",
+ value: [
+ [
+ {
+ tag: "label",
+ value: "T1",
+ lIndex: 9,
+ },
+ {
+ tag: "false",
+ value: [],
+ lIndex: 12,
+ },
+ ],
+ ],
+ lIndex: 6,
+ },
+ ],
+ ],
+ lIndex: 3,
+ },
+ ],
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ },
+ error_resolve_truthy: {
+ it: "should resolve truthy data correctly",
+ content:
+ "{#loop}L{#cond2}{label}{/cond2}{#cond3}{label}{/cond3}{/loop}",
+ result: 'Linner',
+ scope: {
+ label: "outer",
+ loop: [
+ {
+ cond2: true,
+ label: "inner",
+ },
+ ],
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ error_resolve_truthy_multi: {
+ it: "should resolve truthy multi data correctly",
+ content:
+ "{#loop}L{#cond2}{label}{/cond2}{#cond3}{label}{/cond3}{/loop}",
+ result: 'LinnerLinnerLinnerLouterouter',
+ scope: {
+ label: "outer",
+ loop: [
+ {
+ cond2: true,
+ label: "inner",
+ },
+ {
+ cond2: true,
+ label: "inner",
+ },
+ {
+ cond3: true,
+ label: "inner",
+ },
+ {
+ cond2: true,
+ cond3: true,
+ },
+ ],
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ async_loop_issue: {
+ it: "should resolve async loop",
+ content: "{#loop}{#cond1}{label}{/}{#cond2}{label}{/}{/loop}",
+ result: 'innerouterouter',
+ scope: {
+ label: "outer",
+ loop: [
+ {
+ cond1: true,
+ label: "inner",
+ },
+ {
+ cond1: true,
+ cond2: true,
+ },
+ ],
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ inversed_loop: {
+ it: "should work well with inversed loop",
+ content: "{#a}{^b}{label}{/}{/}",
+ result: 'hi',
+ scope: {
+ a: [{ b: false, label: "hi" }],
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ inversed_loop_nested: {
+ it: "should work well with inversed loop nested",
+ content: "{#a}{^b}{^c}{label}{/}{/}{/}",
+ result: 'hi',
+ scope: {
+ a: [{ b: false, label: "hi" }],
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ inversed_loop_nested_resolved: {
+ it: "should work well with inversed loop nested",
+ content: "{#a}{^b}{^c}{label}{/}{/}{/}",
+ result: 'hi',
+ scope: {
+ label: "outer",
+ a: [{ b: false, label: "hi" }],
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ condition_true_value: {
+ it: "should work well with true value for condition",
+ content:
+ "{#cond}{#product.price > 10}high{/}{#product.price <= 10}low{/}{/cond}",
+ result: 'low',
+ scope: {
+ cond: true,
+ product: {
+ price: 2,
+ },
+ },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ condition_int_value: {
+ it: "should work well with int value for condition",
+ content:
+ "{#cond}{#product.price > 10}high{/}{#product.price <= 10}low{/}{/cond}",
+ result: 'low',
+ scope: {
+ cond: 10,
+ product: {
+ price: 2,
+ },
+ },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ condition_string_value: {
+ it: "should work well with str value for condition",
+ content:
+ "{#cond}{#product.price > 10}high{/}{#product.price <= 10}low{/}{/cond}",
+ result: 'low',
+ scope: {
+ cond: "cond",
+ product: {
+ price: 2,
+ },
+ },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ condition_false_value: {
+ it: "should work well with false value for condition",
+ content:
+ "{^cond}{#product.price > 10}high{/}{#product.price <= 10}low{/}{/cond}",
+ result: 'low',
+ scope: {
+ cond: false,
+ product: {
+ price: 2,
+ },
+ },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ condition_multi_level: {
+ it: "should work well with multi level angular parser",
+ content: "{#users}{name} {date-age} {/}",
+ result: 'John 1975 Mary 1997 Walt 2078 ',
+ scope: {
+ date: 2019,
+ users: [
+ { name: "John", age: 44 },
+ { name: "Mary", age: 22 },
+ { date: 2100, age: 22, name: "Walt" },
+ ],
+ },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ condition_w_tr: {
+ it:
+ "should work well with -w:tr conditions inside table inside paragraphLoop condition",
+ content:
+ "{#cond}{-w:tc cond}{val}{/}{/}",
+ result:
+ 'yep',
+ scope: {
+ cond: true,
+ val: "yep",
+ },
+ options: {
+ paragraphLoop: true,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ angular_expressions: {
+ it: "should work well with nested angular expressions",
+ content: "{v}{#c1}{v}{#c2}{v}{#c3}{v}{/}{/}{/}",
+ result: '0123',
+ scope: {
+ v: "0",
+ c1: {
+ v: "1",
+ c2: {
+ v: "2",
+ c3: {
+ v: "3",
+ },
+ },
+ },
+ },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ angular_this: {
+ it: "should work with this with angular expressions",
+ content: "{#hello}{this}{/hello}",
+ result: 'world',
+ scope: { hello: ["world"] },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ angular_get_parent_prop_if_null_child: {
+ it: "should get parent prop if child is null",
+ content: "{#c}{label}{/c}",
+ result: 'hello',
+ scope: { c: { label: null }, label: "hello" },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+ double_nested_array: {
+ it: "should work when using double nested arrays",
+ content: "{#a}{this}{/}",
+ result: 'first-part,other-part',
+ scope: { a: [["first-part", "other-part"]] },
+ options: {
+ parser: angularParser,
+ },
+ lexed: null,
+ parsed: null,
+ postparsed: null,
+ resolved: null,
+ },
+};
+
+fixtures.rawxmlemptycontent = clone(fixtures.rawxml);
+fixtures.rawxmlemptycontent.it = "should work with rawxml with undefined tags";
+fixtures.rawxmlemptycontent.scope = {};
+fixtures.rawxmlemptycontent.result = "BEFOREAFTER";
+
+Object.keys(fixtures).forEach(function (key) {
+ const fixture = fixtures[key];
+ const delimiters = {
+ delimiters: fixture.delimiters || {
+ start: "{",
+ end: "}",
+ },
+ };
+ fixture.options = assign({}, fixture.options, delimiters);
+});
+
+module.exports = fixtures;
diff --git a/es6/tests/index.js b/es6/tests/index.js
new file mode 100644
index 0000000..850d4a1
--- /dev/null
+++ b/es6/tests/index.js
@@ -0,0 +1,21 @@
+"use strict";
+
+require("es6-promise").polyfill();
+const { setExamplesDirectory, setStartFunction, start } = require("./utils");
+const path = require("path");
+setExamplesDirectory(path.resolve(__dirname, "..", "..", "examples"));
+setStartFunction(startTest);
+
+function startTest() {
+ require("./base");
+ require("./xml-templater");
+ require("./xml-matcher");
+ require("./errors");
+ require("./speed");
+ require("./lexer-parser-render");
+ require("./integration");
+ require("./doc-props");
+ require("./modules");
+}
+
+start();
diff --git a/es6/tests/integration.js b/es6/tests/integration.js
new file mode 100644
index 0000000..afb9f7a
--- /dev/null
+++ b/es6/tests/integration.js
@@ -0,0 +1,1273 @@
+const {
+ expectToThrow,
+ createDoc,
+ createDocV4,
+ shouldBeSame,
+ expect,
+ resolveSoon,
+ createXmlTemplaterDocxNoRender,
+ cleanRecursive,
+} = require("./utils");
+
+const printy = require("./printy");
+const { cloneDeep } = require("lodash");
+const { expectedPrintedPostParsed, rawXMLValue } = require("./data-fixtures");
+
+const angularParser = require("./angular-parser");
+const Errors = require("../errors.js");
+
+describe("Simple templating", function () {
+ describe("text templating", function () {
+ it("should change values with template data", function () {
+ const tags = {
+ first_name: "Hipp",
+ last_name: "Edgar",
+ phone: "0652455478",
+ description: "New Website",
+ };
+ const doc = createDocV4("tag-example.docx");
+ doc.setData(tags);
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("Edgar Hipp");
+ expect(doc.getFullText("word/header1.xml")).to.be.equal(
+ "Edgar Hipp0652455478New Website"
+ );
+ expect(doc.getFullText("word/footer1.xml")).to.be.equal(
+ "EdgarHipp0652455478"
+ );
+ shouldBeSame({ doc, expectedName: "expected-tag-example.docx" });
+ });
+ });
+
+ it("should replace custom properties text", function () {
+ const doc = createDoc("properties.docx");
+ let app = doc.getZip().files["docProps/app.xml"].asText();
+ let core = doc.getZip().files["docProps/core.xml"].asText();
+ expect(app).to.contain("{tag1}");
+ expect(core).to.contain("{tag1}");
+ expect(core).to.contain("{tag2}");
+ expect(core).to.contain("{tag3}");
+ expect(app).to.contain("{tag4}");
+ expect(app).to.contain("{tag5}");
+ expect(core).to.contain("{tag6}");
+ expect(core).to.contain("{tag7}");
+ expect(core).to.contain("{tag8}");
+ expect(app).to.contain("{tag9}");
+ doc
+ .setData({
+ tag1: "resolvedvalue1",
+ tag2: "resolvedvalue2",
+ tag3: "resolvedvalue3",
+ tag4: "resolvedvalue4",
+ tag5: "resolvedvalue5",
+ tag6: "resolvedvalue6",
+ tag7: "resolvedvalue7",
+ tag8: "resolvedvalue8",
+ tag9: "resolvedvalue9",
+ })
+ .render();
+ app = doc.getZip().files["docProps/app.xml"].asText();
+ core = doc.getZip().files["docProps/core.xml"].asText();
+ expect(app).to.contain("resolvedvalue1");
+ expect(core).to.contain("resolvedvalue1");
+ expect(core).to.contain("resolvedvalue2");
+ expect(core).to.contain("resolvedvalue3");
+ expect(app).to.contain("resolvedvalue4");
+ expect(app).to.contain("resolvedvalue5");
+ expect(core).to.contain("resolvedvalue6");
+ expect(core).to.contain("resolvedvalue7");
+ expect(core).to.contain("resolvedvalue8");
+ expect(app).to.contain("resolvedvalue9");
+ });
+});
+
+describe("Spacing/Linebreaks", function () {
+ it("should show spaces with linebreak option", function () {
+ const doc = createDoc("tag-multiline.docx");
+ doc.setData({
+ description: `hello there
+ deep indentation
+ goes here
+ end`,
+ });
+ doc.setOptions({ linebreaks: true });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-multiline-indent.docx" });
+ });
+
+ it("should be possible to have linebreaks if setting the option", function () {
+ const doc = createDoc("tag-multiline.docx");
+ doc.setData({
+ description: "The description,\nmultiline",
+ });
+ doc.setOptions({ linebreaks: true });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-multiline.docx" });
+ });
+
+ it("should work with linebreaks without changing the style", function () {
+ const doc = createDoc("multi-tags.docx");
+ doc.setData({
+ test: "The tag1,\nmultiline\nfoobaz",
+ test2: "The tag2,\nmultiline\nfoobar",
+ });
+ doc.setOptions({ linebreaks: true });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-two-multiline.docx" });
+ });
+ it("should be possible to have linebreaks if setting the option", function () {
+ const doc = createDoc("tag-multiline.pptx");
+ doc.setData({
+ description: "The description,\nmultiline",
+ });
+ doc.setOptions({ linebreaks: true });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-multiline.pptx" });
+ });
+
+ it("should not fail when using linebreaks and tagvalue not a string", function () {
+ const doc = createDoc("tag-multiline.pptx");
+ doc.setData({
+ description: true,
+ });
+ doc.setOptions({ linebreaks: true });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-regression-multiline.pptx" });
+ });
+});
+
+describe("Assignment", function () {
+ it("should be possible to assign a value from the template", function () {
+ const doc = createDoc("assignment.docx");
+ doc.setData({
+ first_name: "Jane",
+ last_name: "Doe",
+ });
+ doc.setOptions({
+ paragraphLoop: true,
+ parser: angularParser,
+ });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-assignment.docx" });
+ });
+});
+
+describe("Docm/Pptm generation", function () {
+ it("should work with docm", function () {
+ const tags = {
+ user: "John",
+ };
+ const doc = createDoc("input.docm");
+ doc.setData(tags);
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-docm.docx" });
+ });
+
+ it("should work with pptm", function () {
+ const tags = {
+ user: "John",
+ };
+ const doc = createDoc("input.pptm");
+ doc.setData(tags);
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-pptm.pptx" });
+ });
+});
+
+describe("Dotm/dotx generation", function () {
+ it("should work with dotx", function () {
+ const tags = {
+ user: "John",
+ };
+ const doc = createDoc("input.dotx");
+ doc.setData(tags);
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-dotx.docx" });
+ });
+
+ it("should work with dotm", function () {
+ const tags = {
+ user: "John",
+ };
+ const doc = createDoc("input.dotm");
+ doc.setData(tags);
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-dotm.docx" });
+ });
+});
+
+describe("Pptx generation", function () {
+ it("should work with title", function () {
+ const doc = createDoc("title-example.pptx");
+ let con = doc.getZip().files["docProps/app.xml"].asText();
+ expect(con).not.to.contain("Edgar");
+ doc.setData({ name: "Edgar" }).render();
+ con = doc.getZip().files["docProps/app.xml"].asText();
+ expect(con).to.contain("Edgar");
+ });
+ it("should work with simple pptx", function () {
+ const doc = createDoc("simple-example.pptx");
+ doc.setData({ name: "Edgar" }).render();
+ expect(doc.getFullText()).to.be.equal("Hello Edgar");
+ });
+ it("should work with table pptx", function () {
+ const doc = createDoc("table-example.pptx");
+ doc
+ .setData({
+ users: [
+ { msg: "hello", name: "mary" },
+ { msg: "hello", name: "john" },
+ ],
+ })
+ .render();
+ shouldBeSame({ doc, expectedName: "expected-table-example.pptx" });
+ });
+ it("should work with loop pptx", function () {
+ const doc = createDoc("loop-example.pptx");
+ doc.setData({ users: [{ name: "Doe" }, { name: "John" }] }).render();
+ expect(doc.getFullText()).to.be.equal(" Doe John ");
+ shouldBeSame({ doc, expectedName: "expected-loop-example.pptx" });
+ });
+
+ it("should work with simple raw pptx", function () {
+ const doc = createDoc("raw-xml-example.pptx");
+ let scope, meta, tag;
+ let calls = 0;
+ doc.setOptions({
+ parser: (t) => {
+ tag = t;
+ return {
+ get: (s, m) => {
+ scope = s;
+ meta = m.meta;
+ calls++;
+ return scope[tag];
+ },
+ };
+ },
+ });
+ doc.setData({ raw: rawXMLValue }).render();
+ expect(calls).to.equal(1);
+ expect(scope.raw).to.be.a("string");
+ expect(meta).to.be.an("object");
+ expect(meta.part).to.be.an("object");
+ expect(meta.part.expanded).to.be.an("array");
+ expect(doc.getFullText()).to.be.equal("Hello World");
+ shouldBeSame({ doc, expectedName: "expected-raw-xml-example.pptx" });
+ });
+
+ it("should work with simple raw pptx async", function () {
+ const doc = createDoc("raw-xml-example.pptx");
+ let scope, meta, tag;
+ let calls = 0;
+ doc.setOptions({
+ parser: (t) => {
+ tag = t;
+ return {
+ get: (s, m) => {
+ scope = s;
+ meta = m.meta;
+ calls++;
+ return scope[tag];
+ },
+ };
+ },
+ });
+ doc.compile();
+ return doc.resolveData({ raw: rawXMLValue }).then(function () {
+ doc.render();
+ expect(calls).to.equal(1);
+ expect(scope.raw).to.be.a("string");
+ expect(meta).to.be.an("object");
+ expect(meta.part).to.be.an("object");
+ expect(meta.part.expanded).to.be.an("array");
+ expect(doc.getFullText()).to.be.equal("Hello World");
+ shouldBeSame({ doc, expectedName: "expected-raw-xml-example.pptx" });
+ });
+ });
+});
+
+describe("Table", function () {
+ it("should work with selfclosing tag inside table with paragraphLoop", function () {
+ const tags = {
+ a: [
+ {
+ b: {
+ c: "Foo",
+ d: "Hello ",
+ },
+ },
+ {
+ b: {
+ c: "Foo",
+ d: "Hello ",
+ },
+ },
+ ],
+ };
+ const doc = createDoc("loop-valid.docx");
+ doc.setData(tags);
+ doc.setOptions({ paragraphLoop: true });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-loop-valid.docx" });
+ });
+
+ it("should work with tables", function () {
+ const tags = {
+ clients: [
+ { first_name: "John", last_name: "Doe", phone: "+33647874513" },
+ { first_name: "Jane", last_name: "Doe", phone: "+33454540124" },
+ { first_name: "Phil", last_name: "Kiel", phone: "+44578451245" },
+ { first_name: "Dave", last_name: "Sto", phone: "+44548787984" },
+ ],
+ };
+ const doc = createDoc("tag-intelligent-loop-table.docx");
+ doc.setData(tags);
+ doc.render();
+ const expectedText =
+ "JohnDoe+33647874513JaneDoe+33454540124PhilKiel+44578451245DaveSto+44548787984";
+ const text = doc.getFullText();
+ expect(text).to.be.equal(expectedText);
+ shouldBeSame({
+ doc,
+ expectedName: "expected-tag-intelligent-loop-table.docx",
+ });
+ });
+
+ it("should work with simple table", function () {
+ const doc = createDoc("table-complex2-example.docx");
+ doc.setData({
+ table1: [
+ {
+ t1data1: "t1-1row-data1",
+ t1data2: "t1-1row-data2",
+ t1data3: "t1-1row-data3",
+ t1data4: "t1-1row-data4",
+ },
+ {
+ t1data1: "t1-2row-data1",
+ t1data2: "t1-2row-data2",
+ t1data3: "t1-2row-data3",
+ t1data4: "t1-2row-data4",
+ },
+ {
+ t1data1: "t1-3row-data1",
+ t1data2: "t1-3row-data2",
+ t1data3: "t1-3row-data3",
+ t1data4: "t1-3row-data4",
+ },
+ ],
+ t1total1: "t1total1-data",
+ t1total2: "t1total2-data",
+ t1total3: "t1total3-data",
+ });
+ doc.render();
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal(
+ "TABLE1COLUMN1COLUMN2COLUMN3COLUMN4t1-1row-data1t1-1row-data2t1-1row-data3t1-1row-data4t1-2row-data1t1-2row-data2t1-2row-data3t1-2row-data4t1-3row-data1t1-3row-data2t1-3row-data3t1-3row-data4TOTALt1total1-datat1total2-datat1total3-data"
+ );
+ });
+
+ it("should work with more complex table", function () {
+ const doc = createDoc("table-complex-example.docx");
+ doc.setData({
+ table2: [
+ {
+ t2data1: "t2-1row-data1",
+ t2data2: "t2-1row-data2",
+ t2data3: "t2-1row-data3",
+ t2data4: "t2-1row-data4",
+ },
+ {
+ t2data1: "t2-2row-data1",
+ t2data2: "t2-2row-data2",
+ t2data3: "t2-2row-data3",
+ t2data4: "t2-2row-data4",
+ },
+ ],
+ t1total1: "t1total1-data",
+ t1total2: "t1total2-data",
+ t1total3: "t1total3-data",
+ t2total1: "t2total1-data",
+ t2total2: "t2total2-data",
+ t2total3: "t2total3-data",
+ });
+ doc.render();
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal(
+ "TABLE1COLUMN1COLUMN2COLUMN3COLUMN4TOTALt1total1-datat1total2-datat1total3-dataTABLE2COLUMN1COLUMN2COLUMN3COLUMN4t2-1row-data1t2-1row-data2t2-1row-data3t2-1row-data4t2-2row-data1t2-2row-data2t2-2row-data3t2-2row-data4TOTALt2total1-datat2total2-datat2total3-data"
+ );
+ });
+
+ it("should work when looping around tables", function () {
+ const doc = createDoc("table-repeat.docx");
+ doc.setData({
+ table: [1, 2, 3, 4],
+ });
+ doc.render();
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal("1234123412341234");
+ });
+
+ it("should not corrupt table with empty rawxml", function () {
+ const doc = createDoc("table-raw-xml.docx");
+ doc.setData({});
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-raw-xml.docx" });
+ });
+
+ it("should not corrupt document with selfclosing w:sdtContent tag", function () {
+ const doc = createDoc("self-closing-w-sdtcontent.docx");
+ doc.setData({});
+ doc.render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-self-closing-w-sdtcontent.docx",
+ });
+ });
+
+ it("should not corrupt loop containing section", function () {
+ const doc = createDoc("loop-with-section.docx");
+ doc.setData({
+ loop1: [
+ {
+ loop2: [1, 2],
+ },
+ {
+ loop2: [],
+ },
+ {
+ loop2: [3, 4, 5],
+ },
+ ],
+ });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-multi-section.docx" });
+ });
+
+ it("should not corrupt sdtcontent", function () {
+ const doc = createDoc("regression-sdtcontent-paragraph.docx");
+ doc.setData({
+ loop: {
+ name: "foo",
+ Id: "bar",
+ },
+ });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-sdtcontent-valid.docx" });
+ });
+
+ it("should not corrupt table with empty rawxml within loop", function () {
+ const doc = createDoc("loops-with-table-raw-xml.docx");
+ doc.setData({
+ loop: [
+ { loop2: [] },
+ { loop2: {}, raw: "RAW" },
+ ],
+ });
+ doc.setOptions({ paragraphLoop: true });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-loop-raw-xml.docx" });
+ });
+
+ it("should not corrupt table with empty loop", function () {
+ const doc = createDoc("table-loop.docx");
+ doc.setData({});
+ doc.setOptions({ paragraphLoop: true });
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-empty-table.docx" });
+ });
+});
+
+describe("Dash Loop", function () {
+ it("should work on simple table -> w:tr", function () {
+ const tags = {
+ os: [
+ { type: "linux", price: "0", reference: "Ubuntu10" },
+ { type: "DOS", price: "500", reference: "Win7" },
+ { type: "apple", price: "1200", reference: "MACOSX" },
+ ],
+ };
+ const doc = createDoc("tag-dash-loop.docx");
+ doc.setData(tags);
+ doc.render();
+ const expectedText = "linux0Ubuntu10DOS500Win7apple1200MACOSX";
+ const text = doc.getFullText();
+ expect(text).to.be.equal(expectedText);
+ });
+ it("should work on simple table -> w:table", function () {
+ const tags = {
+ os: [
+ { type: "linux", price: "0", reference: "Ubuntu10" },
+ { type: "DOS", price: "500", reference: "Win7" },
+ { type: "apple", price: "1200", reference: "MACOSX" },
+ ],
+ };
+ const doc = createDoc("tag-dash-loop-table.docx");
+ doc.setData(tags);
+ doc.render();
+ const expectedText = "linux0Ubuntu10DOS500Win7apple1200MACOSX";
+ const text = doc.getFullText();
+ expect(text).to.be.equal(expectedText);
+ });
+ it("should work on simple list -> w:p", function () {
+ const tags = {
+ os: [
+ { type: "linux", price: "0", reference: "Ubuntu10" },
+ { type: "DOS", price: "500", reference: "Win7" },
+ { type: "apple", price: "1200", reference: "MACOSX" },
+ ],
+ };
+ const doc = createDoc("tag-dash-loop-list.docx");
+ doc.setData(tags);
+ doc.render();
+ const expectedText = "linux 0 Ubuntu10 DOS 500 Win7 apple 1200 MACOSX ";
+ const text = doc.getFullText();
+ expect(text).to.be.equal(expectedText);
+ });
+
+ it("should not corrupt document if using empty {-a:p} inside table cell", function () {
+ const doc = createDoc("regression-dash-loop-in-table-cell.pptx");
+ doc.setData().render();
+ shouldBeSame({ doc, expectedName: "expected-table-3-cells.pptx" });
+ });
+
+ it("should not corrupt document if using empty {-a:p} inside table cell", function () {
+ const doc = createDoc("regression-dash-loop-in-table-cell.pptx");
+ doc.setData({ cond: [1, 2, 3] }).render();
+ shouldBeSame({ doc, expectedName: "expected-table-3-true-cells.pptx" });
+ });
+});
+
+describe("Pagebreaks inside loops", function () {
+ it("should work at beginning of paragraph loop with 3 elements", function () {
+ // Warning : In libreoffice, this is not rendered correctly, use WPS or Word
+ const doc = createDoc("page-break-inside-condition.docx");
+ doc.setOptions({ paragraphLoop: true });
+ doc.setData({ cond: [1, 2, 3] }).render();
+ shouldBeSame({ doc, expectedName: "expected-with-page-break-3-els.docx" });
+ });
+ it("should work at beginning of paragraph loop with false", function () {
+ // Warning : In libreoffice, this is not rendered correctly, use WPS or Word
+ const doc = createDoc("page-break-inside-condition.docx");
+ doc.setOptions({ paragraphLoop: true });
+ doc.setData({ cond: false }).render();
+ shouldBeSame({ doc, expectedName: "expected-with-page-break-falsy.docx" });
+ });
+
+ it("should work at beginning of std loop with false", function () {
+ // Warning : In libreoffice, this is not rendered correctly, use WPS or Word
+ const doc = createDoc("page-break-inside-condition.docx");
+ doc.setData({ cond: false }).render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-page-break-falsy-std-loop.docx",
+ });
+ });
+
+ it("should work at beginning of std loop with 3 elements", function () {
+ // Warning : In libreoffice, this is not rendered correctly, use WPS or Word
+ const doc = createDoc("page-break-inside-condition.docx");
+ doc.setData({ cond: [1, 2, 3] }).render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-page-break-3-els-std-loop.docx",
+ });
+ });
+
+ it("should work at beginning of std loop with truthy", function () {
+ // Warning : In libreoffice, this is not rendered correctly, use WPS or Word
+ const doc = createDoc("page-break-inside-condition.docx");
+ doc.setData({ cond: true }).render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-page-break-truthy-std-loop.docx",
+ });
+ });
+
+ it("should work with table inside paragraph loop", function () {
+ const doc = createDoc("pagebreak-table-loop.docx");
+ doc.setOptions({ paragraphLoop: true });
+ doc.setData({ loop: [1, 2, 3] }).render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-pagebreak-table-loop.docx",
+ });
+ });
+
+ it("should work at end of std loop", function () {
+ const doc = createDoc("paragraph-loop-with-pagebreak.docx");
+ doc
+ .setData({
+ users: [{ name: "Bar" }, { name: "John" }, { name: "Baz" }],
+ })
+ .render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-noparagraph-loop-with-pagebreak.docx",
+ });
+ });
+
+ it("should work at end of paragraph loop", function () {
+ const doc = createDoc("paragraph-loop-with-pagebreak.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc
+ .setData({
+ users: [{ name: "Bar" }, { name: "John" }, { name: "Baz" }],
+ })
+ .render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-paragraph-loop-with-pagebreak.docx",
+ });
+ });
+
+ it("should work with pagebreak afterwards with falsy value", function () {
+ const doc = createDoc("paragraph-loop-with-pagebreak.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc
+ .setData({
+ users: false,
+ })
+ .render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-paragraph-loop-empty-with-pagebreak.docx",
+ });
+ });
+});
+
+describe("ParagraphLoop", function () {
+ it("should work with docx", function () {
+ const doc = createDoc("users.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc.setData({ users: ["John", "Jane", "Louis"] }).render();
+ shouldBeSame({ doc, expectedName: "expected-users.docx" });
+ });
+
+ it("should work without removing extra text", function () {
+ const doc = createDoc("paragraph-loops.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc
+ .setData({
+ condition: [1, 2],
+ l1: [
+ {
+ l2: ["a", "b", "c"],
+ },
+ {
+ l2: ["d", "e", "f"],
+ },
+ ],
+ placeholder: "placeholder-value",
+ })
+ .render();
+ shouldBeSame({ doc, expectedName: "expected-paragraph-loop.docx" });
+ });
+
+ it("should work with pptx", function () {
+ const doc = createDoc("paragraph-loop.pptx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc
+ .setData({
+ users: [
+ { age: 10, name: "Bar" },
+ { age: 18, name: "Bar" },
+ { age: 22, name: "Bar" },
+ ],
+ })
+ .render();
+ shouldBeSame({ doc, expectedName: "expected-paragraph-loop.pptx" });
+ });
+
+ it("should not fail when having paragraph in paragraph", function () {
+ const doc = createDoc("regression-par-in-par.docx");
+ const printedPostparsed = [];
+ let filePath = "";
+ doc.attachModule({
+ set(obj) {
+ if (obj.inspect) {
+ if (obj.inspect.filePath) {
+ filePath = obj.inspect.filePath;
+ }
+ if (obj.inspect.postparsed) {
+ printedPostparsed[filePath] = printy(obj.inspect.postparsed);
+ }
+ }
+ },
+ });
+
+ doc.setOptions({
+ paragraphLoop: true,
+ parser: () => ({
+ get: () => "foo",
+ }),
+ });
+ doc.setData({});
+ doc.render();
+ expect(printedPostparsed["word/document.xml"]).to.be.equal(
+ expectedPrintedPostParsed
+ );
+ shouldBeSame({ doc, expectedName: "expected-rendered-par-in-par.docx" });
+ });
+
+ it("should work with spacing at the end", function () {
+ const doc = createDoc("spacing-end.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc.setData({ name: "John" }).render();
+ shouldBeSame({ doc, expectedName: "expected-spacing-end.docx" });
+ });
+
+ it("should throw specific error if calling .render() on document with invalid tags", function () {
+ const doc = createDoc("errors-footer-and-header.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ parser: angularParser,
+ });
+ let catched = false;
+ try {
+ doc.compile();
+ } catch (e) {
+ catched = true;
+ const expectedError = {
+ name: "InternalError",
+ message:
+ "You should not call .render on a document that had compilation errors",
+ properties: {
+ id: "render_on_invalid_template",
+ },
+ };
+ expectToThrow(() => doc.render(), Errors.XTInternalError, expectedError);
+ /* handle error */
+ }
+ expect(catched).to.equal(true);
+ });
+
+ it("should fail with errors from header and footer", function () {
+ const doc = createDoc("errors-footer-and-header.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ parser: angularParser,
+ });
+ doc.setData({});
+ const expectedError = {
+ message: "Multi error",
+ name: "TemplateError",
+ properties: {
+ id: "multi_error",
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ file: "word/footer1.xml",
+ xtag: "footer",
+ id: "unclosed_tag",
+ context: "{footer",
+ offset: 2,
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Duplicate close tag, expected one close tag",
+ properties: {
+ file: "word/header1.xml",
+ xtag: "itle}}",
+ id: "duplicate_close_tag",
+ context: "itle}}",
+ offset: 15,
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Closing tag does not match opening tag",
+ properties: {
+ closingtag: "bang",
+ openingtag: "users",
+ file: "word/document.xml",
+ id: "closing_tag_does_not_match_opening_tag",
+ offset: [8, 16],
+ },
+ },
+ ],
+ },
+ };
+ const create = doc.render.bind(doc);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should fail properly when having lexed + postparsed errors", function () {
+ const doc = createDoc("multi-errors.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ parser: angularParser,
+ });
+ doc.setData({
+ users: [
+ { age: 10, name: "Bar" },
+ { age: 18, name: "Bar" },
+ { age: 22, name: "Bar" },
+ ],
+ });
+ const expectedError = {
+ message: "Multi error",
+ name: "TemplateError",
+ properties: {
+ id: "multi_error",
+ errors: [
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ file: "word/document.xml",
+ xtag: "firstName",
+ id: "unclosed_tag",
+ context: "{firstName ",
+ offset: 0,
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Unclosed tag",
+ properties: {
+ file: "word/document.xml",
+ xtag: "error",
+ id: "unclosed_tag",
+ context: "{error ",
+ offset: 22,
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Duplicate close tag, expected one close tag",
+ properties: {
+ file: "word/document.xml",
+ xtag: "{tag}}",
+ id: "duplicate_close_tag",
+ context: "{tag}}",
+ offset: 34,
+ },
+ },
+ {
+ name: "TemplateError",
+ message: "Duplicate open tag, expected one open tag",
+ properties: {
+ file: "word/document.xml",
+ xtag: "{{bar}",
+ id: "duplicate_open_tag",
+ context: "{{bar}",
+ offset: 42,
+ },
+ },
+ ],
+ },
+ };
+ const create = doc.render.bind(doc);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+
+ it("should fail when placing paragraph loop inside normal loop", function () {
+ const doc = createDoc("paragraph-loop-error.docx");
+ doc.setData({});
+ const expectedError = {
+ message: "Multi error",
+ name: "TemplateError",
+ properties: {
+ id: "multi_error",
+ errors: [
+ {
+ name: "TemplateError",
+ message: 'No tag "w:p" was found at the left',
+ properties: {
+ file: "word/document.xml",
+ id: "no_xml_tag_found_at_left",
+ element: "w:p",
+ index: 1,
+ parsedLength: 4,
+ offset: 12,
+ part: {
+ endLindex: 17,
+ expandTo: "w:p",
+ inverted: false,
+ lIndex: 17,
+ location: "start",
+ module: "loop",
+ offset: 12,
+ raw: "-w:p loop",
+ type: "placeholder",
+ value: "loop",
+ },
+ },
+ },
+ {
+ name: "TemplateError",
+ message: 'No tag "w:p" was found at the right',
+ properties: {
+ file: "word/document.xml",
+ id: "no_xml_tag_found_at_right",
+ element: "w:p",
+ index: 3,
+ parsedLength: 4,
+ offset: 26,
+ part: {
+ endLindex: 21,
+ lIndex: 21,
+ location: "end",
+ module: "loop",
+ offset: 26,
+ raw: "/",
+ type: "placeholder",
+ value: "",
+ },
+ },
+ },
+ ],
+ },
+ };
+ const create = doc.compile.bind(doc);
+ expectToThrow(create, Errors.XTTemplateError, expectedError);
+ });
+});
+
+describe("Prefixes", function () {
+ it("should be possible to change the prefix of the loop module", function () {
+ const content = "{##tables}{user}{/tables}";
+ const scope = {
+ tables: [{ user: "John" }, { user: "Jane" }],
+ };
+ const doc = createXmlTemplaterDocxNoRender(content, { tags: scope });
+ doc.modules.forEach(function (module) {
+ if (module.name === "LoopModule") {
+ module.prefix.start = "##";
+ }
+ });
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("JohnJane");
+ });
+
+ it("should be possible to change the prefix of the loop module to a regexp", function () {
+ const content =
+ "{##tables}{user}{/tables}{#tables}{user}{/tables}";
+ const scope = {
+ tables: [{ user: "A" }, { user: "B" }],
+ };
+ const doc = createXmlTemplaterDocxNoRender(content, { tags: scope });
+ doc.modules.forEach(function (module) {
+ if (module.name === "LoopModule") {
+ module.prefix.start = /^##?(.*)$/;
+ }
+ });
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("ABAB");
+ });
+
+ it("should be possible to change the prefix of the raw xml module to a regexp", function () {
+ const content = "{!!raw}";
+ const scope = {
+ raw: "HoHo",
+ };
+ const doc = createXmlTemplaterDocxNoRender(content, { tags: scope });
+ doc.modules.forEach(function (module) {
+ if (module.name === "RawXmlModule") {
+ module.prefix = /^!!?(.*)$/;
+ }
+ });
+ doc.render();
+
+ expect(doc.getFullText()).to.be.equal("HoHo");
+ });
+});
+
+describe("Load Office 365 file", function () {
+ it("should handle files with word/document2.xml", function () {
+ const doc = createDoc("office365.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc
+ .setData({
+ test: "Value",
+ test2: "Value2",
+ })
+ .render();
+ expect(doc.getFullText()).to.be.equal("Value Value2");
+ shouldBeSame({ doc, expectedName: "expected-office365.docx" });
+ });
+});
+
+describe("Resolver", function () {
+ it("should work", function () {
+ const doc = createDoc("office365.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc.compile();
+ return doc
+ .resolveData({
+ test: resolveSoon("Value"),
+ test2: "Value2",
+ })
+ .then(function () {
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("Value Value2");
+ shouldBeSame({ doc, expectedName: "expected-office365.docx" });
+ });
+ });
+
+ it("should work at parent level", function () {
+ const doc = createDoc("office365.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc.compile();
+ return doc
+ .resolveData(
+ resolveSoon({
+ test: resolveSoon("Value"),
+ test2: "Value2",
+ })
+ )
+ .then(function () {
+ doc.render();
+ expect(doc.getFullText()).to.be.equal("Value Value2");
+ shouldBeSame({ doc, expectedName: "expected-office365.docx" });
+ });
+ });
+
+ it("should resolve loops", function () {
+ const doc = createDoc("multi-loop.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ });
+ doc.compile();
+ return doc
+ .resolveData({
+ companies: resolveSoon([
+ {
+ name: "Acme",
+ users: resolveSoon([
+ {
+ name: "John",
+ },
+ {
+ name: "James",
+ },
+ ]),
+ },
+ {
+ name: resolveSoon("Emca"),
+ users: resolveSoon([
+ {
+ name: "Mary",
+ },
+ {
+ name: "Liz",
+ },
+ ]),
+ },
+ ]),
+ test2: "Value2",
+ })
+ .then(function () {
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-multi-loop.docx" });
+ });
+ });
+
+ it("should resolve with simple table", function () {
+ const doc = createDoc("table-complex2-example.docx");
+ doc.compile();
+ return doc
+ .resolveData({
+ table1: [
+ {
+ t1data1: "t1-1row-data1",
+ t1data2: "t1-1row-data2",
+ t1data3: "t1-1row-data3",
+ t1data4: "t1-1row-data4",
+ },
+ {
+ t1data1: "t1-2row-data1",
+ t1data2: "t1-2row-data2",
+ t1data3: "t1-2row-data3",
+ t1data4: "t1-2row-data4",
+ },
+ {
+ t1data1: "t1-3row-data1",
+ t1data2: "t1-3row-data2",
+ t1data3: "t1-3row-data3",
+ t1data4: "t1-3row-data4",
+ },
+ ],
+ t1total1: "t1total1-data",
+ t1total2: "t1total2-data",
+ t1total3: "t1total3-data",
+ })
+ .then(function (resolved) {
+ const myresolved = cloneDeep(resolved);
+ cleanRecursive(myresolved);
+ expect(myresolved).to.be.deep.equal([
+ {
+ tag: "t1total1",
+ value: "t1total1-data",
+ },
+ {
+ tag: "t1total2",
+ value: "t1total2-data",
+ },
+ {
+ tag: "t1total3",
+ value: "t1total3-data",
+ },
+ {
+ tag: "table1",
+ value: [
+ [
+ {
+ tag: "t1data1",
+ value: "t1-1row-data1",
+ },
+ {
+ tag: "t1data2",
+ value: "t1-1row-data2",
+ },
+ {
+ tag: "t1data3",
+ value: "t1-1row-data3",
+ },
+ {
+ tag: "t1data4",
+ value: "t1-1row-data4",
+ },
+ ],
+ [
+ {
+ tag: "t1data1",
+ value: "t1-2row-data1",
+ },
+ {
+ tag: "t1data2",
+ value: "t1-2row-data2",
+ },
+ {
+ tag: "t1data3",
+ value: "t1-2row-data3",
+ },
+ {
+ tag: "t1data4",
+ value: "t1-2row-data4",
+ },
+ ],
+ [
+ {
+ tag: "t1data1",
+ value: "t1-3row-data1",
+ },
+ {
+ tag: "t1data2",
+ value: "t1-3row-data2",
+ },
+ {
+ tag: "t1data3",
+ value: "t1-3row-data3",
+ },
+ {
+ tag: "t1data4",
+ value: "t1-3row-data4",
+ },
+ ],
+ ],
+ },
+ ]);
+ doc.render();
+ const fullText = doc.getFullText();
+ expect(fullText).to.be.equal(
+ "TABLE1COLUMN1COLUMN2COLUMN3COLUMN4t1-1row-data1t1-1row-data2t1-1row-data3t1-1row-data4t1-2row-data1t1-2row-data2t1-2row-data3t1-2row-data4t1-3row-data1t1-3row-data2t1-3row-data3t1-3row-data4TOTALt1total1-datat1total2-datat1total3-data"
+ );
+ });
+ });
+
+ const dataNestedLoops = { a: [{ d: "Hello world" }] };
+
+ it("should not regress with nested loops sync", function () {
+ const doc = createDoc("regression-complex-loops.docx");
+ doc.compile();
+ doc.setData(dataNestedLoops);
+ doc.render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-regression-complex-loops.docx",
+ });
+ });
+
+ it("should not regress when having [Content_Types.xml] contain Default instead of Override", function () {
+ const doc = createDoc("with-default-contenttype.docx");
+ doc.compile();
+ doc.setData({});
+ doc.render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-with-default-contenttype.docx",
+ });
+ });
+
+ it("should not regress with nested loops async", function () {
+ const doc = createDoc("regression-complex-loops.docx");
+ doc.compile();
+ return doc.resolveData(dataNestedLoops).then(function () {
+ doc.render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-regression-complex-loops.docx",
+ });
+ });
+ });
+
+ const regress2Data = {
+ amount_wheels_car_1: "4",
+ amount_wheels_motorcycle_1: "2",
+ amount_wheels_car_2: "6",
+ amount_wheels_motorcycle_2: "3",
+ id: [
+ {
+ car: "1",
+ motorcycle: "",
+ },
+ ],
+ };
+
+ it("should not regress with multiple loops sync", function () {
+ const doc = createDoc("regression-loops-resolve.docx");
+ doc.compile();
+ doc.setData(regress2Data);
+ doc.render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-regression-loops-resolve.docx",
+ });
+ });
+
+ it("should not regress with multiple loops async", function () {
+ const doc = createDoc("regression-loops-resolve.docx");
+ doc.compile();
+ return doc.resolveData(regress2Data).then(function () {
+ doc.render();
+ shouldBeSame({
+ doc,
+ expectedName: "expected-regression-loops-resolve.docx",
+ });
+ });
+ });
+});
diff --git a/es6/tests/lexer-parser-render.js b/es6/tests/lexer-parser-render.js
new file mode 100644
index 0000000..79bba66
--- /dev/null
+++ b/es6/tests/lexer-parser-render.js
@@ -0,0 +1,137 @@
+const Lexer = require("../lexer.js");
+const { expect, makeDocx, cleanRecursive } = require("./utils");
+const fixtures = require("./fixtures");
+const docxconfig = require("../file-type-config").docx;
+const inspectModule = require("../inspect-module.js");
+const AssertionModule = require("./assertion-module.js");
+const tagsDocxConfig = {
+ text: docxconfig.tagsXmlTextArray,
+ other: docxconfig.tagsXmlLexedArray,
+};
+
+describe("Algorithm", function () {
+ Object.keys(fixtures).forEach(function (key) {
+ const fixture = fixtures[key];
+ (fixture.onlySync ? it.only : it)(fixture.it, function () {
+ const doc = makeDocx(key, fixture.content);
+ doc.setOptions(fixture.options);
+ const iModule = inspectModule();
+ doc.attachModule(iModule).attachModule(new AssertionModule());
+ doc.setData(fixture.scope);
+ doc.render();
+ cleanRecursive(iModule.inspect.lexed);
+ cleanRecursive(iModule.inspect.parsed);
+ cleanRecursive(iModule.inspect.postparsed);
+ if (fixture.result !== null) {
+ expect(iModule.inspect.content).to.be.deep.equal(
+ fixture.result,
+ "Content incorrect"
+ );
+ }
+ if (fixture.lexed !== null) {
+ expect(iModule.inspect.lexed).to.be.deep.equal(
+ fixture.lexed,
+ "Lexed incorrect"
+ );
+ }
+ if (fixture.parsed !== null) {
+ expect(iModule.inspect.parsed).to.be.deep.equal(
+ fixture.parsed,
+ "Parsed incorrect"
+ );
+ }
+ if (fixture.postparsed !== null) {
+ expect(iModule.inspect.postparsed).to.be.deep.equal(
+ fixture.postparsed,
+ "Postparsed incorrect"
+ );
+ }
+ });
+ });
+
+ Object.keys(fixtures).forEach(function (key) {
+ const fixture = fixtures[key];
+ (fixture.only ? it.only : it)(`Async ${fixture.it}`, function () {
+ const doc = makeDocx(key, fixture.content);
+ doc.setOptions(fixture.options);
+ const iModule = inspectModule();
+ doc.attachModule(iModule);
+ doc.compile();
+ return doc.resolveData(fixture.scope).then(function () {
+ doc.render();
+ cleanRecursive(iModule.inspect.lexed);
+ cleanRecursive(iModule.inspect.parsed);
+ cleanRecursive(iModule.inspect.postparsed);
+ if (fixture.result !== null) {
+ expect(iModule.inspect.content).to.be.deep.equal(
+ fixture.result,
+ "Content incorrect"
+ );
+ }
+ if (fixture.resolved) {
+ expect(iModule.inspect.resolved).to.be.deep.equal(
+ fixture.resolved,
+ "Resolved incorrect"
+ );
+ }
+ if (fixture.lexed !== null) {
+ expect(iModule.inspect.lexed).to.be.deep.equal(
+ fixture.lexed,
+ "Lexed incorrect"
+ );
+ }
+ if (fixture.parsed !== null) {
+ expect(iModule.inspect.parsed).to.be.deep.equal(
+ fixture.parsed,
+ "Parsed incorrect"
+ );
+ }
+ if (fixture.postparsed !== null) {
+ expect(iModule.inspect.postparsed).to.be.deep.equal(
+ fixture.postparsed,
+ "Postparsed incorrect"
+ );
+ }
+ });
+ });
+ });
+
+ it("should xmlparse strange tags", function () {
+ const xmllexed = Lexer.xmlparse(
+ fixtures.strangetags.content,
+ tagsDocxConfig
+ );
+ cleanRecursive(xmllexed);
+ expect(xmllexed).to.be.deep.equal(fixtures.strangetags.xmllexed);
+ });
+
+ it("should xmlparse selfclosing tag", function () {
+ const xmllexed = Lexer.xmlparse("", {
+ text: [],
+ other: ["w:rPr", "w:noProof"],
+ });
+ expect(xmllexed).to.be.deep.equal([
+ {
+ type: "tag",
+ position: "start",
+ text: false,
+ value: "",
+ tag: "w:rPr",
+ },
+ {
+ type: "tag",
+ position: "selfclosing",
+ text: false,
+ value: "",
+ tag: "w:noProof",
+ },
+ {
+ type: "tag",
+ position: "end",
+ text: false,
+ value: "",
+ tag: "w:rPr",
+ },
+ ]);
+ });
+});
diff --git a/es6/tests/modules.js b/es6/tests/modules.js
new file mode 100644
index 0000000..84fcd2f
--- /dev/null
+++ b/es6/tests/modules.js
@@ -0,0 +1,348 @@
+const {
+ expectToThrow,
+ createDoc,
+ shouldBeSame,
+ isNode12,
+ createDocV4,
+} = require("./utils");
+const Errors = require("../errors.js");
+const { expect } = require("chai");
+const { xml2str, traits } = require("../doc-utils");
+
+describe("Verify apiversion", function () {
+ it("should work with valid api version", function () {
+ const module = {
+ requiredAPIVersion: "3.23.0",
+ render(part) {
+ return part.value;
+ },
+ };
+ const doc = createDoc("loop-valid.docx");
+ doc.attachModule(module);
+ });
+
+ it("should fail with invalid api version", function () {
+ const module = {
+ requiredAPIVersion: "3.92.0",
+ render(part) {
+ return part.value;
+ },
+ };
+ const doc = createDoc("loop-valid.docx");
+
+ expectToThrow(() => doc.attachModule(module), Errors.XTAPIVersionError, {
+ message:
+ "The minor api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",
+ name: "APIVersionError",
+ properties: {
+ id: "api_version_error",
+ currentModuleApiVersion: [3, 24, 0],
+ neededVersion: [3, 92, 0],
+ },
+ });
+ });
+});
+
+describe("Module attachment", function () {
+ it("should not allow to attach the same module twice", function () {
+ const module = {
+ name: "TestModule",
+ requiredAPIVersion: "3.0.0",
+ render(part) {
+ return part.value;
+ },
+ };
+ const doc1 = createDoc("loop-valid.docx");
+ doc1.attachModule(module);
+ const doc2 = createDoc("tag-example.docx");
+
+ let errMessage = null;
+ try {
+ doc2.attachModule(module);
+ } catch (e) {
+ errMessage = e.message;
+ }
+ expect(errMessage).to.equal(
+ 'Cannot attach a module that was already attached : "TestModule". Maybe you are instantiating the module at the root level, and using it for multiple instances of Docxtemplater'
+ );
+ });
+});
+
+describe("Module xml parse", function () {
+ it("should not mutate options (regression for issue #526)", function () {
+ const module = {
+ requiredAPIVersion: "3.0.0",
+ optionsTransformer(options, docxtemplater) {
+ const relsFiles = docxtemplater.zip
+ .file(/document.xml.rels/)
+ .map((file) => file.name);
+ options.xmlFileNames = options.xmlFileNames.concat(relsFiles);
+ return options;
+ },
+ };
+ const doc = createDoc("tag-example.docx");
+ const opts = {};
+ doc.setOptions(opts);
+ doc.attachModule(module);
+ doc.compile();
+ expect(opts).to.deep.equal({});
+ });
+
+ it("should be possible to parse xml files", function () {
+ let xmlDocuments;
+
+ const module = {
+ requiredAPIVersion: "3.0.0",
+ optionsTransformer(options, docxtemplater) {
+ const relsFiles = docxtemplater.zip
+ .file(/document.xml.rels/)
+ .map((file) => file.name);
+ options.xmlFileNames = options.xmlFileNames.concat(relsFiles);
+ return options;
+ },
+ set(options) {
+ if (options.xmlDocuments) {
+ xmlDocuments = options.xmlDocuments;
+ }
+ },
+ };
+
+ const doc = createDoc("tag-example.docx");
+ doc.attachModule(module);
+ doc.compile();
+
+ const xmlKeys = Object.keys(xmlDocuments);
+ expect(xmlKeys).to.deep.equal(["word/_rels/document.xml.rels"]);
+ const rels = xmlDocuments[
+ "word/_rels/document.xml.rels"
+ ].getElementsByTagName("Relationship");
+ expect(rels.length).to.equal(10);
+
+ const str = xml2str(xmlDocuments["word/_rels/document.xml.rels"]);
+ if (isNode12()) {
+ expect(str).to
+ .equal(`\r
+`);
+ rels[5].setAttribute("Foobar", "Baz");
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-module-change-rels.docx" });
+ }
+ });
+});
+
+describe("Module unique tags xml", function () {
+ it("should not cause an issue if tagsXmlLexedArray contains duplicates", function () {
+ const module = {
+ requiredAPIVersion: "3.0.0",
+ optionsTransformer(options, docxtemplater) {
+ docxtemplater.fileTypeConfig.tagsXmlLexedArray.push(
+ "w:p",
+ "w:r",
+ "w:p"
+ );
+ return options;
+ },
+ };
+
+ const doc = createDoc("tag-example.docx");
+ doc.attachModule(module);
+ doc.setData({
+ first_name: "Hipp",
+ last_name: "Edgar",
+ phone: "0652455478",
+ description: "New Website",
+ });
+ doc.compile();
+ doc.render();
+ shouldBeSame({ doc, expectedName: "expected-tag-example.docx" });
+ });
+});
+
+describe("Module traits", function () {
+ it("should not cause an issue if using traits.expandTo containing loop", function () {
+ const moduleName = "comment-module";
+ function getInner({ part, leftParts, rightParts, postparse }) {
+ part.subparsed = postparse([].concat(leftParts).concat(rightParts), {
+ basePart: part,
+ });
+ return part;
+ }
+ const module = {
+ name: "Test module",
+ requiredAPIVersion: "3.0.0",
+ parse(placeHolderContent) {
+ if (placeHolderContent[0] === "£") {
+ const type = "placeholder";
+ return {
+ type,
+ value: placeHolderContent.substr(1),
+ module: moduleName,
+ };
+ }
+ },
+ postparse(parsed, { postparse }) {
+ parsed = traits.expandToOne(parsed, {
+ moduleName,
+ getInner,
+ expandTo: ["w:p"],
+ postparse,
+ });
+ return parsed;
+ },
+ render(part) {
+ if (part.module === moduleName) {
+ return {
+ value: "",
+ };
+ }
+ },
+ };
+
+ const doc = createDoc("comment-with-loop.docx");
+ doc.attachModule(module);
+ doc.setData({}).compile().render();
+ shouldBeSame({ doc, expectedName: "expected-comment-example.docx" });
+ });
+});
+
+describe("Module errors", function () {
+ it("should work", function () {
+ const moduleName = "ErrorModule";
+ const module = {
+ name: "Error module",
+ requiredAPIVersion: "3.0.0",
+ parse(placeHolderContent) {
+ const type = "placeholder";
+ return {
+ type,
+ value: placeHolderContent,
+ module: moduleName,
+ };
+ },
+ render(part) {
+ if (part.module === moduleName) {
+ return {
+ errors: [new Error(`foobar ${part.value}`)],
+ };
+ }
+ },
+ };
+
+ let error = null;
+ const doc = createDoc("tag-example.docx");
+ doc.attachModule(module);
+ doc.setData({}).compile();
+ try {
+ doc.render();
+ } catch (e) {
+ error = e;
+ }
+ expect(error).to.be.an("object");
+ expect(error.message).to.equal("Multi error");
+ expect(error.properties.errors.length).to.equal(9);
+ expect(error.properties.errors[0].message).to.equal("foobar last_name");
+ expect(error.properties.errors[1].message).to.equal("foobar first_name");
+ expect(error.properties.errors[2].message).to.equal("foobar phone");
+ });
+});
+
+describe("Module should pass options to module.parse, module.postparse, module.render, module.postrender", function () {
+ it("should pass filePath and contentType options", function () {
+ const doc = createDoc("tag-example.docx");
+ const filePaths = [];
+ let renderFP = "",
+ renderCT = "",
+ postrenderFP = "",
+ postrenderCT = "",
+ postparseFP = "",
+ postparseCT = "";
+ const ct = [];
+
+ const module = {
+ name: "Test module",
+ requiredAPIVersion: "3.0.0",
+ parse(a, options) {
+ filePaths.push(options.filePath);
+ ct.push(options.contentType);
+ },
+ postparse(a, options) {
+ postparseFP = options.filePath;
+ postparseCT = options.contentType;
+ return a;
+ },
+ render(a, options) {
+ renderFP = options.filePath;
+ renderCT = options.contentType;
+ },
+ postrender(a, options) {
+ postrenderFP = options.filePath;
+ postrenderCT = options.contentType;
+ return a;
+ },
+ };
+ doc.attachModule(module);
+ doc.setData({}).compile();
+ doc.render();
+ expect(renderFP).to.equal("word/document.xml");
+ expect(renderCT).to.equal(
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"
+ );
+ expect(postparseFP).to.equal("word/document.xml");
+ expect(postparseCT).to.equal(
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"
+ );
+ expect(postrenderFP).to.equal("word/document.xml");
+ expect(postrenderCT).to.equal(
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"
+ );
+
+ expect(filePaths).to.deep.equal([
+ // Header appears 4 times because there are 4 tags in the header
+ "word/header1.xml",
+ "word/header1.xml",
+ "word/header1.xml",
+ "word/header1.xml",
+ // Footer appears 3 times because there are 3 tags in the header
+ "word/footer1.xml",
+ "word/footer1.xml",
+ "word/footer1.xml",
+ // Document appears 2 times because there are 2 tags in the header
+ "word/document.xml",
+ "word/document.xml",
+ ]);
+
+ expect(ct).to.deep.equal([
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",
+ ]);
+ });
+});
+
+describe("Module detachment", function () {
+ it("should detach the module when the module does not support the document filetype", function () {
+ let isModuleCalled = false;
+ let isDetachedCalled = false;
+ const module = {
+ optionsTransformer(options) {
+ isModuleCalled = true;
+ return options;
+ },
+ on(eventName) {
+ if (eventName === "detached") {
+ isDetachedCalled = true;
+ }
+ },
+ supportedFileTypes: ["pptx"],
+ };
+ createDocV4("tag-example.docx", { modules: [module] });
+ expect(isDetachedCalled).to.equal(true);
+ expect(isModuleCalled).to.equal(false);
+ });
+});
diff --git a/es6/tests/printy.js b/es6/tests/printy.js
new file mode 100644
index 0000000..045ae68
--- /dev/null
+++ b/es6/tests/printy.js
@@ -0,0 +1,48 @@
+const repeat = require("./string-repeat");
+
+module.exports = function printy(parsed, indent = 0) {
+ let indentWasNegative = false;
+ const result = parsed
+ .reduce(function (output, p) {
+ const splitted = p.value.split(/(?:\n|\r|\t)(?: |\r|\t)*/g);
+ const value = splitted.join("");
+ if (value === "") {
+ return output;
+ }
+ if (p.type === "tag" && p.position === "end") {
+ indent--;
+ }
+ if (indent < 0) {
+ indentWasNegative = true;
+ }
+ const i =
+ indent < 0 ? `(${indent})` : `(${indent})` + repeat(" ", indent);
+ if (p.subparsed) {
+ indent++;
+ const stars = i.replace(/./g, "*");
+ output += `\n${stars}START LOOP OF ${value}`;
+ output += printy(p.subparsed, indent);
+ output += `\n${stars}END LOOP OF ${value}`;
+ indent--;
+ } else if (p.type === "placeholder") {
+ output += `\n${i.replace(/./g, "=")}{${value}}`;
+ } else {
+ output += `\n${i}${value}`;
+ }
+ if (p.type === "tag" && p.position === "start") {
+ indent++;
+ }
+ return output;
+ }, "")
+ .split("\n")
+ .map(function (line) {
+ return line.replace(/[\s\uFEFF\xA0]+$/g, "");
+ })
+ .join("\n");
+ if (indentWasNegative) {
+ const err = new Error("Indent negative");
+ err.properties = { result };
+ throw err;
+ }
+ return result;
+};
diff --git a/es6/tests/raw-complex-docx.xml b/es6/tests/raw-complex-docx.xml
new file mode 100644
index 0000000..479feb2
--- /dev/null
+++ b/es6/tests/raw-complex-docx.xml
@@ -0,0 +1 @@
+My custom XMLTestXmlGeneratedUnderlineHighlightingFontCenteringItalic
diff --git a/es6/tests/raw-pptx.xml b/es6/tests/raw-pptx.xml
new file mode 100644
index 0000000..77a0f7e
--- /dev/null
+++ b/es6/tests/raw-pptx.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Hello World
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+;
diff --git a/es6/tests/speed.js b/es6/tests/speed.js
new file mode 100644
index 0000000..609773d
--- /dev/null
+++ b/es6/tests/speed.js
@@ -0,0 +1,260 @@
+"use strict";
+
+const {
+ createDoc,
+ expect,
+ createXmlTemplaterDocxNoRender,
+ browserMatches,
+} = require("./utils");
+
+const { times } = require("lodash");
+const inspectModule = require("../inspect-module.js");
+
+describe("Speed test", function () {
+ it("should be fast for simple tags", function () {
+ const content = "tag {age}";
+ const docs = [];
+ for (let i = 0; i < 100; i++) {
+ docs.push(createXmlTemplaterDocxNoRender(content, { tags: { age: 12 } }));
+ }
+ const time = new Date();
+ for (let i = 0; i < 100; i++) {
+ docs[i].render();
+ }
+ const duration = new Date() - time;
+ expect(duration).to.be.below(400);
+ });
+ it("should be fast for simple tags with huge content", function () {
+ let content = "tag {age}";
+ let i;
+ const result = [];
+ for (i = 1; i <= 10000; i++) {
+ result.push("bla");
+ }
+ const prepost = result.join("");
+ content = prepost + content + prepost;
+ const docs = [];
+ for (i = 0; i < 20; i++) {
+ docs.push(createXmlTemplaterDocxNoRender(content, { tags: { age: 12 } }));
+ }
+ const time = new Date();
+ for (i = 0; i < 20; i++) {
+ docs[i].render();
+ }
+ const duration = new Date() - time;
+ expect(duration).to.be.below(400);
+ });
+ it("should be fast for loop tags", function () {
+ const content = "{#users}{name}{/users}";
+ const users = [];
+ for (let i = 1; i <= 1000; i++) {
+ users.push({ name: "foo" });
+ }
+ const doc = createXmlTemplaterDocxNoRender(content, { tags: { users } });
+ const time = new Date();
+ doc.render();
+ const duration = new Date() - time;
+ let maxDuration = 100;
+ if (
+ browserMatches(/firefox (55|60|64|65)/) ||
+ browserMatches(/MicrosoftEdge (16)/)
+ ) {
+ maxDuration = 150;
+ }
+ expect(duration).to.be.below(maxDuration);
+ });
+ it("should be fast for nested loop tags", function () {
+ const result = [];
+ for (let i = 1; i <= 300; i++) {
+ result.push(`
+
+
+
+
+
+
+
+
+ {#users} Names : {user}
+ {/}
+
+ `);
+ }
+ const prepost = result.join("");
+ const content = `{#foo}${prepost}{/}`;
+ const users = [{ name: "John" }, { name: "Mary" }];
+ const doc = createXmlTemplaterDocxNoRender(content, { tags: { users } });
+ const time = new Date();
+ doc.render();
+ const duration = new Date() - time;
+ let maxDuration = 300;
+ if (
+ browserMatches(/MicrosoftEdge (16|17|18)/) ||
+ browserMatches(/internet explorer (10|11)/) ||
+ browserMatches(/iphone 10.3/)
+ ) {
+ maxDuration = 500;
+ }
+ expect(duration).to.be.below(maxDuration);
+ });
+ /* eslint-disable-next-line no-process-env */
+ if (!process.env.FAST) {
+ it("should not exceed call stack size for big document with a few rawxml tags", function () {
+ this.timeout(30000);
+ const result = [];
+ const normalContent = "foo";
+ const rawContent = "{@raw}";
+
+ for (let i = 1; i <= 30000; i++) {
+ if (i % 100 === 1) {
+ result.push(rawContent);
+ }
+ result.push(normalContent);
+ }
+ const content = result.join("");
+ const users = [];
+ const doc = createXmlTemplaterDocxNoRender(content, { tags: { users } });
+ let now = new Date();
+ doc.compile();
+ const compileDuration = new Date() - now;
+ if (typeof window === "undefined") {
+ // Skip this assertion in the browser
+ expect(compileDuration).to.be.below(3000);
+ }
+ now = new Date();
+ doc.render();
+ const renderDuration = new Date() - now;
+ expect(renderDuration).to.be.below(2000);
+ });
+
+ it("should not exceed call stack size for big document with many rawxml tags", function () {
+ this.timeout(30000);
+ const result = [];
+ const normalContent = "foo";
+ const rawContent = "{@raw}";
+
+ for (let i = 1; i <= 50000; i++) {
+ if (i % 2 === 1) {
+ result.push(rawContent);
+ }
+ result.push(normalContent);
+ }
+ const content = result.join("");
+ const users = [];
+ const doc = createXmlTemplaterDocxNoRender(content, { tags: { users } });
+ let now = new Date();
+ doc.compile();
+ const compileDuration = new Date() - now;
+ if (typeof window === "undefined") {
+ // Skip this assertion in the browser
+ expect(compileDuration).to.be.below(3000);
+ }
+ now = new Date();
+ doc.render();
+ const renderDuration = new Date() - now;
+ expect(renderDuration).to.be.below(2000);
+ });
+
+ describe("Inspect module", function () {
+ it("should not be slow after multiple generations", function () {
+ let duration = 0;
+ const iModule = inspectModule();
+ for (let i = 0; i < 10; i++) {
+ const doc = createDoc("tag-product-loop.docx");
+ const startTime = new Date();
+ doc.attachModule(iModule);
+ const data = {
+ nom: "Doe",
+ prenom: "John",
+ telephone: "0652455478",
+ description: "New Website",
+ offre: times(20000, (i) => {
+ return {
+ prix: 1000 + i,
+ nom: "Acme" + i,
+ };
+ }),
+ };
+ doc.setData(data);
+ doc.compile();
+ doc.render();
+ duration += new Date() - startTime;
+ }
+ expect(duration).to.be.below(750);
+ });
+ });
+
+ it("should not be slow when having many loops with resolveData", function () {
+ this.timeout(30000);
+ const OldPromise = global.Promise;
+ let resolveCount = 0;
+ let allCount = 0;
+ let parserCount = 0;
+ let parserGetCount = 0;
+ global.Promise = function (arg1, arg2) {
+ return new OldPromise(arg1, arg2);
+ };
+ global.Promise.resolve = function (arg1) {
+ resolveCount++;
+ return OldPromise.resolve(arg1);
+ };
+ global.Promise.all = function (arg1) {
+ allCount++;
+ return OldPromise.all(arg1);
+ };
+ const doc = createDoc("multi-level.docx");
+ doc.setOptions({
+ paragraphLoop: true,
+ parser: (tag) => {
+ parserCount++;
+ return {
+ get: (scope) => {
+ parserGetCount++;
+ return scope[tag];
+ },
+ };
+ },
+ });
+ let start = +new Date();
+ doc.compile();
+ const stepCompile = +new Date() - start;
+ start = +new Date();
+ const multiplier = 20;
+ const total = Math.pow(multiplier, 3);
+ const data = {
+ l1: times(multiplier),
+ l2: times(multiplier),
+ l3: times(multiplier, () => ({ content: "Hello" })),
+ };
+ return doc.resolveData(data).then(function () {
+ const stepResolve = +new Date() - start;
+ start = +new Date();
+ doc.render();
+ const stepRender = +new Date() - start;
+ expect(stepCompile).to.be.below(100);
+ let maxResolveTime = 2000;
+ if (browserMatches(/MicrosoftEdge (16|17|18)/)) {
+ maxResolveTime = 20000;
+ }
+ if (browserMatches(/firefox 55/)) {
+ maxResolveTime = 4000;
+ }
+ expect(stepResolve).to.be.below(maxResolveTime);
+ let maxRenderTime = 1000;
+ if (
+ browserMatches(/iphone 10.3/) ||
+ browserMatches(/MicrosoftEdge (16|17|18)/)
+ ) {
+ maxRenderTime = 2000;
+ }
+ expect(stepRender).to.be.below(maxRenderTime);
+ expect(parserCount).to.be.equal(4);
+ // 20**3 + 20**2 *3 + 20 * 2 + 1 = 9241
+ expect(parserGetCount).to.be.equal(9241);
+ expect(resolveCount).to.be.within(total, total * 1.2);
+ expect(allCount).to.be.within(total, total * 1.2);
+ global.Promise = OldPromise;
+ });
+ });
+ }
+});
diff --git a/es6/tests/string-repeat.js b/es6/tests/string-repeat.js
new file mode 100644
index 0000000..7c5da96
--- /dev/null
+++ b/es6/tests/string-repeat.js
@@ -0,0 +1,40 @@
+function repeat(input, count) {
+ if (input == null) {
+ throw new TypeError("can't convert " + input + " to object");
+ }
+
+ let str = "" + input;
+ // To convert string to integer.
+ count = +count;
+
+ if (count < 0) {
+ throw new RangeError("repeat count must be non-negative");
+ }
+
+ if (count === Infinity) {
+ throw new RangeError("repeat count must be less than infinity");
+ }
+
+ count = Math.floor(count);
+ if (str.length === 0 || count === 0) {
+ return "";
+ }
+
+ // Ensuring count is a 31-bit integer allows us to heavily optimize the
+ // main part. But anyway, most current (August 2014) browsers can't handle
+ // strings 1 << 28 chars or longer, so:
+ if (str.length * count >= 1 << 28) {
+ throw new RangeError("repeat count must not overflow maximum string size");
+ }
+
+ const maxCount = str.length * count;
+ count = Math.floor(Math.log(count) / Math.log(2));
+ while (count) {
+ str += str;
+ count--;
+ }
+ str += str.substring(0, maxCount - str.length);
+ return str;
+}
+
+module.exports = repeat;
diff --git a/es6/tests/utils.js b/es6/tests/utils.js
new file mode 100644
index 0000000..2c837a3
--- /dev/null
+++ b/es6/tests/utils.js
@@ -0,0 +1,677 @@
+const path = require("path");
+const chai = require("chai");
+const { expect } = chai;
+const PizZip = require("pizzip");
+const fs = require("fs");
+const { get, unset, omit, uniq } = require("lodash");
+const errorLogger = require("../error-logger");
+const diff = require("diff");
+const AssertionModule = require("./assertion-module.js");
+
+const Docxtemplater = require("../docxtemplater.js");
+const { first } = require("../utils.js");
+const xmlPrettify = require("./xml-prettify");
+let countFiles = 1;
+let allStarted = false;
+let examplesDirectory;
+const documentCache = {};
+const imageData = {};
+const emptyNamespace = /xmlns:[a-z0-9]+=""/;
+
+function unifiedDiff(actual, expected) {
+ const indent = " ";
+ function cleanUp(line) {
+ const firstChar = first(line);
+ if (firstChar === "+") {
+ return indent + line;
+ }
+ if (firstChar === "-") {
+ return indent + line;
+ }
+ if (line.match(/@@/)) {
+ return "--";
+ }
+ if (line.match(/\\ No newline/)) {
+ return null;
+ }
+ return indent + line;
+ }
+ function notBlank(line) {
+ return typeof line !== "undefined" && line !== null;
+ }
+ const msg = diff.createPatch("string", actual, expected);
+ const lines = msg.split("\n").splice(5);
+ return (
+ "\n " +
+ "+ expected" +
+ " " +
+ "- actual" +
+ "\n\n" +
+ lines.map(cleanUp).filter(notBlank).join("\n")
+ );
+}
+
+function isNode12() {
+ return process && process.version && process.version.indexOf("v12") === 0;
+}
+
+function walk(dir) {
+ let results = [];
+ const list = fs.readdirSync(dir);
+ list.forEach(function (file) {
+ if (file.indexOf(".") === 0) {
+ return;
+ }
+ file = dir + "/" + file;
+ const stat = fs.statSync(file);
+ if (stat && stat.isDirectory()) {
+ results = results.concat(walk(file));
+ } else {
+ results.push(file);
+ }
+ });
+ return results;
+}
+
+function createXmlTemplaterDocxNoRender(content, options = {}) {
+ const doc = makeDocx("temporary.docx", content);
+ doc.setOptions(options);
+ doc.setData(options.tags);
+ return doc;
+}
+
+function createXmlTemplaterDocx(content, options = {}) {
+ const doc = makeDocx("temporary.docx", content);
+ doc.setOptions(options);
+ doc.setData(options.tags);
+ doc.render();
+ return doc;
+}
+
+function writeFile(expectedName, zip) {
+ const writeFile = path.resolve(examplesDirectory, "..", expectedName);
+ if (fs.writeFileSync) {
+ fs.writeFileSync(
+ writeFile,
+ zip.generate({ type: "nodebuffer", compression: "DEFLATE" })
+ );
+ }
+ if (typeof window !== "undefined" && window.saveAs) {
+ const out = zip.generate({
+ type: "blob",
+ mimeType:
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
+ compression: "DEFLATE",
+ });
+ saveAs(out, expectedName); // comment to see the error
+ }
+}
+function unlinkFile(expectedName) {
+ const writeFile = path.resolve(examplesDirectory, "..", expectedName);
+ if (fs.unlinkSync) {
+ try {
+ fs.unlinkSync(writeFile);
+ } catch (e) {
+ if (e.code !== "ENOENT") {
+ throw e;
+ }
+ }
+ }
+}
+
+/* eslint-disable no-console */
+function shouldBeSame(options) {
+ const zip = options.doc.getZip();
+ const { expectedName } = options;
+ let expectedZip;
+
+ try {
+ expectedZip = documentCache[expectedName].zip;
+ } catch (e) {
+ writeFile(expectedName, zip);
+ console.log(
+ JSON.stringify({ msg: "Expected file does not exists", expectedName })
+ );
+ throw e;
+ }
+
+ try {
+ uniq(Object.keys(zip.files).concat(Object.keys(expectedZip.files))).map(
+ function (filePath) {
+ const suffix = `for "${filePath}"`;
+ expect(expectedZip.files[filePath]).to.be.an(
+ "object",
+ `The file ${filePath} doesn't exist on ${expectedName}`
+ );
+ expect(zip.files[filePath]).to.be.an(
+ "object",
+ `The file ${filePath} doesn't exist on generated file`
+ );
+ expect(zip.files[filePath].name).to.be.equal(
+ expectedZip.files[filePath].name,
+ `Name differs ${suffix}`
+ );
+ expect(zip.files[filePath].options.dir).to.be.equal(
+ expectedZip.files[filePath].options.dir,
+ `IsDir differs ${suffix}`
+ );
+ const text1 = zip.files[filePath].asText().replace(/\n|\t/g, "");
+ const text2 = expectedZip.files[filePath]
+ .asText()
+ .replace(/\n|\t/g, "");
+ if (endsWith(filePath, "/")) {
+ return;
+ }
+ if (filePath.indexOf(".png") !== -1) {
+ expect(text1.length).to.be.equal(
+ text2.length,
+ `Content differs ${suffix}`
+ );
+ expect(text1).to.be.equal(text2, `Content differs ${suffix}`);
+ } else {
+ expect(text1).to.not.match(
+ emptyNamespace,
+ `The file ${filePath} has empty namespaces`
+ );
+ expect(text2).to.not.match(
+ emptyNamespace,
+ `The file ${filePath} has empty namespaces`
+ );
+ if (text1 === text2) {
+ return;
+ }
+ const pText1 = xmlPrettify(text1, options);
+ const pText2 = xmlPrettify(text2, options);
+
+ if (pText1 !== pText2) {
+ const pd = unifiedDiff(pText1, pText2);
+ expect(pText1).to.be.equal(
+ pText2,
+ "Content differs \n" + suffix + "\n" + pd
+ );
+ }
+ }
+ }
+ );
+ } catch (e) {
+ writeFile(expectedName, zip);
+ console.log(
+ JSON.stringify({
+ msg: "Expected file differs from actual file",
+ expectedName,
+ })
+ );
+ throw e;
+ }
+ unlinkFile(expectedName);
+}
+/* eslint-enable no-console */
+
+function checkLength(e, expectedError, propertyPath) {
+ const propertyPathLength = propertyPath + "Length";
+ const property = get(e, propertyPath);
+ const expectedPropertyLength = get(expectedError, propertyPathLength);
+ if (property && expectedPropertyLength) {
+ expect(expectedPropertyLength).to.be.a(
+ "number",
+ JSON.stringify(expectedError.properties)
+ );
+ expect(expectedPropertyLength).to.equal(property.length);
+ unset(e, propertyPath);
+ unset(expectedError, propertyPathLength);
+ }
+}
+
+function cleanRecursive(arr) {
+ arr.forEach(function (p) {
+ delete p.lIndex;
+ delete p.endLindex;
+ delete p.offset;
+ delete p.raw;
+ if (p.subparsed) {
+ cleanRecursive(p.subparsed);
+ }
+ if (p.value && p.value.forEach) {
+ p.value.forEach(cleanRecursive);
+ }
+ if (p.expanded) {
+ p.expanded.forEach(cleanRecursive);
+ }
+ });
+}
+
+function cleanError(e, expectedError) {
+ const message = e.message;
+ e = omit(e, ["line", "sourceURL", "stack"]);
+ e.message = message;
+ if (expectedError.properties && e.properties) {
+ if (expectedError.properties.explanation != null) {
+ const e1 = e.properties.explanation;
+ const e2 = expectedError.properties.explanation;
+ expect(e1).to.be.deep.equal(
+ e2,
+ `Explanations differ '${e1}' != '${e2}': for ${JSON.stringify(
+ expectedError
+ )}`
+ );
+ }
+ delete e.properties.explanation;
+ delete expectedError.properties.explanation;
+ if (e.properties.postparsed) {
+ e.properties.postparsed.forEach(function (p) {
+ delete p.lIndex;
+ delete p.endLindex;
+ delete p.offset;
+ });
+ }
+ if (e.properties.rootError) {
+ expect(
+ e.properties.rootError,
+ JSON.stringify(e.properties)
+ ).to.be.instanceOf(Error);
+ expect(
+ expectedError.properties.rootError,
+ JSON.stringify(expectedError.properties)
+ ).to.be.instanceOf(Object, "expectedError doesn't have a rootError");
+ if (expectedError) {
+ expect(e.properties.rootError.message).to.equal(
+ expectedError.properties.rootError.message,
+ "rootError.message"
+ );
+ }
+ delete e.properties.rootError;
+ delete expectedError.properties.rootError;
+ }
+ if (expectedError.properties.offset != null) {
+ const o1 = e.properties.offset;
+ const o2 = expectedError.properties.offset;
+ // offset can be arrays, so deep compare
+ expect(o1).to.be.deep.equal(
+ o2,
+ `Offset differ ${o1} != ${o2}: for ${JSON.stringify(expectedError)}`
+ );
+ }
+ delete expectedError.properties.offset;
+ delete e.properties.offset;
+ checkLength(e, expectedError, "properties.paragraphParts");
+ checkLength(e, expectedError, "properties.postparsed");
+ checkLength(e, expectedError, "properties.parsed");
+ }
+ if (e.stack && expectedError) {
+ expect(e.stack).to.contain("Error: " + expectedError.message);
+ }
+ delete e.stack;
+ return e;
+}
+
+function wrapMultiError(error) {
+ const type = Object.prototype.toString.call(error);
+ let errors;
+ if (type === "[object Array]") {
+ errors = error;
+ } else {
+ errors = [error];
+ }
+
+ return {
+ name: "TemplateError",
+ message: "Multi error",
+ properties: {
+ id: "multi_error",
+ errors,
+ },
+ };
+}
+
+function jsonifyError(e) {
+ return JSON.parse(
+ JSON.stringify(e, function (key, value) {
+ if (value instanceof Promise) {
+ return {};
+ }
+ return value;
+ })
+ );
+}
+
+function errorVerifier(e, type, expectedError) {
+ expect(e, "No error has been thrown").not.to.be.equal(null);
+ const toShowOnFail = e.stack;
+ expect(e, toShowOnFail).to.be.instanceOf(Error);
+ expect(e, toShowOnFail).to.be.instanceOf(type);
+ expect(e, toShowOnFail).to.be.an("object");
+ expect(e, toShowOnFail).to.have.property("properties");
+ expect(e.properties, toShowOnFail).to.be.an("object");
+ if (type.name && type.name !== "XTInternalError") {
+ expect(e.properties, toShowOnFail).to.have.property("explanation");
+ expect(e.properties.explanation, toShowOnFail).to.be.a("string");
+ expect(e.properties.explanation, toShowOnFail).to.be.a("string");
+ }
+ expect(e.properties, toShowOnFail).to.have.property("id");
+ expect(e.properties.id, toShowOnFail).to.be.a("string");
+ e = cleanError(e, expectedError);
+ if (e.properties.errors) {
+ const msg =
+ "expected : \n" +
+ JSON.stringify(expectedError.properties.errors) +
+ "\nactual : \n" +
+ JSON.stringify(e.properties.errors);
+ expect(expectedError.properties.errors).to.be.an("array", msg);
+ const l1 = e.properties.errors.length;
+ const l2 = expectedError.properties.errors.length;
+ expect(l1).to.equal(
+ l2,
+ `Expected to have the same amount of e.properties.errors ${l1} !== ${l2} ` +
+ msg
+ );
+ e.properties.errors = e.properties.errors.map(function (suberror, i) {
+ const cleaned = cleanError(suberror, expectedError.properties.errors[i]);
+ const jsonified = jsonifyError(cleaned);
+ return jsonified;
+ });
+ }
+
+ const realError = jsonifyError(e);
+ expect(realError).to.be.deep.equal(expectedError);
+}
+
+function expectToThrowAsync(fn, type, expectedError) {
+ return Promise.resolve(null)
+ .then(function () {
+ const r = fn();
+ return r.then(function () {
+ return null;
+ });
+ })
+ .catch(function (error) {
+ return error;
+ })
+ .then(function (e) {
+ return errorVerifier(e, type, expectedError);
+ });
+}
+
+function expectToThrow(fn, type, expectedError) {
+ let err = null;
+ try {
+ fn();
+ } catch (e) {
+ err = e;
+ }
+ errorVerifier(err, type, expectedError);
+ return err;
+}
+
+function load(name, content, obj) {
+ const zip = new PizZip(content);
+ obj[name] = new Docxtemplater();
+ obj[name].loadZip(zip);
+ obj[name].loadedName = name;
+ obj[name].loadedContent = content;
+ return obj[name];
+}
+function loadDocument(name, content) {
+ return load(name, content, documentCache);
+}
+
+function cacheDocument(name, content) {
+ const zip = new PizZip(content);
+ documentCache[name] = { loadedName: name, loadedContent: content, zip };
+ return documentCache[name];
+}
+function loadImage(name, content) {
+ imageData[name] = content;
+}
+
+function loadFile(name, callback) {
+ if (fs.readFileSync) {
+ const path = require("path");
+ const buffer = fs.readFileSync(
+ path.join(examplesDirectory, name),
+ "binary"
+ );
+ return callback(null, name, buffer);
+ }
+ return PizZipUtils.getBinaryContent("../examples/" + name, function (
+ err,
+ data
+ ) {
+ if (err) {
+ return callback(err);
+ }
+ return callback(null, name, data);
+ });
+}
+
+function unhandledRejectionHandler(reason) {
+ throw reason;
+}
+
+let startFunction;
+function setStartFunction(sf) {
+ allStarted = false;
+ countFiles = 1;
+ startFunction = sf;
+
+ if (typeof window !== "undefined" && window.addEventListener) {
+ window.addEventListener("unhandledrejection", unhandledRejectionHandler);
+ } else {
+ process.on("unhandledRejection", unhandledRejectionHandler);
+ }
+}
+
+function endLoadFile(change) {
+ change = change || 0;
+ countFiles += change;
+ if (countFiles === 0 && allStarted === true) {
+ const result = startFunction();
+ if (typeof window !== "undefined") {
+ return window.mocha.run(() => {
+ const elemDiv = window.document.getElementById("status");
+ elemDiv.textContent = "FINISHED";
+ document.body.appendChild(elemDiv);
+ });
+ }
+ return result;
+ }
+}
+
+function endsWith(str, suffix) {
+ return str.indexOf(suffix, str.length - suffix.length) !== -1;
+}
+function endsWithOne(str, suffixes) {
+ return suffixes.some(function (suffix) {
+ return endsWith(str, suffix);
+ });
+}
+function startsWith(str, suffix) {
+ return str.indexOf(suffix) === 0;
+}
+
+/* eslint-disable no-console */
+function start() {
+ afterEach(function () {
+ if (
+ this.currentTest.state === "failed" &&
+ this.currentTest.err.properties
+ ) {
+ errorLogger(this.currentTest.err);
+ }
+ });
+ /* eslint-disable import/no-unresolved */
+ const fileNames = require("./filenames.js");
+ /* eslint-enable import/no-unresolved */
+ fileNames.forEach(function (fullFileName) {
+ const fileName = fullFileName.replace(examplesDirectory + "/", "");
+ let callback;
+ if (startsWith(fileName, ".") || startsWith(fileName, "~")) {
+ return;
+ }
+ if (
+ endsWithOne(fileName, [
+ ".dotx",
+ ".dotm",
+ ".docx",
+ ".docm",
+ ".pptm",
+ ".pptx",
+ ".xlsx",
+ ])
+ ) {
+ callback = cacheDocument;
+ }
+ if (!callback) {
+ callback = loadImage;
+ }
+ countFiles++;
+ loadFile(fileName, (e, name, buffer) => {
+ if (e) {
+ console.log(e);
+ throw e;
+ }
+ endLoadFile(-1);
+ callback(name, buffer);
+ });
+ });
+ allStarted = true;
+ endLoadFile(-1);
+}
+/* eslint-disable no-console */
+
+function setExamplesDirectory(ed) {
+ examplesDirectory = ed;
+ if (fs && fs.writeFileSync) {
+ const fileNames = walk(examplesDirectory).map(function (f) {
+ return f.replace(examplesDirectory + "/", "");
+ });
+ fs.writeFileSync(
+ path.resolve(__dirname, "filenames.js"),
+ "module.exports=" + JSON.stringify(fileNames)
+ );
+ }
+}
+
+function removeSpaces(text) {
+ return text.replace(/\n|\t/g, "");
+}
+
+const contentTypeContent = `
+
+
+
+
+`;
+
+function makeDocx(name, content) {
+ const zip = new PizZip();
+ zip.file("word/document.xml", content, { createFolders: true });
+ zip.file("[Content_Types].xml", contentTypeContent);
+ return load(name, zip.generate({ type: "string" }), documentCache);
+}
+
+function createDoc(name) {
+ const doc = loadDocument(name, documentCache[name].loadedContent);
+ /* eslint-disable-next-line no-process-env */
+ if (!process.env.FAST) {
+ doc.attachModule(new AssertionModule());
+ }
+ return doc;
+}
+
+function createDocV4(name, options) {
+ const zip = getZip(name);
+ /* eslint-disable-next-line no-process-env */
+ if (!process.env.FAST) {
+ options = options || {};
+ if (!options.modules || options.modules instanceof Array) {
+ options.modules = options.modules || [];
+ options.modules.push(new AssertionModule());
+ }
+ }
+ return new Docxtemplater(zip, options);
+}
+
+function getZip(name) {
+ return new PizZip(documentCache[name].loadedContent);
+}
+
+function getLoadedContent(name) {
+ return documentCache[name].loadedContent;
+}
+
+function getContent(doc) {
+ return doc.getZip().files["word/document.xml"].asText();
+}
+
+function resolveSoon(data) {
+ return new Promise(function (resolve) {
+ setTimeout(function () {
+ resolve(data);
+ }, 1);
+ });
+}
+
+function rejectSoon(data) {
+ return new Promise(function (resolve, reject) {
+ setTimeout(function () {
+ reject(data);
+ }, 1);
+ });
+}
+
+function getParameterByName(name) {
+ if (typeof window === "undefined") {
+ return null;
+ }
+ const url = window.location.href;
+ name = name.replace(/[\[\]]/g, "\\$&");
+ const regex = new RegExp("[?&]" + name + "(=([^]*)|&|#|$)"),
+ results = regex.exec(url);
+ if (!results) {
+ return null;
+ }
+ if (!results[2]) {
+ return "";
+ }
+ return decodeURIComponent(results[2].replace(/\+/g, " "));
+}
+
+function browserMatches(regex) {
+ const currentBrowser = getParameterByName("browser");
+ if (currentBrowser === null) {
+ return false;
+ }
+ return regex.test(currentBrowser);
+}
+
+module.exports = {
+ chai,
+ cleanError,
+ cleanRecursive,
+ createDoc,
+ getLoadedContent,
+ createXmlTemplaterDocx,
+ createXmlTemplaterDocxNoRender,
+ expect,
+ expectToThrow,
+ expectToThrowAsync,
+ getContent,
+ imageData,
+ loadDocument,
+ loadFile,
+ loadImage,
+ makeDocx,
+ removeSpaces,
+ setExamplesDirectory,
+ setStartFunction,
+ shouldBeSame,
+ resolveSoon,
+ rejectSoon,
+ start,
+ wrapMultiError,
+ isNode12,
+ createDocV4,
+ getZip,
+ getParameterByName,
+ browserMatches,
+};
diff --git a/es6/tests/xml-matcher.js b/es6/tests/xml-matcher.js
new file mode 100644
index 0000000..63a9b12
--- /dev/null
+++ b/es6/tests/xml-matcher.js
@@ -0,0 +1,141 @@
+const xmlMatcher = require("../xml-matcher.js");
+const { expect } = require("./utils");
+const xmlprettify = require("./xml-prettify");
+
+describe("XmlMatcher", function () {
+ it("should work with simple tag", function () {
+ const matcher = xmlMatcher("Text", ["w:t"]);
+ expect(matcher.matches[0].array[0]).to.be.equal("Text");
+ expect(matcher.matches[0].array[1]).to.be.equal("");
+ expect(matcher.matches[0].array[2]).to.be.equal("Text");
+ expect(matcher.matches[0].offset).to.be.equal(0);
+ });
+
+ it("should work with multiple tags", function () {
+ const matcher = xmlMatcher("Text TAG Text2", ["w:t"]);
+ expect(matcher.matches[1].array[0]).to.be.equal("Text2");
+ expect(matcher.matches[1].array[1]).to.be.equal("");
+ expect(matcher.matches[1].array[2]).to.be.equal("Text2");
+ expect(matcher.matches[1].offset).to.be.equal(20);
+ });
+
+ it("should work with selfclosing tag", function () {
+ const matcher = xmlMatcher(' ', [
+ "w:spacing",
+ ]);
+ expect(matcher.matches.length).to.be.equal(1);
+ expect(matcher.matches[0].array[0]).to.be.equal(
+ ''
+ );
+ });
+
+ it("should work with no tag, with w:t", function () {
+ const matcher = xmlMatcher("Text1Text2", ["w:t"]);
+ expect(matcher.matches[0].array[0]).to.be.equal("Text1");
+ expect(matcher.matches[0].array[1]).to.be.equal("");
+ expect(matcher.matches[0].array[2]).to.be.equal("Text1");
+ expect(matcher.matches[0].offset).to.be.equal(0);
+
+ expect(matcher.matches[1].array[0]).to.be.equal("Text2");
+ expect(matcher.matches[1].array[1]).to.be.equal("");
+ expect(matcher.matches[1].array[2]).to.be.equal("Text2");
+ expect(matcher.matches[1].offset).to.be.equal(11);
+ });
+
+ it("should work with no tag, no w:t", function () {
+ const matcher = xmlMatcher("Text1", ["w:t"]);
+ expect(matcher.matches[0].array[0]).to.be.equal("Text1");
+ expect(matcher.matches[0].array[1]).to.be.equal("");
+ expect(matcher.matches[0].array[2]).to.be.equal("Text1");
+ expect(matcher.matches[0].offset).to.be.equal(0);
+ });
+
+ it("should not match with no starter", function () {
+ const matcher = xmlMatcher("TAGText1", ["w:t"]);
+ expect(matcher.matches[0].array[0]).to.be.equal("Text1");
+ expect(matcher.matches[0].array[1]).to.be.equal("");
+ expect(matcher.matches[0].array[2]).to.be.equal("Text1");
+ expect(matcher.matches[0].offset).to.be.equal(3);
+ });
+
+ it("should not match with no ender", function () {
+ const matcher = xmlMatcher("Text1TAG", ["w:t"]);
+ expect(matcher.matches.length).to.be.equal(1);
+ });
+});
+
+describe("XML prettify", function () {
+ it("should sort attributes", function () {
+ const str =
+ '';
+
+ const prettified = xmlprettify(str);
+ expect(prettified).to
+ .equal(`
+
+
+
+`);
+ });
+ it("should remove space inside tags", function () {
+ const str = `
+
+
+ Property
+
+
+ 0 $
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `;
+ const prettified = xmlprettify(str);
+ expect(prettified).to
+ .equal(`
+
+
+ Property
+
+
+ 0 $
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`);
+ });
+});
diff --git a/es6/tests/xml-prettify.js b/es6/tests/xml-prettify.js
new file mode 100644
index 0000000..b43ddba
--- /dev/null
+++ b/es6/tests/xml-prettify.js
@@ -0,0 +1,161 @@
+/* eslint-disable complexity */
+const repeat = require("./string-repeat");
+
+function getIndent(indent) {
+ return repeat(" ", indent);
+}
+
+function attributeSorter(ln) {
+ const aRegex = /<[A-Za-z0-9:]+ (.*?)([/ ]*)>/;
+ let rest;
+ if (aRegex.test(ln)) {
+ rest = ln.replace(aRegex, "$1");
+ }
+ const attrRegex = / *([a-zA-Z0-9:]+)="([^"]+)"/g;
+ let match = attrRegex.exec(rest);
+ const attributes = [];
+ while (match != null) {
+ // matched text: match[0]
+ // match start: match.index
+ // capturing group n: match[n]
+ attributes.push({ key: match[1], value: match[2] });
+ match = attrRegex.exec(rest);
+ }
+ attributes.sort(function (a1, a2) {
+ if (a1.key === a2.key) {
+ return 0;
+ }
+ return a1.key > a2.key ? 1 : -1;
+ });
+ const stringifiedAttrs = attributes
+ .map(function (attribute) {
+ return `${attribute.key}="${attribute.value}"`;
+ })
+ .join(" ");
+ if (rest != null) {
+ ln = ln.replace(rest, stringifiedAttrs).replace(/ +>/, ">");
+ }
+ return ln;
+}
+
+function xmlprettify(xml) {
+ let result = "",
+ skip = 0,
+ indent = 0;
+ const parsed = miniparser(xml);
+ parsed.forEach(function ({ type, value }, i) {
+ if (skip > 0) {
+ skip--;
+ return;
+ }
+ const nextType = i < parsed.length - 1 ? parsed[i + 1].type : "";
+ const nnextType = i < parsed.length - 2 ? parsed[i + 2].type : "";
+ if (type === "declaration") {
+ result += value + "\n";
+ }
+ if (
+ type === "opening" &&
+ nextType === "content" &&
+ nnextType === "closing"
+ ) {
+ result +=
+ getIndent(indent) +
+ value +
+ parsed[i + 1].value +
+ parsed[i + 2].value +
+ "\n";
+ skip = 2;
+ return;
+ }
+ if (type === "opening") {
+ result += getIndent(indent) + value + "\n";
+ indent++;
+ }
+ if (type === "closing") {
+ indent--;
+ if (indent < 0) {
+ throw new Error(`Malformed xml : ${xml}`);
+ }
+ result += getIndent(indent) + value + "\n";
+ }
+ if (type === "single") {
+ result += getIndent(indent) + value + "\n";
+ }
+ if (type === "content" && !/^[ \n\r\t]+$/.test(value)) {
+ result += getIndent(indent) + value.trim() + "\n";
+ }
+ });
+ if (indent !== 0) {
+ throw new Error(`Malformed xml : ${xml}`);
+ }
+ return result;
+}
+
+function miniparser(xml) {
+ let cursor = 0;
+ let state = "outside";
+ let currentType = "";
+ let content = "";
+ const renderedArray = [];
+ while (cursor < xml.length) {
+ if (state === "outside") {
+ const opening = xml.indexOf("<", cursor);
+ if (opening !== -1) {
+ if (opening !== cursor) {
+ content = xml.substr(cursor, opening - cursor);
+ content = content.replace(/>/g, ">");
+ renderedArray.push({ type: "content", value: content });
+ }
+ state = "inside";
+ cursor = opening;
+ } else {
+ const content = xml.substr(cursor);
+ renderedArray.push({ type: "content", value: content });
+ return renderedArray;
+ }
+ }
+ if (state === "inside") {
+ const closing = xml.indexOf(">", cursor);
+ if (closing !== -1) {
+ let tag = xml.substr(cursor, closing - cursor + 1);
+ const isSingle = Boolean(tag.match(/^<.+\/>/)); // is this line a single tag? ex.
+ const isClosing = Boolean(tag.match(/^<\/.+>/)); // is this a closing tag? ex.
+ const isXMLDeclaration = Boolean(tag.match(/^<\?xml/)); // is this a closing tag? ex.
+
+ state = "outside";
+ cursor = closing + 1;
+ if (isXMLDeclaration) {
+ const encodingRegex = /encoding="([^"]+)"/;
+ if (encodingRegex.test(tag)) {
+ tag = tag.replace(encodingRegex, function (x, p0) {
+ return `encoding="${p0.toUpperCase()}"`;
+ });
+ }
+ currentType = "declaration";
+ } else if (isSingle) {
+ // drop whitespace at the end
+ tag = tag.replace(/\s*\/\s*>$/g, "/>");
+ tag = attributeSorter(tag);
+ currentType = "single";
+ } else if (isClosing) {
+ // drop whitespace at the end
+ tag = tag.replace(/\s+>$/g, ">");
+ currentType = "closing";
+ } else {
+ // drop whitespace at the end
+ tag = tag.replace(/\s+>$/g, ">");
+ tag = attributeSorter(tag);
+ currentType = "opening";
+ }
+ renderedArray.push({ type: currentType, value: tag });
+ } else {
+ const content = xml.substr(cursor);
+ renderedArray.push({ type: "content", value: content });
+ return renderedArray;
+ }
+ }
+ }
+ return renderedArray;
+}
+
+module.exports = xmlprettify;
diff --git a/es6/tests/xml-templater.js b/es6/tests/xml-templater.js
new file mode 100644
index 0000000..91113c9
--- /dev/null
+++ b/es6/tests/xml-templater.js
@@ -0,0 +1,439 @@
+const {
+ createXmlTemplaterDocx,
+ expect,
+ getContent,
+ createXmlTemplaterDocxNoRender,
+} = require("./utils");
+
+describe("XmlTemplater", function () {
+ it("should work with simpleContent", function () {
+ const content = "Hello {name}";
+ const scope = { name: "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar");
+ });
+
+ it("should work with doublecontent in w:t", function () {
+ const content = "Hello {name}, you're {age} years old";
+ const scope = { name: "Edgar", age: "foo" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal(
+ "Hello Edgar, you're foo years old"
+ );
+ });
+
+ it("should work with {.} for this", function () {
+ const content = "Hello {.}";
+ const scope = "Edgar";
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar");
+ });
+
+ it("should work with {.} for this inside loop", function () {
+ const content = "Hello {#names}{.},{/names}";
+ const scope = { names: ["Edgar", "John"] };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar,John,");
+ });
+
+ it("should work with non w:t content", function () {
+ const content = "{#loop}Hello {name}{/loop}";
+ const scope = { loop: { name: "edgar" } };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(getContent(xmlTemplater)).to.be.equal(
+ 'Hello edgar'
+ );
+ });
+
+ it("should handle in loop without error", function () {
+ const content = `{#ab}
+
+ {.}{/ab}`;
+ const scope = { ab: [1, 2, 3] };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("123");
+ });
+
+ it("should work with tag in two elements", function () {
+ const content = "Hello {name}";
+ const scope = { name: "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar");
+ });
+
+ it("should work with splitted tag in three elements", function () {
+ const content = "Hello {name}";
+ const scope = { name: "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar");
+ });
+
+ it("should work with simple loop with object value", function () {
+ const content = "Hello {#person}{name}{/person}";
+ const scope = { person: { name: "Edgar" } };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar");
+ });
+
+ it("should work with simple Loop", function () {
+ const content = "Hello {#names}{name},{/names}";
+ const scope = {
+ names: [{ name: "Edgar" }, { name: "Mary" }, { name: "John" }],
+ };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar,Mary,John,");
+ });
+ it("should work with simple Loop with boolean value truthy", function () {
+ const content = "Hello {#showName}{name},{/showName}";
+ const scope = { showName: true, name: "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar,");
+ });
+ it("should work with simple Loop with boolean value falsy", function () {
+ const content = "Hello {#showName}{name},{/showName}";
+ const scope = { showName: false, name: "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello ");
+ });
+ it("should work with dash Loop", function () {
+ const content = "Hello {-w:p names}{name},{/names}";
+ const scope = {
+ names: [{ name: "Edgar" }, { name: "Mary" }, { name: "John" }],
+ };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal(
+ "Hello Edgar,Hello Mary,Hello John,"
+ );
+ });
+ it("should work with loop and innerContent", function () {
+ const content =
+ '{#loop}{title}Proof that it works nicely :{#proof} It works because {reason}{/proof}{/loop}';
+ const scope = {
+ loop: {
+ title: "Everyone uses it",
+ proof: [
+ { reason: "it is quite cheap" },
+ { reason: "it is quit simple" },
+ { reason: "it works on a lot of different Hardware" },
+ ],
+ },
+ };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal(
+ "Everyone uses itProof that it works nicely : It works because it is quite cheap It works because it is quit simple It works because it works on a lot of different Hardware"
+ );
+ });
+ it("should work with loop and innerContent (with last)", function () {
+ const content =
+ '{#loop}Start {title}Proof that it works nicely :{#proof} It works because {reason}{/proof} End{/loop}';
+ const scope = {
+ loop: {
+ title: "Everyone uses it",
+ proof: [
+ { reason: "it is quite cheap" },
+ { reason: "it is quit simple" },
+ { reason: "it works on a lot of different Hardware" },
+ ],
+ },
+ };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal(
+ "Start Everyone uses itProof that it works nicely : It works because it is quite cheap It works because it is quit simple It works because it works on a lot of different Hardware End"
+ );
+ });
+ it("should work with not w:t tag (if the for loop is like {#forloop} text {/forloop}) ", function () {
+ const content = "{#loop}Hello {#names}{name},{/names}{/loop}";
+ const scope = {
+ loop: { names: [{ name: "Edgar" }, { name: "Mary" }, { name: "John" }] },
+ };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(getContent(xmlTemplater)).to.be.equal(
+ 'Hello Edgar,Mary,John,'
+ );
+ });
+ it("should work with delimiter in value", function () {
+ const content = "Hello {name}";
+ const scope = { name: "{edgar}" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello {edgar}");
+ });
+ it("should work with delimiter in value with loop)", function () {
+ const content = "Hello {#names}{name},{/names}";
+ const scope = {
+ names: [{ name: "{John}" }, { name: "M}}{ary" }, { name: "Di{{{gory" }],
+ };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal(
+ "Hello {John},M}}{ary,Di{{{gory,"
+ );
+ });
+ it("should work when replacing with exact same value", function () {
+ const content = 'Hello {name}';
+ const scope = { name: "{name}" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ xmlTemplater.getFullText();
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello {name}");
+ });
+
+ it("should work with equations", function () {
+ const content = `
+
+
+
+
+
+ y
+
+
+
+
+ {bar}
+
+
+
+
+ *
+
+
+ cos
+
+
+ (
+
+
+ {foo}
+
+
+ +{baz})
+
+
+
+
+
+ Hello {
+ name
+ }
+
+ `;
+ const scope = { name: "John", foo: "MyFoo", bar: "MyBar", baz: "MyBaz" };
+ const xmlTemplater = createXmlTemplaterDocx(content, { tags: scope });
+ expect(xmlTemplater.getFullText()).to.be.equal(
+ "yMyBar*cos( MyFoo+MyBaz)Hello John"
+ );
+ });
+});
+
+describe("Change the nullGetter", function () {
+ it("should work with null", function () {
+ const content = "Hello {#names}{#foo}{bar}{/foo}{/names}";
+ function nullGetter(part, scopeManager) {
+ expect(part.value).to.equal("bar");
+ expect(scopeManager.scopePath).to.deep.equal(["names", "foo"]);
+ expect(scopeManager.scopePathItem).to.deep.equal([0, 0]);
+ return "null";
+ }
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: {
+ names: [{ foo: [{}] }],
+ },
+ nullGetter,
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello null");
+ });
+
+ it("should be possible to keep null tags as is", function () {
+ const content = "Hello {name}, your hobby is {hobby}";
+ function nullGetter(part) {
+ if (!part.module) {
+ return "{" + part.value + "}";
+ }
+ if (part.module === "rawxml") {
+ return "";
+ }
+ return "";
+ }
+ const data = {
+ hobby: "diving",
+ };
+ const xmlTemplater = createXmlTemplaterDocxNoRender(content, {
+ nullGetter,
+ });
+ xmlTemplater.compile();
+ return xmlTemplater.resolveData(data).then(function () {
+ xmlTemplater.render();
+ expect(xmlTemplater.getFullText()).to.be.equal(
+ "Hello {name}, your hobby is diving"
+ );
+ });
+ });
+
+ it("should work with null in resolve", function () {
+ const content = "Hello {#names}{#foo}{bar}{/foo}{/names}";
+ let calls = 0;
+ function nullGetter(part, scopeManager) {
+ calls++;
+ expect(scopeManager.scopePath).to.deep.equal(["names", "foo"]);
+ expect(scopeManager.scopePathItem).to.deep.equal([0, 0]);
+ return "null";
+ }
+ const data = {
+ names: [{ foo: [{}] }],
+ };
+ const xmlTemplater = createXmlTemplaterDocxNoRender(content, {
+ nullGetter,
+ });
+ xmlTemplater.compile();
+ return xmlTemplater.resolveData(data).then(function () {
+ expect(calls).to.be.equal(1);
+ xmlTemplater.render();
+ expect(calls).to.be.equal(1);
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello null");
+ });
+ });
+});
+
+describe("intelligent tagging multiple tables", function () {
+ it("should work with multiple rows", function () {
+ const content = `
+
+
+
+
+ {#clauses} Clause {.}
+
+
+
+
+
+
+
+
+ {/clauses}
+
+
+
+
+
+ `.replace(/\t|\n/g, "");
+ const scope = { clauses: ["Foo", "Bar", "Baz"] };
+ const doc = createXmlTemplaterDocx(content, { tags: scope });
+ const c = getContent(doc);
+ expect(c).to.be.equal(
+ ' Clause Foo Clause Bar Clause Baz'
+ );
+ });
+});
+
+describe("Custom delimiters", function () {
+ it("should work with custom tags", function () {
+ const delimiters = {
+ start: "[",
+ end: "]",
+ };
+ const content = "Hello [name]";
+ const scope = { name: "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ delimiters,
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar");
+ });
+
+ it("should work with custom delimiters with two chars", function () {
+ const delimiters = {
+ start: "[[",
+ end: "]]",
+ };
+ const content = "Hello [[name]]";
+ const scope = { name: "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ delimiters,
+ });
+ expect(xmlTemplater.getFullText()).to.be.eql("Hello Edgar");
+ });
+
+ it("should work with custom delimiters as strings with different length", function () {
+ const delimiters = {
+ start: "[[[",
+ end: "]]",
+ };
+ const content = "Hello [[[name]]";
+ const scope = { name: "Edgar" };
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ delimiters,
+ });
+ expect(xmlTemplater.getFullText()).to.be.eql("Hello Edgar");
+ });
+
+ it("should work with custom tags and loops", function () {
+ const delimiters = {
+ start: "[[[",
+ end: "]]",
+ };
+ const content = "Hello [[[#names]][[[.]],[[[/names]]";
+ const scope = { names: ["Edgar", "Mary", "John"] };
+ const xmlTemplater = createXmlTemplaterDocx(content, {
+ tags: scope,
+ delimiters,
+ });
+ expect(xmlTemplater.getFullText()).to.be.equal("Hello Edgar,Mary,John,");
+ });
+
+ it("should work with loops", function () {
+ const content = "{#loop}{innertag} {/loop}";
+ const xmlt = createXmlTemplaterDocx(content, {
+ tags: { loop: [{ innertag: 10 }, { innertag: 5 }] },
+ });
+ const c = getContent(xmlt);
+ expect(c).to.be.equal(
+ '10 5 '
+ );
+ });
+
+ it("should work with complex loops (1)", function () {
+ const content = "{#looptag}{innertag}{/looptag}";
+ const xmlt = createXmlTemplaterDocx(content, {
+ tags: { looptag: true, innertag: "foo" },
+ });
+ const c = getContent(xmlt);
+ expect(c).not.to.contain("");
+ expect(c).to.be.equal('foo');
+ });
+
+ it("should work with complex loops (2)", function () {
+ const content = "{#person}{name}{/person}";
+ const xmlt = createXmlTemplaterDocx(content, {
+ tags: { person: [{ name: "Henry" }] },
+ });
+ const c = getContent(xmlt);
+ expect(c).to.contain("Henry");
+ expect(c).not.to.contain("Henry");
+ });
+});
+
+describe("getting parents context", function () {
+ it("should work with simple loops", function () {
+ const content = "{#loop}{name}{/loop}";
+ const xmlt = createXmlTemplaterDocx(content, {
+ tags: { loop: [1], name: "Henry" },
+ });
+ const c = getContent(xmlt);
+ expect(c).to.be.equal('Henry');
+ });
+
+ it("should work with double loops", function () {
+ const content =
+ "{#loop_first}{#loop_second}{name_inner} {name_outer}{/loop_second}{/loop_first}";
+ const xmlt = createXmlTemplaterDocx(content, {
+ tags: {
+ loop_first: [1],
+ loop_second: [{ name_inner: "John" }],
+ name_outer: "Henry",
+ },
+ });
+ const c = getContent(xmlt);
+ expect(c).to.be.equal('John Henry');
+ });
+});
diff --git a/es6/traits.js b/es6/traits.js
new file mode 100644
index 0000000..051dd3e
--- /dev/null
+++ b/es6/traits.js
@@ -0,0 +1,210 @@
+const {
+ getRightOrNull,
+ getRight,
+ getLeft,
+ getLeftOrNull,
+ chunkBy,
+ isTagStart,
+ isTagEnd,
+ isContent,
+ last,
+ first,
+} = require("./doc-utils");
+const {
+ XTTemplateError,
+ throwExpandNotFound,
+ getLoopPositionProducesInvalidXMLError,
+} = require("./errors");
+
+function lastTagIsOpenTag(tags, tag) {
+ if (tags.length === 0) {
+ return false;
+ }
+ const innerLastTag = last(tags).tag.substr(1);
+ const innerCurrentTag = tag.substr(2, tag.length - 3);
+ return innerLastTag.indexOf(innerCurrentTag) === 0;
+}
+
+function addTag(tags, tag) {
+ tags.push({ tag });
+ return tags;
+}
+
+function getListXmlElements(parts) {
+ /*
+ get the different closing and opening tags between two texts (doesn't take into account tags that are opened then closed (those that are closed then opened are returned)):
+ returns:[{"tag":"","offset":13},{"tag":"","offset":265},{"tag":"","offset":271},{"tag":"","offset":828},{"tag":"","offset":883},{"tag":"","offset":1483}]
+ */
+ const tags = parts.filter(function (part) {
+ return part.type === "tag";
+ });
+
+ let result = [];
+
+ for (let i = 0, tag; i < tags.length; i++) {
+ tag = tags[i].value;
+ // closing tag
+ if (tag[1] === "/") {
+ if (lastTagIsOpenTag(result, tag)) {
+ result.pop();
+ } else {
+ result = addTag(result, tag);
+ }
+ } else if (tag[tag.length - 2] !== "/") {
+ result = addTag(result, tag);
+ }
+ }
+ return result;
+}
+
+function has(name, xmlElements) {
+ for (let i = 0; i < xmlElements.length; i++) {
+ const xmlElement = xmlElements[i];
+ if (xmlElement.tag.indexOf(`<${name}`) === 0) {
+ return true;
+ }
+ }
+ return false;
+}
+
+function getExpandToDefault(postparsed, pair, expandTags) {
+ const parts = postparsed.slice(pair[0].offset, pair[1].offset);
+ const xmlElements = getListXmlElements(parts);
+ const closingTagCount = xmlElements.filter(function (xmlElement) {
+ return xmlElement.tag[1] === "/";
+ }).length;
+ const startingTagCount = xmlElements.filter(function (xmlElement) {
+ const { tag } = xmlElement;
+ return tag[1] !== "/" && tag[tag.length - 2] !== "/";
+ }).length;
+ if (closingTagCount !== startingTagCount) {
+ return {
+ error: getLoopPositionProducesInvalidXMLError({
+ tag: first(pair).part.value,
+ offset: [first(pair).part.offset, last(pair).part.offset],
+ }),
+ };
+ }
+ for (let i = 0, len = expandTags.length; i < len; i++) {
+ const { contains, expand, onlyTextInTag } = expandTags[i];
+ if (has(contains, xmlElements)) {
+ if (onlyTextInTag) {
+ const left = getLeftOrNull(postparsed, contains, pair[0].offset);
+ const right = getRightOrNull(postparsed, contains, pair[1].offset);
+ if (left === null || right === null) {
+ continue;
+ }
+
+ const chunks = chunkBy(postparsed.slice(left, right), function (p) {
+ if (isTagStart(contains, p)) {
+ return "start";
+ }
+ if (isTagEnd(contains, p)) {
+ return "end";
+ }
+ return null;
+ });
+
+ if (chunks.length <= 2) {
+ continue;
+ }
+
+ const firstChunk = first(chunks);
+ const lastChunk = last(chunks);
+
+ const firstContent = firstChunk.filter(isContent);
+ const lastContent = lastChunk.filter(isContent);
+ if (firstContent.length !== 1 || lastContent.length !== 1) {
+ continue;
+ }
+ }
+ return { value: expand };
+ }
+ }
+ return false;
+}
+
+function expandOne(part, index, postparsed, options) {
+ const expandTo = part.expandTo || options.expandTo;
+ if (!expandTo) {
+ return postparsed;
+ }
+ let right, left;
+ try {
+ left = getLeft(postparsed, expandTo, index);
+ right = getRight(postparsed, expandTo, index);
+ } catch (rootError) {
+ if (rootError instanceof XTTemplateError) {
+ throwExpandNotFound({
+ part,
+ rootError,
+ postparsed,
+ expandTo,
+ index,
+ ...options.error,
+ });
+ }
+ throw rootError;
+ }
+ const leftParts = postparsed.slice(left, index);
+ const rightParts = postparsed.slice(index + 1, right + 1);
+ let inner = options.getInner({
+ postparse: options.postparse,
+ index,
+ part,
+ leftParts,
+ rightParts,
+ left,
+ right,
+ postparsed,
+ });
+ if (!inner.length) {
+ inner.expanded = [leftParts, rightParts];
+ inner = [inner];
+ }
+ return { left, right, inner };
+}
+
+function expandToOne(postparsed, options) {
+ let errors = [];
+ if (postparsed.errors) {
+ errors = postparsed.errors;
+ postparsed = postparsed.postparsed;
+ }
+ const results = [];
+ for (let i = 0, len = postparsed.length; i < len; i++) {
+ const part = postparsed[i];
+ if (part.type === "placeholder" && part.module === options.moduleName) {
+ try {
+ const result = expandOne(part, i, postparsed, options);
+ i = result.right;
+ results.push(result);
+ } catch (error) {
+ if (error instanceof XTTemplateError) {
+ errors.push(error);
+ } else {
+ throw error;
+ }
+ }
+ }
+ }
+ const newParsed = [];
+ let currentResult = 0;
+ for (let i = 0, len = postparsed.length; i < len; i++) {
+ const part = postparsed[i];
+ const result = results[currentResult];
+ if (result && result.left === i) {
+ newParsed.push(...results[currentResult].inner);
+ currentResult++;
+ i = result.right;
+ } else {
+ newParsed.push(part);
+ }
+ }
+ return { postparsed: newParsed, errors };
+}
+
+module.exports = {
+ expandToOne,
+ getExpandToDefault,
+};
diff --git a/es6/utils.js b/es6/utils.js
new file mode 100644
index 0000000..a14d3bd
--- /dev/null
+++ b/es6/utils.js
@@ -0,0 +1,11 @@
+function last(a) {
+ return a[a.length - 1];
+}
+function first(a) {
+ return a[0];
+}
+
+module.exports = {
+ last,
+ first,
+};
diff --git a/es6/xml-matcher.js b/es6/xml-matcher.js
new file mode 100644
index 0000000..5e89420
--- /dev/null
+++ b/es6/xml-matcher.js
@@ -0,0 +1,65 @@
+"use strict";
+// res class responsibility is to parse the XML.
+const { pregMatchAll } = require("./doc-utils");
+
+function handleRecursiveCase(res) {
+ /*
+ * Because xmlTemplater is recursive (meaning it can call it self), we need to handle special cases where the XML is not valid:
+ * For example with res string "I amsleeping",
+ * - we need to match also the string that is inside an implicit (that's the role of replacerUnshift) (in res case 'I am')
+ * - we need to match the string that is at the right of a (that's the role of replacerPush) (in res case 'sleeping')
+ * the test: describe "scope calculation" it "should compute the scope between 2 " makes sure that res part of code works
+ * It should even work if they is no XML at all, for example if the code is just "I am sleeping", in res case however, they should only be one match
+ */
+
+ function replacerUnshift() {
+ const pn = { array: Array.prototype.slice.call(arguments) };
+ pn.array.shift();
+ const match = pn.array[0] + pn.array[1];
+ // add match so that pn[0] = whole match, pn[1]= first parenthesis,...
+ pn.array.unshift(match);
+ pn.array.pop();
+ const offset = pn.array.pop();
+ pn.offset = offset;
+ pn.first = true;
+ // add at the beginning
+ res.matches.unshift(pn);
+ }
+
+ if (res.content.indexOf("<") === -1 && res.content.indexOf(">") === -1) {
+ res.content.replace(/^()([^<>]*)$/, replacerUnshift);
+ }
+
+ let r = new RegExp(`^()([^<]+)<\/(?:${res.tagsXmlArrayJoined})>`);
+ res.content.replace(r, replacerUnshift);
+
+ function replacerPush() {
+ const pn = { array: Array.prototype.slice.call(arguments) };
+ pn.array.pop();
+ const offset = pn.array.pop();
+ pn.offset = offset;
+ pn.last = true;
+ if (pn.array[0].indexOf("/>") !== -1) {
+ return;
+ }
+ // add at the end
+ res.matches.push(pn);
+ }
+
+ r = new RegExp(`(<(?:${res.tagsXmlArrayJoined})[^>]*>)([^>]+)$`);
+ res.content.replace(r, replacerPush);
+ return res;
+}
+
+module.exports = function xmlMatcher(content, tagsXmlArray) {
+ const res = {};
+ res.content = content;
+ res.tagsXmlArray = tagsXmlArray;
+ res.tagsXmlArrayJoined = res.tagsXmlArray.join("|");
+ const regexp = new RegExp(
+ `(?:(<(?:${res.tagsXmlArrayJoined})[^>]*>)([^<>]*)(?:${res.tagsXmlArrayJoined})>)|(<(?:${res.tagsXmlArrayJoined})[^>]*/>)`,
+ "g"
+ );
+ res.matches = pregMatchAll(regexp, res.content);
+ return handleRecursiveCase(res);
+};
diff --git a/es6/xml-templater.js b/es6/xml-templater.js
new file mode 100644
index 0000000..cd626aa
--- /dev/null
+++ b/es6/xml-templater.js
@@ -0,0 +1,174 @@
+const { wordToUtf8, convertSpaces, defaults } = require("./doc-utils");
+const createScope = require("./scope-manager");
+const xmlMatcher = require("./xml-matcher");
+const { throwContentMustBeString } = require("./errors");
+const Lexer = require("./lexer");
+const Parser = require("./parser.js");
+const render = require("./render.js");
+const postrender = require("./postrender.js");
+const resolve = require("./resolve.js");
+const joinUncorrupt = require("./join-uncorrupt");
+
+function getFullText(content, tagsXmlArray) {
+ const matcher = xmlMatcher(content, tagsXmlArray);
+ const result = matcher.matches.map(function (match) {
+ return match.array[2];
+ });
+ return wordToUtf8(convertSpaces(result.join("")));
+}
+
+module.exports = class XmlTemplater {
+ constructor(content, options) {
+ this.filePath = options.filePath;
+ this.cachedParsers = {};
+ this.modules = options.modules;
+ this.fileTypeConfig = options.fileTypeConfig;
+ this.contentType = options.contentType;
+ Object.keys(defaults).map(function (key) {
+ this[key] = options[key] != null ? options[key] : defaults[key];
+ }, this);
+ this.setModules({ inspect: { filePath: this.filePath } });
+ this.load(content);
+ }
+ load(content) {
+ if (typeof content !== "string") {
+ throwContentMustBeString(typeof content);
+ }
+ this.content = content;
+ }
+ setTags(tags) {
+ this.tags = tags != null ? tags : {};
+ this.scopeManager = createScope({
+ tags: this.tags,
+ parser: this.parser,
+ cachedParsers: this.cachedParsers,
+ });
+ return this;
+ }
+ resolveTags(tags) {
+ this.tags = tags != null ? tags : {};
+ this.scopeManager = createScope({
+ tags: this.tags,
+ parser: this.parser,
+ cachedParsers: this.cachedParsers,
+ });
+ const options = this.getOptions();
+ options.scopeManager = createScope(options);
+ options.resolve = resolve;
+ return resolve(options).then(({ resolved, errors }) => {
+ errors.forEach((error) => {
+ // error properties might not be defined if some foreign
+ // (unhandled error not throw by docxtemplater willingly) is
+ // thrown.
+ error.properties = error.properties || {};
+ error.properties.file = this.filePath;
+ });
+ if (errors.length !== 0) {
+ throw errors;
+ }
+ return Promise.all(resolved).then((resolved) => {
+ this.setModules({ inspect: { resolved } });
+ return (this.resolved = resolved);
+ });
+ });
+ }
+ getFullText() {
+ return getFullText(this.content, this.fileTypeConfig.tagsXmlTextArray);
+ }
+ setModules(obj) {
+ this.modules.forEach((module) => {
+ module.set(obj);
+ });
+ }
+ preparse() {
+ this.allErrors = [];
+ this.xmllexed = Lexer.xmlparse(this.content, {
+ text: this.fileTypeConfig.tagsXmlTextArray,
+ other: this.fileTypeConfig.tagsXmlLexedArray,
+ });
+ this.setModules({ inspect: { xmllexed: this.xmllexed } });
+ const { lexed, errors: lexerErrors } = Lexer.parse(
+ this.xmllexed,
+ this.delimiters
+ );
+ this.allErrors = this.allErrors.concat(lexerErrors);
+ this.lexed = lexed;
+ this.setModules({ inspect: { lexed: this.lexed } });
+ const options = this.getOptions();
+ Parser.preparse(this.lexed, this.modules, options);
+ }
+ parse() {
+ this.setModules({ inspect: { filePath: this.filePath } });
+ const options = this.getOptions();
+ this.parsed = Parser.parse(this.lexed, this.modules, options);
+ this.setModules({ inspect: { parsed: this.parsed } });
+ const { postparsed, errors: postparsedErrors } = Parser.postparse(
+ this.parsed,
+ this.modules,
+ options
+ );
+ this.postparsed = postparsed;
+ this.setModules({ inspect: { postparsed: this.postparsed } });
+ this.allErrors = this.allErrors.concat(postparsedErrors);
+ this.errorChecker(this.allErrors);
+ return this;
+ }
+ errorChecker(errors) {
+ if (errors.length) {
+ errors.forEach((error) => {
+ // error properties might not be defined if some foreign
+ // (unhandled error not thrown by docxtemplater willingly) is
+ // thrown.
+ error.properties = error.properties || {};
+ error.properties.file = this.filePath;
+ });
+ this.modules.forEach(function (module) {
+ errors = module.errorsTransformer(errors);
+ });
+ }
+ }
+ baseNullGetter(part, sm) {
+ const value = this.modules.reduce((value, module) => {
+ if (value != null) {
+ return value;
+ }
+ return module.nullGetter(part, sm, this);
+ }, null);
+ if (value != null) {
+ return value;
+ }
+ return this.nullGetter(part, sm);
+ }
+ getOptions() {
+ return {
+ compiled: this.postparsed,
+ cachedParsers: this.cachedParsers,
+ tags: this.tags,
+ modules: this.modules,
+ parser: this.parser,
+ contentType: this.contentType,
+ baseNullGetter: this.baseNullGetter.bind(this),
+ filePath: this.filePath,
+ fileTypeConfig: this.fileTypeConfig,
+ linebreaks: this.linebreaks,
+ };
+ }
+ render(to) {
+ this.filePath = to;
+ const options = this.getOptions();
+ options.resolved = this.resolved;
+ options.scopeManager = createScope(options);
+ options.render = render;
+ options.joinUncorrupt = joinUncorrupt;
+ const { errors, parts } = render(options);
+ this.allErrors = errors;
+ this.errorChecker(errors);
+ if (errors.length > 0) {
+ return this;
+ }
+
+ this.content = postrender(parts, options);
+ this.setModules({ inspect: { content: this.content } });
+ return this;
+ }
+};
diff --git a/examples/angular-example.docx b/examples/angular-example.docx
new file mode 100644
index 0000000..29304cb
Binary files /dev/null and b/examples/angular-example.docx differ
diff --git a/examples/assignment.docx b/examples/assignment.docx
new file mode 100644
index 0000000..52c18ab
Binary files /dev/null and b/examples/assignment.docx differ
diff --git a/examples/comment-with-loop.docx b/examples/comment-with-loop.docx
new file mode 100644
index 0000000..cdc3d1e
Binary files /dev/null and b/examples/comment-with-loop.docx differ
diff --git a/examples/cyrillic.docx b/examples/cyrillic.docx
new file mode 100644
index 0000000..ae68c21
Binary files /dev/null and b/examples/cyrillic.docx differ
diff --git a/examples/delimiter-gt.docx b/examples/delimiter-gt.docx
new file mode 100644
index 0000000..83f2334
Binary files /dev/null and b/examples/delimiter-gt.docx differ
diff --git a/examples/delimiter-pct.docx b/examples/delimiter-pct.docx
new file mode 100644
index 0000000..3a7593a
Binary files /dev/null and b/examples/delimiter-pct.docx differ
diff --git a/examples/errors-footer-and-header.docx b/examples/errors-footer-and-header.docx
new file mode 100644
index 0000000..1b7e273
Binary files /dev/null and b/examples/errors-footer-and-header.docx differ
diff --git a/examples/expected-assignment.docx b/examples/expected-assignment.docx
new file mode 100644
index 0000000..ef3f707
Binary files /dev/null and b/examples/expected-assignment.docx differ
diff --git a/examples/expected-comment-example.docx b/examples/expected-comment-example.docx
new file mode 100644
index 0000000..16da14e
Binary files /dev/null and b/examples/expected-comment-example.docx differ
diff --git a/examples/expected-docm.docx b/examples/expected-docm.docx
new file mode 100644
index 0000000..806bbad
Binary files /dev/null and b/examples/expected-docm.docx differ
diff --git a/examples/expected-dotm.docx b/examples/expected-dotm.docx
new file mode 100644
index 0000000..23de59d
Binary files /dev/null and b/examples/expected-dotm.docx differ
diff --git a/examples/expected-dotx.docx b/examples/expected-dotx.docx
new file mode 100644
index 0000000..107be9a
Binary files /dev/null and b/examples/expected-dotx.docx differ
diff --git a/examples/expected-empty-table.docx b/examples/expected-empty-table.docx
new file mode 100644
index 0000000..6ae9d46
Binary files /dev/null and b/examples/expected-empty-table.docx differ
diff --git a/examples/expected-loop-example.pptx b/examples/expected-loop-example.pptx
new file mode 100644
index 0000000..8ec0efc
Binary files /dev/null and b/examples/expected-loop-example.pptx differ
diff --git a/examples/expected-loop-raw-xml.docx b/examples/expected-loop-raw-xml.docx
new file mode 100644
index 0000000..797fe34
Binary files /dev/null and b/examples/expected-loop-raw-xml.docx differ
diff --git a/examples/expected-loop-valid.docx b/examples/expected-loop-valid.docx
new file mode 100644
index 0000000..f3cfacf
Binary files /dev/null and b/examples/expected-loop-valid.docx differ
diff --git a/examples/expected-module-change-rels.docx b/examples/expected-module-change-rels.docx
new file mode 100644
index 0000000..bf3b85d
Binary files /dev/null and b/examples/expected-module-change-rels.docx differ
diff --git a/examples/expected-multi-loop.docx b/examples/expected-multi-loop.docx
new file mode 100644
index 0000000..68c3e12
Binary files /dev/null and b/examples/expected-multi-loop.docx differ
diff --git a/examples/expected-multi-section.docx b/examples/expected-multi-section.docx
new file mode 100644
index 0000000..76f79e3
Binary files /dev/null and b/examples/expected-multi-section.docx differ
diff --git a/examples/expected-multiline-indent.docx b/examples/expected-multiline-indent.docx
new file mode 100644
index 0000000..6849533
Binary files /dev/null and b/examples/expected-multiline-indent.docx differ
diff --git a/examples/expected-multiline.docx b/examples/expected-multiline.docx
new file mode 100644
index 0000000..a6b5aa3
Binary files /dev/null and b/examples/expected-multiline.docx differ
diff --git a/examples/expected-multiline.pptx b/examples/expected-multiline.pptx
new file mode 100644
index 0000000..330ecaf
Binary files /dev/null and b/examples/expected-multiline.pptx differ
diff --git a/examples/expected-no-proofstate.docx b/examples/expected-no-proofstate.docx
new file mode 100644
index 0000000..e0192ed
Binary files /dev/null and b/examples/expected-no-proofstate.docx differ
diff --git a/examples/expected-noparagraph-loop-with-pagebreak.docx b/examples/expected-noparagraph-loop-with-pagebreak.docx
new file mode 100644
index 0000000..8099e55
Binary files /dev/null and b/examples/expected-noparagraph-loop-with-pagebreak.docx differ
diff --git a/examples/expected-office365.docx b/examples/expected-office365.docx
new file mode 100644
index 0000000..bf7b13a
Binary files /dev/null and b/examples/expected-office365.docx differ
diff --git a/examples/expected-page-break-3-els-std-loop.docx b/examples/expected-page-break-3-els-std-loop.docx
new file mode 100644
index 0000000..fc57136
Binary files /dev/null and b/examples/expected-page-break-3-els-std-loop.docx differ
diff --git a/examples/expected-page-break-falsy-std-loop.docx b/examples/expected-page-break-falsy-std-loop.docx
new file mode 100644
index 0000000..be7d7ef
Binary files /dev/null and b/examples/expected-page-break-falsy-std-loop.docx differ
diff --git a/examples/expected-page-break-truthy-std-loop.docx b/examples/expected-page-break-truthy-std-loop.docx
new file mode 100644
index 0000000..47d3203
Binary files /dev/null and b/examples/expected-page-break-truthy-std-loop.docx differ
diff --git a/examples/expected-pagebreak-table-loop.docx b/examples/expected-pagebreak-table-loop.docx
new file mode 100644
index 0000000..373e8cb
Binary files /dev/null and b/examples/expected-pagebreak-table-loop.docx differ
diff --git a/examples/expected-paragraph-loop-empty-with-pagebreak.docx b/examples/expected-paragraph-loop-empty-with-pagebreak.docx
new file mode 100644
index 0000000..bea8bfe
Binary files /dev/null and b/examples/expected-paragraph-loop-empty-with-pagebreak.docx differ
diff --git a/examples/expected-paragraph-loop-with-pagebreak.docx b/examples/expected-paragraph-loop-with-pagebreak.docx
new file mode 100644
index 0000000..78b0d4c
Binary files /dev/null and b/examples/expected-paragraph-loop-with-pagebreak.docx differ
diff --git a/examples/expected-paragraph-loop.docx b/examples/expected-paragraph-loop.docx
new file mode 100644
index 0000000..b7f7fc8
Binary files /dev/null and b/examples/expected-paragraph-loop.docx differ
diff --git a/examples/expected-paragraph-loop.pptx b/examples/expected-paragraph-loop.pptx
new file mode 100644
index 0000000..cb22bbe
Binary files /dev/null and b/examples/expected-paragraph-loop.pptx differ
diff --git a/examples/expected-pptm.pptx b/examples/expected-pptm.pptx
new file mode 100644
index 0000000..64b3c31
Binary files /dev/null and b/examples/expected-pptm.pptx differ
diff --git a/examples/expected-raw-xml-example.pptx b/examples/expected-raw-xml-example.pptx
new file mode 100644
index 0000000..4debf81
Binary files /dev/null and b/examples/expected-raw-xml-example.pptx differ
diff --git a/examples/expected-raw-xml.docx b/examples/expected-raw-xml.docx
new file mode 100644
index 0000000..30a3961
Binary files /dev/null and b/examples/expected-raw-xml.docx differ
diff --git a/examples/expected-regression-complex-loops.docx b/examples/expected-regression-complex-loops.docx
new file mode 100644
index 0000000..0050517
Binary files /dev/null and b/examples/expected-regression-complex-loops.docx differ
diff --git a/examples/expected-regression-loops-resolve.docx b/examples/expected-regression-loops-resolve.docx
new file mode 100644
index 0000000..22ddfbb
Binary files /dev/null and b/examples/expected-regression-loops-resolve.docx differ
diff --git a/examples/expected-regression-multiline.pptx b/examples/expected-regression-multiline.pptx
new file mode 100644
index 0000000..db09bb5
Binary files /dev/null and b/examples/expected-regression-multiline.pptx differ
diff --git a/examples/expected-rendered-par-in-par.docx b/examples/expected-rendered-par-in-par.docx
new file mode 100644
index 0000000..2b6ad43
Binary files /dev/null and b/examples/expected-rendered-par-in-par.docx differ
diff --git a/examples/expected-sdtcontent-valid.docx b/examples/expected-sdtcontent-valid.docx
new file mode 100644
index 0000000..ef82c9e
Binary files /dev/null and b/examples/expected-sdtcontent-valid.docx differ
diff --git a/examples/expected-self-closing-w-sdtcontent.docx b/examples/expected-self-closing-w-sdtcontent.docx
new file mode 100644
index 0000000..d0c5e9c
Binary files /dev/null and b/examples/expected-self-closing-w-sdtcontent.docx differ
diff --git a/examples/expected-spacing-end.docx b/examples/expected-spacing-end.docx
new file mode 100644
index 0000000..c5a1ee9
Binary files /dev/null and b/examples/expected-spacing-end.docx differ
diff --git a/examples/expected-table-3-cells.pptx b/examples/expected-table-3-cells.pptx
new file mode 100644
index 0000000..8fdaa51
Binary files /dev/null and b/examples/expected-table-3-cells.pptx differ
diff --git a/examples/expected-table-3-true-cells.pptx b/examples/expected-table-3-true-cells.pptx
new file mode 100644
index 0000000..4cdf69f
Binary files /dev/null and b/examples/expected-table-3-true-cells.pptx differ
diff --git a/examples/expected-table-example.pptx b/examples/expected-table-example.pptx
new file mode 100644
index 0000000..69d5987
Binary files /dev/null and b/examples/expected-table-example.pptx differ
diff --git a/examples/expected-tag-docprops.docx b/examples/expected-tag-docprops.docx
new file mode 100644
index 0000000..155095a
Binary files /dev/null and b/examples/expected-tag-docprops.docx differ
diff --git a/examples/expected-tag-example.docx b/examples/expected-tag-example.docx
new file mode 100644
index 0000000..d5c582e
Binary files /dev/null and b/examples/expected-tag-example.docx differ
diff --git a/examples/expected-tag-intelligent-loop-table.docx b/examples/expected-tag-intelligent-loop-table.docx
new file mode 100644
index 0000000..cba9bf1
Binary files /dev/null and b/examples/expected-tag-intelligent-loop-table.docx differ
diff --git a/examples/expected-two-multiline.docx b/examples/expected-two-multiline.docx
new file mode 100644
index 0000000..acfe03b
Binary files /dev/null and b/examples/expected-two-multiline.docx differ
diff --git a/examples/expected-users.docx b/examples/expected-users.docx
new file mode 100644
index 0000000..ccaaf74
Binary files /dev/null and b/examples/expected-users.docx differ
diff --git a/examples/expected-with-default-contenttype.docx b/examples/expected-with-default-contenttype.docx
new file mode 100644
index 0000000..ed2c1c2
Binary files /dev/null and b/examples/expected-with-default-contenttype.docx differ
diff --git a/examples/expected-with-page-break-3-els.docx b/examples/expected-with-page-break-3-els.docx
new file mode 100644
index 0000000..557725a
Binary files /dev/null and b/examples/expected-with-page-break-3-els.docx differ
diff --git a/examples/expected-with-page-break-falsy-without-paragraph-loop.docx b/examples/expected-with-page-break-falsy-without-paragraph-loop.docx
new file mode 100644
index 0000000..832974e
Binary files /dev/null and b/examples/expected-with-page-break-falsy-without-paragraph-loop.docx differ
diff --git a/examples/expected-with-page-break-falsy.docx b/examples/expected-with-page-break-falsy.docx
new file mode 100644
index 0000000..bf808e3
Binary files /dev/null and b/examples/expected-with-page-break-falsy.docx differ
diff --git a/examples/expected-with-page-break-truthy.docx b/examples/expected-with-page-break-truthy.docx
new file mode 100644
index 0000000..d14dc59
Binary files /dev/null and b/examples/expected-with-page-break-truthy.docx differ
diff --git a/examples/input.docm b/examples/input.docm
new file mode 100644
index 0000000..155a4eb
Binary files /dev/null and b/examples/input.docm differ
diff --git a/examples/input.dotm b/examples/input.dotm
new file mode 100644
index 0000000..f4a6a5a
Binary files /dev/null and b/examples/input.dotm differ
diff --git a/examples/input.dotx b/examples/input.dotx
new file mode 100644
index 0000000..fcbe57d
Binary files /dev/null and b/examples/input.dotx differ
diff --git a/examples/input.pptm b/examples/input.pptm
new file mode 100644
index 0000000..11325bf
Binary files /dev/null and b/examples/input.pptm differ
diff --git a/examples/loop-example.pptx b/examples/loop-example.pptx
new file mode 100644
index 0000000..c20f21d
Binary files /dev/null and b/examples/loop-example.pptx differ
diff --git a/examples/loop-valid.docx b/examples/loop-valid.docx
new file mode 100644
index 0000000..917bb4b
Binary files /dev/null and b/examples/loop-valid.docx differ
diff --git a/examples/loop-with-section.docx b/examples/loop-with-section.docx
new file mode 100644
index 0000000..d682ec6
Binary files /dev/null and b/examples/loop-with-section.docx differ
diff --git a/examples/loops-with-table-raw-xml.docx b/examples/loops-with-table-raw-xml.docx
new file mode 100644
index 0000000..b84a07b
Binary files /dev/null and b/examples/loops-with-table-raw-xml.docx differ
diff --git a/examples/multi-errors.docx b/examples/multi-errors.docx
new file mode 100644
index 0000000..4c21361
Binary files /dev/null and b/examples/multi-errors.docx differ
diff --git a/examples/multi-level.docx b/examples/multi-level.docx
new file mode 100644
index 0000000..c724596
Binary files /dev/null and b/examples/multi-level.docx differ
diff --git a/examples/multi-loop.docx b/examples/multi-loop.docx
new file mode 100644
index 0000000..3be7dd9
Binary files /dev/null and b/examples/multi-loop.docx differ
diff --git a/examples/multi-page-to-merge.pptx b/examples/multi-page-to-merge.pptx
new file mode 100644
index 0000000..5b3ac85
Binary files /dev/null and b/examples/multi-page-to-merge.pptx differ
diff --git a/examples/multi-page.pptx b/examples/multi-page.pptx
new file mode 100644
index 0000000..c0594a2
Binary files /dev/null and b/examples/multi-page.pptx differ
diff --git a/examples/multi-tags.docx b/examples/multi-tags.docx
new file mode 100644
index 0000000..36146a2
Binary files /dev/null and b/examples/multi-tags.docx differ
diff --git a/examples/office365.docx b/examples/office365.docx
new file mode 100644
index 0000000..c9dcaa8
Binary files /dev/null and b/examples/office365.docx differ
diff --git a/examples/one-raw-xml-tag.docx b/examples/one-raw-xml-tag.docx
new file mode 100644
index 0000000..9fce608
Binary files /dev/null and b/examples/one-raw-xml-tag.docx differ
diff --git a/examples/page-break-inside-condition.docx b/examples/page-break-inside-condition.docx
new file mode 100644
index 0000000..49c6331
Binary files /dev/null and b/examples/page-break-inside-condition.docx differ
diff --git a/examples/pagebreak-table-loop.docx b/examples/pagebreak-table-loop.docx
new file mode 100644
index 0000000..0f925c7
Binary files /dev/null and b/examples/pagebreak-table-loop.docx differ
diff --git a/examples/paragraph-loop-error.docx b/examples/paragraph-loop-error.docx
new file mode 100644
index 0000000..f51d1c9
Binary files /dev/null and b/examples/paragraph-loop-error.docx differ
diff --git a/examples/paragraph-loop-with-pagebreak.docx b/examples/paragraph-loop-with-pagebreak.docx
new file mode 100644
index 0000000..bf544a6
Binary files /dev/null and b/examples/paragraph-loop-with-pagebreak.docx differ
diff --git a/examples/paragraph-loop.pptx b/examples/paragraph-loop.pptx
new file mode 100644
index 0000000..4f51cf3
Binary files /dev/null and b/examples/paragraph-loop.pptx differ
diff --git a/examples/paragraph-loops.docx b/examples/paragraph-loops.docx
new file mode 100644
index 0000000..6a0d8c0
Binary files /dev/null and b/examples/paragraph-loops.docx differ
diff --git a/examples/properties.docx b/examples/properties.docx
new file mode 100644
index 0000000..6594883
Binary files /dev/null and b/examples/properties.docx differ
diff --git a/examples/raw-xml-example.pptx b/examples/raw-xml-example.pptx
new file mode 100644
index 0000000..299091c
Binary files /dev/null and b/examples/raw-xml-example.pptx differ
diff --git a/examples/regression-complex-loops.docx b/examples/regression-complex-loops.docx
new file mode 100644
index 0000000..452226e
Binary files /dev/null and b/examples/regression-complex-loops.docx differ
diff --git a/examples/regression-dash-loop-in-table-cell.pptx b/examples/regression-dash-loop-in-table-cell.pptx
new file mode 100644
index 0000000..369cfe3
Binary files /dev/null and b/examples/regression-dash-loop-in-table-cell.pptx differ
diff --git a/examples/regression-loops-resolve.docx b/examples/regression-loops-resolve.docx
new file mode 100644
index 0000000..15d904c
Binary files /dev/null and b/examples/regression-loops-resolve.docx differ
diff --git a/examples/regression-par-in-par.docx b/examples/regression-par-in-par.docx
new file mode 100644
index 0000000..beff95d
Binary files /dev/null and b/examples/regression-par-in-par.docx differ
diff --git a/examples/regression-sdtcontent-paragraph.docx b/examples/regression-sdtcontent-paragraph.docx
new file mode 100644
index 0000000..fd8ba24
Binary files /dev/null and b/examples/regression-sdtcontent-paragraph.docx differ
diff --git a/examples/self-closing-w-sdtcontent.docx b/examples/self-closing-w-sdtcontent.docx
new file mode 100644
index 0000000..94a1bfb
Binary files /dev/null and b/examples/self-closing-w-sdtcontent.docx differ
diff --git a/examples/simple-example.pptx b/examples/simple-example.pptx
new file mode 100644
index 0000000..4edc441
Binary files /dev/null and b/examples/simple-example.pptx differ
diff --git a/examples/spacing-end.docx b/examples/spacing-end.docx
new file mode 100644
index 0000000..9708da2
Binary files /dev/null and b/examples/spacing-end.docx differ
diff --git a/examples/table-complex-example.docx b/examples/table-complex-example.docx
new file mode 100644
index 0000000..8aa71af
Binary files /dev/null and b/examples/table-complex-example.docx differ
diff --git a/examples/table-complex2-example.docx b/examples/table-complex2-example.docx
new file mode 100644
index 0000000..7eab74b
Binary files /dev/null and b/examples/table-complex2-example.docx differ
diff --git a/examples/table-example.pptx b/examples/table-example.pptx
new file mode 100644
index 0000000..e5ca728
Binary files /dev/null and b/examples/table-example.pptx differ
diff --git a/examples/table-loop.docx b/examples/table-loop.docx
new file mode 100644
index 0000000..1bd79a3
Binary files /dev/null and b/examples/table-loop.docx differ
diff --git a/examples/table-raw-xml.docx b/examples/table-raw-xml.docx
new file mode 100644
index 0000000..acf3fd3
Binary files /dev/null and b/examples/table-raw-xml.docx differ
diff --git a/examples/table-repeat.docx b/examples/table-repeat.docx
new file mode 100644
index 0000000..56d2fe4
Binary files /dev/null and b/examples/table-repeat.docx differ
diff --git a/examples/tag-dash-loop-list.docx b/examples/tag-dash-loop-list.docx
new file mode 100644
index 0000000..e28ee73
Binary files /dev/null and b/examples/tag-dash-loop-list.docx differ
diff --git a/examples/tag-dash-loop-table.docx b/examples/tag-dash-loop-table.docx
new file mode 100644
index 0000000..1913791
Binary files /dev/null and b/examples/tag-dash-loop-table.docx differ
diff --git a/examples/tag-dash-loop.docx b/examples/tag-dash-loop.docx
new file mode 100644
index 0000000..d7cfac1
Binary files /dev/null and b/examples/tag-dash-loop.docx differ
diff --git a/examples/tag-docprops.docx b/examples/tag-docprops.docx
new file mode 100644
index 0000000..289c97d
Binary files /dev/null and b/examples/tag-docprops.docx differ
diff --git a/examples/tag-example.docx b/examples/tag-example.docx
new file mode 100644
index 0000000..d515208
Binary files /dev/null and b/examples/tag-example.docx differ
diff --git a/examples/tag-formating.docx b/examples/tag-formating.docx
new file mode 100644
index 0000000..c36e8c9
Binary files /dev/null and b/examples/tag-formating.docx differ
diff --git a/examples/tag-intelligent-loop-table.docx b/examples/tag-intelligent-loop-table.docx
new file mode 100644
index 0000000..64145a2
Binary files /dev/null and b/examples/tag-intelligent-loop-table.docx differ
diff --git a/examples/tag-inverted-loop-example.docx b/examples/tag-inverted-loop-example.docx
new file mode 100644
index 0000000..3f238b4
Binary files /dev/null and b/examples/tag-inverted-loop-example.docx differ
diff --git a/examples/tag-loop-example.docx b/examples/tag-loop-example.docx
new file mode 100644
index 0000000..2031629
Binary files /dev/null and b/examples/tag-loop-example.docx differ
diff --git a/examples/tag-looping.docx b/examples/tag-looping.docx
new file mode 100644
index 0000000..37a00f4
Binary files /dev/null and b/examples/tag-looping.docx differ
diff --git a/examples/tag-multiline.docx b/examples/tag-multiline.docx
new file mode 100644
index 0000000..819da43
Binary files /dev/null and b/examples/tag-multiline.docx differ
diff --git a/examples/tag-multiline.pptx b/examples/tag-multiline.pptx
new file mode 100644
index 0000000..c45db2f
Binary files /dev/null and b/examples/tag-multiline.pptx differ
diff --git a/examples/tag-product-loop.docx b/examples/tag-product-loop.docx
new file mode 100644
index 0000000..bc1e69d
Binary files /dev/null and b/examples/tag-product-loop.docx differ
diff --git a/examples/test.odt b/examples/test.odt
new file mode 100644
index 0000000..cfe4fbd
Binary files /dev/null and b/examples/test.odt differ
diff --git a/examples/text-example.docx b/examples/text-example.docx
new file mode 100644
index 0000000..bf4a24f
Binary files /dev/null and b/examples/text-example.docx differ
diff --git a/examples/title-example.pptx b/examples/title-example.pptx
new file mode 100644
index 0000000..5670739
Binary files /dev/null and b/examples/title-example.pptx differ
diff --git a/examples/users.docx b/examples/users.docx
new file mode 100644
index 0000000..bfdb730
Binary files /dev/null and b/examples/users.docx differ
diff --git a/examples/with-default-contenttype.docx b/examples/with-default-contenttype.docx
new file mode 100644
index 0000000..8f1c31a
Binary files /dev/null and b/examples/with-default-contenttype.docx differ
diff --git a/examples/xml-insertion-example.docx b/examples/xml-insertion-example.docx
new file mode 100644
index 0000000..da532cb
Binary files /dev/null and b/examples/xml-insertion-example.docx differ
diff --git a/logo-small.png b/logo-small.png
new file mode 100644
index 0000000..f49cf56
Binary files /dev/null and b/logo-small.png differ
diff --git a/logo-tiny.png b/logo-tiny.png
new file mode 100644
index 0000000..b8e2c17
Binary files /dev/null and b/logo-tiny.png differ
diff --git a/logo.png b/logo.png
new file mode 100644
index 0000000..cb44768
Binary files /dev/null and b/logo.png differ
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..7f109b9
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,13388 @@
+{
+ "name": "docxtemplater",
+ "version": "3.19.6",
+ "lockfileVersion": 1,
+ "requires": true,
+ "dependencies": {
+ "@babel/cli": {
+ "version": "7.11.6",
+ "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.11.6.tgz",
+ "integrity": "sha512-+w7BZCvkewSmaRM6H4L2QM3RL90teqEIHDIFXAmrW33+0jhlymnDAEdqVeCZATvxhQuio1ifoGVlJJbIiH9Ffg==",
+ "dev": true,
+ "requires": {
+ "chokidar": "^2.1.8",
+ "commander": "^4.0.1",
+ "convert-source-map": "^1.1.0",
+ "fs-readdir-recursive": "^1.1.0",
+ "glob": "^7.0.0",
+ "lodash": "^4.17.19",
+ "make-dir": "^2.1.0",
+ "slash": "^2.0.0",
+ "source-map": "^0.5.0"
+ }
+ },
+ "@babel/code-frame": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz",
+ "integrity": "sha1-BuKrGb21NThVWaq7W6WXKUgoAPg=",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.0.0"
+ }
+ },
+ "@babel/compat-data": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.11.0.tgz",
+ "integrity": "sha512-TPSvJfv73ng0pfnEOh17bYMPQbI95+nGWc71Ss4vZdRBHTDqmM9Z8ZV4rYz8Ks7sfzc95n30k6ODIq5UGnXcYQ==",
+ "dev": true,
+ "requires": {
+ "browserslist": "^4.12.0",
+ "invariant": "^2.2.4",
+ "semver": "^5.5.0"
+ }
+ },
+ "@babel/core": {
+ "version": "7.11.6",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.11.6.tgz",
+ "integrity": "sha512-Wpcv03AGnmkgm6uS6k8iwhIwTrcP0m17TL1n1sy7qD0qelDu4XNeW0dN0mHfa+Gei211yDaLoEe/VlbXQzM4Bg==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/generator": "^7.11.6",
+ "@babel/helper-module-transforms": "^7.11.0",
+ "@babel/helpers": "^7.10.4",
+ "@babel/parser": "^7.11.5",
+ "@babel/template": "^7.10.4",
+ "@babel/traverse": "^7.11.5",
+ "@babel/types": "^7.11.5",
+ "convert-source-map": "^1.7.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.1",
+ "json5": "^2.1.2",
+ "lodash": "^4.17.19",
+ "resolve": "^1.3.2",
+ "semver": "^5.4.1",
+ "source-map": "^0.5.0"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/generator": {
+ "version": "7.11.6",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.11.6.tgz",
+ "integrity": "sha512-DWtQ1PV3r+cLbySoHrwn9RWEgKMBLLma4OBQloPRyDYvc5msJM9kvTLo1YnlJd1P/ZuKbdli3ijr5q3FvAF3uA==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.5",
+ "jsesc": "^2.5.1",
+ "source-map": "^0.5.0"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
+ "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz",
+ "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/traverse": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.11.5.tgz",
+ "integrity": "sha512-EjiPXt+r7LiCZXEfRpSJd+jUMnBd4/9OUv7Nx3+0u9+eimMwJmG0Q98lw4/289JCoxSE8OolDMNZaaF/JZ69WQ==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/generator": "^7.11.5",
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/helper-split-export-declaration": "^7.11.0",
+ "@babel/parser": "^7.11.5",
+ "@babel/types": "^7.11.5",
+ "debug": "^4.1.0",
+ "globals": "^11.1.0",
+ "lodash": "^4.17.19"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "json5": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz",
+ "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "@babel/generator": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.6.tgz",
+ "integrity": "sha512-4bpOR5ZBz+wWcMeVtcf7FbjcFzCp+817z2/gHNncIRcM9MmKzUhtWCYAq27RAfUrAFwb+OCG1s9WEaVxfi6cjg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.8.6",
+ "jsesc": "^2.5.1",
+ "lodash": "^4.17.13",
+ "source-map": "^0.5.0"
+ }
+ },
+ "@babel/helper-annotate-as-pure": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.10.4.tgz",
+ "integrity": "sha512-XQlqKQP4vXFB7BN8fEEerrmYvHp3fK/rBkRFz9jaJbzK0B1DSfej9Kc7ZzE8Z/OnId1jpJdNAZ3BFQjWG68rcA==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-builder-binary-assignment-operator-visitor": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.10.4.tgz",
+ "integrity": "sha512-L0zGlFrGWZK4PbT8AszSfLTM5sDU1+Az/En9VrdT8/LmEiJt4zXt+Jve9DCAnQcbqDhCI+29y/L93mrDzddCcg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-explode-assignable-expression": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-compilation-targets": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.10.4.tgz",
+ "integrity": "sha512-a3rYhlsGV0UHNDvrtOXBg8/OpfV0OKTkxKPzIplS1zpx7CygDcWWxckxZeDd3gzPzC4kUT0A4nVFDK0wGMh4MQ==",
+ "dev": true,
+ "requires": {
+ "@babel/compat-data": "^7.10.4",
+ "browserslist": "^4.12.0",
+ "invariant": "^2.2.4",
+ "levenary": "^1.1.1",
+ "semver": "^5.5.0"
+ }
+ },
+ "@babel/helper-create-class-features-plugin": {
+ "version": "7.10.5",
+ "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.10.5.tgz",
+ "integrity": "sha512-0nkdeijB7VlZoLT3r/mY3bUkw3T8WG/hNw+FATs/6+pG2039IJWjTYL0VTISqsNHMUTEnwbVnc89WIJX9Qed0A==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/helper-member-expression-to-functions": "^7.10.5",
+ "@babel/helper-optimise-call-expression": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-replace-supers": "^7.10.4",
+ "@babel/helper-split-export-declaration": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
+ "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz",
+ "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-create-regexp-features-plugin": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.10.4.tgz",
+ "integrity": "sha512-2/hu58IEPKeoLF45DBwx3XFqsbCXmkdAay4spVr2x0jYgRxrSNp+ePwvSsy9g6YSaNDcKIQVPXk1Ov8S2edk2g==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.10.4",
+ "@babel/helper-regex": "^7.10.4",
+ "regexpu-core": "^4.7.0"
+ }
+ },
+ "@babel/helper-define-map": {
+ "version": "7.10.5",
+ "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.10.5.tgz",
+ "integrity": "sha512-fMw4kgFB720aQFXSVaXr79pjjcW5puTCM16+rECJ/plGS+zByelE8l9nCpV1GibxTnFVmUuYG9U8wYfQHdzOEQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/types": "^7.10.5",
+ "lodash": "^4.17.19"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
+ "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-explode-assignable-expression": {
+ "version": "7.11.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.11.4.tgz",
+ "integrity": "sha512-ux9hm3zR4WV1Y3xXxXkdG/0gxF9nvI0YVmKVhvK9AfMoaQkemL3sJpXw+Xbz65azo8qJiEz2XVDUpK3KYhH3ZQ==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz",
+ "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.8.3",
+ "@babel/template": "^7.8.3",
+ "@babel/types": "^7.8.3"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz",
+ "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.8.3"
+ }
+ },
+ "@babel/helper-hoist-variables": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.10.4.tgz",
+ "integrity": "sha512-wljroF5PgCk2juF69kanHVs6vrLwIPNp6DLD+Lrl3hoQ3PpPPikaDRNFA+0t81NOoMt2DL6WW/mdU8k4k6ZzuA==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-member-expression-to-functions": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.11.0.tgz",
+ "integrity": "sha512-JbFlKHFntRV5qKw3YC0CvQnDZ4XMwgzzBbld7Ly4Mj4cbFy3KywcR8NtNctRToMWJOVvLINJv525Gd6wwVEx/Q==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-module-imports": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz",
+ "integrity": "sha512-nEQJHqYavI217oD9+s5MUBzk6x1IlvoS9WTPfgG43CbMEeStE0v+r+TucWdx8KFGowPGvyOkDT9+7DHedIDnVw==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-module-transforms": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.11.0.tgz",
+ "integrity": "sha512-02EVu8COMuTRO1TAzdMtpBPbe6aQ1w/8fePD2YgQmxZU4gpNWaL9gK3Jp7dxlkUlUCJOTaSeA+Hrm1BRQwqIhg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-imports": "^7.10.4",
+ "@babel/helper-replace-supers": "^7.10.4",
+ "@babel/helper-simple-access": "^7.10.4",
+ "@babel/helper-split-export-declaration": "^7.11.0",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.11.0",
+ "lodash": "^4.17.19"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz",
+ "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-optimise-call-expression": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.4.tgz",
+ "integrity": "sha512-n3UGKY4VXwXThEiKrgRAoVPBMqeoPgHVqiHZOanAJCG9nQUL2pLRQirUzl0ioKclHGpGqRgIOkgcIJaIWLpygg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-plugin-utils": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz",
+ "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==",
+ "dev": true
+ },
+ "@babel/helper-regex": {
+ "version": "7.10.5",
+ "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.10.5.tgz",
+ "integrity": "sha512-68kdUAzDrljqBrio7DYAEgCoJHxppJOERHOgOrDN7WjOzP0ZQ1LsSDRXcemzVZaLvjaJsJEESb6qt+znNuENDg==",
+ "dev": true,
+ "requires": {
+ "lodash": "^4.17.19"
+ }
+ },
+ "@babel/helper-remap-async-to-generator": {
+ "version": "7.11.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.11.4.tgz",
+ "integrity": "sha512-tR5vJ/vBa9wFy3m5LLv2faapJLnDFxNWff2SAYkSE4rLUdbp7CdObYFgI7wK4T/Mj4UzpjPwzR8Pzmr5m7MHGA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.10.4",
+ "@babel/helper-wrap-function": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-replace-supers": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.4.tgz",
+ "integrity": "sha512-sPxZfFXocEymYTdVK1UNmFPBN+Hv5mJkLPsYWwGBxZAxaWfFu+xqp7b6qWD0yjNuNL2VKc6L5M18tOXUP7NU0A==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-member-expression-to-functions": "^7.10.4",
+ "@babel/helper-optimise-call-expression": "^7.10.4",
+ "@babel/traverse": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/generator": {
+ "version": "7.11.6",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.11.6.tgz",
+ "integrity": "sha512-DWtQ1PV3r+cLbySoHrwn9RWEgKMBLLma4OBQloPRyDYvc5msJM9kvTLo1YnlJd1P/ZuKbdli3ijr5q3FvAF3uA==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.5",
+ "jsesc": "^2.5.1",
+ "source-map": "^0.5.0"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
+ "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz",
+ "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/traverse": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.11.5.tgz",
+ "integrity": "sha512-EjiPXt+r7LiCZXEfRpSJd+jUMnBd4/9OUv7Nx3+0u9+eimMwJmG0Q98lw4/289JCoxSE8OolDMNZaaF/JZ69WQ==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/generator": "^7.11.5",
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/helper-split-export-declaration": "^7.11.0",
+ "@babel/parser": "^7.11.5",
+ "@babel/types": "^7.11.5",
+ "debug": "^4.1.0",
+ "globals": "^11.1.0",
+ "lodash": "^4.17.19"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "@babel/helper-simple-access": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.4.tgz",
+ "integrity": "sha512-0fMy72ej/VEvF8ULmX6yb5MtHG4uH4Dbd6I/aHDb/JVg0bbivwt9Wg+h3uMvX+QSFtwr5MeItvazbrc4jtRAXw==",
+ "dev": true,
+ "requires": {
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-skip-transparent-expression-wrappers": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.11.0.tgz",
+ "integrity": "sha512-0XIdiQln4Elglgjbwo9wuJpL/K7AGCY26kmEt0+pRP0TAj4jjyNq1MjoRvikrTVqKcx4Gysxt4cXvVFXP/JO2Q==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz",
+ "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.8.3"
+ }
+ },
+ "@babel/helper-validator-identifier": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz",
+ "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==",
+ "dev": true
+ },
+ "@babel/helper-wrap-function": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.10.4.tgz",
+ "integrity": "sha512-6py45WvEF0MhiLrdxtRjKjufwLL1/ob2qDJgg5JgNdojBAZSAKnAjkyOCNug6n+OBl4VW76XjvgSFTdaMcW0Ug==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/traverse": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/generator": {
+ "version": "7.11.6",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.11.6.tgz",
+ "integrity": "sha512-DWtQ1PV3r+cLbySoHrwn9RWEgKMBLLma4OBQloPRyDYvc5msJM9kvTLo1YnlJd1P/ZuKbdli3ijr5q3FvAF3uA==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.5",
+ "jsesc": "^2.5.1",
+ "source-map": "^0.5.0"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
+ "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz",
+ "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/traverse": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.11.5.tgz",
+ "integrity": "sha512-EjiPXt+r7LiCZXEfRpSJd+jUMnBd4/9OUv7Nx3+0u9+eimMwJmG0Q98lw4/289JCoxSE8OolDMNZaaF/JZ69WQ==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/generator": "^7.11.5",
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/helper-split-export-declaration": "^7.11.0",
+ "@babel/parser": "^7.11.5",
+ "@babel/types": "^7.11.5",
+ "debug": "^4.1.0",
+ "globals": "^11.1.0",
+ "lodash": "^4.17.19"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "@babel/helpers": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.4.tgz",
+ "integrity": "sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA==",
+ "dev": true,
+ "requires": {
+ "@babel/template": "^7.10.4",
+ "@babel/traverse": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/generator": {
+ "version": "7.11.6",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.11.6.tgz",
+ "integrity": "sha512-DWtQ1PV3r+cLbySoHrwn9RWEgKMBLLma4OBQloPRyDYvc5msJM9kvTLo1YnlJd1P/ZuKbdli3ijr5q3FvAF3uA==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.5",
+ "jsesc": "^2.5.1",
+ "source-map": "^0.5.0"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
+ "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz",
+ "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/traverse": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.11.5.tgz",
+ "integrity": "sha512-EjiPXt+r7LiCZXEfRpSJd+jUMnBd4/9OUv7Nx3+0u9+eimMwJmG0Q98lw4/289JCoxSE8OolDMNZaaF/JZ69WQ==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/generator": "^7.11.5",
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/helper-split-export-declaration": "^7.11.0",
+ "@babel/parser": "^7.11.5",
+ "@babel/types": "^7.11.5",
+ "debug": "^4.1.0",
+ "globals": "^11.1.0",
+ "lodash": "^4.17.19"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz",
+ "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.0.0",
+ "esutils": "^2.0.2",
+ "js-tokens": "^4.0.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "chalk": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz",
+ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ }
+ },
+ "js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ }
+ }
+ },
+ "@babel/parser": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz",
+ "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==",
+ "dev": true
+ },
+ "@babel/plugin-proposal-async-generator-functions": {
+ "version": "7.10.5",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.10.5.tgz",
+ "integrity": "sha512-cNMCVezQbrRGvXJwm9fu/1sJj9bHdGAgKodZdLqOQIpfoH3raqmRPBM17+lh7CzhiKRRBrGtZL9WcjxSoGYUSg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-remap-async-to-generator": "^7.10.4",
+ "@babel/plugin-syntax-async-generators": "^7.8.0"
+ }
+ },
+ "@babel/plugin-proposal-class-properties": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.10.4.tgz",
+ "integrity": "sha512-vhwkEROxzcHGNu2mzUC0OFFNXdZ4M23ib8aRRcJSsW8BZK9pQMD7QB7csl97NBbgGZO7ZyHUyKDnxzOaP4IrCg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-class-features-plugin": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-proposal-dynamic-import": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.10.4.tgz",
+ "integrity": "sha512-up6oID1LeidOOASNXgv/CFbgBqTuKJ0cJjz6An5tWD+NVBNlp3VNSBxv2ZdU7SYl3NxJC7agAQDApZusV6uFwQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.0"
+ }
+ },
+ "@babel/plugin-proposal-export-namespace-from": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.10.4.tgz",
+ "integrity": "sha512-aNdf0LY6/3WXkhh0Fdb6Zk9j1NMD8ovj3F6r0+3j837Pn1S1PdNtcwJ5EG9WkVPNHPxyJDaxMaAOVq4eki0qbg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3"
+ }
+ },
+ "@babel/plugin-proposal-json-strings": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.10.4.tgz",
+ "integrity": "sha512-fCL7QF0Jo83uy1K0P2YXrfX11tj3lkpN7l4dMv9Y9VkowkhkQDwFHFd8IiwyK5MZjE8UpbgokkgtcReH88Abaw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-syntax-json-strings": "^7.8.0"
+ }
+ },
+ "@babel/plugin-proposal-logical-assignment-operators": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.11.0.tgz",
+ "integrity": "sha512-/f8p4z+Auz0Uaf+i8Ekf1iM7wUNLcViFUGiPxKeXvxTSl63B875YPiVdUDdem7hREcI0E0kSpEhS8tF5RphK7Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"
+ }
+ },
+ "@babel/plugin-proposal-nullish-coalescing-operator": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.10.4.tgz",
+ "integrity": "sha512-wq5n1M3ZUlHl9sqT2ok1T2/MTt6AXE0e1Lz4WzWBr95LsAZ5qDXe4KnFuauYyEyLiohvXFMdbsOTMyLZs91Zlw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0"
+ }
+ },
+ "@babel/plugin-proposal-numeric-separator": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.10.4.tgz",
+ "integrity": "sha512-73/G7QoRoeNkLZFxsoCCvlg4ezE4eM+57PnOqgaPOozd5myfj7p0muD1mRVJvbUWbOzD+q3No2bWbaKy+DJ8DA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4"
+ }
+ },
+ "@babel/plugin-proposal-object-rest-spread": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.11.0.tgz",
+ "integrity": "sha512-wzch41N4yztwoRw0ak+37wxwJM2oiIiy6huGCoqkvSTA9acYWcPfn9Y4aJqmFFJ70KTJUu29f3DQ43uJ9HXzEA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.0",
+ "@babel/plugin-transform-parameters": "^7.10.4"
+ }
+ },
+ "@babel/plugin-proposal-optional-catch-binding": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.10.4.tgz",
+ "integrity": "sha512-LflT6nPh+GK2MnFiKDyLiqSqVHkQnVf7hdoAvyTnnKj9xB3docGRsdPuxp6qqqW19ifK3xgc9U5/FwrSaCNX5g==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.0"
+ }
+ },
+ "@babel/plugin-proposal-optional-chaining": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.11.0.tgz",
+ "integrity": "sha512-v9fZIu3Y8562RRwhm1BbMRxtqZNFmFA2EG+pT2diuU8PT3H6T/KXoZ54KgYisfOFZHV6PfvAiBIZ9Rcz+/JCxA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.11.0",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.0"
+ }
+ },
+ "@babel/plugin-proposal-private-methods": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.10.4.tgz",
+ "integrity": "sha512-wh5GJleuI8k3emgTg5KkJK6kHNsGEr0uBTDBuQUBJwckk9xs1ez79ioheEVVxMLyPscB0LfkbVHslQqIzWV6Bw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-class-features-plugin": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-proposal-unicode-property-regex": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.10.4.tgz",
+ "integrity": "sha512-H+3fOgPnEXFL9zGYtKQe4IDOPKYlZdF1kqFDQRRb8PK4B8af1vAGK04tF5iQAAsui+mHNBQSAtd2/ndEDe9wuA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-syntax-async-generators": {
+ "version": "7.8.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
+ "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-class-properties": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.10.4.tgz",
+ "integrity": "sha512-GCSBF7iUle6rNugfURwNmCGG3Z/2+opxAMLs1nND4bhEG5PuxTIggDBoeYYSujAlLtsupzOHYJQgPS3pivwXIA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-syntax-dynamic-import": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz",
+ "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-export-namespace-from": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz",
+ "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
+ },
+ "@babel/plugin-syntax-json-strings": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",
+ "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-logical-assignment-operators": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz",
+ "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-syntax-nullish-coalescing-operator": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
+ "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-numeric-separator": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz",
+ "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-syntax-object-rest-spread": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",
+ "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-optional-catch-binding": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",
+ "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-optional-chaining": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",
+ "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-top-level-await": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.10.4.tgz",
+ "integrity": "sha512-ni1brg4lXEmWyafKr0ccFWkJG0CeMt4WV1oyeBW6EFObF4oOHclbkj5cARxAPQyAQ2UTuplJyK4nfkXIMMFvsQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-arrow-functions": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.10.4.tgz",
+ "integrity": "sha512-9J/oD1jV0ZCBcgnoFWFq1vJd4msoKb/TCpGNFyyLt0zABdcvgK3aYikZ8HjzB14c26bc7E3Q1yugpwGy2aTPNA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-async-to-generator": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.10.4.tgz",
+ "integrity": "sha512-F6nREOan7J5UXTLsDsZG3DXmZSVofr2tGNwfdrVwkDWHfQckbQXnXSPfD7iO+c/2HGqycwyLST3DnZ16n+cBJQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-imports": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-remap-async-to-generator": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-block-scoped-functions": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.10.4.tgz",
+ "integrity": "sha512-WzXDarQXYYfjaV1szJvN3AD7rZgZzC1JtjJZ8dMHUyiK8mxPRahynp14zzNjU3VkPqPsO38CzxiWO1c9ARZ8JA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-block-scoping": {
+ "version": "7.11.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.11.1.tgz",
+ "integrity": "sha512-00dYeDE0EVEHuuM+26+0w/SCL0BH2Qy7LwHuI4Hi4MH5gkC8/AqMN5uWFJIsoXZrAphiMm1iXzBw6L2T+eA0ew==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-classes": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.10.4.tgz",
+ "integrity": "sha512-2oZ9qLjt161dn1ZE0Ms66xBncQH4In8Sqw1YWgBUZuGVJJS5c0OFZXL6dP2MRHrkU/eKhWg8CzFJhRQl50rQxA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.10.4",
+ "@babel/helper-define-map": "^7.10.4",
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/helper-optimise-call-expression": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-replace-supers": "^7.10.4",
+ "@babel/helper-split-export-declaration": "^7.10.4",
+ "globals": "^11.1.0"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
+ "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz",
+ "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.11.0"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/plugin-transform-computed-properties": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.10.4.tgz",
+ "integrity": "sha512-JFwVDXcP/hM/TbyzGq3l/XWGut7p46Z3QvqFMXTfk6/09m7xZHJUN9xHfsv7vqqD4YnfI5ueYdSJtXqqBLyjBw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-destructuring": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.10.4.tgz",
+ "integrity": "sha512-+WmfvyfsyF603iPa6825mq6Qrb7uLjTOsa3XOFzlYcYDHSS4QmpOWOL0NNBY5qMbvrcf3tq0Cw+v4lxswOBpgA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-dotall-regex": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.10.4.tgz",
+ "integrity": "sha512-ZEAVvUTCMlMFAbASYSVQoxIbHm2OkG2MseW6bV2JjIygOjdVv8tuxrCTzj1+Rynh7ODb8GivUy7dzEXzEhuPaA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-duplicate-keys": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.10.4.tgz",
+ "integrity": "sha512-GL0/fJnmgMclHiBTTWXNlYjYsA7rDrtsazHG6mglaGSTh0KsrW04qml+Bbz9FL0LcJIRwBWL5ZqlNHKTkU3xAA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-exponentiation-operator": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.10.4.tgz",
+ "integrity": "sha512-S5HgLVgkBcRdyQAHbKj+7KyuWx8C6t5oETmUuwz1pt3WTWJhsUV0WIIXuVvfXMxl/QQyHKlSCNNtaIamG8fysw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-builder-binary-assignment-operator-visitor": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-for-of": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.10.4.tgz",
+ "integrity": "sha512-ItdQfAzu9AlEqmusA/65TqJ79eRcgGmpPPFvBnGILXZH975G0LNjP1yjHvGgfuCxqrPPueXOPe+FsvxmxKiHHQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.10.4.tgz",
+ "integrity": "sha512-OcDCq2y5+E0dVD5MagT5X+yTRbcvFjDI2ZVAottGH6tzqjx/LKpgkUepu3hp/u4tZBzxxpNGwLsAvGBvQ2mJzg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-function-name": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
+ "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
+ "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/template": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
+ "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "@babel/parser": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz",
+ "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==",
+ "dev": true
+ },
+ "@babel/template": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
+ "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/parser": "^7.10.4",
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/plugin-transform-literals": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.10.4.tgz",
+ "integrity": "sha512-Xd/dFSTEVuUWnyZiMu76/InZxLTYilOSr1UlHV+p115Z/Le2Fi1KXkJUYz0b42DfndostYlPub3m8ZTQlMaiqQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-member-expression-literals": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.10.4.tgz",
+ "integrity": "sha512-0bFOvPyAoTBhtcJLr9VcwZqKmSjFml1iVxvPL0ReomGU53CX53HsM4h2SzckNdkQcHox1bpAqzxBI1Y09LlBSw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-modules-amd": {
+ "version": "7.10.5",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.10.5.tgz",
+ "integrity": "sha512-elm5uruNio7CTLFItVC/rIzKLfQ17+fX7EVz5W0TMgIHFo1zY0Ozzx+lgwhL4plzl8OzVn6Qasx5DeEFyoNiRw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-transforms": "^7.10.5",
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ }
+ },
+ "@babel/plugin-transform-modules-commonjs": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.10.4.tgz",
+ "integrity": "sha512-Xj7Uq5o80HDLlW64rVfDBhao6OX89HKUmb+9vWYaLXBZOma4gA6tw4Ni1O5qVDoZWUV0fxMYA0aYzOawz0l+1w==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-transforms": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-simple-access": "^7.10.4",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ }
+ },
+ "@babel/plugin-transform-modules-systemjs": {
+ "version": "7.10.5",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.10.5.tgz",
+ "integrity": "sha512-f4RLO/OL14/FP1AEbcsWMzpbUz6tssRaeQg11RH1BP/XnPpRoVwgeYViMFacnkaw4k4wjRSjn3ip1Uw9TaXuMw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-hoist-variables": "^7.10.4",
+ "@babel/helper-module-transforms": "^7.10.5",
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ }
+ },
+ "@babel/plugin-transform-modules-umd": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.10.4.tgz",
+ "integrity": "sha512-mohW5q3uAEt8T45YT7Qc5ws6mWgJAaL/8BfWD9Dodo1A3RKWli8wTS+WiQ/knF+tXlPirW/1/MqzzGfCExKECA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-transforms": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-named-capturing-groups-regex": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.10.4.tgz",
+ "integrity": "sha512-V6LuOnD31kTkxQPhKiVYzYC/Jgdq53irJC/xBSmqcNcqFGV+PER4l6rU5SH2Vl7bH9mLDHcc0+l9HUOe4RNGKA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-new-target": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.10.4.tgz",
+ "integrity": "sha512-YXwWUDAH/J6dlfwqlWsztI2Puz1NtUAubXhOPLQ5gjR/qmQ5U96DY4FQO8At33JN4XPBhrjB8I4eMmLROjjLjw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-object-super": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.10.4.tgz",
+ "integrity": "sha512-5iTw0JkdRdJvr7sY0vHqTpnruUpTea32JHmq/atIWqsnNussbRzjEDyWep8UNztt1B5IusBYg8Irb0bLbiEBCQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-replace-supers": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-parameters": {
+ "version": "7.10.5",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.10.5.tgz",
+ "integrity": "sha512-xPHwUj5RdFV8l1wuYiu5S9fqWGM2DrYc24TMvUiRrPVm+SM3XeqU9BcokQX/kEUe+p2RBwy+yoiR1w/Blq6ubw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "dependencies": {
+ "@babel/helper-get-function-arity": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
+ "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.10.4"
+ }
+ },
+ "@babel/types": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.0.tgz",
+ "integrity": "sha512-O53yME4ZZI0jO1EVGtF1ePGl0LHirG4P1ibcD80XyzZcKhcMFeCXmh4Xb1ifGBIV233Qg12x4rBfQgA+tmOukA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/plugin-transform-property-literals": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.10.4.tgz",
+ "integrity": "sha512-ofsAcKiUxQ8TY4sScgsGeR2vJIsfrzqvFb9GvJ5UdXDzl+MyYCaBj/FGzXuv7qE0aJcjWMILny1epqelnFlz8g==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-regenerator": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.10.4.tgz",
+ "integrity": "sha512-3thAHwtor39A7C04XucbMg17RcZ3Qppfxr22wYzZNcVIkPHfpM9J0SO8zuCV6SZa265kxBJSrfKTvDCYqBFXGw==",
+ "dev": true,
+ "requires": {
+ "regenerator-transform": "^0.14.2"
+ }
+ },
+ "@babel/plugin-transform-reserved-words": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.10.4.tgz",
+ "integrity": "sha512-hGsw1O6Rew1fkFbDImZIEqA8GoidwTAilwCyWqLBM9f+e/u/sQMQu7uX6dyokfOayRuuVfKOW4O7HvaBWM+JlQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-shorthand-properties": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.10.4.tgz",
+ "integrity": "sha512-AC2K/t7o07KeTIxMoHneyX90v3zkm5cjHJEokrPEAGEy3UCp8sLKfnfOIGdZ194fyN4wfX/zZUWT9trJZ0qc+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-spread": {
+ "version": "7.11.0",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.11.0.tgz",
+ "integrity": "sha512-UwQYGOqIdQJe4aWNyS7noqAnN2VbaczPLiEtln+zPowRNlD+79w3oi2TWfYe0eZgd+gjZCbsydN7lzWysDt+gw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.11.0"
+ }
+ },
+ "@babel/plugin-transform-sticky-regex": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.10.4.tgz",
+ "integrity": "sha512-Ddy3QZfIbEV0VYcVtFDCjeE4xwVTJWTmUtorAJkn6u/92Z/nWJNV+mILyqHKrUxXYKA2EoCilgoPePymKL4DvQ==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/helper-regex": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-template-literals": {
+ "version": "7.10.5",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.10.5.tgz",
+ "integrity": "sha512-V/lnPGIb+KT12OQikDvgSuesRX14ck5FfJXt6+tXhdkJ+Vsd0lDCVtF6jcB4rNClYFzaB2jusZ+lNISDk2mMMw==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-typeof-symbol": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.10.4.tgz",
+ "integrity": "sha512-QqNgYwuuW0y0H+kUE/GWSR45t/ccRhe14Fs/4ZRouNNQsyd4o3PG4OtHiIrepbM2WKUBDAXKCAK/Lk4VhzTaGA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-unicode-escapes": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.10.4.tgz",
+ "integrity": "sha512-y5XJ9waMti2J+e7ij20e+aH+fho7Wb7W8rNuu72aKRwCHFqQdhkdU2lo3uZ9tQuboEJcUFayXdARhcxLQ3+6Fg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-transform-unicode-regex": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.10.4.tgz",
+ "integrity": "sha512-wNfsc4s8N2qnIwpO/WP2ZiSyjfpTamT2C9V9FDH/Ljub9zw6P3SjkXcFmc0RQUt96k2fmIvtla2MMjgTwIAC+A==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/preset-env": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.11.5.tgz",
+ "integrity": "sha512-kXqmW1jVcnB2cdueV+fyBM8estd5mlNfaQi6lwLgRwCby4edpavgbFhiBNjmWA3JpB/yZGSISa7Srf+TwxDQoA==",
+ "dev": true,
+ "requires": {
+ "@babel/compat-data": "^7.11.0",
+ "@babel/helper-compilation-targets": "^7.10.4",
+ "@babel/helper-module-imports": "^7.10.4",
+ "@babel/helper-plugin-utils": "^7.10.4",
+ "@babel/plugin-proposal-async-generator-functions": "^7.10.4",
+ "@babel/plugin-proposal-class-properties": "^7.10.4",
+ "@babel/plugin-proposal-dynamic-import": "^7.10.4",
+ "@babel/plugin-proposal-export-namespace-from": "^7.10.4",
+ "@babel/plugin-proposal-json-strings": "^7.10.4",
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.11.0",
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
+ "@babel/plugin-proposal-numeric-separator": "^7.10.4",
+ "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
+ "@babel/plugin-proposal-optional-catch-binding": "^7.10.4",
+ "@babel/plugin-proposal-optional-chaining": "^7.11.0",
+ "@babel/plugin-proposal-private-methods": "^7.10.4",
+ "@babel/plugin-proposal-unicode-property-regex": "^7.10.4",
+ "@babel/plugin-syntax-async-generators": "^7.8.0",
+ "@babel/plugin-syntax-class-properties": "^7.10.4",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.0",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
+ "@babel/plugin-syntax-json-strings": "^7.8.0",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.0",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.0",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.0",
+ "@babel/plugin-syntax-top-level-await": "^7.10.4",
+ "@babel/plugin-transform-arrow-functions": "^7.10.4",
+ "@babel/plugin-transform-async-to-generator": "^7.10.4",
+ "@babel/plugin-transform-block-scoped-functions": "^7.10.4",
+ "@babel/plugin-transform-block-scoping": "^7.10.4",
+ "@babel/plugin-transform-classes": "^7.10.4",
+ "@babel/plugin-transform-computed-properties": "^7.10.4",
+ "@babel/plugin-transform-destructuring": "^7.10.4",
+ "@babel/plugin-transform-dotall-regex": "^7.10.4",
+ "@babel/plugin-transform-duplicate-keys": "^7.10.4",
+ "@babel/plugin-transform-exponentiation-operator": "^7.10.4",
+ "@babel/plugin-transform-for-of": "^7.10.4",
+ "@babel/plugin-transform-function-name": "^7.10.4",
+ "@babel/plugin-transform-literals": "^7.10.4",
+ "@babel/plugin-transform-member-expression-literals": "^7.10.4",
+ "@babel/plugin-transform-modules-amd": "^7.10.4",
+ "@babel/plugin-transform-modules-commonjs": "^7.10.4",
+ "@babel/plugin-transform-modules-systemjs": "^7.10.4",
+ "@babel/plugin-transform-modules-umd": "^7.10.4",
+ "@babel/plugin-transform-named-capturing-groups-regex": "^7.10.4",
+ "@babel/plugin-transform-new-target": "^7.10.4",
+ "@babel/plugin-transform-object-super": "^7.10.4",
+ "@babel/plugin-transform-parameters": "^7.10.4",
+ "@babel/plugin-transform-property-literals": "^7.10.4",
+ "@babel/plugin-transform-regenerator": "^7.10.4",
+ "@babel/plugin-transform-reserved-words": "^7.10.4",
+ "@babel/plugin-transform-shorthand-properties": "^7.10.4",
+ "@babel/plugin-transform-spread": "^7.11.0",
+ "@babel/plugin-transform-sticky-regex": "^7.10.4",
+ "@babel/plugin-transform-template-literals": "^7.10.4",
+ "@babel/plugin-transform-typeof-symbol": "^7.10.4",
+ "@babel/plugin-transform-unicode-escapes": "^7.10.4",
+ "@babel/plugin-transform-unicode-regex": "^7.10.4",
+ "@babel/preset-modules": "^0.1.3",
+ "@babel/types": "^7.11.5",
+ "browserslist": "^4.12.0",
+ "core-js-compat": "^3.6.2",
+ "invariant": "^2.2.2",
+ "levenary": "^1.1.1",
+ "semver": "^5.5.0"
+ },
+ "dependencies": {
+ "@babel/types": {
+ "version": "7.11.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",
+ "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.10.4",
+ "lodash": "^4.17.19",
+ "to-fast-properties": "^2.0.0"
+ }
+ }
+ }
+ },
+ "@babel/preset-modules": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz",
+ "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.0.0",
+ "@babel/plugin-proposal-unicode-property-regex": "^7.4.4",
+ "@babel/plugin-transform-dotall-regex": "^7.4.4",
+ "@babel/types": "^7.4.4",
+ "esutils": "^2.0.2"
+ }
+ },
+ "@babel/runtime": {
+ "version": "7.11.2",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.11.2.tgz",
+ "integrity": "sha512-TeWkU52so0mPtDcaCTxNBI/IHiz0pZgr8VEFqXFtZWpYD08ZB6FaSwVAS8MKRQAP3bYKiVjwysOJgMFY28o6Tw==",
+ "dev": true,
+ "requires": {
+ "regenerator-runtime": "^0.13.4"
+ }
+ },
+ "@babel/template": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz",
+ "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.8.3",
+ "@babel/parser": "^7.8.6",
+ "@babel/types": "^7.8.6"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz",
+ "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.8.3"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz",
+ "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.0.0",
+ "esutils": "^2.0.2",
+ "js-tokens": "^4.0.0"
+ }
+ }
+ }
+ },
+ "@babel/traverse": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.6.tgz",
+ "integrity": "sha512-2B8l0db/DPi8iinITKuo7cbPznLCEk0kCxDoB9/N6gGNg/gxOXiR/IcymAFPiBwk5w6TtQ27w4wpElgp9btR9A==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.8.3",
+ "@babel/generator": "^7.8.6",
+ "@babel/helper-function-name": "^7.8.3",
+ "@babel/helper-split-export-declaration": "^7.8.3",
+ "@babel/parser": "^7.8.6",
+ "@babel/types": "^7.8.6",
+ "debug": "^4.1.0",
+ "globals": "^11.1.0",
+ "lodash": "^4.17.13"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz",
+ "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.8.3"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz",
+ "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.0.0",
+ "esutils": "^2.0.2",
+ "js-tokens": "^4.0.0"
+ }
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "@babel/types": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz",
+ "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==",
+ "dev": true,
+ "requires": {
+ "esutils": "^2.0.2",
+ "lodash": "^4.17.13",
+ "to-fast-properties": "^2.0.0"
+ }
+ },
+ "@eslint/eslintrc": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.1.3.tgz",
+ "integrity": "sha512-4YVwPkANLeNtRjMekzux1ci8hIaH5eGKktGqR0d3LWsKNn5B2X/1Z6Trxy7jQXl9EBGE6Yj02O+t09FMeRllaA==",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.12.4",
+ "debug": "^4.1.1",
+ "espree": "^7.3.0",
+ "globals": "^12.1.0",
+ "ignore": "^4.0.6",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^3.13.1",
+ "lodash": "^4.17.19",
+ "minimatch": "^3.0.4",
+ "strip-json-comments": "^3.1.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "globals": {
+ "version": "12.4.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz",
+ "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==",
+ "dev": true,
+ "requires": {
+ "type-fest": "^0.8.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "@istanbuljs/load-nyc-config": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",
+ "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.3.1",
+ "find-up": "^4.1.0",
+ "get-package-type": "^0.1.0",
+ "js-yaml": "^3.13.1",
+ "resolve-from": "^5.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ },
+ "resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+ "dev": true
+ }
+ }
+ },
+ "@istanbuljs/schema": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz",
+ "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==",
+ "dev": true
+ },
+ "@nodelib/fs.scandir": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz",
+ "integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==",
+ "dev": true,
+ "requires": {
+ "@nodelib/fs.stat": "2.0.3",
+ "run-parallel": "^1.1.9"
+ }
+ },
+ "@nodelib/fs.stat": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz",
+ "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==",
+ "dev": true
+ },
+ "@nodelib/fs.walk": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz",
+ "integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==",
+ "dev": true,
+ "requires": {
+ "@nodelib/fs.scandir": "2.1.3",
+ "fastq": "^1.6.0"
+ }
+ },
+ "@sindresorhus/is": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-3.1.2.tgz",
+ "integrity": "sha512-JiX9vxoKMmu8Y3Zr2RVathBL1Cdu4Nt4MuNWemt1Nc06A0RAin9c5FArkhGsyMBWfCu4zj+9b+GxtjAnE4qqLQ==",
+ "dev": true
+ },
+ "@szmarczak/http-timer": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.5.tgz",
+ "integrity": "sha512-PyRA9sm1Yayuj5OIoJ1hGt2YISX45w9WcFbh6ddT0Z/0yaFxOtGLInr4jUfU1EAFVs0Yfyfev4RNwBlUaHdlDQ==",
+ "dev": true,
+ "requires": {
+ "defer-to-connect": "^2.0.0"
+ }
+ },
+ "@types/cacheable-request": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.1.tgz",
+ "integrity": "sha512-ykFq2zmBGOCbpIXtoVbz4SKY5QriWPh3AjyU4G74RYbtt5yOc5OfaY75ftjg7mikMOla1CTGpX3lLbuJh8DTrQ==",
+ "dev": true,
+ "requires": {
+ "@types/http-cache-semantics": "*",
+ "@types/keyv": "*",
+ "@types/node": "*",
+ "@types/responselike": "*"
+ }
+ },
+ "@types/color-name": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
+ "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==",
+ "dev": true
+ },
+ "@types/http-cache-semantics": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.0.tgz",
+ "integrity": "sha512-c3Xy026kOF7QOTn00hbIllV1dLR9hG9NkSrLQgCVs8NF6sBU+VGWjD3wLPhmh1TYAc7ugCFsvHYMN4VcBN1U1A==",
+ "dev": true
+ },
+ "@types/json5": {
+ "version": "0.0.29",
+ "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
+ "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=",
+ "dev": true
+ },
+ "@types/keyv": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.1.tgz",
+ "integrity": "sha512-MPtoySlAZQ37VoLaPcTHCu1RWJ4llDkULYZIzOYxlhxBqYPB0RsRlmMU0R6tahtFe27mIdkHV+551ZWV4PLmVw==",
+ "dev": true,
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@types/minimist": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz",
+ "integrity": "sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=",
+ "dev": true
+ },
+ "@types/node": {
+ "version": "14.10.1",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.10.1.tgz",
+ "integrity": "sha512-aYNbO+FZ/3KGeQCEkNhHFRIzBOUgc7QvcVNKXbfnhDkSfwUv91JsQQa10rDgKSTSLkXZ1UIyPe4FJJNVgw1xWQ==",
+ "dev": true
+ },
+ "@types/normalize-package-data": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
+ "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==",
+ "dev": true
+ },
+ "@types/puppeteer": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/puppeteer/-/puppeteer-3.0.2.tgz",
+ "integrity": "sha512-JRuHPSbHZBadOxxFwpyZPeRlpPTTeMbQneMdpFd8LXdyNfFSiX950CGewdm69g/ipzEAXAmMyFF1WOWJOL/nKw==",
+ "dev": true,
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@types/responselike": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz",
+ "integrity": "sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==",
+ "dev": true,
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@types/yauzl": {
+ "version": "2.9.1",
+ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
+ "integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0rOrcd9EjA==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@wdio/cli": {
+ "version": "6.4.7",
+ "resolved": "https://registry.npmjs.org/@wdio/cli/-/cli-6.4.7.tgz",
+ "integrity": "sha512-ujs2PyOtvQRWi1e99yziGXL8XglHFyfbGdmBvddT4ZDdG+L/soymN8NPTpkKjppO6EeRl+0PkOwzTo8DWXQZCg==",
+ "dev": true,
+ "requires": {
+ "@wdio/config": "6.4.7",
+ "@wdio/logger": "6.4.7",
+ "@wdio/utils": "6.4.7",
+ "async-exit-hook": "^2.0.1",
+ "chalk": "^4.0.0",
+ "chokidar": "^3.0.0",
+ "cli-spinners": "^2.1.0",
+ "ejs": "^3.0.1",
+ "fs-extra": "^9.0.0",
+ "inquirer": "^7.0.0",
+ "lodash.flattendeep": "^4.4.0",
+ "lodash.pickby": "^4.6.0",
+ "lodash.union": "^4.6.0",
+ "mkdirp": "^1.0.4",
+ "recursive-readdir": "^2.2.2",
+ "webdriverio": "6.4.7",
+ "yargs": "^15.0.1",
+ "yarn-install": "^1.0.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "anymatch": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz",
+ "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==",
+ "dev": true,
+ "requires": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ }
+ },
+ "binary-extensions": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz",
+ "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==",
+ "dev": true
+ },
+ "braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "dev": true,
+ "requires": {
+ "fill-range": "^7.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
+ "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "chokidar": {
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.2.tgz",
+ "integrity": "sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==",
+ "dev": true,
+ "requires": {
+ "anymatch": "~3.1.1",
+ "braces": "~3.0.2",
+ "fsevents": "~2.1.2",
+ "glob-parent": "~5.1.0",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.4.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dev": true,
+ "requires": {
+ "to-regex-range": "^5.0.1"
+ }
+ },
+ "fsevents": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz",
+ "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==",
+ "dev": true,
+ "optional": true
+ },
+ "glob-parent": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
+ "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
+ "dev": true,
+ "requires": {
+ "is-glob": "^4.0.1"
+ }
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "requires": {
+ "binary-extensions": "^2.0.0"
+ }
+ },
+ "is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true
+ },
+ "readdirp": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz",
+ "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==",
+ "dev": true,
+ "requires": {
+ "picomatch": "^2.2.1"
+ }
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ },
+ "to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "requires": {
+ "is-number": "^7.0.0"
+ }
+ }
+ }
+ },
+ "@wdio/config": {
+ "version": "6.4.7",
+ "resolved": "https://registry.npmjs.org/@wdio/config/-/config-6.4.7.tgz",
+ "integrity": "sha512-wtcj9yKm5+SivwhsgpusBrFR7a3rpDsN/WH6ekoqlZFs7oCpJeTLwawWnoX6MJQy2no5o00lGxDDJnqjaBdiiQ==",
+ "dev": true,
+ "requires": {
+ "@wdio/logger": "6.4.7",
+ "deepmerge": "^4.0.0",
+ "glob": "^7.1.2"
+ }
+ },
+ "@wdio/logger": {
+ "version": "6.4.7",
+ "resolved": "https://registry.npmjs.org/@wdio/logger/-/logger-6.4.7.tgz",
+ "integrity": "sha512-Mm/rsRa/1u/l8/IrNKM2c9tkvLE90i83d3KZ0Ujh4cicYJv+lNi9whsCi+p3QNFCo64nJ6bfC+0Ho5VgD3MiKw==",
+ "dev": true,
+ "requires": {
+ "chalk": "^4.0.0",
+ "loglevel": "^1.6.0",
+ "loglevel-plugin-prefix": "^0.8.4",
+ "strip-ansi": "^6.0.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
+ "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "@wdio/protocols": {
+ "version": "6.3.6",
+ "resolved": "https://registry.npmjs.org/@wdio/protocols/-/protocols-6.3.6.tgz",
+ "integrity": "sha512-cocBRkv5sYUBxXResuxskQhIkKgDgE/yAtgMGR5wXLrtG/sMpZ2HVy6LOcOeARidAaRwbav80M2ZHjTCjPn53w==",
+ "dev": true
+ },
+ "@wdio/repl": {
+ "version": "6.4.7",
+ "resolved": "https://registry.npmjs.org/@wdio/repl/-/repl-6.4.7.tgz",
+ "integrity": "sha512-jU8wAGPkQg6IlkSX6n7Quwc1/f8cOMv1PkRg7+twdyJtHkEmVeCFJcF/2f1LMRlfDfwUQPBS7XEOLMlZUsXWkg==",
+ "dev": true,
+ "requires": {
+ "@wdio/utils": "6.4.7"
+ }
+ },
+ "@wdio/utils": {
+ "version": "6.4.7",
+ "resolved": "https://registry.npmjs.org/@wdio/utils/-/utils-6.4.7.tgz",
+ "integrity": "sha512-zsDMhLSNReC9ZzQNuEak8sAlEbPyjI6FYLKdX/0vIZ5opgfdaPmTg4j2Y6g7PVg6heQMvP3Ecszdexnmm7UFRQ==",
+ "dev": true,
+ "requires": {
+ "@wdio/logger": "6.4.7"
+ }
+ },
+ "@webassemblyjs/ast": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz",
+ "integrity": "sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/helper-module-context": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/wast-parser": "1.9.0"
+ }
+ },
+ "@webassemblyjs/floating-point-hex-parser": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz",
+ "integrity": "sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==",
+ "dev": true
+ },
+ "@webassemblyjs/helper-api-error": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz",
+ "integrity": "sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==",
+ "dev": true
+ },
+ "@webassemblyjs/helper-buffer": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz",
+ "integrity": "sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==",
+ "dev": true
+ },
+ "@webassemblyjs/helper-code-frame": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz",
+ "integrity": "sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/wast-printer": "1.9.0"
+ }
+ },
+ "@webassemblyjs/helper-fsm": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz",
+ "integrity": "sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==",
+ "dev": true
+ },
+ "@webassemblyjs/helper-module-context": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz",
+ "integrity": "sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0"
+ }
+ },
+ "@webassemblyjs/helper-wasm-bytecode": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz",
+ "integrity": "sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==",
+ "dev": true
+ },
+ "@webassemblyjs/helper-wasm-section": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz",
+ "integrity": "sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0"
+ }
+ },
+ "@webassemblyjs/ieee754": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz",
+ "integrity": "sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==",
+ "dev": true,
+ "requires": {
+ "@xtuc/ieee754": "^1.2.0"
+ }
+ },
+ "@webassemblyjs/leb128": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.9.0.tgz",
+ "integrity": "sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==",
+ "dev": true,
+ "requires": {
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "@webassemblyjs/utf8": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.9.0.tgz",
+ "integrity": "sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==",
+ "dev": true
+ },
+ "@webassemblyjs/wasm-edit": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz",
+ "integrity": "sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/helper-wasm-section": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0",
+ "@webassemblyjs/wasm-opt": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0",
+ "@webassemblyjs/wast-printer": "1.9.0"
+ }
+ },
+ "@webassemblyjs/wasm-gen": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz",
+ "integrity": "sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/ieee754": "1.9.0",
+ "@webassemblyjs/leb128": "1.9.0",
+ "@webassemblyjs/utf8": "1.9.0"
+ }
+ },
+ "@webassemblyjs/wasm-opt": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz",
+ "integrity": "sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0"
+ }
+ },
+ "@webassemblyjs/wasm-parser": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz",
+ "integrity": "sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-api-error": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/ieee754": "1.9.0",
+ "@webassemblyjs/leb128": "1.9.0",
+ "@webassemblyjs/utf8": "1.9.0"
+ }
+ },
+ "@webassemblyjs/wast-parser": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz",
+ "integrity": "sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/floating-point-hex-parser": "1.9.0",
+ "@webassemblyjs/helper-api-error": "1.9.0",
+ "@webassemblyjs/helper-code-frame": "1.9.0",
+ "@webassemblyjs/helper-fsm": "1.9.0",
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "@webassemblyjs/wast-printer": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz",
+ "integrity": "sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/wast-parser": "1.9.0",
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "@xtuc/ieee754": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
+ "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==",
+ "dev": true
+ },
+ "@xtuc/long": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",
+ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",
+ "dev": true
+ },
+ "acorn": {
+ "version": "7.4.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz",
+ "integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==",
+ "dev": true
+ },
+ "acorn-jsx": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz",
+ "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==",
+ "dev": true
+ },
+ "agent-base": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz",
+ "integrity": "sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==",
+ "dev": true
+ },
+ "aggregate-error": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz",
+ "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==",
+ "dev": true,
+ "requires": {
+ "clean-stack": "^2.0.0",
+ "indent-string": "^4.0.0"
+ },
+ "dependencies": {
+ "indent-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
+ "dev": true
+ }
+ }
+ },
+ "ajv": {
+ "version": "6.12.4",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.4.tgz",
+ "integrity": "sha512-eienB2c9qVQs2KWexhkrdMLVDoIQCz5KSeLxwg9Lzk4DOfBtIK9PQwwufcsn1jjGuf9WZmqPMbGxOzfcuphJCQ==",
+ "dev": true,
+ "requires": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "dependencies": {
+ "fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true
+ }
+ }
+ },
+ "ajv-errors": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz",
+ "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==",
+ "dev": true
+ },
+ "ajv-keywords": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz",
+ "integrity": "sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==",
+ "dev": true
+ },
+ "angular-expressions": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/angular-expressions/-/angular-expressions-1.1.1.tgz",
+ "integrity": "sha512-gH9UO5r0HTmQWOfet9dC6ekWZ0hnOzCy62OUcV79XuUh0wqaLzVHcv7STWfIA5hxn39TA4mYs1EKukCsgGIvwg==",
+ "dev": true
+ },
+ "ansi-align": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz",
+ "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==",
+ "dev": true,
+ "requires": {
+ "string-width": "^3.0.0"
+ }
+ },
+ "ansi-colors": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
+ "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
+ "dev": true
+ },
+ "ansi-escapes": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz",
+ "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==",
+ "dev": true,
+ "requires": {
+ "type-fest": "^0.11.0"
+ },
+ "dependencies": {
+ "type-fest": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz",
+ "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==",
+ "dev": true
+ }
+ }
+ },
+ "ansi-regex": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
+ "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "anymatch": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz",
+ "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "micromatch": "^3.1.4",
+ "normalize-path": "^2.1.1"
+ },
+ "dependencies": {
+ "normalize-path": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz",
+ "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "remove-trailing-separator": "^1.0.1"
+ }
+ }
+ }
+ },
+ "append-transform": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz",
+ "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==",
+ "dev": true,
+ "requires": {
+ "default-require-extensions": "^3.0.0"
+ }
+ },
+ "aproba": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
+ "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
+ "dev": true
+ },
+ "archiver": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.0.2.tgz",
+ "integrity": "sha512-Tq3yV/T4wxBsD2Wign8W9VQKhaUxzzRmjEiSoOK0SLqPgDP/N1TKdYyBeIEu56T4I9iO4fKTTR0mN9NWkBA0sg==",
+ "dev": true,
+ "requires": {
+ "archiver-utils": "^2.1.0",
+ "async": "^3.2.0",
+ "buffer-crc32": "^0.2.1",
+ "readable-stream": "^3.6.0",
+ "readdir-glob": "^1.0.0",
+ "tar-stream": "^2.1.4",
+ "zip-stream": "^4.0.0"
+ },
+ "dependencies": {
+ "async": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/async/-/async-3.2.0.tgz",
+ "integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ }
+ }
+ },
+ "archiver-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz",
+ "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.4",
+ "graceful-fs": "^4.2.0",
+ "lazystream": "^1.0.0",
+ "lodash.defaults": "^4.2.0",
+ "lodash.difference": "^4.5.0",
+ "lodash.flatten": "^4.4.0",
+ "lodash.isplainobject": "^4.0.6",
+ "lodash.union": "^4.6.0",
+ "normalize-path": "^3.0.0",
+ "readable-stream": "^2.0.0"
+ },
+ "dependencies": {
+ "graceful-fs": {
+ "version": "4.2.4",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
+ "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==",
+ "dev": true
+ }
+ }
+ },
+ "archy": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz",
+ "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=",
+ "dev": true
+ },
+ "argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE=",
+ "dev": true,
+ "requires": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "arr-diff": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz",
+ "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=",
+ "dev": true
+ },
+ "arr-flatten": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz",
+ "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
+ "dev": true
+ },
+ "arr-union": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz",
+ "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=",
+ "dev": true
+ },
+ "array-includes": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.1.tgz",
+ "integrity": "sha512-c2VXaCHl7zPsvpkFsw4nxvFie4fh1ur9bpcgsVkIjqn0H/Xwdg+7fv3n2r/isyS8EBj5b06M9kHyZuIr4El6WQ==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.0",
+ "is-string": "^1.0.5"
+ }
+ },
+ "array-union": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
+ "dev": true
+ },
+ "array-unique": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz",
+ "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
+ "dev": true
+ },
+ "array.prototype.flat": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz",
+ "integrity": "sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.0-next.1"
+ }
+ },
+ "array.prototype.map": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.map/-/array.prototype.map-1.0.2.tgz",
+ "integrity": "sha512-Az3OYxgsa1g7xDYp86l0nnN4bcmuEITGe1rbdEBVkrqkzMgDcbdQ2R7r41pNzti+4NMces3H8gMmuioZUilLgw==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.0-next.1",
+ "es-array-method-boxes-properly": "^1.0.0",
+ "is-string": "^1.0.4"
+ }
+ },
+ "arrify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz",
+ "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==",
+ "dev": true
+ },
+ "asn1": {
+ "version": "0.2.4",
+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
+ "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
+ "dev": true,
+ "requires": {
+ "safer-buffer": "~2.1.0"
+ }
+ },
+ "asn1.js": {
+ "version": "4.10.1",
+ "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz",
+ "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.0.0",
+ "inherits": "^2.0.1",
+ "minimalistic-assert": "^1.0.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.11.9",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz",
+ "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
+ "dev": true
+ }
+ }
+ },
+ "assert": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz",
+ "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==",
+ "dev": true,
+ "requires": {
+ "object-assign": "^4.1.1",
+ "util": "0.10.3"
+ },
+ "dependencies": {
+ "inherits": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
+ "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=",
+ "dev": true
+ },
+ "util": {
+ "version": "0.10.3",
+ "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz",
+ "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.1"
+ }
+ }
+ }
+ },
+ "assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
+ "dev": true
+ },
+ "assertion-error": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
+ "integrity": "sha1-5gtrDo8wG9l+U3UhW9pAbIURjAs=",
+ "dev": true
+ },
+ "assign-symbols": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz",
+ "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=",
+ "dev": true
+ },
+ "astral-regex": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz",
+ "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==",
+ "dev": true
+ },
+ "async": {
+ "version": "0.9.2",
+ "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz",
+ "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=",
+ "dev": true
+ },
+ "async-each": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz",
+ "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==",
+ "dev": true,
+ "optional": true
+ },
+ "async-exit-hook": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz",
+ "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==",
+ "dev": true
+ },
+ "asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
+ "dev": true
+ },
+ "at-least-node": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
+ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
+ "dev": true
+ },
+ "atob": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
+ "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
+ "dev": true
+ },
+ "aws-sign2": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
+ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
+ "dev": true
+ },
+ "aws4": {
+ "version": "1.10.1",
+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz",
+ "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==",
+ "dev": true
+ },
+ "babel-eslint": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz",
+ "integrity": "sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.0.0",
+ "@babel/parser": "^7.7.0",
+ "@babel/traverse": "^7.7.0",
+ "@babel/types": "^7.7.0",
+ "eslint-visitor-keys": "^1.0.0",
+ "resolve": "^1.12.0"
+ }
+ },
+ "babel-loader": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.1.0.tgz",
+ "integrity": "sha512-7q7nC1tYOrqvUrN3LQK4GwSk/TQorZSOlO9C+RZDZpODgyN4ZlCqE5q9cDsyWOliN+aU9B4JX01xK9eJXowJLw==",
+ "dev": true,
+ "requires": {
+ "find-cache-dir": "^2.1.0",
+ "loader-utils": "^1.4.0",
+ "mkdirp": "^0.5.3",
+ "pify": "^4.0.1",
+ "schema-utils": "^2.6.5"
+ },
+ "dependencies": {
+ "emojis-list": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
+ "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
+ "dev": true
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
+ "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "minimist": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
+ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
+ "dev": true
+ },
+ "mkdirp": {
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz",
+ "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ },
+ "pify": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
+ "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
+ "dev": true
+ }
+ }
+ },
+ "babel-plugin-dynamic-import-node": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz",
+ "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==",
+ "dev": true,
+ "requires": {
+ "object.assign": "^4.1.0"
+ }
+ },
+ "balanced-match": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
+ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
+ "dev": true
+ },
+ "base": {
+ "version": "0.11.2",
+ "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz",
+ "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==",
+ "dev": true,
+ "requires": {
+ "cache-base": "^1.0.1",
+ "class-utils": "^0.3.5",
+ "component-emitter": "^1.2.1",
+ "define-property": "^1.0.0",
+ "isobject": "^3.0.1",
+ "mixin-deep": "^1.2.0",
+ "pascalcase": "^0.1.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
+ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^1.0.0"
+ }
+ },
+ "is-accessor-descriptor": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
+ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
+ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
+ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ }
+ }
+ }
+ },
+ "base64-js": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
+ "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==",
+ "dev": true
+ },
+ "bcrypt-pbkdf": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
+ "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
+ "dev": true,
+ "requires": {
+ "tweetnacl": "^0.14.3"
+ }
+ },
+ "big.js": {
+ "version": "5.2.2",
+ "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz",
+ "integrity": "sha1-ZfCvOC9Xi83HQr2cKB6cstd2gyg=",
+ "dev": true
+ },
+ "binary-extensions": {
+ "version": "1.13.1",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz",
+ "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==",
+ "dev": true,
+ "optional": true
+ },
+ "bindings": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
+ "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "file-uri-to-path": "1.0.0"
+ }
+ },
+ "bl": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.0.3.tgz",
+ "integrity": "sha512-fs4G6/Hu4/EE+F75J8DuN/0IpQqNjAdC7aEQv7Qt8MHGUH7Ckv2MwTEEeN9QehD0pfIDkMI1bkHYkKy7xHyKIg==",
+ "dev": true,
+ "requires": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ },
+ "dependencies": {
+ "inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ }
+ }
+ },
+ "bluebird": {
+ "version": "3.7.2",
+ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
+ "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
+ "dev": true
+ },
+ "bn.js": {
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.1.3.tgz",
+ "integrity": "sha512-GkTiFpjFtUzU9CbMeJ5iazkCzGL3jrhzerzZIuqLABjbwRaFt33I9tUdSNryIptM+RxDet6OKm2WnLXzW51KsQ==",
+ "dev": true
+ },
+ "boxen": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz",
+ "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==",
+ "dev": true,
+ "requires": {
+ "ansi-align": "^3.0.0",
+ "camelcase": "^5.3.1",
+ "chalk": "^3.0.0",
+ "cli-boxes": "^2.2.0",
+ "string-width": "^4.1.0",
+ "term-size": "^2.1.0",
+ "type-fest": "^0.8.1",
+ "widest-line": "^3.1.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
+ "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz",
+ "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=",
+ "dev": true,
+ "requires": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "braces": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz",
+ "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "brorand": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz",
+ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=",
+ "dev": true
+ },
+ "browser-stdout": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
+ "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
+ "dev": true
+ },
+ "browserify-aes": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz",
+ "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==",
+ "dev": true,
+ "requires": {
+ "buffer-xor": "^1.0.3",
+ "cipher-base": "^1.0.0",
+ "create-hash": "^1.1.0",
+ "evp_bytestokey": "^1.0.3",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "browserify-cipher": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz",
+ "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==",
+ "dev": true,
+ "requires": {
+ "browserify-aes": "^1.0.4",
+ "browserify-des": "^1.0.0",
+ "evp_bytestokey": "^1.0.0"
+ }
+ },
+ "browserify-des": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz",
+ "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==",
+ "dev": true,
+ "requires": {
+ "cipher-base": "^1.0.1",
+ "des.js": "^1.0.0",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ }
+ },
+ "browserify-rsa": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
+ "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.1.0",
+ "randombytes": "^2.0.1"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.11.9",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz",
+ "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
+ "dev": true
+ }
+ }
+ },
+ "browserify-sign": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz",
+ "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==",
+ "dev": true,
+ "requires": {
+ "bn.js": "^5.1.1",
+ "browserify-rsa": "^4.0.1",
+ "create-hash": "^1.2.0",
+ "create-hmac": "^1.1.7",
+ "elliptic": "^6.5.3",
+ "inherits": "^2.0.4",
+ "parse-asn1": "^5.1.5",
+ "readable-stream": "^3.6.0",
+ "safe-buffer": "^5.2.0"
+ },
+ "dependencies": {
+ "inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "dev": true
+ }
+ }
+ },
+ "browserify-zlib": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz",
+ "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==",
+ "dev": true,
+ "requires": {
+ "pako": "~1.0.5"
+ }
+ },
+ "browserslist": {
+ "version": "4.14.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.14.2.tgz",
+ "integrity": "sha512-HI4lPveGKUR0x2StIz+2FXfDk9SfVMrxn6PLh1JeGUwcuoDkdKZebWiyLRJ68iIPDpMI4JLVDf7S7XzslgWOhw==",
+ "dev": true,
+ "requires": {
+ "caniuse-lite": "^1.0.30001125",
+ "electron-to-chromium": "^1.3.564",
+ "escalade": "^3.0.2",
+ "node-releases": "^1.1.61"
+ }
+ },
+ "buffer": {
+ "version": "5.6.0",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz",
+ "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==",
+ "dev": true,
+ "requires": {
+ "base64-js": "^1.0.2",
+ "ieee754": "^1.1.4"
+ }
+ },
+ "buffer-crc32": {
+ "version": "0.2.13",
+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
+ "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=",
+ "dev": true
+ },
+ "buffer-from": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
+ "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
+ "dev": true
+ },
+ "buffer-xor": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz",
+ "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=",
+ "dev": true
+ },
+ "builtin-status-codes": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz",
+ "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=",
+ "dev": true
+ },
+ "cac": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/cac/-/cac-3.0.4.tgz",
+ "integrity": "sha1-bSTO7Dcu/lybeYgIvH9JtHJCpO8=",
+ "dev": true,
+ "requires": {
+ "camelcase-keys": "^3.0.0",
+ "chalk": "^1.1.3",
+ "indent-string": "^3.0.0",
+ "minimist": "^1.2.0",
+ "read-pkg-up": "^1.0.1",
+ "suffix": "^0.1.0",
+ "text-table": "^0.2.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ }
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ }
+ }
+ },
+ "cacache": {
+ "version": "12.0.4",
+ "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.4.tgz",
+ "integrity": "sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==",
+ "dev": true,
+ "requires": {
+ "bluebird": "^3.5.5",
+ "chownr": "^1.1.1",
+ "figgy-pudding": "^3.5.1",
+ "glob": "^7.1.4",
+ "graceful-fs": "^4.1.15",
+ "infer-owner": "^1.0.3",
+ "lru-cache": "^5.1.1",
+ "mississippi": "^3.0.0",
+ "mkdirp": "^0.5.1",
+ "move-concurrently": "^1.0.1",
+ "promise-inflight": "^1.0.1",
+ "rimraf": "^2.6.3",
+ "ssri": "^6.0.1",
+ "unique-filename": "^1.1.1",
+ "y18n": "^4.0.0"
+ },
+ "dependencies": {
+ "lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "requires": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "mkdirp": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
+ "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ },
+ "rimraf": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
+ "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ },
+ "yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true
+ }
+ }
+ },
+ "cache-base": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz",
+ "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==",
+ "dev": true,
+ "requires": {
+ "collection-visit": "^1.0.0",
+ "component-emitter": "^1.2.1",
+ "get-value": "^2.0.6",
+ "has-value": "^1.0.0",
+ "isobject": "^3.0.1",
+ "set-value": "^2.0.0",
+ "to-object-path": "^0.3.0",
+ "union-value": "^1.0.0",
+ "unset-value": "^1.0.0"
+ }
+ },
+ "cacheable-lookup": {
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.3.tgz",
+ "integrity": "sha512-W+JBqF9SWe18A72XFzN/V/CULFzPm7sBXzzR6ekkE+3tLG72wFZrBiBZhrZuDoYexop4PHJVdFAKb/Nj9+tm9w==",
+ "dev": true
+ },
+ "cacheable-request": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.1.tgz",
+ "integrity": "sha512-lt0mJ6YAnsrBErpTMWeu5kl/tg9xMAWjavYTN6VQXM1A/teBITuNcccXsCxF0tDQQJf9DfAaX5O4e0zp0KlfZw==",
+ "dev": true,
+ "requires": {
+ "clone-response": "^1.0.2",
+ "get-stream": "^5.1.0",
+ "http-cache-semantics": "^4.0.0",
+ "keyv": "^4.0.0",
+ "lowercase-keys": "^2.0.0",
+ "normalize-url": "^4.1.0",
+ "responselike": "^2.0.0"
+ }
+ },
+ "caching-transform": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz",
+ "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==",
+ "dev": true,
+ "requires": {
+ "hasha": "^5.0.0",
+ "make-dir": "^3.0.0",
+ "package-hash": "^4.0.0",
+ "write-file-atomic": "^3.0.0"
+ },
+ "dependencies": {
+ "make-dir": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ }
+ }
+ },
+ "callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true
+ },
+ "camelcase": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
+ "dev": true
+ },
+ "camelcase-keys": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-3.0.0.tgz",
+ "integrity": "sha1-/AxsNgNj9zd+N5O5oWvM8QcMHKQ=",
+ "dev": true,
+ "requires": {
+ "camelcase": "^3.0.0",
+ "map-obj": "^1.0.0"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
+ "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=",
+ "dev": true
+ }
+ }
+ },
+ "caniuse-lite": {
+ "version": "1.0.30001128",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001128.tgz",
+ "integrity": "sha512-ocjGtRj+4wP6XTEIn2AGn3ebd8nkFN3991GlZ3ubLrjUC/w/YGgBFb5iy7CHr5NaBZ/pfo0SrctGRDVUbGgpzg==",
+ "dev": true
+ },
+ "caseless": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
+ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
+ "dev": true
+ },
+ "chai": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz",
+ "integrity": "sha1-dgqnLPION5XoSxKHfODoNzeqKeU=",
+ "dev": true,
+ "requires": {
+ "assertion-error": "^1.1.0",
+ "check-error": "^1.0.2",
+ "deep-eql": "^3.0.1",
+ "get-func-name": "^2.0.0",
+ "pathval": "^1.1.0",
+ "type-detect": "^4.0.5"
+ }
+ },
+ "chalk": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ }
+ },
+ "chardet": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
+ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==",
+ "dev": true
+ },
+ "check-error": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz",
+ "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=",
+ "dev": true
+ },
+ "chokidar": {
+ "version": "2.1.8",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz",
+ "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "anymatch": "^2.0.0",
+ "async-each": "^1.0.1",
+ "braces": "^2.3.2",
+ "fsevents": "^1.2.7",
+ "glob-parent": "^3.1.0",
+ "inherits": "^2.0.3",
+ "is-binary-path": "^1.0.0",
+ "is-glob": "^4.0.0",
+ "normalize-path": "^3.0.0",
+ "path-is-absolute": "^1.0.0",
+ "readdirp": "^2.2.1",
+ "upath": "^1.1.1"
+ }
+ },
+ "chownr": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
+ "dev": true
+ },
+ "chrome-launcher": {
+ "version": "0.13.4",
+ "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-0.13.4.tgz",
+ "integrity": "sha512-nnzXiDbGKjDSK6t2I+35OAPBy5Pw/39bgkb/ZAFwMhwJbdYBp6aH+vW28ZgtjdU890Q7D+3wN/tB8N66q5Gi2A==",
+ "dev": true,
+ "requires": {
+ "@types/node": "*",
+ "escape-string-regexp": "^1.0.5",
+ "is-wsl": "^2.2.0",
+ "lighthouse-logger": "^1.0.0",
+ "mkdirp": "^0.5.3",
+ "rimraf": "^3.0.2"
+ },
+ "dependencies": {
+ "mkdirp": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
+ "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ }
+ }
+ },
+ "chrome-trace-event": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz",
+ "integrity": "sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ==",
+ "dev": true,
+ "requires": {
+ "tslib": "^1.9.0"
+ }
+ },
+ "ci-info": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz",
+ "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==",
+ "dev": true
+ },
+ "cipher-base": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz",
+ "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "class-utils": {
+ "version": "0.3.6",
+ "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz",
+ "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==",
+ "dev": true,
+ "requires": {
+ "arr-union": "^3.1.0",
+ "define-property": "^0.2.5",
+ "isobject": "^3.0.0",
+ "static-extend": "^0.1.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ }
+ }
+ },
+ "clean-stack": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
+ "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
+ "dev": true
+ },
+ "cli-boxes": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.0.tgz",
+ "integrity": "sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w==",
+ "dev": true
+ },
+ "cli-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
+ "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
+ "dev": true,
+ "requires": {
+ "restore-cursor": "^3.1.0"
+ }
+ },
+ "cli-spinners": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.4.0.tgz",
+ "integrity": "sha512-sJAofoarcm76ZGpuooaO0eDy8saEy+YoZBLjC4h8srt4jeBnkYeOgqxgsJQTpyt2LjI5PTfLJHSL+41Yu4fEJA==",
+ "dev": true
+ },
+ "cli-width": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz",
+ "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==",
+ "dev": true
+ },
+ "cliui": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
+ "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==",
+ "dev": true,
+ "requires": {
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
+ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
+ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ }
+ }
+ },
+ "clone-response": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
+ "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=",
+ "dev": true,
+ "requires": {
+ "mimic-response": "^1.0.0"
+ }
+ },
+ "collection-visit": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
+ "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=",
+ "dev": true,
+ "requires": {
+ "map-visit": "^1.0.0",
+ "object-visit": "^1.0.0"
+ }
+ },
+ "color-convert": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz",
+ "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "^1.1.1"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
+ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
+ "dev": true
+ },
+ "combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "dev": true,
+ "requires": {
+ "delayed-stream": "~1.0.0"
+ }
+ },
+ "commander": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "dev": true
+ },
+ "commondir": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
+ "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
+ "dev": true
+ },
+ "component-emitter": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
+ "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==",
+ "dev": true
+ },
+ "compress-commons": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.0.1.tgz",
+ "integrity": "sha512-xZm9o6iikekkI0GnXCmAl3LQGZj5TBDj0zLowsqi7tJtEa3FMGSEcHcqrSJIrOAk1UG/NBbDn/F1q+MG/p/EsA==",
+ "dev": true,
+ "requires": {
+ "buffer-crc32": "^0.2.13",
+ "crc32-stream": "^4.0.0",
+ "normalize-path": "^3.0.0",
+ "readable-stream": "^3.6.0"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ }
+ }
+ },
+ "concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
+ "dev": true
+ },
+ "concat-stream": {
+ "version": "1.6.2",
+ "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
+ "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
+ "dev": true,
+ "requires": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "configstore": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz",
+ "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==",
+ "dev": true,
+ "requires": {
+ "dot-prop": "^5.2.0",
+ "graceful-fs": "^4.1.2",
+ "make-dir": "^3.0.0",
+ "unique-string": "^2.0.0",
+ "write-file-atomic": "^3.0.0",
+ "xdg-basedir": "^4.0.0"
+ },
+ "dependencies": {
+ "make-dir": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ }
+ }
+ },
+ "console-browserify": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz",
+ "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==",
+ "dev": true
+ },
+ "constants-browserify": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz",
+ "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=",
+ "dev": true
+ },
+ "contains-path": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz",
+ "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=",
+ "dev": true
+ },
+ "convert-source-map": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz",
+ "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.1"
+ }
+ },
+ "copy-concurrently": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz",
+ "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==",
+ "dev": true,
+ "requires": {
+ "aproba": "^1.1.1",
+ "fs-write-stream-atomic": "^1.0.8",
+ "iferr": "^0.1.5",
+ "mkdirp": "^0.5.1",
+ "rimraf": "^2.5.4",
+ "run-queue": "^1.0.0"
+ },
+ "dependencies": {
+ "mkdirp": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
+ "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ },
+ "rimraf": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
+ "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
+ "copy-descriptor": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
+ "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
+ "dev": true
+ },
+ "core-js-compat": {
+ "version": "3.6.5",
+ "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.6.5.tgz",
+ "integrity": "sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng==",
+ "dev": true,
+ "requires": {
+ "browserslist": "^4.8.5",
+ "semver": "7.0.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz",
+ "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==",
+ "dev": true
+ }
+ }
+ },
+ "core-util-is": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
+ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
+ "dev": true
+ },
+ "core_d": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/core_d/-/core_d-2.0.0.tgz",
+ "integrity": "sha512-oIb3QJj/ayYNbg2WYTYM1h3d8XvKF/RBUFhNeVVOfXDskeQC43fypCwnvdGqgTK7rbJ/a8tvxeErCr8vJhJ4vA==",
+ "dev": true,
+ "requires": {
+ "supports-color": "^5.5.0"
+ }
+ },
+ "crc": {
+ "version": "3.8.0",
+ "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz",
+ "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==",
+ "dev": true,
+ "requires": {
+ "buffer": "^5.1.0"
+ }
+ },
+ "crc32-stream": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.0.tgz",
+ "integrity": "sha512-tyMw2IeUX6t9jhgXI6um0eKfWq4EIDpfv5m7GX4Jzp7eVelQ360xd8EPXJhp2mHwLQIkqlnMLjzqSZI3a+0wRw==",
+ "dev": true,
+ "requires": {
+ "crc": "^3.4.4",
+ "readable-stream": "^3.4.0"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ }
+ }
+ },
+ "create-ecdh": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz",
+ "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.1.0",
+ "elliptic": "^6.0.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.11.9",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz",
+ "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
+ "dev": true
+ }
+ }
+ },
+ "create-hash": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz",
+ "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==",
+ "dev": true,
+ "requires": {
+ "cipher-base": "^1.0.1",
+ "inherits": "^2.0.1",
+ "md5.js": "^1.3.4",
+ "ripemd160": "^2.0.1",
+ "sha.js": "^2.4.0"
+ }
+ },
+ "create-hmac": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz",
+ "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==",
+ "dev": true,
+ "requires": {
+ "cipher-base": "^1.0.3",
+ "create-hash": "^1.1.0",
+ "inherits": "^2.0.1",
+ "ripemd160": "^2.0.0",
+ "safe-buffer": "^5.0.1",
+ "sha.js": "^2.4.8"
+ }
+ },
+ "cross-spawn": {
+ "version": "6.0.5",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
+ "integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=",
+ "dev": true,
+ "requires": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ }
+ },
+ "crypto-browserify": {
+ "version": "3.12.0",
+ "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz",
+ "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==",
+ "dev": true,
+ "requires": {
+ "browserify-cipher": "^1.0.0",
+ "browserify-sign": "^4.0.0",
+ "create-ecdh": "^4.0.0",
+ "create-hash": "^1.1.0",
+ "create-hmac": "^1.1.0",
+ "diffie-hellman": "^5.0.0",
+ "inherits": "^2.0.1",
+ "pbkdf2": "^3.0.3",
+ "public-encrypt": "^4.0.0",
+ "randombytes": "^2.0.0",
+ "randomfill": "^1.0.3"
+ }
+ },
+ "crypto-random-string": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz",
+ "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==",
+ "dev": true
+ },
+ "css-value": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/css-value/-/css-value-0.0.1.tgz",
+ "integrity": "sha1-Xv1sLupeof1rasV+wEJ7GEUkJOo=",
+ "dev": true
+ },
+ "cyclist": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz",
+ "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=",
+ "dev": true
+ },
+ "dashdash": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
+ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "decamelize": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
+ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
+ "dev": true
+ },
+ "decamelize-keys": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz",
+ "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=",
+ "dev": true,
+ "requires": {
+ "decamelize": "^1.1.0",
+ "map-obj": "^1.0.0"
+ }
+ },
+ "decode-uri-component": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
+ "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
+ "dev": true
+ },
+ "decompress-response": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
+ "dev": true,
+ "requires": {
+ "mimic-response": "^3.1.0"
+ },
+ "dependencies": {
+ "mimic-response": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
+ "dev": true
+ }
+ }
+ },
+ "deep-eql": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz",
+ "integrity": "sha1-38lARACtHI/gI+faHfHBR8S0RN8=",
+ "dev": true,
+ "requires": {
+ "type-detect": "^4.0.0"
+ }
+ },
+ "deep-extend": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
+ "dev": true
+ },
+ "deep-is": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz",
+ "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=",
+ "dev": true
+ },
+ "deepmerge": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",
+ "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==",
+ "dev": true
+ },
+ "default-require-extensions": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz",
+ "integrity": "sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg==",
+ "dev": true,
+ "requires": {
+ "strip-bom": "^4.0.0"
+ },
+ "dependencies": {
+ "strip-bom": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz",
+ "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==",
+ "dev": true
+ }
+ }
+ },
+ "defer-to-connect": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.0.tgz",
+ "integrity": "sha512-bYL2d05vOSf1JEZNx5vSAtPuBMkX8K9EUutg7zlKvTqKXHt7RhWJFbmd7qakVuf13i+IkGmp6FwSsONOf6VYIg==",
+ "dev": true
+ },
+ "define-properties": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
+ "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
+ "dev": true,
+ "requires": {
+ "object-keys": "^1.0.12"
+ }
+ },
+ "define-property": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz",
+ "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^1.0.2",
+ "isobject": "^3.0.1"
+ },
+ "dependencies": {
+ "is-accessor-descriptor": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
+ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
+ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
+ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ }
+ }
+ }
+ },
+ "delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
+ "dev": true
+ },
+ "depd": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
+ "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=",
+ "dev": true
+ },
+ "des.js": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz",
+ "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "minimalistic-assert": "^1.0.0"
+ }
+ },
+ "destroy": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
+ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=",
+ "dev": true
+ },
+ "detect-file": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz",
+ "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=",
+ "dev": true
+ },
+ "devtools": {
+ "version": "6.4.7",
+ "resolved": "https://registry.npmjs.org/devtools/-/devtools-6.4.7.tgz",
+ "integrity": "sha512-sYfeAi5g9Qpe6iHGvFUc95C46tEQuk5qwPiY2d4a7cTfaTrSaSNzCRvxIAuvjWbDAPyXXvuDYz4HVPhjuJvKJQ==",
+ "dev": true,
+ "requires": {
+ "@wdio/config": "6.4.7",
+ "@wdio/logger": "6.4.7",
+ "@wdio/protocols": "6.3.6",
+ "@wdio/utils": "6.4.7",
+ "chrome-launcher": "^0.13.1",
+ "puppeteer-core": "^5.1.0",
+ "ua-parser-js": "^0.7.21",
+ "uuid": "^8.0.0"
+ }
+ },
+ "devtools-protocol": {
+ "version": "0.0.799653",
+ "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.799653.tgz",
+ "integrity": "sha512-t1CcaZbvm8pOlikqrsIM9GOa7Ipp07+4h/q9u0JXBWjPCjHdBl9KkddX87Vv9vBHoBGtwV79sYQNGnQM6iS5gg==",
+ "dev": true
+ },
+ "diff": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
+ "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
+ "dev": true
+ },
+ "diffie-hellman": {
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz",
+ "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.1.0",
+ "miller-rabin": "^4.0.0",
+ "randombytes": "^2.0.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.11.9",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz",
+ "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
+ "dev": true
+ }
+ }
+ },
+ "dir-glob": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
+ "dev": true,
+ "requires": {
+ "path-type": "^4.0.0"
+ },
+ "dependencies": {
+ "path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "dev": true
+ }
+ }
+ },
+ "doctrine": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
+ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
+ "dev": true,
+ "requires": {
+ "esutils": "^2.0.2"
+ }
+ },
+ "domain-browser": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz",
+ "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==",
+ "dev": true
+ },
+ "dot-prop": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz",
+ "integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==",
+ "dev": true,
+ "requires": {
+ "is-obj": "^2.0.0"
+ }
+ },
+ "duplexer3": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
+ "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=",
+ "dev": true
+ },
+ "duplexify": {
+ "version": "3.7.1",
+ "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz",
+ "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==",
+ "dev": true,
+ "requires": {
+ "end-of-stream": "^1.0.0",
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.0.0",
+ "stream-shift": "^1.0.0"
+ }
+ },
+ "ecc-jsbn": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
+ "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
+ "dev": true,
+ "requires": {
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
+ }
+ },
+ "ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=",
+ "dev": true
+ },
+ "ejs": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.5.tgz",
+ "integrity": "sha512-dldq3ZfFtgVTJMLjOe+/3sROTzALlL9E34V4/sDtUd/KlBSS0s6U1/+WPE1B4sj9CXHJpL1M6rhNJnc9Wbal9w==",
+ "dev": true,
+ "requires": {
+ "jake": "^10.6.1"
+ }
+ },
+ "electron-to-chromium": {
+ "version": "1.3.567",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.567.tgz",
+ "integrity": "sha512-1aKkw0Hha1Bw9JA5K5PT5eFXC/TXbkJvUfNSNEciPUMgSIsRJZM1hF2GUEAGZpAbgvd8En21EA+Lv820KOhvqA==",
+ "dev": true
+ },
+ "elliptic": {
+ "version": "6.5.3",
+ "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",
+ "integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.4.0",
+ "brorand": "^1.0.1",
+ "hash.js": "^1.0.0",
+ "hmac-drbg": "^1.0.0",
+ "inherits": "^2.0.1",
+ "minimalistic-assert": "^1.0.0",
+ "minimalistic-crypto-utils": "^1.0.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.11.9",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz",
+ "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
+ "dev": true
+ }
+ }
+ },
+ "emoji-regex": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
+ "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=",
+ "dev": true
+ },
+ "emojis-list": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
+ "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
+ "dev": true
+ },
+ "encodeurl": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
+ "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=",
+ "dev": true
+ },
+ "end-of-stream": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz",
+ "integrity": "sha1-7SljTRm6ukY7bOa4CjchPqtx7EM=",
+ "dev": true,
+ "requires": {
+ "once": "^1.4.0"
+ }
+ },
+ "enhanced-resolve": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.3.0.tgz",
+ "integrity": "sha512-3e87LvavsdxyoCfGusJnrZ5G8SLPOFeHSNpZI/ATL9a5leXo2k0w6MKnbqhdBad9qTobSfB20Ld7UmgoNbAZkQ==",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "memory-fs": "^0.5.0",
+ "tapable": "^1.0.0"
+ },
+ "dependencies": {
+ "memory-fs": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz",
+ "integrity": "sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==",
+ "dev": true,
+ "requires": {
+ "errno": "^0.1.3",
+ "readable-stream": "^2.0.1"
+ }
+ }
+ }
+ },
+ "enquirer": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz",
+ "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==",
+ "dev": true,
+ "requires": {
+ "ansi-colors": "^4.1.1"
+ }
+ },
+ "envify": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/envify/-/envify-4.1.0.tgz",
+ "integrity": "sha1-85rT251oAbTmtHi2ECjT8LaBn34=",
+ "dev": true,
+ "requires": {
+ "esprima": "^4.0.0",
+ "through": "~2.3.4"
+ }
+ },
+ "errno": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz",
+ "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==",
+ "dev": true,
+ "requires": {
+ "prr": "~1.0.1"
+ }
+ },
+ "error-ex": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "dev": true,
+ "requires": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "es-abstract": {
+ "version": "1.17.5",
+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz",
+ "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==",
+ "dev": true,
+ "requires": {
+ "es-to-primitive": "^1.2.1",
+ "function-bind": "^1.1.1",
+ "has": "^1.0.3",
+ "has-symbols": "^1.0.1",
+ "is-callable": "^1.1.5",
+ "is-regex": "^1.0.5",
+ "object-inspect": "^1.7.0",
+ "object-keys": "^1.1.1",
+ "object.assign": "^4.1.0",
+ "string.prototype.trimleft": "^2.1.1",
+ "string.prototype.trimright": "^2.1.1"
+ }
+ },
+ "es-array-method-boxes-properly": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz",
+ "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==",
+ "dev": true
+ },
+ "es-get-iterator": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.0.tgz",
+ "integrity": "sha512-UfrmHuWQlNMTs35e1ypnvikg6jCz3SK8v8ImvmDsh36fCVUR1MqoFDiyn0/k52C8NqO3YsO8Oe0azeesNuqSsQ==",
+ "dev": true,
+ "requires": {
+ "es-abstract": "^1.17.4",
+ "has-symbols": "^1.0.1",
+ "is-arguments": "^1.0.4",
+ "is-map": "^2.0.1",
+ "is-set": "^2.0.1",
+ "is-string": "^1.0.5",
+ "isarray": "^2.0.5"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
+ "dev": true
+ }
+ }
+ },
+ "es-to-primitive": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz",
+ "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==",
+ "dev": true,
+ "requires": {
+ "is-callable": "^1.1.4",
+ "is-date-object": "^1.0.1",
+ "is-symbol": "^1.0.2"
+ }
+ },
+ "es6-error": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",
+ "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
+ "dev": true
+ },
+ "es6-promise": {
+ "version": "4.2.8",
+ "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
+ "integrity": "sha1-TrIVlMlyvEBVPSduUQU5FD21Pgo=",
+ "dev": true
+ },
+ "escalade": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.0.2.tgz",
+ "integrity": "sha512-gPYAU37hYCUhW5euPeR+Y74F7BL+IBsV93j5cvGriSaD1aG6MGsqsV1yamRdrWrb2j3aiZvb0X+UBOWpx3JWtQ==",
+ "dev": true
+ },
+ "escape-goat": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz",
+ "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==",
+ "dev": true
+ },
+ "escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=",
+ "dev": true
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
+ "dev": true
+ },
+ "eslint": {
+ "version": "7.9.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.9.0.tgz",
+ "integrity": "sha512-V6QyhX21+uXp4T+3nrNfI3hQNBDa/P8ga7LoQOenwrlEFXrEnUEE+ok1dMtaS3b6rmLXhT1TkTIsG75HMLbknA==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.0.0",
+ "@eslint/eslintrc": "^0.1.3",
+ "ajv": "^6.10.0",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.2",
+ "debug": "^4.0.1",
+ "doctrine": "^3.0.0",
+ "enquirer": "^2.3.5",
+ "eslint-scope": "^5.1.0",
+ "eslint-utils": "^2.1.0",
+ "eslint-visitor-keys": "^1.3.0",
+ "espree": "^7.3.0",
+ "esquery": "^1.2.0",
+ "esutils": "^2.0.2",
+ "file-entry-cache": "^5.0.1",
+ "functional-red-black-tree": "^1.0.1",
+ "glob-parent": "^5.0.0",
+ "globals": "^12.1.0",
+ "ignore": "^4.0.6",
+ "import-fresh": "^3.0.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "js-yaml": "^3.13.1",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "levn": "^0.4.1",
+ "lodash": "^4.17.19",
+ "minimatch": "^3.0.4",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.1",
+ "progress": "^2.0.0",
+ "regexpp": "^3.1.0",
+ "semver": "^7.2.1",
+ "strip-ansi": "^6.0.0",
+ "strip-json-comments": "^3.1.0",
+ "table": "^5.2.3",
+ "text-table": "^0.2.0",
+ "v8-compile-cache": "^2.0.3"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
+ "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "requires": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ }
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "eslint-visitor-keys": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
+ "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
+ "dev": true
+ },
+ "glob-parent": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
+ "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
+ "dev": true,
+ "requires": {
+ "is-glob": "^4.0.1"
+ }
+ },
+ "globals": {
+ "version": "12.4.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz",
+ "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==",
+ "dev": true,
+ "requires": {
+ "type-fest": "^0.8.1"
+ }
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true
+ },
+ "semver": {
+ "version": "7.3.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
+ "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==",
+ "dev": true
+ },
+ "shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^3.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ },
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "eslint-formatter-pretty": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/eslint-formatter-pretty/-/eslint-formatter-pretty-4.0.0.tgz",
+ "integrity": "sha512-QgdeZxQwWcN0TcXXNZJiS6BizhAANFhCzkE7Yl9HKB7WjElzwED6+FbbZB2gji8ofgJTGPqKm6VRCNT3OGCeEw==",
+ "dev": true,
+ "requires": {
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.1.0",
+ "eslint-rule-docs": "^1.1.5",
+ "log-symbols": "^4.0.0",
+ "plur": "^4.0.0",
+ "string-width": "^4.2.0",
+ "supports-hyperlinks": "^2.0.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
+ "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "log-symbols": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz",
+ "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==",
+ "dev": true,
+ "requires": {
+ "chalk": "^4.0.0"
+ }
+ },
+ "string-width": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz",
+ "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "eslint-import-resolver-node": {
+ "version": "0.3.4",
+ "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz",
+ "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==",
+ "dev": true,
+ "requires": {
+ "debug": "^2.6.9",
+ "resolve": "^1.13.1"
+ }
+ },
+ "eslint-module-utils": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz",
+ "integrity": "sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==",
+ "dev": true,
+ "requires": {
+ "debug": "^2.6.9",
+ "pkg-dir": "^2.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
+ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
+ "dev": true,
+ "requires": {
+ "locate-path": "^2.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
+ "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
+ "dev": true,
+ "requires": {
+ "p-locate": "^2.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "p-limit": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
+ "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
+ "dev": true,
+ "requires": {
+ "p-try": "^1.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
+ "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
+ "dev": true,
+ "requires": {
+ "p-limit": "^1.1.0"
+ }
+ },
+ "p-try": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
+ "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz",
+ "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=",
+ "dev": true,
+ "requires": {
+ "find-up": "^2.1.0"
+ }
+ }
+ }
+ },
+ "eslint-plugin-import": {
+ "version": "2.22.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.0.tgz",
+ "integrity": "sha512-66Fpf1Ln6aIS5Gr/55ts19eUuoDhAbZgnr6UxK5hbDx6l/QgQgx61AePq+BV4PP2uXQFClgMVzep5zZ94qqsxg==",
+ "dev": true,
+ "requires": {
+ "array-includes": "^3.1.1",
+ "array.prototype.flat": "^1.2.3",
+ "contains-path": "^0.1.0",
+ "debug": "^2.6.9",
+ "doctrine": "1.5.0",
+ "eslint-import-resolver-node": "^0.3.3",
+ "eslint-module-utils": "^2.6.0",
+ "has": "^1.0.3",
+ "minimatch": "^3.0.4",
+ "object.values": "^1.1.1",
+ "read-pkg-up": "^2.0.0",
+ "resolve": "^1.17.0",
+ "tsconfig-paths": "^3.9.0"
+ },
+ "dependencies": {
+ "doctrine": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz",
+ "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=",
+ "dev": true,
+ "requires": {
+ "esutils": "^2.0.2",
+ "isarray": "^1.0.0"
+ }
+ },
+ "find-up": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
+ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
+ "dev": true,
+ "requires": {
+ "locate-path": "^2.0.0"
+ }
+ },
+ "load-json-file": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
+ "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^2.2.0",
+ "pify": "^2.0.0",
+ "strip-bom": "^3.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
+ "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
+ "dev": true,
+ "requires": {
+ "p-locate": "^2.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "p-limit": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
+ "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
+ "dev": true,
+ "requires": {
+ "p-try": "^1.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
+ "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
+ "dev": true,
+ "requires": {
+ "p-limit": "^1.1.0"
+ }
+ },
+ "p-try": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
+ "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
+ "dev": true
+ },
+ "path-type": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz",
+ "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=",
+ "dev": true,
+ "requires": {
+ "pify": "^2.0.0"
+ }
+ },
+ "read-pkg": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
+ "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=",
+ "dev": true,
+ "requires": {
+ "load-json-file": "^2.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^2.0.0"
+ }
+ },
+ "read-pkg-up": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz",
+ "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=",
+ "dev": true,
+ "requires": {
+ "find-up": "^2.0.0",
+ "read-pkg": "^2.0.0"
+ }
+ },
+ "resolve": {
+ "version": "1.17.0",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz",
+ "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==",
+ "dev": true,
+ "requires": {
+ "path-parse": "^1.0.6"
+ }
+ },
+ "strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
+ "dev": true
+ }
+ }
+ },
+ "eslint-rule-docs": {
+ "version": "1.1.200",
+ "resolved": "https://registry.npmjs.org/eslint-rule-docs/-/eslint-rule-docs-1.1.200.tgz",
+ "integrity": "sha512-3j5+8OVAWepxOZuLijXhqzWFPzD02CqxAP0hnHj1+s6PgTFmSmpaAtwPfv6BZg8NHGxLVS3AD0MIXJIwfn5ypQ==",
+ "dev": true
+ },
+ "eslint-scope": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
+ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
+ "dev": true,
+ "requires": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^4.1.1"
+ },
+ "dependencies": {
+ "esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "requires": {
+ "estraverse": "^5.2.0"
+ },
+ "dependencies": {
+ "estraverse": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz",
+ "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==",
+ "dev": true
+ }
+ }
+ }
+ }
+ },
+ "eslint-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz",
+ "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
+ "dev": true,
+ "requires": {
+ "eslint-visitor-keys": "^1.1.0"
+ }
+ },
+ "eslint-visitor-keys": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz",
+ "integrity": "sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==",
+ "dev": true
+ },
+ "eslint_d": {
+ "version": "9.1.2",
+ "resolved": "https://registry.npmjs.org/eslint_d/-/eslint_d-9.1.2.tgz",
+ "integrity": "sha512-HJ7n92z+gSBLPP/en2pse1SLsFfwOXb8aqHn3FyXwYaE+J5wSM+raBbSmvE9Ttq20IF6Rq/dXxjhiIjuxAUjpw==",
+ "dev": true,
+ "requires": {
+ "core_d": "^2.0.0",
+ "eslint": "^7.3.0",
+ "nanolru": "^1.0.0",
+ "optionator": "^0.9.1"
+ }
+ },
+ "espree": {
+ "version": "7.3.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.0.tgz",
+ "integrity": "sha512-dksIWsvKCixn1yrEXO8UosNSxaDoSYpq9reEjZSbHLpT5hpaCAKTLBwq0RHtLrIr+c0ByiYzWT8KTMRzoRCNlw==",
+ "dev": true,
+ "requires": {
+ "acorn": "^7.4.0",
+ "acorn-jsx": "^5.2.0",
+ "eslint-visitor-keys": "^1.3.0"
+ },
+ "dependencies": {
+ "eslint-visitor-keys": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
+ "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
+ "dev": true
+ }
+ }
+ },
+ "esprima": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz",
+ "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==",
+ "dev": true
+ },
+ "esquery": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz",
+ "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==",
+ "dev": true,
+ "requires": {
+ "estraverse": "^5.1.0"
+ },
+ "dependencies": {
+ "estraverse": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz",
+ "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==",
+ "dev": true
+ }
+ }
+ },
+ "esrecurse": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz",
+ "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==",
+ "dev": true,
+ "requires": {
+ "estraverse": "^4.1.0"
+ }
+ },
+ "estraverse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
+ "dev": true
+ },
+ "esutils": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
+ "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=",
+ "dev": true
+ },
+ "etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
+ "dev": true
+ },
+ "events": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/events/-/events-3.2.0.tgz",
+ "integrity": "sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg==",
+ "dev": true
+ },
+ "evp_bytestokey": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz",
+ "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==",
+ "dev": true,
+ "requires": {
+ "md5.js": "^1.3.4",
+ "safe-buffer": "^5.1.1"
+ }
+ },
+ "expand-brackets": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz",
+ "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=",
+ "dev": true,
+ "requires": {
+ "debug": "^2.3.3",
+ "define-property": "^0.2.5",
+ "extend-shallow": "^2.0.1",
+ "posix-character-classes": "^0.1.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ },
+ "extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "expand-tilde": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz",
+ "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=",
+ "dev": true,
+ "requires": {
+ "homedir-polyfill": "^1.0.1"
+ }
+ },
+ "extend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
+ "dev": true
+ },
+ "extend-shallow": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz",
+ "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=",
+ "dev": true,
+ "requires": {
+ "assign-symbols": "^1.0.0",
+ "is-extendable": "^1.0.1"
+ },
+ "dependencies": {
+ "is-extendable": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz",
+ "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",
+ "dev": true,
+ "requires": {
+ "is-plain-object": "^2.0.4"
+ }
+ }
+ }
+ },
+ "external-editor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
+ "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
+ "dev": true,
+ "requires": {
+ "chardet": "^0.7.0",
+ "iconv-lite": "^0.4.24",
+ "tmp": "^0.0.33"
+ }
+ },
+ "extglob": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz",
+ "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==",
+ "dev": true,
+ "requires": {
+ "array-unique": "^0.3.2",
+ "define-property": "^1.0.0",
+ "expand-brackets": "^2.1.4",
+ "extend-shallow": "^2.0.1",
+ "fragment-cache": "^0.2.1",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
+ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^1.0.0"
+ }
+ },
+ "extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ },
+ "is-accessor-descriptor": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
+ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
+ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
+ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ }
+ }
+ }
+ },
+ "extract-zip": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
+ "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
+ "dev": true,
+ "requires": {
+ "@types/yauzl": "^2.9.1",
+ "debug": "^4.1.1",
+ "get-stream": "^5.1.0",
+ "yauzl": "^2.10.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "extsprintf": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
+ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
+ "dev": true
+ },
+ "fast-deep-equal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
+ "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=",
+ "dev": true
+ },
+ "fast-glob": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.4.tgz",
+ "integrity": "sha512-kr/Oo6PX51265qeuCYsyGypiO5uJFgBS0jksyG7FUeCyQzNwYnzrNIMR1NXfkZXsMYXYLRAHgISHBz8gQcxKHQ==",
+ "dev": true,
+ "requires": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.0",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.2",
+ "picomatch": "^2.2.1"
+ },
+ "dependencies": {
+ "braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "dev": true,
+ "requires": {
+ "fill-range": "^7.0.1"
+ }
+ },
+ "fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dev": true,
+ "requires": {
+ "to-regex-range": "^5.0.1"
+ }
+ },
+ "glob-parent": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
+ "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
+ "dev": true,
+ "requires": {
+ "is-glob": "^4.0.1"
+ }
+ },
+ "is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true
+ },
+ "micromatch": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz",
+ "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==",
+ "dev": true,
+ "requires": {
+ "braces": "^3.0.1",
+ "picomatch": "^2.0.5"
+ }
+ },
+ "to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "requires": {
+ "is-number": "^7.0.0"
+ }
+ }
+ }
+ },
+ "fast-json-stable-stringify": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
+ "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=",
+ "dev": true
+ },
+ "fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
+ "dev": true
+ },
+ "fastq": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.8.0.tgz",
+ "integrity": "sha512-SMIZoZdLh/fgofivvIkmknUXyPnvxRE3DhtZ5Me3Mrsk5gyPL42F0xr51TdRXskBxHfMp+07bcYzfsYEsSQA9Q==",
+ "dev": true,
+ "requires": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "fd-slicer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
+ "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
+ "dev": true,
+ "requires": {
+ "pend": "~1.2.0"
+ }
+ },
+ "figgy-pudding": {
+ "version": "3.5.2",
+ "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz",
+ "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==",
+ "dev": true
+ },
+ "figures": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz",
+ "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==",
+ "dev": true,
+ "requires": {
+ "escape-string-regexp": "^1.0.5"
+ }
+ },
+ "file-entry-cache": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz",
+ "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==",
+ "dev": true,
+ "requires": {
+ "flat-cache": "^2.0.1"
+ }
+ },
+ "file-uri-to-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
+ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
+ "dev": true,
+ "optional": true
+ },
+ "filelist": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.1.tgz",
+ "integrity": "sha512-8zSK6Nu0DQIC08mUC46sWGXi+q3GGpKydAG36k+JDba6VRpkevvOWUW5a/PhShij4+vHT9M+ghgG7eM+a9JDUQ==",
+ "dev": true,
+ "requires": {
+ "minimatch": "^3.0.4"
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz",
+ "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "finalhandler": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
+ "integrity": "sha1-t+fQAP/RGTjQ/bBTUG9uur6fWH0=",
+ "dev": true,
+ "requires": {
+ "debug": "2.6.9",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.3.0",
+ "parseurl": "~1.3.3",
+ "statuses": "~1.5.0",
+ "unpipe": "~1.0.0"
+ }
+ },
+ "find-cache-dir": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz",
+ "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==",
+ "dev": true,
+ "requires": {
+ "commondir": "^1.0.1",
+ "make-dir": "^2.0.0",
+ "pkg-dir": "^3.0.0"
+ }
+ },
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "dependencies": {
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ }
+ }
+ },
+ "findup-sync": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-3.0.0.tgz",
+ "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==",
+ "dev": true,
+ "requires": {
+ "detect-file": "^1.0.0",
+ "is-glob": "^4.0.0",
+ "micromatch": "^3.0.4",
+ "resolve-dir": "^1.0.1"
+ }
+ },
+ "flat": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz",
+ "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==",
+ "dev": true,
+ "requires": {
+ "is-buffer": "~2.0.3"
+ },
+ "dependencies": {
+ "is-buffer": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz",
+ "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==",
+ "dev": true
+ }
+ }
+ },
+ "flat-cache": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz",
+ "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==",
+ "dev": true,
+ "requires": {
+ "flatted": "^2.0.0",
+ "rimraf": "2.6.3",
+ "write": "1.0.3"
+ },
+ "dependencies": {
+ "rimraf": {
+ "version": "2.6.3",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
+ "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
+ "flatted": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz",
+ "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==",
+ "dev": true
+ },
+ "flush-write-stream": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz",
+ "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.3.6"
+ }
+ },
+ "for-in": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
+ "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=",
+ "dev": true
+ },
+ "foreground-child": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz",
+ "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==",
+ "dev": true,
+ "requires": {
+ "cross-spawn": "^7.0.0",
+ "signal-exit": "^3.0.2"
+ },
+ "dependencies": {
+ "cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "requires": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ }
+ },
+ "path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true
+ },
+ "shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^3.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true
+ },
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "forever-agent": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
+ "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
+ "dev": true
+ },
+ "form-data": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
+ "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
+ "dev": true,
+ "requires": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
+ }
+ },
+ "fragment-cache": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
+ "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=",
+ "dev": true,
+ "requires": {
+ "map-cache": "^0.2.2"
+ }
+ },
+ "fresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
+ "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=",
+ "dev": true
+ },
+ "from2": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz",
+ "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.0.0"
+ }
+ },
+ "fromentries": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.0.tgz",
+ "integrity": "sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ==",
+ "dev": true
+ },
+ "fs-constants": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
+ "dev": true
+ },
+ "fs-extra": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz",
+ "integrity": "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==",
+ "dev": true,
+ "requires": {
+ "at-least-node": "^1.0.0",
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^1.0.0"
+ },
+ "dependencies": {
+ "graceful-fs": {
+ "version": "4.2.4",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
+ "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==",
+ "dev": true
+ }
+ }
+ },
+ "fs-readdir-recursive": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz",
+ "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==",
+ "dev": true
+ },
+ "fs-write-stream-atomic": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz",
+ "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "iferr": "^0.1.5",
+ "imurmurhash": "^0.1.4",
+ "readable-stream": "1 || 2"
+ }
+ },
+ "fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
+ "dev": true
+ },
+ "fsevents": {
+ "version": "1.2.12",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.12.tgz",
+ "integrity": "sha512-Ggd/Ktt7E7I8pxZRbGIs7vwqAPscSESMrCSkx2FtWeqmheJgCo2R74fTsZFCifr0VTPwqRpPv17+6b8Zp7th0Q==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "bindings": "^1.5.0",
+ "nan": "^2.12.1",
+ "node-pre-gyp": "*"
+ },
+ "dependencies": {
+ "abbrev": {
+ "version": "1.1.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "ansi-regex": {
+ "version": "2.1.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "aproba": {
+ "version": "1.2.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "are-we-there-yet": {
+ "version": "1.1.5",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "delegates": "^1.0.0",
+ "readable-stream": "^2.0.6"
+ }
+ },
+ "balanced-match": {
+ "version": "1.0.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "brace-expansion": {
+ "version": "1.1.11",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "chownr": {
+ "version": "1.1.4",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "code-point-at": {
+ "version": "1.1.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "concat-map": {
+ "version": "0.0.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "console-control-strings": {
+ "version": "1.1.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "core-util-is": {
+ "version": "1.0.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "debug": {
+ "version": "3.2.6",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "deep-extend": {
+ "version": "0.6.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "delegates": {
+ "version": "1.0.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "detect-libc": {
+ "version": "1.0.3",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "fs-minipass": {
+ "version": "1.2.7",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "minipass": "^2.6.0"
+ }
+ },
+ "fs.realpath": {
+ "version": "1.0.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "gauge": {
+ "version": "2.7.4",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "aproba": "^1.0.3",
+ "console-control-strings": "^1.0.0",
+ "has-unicode": "^2.0.0",
+ "object-assign": "^4.1.0",
+ "signal-exit": "^3.0.0",
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1",
+ "wide-align": "^1.1.0"
+ }
+ },
+ "glob": {
+ "version": "7.1.6",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "has-unicode": {
+ "version": "2.0.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "iconv-lite": {
+ "version": "0.4.24",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
+ },
+ "ignore-walk": {
+ "version": "3.0.3",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "minimatch": "^3.0.4"
+ }
+ },
+ "inflight": {
+ "version": "1.0.6",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "inherits": {
+ "version": "2.0.4",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "ini": {
+ "version": "1.3.5",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "1.0.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "number-is-nan": "^1.0.0"
+ }
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "minimatch": {
+ "version": "3.0.4",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "brace-expansion": "^1.1.7"
+ }
+ },
+ "minimist": {
+ "version": "1.2.5",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "minipass": {
+ "version": "2.9.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "safe-buffer": "^5.1.2",
+ "yallist": "^3.0.0"
+ }
+ },
+ "minizlib": {
+ "version": "1.3.3",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "minipass": "^2.9.0"
+ }
+ },
+ "mkdirp": {
+ "version": "0.5.3",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "needle": {
+ "version": "2.3.3",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "debug": "^3.2.6",
+ "iconv-lite": "^0.4.4",
+ "sax": "^1.2.4"
+ }
+ },
+ "node-pre-gyp": {
+ "version": "0.14.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "detect-libc": "^1.0.2",
+ "mkdirp": "^0.5.1",
+ "needle": "^2.2.1",
+ "nopt": "^4.0.1",
+ "npm-packlist": "^1.1.6",
+ "npmlog": "^4.0.2",
+ "rc": "^1.2.7",
+ "rimraf": "^2.6.1",
+ "semver": "^5.3.0",
+ "tar": "^4.4.2"
+ }
+ },
+ "nopt": {
+ "version": "4.0.3",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "abbrev": "1",
+ "osenv": "^0.1.4"
+ }
+ },
+ "npm-bundled": {
+ "version": "1.1.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "npm-normalize-package-bin": "^1.0.1"
+ }
+ },
+ "npm-normalize-package-bin": {
+ "version": "1.0.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "npm-packlist": {
+ "version": "1.4.8",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "ignore-walk": "^3.0.1",
+ "npm-bundled": "^1.0.1",
+ "npm-normalize-package-bin": "^1.0.1"
+ }
+ },
+ "npmlog": {
+ "version": "4.1.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "are-we-there-yet": "~1.1.2",
+ "console-control-strings": "~1.1.0",
+ "gauge": "~2.7.3",
+ "set-blocking": "~2.0.0"
+ }
+ },
+ "number-is-nan": {
+ "version": "1.0.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "object-assign": {
+ "version": "4.1.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "once": {
+ "version": "1.4.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "wrappy": "1"
+ }
+ },
+ "os-homedir": {
+ "version": "1.0.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "os-tmpdir": {
+ "version": "1.0.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "osenv": {
+ "version": "0.1.5",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "os-homedir": "^1.0.0",
+ "os-tmpdir": "^1.0.0"
+ }
+ },
+ "path-is-absolute": {
+ "version": "1.0.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "process-nextick-args": {
+ "version": "2.0.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "rc": {
+ "version": "1.2.8",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ }
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "rimraf": {
+ "version": "2.7.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.1.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "safer-buffer": {
+ "version": "2.1.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "sax": {
+ "version": "1.2.4",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "semver": {
+ "version": "5.7.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "set-blocking": {
+ "version": "2.0.0",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "signal-exit": {
+ "version": "3.0.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "string-width": {
+ "version": "1.0.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "code-point-at": "^1.0.0",
+ "is-fullwidth-code-point": "^1.0.0",
+ "strip-ansi": "^3.0.0"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ }
+ },
+ "strip-json-comments": {
+ "version": "2.0.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "tar": {
+ "version": "4.4.13",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "chownr": "^1.1.1",
+ "fs-minipass": "^1.2.5",
+ "minipass": "^2.8.6",
+ "minizlib": "^1.2.1",
+ "mkdirp": "^0.5.0",
+ "safe-buffer": "^5.1.2",
+ "yallist": "^3.0.3"
+ }
+ },
+ "util-deprecate": {
+ "version": "1.0.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "wide-align": {
+ "version": "1.1.3",
+ "bundled": true,
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "string-width": "^1.0.2 || 2"
+ }
+ },
+ "wrappy": {
+ "version": "1.0.2",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ },
+ "yallist": {
+ "version": "3.1.1",
+ "bundled": true,
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "function-bind": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
+ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
+ "dev": true
+ },
+ "functional-red-black-tree": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz",
+ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=",
+ "dev": true
+ },
+ "gensync": {
+ "version": "1.0.0-beta.1",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz",
+ "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==",
+ "dev": true
+ },
+ "get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true
+ },
+ "get-func-name": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
+ "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
+ "dev": true
+ },
+ "get-package-type": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
+ "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",
+ "dev": true
+ },
+ "get-port": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/get-port/-/get-port-5.1.1.tgz",
+ "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==",
+ "dev": true
+ },
+ "get-stream": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
+ "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+ "dev": true,
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "get-value": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz",
+ "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=",
+ "dev": true
+ },
+ "getpass": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
+ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "glob": {
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "glob-parent": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz",
+ "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "is-glob": "^3.1.0",
+ "path-dirname": "^1.0.0"
+ },
+ "dependencies": {
+ "is-glob": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz",
+ "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "is-extglob": "^2.1.0"
+ }
+ }
+ }
+ },
+ "global-dirs": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz",
+ "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==",
+ "dev": true,
+ "requires": {
+ "ini": "^1.3.5"
+ }
+ },
+ "global-modules": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz",
+ "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==",
+ "dev": true,
+ "requires": {
+ "global-prefix": "^3.0.0"
+ },
+ "dependencies": {
+ "global-prefix": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz",
+ "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==",
+ "dev": true,
+ "requires": {
+ "ini": "^1.3.5",
+ "kind-of": "^6.0.2",
+ "which": "^1.3.1"
+ }
+ },
+ "which": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "global-prefix": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz",
+ "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=",
+ "dev": true,
+ "requires": {
+ "expand-tilde": "^2.0.2",
+ "homedir-polyfill": "^1.0.1",
+ "ini": "^1.3.4",
+ "is-windows": "^1.0.1",
+ "which": "^1.2.14"
+ }
+ },
+ "globals": {
+ "version": "11.7.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.7.0.tgz",
+ "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==",
+ "dev": true
+ },
+ "globby": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.1.tgz",
+ "integrity": "sha512-iH9RmgwCmUJHi2z5o2l3eTtGBtXek1OYlHrbcxOYugyHLmAsZrPj43OtHThd62Buh/Vv6VyCBD2bdyWcGNQqoQ==",
+ "dev": true,
+ "requires": {
+ "array-union": "^2.1.0",
+ "dir-glob": "^3.0.1",
+ "fast-glob": "^3.1.1",
+ "ignore": "^5.1.4",
+ "merge2": "^1.3.0",
+ "slash": "^3.0.0"
+ },
+ "dependencies": {
+ "ignore": {
+ "version": "5.1.8",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz",
+ "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==",
+ "dev": true
+ },
+ "slash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
+ "dev": true
+ }
+ }
+ },
+ "got": {
+ "version": "11.6.2",
+ "resolved": "https://registry.npmjs.org/got/-/got-11.6.2.tgz",
+ "integrity": "sha512-/21qgUePCeus29Jk7MEti8cgQUNXFSWfIevNIk4H7u1wmXNDrGPKPY6YsPY+o9CIT/a2DjCjRz0x1nM9FtS2/A==",
+ "dev": true,
+ "requires": {
+ "@sindresorhus/is": "^3.1.1",
+ "@szmarczak/http-timer": "^4.0.5",
+ "@types/cacheable-request": "^6.0.1",
+ "@types/responselike": "^1.0.0",
+ "cacheable-lookup": "^5.0.3",
+ "cacheable-request": "^7.0.1",
+ "decompress-response": "^6.0.0",
+ "http2-wrapper": "^1.0.0-beta.5.2",
+ "lowercase-keys": "^2.0.0",
+ "p-cancelable": "^2.0.0",
+ "responselike": "^2.0.0"
+ }
+ },
+ "graceful-fs": {
+ "version": "4.1.15",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz",
+ "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
+ "dev": true
+ },
+ "grapheme-splitter": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",
+ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
+ "dev": true
+ },
+ "growl": {
+ "version": "1.10.5",
+ "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
+ "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==",
+ "dev": true
+ },
+ "har-schema": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
+ "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",
+ "dev": true
+ },
+ "har-validator": {
+ "version": "5.1.5",
+ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz",
+ "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.12.3",
+ "har-schema": "^2.0.0"
+ }
+ },
+ "hard-rejection": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz",
+ "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==",
+ "dev": true
+ },
+ "has": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
+ "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
+ "dev": true,
+ "requires": {
+ "function-bind": "^1.1.1"
+ }
+ },
+ "has-ansi": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
+ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
+ }
+ }
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
+ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
+ "dev": true
+ },
+ "has-symbols": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
+ "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
+ "dev": true
+ },
+ "has-value": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz",
+ "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=",
+ "dev": true,
+ "requires": {
+ "get-value": "^2.0.6",
+ "has-values": "^1.0.0",
+ "isobject": "^3.0.0"
+ }
+ },
+ "has-values": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz",
+ "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "kind-of": "^4.0.0"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz",
+ "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "has-yarn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz",
+ "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==",
+ "dev": true
+ },
+ "hash-base": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz",
+ "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.6.0",
+ "safe-buffer": "^5.2.0"
+ },
+ "dependencies": {
+ "inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "dev": true
+ }
+ }
+ },
+ "hash.js": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz",
+ "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "minimalistic-assert": "^1.0.1"
+ }
+ },
+ "hasha": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.0.tgz",
+ "integrity": "sha512-2W+jKdQbAdSIrggA8Q35Br8qKadTrqCTC8+XZvBWepKDK6m9XkX6Iz1a2yh2KP01kzAR/dpuMeUnocoLYDcskw==",
+ "dev": true,
+ "requires": {
+ "is-stream": "^2.0.0",
+ "type-fest": "^0.8.0"
+ },
+ "dependencies": {
+ "is-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz",
+ "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==",
+ "dev": true
+ }
+ }
+ },
+ "he": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
+ "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
+ "dev": true
+ },
+ "hmac-drbg": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz",
+ "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=",
+ "dev": true,
+ "requires": {
+ "hash.js": "^1.0.3",
+ "minimalistic-assert": "^1.0.0",
+ "minimalistic-crypto-utils": "^1.0.1"
+ }
+ },
+ "homedir-polyfill": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz",
+ "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==",
+ "dev": true,
+ "requires": {
+ "parse-passwd": "^1.0.0"
+ }
+ },
+ "hosted-git-info": {
+ "version": "2.8.8",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz",
+ "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==",
+ "dev": true
+ },
+ "html-escaper": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
+ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
+ "dev": true
+ },
+ "http-cache-semantics": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz",
+ "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==",
+ "dev": true
+ },
+ "http-errors": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
+ "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
+ "dev": true,
+ "requires": {
+ "depd": "~1.1.2",
+ "inherits": "2.0.3",
+ "setprototypeof": "1.1.1",
+ "statuses": ">= 1.5.0 < 2",
+ "toidentifier": "1.0.0"
+ }
+ },
+ "http-signature": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
+ "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
+ }
+ },
+ "http2-wrapper": {
+ "version": "1.0.0-beta.5.2",
+ "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.0-beta.5.2.tgz",
+ "integrity": "sha512-xYz9goEyBnC8XwXDTuC/MZ6t+MrKVQZOk4s7+PaDkwIsQd8IwqvM+0M6bA/2lvG8GHXcPdf+MejTUeO2LCPCeQ==",
+ "dev": true,
+ "requires": {
+ "quick-lru": "^5.1.1",
+ "resolve-alpn": "^1.0.0"
+ }
+ },
+ "https-browserify": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz",
+ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=",
+ "dev": true
+ },
+ "https-proxy-agent": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz",
+ "integrity": "sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==",
+ "dev": true,
+ "requires": {
+ "agent-base": "5",
+ "debug": "4"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "dev": true,
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
+ },
+ "ieee754": {
+ "version": "1.1.13",
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz",
+ "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==",
+ "dev": true
+ },
+ "iferr": {
+ "version": "0.1.5",
+ "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz",
+ "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=",
+ "dev": true
+ },
+ "ignore": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
+ "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
+ "dev": true
+ },
+ "import-fresh": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz",
+ "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==",
+ "dev": true,
+ "requires": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ }
+ },
+ "import-lazy": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz",
+ "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=",
+ "dev": true
+ },
+ "import-local": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz",
+ "integrity": "sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ==",
+ "dev": true,
+ "requires": {
+ "pkg-dir": "^3.0.0",
+ "resolve-cwd": "^2.0.0"
+ }
+ },
+ "imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
+ "dev": true
+ },
+ "indent-string": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz",
+ "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=",
+ "dev": true
+ },
+ "infer-owner": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz",
+ "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==",
+ "dev": true
+ },
+ "inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+ "dev": true,
+ "requires": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "inherits": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
+ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
+ "dev": true
+ },
+ "ini": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
+ "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
+ "dev": true
+ },
+ "inquirer": {
+ "version": "7.3.3",
+ "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz",
+ "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==",
+ "dev": true,
+ "requires": {
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.1.0",
+ "cli-cursor": "^3.1.0",
+ "cli-width": "^3.0.0",
+ "external-editor": "^3.0.3",
+ "figures": "^3.0.0",
+ "lodash": "^4.17.19",
+ "mute-stream": "0.0.8",
+ "run-async": "^2.4.0",
+ "rxjs": "^6.6.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "through": "^2.3.6"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
+ "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz",
+ "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "interpret": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
+ "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
+ "dev": true
+ },
+ "invariant": {
+ "version": "2.2.4",
+ "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
+ "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
+ "dev": true,
+ "requires": {
+ "loose-envify": "^1.0.0"
+ }
+ },
+ "irregular-plurals": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.2.0.tgz",
+ "integrity": "sha512-YqTdPLfwP7YFN0SsD3QUVCkm9ZG2VzOXv3DOrw5G5mkMbVwptTwVcFv7/C0vOpBmgTxAeTG19XpUs1E522LW9Q==",
+ "dev": true
+ },
+ "is-accessor-descriptor": {
+ "version": "0.1.6",
+ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",
+ "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "is-arguments": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.0.4.tgz",
+ "integrity": "sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==",
+ "dev": true
+ },
+ "is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
+ "dev": true
+ },
+ "is-binary-path": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz",
+ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "binary-extensions": "^1.0.0"
+ }
+ },
+ "is-buffer": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
+ "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
+ "dev": true
+ },
+ "is-callable": {
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz",
+ "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==",
+ "dev": true
+ },
+ "is-ci": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz",
+ "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==",
+ "dev": true,
+ "requires": {
+ "ci-info": "^2.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
+ "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "is-date-object": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz",
+ "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==",
+ "dev": true
+ },
+ "is-descriptor": {
+ "version": "0.1.6",
+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",
+ "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^0.1.6",
+ "is-data-descriptor": "^0.1.4",
+ "kind-of": "^5.0.0"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",
+ "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",
+ "dev": true
+ }
+ }
+ },
+ "is-docker": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz",
+ "integrity": "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==",
+ "dev": true
+ },
+ "is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=",
+ "dev": true
+ },
+ "is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
+ "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
+ "dev": true
+ },
+ "is-glob": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
+ "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
+ "dev": true,
+ "requires": {
+ "is-extglob": "^2.1.1"
+ }
+ },
+ "is-installed-globally": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz",
+ "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==",
+ "dev": true,
+ "requires": {
+ "global-dirs": "^2.0.1",
+ "is-path-inside": "^3.0.1"
+ }
+ },
+ "is-map": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.1.tgz",
+ "integrity": "sha512-T/S49scO8plUiAOA2DBTBG3JHpn1yiw0kRp6dgiZ0v2/6twi5eiB0rHtHFH9ZIrvlWc6+4O+m4zg5+Z833aXgw==",
+ "dev": true
+ },
+ "is-npm": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz",
+ "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==",
+ "dev": true
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
+ "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "is-obj": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
+ "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",
+ "dev": true
+ },
+ "is-path-inside": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz",
+ "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==",
+ "dev": true
+ },
+ "is-plain-obj": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz",
+ "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=",
+ "dev": true
+ },
+ "is-plain-object": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",
+ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ },
+ "is-regex": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz",
+ "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==",
+ "dev": true,
+ "requires": {
+ "has": "^1.0.3"
+ }
+ },
+ "is-set": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.1.tgz",
+ "integrity": "sha512-eJEzOtVyenDs1TMzSQ3kU3K+E0GUS9sno+F0OBT97xsgcJsF9nXMBtkT9/kut5JEpM7oL7X/0qxR17K3mcwIAA==",
+ "dev": true
+ },
+ "is-string": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz",
+ "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==",
+ "dev": true
+ },
+ "is-symbol": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz",
+ "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==",
+ "dev": true,
+ "requires": {
+ "has-symbols": "^1.0.1"
+ }
+ },
+ "is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
+ "dev": true
+ },
+ "is-utf8": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
+ "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=",
+ "dev": true
+ },
+ "is-windows": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",
+ "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
+ "dev": true
+ },
+ "is-wsl": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "dev": true,
+ "requires": {
+ "is-docker": "^2.0.0"
+ }
+ },
+ "is-yarn-global": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz",
+ "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==",
+ "dev": true
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
+ "dev": true
+ },
+ "isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
+ "dev": true
+ },
+ "isobject": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
+ "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
+ "dev": true
+ },
+ "isstream": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
+ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
+ "dev": true
+ },
+ "istanbul-lib-coverage": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz",
+ "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==",
+ "dev": true
+ },
+ "istanbul-lib-hook": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz",
+ "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==",
+ "dev": true,
+ "requires": {
+ "append-transform": "^2.0.0"
+ }
+ },
+ "istanbul-lib-instrument": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz",
+ "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==",
+ "dev": true,
+ "requires": {
+ "@babel/core": "^7.7.5",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-coverage": "^3.0.0",
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ }
+ }
+ },
+ "istanbul-lib-processinfo": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz",
+ "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==",
+ "dev": true,
+ "requires": {
+ "archy": "^1.0.0",
+ "cross-spawn": "^7.0.0",
+ "istanbul-lib-coverage": "^3.0.0-alpha.1",
+ "make-dir": "^3.0.0",
+ "p-map": "^3.0.0",
+ "rimraf": "^3.0.0",
+ "uuid": "^3.3.3"
+ },
+ "dependencies": {
+ "cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "requires": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ }
+ },
+ "make-dir": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ },
+ "shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^3.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true
+ },
+ "uuid": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
+ "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
+ "dev": true
+ },
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "istanbul-lib-report": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz",
+ "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==",
+ "dev": true,
+ "requires": {
+ "istanbul-lib-coverage": "^3.0.0",
+ "make-dir": "^3.0.0",
+ "supports-color": "^7.1.0"
+ },
+ "dependencies": {
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "make-dir": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "istanbul-lib-source-maps": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz",
+ "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==",
+ "dev": true,
+ "requires": {
+ "debug": "^4.1.1",
+ "istanbul-lib-coverage": "^3.0.0",
+ "source-map": "^0.6.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
+ "istanbul-reports": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz",
+ "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==",
+ "dev": true,
+ "requires": {
+ "html-escaper": "^2.0.0",
+ "istanbul-lib-report": "^3.0.0"
+ }
+ },
+ "iterate-iterator": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/iterate-iterator/-/iterate-iterator-1.0.1.tgz",
+ "integrity": "sha512-3Q6tudGN05kbkDQDI4CqjaBf4qf85w6W6GnuZDtUVYwKgtC1q8yxYX7CZed7N+tLzQqS6roujWvszf13T+n9aw==",
+ "dev": true
+ },
+ "iterate-value": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.2.tgz",
+ "integrity": "sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==",
+ "dev": true,
+ "requires": {
+ "es-get-iterator": "^1.0.2",
+ "iterate-iterator": "^1.0.1"
+ }
+ },
+ "jake": {
+ "version": "10.8.2",
+ "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz",
+ "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==",
+ "dev": true,
+ "requires": {
+ "async": "0.9.x",
+ "chalk": "^2.4.2",
+ "filelist": "^1.0.1",
+ "minimatch": "^3.0.4"
+ }
+ },
+ "js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true
+ },
+ "js-yaml": {
+ "version": "3.13.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
+ "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ },
+ "jsbn": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
+ "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
+ "dev": true
+ },
+ "jsesc": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
+ "integrity": "sha1-gFZNLkg9rPbo7yCWUKZ98/DCg6Q=",
+ "dev": true
+ },
+ "json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true
+ },
+ "json-parse-better-errors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
+ "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==",
+ "dev": true
+ },
+ "json-schema": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
+ "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
+ "dev": true
+ },
+ "json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha1-afaofZUTq4u4/mO9sJecRI5oRmA=",
+ "dev": true
+ },
+ "json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
+ "dev": true
+ },
+ "json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
+ "dev": true
+ },
+ "json5": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
+ "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ },
+ "dependencies": {
+ "minimist": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
+ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
+ "dev": true
+ }
+ }
+ },
+ "jsonfile": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz",
+ "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.6",
+ "universalify": "^1.0.0"
+ }
+ },
+ "jsprim": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
+ "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.2.3",
+ "verror": "1.10.0"
+ }
+ },
+ "keyv": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.0.1.tgz",
+ "integrity": "sha512-xz6Jv6oNkbhrFCvCP7HQa8AaII8y8LRpoSm661NOKLr4uHuBwhX4epXrPQgF3+xdJnN4Esm5X0xwY4bOlALOtw==",
+ "dev": true,
+ "requires": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "kind-of": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+ "dev": true
+ },
+ "latest-version": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz",
+ "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==",
+ "dev": true,
+ "requires": {
+ "package-json": "^6.3.0"
+ }
+ },
+ "lazystream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz",
+ "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=",
+ "dev": true,
+ "requires": {
+ "readable-stream": "^2.0.5"
+ }
+ },
+ "leven": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
+ "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==",
+ "dev": true
+ },
+ "levenary": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/levenary/-/levenary-1.1.1.tgz",
+ "integrity": "sha512-mkAdOIt79FD6irqjYSs4rdbnlT5vRonMEvBVPVb3XmevfS8kgRXwfes0dhPdEtzTWD/1eNE/Bm/G1iRt6DcnQQ==",
+ "dev": true,
+ "requires": {
+ "leven": "^3.1.0"
+ }
+ },
+ "levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "requires": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ }
+ },
+ "lighthouse-logger": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.2.0.tgz",
+ "integrity": "sha512-wzUvdIeJZhRsG6gpZfmSCfysaxNEr43i+QT+Hie94wvHDKFLi4n7C2GqZ4sTC+PH5b5iktmXJvU87rWvhP3lHw==",
+ "dev": true,
+ "requires": {
+ "debug": "^2.6.8",
+ "marky": "^1.2.0"
+ }
+ },
+ "lines-and-columns": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz",
+ "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=",
+ "dev": true
+ },
+ "load-json-file": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
+ "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^2.2.0",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "strip-bom": "^2.0.0"
+ }
+ },
+ "loader-runner": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz",
+ "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==",
+ "dev": true
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
+ "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
+ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "lodash": {
+ "version": "4.17.20",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
+ "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
+ "dev": true
+ },
+ "lodash.clonedeep": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
+ "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=",
+ "dev": true
+ },
+ "lodash.defaults": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
+ "integrity": "sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw=",
+ "dev": true
+ },
+ "lodash.difference": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz",
+ "integrity": "sha1-nMtOUF1Ia5FlE0V3KIWi3yf9AXw=",
+ "dev": true
+ },
+ "lodash.flatten": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
+ "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=",
+ "dev": true
+ },
+ "lodash.flattendeep": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz",
+ "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=",
+ "dev": true
+ },
+ "lodash.isobject": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-3.0.2.tgz",
+ "integrity": "sha1-PI+41bW/S/kK4G4U8qUwpO2TXh0=",
+ "dev": true
+ },
+ "lodash.isplainobject": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
+ "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=",
+ "dev": true
+ },
+ "lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true
+ },
+ "lodash.pickby": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/lodash.pickby/-/lodash.pickby-4.6.0.tgz",
+ "integrity": "sha1-feoh2MGNdwOifHBMFdO4SmfjOv8=",
+ "dev": true
+ },
+ "lodash.union": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz",
+ "integrity": "sha1-SLtQiECfFvGCFmZkHETdGqrjzYg=",
+ "dev": true
+ },
+ "lodash.zip": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/lodash.zip/-/lodash.zip-4.2.0.tgz",
+ "integrity": "sha1-7GZi5IlkCO1KtsVCo5kLcswIACA=",
+ "dev": true
+ },
+ "log-symbols": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz",
+ "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==",
+ "dev": true,
+ "requires": {
+ "chalk": "^4.0.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
+ "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "loglevel": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.7.0.tgz",
+ "integrity": "sha512-i2sY04nal5jDcagM3FMfG++T69GEEM8CYuOfeOIvmXzOIcwE9a/CJPR0MFM97pYMj/u10lzz7/zd7+qwhrBTqQ==",
+ "dev": true
+ },
+ "loglevel-plugin-prefix": {
+ "version": "0.8.4",
+ "resolved": "https://registry.npmjs.org/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.4.tgz",
+ "integrity": "sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g==",
+ "dev": true
+ },
+ "loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "dev": true,
+ "requires": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ }
+ },
+ "lowercase-keys": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",
+ "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",
+ "dev": true
+ },
+ "lru-cache": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
+ "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
+ "dev": true,
+ "requires": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "make-dir": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz",
+ "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==",
+ "dev": true,
+ "requires": {
+ "pify": "^4.0.1",
+ "semver": "^5.6.0"
+ },
+ "dependencies": {
+ "pify": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
+ "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
+ "dev": true
+ },
+ "semver": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
+ "dev": true
+ }
+ }
+ },
+ "map-cache": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz",
+ "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=",
+ "dev": true
+ },
+ "map-obj": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
+ "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
+ "dev": true
+ },
+ "map-visit": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz",
+ "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=",
+ "dev": true,
+ "requires": {
+ "object-visit": "^1.0.0"
+ }
+ },
+ "marky": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.1.tgz",
+ "integrity": "sha512-md9k+Gxa3qLH6sUKpeC2CNkJK/Ld+bEz5X96nYwloqphQE0CKCVEKco/6jxEZixinqNdz5RFi/KaCyfbMDMAXQ==",
+ "dev": true
+ },
+ "md5.js": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
+ "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==",
+ "dev": true,
+ "requires": {
+ "hash-base": "^3.0.0",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ }
+ },
+ "memory-fs": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz",
+ "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=",
+ "dev": true,
+ "requires": {
+ "errno": "^0.1.3",
+ "readable-stream": "^2.0.1"
+ }
+ },
+ "meow": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/meow/-/meow-7.0.1.tgz",
+ "integrity": "sha512-tBKIQqVrAHqwit0vfuFPY3LlzJYkEOFyKa3bPgxzNl6q/RtN8KQ+ALYEASYuFayzSAsjlhXj/JZ10rH85Q6TUw==",
+ "dev": true,
+ "requires": {
+ "@types/minimist": "^1.2.0",
+ "arrify": "^2.0.1",
+ "camelcase": "^6.0.0",
+ "camelcase-keys": "^6.2.2",
+ "decamelize-keys": "^1.1.0",
+ "hard-rejection": "^2.1.0",
+ "minimist-options": "^4.0.2",
+ "normalize-package-data": "^2.5.0",
+ "read-pkg-up": "^7.0.1",
+ "redent": "^3.0.0",
+ "trim-newlines": "^3.0.0",
+ "type-fest": "^0.13.1",
+ "yargs-parser": "^18.1.3"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.0.0.tgz",
+ "integrity": "sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==",
+ "dev": true
+ },
+ "camelcase-keys": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz",
+ "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.3.1",
+ "map-obj": "^4.0.0",
+ "quick-lru": "^4.0.1"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
+ "dev": true
+ }
+ }
+ },
+ "map-obj": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.1.0.tgz",
+ "integrity": "sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g==",
+ "dev": true
+ },
+ "parse-json": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz",
+ "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-better-errors": "^1.0.1",
+ "lines-and-columns": "^1.1.6"
+ }
+ },
+ "quick-lru": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz",
+ "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==",
+ "dev": true
+ },
+ "read-pkg": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz",
+ "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==",
+ "dev": true,
+ "requires": {
+ "@types/normalize-package-data": "^2.4.0",
+ "normalize-package-data": "^2.5.0",
+ "parse-json": "^5.0.0",
+ "type-fest": "^0.6.0"
+ },
+ "dependencies": {
+ "type-fest": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz",
+ "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==",
+ "dev": true
+ }
+ }
+ },
+ "read-pkg-up": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz",
+ "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==",
+ "dev": true,
+ "requires": {
+ "find-up": "^4.1.0",
+ "read-pkg": "^5.2.0",
+ "type-fest": "^0.8.1"
+ },
+ "dependencies": {
+ "type-fest": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz",
+ "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
+ "dev": true
+ }
+ }
+ },
+ "type-fest": {
+ "version": "0.13.1",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",
+ "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",
+ "dev": true
+ }
+ }
+ },
+ "merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz",
+ "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "miller-rabin": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz",
+ "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.0.0",
+ "brorand": "^1.0.1"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.11.9",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz",
+ "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
+ "dev": true
+ }
+ }
+ },
+ "mime": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
+ "integrity": "sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE=",
+ "dev": true
+ },
+ "mime-db": {
+ "version": "1.44.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
+ "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==",
+ "dev": true
+ },
+ "mime-types": {
+ "version": "2.1.27",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",
+ "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",
+ "dev": true,
+ "requires": {
+ "mime-db": "1.44.0"
+ }
+ },
+ "mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true
+ },
+ "mimic-response": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
+ "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
+ "dev": true
+ },
+ "min-indent": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
+ "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==",
+ "dev": true
+ },
+ "minimalistic-assert": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
+ "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==",
+ "dev": true
+ },
+ "minimalistic-crypto-utils": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz",
+ "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=",
+ "dev": true
+ },
+ "minimatch": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
+ "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
+ "dev": true,
+ "requires": {
+ "brace-expansion": "^1.1.7"
+ }
+ },
+ "minimist": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
+ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
+ "dev": true
+ },
+ "minimist-options": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz",
+ "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==",
+ "dev": true,
+ "requires": {
+ "arrify": "^1.0.1",
+ "is-plain-obj": "^1.1.0",
+ "kind-of": "^6.0.3"
+ },
+ "dependencies": {
+ "arrify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
+ "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=",
+ "dev": true
+ }
+ }
+ },
+ "mississippi": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz",
+ "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==",
+ "dev": true,
+ "requires": {
+ "concat-stream": "^1.5.0",
+ "duplexify": "^3.4.2",
+ "end-of-stream": "^1.1.0",
+ "flush-write-stream": "^1.0.0",
+ "from2": "^2.1.0",
+ "parallel-transform": "^1.1.0",
+ "pump": "^3.0.0",
+ "pumpify": "^1.3.3",
+ "stream-each": "^1.1.0",
+ "through2": "^2.0.0"
+ }
+ },
+ "mixin-deep": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz",
+ "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==",
+ "dev": true,
+ "requires": {
+ "for-in": "^1.0.2",
+ "is-extendable": "^1.0.1"
+ },
+ "dependencies": {
+ "is-extendable": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz",
+ "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",
+ "dev": true,
+ "requires": {
+ "is-plain-object": "^2.0.4"
+ }
+ }
+ }
+ },
+ "mkdirp": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
+ "dev": true
+ },
+ "mkdirp-classic": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
+ "dev": true
+ },
+ "mocha": {
+ "version": "8.1.3",
+ "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.1.3.tgz",
+ "integrity": "sha512-ZbaYib4hT4PpF4bdSO2DohooKXIn4lDeiYqB+vTmCdr6l2woW0b6H3pf5x4sM5nwQMru9RvjjHYWVGltR50ZBw==",
+ "dev": true,
+ "requires": {
+ "ansi-colors": "4.1.1",
+ "browser-stdout": "1.3.1",
+ "chokidar": "3.4.2",
+ "debug": "4.1.1",
+ "diff": "4.0.2",
+ "escape-string-regexp": "4.0.0",
+ "find-up": "5.0.0",
+ "glob": "7.1.6",
+ "growl": "1.10.5",
+ "he": "1.2.0",
+ "js-yaml": "3.14.0",
+ "log-symbols": "4.0.0",
+ "minimatch": "3.0.4",
+ "ms": "2.1.2",
+ "object.assign": "4.1.0",
+ "promise.allsettled": "1.0.2",
+ "serialize-javascript": "4.0.0",
+ "strip-json-comments": "3.0.1",
+ "supports-color": "7.1.0",
+ "which": "2.0.2",
+ "wide-align": "1.1.3",
+ "workerpool": "6.0.0",
+ "yargs": "13.3.2",
+ "yargs-parser": "13.1.2",
+ "yargs-unparser": "1.6.1"
+ },
+ "dependencies": {
+ "anymatch": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz",
+ "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==",
+ "dev": true,
+ "requires": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ }
+ },
+ "binary-extensions": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz",
+ "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==",
+ "dev": true
+ },
+ "braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "dev": true,
+ "requires": {
+ "fill-range": "^7.0.1"
+ }
+ },
+ "chokidar": {
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.2.tgz",
+ "integrity": "sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==",
+ "dev": true,
+ "requires": {
+ "anymatch": "~3.1.1",
+ "braces": "~3.0.2",
+ "fsevents": "~2.1.2",
+ "glob-parent": "~5.1.0",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.4.0"
+ }
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true
+ },
+ "fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dev": true,
+ "requires": {
+ "to-regex-range": "^5.0.1"
+ }
+ },
+ "find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "fsevents": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz",
+ "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==",
+ "dev": true,
+ "optional": true
+ },
+ "glob-parent": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
+ "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
+ "dev": true,
+ "requires": {
+ "is-glob": "^4.0.1"
+ }
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "requires": {
+ "binary-extensions": "^2.0.0"
+ }
+ },
+ "is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true
+ },
+ "js-yaml": {
+ "version": "3.14.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz",
+ "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^5.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "p-limit": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.0.2.tgz",
+ "integrity": "sha512-iwqZSOoWIW+Ew4kAGUlN16J4M7OB3ysMLSZtnhmqx7njIHFPlxWBX8xo3lVTyFVq6mI/lL9qt2IsN1sHwaxJkg==",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^3.0.2"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ },
+ "readdirp": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz",
+ "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==",
+ "dev": true,
+ "requires": {
+ "picomatch": "^2.2.1"
+ }
+ },
+ "strip-json-comments": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz",
+ "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ },
+ "to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "requires": {
+ "is-number": "^7.0.0"
+ }
+ },
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
+ "yargs": {
+ "version": "13.3.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz",
+ "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==",
+ "dev": true,
+ "requires": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
+ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "p-limit": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
+ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "path-exists": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
+ "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
+ "dev": true
+ }
+ }
+ },
+ "yargs-parser": {
+ "version": "13.1.2",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
+ "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ }
+ }
+ },
+ "move-concurrently": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz",
+ "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=",
+ "dev": true,
+ "requires": {
+ "aproba": "^1.1.1",
+ "copy-concurrently": "^1.0.0",
+ "fs-write-stream-atomic": "^1.0.8",
+ "mkdirp": "^0.5.1",
+ "rimraf": "^2.5.4",
+ "run-queue": "^1.0.3"
+ },
+ "dependencies": {
+ "mkdirp": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
+ "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ },
+ "rimraf": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
+ "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
+ "dev": true
+ },
+ "mute-stream": {
+ "version": "0.0.8",
+ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",
+ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==",
+ "dev": true
+ },
+ "nan": {
+ "version": "2.14.0",
+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz",
+ "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==",
+ "dev": true,
+ "optional": true
+ },
+ "nanolru": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/nanolru/-/nanolru-1.0.0.tgz",
+ "integrity": "sha512-GyQkE8M32pULhQk7Sko5raoIbPalAk90ICG+An4fq6fCsFHsP6fB2K46WGXVdoJpy4SGMnZ/EKbo123fZJomWg==",
+ "dev": true
+ },
+ "nanomatch": {
+ "version": "1.2.13",
+ "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
+ "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "fragment-cache": "^0.2.1",
+ "is-windows": "^1.0.2",
+ "kind-of": "^6.0.2",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ }
+ },
+ "natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
+ "dev": true
+ },
+ "neo-async": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
+ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
+ "dev": true
+ },
+ "nice-try": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.4.tgz",
+ "integrity": "sha512-2NpiFHqC87y/zFke0fC0spBXL3bBsoh/p5H1EFhshxjCR5+0g2d6BiXbUFz9v1sAcxsk2htp2eQnNIci2dIYcA==",
+ "dev": true
+ },
+ "node-libs-browser": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz",
+ "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==",
+ "dev": true,
+ "requires": {
+ "assert": "^1.1.1",
+ "browserify-zlib": "^0.2.0",
+ "buffer": "^4.3.0",
+ "console-browserify": "^1.1.0",
+ "constants-browserify": "^1.0.0",
+ "crypto-browserify": "^3.11.0",
+ "domain-browser": "^1.1.1",
+ "events": "^3.0.0",
+ "https-browserify": "^1.0.0",
+ "os-browserify": "^0.3.0",
+ "path-browserify": "0.0.1",
+ "process": "^0.11.10",
+ "punycode": "^1.2.4",
+ "querystring-es3": "^0.2.0",
+ "readable-stream": "^2.3.3",
+ "stream-browserify": "^2.0.1",
+ "stream-http": "^2.7.2",
+ "string_decoder": "^1.0.0",
+ "timers-browserify": "^2.0.4",
+ "tty-browserify": "0.0.0",
+ "url": "^0.11.0",
+ "util": "^0.11.0",
+ "vm-browserify": "^1.0.1"
+ },
+ "dependencies": {
+ "buffer": {
+ "version": "4.9.2",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz",
+ "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==",
+ "dev": true,
+ "requires": {
+ "base64-js": "^1.0.2",
+ "ieee754": "^1.1.4",
+ "isarray": "^1.0.0"
+ }
+ },
+ "punycode": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
+ "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",
+ "dev": true
+ }
+ }
+ },
+ "node-preload": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz",
+ "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==",
+ "dev": true,
+ "requires": {
+ "process-on-spawn": "^1.0.0"
+ }
+ },
+ "node-releases": {
+ "version": "1.1.61",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.61.tgz",
+ "integrity": "sha512-DD5vebQLg8jLCOzwupn954fbIiZht05DAZs0k2u8NStSe6h9XdsuIQL8hSRKYiU8WUQRznmSDrKGbv3ObOmC7g==",
+ "dev": true
+ },
+ "normalize-package-data": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
+ "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
+ "dev": true,
+ "requires": {
+ "hosted-git-info": "^2.1.4",
+ "resolve": "^1.10.0",
+ "semver": "2 || 3 || 4 || 5",
+ "validate-npm-package-license": "^3.0.1"
+ }
+ },
+ "normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true
+ },
+ "normalize-url": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz",
+ "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==",
+ "dev": true
+ },
+ "nyc": {
+ "version": "15.1.0",
+ "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz",
+ "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==",
+ "dev": true,
+ "requires": {
+ "@istanbuljs/load-nyc-config": "^1.0.0",
+ "@istanbuljs/schema": "^0.1.2",
+ "caching-transform": "^4.0.0",
+ "convert-source-map": "^1.7.0",
+ "decamelize": "^1.2.0",
+ "find-cache-dir": "^3.2.0",
+ "find-up": "^4.1.0",
+ "foreground-child": "^2.0.0",
+ "get-package-type": "^0.1.0",
+ "glob": "^7.1.6",
+ "istanbul-lib-coverage": "^3.0.0",
+ "istanbul-lib-hook": "^3.0.0",
+ "istanbul-lib-instrument": "^4.0.0",
+ "istanbul-lib-processinfo": "^2.0.2",
+ "istanbul-lib-report": "^3.0.0",
+ "istanbul-lib-source-maps": "^4.0.0",
+ "istanbul-reports": "^3.0.2",
+ "make-dir": "^3.0.0",
+ "node-preload": "^0.2.1",
+ "p-map": "^3.0.0",
+ "process-on-spawn": "^1.0.0",
+ "resolve-from": "^5.0.0",
+ "rimraf": "^3.0.0",
+ "signal-exit": "^3.0.2",
+ "spawn-wrap": "^2.0.0",
+ "test-exclude": "^6.0.0",
+ "yargs": "^15.0.2"
+ },
+ "dependencies": {
+ "find-cache-dir": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz",
+ "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==",
+ "dev": true,
+ "requires": {
+ "commondir": "^1.0.1",
+ "make-dir": "^3.0.2",
+ "pkg-dir": "^4.1.0"
+ }
+ },
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "glob": {
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "make-dir": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
+ "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
+ "dev": true,
+ "requires": {
+ "find-up": "^4.0.0"
+ }
+ },
+ "resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+ "dev": true
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ }
+ }
+ },
+ "oauth-sign": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
+ "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==",
+ "dev": true
+ },
+ "object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "dev": true
+ },
+ "object-copy": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz",
+ "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=",
+ "dev": true,
+ "requires": {
+ "copy-descriptor": "^0.1.0",
+ "define-property": "^0.2.5",
+ "kind-of": "^3.0.3"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ },
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "object-inspect": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz",
+ "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==",
+ "dev": true
+ },
+ "object-keys": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+ "dev": true
+ },
+ "object-visit": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz",
+ "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.0"
+ }
+ },
+ "object.assign": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz",
+ "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.2",
+ "function-bind": "^1.1.1",
+ "has-symbols": "^1.0.0",
+ "object-keys": "^1.0.11"
+ }
+ },
+ "object.pick": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz",
+ "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ },
+ "object.values": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.1.tgz",
+ "integrity": "sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.0-next.1",
+ "function-bind": "^1.1.1",
+ "has": "^1.0.3"
+ }
+ },
+ "on-finished": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
+ "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
+ "dev": true,
+ "requires": {
+ "ee-first": "1.1.1"
+ }
+ },
+ "once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+ "dev": true,
+ "requires": {
+ "wrappy": "1"
+ }
+ },
+ "onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "dev": true,
+ "requires": {
+ "mimic-fn": "^2.1.0"
+ }
+ },
+ "optionator": {
+ "version": "0.9.1",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
+ "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",
+ "dev": true,
+ "requires": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.3"
+ }
+ },
+ "os-browserify": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz",
+ "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=",
+ "dev": true
+ },
+ "os-tmpdir": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
+ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
+ "dev": true
+ },
+ "p-cancelable": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.0.0.tgz",
+ "integrity": "sha512-wvPXDmbMmu2ksjkB4Z3nZWTSkJEb9lqVdMaCKpZUGJG9TMiNp9XcbG3fn9fPKjem04fJMJnXoyFPk2FmgiaiNg==",
+ "dev": true
+ },
+ "p-limit": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz",
+ "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
+ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "p-map": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz",
+ "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==",
+ "dev": true,
+ "requires": {
+ "aggregate-error": "^3.0.0"
+ }
+ },
+ "p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "dev": true
+ },
+ "package-hash": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz",
+ "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.15",
+ "hasha": "^5.0.0",
+ "lodash.flattendeep": "^4.4.0",
+ "release-zalgo": "^1.0.0"
+ }
+ },
+ "package-json": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz",
+ "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==",
+ "dev": true,
+ "requires": {
+ "got": "^9.6.0",
+ "registry-auth-token": "^4.0.0",
+ "registry-url": "^5.0.0",
+ "semver": "^6.2.0"
+ },
+ "dependencies": {
+ "@sindresorhus/is": {
+ "version": "0.14.0",
+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz",
+ "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==",
+ "dev": true
+ },
+ "@szmarczak/http-timer": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz",
+ "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==",
+ "dev": true,
+ "requires": {
+ "defer-to-connect": "^1.0.1"
+ }
+ },
+ "cacheable-request": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz",
+ "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==",
+ "dev": true,
+ "requires": {
+ "clone-response": "^1.0.2",
+ "get-stream": "^5.1.0",
+ "http-cache-semantics": "^4.0.0",
+ "keyv": "^3.0.0",
+ "lowercase-keys": "^2.0.0",
+ "normalize-url": "^4.1.0",
+ "responselike": "^1.0.2"
+ },
+ "dependencies": {
+ "get-stream": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz",
+ "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==",
+ "dev": true,
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "lowercase-keys": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",
+ "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",
+ "dev": true
+ }
+ }
+ },
+ "decompress-response": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz",
+ "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=",
+ "dev": true,
+ "requires": {
+ "mimic-response": "^1.0.0"
+ }
+ },
+ "defer-to-connect": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz",
+ "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==",
+ "dev": true
+ },
+ "get-stream": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
+ "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
+ "dev": true,
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "got": {
+ "version": "9.6.0",
+ "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
+ "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",
+ "dev": true,
+ "requires": {
+ "@sindresorhus/is": "^0.14.0",
+ "@szmarczak/http-timer": "^1.1.2",
+ "cacheable-request": "^6.0.0",
+ "decompress-response": "^3.3.0",
+ "duplexer3": "^0.1.4",
+ "get-stream": "^4.1.0",
+ "lowercase-keys": "^1.0.1",
+ "mimic-response": "^1.0.1",
+ "p-cancelable": "^1.0.0",
+ "to-readable-stream": "^1.0.0",
+ "url-parse-lax": "^3.0.0"
+ }
+ },
+ "json-buffer": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
+ "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=",
+ "dev": true
+ },
+ "keyv": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz",
+ "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==",
+ "dev": true,
+ "requires": {
+ "json-buffer": "3.0.0"
+ }
+ },
+ "lowercase-keys": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",
+ "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==",
+ "dev": true
+ },
+ "p-cancelable": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",
+ "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==",
+ "dev": true
+ },
+ "responselike": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",
+ "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=",
+ "dev": true,
+ "requires": {
+ "lowercase-keys": "^1.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ }
+ }
+ },
+ "pako": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz",
+ "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==",
+ "dev": true
+ },
+ "parallel-transform": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz",
+ "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==",
+ "dev": true,
+ "requires": {
+ "cyclist": "^1.0.1",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.1.5"
+ }
+ },
+ "parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "requires": {
+ "callsites": "^3.0.0"
+ }
+ },
+ "parse-asn1": {
+ "version": "5.1.5",
+ "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.5.tgz",
+ "integrity": "sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ==",
+ "dev": true,
+ "requires": {
+ "asn1.js": "^4.0.0",
+ "browserify-aes": "^1.0.0",
+ "create-hash": "^1.1.0",
+ "evp_bytestokey": "^1.0.0",
+ "pbkdf2": "^3.0.3",
+ "safe-buffer": "^5.1.1"
+ }
+ },
+ "parse-json": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
+ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
+ "dev": true,
+ "requires": {
+ "error-ex": "^1.2.0"
+ }
+ },
+ "parse-passwd": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz",
+ "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=",
+ "dev": true
+ },
+ "parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha1-naGee+6NEt/wUT7Vt2lXeTvC6NQ=",
+ "dev": true
+ },
+ "pascalcase": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz",
+ "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=",
+ "dev": true
+ },
+ "path-browserify": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz",
+ "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==",
+ "dev": true
+ },
+ "path-dirname": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz",
+ "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=",
+ "dev": true,
+ "optional": true
+ },
+ "path-exists": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
+ "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
+ "dev": true
+ },
+ "path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
+ "dev": true
+ },
+ "path-key": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
+ "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
+ "dev": true
+ },
+ "path-parse": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
+ "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
+ "dev": true
+ },
+ "path-type": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
+ "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ }
+ },
+ "pathval": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz",
+ "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=",
+ "dev": true
+ },
+ "pbkdf2": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.1.tgz",
+ "integrity": "sha512-4Ejy1OPxi9f2tt1rRV7Go7zmfDQ+ZectEQz3VGUQhgq62HtIRPDyG/JtnwIxs6x3uNMwo2V7q1fMvKjb+Tnpqg==",
+ "dev": true,
+ "requires": {
+ "create-hash": "^1.1.2",
+ "create-hmac": "^1.1.4",
+ "ripemd160": "^2.0.1",
+ "safe-buffer": "^5.0.1",
+ "sha.js": "^2.4.8"
+ }
+ },
+ "pend": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+ "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
+ "dev": true
+ },
+ "performance-now": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
+ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
+ "dev": true
+ },
+ "picomatch": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz",
+ "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==",
+ "dev": true
+ },
+ "pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
+ "dev": true
+ },
+ "pinkie": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
+ "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=",
+ "dev": true
+ },
+ "pinkie-promise": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
+ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
+ "dev": true,
+ "requires": {
+ "pinkie": "^2.0.0"
+ }
+ },
+ "pizzip": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/pizzip/-/pizzip-3.0.6.tgz",
+ "integrity": "sha512-CYmQJQ6ShNhScp2zrpGetRfamQ2CtUdsfcXaauqsQ0h/HVdQTTlHNUaNzMO0i+l8XTNctHJ6PrmFP+YZoF4iZw==",
+ "dev": true,
+ "requires": {
+ "pako": "~1.0.2"
+ }
+ },
+ "pkg-dir": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz",
+ "integrity": "sha1-J0kCDyOe2ZCIGx9xIQ1R62UjvqM=",
+ "dev": true,
+ "requires": {
+ "find-up": "^3.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
+ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "p-limit": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.1.0.tgz",
+ "integrity": "sha512-NhURkNcrVB+8hNfLuysU8enY5xn2KXphsHBaC2YmRNTZRc7RWusw6apSpdEj3jo4CMb6W9nrF6tTnsJsJeyu6g==",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
+ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "p-try": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz",
+ "integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==",
+ "dev": true
+ }
+ }
+ },
+ "plur": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/plur/-/plur-4.0.0.tgz",
+ "integrity": "sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg==",
+ "dev": true,
+ "requires": {
+ "irregular-plurals": "^3.2.0"
+ }
+ },
+ "posix-character-classes": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
+ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=",
+ "dev": true
+ },
+ "prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true
+ },
+ "prepend-http": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
+ "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=",
+ "dev": true
+ },
+ "prettier": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.1.tgz",
+ "integrity": "sha512-9bY+5ZWCfqj3ghYBLxApy2zf6m+NJo5GzmLTpr9FsApsfjriNnS2dahWReHMi7qNPhhHl9SYHJs2cHZLgexNIw==",
+ "dev": true
+ },
+ "process": {
+ "version": "0.11.10",
+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
+ "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
+ "dev": true
+ },
+ "process-nextick-args": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
+ "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==",
+ "dev": true
+ },
+ "process-on-spawn": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/process-on-spawn/-/process-on-spawn-1.0.0.tgz",
+ "integrity": "sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==",
+ "dev": true,
+ "requires": {
+ "fromentries": "^1.2.0"
+ }
+ },
+ "progress": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
+ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
+ "dev": true
+ },
+ "promise-inflight": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
+ "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=",
+ "dev": true
+ },
+ "promise.allsettled": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.2.tgz",
+ "integrity": "sha512-UpcYW5S1RaNKT6pd+s9jp9K9rlQge1UXKskec0j6Mmuq7UJCvlS2J2/s/yuPN8ehftf9HXMxWlKiPbGGUzpoRg==",
+ "dev": true,
+ "requires": {
+ "array.prototype.map": "^1.0.1",
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.0-next.1",
+ "function-bind": "^1.1.1",
+ "iterate-value": "^1.0.0"
+ }
+ },
+ "proxy-from-env": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
+ "dev": true
+ },
+ "prr": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz",
+ "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=",
+ "dev": true
+ },
+ "pseudomap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
+ "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
+ "dev": true
+ },
+ "psl": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
+ "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==",
+ "dev": true
+ },
+ "public-encrypt": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz",
+ "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.1.0",
+ "browserify-rsa": "^4.0.0",
+ "create-hash": "^1.1.0",
+ "parse-asn1": "^5.0.0",
+ "randombytes": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.11.9",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz",
+ "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
+ "dev": true
+ }
+ }
+ },
+ "pump": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
+ "integrity": "sha1-tKIRaBW94vTh6mAjVOjHVWUQemQ=",
+ "dev": true,
+ "requires": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "pumpify": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz",
+ "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==",
+ "dev": true,
+ "requires": {
+ "duplexify": "^3.6.0",
+ "inherits": "^2.0.3",
+ "pump": "^2.0.0"
+ },
+ "dependencies": {
+ "pump": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz",
+ "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==",
+ "dev": true,
+ "requires": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ }
+ }
+ },
+ "punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
+ "dev": true
+ },
+ "pupa": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz",
+ "integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==",
+ "dev": true,
+ "requires": {
+ "escape-goat": "^2.0.0"
+ }
+ },
+ "puppeteer-core": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-5.3.0.tgz",
+ "integrity": "sha512-+4wk+0dcDNg7AQqN41Q9r41U6iltAtknuVBI0aj0O/Vp8/4orgbFV0wn55wV5xRae//CucLPUnaczxZx7dz0UA==",
+ "dev": true,
+ "requires": {
+ "debug": "^4.1.0",
+ "devtools-protocol": "0.0.799653",
+ "extract-zip": "^2.0.0",
+ "https-proxy-agent": "^4.0.0",
+ "mime": "^2.0.3",
+ "pkg-dir": "^4.2.0",
+ "progress": "^2.0.1",
+ "proxy-from-env": "^1.0.0",
+ "rimraf": "^3.0.2",
+ "tar-fs": "^2.0.0",
+ "unbzip2-stream": "^1.3.3",
+ "ws": "^7.2.3"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "mime": {
+ "version": "2.4.6",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz",
+ "integrity": "sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA==",
+ "dev": true
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
+ "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
+ "dev": true,
+ "requires": {
+ "find-up": "^4.0.0"
+ }
+ }
+ }
+ },
+ "qs": {
+ "version": "6.5.2",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
+ "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==",
+ "dev": true
+ },
+ "querystring": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz",
+ "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=",
+ "dev": true
+ },
+ "querystring-es3": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz",
+ "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=",
+ "dev": true
+ },
+ "quick-lru": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",
+ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",
+ "dev": true
+ },
+ "randombytes": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
+ "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "randomfill": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz",
+ "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==",
+ "dev": true,
+ "requires": {
+ "randombytes": "^2.0.5",
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha1-PPNwI9GZ4cJNGlW4SADC8+ZGgDE=",
+ "dev": true
+ },
+ "rc": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
+ "dev": true,
+ "requires": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ },
+ "dependencies": {
+ "strip-json-comments": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
+ "dev": true
+ }
+ }
+ },
+ "read-pkg": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
+ "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=",
+ "dev": true,
+ "requires": {
+ "load-json-file": "^1.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^1.0.0"
+ }
+ },
+ "read-pkg-up": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
+ "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=",
+ "dev": true,
+ "requires": {
+ "find-up": "^1.0.0",
+ "read-pkg": "^1.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
+ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
+ "dev": true,
+ "requires": {
+ "path-exists": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ }
+ },
+ "path-exists": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
+ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
+ "dev": true,
+ "requires": {
+ "pinkie-promise": "^2.0.0"
+ }
+ }
+ }
+ },
+ "readable-stream": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
+ "integrity": "sha1-sRwn2IuP8fvgcGQ8+UsMea4bCq8=",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "readdir-glob": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.0.0.tgz",
+ "integrity": "sha512-km0DIcwQVZ1ZUhXhMWpF74/Wm5aFEd5/jDiVWF1Hkw2myPQovG8vCQ8+FQO2KXE9npQQvCnAMZhhWuUee4WcCQ==",
+ "dev": true,
+ "requires": {
+ "minimatch": "^3.0.4"
+ }
+ },
+ "readdirp": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz",
+ "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "graceful-fs": "^4.1.11",
+ "micromatch": "^3.1.10",
+ "readable-stream": "^2.0.2"
+ }
+ },
+ "recursive-readdir": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.2.tgz",
+ "integrity": "sha512-nRCcW9Sj7NuZwa2XvH9co8NPeXUBhZP7CRKJtU+cS6PW9FpCIFoI5ib0NT1ZrbNuPoRy0ylyCaUL8Gih4LSyFg==",
+ "dev": true,
+ "requires": {
+ "minimatch": "3.0.4"
+ }
+ },
+ "redent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",
+ "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==",
+ "dev": true,
+ "requires": {
+ "indent-string": "^4.0.0",
+ "strip-indent": "^3.0.0"
+ },
+ "dependencies": {
+ "indent-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
+ "dev": true
+ }
+ }
+ },
+ "regenerate": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.1.tgz",
+ "integrity": "sha512-j2+C8+NtXQgEKWk49MMP5P/u2GhnahTtVkRIHr5R5lVRlbKvmQ+oS+A5aLKWp2ma5VkT8sh6v+v4hbH0YHR66A==",
+ "dev": true
+ },
+ "regenerate-unicode-properties": {
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz",
+ "integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==",
+ "dev": true,
+ "requires": {
+ "regenerate": "^1.4.0"
+ }
+ },
+ "regenerator-runtime": {
+ "version": "0.13.7",
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz",
+ "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==",
+ "dev": true
+ },
+ "regenerator-transform": {
+ "version": "0.14.5",
+ "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz",
+ "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==",
+ "dev": true,
+ "requires": {
+ "@babel/runtime": "^7.8.4"
+ }
+ },
+ "regex-not": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
+ "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^3.0.2",
+ "safe-regex": "^1.1.0"
+ }
+ },
+ "regexpp": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz",
+ "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==",
+ "dev": true
+ },
+ "regexpu-core": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.0.tgz",
+ "integrity": "sha512-TQ4KXRnIn6tz6tjnrXEkD/sshygKH/j5KzK86X8MkeHyZ8qst/LZ89j3X4/8HEIfHANTFIP/AbXakeRhWIl5YQ==",
+ "dev": true,
+ "requires": {
+ "regenerate": "^1.4.0",
+ "regenerate-unicode-properties": "^8.2.0",
+ "regjsgen": "^0.5.1",
+ "regjsparser": "^0.6.4",
+ "unicode-match-property-ecmascript": "^1.0.4",
+ "unicode-match-property-value-ecmascript": "^1.2.0"
+ }
+ },
+ "registry-auth-token": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.0.tgz",
+ "integrity": "sha512-P+lWzPrsgfN+UEpDS3U8AQKg/UjZX6mQSJueZj3EK+vNESoqBSpBUD3gmu4sF9lOsjXWjF11dQKUqemf3veq1w==",
+ "dev": true,
+ "requires": {
+ "rc": "^1.2.8"
+ }
+ },
+ "registry-url": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz",
+ "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==",
+ "dev": true,
+ "requires": {
+ "rc": "^1.2.8"
+ }
+ },
+ "regjsgen": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz",
+ "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==",
+ "dev": true
+ },
+ "regjsparser": {
+ "version": "0.6.4",
+ "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.4.tgz",
+ "integrity": "sha512-64O87/dPDgfk8/RQqC4gkZoGyyWFIEUTTh80CU6CWuK5vkCGyekIx+oKcEIYtP/RAxSQltCZHCNu/mdd7fqlJw==",
+ "dev": true,
+ "requires": {
+ "jsesc": "~0.5.0"
+ },
+ "dependencies": {
+ "jsesc": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz",
+ "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=",
+ "dev": true
+ }
+ }
+ },
+ "release-zalgo": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz",
+ "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=",
+ "dev": true,
+ "requires": {
+ "es6-error": "^4.0.1"
+ }
+ },
+ "remove-trailing-separator": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
+ "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=",
+ "dev": true,
+ "optional": true
+ },
+ "repeat-element": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz",
+ "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==",
+ "dev": true
+ },
+ "repeat-string": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",
+ "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=",
+ "dev": true
+ },
+ "request": {
+ "version": "2.88.2",
+ "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
+ "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
+ "dev": true,
+ "requires": {
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
+ },
+ "dependencies": {
+ "uuid": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
+ "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
+ "dev": true
+ }
+ }
+ },
+ "require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
+ "dev": true
+ },
+ "require-main-filename": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
+ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
+ "dev": true
+ },
+ "resolve": {
+ "version": "1.14.2",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.14.2.tgz",
+ "integrity": "sha512-EjlOBLBO1kxsUxsKjLt7TAECyKW6fOh1VRkykQkKGzcBbjjPIxBqGh0jf7GJ3k/f5mxMqW3htMD3WdTUVtW8HQ==",
+ "dev": true,
+ "requires": {
+ "path-parse": "^1.0.6"
+ }
+ },
+ "resolve-alpn": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.0.0.tgz",
+ "integrity": "sha512-rTuiIEqFmGxne4IovivKSDzld2lWW9QCjqv80SYjPgf+gS35eaCAjaP54CCwGAwBtnCsvNLYtqxe1Nw+i6JEmA==",
+ "dev": true
+ },
+ "resolve-cwd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz",
+ "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=",
+ "dev": true,
+ "requires": {
+ "resolve-from": "^3.0.0"
+ },
+ "dependencies": {
+ "resolve-from": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz",
+ "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=",
+ "dev": true
+ }
+ }
+ },
+ "resolve-dir": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz",
+ "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=",
+ "dev": true,
+ "requires": {
+ "expand-tilde": "^2.0.0",
+ "global-modules": "^1.0.0"
+ },
+ "dependencies": {
+ "global-modules": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz",
+ "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==",
+ "dev": true,
+ "requires": {
+ "global-prefix": "^1.0.1",
+ "is-windows": "^1.0.1",
+ "resolve-dir": "^1.0.0"
+ }
+ }
+ }
+ },
+ "resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true
+ },
+ "resolve-url": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz",
+ "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=",
+ "dev": true
+ },
+ "responselike": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.0.tgz",
+ "integrity": "sha512-xH48u3FTB9VsZw7R+vvgaKeLKzT6jOogbQhEe/jewwnZgzPcnyWui2Av6JpoYZF/91uueC+lqhWqeURw5/qhCw==",
+ "dev": true,
+ "requires": {
+ "lowercase-keys": "^2.0.0"
+ }
+ },
+ "resq": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/resq/-/resq-1.8.0.tgz",
+ "integrity": "sha512-VObcnfPcE6/EKfHqsi5qoJ0+BF9qfl5181CytP1su3HgzilqF03DrQ+Y7kZQrd+5myfmantl9W3/5uUcpwvKeg==",
+ "dev": true,
+ "requires": {
+ "fast-deep-equal": "^2.0.1"
+ }
+ },
+ "restore-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
+ "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
+ "dev": true,
+ "requires": {
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2"
+ }
+ },
+ "ret": {
+ "version": "0.1.15",
+ "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz",
+ "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==",
+ "dev": true
+ },
+ "reusify": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
+ "dev": true
+ },
+ "rgb2hex": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/rgb2hex/-/rgb2hex-0.2.0.tgz",
+ "integrity": "sha512-cHdNTwmTMPu/TpP1bJfdApd6MbD+Kzi4GNnM6h35mdFChhQPSi9cAI8J7DMn5kQDKX8NuBaQXAyo360Oa7tOEA==",
+ "dev": true
+ },
+ "rimraf": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ }
+ }
+ },
+ "ripemd160": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz",
+ "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==",
+ "dev": true,
+ "requires": {
+ "hash-base": "^3.0.0",
+ "inherits": "^2.0.1"
+ }
+ },
+ "run-async": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",
+ "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==",
+ "dev": true
+ },
+ "run-parallel": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz",
+ "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==",
+ "dev": true
+ },
+ "run-queue": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz",
+ "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=",
+ "dev": true,
+ "requires": {
+ "aproba": "^1.1.1"
+ }
+ },
+ "rxjs": {
+ "version": "6.6.3",
+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.3.tgz",
+ "integrity": "sha512-trsQc+xYYXZ3urjOiJOuCOa5N3jAZ3eiSpQB5hIT8zGlL2QfnHLJ2r7GMkBGuIausdJN1OneaI6gQlsqNHHmZQ==",
+ "dev": true,
+ "requires": {
+ "tslib": "^1.9.0"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=",
+ "dev": true
+ },
+ "safe-regex": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz",
+ "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=",
+ "dev": true,
+ "requires": {
+ "ret": "~0.1.10"
+ }
+ },
+ "safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "dev": true
+ },
+ "schema-utils": {
+ "version": "2.6.5",
+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.6.5.tgz",
+ "integrity": "sha512-5KXuwKziQrTVHh8j/Uxz+QUbxkaLW9X/86NBlx/gnKgtsZA2GIVMUn17qWhRFwF8jdYb3Dig5hRO/W5mZqy6SQ==",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.12.0",
+ "ajv-keywords": "^3.4.1"
+ },
+ "dependencies": {
+ "ajv": {
+ "version": "6.12.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz",
+ "integrity": "sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==",
+ "dev": true,
+ "requires": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ }
+ },
+ "fast-deep-equal": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
+ "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==",
+ "dev": true
+ }
+ }
+ },
+ "selenium-standalone": {
+ "version": "6.20.0",
+ "resolved": "https://registry.npmjs.org/selenium-standalone/-/selenium-standalone-6.20.0.tgz",
+ "integrity": "sha512-yN7wuMVjPdfy1vA9N2J2CRv1HDh0CAMjq+nctGz8Hh0RVw12OiHTsZjHtXqBAF+qJNRYcHVycOWr3NPQ/E/ceg==",
+ "dev": true,
+ "requires": {
+ "async": "^2.6.2",
+ "commander": "^2.19.0",
+ "cross-spawn": "^6.0.5",
+ "debug": "^4.1.1",
+ "lodash": "^4.17.11",
+ "minimist": "^1.2.0",
+ "mkdirp": "^0.5.1",
+ "progress": "2.0.3",
+ "request": "2.88.2",
+ "tar-stream": "2.1.3",
+ "urijs": "^1.19.1",
+ "which": "^1.3.1",
+ "yauzl": "^2.10.0"
+ },
+ "dependencies": {
+ "async": {
+ "version": "2.6.3",
+ "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz",
+ "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==",
+ "dev": true,
+ "requires": {
+ "lodash": "^4.17.14"
+ }
+ },
+ "commander": {
+ "version": "2.20.3",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
+ "dev": true
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "mkdirp": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
+ "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "tar-stream": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.1.3.tgz",
+ "integrity": "sha512-Z9yri56Dih8IaK8gncVPx4Wqt86NDmQTSh49XLZgjWpGZL9GK9HKParS2scqHCC4w6X9Gh2jwaU45V47XTKwVA==",
+ "dev": true,
+ "requires": {
+ "bl": "^4.0.1",
+ "end-of-stream": "^1.4.1",
+ "fs-constants": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.1.1"
+ }
+ },
+ "which": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "semver": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz",
+ "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==",
+ "dev": true
+ },
+ "semver-diff": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz",
+ "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==",
+ "dev": true,
+ "requires": {
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ }
+ }
+ },
+ "send": {
+ "version": "0.17.1",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
+ "integrity": "sha1-wdiwWfeQD3Rm3Uk4vcROEd2zdsg=",
+ "dev": true,
+ "requires": {
+ "debug": "2.6.9",
+ "depd": "~1.1.2",
+ "destroy": "~1.0.4",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "0.5.2",
+ "http-errors": "~1.7.2",
+ "mime": "1.6.0",
+ "ms": "2.1.1",
+ "on-finished": "~2.3.0",
+ "range-parser": "~1.2.1",
+ "statuses": "~1.5.0"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
+ "integrity": "sha1-MKWGTrPrsKZvLr5tcnrwagnYbgo=",
+ "dev": true
+ }
+ }
+ },
+ "serialize-error": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",
+ "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",
+ "dev": true,
+ "requires": {
+ "type-fest": "^0.13.1"
+ },
+ "dependencies": {
+ "type-fest": {
+ "version": "0.13.1",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",
+ "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",
+ "dev": true
+ }
+ }
+ },
+ "serialize-javascript": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz",
+ "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==",
+ "dev": true,
+ "requires": {
+ "randombytes": "^2.1.0"
+ }
+ },
+ "serve-static": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
+ "integrity": "sha1-Zm5jbcTwEPfvKZcKiKZ0MgiYsvk=",
+ "dev": true,
+ "requires": {
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "0.17.1"
+ }
+ },
+ "set-blocking": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
+ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
+ "dev": true
+ },
+ "set-value": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz",
+ "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-extendable": "^0.1.1",
+ "is-plain-object": "^2.0.3",
+ "split-string": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "setimmediate": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
+ "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=",
+ "dev": true
+ },
+ "setprototypeof": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
+ "integrity": "sha1-fpWsskqpL1iF4KvvW6ExMw1K5oM=",
+ "dev": true
+ },
+ "sha.js": {
+ "version": "2.4.11",
+ "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz",
+ "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "shebang-command": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
+ "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
+ "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
+ "dev": true
+ },
+ "signal-exit": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
+ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
+ "dev": true
+ },
+ "slash": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
+ "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
+ "dev": true
+ },
+ "slice-ansi": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz",
+ "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.0",
+ "astral-regex": "^1.0.0",
+ "is-fullwidth-code-point": "^2.0.0"
+ }
+ },
+ "snapdragon": {
+ "version": "0.8.2",
+ "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz",
+ "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==",
+ "dev": true,
+ "requires": {
+ "base": "^0.11.1",
+ "debug": "^2.2.0",
+ "define-property": "^0.2.5",
+ "extend-shallow": "^2.0.1",
+ "map-cache": "^0.2.2",
+ "source-map": "^0.5.6",
+ "source-map-resolve": "^0.5.0",
+ "use": "^3.1.0"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ },
+ "extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "snapdragon-node": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz",
+ "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==",
+ "dev": true,
+ "requires": {
+ "define-property": "^1.0.0",
+ "isobject": "^3.0.0",
+ "snapdragon-util": "^3.0.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
+ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^1.0.0"
+ }
+ },
+ "is-accessor-descriptor": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
+ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
+ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
+ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ }
+ }
+ }
+ },
+ "snapdragon-util": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz",
+ "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.2.0"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "source-list-map": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz",
+ "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
+ "dev": true
+ },
+ "source-map-resolve": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz",
+ "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==",
+ "dev": true,
+ "requires": {
+ "atob": "^2.1.1",
+ "decode-uri-component": "^0.2.0",
+ "resolve-url": "^0.2.1",
+ "source-map-url": "^0.4.0",
+ "urix": "^0.1.0"
+ }
+ },
+ "source-map-support": {
+ "version": "0.5.19",
+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz",
+ "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==",
+ "dev": true,
+ "requires": {
+ "buffer-from": "^1.0.0",
+ "source-map": "^0.6.0"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
+ "source-map-url": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz",
+ "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
+ "dev": true
+ },
+ "spawn-wrap": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz",
+ "integrity": "sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==",
+ "dev": true,
+ "requires": {
+ "foreground-child": "^2.0.0",
+ "is-windows": "^1.0.2",
+ "make-dir": "^3.0.0",
+ "rimraf": "^3.0.0",
+ "signal-exit": "^3.0.2",
+ "which": "^2.0.1"
+ },
+ "dependencies": {
+ "make-dir": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ },
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "spdx-correct": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",
+ "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",
+ "dev": true,
+ "requires": {
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "spdx-exceptions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz",
+ "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==",
+ "dev": true
+ },
+ "spdx-expression-parse": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
+ "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
+ "dev": true,
+ "requires": {
+ "spdx-exceptions": "^2.1.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "spdx-license-ids": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz",
+ "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==",
+ "dev": true
+ },
+ "split-string": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz",
+ "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^3.0.0"
+ }
+ },
+ "sprintf-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
+ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
+ "dev": true
+ },
+ "sshpk": {
+ "version": "1.16.1",
+ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
+ "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
+ "dev": true,
+ "requires": {
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
+ }
+ },
+ "ssri": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz",
+ "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==",
+ "dev": true,
+ "requires": {
+ "figgy-pudding": "^3.5.1"
+ }
+ },
+ "static-extend": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz",
+ "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=",
+ "dev": true,
+ "requires": {
+ "define-property": "^0.2.5",
+ "object-copy": "^0.1.0"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
+ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ }
+ }
+ },
+ "statuses": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
+ "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=",
+ "dev": true
+ },
+ "stream-browserify": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz",
+ "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==",
+ "dev": true,
+ "requires": {
+ "inherits": "~2.0.1",
+ "readable-stream": "^2.0.2"
+ }
+ },
+ "stream-each": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz",
+ "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==",
+ "dev": true,
+ "requires": {
+ "end-of-stream": "^1.1.0",
+ "stream-shift": "^1.0.0"
+ }
+ },
+ "stream-http": {
+ "version": "2.8.3",
+ "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz",
+ "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==",
+ "dev": true,
+ "requires": {
+ "builtin-status-codes": "^3.0.0",
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.3.6",
+ "to-arraybuffer": "^1.0.0",
+ "xtend": "^4.0.0"
+ }
+ },
+ "stream-shift": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz",
+ "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
+ "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
+ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
+ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ }
+ }
+ },
+ "string.prototype.trimend": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.0.tgz",
+ "integrity": "sha512-EEJnGqa/xNfIg05SxiPSqRS7S9qwDhYts1TSLR1BQfYUfPe1stofgGKvwERK9+9yf+PpfBMlpBaCHucXGPQfUA==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.5"
+ }
+ },
+ "string.prototype.trimleft": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz",
+ "integrity": "sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.5",
+ "string.prototype.trimstart": "^1.0.0"
+ }
+ },
+ "string.prototype.trimright": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz",
+ "integrity": "sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.5",
+ "string.prototype.trimend": "^1.0.0"
+ }
+ },
+ "string.prototype.trimstart": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.0.tgz",
+ "integrity": "sha512-iCP8g01NFYiiBOnwG1Xc3WZLyoo+RuBymwIlWncShXDDJYWN6DbnM3odslBJdgCdRlq94B5s63NWAZlcn2CS4w==",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.5"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
+ "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.0"
+ }
+ },
+ "strip-bom": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
+ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
+ "dev": true,
+ "requires": {
+ "is-utf8": "^0.2.0"
+ }
+ },
+ "strip-indent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",
+ "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==",
+ "dev": true,
+ "requires": {
+ "min-indent": "^1.0.0"
+ }
+ },
+ "strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true
+ },
+ "suffix": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/suffix/-/suffix-0.1.1.tgz",
+ "integrity": "sha1-zFgjFkag7xEC95R47zqSSP2chC8=",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
+ "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ },
+ "supports-hyperlinks": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz",
+ "integrity": "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0",
+ "supports-color": "^7.0.0"
+ },
+ "dependencies": {
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "table": {
+ "version": "5.4.6",
+ "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz",
+ "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.10.2",
+ "lodash": "^4.17.14",
+ "slice-ansi": "^2.1.0",
+ "string-width": "^3.0.0"
+ }
+ },
+ "tapable": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz",
+ "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==",
+ "dev": true
+ },
+ "tar-fs": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.0.tgz",
+ "integrity": "sha512-9uW5iDvrIMCVpvasdFHW0wJPez0K4JnMZtsuIeDI7HyMGJNxmDZDOCQROr7lXyS+iL/QMpj07qcjGYTSdRFXUg==",
+ "dev": true,
+ "requires": {
+ "chownr": "^1.1.1",
+ "mkdirp-classic": "^0.5.2",
+ "pump": "^3.0.0",
+ "tar-stream": "^2.0.0"
+ }
+ },
+ "tar-stream": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.1.4.tgz",
+ "integrity": "sha512-o3pS2zlG4gxr67GmFYBLlq+dM8gyRGUOvsrHclSkvtVtQbjV0s/+ZE8OpICbaj8clrX3tjeHngYGP7rweaBnuw==",
+ "dev": true,
+ "requires": {
+ "bl": "^4.0.3",
+ "end-of-stream": "^1.4.1",
+ "fs-constants": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.1.1"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ }
+ }
+ },
+ "term-size": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.0.tgz",
+ "integrity": "sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==",
+ "dev": true
+ },
+ "terser": {
+ "version": "4.8.0",
+ "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz",
+ "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==",
+ "dev": true,
+ "requires": {
+ "commander": "^2.20.0",
+ "source-map": "~0.6.1",
+ "source-map-support": "~0.5.12"
+ },
+ "dependencies": {
+ "commander": {
+ "version": "2.20.3",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
+ "terser-webpack-plugin": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.5.tgz",
+ "integrity": "sha512-04Rfe496lN8EYruwi6oPQkG0vo8C+HT49X687FZnpPF0qMAIHONI6HEXYPKDOE8e5HjXTyKfqRd/agHtH0kOtw==",
+ "dev": true,
+ "requires": {
+ "cacache": "^12.0.2",
+ "find-cache-dir": "^2.1.0",
+ "is-wsl": "^1.1.0",
+ "schema-utils": "^1.0.0",
+ "serialize-javascript": "^4.0.0",
+ "source-map": "^0.6.1",
+ "terser": "^4.1.2",
+ "webpack-sources": "^1.4.0",
+ "worker-farm": "^1.7.0"
+ },
+ "dependencies": {
+ "is-wsl": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz",
+ "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=",
+ "dev": true
+ },
+ "schema-utils": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz",
+ "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
+ "test-exclude": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz",
+ "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==",
+ "dev": true,
+ "requires": {
+ "@istanbuljs/schema": "^0.1.2",
+ "glob": "^7.1.4",
+ "minimatch": "^3.0.4"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ }
+ }
+ },
+ "text-table": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
+ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
+ "dev": true
+ },
+ "through": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
+ "dev": true
+ },
+ "through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "timers-browserify": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.11.tgz",
+ "integrity": "sha512-60aV6sgJ5YEbzUdn9c8kYGIqOubPoUdqQCul3SBAsRCZ40s6Y5cMcrW4dt3/k/EsbLVJNl9n6Vz3fTc+k2GeKQ==",
+ "dev": true,
+ "requires": {
+ "setimmediate": "^1.0.4"
+ }
+ },
+ "tmp": {
+ "version": "0.0.33",
+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
+ "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
+ "dev": true,
+ "requires": {
+ "os-tmpdir": "~1.0.2"
+ }
+ },
+ "to-arraybuffer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz",
+ "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=",
+ "dev": true
+ },
+ "to-fast-properties": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
+ "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=",
+ "dev": true
+ },
+ "to-object-path": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz",
+ "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "to-readable-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz",
+ "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==",
+ "dev": true
+ },
+ "to-regex": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz",
+ "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==",
+ "dev": true,
+ "requires": {
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "regex-not": "^1.0.2",
+ "safe-regex": "^1.1.0"
+ }
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz",
+ "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ },
+ "toidentifier": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
+ "integrity": "sha1-fhvjRw8ed5SLxD2Uo8j013UrpVM=",
+ "dev": true
+ },
+ "tough-cookie": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
+ "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
+ "dev": true,
+ "requires": {
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
+ }
+ },
+ "trim-newlines": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.0.tgz",
+ "integrity": "sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==",
+ "dev": true
+ },
+ "tsconfig-paths": {
+ "version": "3.9.0",
+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz",
+ "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==",
+ "dev": true,
+ "requires": {
+ "@types/json5": "^0.0.29",
+ "json5": "^1.0.1",
+ "minimist": "^1.2.0",
+ "strip-bom": "^3.0.0"
+ },
+ "dependencies": {
+ "strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
+ "dev": true
+ }
+ }
+ },
+ "tsd": {
+ "version": "0.13.1",
+ "resolved": "https://registry.npmjs.org/tsd/-/tsd-0.13.1.tgz",
+ "integrity": "sha512-+UYM8LRG/M4H8ISTg2ow8SWi65PS7Os+4DUnyiQLbJysXBp2DEmws9SMgBH+m8zHcJZqUJQ+mtDWJXP1IAvB2A==",
+ "dev": true,
+ "requires": {
+ "eslint-formatter-pretty": "^4.0.0",
+ "globby": "^11.0.1",
+ "meow": "^7.0.1",
+ "path-exists": "^4.0.0",
+ "read-pkg-up": "^7.0.0",
+ "update-notifier": "^4.1.0"
+ },
+ "dependencies": {
+ "parse-json": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz",
+ "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-better-errors": "^1.0.1",
+ "lines-and-columns": "^1.1.6"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ },
+ "read-pkg": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz",
+ "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==",
+ "dev": true,
+ "requires": {
+ "@types/normalize-package-data": "^2.4.0",
+ "normalize-package-data": "^2.5.0",
+ "parse-json": "^5.0.0",
+ "type-fest": "^0.6.0"
+ },
+ "dependencies": {
+ "type-fest": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz",
+ "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==",
+ "dev": true
+ }
+ }
+ },
+ "read-pkg-up": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz",
+ "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==",
+ "dev": true,
+ "requires": {
+ "find-up": "^4.1.0",
+ "read-pkg": "^5.2.0",
+ "type-fest": "^0.8.1"
+ }
+ }
+ }
+ },
+ "tslib": {
+ "version": "1.13.0",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz",
+ "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==",
+ "dev": true
+ },
+ "tty-browserify": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz",
+ "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=",
+ "dev": true
+ },
+ "tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "tweetnacl": {
+ "version": "0.14.5",
+ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
+ "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
+ "dev": true
+ },
+ "type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "requires": {
+ "prelude-ls": "^1.2.1"
+ }
+ },
+ "type-detect": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
+ "integrity": "sha1-dkb7XxiHHPu3dJ5pvTmmOI63RQw=",
+ "dev": true
+ },
+ "type-fest": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz",
+ "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
+ "dev": true
+ },
+ "typedarray": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
+ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
+ "dev": true
+ },
+ "typedarray-to-buffer": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
+ "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
+ "dev": true,
+ "requires": {
+ "is-typedarray": "^1.0.0"
+ }
+ },
+ "ua-parser-js": {
+ "version": "0.7.22",
+ "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.22.tgz",
+ "integrity": "sha512-YUxzMjJ5T71w6a8WWVcMGM6YWOTX27rCoIQgLXiWaxqXSx9D7DNjiGWn1aJIRSQ5qr0xuhra77bSIh6voR/46Q==",
+ "dev": true
+ },
+ "uglify-js": {
+ "version": "3.10.4",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.10.4.tgz",
+ "integrity": "sha512-kBFT3U4Dcj4/pJ52vfjCSfyLyvG9VYYuGYPmrPvAxRw/i7xHiT4VvCev+uiEMcEEiu6UNB6KgWmGtSUYIWScbw==",
+ "dev": true
+ },
+ "unbzip2-stream": {
+ "version": "1.4.3",
+ "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz",
+ "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==",
+ "dev": true,
+ "requires": {
+ "buffer": "^5.2.1",
+ "through": "^2.3.8"
+ }
+ },
+ "unicode-canonical-property-names-ecmascript": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz",
+ "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==",
+ "dev": true
+ },
+ "unicode-match-property-ecmascript": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz",
+ "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==",
+ "dev": true,
+ "requires": {
+ "unicode-canonical-property-names-ecmascript": "^1.0.4",
+ "unicode-property-aliases-ecmascript": "^1.0.4"
+ }
+ },
+ "unicode-match-property-value-ecmascript": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz",
+ "integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==",
+ "dev": true
+ },
+ "unicode-property-aliases-ecmascript": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz",
+ "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==",
+ "dev": true
+ },
+ "union-value": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz",
+ "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==",
+ "dev": true,
+ "requires": {
+ "arr-union": "^3.1.0",
+ "get-value": "^2.0.6",
+ "is-extendable": "^0.1.1",
+ "set-value": "^2.0.1"
+ }
+ },
+ "unique-filename": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
+ "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==",
+ "dev": true,
+ "requires": {
+ "unique-slug": "^2.0.0"
+ }
+ },
+ "unique-slug": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz",
+ "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==",
+ "dev": true,
+ "requires": {
+ "imurmurhash": "^0.1.4"
+ }
+ },
+ "unique-string": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz",
+ "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==",
+ "dev": true,
+ "requires": {
+ "crypto-random-string": "^2.0.0"
+ }
+ },
+ "universalify": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz",
+ "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==",
+ "dev": true
+ },
+ "unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=",
+ "dev": true
+ },
+ "unset-value": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz",
+ "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=",
+ "dev": true,
+ "requires": {
+ "has-value": "^0.3.1",
+ "isobject": "^3.0.0"
+ },
+ "dependencies": {
+ "has-value": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz",
+ "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=",
+ "dev": true,
+ "requires": {
+ "get-value": "^2.0.3",
+ "has-values": "^0.1.4",
+ "isobject": "^2.0.0"
+ },
+ "dependencies": {
+ "isobject": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz",
+ "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=",
+ "dev": true,
+ "requires": {
+ "isarray": "1.0.0"
+ }
+ }
+ }
+ },
+ "has-values": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz",
+ "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=",
+ "dev": true
+ }
+ }
+ },
+ "upath": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz",
+ "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==",
+ "dev": true,
+ "optional": true
+ },
+ "update-notifier": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.0.tgz",
+ "integrity": "sha512-w3doE1qtI0/ZmgeoDoARmI5fjDoT93IfKgEGqm26dGUOh8oNpaSTsGNdYRN/SjOuo10jcJGwkEL3mroKzktkew==",
+ "dev": true,
+ "requires": {
+ "boxen": "^4.2.0",
+ "chalk": "^3.0.0",
+ "configstore": "^5.0.1",
+ "has-yarn": "^2.1.0",
+ "import-lazy": "^2.1.0",
+ "is-ci": "^2.0.0",
+ "is-installed-globally": "^0.3.1",
+ "is-npm": "^4.0.0",
+ "is-yarn-global": "^0.3.0",
+ "latest-version": "^5.0.0",
+ "pupa": "^2.0.1",
+ "semver-diff": "^3.1.1",
+ "xdg-basedir": "^4.0.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
+ "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "uri-js": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
+ "integrity": "sha1-lMVA4f93KVbiKZUHwBCupsiDjrA=",
+ "dev": true,
+ "requires": {
+ "punycode": "^2.1.0"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
+ "dev": true
+ }
+ }
+ },
+ "urijs": {
+ "version": "1.19.2",
+ "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.2.tgz",
+ "integrity": "sha512-s/UIq9ap4JPZ7H1EB5ULo/aOUbWqfDi7FKzMC2Nz+0Si8GiT1rIEaprt8hy3Vy2Ex2aJPpOQv4P4DuOZ+K1c6w==",
+ "dev": true
+ },
+ "urix": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz",
+ "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=",
+ "dev": true
+ },
+ "url": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz",
+ "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=",
+ "dev": true,
+ "requires": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz",
+ "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=",
+ "dev": true
+ }
+ }
+ },
+ "url-parse-lax": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",
+ "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=",
+ "dev": true,
+ "requires": {
+ "prepend-http": "^2.0.0"
+ }
+ },
+ "use": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
+ "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==",
+ "dev": true
+ },
+ "util": {
+ "version": "0.11.1",
+ "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz",
+ "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3"
+ }
+ },
+ "util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
+ "dev": true
+ },
+ "uuid": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.0.tgz",
+ "integrity": "sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ==",
+ "dev": true
+ },
+ "v8-compile-cache": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz",
+ "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==",
+ "dev": true
+ },
+ "validate-npm-package-license": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
+ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
+ "dev": true,
+ "requires": {
+ "spdx-correct": "^3.0.0",
+ "spdx-expression-parse": "^3.0.0"
+ }
+ },
+ "verror": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
+ "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
+ "dev": true,
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ },
+ "vm-browserify": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz",
+ "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==",
+ "dev": true
+ },
+ "watchpack": {
+ "version": "1.7.4",
+ "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.4.tgz",
+ "integrity": "sha512-aWAgTW4MoSJzZPAicljkO1hsi1oKj/RRq/OJQh2PKI2UKL04c2Bs+MBOB+BBABHTXJpf9mCwHN7ANCvYsvY2sg==",
+ "dev": true,
+ "requires": {
+ "chokidar": "^3.4.1",
+ "graceful-fs": "^4.1.2",
+ "neo-async": "^2.5.0",
+ "watchpack-chokidar2": "^2.0.0"
+ },
+ "dependencies": {
+ "anymatch": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz",
+ "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ }
+ },
+ "binary-extensions": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz",
+ "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==",
+ "dev": true,
+ "optional": true
+ },
+ "braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "fill-range": "^7.0.1"
+ }
+ },
+ "chokidar": {
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.2.tgz",
+ "integrity": "sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "anymatch": "~3.1.1",
+ "braces": "~3.0.2",
+ "fsevents": "~2.1.2",
+ "glob-parent": "~5.1.0",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.4.0"
+ }
+ },
+ "fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "to-regex-range": "^5.0.1"
+ }
+ },
+ "fsevents": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz",
+ "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==",
+ "dev": true,
+ "optional": true
+ },
+ "glob-parent": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
+ "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "is-glob": "^4.0.1"
+ }
+ },
+ "is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "binary-extensions": "^2.0.0"
+ }
+ },
+ "is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "optional": true
+ },
+ "readdirp": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz",
+ "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "picomatch": "^2.2.1"
+ }
+ },
+ "to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "is-number": "^7.0.0"
+ }
+ }
+ }
+ },
+ "watchpack-chokidar2": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/watchpack-chokidar2/-/watchpack-chokidar2-2.0.0.tgz",
+ "integrity": "sha512-9TyfOyN/zLUbA288wZ8IsMZ+6cbzvsNyEzSBp6e/zkifi6xxbl8SmQ/CxQq32k8NNqrdVEVUVSEf56L4rQ/ZxA==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "chokidar": "^2.1.8"
+ }
+ },
+ "webdriver": {
+ "version": "6.4.7",
+ "resolved": "https://registry.npmjs.org/webdriver/-/webdriver-6.4.7.tgz",
+ "integrity": "sha512-iNYOPjxBP+bnS9gKS3BaFu8jn2KDqxdyneZ/Q2EyxuFezJO3z9V5Q6OIVZ16z/H/Ebf6ao1LQ6e/ff7wDtO3Pw==",
+ "dev": true,
+ "requires": {
+ "@wdio/config": "6.4.7",
+ "@wdio/logger": "6.4.7",
+ "@wdio/protocols": "6.3.6",
+ "@wdio/utils": "6.4.7",
+ "got": "^11.0.2",
+ "lodash.merge": "^4.6.1"
+ }
+ },
+ "webdriverio": {
+ "version": "6.4.7",
+ "resolved": "https://registry.npmjs.org/webdriverio/-/webdriverio-6.4.7.tgz",
+ "integrity": "sha512-+wwmmiVFPb4PEh9bGfBIdK4zKcT3NYPhQ9LfddnUIit5Qah0CjL3iY+UCY28IVp5nzZd9XPZNr71W4bErbcDQg==",
+ "dev": true,
+ "requires": {
+ "@types/puppeteer": "^3.0.1",
+ "@wdio/config": "6.4.7",
+ "@wdio/logger": "6.4.7",
+ "@wdio/repl": "6.4.7",
+ "@wdio/utils": "6.4.7",
+ "archiver": "^5.0.0",
+ "atob": "^2.1.2",
+ "css-value": "^0.0.1",
+ "devtools": "6.4.7",
+ "get-port": "^5.1.1",
+ "grapheme-splitter": "^1.0.2",
+ "lodash.clonedeep": "^4.5.0",
+ "lodash.isobject": "^3.0.2",
+ "lodash.isplainobject": "^4.0.6",
+ "lodash.zip": "^4.2.0",
+ "minimatch": "^3.0.4",
+ "puppeteer-core": "^5.1.0",
+ "resq": "^1.6.0",
+ "rgb2hex": "^0.2.0",
+ "serialize-error": "^7.0.0",
+ "webdriver": "6.4.7"
+ }
+ },
+ "webpack": {
+ "version": "4.44.1",
+ "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.44.1.tgz",
+ "integrity": "sha512-4UOGAohv/VGUNQJstzEywwNxqX417FnjZgZJpJQegddzPmTvph37eBIRbRTfdySXzVtJXLJfbMN3mMYhM6GdmQ==",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-module-context": "1.9.0",
+ "@webassemblyjs/wasm-edit": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0",
+ "acorn": "^6.4.1",
+ "ajv": "^6.10.2",
+ "ajv-keywords": "^3.4.1",
+ "chrome-trace-event": "^1.0.2",
+ "enhanced-resolve": "^4.3.0",
+ "eslint-scope": "^4.0.3",
+ "json-parse-better-errors": "^1.0.2",
+ "loader-runner": "^2.4.0",
+ "loader-utils": "^1.2.3",
+ "memory-fs": "^0.4.1",
+ "micromatch": "^3.1.10",
+ "mkdirp": "^0.5.3",
+ "neo-async": "^2.6.1",
+ "node-libs-browser": "^2.2.1",
+ "schema-utils": "^1.0.0",
+ "tapable": "^1.1.3",
+ "terser-webpack-plugin": "^1.4.3",
+ "watchpack": "^1.7.4",
+ "webpack-sources": "^1.4.1"
+ },
+ "dependencies": {
+ "acorn": {
+ "version": "6.4.1",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz",
+ "integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==",
+ "dev": true
+ },
+ "eslint-scope": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz",
+ "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==",
+ "dev": true,
+ "requires": {
+ "esrecurse": "^4.1.0",
+ "estraverse": "^4.1.1"
+ }
+ },
+ "mkdirp": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
+ "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ },
+ "schema-utils": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz",
+ "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ }
+ }
+ },
+ "webpack-cli": {
+ "version": "3.3.12",
+ "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.12.tgz",
+ "integrity": "sha512-NVWBaz9k839ZH/sinurM+HcDvJOTXwSjYp1ku+5XKeOC03z8v5QitnK/x+lAxGXFyhdayoIf/GOpv85z3/xPag==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.4.2",
+ "cross-spawn": "^6.0.5",
+ "enhanced-resolve": "^4.1.1",
+ "findup-sync": "^3.0.0",
+ "global-modules": "^2.0.0",
+ "import-local": "^2.0.0",
+ "interpret": "^1.4.0",
+ "loader-utils": "^1.4.0",
+ "supports-color": "^6.1.0",
+ "v8-compile-cache": "^2.1.1",
+ "yargs": "^13.3.2"
+ },
+ "dependencies": {
+ "emojis-list": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
+ "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
+ "dev": true
+ },
+ "enhanced-resolve": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.2.0.tgz",
+ "integrity": "sha512-S7eiFb/erugyd1rLb6mQ3Vuq+EXHv5cpCkNqqIkYkBgN2QdFnyCZzFBleqwGEx4lgNGYij81BWnCrFNK7vxvjQ==",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "memory-fs": "^0.5.0",
+ "tapable": "^1.0.0"
+ }
+ },
+ "find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
+ "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "memory-fs": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz",
+ "integrity": "sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==",
+ "dev": true,
+ "requires": {
+ "errno": "^0.1.3",
+ "readable-stream": "^2.0.1"
+ }
+ },
+ "supports-color": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz",
+ "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ },
+ "yargs": {
+ "version": "13.3.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz",
+ "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==",
+ "dev": true,
+ "requires": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ }
+ },
+ "yargs-parser": {
+ "version": "13.1.2",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
+ "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ }
+ }
+ },
+ "webpack-sources": {
+ "version": "1.4.3",
+ "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz",
+ "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==",
+ "dev": true,
+ "requires": {
+ "source-list-map": "^2.0.0",
+ "source-map": "~0.6.1"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
+ "which": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz",
+ "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
+ "which-module": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
+ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
+ "dev": true
+ },
+ "wide-align": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
+ "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
+ "dev": true,
+ "requires": {
+ "string-width": "^1.0.2 || 2"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
+ "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
+ "dev": true
+ },
+ "string-width": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
+ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
+ "dev": true,
+ "requires": {
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^4.0.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
+ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^3.0.0"
+ }
+ }
+ }
+ },
+ "widest-line": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz",
+ "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==",
+ "dev": true,
+ "requires": {
+ "string-width": "^4.0.0"
+ },
+ "dependencies": {
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz",
+ "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ }
+ }
+ }
+ },
+ "word-wrap": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
+ "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
+ "dev": true
+ },
+ "worker-farm": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz",
+ "integrity": "sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw==",
+ "dev": true,
+ "requires": {
+ "errno": "~0.1.7"
+ }
+ },
+ "workerpool": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.0.0.tgz",
+ "integrity": "sha512-fU2OcNA/GVAJLLyKUoHkAgIhKb0JoCpSjLC/G2vYKxUjVmQwGbRVeoPJ1a8U4pnVofz4AQV5Y/NEw8oKqxEBtA==",
+ "dev": true
+ },
+ "wrap-ansi": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
+ "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
+ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
+ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ }
+ }
+ },
+ "wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
+ "dev": true
+ },
+ "write": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz",
+ "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==",
+ "dev": true,
+ "requires": {
+ "mkdirp": "^0.5.1"
+ },
+ "dependencies": {
+ "mkdirp": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
+ "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.5"
+ }
+ }
+ }
+ },
+ "write-file-atomic": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz",
+ "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==",
+ "dev": true,
+ "requires": {
+ "imurmurhash": "^0.1.4",
+ "is-typedarray": "^1.0.0",
+ "signal-exit": "^3.0.2",
+ "typedarray-to-buffer": "^3.1.5"
+ }
+ },
+ "ws": {
+ "version": "7.3.1",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz",
+ "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==",
+ "dev": true
+ },
+ "xdg-basedir": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz",
+ "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==",
+ "dev": true
+ },
+ "xmldom": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.3.0.tgz",
+ "integrity": "sha512-z9s6k3wxE+aZHgXYxSTpGDo7BYOUfJsIRyoZiX6HTjwpwfS2wpQBQKa2fD+ShLyPkqDYo5ud7KitmLZ2Cd6r0g=="
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
+ "dev": true
+ },
+ "y18n": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
+ "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
+ "dev": true
+ },
+ "yallist": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
+ "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
+ "dev": true
+ },
+ "yargs": {
+ "version": "15.3.1",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz",
+ "integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==",
+ "dev": true,
+ "requires": {
+ "cliui": "^6.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^4.1.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^4.2.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^18.1.1"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "cliui": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
+ "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
+ "dev": true,
+ "requires": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^6.2.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz",
+ "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "wrap-ansi": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ }
+ }
+ }
+ },
+ "yargs-parser": {
+ "version": "18.1.3",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",
+ "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ },
+ "yargs-unparser": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.1.tgz",
+ "integrity": "sha512-qZV14lK9MWsGCmcr7u5oXGH0dbGqZAIxTDrWXZDo5zUr6b6iUmelNKO6x6R1dQT24AH3LgRxJpr8meWy2unolA==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.3.1",
+ "decamelize": "^1.2.0",
+ "flat": "^4.1.0",
+ "is-plain-obj": "^1.1.0",
+ "yargs": "^14.2.3"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "yargs": {
+ "version": "14.2.3",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-14.2.3.tgz",
+ "integrity": "sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg==",
+ "dev": true,
+ "requires": {
+ "cliui": "^5.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^15.0.1"
+ }
+ },
+ "yargs-parser": {
+ "version": "15.0.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.1.tgz",
+ "integrity": "sha512-0OAMV2mAZQrs3FkNpDQcBk1x5HXb8X4twADss4S0Iuk+2dGnLOE/fRHrsYm542GduMveyA77OF4wrNJuanRCWw==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ }
+ }
+ },
+ "yarn-install": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/yarn-install/-/yarn-install-1.0.0.tgz",
+ "integrity": "sha1-V/RQULgu/VcYKzlzxUqgXLXSUjA=",
+ "dev": true,
+ "requires": {
+ "cac": "^3.0.3",
+ "chalk": "^1.1.3",
+ "cross-spawn": "^4.0.2"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ }
+ },
+ "cross-spawn": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz",
+ "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=",
+ "dev": true,
+ "requires": {
+ "lru-cache": "^4.0.1",
+ "which": "^1.2.9"
+ }
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ }
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ }
+ }
+ },
+ "yauzl": {
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
+ "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
+ "dev": true,
+ "requires": {
+ "buffer-crc32": "~0.2.3",
+ "fd-slicer": "~1.1.0"
+ }
+ },
+ "zip-stream": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.0.2.tgz",
+ "integrity": "sha512-TGxB2g+1ur6MHkvM644DuZr8Uzyz0k0OYWtS3YlpfWBEmK4woaC2t3+pozEL3dBfIPmpgmClR5B2QRcMgGt22g==",
+ "dev": true,
+ "requires": {
+ "archiver-utils": "^2.1.0",
+ "compress-commons": "^4.0.0",
+ "readable-stream": "^3.6.0"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..0b3e3d4
--- /dev/null
+++ b/package.json
@@ -0,0 +1,112 @@
+{
+ "name": "docxtemplater",
+ "version": "3.19.6",
+ "author": "Edgar Hipp",
+ "description": "docx and pptx generator working with templates and data (like Mustache, for Word and Powerpoint documents)",
+ "contributors": [
+ {
+ "name": "Edgar Hipp"
+ }
+ ],
+ "aliasify": {
+ "aliases": {
+ "xmldom": "./js/browser-versions/xmldom.js",
+ "fs": "./js/browser-versions/fs.js"
+ }
+ },
+ "main": "js/docxtemplater.js",
+ "keywords": [
+ "docx",
+ "pptx",
+ "templates",
+ "generation",
+ "microsoft word",
+ "microsoft powerpoint",
+ "report"
+ ],
+ "types": "./js/docxtemplater.d.ts",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/open-xml-templating/docxtemplater"
+ },
+ "dependencies": {
+ "xmldom": "^0.3.0"
+ },
+ "devDependencies": {
+ "@babel/cli": "^7.11.6",
+ "@babel/core": "^7.11.6",
+ "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
+ "@babel/preset-env": "^7.11.5",
+ "@wdio/cli": "^6.4.7",
+ "angular-expressions": "^1.1.1",
+ "babel-eslint": "^10.1.0",
+ "babel-loader": "^8.1.0",
+ "chai": "^4.2.0",
+ "diff": "^4.0.2",
+ "envify": "^4.1.0",
+ "es6-promise": "^4.2.8",
+ "eslint": "^7.9.0",
+ "eslint-plugin-import": "^2.22.0",
+ "eslint_d": "^9.1.2",
+ "finalhandler": "^1.1.2",
+ "lodash": "^4.17.20",
+ "mkdirp": "^1.0.4",
+ "mocha": "^8.1.3",
+ "nyc": "^15.1.0",
+ "pizzip": "^3.0.6",
+ "prettier": "^2.1.1",
+ "rimraf": "^3.0.2",
+ "selenium-standalone": "^6.20.0",
+ "serve-static": "^1.14.1",
+ "tsd": "^0.13.1",
+ "uglify-js": "^3.10.4",
+ "webdriverio": "^6.4.7",
+ "webpack": "^4.44.1",
+ "webpack-cli": "^3.3.12"
+ },
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10"
+ },
+ "scripts": {
+ "generate:doc": "cd docs; rm build/ -rf ; make html",
+ "profile": "./profile.bash",
+ "preversion": "npm run test:es6 && npm run lint && npm run prettier && FAST= npm test && rimraf build && mkdirp build && npm run browserify && npm run uglify && npm run test:typings && npm run verifypublishsize && npm run test:browser",
+ "version": "./replace-versions-in-doc.bash",
+ "check-casing": "./check-casing.bash",
+ "compile": "npm run convertto:es5",
+ "browserify:test": "FILE=test webpack",
+ "browserify:lib": "webpack",
+ "uglify:lib": "MIN=true webpack",
+ "uglify": "npm run uglify:lib",
+ "updtr": "updtr",
+ "browserify": "npm run browserify:test && npm run browserify:lib",
+ "convertto:es5": "rimraf js -rf && mkdirp js && npm run babel && cp es6/tests/*.xml js/tests && cp es6/*.ts js",
+ "convertto:es5:watch": "npm run babel -- --watch",
+ "test:coverage": "nyc --reporter=html --reporter=text mocha -- es6/tests/index.js",
+ "prettier": "prettier --list-different 'es6/**/!(filenames).js' '*.js' README.md CHANGELOG.md",
+ "prettier:fix": "prettier --write 'es6/**/!(filenames).js' '*.js' README.md CHANGELOG.md",
+ "lint": "eslint_d . && ./check-casing.bash && npm run prettier",
+ "lint:fix": "eslint_d . --fix && ./check-casing.bash && npm run prettier:fix",
+ "test:chrome": "BROWSER=CHROME ./webdriver.bash",
+ "test:firefox": "BROWSER=FIREFOX ./webdriver.bash",
+ "test:browser": "./webdriver.bash",
+ "babel": "babel es6 --out-dir js",
+ "mocha": "mocha --full-trace --check-leaks js/tests/index.js",
+ "test:es6": "mocha --full-trace --check-leaks es6/tests/index.js",
+ "test:es6:fast": "FAST=true mocha --full-trace --check-leaks es6/tests/index.js",
+ "test:watch": "FAST=true mocha --watch --full-trace --check-leaks es6/tests/index.js",
+ "test:es6:slow": "FAST= mocha --full-trace --check-leaks es6/tests/index.js",
+ "test": "npm run convertto:es5 && npm run mocha",
+ "test:es5": "npm test",
+ "test:typings": "cp es6/*.ts js && tsd .",
+ "verifypublishsize": "./verifypublishsize.bash"
+ },
+ "tsd": {
+ "compilerOptions": {
+ "lib": [
+ "DOM"
+ ]
+ }
+ }
+}
diff --git a/profile.bash b/profile.bash
new file mode 100755
index 0000000..9c35484
--- /dev/null
+++ b/profile.bash
@@ -0,0 +1,39 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+profile() {
+ rm -f p.json
+ find ./js -name '*.js' | while IFS='' read -r filename; do
+ echo "$filename"
+ echo "${filename/js/prof}"
+ mkdir -p "$(dirname "${filename/js/prof}")"
+ profi-stanbul profile --output "${filename/js/prof}" "${filename}"
+ done
+ mocha prof/tests/index.js
+}
+
+analyse() {
+ jqq='. | to_entries | sort_by(.value.ms) | .[].value | .filename + "@" + .name + ":" + (.calls|tostring) + ":" + (.ms|tostring) + "ms"'
+
+ jq /dev/null
+ echo "analyse"
+ analyse
+else
+ "$action"
+fi
+
+
diff --git a/replace-versions-in-doc.bash b/replace-versions-in-doc.bash
new file mode 100755
index 0000000..4056923
--- /dev/null
+++ b/replace-versions-in-doc.bash
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+ag libs/docxtemplater | grep -v bash
+
+version="$(jq .version --raw-output
+
+
+ Mocha Tests
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+