From 9de2c0196091f75c976eefb5c22a4901dd0fd4a9 Mon Sep 17 00:00:00 2001 From: sqwk Date: Wed, 13 Nov 2019 17:44:17 +0100 Subject: [PATCH 1/5] refactor: Typescript --- .eslintrc.js | 267 -- config/helpers.js | 18 + config/webpack.config.js | 53 + dist/siema.d.ts | 163 + dist/siema.js | 2 + dist/siema.js.map | 1 + dist/siema.min.js | 1 - package-lock.json | 6118 ++++++++++++++++++-------------------- package.json | 28 +- src/siema.js | 693 ----- src/siema.ts | 695 +++++ tsconfig.json | 27 + tslint.json | 54 + webpack.config.js | 38 +- yarn.lock | 3100 ------------------- 15 files changed, 3903 insertions(+), 7355 deletions(-) delete mode 100644 .eslintrc.js create mode 100644 config/helpers.js create mode 100644 config/webpack.config.js create mode 100644 dist/siema.d.ts create mode 100644 dist/siema.js create mode 100644 dist/siema.js.map delete mode 100644 dist/siema.min.js delete mode 100644 src/siema.js create mode 100644 src/siema.ts create mode 100644 tsconfig.json create mode 100644 tslint.json delete mode 100644 yarn.lock diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5ec1d38..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,267 +0,0 @@ -// Apply best practices by enabling eslint:recommended -// Never repeat rules that eslint:recommended sets as a default -// Explicitly add more rules categorized in categories taken from official docs - -module.exports = { - 'extends': 'eslint:recommended', - 'parserOptions': { - "ecmaVersion": 2017, - 'sourceType': 'module', - 'ecmaFeatures': { - 'experimentalObjectRestSpread': true, - 'jsx': true, - 'impliedStrict': true - } - }, - 'env': { - 'browser': true, - 'commonjs': true, - 'es6': true, - 'node': true, - 'jquery': true, - 'serviceworker': true - }, - 'rules': { - // Possible Errors - 'no-console': 1, - 'no-template-curly-in-string': 2, - - // Best Practices - 'array-callback-return': 2, - 'block-scoped-var': 2, - 'consistent-return': 2, - 'curly': 2, - 'default-case': 2, - 'dot-notation': 2, - 'eqeqeq': [ - 2, - 'smart' - ], - 'no-alert': 1, - 'no-caller': 2, - 'no-div-regex': 2, - 'no-else-return': 2, - 'no-eq-null': 2, - 'no-eval': 2, - 'no-extend-native': 2, - 'no-extra-bind': 2, - 'no-extra-label': 2, - 'no-floating-decimal': 2, - 'no-global-assign': 2, - 'no-implied-eval': 2, - 'no-lone-blocks': 2, - 'no-loop-func': 2, - 'no-multi-spaces': 2, - 'no-proto': 2, - 'no-self-compare': 2, - 'no-sequences': 2, - 'no-unused-expressions': 2, - 'no-useless-call': 2, - 'no-useless-concat': 2, - 'no-useless-escape': 2, - 'no-void': 2, - 'no-with': 2, - 'radix': 2, - 'wrap-iife': [ - 2, - 'inside' - ], - 'yoda': [ - 2, - 'never' - ], - - // Strict Mode - 'strict': 2, - - // Variables - 'init-declarations': [ - 2, - 'always' - ], - 'no-label-var': 2, - 'no-undef-init': 2, - 'no-undefined': 2, - 'no-use-before-define': 2, - - // Stylistic Issues - 'array-bracket-spacing': [ - 1, - 'never' - ], - 'block-spacing': [ - 2, - 'always' - ], - 'brace-style': [ - 2, - 'stroustrup', - { - 'allowSingleLine': true - } - ], - 'camelcase': 2, - 'comma-dangle': [ - 2, - 'only-multiline' - ], - 'comma-spacing': [ - 2, - { - 'before': false, - 'after': true - } - ], - 'comma-style': [ - 2, - 'last' - ], - 'computed-property-spacing': [ - 2, - 'never' - ], - 'eol-last': 2, - 'func-call-spacing': [ - 2, - 'never' - ], - 'func-names': [ - 1, - 'always' - ], - 'indent': [ - 2, - 2 - ], - 'jsx-quotes': [ - 2, - 'prefer-double' - ], - 'key-spacing': [ - 2, - { - 'beforeColon': false, - 'afterColon': true - } - ], - 'keyword-spacing': 2, - 'line-comment-position': [ - 2, - { - 'position': 'above' - } - ], - 'linebreak-style': [ - 2, - 'unix' - ], - 'lines-around-directive': [ - 2, - 'always' - ], - 'max-depth': 2, - 'new-cap': 2, - 'new-parens': 2, - 'no-lonely-if': 2, - 'no-nested-ternary': 2, - 'no-tabs': 2, - 'no-trailing-spaces': 2, - 'no-underscore-dangle': 2, - 'no-unneeded-ternary': 2, - 'no-whitespace-before-property': 2, - 'object-curly-spacing': [ - 2, - 'always' - ], - 'object-property-newline': 2, - 'one-var-declaration-per-line': [ - 2, - 'always' - ], - 'one-var': [ - 2, - 'never' - ], - 'operator-assignment': [ - 2, - 'always' - ], - 'quote-props': [ - 2, - 'as-needed' - ], - 'quotes': [ - 2, - 'single' - ], - 'semi-spacing': [ - 2, - { - 'before': false, - 'after': true - } - ], - 'semi': [ - 2, - 'always' - ], - 'space-before-blocks': 2, - 'space-before-function-paren': [ - 2, - 'never' - ], - 'space-in-parens': [ - 2, - 'never' - ], - 'space-infix-ops': 2, - 'space-unary-ops': [ - 2, - { - 'words': true, - 'nonwords': false - } - ], - 'spaced-comment': [ - 2, - 'always' - ], - - // ECMAScript 6 - 'arrow-parens': [ - 2, - 'as-needed' - ], - 'arrow-spacing': [ - 2, - { - 'before': true, - 'after': true - } - ], - 'generator-star-spacing': [ - 2, - { - 'before': false, - 'after': true - } - ], - 'no-confusing-arrow': 2, - 'no-const-assign': 2, - 'no-duplicate-imports': 2, - 'no-restricted-imports': 2, - 'no-this-before-super': 2, - 'no-useless-computed-key': 2, - 'no-useless-constructor': 2, - 'no-useless-rename': 2, - 'no-var': 2, - 'prefer-arrow-callback': 2, - 'prefer-const': 2, - 'prefer-template': 2, - 'require-yield': 2, - 'template-curly-spacing': [ - 2, - 'never' - ], - } -}; diff --git a/config/helpers.js b/config/helpers.js new file mode 100644 index 0000000..172dbc5 --- /dev/null +++ b/config/helpers.js @@ -0,0 +1,18 @@ +var path = require('path'); +var _root = path.resolve(__dirname, '..'); + +function root(args) { + args = Array.prototype.slice.call(arguments, 0); + return path.join.apply(path, [_root].concat(args)); +} + +exports.root = root; + +function isVendor(module, count) { + if (typeof module.context !== 'string') { + return false; + } + return module.context.indexOf('/node_modules/') >= 0 +} + +exports.isVendor = isVendor; \ No newline at end of file diff --git a/config/webpack.config.js b/config/webpack.config.js new file mode 100644 index 0000000..4a75f95 --- /dev/null +++ b/config/webpack.config.js @@ -0,0 +1,53 @@ +var webpack = require('webpack'); + +var helpers = require('./helpers'); + +const ENV = process.env.NODE_ENV = process.env.ENV = 'development'; + +module.exports = (env, argv) => { + + // Set ENV depending on wepack mode (contained in argv passed by webpack --mode) + const ENV = process.env.NODE_ENV = process.env.ENV = (argv.mode === 'development') ? 'development' : 'production'; + + return { + output: { + path: helpers.root('dist'), + filename: '[name].js', + libraryTarget: 'umd', + library: '[name]', + umdNamedDefine: true, + globalObject: `(typeof self !== 'undefined' ? self : this)` + + }, + + entry: { + 'siema': helpers.root('src', 'siema.ts') + }, + + devtool: ENV === 'development' ? 'eval-cheap-module-source-map': 'source-map', + + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { + test: /\.ts$/, + use: [ + { + loader: 'awesome-typescript-loader', + options: { configFileName: helpers.root('tsconfig.json') } + } + ] + } + ] + + }, + + optimization: { + minimize: true + } + + } + +} diff --git a/dist/siema.d.ts b/dist/siema.d.ts new file mode 100644 index 0000000..a48c40d --- /dev/null +++ b/dist/siema.d.ts @@ -0,0 +1,163 @@ +export interface SiemaOptions { + selector: string; + duration: number; + easing: string; + perPage: number | { + [width: number]: number; + }; + startIndex: number; + draggable: boolean; + multipleDrag: boolean; + threshold: number; + loop: boolean; + rtl: boolean; + onInit?: () => void; + onChange?: () => void; +} +/** + * Hi :-) This is a class representing a Siema. + */ +export default class Siema { + /** Config used for this instace of Siema */ + config: SiemaOptions; + /** Variable to track if mouse is pressed */ + private pointerDown; + /** Variable to track mouse track */ + private drag; + /** Reference to the Siema element */ + selector: HTMLElement; + /** The width of the Siema element */ + private selectorWidth; + /** How many items to show per page */ + private perPage; + /** Variable to keep track of the actual items */ + private innerElements; + /** Zero based index of the current slide */ + private currentSlide; + /** Variable to keeo track of wether to use standard or webkit compaotible transforms */ + private transformProperty; + /** Reference to the the sliding wrapper for all items */ + private sliderFrame; + /** + * Create a Siema. + */ + constructor(options: Partial); + /** + * Merge default settings with custom ones. + */ + static mergeSettings(options: Partial): SiemaOptions; + /** + * Determine if browser supports unprefixed transform property. + * Google Chrome since version 26 supports prefix-less transform + */ + static webkitOrNot(): "transform" | "webkitTransform"; + /** + * Attaches listeners to required events. + */ + private attachEvents; + /** + * Detaches listeners from required events. + */ + private detachEvents; + /** + * Builds the markup and attaches listeners to required events. + */ + private init; + /** + * Build a sliderFrame and slide to a current item. + */ + private buildSliderFrame; + private buildSliderFrameItem; + /** + * Determinates slides number accordingly to clients viewport. + */ + private resolveSlidesNumber; + /** + * Go to previous slide. + */ + prev(howManySlides?: number, callback?: () => void): void; + /** + * Go to next slide. + */ + next(howManySlides?: number, callback?: () => void): void; + /** + * Disable transition on sliderFrame. + */ + private disableTransition; + /** + * Enable transition on sliderFrame. + */ + private enableTransition; + /** + * Go to slide with particular index + */ + goTo(index: number, callback?: () => void): void; + /** + * Moves sliders frame to position of currently active slide + */ + slideToCurrent(enableTransition?: boolean): void; + /** + * Recalculate drag /swipe event and reposition the frame of a slider + */ + private updateAfterDrag; + /** + * When window resizes, resize slider components as well + */ + private resizeHandler; + /** + * Clear drag after touchend and mouseup event + */ + private clearDrag; + /** + * touchstart event handler + */ + private touchstartHandler; + /** + * touchend event handler + */ + private touchendHandler; + /** + * touchmove event handler + */ + private touchmoveHandler; + /** + * mousedown event handler + */ + private mousedownHandler; + /** + * mouseup event handler + */ + private mouseupHandler; + /** + * mousemove event handler + */ + private mousemoveHandler; + /** + * mouseleave event handler + */ + private mouseleaveHandler; + /** + * click event handler + */ + private clickHandler; + /** + * Remove item from carousel. + */ + remove(index: number, callback?: () => void): void; + /** + * Insert item to carousel at particular index. + */ + insert(item: HTMLElement, index: number, callback?: () => void): void; + /** + * Prepernd item to carousel. + */ + prepend(item: HTMLElement, callback?: () => void): void; + /** + * Append item to carousel. + */ + append(item: HTMLElement, callback?: () => void): void; + /** + * Removes listeners and optionally restores to initial markup + */ + destroy(restoreMarkup?: boolean, callback?: () => void): void; +} diff --git a/dist/siema.js b/dist/siema.js new file mode 100644 index 0000000..d78ece1 --- /dev/null +++ b/dist/siema.js @@ -0,0 +1,2 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("siema",[],t):"object"==typeof exports?exports.siema=t():e.siema=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(s,r,function(t){return e[t]}.bind(null,r));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e){if(this.resizeHandler=()=>{this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()},this.touchstartHandler=e=>{-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)},this.touchendHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.touchmoveHandler=e=>{if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)},this.mouseupHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.mousemoveHandler=e=>{if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`;const t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,s=this.config.rtl?t+i:t-i;this.sliderFrame.style[this.transformProperty]=`translate3d(${(this.config.rtl?1:-1)*s}px, 0, 0)`}},this.mouseleaveHandler=e=>{this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())},this.clickHandler=e=>{this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1},this.config=s.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something is wrong with your selector");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=Array.from(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=s.webkitOrNot(),this.init()}static mergeSettings(e){let t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:Function,onChange:Function};return Object.assign(t,e)}static webkitOrNot(){return"string"==typeof document.documentElement.style.transform?"transform":"webkitTransform"}attachEvents(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}detachEvents(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}init(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}buildSliderFrame(){const e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=`${e*t}px`,this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");const i=document.createDocumentFragment();if(this.config.loop)for(let e=this.innerElements.length-this.perPage;e=this.config.perPage[e]&&(this.perPage=this.config.perPage[e])}}prev(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();const t=this.currentSlide+this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}next(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();const t=this.currentSlide-this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}disableTransition(){this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`}enableTransition(){this.sliderFrame.style.webkitTransition=`all ${this.config.duration}ms ${this.config.easing}`,this.sliderFrame.style.transition=`all ${this.config.duration}ms ${this.config.easing}`}goTo(e,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}slideToCurrent(e){const t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*t*(this.selectorWidth/this.perPage);e?requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.enableTransition(),"transform"===this.transformProperty?this.sliderFrame.style.transform=`translate3d(${i}px, 0, 0)`:this.sliderFrame.style.webkitTransform=`translate3d(${i}px, 0, 0)`})}):this.sliderFrame.style[this.transformProperty]=`translate3d(${i}px, 0, 0)`}updateAfterDrag(){const e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,s=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(s||r)}clearDrag(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}remove(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist");const i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");const s=t<=this.currentSlide&&this.currentSlide>0&&this.innerElements.length;this.currentSlide=s?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}prepend(e,t){this.insert(e,0),t&&t.call(this)}append(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}destroy(e=!1,t){if(this.detachEvents(),this.selector.style.cursor="auto",e){const e=document.createDocumentFragment();for(let t=0;t void;\n onChange?: () => void;\n}\n/**\n * Hi :-) This is a class representing a Siema.\n */\nexport default class Siema {\n\n /** Config used for this instace of Siema */\n public config: SiemaOptions;\n\n /** Variable to track if mouse is pressed */\n private pointerDown: boolean;\n\n /** Variable to track mouse track */\n private drag: {\n startX: number,\n endX: number,\n startY: number,\n letItGo: boolean,\n preventClick: boolean\n };\n\n /** Reference to the Siema element */\n public selector: HTMLElement;\n\n /** The width of the Siema element */\n private selectorWidth: number;\n\n /** How many items to show per page */\n private perPage: number;\n\n /** Variable to keep track of the actual items */\n private innerElements: Element[];\n\n /** Zero based index of the current slide */\n private currentSlide: number;\n\n /** Variable to keeo track of wether to use standard or webkit compaotible transforms */\n private transformProperty: 'transform'|'webkitTransform';\n\n /** Reference to the the sliding wrapper for all items */\n private sliderFrame: HTMLDivElement;\n\n /**\n * Create a Siema.\n */\n constructor(options: Partial) {\n\n // Merge defaults with user's settings\n this.config = Siema.mergeSettings(options);\n\n // Resolve selector's type\n this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\n // Early throw if selector doesn't exists\n if (this.selector === null) {\n throw new Error('Something is wrong with your selector');\n }\n\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // Create global references\n this.selectorWidth = this.selector.offsetWidth;\n this.innerElements = Array.from(this.selector.children);\n this.currentSlide = this.config.loop ?\n this.config.startIndex % this.innerElements.length :\n Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage));\n this.transformProperty = Siema.webkitOrNot();\n\n // Build markup and apply required styling to elements\n this.init();\n }\n\n /**\n * Merge default settings with custom ones.\n */\n static mergeSettings(options: Partial): SiemaOptions {\n let defaultOptions: SiemaOptions = {\n selector: '.siema',\n duration: 200,\n easing: 'ease-out',\n perPage: 1,\n startIndex: 0,\n draggable: true,\n multipleDrag: true,\n threshold: 20,\n loop: false,\n rtl: false,\n onInit: Function,\n onChange: Function,\n };\n\n return Object.assign(defaultOptions, options);\n }\n\n /**\n * Determine if browser supports unprefixed transform property.\n * Google Chrome since version 26 supports prefix-less transform\n */\n static webkitOrNot() {\n const style = document.documentElement.style;\n if (typeof style.transform === 'string') {\n return 'transform';\n }\n return 'webkitTransform';\n }\n\n /**\n * Attaches listeners to required events.\n */\n private attachEvents() {\n // Resize element on window resize\n window.addEventListener('resize', this.resizeHandler);\n\n // If element is draggable / swipable, add event handlers\n if (this.config.draggable) {\n // Keep track pointer hold and dragging distance\n this.pointerDown = false;\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: false,\n };\n\n // Touch events\n this.selector.addEventListener('touchstart', this.touchstartHandler);\n this.selector.addEventListener('touchend', this.touchendHandler);\n this.selector.addEventListener('touchmove', this.touchmoveHandler);\n\n // Mouse events\n this.selector.addEventListener('mousedown', this.mousedownHandler);\n this.selector.addEventListener('mouseup', this.mouseupHandler);\n this.selector.addEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.addEventListener('mousemove', this.mousemoveHandler);\n\n // Click\n this.selector.addEventListener('click', this.clickHandler);\n }\n }\n\n /**\n * Detaches listeners from required events.\n */\n private detachEvents() {\n window.removeEventListener('resize', this.resizeHandler);\n this.selector.removeEventListener('touchstart', this.touchstartHandler);\n this.selector.removeEventListener('touchend', this.touchendHandler);\n this.selector.removeEventListener('touchmove', this.touchmoveHandler);\n this.selector.removeEventListener('mousedown', this.mousedownHandler);\n this.selector.removeEventListener('mouseup', this.mouseupHandler);\n this.selector.removeEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.removeEventListener('mousemove', this.mousemoveHandler);\n this.selector.removeEventListener('click', this.clickHandler);\n }\n\n /**\n * Builds the markup and attaches listeners to required events.\n */\n private init(): void {\n this.attachEvents();\n\n // hide everything out of selector's boundaries\n this.selector.style.overflow = 'hidden';\n\n // rtl or ltr\n this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr';\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n this.config.onInit.call(this);\n }\n\n\n /**\n * Build a sliderFrame and slide to a current item.\n */\n private buildSliderFrame() {\n const widthItem = this.selectorWidth / this.perPage;\n const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length;\n\n // Create frame and apply styling\n this.sliderFrame = document.createElement('div');\n this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`;\n this.enableTransition();\n\n if (this.config.draggable) {\n this.selector.style.cursor = '-webkit-grab';\n }\n\n // Create a document fragment to put slides into it\n const docFragment = document.createDocumentFragment();\n\n // Loop through the slides, add styling and add them to document fragment\n if (this.config.loop) {\n for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n for (let i = 0; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i] as HTMLElement);\n docFragment.appendChild(element);\n }\n if (this.config.loop) {\n for (let i = 0; i < this.perPage; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n\n // Add fragment to the frame\n this.sliderFrame.appendChild(docFragment);\n\n // Clear selector (just in case something is there) and insert a frame\n this.selector.innerHTML = '';\n this.selector.appendChild(this.sliderFrame);\n\n // Go to currently active slide after initial build\n this.slideToCurrent();\n }\n\n private buildSliderFrameItem(elm: HTMLElement) {\n const elementContainer = document.createElement('div');\n elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left';\n elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`;\n elementContainer.appendChild(elm);\n return elementContainer;\n }\n\n\n /**\n * Determinates slides number accordingly to clients viewport.\n */\n private resolveSlidesNumber() {\n if (typeof this.config.perPage === 'number') {\n this.perPage = this.config.perPage;\n\n } else {\n this.perPage = 1;\n for (const key in this.config.perPage) {\n if (window.innerWidth >= this.config.perPage[key]) {\n this.perPage = this.config.perPage[key];\n }\n }\n }\n }\n\n\n /**\n * Go to previous slide.\n */\n public prev(howManySlides = 1, callback?: () => void) {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide - howManySlides < 0;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide + this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex - howManySlides;\n } else {\n this.currentSlide = this.currentSlide - howManySlides;\n }\n } else {\n this.currentSlide = Math.max(this.currentSlide - howManySlides, 0);\n }\n\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Go to next slide.\n */\n public next(howManySlides = 1, callback?: () => void) {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide - this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex + howManySlides;\n } else {\n this.currentSlide = this.currentSlide + howManySlides;\n }\n } else {\n this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage);\n }\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Disable transition on sliderFrame.\n */\n private disableTransition() {\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n }\n\n\n /**\n * Enable transition on sliderFrame.\n */\n private enableTransition() {\n this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`;\n }\n\n /**\n * Go to slide with particular index\n */\n public goTo(index: number, callback?: () => void) {\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n const beforeChange = this.currentSlide;\n this.currentSlide = this.config.loop ?\n index % this.innerElements.length :\n Math.min(Math.max(index, 0), this.innerElements.length - this.perPage);\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent();\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n /**\n * Moves sliders frame to position of currently active slide\n */\n public slideToCurrent(enableTransition?: boolean) {\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage);\n\n if (enableTransition) {\n // This one is tricky, I know but this is a perfect explanation:\n // https://youtu.be/cCOL7MC4Pl0\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.enableTransition();\n if (this.transformProperty === 'transform') {\n this.sliderFrame.style.transform = `translate3d(${offset}px, 0, 0)`;\n } else {\n this.sliderFrame.style.webkitTransform = `translate3d(${offset}px, 0, 0)`;\n }\n });\n });\n } else {\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`;\n }\n }\n\n\n /**\n * Recalculate drag /swipe event and reposition the frame of a slider\n */\n private updateAfterDrag() {\n const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX);\n const movementDistance = Math.abs(movement);\n const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1;\n\n const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0;\n const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage;\n\n if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.prev(howManySliderToSlide);\n } else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.next(howManySliderToSlide);\n }\n this.slideToCurrent(slideToNegativeClone || slideToPositiveClone);\n }\n\n\n /**\n * When window resizes, resize slider components as well\n */\n private resizeHandler = () => {\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // relcalculate currentSlide\n // prevent hiding items when browser width increases\n if (this.currentSlide + this.perPage > this.innerElements.length) {\n this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage;\n }\n\n this.selectorWidth = this.selector.offsetWidth;\n\n this.buildSliderFrame();\n }\n\n /**\n * Clear drag after touchend and mouseup event\n */\n private clearDrag() {\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: this.drag.preventClick\n };\n }\n\n /**\n * touchstart event handler\n */\n private touchstartHandler = (e: TouchEvent) => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.touches[0].pageX;\n this.drag.startY = e.touches[0].pageY;\n }\n\n /**\n * touchend event handler\n */\n private touchendHandler = (e: TouchEvent) => {\n e.stopPropagation();\n this.pointerDown = false;\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * touchmove event handler\n */\n private touchmoveHandler = (e: TouchEvent) => {\n e.stopPropagation();\n\n if (this.drag.letItGo === null) {\n this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX);\n }\n\n if (this.pointerDown && this.drag.letItGo) {\n e.preventDefault();\n this.drag.endX = e.touches[0].pageX;\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mousedown event handler\n */\n private mousedownHandler = (e: MouseEvent) => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.pageX;\n }\n\n /**\n * mouseup event handler\n */\n private mouseupHandler = (e: MouseEvent) => {\n e.stopPropagation();\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * mousemove event handler\n */\n private mousemoveHandler = (e: MouseEvent) => {\n e.preventDefault();\n if (this.pointerDown) {\n // if dragged element is a link\n // mark preventClick prop as a true\n // to detemine about browser redirection later on\n if ((e.target as HTMLElement).nodeName === 'A') {\n this.drag.preventClick = true;\n }\n\n this.drag.endX = e.pageX;\n this.selector.style.cursor = '-webkit-grabbing';\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mouseleave event handler\n */\n private mouseleaveHandler = (e: MouseEvent) => {\n if (this.pointerDown) {\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.drag.endX = e.pageX;\n this.drag.preventClick = false;\n this.enableTransition();\n this.updateAfterDrag();\n this.clearDrag();\n }\n }\n\n\n /**\n * click event handler\n */\n private clickHandler = (e: Event) => {\n // if the dragged element is a link\n // prevent browsers from folowing the link\n if (this.drag.preventClick) {\n e.preventDefault();\n }\n this.drag.preventClick = false;\n }\n\n\n /**\n * Remove item from carousel.\n */\n public remove(index: number, callback?: () => void) {\n if (index < 0 || index >= this.innerElements.length) {\n throw new Error('Item to remove doesn\\'t exist');\n }\n\n // Shift sliderFrame back by one item when:\n // 1. Item with lower index than currenSlide is removed.\n // 2. Last item is removed.\n const lowerIndex = index < this.currentSlide;\n const lastItem = this.currentSlide + this.perPage - 1 === index;\n\n if (lowerIndex || lastItem) {\n this.currentSlide--;\n }\n\n this.innerElements.splice(index, 1);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n\n /**\n * Insert item to carousel at particular index.\n */\n public insert(item: HTMLElement, index: number, callback?: () => void) {\n if (index < 0 || index > this.innerElements.length + 1) {\n throw new Error('Unable to inset it at this index 😭');\n }\n if (this.innerElements.indexOf(item) !== -1) {\n throw new Error('The same item in a carousel? Really? Nope 😭');\n }\n\n // Avoid shifting content\n const shouldItShift = index <= this.currentSlide && this.currentSlide > 0 && this.innerElements.length;\n this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide;\n\n this.innerElements.splice(index, 0, item);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Prepernd item to carousel.\n */\n public prepend(item: HTMLElement, callback?: () => void) {\n this.insert(item, 0);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Append item to carousel.\n */\n public append(item: HTMLElement, callback?: () => void) {\n this.insert(item, this.innerElements.length + 1);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Removes listeners and optionally restores to initial markup\n */\n public destroy(restoreMarkup = false, callback?: () => void) {\n this.detachEvents();\n\n this.selector.style.cursor = 'auto';\n\n if (restoreMarkup) {\n const slides = document.createDocumentFragment();\n for (let i = 0; i < this.innerElements.length; i++) {\n slides.appendChild(this.innerElements[i]);\n }\n this.selector.innerHTML = '';\n this.selector.appendChild(slides);\n this.selector.removeAttribute('style');\n }\n\n if (callback) {\n callback.call(this);\n }\n }\n\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/siema.min.js b/dist/siema.min.js deleted file mode 100644 index 48e29c7..0000000 --- a/dist/siema.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Siema",[],t):"object"==typeof exports?exports.Siema=t():e.Siema=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,i){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var i=0;i=e&&(this.perPage=this.config.perPage[e])}}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();var r=this.currentSlide+this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var r=this.currentSlide-this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,r=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+r+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+r+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,r=e>0&&this.currentSlide-i<0,n=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(r||n)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var r=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=r?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var i=document.createDocumentFragment(),r=0;r= 2.1.2 < 3" } }, - "hoek": { - "version": "2.16.3", - "bundled": true, - "dev": true - }, - "http-signature": { - "version": "1.1.1", + "ignore-walk": { + "version": "3.0.1", "bundled": true, "dev": true, "optional": true, "requires": { - "assert-plus": "0.2.0", - "jsprim": "1.4.0", - "sshpk": "1.13.0" + "minimatch": "^3.0.4" } }, "inflight": { "version": "1.0.6", "bundled": true, "dev": true, + "optional": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { - "version": "1.3.4", + "version": "1.3.5", "bundled": true, "dev": true, "optional": true @@ -2176,178 +1777,136 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, - "is-typedarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, "isarray": { "version": "1.0.0", "bundled": true, - "dev": true - }, - "isstream": { - "version": "0.1.2", - "bundled": true, "dev": true, "optional": true }, - "jodid25519": { - "version": "1.0.2", + "minimatch": { + "version": "3.0.4", "bundled": true, "dev": true, "optional": true, "requires": { - "jsbn": "0.1.1" + "brace-expansion": "^1.1.7" } }, - "jsbn": { - "version": "0.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "json-schema": { - "version": "0.2.3", + "minimist": { + "version": "0.0.8", "bundled": true, "dev": true, "optional": true }, - "json-stable-stringify": { - "version": "1.0.1", + "minipass": { + "version": "2.3.5", "bundled": true, "dev": true, "optional": true, "requires": { - "jsonify": "0.0.0" + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" } }, - "json-stringify-safe": { - "version": "5.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "jsonify": { - "version": "0.0.0", + "minizlib": { + "version": "1.2.1", "bundled": true, "dev": true, - "optional": true + "optional": true, + "requires": { + "minipass": "^2.2.1" + } }, - "jsprim": { - "version": "1.4.0", + "mkdirp": { + "version": "0.5.1", "bundled": true, "dev": true, "optional": true, "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.0.2", - "json-schema": "0.2.3", - "verror": "1.3.6" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } + "minimist": "0.0.8" } }, - "mime-db": { - "version": "1.27.0", + "ms": { + "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, - "mime-types": { - "version": "2.1.15", + "needle": { + "version": "2.3.0", "bundled": true, "dev": true, + "optional": true, "requires": { - "mime-db": "1.27.0" + "debug": "^4.1.0", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" } }, - "minimatch": { - "version": "3.0.4", + "node-pre-gyp": { + "version": "0.12.0", "bundled": true, "dev": true, + "optional": true, "requires": { - "brace-expansion": "1.1.7" + "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" } }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true - }, - "mkdirp": { - "version": "0.5.1", + "nopt": { + "version": "4.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { - "minimist": "0.0.8" + "abbrev": "1", + "osenv": "^0.1.4" } }, - "ms": { - "version": "2.0.0", + "npm-bundled": { + "version": "1.0.6", "bundled": true, "dev": true, "optional": true }, - "node-pre-gyp": { - "version": "0.6.39", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "1.0.2", - "hawk": "3.1.3", - "mkdirp": "0.5.1", - "nopt": "4.0.1", - "npmlog": "4.1.0", - "rc": "1.2.1", - "request": "2.81.0", - "rimraf": "2.6.1", - "semver": "5.3.0", - "tar": "2.2.1", - "tar-pack": "3.4.0" - } - }, - "nopt": { - "version": "4.0.1", + "npm-packlist": { + "version": "1.4.1", "bundled": true, "dev": true, "optional": true, "requires": { - "abbrev": "1.1.0", - "osenv": "0.1.4" + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" } }, "npmlog": { - "version": "4.1.0", + "version": "4.1.2", "bundled": true, "dev": true, "optional": true, "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" + "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 - }, - "oauth-sign": { - "version": "0.8.2", - "bundled": true, "dev": true, "optional": true }, @@ -2361,8 +1920,9 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "os-homedir": { @@ -2378,53 +1938,37 @@ "optional": true }, "osenv": { - "version": "0.1.4", + "version": "0.1.5", "bundled": true, "dev": true, "optional": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, "path-is-absolute": { "version": "1.0.1", "bundled": true, - "dev": true - }, - "performance-now": { - "version": "0.2.0", - "bundled": true, "dev": true, "optional": true }, "process-nextick-args": { - "version": "1.0.7", - "bundled": true, - "dev": true - }, - "punycode": { - "version": "1.4.1", - "bundled": true, - "dev": true, - "optional": true - }, - "qs": { - "version": "6.4.0", + "version": "2.0.0", "bundled": true, "dev": true, "optional": true }, "rc": { - "version": "1.2.1", + "version": "1.2.8", "bundled": true, "dev": true, "optional": true, "requires": { - "deep-extend": "0.4.2", - "ini": "1.3.4", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, "dependencies": { "minimist": { @@ -2436,352 +1980,309 @@ } }, "readable-stream": { - "version": "2.2.9", - "bundled": true, - "dev": true, - "requires": { - "buffer-shims": "1.0.0", - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "1.0.1", - "util-deprecate": "1.0.2" - } - }, - "request": { - "version": "2.81.0", + "version": "2.3.6", "bundled": true, "dev": true, "optional": true, "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", - "caseless": "0.12.0", - "combined-stream": "1.0.5", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.1.4", - "har-validator": "4.2.1", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.15", - "oauth-sign": "0.8.2", - "performance-now": "0.2.0", - "qs": "6.4.0", - "safe-buffer": "5.0.1", - "stringstream": "0.0.5", - "tough-cookie": "2.3.2", - "tunnel-agent": "0.6.0", - "uuid": "3.0.1" + "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.6.1", + "version": "2.6.3", "bundled": true, "dev": true, + "optional": true, "requires": { - "glob": "7.1.2" + "glob": "^7.1.3" } }, "safe-buffer": { - "version": "5.0.1", - "bundled": true, - "dev": true - }, - "semver": { - "version": "5.3.0", + "version": "5.1.2", "bundled": true, "dev": true, "optional": true }, - "set-blocking": { - "version": "2.0.0", + "safer-buffer": { + "version": "2.1.2", "bundled": true, "dev": true, "optional": true }, - "signal-exit": { - "version": "3.0.2", + "sax": { + "version": "1.2.4", "bundled": true, "dev": true, "optional": true }, - "sntp": { - "version": "1.0.9", - "bundled": true, - "dev": true, - "requires": { - "hoek": "2.16.3" - } - }, - "sshpk": { - "version": "1.13.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jodid25519": "1.0.2", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" - } - }, - "string_decoder": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "5.0.1" - } - }, - "stringstream": { - "version": "0.0.5", + "semver": { + "version": "5.7.0", "bundled": true, "dev": true, "optional": true }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", + "set-blocking": { + "version": "2.0.0", "bundled": true, "dev": true, "optional": true }, - "tar": { - "version": "2.2.1", + "signal-exit": { + "version": "3.0.2", "bundled": true, "dev": true, - "requires": { - "block-stream": "0.0.9", - "fstream": "1.0.11", - "inherits": "2.0.3" - } + "optional": true }, - "tar-pack": { - "version": "3.4.0", + "string-width": { + "version": "1.0.2", "bundled": true, "dev": true, "optional": true, "requires": { - "debug": "2.6.8", - "fstream": "1.0.11", - "fstream-ignore": "1.0.5", - "once": "1.4.0", - "readable-stream": "2.2.9", - "rimraf": "2.6.1", - "tar": "2.2.1", - "uid-number": "0.0.6" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, - "tough-cookie": { - "version": "2.3.2", + "string_decoder": { + "version": "1.1.1", "bundled": true, "dev": true, "optional": true, "requires": { - "punycode": "1.4.1" + "safe-buffer": "~5.1.0" } }, - "tunnel-agent": { - "version": "0.6.0", + "strip-ansi": { + "version": "3.0.1", "bundled": true, "dev": true, "optional": true, "requires": { - "safe-buffer": "5.0.1" + "ansi-regex": "^2.0.0" } }, - "tweetnacl": { - "version": "0.14.5", + "strip-json-comments": { + "version": "2.0.1", "bundled": true, "dev": true, "optional": true }, - "uid-number": { - "version": "0.0.6", + "tar": { + "version": "4.4.8", "bundled": true, "dev": true, - "optional": true + "optional": true, + "requires": { + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.3.4", + "minizlib": "^1.1.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.2" + } }, "util-deprecate": { "version": "1.0.2", "bundled": true, - "dev": true - }, - "uuid": { - "version": "3.0.1", - "bundled": true, "dev": true, "optional": true }, - "verror": { - "version": "1.3.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "extsprintf": "1.0.2" - } - }, "wide-align": { - "version": "1.1.2", + "version": "1.1.3", "bundled": true, "dev": true, "optional": true, "requires": { - "string-width": "1.0.2" + "string-width": "^1.0.2 || 2" } }, "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true + }, + "yallist": { + "version": "3.0.3", + "bundled": true, + "dev": true, + "optional": 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=", + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, "get-caller-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "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-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "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" + } + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", "dev": true }, "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "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.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "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-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { - "glob-parent": "2.0.0", - "is-glob": "2.0.1" + "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, + "requires": { + "is-extglob": "^2.1.0" + } + } } }, - "glob-parent": { + "global-modules": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", "dev": true, "requires": { - "is-glob": "2.0.1" + "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" + } + } } }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "globby": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", + "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": { - "array-union": "1.0.2", - "arrify": "1.0.1", - "glob": "7.1.2", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "expand-tilde": "^2.0.2", + "homedir-polyfill": "^1.0.1", + "ini": "^1.3.4", + "is-windows": "^1.0.1", + "which": "^1.2.14" } }, "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", "dev": true }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "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.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "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": { - "ansi-regex": "2.1.1" + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" } }, - "has-flag": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", - "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", - "dev": true + "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" + } + } + } }, "hash-base": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", - "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", + "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", "dev": true, "requires": { - "inherits": "2.0.3" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "hash.js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", - "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", + "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.0" + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" } }, "hmac-drbg": { @@ -2790,61 +2291,58 @@ "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", "dev": true, "requires": { - "hash.js": "1.1.3", - "minimalistic-assert": "1.0.0", - "minimalistic-crypto-utils": "1.0.1" + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" } }, - "home-or-tmp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", - "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "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": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "parse-passwd": "^1.0.0" } }, - "hosted-git-info": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", - "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", - "dev": true - }, "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 }, - "iconv-lite": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", - "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==", - "dev": true - }, "ieee754": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", - "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", "dev": true }, - "ignore": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz", - "integrity": "sha512-YGG3ejvBNHRqu0559EOxxNFihD0AjpvHlC/pdGKd3X3ofe+CoJkYazwNJYTNebqpPKN+VVQbh4ZFn1DivMNuHA==", + "iferr": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", + "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", "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 }, - "indexof": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", - "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", + "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": { @@ -2853,8 +2351,8 @@ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -2863,100 +2361,43 @@ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true }, - "inquirer": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", - "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", - "dev": true, - "requires": { - "ansi-escapes": "3.0.0", - "chalk": "2.3.0", - "cli-cursor": "2.1.0", - "cli-width": "2.2.0", - "external-editor": "2.1.0", - "figures": "2.0.0", - "lodash": "4.17.4", - "mute-stream": "0.0.7", - "run-async": "2.3.0", - "rx-lite": "4.0.8", - "rx-lite-aggregates": "4.0.8", - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "through": "2.3.8" - }, - "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 - }, - "ansi-styles": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", - "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "chalk": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz", - "integrity": "sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==", - "dev": true, - "requires": { - "ansi-styles": "3.2.0", - "escape-string-regexp": "1.0.5", - "supports-color": "4.5.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" - } - }, - "supports-color": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", - "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", - "dev": true, - "requires": { - "has-flag": "2.0.0" - } - } - } + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true }, "interpret": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", - "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", + "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", "dev": true }, - "invariant": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz", - "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", - "dev": true, - "requires": { - "loose-envify": "1.3.1" - } - }, "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", "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-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-binary-path": { "version": "1.0.1", @@ -2964,7 +2405,7 @@ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "dev": true, "requires": { - "binary-extensions": "1.11.0" + "binary-extensions": "^1.0.0" } }, "is-buffer": { @@ -2973,28 +2414,43 @@ "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, - "is-builtin-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "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": { - "builtin-modules": "1.1.1" + "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-dotfile": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", - "dev": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "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-primitive": "2.0.0" + "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-extendable": { @@ -3004,20 +2460,11 @@ "dev": true }, "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "requires": { - "number-is-nan": "1.0.1" - } - }, "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", @@ -3025,75 +2472,59 @@ "dev": true }, "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "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": "1.0.0" + "is-extglob": "^2.1.1" } }, "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "dev": true, - "requires": { - "kind-of": "3.2.2" - } - }, - "is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true - }, - "is-path-in-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", - "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { - "is-path-inside": "1.0.1" + "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-path-inside": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", - "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "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": { - "path-is-inside": "1.0.2" + "isobject": "^3.0.1" } }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "dev": true - }, - "is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", - "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "dev": true }, - "is-resolvable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", - "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "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-stream": { + "is-wsl": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", "dev": true }, "isarray": { @@ -3109,253 +2540,184 @@ "dev": true }, "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" - } - }, - "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true - }, - "js-yaml": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz", - "integrity": "sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==", - "dev": true, - "requires": { - "argparse": "1.0.9", - "esprima": "4.0.0" - } - }, - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true - }, - "json-loader": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", - "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", - "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 - }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", "dev": true }, - "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.6" - } - }, - "lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "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 }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "requires": { - "invert-kv": "1.0.0" - } - }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "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": { - "prelude-ls": "1.1.2", - "type-check": "0.3.2" + "argparse": "^1.0.7", + "esprima": "^4.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=", + "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-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "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": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "strip-bom": "3.0.0" + "minimist": "^1.2.0" } }, - "loader-fs-cache": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/loader-fs-cache/-/loader-fs-cache-1.0.1.tgz", - "integrity": "sha1-VuC/CL2XCLJqdltoUJhAyN7J/bw=", + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "lcid": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", + "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", "dev": true, "requires": { - "find-cache-dir": "0.1.1", - "mkdirp": "0.5.1" - }, - "dependencies": { - "find-cache-dir": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz", - "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", - "dev": true, - "requires": { - "commondir": "1.0.1", - "mkdirp": "0.5.1", - "pkg-dir": "1.0.0" - } - }, - "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.1.0", - "pinkie-promise": "2.0.1" - } - }, - "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.1" - } - }, - "pkg-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-1.0.0.tgz", - "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", - "dev": true, - "requires": { - "find-up": "1.1.2" - } - } + "invert-kv": "^2.0.0" } }, "loader-runner": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", - "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", + "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.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", + "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", "dev": true, "requires": { - "big.js": "3.2.0", - "emojis-list": "2.1.0", - "json5": "0.5.1" + "big.js": "^5.2.2", + "emojis-list": "^2.0.0", + "json5": "^1.0.1" } }, "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "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": "2.0.0", - "path-exists": "3.0.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" } }, "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", "dev": true }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true + "log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "dev": true, + "requires": { + "chalk": "^2.0.1" + } }, - "loose-envify": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", - "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "loglevelnext": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/loglevelnext/-/loglevelnext-1.0.5.tgz", + "integrity": "sha512-V/73qkPuJmx4BcBF19xPBr+0ZRVBhc4POxvZTZdMeXpJ4NItXSJ/MSwuFT0kQJlCbXvdlZoQQ/418bS1y9Jh6A==", "dev": true, "requires": { - "js-tokens": "3.0.2" + "es6-symbol": "^3.1.1", + "object.assign": "^4.1.0" } }, "lru-cache": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", - "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", + "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": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "yallist": "^3.0.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" + } + }, + "mamacro": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", + "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", + "dev": true + }, + "map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dev": true, + "requires": { + "p-defer": "^1.0.0" + } + }, + "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-visit": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.0.0.tgz", - "integrity": "sha1-l6ARdR6R3YfPre9Ygy67BJNt6Xg=", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", "dev": true, "requires": { - "pify": "2.3.0" + "object-visit": "^1.0.0" } }, "md5.js": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", - "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", + "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.4", - "inherits": "2.0.3" - }, - "dependencies": { - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.1" - } - } + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" } }, "mem": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", + "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" } }, "memory-fs": { @@ -3364,29 +2726,29 @@ "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", "dev": true, "requires": { - "errno": "0.1.6", - "readable-stream": "2.3.3" + "errno": "^0.1.3", + "readable-stream": "^2.0.1" } }, "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "2.0.0", - "array-unique": "0.2.1", - "braces": "1.8.5", - "expand-brackets": "0.1.5", - "extglob": "0.3.2", - "filename-regex": "2.0.1", - "is-extglob": "1.0.0", - "is-glob": "2.0.1", - "kind-of": "3.2.2", - "normalize-path": "2.1.1", - "object.omit": "2.0.1", - "parse-glob": "3.0.4", - "regex-cache": "0.4.4" + "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": { @@ -3395,20 +2757,20 @@ "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", "dev": true, "requires": { - "bn.js": "4.11.8", - "brorand": "1.1.0" + "bn.js": "^4.0.0", + "brorand": "^1.0.1" } }, "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true }, "minimalistic-assert": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", - "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=", + "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": { @@ -3423,15 +2785,54 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } }, "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "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": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", @@ -3439,6 +2840,53 @@ "dev": true, "requires": { "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + } + } + }, + "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": { + "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" + } + }, + "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": { @@ -3447,76 +2895,94 @@ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, - "mute-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", - "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", - "dev": true - }, "nan": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.8.0.tgz", - "integrity": "sha1-7XFfP+neArV6XmJS2QqWZ14fCFo=", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", + "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", "dev": true, "optional": true }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "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" + } + }, + "neo-async": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", + "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", + "dev": true + }, + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, "node-libs-browser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.1.0.tgz", - "integrity": "sha512-5AzFzdoIMb89hBGMZglEegffzgRg+ZFoUmisQ8HI4j1KDdpx13J0taNp2y9xPbur6W61gepGDDotGBVQ7mfUCg==", - "dev": true, - "requires": { - "assert": "1.4.1", - "browserify-zlib": "0.2.0", - "buffer": "4.9.1", - "console-browserify": "1.1.0", - "constants-browserify": "1.0.0", - "crypto-browserify": "3.12.0", - "domain-browser": "1.2.0", - "events": "1.1.1", - "https-browserify": "1.0.0", - "os-browserify": "0.3.0", - "path-browserify": "0.0.0", - "process": "0.11.10", - "punycode": "1.4.1", - "querystring-es3": "0.2.1", - "readable-stream": "2.3.3", - "stream-browserify": "2.0.1", - "stream-http": "2.8.0", - "string_decoder": "1.0.3", - "timers-browserify": "2.0.6", + "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.10.3", - "vm-browserify": "0.0.4" - } - }, - "normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", - "dev": true, - "requires": { - "hosted-git-info": "2.5.0", - "is-builtin-module": "1.0.0", - "semver": "5.5.0", - "validate-npm-package-license": "3.0.1" + "url": "^0.11.0", + "util": "^0.11.0", + "vm-browserify": "^1.0.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + } } }, "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, - "requires": { - "remove-trailing-separator": "1.1.0" - } + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true }, "npm-run-path": { "version": "2.0.2", @@ -3524,67 +2990,89 @@ "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, "requires": { - "path-key": "2.0.1" + "path-key": "^2.0.0" } }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "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-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.2.0.tgz", - "integrity": "sha512-smRWXzkvxw72VquyZ0wggySl7PFUtoDhvhpdwgESXxUrH7vVhhp9asfup1+rVLrhsl7L45Ee1Q/l5R2Ul4MwUg==", + "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-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.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "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": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" + "isobject": "^3.0.0" } }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "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": { - "wrappy": "1.0.2" + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" } }, - "onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "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": { - "mimic-fn": "1.2.0" + "isobject": "^3.0.1" } }, - "optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "deep-is": "0.1.3", - "fast-levenshtein": "2.0.6", - "levn": "0.3.0", - "prelude-ls": "1.1.2", - "type-check": "0.3.2", - "wordwrap": "1.0.0" + "wrappy": "1" } }, "os-browserify": { @@ -3593,27 +3081,21 @@ "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", "dev": true }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true - }, "os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", + "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", "dev": true, "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" } }, - "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=", + "p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", "dev": true }, "p-finally": { @@ -3622,65 +3104,89 @@ "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", "dev": true }, - "p-limit": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.1.0.tgz", - "integrity": "sha1-sH/y2aXYi+yAYDWJWiurZqJ5iLw=", + "p-is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", "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": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "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": "1.1.0" + "p-limit": "^2.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 + }, "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==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", + "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==", "dev": true }, - "parse-asn1": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", - "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", + "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": { - "asn1.js": "4.9.2", - "browserify-aes": "1.1.1", - "create-hash": "1.1.3", - "evp_bytestokey": "1.0.3", - "pbkdf2": "3.0.14" + "cyclist": "^1.0.1", + "inherits": "^2.0.3", + "readable-stream": "^2.1.5" } }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "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": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" + "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.3.1" - } + "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 + }, + "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.0", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", - "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", + "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 }, "path-exists": { @@ -3695,92 +3201,50 @@ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", - "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-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.3.0" - } + "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 }, "pbkdf2": { - "version": "3.0.14", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz", - "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==", + "version": "3.0.17", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", + "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", "dev": true, "requires": { - "create-hash": "1.1.3", - "create-hmac": "1.1.6", - "ripemd160": "2.0.1", - "safe-buffer": "5.1.1", - "sha.js": "2.4.10" + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" } }, "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=", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "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.4" - } - }, "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", "dev": true, - "requires": { - "find-up": "2.1.0" - } - }, - "pluralize": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", - "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==", - "dev": true - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true + "requires": { + "find-up": "^3.0.0" + } }, - "private": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "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 }, "process": { @@ -3790,15 +3254,15 @@ "dev": true }, "process-nextick-args": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", - "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "progress": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.0.tgz", - "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=", + "promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", "dev": true }, "prr": { @@ -3807,29 +3271,57 @@ "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 - }, "public-encrypt": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", - "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", + "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" + } + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "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": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.1.3", - "parse-asn1": "5.1.0", - "randombytes": "2.0.6" + "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": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "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 }, "querystring": { @@ -3844,178 +3336,59 @@ "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", "dev": true }, - "randomatic": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", - "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", - "dev": true, - "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" - }, - "dependencies": { - "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.2.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.6" - } - } - } - }, - "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.6" - } - } - } - }, "randombytes": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", - "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", + "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.1" + "safe-buffer": "^5.1.0" } }, "randomfill": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.3.tgz", - "integrity": "sha512-YL6GrhrWoic0Eq8rXVbMptH7dAxCs0J+mh5Y0euNekPPYaxEmdVGim6GdoxoRzKW2yJoU8tueifS7mYxvcFDEQ==", - "dev": true, - "requires": { - "randombytes": "2.0.6", - "safe-buffer": "5.1.1" - } - }, - "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.4.0", - "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=", + "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": { - "find-up": "2.1.0", - "read-pkg": "2.0.0" + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" } }, "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "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" } }, "readdirp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.3", - "set-immediate-shim": "1.0.1" - } - }, - "regenerate": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.3.3.tgz", - "integrity": "sha512-jVpo1GadrDAK59t/0jRx5VxYWQEDkkEKi6+HjE3joFVLfDOh9Xrdh0dF1eSq+BI/SwvTQ44gSscJ8N5zYL61sg==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz", - "integrity": "sha512-/aA0kLeRb5N9K0d4fw7ooEbI+xDe+DKD499EQqygGqeS8N3xto15p09uY2xj7ixP81sNPXvRLnAQIqdVStgb1A==", - "dev": true - }, - "regenerator-transform": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", - "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", - "dev": true, - "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "private": "0.1.8" - } - }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", - "dev": true, - "requires": { - "is-equal-shallow": "0.1.3" - } - }, - "regexpu-core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", - "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", + "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, "requires": { - "regenerate": "1.3.3", - "regjsgen": "0.2.0", - "regjsparser": "0.1.5" + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" } }, - "regjsgen": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", - "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", - "dev": true - }, - "regjsparser": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", - "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", + "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": { - "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 - } + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" } }, "remove-trailing-separator": { @@ -4025,9 +3398,9 @@ "dev": true }, "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "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": { @@ -4036,15 +3409,6 @@ "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "1.0.2" - } - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -4052,99 +3416,150 @@ "dev": true }, "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "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 }, - "require-uncached": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", - "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", "dev": true, "requires": { - "caller-path": "0.1.0", - "resolve-from": "1.0.1" + "path-parse": "^1.0.6" } }, - "resolve-from": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", - "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", - "dev": true - }, - "restore-cursor": { + "resolve-cwd": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", + "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", "dev": true, "requires": { - "onetime": "2.0.1", - "signal-exit": "3.0.2" + "resolve-from": "^3.0.0" } }, - "right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "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": { - "align-text": "0.1.4" + "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": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "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 + }, + "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 + }, "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.0.tgz", + "integrity": "sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg==", "dev": true, "requires": { - "glob": "7.1.2" + "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.1", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", - "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", "dev": true, "requires": { - "hash-base": "2.0.2", - "inherits": "2.0.3" + "hash-base": "^3.0.0", + "inherits": "^2.0.1" } }, - "run-async": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", - "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", + "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": { - "is-promise": "2.1.0" + "aproba": "^1.1.1" } }, - "rx-lite": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", - "integrity": "sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ=", + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, - "rx-lite-aggregates": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz", - "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", + "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": { - "rx-lite": "4.0.8" + "ret": "~0.1.10" } }, - "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", - "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" + } }, "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "serialize-javascript": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz", + "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==", "dev": true }, "set-blocking": { @@ -4153,11 +3568,28 @@ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "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", @@ -4166,13 +3598,13 @@ "dev": true }, "sha.js": { - "version": "2.4.10", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.10.tgz", - "integrity": "sha512-vnwmrFDlOExK4Nm16J2KMWHLrp14lBrjxMxBJpu++EnsuBmpiYaM/MEs46Vxxm/4FvdP5yTwuCTO9it5FSjrqA==", + "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.3", - "safe-buffer": "5.1.1" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "shebang-command": { @@ -4181,7 +3613,7 @@ "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { - "shebang-regex": "1.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { @@ -4196,25 +3628,117 @@ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, - "slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", - "dev": true + "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" + } + } + } }, - "slice-ansi": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz", - "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", + "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": { - "is-fullwidth-code-point": "2.0.0" + "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.0", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz", - "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==", + "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": { @@ -4223,35 +3747,51 @@ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "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": { - "source-map": "0.5.7" + "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" } }, - "spdx-correct": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", - "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", + "source-map-support": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz", + "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==", "dev": true, "requires": { - "spdx-license-ids": "1.2.2" + "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 + } } }, - "spdx-expression-parse": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", - "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", + "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 }, - "spdx-license-ids": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", - "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", - "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", @@ -4259,177 +3799,186 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, + "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" + } + } + } + }, "stream-browserify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", - "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "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": { - "inherits": "2.0.3", - "readable-stream": "2.3.3" + "end-of-stream": "^1.1.0", + "stream-shift": "^1.0.0" } }, "stream-http": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.0.tgz", - "integrity": "sha512-sZOFxI/5xw058XIRHl4dU3dZ+TTOIGJR78Dvo0oEAejIt4ou27k+3ne1zYmCV+v7UucbxIFQuOgnkTVHh8YPnw==", + "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.3", - "readable-stream": "2.3.3", - "to-arraybuffer": "1.0.1", - "xtend": "4.0.1" + "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.0", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "dev": true + }, "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "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": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" - }, - "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 - }, - "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" - } - } + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" } }, "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "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": "2.1.1" + "ansi-regex": "^4.1.0" } }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, "strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "dev": true }, - "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 - }, "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "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" + } + }, + "tapable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", "dev": true }, - "table": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/table/-/table-4.0.2.tgz", - "integrity": "sha512-UUkEAPdSGxtRpiV9ozJ5cMTtYiqz7Ni1OGqLXRCynrvzdtR1p+cfOWe2RJLwvUG8hNanaSRjecIqwOjqeatDsA==", + "terser": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.4.0.tgz", + "integrity": "sha512-oDG16n2WKm27JO8h4y/w3iqBGAOSCtq7k8dRmrn4Wf9NouL0b2WpMHGChFGZq4nFAQy1FsNJrVQHfurXOSTmOA==", "dev": true, "requires": { - "ajv": "5.5.2", - "ajv-keywords": "2.1.1", - "chalk": "2.3.0", - "lodash": "4.17.4", - "slice-ansi": "1.0.0", - "string-width": "2.1.1" + "commander": "^2.20.0", + "source-map": "~0.6.1", + "source-map-support": "~0.5.12" }, "dependencies": { - "ansi-styles": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", - "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "chalk": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz", - "integrity": "sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==", - "dev": true, - "requires": { - "ansi-styles": "3.2.0", - "escape-string-regexp": "1.0.5", - "supports-color": "4.5.0" - } - }, - "supports-color": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", - "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", - "dev": true, - "requires": { - "has-flag": "2.0.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 } } }, - "tapable": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz", - "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", - "dev": true - }, - "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 + "terser-webpack-plugin": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz", + "integrity": "sha512-ZXmmfiwtCLfz8WKZyYUuuHf3dMYEjg8NrjHMb0JqHVHVOSkzp3cW2/XG1fP3tRhqEqSzMwzzRQGtAPbs4Cncxg==", + "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": "^1.7.0", + "source-map": "^0.6.1", + "terser": "^4.1.2", + "webpack-sources": "^1.4.0", + "worker-farm": "^1.7.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 + } + } }, - "timers-browserify": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.6.tgz", - "integrity": "sha512-HQ3nbYRAowdVd0ckGFvmJPPCOH/CHleFN/Y0YQCX1DVaB7t+KFvisuyN09fuP8Jtp1CpfSh8O8bMkHbdbPe6Pw==", + "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": { - "setimmediate": "1.0.5" + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" } }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "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": { - "os-tmpdir": "1.0.2" + "setimmediate": "^1.0.4" } }, "to-arraybuffer": { @@ -4438,32 +3987,95 @@ "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", "dev": true }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "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" + } + } + } }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "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" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", "dev": true }, + "tslint": { + "version": "5.20.1", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz", + "integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, "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 }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "1.1.2" - } + "type": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", + "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", + "dev": true }, "typedarray": { "version": "0.0.6", @@ -4471,49 +4083,103 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, - "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "typescript": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.2.tgz", + "integrity": "sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==", + "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" + } + }, + "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": { - "source-map": "0.5.7", - "uglify-to-browserify": "1.0.2", - "yargs": "3.10.0" + "has-value": "^0.3.1", + "isobject": "^3.0.0" }, "dependencies": { - "yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "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": { - "camelcase": "1.2.1", - "cliui": "2.1.0", - "decamelize": "1.2.0", - "window-size": "0.1.0" + "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 } } }, - "uglify-to-browserify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", - "dev": true, - "optional": 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 }, - "uglifyjs-webpack-plugin": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz", - "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=", + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "dev": true, "requires": { - "source-map": "0.5.7", - "uglify-js": "2.8.29", - "webpack-sources": "1.1.0" + "punycode": "^2.1.0" } }, + "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", @@ -4532,21 +4198,19 @@ } } }, + "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.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "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.1" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - } + "inherits": "2.0.3" } }, "util-deprecate": { @@ -4555,85 +4219,130 @@ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, - "validate-npm-package-license": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", - "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", - "dev": true, - "requires": { - "spdx-correct": "1.0.2", - "spdx-expression-parse": "1.0.4" - } + "uuid": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", + "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", + "dev": true + }, + "v8-compile-cache": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.0.3.tgz", + "integrity": "sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w==", + "dev": true }, "vm-browserify": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", - "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", - "dev": true, - "requires": { - "indexof": "0.0.1" - } + "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.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.4.0.tgz", - "integrity": "sha1-ShRyvLuVK9Cpu0A2gB+VTfs5+qw=", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", + "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", "dev": true, "requires": { - "async": "2.6.0", - "chokidar": "1.7.0", - "graceful-fs": "4.1.11" + "chokidar": "^2.0.2", + "graceful-fs": "^4.1.2", + "neo-async": "^2.5.0" } }, "webpack": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.10.0.tgz", - "integrity": "sha512-fxxKXoicjdXNUMY7LIdY89tkJJJ0m1Oo8PQutZ5rLgWbV5QVKI15Cn7+/IHnRTd3vfKfiwBx6SBqlorAuNA8LA==", - "dev": true, - "requires": { - "acorn": "5.4.1", - "acorn-dynamic-import": "2.0.2", - "ajv": "5.5.2", - "ajv-keywords": "2.1.1", - "async": "2.6.0", - "enhanced-resolve": "3.4.1", - "escope": "3.6.0", - "interpret": "1.1.0", - "json-loader": "0.5.7", - "json5": "0.5.1", - "loader-runner": "2.3.0", - "loader-utils": "1.1.0", - "memory-fs": "0.4.1", - "mkdirp": "0.5.1", - "node-libs-browser": "2.1.0", - "source-map": "0.5.7", - "supports-color": "4.5.0", - "tapable": "0.2.8", - "uglifyjs-webpack-plugin": "0.4.6", - "watchpack": "1.4.0", - "webpack-sources": "1.1.0", - "yargs": "8.0.2" + "version": "4.41.2", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.2.tgz", + "integrity": "sha512-Zhw69edTGfbz9/8JJoyRQ/pq8FYUoY0diOXqW0T6yhgdhCv6wr0hra5DwwWexNRns2Z2+gsnrNcbe9hbGBgk/A==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/helper-module-context": "1.8.5", + "@webassemblyjs/wasm-edit": "1.8.5", + "@webassemblyjs/wasm-parser": "1.8.5", + "acorn": "^6.2.1", + "ajv": "^6.10.2", + "ajv-keywords": "^3.4.1", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^4.1.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.1", + "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.1", + "watchpack": "^1.6.0", + "webpack-sources": "^1.4.1" }, "dependencies": { - "supports-color": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", - "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "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" + } + } + } + }, + "webpack-cli": { + "version": "3.3.10", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.10.tgz", + "integrity": "sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg==", + "dev": true, + "requires": { + "chalk": "2.4.2", + "cross-spawn": "6.0.5", + "enhanced-resolve": "4.1.0", + "findup-sync": "3.0.0", + "global-modules": "2.0.0", + "import-local": "2.0.0", + "interpret": "1.2.0", + "loader-utils": "1.2.3", + "supports-color": "6.1.0", + "v8-compile-cache": "2.0.3", + "yargs": "13.2.4" + }, + "dependencies": { + "enhanced-resolve": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz", + "integrity": "sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==", "dev": true, "requires": { - "has-flag": "2.0.0" + "graceful-fs": "^4.1.2", + "memory-fs": "^0.4.0", + "tapable": "^1.0.0" } } } }, + "webpack-log": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/webpack-log/-/webpack-log-1.2.0.tgz", + "integrity": "sha512-U9AnICnu50HXtiqiDxuli5gLB5PGBo7VvcHx36jRZHwK4vzOYLbImqT4lwWwoMHdQWwEKw736fCHEekokTEKHA==", + "dev": true, + "requires": { + "chalk": "^2.1.0", + "log-symbols": "^2.1.0", + "loglevelnext": "^1.0.1", + "uuid": "^3.1.0" + } + }, "webpack-sources": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz", - "integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==", + "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" + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" }, "dependencies": { "source-map": { @@ -4645,12 +4354,12 @@ } }, "which": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", - "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "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" + "isexe": "^2.0.0" } }, "which-module": { @@ -4659,48 +4368,24 @@ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, - "window-size": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", - "dev": true - }, - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "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" + } }, "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "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": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" - }, - "dependencies": { - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "1.0.1" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" - } - } + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" } }, "wrappy": { @@ -4709,110 +4394,51 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "write": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", - "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", - "dev": true, - "requires": { - "mkdirp": "0.5.1" - } - }, "xtend": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", - "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "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": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "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=", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true }, "yargs": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz", - "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", - "dev": true, - "requires": { - "camelcase": "4.1.0", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "get-caller-file": "1.0.2", - "os-locale": "2.1.0", - "read-pkg-up": "2.0.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "3.2.1", - "yargs-parser": "7.0.0" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "dev": true, - "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wrap-ansi": "2.1.0" - }, - "dependencies": { - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" - } - } - } - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "1.0.1" - } - } + "version": "13.2.4", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.4.tgz", + "integrity": "sha512-HG/DWAJa1PAnHT9JAhNa8AbAv3FPaiLzioSjCcmuXXhP8MlpHO5vwls4g4j6n30Z74GVQj8Xa62dWVx1QCGklg==", + "dev": true, + "requires": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "os-locale": "^3.1.0", + "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.0" } }, "yargs-parser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", - "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", + "version": "13.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz", + "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==", "dev": true, "requires": { - "camelcase": "4.1.0" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - } + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } diff --git a/package.json b/package.json index d8bff28..4652d2c 100644 --- a/package.json +++ b/package.json @@ -2,20 +2,26 @@ "name": "siema", "version": "1.5.1", "description": "Lightweight and simple carousel with no dependencies", - "main": "dist/siema.min.js", + "main": "dist/siema.js", + "module": "dist/siema.js", + "typings": "dist/siema.d.ts", + "typescript": { + "definition": "dist/siema.d.ts" + }, "devDependencies": { - "babel": "^6.23.0", - "babel-core": "^6.26.0", - "babel-loader": "^7.1.2", - "babel-plugin-add-module-exports": "^0.2.1", - "babel-preset-es2015": "^6.24.1", - "eslint": "4.16.0", - "eslint-loader": "^1.9.0", - "webpack": "3.10.0" + "awesome-typescript-loader": "5.2.1", + "rimraf": "3.0.0", + "tslint": "5.20.1", + "typescript": "3.7.2", + "webpack": "4.41.2", + "webpack-cli": "3.3.10" }, "scripts": { - "build": "webpack && cp dist/siema.min.js docs/assets", - "dev": "webpack --progress --colors --watch" + "clean": "rimraf dist", + "build": "npm run build:prod", + "build:dev": "npm run clean && webpack --mode development --progress --profile --colors --bail --display-error-details", + "build:watch": "npm run clean && webpack --mode development --progress --profile --colors --bail --display-error-details --watch", + "build:prod": "npm run clean && webpack --mode production --progress --profile --colors --bail" }, "files": [ "dist" diff --git a/src/siema.js b/src/siema.js deleted file mode 100644 index 83b4c93..0000000 --- a/src/siema.js +++ /dev/null @@ -1,693 +0,0 @@ -/** - * Hi :-) This is a class representing a Siema. - */ -export default class Siema { - /** - * Create a Siema. - * @param {Object} options - Optional settings object. - */ - constructor(options) { - // Merge defaults with user's settings - this.config = Siema.mergeSettings(options); - - // Resolve selector's type - this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector; - - // Early throw if selector doesn't exists - if (this.selector === null) { - throw new Error('Something wrong with your selector 😭'); - } - - // update perPage number dependable of user value - this.resolveSlidesNumber(); - - // Create global references - this.selectorWidth = this.selector.offsetWidth; - this.innerElements = [].slice.call(this.selector.children); - this.currentSlide = this.config.loop ? - this.config.startIndex % this.innerElements.length : - Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage)); - this.transformProperty = Siema.webkitOrNot(); - - // Bind all event handlers for referencability - ['resizeHandler', 'touchstartHandler', 'touchendHandler', 'touchmoveHandler', 'mousedownHandler', 'mouseupHandler', 'mouseleaveHandler', 'mousemoveHandler', 'clickHandler'].forEach(method => { - this[method] = this[method].bind(this); - }); - - // Build markup and apply required styling to elements - this.init(); - } - - - /** - * Overrides default settings with custom ones. - * @param {Object} options - Optional settings object. - * @returns {Object} - Custom Siema settings. - */ - static mergeSettings(options) { - const settings = { - selector: '.siema', - duration: 200, - easing: 'ease-out', - perPage: 1, - startIndex: 0, - draggable: true, - multipleDrag: true, - threshold: 20, - loop: false, - rtl: false, - onInit: () => {}, - onChange: () => {}, - }; - - const userSttings = options; - for (const attrname in userSttings) { - settings[attrname] = userSttings[attrname]; - } - - return settings; - } - - - /** - * Determine if browser supports unprefixed transform property. - * Google Chrome since version 26 supports prefix-less transform - * @returns {string} - Transform property supported by client. - */ - static webkitOrNot() { - const style = document.documentElement.style; - if (typeof style.transform === 'string') { - return 'transform'; - } - return 'WebkitTransform'; - } - - /** - * Attaches listeners to required events. - */ - attachEvents() { - // Resize element on window resize - window.addEventListener('resize', this.resizeHandler); - - // If element is draggable / swipable, add event handlers - if (this.config.draggable) { - // Keep track pointer hold and dragging distance - this.pointerDown = false; - this.drag = { - startX: 0, - endX: 0, - startY: 0, - letItGo: null, - preventClick: false, - }; - - // Touch events - this.selector.addEventListener('touchstart', this.touchstartHandler); - this.selector.addEventListener('touchend', this.touchendHandler); - this.selector.addEventListener('touchmove', this.touchmoveHandler); - - // Mouse events - this.selector.addEventListener('mousedown', this.mousedownHandler); - this.selector.addEventListener('mouseup', this.mouseupHandler); - this.selector.addEventListener('mouseleave', this.mouseleaveHandler); - this.selector.addEventListener('mousemove', this.mousemoveHandler); - - // Click - this.selector.addEventListener('click', this.clickHandler); - } - } - - - /** - * Detaches listeners from required events. - */ - detachEvents() { - window.removeEventListener('resize', this.resizeHandler); - this.selector.removeEventListener('touchstart', this.touchstartHandler); - this.selector.removeEventListener('touchend', this.touchendHandler); - this.selector.removeEventListener('touchmove', this.touchmoveHandler); - this.selector.removeEventListener('mousedown', this.mousedownHandler); - this.selector.removeEventListener('mouseup', this.mouseupHandler); - this.selector.removeEventListener('mouseleave', this.mouseleaveHandler); - this.selector.removeEventListener('mousemove', this.mousemoveHandler); - this.selector.removeEventListener('click', this.clickHandler); - } - - - /** - * Builds the markup and attaches listeners to required events. - */ - init() { - this.attachEvents(); - - // hide everything out of selector's boundaries - this.selector.style.overflow = 'hidden'; - - // rtl or ltr - this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr'; - - // build a frame and slide to a currentSlide - this.buildSliderFrame(); - - this.config.onInit.call(this); - } - - - /** - * Build a sliderFrame and slide to a current item. - */ - buildSliderFrame() { - const widthItem = this.selectorWidth / this.perPage; - const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length; - - // Create frame and apply styling - this.sliderFrame = document.createElement('div'); - this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`; - this.enableTransition(); - - if (this.config.draggable) { - this.selector.style.cursor = '-webkit-grab'; - } - - // Create a document fragment to put slides into it - const docFragment = document.createDocumentFragment(); - - // Loop through the slides, add styling and add them to document fragment - if (this.config.loop) { - for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) { - const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true)); - docFragment.appendChild(element); - } - } - for (let i = 0; i < this.innerElements.length; i++) { - const element = this.buildSliderFrameItem(this.innerElements[i]); - docFragment.appendChild(element); - } - if (this.config.loop) { - for (let i = 0; i < this.perPage; i++) { - const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true)); - docFragment.appendChild(element); - } - } - - // Add fragment to the frame - this.sliderFrame.appendChild(docFragment); - - // Clear selector (just in case something is there) and insert a frame - this.selector.innerHTML = ''; - this.selector.appendChild(this.sliderFrame); - - // Go to currently active slide after initial build - this.slideToCurrent(); - } - - buildSliderFrameItem(elm) { - const elementContainer = document.createElement('div'); - elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left'; - elementContainer.style.float = this.config.rtl ? 'right' : 'left'; - elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`; - elementContainer.appendChild(elm); - return elementContainer; - } - - - /** - * Determinates slides number accordingly to clients viewport. - */ - resolveSlidesNumber() { - if (typeof this.config.perPage === 'number') { - this.perPage = this.config.perPage; - } - else if (typeof this.config.perPage === 'object') { - this.perPage = 1; - for (const viewport in this.config.perPage) { - if (window.innerWidth >= viewport) { - this.perPage = this.config.perPage[viewport]; - } - } - } - } - - - /** - * Go to previous slide. - * @param {number} [howManySlides=1] - How many items to slide backward. - * @param {function} callback - Optional callback function. - */ - prev(howManySlides = 1, callback) { - // early return when there is nothing to slide - if (this.innerElements.length <= this.perPage) { - return; - } - - const beforeChange = this.currentSlide; - - if (this.config.loop) { - const isNewIndexClone = this.currentSlide - howManySlides < 0; - if (isNewIndexClone) { - this.disableTransition(); - - const mirrorSlideIndex = this.currentSlide + this.innerElements.length; - const mirrorSlideIndexOffset = this.perPage; - const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset; - const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage); - const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0; - - this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`; - this.currentSlide = mirrorSlideIndex - howManySlides; - } - else { - this.currentSlide = this.currentSlide - howManySlides; - } - } - else { - this.currentSlide = Math.max(this.currentSlide - howManySlides, 0); - } - - if (beforeChange !== this.currentSlide) { - this.slideToCurrent(this.config.loop); - this.config.onChange.call(this); - if (callback) { - callback.call(this); - } - } - } - - - /** - * Go to next slide. - * @param {number} [howManySlides=1] - How many items to slide forward. - * @param {function} callback - Optional callback function. - */ - next(howManySlides = 1, callback) { - // early return when there is nothing to slide - if (this.innerElements.length <= this.perPage) { - return; - } - - const beforeChange = this.currentSlide; - - if (this.config.loop) { - const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage; - if (isNewIndexClone) { - this.disableTransition(); - - const mirrorSlideIndex = this.currentSlide - this.innerElements.length; - const mirrorSlideIndexOffset = this.perPage; - const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset; - const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage); - const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0; - - this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`; - this.currentSlide = mirrorSlideIndex + howManySlides; - } - else { - this.currentSlide = this.currentSlide + howManySlides; - } - } - else { - this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage); - } - if (beforeChange !== this.currentSlide) { - this.slideToCurrent(this.config.loop); - this.config.onChange.call(this); - if (callback) { - callback.call(this); - } - } - } - - - /** - * Disable transition on sliderFrame. - */ - disableTransition() { - this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`; - this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`; - } - - - /** - * Enable transition on sliderFrame. - */ - enableTransition() { - this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`; - this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`; - } - - - /** - * Go to slide with particular index - * @param {number} index - Item index to slide to. - * @param {function} callback - Optional callback function. - */ - goTo(index, callback) { - if (this.innerElements.length <= this.perPage) { - return; - } - const beforeChange = this.currentSlide; - this.currentSlide = this.config.loop ? - index % this.innerElements.length : - Math.min(Math.max(index, 0), this.innerElements.length - this.perPage); - if (beforeChange !== this.currentSlide) { - this.slideToCurrent(); - this.config.onChange.call(this); - if (callback) { - callback.call(this); - } - } - } - - - /** - * Moves sliders frame to position of currently active slide - */ - slideToCurrent(enableTransition) { - const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide; - const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage); - - if (enableTransition) { - // This one is tricky, I know but this is a perfect explanation: - // https://youtu.be/cCOL7MC4Pl0 - requestAnimationFrame(() => { - requestAnimationFrame(() => { - this.enableTransition(); - this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`; - }); - }); - } - else { - this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`; - } - } - - - /** - * Recalculate drag /swipe event and reposition the frame of a slider - */ - updateAfterDrag() { - const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX); - const movementDistance = Math.abs(movement); - const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1; - - const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0; - const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage; - - if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) { - this.prev(howManySliderToSlide); - } - else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) { - this.next(howManySliderToSlide); - } - this.slideToCurrent(slideToNegativeClone || slideToPositiveClone); - } - - - /** - * When window resizes, resize slider components as well - */ - resizeHandler() { - // update perPage number dependable of user value - this.resolveSlidesNumber(); - - // relcalculate currentSlide - // prevent hiding items when browser width increases - if (this.currentSlide + this.perPage > this.innerElements.length) { - this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage; - } - - this.selectorWidth = this.selector.offsetWidth; - - this.buildSliderFrame(); - } - - - /** - * Clear drag after touchend and mouseup event - */ - clearDrag() { - this.drag = { - startX: 0, - endX: 0, - startY: 0, - letItGo: null, - preventClick: this.drag.preventClick - }; - } - - - /** - * touchstart event handler - */ - touchstartHandler(e) { - // Prevent dragging / swiping on inputs, selects and textareas - const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf(e.target.nodeName) !== -1; - if (ignoreSiema) { - return; - } - - e.stopPropagation(); - this.pointerDown = true; - this.drag.startX = e.touches[0].pageX; - this.drag.startY = e.touches[0].pageY; - } - - - /** - * touchend event handler - */ - touchendHandler(e) { - e.stopPropagation(); - this.pointerDown = false; - this.enableTransition(); - if (this.drag.endX) { - this.updateAfterDrag(); - } - this.clearDrag(); - } - - - /** - * touchmove event handler - */ - touchmoveHandler(e) { - e.stopPropagation(); - - if (this.drag.letItGo === null) { - this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX); - } - - if (this.pointerDown && this.drag.letItGo) { - e.preventDefault(); - this.drag.endX = e.touches[0].pageX; - this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`; - this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`; - - const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide; - const currentOffset = currentSlide * (this.selectorWidth / this.perPage); - const dragOffset = (this.drag.endX - this.drag.startX); - const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset; - this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`; - } - } - - - /** - * mousedown event handler - */ - mousedownHandler(e) { - // Prevent dragging / swiping on inputs, selects and textareas - const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf(e.target.nodeName) !== -1; - if (ignoreSiema) { - return; - } - - e.preventDefault(); - e.stopPropagation(); - this.pointerDown = true; - this.drag.startX = e.pageX; - } - - - /** - * mouseup event handler - */ - mouseupHandler(e) { - e.stopPropagation(); - this.pointerDown = false; - this.selector.style.cursor = '-webkit-grab'; - this.enableTransition(); - if (this.drag.endX) { - this.updateAfterDrag(); - } - this.clearDrag(); - } - - - /** - * mousemove event handler - */ - mousemoveHandler(e) { - e.preventDefault(); - if (this.pointerDown) { - // if dragged element is a link - // mark preventClick prop as a true - // to detemine about browser redirection later on - if (e.target.nodeName === 'A') { - this.drag.preventClick = true; - } - - this.drag.endX = e.pageX; - this.selector.style.cursor = '-webkit-grabbing'; - this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`; - this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`; - - const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide; - const currentOffset = currentSlide * (this.selectorWidth / this.perPage); - const dragOffset = (this.drag.endX - this.drag.startX); - const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset; - this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`; - } - } - - - /** - * mouseleave event handler - */ - mouseleaveHandler(e) { - if (this.pointerDown) { - this.pointerDown = false; - this.selector.style.cursor = '-webkit-grab'; - this.drag.endX = e.pageX; - this.drag.preventClick = false; - this.enableTransition(); - this.updateAfterDrag(); - this.clearDrag(); - } - } - - - /** - * click event handler - */ - clickHandler(e) { - // if the dragged element is a link - // prevent browsers from folowing the link - if (this.drag.preventClick) { - e.preventDefault(); - } - this.drag.preventClick = false; - } - - - /** - * Remove item from carousel. - * @param {number} index - Item index to remove. - * @param {function} callback - Optional callback to call after remove. - */ - remove(index, callback) { - if (index < 0 || index >= this.innerElements.length) { - throw new Error('Item to remove doesn\'t exist 😭'); - } - - // Shift sliderFrame back by one item when: - // 1. Item with lower index than currenSlide is removed. - // 2. Last item is removed. - const lowerIndex = index < this.currentSlide; - const lastItem = this.currentSlide + this.perPage - 1 === index; - - if (lowerIndex || lastItem) { - this.currentSlide--; - } - - this.innerElements.splice(index, 1); - - // build a frame and slide to a currentSlide - this.buildSliderFrame(); - - if (callback) { - callback.call(this); - } - } - - - /** - * Insert item to carousel at particular index. - * @param {HTMLElement} item - Item to insert. - * @param {number} index - Index of new new item insertion. - * @param {function} callback - Optional callback to call after insert. - */ - insert(item, index, callback) { - if (index < 0 || index > this.innerElements.length + 1) { - throw new Error('Unable to inset it at this index 😭'); - } - if (this.innerElements.indexOf(item) !== -1) { - throw new Error('The same item in a carousel? Really? Nope 😭'); - } - - // Avoid shifting content - const shouldItShift = index <= this.currentSlide > 0 && this.innerElements.length; - this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide; - - this.innerElements.splice(index, 0, item); - - // build a frame and slide to a currentSlide - this.buildSliderFrame(); - - if (callback) { - callback.call(this); - } - } - - - /** - * Prepernd item to carousel. - * @param {HTMLElement} item - Item to prepend. - * @param {function} callback - Optional callback to call after prepend. - */ - prepend(item, callback) { - this.insert(item, 0); - if (callback) { - callback.call(this); - } - } - - - /** - * Append item to carousel. - * @param {HTMLElement} item - Item to append. - * @param {function} callback - Optional callback to call after append. - */ - append(item, callback) { - this.insert(item, this.innerElements.length + 1); - if (callback) { - callback.call(this); - } - } - - - /** - * Removes listeners and optionally restores to initial markup - * @param {boolean} restoreMarkup - Determinants about restoring an initial markup. - * @param {function} callback - Optional callback function. - */ - destroy(restoreMarkup = false, callback) { - this.detachEvents(); - - this.selector.style.cursor = 'auto'; - - if (restoreMarkup) { - const slides = document.createDocumentFragment(); - for (let i = 0; i < this.innerElements.length; i++) { - slides.appendChild(this.innerElements[i]); - } - this.selector.innerHTML = ''; - this.selector.appendChild(slides); - this.selector.removeAttribute('style'); - } - - if (callback) { - callback.call(this); - } - } -} diff --git a/src/siema.ts b/src/siema.ts new file mode 100644 index 0000000..1d86455 --- /dev/null +++ b/src/siema.ts @@ -0,0 +1,695 @@ +export interface SiemaOptions { + selector: string; + duration: number; + easing: string; + perPage: number|{[width: number]: number}; + startIndex: number; + draggable: boolean; + multipleDrag: boolean; + threshold: number; + loop: boolean; + rtl: boolean; + onInit?: () => void; + onChange?: () => void; +} +/** + * Hi :-) This is a class representing a Siema. + */ +export default class Siema { + + /** Config used for this instace of Siema */ + public config: SiemaOptions; + + /** Variable to track if mouse is pressed */ + private pointerDown: boolean; + + /** Variable to track mouse track */ + private drag: { + startX: number, + endX: number, + startY: number, + letItGo: boolean, + preventClick: boolean + }; + + /** Reference to the Siema element */ + public selector: HTMLElement; + + /** The width of the Siema element */ + private selectorWidth: number; + + /** How many items to show per page */ + private perPage: number; + + /** Variable to keep track of the actual items */ + private innerElements: Element[]; + + /** Zero based index of the current slide */ + private currentSlide: number; + + /** Variable to keeo track of wether to use standard or webkit compaotible transforms */ + private transformProperty: 'transform'|'webkitTransform'; + + /** Reference to the the sliding wrapper for all items */ + private sliderFrame: HTMLDivElement; + + /** + * Create a Siema. + */ + constructor(options: Partial) { + + // Merge defaults with user's settings + this.config = Siema.mergeSettings(options); + + // Resolve selector's type + this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector; + + // Early throw if selector doesn't exists + if (this.selector === null) { + throw new Error('Something is wrong with your selector'); + } + + // update perPage number dependable of user value + this.resolveSlidesNumber(); + + // Create global references + this.selectorWidth = this.selector.offsetWidth; + this.innerElements = Array.from(this.selector.children); + this.currentSlide = this.config.loop ? + this.config.startIndex % this.innerElements.length : + Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage)); + this.transformProperty = Siema.webkitOrNot(); + + // Build markup and apply required styling to elements + this.init(); + } + + /** + * Merge default settings with custom ones. + */ + static mergeSettings(options: Partial): SiemaOptions { + let defaultOptions: SiemaOptions = { + selector: '.siema', + duration: 200, + easing: 'ease-out', + perPage: 1, + startIndex: 0, + draggable: true, + multipleDrag: true, + threshold: 20, + loop: false, + rtl: false, + onInit: Function, + onChange: Function, + }; + + return Object.assign(defaultOptions, options); + } + + /** + * Determine if browser supports unprefixed transform property. + * Google Chrome since version 26 supports prefix-less transform + */ + static webkitOrNot() { + const style = document.documentElement.style; + if (typeof style.transform === 'string') { + return 'transform'; + } + return 'webkitTransform'; + } + + /** + * Attaches listeners to required events. + */ + private attachEvents() { + // Resize element on window resize + window.addEventListener('resize', this.resizeHandler); + + // If element is draggable / swipable, add event handlers + if (this.config.draggable) { + // Keep track pointer hold and dragging distance + this.pointerDown = false; + this.drag = { + startX: 0, + endX: 0, + startY: 0, + letItGo: null, + preventClick: false, + }; + + // Touch events + this.selector.addEventListener('touchstart', this.touchstartHandler); + this.selector.addEventListener('touchend', this.touchendHandler); + this.selector.addEventListener('touchmove', this.touchmoveHandler); + + // Mouse events + this.selector.addEventListener('mousedown', this.mousedownHandler); + this.selector.addEventListener('mouseup', this.mouseupHandler); + this.selector.addEventListener('mouseleave', this.mouseleaveHandler); + this.selector.addEventListener('mousemove', this.mousemoveHandler); + + // Click + this.selector.addEventListener('click', this.clickHandler); + } + } + + /** + * Detaches listeners from required events. + */ + private detachEvents() { + window.removeEventListener('resize', this.resizeHandler); + this.selector.removeEventListener('touchstart', this.touchstartHandler); + this.selector.removeEventListener('touchend', this.touchendHandler); + this.selector.removeEventListener('touchmove', this.touchmoveHandler); + this.selector.removeEventListener('mousedown', this.mousedownHandler); + this.selector.removeEventListener('mouseup', this.mouseupHandler); + this.selector.removeEventListener('mouseleave', this.mouseleaveHandler); + this.selector.removeEventListener('mousemove', this.mousemoveHandler); + this.selector.removeEventListener('click', this.clickHandler); + } + + /** + * Builds the markup and attaches listeners to required events. + */ + private init(): void { + this.attachEvents(); + + // hide everything out of selector's boundaries + this.selector.style.overflow = 'hidden'; + + // rtl or ltr + this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr'; + + // build a frame and slide to a currentSlide + this.buildSliderFrame(); + + this.config.onInit.call(this); + } + + + /** + * Build a sliderFrame and slide to a current item. + */ + private buildSliderFrame() { + const widthItem = this.selectorWidth / this.perPage; + const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length; + + // Create frame and apply styling + this.sliderFrame = document.createElement('div'); + this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`; + this.enableTransition(); + + if (this.config.draggable) { + this.selector.style.cursor = '-webkit-grab'; + } + + // Create a document fragment to put slides into it + const docFragment = document.createDocumentFragment(); + + // Loop through the slides, add styling and add them to document fragment + if (this.config.loop) { + for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) { + const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement); + docFragment.appendChild(element); + } + } + for (let i = 0; i < this.innerElements.length; i++) { + const element = this.buildSliderFrameItem(this.innerElements[i] as HTMLElement); + docFragment.appendChild(element); + } + if (this.config.loop) { + for (let i = 0; i < this.perPage; i++) { + const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement); + docFragment.appendChild(element); + } + } + + // Add fragment to the frame + this.sliderFrame.appendChild(docFragment); + + // Clear selector (just in case something is there) and insert a frame + this.selector.innerHTML = ''; + this.selector.appendChild(this.sliderFrame); + + // Go to currently active slide after initial build + this.slideToCurrent(); + } + + private buildSliderFrameItem(elm: HTMLElement) { + const elementContainer = document.createElement('div'); + elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left'; + elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`; + elementContainer.appendChild(elm); + return elementContainer; + } + + + /** + * Determinates slides number accordingly to clients viewport. + */ + private resolveSlidesNumber() { + if (typeof this.config.perPage === 'number') { + this.perPage = this.config.perPage; + + } else { + this.perPage = 1; + for (const key in this.config.perPage) { + if (window.innerWidth >= this.config.perPage[key]) { + this.perPage = this.config.perPage[key]; + } + } + } + } + + + /** + * Go to previous slide. + */ + public prev(howManySlides = 1, callback?: () => void) { + // early return when there is nothing to slide + if (this.innerElements.length <= this.perPage) { + return; + } + + const beforeChange = this.currentSlide; + + if (this.config.loop) { + const isNewIndexClone = this.currentSlide - howManySlides < 0; + if (isNewIndexClone) { + this.disableTransition(); + + const mirrorSlideIndex = this.currentSlide + this.innerElements.length; + const mirrorSlideIndexOffset = this.perPage; + const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset; + const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage); + const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0; + + this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`; + this.currentSlide = mirrorSlideIndex - howManySlides; + } else { + this.currentSlide = this.currentSlide - howManySlides; + } + } else { + this.currentSlide = Math.max(this.currentSlide - howManySlides, 0); + } + + if (beforeChange !== this.currentSlide) { + this.slideToCurrent(this.config.loop); + this.config.onChange.call(this); + if (callback) { + callback.call(this); + } + } + } + + + /** + * Go to next slide. + */ + public next(howManySlides = 1, callback?: () => void) { + // early return when there is nothing to slide + if (this.innerElements.length <= this.perPage) { + return; + } + + const beforeChange = this.currentSlide; + + if (this.config.loop) { + const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage; + if (isNewIndexClone) { + this.disableTransition(); + + const mirrorSlideIndex = this.currentSlide - this.innerElements.length; + const mirrorSlideIndexOffset = this.perPage; + const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset; + const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage); + const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0; + + this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`; + this.currentSlide = mirrorSlideIndex + howManySlides; + } else { + this.currentSlide = this.currentSlide + howManySlides; + } + } else { + this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage); + } + if (beforeChange !== this.currentSlide) { + this.slideToCurrent(this.config.loop); + this.config.onChange.call(this); + if (callback) { + callback.call(this); + } + } + } + + + /** + * Disable transition on sliderFrame. + */ + private disableTransition() { + this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`; + this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`; + } + + + /** + * Enable transition on sliderFrame. + */ + private enableTransition() { + this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`; + this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`; + } + + /** + * Go to slide with particular index + */ + public goTo(index: number, callback?: () => void) { + if (this.innerElements.length <= this.perPage) { + return; + } + const beforeChange = this.currentSlide; + this.currentSlide = this.config.loop ? + index % this.innerElements.length : + Math.min(Math.max(index, 0), this.innerElements.length - this.perPage); + if (beforeChange !== this.currentSlide) { + this.slideToCurrent(); + this.config.onChange.call(this); + if (callback) { + callback.call(this); + } + } + } + + /** + * Moves sliders frame to position of currently active slide + */ + public slideToCurrent(enableTransition?: boolean) { + const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide; + const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage); + + if (enableTransition) { + // This one is tricky, I know but this is a perfect explanation: + // https://youtu.be/cCOL7MC4Pl0 + requestAnimationFrame(() => { + requestAnimationFrame(() => { + this.enableTransition(); + if (this.transformProperty === 'transform') { + this.sliderFrame.style.transform = `translate3d(${offset}px, 0, 0)`; + } else { + this.sliderFrame.style.webkitTransform = `translate3d(${offset}px, 0, 0)`; + } + }); + }); + } else { + this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`; + } + } + + + /** + * Recalculate drag /swipe event and reposition the frame of a slider + */ + private updateAfterDrag() { + const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX); + const movementDistance = Math.abs(movement); + const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1; + + const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0; + const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage; + + if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) { + this.prev(howManySliderToSlide); + } else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) { + this.next(howManySliderToSlide); + } + this.slideToCurrent(slideToNegativeClone || slideToPositiveClone); + } + + + /** + * When window resizes, resize slider components as well + */ + private resizeHandler = () => { + // update perPage number dependable of user value + this.resolveSlidesNumber(); + + // relcalculate currentSlide + // prevent hiding items when browser width increases + if (this.currentSlide + this.perPage > this.innerElements.length) { + this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage; + } + + this.selectorWidth = this.selector.offsetWidth; + + this.buildSliderFrame(); + } + + /** + * Clear drag after touchend and mouseup event + */ + private clearDrag() { + this.drag = { + startX: 0, + endX: 0, + startY: 0, + letItGo: null, + preventClick: this.drag.preventClick + }; + } + + /** + * touchstart event handler + */ + private touchstartHandler = (e: TouchEvent) => { + // Prevent dragging / swiping on inputs, selects and textareas + const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1; + if (ignoreSiema) { + return; + } + + e.stopPropagation(); + this.pointerDown = true; + this.drag.startX = e.touches[0].pageX; + this.drag.startY = e.touches[0].pageY; + } + + /** + * touchend event handler + */ + private touchendHandler = (e: TouchEvent) => { + e.stopPropagation(); + this.pointerDown = false; + this.enableTransition(); + if (this.drag.endX) { + this.updateAfterDrag(); + } + this.clearDrag(); + } + + /** + * touchmove event handler + */ + private touchmoveHandler = (e: TouchEvent) => { + e.stopPropagation(); + + if (this.drag.letItGo === null) { + this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX); + } + + if (this.pointerDown && this.drag.letItGo) { + e.preventDefault(); + this.drag.endX = e.touches[0].pageX; + this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`; + this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`; + + const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide; + const currentOffset = currentSlide * (this.selectorWidth / this.perPage); + const dragOffset = (this.drag.endX - this.drag.startX); + const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset; + this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`; + } + } + + /** + * mousedown event handler + */ + private mousedownHandler = (e: MouseEvent) => { + // Prevent dragging / swiping on inputs, selects and textareas + const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1; + if (ignoreSiema) { + return; + } + + e.preventDefault(); + e.stopPropagation(); + this.pointerDown = true; + this.drag.startX = e.pageX; + } + + /** + * mouseup event handler + */ + private mouseupHandler = (e: MouseEvent) => { + e.stopPropagation(); + this.pointerDown = false; + this.selector.style.cursor = '-webkit-grab'; + this.enableTransition(); + if (this.drag.endX) { + this.updateAfterDrag(); + } + this.clearDrag(); + } + + /** + * mousemove event handler + */ + private mousemoveHandler = (e: MouseEvent) => { + e.preventDefault(); + if (this.pointerDown) { + // if dragged element is a link + // mark preventClick prop as a true + // to detemine about browser redirection later on + if ((e.target as HTMLElement).nodeName === 'A') { + this.drag.preventClick = true; + } + + this.drag.endX = e.pageX; + this.selector.style.cursor = '-webkit-grabbing'; + this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`; + this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`; + + const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide; + const currentOffset = currentSlide * (this.selectorWidth / this.perPage); + const dragOffset = (this.drag.endX - this.drag.startX); + const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset; + this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`; + } + } + + /** + * mouseleave event handler + */ + private mouseleaveHandler = (e: MouseEvent) => { + if (this.pointerDown) { + this.pointerDown = false; + this.selector.style.cursor = '-webkit-grab'; + this.drag.endX = e.pageX; + this.drag.preventClick = false; + this.enableTransition(); + this.updateAfterDrag(); + this.clearDrag(); + } + } + + + /** + * click event handler + */ + private clickHandler = (e: Event) => { + // if the dragged element is a link + // prevent browsers from folowing the link + if (this.drag.preventClick) { + e.preventDefault(); + } + this.drag.preventClick = false; + } + + + /** + * Remove item from carousel. + */ + public remove(index: number, callback?: () => void) { + if (index < 0 || index >= this.innerElements.length) { + throw new Error('Item to remove doesn\'t exist'); + } + + // Shift sliderFrame back by one item when: + // 1. Item with lower index than currenSlide is removed. + // 2. Last item is removed. + const lowerIndex = index < this.currentSlide; + const lastItem = this.currentSlide + this.perPage - 1 === index; + + if (lowerIndex || lastItem) { + this.currentSlide--; + } + + this.innerElements.splice(index, 1); + + // build a frame and slide to a currentSlide + this.buildSliderFrame(); + + if (callback) { + callback.call(this); + } + } + + + /** + * Insert item to carousel at particular index. + */ + public insert(item: HTMLElement, index: number, callback?: () => void) { + if (index < 0 || index > this.innerElements.length + 1) { + throw new Error('Unable to inset it at this index 😭'); + } + if (this.innerElements.indexOf(item) !== -1) { + throw new Error('The same item in a carousel? Really? Nope 😭'); + } + + // Avoid shifting content + const shouldItShift = index <= this.currentSlide && this.currentSlide > 0 && this.innerElements.length; + this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide; + + this.innerElements.splice(index, 0, item); + + // build a frame and slide to a currentSlide + this.buildSliderFrame(); + + if (callback) { + callback.call(this); + } + } + + /** + * Prepernd item to carousel. + */ + public prepend(item: HTMLElement, callback?: () => void) { + this.insert(item, 0); + if (callback) { + callback.call(this); + } + } + + /** + * Append item to carousel. + */ + public append(item: HTMLElement, callback?: () => void) { + this.insert(item, this.innerElements.length + 1); + if (callback) { + callback.call(this); + } + } + + /** + * Removes listeners and optionally restores to initial markup + */ + public destroy(restoreMarkup = false, callback?: () => void) { + this.detachEvents(); + + this.selector.style.cursor = 'auto'; + + if (restoreMarkup) { + const slides = document.createDocumentFragment(); + for (let i = 0; i < this.innerElements.length; i++) { + slides.appendChild(this.innerElements[i]); + } + this.selector.innerHTML = ''; + this.selector.appendChild(slides); + this.selector.removeAttribute('style'); + } + + if (callback) { + callback.call(this); + } + } + +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..ff16e10 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "declaration": true, + "declarationDir": "dist", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "module": "commonjs", + "moduleResolution": "node", + "noImplicitAny": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "dist", + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true, + "target": "es6", + "typeRoots": [ + "node_modules/@types" + ] + }, + "exclude": [ + "node_modules", + "dist", + "test" + ] +} diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..819d3c0 --- /dev/null +++ b/tslint.json @@ -0,0 +1,54 @@ +{ + "rules": { + "class-name": true, + "curly": false, + "eofline": true, + "indent": [true, "spaces"], + "max-line-length": [false, 140], // true + "member-ordering": [ + true, + { + "order": [ + "public-before-private", + "static-before-instance", + "variables-before-functions" + ] + } + ], + "no-arg": true, + "no-construct": true, + "no-duplicate-variable": true, + "no-empty": true, + "no-eval": true, + "no-trailing-whitespace": true, + "no-unused-expression": true, + "no-unused-variable": [true, {"ignore-pattern": "^_"} ], + "one-line": [true, + "check-open-brace", + "check-catch", + "check-else", + "check-whitespace" + ], + "quotemark": [true, "single"], + "semicolon": [true, "always"], + "trailing-comma": [false], + "triple-equals": false, // true + "variable-name": false, + + "directive-selector": [true, "attribute", [], "camelCase"], + "component-selector": [true, "element", [], "kebab-case"], + "use-input-property-decorator": true, + "use-output-property-decorator": true, + "use-host-property-decorator": true, + "no-input-rename": true, + "no-output-rename": true, + "use-life-cycle-interface": true, + "use-pipe-transform-interface": true, + "component-class-suffix": true, + "directive-class-suffix": true, + "import-destructuring-spacing": true, + "templates-use-public": true, + "no-access-missing-member": true, + "invoke-injectable": true + } +} diff --git a/webpack.config.js b/webpack.config.js index c52b004..7e31316 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,37 +1 @@ -const path = require('path'); -const webpack = require('webpack'); - -module.exports = { - entry: './src/siema.js', - output: { - path: path.join(__dirname, 'dist'), - filename: 'siema.min.js', - library: 'Siema', - libraryTarget: 'umd', - umdNamedDefine: true - }, - module: { - rules: [ - { - enforce: 'pre', - test: /\.(js|jsx)$/, - exclude: /node_modules/, - loader: 'eslint-loader', - }, - { - test: /\.(js|jsx)$/, - exclude: /(node_modules)/, - loader: 'babel-loader', - query: { - presets: ['es2015'], - plugins: ['babel-plugin-add-module-exports'], - }, - }, - ] - }, - plugins: [ - new webpack.optimize.UglifyJsPlugin({ - minimize: true, - }), - ], -}; +module.exports = require('./config/webpack.config.js'); diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index 781cac0..0000000 --- a/yarn.lock +++ /dev/null @@ -1,3100 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - -acorn-dynamic-import@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" - dependencies: - acorn "^4.0.3" - -acorn-jsx@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" - dependencies: - acorn "^3.0.4" - -acorn@^3.0.4: - version "3.3.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" - -acorn@^4.0.3: - version "4.0.13" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" - -acorn@^5.0.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.2.tgz#911cb53e036807cf0fa778dc5d370fbd864246d7" - -acorn@^5.2.1: - version "5.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.4.1.tgz#fdc58d9d17f4a4e98d102ded826a9b9759125102" - -ajv-keywords@^2.0.0, ajv-keywords@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.0.tgz#a296e17f7bfae7c1ce4f7e0de53d29cb32162df0" - -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ajv@^5.1.5, ajv@^5.2.3: - version "5.2.3" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.2.3.tgz#c06f598778c44c6b161abafe3466b81ad1814ed2" - dependencies: - co "^4.6.0" - fast-deep-equal "^1.0.0" - json-schema-traverse "^0.3.0" - json-stable-stringify "^1.0.1" - -ajv@^5.3.0: - version "5.5.2" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" - dependencies: - co "^4.6.0" - fast-deep-equal "^1.0.0" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.3.0" - -align-text@^0.1.1, align-text@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" - dependencies: - kind-of "^3.0.2" - longest "^1.0.1" - repeat-string "^1.5.2" - -ansi-escapes@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" - dependencies: - color-convert "^1.9.0" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -aproba@^1.0.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - -are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -argparse@^1.0.7: - version "1.0.9" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" - dependencies: - sprintf-js "~1.0.2" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - dependencies: - arr-flatten "^1.0.1" - -arr-flatten@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - -array-union@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - dependencies: - array-uniq "^1.0.1" - -array-uniq@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - -arrify@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - -asn1.js@^4.0.0: - version "4.9.1" - resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.9.1.tgz#48ba240b45a9280e94748990ba597d216617fd40" - dependencies: - bn.js "^4.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - -assert-plus@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" - -assert@^1.1.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" - dependencies: - util "0.10.3" - -async-each@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" - -async@^2.1.2: - version "2.5.0" - resolved "https://registry.yarnpkg.com/async/-/async-2.5.0.tgz#843190fd6b7357a0b9e1c956edddd5ec8462b54d" - dependencies: - lodash "^4.14.0" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - -aws-sign2@~0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" - -aws4@^1.2.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" - -babel-code-frame@^6.22.0, babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.0" - debug "^2.6.8" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.7" - slash "^1.0.0" - source-map "^0.5.6" - -babel-generator@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.0.tgz#ac1ae20070b79f6e3ca1d3269613053774f20dc5" - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.6" - trim-right "^1.0.1" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-loader@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126" - dependencies: - find-cache-dir "^1.0.0" - loader-utils "^1.0.2" - mkdirp "^0.5.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-add-module-exports@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-regenerator@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-preset-es2015@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.24.1" - babel-plugin-transform-es2015-classes "^6.24.1" - babel-plugin-transform-es2015-computed-properties "^6.24.1" - babel-plugin-transform-es2015-destructuring "^6.22.0" - babel-plugin-transform-es2015-duplicate-keys "^6.24.1" - babel-plugin-transform-es2015-for-of "^6.22.0" - babel-plugin-transform-es2015-function-name "^6.24.1" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-plugin-transform-es2015-modules-systemjs "^6.24.1" - babel-plugin-transform-es2015-modules-umd "^6.24.1" - babel-plugin-transform-es2015-object-super "^6.24.1" - babel-plugin-transform-es2015-parameters "^6.24.1" - babel-plugin-transform-es2015-shorthand-properties "^6.24.1" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.24.1" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.22.0" - babel-plugin-transform-es2015-unicode-regex "^6.24.1" - babel-plugin-transform-regenerator "^6.24.1" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babel@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel/-/babel-6.23.0.tgz#d0d1e7d803e974765beea3232d4e153c0efb90f4" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -base64-js@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.1.tgz#a91947da1f4a516ea38e5b4ec0ec3773675e0886" - -bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" - dependencies: - tweetnacl "^0.14.3" - -big.js@^3.1.3: - version "3.2.0" - resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" - -binary-extensions@^1.0.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.10.0.tgz#9aeb9a6c5e88638aad171e167f5900abe24835d0" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" - -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: - version "4.11.8" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" - -boom@2.x.x: - version "2.10.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" - dependencies: - hoek "2.x.x" - -brace-expansion@^1.1.7: - version "1.1.8" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -brorand@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - -browserify-aes@^1.0.0, browserify-aes@^1.0.4: - version "1.1.0" - resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.1.0.tgz#1d2ad62a8b479f23f0ab631c1be86a82dbccbe48" - dependencies: - 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@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.0.tgz#9988244874bf5ed4e28da95666dcd66ac8fc363a" - dependencies: - browserify-aes "^1.0.4" - browserify-des "^1.0.0" - evp_bytestokey "^1.0.0" - -browserify-des@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.0.tgz#daa277717470922ed2fe18594118a175439721dd" - dependencies: - cipher-base "^1.0.1" - des.js "^1.0.0" - inherits "^2.0.1" - -browserify-rsa@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" - dependencies: - bn.js "^4.1.0" - randombytes "^2.0.1" - -browserify-sign@^4.0.0: - version "4.0.4" - resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" - dependencies: - bn.js "^4.1.1" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.2" - elliptic "^6.0.0" - inherits "^2.0.1" - parse-asn1 "^5.0.0" - -browserify-zlib@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d" - dependencies: - pako "~0.2.0" - -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" - -buffer@^4.3.0: - version "4.9.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" - dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" - isarray "^1.0.0" - -builtin-modules@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - -builtin-status-codes@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" - -caller-path@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" - dependencies: - callsites "^0.2.0" - -callsites@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" - -camelcase@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" - -camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - -center-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" - dependencies: - align-text "^0.1.3" - lazy-cache "^1.0.3" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - 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" - -chalk@^2.0.0, chalk@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e" - dependencies: - ansi-styles "^3.1.0" - escape-string-regexp "^1.0.5" - supports-color "^4.0.0" - -chokidar@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -circular-json@^0.3.1: - version "0.3.3" - resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66" - -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - dependencies: - restore-cursor "^2.0.0" - -cli-width@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" - -cliui@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" - dependencies: - center-align "^0.1.1" - right-align "^0.1.1" - wordwrap "0.0.2" - -cliui@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - wrap-ansi "^2.0.0" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -color-convert@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a" - dependencies: - color-name "^1.1.1" - -color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" - dependencies: - delayed-stream "~1.0.0" - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -concat-stream@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" - dependencies: - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - -console-browserify@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" - dependencies: - date-now "^0.1.4" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -constants-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" - -convert-source-map@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" - -core-js@^2.4.0, core-js@^2.5.0: - version "2.5.1" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.1.tgz#ae6874dc66937789b80754ff5428df66819ca50b" - -core-util-is@1.0.2, core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -create-ecdh@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d" - dependencies: - bn.js "^4.1.0" - elliptic "^6.0.0" - -create-hash@^1.1.0, create-hash@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.3.tgz#606042ac8b9262750f483caddab0f5819172d8fd" - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - ripemd160 "^2.0.0" - sha.js "^2.4.0" - -create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: - version "1.1.6" - resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.6.tgz#acb9e221a4e17bdb076e90657c42b93e3726cf06" - dependencies: - 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@^5.0.1, cross-spawn@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -cryptiles@2.x.x: - version "2.0.5" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" - dependencies: - boom "2.x.x" - -crypto-browserify@^3.11.0: - version "3.11.1" - resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.11.1.tgz#948945efc6757a400d6e5e5af47194d10064279f" - dependencies: - 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" - -d@1: - version "1.0.0" - resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" - dependencies: - es5-ext "^0.10.9" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - dependencies: - assert-plus "^1.0.0" - -date-now@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" - -debug@^2.2.0, debug@^2.6.8: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - dependencies: - ms "2.0.0" - -debug@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" - dependencies: - ms "2.0.0" - -decamelize@^1.0.0, decamelize@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - -deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" - -deep-is@~0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" - -del@^2.0.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" - dependencies: - globby "^5.0.0" - is-path-cwd "^1.0.0" - is-path-in-cwd "^1.0.0" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - rimraf "^2.2.8" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -des.js@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" - dependencies: - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - dependencies: - repeating "^2.0.0" - -diffie-hellman@^5.0.0: - version "5.0.2" - resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e" - dependencies: - bn.js "^4.1.0" - miller-rabin "^4.0.0" - randombytes "^2.0.0" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" - dependencies: - esutils "^2.0.2" - -domain-browser@^1.1.1: - version "1.1.7" - resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc" - -ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" - dependencies: - jsbn "~0.1.0" - -elliptic@^6.0.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" - dependencies: - 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" - -emojis-list@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" - -enhanced-resolve@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.4.0" - object-assign "^4.0.1" - tapable "^0.2.7" - -errno@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" - dependencies: - prr "~0.0.0" - -error-ex@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" - dependencies: - is-arrayish "^0.2.1" - -es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14: - version "0.10.35" - resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.35.tgz#18ee858ce6a3c45c7d79e91c15fcca9ec568494f" - dependencies: - es6-iterator "~2.0.1" - es6-symbol "~3.1.1" - -es6-iterator@^2.0.1, es6-iterator@~2.0.1: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - -es6-map@^0.1.3: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-set "~0.1.5" - es6-symbol "~3.1.1" - event-emitter "~0.3.5" - -es6-set@~0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-symbol "3.1.1" - event-emitter "~0.3.5" - -es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" - dependencies: - d "1" - es5-ext "~0.10.14" - -es6-weak-map@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" - dependencies: - d "1" - es5-ext "^0.10.14" - es6-iterator "^2.0.1" - es6-symbol "^3.1.1" - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -escope@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" - dependencies: - es6-map "^0.1.3" - es6-weak-map "^2.0.1" - esrecurse "^4.1.0" - estraverse "^4.1.1" - -eslint-loader@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/eslint-loader/-/eslint-loader-1.9.0.tgz#7e1be9feddca328d3dcfaef1ad49d5beffe83a13" - dependencies: - loader-fs-cache "^1.0.0" - loader-utils "^1.0.2" - object-assign "^4.0.1" - object-hash "^1.1.4" - rimraf "^2.6.1" - -eslint-scope@^3.7.1: - version "3.7.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" - dependencies: - esrecurse "^4.1.0" - estraverse "^4.1.1" - -eslint-visitor-keys@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" - -eslint@4.16.0: - version "4.16.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.16.0.tgz#934ada9e98715e1d7bbfd6f6f0519ed2fab35cc1" - dependencies: - ajv "^5.3.0" - babel-code-frame "^6.22.0" - chalk "^2.1.0" - concat-stream "^1.6.0" - cross-spawn "^5.1.0" - debug "^3.1.0" - doctrine "^2.1.0" - eslint-scope "^3.7.1" - eslint-visitor-keys "^1.0.0" - espree "^3.5.2" - esquery "^1.0.0" - esutils "^2.0.2" - file-entry-cache "^2.0.0" - functional-red-black-tree "^1.0.1" - glob "^7.1.2" - globals "^11.0.1" - ignore "^3.3.3" - imurmurhash "^0.1.4" - inquirer "^3.0.6" - is-resolvable "^1.0.0" - js-yaml "^3.9.1" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.3.0" - lodash "^4.17.4" - minimatch "^3.0.2" - mkdirp "^0.5.1" - natural-compare "^1.4.0" - optionator "^0.8.2" - path-is-inside "^1.0.2" - pluralize "^7.0.0" - progress "^2.0.0" - require-uncached "^1.0.3" - semver "^5.3.0" - strip-ansi "^4.0.0" - strip-json-comments "~2.0.1" - table "^4.0.1" - text-table "~0.2.0" - -espree@^3.5.2: - version "3.5.2" - resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.2.tgz#756ada8b979e9dcfcdb30aad8d1a9304a905e1ca" - dependencies: - acorn "^5.2.1" - acorn-jsx "^3.0.0" - -esprima@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" - -esquery@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.0.tgz#cfba8b57d7fba93f17298a8a006a04cda13d80fa" - dependencies: - estraverse "^4.0.0" - -esrecurse@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.0.tgz#fa9568d98d3823f9a41d91e902dcab9ea6e5b163" - dependencies: - estraverse "^4.1.0" - object-assign "^4.0.1" - -estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1: - version "4.2.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -event-emitter@~0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" - dependencies: - d "1" - es5-ext "~0.10.14" - -events@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" - -evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" - dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" - -execa@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - dependencies: - is-posix-bracket "^0.1.0" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - dependencies: - fill-range "^2.1.0" - -extend@~3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" - -external-editor@^2.0.4: - version "2.0.5" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.0.5.tgz#52c249a3981b9ba187c7cacf5beb50bf1d91a6bc" - dependencies: - iconv-lite "^0.4.17" - jschardet "^1.4.2" - tmp "^0.0.33" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - dependencies: - is-extglob "^1.0.0" - -extsprintf@1.3.0, extsprintf@^1.2.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - -fast-deep-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff" - -fast-json-stable-stringify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" - -fast-levenshtein@~2.0.4: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - -figures@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" - dependencies: - escape-string-regexp "^1.0.5" - -file-entry-cache@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" - dependencies: - flat-cache "^1.2.1" - object-assign "^4.0.1" - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - -fill-range@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^1.1.3" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -find-cache-dir@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-0.1.1.tgz#c8defae57c8a52a8a784f9e31c57c742e993a0b9" - dependencies: - commondir "^1.0.1" - mkdirp "^0.5.1" - pkg-dir "^1.0.0" - -find-cache-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f" - dependencies: - commondir "^1.0.1" - make-dir "^1.0.0" - pkg-dir "^2.0.0" - -find-up@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" - dependencies: - path-exists "^2.0.0" - pinkie-promise "^2.0.0" - -find-up@^2.0.0, find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - dependencies: - locate-path "^2.0.0" - -flat-cache@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.3.0.tgz#d3030b32b38154f4e3b7e9c709f490f7ef97c481" - dependencies: - circular-json "^0.3.1" - del "^2.0.2" - graceful-fs "^4.1.2" - write "^0.2.1" - -for-in@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - dependencies: - for-in "^1.0.1" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - -form-data@~2.1.1: - version "2.1.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.5" - mime-types "^2.1.12" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fsevents@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.2.tgz#3282b713fb3ad80ede0e9fcf4611b5aa6fc033f4" - dependencies: - nan "^2.3.0" - node-pre-gyp "^0.6.36" - -fstream-ignore@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" - dependencies: - fstream "^1.0.0" - inherits "2" - minimatch "^3.0.0" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" - -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - 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" - -get-caller-file@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - dependencies: - assert-plus "^1.0.0" - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - dependencies: - is-glob "^2.0.0" - -glob@^7.0.3, glob@^7.0.5, glob@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - 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" - -globals@^11.0.1: - version "11.3.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.3.0.tgz#e04fdb7b9796d8adac9c8f64c14837b2313378b0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - -globby@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" - dependencies: - array-union "^1.0.1" - arrify "^1.0.0" - glob "^7.0.3" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -graceful-fs@^4.1.2: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -hash-base@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-2.0.2.tgz#66ea1d856db4e8a5470cadf6fce23ae5244ef2e1" - dependencies: - inherits "^2.0.1" - -hash-base@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -hash.js@^1.0.0, hash.js@^1.0.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846" - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.0" - -hawk@3.1.3, hawk@~3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" - dependencies: - boom "2.x.x" - cryptiles "2.x.x" - hoek "2.x.x" - sntp "1.x.x" - -hmac-drbg@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -hoek@2.x.x: - version "2.16.3" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -hosted-git-info@^2.1.4: - version "2.5.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c" - -http-signature@~1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" - dependencies: - assert-plus "^0.2.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -https-browserify@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82" - -iconv-lite@^0.4.17: - version "0.4.19" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" - -ieee754@^1.1.4: - version "1.1.8" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" - -ignore@^3.3.3: - version "3.3.5" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.5.tgz#c4e715455f6073a8d7e5dae72d2fc9d71663dba6" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - -indexof@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -inherits@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" - -ini@~1.3.0: - version "1.3.4" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" - -inquirer@^3.0.6: - version "3.3.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" - dependencies: - ansi-escapes "^3.0.0" - chalk "^2.0.0" - cli-cursor "^2.1.0" - cli-width "^2.0.0" - external-editor "^2.0.4" - figures "^2.0.0" - lodash "^4.3.0" - mute-stream "0.0.7" - run-async "^2.2.0" - rx-lite "^4.0.8" - rx-lite-aggregates "^4.0.8" - string-width "^2.1.0" - strip-ansi "^4.0.0" - through "^2.3.6" - -interpret@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.4.tgz#820cdd588b868ffb191a809506d6c9c8f212b1b0" - -invariant@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" - dependencies: - loose-envify "^1.0.0" - -invert-kv@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - dependencies: - binary-extensions "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" - -is-builtin-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" - dependencies: - builtin-modules "^1.0.0" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - dependencies: - is-extglob "^1.0.0" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - dependencies: - kind-of "^3.0.2" - -is-path-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" - -is-path-in-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" - dependencies: - is-path-inside "^1.0.0" - -is-path-inside@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.0.tgz#fc06e5a1683fbda13de667aff717bbc10a48f37f" - dependencies: - path-is-inside "^1.0.1" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - -is-promise@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" - -is-resolvable@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" - dependencies: - tryit "^1.0.1" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - -isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - dependencies: - isarray "1.0.0" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - -js-tokens@^3.0.0, js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -js-yaml@^3.9.1: - version "3.10.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc" - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - -jschardet@^1.4.2: - version "1.5.1" - resolved "https://registry.yarnpkg.com/jschardet/-/jschardet-1.5.1.tgz#c519f629f86b3a5bedba58a88d311309eec097f9" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json-loader@^0.5.4: - version "0.5.7" - resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" - -json-schema-traverse@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - -json5@^0.5.0, json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - -jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.2.3" - verror "1.10.0" - -kind-of@^3.0.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - dependencies: - is-buffer "^1.1.5" - -lazy-cache@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" - -lcid@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" - dependencies: - invert-kv "^1.0.0" - -levn@^0.3.0, levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - strip-bom "^3.0.0" - -loader-fs-cache@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/loader-fs-cache/-/loader-fs-cache-1.0.1.tgz#56e0bf08bd9708b26a765b68509840c8dec9fdbc" - dependencies: - find-cache-dir "^0.1.1" - mkdirp "0.5.1" - -loader-runner@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" - -loader-utils@^1.0.2, loader-utils@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" - dependencies: - big.js "^3.1.3" - emojis-list "^2.0.0" - json5 "^0.5.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -lodash@^4.14.0, lodash@^4.17.4, lodash@^4.3.0: - version "4.17.4" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" - -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - -loose-envify@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" - dependencies: - js-tokens "^3.0.0" - -lru-cache@^4.0.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" - dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" - -make-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.0.0.tgz#97a011751e91dd87cfadef58832ebb04936de978" - dependencies: - pify "^2.3.0" - -md5.js@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - -mem@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" - dependencies: - mimic-fn "^1.0.0" - -memory-fs@^0.4.0, memory-fs@~0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" - dependencies: - errno "^0.1.3" - readable-stream "^2.0.1" - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -miller-rabin@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" - dependencies: - bn.js "^4.0.0" - brorand "^1.0.1" - -mime-db@~1.30.0: - version "1.30.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.30.0.tgz#74c643da2dd9d6a45399963465b26d5ca7d71f01" - -mime-types@^2.1.12, mime-types@~2.1.7: - version "2.1.17" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.17.tgz#09d7a393f03e995a79f8af857b70a9e0ab16557a" - dependencies: - mime-db "~1.30.0" - -mimic-fn@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18" - -minimalistic-assert@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3" - -minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.1, mkdirp@~0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -mute-stream@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" - -nan@^2.3.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.7.0.tgz#d95bf721ec877e08db276ed3fc6eb78f9083ad46" - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - -node-libs-browser@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.0.0.tgz#a3a59ec97024985b46e958379646f96c4b616646" - dependencies: - assert "^1.1.1" - browserify-zlib "^0.1.4" - 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 "^1.0.0" - https-browserify "0.0.1" - os-browserify "^0.2.0" - path-browserify "0.0.0" - process "^0.11.0" - punycode "^1.2.4" - querystring-es3 "^0.2.0" - readable-stream "^2.0.5" - stream-browserify "^2.0.1" - stream-http "^2.3.1" - string_decoder "^0.10.25" - timers-browserify "^2.0.2" - tty-browserify "0.0.0" - url "^0.11.0" - util "^0.10.3" - vm-browserify "0.0.4" - -node-pre-gyp@^0.6.36: - version "0.6.38" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.38.tgz#e92a20f83416415bb4086f6d1fb78b3da73d113d" - dependencies: - hawk "3.1.3" - mkdirp "^0.5.1" - nopt "^4.0.1" - npmlog "^4.0.2" - rc "^1.1.7" - request "2.81.0" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^2.2.1" - tar-pack "^3.4.0" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -normalize-package-data@^2.3.2: - version "2.4.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" - dependencies: - hosted-git-info "^2.1.4" - is-builtin-module "^1.0.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - dependencies: - remove-trailing-separator "^1.0.1" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - dependencies: - 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@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -oauth-sign@~0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" - -object-assign@^4.0.1, object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -object-hash@^1.1.4: - version "1.2.0" - resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-1.2.0.tgz#e96af0e96981996a1d47f88ead8f74f1ebc4422b" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -once@^1.3.0, once@^1.3.3: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - dependencies: - mimic-fn "^1.0.0" - -optionator@^0.8.2: - version "0.8.2" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.4" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - wordwrap "~1.0.0" - -os-browserify@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.2.1.tgz#63fc4ccee5d2d7763d26bbf8601078e6c2e0044f" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-locale@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" - dependencies: - execa "^0.7.0" - lcid "^1.0.0" - mem "^1.1.0" - -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - -p-limit@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - dependencies: - p-limit "^1.1.0" - -pako@~0.2.0: - version "0.2.9" - resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" - -parse-asn1@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712" - dependencies: - asn1.js "^4.0.0" - browserify-aes "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.0" - pbkdf2 "^3.0.3" - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - dependencies: - error-ex "^1.2.0" - -path-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" - -path-exists@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" - dependencies: - pinkie-promise "^2.0.0" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-is-inside@^1.0.1, path-is-inside@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" - -path-key@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" - dependencies: - pify "^2.0.0" - -pbkdf2@^3.0.3: - version "3.0.14" - resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.14.tgz#a35e13c64799b06ce15320f459c230e68e73bade" - dependencies: - create-hash "^1.1.2" - create-hmac "^1.1.4" - ripemd160 "^2.0.1" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - -pify@^2.0.0, pify@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - -pinkie-promise@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" - dependencies: - pinkie "^2.0.0" - -pinkie@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" - -pkg-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" - dependencies: - find-up "^1.0.0" - -pkg-dir@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" - dependencies: - find-up "^2.1.0" - -pluralize@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777" - -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - -private@^0.1.6, private@^0.1.7: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@~1.0.6: - version "1.0.7" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" - -process@^0.11.0: - version "0.11.10" - resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" - -progress@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f" - -prr@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" - -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - -public-encrypt@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.0.tgz#39f699f3a46560dd5ebacbca693caf7c65c18cc6" - dependencies: - bn.js "^4.1.0" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - parse-asn1 "^5.0.0" - randombytes "^2.0.1" - -punycode@1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" - -punycode@^1.2.4, punycode@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -querystring-es3@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" - -querystring@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" - -randomatic@^1.1.3: - version "1.1.7" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -randombytes@^2.0.0, randombytes@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.5.tgz#dc009a246b8d09a177b4b7a0ae77bc570f4b1b79" - dependencies: - safe-buffer "^5.1.0" - -rc@^1.1.7: - version "1.2.2" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.2.tgz#d8ce9cb57e8d64d9c7badd9876c7c34cbe3c7077" - dependencies: - deep-extend "~0.4.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" - dependencies: - find-up "^2.0.0" - read-pkg "^2.0.0" - -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" - dependencies: - load-json-file "^2.0.0" - normalize-package-data "^2.3.2" - path-type "^2.0.0" - -readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.2.2, readable-stream@^2.2.6: - version "2.3.3" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~1.0.6" - safe-buffer "~5.1.1" - string_decoder "~1.0.3" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" - dependencies: - graceful-fs "^4.1.2" - minimatch "^3.0.2" - readable-stream "^2.0.2" - set-immediate-shim "^1.0.1" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz#7e54fe5b5ccd5d6624ea6255c3473be090b802e1" - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - dependencies: - is-equal-shallow "^0.1.3" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - -repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" - -repeat-string@^1.5.2: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - dependencies: - is-finite "^1.0.0" - -request@2.81.0: - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - -require-main-filename@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" - -require-uncached@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" - dependencies: - caller-path "^0.1.0" - resolve-from "^1.0.0" - -resolve-from@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" - -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - dependencies: - onetime "^2.0.0" - signal-exit "^3.0.2" - -right-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" - dependencies: - align-text "^0.1.1" - -rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" - dependencies: - glob "^7.0.5" - -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7" - dependencies: - hash-base "^2.0.0" - inherits "^2.0.1" - -run-async@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" - dependencies: - is-promise "^2.1.0" - -rx-lite-aggregates@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" - dependencies: - rx-lite "*" - -rx-lite@*, rx-lite@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" - -safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -"semver@2 || 3 || 4 || 5", semver@^5.3.0: - version "5.4.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" - -set-blocking@^2.0.0, set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-immediate-shim@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - -setimmediate@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - -sha.js@^2.4.0, sha.js@^2.4.8: - version "2.4.9" - resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.9.tgz#98f64880474b74f4a38b8da9d3c0f2d104633e7d" - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -signal-exit@^3.0.0, signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - -slice-ansi@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-1.0.0.tgz#044f1a49d8842ff307aad6b505ed178bd950134d" - dependencies: - is-fullwidth-code-point "^2.0.0" - -sntp@1.x.x: - version "1.0.9" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" - dependencies: - hoek "2.x.x" - -source-list-map@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.0.tgz#aaa47403f7b245a92fbc97ea08f250d6087ed085" - -source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - -spdx-correct@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" - dependencies: - spdx-license-ids "^1.0.2" - -spdx-expression-parse@~1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" - -spdx-license-ids@^1.0.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - -sshpk@^1.7.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - optionalDependencies: - bcrypt-pbkdf "^1.0.0" - ecc-jsbn "~0.1.1" - jsbn "~0.1.0" - tweetnacl "~0.14.0" - -stream-browserify@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" - dependencies: - inherits "~2.0.1" - readable-stream "^2.0.2" - -stream-http@^2.3.1: - version "2.7.2" - resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.7.2.tgz#40a050ec8dc3b53b33d9909415c02c0bf1abfbad" - dependencies: - builtin-status-codes "^3.0.0" - inherits "^2.0.1" - readable-stream "^2.2.6" - to-arraybuffer "^1.0.0" - xtend "^4.0.0" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string_decoder@^0.10.25: - version "0.10.31" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" - -string_decoder@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" - dependencies: - safe-buffer "~5.1.0" - -stringstream@~0.0.4: - version "0.0.5" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - dependencies: - ansi-regex "^3.0.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^4.0.0, supports-color@^4.2.1: - version "4.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e" - dependencies: - has-flag "^2.0.0" - -table@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36" - dependencies: - ajv "^5.2.3" - ajv-keywords "^2.1.0" - chalk "^2.1.0" - lodash "^4.17.4" - slice-ansi "1.0.0" - string-width "^2.1.1" - -tapable@^0.2.7: - version "0.2.8" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" - -tar-pack@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.0.tgz#23be2d7f671a8339376cbdb0b8fe3fdebf317984" - dependencies: - debug "^2.2.0" - fstream "^1.0.10" - fstream-ignore "^1.0.5" - once "^1.3.3" - readable-stream "^2.1.4" - rimraf "^2.5.1" - tar "^2.2.1" - uid-number "^0.0.6" - -tar@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" - dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" - -text-table@~0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - -through@^2.3.6: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - -timers-browserify@^2.0.2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.4.tgz#96ca53f4b794a5e7c0e1bd7cc88a372298fa01e6" - dependencies: - setimmediate "^1.0.4" - -tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" - dependencies: - os-tmpdir "~1.0.2" - -to-arraybuffer@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - -tough-cookie@~2.3.0: - version "2.3.3" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561" - dependencies: - punycode "^1.4.1" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - -tryit@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" - -tty-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - dependencies: - prelude-ls "~1.1.2" - -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" - -uglify-js@^2.8.29: - version "2.8.29" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" - dependencies: - source-map "~0.5.1" - yargs "~3.10.0" - optionalDependencies: - uglify-to-browserify "~1.0.0" - -uglify-to-browserify@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" - -uglifyjs-webpack-plugin@^0.4.6: - version "0.4.6" - resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz#b951f4abb6bd617e66f63eb891498e391763e309" - dependencies: - source-map "^0.5.6" - uglify-js "^2.8.29" - webpack-sources "^1.0.1" - -uid-number@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" - -url@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" - dependencies: - punycode "1.3.2" - querystring "0.2.0" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -util@0.10.3, util@^0.10.3: - version "0.10.3" - resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" - dependencies: - inherits "2.0.1" - -uuid@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04" - -validate-npm-package-license@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" - dependencies: - spdx-correct "~1.0.0" - spdx-expression-parse "~1.0.0" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -vm-browserify@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" - dependencies: - indexof "0.0.1" - -watchpack@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.4.0.tgz#4a1472bcbb952bd0a9bb4036801f954dfb39faac" - dependencies: - async "^2.1.2" - chokidar "^1.7.0" - graceful-fs "^4.1.2" - -webpack-sources@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.0.1.tgz#c7356436a4d13123be2e2426a05d1dad9cbe65cf" - dependencies: - source-list-map "^2.0.0" - source-map "~0.5.3" - -webpack@3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.10.0.tgz#5291b875078cf2abf42bdd23afe3f8f96c17d725" - dependencies: - acorn "^5.0.0" - acorn-dynamic-import "^2.0.0" - ajv "^5.1.5" - ajv-keywords "^2.0.0" - async "^2.1.2" - enhanced-resolve "^3.4.0" - escope "^3.6.0" - interpret "^1.0.0" - json-loader "^0.5.4" - json5 "^0.5.1" - loader-runner "^2.3.0" - loader-utils "^1.1.0" - memory-fs "~0.4.1" - mkdirp "~0.5.0" - node-libs-browser "^2.0.0" - source-map "^0.5.3" - supports-color "^4.2.1" - tapable "^0.2.7" - uglifyjs-webpack-plugin "^0.4.6" - watchpack "^1.4.0" - webpack-sources "^1.0.1" - yargs "^8.0.2" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - -which@^1.2.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" - dependencies: - string-width "^1.0.2" - -window-size@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" - -wordwrap@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" - -wordwrap@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" - -wrap-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -write@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" - dependencies: - mkdirp "^0.5.1" - -xtend@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" - -y18n@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" - -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - -yargs-parser@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" - dependencies: - camelcase "^4.1.0" - -yargs@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" - dependencies: - camelcase "^4.1.0" - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - os-locale "^2.0.0" - read-pkg-up "^2.0.0" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^2.0.0" - which-module "^2.0.0" - y18n "^3.2.1" - yargs-parser "^7.0.0" - -yargs@~3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" - dependencies: - camelcase "^1.0.2" - cliui "^2.1.0" - decamelize "^1.0.0" - window-size "0.1.0" From fb893e6294e2db287daf01780a7917e0c79545af Mon Sep 17 00:00:00 2001 From: sqwk Date: Wed, 13 Nov 2019 22:26:12 +0100 Subject: [PATCH 2/5] fix: Remove unnecessary '> 0', and mark parameters as optional Mirrors pull request #158 --- dist/siema.js | 2 +- dist/siema.js.map | 2 +- src/siema.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/siema.js b/dist/siema.js index d78ece1..ae9cacb 100644 --- a/dist/siema.js +++ b/dist/siema.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("siema",[],t):"object"==typeof exports?exports.siema=t():e.siema=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(s,r,function(t){return e[t]}.bind(null,r));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e){if(this.resizeHandler=()=>{this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()},this.touchstartHandler=e=>{-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)},this.touchendHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.touchmoveHandler=e=>{if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)},this.mouseupHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.mousemoveHandler=e=>{if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`;const t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,s=this.config.rtl?t+i:t-i;this.sliderFrame.style[this.transformProperty]=`translate3d(${(this.config.rtl?1:-1)*s}px, 0, 0)`}},this.mouseleaveHandler=e=>{this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())},this.clickHandler=e=>{this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1},this.config=s.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something is wrong with your selector");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=Array.from(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=s.webkitOrNot(),this.init()}static mergeSettings(e){let t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:Function,onChange:Function};return Object.assign(t,e)}static webkitOrNot(){return"string"==typeof document.documentElement.style.transform?"transform":"webkitTransform"}attachEvents(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}detachEvents(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}init(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}buildSliderFrame(){const e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=`${e*t}px`,this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");const i=document.createDocumentFragment();if(this.config.loop)for(let e=this.innerElements.length-this.perPage;e=this.config.perPage[e]&&(this.perPage=this.config.perPage[e])}}prev(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();const t=this.currentSlide+this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}next(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();const t=this.currentSlide-this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}disableTransition(){this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`}enableTransition(){this.sliderFrame.style.webkitTransition=`all ${this.config.duration}ms ${this.config.easing}`,this.sliderFrame.style.transition=`all ${this.config.duration}ms ${this.config.easing}`}goTo(e,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}slideToCurrent(e){const t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*t*(this.selectorWidth/this.perPage);e?requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.enableTransition(),"transform"===this.transformProperty?this.sliderFrame.style.transform=`translate3d(${i}px, 0, 0)`:this.sliderFrame.style.webkitTransform=`translate3d(${i}px, 0, 0)`})}):this.sliderFrame.style[this.transformProperty]=`translate3d(${i}px, 0, 0)`}updateAfterDrag(){const e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,s=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(s||r)}clearDrag(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}remove(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist");const i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");const s=t<=this.currentSlide&&this.currentSlide>0&&this.innerElements.length;this.currentSlide=s?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}prepend(e,t){this.insert(e,0),t&&t.call(this)}append(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}destroy(e=!1,t){if(this.detachEvents(),this.selector.style.cursor="auto",e){const e=document.createDocumentFragment();for(let t=0;t{this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()},this.touchstartHandler=e=>{-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)},this.touchendHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.touchmoveHandler=e=>{if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)},this.mouseupHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.mousemoveHandler=e=>{if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`;const t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,s=this.config.rtl?t+i:t-i;this.sliderFrame.style[this.transformProperty]=`translate3d(${(this.config.rtl?1:-1)*s}px, 0, 0)`}},this.mouseleaveHandler=e=>{this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())},this.clickHandler=e=>{this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1},this.config=s.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something is wrong with your selector");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=Array.from(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=s.webkitOrNot(),this.init()}static mergeSettings(e){let t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:Function,onChange:Function};return Object.assign(t,e)}static webkitOrNot(){return"string"==typeof document.documentElement.style.transform?"transform":"webkitTransform"}attachEvents(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}detachEvents(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}init(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}buildSliderFrame(){const e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=`${e*t}px`,this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");const i=document.createDocumentFragment();if(this.config.loop)for(let e=this.innerElements.length-this.perPage;e=this.config.perPage[e]&&(this.perPage=this.config.perPage[e])}}prev(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();const t=this.currentSlide+this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}next(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();const t=this.currentSlide-this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}disableTransition(){this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`}enableTransition(){this.sliderFrame.style.webkitTransition=`all ${this.config.duration}ms ${this.config.easing}`,this.sliderFrame.style.transition=`all ${this.config.duration}ms ${this.config.easing}`}goTo(e,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}slideToCurrent(e){const t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*t*(this.selectorWidth/this.perPage);e?requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.enableTransition(),"transform"===this.transformProperty?this.sliderFrame.style.transform=`translate3d(${i}px, 0, 0)`:this.sliderFrame.style.webkitTransform=`translate3d(${i}px, 0, 0)`})}):this.sliderFrame.style[this.transformProperty]=`translate3d(${i}px, 0, 0)`}updateAfterDrag(){const e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,s=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(s||r)}clearDrag(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}remove(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist");const i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");const s=t<=this.currentSlide&&this.innerElements.length;this.currentSlide=s?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}prepend(e,t){this.insert(e,0),t&&t.call(this)}append(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}destroy(e=!1,t){if(this.detachEvents(),this.selector.style.cursor="auto",e){const e=document.createDocumentFragment();for(let t=0;t void;\n onChange?: () => void;\n}\n/**\n * Hi :-) This is a class representing a Siema.\n */\nexport default class Siema {\n\n /** Config used for this instace of Siema */\n public config: SiemaOptions;\n\n /** Variable to track if mouse is pressed */\n private pointerDown: boolean;\n\n /** Variable to track mouse track */\n private drag: {\n startX: number,\n endX: number,\n startY: number,\n letItGo: boolean,\n preventClick: boolean\n };\n\n /** Reference to the Siema element */\n public selector: HTMLElement;\n\n /** The width of the Siema element */\n private selectorWidth: number;\n\n /** How many items to show per page */\n private perPage: number;\n\n /** Variable to keep track of the actual items */\n private innerElements: Element[];\n\n /** Zero based index of the current slide */\n private currentSlide: number;\n\n /** Variable to keeo track of wether to use standard or webkit compaotible transforms */\n private transformProperty: 'transform'|'webkitTransform';\n\n /** Reference to the the sliding wrapper for all items */\n private sliderFrame: HTMLDivElement;\n\n /**\n * Create a Siema.\n */\n constructor(options: Partial) {\n\n // Merge defaults with user's settings\n this.config = Siema.mergeSettings(options);\n\n // Resolve selector's type\n this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\n // Early throw if selector doesn't exists\n if (this.selector === null) {\n throw new Error('Something is wrong with your selector');\n }\n\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // Create global references\n this.selectorWidth = this.selector.offsetWidth;\n this.innerElements = Array.from(this.selector.children);\n this.currentSlide = this.config.loop ?\n this.config.startIndex % this.innerElements.length :\n Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage));\n this.transformProperty = Siema.webkitOrNot();\n\n // Build markup and apply required styling to elements\n this.init();\n }\n\n /**\n * Merge default settings with custom ones.\n */\n static mergeSettings(options: Partial): SiemaOptions {\n let defaultOptions: SiemaOptions = {\n selector: '.siema',\n duration: 200,\n easing: 'ease-out',\n perPage: 1,\n startIndex: 0,\n draggable: true,\n multipleDrag: true,\n threshold: 20,\n loop: false,\n rtl: false,\n onInit: Function,\n onChange: Function,\n };\n\n return Object.assign(defaultOptions, options);\n }\n\n /**\n * Determine if browser supports unprefixed transform property.\n * Google Chrome since version 26 supports prefix-less transform\n */\n static webkitOrNot() {\n const style = document.documentElement.style;\n if (typeof style.transform === 'string') {\n return 'transform';\n }\n return 'webkitTransform';\n }\n\n /**\n * Attaches listeners to required events.\n */\n private attachEvents() {\n // Resize element on window resize\n window.addEventListener('resize', this.resizeHandler);\n\n // If element is draggable / swipable, add event handlers\n if (this.config.draggable) {\n // Keep track pointer hold and dragging distance\n this.pointerDown = false;\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: false,\n };\n\n // Touch events\n this.selector.addEventListener('touchstart', this.touchstartHandler);\n this.selector.addEventListener('touchend', this.touchendHandler);\n this.selector.addEventListener('touchmove', this.touchmoveHandler);\n\n // Mouse events\n this.selector.addEventListener('mousedown', this.mousedownHandler);\n this.selector.addEventListener('mouseup', this.mouseupHandler);\n this.selector.addEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.addEventListener('mousemove', this.mousemoveHandler);\n\n // Click\n this.selector.addEventListener('click', this.clickHandler);\n }\n }\n\n /**\n * Detaches listeners from required events.\n */\n private detachEvents() {\n window.removeEventListener('resize', this.resizeHandler);\n this.selector.removeEventListener('touchstart', this.touchstartHandler);\n this.selector.removeEventListener('touchend', this.touchendHandler);\n this.selector.removeEventListener('touchmove', this.touchmoveHandler);\n this.selector.removeEventListener('mousedown', this.mousedownHandler);\n this.selector.removeEventListener('mouseup', this.mouseupHandler);\n this.selector.removeEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.removeEventListener('mousemove', this.mousemoveHandler);\n this.selector.removeEventListener('click', this.clickHandler);\n }\n\n /**\n * Builds the markup and attaches listeners to required events.\n */\n private init(): void {\n this.attachEvents();\n\n // hide everything out of selector's boundaries\n this.selector.style.overflow = 'hidden';\n\n // rtl or ltr\n this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr';\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n this.config.onInit.call(this);\n }\n\n\n /**\n * Build a sliderFrame and slide to a current item.\n */\n private buildSliderFrame() {\n const widthItem = this.selectorWidth / this.perPage;\n const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length;\n\n // Create frame and apply styling\n this.sliderFrame = document.createElement('div');\n this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`;\n this.enableTransition();\n\n if (this.config.draggable) {\n this.selector.style.cursor = '-webkit-grab';\n }\n\n // Create a document fragment to put slides into it\n const docFragment = document.createDocumentFragment();\n\n // Loop through the slides, add styling and add them to document fragment\n if (this.config.loop) {\n for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n for (let i = 0; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i] as HTMLElement);\n docFragment.appendChild(element);\n }\n if (this.config.loop) {\n for (let i = 0; i < this.perPage; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n\n // Add fragment to the frame\n this.sliderFrame.appendChild(docFragment);\n\n // Clear selector (just in case something is there) and insert a frame\n this.selector.innerHTML = '';\n this.selector.appendChild(this.sliderFrame);\n\n // Go to currently active slide after initial build\n this.slideToCurrent();\n }\n\n private buildSliderFrameItem(elm: HTMLElement) {\n const elementContainer = document.createElement('div');\n elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left';\n elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`;\n elementContainer.appendChild(elm);\n return elementContainer;\n }\n\n\n /**\n * Determinates slides number accordingly to clients viewport.\n */\n private resolveSlidesNumber() {\n if (typeof this.config.perPage === 'number') {\n this.perPage = this.config.perPage;\n\n } else {\n this.perPage = 1;\n for (const key in this.config.perPage) {\n if (window.innerWidth >= this.config.perPage[key]) {\n this.perPage = this.config.perPage[key];\n }\n }\n }\n }\n\n\n /**\n * Go to previous slide.\n */\n public prev(howManySlides = 1, callback?: () => void) {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide - howManySlides < 0;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide + this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex - howManySlides;\n } else {\n this.currentSlide = this.currentSlide - howManySlides;\n }\n } else {\n this.currentSlide = Math.max(this.currentSlide - howManySlides, 0);\n }\n\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Go to next slide.\n */\n public next(howManySlides = 1, callback?: () => void) {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide - this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex + howManySlides;\n } else {\n this.currentSlide = this.currentSlide + howManySlides;\n }\n } else {\n this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage);\n }\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Disable transition on sliderFrame.\n */\n private disableTransition() {\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n }\n\n\n /**\n * Enable transition on sliderFrame.\n */\n private enableTransition() {\n this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`;\n }\n\n /**\n * Go to slide with particular index\n */\n public goTo(index: number, callback?: () => void) {\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n const beforeChange = this.currentSlide;\n this.currentSlide = this.config.loop ?\n index % this.innerElements.length :\n Math.min(Math.max(index, 0), this.innerElements.length - this.perPage);\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent();\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n /**\n * Moves sliders frame to position of currently active slide\n */\n public slideToCurrent(enableTransition?: boolean) {\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage);\n\n if (enableTransition) {\n // This one is tricky, I know but this is a perfect explanation:\n // https://youtu.be/cCOL7MC4Pl0\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.enableTransition();\n if (this.transformProperty === 'transform') {\n this.sliderFrame.style.transform = `translate3d(${offset}px, 0, 0)`;\n } else {\n this.sliderFrame.style.webkitTransform = `translate3d(${offset}px, 0, 0)`;\n }\n });\n });\n } else {\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`;\n }\n }\n\n\n /**\n * Recalculate drag /swipe event and reposition the frame of a slider\n */\n private updateAfterDrag() {\n const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX);\n const movementDistance = Math.abs(movement);\n const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1;\n\n const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0;\n const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage;\n\n if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.prev(howManySliderToSlide);\n } else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.next(howManySliderToSlide);\n }\n this.slideToCurrent(slideToNegativeClone || slideToPositiveClone);\n }\n\n\n /**\n * When window resizes, resize slider components as well\n */\n private resizeHandler = () => {\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // relcalculate currentSlide\n // prevent hiding items when browser width increases\n if (this.currentSlide + this.perPage > this.innerElements.length) {\n this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage;\n }\n\n this.selectorWidth = this.selector.offsetWidth;\n\n this.buildSliderFrame();\n }\n\n /**\n * Clear drag after touchend and mouseup event\n */\n private clearDrag() {\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: this.drag.preventClick\n };\n }\n\n /**\n * touchstart event handler\n */\n private touchstartHandler = (e: TouchEvent) => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.touches[0].pageX;\n this.drag.startY = e.touches[0].pageY;\n }\n\n /**\n * touchend event handler\n */\n private touchendHandler = (e: TouchEvent) => {\n e.stopPropagation();\n this.pointerDown = false;\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * touchmove event handler\n */\n private touchmoveHandler = (e: TouchEvent) => {\n e.stopPropagation();\n\n if (this.drag.letItGo === null) {\n this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX);\n }\n\n if (this.pointerDown && this.drag.letItGo) {\n e.preventDefault();\n this.drag.endX = e.touches[0].pageX;\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mousedown event handler\n */\n private mousedownHandler = (e: MouseEvent) => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.pageX;\n }\n\n /**\n * mouseup event handler\n */\n private mouseupHandler = (e: MouseEvent) => {\n e.stopPropagation();\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * mousemove event handler\n */\n private mousemoveHandler = (e: MouseEvent) => {\n e.preventDefault();\n if (this.pointerDown) {\n // if dragged element is a link\n // mark preventClick prop as a true\n // to detemine about browser redirection later on\n if ((e.target as HTMLElement).nodeName === 'A') {\n this.drag.preventClick = true;\n }\n\n this.drag.endX = e.pageX;\n this.selector.style.cursor = '-webkit-grabbing';\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mouseleave event handler\n */\n private mouseleaveHandler = (e: MouseEvent) => {\n if (this.pointerDown) {\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.drag.endX = e.pageX;\n this.drag.preventClick = false;\n this.enableTransition();\n this.updateAfterDrag();\n this.clearDrag();\n }\n }\n\n\n /**\n * click event handler\n */\n private clickHandler = (e: Event) => {\n // if the dragged element is a link\n // prevent browsers from folowing the link\n if (this.drag.preventClick) {\n e.preventDefault();\n }\n this.drag.preventClick = false;\n }\n\n\n /**\n * Remove item from carousel.\n */\n public remove(index: number, callback?: () => void) {\n if (index < 0 || index >= this.innerElements.length) {\n throw new Error('Item to remove doesn\\'t exist');\n }\n\n // Shift sliderFrame back by one item when:\n // 1. Item with lower index than currenSlide is removed.\n // 2. Last item is removed.\n const lowerIndex = index < this.currentSlide;\n const lastItem = this.currentSlide + this.perPage - 1 === index;\n\n if (lowerIndex || lastItem) {\n this.currentSlide--;\n }\n\n this.innerElements.splice(index, 1);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n\n /**\n * Insert item to carousel at particular index.\n */\n public insert(item: HTMLElement, index: number, callback?: () => void) {\n if (index < 0 || index > this.innerElements.length + 1) {\n throw new Error('Unable to inset it at this index 😭');\n }\n if (this.innerElements.indexOf(item) !== -1) {\n throw new Error('The same item in a carousel? Really? Nope 😭');\n }\n\n // Avoid shifting content\n const shouldItShift = index <= this.currentSlide && this.currentSlide > 0 && this.innerElements.length;\n this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide;\n\n this.innerElements.splice(index, 0, item);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Prepernd item to carousel.\n */\n public prepend(item: HTMLElement, callback?: () => void) {\n this.insert(item, 0);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Append item to carousel.\n */\n public append(item: HTMLElement, callback?: () => void) {\n this.insert(item, this.innerElements.length + 1);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Removes listeners and optionally restores to initial markup\n */\n public destroy(restoreMarkup = false, callback?: () => void) {\n this.detachEvents();\n\n this.selector.style.cursor = 'auto';\n\n if (restoreMarkup) {\n const slides = document.createDocumentFragment();\n for (let i = 0; i < this.innerElements.length; i++) {\n slides.appendChild(this.innerElements[i]);\n }\n this.selector.innerHTML = '';\n this.selector.appendChild(slides);\n this.selector.removeAttribute('style');\n }\n\n if (callback) {\n callback.call(this);\n }\n }\n\n}\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./src/siema.ts"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Siema","options","resizeHandler","resolveSlidesNumber","currentSlide","perPage","innerElements","length","selectorWidth","selector","offsetWidth","buildSliderFrame","touchstartHandler","e","indexOf","target","nodeName","stopPropagation","pointerDown","drag","startX","touches","pageX","startY","pageY","touchendHandler","enableTransition","endX","updateAfterDrag","clearDrag","touchmoveHandler","letItGo","Math","abs","preventDefault","sliderFrame","style","webkitTransition","config","easing","transition","currentOffset","loop","dragOffset","offset","rtl","transformProperty","mousedownHandler","mouseupHandler","cursor","mousemoveHandler","preventClick","mouseleaveHandler","clickHandler","mergeSettings","document","querySelector","Error","Array","from","children","startIndex","max","min","webkitOrNot","init","defaultOptions","duration","draggable","multipleDrag","threshold","onInit","Function","onChange","assign","documentElement","transform","window","addEventListener","removeEventListener","attachEvents","overflow","direction","widthItem","itemsToBuild","createElement","width","docFragment","createDocumentFragment","element","buildSliderFrameItem","cloneNode","appendChild","innerHTML","slideToCurrent","elm","elementContainer","cssFloat","innerWidth","howManySlides","callback","beforeChange","disableTransition","mirrorSlideIndex","moveTo","dragDistance","index","requestAnimationFrame","webkitTransform","movement","movementDistance","howManySliderToSlide","ceil","slideToNegativeClone","slideToPositiveClone","prev","next","lowerIndex","lastItem","splice","item","shouldItShift","insert","restoreMarkup","detachEvents","slides","removeAttribute"],"mappings":"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","file":"siema.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"siema\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"siema\"] = factory();\n\telse\n\t\troot[\"siema\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","export interface SiemaOptions {\n selector: string;\n duration: number;\n easing: string;\n perPage: number|{[width: number]: number};\n startIndex: number;\n draggable: boolean;\n multipleDrag: boolean;\n threshold: number;\n loop: boolean;\n rtl: boolean;\n onInit?: () => void;\n onChange?: () => void;\n}\n/**\n * Hi :-) This is a class representing a Siema.\n */\nexport default class Siema {\n\n /** Config used for this instace of Siema */\n public config: SiemaOptions;\n\n /** Variable to track if mouse is pressed */\n private pointerDown: boolean;\n\n /** Variable to track mouse track */\n private drag: {\n startX: number,\n endX: number,\n startY: number,\n letItGo: boolean,\n preventClick: boolean\n };\n\n /** Reference to the Siema element */\n public selector: HTMLElement;\n\n /** The width of the Siema element */\n private selectorWidth: number;\n\n /** How many items to show per page */\n private perPage: number;\n\n /** Variable to keep track of the actual items */\n private innerElements: Element[];\n\n /** Zero based index of the current slide */\n private currentSlide: number;\n\n /** Variable to keeo track of wether to use standard or webkit compaotible transforms */\n private transformProperty: 'transform'|'webkitTransform';\n\n /** Reference to the the sliding wrapper for all items */\n private sliderFrame: HTMLDivElement;\n\n /**\n * Create a Siema.\n */\n constructor(options: Partial) {\n\n // Merge defaults with user's settings\n this.config = Siema.mergeSettings(options);\n\n // Resolve selector's type\n this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\n // Early throw if selector doesn't exists\n if (this.selector === null) {\n throw new Error('Something is wrong with your selector');\n }\n\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // Create global references\n this.selectorWidth = this.selector.offsetWidth;\n this.innerElements = Array.from(this.selector.children);\n this.currentSlide = this.config.loop ?\n this.config.startIndex % this.innerElements.length :\n Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage));\n this.transformProperty = Siema.webkitOrNot();\n\n // Build markup and apply required styling to elements\n this.init();\n }\n\n /**\n * Merge default settings with custom ones.\n */\n static mergeSettings(options: Partial): SiemaOptions {\n let defaultOptions: SiemaOptions = {\n selector: '.siema',\n duration: 200,\n easing: 'ease-out',\n perPage: 1,\n startIndex: 0,\n draggable: true,\n multipleDrag: true,\n threshold: 20,\n loop: false,\n rtl: false,\n onInit: Function,\n onChange: Function,\n };\n\n return Object.assign(defaultOptions, options);\n }\n\n /**\n * Determine if browser supports unprefixed transform property.\n * Google Chrome since version 26 supports prefix-less transform\n */\n static webkitOrNot() {\n const style = document.documentElement.style;\n if (typeof style.transform === 'string') {\n return 'transform';\n }\n return 'webkitTransform';\n }\n\n /**\n * Attaches listeners to required events.\n */\n private attachEvents() {\n // Resize element on window resize\n window.addEventListener('resize', this.resizeHandler);\n\n // If element is draggable / swipable, add event handlers\n if (this.config.draggable) {\n // Keep track pointer hold and dragging distance\n this.pointerDown = false;\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: false,\n };\n\n // Touch events\n this.selector.addEventListener('touchstart', this.touchstartHandler);\n this.selector.addEventListener('touchend', this.touchendHandler);\n this.selector.addEventListener('touchmove', this.touchmoveHandler);\n\n // Mouse events\n this.selector.addEventListener('mousedown', this.mousedownHandler);\n this.selector.addEventListener('mouseup', this.mouseupHandler);\n this.selector.addEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.addEventListener('mousemove', this.mousemoveHandler);\n\n // Click\n this.selector.addEventListener('click', this.clickHandler);\n }\n }\n\n /**\n * Detaches listeners from required events.\n */\n private detachEvents() {\n window.removeEventListener('resize', this.resizeHandler);\n this.selector.removeEventListener('touchstart', this.touchstartHandler);\n this.selector.removeEventListener('touchend', this.touchendHandler);\n this.selector.removeEventListener('touchmove', this.touchmoveHandler);\n this.selector.removeEventListener('mousedown', this.mousedownHandler);\n this.selector.removeEventListener('mouseup', this.mouseupHandler);\n this.selector.removeEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.removeEventListener('mousemove', this.mousemoveHandler);\n this.selector.removeEventListener('click', this.clickHandler);\n }\n\n /**\n * Builds the markup and attaches listeners to required events.\n */\n private init(): void {\n this.attachEvents();\n\n // hide everything out of selector's boundaries\n this.selector.style.overflow = 'hidden';\n\n // rtl or ltr\n this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr';\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n this.config.onInit.call(this);\n }\n\n\n /**\n * Build a sliderFrame and slide to a current item.\n */\n private buildSliderFrame() {\n const widthItem = this.selectorWidth / this.perPage;\n const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length;\n\n // Create frame and apply styling\n this.sliderFrame = document.createElement('div');\n this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`;\n this.enableTransition();\n\n if (this.config.draggable) {\n this.selector.style.cursor = '-webkit-grab';\n }\n\n // Create a document fragment to put slides into it\n const docFragment = document.createDocumentFragment();\n\n // Loop through the slides, add styling and add them to document fragment\n if (this.config.loop) {\n for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n for (let i = 0; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i] as HTMLElement);\n docFragment.appendChild(element);\n }\n if (this.config.loop) {\n for (let i = 0; i < this.perPage; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n\n // Add fragment to the frame\n this.sliderFrame.appendChild(docFragment);\n\n // Clear selector (just in case something is there) and insert a frame\n this.selector.innerHTML = '';\n this.selector.appendChild(this.sliderFrame);\n\n // Go to currently active slide after initial build\n this.slideToCurrent();\n }\n\n private buildSliderFrameItem(elm: HTMLElement) {\n const elementContainer = document.createElement('div');\n elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left';\n elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`;\n elementContainer.appendChild(elm);\n return elementContainer;\n }\n\n\n /**\n * Determinates slides number accordingly to clients viewport.\n */\n private resolveSlidesNumber() {\n if (typeof this.config.perPage === 'number') {\n this.perPage = this.config.perPage;\n\n } else {\n this.perPage = 1;\n for (const key in this.config.perPage) {\n if (window.innerWidth >= this.config.perPage[key]) {\n this.perPage = this.config.perPage[key];\n }\n }\n }\n }\n\n\n /**\n * Go to previous slide.\n */\n public prev(howManySlides = 1, callback?: () => void) {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide - howManySlides < 0;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide + this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex - howManySlides;\n } else {\n this.currentSlide = this.currentSlide - howManySlides;\n }\n } else {\n this.currentSlide = Math.max(this.currentSlide - howManySlides, 0);\n }\n\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Go to next slide.\n */\n public next(howManySlides = 1, callback?: () => void) {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide - this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex + howManySlides;\n } else {\n this.currentSlide = this.currentSlide + howManySlides;\n }\n } else {\n this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage);\n }\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Disable transition on sliderFrame.\n */\n private disableTransition() {\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n }\n\n\n /**\n * Enable transition on sliderFrame.\n */\n private enableTransition() {\n this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`;\n }\n\n /**\n * Go to slide with particular index\n */\n public goTo(index: number, callback?: () => void) {\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n const beforeChange = this.currentSlide;\n this.currentSlide = this.config.loop ?\n index % this.innerElements.length :\n Math.min(Math.max(index, 0), this.innerElements.length - this.perPage);\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent();\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n /**\n * Moves sliders frame to position of currently active slide\n */\n public slideToCurrent(enableTransition?: boolean) {\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage);\n\n if (enableTransition) {\n // This one is tricky, I know but this is a perfect explanation:\n // https://youtu.be/cCOL7MC4Pl0\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.enableTransition();\n if (this.transformProperty === 'transform') {\n this.sliderFrame.style.transform = `translate3d(${offset}px, 0, 0)`;\n } else {\n this.sliderFrame.style.webkitTransform = `translate3d(${offset}px, 0, 0)`;\n }\n });\n });\n } else {\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`;\n }\n }\n\n\n /**\n * Recalculate drag /swipe event and reposition the frame of a slider\n */\n private updateAfterDrag() {\n const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX);\n const movementDistance = Math.abs(movement);\n const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1;\n\n const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0;\n const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage;\n\n if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.prev(howManySliderToSlide);\n } else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.next(howManySliderToSlide);\n }\n this.slideToCurrent(slideToNegativeClone || slideToPositiveClone);\n }\n\n\n /**\n * When window resizes, resize slider components as well\n */\n private resizeHandler = () => {\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // relcalculate currentSlide\n // prevent hiding items when browser width increases\n if (this.currentSlide + this.perPage > this.innerElements.length) {\n this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage;\n }\n\n this.selectorWidth = this.selector.offsetWidth;\n\n this.buildSliderFrame();\n }\n\n /**\n * Clear drag after touchend and mouseup event\n */\n private clearDrag() {\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: this.drag.preventClick\n };\n }\n\n /**\n * touchstart event handler\n */\n private touchstartHandler = (e: TouchEvent) => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.touches[0].pageX;\n this.drag.startY = e.touches[0].pageY;\n }\n\n /**\n * touchend event handler\n */\n private touchendHandler = (e: TouchEvent) => {\n e.stopPropagation();\n this.pointerDown = false;\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * touchmove event handler\n */\n private touchmoveHandler = (e: TouchEvent) => {\n e.stopPropagation();\n\n if (this.drag.letItGo === null) {\n this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX);\n }\n\n if (this.pointerDown && this.drag.letItGo) {\n e.preventDefault();\n this.drag.endX = e.touches[0].pageX;\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mousedown event handler\n */\n private mousedownHandler = (e: MouseEvent) => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.pageX;\n }\n\n /**\n * mouseup event handler\n */\n private mouseupHandler = (e: MouseEvent) => {\n e.stopPropagation();\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * mousemove event handler\n */\n private mousemoveHandler = (e: MouseEvent) => {\n e.preventDefault();\n if (this.pointerDown) {\n // if dragged element is a link\n // mark preventClick prop as a true\n // to detemine about browser redirection later on\n if ((e.target as HTMLElement).nodeName === 'A') {\n this.drag.preventClick = true;\n }\n\n this.drag.endX = e.pageX;\n this.selector.style.cursor = '-webkit-grabbing';\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mouseleave event handler\n */\n private mouseleaveHandler = (e: MouseEvent) => {\n if (this.pointerDown) {\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.drag.endX = e.pageX;\n this.drag.preventClick = false;\n this.enableTransition();\n this.updateAfterDrag();\n this.clearDrag();\n }\n }\n\n\n /**\n * click event handler\n */\n private clickHandler = (e: Event) => {\n // if the dragged element is a link\n // prevent browsers from folowing the link\n if (this.drag.preventClick) {\n e.preventDefault();\n }\n this.drag.preventClick = false;\n }\n\n\n /**\n * Remove item from carousel.\n */\n public remove(index: number, callback?: () => void) {\n if (index < 0 || index >= this.innerElements.length) {\n throw new Error('Item to remove doesn\\'t exist');\n }\n\n // Shift sliderFrame back by one item when:\n // 1. Item with lower index than currenSlide is removed.\n // 2. Last item is removed.\n const lowerIndex = index < this.currentSlide;\n const lastItem = this.currentSlide + this.perPage - 1 === index;\n\n if (lowerIndex || lastItem) {\n this.currentSlide--;\n }\n\n this.innerElements.splice(index, 1);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n\n /**\n * Insert item to carousel at particular index.\n */\n public insert(item: HTMLElement, index: number, callback?: () => void) {\n if (index < 0 || index > this.innerElements.length + 1) {\n throw new Error('Unable to inset it at this index 😭');\n }\n if (this.innerElements.indexOf(item) !== -1) {\n throw new Error('The same item in a carousel? Really? Nope 😭');\n }\n\n // Avoid shifting content\n const shouldItShift = index <= this.currentSlide && this.innerElements.length;\n this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide;\n\n this.innerElements.splice(index, 0, item);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Prepernd item to carousel.\n */\n public prepend(item: HTMLElement, callback?: () => void) {\n this.insert(item, 0);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Append item to carousel.\n */\n public append(item: HTMLElement, callback?: () => void) {\n this.insert(item, this.innerElements.length + 1);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Removes listeners and optionally restores to initial markup\n */\n public destroy(restoreMarkup = false, callback?: () => void) {\n this.detachEvents();\n\n this.selector.style.cursor = 'auto';\n\n if (restoreMarkup) {\n const slides = document.createDocumentFragment();\n for (let i = 0; i < this.innerElements.length; i++) {\n slides.appendChild(this.innerElements[i]);\n }\n this.selector.innerHTML = '';\n this.selector.appendChild(slides);\n this.selector.removeAttribute('style');\n }\n\n if (callback) {\n callback.call(this);\n }\n }\n\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/src/siema.ts b/src/siema.ts index 1d86455..e56bf80 100644 --- a/src/siema.ts +++ b/src/siema.ts @@ -636,7 +636,7 @@ export default class Siema { } // Avoid shifting content - const shouldItShift = index <= this.currentSlide && this.currentSlide > 0 && this.innerElements.length; + const shouldItShift = index <= this.currentSlide && this.innerElements.length; this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide; this.innerElements.splice(index, 0, item); From c678c2f150b7d12fae4db7d9c2dc852ebfb046e6 Mon Sep 17 00:00:00 2001 From: sqwk Date: Wed, 15 Jan 2020 01:15:23 +0100 Subject: [PATCH 3/5] build: Replace TSlint with ESlint --- .eslintrc.js | 16 + dist/siema.d.ts | 2 +- dist/siema.js | 2 +- dist/siema.js.map | 2 +- package-lock.json | 824 ++++++++++++++++++++++++++++++++++++++-------- package.json | 4 +- src/siema.ts | 72 ++-- tslint.json | 54 --- 8 files changed, 741 insertions(+), 235 deletions(-) create mode 100644 .eslintrc.js delete mode 100644 tslint.json diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..d685f87 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,16 @@ +module.exports = { + parser: '@typescript-eslint/parser', + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + }, + plugins: ['@typescript-eslint'], + env: { + browser: true, + node: true, + }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + ], +}; diff --git a/dist/siema.d.ts b/dist/siema.d.ts index a48c40d..dc81abd 100644 --- a/dist/siema.d.ts +++ b/dist/siema.d.ts @@ -50,7 +50,7 @@ export default class Siema { * Determine if browser supports unprefixed transform property. * Google Chrome since version 26 supports prefix-less transform */ - static webkitOrNot(): "transform" | "webkitTransform"; + static webkitOrNot(): 'transform' | 'webkitTransform'; /** * Attaches listeners to required events. */ diff --git a/dist/siema.js b/dist/siema.js index ae9cacb..7586e40 100644 --- a/dist/siema.js +++ b/dist/siema.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("siema",[],t):"object"==typeof exports?exports.siema=t():e.siema=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(s,r,function(t){return e[t]}.bind(null,r));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e){if(this.resizeHandler=()=>{this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()},this.touchstartHandler=e=>{-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)},this.touchendHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.touchmoveHandler=e=>{if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)},this.mouseupHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.mousemoveHandler=e=>{if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`;const t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,s=this.config.rtl?t+i:t-i;this.sliderFrame.style[this.transformProperty]=`translate3d(${(this.config.rtl?1:-1)*s}px, 0, 0)`}},this.mouseleaveHandler=e=>{this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())},this.clickHandler=e=>{this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1},this.config=s.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something is wrong with your selector");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=Array.from(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=s.webkitOrNot(),this.init()}static mergeSettings(e){let t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:Function,onChange:Function};return Object.assign(t,e)}static webkitOrNot(){return"string"==typeof document.documentElement.style.transform?"transform":"webkitTransform"}attachEvents(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}detachEvents(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}init(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}buildSliderFrame(){const e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=`${e*t}px`,this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");const i=document.createDocumentFragment();if(this.config.loop)for(let e=this.innerElements.length-this.perPage;e=this.config.perPage[e]&&(this.perPage=this.config.perPage[e])}}prev(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();const t=this.currentSlide+this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}next(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();const t=this.currentSlide-this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}disableTransition(){this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`}enableTransition(){this.sliderFrame.style.webkitTransition=`all ${this.config.duration}ms ${this.config.easing}`,this.sliderFrame.style.transition=`all ${this.config.duration}ms ${this.config.easing}`}goTo(e,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}slideToCurrent(e){const t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*t*(this.selectorWidth/this.perPage);e?requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.enableTransition(),"transform"===this.transformProperty?this.sliderFrame.style.transform=`translate3d(${i}px, 0, 0)`:this.sliderFrame.style.webkitTransform=`translate3d(${i}px, 0, 0)`})}):this.sliderFrame.style[this.transformProperty]=`translate3d(${i}px, 0, 0)`}updateAfterDrag(){const e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,s=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(s||r)}clearDrag(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}remove(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist");const i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");const s=t<=this.currentSlide&&this.innerElements.length;this.currentSlide=s?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}prepend(e,t){this.insert(e,0),t&&t.call(this)}append(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}destroy(e=!1,t){if(this.detachEvents(),this.selector.style.cursor="auto",e){const e=document.createDocumentFragment();for(let t=0;t{this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()},this.touchstartHandler=e=>{-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)},this.touchendHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.touchmoveHandler=e=>{if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)},this.mouseupHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.mousemoveHandler=e=>{if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`;const t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,s=this.config.rtl?t+i:t-i;this.sliderFrame.style[this.transformProperty]=`translate3d(${(this.config.rtl?1:-1)*s}px, 0, 0)`}},this.mouseleaveHandler=e=>{this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())},this.clickHandler=e=>{this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1},this.config=s.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something is wrong with your selector");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=Array.from(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=s.webkitOrNot(),this.init()}static mergeSettings(e){const t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:Function,onChange:Function};return Object.assign(t,e)}static webkitOrNot(){return"string"==typeof document.documentElement.style.transform?"transform":"webkitTransform"}attachEvents(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}detachEvents(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}init(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}buildSliderFrame(){const e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=`${e*t}px`,this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");const i=document.createDocumentFragment();if(this.config.loop)for(let e=this.innerElements.length-this.perPage;e=this.config.perPage[e]&&(this.perPage=this.config.perPage[e])}}prev(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();const t=this.currentSlide+this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}next(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();const t=this.currentSlide-this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}disableTransition(){this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`}enableTransition(){this.sliderFrame.style.webkitTransition=`all ${this.config.duration}ms ${this.config.easing}`,this.sliderFrame.style.transition=`all ${this.config.duration}ms ${this.config.easing}`}goTo(e,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}slideToCurrent(e){const t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*t*(this.selectorWidth/this.perPage);e?requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.enableTransition(),"transform"===this.transformProperty?this.sliderFrame.style.transform=`translate3d(${i}px, 0, 0)`:this.sliderFrame.style.webkitTransform=`translate3d(${i}px, 0, 0)`})}):this.sliderFrame.style[this.transformProperty]=`translate3d(${i}px, 0, 0)`}updateAfterDrag(){const e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,s=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(s||r)}clearDrag(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}remove(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist");const i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");const s=t<=this.currentSlide&&this.innerElements.length;this.currentSlide=s?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}prepend(e,t){this.insert(e,0),t&&t.call(this)}append(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}destroy(e=!1,t){if(this.detachEvents(),this.selector.style.cursor="auto",e){const e=document.createDocumentFragment();for(let t=0;t void;\n onChange?: () => void;\n}\n/**\n * Hi :-) This is a class representing a Siema.\n */\nexport default class Siema {\n\n /** Config used for this instace of Siema */\n public config: SiemaOptions;\n\n /** Variable to track if mouse is pressed */\n private pointerDown: boolean;\n\n /** Variable to track mouse track */\n private drag: {\n startX: number,\n endX: number,\n startY: number,\n letItGo: boolean,\n preventClick: boolean\n };\n\n /** Reference to the Siema element */\n public selector: HTMLElement;\n\n /** The width of the Siema element */\n private selectorWidth: number;\n\n /** How many items to show per page */\n private perPage: number;\n\n /** Variable to keep track of the actual items */\n private innerElements: Element[];\n\n /** Zero based index of the current slide */\n private currentSlide: number;\n\n /** Variable to keeo track of wether to use standard or webkit compaotible transforms */\n private transformProperty: 'transform'|'webkitTransform';\n\n /** Reference to the the sliding wrapper for all items */\n private sliderFrame: HTMLDivElement;\n\n /**\n * Create a Siema.\n */\n constructor(options: Partial) {\n\n // Merge defaults with user's settings\n this.config = Siema.mergeSettings(options);\n\n // Resolve selector's type\n this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\n // Early throw if selector doesn't exists\n if (this.selector === null) {\n throw new Error('Something is wrong with your selector');\n }\n\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // Create global references\n this.selectorWidth = this.selector.offsetWidth;\n this.innerElements = Array.from(this.selector.children);\n this.currentSlide = this.config.loop ?\n this.config.startIndex % this.innerElements.length :\n Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage));\n this.transformProperty = Siema.webkitOrNot();\n\n // Build markup and apply required styling to elements\n this.init();\n }\n\n /**\n * Merge default settings with custom ones.\n */\n static mergeSettings(options: Partial): SiemaOptions {\n let defaultOptions: SiemaOptions = {\n selector: '.siema',\n duration: 200,\n easing: 'ease-out',\n perPage: 1,\n startIndex: 0,\n draggable: true,\n multipleDrag: true,\n threshold: 20,\n loop: false,\n rtl: false,\n onInit: Function,\n onChange: Function,\n };\n\n return Object.assign(defaultOptions, options);\n }\n\n /**\n * Determine if browser supports unprefixed transform property.\n * Google Chrome since version 26 supports prefix-less transform\n */\n static webkitOrNot() {\n const style = document.documentElement.style;\n if (typeof style.transform === 'string') {\n return 'transform';\n }\n return 'webkitTransform';\n }\n\n /**\n * Attaches listeners to required events.\n */\n private attachEvents() {\n // Resize element on window resize\n window.addEventListener('resize', this.resizeHandler);\n\n // If element is draggable / swipable, add event handlers\n if (this.config.draggable) {\n // Keep track pointer hold and dragging distance\n this.pointerDown = false;\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: false,\n };\n\n // Touch events\n this.selector.addEventListener('touchstart', this.touchstartHandler);\n this.selector.addEventListener('touchend', this.touchendHandler);\n this.selector.addEventListener('touchmove', this.touchmoveHandler);\n\n // Mouse events\n this.selector.addEventListener('mousedown', this.mousedownHandler);\n this.selector.addEventListener('mouseup', this.mouseupHandler);\n this.selector.addEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.addEventListener('mousemove', this.mousemoveHandler);\n\n // Click\n this.selector.addEventListener('click', this.clickHandler);\n }\n }\n\n /**\n * Detaches listeners from required events.\n */\n private detachEvents() {\n window.removeEventListener('resize', this.resizeHandler);\n this.selector.removeEventListener('touchstart', this.touchstartHandler);\n this.selector.removeEventListener('touchend', this.touchendHandler);\n this.selector.removeEventListener('touchmove', this.touchmoveHandler);\n this.selector.removeEventListener('mousedown', this.mousedownHandler);\n this.selector.removeEventListener('mouseup', this.mouseupHandler);\n this.selector.removeEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.removeEventListener('mousemove', this.mousemoveHandler);\n this.selector.removeEventListener('click', this.clickHandler);\n }\n\n /**\n * Builds the markup and attaches listeners to required events.\n */\n private init(): void {\n this.attachEvents();\n\n // hide everything out of selector's boundaries\n this.selector.style.overflow = 'hidden';\n\n // rtl or ltr\n this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr';\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n this.config.onInit.call(this);\n }\n\n\n /**\n * Build a sliderFrame and slide to a current item.\n */\n private buildSliderFrame() {\n const widthItem = this.selectorWidth / this.perPage;\n const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length;\n\n // Create frame and apply styling\n this.sliderFrame = document.createElement('div');\n this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`;\n this.enableTransition();\n\n if (this.config.draggable) {\n this.selector.style.cursor = '-webkit-grab';\n }\n\n // Create a document fragment to put slides into it\n const docFragment = document.createDocumentFragment();\n\n // Loop through the slides, add styling and add them to document fragment\n if (this.config.loop) {\n for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n for (let i = 0; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i] as HTMLElement);\n docFragment.appendChild(element);\n }\n if (this.config.loop) {\n for (let i = 0; i < this.perPage; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n\n // Add fragment to the frame\n this.sliderFrame.appendChild(docFragment);\n\n // Clear selector (just in case something is there) and insert a frame\n this.selector.innerHTML = '';\n this.selector.appendChild(this.sliderFrame);\n\n // Go to currently active slide after initial build\n this.slideToCurrent();\n }\n\n private buildSliderFrameItem(elm: HTMLElement) {\n const elementContainer = document.createElement('div');\n elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left';\n elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`;\n elementContainer.appendChild(elm);\n return elementContainer;\n }\n\n\n /**\n * Determinates slides number accordingly to clients viewport.\n */\n private resolveSlidesNumber() {\n if (typeof this.config.perPage === 'number') {\n this.perPage = this.config.perPage;\n\n } else {\n this.perPage = 1;\n for (const key in this.config.perPage) {\n if (window.innerWidth >= this.config.perPage[key]) {\n this.perPage = this.config.perPage[key];\n }\n }\n }\n }\n\n\n /**\n * Go to previous slide.\n */\n public prev(howManySlides = 1, callback?: () => void) {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide - howManySlides < 0;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide + this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex - howManySlides;\n } else {\n this.currentSlide = this.currentSlide - howManySlides;\n }\n } else {\n this.currentSlide = Math.max(this.currentSlide - howManySlides, 0);\n }\n\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Go to next slide.\n */\n public next(howManySlides = 1, callback?: () => void) {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide - this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex + howManySlides;\n } else {\n this.currentSlide = this.currentSlide + howManySlides;\n }\n } else {\n this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage);\n }\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Disable transition on sliderFrame.\n */\n private disableTransition() {\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n }\n\n\n /**\n * Enable transition on sliderFrame.\n */\n private enableTransition() {\n this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`;\n }\n\n /**\n * Go to slide with particular index\n */\n public goTo(index: number, callback?: () => void) {\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n const beforeChange = this.currentSlide;\n this.currentSlide = this.config.loop ?\n index % this.innerElements.length :\n Math.min(Math.max(index, 0), this.innerElements.length - this.perPage);\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent();\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n /**\n * Moves sliders frame to position of currently active slide\n */\n public slideToCurrent(enableTransition?: boolean) {\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage);\n\n if (enableTransition) {\n // This one is tricky, I know but this is a perfect explanation:\n // https://youtu.be/cCOL7MC4Pl0\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.enableTransition();\n if (this.transformProperty === 'transform') {\n this.sliderFrame.style.transform = `translate3d(${offset}px, 0, 0)`;\n } else {\n this.sliderFrame.style.webkitTransform = `translate3d(${offset}px, 0, 0)`;\n }\n });\n });\n } else {\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`;\n }\n }\n\n\n /**\n * Recalculate drag /swipe event and reposition the frame of a slider\n */\n private updateAfterDrag() {\n const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX);\n const movementDistance = Math.abs(movement);\n const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1;\n\n const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0;\n const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage;\n\n if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.prev(howManySliderToSlide);\n } else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.next(howManySliderToSlide);\n }\n this.slideToCurrent(slideToNegativeClone || slideToPositiveClone);\n }\n\n\n /**\n * When window resizes, resize slider components as well\n */\n private resizeHandler = () => {\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // relcalculate currentSlide\n // prevent hiding items when browser width increases\n if (this.currentSlide + this.perPage > this.innerElements.length) {\n this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage;\n }\n\n this.selectorWidth = this.selector.offsetWidth;\n\n this.buildSliderFrame();\n }\n\n /**\n * Clear drag after touchend and mouseup event\n */\n private clearDrag() {\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: this.drag.preventClick\n };\n }\n\n /**\n * touchstart event handler\n */\n private touchstartHandler = (e: TouchEvent) => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.touches[0].pageX;\n this.drag.startY = e.touches[0].pageY;\n }\n\n /**\n * touchend event handler\n */\n private touchendHandler = (e: TouchEvent) => {\n e.stopPropagation();\n this.pointerDown = false;\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * touchmove event handler\n */\n private touchmoveHandler = (e: TouchEvent) => {\n e.stopPropagation();\n\n if (this.drag.letItGo === null) {\n this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX);\n }\n\n if (this.pointerDown && this.drag.letItGo) {\n e.preventDefault();\n this.drag.endX = e.touches[0].pageX;\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mousedown event handler\n */\n private mousedownHandler = (e: MouseEvent) => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.pageX;\n }\n\n /**\n * mouseup event handler\n */\n private mouseupHandler = (e: MouseEvent) => {\n e.stopPropagation();\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * mousemove event handler\n */\n private mousemoveHandler = (e: MouseEvent) => {\n e.preventDefault();\n if (this.pointerDown) {\n // if dragged element is a link\n // mark preventClick prop as a true\n // to detemine about browser redirection later on\n if ((e.target as HTMLElement).nodeName === 'A') {\n this.drag.preventClick = true;\n }\n\n this.drag.endX = e.pageX;\n this.selector.style.cursor = '-webkit-grabbing';\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mouseleave event handler\n */\n private mouseleaveHandler = (e: MouseEvent) => {\n if (this.pointerDown) {\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.drag.endX = e.pageX;\n this.drag.preventClick = false;\n this.enableTransition();\n this.updateAfterDrag();\n this.clearDrag();\n }\n }\n\n\n /**\n * click event handler\n */\n private clickHandler = (e: Event) => {\n // if the dragged element is a link\n // prevent browsers from folowing the link\n if (this.drag.preventClick) {\n e.preventDefault();\n }\n this.drag.preventClick = false;\n }\n\n\n /**\n * Remove item from carousel.\n */\n public remove(index: number, callback?: () => void) {\n if (index < 0 || index >= this.innerElements.length) {\n throw new Error('Item to remove doesn\\'t exist');\n }\n\n // Shift sliderFrame back by one item when:\n // 1. Item with lower index than currenSlide is removed.\n // 2. Last item is removed.\n const lowerIndex = index < this.currentSlide;\n const lastItem = this.currentSlide + this.perPage - 1 === index;\n\n if (lowerIndex || lastItem) {\n this.currentSlide--;\n }\n\n this.innerElements.splice(index, 1);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n\n /**\n * Insert item to carousel at particular index.\n */\n public insert(item: HTMLElement, index: number, callback?: () => void) {\n if (index < 0 || index > this.innerElements.length + 1) {\n throw new Error('Unable to inset it at this index 😭');\n }\n if (this.innerElements.indexOf(item) !== -1) {\n throw new Error('The same item in a carousel? Really? Nope 😭');\n }\n\n // Avoid shifting content\n const shouldItShift = index <= this.currentSlide && this.innerElements.length;\n this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide;\n\n this.innerElements.splice(index, 0, item);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Prepernd item to carousel.\n */\n public prepend(item: HTMLElement, callback?: () => void) {\n this.insert(item, 0);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Append item to carousel.\n */\n public append(item: HTMLElement, callback?: () => void) {\n this.insert(item, this.innerElements.length + 1);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Removes listeners and optionally restores to initial markup\n */\n public destroy(restoreMarkup = false, callback?: () => void) {\n this.detachEvents();\n\n this.selector.style.cursor = 'auto';\n\n if (restoreMarkup) {\n const slides = document.createDocumentFragment();\n for (let i = 0; i < this.innerElements.length; i++) {\n slides.appendChild(this.innerElements[i]);\n }\n this.selector.innerHTML = '';\n this.selector.appendChild(slides);\n this.selector.removeAttribute('style');\n }\n\n if (callback) {\n callback.call(this);\n }\n }\n\n}\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./src/siema.ts"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Siema","options","resizeHandler","resolveSlidesNumber","currentSlide","perPage","innerElements","length","selectorWidth","selector","offsetWidth","buildSliderFrame","touchstartHandler","e","indexOf","target","nodeName","stopPropagation","pointerDown","drag","startX","touches","pageX","startY","pageY","touchendHandler","enableTransition","endX","updateAfterDrag","clearDrag","touchmoveHandler","letItGo","Math","abs","preventDefault","sliderFrame","style","webkitTransition","config","easing","transition","currentOffset","loop","dragOffset","offset","rtl","transformProperty","mousedownHandler","mouseupHandler","cursor","mousemoveHandler","preventClick","mouseleaveHandler","clickHandler","mergeSettings","document","querySelector","Error","Array","from","children","startIndex","max","min","webkitOrNot","init","defaultOptions","duration","draggable","multipleDrag","threshold","onInit","Function","onChange","assign","documentElement","transform","window","addEventListener","removeEventListener","attachEvents","overflow","direction","widthItem","itemsToBuild","createElement","width","docFragment","createDocumentFragment","element","buildSliderFrameItem","cloneNode","appendChild","innerHTML","slideToCurrent","elm","elementContainer","cssFloat","innerWidth","howManySlides","callback","beforeChange","disableTransition","mirrorSlideIndex","moveTo","dragDistance","index","requestAnimationFrame","webkitTransform","movement","movementDistance","howManySliderToSlide","ceil","slideToNegativeClone","slideToPositiveClone","prev","next","lowerIndex","lastItem","splice","item","shouldItShift","insert","restoreMarkup","detachEvents","slides","removeAttribute"],"mappings":"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","file":"siema.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"siema\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"siema\"] = factory();\n\telse\n\t\troot[\"siema\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","export interface SiemaOptions {\n selector: string;\n duration: number;\n easing: string;\n perPage: number|{[width: number]: number};\n startIndex: number;\n draggable: boolean;\n multipleDrag: boolean;\n threshold: number;\n loop: boolean;\n rtl: boolean;\n onInit?: () => void;\n onChange?: () => void;\n}\n\n/**\n * Hi :-) This is a class representing a Siema.\n */\nexport default class Siema {\n\n /** Config used for this instace of Siema */\n public config: SiemaOptions;\n\n /** Variable to track if mouse is pressed */\n private pointerDown: boolean;\n\n /** Variable to track mouse track */\n private drag: {\n startX: number;\n endX: number;\n startY: number;\n letItGo: boolean;\n preventClick: boolean;\n };\n\n /** Reference to the Siema element */\n public selector: HTMLElement;\n\n /** The width of the Siema element */\n private selectorWidth: number;\n\n /** How many items to show per page */\n private perPage: number;\n\n /** Variable to keep track of the actual items */\n private innerElements: Element[];\n\n /** Zero based index of the current slide */\n private currentSlide: number;\n\n /** Variable to keeo track of wether to use standard or webkit compaotible transforms */\n private transformProperty: 'transform'|'webkitTransform';\n\n /** Reference to the the sliding wrapper for all items */\n private sliderFrame: HTMLDivElement;\n\n /**\n * Create a Siema.\n */\n constructor(options: Partial) {\n\n // Merge defaults with user's settings\n this.config = Siema.mergeSettings(options);\n\n // Resolve selector's type\n this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\n // Early throw if selector doesn't exists\n if (this.selector === null) {\n throw new Error('Something is wrong with your selector');\n }\n\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // Create global references\n this.selectorWidth = this.selector.offsetWidth;\n this.innerElements = Array.from(this.selector.children);\n this.currentSlide = this.config.loop ?\n this.config.startIndex % this.innerElements.length :\n Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage));\n this.transformProperty = Siema.webkitOrNot();\n\n // Build markup and apply required styling to elements\n this.init();\n }\n\n /**\n * Merge default settings with custom ones.\n */\n static mergeSettings(options: Partial): SiemaOptions {\n const defaultOptions: SiemaOptions = {\n selector: '.siema',\n duration: 200,\n easing: 'ease-out',\n perPage: 1,\n startIndex: 0,\n draggable: true,\n multipleDrag: true,\n threshold: 20,\n loop: false,\n rtl: false,\n onInit: Function,\n onChange: Function,\n };\n\n return Object.assign(defaultOptions, options);\n }\n\n /**\n * Determine if browser supports unprefixed transform property.\n * Google Chrome since version 26 supports prefix-less transform\n */\n static webkitOrNot(): 'transform'|'webkitTransform' {\n const style = document.documentElement.style;\n if (typeof style.transform === 'string') {\n return 'transform';\n }\n return 'webkitTransform';\n }\n\n /**\n * Attaches listeners to required events.\n */\n private attachEvents(): void {\n // Resize element on window resize\n window.addEventListener('resize', this.resizeHandler);\n\n // If element is draggable / swipable, add event handlers\n if (this.config.draggable) {\n // Keep track pointer hold and dragging distance\n this.pointerDown = false;\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: false,\n };\n\n // Touch events\n this.selector.addEventListener('touchstart', this.touchstartHandler);\n this.selector.addEventListener('touchend', this.touchendHandler);\n this.selector.addEventListener('touchmove', this.touchmoveHandler);\n\n // Mouse events\n this.selector.addEventListener('mousedown', this.mousedownHandler);\n this.selector.addEventListener('mouseup', this.mouseupHandler);\n this.selector.addEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.addEventListener('mousemove', this.mousemoveHandler);\n\n // Click\n this.selector.addEventListener('click', this.clickHandler);\n }\n }\n\n /**\n * Detaches listeners from required events.\n */\n private detachEvents(): void {\n window.removeEventListener('resize', this.resizeHandler);\n this.selector.removeEventListener('touchstart', this.touchstartHandler);\n this.selector.removeEventListener('touchend', this.touchendHandler);\n this.selector.removeEventListener('touchmove', this.touchmoveHandler);\n this.selector.removeEventListener('mousedown', this.mousedownHandler);\n this.selector.removeEventListener('mouseup', this.mouseupHandler);\n this.selector.removeEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.removeEventListener('mousemove', this.mousemoveHandler);\n this.selector.removeEventListener('click', this.clickHandler);\n }\n\n /**\n * Builds the markup and attaches listeners to required events.\n */\n private init(): void {\n this.attachEvents();\n\n // hide everything out of selector's boundaries\n this.selector.style.overflow = 'hidden';\n\n // rtl or ltr\n this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr';\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n this.config.onInit.call(this);\n }\n\n /**\n * Build a sliderFrame and slide to a current item.\n */\n private buildSliderFrame(): void {\n const widthItem = this.selectorWidth / this.perPage;\n const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length;\n\n // Create frame and apply styling\n this.sliderFrame = document.createElement('div');\n this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`;\n this.enableTransition();\n\n if (this.config.draggable) {\n this.selector.style.cursor = '-webkit-grab';\n }\n\n // Create a document fragment to put slides into it\n const docFragment = document.createDocumentFragment();\n\n // Loop through the slides, add styling and add them to document fragment\n if (this.config.loop) {\n for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n for (let i = 0; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i] as HTMLElement);\n docFragment.appendChild(element);\n }\n if (this.config.loop) {\n for (let i = 0; i < this.perPage; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n\n // Add fragment to the frame\n this.sliderFrame.appendChild(docFragment);\n\n // Clear selector (just in case something is there) and insert a frame\n this.selector.innerHTML = '';\n this.selector.appendChild(this.sliderFrame);\n\n // Go to currently active slide after initial build\n this.slideToCurrent();\n }\n\n private buildSliderFrameItem(elm: HTMLElement): HTMLDivElement {\n const elementContainer = document.createElement('div');\n elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left';\n elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`;\n elementContainer.appendChild(elm);\n return elementContainer;\n }\n\n /**\n * Determinates slides number accordingly to clients viewport.\n */\n private resolveSlidesNumber(): void {\n if (typeof this.config.perPage === 'number') {\n this.perPage = this.config.perPage;\n\n } else {\n this.perPage = 1;\n for (const key in this.config.perPage) {\n if (window.innerWidth >= this.config.perPage[key]) {\n this.perPage = this.config.perPage[key];\n }\n }\n }\n }\n\n /**\n * Go to previous slide.\n */\n public prev(howManySlides = 1, callback?: () => void): void {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide - howManySlides < 0;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide + this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex - howManySlides;\n } else {\n this.currentSlide = this.currentSlide - howManySlides;\n }\n } else {\n this.currentSlide = Math.max(this.currentSlide - howManySlides, 0);\n }\n\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Go to next slide.\n */\n public next(howManySlides = 1, callback?: () => void): void {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide - this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex + howManySlides;\n } else {\n this.currentSlide = this.currentSlide + howManySlides;\n }\n } else {\n this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage);\n }\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Disable transition on sliderFrame.\n */\n private disableTransition(): void {\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n }\n\n\n /**\n * Enable transition on sliderFrame.\n */\n private enableTransition(): void {\n this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`;\n }\n\n /**\n * Go to slide with particular index\n */\n public goTo(index: number, callback?: () => void): void {\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n const beforeChange = this.currentSlide;\n this.currentSlide = this.config.loop ?\n index % this.innerElements.length :\n Math.min(Math.max(index, 0), this.innerElements.length - this.perPage);\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent();\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n /**\n * Moves sliders frame to position of currently active slide\n */\n public slideToCurrent(enableTransition?: boolean): void {\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage);\n\n if (enableTransition) {\n // This one is tricky, I know but this is a perfect explanation:\n // https://youtu.be/cCOL7MC4Pl0\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.enableTransition();\n if (this.transformProperty === 'transform') {\n this.sliderFrame.style.transform = `translate3d(${offset}px, 0, 0)`;\n } else {\n this.sliderFrame.style.webkitTransform = `translate3d(${offset}px, 0, 0)`;\n }\n });\n });\n } else {\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`;\n }\n }\n\n\n /**\n * Recalculate drag /swipe event and reposition the frame of a slider\n */\n private updateAfterDrag(): void {\n const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX);\n const movementDistance = Math.abs(movement);\n const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1;\n\n const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0;\n const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage;\n\n if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.prev(howManySliderToSlide);\n } else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.next(howManySliderToSlide);\n }\n this.slideToCurrent(slideToNegativeClone || slideToPositiveClone);\n }\n\n\n /**\n * When window resizes, resize slider components as well\n */\n private resizeHandler = (): void => {\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // relcalculate currentSlide\n // prevent hiding items when browser width increases\n if (this.currentSlide + this.perPage > this.innerElements.length) {\n this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage;\n }\n\n this.selectorWidth = this.selector.offsetWidth;\n\n this.buildSliderFrame();\n }\n\n /**\n * Clear drag after touchend and mouseup event\n */\n private clearDrag(): void {\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: this.drag.preventClick\n };\n }\n\n /**\n * touchstart event handler\n */\n private touchstartHandler = (e: TouchEvent): void => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.touches[0].pageX;\n this.drag.startY = e.touches[0].pageY;\n }\n\n /**\n * touchend event handler\n */\n private touchendHandler = (e: TouchEvent): void => {\n e.stopPropagation();\n this.pointerDown = false;\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * touchmove event handler\n */\n private touchmoveHandler = (e: TouchEvent): void=> {\n e.stopPropagation();\n\n if (this.drag.letItGo === null) {\n this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX);\n }\n\n if (this.pointerDown && this.drag.letItGo) {\n e.preventDefault();\n this.drag.endX = e.touches[0].pageX;\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mousedown event handler\n */\n private mousedownHandler = (e: MouseEvent): void => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.pageX;\n }\n\n /**\n * mouseup event handler\n */\n private mouseupHandler = (e: MouseEvent): void => {\n e.stopPropagation();\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * mousemove event handler\n */\n private mousemoveHandler = (e: MouseEvent): void => {\n e.preventDefault();\n if (this.pointerDown) {\n // if dragged element is a link\n // mark preventClick prop as a true\n // to detemine about browser redirection later on\n if ((e.target as HTMLElement).nodeName === 'A') {\n this.drag.preventClick = true;\n }\n\n this.drag.endX = e.pageX;\n this.selector.style.cursor = '-webkit-grabbing';\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mouseleave event handler\n */\n private mouseleaveHandler = (e: MouseEvent): void => {\n if (this.pointerDown) {\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.drag.endX = e.pageX;\n this.drag.preventClick = false;\n this.enableTransition();\n this.updateAfterDrag();\n this.clearDrag();\n }\n }\n\n\n /**\n * click event handler\n */\n private clickHandler = (e: Event): void => {\n // if the dragged element is a link\n // prevent browsers from folowing the link\n if (this.drag.preventClick) {\n e.preventDefault();\n }\n this.drag.preventClick = false;\n }\n\n\n /**\n * Remove item from carousel.\n */\n public remove(index: number, callback?: () => void): void {\n if (index < 0 || index >= this.innerElements.length) {\n throw new Error('Item to remove doesn\\'t exist');\n }\n\n // Shift sliderFrame back by one item when:\n // 1. Item with lower index than currenSlide is removed.\n // 2. Last item is removed.\n const lowerIndex = index < this.currentSlide;\n const lastItem = this.currentSlide + this.perPage - 1 === index;\n\n if (lowerIndex || lastItem) {\n this.currentSlide--;\n }\n\n this.innerElements.splice(index, 1);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n\n /**\n * Insert item to carousel at particular index.\n */\n public insert(item: HTMLElement, index: number, callback?: () => void): void {\n if (index < 0 || index > this.innerElements.length + 1) {\n throw new Error('Unable to inset it at this index 😭');\n }\n if (this.innerElements.indexOf(item) !== -1) {\n throw new Error('The same item in a carousel? Really? Nope 😭');\n }\n\n // Avoid shifting content\n const shouldItShift = index <= this.currentSlide && this.innerElements.length;\n this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide;\n\n this.innerElements.splice(index, 0, item);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Prepernd item to carousel.\n */\n public prepend(item: HTMLElement, callback?: () => void): void {\n this.insert(item, 0);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Append item to carousel.\n */\n public append(item: HTMLElement, callback?: () => void): void {\n this.insert(item, this.innerElements.length + 1);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Removes listeners and optionally restores to initial markup\n */\n public destroy(restoreMarkup = false, callback?: () => void): void {\n this.detachEvents();\n\n this.selector.style.cursor = 'auto';\n\n if (restoreMarkup) {\n const slides = document.createDocumentFragment();\n for (let i = 0; i < this.innerElements.length; i++) {\n slides.appendChild(this.innerElements[i]);\n }\n this.selector.innerHTML = '';\n this.selector.appendChild(slides);\n this.selector.removeAttribute('style');\n }\n\n if (callback) {\n callback.call(this);\n }\n }\n\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e81fb7f..7261a24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,90 @@ "js-tokens": "^4.0.0" } }, + "@types/eslint-visitor-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", + "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==" + }, + "@types/json-schema": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz", + "integrity": "sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==" + }, + "@typescript-eslint/eslint-plugin": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.16.0.tgz", + "integrity": "sha512-TKWbeFAKRPrvKiR9GNxErQ8sELKqg1ZvXi6uho07mcKShBnCnqNpDQWP01FEvWKf0bxM2g7uQEI5MNjSNqvUpQ==", + "requires": { + "@typescript-eslint/experimental-utils": "2.16.0", + "eslint-utils": "^1.4.3", + "functional-red-black-tree": "^1.0.1", + "regexpp": "^3.0.0", + "tsutils": "^3.17.1" + }, + "dependencies": { + "regexpp": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.0.0.tgz", + "integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g==" + } + } + }, + "@typescript-eslint/experimental-utils": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.16.0.tgz", + "integrity": "sha512-bXTmAztXpqxliDKZgvWkl+5dHeRN+jqXVZ16peKKFzSXVzT6mz8kgBpHiVzEKO2NZ8OCU7dG61K9sRS/SkUUFQ==", + "requires": { + "@types/json-schema": "^7.0.3", + "@typescript-eslint/typescript-estree": "2.16.0", + "eslint-scope": "^5.0.0" + } + }, + "@typescript-eslint/parser": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.16.0.tgz", + "integrity": "sha512-+w8dMaYETM9v6il1yYYkApMSiwgnqXWJbXrA94LAWN603vXHACsZTirJduyeBOJjA9wT6xuXe5zZ1iCUzoxCfw==", + "requires": { + "@types/eslint-visitor-keys": "^1.0.0", + "@typescript-eslint/experimental-utils": "2.16.0", + "@typescript-eslint/typescript-estree": "2.16.0", + "eslint-visitor-keys": "^1.1.0" + } + }, + "@typescript-eslint/typescript-estree": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.16.0.tgz", + "integrity": "sha512-hyrCYjFHISos68Bk5KjUAXw0pP/455qq9nxqB1KkT67Pxjcfw+r6Yhcmqnp8etFL45UexCHUMrADHH7dI/m2WQ==", + "requires": { + "debug": "^4.1.1", + "eslint-visitor-keys": "^1.1.0", + "glob": "^7.1.6", + "is-glob": "^4.0.1", + "lodash": "^4.17.15", + "semver": "^6.3.0", + "tsutils": "^3.17.1" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "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==" + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, "@webassemblyjs/ast": { "version": "1.8.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", @@ -218,6 +302,12 @@ "integrity": "sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==", "dev": true }, + "acorn-jsx": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.1.0.tgz", + "integrity": "sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==", + "dev": true + }, "ajv": { "version": "6.10.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", @@ -242,6 +332,15 @@ "integrity": "sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==", "dev": true }, + "ansi-escapes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.0.tgz", + "integrity": "sha512-EiYhwo0v255HUL6eDyuLrXEkTi7WwVCLAw+SeOQ7M7qdun1z1pum4DEm/nuqIVbPvi9RPPc9k9LbyBv6H0DwVg==", + "dev": true, + "requires": { + "type-fest": "^0.8.1" + } + }, "ansi-regex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", @@ -361,6 +460,12 @@ "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-each": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", @@ -392,8 +497,7 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "base": { "version": "0.11.2", @@ -469,9 +573,9 @@ "dev": true }, "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", + "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": { @@ -484,7 +588,6 @@ "version": "1.1.8", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -619,12 +722,6 @@ "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", "dev": true }, - "builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true - }, "builtin-status-codes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", @@ -654,20 +751,6 @@ "y18n": "^4.0.0" }, "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" - } - }, "rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", @@ -696,6 +779,12 @@ "unset-value": "^1.0.0" } }, + "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", @@ -724,6 +813,12 @@ } } }, + "chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "dev": true + }, "chokidar": { "version": "2.1.8", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", @@ -792,6 +887,21 @@ } } }, + "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-width": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", + "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", + "dev": true + }, "cliui": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", @@ -849,15 +959,15 @@ "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 + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "concat-stream": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz", - "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", + "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" @@ -889,20 +999,6 @@ "run-queue": "^1.0.0" }, "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" - } - }, "rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", @@ -1032,6 +1128,12 @@ "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", "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 + }, "define-properties": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", @@ -1098,12 +1200,6 @@ "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", "dev": true }, - "diff": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true - }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -1115,6 +1211,15 @@ "randombytes": "^2.0.0" } }, + "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", @@ -1239,17 +1344,143 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, + "eslint": { + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", + "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "ajv": "^6.10.0", + "chalk": "^2.1.0", + "cross-spawn": "^6.0.5", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "eslint-scope": "^5.0.0", + "eslint-utils": "^1.4.3", + "eslint-visitor-keys": "^1.1.0", + "espree": "^6.1.2", + "esquery": "^1.0.1", + "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", + "inquirer": "^7.0.0", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.14", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.3", + "progress": "^2.0.0", + "regexpp": "^2.0.1", + "semver": "^6.1.2", + "strip-ansi": "^5.2.0", + "strip-json-comments": "^3.0.1", + "table": "^5.2.3", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.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" + } + }, + "glob-parent": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", + "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", + "dev": true, + "requires": { + "is-glob": "^4.0.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 + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "eslint-scope": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz", + "integrity": "sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw==", + "requires": { + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, + "eslint-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", + "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", + "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==" + }, + "espree": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-6.1.2.tgz", + "integrity": "sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==", + "dev": true, + "requires": { + "acorn": "^7.1.0", + "acorn-jsx": "^5.1.0", + "eslint-visitor-keys": "^1.1.0" + }, + "dependencies": { + "acorn": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz", + "integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==", + "dev": true + } + } + }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, + "esquery": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", + "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", + "dev": true, + "requires": { + "estraverse": "^4.0.0" + } + }, "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" } @@ -1257,8 +1488,7 @@ "estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" }, "esutils": { "version": "2.0.3", @@ -1379,6 +1609,17 @@ } } }, + "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", @@ -1456,12 +1697,36 @@ "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 + }, "figgy-pudding": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==", "dev": true }, + "figures": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.1.0.tgz", + "integrity": "sha512-ravh8VRXqHuMvZt/d8GblBeqDMkdJMBdv/2KntFH+ra5MXkO7nxNKpzQ3n6QD/2da1kH0aWmNISdvhM7gl2gVg==", + "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" + } + }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -1517,6 +1782,34 @@ "resolve-dir": "^1.0.1" } }, + "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.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", + "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", + "dev": true + }, "flush-write-stream": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", @@ -1567,8 +1860,7 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "fsevents": { "version": "1.2.9", @@ -2124,6 +2416,11 @@ "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=" + }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -2149,7 +2446,6 @@ "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", @@ -2215,6 +2511,15 @@ "which": "^1.2.14" } }, + "globals": { + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", + "integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", + "dev": true, + "requires": { + "type-fest": "^0.8.1" + } + }, "graceful-fs": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", @@ -2311,6 +2616,15 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", "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", @@ -2323,6 +2637,30 @@ "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" + }, + "dependencies": { + "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 + } + } + }, "import-local": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", @@ -2349,7 +2687,6 @@ "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" @@ -2358,8 +2695,7 @@ "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" }, "ini": { "version": "1.3.5", @@ -2367,6 +2703,69 @@ "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true }, + "inquirer": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.3.tgz", + "integrity": "sha512-+OiOVeVydu4hnCGLCSX+wedovR/Yzskv9BFqUNNKq9uU2qg7LCcCo3R86S2E7WLo0y/x2pnEZfZe1CoYnORUAw==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "chalk": "^2.4.2", + "cli-cursor": "^3.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.15", + "mute-stream": "0.0.8", + "run-async": "^2.2.0", + "rxjs": "^6.5.3", + "string-width": "^4.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" + }, + "dependencies": { + "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 + }, + "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" + }, + "dependencies": { + "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" + } + } + } + } + } + }, "interpret": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", @@ -2462,8 +2861,7 @@ "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 + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" }, "is-fullwidth-code-point": { "version": "2.0.0", @@ -2475,7 +2873,6 @@ "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" } @@ -2509,6 +2906,12 @@ "isobject": "^3.0.1" } }, + "is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", + "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", + "dev": true + }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -2573,6 +2976,12 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "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 + }, "json5": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", @@ -2597,6 +3006,16 @@ "invert-kv": "^2.0.0" } }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, "loader-runner": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", @@ -2627,8 +3046,7 @@ "lodash": { "version": "4.17.15", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" }, "log-symbols": { "version": "2.2.0", @@ -2783,7 +3201,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -2864,20 +3281,6 @@ "run-queue": "^1.0.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" - } - }, "rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", @@ -2895,6 +3298,12 @@ "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", @@ -2921,6 +3330,12 @@ "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.1", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", @@ -3070,11 +3485,33 @@ "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.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", + "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, "os-browserify": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", @@ -3092,6 +3529,12 @@ "mem": "^4.0.0" } }, + "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-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", @@ -3151,6 +3594,15 @@ "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", @@ -3198,8 +3650,7 @@ "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 + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-key": { "version": "2.0.1", @@ -3207,12 +3658,6 @@ "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 - }, "pbkdf2": { "version": "3.0.17", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", @@ -3247,6 +3692,12 @@ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", "dev": true }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", @@ -3259,6 +3710,12 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "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", @@ -3391,6 +3848,12 @@ "safe-regex": "^1.1.0" } }, + "regexpp": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", + "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "dev": true + }, "remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", @@ -3421,15 +3884,6 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, - "resolve": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", - "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } - }, "resolve-cwd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", @@ -3474,6 +3928,16 @@ "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", "dev": true }, + "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", @@ -3515,6 +3979,15 @@ "inherits": "^2.0.1" } }, + "run-async": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", + "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", + "dev": true, + "requires": { + "is-promise": "^2.1.0" + } + }, "run-queue": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", @@ -3524,6 +3997,15 @@ "aproba": "^1.1.1" } }, + "rxjs": { + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.4.tgz", + "integrity": "sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==", + "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", @@ -3539,6 +4021,12 @@ "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": "1.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", @@ -3557,9 +4045,9 @@ "dev": true }, "serialize-javascript": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz", - "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz", + "integrity": "sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==", "dev": true }, "set-blocking": { @@ -3628,6 +4116,17 @@ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "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", @@ -3863,9 +4362,9 @@ } }, "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "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": { @@ -3903,6 +4402,12 @@ "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "dev": true }, + "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": "6.1.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", @@ -3912,6 +4417,18 @@ "has-flag": "^3.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", @@ -3919,9 +4436,9 @@ "dev": true }, "terser": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.4.0.tgz", - "integrity": "sha512-oDG16n2WKm27JO8h4y/w3iqBGAOSCtq7k8dRmrn4Wf9NouL0b2WpMHGChFGZq4nFAQy1FsNJrVQHfurXOSTmOA==", + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.3.tgz", + "integrity": "sha512-Lw+ieAXmY69d09IIc/yqeBqXpEQIpDGZqT34ui1QWXIUpR2RjbqEkT8X7Lgex19hslSqcWM5iMN2kM11eMsESQ==", "dev": true, "requires": { "commander": "^2.20.0", @@ -3938,16 +4455,16 @@ } }, "terser-webpack-plugin": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz", - "integrity": "sha512-ZXmmfiwtCLfz8WKZyYUuuHf3dMYEjg8NrjHMb0JqHVHVOSkzp3cW2/XG1fP3tRhqEqSzMwzzRQGtAPbs4Cncxg==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz", + "integrity": "sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==", "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": "^1.7.0", + "serialize-javascript": "^2.1.2", "source-map": "^0.6.1", "terser": "^4.1.2", "webpack-sources": "^1.4.0", @@ -3962,6 +4479,18 @@ } } }, + "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", @@ -3981,6 +4510,15 @@ "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", @@ -4032,35 +4570,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true - }, - "tslint": { - "version": "5.20.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz", - "integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^4.0.1", - "glob": "^7.1.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.8.0", - "tsutils": "^2.29.0" - } + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tsutils": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", - "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, + "version": "3.17.1", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.17.1.tgz", + "integrity": "sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g==", "requires": { "tslib": "^1.8.1" } @@ -4077,6 +4592,21 @@ "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", "dev": true }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + }, + "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", @@ -4368,6 +4898,12 @@ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, + "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", @@ -4391,8 +4927,16 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "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" + } }, "xtend": { "version": "4.0.2", diff --git a/package.json b/package.json index 4652d2c..97cb80a 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,11 @@ "definition": "dist/siema.d.ts" }, "devDependencies": { + "@typescript-eslint/eslint-plugin": "2.16.0", + "@typescript-eslint/parser": "2.16.0", "awesome-typescript-loader": "5.2.1", + "eslint": "6.8.0", "rimraf": "3.0.0", - "tslint": "5.20.1", "typescript": "3.7.2", "webpack": "4.41.2", "webpack-cli": "3.3.10" diff --git a/src/siema.ts b/src/siema.ts index e56bf80..6d29270 100644 --- a/src/siema.ts +++ b/src/siema.ts @@ -12,6 +12,7 @@ export interface SiemaOptions { onInit?: () => void; onChange?: () => void; } + /** * Hi :-) This is a class representing a Siema. */ @@ -25,11 +26,11 @@ export default class Siema { /** Variable to track mouse track */ private drag: { - startX: number, - endX: number, - startY: number, - letItGo: boolean, - preventClick: boolean + startX: number; + endX: number; + startY: number; + letItGo: boolean; + preventClick: boolean; }; /** Reference to the Siema element */ @@ -88,7 +89,7 @@ export default class Siema { * Merge default settings with custom ones. */ static mergeSettings(options: Partial): SiemaOptions { - let defaultOptions: SiemaOptions = { + const defaultOptions: SiemaOptions = { selector: '.siema', duration: 200, easing: 'ease-out', @@ -110,7 +111,7 @@ export default class Siema { * Determine if browser supports unprefixed transform property. * Google Chrome since version 26 supports prefix-less transform */ - static webkitOrNot() { + static webkitOrNot(): 'transform'|'webkitTransform' { const style = document.documentElement.style; if (typeof style.transform === 'string') { return 'transform'; @@ -121,7 +122,7 @@ export default class Siema { /** * Attaches listeners to required events. */ - private attachEvents() { + private attachEvents(): void { // Resize element on window resize window.addEventListener('resize', this.resizeHandler); @@ -156,7 +157,7 @@ export default class Siema { /** * Detaches listeners from required events. */ - private detachEvents() { + private detachEvents(): void { window.removeEventListener('resize', this.resizeHandler); this.selector.removeEventListener('touchstart', this.touchstartHandler); this.selector.removeEventListener('touchend', this.touchendHandler); @@ -186,11 +187,10 @@ export default class Siema { this.config.onInit.call(this); } - /** * Build a sliderFrame and slide to a current item. */ - private buildSliderFrame() { + private buildSliderFrame(): void { const widthItem = this.selectorWidth / this.perPage; const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length; @@ -235,7 +235,7 @@ export default class Siema { this.slideToCurrent(); } - private buildSliderFrameItem(elm: HTMLElement) { + private buildSliderFrameItem(elm: HTMLElement): HTMLDivElement { const elementContainer = document.createElement('div'); elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left'; elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`; @@ -243,11 +243,10 @@ export default class Siema { return elementContainer; } - /** * Determinates slides number accordingly to clients viewport. */ - private resolveSlidesNumber() { + private resolveSlidesNumber(): void { if (typeof this.config.perPage === 'number') { this.perPage = this.config.perPage; @@ -261,11 +260,10 @@ export default class Siema { } } - /** * Go to previous slide. */ - public prev(howManySlides = 1, callback?: () => void) { + public prev(howManySlides = 1, callback?: () => void): void { // early return when there is nothing to slide if (this.innerElements.length <= this.perPage) { return; @@ -306,7 +304,7 @@ export default class Siema { /** * Go to next slide. */ - public next(howManySlides = 1, callback?: () => void) { + public next(howManySlides = 1, callback?: () => void): void { // early return when there is nothing to slide if (this.innerElements.length <= this.perPage) { return; @@ -346,7 +344,7 @@ export default class Siema { /** * Disable transition on sliderFrame. */ - private disableTransition() { + private disableTransition(): void { this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`; this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`; } @@ -355,7 +353,7 @@ export default class Siema { /** * Enable transition on sliderFrame. */ - private enableTransition() { + private enableTransition(): void { this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`; this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`; } @@ -363,7 +361,7 @@ export default class Siema { /** * Go to slide with particular index */ - public goTo(index: number, callback?: () => void) { + public goTo(index: number, callback?: () => void): void { if (this.innerElements.length <= this.perPage) { return; } @@ -383,7 +381,7 @@ export default class Siema { /** * Moves sliders frame to position of currently active slide */ - public slideToCurrent(enableTransition?: boolean) { + public slideToCurrent(enableTransition?: boolean): void { const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide; const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage); @@ -409,7 +407,7 @@ export default class Siema { /** * Recalculate drag /swipe event and reposition the frame of a slider */ - private updateAfterDrag() { + private updateAfterDrag(): void { const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX); const movementDistance = Math.abs(movement); const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1; @@ -429,7 +427,7 @@ export default class Siema { /** * When window resizes, resize slider components as well */ - private resizeHandler = () => { + private resizeHandler = (): void => { // update perPage number dependable of user value this.resolveSlidesNumber(); @@ -447,7 +445,7 @@ export default class Siema { /** * Clear drag after touchend and mouseup event */ - private clearDrag() { + private clearDrag(): void { this.drag = { startX: 0, endX: 0, @@ -460,7 +458,7 @@ export default class Siema { /** * touchstart event handler */ - private touchstartHandler = (e: TouchEvent) => { + private touchstartHandler = (e: TouchEvent): void => { // Prevent dragging / swiping on inputs, selects and textareas const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1; if (ignoreSiema) { @@ -476,7 +474,7 @@ export default class Siema { /** * touchend event handler */ - private touchendHandler = (e: TouchEvent) => { + private touchendHandler = (e: TouchEvent): void => { e.stopPropagation(); this.pointerDown = false; this.enableTransition(); @@ -489,7 +487,7 @@ export default class Siema { /** * touchmove event handler */ - private touchmoveHandler = (e: TouchEvent) => { + private touchmoveHandler = (e: TouchEvent): void=> { e.stopPropagation(); if (this.drag.letItGo === null) { @@ -513,7 +511,7 @@ export default class Siema { /** * mousedown event handler */ - private mousedownHandler = (e: MouseEvent) => { + private mousedownHandler = (e: MouseEvent): void => { // Prevent dragging / swiping on inputs, selects and textareas const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1; if (ignoreSiema) { @@ -529,7 +527,7 @@ export default class Siema { /** * mouseup event handler */ - private mouseupHandler = (e: MouseEvent) => { + private mouseupHandler = (e: MouseEvent): void => { e.stopPropagation(); this.pointerDown = false; this.selector.style.cursor = '-webkit-grab'; @@ -543,7 +541,7 @@ export default class Siema { /** * mousemove event handler */ - private mousemoveHandler = (e: MouseEvent) => { + private mousemoveHandler = (e: MouseEvent): void => { e.preventDefault(); if (this.pointerDown) { // if dragged element is a link @@ -569,7 +567,7 @@ export default class Siema { /** * mouseleave event handler */ - private mouseleaveHandler = (e: MouseEvent) => { + private mouseleaveHandler = (e: MouseEvent): void => { if (this.pointerDown) { this.pointerDown = false; this.selector.style.cursor = '-webkit-grab'; @@ -585,7 +583,7 @@ export default class Siema { /** * click event handler */ - private clickHandler = (e: Event) => { + private clickHandler = (e: Event): void => { // if the dragged element is a link // prevent browsers from folowing the link if (this.drag.preventClick) { @@ -598,7 +596,7 @@ export default class Siema { /** * Remove item from carousel. */ - public remove(index: number, callback?: () => void) { + public remove(index: number, callback?: () => void): void { if (index < 0 || index >= this.innerElements.length) { throw new Error('Item to remove doesn\'t exist'); } @@ -627,7 +625,7 @@ export default class Siema { /** * Insert item to carousel at particular index. */ - public insert(item: HTMLElement, index: number, callback?: () => void) { + public insert(item: HTMLElement, index: number, callback?: () => void): void { if (index < 0 || index > this.innerElements.length + 1) { throw new Error('Unable to inset it at this index 😭'); } @@ -652,7 +650,7 @@ export default class Siema { /** * Prepernd item to carousel. */ - public prepend(item: HTMLElement, callback?: () => void) { + public prepend(item: HTMLElement, callback?: () => void): void { this.insert(item, 0); if (callback) { callback.call(this); @@ -662,7 +660,7 @@ export default class Siema { /** * Append item to carousel. */ - public append(item: HTMLElement, callback?: () => void) { + public append(item: HTMLElement, callback?: () => void): void { this.insert(item, this.innerElements.length + 1); if (callback) { callback.call(this); @@ -672,7 +670,7 @@ export default class Siema { /** * Removes listeners and optionally restores to initial markup */ - public destroy(restoreMarkup = false, callback?: () => void) { + public destroy(restoreMarkup = false, callback?: () => void): void { this.detachEvents(); this.selector.style.cursor = 'auto'; diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 819d3c0..0000000 --- a/tslint.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "rules": { - "class-name": true, - "curly": false, - "eofline": true, - "indent": [true, "spaces"], - "max-line-length": [false, 140], // true - "member-ordering": [ - true, - { - "order": [ - "public-before-private", - "static-before-instance", - "variables-before-functions" - ] - } - ], - "no-arg": true, - "no-construct": true, - "no-duplicate-variable": true, - "no-empty": true, - "no-eval": true, - "no-trailing-whitespace": true, - "no-unused-expression": true, - "no-unused-variable": [true, {"ignore-pattern": "^_"} ], - "one-line": [true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" - ], - "quotemark": [true, "single"], - "semicolon": [true, "always"], - "trailing-comma": [false], - "triple-equals": false, // true - "variable-name": false, - - "directive-selector": [true, "attribute", [], "camelCase"], - "component-selector": [true, "element", [], "kebab-case"], - "use-input-property-decorator": true, - "use-output-property-decorator": true, - "use-host-property-decorator": true, - "no-input-rename": true, - "no-output-rename": true, - "use-life-cycle-interface": true, - "use-pipe-transform-interface": true, - "component-class-suffix": true, - "directive-class-suffix": true, - "import-destructuring-spacing": true, - "templates-use-public": true, - "no-access-missing-member": true, - "invoke-injectable": true - } -} From 5cc1d1282c6f2e874692e834a7e60e627edc18ca Mon Sep 17 00:00:00 2001 From: sqwk Date: Wed, 30 Sep 2020 17:39:49 +0200 Subject: [PATCH 4/5] fix: Update Types --- dist/siema.d.ts | 2 +- src/siema.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/siema.d.ts b/dist/siema.d.ts index dc81abd..8885d03 100644 --- a/dist/siema.d.ts +++ b/dist/siema.d.ts @@ -1,5 +1,5 @@ export interface SiemaOptions { - selector: string; + selector: HTMLElement | string; duration: number; easing: string; perPage: number | { diff --git a/src/siema.ts b/src/siema.ts index 6d29270..47ddabd 100644 --- a/src/siema.ts +++ b/src/siema.ts @@ -1,5 +1,5 @@ export interface SiemaOptions { - selector: string; + selector: HTMLElement|string; duration: number; easing: string; perPage: number|{[width: number]: number}; From 7aaffc43329729b5611c198c567e676a46c443d3 Mon Sep 17 00:00:00 2001 From: sqwk Date: Wed, 30 Sep 2020 17:40:17 +0200 Subject: [PATCH 5/5] chore: Update Dependencies --- dist/siema.js | 2 +- dist/siema.js.map | 2 +- package-lock.json | 2927 ++++++++++++++++++++++----------------------- package.json | 16 +- 4 files changed, 1452 insertions(+), 1495 deletions(-) diff --git a/dist/siema.js b/dist/siema.js index 7586e40..334e920 100644 --- a/dist/siema.js +++ b/dist/siema.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("siema",[],t):"object"==typeof exports?exports.siema=t():e.siema=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(s,r,function(t){return e[t]}.bind(null,r));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e){if(this.resizeHandler=()=>{this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()},this.touchstartHandler=e=>{-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)},this.touchendHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.touchmoveHandler=e=>{if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)},this.mouseupHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.mousemoveHandler=e=>{if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`;const t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,s=this.config.rtl?t+i:t-i;this.sliderFrame.style[this.transformProperty]=`translate3d(${(this.config.rtl?1:-1)*s}px, 0, 0)`}},this.mouseleaveHandler=e=>{this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())},this.clickHandler=e=>{this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1},this.config=s.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something is wrong with your selector");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=Array.from(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=s.webkitOrNot(),this.init()}static mergeSettings(e){const t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:Function,onChange:Function};return Object.assign(t,e)}static webkitOrNot(){return"string"==typeof document.documentElement.style.transform?"transform":"webkitTransform"}attachEvents(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}detachEvents(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}init(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}buildSliderFrame(){const e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=`${e*t}px`,this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");const i=document.createDocumentFragment();if(this.config.loop)for(let e=this.innerElements.length-this.perPage;e=this.config.perPage[e]&&(this.perPage=this.config.perPage[e])}}prev(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();const t=this.currentSlide+this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}next(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();const t=this.currentSlide-this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}disableTransition(){this.sliderFrame.style.webkitTransition=`all 0ms ${this.config.easing}`,this.sliderFrame.style.transition=`all 0ms ${this.config.easing}`}enableTransition(){this.sliderFrame.style.webkitTransition=`all ${this.config.duration}ms ${this.config.easing}`,this.sliderFrame.style.transition=`all ${this.config.duration}ms ${this.config.easing}`}goTo(e,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}slideToCurrent(e){const t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*t*(this.selectorWidth/this.perPage);e?requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.enableTransition(),"transform"===this.transformProperty?this.sliderFrame.style.transform=`translate3d(${i}px, 0, 0)`:this.sliderFrame.style.webkitTransform=`translate3d(${i}px, 0, 0)`})}):this.sliderFrame.style[this.transformProperty]=`translate3d(${i}px, 0, 0)`}updateAfterDrag(){const e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,s=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(s||r)}clearDrag(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}remove(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist");const i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");const s=t<=this.currentSlide&&this.innerElements.length;this.currentSlide=s?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}prepend(e,t){this.insert(e,0),t&&t.call(this)}append(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}destroy(e=!1,t){if(this.detachEvents(),this.selector.style.cursor="auto",e){const e=document.createDocumentFragment();for(let t=0;t{this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()},this.touchstartHandler=e=>{-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)},this.touchendHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.touchmoveHandler=e=>{if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)},this.mouseupHandler=e=>{e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()},this.mousemoveHandler=e=>{if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;const t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,s=this.config.rtl?t+i:t-i;this.sliderFrame.style[this.transformProperty]=`translate3d(${(this.config.rtl?1:-1)*s}px, 0, 0)`}},this.mouseleaveHandler=e=>{this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())},this.clickHandler=e=>{this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1},this.config=s.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something is wrong with your selector");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=Array.from(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=s.webkitOrNot(),this.init()}static mergeSettings(e){const t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:Function,onChange:Function};return Object.assign(t,e)}static webkitOrNot(){return"string"==typeof document.documentElement.style.transform?"transform":"webkitTransform"}attachEvents(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}detachEvents(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}init(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}buildSliderFrame(){const e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=e*t+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");const i=document.createDocumentFragment();if(this.config.loop)for(let e=this.innerElements.length-this.perPage;e=this.config.perPage[e]&&(this.perPage=this.config.perPage[e])}}prev(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();const t=this.currentSlide+this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}next(e=1,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();const t=this.currentSlide-this.innerElements.length,i=t+this.perPage,s=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),r=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]=`translate3d(${s+r}px, 0, 0)`,this.currentSlide=t+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}disableTransition(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}enableTransition(){this.sliderFrame.style.webkitTransition=`all ${this.config.duration}ms ${this.config.easing}`,this.sliderFrame.style.transition=`all ${this.config.duration}ms ${this.config.easing}`}goTo(e,t){if(this.innerElements.length<=this.perPage)return;const i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}slideToCurrent(e){const t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*t*(this.selectorWidth/this.perPage);e?requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.enableTransition(),"transform"===this.transformProperty?this.sliderFrame.style.transform=`translate3d(${i}px, 0, 0)`:this.sliderFrame.style.webkitTransform=`translate3d(${i}px, 0, 0)`})}):this.sliderFrame.style[this.transformProperty]=`translate3d(${i}px, 0, 0)`}updateAfterDrag(){const e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,s=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(s||r)}clearDrag(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}remove(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist");const i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");const s=t<=this.currentSlide&&this.innerElements.length;this.currentSlide=s?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}prepend(e,t){this.insert(e,0),t&&t.call(this)}append(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}destroy(e=!1,t){if(this.detachEvents(),this.selector.style.cursor="auto",e){const e=document.createDocumentFragment();for(let t=0;t void;\n onChange?: () => void;\n}\n\n/**\n * Hi :-) This is a class representing a Siema.\n */\nexport default class Siema {\n\n /** Config used for this instace of Siema */\n public config: SiemaOptions;\n\n /** Variable to track if mouse is pressed */\n private pointerDown: boolean;\n\n /** Variable to track mouse track */\n private drag: {\n startX: number;\n endX: number;\n startY: number;\n letItGo: boolean;\n preventClick: boolean;\n };\n\n /** Reference to the Siema element */\n public selector: HTMLElement;\n\n /** The width of the Siema element */\n private selectorWidth: number;\n\n /** How many items to show per page */\n private perPage: number;\n\n /** Variable to keep track of the actual items */\n private innerElements: Element[];\n\n /** Zero based index of the current slide */\n private currentSlide: number;\n\n /** Variable to keeo track of wether to use standard or webkit compaotible transforms */\n private transformProperty: 'transform'|'webkitTransform';\n\n /** Reference to the the sliding wrapper for all items */\n private sliderFrame: HTMLDivElement;\n\n /**\n * Create a Siema.\n */\n constructor(options: Partial) {\n\n // Merge defaults with user's settings\n this.config = Siema.mergeSettings(options);\n\n // Resolve selector's type\n this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\n // Early throw if selector doesn't exists\n if (this.selector === null) {\n throw new Error('Something is wrong with your selector');\n }\n\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // Create global references\n this.selectorWidth = this.selector.offsetWidth;\n this.innerElements = Array.from(this.selector.children);\n this.currentSlide = this.config.loop ?\n this.config.startIndex % this.innerElements.length :\n Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage));\n this.transformProperty = Siema.webkitOrNot();\n\n // Build markup and apply required styling to elements\n this.init();\n }\n\n /**\n * Merge default settings with custom ones.\n */\n static mergeSettings(options: Partial): SiemaOptions {\n const defaultOptions: SiemaOptions = {\n selector: '.siema',\n duration: 200,\n easing: 'ease-out',\n perPage: 1,\n startIndex: 0,\n draggable: true,\n multipleDrag: true,\n threshold: 20,\n loop: false,\n rtl: false,\n onInit: Function,\n onChange: Function,\n };\n\n return Object.assign(defaultOptions, options);\n }\n\n /**\n * Determine if browser supports unprefixed transform property.\n * Google Chrome since version 26 supports prefix-less transform\n */\n static webkitOrNot(): 'transform'|'webkitTransform' {\n const style = document.documentElement.style;\n if (typeof style.transform === 'string') {\n return 'transform';\n }\n return 'webkitTransform';\n }\n\n /**\n * Attaches listeners to required events.\n */\n private attachEvents(): void {\n // Resize element on window resize\n window.addEventListener('resize', this.resizeHandler);\n\n // If element is draggable / swipable, add event handlers\n if (this.config.draggable) {\n // Keep track pointer hold and dragging distance\n this.pointerDown = false;\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: false,\n };\n\n // Touch events\n this.selector.addEventListener('touchstart', this.touchstartHandler);\n this.selector.addEventListener('touchend', this.touchendHandler);\n this.selector.addEventListener('touchmove', this.touchmoveHandler);\n\n // Mouse events\n this.selector.addEventListener('mousedown', this.mousedownHandler);\n this.selector.addEventListener('mouseup', this.mouseupHandler);\n this.selector.addEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.addEventListener('mousemove', this.mousemoveHandler);\n\n // Click\n this.selector.addEventListener('click', this.clickHandler);\n }\n }\n\n /**\n * Detaches listeners from required events.\n */\n private detachEvents(): void {\n window.removeEventListener('resize', this.resizeHandler);\n this.selector.removeEventListener('touchstart', this.touchstartHandler);\n this.selector.removeEventListener('touchend', this.touchendHandler);\n this.selector.removeEventListener('touchmove', this.touchmoveHandler);\n this.selector.removeEventListener('mousedown', this.mousedownHandler);\n this.selector.removeEventListener('mouseup', this.mouseupHandler);\n this.selector.removeEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.removeEventListener('mousemove', this.mousemoveHandler);\n this.selector.removeEventListener('click', this.clickHandler);\n }\n\n /**\n * Builds the markup and attaches listeners to required events.\n */\n private init(): void {\n this.attachEvents();\n\n // hide everything out of selector's boundaries\n this.selector.style.overflow = 'hidden';\n\n // rtl or ltr\n this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr';\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n this.config.onInit.call(this);\n }\n\n /**\n * Build a sliderFrame and slide to a current item.\n */\n private buildSliderFrame(): void {\n const widthItem = this.selectorWidth / this.perPage;\n const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length;\n\n // Create frame and apply styling\n this.sliderFrame = document.createElement('div');\n this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`;\n this.enableTransition();\n\n if (this.config.draggable) {\n this.selector.style.cursor = '-webkit-grab';\n }\n\n // Create a document fragment to put slides into it\n const docFragment = document.createDocumentFragment();\n\n // Loop through the slides, add styling and add them to document fragment\n if (this.config.loop) {\n for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n for (let i = 0; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i] as HTMLElement);\n docFragment.appendChild(element);\n }\n if (this.config.loop) {\n for (let i = 0; i < this.perPage; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n\n // Add fragment to the frame\n this.sliderFrame.appendChild(docFragment);\n\n // Clear selector (just in case something is there) and insert a frame\n this.selector.innerHTML = '';\n this.selector.appendChild(this.sliderFrame);\n\n // Go to currently active slide after initial build\n this.slideToCurrent();\n }\n\n private buildSliderFrameItem(elm: HTMLElement): HTMLDivElement {\n const elementContainer = document.createElement('div');\n elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left';\n elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`;\n elementContainer.appendChild(elm);\n return elementContainer;\n }\n\n /**\n * Determinates slides number accordingly to clients viewport.\n */\n private resolveSlidesNumber(): void {\n if (typeof this.config.perPage === 'number') {\n this.perPage = this.config.perPage;\n\n } else {\n this.perPage = 1;\n for (const key in this.config.perPage) {\n if (window.innerWidth >= this.config.perPage[key]) {\n this.perPage = this.config.perPage[key];\n }\n }\n }\n }\n\n /**\n * Go to previous slide.\n */\n public prev(howManySlides = 1, callback?: () => void): void {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide - howManySlides < 0;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide + this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex - howManySlides;\n } else {\n this.currentSlide = this.currentSlide - howManySlides;\n }\n } else {\n this.currentSlide = Math.max(this.currentSlide - howManySlides, 0);\n }\n\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Go to next slide.\n */\n public next(howManySlides = 1, callback?: () => void): void {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide - this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex + howManySlides;\n } else {\n this.currentSlide = this.currentSlide + howManySlides;\n }\n } else {\n this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage);\n }\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Disable transition on sliderFrame.\n */\n private disableTransition(): void {\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n }\n\n\n /**\n * Enable transition on sliderFrame.\n */\n private enableTransition(): void {\n this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`;\n }\n\n /**\n * Go to slide with particular index\n */\n public goTo(index: number, callback?: () => void): void {\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n const beforeChange = this.currentSlide;\n this.currentSlide = this.config.loop ?\n index % this.innerElements.length :\n Math.min(Math.max(index, 0), this.innerElements.length - this.perPage);\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent();\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n /**\n * Moves sliders frame to position of currently active slide\n */\n public slideToCurrent(enableTransition?: boolean): void {\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage);\n\n if (enableTransition) {\n // This one is tricky, I know but this is a perfect explanation:\n // https://youtu.be/cCOL7MC4Pl0\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.enableTransition();\n if (this.transformProperty === 'transform') {\n this.sliderFrame.style.transform = `translate3d(${offset}px, 0, 0)`;\n } else {\n this.sliderFrame.style.webkitTransform = `translate3d(${offset}px, 0, 0)`;\n }\n });\n });\n } else {\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`;\n }\n }\n\n\n /**\n * Recalculate drag /swipe event and reposition the frame of a slider\n */\n private updateAfterDrag(): void {\n const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX);\n const movementDistance = Math.abs(movement);\n const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1;\n\n const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0;\n const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage;\n\n if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.prev(howManySliderToSlide);\n } else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.next(howManySliderToSlide);\n }\n this.slideToCurrent(slideToNegativeClone || slideToPositiveClone);\n }\n\n\n /**\n * When window resizes, resize slider components as well\n */\n private resizeHandler = (): void => {\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // relcalculate currentSlide\n // prevent hiding items when browser width increases\n if (this.currentSlide + this.perPage > this.innerElements.length) {\n this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage;\n }\n\n this.selectorWidth = this.selector.offsetWidth;\n\n this.buildSliderFrame();\n }\n\n /**\n * Clear drag after touchend and mouseup event\n */\n private clearDrag(): void {\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: this.drag.preventClick\n };\n }\n\n /**\n * touchstart event handler\n */\n private touchstartHandler = (e: TouchEvent): void => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.touches[0].pageX;\n this.drag.startY = e.touches[0].pageY;\n }\n\n /**\n * touchend event handler\n */\n private touchendHandler = (e: TouchEvent): void => {\n e.stopPropagation();\n this.pointerDown = false;\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * touchmove event handler\n */\n private touchmoveHandler = (e: TouchEvent): void=> {\n e.stopPropagation();\n\n if (this.drag.letItGo === null) {\n this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX);\n }\n\n if (this.pointerDown && this.drag.letItGo) {\n e.preventDefault();\n this.drag.endX = e.touches[0].pageX;\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mousedown event handler\n */\n private mousedownHandler = (e: MouseEvent): void => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.pageX;\n }\n\n /**\n * mouseup event handler\n */\n private mouseupHandler = (e: MouseEvent): void => {\n e.stopPropagation();\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * mousemove event handler\n */\n private mousemoveHandler = (e: MouseEvent): void => {\n e.preventDefault();\n if (this.pointerDown) {\n // if dragged element is a link\n // mark preventClick prop as a true\n // to detemine about browser redirection later on\n if ((e.target as HTMLElement).nodeName === 'A') {\n this.drag.preventClick = true;\n }\n\n this.drag.endX = e.pageX;\n this.selector.style.cursor = '-webkit-grabbing';\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mouseleave event handler\n */\n private mouseleaveHandler = (e: MouseEvent): void => {\n if (this.pointerDown) {\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.drag.endX = e.pageX;\n this.drag.preventClick = false;\n this.enableTransition();\n this.updateAfterDrag();\n this.clearDrag();\n }\n }\n\n\n /**\n * click event handler\n */\n private clickHandler = (e: Event): void => {\n // if the dragged element is a link\n // prevent browsers from folowing the link\n if (this.drag.preventClick) {\n e.preventDefault();\n }\n this.drag.preventClick = false;\n }\n\n\n /**\n * Remove item from carousel.\n */\n public remove(index: number, callback?: () => void): void {\n if (index < 0 || index >= this.innerElements.length) {\n throw new Error('Item to remove doesn\\'t exist');\n }\n\n // Shift sliderFrame back by one item when:\n // 1. Item with lower index than currenSlide is removed.\n // 2. Last item is removed.\n const lowerIndex = index < this.currentSlide;\n const lastItem = this.currentSlide + this.perPage - 1 === index;\n\n if (lowerIndex || lastItem) {\n this.currentSlide--;\n }\n\n this.innerElements.splice(index, 1);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n\n /**\n * Insert item to carousel at particular index.\n */\n public insert(item: HTMLElement, index: number, callback?: () => void): void {\n if (index < 0 || index > this.innerElements.length + 1) {\n throw new Error('Unable to inset it at this index 😭');\n }\n if (this.innerElements.indexOf(item) !== -1) {\n throw new Error('The same item in a carousel? Really? Nope 😭');\n }\n\n // Avoid shifting content\n const shouldItShift = index <= this.currentSlide && this.innerElements.length;\n this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide;\n\n this.innerElements.splice(index, 0, item);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Prepernd item to carousel.\n */\n public prepend(item: HTMLElement, callback?: () => void): void {\n this.insert(item, 0);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Append item to carousel.\n */\n public append(item: HTMLElement, callback?: () => void): void {\n this.insert(item, this.innerElements.length + 1);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Removes listeners and optionally restores to initial markup\n */\n public destroy(restoreMarkup = false, callback?: () => void): void {\n this.detachEvents();\n\n this.selector.style.cursor = 'auto';\n\n if (restoreMarkup) {\n const slides = document.createDocumentFragment();\n for (let i = 0; i < this.innerElements.length; i++) {\n slides.appendChild(this.innerElements[i]);\n }\n this.selector.innerHTML = '';\n this.selector.appendChild(slides);\n this.selector.removeAttribute('style');\n }\n\n if (callback) {\n callback.call(this);\n }\n }\n\n}\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./src/siema.ts"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Siema","options","resizeHandler","resolveSlidesNumber","currentSlide","perPage","innerElements","length","selectorWidth","selector","offsetWidth","buildSliderFrame","touchstartHandler","e","indexOf","target","nodeName","stopPropagation","pointerDown","drag","startX","touches","pageX","startY","pageY","touchendHandler","enableTransition","endX","updateAfterDrag","clearDrag","touchmoveHandler","letItGo","Math","abs","preventDefault","sliderFrame","style","webkitTransition","config","easing","transition","currentOffset","loop","dragOffset","offset","rtl","transformProperty","mousedownHandler","mouseupHandler","cursor","mousemoveHandler","preventClick","mouseleaveHandler","clickHandler","mergeSettings","document","querySelector","Error","Array","from","children","startIndex","max","min","webkitOrNot","init","defaultOptions","duration","draggable","multipleDrag","threshold","onInit","Function","onChange","assign","documentElement","transform","window","addEventListener","removeEventListener","attachEvents","overflow","direction","widthItem","itemsToBuild","createElement","width","docFragment","createDocumentFragment","element","buildSliderFrameItem","cloneNode","appendChild","innerHTML","slideToCurrent","elm","elementContainer","cssFloat","innerWidth","howManySlides","callback","beforeChange","disableTransition","mirrorSlideIndex","moveTo","dragDistance","index","requestAnimationFrame","webkitTransform","movement","movementDistance","howManySliderToSlide","ceil","slideToNegativeClone","slideToPositiveClone","prev","next","lowerIndex","lastItem","splice","item","shouldItShift","insert","restoreMarkup","detachEvents","slides","removeAttribute"],"mappings":"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","file":"siema.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"siema\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"siema\"] = factory();\n\telse\n\t\troot[\"siema\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","export interface SiemaOptions {\n selector: HTMLElement|string;\n duration: number;\n easing: string;\n perPage: number|{[width: number]: number};\n startIndex: number;\n draggable: boolean;\n multipleDrag: boolean;\n threshold: number;\n loop: boolean;\n rtl: boolean;\n onInit?: () => void;\n onChange?: () => void;\n}\n\n/**\n * Hi :-) This is a class representing a Siema.\n */\nexport default class Siema {\n\n /** Config used for this instace of Siema */\n public config: SiemaOptions;\n\n /** Variable to track if mouse is pressed */\n private pointerDown: boolean;\n\n /** Variable to track mouse track */\n private drag: {\n startX: number;\n endX: number;\n startY: number;\n letItGo: boolean;\n preventClick: boolean;\n };\n\n /** Reference to the Siema element */\n public selector: HTMLElement;\n\n /** The width of the Siema element */\n private selectorWidth: number;\n\n /** How many items to show per page */\n private perPage: number;\n\n /** Variable to keep track of the actual items */\n private innerElements: Element[];\n\n /** Zero based index of the current slide */\n private currentSlide: number;\n\n /** Variable to keeo track of wether to use standard or webkit compaotible transforms */\n private transformProperty: 'transform'|'webkitTransform';\n\n /** Reference to the the sliding wrapper for all items */\n private sliderFrame: HTMLDivElement;\n\n /**\n * Create a Siema.\n */\n constructor(options: Partial) {\n\n // Merge defaults with user's settings\n this.config = Siema.mergeSettings(options);\n\n // Resolve selector's type\n this.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\n // Early throw if selector doesn't exists\n if (this.selector === null) {\n throw new Error('Something is wrong with your selector');\n }\n\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // Create global references\n this.selectorWidth = this.selector.offsetWidth;\n this.innerElements = Array.from(this.selector.children);\n this.currentSlide = this.config.loop ?\n this.config.startIndex % this.innerElements.length :\n Math.max(0, Math.min(this.config.startIndex, this.innerElements.length - this.perPage));\n this.transformProperty = Siema.webkitOrNot();\n\n // Build markup and apply required styling to elements\n this.init();\n }\n\n /**\n * Merge default settings with custom ones.\n */\n static mergeSettings(options: Partial): SiemaOptions {\n const defaultOptions: SiemaOptions = {\n selector: '.siema',\n duration: 200,\n easing: 'ease-out',\n perPage: 1,\n startIndex: 0,\n draggable: true,\n multipleDrag: true,\n threshold: 20,\n loop: false,\n rtl: false,\n onInit: Function,\n onChange: Function,\n };\n\n return Object.assign(defaultOptions, options);\n }\n\n /**\n * Determine if browser supports unprefixed transform property.\n * Google Chrome since version 26 supports prefix-less transform\n */\n static webkitOrNot(): 'transform'|'webkitTransform' {\n const style = document.documentElement.style;\n if (typeof style.transform === 'string') {\n return 'transform';\n }\n return 'webkitTransform';\n }\n\n /**\n * Attaches listeners to required events.\n */\n private attachEvents(): void {\n // Resize element on window resize\n window.addEventListener('resize', this.resizeHandler);\n\n // If element is draggable / swipable, add event handlers\n if (this.config.draggable) {\n // Keep track pointer hold and dragging distance\n this.pointerDown = false;\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: false,\n };\n\n // Touch events\n this.selector.addEventListener('touchstart', this.touchstartHandler);\n this.selector.addEventListener('touchend', this.touchendHandler);\n this.selector.addEventListener('touchmove', this.touchmoveHandler);\n\n // Mouse events\n this.selector.addEventListener('mousedown', this.mousedownHandler);\n this.selector.addEventListener('mouseup', this.mouseupHandler);\n this.selector.addEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.addEventListener('mousemove', this.mousemoveHandler);\n\n // Click\n this.selector.addEventListener('click', this.clickHandler);\n }\n }\n\n /**\n * Detaches listeners from required events.\n */\n private detachEvents(): void {\n window.removeEventListener('resize', this.resizeHandler);\n this.selector.removeEventListener('touchstart', this.touchstartHandler);\n this.selector.removeEventListener('touchend', this.touchendHandler);\n this.selector.removeEventListener('touchmove', this.touchmoveHandler);\n this.selector.removeEventListener('mousedown', this.mousedownHandler);\n this.selector.removeEventListener('mouseup', this.mouseupHandler);\n this.selector.removeEventListener('mouseleave', this.mouseleaveHandler);\n this.selector.removeEventListener('mousemove', this.mousemoveHandler);\n this.selector.removeEventListener('click', this.clickHandler);\n }\n\n /**\n * Builds the markup and attaches listeners to required events.\n */\n private init(): void {\n this.attachEvents();\n\n // hide everything out of selector's boundaries\n this.selector.style.overflow = 'hidden';\n\n // rtl or ltr\n this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr';\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n this.config.onInit.call(this);\n }\n\n /**\n * Build a sliderFrame and slide to a current item.\n */\n private buildSliderFrame(): void {\n const widthItem = this.selectorWidth / this.perPage;\n const itemsToBuild = this.config.loop ? this.innerElements.length + (2 * this.perPage) : this.innerElements.length;\n\n // Create frame and apply styling\n this.sliderFrame = document.createElement('div');\n this.sliderFrame.style.width = `${widthItem * itemsToBuild}px`;\n this.enableTransition();\n\n if (this.config.draggable) {\n this.selector.style.cursor = '-webkit-grab';\n }\n\n // Create a document fragment to put slides into it\n const docFragment = document.createDocumentFragment();\n\n // Loop through the slides, add styling and add them to document fragment\n if (this.config.loop) {\n for (let i = this.innerElements.length - this.perPage; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n for (let i = 0; i < this.innerElements.length; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i] as HTMLElement);\n docFragment.appendChild(element);\n }\n if (this.config.loop) {\n for (let i = 0; i < this.perPage; i++) {\n const element = this.buildSliderFrameItem(this.innerElements[i].cloneNode(true) as HTMLElement);\n docFragment.appendChild(element);\n }\n }\n\n // Add fragment to the frame\n this.sliderFrame.appendChild(docFragment);\n\n // Clear selector (just in case something is there) and insert a frame\n this.selector.innerHTML = '';\n this.selector.appendChild(this.sliderFrame);\n\n // Go to currently active slide after initial build\n this.slideToCurrent();\n }\n\n private buildSliderFrameItem(elm: HTMLElement): HTMLDivElement {\n const elementContainer = document.createElement('div');\n elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left';\n elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`;\n elementContainer.appendChild(elm);\n return elementContainer;\n }\n\n /**\n * Determinates slides number accordingly to clients viewport.\n */\n private resolveSlidesNumber(): void {\n if (typeof this.config.perPage === 'number') {\n this.perPage = this.config.perPage;\n\n } else {\n this.perPage = 1;\n for (const key in this.config.perPage) {\n if (window.innerWidth >= this.config.perPage[key]) {\n this.perPage = this.config.perPage[key];\n }\n }\n }\n }\n\n /**\n * Go to previous slide.\n */\n public prev(howManySlides = 1, callback?: () => void): void {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide - howManySlides < 0;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide + this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex - howManySlides;\n } else {\n this.currentSlide = this.currentSlide - howManySlides;\n }\n } else {\n this.currentSlide = Math.max(this.currentSlide - howManySlides, 0);\n }\n\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Go to next slide.\n */\n public next(howManySlides = 1, callback?: () => void): void {\n // early return when there is nothing to slide\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n\n const beforeChange = this.currentSlide;\n\n if (this.config.loop) {\n const isNewIndexClone = this.currentSlide + howManySlides > this.innerElements.length - this.perPage;\n if (isNewIndexClone) {\n this.disableTransition();\n\n const mirrorSlideIndex = this.currentSlide - this.innerElements.length;\n const mirrorSlideIndexOffset = this.perPage;\n const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;\n const offset = (this.config.rtl ? 1 : -1) * moveTo * (this.selectorWidth / this.perPage);\n const dragDistance = this.config.draggable ? this.drag.endX - this.drag.startX : 0;\n\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset + dragDistance}px, 0, 0)`;\n this.currentSlide = mirrorSlideIndex + howManySlides;\n } else {\n this.currentSlide = this.currentSlide + howManySlides;\n }\n } else {\n this.currentSlide = Math.min(this.currentSlide + howManySlides, this.innerElements.length - this.perPage);\n }\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent(this.config.loop);\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n\n /**\n * Disable transition on sliderFrame.\n */\n private disableTransition(): void {\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n }\n\n\n /**\n * Enable transition on sliderFrame.\n */\n private enableTransition(): void {\n this.sliderFrame.style.webkitTransition = `all ${this.config.duration}ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all ${this.config.duration}ms ${this.config.easing}`;\n }\n\n /**\n * Go to slide with particular index\n */\n public goTo(index: number, callback?: () => void): void {\n if (this.innerElements.length <= this.perPage) {\n return;\n }\n const beforeChange = this.currentSlide;\n this.currentSlide = this.config.loop ?\n index % this.innerElements.length :\n Math.min(Math.max(index, 0), this.innerElements.length - this.perPage);\n if (beforeChange !== this.currentSlide) {\n this.slideToCurrent();\n this.config.onChange.call(this);\n if (callback) {\n callback.call(this);\n }\n }\n }\n\n /**\n * Moves sliders frame to position of currently active slide\n */\n public slideToCurrent(enableTransition?: boolean): void {\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const offset = (this.config.rtl ? 1 : -1) * currentSlide * (this.selectorWidth / this.perPage);\n\n if (enableTransition) {\n // This one is tricky, I know but this is a perfect explanation:\n // https://youtu.be/cCOL7MC4Pl0\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.enableTransition();\n if (this.transformProperty === 'transform') {\n this.sliderFrame.style.transform = `translate3d(${offset}px, 0, 0)`;\n } else {\n this.sliderFrame.style.webkitTransform = `translate3d(${offset}px, 0, 0)`;\n }\n });\n });\n } else {\n this.sliderFrame.style[this.transformProperty] = `translate3d(${offset}px, 0, 0)`;\n }\n }\n\n\n /**\n * Recalculate drag /swipe event and reposition the frame of a slider\n */\n private updateAfterDrag(): void {\n const movement = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX);\n const movementDistance = Math.abs(movement);\n const howManySliderToSlide = this.config.multipleDrag ? Math.ceil(movementDistance / (this.selectorWidth / this.perPage)) : 1;\n\n const slideToNegativeClone = movement > 0 && this.currentSlide - howManySliderToSlide < 0;\n const slideToPositiveClone = movement < 0 && this.currentSlide + howManySliderToSlide > this.innerElements.length - this.perPage;\n\n if (movement > 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.prev(howManySliderToSlide);\n } else if (movement < 0 && movementDistance > this.config.threshold && this.innerElements.length > this.perPage) {\n this.next(howManySliderToSlide);\n }\n this.slideToCurrent(slideToNegativeClone || slideToPositiveClone);\n }\n\n\n /**\n * When window resizes, resize slider components as well\n */\n private resizeHandler = (): void => {\n // update perPage number dependable of user value\n this.resolveSlidesNumber();\n\n // relcalculate currentSlide\n // prevent hiding items when browser width increases\n if (this.currentSlide + this.perPage > this.innerElements.length) {\n this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage;\n }\n\n this.selectorWidth = this.selector.offsetWidth;\n\n this.buildSliderFrame();\n }\n\n /**\n * Clear drag after touchend and mouseup event\n */\n private clearDrag(): void {\n this.drag = {\n startX: 0,\n endX: 0,\n startY: 0,\n letItGo: null,\n preventClick: this.drag.preventClick\n };\n }\n\n /**\n * touchstart event handler\n */\n private touchstartHandler = (e: TouchEvent): void => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.touches[0].pageX;\n this.drag.startY = e.touches[0].pageY;\n }\n\n /**\n * touchend event handler\n */\n private touchendHandler = (e: TouchEvent): void => {\n e.stopPropagation();\n this.pointerDown = false;\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * touchmove event handler\n */\n private touchmoveHandler = (e: TouchEvent): void=> {\n e.stopPropagation();\n\n if (this.drag.letItGo === null) {\n this.drag.letItGo = Math.abs(this.drag.startY - e.touches[0].pageY) < Math.abs(this.drag.startX - e.touches[0].pageX);\n }\n\n if (this.pointerDown && this.drag.letItGo) {\n e.preventDefault();\n this.drag.endX = e.touches[0].pageX;\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mousedown event handler\n */\n private mousedownHandler = (e: MouseEvent): void => {\n // Prevent dragging / swiping on inputs, selects and textareas\n const ignoreSiema = ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf((e.target as HTMLElement).nodeName) !== -1;\n if (ignoreSiema) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n this.pointerDown = true;\n this.drag.startX = e.pageX;\n }\n\n /**\n * mouseup event handler\n */\n private mouseupHandler = (e: MouseEvent): void => {\n e.stopPropagation();\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.enableTransition();\n if (this.drag.endX) {\n this.updateAfterDrag();\n }\n this.clearDrag();\n }\n\n /**\n * mousemove event handler\n */\n private mousemoveHandler = (e: MouseEvent): void => {\n e.preventDefault();\n if (this.pointerDown) {\n // if dragged element is a link\n // mark preventClick prop as a true\n // to detemine about browser redirection later on\n if ((e.target as HTMLElement).nodeName === 'A') {\n this.drag.preventClick = true;\n }\n\n this.drag.endX = e.pageX;\n this.selector.style.cursor = '-webkit-grabbing';\n this.sliderFrame.style.webkitTransition = `all 0ms ${this.config.easing}`;\n this.sliderFrame.style.transition = `all 0ms ${this.config.easing}`;\n\n const currentSlide = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide;\n const currentOffset = currentSlide * (this.selectorWidth / this.perPage);\n const dragOffset = (this.drag.endX - this.drag.startX);\n const offset = this.config.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;\n this.sliderFrame.style[this.transformProperty] = `translate3d(${(this.config.rtl ? 1 : -1) * offset}px, 0, 0)`;\n }\n }\n\n /**\n * mouseleave event handler\n */\n private mouseleaveHandler = (e: MouseEvent): void => {\n if (this.pointerDown) {\n this.pointerDown = false;\n this.selector.style.cursor = '-webkit-grab';\n this.drag.endX = e.pageX;\n this.drag.preventClick = false;\n this.enableTransition();\n this.updateAfterDrag();\n this.clearDrag();\n }\n }\n\n\n /**\n * click event handler\n */\n private clickHandler = (e: Event): void => {\n // if the dragged element is a link\n // prevent browsers from folowing the link\n if (this.drag.preventClick) {\n e.preventDefault();\n }\n this.drag.preventClick = false;\n }\n\n\n /**\n * Remove item from carousel.\n */\n public remove(index: number, callback?: () => void): void {\n if (index < 0 || index >= this.innerElements.length) {\n throw new Error('Item to remove doesn\\'t exist');\n }\n\n // Shift sliderFrame back by one item when:\n // 1. Item with lower index than currenSlide is removed.\n // 2. Last item is removed.\n const lowerIndex = index < this.currentSlide;\n const lastItem = this.currentSlide + this.perPage - 1 === index;\n\n if (lowerIndex || lastItem) {\n this.currentSlide--;\n }\n\n this.innerElements.splice(index, 1);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n\n /**\n * Insert item to carousel at particular index.\n */\n public insert(item: HTMLElement, index: number, callback?: () => void): void {\n if (index < 0 || index > this.innerElements.length + 1) {\n throw new Error('Unable to inset it at this index 😭');\n }\n if (this.innerElements.indexOf(item) !== -1) {\n throw new Error('The same item in a carousel? Really? Nope 😭');\n }\n\n // Avoid shifting content\n const shouldItShift = index <= this.currentSlide && this.innerElements.length;\n this.currentSlide = shouldItShift ? this.currentSlide + 1 : this.currentSlide;\n\n this.innerElements.splice(index, 0, item);\n\n // build a frame and slide to a currentSlide\n this.buildSliderFrame();\n\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Prepernd item to carousel.\n */\n public prepend(item: HTMLElement, callback?: () => void): void {\n this.insert(item, 0);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Append item to carousel.\n */\n public append(item: HTMLElement, callback?: () => void): void {\n this.insert(item, this.innerElements.length + 1);\n if (callback) {\n callback.call(this);\n }\n }\n\n /**\n * Removes listeners and optionally restores to initial markup\n */\n public destroy(restoreMarkup = false, callback?: () => void): void {\n this.detachEvents();\n\n this.selector.style.cursor = 'auto';\n\n if (restoreMarkup) {\n const slides = document.createDocumentFragment();\n for (let i = 0; i < this.innerElements.length; i++) {\n slides.appendChild(this.innerElements[i]);\n }\n this.selector.innerHTML = '';\n this.selector.appendChild(slides);\n this.selector.removeAttribute('style');\n }\n\n if (callback) {\n callback.call(this);\n }\n }\n\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7261a24..9a10f2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,286 +1,426 @@ { "name": "siema", - "version": "1.5.1", + "version": "1.5.2", "lockfileVersion": 1, "requires": true, "dependencies": { "@babel/code-frame": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", - "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "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.0.0" + "@babel/highlight": "^7.10.4" } }, + "@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/highlight": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", - "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "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", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, - "@types/eslint-visitor-keys": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", - "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==" + "@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.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", + "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "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 + }, + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "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 + } + } + }, + "@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" + } + }, + "@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/json-schema": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz", - "integrity": "sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==" + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz", + "integrity": "sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==", + "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.16.0.tgz", - "integrity": "sha512-TKWbeFAKRPrvKiR9GNxErQ8sELKqg1ZvXi6uho07mcKShBnCnqNpDQWP01FEvWKf0bxM2g7uQEI5MNjSNqvUpQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.3.0.tgz", + "integrity": "sha512-RqEcaHuEKnn3oPFislZ6TNzsBLqpZjN93G69SS+laav/I8w/iGMuMq97P0D2/2/kW4SCebHggqhbcCfbDaaX+g==", + "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.16.0", - "eslint-utils": "^1.4.3", + "@typescript-eslint/experimental-utils": "4.3.0", + "@typescript-eslint/scope-manager": "4.3.0", + "debug": "^4.1.1", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", + "semver": "^7.3.2", "tsutils": "^3.17.1" }, "dependencies": { - "regexpp": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.0.0.tgz", - "integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g==" + "debug": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", + "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "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 } } }, "@typescript-eslint/experimental-utils": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.16.0.tgz", - "integrity": "sha512-bXTmAztXpqxliDKZgvWkl+5dHeRN+jqXVZ16peKKFzSXVzT6mz8kgBpHiVzEKO2NZ8OCU7dG61K9sRS/SkUUFQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.3.0.tgz", + "integrity": "sha512-cmmIK8shn3mxmhpKfzMMywqiEheyfXLV/+yPDnOTvQX/ztngx7Lg/OD26J8gTZfkLKUmaEBxO2jYP3keV7h2OQ==", + "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.16.0", - "eslint-scope": "^5.0.0" + "@typescript-eslint/scope-manager": "4.3.0", + "@typescript-eslint/types": "4.3.0", + "@typescript-eslint/typescript-estree": "4.3.0", + "eslint-scope": "^5.0.0", + "eslint-utils": "^2.0.0" } }, "@typescript-eslint/parser": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.16.0.tgz", - "integrity": "sha512-+w8dMaYETM9v6il1yYYkApMSiwgnqXWJbXrA94LAWN603vXHACsZTirJduyeBOJjA9wT6xuXe5zZ1iCUzoxCfw==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.3.0.tgz", + "integrity": "sha512-JyfRnd72qRuUwItDZ00JNowsSlpQGeKfl9jxwO0FHK1qQ7FbYdoy5S7P+5wh1ISkT2QyAvr2pc9dAemDxzt75g==", + "dev": true, "requires": { - "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.16.0", - "@typescript-eslint/typescript-estree": "2.16.0", - "eslint-visitor-keys": "^1.1.0" + "@typescript-eslint/scope-manager": "4.3.0", + "@typescript-eslint/types": "4.3.0", + "@typescript-eslint/typescript-estree": "4.3.0", + "debug": "^4.1.1" + }, + "dependencies": { + "debug": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", + "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "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 + } + } + }, + "@typescript-eslint/scope-manager": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.3.0.tgz", + "integrity": "sha512-cTeyP5SCNE8QBRfc+Lgh4Xpzje46kNUhXYfc3pQWmJif92sjrFuHT9hH4rtOkDTo/si9Klw53yIr+djqGZS1ig==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.3.0", + "@typescript-eslint/visitor-keys": "4.3.0" } }, + "@typescript-eslint/types": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.3.0.tgz", + "integrity": "sha512-Cx9TpRvlRjOppGsU6Y6KcJnUDOelja2NNCX6AZwtVHRzaJkdytJWMuYiqi8mS35MRNA3cJSwDzXePfmhU6TANw==", + "dev": true + }, "@typescript-eslint/typescript-estree": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.16.0.tgz", - "integrity": "sha512-hyrCYjFHISos68Bk5KjUAXw0pP/455qq9nxqB1KkT67Pxjcfw+r6Yhcmqnp8etFL45UexCHUMrADHH7dI/m2WQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.3.0.tgz", + "integrity": "sha512-ZAI7xjkl+oFdLV/COEz2tAbQbR3XfgqHEGy0rlUXzfGQic6EBCR4s2+WS3cmTPG69aaZckEucBoTxW9PhzHxxw==", + "dev": true, "requires": { + "@typescript-eslint/types": "4.3.0", + "@typescript-eslint/visitor-keys": "4.3.0", "debug": "^4.1.1", - "eslint-visitor-keys": "^1.1.0", - "glob": "^7.1.6", + "globby": "^11.0.1", "is-glob": "^4.0.1", "lodash": "^4.17.15", - "semver": "^6.3.0", + "semver": "^7.3.2", "tsutils": "^3.17.1" }, "dependencies": { "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", + "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "dev": true, "requires": { - "ms": "^2.1.1" + "ms": "2.1.2" } }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true } } }, + "@typescript-eslint/visitor-keys": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.3.0.tgz", + "integrity": "sha512-xZxkuR7XLM6RhvLkgv9yYlTcBHnTULzfnw4i6+z2TGBLy9yljAypQaZl9c3zFvy7PNI7fYWyvKYtohyF8au3cw==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.3.0", + "eslint-visitor-keys": "^2.0.0" + } + }, "@webassemblyjs/ast": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", - "integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==", + "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.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/wast-parser": "1.8.5" + "@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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz", - "integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==", + "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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz", - "integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==", + "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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz", - "integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==", + "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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz", - "integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==", + "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.8.5" + "@webassemblyjs/wast-printer": "1.9.0" } }, "@webassemblyjs/helper-fsm": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz", - "integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==", + "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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz", - "integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==", + "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.8.5", - "mamacro": "^0.0.3" + "@webassemblyjs/ast": "1.9.0" } }, "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz", - "integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==", + "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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz", - "integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==", + "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.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5" + "@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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz", - "integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==", + "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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz", - "integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==", + "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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz", - "integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==", + "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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz", - "integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==", + "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.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/helper-wasm-section": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5", - "@webassemblyjs/wasm-opt": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", - "@webassemblyjs/wast-printer": "1.8.5" + "@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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz", - "integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==", + "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.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/ieee754": "1.8.5", - "@webassemblyjs/leb128": "1.8.5", - "@webassemblyjs/utf8": "1.8.5" + "@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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz", - "integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==", + "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.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5" + "@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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz", - "integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==", + "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.8.5", - "@webassemblyjs/helper-api-error": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/ieee754": "1.8.5", - "@webassemblyjs/leb128": "1.8.5", - "@webassemblyjs/utf8": "1.8.5" + "@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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz", - "integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==", + "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.8.5", - "@webassemblyjs/floating-point-hex-parser": "1.8.5", - "@webassemblyjs/helper-api-error": "1.8.5", - "@webassemblyjs/helper-code-frame": "1.8.5", - "@webassemblyjs/helper-fsm": "1.8.5", + "@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.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz", - "integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==", + "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.8.5", - "@webassemblyjs/wast-parser": "1.8.5", + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0", "@xtuc/long": "4.2.2" } }, @@ -297,24 +437,24 @@ "dev": true }, "acorn": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.3.0.tgz", - "integrity": "sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==", + "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.1.0", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.1.0.tgz", - "integrity": "sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==", + "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 }, "ajv": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", - "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", + "version": "6.12.5", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.5.tgz", + "integrity": "sha512-lRF8RORchjpKG50/WFf8xmg7sgCLFiYNNnqdKflk63whMQcWR5ngGjiSXkL9bjxy6B2npOK2HSMN49jEBMSkag==", "dev": true, "requires": { - "fast-deep-equal": "^2.0.1", + "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" @@ -327,24 +467,21 @@ "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==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", "dev": true }, - "ansi-escapes": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.0.tgz", - "integrity": "sha512-EiYhwo0v255HUL6eDyuLrXEkTi7WwVCLAw+SeOQ7M7qdun1z1pum4DEm/nuqIVbPvi9RPPc9k9LbyBv6H0DwVg==", - "dev": true, - "requires": { - "type-fest": "^0.8.1" - } + "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-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "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": { @@ -357,24 +494,14 @@ } }, "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "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": { - "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, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - } + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" } }, "aproba": { @@ -410,6 +537,12 @@ "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", "dev": true }, + "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", @@ -417,14 +550,23 @@ "dev": true }, "asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", "dev": true, "requires": { "bn.js": "^4.0.0", "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.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": { @@ -470,7 +612,8 @@ "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 + "dev": true, + "optional": true }, "atob": { "version": "2.1.2", @@ -497,7 +640,8 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "base": { "version": "0.11.2", @@ -567,10 +711,21 @@ "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 + "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 + }, + "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" + } }, "bluebird": { "version": "3.7.2", @@ -579,15 +734,16 @@ "dev": true }, "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.1.3.tgz", + "integrity": "sha512-GkTiFpjFtUzU9CbMeJ5iazkCzGL3jrhzerzZIuqLABjbwRaFt33I9tUdSNryIptM+RxDet6OKm2WnLXzW51KsQ==", "dev": true }, "brace-expansion": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", - "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -673,21 +829,56 @@ "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.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", - "dev": true, - "requires": { - "bn.js": "^4.1.1", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.2", - "elliptic": "^6.0.0", - "inherits": "^2.0.1", - "parse-asn1": "^5.0.0" + "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": { @@ -729,9 +920,9 @@ "dev": true }, "cacache": { - "version": "12.0.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.3.tgz", - "integrity": "sha512-kqdmfXEGFepesTuROHMs3MpFLWrPkSSpRqOw80RCflZXy/khxaArvFrQ7uJxSUduzAufc6G0g1VUCOZXxWavPw==", + "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", @@ -813,36 +1004,66 @@ } } }, - "chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, "chokidar": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", - "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "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": "^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" + "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" + }, + "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, + "optional": 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, + "optional": true, + "requires": { + "to-regex-range": "^5.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, + "optional": true + }, + "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" + } + } } }, "chownr": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.3.tgz", - "integrity": "sha512-i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", "dev": true }, "chrome-trace-event": { @@ -887,21 +1108,6 @@ } } }, - "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-width": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", - "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", - "dev": true - }, "cliui": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", @@ -911,6 +1117,23 @@ "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" + } + } } }, "collection-visit": { @@ -959,7 +1182,8 @@ "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "concat-stream": { "version": "1.6.2", @@ -1023,13 +1247,21 @@ "dev": true }, "create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", "dev": true, "requires": { "bn.js": "^4.1.0", - "elliptic": "^6.0.0" + "elliptic": "^6.5.3" + }, + "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": { @@ -1060,16 +1292,14 @@ } }, "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "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" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" } }, "crypto-browserify": { @@ -1209,6 +1439,23 @@ "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" } }, "doctrine": { @@ -1239,9 +1486,9 @@ } }, "elliptic": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.1.tgz", - "integrity": "sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==", + "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", @@ -1251,6 +1498,14 @@ "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": { @@ -1297,6 +1552,15 @@ } } }, + "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" + } + }, "errno": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", @@ -1345,22 +1609,24 @@ "dev": true }, "eslint": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", - "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.10.0.tgz", + "integrity": "sha512-BDVffmqWl7JJXqCjAK6lWtcQThZB/aP1HXSH1JKwGwv0LQEdvpR7qzNrUT487RM39B5goWuboFad5ovMBmD8yA==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", + "@eslint/eslintrc": "^0.1.3", "ajv": "^6.10.0", - "chalk": "^2.1.0", - "cross-spawn": "^6.0.5", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", "debug": "^4.0.1", "doctrine": "^3.0.0", - "eslint-scope": "^5.0.0", - "eslint-utils": "^1.4.3", - "eslint-visitor-keys": "^1.1.0", - "espree": "^6.1.2", - "esquery": "^1.0.1", + "enquirer": "^2.3.5", + "eslint-scope": "^5.1.1", + "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", @@ -1369,95 +1635,142 @@ "ignore": "^4.0.6", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", - "inquirer": "^7.0.0", "is-glob": "^4.0.0", "js-yaml": "^3.13.1", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.3.0", - "lodash": "^4.17.14", + "levn": "^0.4.1", + "lodash": "^4.17.19", "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", "natural-compare": "^1.4.0", - "optionator": "^0.8.3", + "optionator": "^0.9.1", "progress": "^2.0.0", - "regexpp": "^2.0.1", - "semver": "^6.1.2", - "strip-ansi": "^5.2.0", - "strip-json-comments": "^3.0.1", + "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": { - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "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": { - "ms": "^2.1.1" + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" } }, - "glob-parent": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", - "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", + "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": { - "is-glob": "^4.0.1" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "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 }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "debug": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", + "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "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 + }, + "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 + }, + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "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 } } }, "eslint-scope": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz", - "integrity": "sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw==", + "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.1.0", + "esrecurse": "^4.3.0", "estraverse": "^4.1.1" } }, "eslint-utils": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", - "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", + "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" + }, + "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 + } } }, "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==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", + "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", + "dev": true }, "espree": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-6.1.2.tgz", - "integrity": "sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==", + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.0.tgz", + "integrity": "sha512-dksIWsvKCixn1yrEXO8UosNSxaDoSYpq9reEjZSbHLpT5hpaCAKTLBwq0RHtLrIr+c0ByiYzWT8KTMRzoRCNlw==", "dev": true, "requires": { - "acorn": "^7.1.0", - "acorn-jsx": "^5.1.0", - "eslint-visitor-keys": "^1.1.0" + "acorn": "^7.4.0", + "acorn-jsx": "^5.2.0", + "eslint-visitor-keys": "^1.3.0" }, "dependencies": { - "acorn": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz", - "integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==", + "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 } } @@ -1469,26 +1782,44 @@ "dev": true }, "esquery": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", - "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", + "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": "^4.0.0" + "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==", + "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": "^4.1.0" + "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 + } } }, "estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true }, "esutils": { "version": "2.0.3", @@ -1497,9 +1828,9 @@ "dev": true }, "events": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", - "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.2.0.tgz", + "integrity": "sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg==", "dev": true }, "evp_bytestokey": { @@ -1512,21 +1843,6 @@ "safe-buffer": "^5.1.1" } }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, "expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", @@ -1609,17 +1925,6 @@ } } }, - "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", @@ -1686,15 +1991,74 @@ } }, "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=", + "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 }, + "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" + } + }, + "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=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, "fast-levenshtein": { @@ -1703,21 +2067,21 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "figgy-pudding": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", - "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==", - "dev": true - }, - "figures": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.1.0.tgz", - "integrity": "sha512-ravh8VRXqHuMvZt/d8GblBeqDMkdJMBdv/2KntFH+ra5MXkO7nxNKpzQ3n6QD/2da1kH0aWmNISdvhM7gl2gVg==", + "fastq": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.8.0.tgz", + "integrity": "sha512-SMIZoZdLh/fgofivvIkmknUXyPnvxRE3DhtZ5Me3Mrsk5gyPL42F0xr51TdRXskBxHfMp+07bcYzfsYEsSQA9Q==", "dev": true, "requires": { - "escape-string-regexp": "^1.0.5" + "reusify": "^1.0.4" } }, + "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 + }, "file-entry-cache": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", @@ -1727,6 +2091,13 @@ "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 + }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -1782,634 +2153,94 @@ "resolve-dir": "^1.0.1" } }, - "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.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", - "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", - "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 - }, - "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" - } - }, - "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" - } - }, - "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=" - }, - "fsevents": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz", - "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==", - "dev": true, - "optional": true, - "requires": { - "nan": "^2.12.1", - "node-pre-gyp": "^0.12.0" - }, - "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.1", - "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": "4.1.1", - "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.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "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.3", - "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.1", - "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.3", - "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": "0.0.8", - "bundled": true, - "dev": true, - "optional": true - }, - "minipass": { - "version": "2.3.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.2.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.3.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "^4.1.0", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.12.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" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.4.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^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.0", - "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" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "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.6.3", - "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.0", - "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.8", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.4", - "minizlib": "^1.1.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.3", - "bundled": 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, - "optional": true, "requires": { - "string-width": "^1.0.2 || 2" + "glob": "^7.1.3" } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "yallist": { - "version": "3.0.3", - "bundled": true, - "dev": true, - "optional": true } } }, + "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 + }, + "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" + } + }, + "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" + } + }, + "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": "2.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", + "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", + "dev": true, + "optional": true + }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -2419,7 +2250,8 @@ "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=" + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true }, "get-caller-file": { "version": "2.0.5", @@ -2427,15 +2259,6 @@ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "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" - } - }, "get-value": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", @@ -2446,6 +2269,7 @@ "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", @@ -2456,24 +2280,12 @@ } }, "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "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": "^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, - "requires": { - "is-extglob": "^2.1.0" - } - } + "is-glob": "^4.0.1" } }, "global-modules": { @@ -2495,6 +2307,15 @@ "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" + } } } }, @@ -2509,17 +2330,42 @@ "ini": "^1.3.4", "is-windows": "^1.0.1", "which": "^1.2.14" + }, + "dependencies": { + "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" + } + } } }, "globals": { - "version": "12.3.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", - "integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", + "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" } }, + "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" + } + }, "graceful-fs": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", @@ -2571,13 +2417,39 @@ } }, "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", + "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.1", - "safe-buffer": "^5.0.1" + "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": { @@ -2616,15 +2488,6 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", "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", @@ -2638,9 +2501,9 @@ "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==", + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", "dev": true }, "import-fresh": { @@ -2651,14 +2514,6 @@ "requires": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" - }, - "dependencies": { - "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 - } } }, "import-local": { @@ -2687,6 +2542,7 @@ "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" @@ -2695,7 +2551,8 @@ "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true }, "ini": { "version": "1.3.5", @@ -2703,79 +2560,10 @@ "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true }, - "inquirer": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.3.tgz", - "integrity": "sha512-+OiOVeVydu4hnCGLCSX+wedovR/Yzskv9BFqUNNKq9uU2qg7LCcCo3R86S2E7WLo0y/x2pnEZfZe1CoYnORUAw==", - "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "chalk": "^2.4.2", - "cli-cursor": "^3.1.0", - "cli-width": "^2.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.15", - "mute-stream": "0.0.8", - "run-async": "^2.2.0", - "rxjs": "^6.5.3", - "string-width": "^4.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" - }, - "dependencies": { - "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 - }, - "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" - }, - "dependencies": { - "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" - } - } - } - } - } - }, "interpret": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", - "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", - "dev": true - }, - "invert-kv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", "dev": true }, "is-accessor-descriptor": { @@ -2799,12 +2587,13 @@ } }, "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=", + "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": "^1.0.0" + "binary-extensions": "^2.0.0" } }, "is-buffer": { @@ -2861,7 +2650,8 @@ "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true }, "is-fullwidth-code-point": { "version": "2.0.0", @@ -2873,6 +2663,7 @@ "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" } @@ -2906,18 +2697,6 @@ "isobject": "^3.0.1" } }, - "is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", - "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", - "dev": true - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", @@ -2955,9 +2734,9 @@ "dev": true }, "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "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", @@ -2997,23 +2776,14 @@ "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", "dev": true }, - "lcid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "dev": true, - "requires": { - "invert-kv": "^2.0.0" - } - }, "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "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.1.2", - "type-check": "~0.3.2" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" } }, "loader-runner": { @@ -3046,7 +2816,8 @@ "lodash": { "version": "4.17.15", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true }, "log-symbols": { "version": "2.2.0", @@ -3084,21 +2855,14 @@ "requires": { "pify": "^4.0.1", "semver": "^5.6.0" - } - }, - "mamacro": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", - "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", - "dev": true - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, - "requires": { - "p-defer": "^1.0.0" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } } }, "map-cache": { @@ -3127,17 +2891,6 @@ "safe-buffer": "^5.1.2" } }, - "mem": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", - "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", - "dev": true, - "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - } - }, "memory-fs": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", @@ -3148,6 +2901,12 @@ "readable-stream": "^2.0.1" } }, + "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", @@ -3177,14 +2936,16 @@ "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 + } } }, - "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 - }, "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -3201,6 +2962,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -3298,16 +3060,10 @@ "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==", + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", + "integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==", "dev": true, "optional": true }, @@ -3337,9 +3093,9 @@ "dev": true }, "neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", + "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 }, "next-tick": { @@ -3397,16 +3153,8 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, - "requires": { - "path-key": "^2.0.0" - } + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3485,78 +3233,35 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", - "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", "dev": true, "requires": { - "mimic-fn": "^2.1.0" + "wrappy": "1" } }, "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "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.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "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-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "dev": true, - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - } - }, - "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-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", "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==", + "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" @@ -3578,9 +3283,9 @@ "dev": true }, "pako": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", - "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", "dev": true }, "parallel-transform": { @@ -3604,14 +3309,13 @@ } }, "parse-asn1": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.5.tgz", - "integrity": "sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", + "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", "dev": true, "requires": { - "asn1.js": "^4.0.0", + "asn1.js": "^5.2.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" @@ -3639,7 +3343,8 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true + "dev": true, + "optional": true }, "path-exists": { "version": "3.0.0", @@ -3650,18 +3355,25 @@ "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=" + "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=", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "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 }, "pbkdf2": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", - "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", + "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", @@ -3671,6 +3383,12 @@ "sha.js": "^2.4.8" } }, + "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": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", @@ -3693,9 +3411,9 @@ "dev": true }, "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, "process": { @@ -3740,6 +3458,14 @@ "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": { @@ -3828,14 +3554,13 @@ } }, "readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "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": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" + "picomatch": "^2.2.1" } }, "regex-not": { @@ -3849,16 +3574,17 @@ } }, "regexpp": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", - "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", + "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", "dev": true }, "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 + "dev": true, + "optional": true }, "repeat-element": { "version": "1.1.3", @@ -3891,6 +3617,14 @@ "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": { @@ -3917,9 +3651,9 @@ } }, "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "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": { @@ -3928,45 +3662,25 @@ "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", "dev": true }, - "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 + }, "rimraf": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.0.tgz", - "integrity": "sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg==", + "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": { @@ -3979,14 +3693,11 @@ "inherits": "^2.0.1" } }, - "run-async": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", - "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", - "dev": true, - "requires": { - "is-promise": "^2.1.0" - } + "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", @@ -3997,15 +3708,6 @@ "aproba": "^1.1.1" } }, - "rxjs": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.4.tgz", - "integrity": "sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==", - "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", @@ -4039,16 +3741,19 @@ } }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", "dev": true }, "serialize-javascript": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz", - "integrity": "sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==", - "dev": true + "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" + } }, "set-blocking": { "version": "2.0.0", @@ -4096,24 +3801,24 @@ } }, "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "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": "^1.0.0" + "shebang-regex": "^3.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=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, "slice-ansi": { @@ -4376,6 +4081,23 @@ "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_decoder": { @@ -4388,33 +4110,35 @@ } }, "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "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": "^4.1.0" + "ansi-regex": "^5.0.0" } }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, "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==", + "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 }, "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==", + "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": "^3.0.0" + "has-flag": "^4.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 + } } }, "table": { @@ -4436,9 +4160,9 @@ "dev": true }, "terser": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.3.tgz", - "integrity": "sha512-Lw+ieAXmY69d09IIc/yqeBqXpEQIpDGZqT34ui1QWXIUpR2RjbqEkT8X7Lgex19hslSqcWM5iMN2kM11eMsESQ==", + "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", @@ -4455,16 +4179,16 @@ } }, "terser-webpack-plugin": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz", - "integrity": "sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==", + "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": "^2.1.2", + "serialize-javascript": "^4.0.0", "source-map": "^0.6.1", "terser": "^4.1.2", "webpack-sources": "^1.4.0", @@ -4485,12 +4209,6 @@ "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", @@ -4510,15 +4228,6 @@ "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", @@ -4568,14 +4277,16 @@ } }, "tslib": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", + "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", + "dev": true }, "tsutils": { "version": "3.17.1", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.17.1.tgz", "integrity": "sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g==", + "dev": true, "requires": { "tslib": "^1.8.1" } @@ -4593,12 +4304,12 @@ "dev": true }, "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "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.1.2" + "prelude-ls": "^1.2.1" } }, "type-fest": { @@ -4614,9 +4325,9 @@ "dev": true }, "typescript": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.2.tgz", - "integrity": "sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz", + "integrity": "sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==", "dev": true }, "union-value": { @@ -4693,12 +4404,13 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "dev": true + "dev": true, + "optional": true }, "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz", + "integrity": "sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g==", "dev": true, "requires": { "punycode": "^2.1.0" @@ -4756,9 +4468,9 @@ "dev": true }, "v8-compile-cache": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.0.3.tgz", - "integrity": "sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w==", + "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 }, "vm-browserify": { @@ -4768,47 +4480,196 @@ "dev": true }, "watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", + "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": "^2.0.2", + "chokidar": "^3.4.1", "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0" + "neo-async": "^2.5.0", + "watchpack-chokidar2": "^2.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" + }, + "dependencies": { + "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" + } + } + } + }, + "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 + }, + "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" + } + }, + "fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "dev": true, + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } + }, + "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" + } + } + } + }, + "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" + } + }, + "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" + } + } } }, "webpack": { - "version": "4.41.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.2.tgz", - "integrity": "sha512-Zhw69edTGfbz9/8JJoyRQ/pq8FYUoY0diOXqW0T6yhgdhCv6wr0hra5DwwWexNRns2Z2+gsnrNcbe9hbGBgk/A==", + "version": "4.44.2", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.44.2.tgz", + "integrity": "sha512-6KJVGlCxYdISyurpQ0IPTklv+DULv05rs2hseIXer6D7KrUicRDLFb4IUM1S6LUAKypPM/nSiVSuv8jHu1m3/Q==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-module-context": "1.8.5", - "@webassemblyjs/wasm-edit": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", - "acorn": "^6.2.1", + "@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.1.0", + "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.1", + "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.1", - "watchpack": "^1.6.0", + "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 + }, + "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" + } + } + } + }, "eslint-scope": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", @@ -4818,37 +4679,116 @@ "esrecurse": "^4.1.0", "estraverse": "^4.1.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.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" + } } } }, "webpack-cli": { - "version": "3.3.10", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.10.tgz", - "integrity": "sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg==", - "dev": true, - "requires": { - "chalk": "2.4.2", - "cross-spawn": "6.0.5", - "enhanced-resolve": "4.1.0", - "findup-sync": "3.0.0", - "global-modules": "2.0.0", - "import-local": "2.0.0", - "interpret": "1.2.0", - "loader-utils": "1.2.3", - "supports-color": "6.1.0", - "v8-compile-cache": "2.0.3", - "yargs": "13.2.4" + "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": { - "enhanced-resolve": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz", - "integrity": "sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==", + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.4.0", - "tapable": "^1.0.0" + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "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" + } + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "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 + }, + "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" + } + }, + "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" } } } @@ -4884,9 +4824,9 @@ } }, "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "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" @@ -4922,12 +4862,30 @@ "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=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "write": { "version": "1.0.3", @@ -4957,28 +4915,27 @@ "dev": true }, "yargs": { - "version": "13.2.4", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.4.tgz", - "integrity": "sha512-HG/DWAJa1PAnHT9JAhNa8AbAv3FPaiLzioSjCcmuXXhP8MlpHO5vwls4g4j6n30Z74GVQj8Xa62dWVx1QCGklg==", + "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", - "os-locale": "^3.1.0", "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.0" + "yargs-parser": "^13.1.2" } }, "yargs-parser": { - "version": "13.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz", - "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==", + "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", diff --git a/package.json b/package.json index 97cb80a..a310006 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "siema", - "version": "1.5.1", + "version": "1.5.2", "description": "Lightweight and simple carousel with no dependencies", "main": "dist/siema.js", "module": "dist/siema.js", @@ -9,14 +9,14 @@ "definition": "dist/siema.d.ts" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "2.16.0", - "@typescript-eslint/parser": "2.16.0", + "@typescript-eslint/eslint-plugin": "4.3.0", + "@typescript-eslint/parser": "4.3.0", "awesome-typescript-loader": "5.2.1", - "eslint": "6.8.0", - "rimraf": "3.0.0", - "typescript": "3.7.2", - "webpack": "4.41.2", - "webpack-cli": "3.3.10" + "eslint": "7.10.0", + "rimraf": "3.0.2", + "typescript": "4.0.3", + "webpack": "4.44.2", + "webpack-cli": "3.3.12" }, "scripts": { "clean": "rimraf dist",