diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..5d8b793 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,16 @@ +on: push + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: yarn install + - run: yarn build + - uses: JS-DevTools/npm-publish@v1 + with: + check-version: true + token: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 399159b..a720428 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,11 @@ .DS_Store node_modules -dist/demo.html -dist/vuejs-clipper.common.js -dist/vuejs-clipper.common.js.map -dist/vuejs-clipper.umd.js.map -dist/vuejs-clipper.umd.min.js.map +# dist/demo.html +# dist/vuejs-clipper.common.js +# dist/vuejs-clipper.common.js.map +# dist/vuejs-clipper.umd.js.map +# dist/vuejs-clipper.umd.min.js.map +dist/ docs # local env files .env.local diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..d30fd14 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "printWidth": 120, + "semi": false, + "trailingComma": "none", + "tabWidth": 2, + "singleQuote": true +} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 55ac164..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -arch: arm64 -os: linux -dist: focal -language: node_js -node_js: -- 10 -before_install: -- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.1 -- export PATH="$HOME/.yarn/bin:$PATH" -cache: - yarn: true - directories: - - node_modules -install: -- yarn install -script: -- yarn run build \ No newline at end of file diff --git a/README.md b/README.md index 2e8e115..03ce6f9 100644 --- a/README.md +++ b/README.md @@ -3,39 +3,39 @@ Vue.js image clipping components using Vue-Rx. [![not found](https://img.shields.io/npm/v/vuejs-clipper.svg)](https://www.npmjs.com/package/vuejs-clipper) -[![not found](https://api.travis-ci.org/timtnleeProject/vuejs-clipper.svg?branch=master)](https://travis-ci.org/timtnleeProject/vuejs-clipper#) +![status](https://github.com/timtnleeProject/vuejs-clipper/actions/workflows/publish.yml/badge.svg) -* Add image clipping components to your Vue application in nothing flat. -* Touch devices supported and fully responsive. +- Add image clipping components to your Vue application in nothing flat. +- Touch devices supported and fully responsive. ## Demo/Document You can find the source code of examples under the `examples` branch. -* [Live demo & examples](https://timtnleeproject.github.io/vuejs-clipper) -* [Quick Start](https://timtnleeproject.github.io/vuejs-clipper/#/examples/quick-start) -* [Try it on codepen](https://codepen.io/timtnlee/pen/vzzqRM) -* [README](https://github.com/timtnleeProject/vuejs-clipper#vuejs-clipper) -* [vuejs-clipper wiki](https://github.com/timtnleeProject/vuejs-clipper/wiki) +- [Live demo & examples](https://timtnleeproject.github.io/vuejs-clipper) +- [Quick Start](https://timtnleeproject.github.io/vuejs-clipper/#/examples/quick-start) +- [Try it on codepen](https://codepen.io/timtnlee/pen/vzzqRM) +- [README](https://github.com/timtnleeProject/vuejs-clipper#vuejs-clipper) +- [vuejs-clipper wiki](https://github.com/timtnleeProject/vuejs-clipper/wiki) ## Table of Contents -* [Notice](#notice) -* [Installation (NPM & ESM)](#installation-npm--esm) -* [Installation (Script)](#installation-script) -* [Components](#components) -* [Changelog](#changelog) +- [Notice](#notice) +- [Installation (NPM & ESM)](#installation-npm--esm) +- [Installation (Script)](#installation-script) +- [Components](#components) +- [Changelog](#changelog) ## Notice **Before using the plugin & components, here's something you should know:** -* It's based on [**vue-rx**](https://github.com/vuejs/vue-rx). -* [**rxjs**](https://github.com/ReactiveX/rxjs/tree/6.x) and [**vue-rx**](https://github.com/vuejs/vue-rx) are required as peer dependencies. -* Components are responsive base on **width** instead of height, see [Component Layout](https://github.com/timtnleeProject/vuejs-clipper/wiki/Component-layout). -* You can clip your images (local uploaded images or images served on your site), but you cannot clip a cross-origin image unless the image server sets the CORS headers. -* Components' **input** is an image URL, **output** is a canvas element, they only help you clip images to canvas, you need to handle other things like *transform file input to image URL* or *transform output canvas to image* by yourself. -* If you set the clipper to be *responsive*, for example: put it in a `Row, Col` system or set its width based on the container's width, *you will lose a little bit of precision*. The result of the clipper and the clip box position might not be that accurate. If you cannot tolerate the slippage, use fixed width `${width + border*2}px` on the clipper component like `width: 502px`. +- It's based on [**vue-rx**](https://github.com/vuejs/vue-rx). +- [**rxjs**](https://github.com/ReactiveX/rxjs/tree/6.x) and [**vue-rx**](https://github.com/vuejs/vue-rx) are required as peer dependencies. +- Components are responsive base on **width** instead of height, see [Component Layout](https://github.com/timtnleeProject/vuejs-clipper/wiki/Component-layout). +- You can clip your images (local uploaded images or images served on your site), but you cannot clip a cross-origin image unless the image server sets the CORS headers. +- Components' **input** is an image URL, **output** is a canvas element, they only help you clip images to canvas, you need to handle other things like _transform file input to image URL_ or _transform output canvas to image_ by yourself. +- If you set the clipper to be _responsive_, for example: put it in a `Row, Col` system or set its width based on the container's width, _you will lose a little bit of precision_. The result of the clipper and the clip box position might not be that accurate. If you cannot tolerate the slippage, use fixed width `${width + border*2}px` on the clipper component like `width: 502px`. ## Installation (NPM & ESM) @@ -59,31 +59,36 @@ import VueRx from 'vue-rx' // install vue-rx Vue.use(VueRx) ``` + Make sure to install **vue-rx** plugin first. ### Import -#### use dist files +#### use dist files (Recommanded) ```javascript -import Vue from "vue"; -import VueRx from "vue-rx"; +import Vue from 'vue' +import VueRx from 'vue-rx' // Use build files -import VuejsClipper from "vuejs-clipper/dist/vuejs-clipper.umd"; -import "vuejs-clipper/dist/vuejs-clipper.css"; +import VuejsClipper from 'vuejs-clipper/dist/vuejs-clipper.umd.min' +import 'vuejs-clipper/dist/vuejs-clipper.css' -Vue.use(VueRx); -Vue.use(VuejsClipper); +Vue.use(VueRx) +Vue.use(VuejsClipper) ``` #### use vuejs-clipper soruce +> Not Recommanded, through this way you need to make sure your project' sass and sass-loader version is supported + You are using `vuejs-clipper` directly with your build process(webpack etc). So make sure you have css loader, ex: `sass-loader` if you haven't installed : +> vuejs-clipper@4 only support `sass` (not `node-sass`) for this approach + ```bash -npm install -D sass-loader node-sass +npm install -D sass-loader sass ``` ```javascript @@ -104,10 +109,10 @@ register some components to global with default component name ```javascript Vue.use(VuejsClipper, { - components: { + components: { clipperBasic: true, clipperPreview: true - } + } }) ``` @@ -115,10 +120,10 @@ with the customized component name ```javascript Vue.use(VuejsClipper, { - components: { - clipperBasic: 'image-clipper-basic', - clipperPreview: 'my-preview' - } + components: { + clipperBasic: 'image-clipper-basic', + clipperPreview: 'my-preview' + } }) ``` @@ -127,7 +132,7 @@ not register any components, but with some plugin options ```javascript Vue.use(VuejsClipper, { components: null, - parentPropName: 'myCustomerName' + parentPropName: 'myCustomerName' /* parentPropName: Vuejs-clipper Adds property to Vue instance in order to store `clipper-preview` list. @@ -172,7 +177,7 @@ Include vuejs-clipper umd script after Vue.js. - + ``` Use in html/template @@ -185,11 +190,11 @@ Use in html/template ![404](https://timtnleeproject.github.io/vuejs-clipper/doc-components.png) -* [clipperBasic](#clipper-basic) -* [clipperFixed](#clipper-fixed) -* [clipperPreview](#clipper-preview) -* [clipperUpload](#clipper-upload) -* [clipperRange](#clipper-range) +- [clipperBasic](#clipper-basic) +- [clipperFixed](#clipper-fixed) +- [clipperPreview](#clipper-preview) +- [clipperUpload](#clipper-upload) +- [clipperRange](#clipper-range) See detail [examples](https://timtnleeproject.github.io/vuejs-clipper/#/examples). @@ -201,48 +206,48 @@ an image clipping component import { clipperBasic } from 'vuejs-clipper' ``` -* Props - -|Prop|Type|default|description| -|--------|-------:|------:|:-----| -| src | string| | image src | -| preview| string | | matches `clipper-preview`'s name to show preview image.| -| border | number| 1 | border width | -| outline| number | 6 | outlines near by the border to help user zooming. | -| corner | boolean| true | show corner layout | -| grid | boolean| true | show grid layout| -| ratio | number | | ratio of clipping area (width/height). ex: `1`, `4/3` .| -| wrap-ratio | number | NaN |ratio of clipping container (width/height). ex: `1`, `4/3` .| -| mode | 'normal'/'switch' | 'normal' | if ratio is set, this prop will affect how clipping area zoom.| -|bg-color |string | 'white' | background color| -|lineColor|string|'#1baae8'|clip box line color| -|shadow|string|'rgba(0,0,0,0.4)'|shadow color| -|rotate | number | 0 | rotate degree | -|scale | number | 1 | transform scale | -|min-width|number|1|minimum width(%) of clipping box related to clipping component's width| -|min-height|number|1|minimum height(%) of clipping box related to clipping component's height.| -|init-width|number|50|clipping area's width(%) when the image loaded.| -|init-height|number|50|clipping area's height(%) when the image loaded.| -|touch-create| boolean | true | enable/disable create new clipping area on touch device | -|cross-origin|string|undefined|`crossorigin` attribute of `` inside clipper. ex: `anonymous`| +- Props + +| Prop | Type | default | description | +| ------------ | ----------------: | ----------------: | :------------------------------------------------------------------------ | +| src | string | | image src | +| preview | string | | matches `clipper-preview`'s name to show preview image. | +| border | number | 1 | border width | +| outline | number | 6 | outlines near by the border to help user zooming. | +| corner | boolean | true | show corner layout | +| grid | boolean | true | show grid layout | +| ratio | number | | ratio of clipping area (width/height). ex: `1`, `4/3` . | +| wrap-ratio | number | NaN | ratio of clipping container (width/height). ex: `1`, `4/3` . | +| mode | 'normal'/'switch' | 'normal' | if ratio is set, this prop will affect how clipping area zoom. | +| bg-color | string | 'white' | background color | +| lineColor | string | '#1baae8' | clip box line color | +| shadow | string | 'rgba(0,0,0,0.4)' | shadow color | +| rotate | number | 0 | rotate degree | +| scale | number | 1 | transform scale | +| min-width | number | 1 | minimum width(%) of clipping box related to clipping component's width | +| min-height | number | 1 | minimum height(%) of clipping box related to clipping component's height. | +| init-width | number | 50 | clipping area's width(%) when the image loaded. | +| init-height | number | 50 | clipping area's height(%) when the image loaded. | +| touch-create | boolean | true | enable/disable create new clipping area on touch device | +| cross-origin | string | undefined | `crossorigin` attribute of `` inside clipper. ex: `anonymous` | For more detail about the layout settings, pleases see [Component layout in depth](https://github.com/timtnleeProject/vuejs-clipper/wiki/Component-layout-in-depth). -* Methods +- Methods -| method | argument | return| description | -|-|-|-|-| -| clip | options | canvas element |get clipping canvas element| -|getDrawPos||`{pos, translate}`: positions and transformation|get result canvas information| +| method | argument | return | description | +| ---------- | -------- | ------------------------------------------------ | ----------------------------- | +| clip | options | canvas element | get clipping canvas element | +| getDrawPos | | `{pos, translate}`: positions and transformation | get result canvas information | `clip()` arguments [Resulting-canvas-size](https://github.com/timtnleeProject/vuejs-clipper/wiki/Resulting-canvas-size) -|name|type|default|description| -|-|-|-|-| -|options.wPixel|number|undefined|Set the the width (pixel) of result canvas.| -|options.maxWPixel|number|undefined|Set the the maximum width (pixel) of result canvas.| +| name | type | default | description | +| ----------------- | ------ | --------- | --------------------------------------------------- | +| options.wPixel | number | undefined | Set the the width (pixel) of result canvas. | +| options.maxWPixel | number | undefined | Set the the maximum width (pixel) of result canvas. | set ref to use component methods @@ -256,12 +261,12 @@ in your Vue instance methods const canvas = this.$refs.clipper.clip() ``` -* Event +- Event -|event|parameters|description| -|-|-|-| -|load|$event|image onload| -|error|$error|image onerror| +| event | parameters | description | +| ----- | ---------- | ------------- | +| load | \$event | image onload | +| error | \$error | image onerror | usage : @@ -269,13 +274,13 @@ usage : ``` -* Data +- Data -|data |type | default|description| -|-|-|-|-| -|imgRatio|number|NaN|upload image's ratio (image naturalWidth/natrualHeight). Default value is NaN, after the load event the value will be set.| -|zoomTL$|object||clipping area's position(%), can be top/bottom and left/right.| -|zoomWH$|object||clipping area's width and height(%)| +| data | type | default | description | +| -------- | ------ | ------- | -------------------------------------------------------------------------------------------------------------------------- | +| imgRatio | number | NaN | upload image's ratio (image naturalWidth/natrualHeight). Default value is NaN, after the load event the value will be set. | +| zoomTL\$ | object | | clipping area's position(%), can be top/bottom and left/right. | +| zoomWH\$ | object | | clipping area's width and height(%) | usage : @@ -284,11 +289,11 @@ this.$refs.clipper.imgRatio this.$refs.clipper.zoomWH$.width ``` -* Slot +- Slot -|slot|description| -|-|-| -|placeholder|if no `src` provided, show placeholder| +| slot | description | +| ----------- | -------------------------------------- | +| placeholder | if no `src` provided, show placeholder | ```html @@ -296,13 +301,13 @@ this.$refs.clipper.zoomWH$.width ``` -* rxjs Subject +- rxjs Subject -|subject|description| -|-|-| -|setTL$|Set the position of the zooming area.| -|setWH$|Set the width and height of the zooming area.| -|onChange$|Subject that subscribes to zooming, moving, and rotating subjects.| +| subject | description | +| ---------- | ------------------------------------------------------------------ | +| setTL\$ | Set the position of the zooming area. | +| setWH\$ | Set the width and height of the zooming area. | +| onChange\$ | Subject that subscribes to zooming, moving, and rotating subjects. | usage: @@ -324,68 +329,68 @@ an image clipping component import { clipperFixed } from 'vuejs-clipper' ``` -* Props - -| Prop | Type |default|description | -|:--------|-------:|------:|:-----| -| src | string| | image src | -| preview| string | | matches `clipper-preview`'s name to show preview image.| -| ratio | number | 1 | ratio of clipping area (width/height). ex: `1`, `4/3` .| -| zoom-rate| number | 0.04 | zooming faster if this value is larger| -|min-scale | number| 0.1 | minimum transform scale | -| border | number| 1 | border width | -|border-color|string|'white'|border color| -| grid | boolean| true | show grid layout| -| round | boolean | false | Use a round clipping area, this only effect the component layout, clipping results are still rectangular. | -| bg-color |string | 'white' | background color| -|shadow|string|'rgba(0,0,0,0.4)'|shadow color| -|rotate | number | 0 | rotate degree | -| area | number | 50 | width or height (%) of clipping box(depends on ratio). | -|cross-origin|string|undefined|`crossorigin` attribute of `` inside clipper. ex: `anonymous`| -|handle-zoom-event|function|`(scale) => scale`|handle zooming, accept the calculated scale value, return the scale value.| - -* Method - -| method | argument | return| description | -|-|-|-|-| -| clip | options | canvas element |get clipping canvas element.| -|getDrawPos||`{pos, translate}`: positions and transformation|get result canvas information| +- Props + +| Prop | Type | default | description | +| :---------------- | -------: | -----------------: | :---------------------------------------------------------------------------------------------- | +| src | string | | image src | +| preview | string | | matches `clipper-preview`'s name to show preview image. | +| ratio | number | 1 | ratio of clipping area (width/height). ex: `1`, `4/3` . | +| zoom-rate | number | 0.04 | zooming faster if this value is larger | +| min-scale | number | 0.1 | minimum transform scale | +| border | number | 1 | border width | +| border-color | string | 'white' | border color | +| grid | boolean | true | show grid layout | +| round | boolean | false | Use a round clipping area, this only effect the component layout, also affect clipping results. | +| bg-color | string | 'white' | background color | +| shadow | string | 'rgba(0,0,0,0.4)' | shadow color | +| rotate | number | 0 | rotate degree | +| area | number | 50 | width or height (%) of clipping box(depends on ratio). | +| cross-origin | string | undefined | `crossorigin` attribute of `` inside clipper. ex: `anonymous` | +| handle-zoom-event | function | `(scale) => scale` | handle zooming, accept the calculated scale value, return the scale value. | + +- Method + +| method | argument | return | description | +| ---------- | -------- | ------------------------------------------------ | ----------------------------- | +| clip | options | canvas element | get clipping canvas element. | +| getDrawPos | | `{pos, translate}`: positions and transformation | get result canvas information | `clip()` arguments -|name|type|default|description| -|-|-|-|-| -|options.wPixel|number|undefined|Set the the width (pixel) of result canvas.| -|options.maxWPixel|number|undefined|Set the the maximum width (pixel) of result canvas.| +| name | type | default | description | +| ----------------- | ------ | --------- | --------------------------------------------------- | +| options.wPixel | number | undefined | Set the the width (pixel) of result canvas. | +| options.maxWPixel | number | undefined | Set the the maximum width (pixel) of result canvas. | -* Event +- Event -|event|parameters|description| -|-|-|-| -|load|$event|image onload| -|error|$error|image onerror| +| event | parameters | description | +| ----- | ---------- | ------------- | +| load | \$event | image onload | +| error | \$error | image onerror | -* Data +- Data -|data |type | default|description| -|-|-|-|-| -|imgRatio|number|NaN|upload image's ratio (image naturalWidth/natrualHeight). Default value is NaN, after the load event the value will be set.| -|bgTL$|object||image's translate(X,Y)| -|bgWH$|number||image's scaling| +| data | type | default | description | +| -------- | ------ | ------- | -------------------------------------------------------------------------------------------------------------------------- | +| imgRatio | number | NaN | upload image's ratio (image naturalWidth/natrualHeight). Default value is NaN, after the load event the value will be set. | +| bgTL\$ | object | | image's translate(X,Y) | +| bgWH\$ | number | | image's scaling | -* Slot +- Slot -|slot|description| -|-|-| -|placeholder|if no `src` provided, show placeholder| +| slot | description | +| ----------- | -------------------------------------- | +| placeholder | if no `src` provided, show placeholder | -* rxjs Subject +- rxjs Subject -|subject|description| -|-|-| -|setTL$|Set the top and left of the image.| -|setWH$|Set the sizing(scaling) of the image.| -|onChange$|Subject that subscribes to zooming, moving, and rotating subjects.| +| subject | description | +| ---------- | ------------------------------------------------------------------ | +| setTL\$ | Set the top and left of the image. | +| setWH\$ | Set the sizing(scaling) of the image. | +| onChange\$ | Subject that subscribes to zooming, moving, and rotating subjects. | usage: @@ -406,17 +411,17 @@ preview clipping result import { clipperPreview } from 'vuejs-clipper' ``` -* Props +- Props -| Prop | Type |default|description | -|--------|-------:|------:|:-----| -| name | string | | name that matches clipper component's preview property | +| Prop | Type | default | description | +| ---- | -----: | ------: | :----------------------------------------------------- | +| name | string | | name that matches clipper component's preview property | -* Slot +- Slot -|slot|description| -|-|-| -|placeholder|if no `src` provided, show placeholder| +| slot | description | +| ----------- | -------------------------------------- | +| placeholder | if no `src` provided, show placeholder | ### clipper-range @@ -428,12 +433,12 @@ import { clipperRange } from 'vuejs-clipper' use `v-model` binding data with `clipper-range` -* Props +- Props -| Prop|Type|default|description | -|--------|-------:|------:|:-----| -| max | number | 10 | maximum value of range | -| min | number | 0 | minimum value of range | +| Prop | Type | default | description | +| ---- | -----: | ------: | :--------------------- | +| max | number | 10 | maximum value of range | +| min | number | 0 | minimum value of range | ### clipper-upload @@ -447,101 +452,115 @@ import { clipperUpload } from 'vuejs-clipper' use `v-model` binding data with `clipper-upload` -* Props +- Props Props that are not defined below will apply to the file input as attributes, for example: `accept`, `id`, and `name`. -| Prop|Type|default|description | -|-|-:|-:|:-| -|check|boolean|true|Check if upload file is an image. If set to `true`, when upload files that are not images, it will do nothing, so you will not get an error event on the clipping component.| -|exif|boolean|true|Transform EXIF image to correct orientation when uploading.| +| Prop | Type | default | description | +| ----- | ------: | ------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| check | boolean | true | Check if upload file is an image. If set to `true`, when upload files that are not images, it will do nothing, so you will not get an error event on the clipping component. | +| exif | boolean | true | Transform EXIF image to correct orientation when uploading. | -* Event +- Event -|event|parameters|description| -|-|-|-| -|input|$event|Result domgstring on change| +| event | parameters | description | +| ----- | ---------- | --------------------------- | +| input | \$event | Result domgstring on change | -* Data +- Data -|data|type|default|description| -|-|-|-|-| -|file|File Object|null|Uploaded file's original File Object.| +| data | type | default | description | +| ---- | ----------- | ------- | ------------------------------------- | +| file | File Object | null | Uploaded file's original File Object. | ## Changelog -* 3.1.2 - * Fix touch devices zooming bug: [#91](https://github.com/timtnleeProject/vuejs-clipper/issues/91) -* 3.1.1 - * Fix [#82](https://github.com/timtnleeProject/vuejs-clipper/issues/82) -* 3.1.0 - * Fix `clipper-basic` ratio is not correct. +- 4.1.0 + - `clipper-fixed`: if prop `round` is `true`, result image will clip in rounded background [#119](https://github.com/timtnleeProject/vuejs-clipper/issues/119). +- 4.0.0 + + - Use dart-sass instead of node-sass. + - update sass syntax: use `math.div` instead of `/` + +--- + +- 3.2.0 + + - [Deprecated] should be `4.0.0` + +- 3.1.2 + - Fix touch devices zooming bug: [#91](https://github.com/timtnleeProject/vuejs-clipper/issues/91) +- 3.1.1 + - Fix [#82](https://github.com/timtnleeProject/vuejs-clipper/issues/82) +- 3.1.0 + - Fix `clipper-basic` ratio is not correct. > !Before v3.1.0, `clipper-basic` with `ratio` prop has a bug that the clip area is not calculated correctly with `border` prop, so the ratio of the clipping result isn't precise. (issue [#80](https://github.com/timtnleeProject/vuejs-clipper/issues/80)) -* 3.0.4 - * `clipper-upload` accept rest props as input attributes. -* 3.0.3 - * Feature: Add `handleZoomEvent` to `clipper-fixed` for controlling zoom behavior. (issue [#54](https://github.com/timtnleeProject/vuejs-clipper/issues/54) -* 3.0.2 - * Fix: move clipper-basic init/reset position function into `$nextTick` (issue [#71](https://github.com/timtnleeProject/vuejs-clipper/issues/71)) -* 3.0.1 - * Fix clipper-basic initalize ratio clip-box & wrong border layout. -* 3.0.0 - * Move `rxjs`, `vue-rx` from dependencies to peer dependencies. +- 3.0.4 + - `clipper-upload` accept rest props as input attributes. +- 3.0.3 + - Feature: Add `handleZoomEvent` to `clipper-fixed` for controlling zoom behavior. (issue [#54](https://github.com/timtnleeProject/vuejs-clipper/issues/54) +- 3.0.2 + - Fix: move clipper-basic init/reset position function into `$nextTick` (issue [#71](https://github.com/timtnleeProject/vuejs-clipper/issues/71)) +- 3.0.1 + - Fix clipper-basic initalize ratio clip-box & wrong border layout. +- 3.0.0 + - Move `rxjs`, `vue-rx` from dependencies to peer dependencies. --- -* 2.1.2 - * Fix `clipper-basic` incorrect layout for scaling & rotation (bug of 2.1.1). -* 2.1.1 - * Fix `clipper-basic` incorrect layout for verticle images on Firefox. -* 2.1.0 - * Fix broken `wrap-ratio`. -* 2.0.0 - * Change css naming to BEM. +- 2.1.2 + - Fix `clipper-basic` incorrect layout for scaling & rotation (bug of 2.1.1). +- 2.1.1 + - Fix `clipper-basic` incorrect layout for verticle images on Firefox. +- 2.1.0 + - Fix broken `wrap-ratio`. +- 2.0.0 + - Change css naming to BEM. --- -* 1.1.6 - * Update dependencies. -* 1.1.5 - * Add new prop `area` for `clipper-fixed`. -* 1.1.4 - * Add `crossorigin` attribute biding for `` in clipper (`crossOrigin` prop). -* 1.1.3 - * Add `!important` statements to components' style. -* 1.1.2 - * Set pixel of `clip` result canvas. `clip({ wPixel, maxWPixel })` -* 1.1.1 - * Add `clipper-fixed` placeholder slot. -* 1.1.0 - * Fixed `clipper-basic` props `ratio` and `wrapRatio` behaviors, now `ratio` will not affect clipper's layout since there's `wrapRatio` to control the layout. -* 1.0.1 - * Fixed `clipper-fixed` loading images overflow. - * Add `wrapRatio`, `initWidth` and `initHeight` props to `clipper-basic` -* 1.0.0 - * Change the `clipper-basic` design, it will judge layout depends on the ratio. - * Production version. +- 1.1.6 + - Update dependencies. +- 1.1.5 + - Add new prop `area` for `clipper-fixed`. +- 1.1.4 + - Add `crossorigin` attribute biding for `` in clipper (`crossOrigin` prop). +- 1.1.3 + - Add `!important` statements to components' style. +- 1.1.2 + - Set pixel of `clip` result canvas. `clip({ wPixel, maxWPixel })` +- 1.1.1 + - Add `clipper-fixed` placeholder slot. +- 1.1.0 + - Fixed `clipper-basic` props `ratio` and `wrapRatio` behaviors, now `ratio` will not affect clipper's layout since there's `wrapRatio` to control the layout. +- 1.0.1 + - Fixed `clipper-fixed` loading images overflow. + - Add `wrapRatio`, `initWidth` and `initHeight` props to `clipper-basic` +- 1.0.0 + - Change the `clipper-basic` design, it will judge layout depends on the ratio. + - Production version. + --- -* 0.2.13 - * Decrease css specificity -* 0.2.12 - * Fixed [issue #13][issue13] -* 0.2.11 - * Expose rxjs subjects that can [set position and layout of the movable area](https://timtnleeproject.github.io/vuejs-clipper/#/examples/set-layout). -* 0.2.10 - * Use passive event listener on wheel event ([issue #8][issue8]). -* 0.2.9 - * New prop `border-color` for `clipper-fixed` - * Fixed [issue #4][issue4] -* 0.2.8 - * New prop `accept` for `clipper-upload` ([issue #1][issue1]) - * Add EXIF image transformation feature to clipper-upload ([issue #2][issue2]) - -[issue1]:https://github.com/timtnleeProject/vuejs-clipper/issues/1 -[issue2]:https://github.com/timtnleeProject/vuejs-clipper/issues/2 -[issue4]:https://github.com/timtnleeProject/vuejs-clipper/issues/4 -[issue8]:https://github.com/timtnleeProject/vuejs-clipper/issues/8 -[issue13]:https://github.com/timtnleeProject/vuejs-clipper/issues/13 +- 0.2.13 + - Decrease css specificity +- 0.2.12 + - Fixed [issue #13][issue13] +- 0.2.11 + - Expose rxjs subjects that can [set position and layout of the movable area](https://timtnleeproject.github.io/vuejs-clipper/#/examples/set-layout). +- 0.2.10 + - Use passive event listener on wheel event ([issue #8][issue8]). +- 0.2.9 + - New prop `border-color` for `clipper-fixed` + - Fixed [issue #4][issue4] +- 0.2.8 + - New prop `accept` for `clipper-upload` ([issue #1][issue1]) + - Add EXIF image transformation feature to clipper-upload ([issue #2][issue2]) + +[issue1]: https://github.com/timtnleeProject/vuejs-clipper/issues/1 +[issue2]: https://github.com/timtnleeProject/vuejs-clipper/issues/2 +[issue4]: https://github.com/timtnleeProject/vuejs-clipper/issues/4 +[issue8]: https://github.com/timtnleeProject/vuejs-clipper/issues/8 +[issue13]: https://github.com/timtnleeProject/vuejs-clipper/issues/13 diff --git a/dist/vuejs-clipper.css b/dist/vuejs-clipper.css deleted file mode 100644 index e20cdec..0000000 --- a/dist/vuejs-clipper.css +++ /dev/null @@ -1 +0,0 @@ -.wrap[data-v-6f79f498]{width:100%;position:relative;overflow:hidden}.shim[data-v-6f79f498]{display:block;width:100%;position:relative;top:0;left:0}.img-pos[data-v-6f79f498]{position:absolute;top:0;left:0;width:100%;-webkit-transform-origin:0 0;transform-origin:0 0}.img-rotate[data-v-6f79f498]{position:relative;top:0;left:0;width:100%;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.img[data-v-6f79f498]{left:0;top:0;position:relative;width:100%;display:block}.clipper-range[data-v-27132352]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:10px}.wrap[data-v-27132352]{position:relative;height:25px;width:100%}.stick[data-v-27132352]{position:absolute;width:100%;height:2px;background-color:grey;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bar[data-v-27132352]{position:absolute;cursor:pointer;width:12px;height:100%;background-color:#fff;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.5);box-shadow:1px 1px 4px rgba(0,0,0,.5);top:0;left:0}.vertical.vuejs-clipper-basic__img-wrap .vuejs-clipper-basic__img[data-v-61e9bce2]{width:auto!important;height:100%!important}.vuejs-clipper-basic__img-wrap[data-v-61e9bce2]{position:relative!important;width:100%!important;height:100%!important;overflow:hidden!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important}.vuejs-clipper-basic__img-wrap .vuejs-clipper-basic__img[data-v-61e9bce2]{position:relative!important}.vuejs-clipper-basic__img-wrap .vuejs-clipper-basic__img[data-v-61e9bce2],.vuejs-clipper-basic__stem-canvas[data-v-61e9bce2]{width:100%!important;display:block!important;pointer-events:none!important}.vuejs-clipper-basic__padding[data-v-61e9bce2]{position:relative!important;width:100%!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;overflow:hidden}.vuejs-clipper-basic__in-pad[data-v-61e9bce2]{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important}.vuejs-clipper-basic__img-scale[data-v-61e9bce2]{pointer-events:none!important;position:relative!important;width:100%!important;height:100%!important;top:0;left:0;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.vuejs-clipper-basic__clip-area[data-v-61e9bce2]{position:relative!important;width:100%!important;height:100%!important;cursor:crosshair}.vuejs-clipper-basic__zoom-area[data-v-61e9bce2]{position:absolute!important;overflow:visible!important}.vuejs-clipper-basic__corner[data-v-61e9bce2]{position:absolute;border-color:#fff;border-style:solid;width:10px;height:10px;opacity:.7}.vuejs-clipper-basic__corner[data-v-61e9bce2]:hover{opacity:1}.vuejs-clipper-basic__corner1[data-v-61e9bce2]{top:0;left:0;border-width:3px 0 0 3px;cursor:nwse-resize}.vuejs-clipper-basic__corner2[data-v-61e9bce2]{top:0;right:0;border-width:3px 3px 0 0;cursor:nesw-resize}.vuejs-clipper-basic__corner3[data-v-61e9bce2]{bottom:0;right:0;border-width:0 3px 3px 0;cursor:nwse-resize}.vuejs-clipper-basic__corner4[data-v-61e9bce2]{bottom:0;left:0;border-width:0 0 3px 3px;cursor:nesw-resize}.vuejs-clipper-basic__extend[data-v-61e9bce2]{color:#fff;top:0;left:0;width:100%;height:100%;cursor:move}.vuejs-clipper-basic__extend--outer[data-v-61e9bce2]{width:100%;height:100%;position:absolute;border-style:solid;-webkit-box-sizing:content-box;box-sizing:content-box;opacity:0;-webkit-transition:opacity .5s;transition:opacity .5s}.vuejs-clipper-basic__extend--outer[data-v-61e9bce2]:hover{opacity:.3}.vuejs-clipper-basic__extend--inner[data-v-61e9bce2]{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.vuejs-clipper-basic__extend--inner:hover .vuejs-clipper-basic__drag-inset[data-v-61e9bce2]{opacity:.3}.vuejs-clipper-basic__extend--inner:hover .vuejs-clipper-basic__drag-inset:hover.vuejs-clipper-basic__drag-inset[data-v-61e9bce2]{opacity:0}.vuejs-clipper-basic__drag-inset[data-v-61e9bce2]{position:relative;-webkit-box-shadow:0 0 0 4080px #fff;box-shadow:0 0 0 4080px #fff;top:0;left:0;width:100%;height:100%;cursor:-webkit-grab;cursor:grab;opacity:0;-webkit-transition:opacity .5s;transition:opacity .5s}.vuejs-clipper-basic__grid[data-v-61e9bce2]{width:100%;height:100%;position:absolute;top:0;left:0;pointer-events:none}.vuejs-clipper-basic__grid-item[data-v-61e9bce2]{position:absolute;border-color:hsla(0,0%,100%,.7);border-style:dashed;width:50%;height:50%;-webkit-box-sizing:border-box;box-sizing:border-box}.vuejs-clipper-basic__grid-item[data-v-61e9bce2]:first-child{top:0;left:0;border-width:0 1px 1px 0;-webkit-transform:translate(.5px,.5px);transform:translate(.5px,.5px)}.vuejs-clipper-basic__grid-item[data-v-61e9bce2]:nth-child(2){top:0;right:0;border-width:0 0 1px 0;-webkit-transform:translate(-.5px,.5px);transform:translate(-.5px,.5px)}.vuejs-clipper-basic__grid-item[data-v-61e9bce2]:nth-child(3){bottom:0;left:0;border-width:0 1px 0 0;-webkit-transform:translate(.5px,-.5px);transform:translate(.5px,-.5px)}.vuejs-clipper-basic__grid-item[data-v-61e9bce2]:nth-child(4){bottom:0;right:0;border-width:0;-webkit-transform:translate(-.5px,-.5px);transform:translate(-.5px,-.5px)}.vuejs-clipper-fixed__wrap[data-v-413e3c3e]{position:relative!important;overflow:hidden!important;width:100%!important;height:100%!important;cursor:-webkit-grab;cursor:grab}.vuejs-clipper-fixed__stem-outer[data-v-413e3c3e]{display:block!important}.vuejs-clipper-fixed__stem-bg[data-v-413e3c3e],.vuejs-clipper-fixed__stem-outer[data-v-413e3c3e]{position:relative!important;top:0!important;left:0!important;width:100%!important}.vuejs-clipper-fixed__img-center[data-v-413e3c3e]{width:100%!important;position:absolute!important;top:50%!important;left:50%!important;-webkit-transform:translate(-50%,-50%)!important;transform:translate(-50%,-50%)!important}.vuejs-clipper-fixed__img-scale[data-v-413e3c3e],.vuejs-clipper-fixed__img-translate[data-v-413e3c3e]{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important}.vuejs-clipper-fixed__img[data-v-413e3c3e]{position:absolute!important;top:0!important;left:0!important;width:100%!important;display:block!important}.vuejs-clipper-fixed__cover[data-v-413e3c3e]{pointer-events:none!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;overflow:hidden!important}.vuejs-clipper-fixed__area[data-v-413e3c3e]{position:absolute!important;top:50%!important;left:50%!important;-webkit-transform:translate(-50%,-50%)!important;transform:translate(-50%,-50%)!important;border-style:solid}.vuejs-clipper-fixed__stem-area[data-v-413e3c3e]{display:block!important;position:relative!important}.vuejs-clipper-fixed__grid[data-v-413e3c3e]{width:100%;height:100%;position:absolute;top:0;left:0;pointer-events:none}.vuejs-clipper-fixed__grid-item[data-v-413e3c3e]{position:absolute;border-color:hsla(0,0%,100%,.7);border-style:dashed;width:50%;height:50%;-webkit-box-sizing:border-box;box-sizing:border-box}.vuejs-clipper-fixed__grid-item[data-v-413e3c3e]:first-child{top:0;left:0;border-width:0 1px 1px 0;-webkit-transform:translate(.5px,.5px);transform:translate(.5px,.5px)}.vuejs-clipper-fixed__grid-item[data-v-413e3c3e]:nth-child(2){top:0;right:0;border-width:0 0 1px 0;-webkit-transform:translate(-.5px,.5px);transform:translate(-.5px,.5px)}.vuejs-clipper-fixed__grid-item[data-v-413e3c3e]:nth-child(3){bottom:0;left:0;border-width:0 1px 0 0;-webkit-transform:translate(.5px,-.5px);transform:translate(.5px,-.5px)}.vuejs-clipper-fixed__grid-item[data-v-413e3c3e]:nth-child(4){bottom:0;right:0;border-width:0;-webkit-transform:translate(-.5px,-.5px);transform:translate(-.5px,-.5px)} \ No newline at end of file diff --git a/dist/vuejs-clipper.umd.js b/dist/vuejs-clipper.umd.js deleted file mode 100644 index 1346fe7..0000000 --- a/dist/vuejs-clipper.umd.js +++ /dev/null @@ -1,12720 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(); - else if(typeof define === 'function' && define.amd) - define([], factory); - else if(typeof exports === 'object') - exports["vuejs-clipper"] = factory(); - else - root["vuejs-clipper"] = factory(); -})((typeof self !== 'undefined' ? self : this), function() { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "fb15"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "00ee": -/***/ (function(module, exports, __webpack_require__) { - -var wellKnownSymbol = __webpack_require__("b622"); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var test = {}; - -test[TO_STRING_TAG] = 'z'; - -module.exports = String(test) === '[object z]'; - - -/***/ }), - -/***/ "0366": -/***/ (function(module, exports, __webpack_require__) { - -var aFunction = __webpack_require__("1c0b"); - -// optional / simple context binding -module.exports = function (fn, that, length) { - aFunction(fn); - if (that === undefined) return fn; - switch (length) { - case 0: return function () { - return fn.call(that); - }; - case 1: return function (a) { - return fn.call(that, a); - }; - case 2: return function (a, b) { - return fn.call(that, a, b); - }; - case 3: return function (a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function (/* ...args */) { - return fn.apply(that, arguments); - }; -}; - - -/***/ }), - -/***/ "057f": -/***/ (function(module, exports, __webpack_require__) { - -var toIndexedObject = __webpack_require__("fc6a"); -var nativeGetOwnPropertyNames = __webpack_require__("241c").f; - -var toString = {}.toString; - -var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) : []; - -var getWindowNames = function (it) { - try { - return nativeGetOwnPropertyNames(it); - } catch (error) { - return windowNames.slice(); - } -}; - -// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -module.exports.f = function getOwnPropertyNames(it) { - return windowNames && toString.call(it) == '[object Window]' - ? getWindowNames(it) - : nativeGetOwnPropertyNames(toIndexedObject(it)); -}; - - -/***/ }), - -/***/ "06cf": -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__("83ab"); -var propertyIsEnumerableModule = __webpack_require__("d1e7"); -var createPropertyDescriptor = __webpack_require__("5c6c"); -var toIndexedObject = __webpack_require__("fc6a"); -var toPrimitive = __webpack_require__("c04e"); -var has = __webpack_require__("5135"); -var IE8_DOM_DEFINE = __webpack_require__("0cfb"); - -var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -// `Object.getOwnPropertyDescriptor` method -// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor -exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { - O = toIndexedObject(O); - P = toPrimitive(P, true); - if (IE8_DOM_DEFINE) try { - return nativeGetOwnPropertyDescriptor(O, P); - } catch (error) { /* empty */ } - if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); -}; - - -/***/ }), - -/***/ "0bd0": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b2dfcbc4-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-preview.vue?vue&type=template&id=6f79f498&scoped=true& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"preview"},[_c('div',{staticClass:"wrap",style:(_vm.wrapStyle)},[_c('canvas',{staticClass:"shim",attrs:{"width":_vm.outerWidth,"height":_vm.outerHeight}}),_c('div',{staticClass:"img-pos",style:(_vm.styleObj)},[_c('div',{staticClass:"img-rotate",style:(_vm.rotateStyle)},[_c('img',{staticClass:"img",attrs:{"src":_vm.src},on:{"load":_vm.imgLoaded}})])])]),_c('div',{staticClass:"placeholder",style:(_vm.eptStyle)},[_vm._t("placeholder")],2)])} -var staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/components/clipper-preview.vue?vue&type=template&id=6f79f498&scoped=true& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js -var es_array_concat = __webpack_require__("99af"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js -var es_function_name = __webpack_require__("b0c0"); - -// EXTERNAL MODULE: ./src/namespace.js -var namespace = __webpack_require__("0f53"); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-preview.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var clipper_previewvue_type_script_lang_js_ = ({ - props: { - name: { - type: String, - required: true - } - }, - data: function data() { - return { - src: '', - imgEl: null, - imgWidth: 1, - imgHeight: 1, - outerWidth: 1, - outerHeight: 1, - bgColor: 'white', - pos: {}, - rotate: 0 - }; - }, - computed: { - styleObj: function styleObj() { - var left = this.pos.sx / this.imgWidth; - var top = this.pos.sy / this.imgHeight; - var width = this.imgWidth / this.pos.swidth; - return { - transform: "scale(".concat(width, ") translate(").concat(left * -100, "% ,").concat(top * -100, "%)") - }; - }, - rotateStyle: function rotateStyle() { - return { - transform: "rotate(".concat(this.rotate, "deg)") - }; - }, - wrapStyle: function wrapStyle() { - var display = this.src ? 'block' : 'none'; - return { - backgroundColor: this.bgColor, - display: display - }; - }, - eptStyle: function eptStyle() { - return { - display: this.src ? 'none' : 'block' - }; - } - }, - mounted: function mounted() { - this.imgEl = this.$el.querySelector('.img'); - this.initListener(); - }, - methods: { - initListener: function initListener() { - // set listener on parent - var parent = this.$parent; - var parentPropName = namespace["a" /* default */].parentPropName; - if (!parent[parentPropName]) parent[parentPropName] = {}; - - if (!parent[parentPropName][this.name]) { - parent[parentPropName][this.name] = []; - } - - var listeners = parent[parentPropName][this.name]; - listeners.push(this); - }, - setData: function setData(datasets) { - // Called from outside - for (var k in datasets) { - this[k] = datasets[k]; - } - }, - imgLoaded: function imgLoaded() { - this.imgWidth = this.imgEl.naturalWidth; - this.imgHeight = this.imgEl.naturalHeight; - }, - locateImage: function locateImage(pos, rotate) { - this.rotate = rotate; - this.outerWidth = pos.swidth; - this.outerHeight = pos.sheight; - this.pos = pos; - } - } -}); -// CONCATENATED MODULE: ./src/components/clipper-preview.vue?vue&type=script&lang=js& - /* harmony default export */ var components_clipper_previewvue_type_script_lang_js_ = (clipper_previewvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/components/clipper-preview.vue?vue&type=style&index=0&id=6f79f498&lang=scss&scoped=true& -var clipper_previewvue_type_style_index_0_id_6f79f498_lang_scss_scoped_true_ = __webpack_require__("75eb"); - -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__("2877"); - -// CONCATENATED MODULE: ./src/components/clipper-preview.vue - - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_clipper_previewvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - "6f79f498", - null - -) - -/* harmony default export */ var clipper_preview = __webpack_exports__["a"] = (component.exports); - -/***/ }), - -/***/ "0ca4": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return hostReportError; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function hostReportError(err) { - setTimeout(function () { throw err; }, 0); -} -//# sourceMappingURL=hostReportError.js.map - - -/***/ }), - -/***/ "0cfb": -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__("83ab"); -var fails = __webpack_require__("d039"); -var createElement = __webpack_require__("cc12"); - -// Thank's IE8 for his funny defineProperty -module.exports = !DESCRIPTORS && !fails(function () { - return Object.defineProperty(createElement('div'), 'a', { - get: function () { return 7; } - }).a != 7; -}); - - -/***/ }), - -/***/ "0d3b": -/***/ (function(module, exports, __webpack_require__) { - -var fails = __webpack_require__("d039"); -var wellKnownSymbol = __webpack_require__("b622"); -var IS_PURE = __webpack_require__("c430"); - -var ITERATOR = wellKnownSymbol('iterator'); - -module.exports = !fails(function () { - var url = new URL('b?a=1&b=2&c=3', 'http://a'); - var searchParams = url.searchParams; - var result = ''; - url.pathname = 'c%20d'; - searchParams.forEach(function (value, key) { - searchParams['delete']('b'); - result += key + value; - }); - return (IS_PURE && !url.toJSON) - || !searchParams.sort - || url.href !== 'http://a/c%20d?a=1&c=3' - || searchParams.get('c') !== '3' - || String(new URLSearchParams('?a=1')) !== 'a=1' - || !searchParams[ITERATOR] - // throws in Edge - || new URL('https://a@b').username !== 'a' - || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b' - // not punycoded in Edge - || new URL('http://тест').host !== 'xn--e1aybc' - // not escaped in Chrome 62- - || new URL('http://a#б').hash !== '#%D0%B1' - // fails in Chrome 66- - || result !== 'a1c3' - // throws in Safari - || new URL('http://x', undefined).host !== 'x'; -}); - - -/***/ }), - -/***/ "0f53": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -var namespace = { - parentPropName: '_imgPreviewLists' -}; -/* harmony default export */ __webpack_exports__["a"] = (namespace); - -/***/ }), - -/***/ "127f": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* unused harmony export getSymbolIterator */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return iterator; }); -/* unused harmony export $$iterator */ -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function getSymbolIterator() { - if (typeof Symbol !== 'function' || !Symbol.iterator) { - return '@@iterator'; - } - return Symbol.iterator; -} -var iterator = /*@__PURE__*/ getSymbolIterator(); -var $$iterator = iterator; -//# sourceMappingURL=iterator.js.map - - -/***/ }), - -/***/ "1453": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscriber; }); -/* unused harmony export SafeSubscriber */ -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ab4"); -/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d817"); -/* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("e9a8"); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a6e8"); -/* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("2ff5"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("88bc"); -/* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("0ca4"); -/** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */ - - - - - - - -var Subscriber = /*@__PURE__*/ (function (_super) { - tslib__WEBPACK_IMPORTED_MODULE_0__[/* __extends */ "a"](Subscriber, _super); - function Subscriber(destinationOrNext, error, complete) { - var _this = _super.call(this) || this; - _this.syncErrorValue = null; - _this.syncErrorThrown = false; - _this.syncErrorThrowable = false; - _this.isStopped = false; - switch (arguments.length) { - case 0: - _this.destination = _Observer__WEBPACK_IMPORTED_MODULE_2__[/* empty */ "a"]; - break; - case 1: - if (!destinationOrNext) { - _this.destination = _Observer__WEBPACK_IMPORTED_MODULE_2__[/* empty */ "a"]; - break; - } - if (typeof destinationOrNext === 'object') { - if (destinationOrNext instanceof Subscriber) { - _this.syncErrorThrowable = destinationOrNext.syncErrorThrowable; - _this.destination = destinationOrNext; - destinationOrNext.add(_this); - } - else { - _this.syncErrorThrowable = true; - _this.destination = new SafeSubscriber(_this, destinationOrNext); - } - break; - } - default: - _this.syncErrorThrowable = true; - _this.destination = new SafeSubscriber(_this, destinationOrNext, error, complete); - break; - } - return _this; - } - Subscriber.prototype[_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_4__[/* rxSubscriber */ "a"]] = function () { return this; }; - Subscriber.create = function (next, error, complete) { - var subscriber = new Subscriber(next, error, complete); - subscriber.syncErrorThrowable = false; - return subscriber; - }; - Subscriber.prototype.next = function (value) { - if (!this.isStopped) { - this._next(value); - } - }; - Subscriber.prototype.error = function (err) { - if (!this.isStopped) { - this.isStopped = true; - this._error(err); - } - }; - Subscriber.prototype.complete = function () { - if (!this.isStopped) { - this.isStopped = true; - this._complete(); - } - }; - Subscriber.prototype.unsubscribe = function () { - if (this.closed) { - return; - } - this.isStopped = true; - _super.prototype.unsubscribe.call(this); - }; - Subscriber.prototype._next = function (value) { - this.destination.next(value); - }; - Subscriber.prototype._error = function (err) { - this.destination.error(err); - this.unsubscribe(); - }; - Subscriber.prototype._complete = function () { - this.destination.complete(); - this.unsubscribe(); - }; - Subscriber.prototype._unsubscribeAndRecycle = function () { - var _parentOrParents = this._parentOrParents; - this._parentOrParents = null; - this.unsubscribe(); - this.closed = false; - this.isStopped = false; - this._parentOrParents = _parentOrParents; - return this; - }; - return Subscriber; -}(_Subscription__WEBPACK_IMPORTED_MODULE_3__[/* Subscription */ "a"])); - -var SafeSubscriber = /*@__PURE__*/ (function (_super) { - tslib__WEBPACK_IMPORTED_MODULE_0__[/* __extends */ "a"](SafeSubscriber, _super); - function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) { - var _this = _super.call(this) || this; - _this._parentSubscriber = _parentSubscriber; - var next; - var context = _this; - if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_1__[/* isFunction */ "a"])(observerOrNext)) { - next = observerOrNext; - } - else if (observerOrNext) { - next = observerOrNext.next; - error = observerOrNext.error; - complete = observerOrNext.complete; - if (observerOrNext !== _Observer__WEBPACK_IMPORTED_MODULE_2__[/* empty */ "a"]) { - context = Object.create(observerOrNext); - if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_1__[/* isFunction */ "a"])(context.unsubscribe)) { - _this.add(context.unsubscribe.bind(context)); - } - context.unsubscribe = _this.unsubscribe.bind(_this); - } - } - _this._context = context; - _this._next = next; - _this._error = error; - _this._complete = complete; - return _this; - } - SafeSubscriber.prototype.next = function (value) { - if (!this.isStopped && this._next) { - var _parentSubscriber = this._parentSubscriber; - if (!_config__WEBPACK_IMPORTED_MODULE_5__[/* config */ "a"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { - this.__tryOrUnsub(this._next, value); - } - else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) { - this.unsubscribe(); - } - } - }; - SafeSubscriber.prototype.error = function (err) { - if (!this.isStopped) { - var _parentSubscriber = this._parentSubscriber; - var useDeprecatedSynchronousErrorHandling = _config__WEBPACK_IMPORTED_MODULE_5__[/* config */ "a"].useDeprecatedSynchronousErrorHandling; - if (this._error) { - if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { - this.__tryOrUnsub(this._error, err); - this.unsubscribe(); - } - else { - this.__tryOrSetError(_parentSubscriber, this._error, err); - this.unsubscribe(); - } - } - else if (!_parentSubscriber.syncErrorThrowable) { - this.unsubscribe(); - if (useDeprecatedSynchronousErrorHandling) { - throw err; - } - Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__[/* hostReportError */ "a"])(err); - } - else { - if (useDeprecatedSynchronousErrorHandling) { - _parentSubscriber.syncErrorValue = err; - _parentSubscriber.syncErrorThrown = true; - } - else { - Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__[/* hostReportError */ "a"])(err); - } - this.unsubscribe(); - } - } - }; - SafeSubscriber.prototype.complete = function () { - var _this = this; - if (!this.isStopped) { - var _parentSubscriber = this._parentSubscriber; - if (this._complete) { - var wrappedComplete = function () { return _this._complete.call(_this._context); }; - if (!_config__WEBPACK_IMPORTED_MODULE_5__[/* config */ "a"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { - this.__tryOrUnsub(wrappedComplete); - this.unsubscribe(); - } - else { - this.__tryOrSetError(_parentSubscriber, wrappedComplete); - this.unsubscribe(); - } - } - else { - this.unsubscribe(); - } - } - }; - SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) { - try { - fn.call(this._context, value); - } - catch (err) { - this.unsubscribe(); - if (_config__WEBPACK_IMPORTED_MODULE_5__[/* config */ "a"].useDeprecatedSynchronousErrorHandling) { - throw err; - } - else { - Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__[/* hostReportError */ "a"])(err); - } - } - }; - SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) { - if (!_config__WEBPACK_IMPORTED_MODULE_5__[/* config */ "a"].useDeprecatedSynchronousErrorHandling) { - throw new Error('bad call'); - } - try { - fn.call(this._context, value); - } - catch (err) { - if (_config__WEBPACK_IMPORTED_MODULE_5__[/* config */ "a"].useDeprecatedSynchronousErrorHandling) { - parent.syncErrorValue = err; - parent.syncErrorThrown = true; - return true; - } - else { - Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__[/* hostReportError */ "a"])(err); - return true; - } - } - return false; - }; - SafeSubscriber.prototype._unsubscribe = function () { - var _parentSubscriber = this._parentSubscriber; - this._context = null; - this._parentSubscriber = null; - _parentSubscriber.unsubscribe(); - }; - return SafeSubscriber; -}(Subscriber)); - -//# sourceMappingURL=Subscriber.js.map - - -/***/ }), - -/***/ "159b": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var DOMIterables = __webpack_require__("fdbc"); -var forEach = __webpack_require__("17c2"); -var createNonEnumerableProperty = __webpack_require__("9112"); - -for (var COLLECTION_NAME in DOMIterables) { - var Collection = global[COLLECTION_NAME]; - var CollectionPrototype = Collection && Collection.prototype; - // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { - createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach); - } catch (error) { - CollectionPrototype.forEach = forEach; - } -} - - -/***/ }), - -/***/ "1716": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToArray.js -var subscribeToArray = __webpack_require__("fad2"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/hostReportError.js -var hostReportError = __webpack_require__("0ca4"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToPromise.js -/** PURE_IMPORTS_START _hostReportError PURE_IMPORTS_END */ - -var subscribeToPromise = function (promise) { - return function (subscriber) { - promise.then(function (value) { - if (!subscriber.closed) { - subscriber.next(value); - subscriber.complete(); - } - }, function (err) { return subscriber.error(err); }) - .then(null, hostReportError["a" /* hostReportError */]); - return subscriber; - }; -}; -//# sourceMappingURL=subscribeToPromise.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/iterator.js -var symbol_iterator = __webpack_require__("127f"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToIterable.js -/** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */ - -var subscribeToIterable = function (iterable) { - return function (subscriber) { - var iterator = iterable[symbol_iterator["a" /* iterator */]](); - do { - var item = iterator.next(); - if (item.done) { - subscriber.complete(); - break; - } - subscriber.next(item.value); - if (subscriber.closed) { - break; - } - } while (true); - if (typeof iterator.return === 'function') { - subscriber.add(function () { - if (iterator.return) { - iterator.return(); - } - }); - } - return subscriber; - }; -}; -//# sourceMappingURL=subscribeToIterable.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/observable.js -var observable = __webpack_require__("c539"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToObservable.js -/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */ - -var subscribeToObservable = function (obj) { - return function (subscriber) { - var obs = obj[observable["a" /* observable */]](); - if (typeof obs.subscribe !== 'function') { - throw new TypeError('Provided object does not correctly implement Symbol.observable'); - } - else { - return obs.subscribe(subscriber); - } - }; -}; -//# sourceMappingURL=subscribeToObservable.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isArrayLike.js -var isArrayLike = __webpack_require__("d9e3"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isPromise.js -var isPromise = __webpack_require__("fd66"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isObject.js -var isObject = __webpack_require__("31c4"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeTo.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return subscribeTo; }); -/** PURE_IMPORTS_START _subscribeToArray,_subscribeToPromise,_subscribeToIterable,_subscribeToObservable,_isArrayLike,_isPromise,_isObject,_symbol_iterator,_symbol_observable PURE_IMPORTS_END */ - - - - - - - - - -var subscribeTo = function (result) { - if (!!result && typeof result[observable["a" /* observable */]] === 'function') { - return subscribeToObservable(result); - } - else if (Object(isArrayLike["a" /* isArrayLike */])(result)) { - return Object(subscribeToArray["a" /* subscribeToArray */])(result); - } - else if (Object(isPromise["a" /* isPromise */])(result)) { - return subscribeToPromise(result); - } - else if (!!result && typeof result[symbol_iterator["a" /* iterator */]] === 'function') { - return subscribeToIterable(result); - } - else { - var value = Object(isObject["a" /* isObject */])(result) ? 'an invalid object' : "'" + result + "'"; - var msg = "You provided " + value + " where a stream was expected." - + ' You can provide an Observable, Promise, Array, or Iterable.'; - throw new TypeError(msg); - } -}; -//# sourceMappingURL=subscribeTo.js.map - - -/***/ }), - -/***/ "17c2": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $forEach = __webpack_require__("b727").forEach; -var arrayMethodIsStrict = __webpack_require__("a640"); -var arrayMethodUsesToLength = __webpack_require__("ae40"); - -var STRICT_METHOD = arrayMethodIsStrict('forEach'); -var USES_TO_LENGTH = arrayMethodUsesToLength('forEach'); - -// `Array.prototype.forEach` method implementation -// https://tc39.github.io/ecma262/#sec-array.prototype.foreach -module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) { - return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); -} : [].forEach; - - -/***/ }), - -/***/ "19aa": -/***/ (function(module, exports) { - -module.exports = function (it, Constructor, name) { - if (!(it instanceof Constructor)) { - throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation'); - } return it; -}; - - -/***/ }), - -/***/ "1be4": -/***/ (function(module, exports, __webpack_require__) { - -var getBuiltIn = __webpack_require__("d066"); - -module.exports = getBuiltIn('document', 'documentElement'); - - -/***/ }), - -/***/ "1c0b": -/***/ (function(module, exports) { - -module.exports = function (it) { - if (typeof it != 'function') { - throw TypeError(String(it) + ' is not a function'); - } return it; -}; - - -/***/ }), - -/***/ "1c7e": -/***/ (function(module, exports, __webpack_require__) { - -var wellKnownSymbol = __webpack_require__("b622"); - -var ITERATOR = wellKnownSymbol('iterator'); -var SAFE_CLOSING = false; - -try { - var called = 0; - var iteratorWithReturn = { - next: function () { - return { done: !!called++ }; - }, - 'return': function () { - SAFE_CLOSING = true; - } - }; - iteratorWithReturn[ITERATOR] = function () { - return this; - }; - // eslint-disable-next-line no-throw-literal - Array.from(iteratorWithReturn, function () { throw 2; }); -} catch (error) { /* empty */ } - -module.exports = function (exec, SKIP_CLOSING) { - if (!SKIP_CLOSING && !SAFE_CLOSING) return false; - var ITERATION_SUPPORT = false; - try { - var object = {}; - object[ITERATOR] = function () { - return { - next: function () { - return { done: ITERATION_SUPPORT = true }; - } - }; - }; - exec(object); - } catch (error) { /* empty */ } - return ITERATION_SUPPORT; -}; - - -/***/ }), - -/***/ "1cdc": -/***/ (function(module, exports, __webpack_require__) { - -var userAgent = __webpack_require__("342f"); - -module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent); - - -/***/ }), - -/***/ "1d80": -/***/ (function(module, exports) { - -// `RequireObjectCoercible` abstract operation -// https://tc39.github.io/ecma262/#sec-requireobjectcoercible -module.exports = function (it) { - if (it == undefined) throw TypeError("Can't call method on " + it); - return it; -}; - - -/***/ }), - -/***/ "1dde": -/***/ (function(module, exports, __webpack_require__) { - -var fails = __webpack_require__("d039"); -var wellKnownSymbol = __webpack_require__("b622"); -var V8_VERSION = __webpack_require__("2d00"); - -var SPECIES = wellKnownSymbol('species'); - -module.exports = function (METHOD_NAME) { - // We can't use this feature detection in V8 since it causes - // deoptimization and serious performance degradation - // https://github.com/zloirock/core-js/issues/677 - return V8_VERSION >= 51 || !fails(function () { - var array = []; - var constructor = array.constructor = {}; - constructor[SPECIES] = function () { - return { foo: 1 }; - }; - return array[METHOD_NAME](Boolean).foo !== 1; - }); -}; - - -/***/ }), - -/***/ "208d": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b2dfcbc4-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-upload.vue?vue&type=template&id=4d45ae96& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"click":_vm.triggerInput}},[_vm._t("default"),_c('img',{staticClass:"stem",staticStyle:{"display":"none"},attrs:{"src":_vm.DomString}}),_c('input',_vm._b({staticClass:"upload",staticStyle:{"display":"none"},attrs:{"type":"file"},on:{"change":function($event){return _vm.upload($event)},"click":function($event){return _vm.clear($event)}}},'input',_vm.$attrs,false))],2)} -var staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/components/clipper-upload.vue?vue&type=template&id=4d45ae96& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js -var es_array_iterator = __webpack_require__("e260"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js -var es_object_to_string = __webpack_require__("d3b7"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js -var es_promise = __webpack_require__("e6cf"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js -var es_string_iterator = __webpack_require__("3ca3"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js -var es_string_starts_with = __webpack_require__("2ca0"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js -var web_dom_collections_iterator = __webpack_require__("ddb0"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js -var web_url = __webpack_require__("2b3d"); - -// EXTERNAL MODULE: ./node_modules/exif-js/exif.js -var exif = __webpack_require__("6f45"); -var exif_default = /*#__PURE__*/__webpack_require__.n(exif); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-upload.vue?vue&type=script&lang=js& - - - - - - - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var clipper_uploadvue_type_script_lang_js_ = ({ - props: { - exif: { - type: Boolean, - default: true - }, - value: { - type: String, - default: '' - }, - check: { - type: Boolean, - default: true - } - }, - data: function data() { - return { - uploadEl: null, - file: null, - DomString: '' - }; - }, - mounted: function mounted() { - this.uploadEl = this.$el.querySelector('.upload'); - }, - methods: { - upload: function upload(e) { - var _this = this; - - if (e.target.files.length !== 1) return; - this.file = e.target.files[0]; - if (this.check && !this.file.type.startsWith('image/')) return; - - if (this.DomString && /^blob:/.test(this.DomString)) { - window.URL.revokeObjectURL(this.DomString); - } - - this.DomString = window.URL.createObjectURL(this.file); - this.checkEXIF().then(function () { - _this.$emit('input', _this.DomString); - }); - }, - checkEXIF: function checkEXIF() { - var _this2 = this; - - return new Promise(function (resolve, reject) { - if (!_this2.exif) return reject(new Error()); - resolve(); - }).then(function () { - return _this2.getEXIF(); - }).then(function (orientation) { - return _this2.getImageRect().then(function (_ref) { - var width = _ref.width, - height = _ref.height; - return Promise.resolve({ - width: width, - height: height, - orientation: orientation - }); - }).catch(function () { - return Promise.reject(new Error()); - }); - }).then(this.tranformCanvas).catch(function () { - return Promise.resolve(); - }); // just use catch to escape chains - }, - getEXIF: function getEXIF() { - var _this3 = this; - - return new Promise(function (resolve, reject) { - exif_default.a.getData(_this3.file, function () { - var orientation = this.exifdata.Orientation; - if (orientation === undefined || orientation === 1) reject(new Error()); - resolve(orientation); - }); - }); - }, - getImageRect: function getImageRect() { - var _this4 = this; - - return new Promise(function (resolve, reject) { - var img = _this4.$el.querySelector('.stem'); - - if (img.complete) { - return resolve({ - width: img.naturalWidth, - height: img.naturalHeight - }); - } - - img.onload = function () { - resolve({ - width: this.naturalWidth, - height: this.naturalHeight - }); - }; - - img.onerror = function () { - reject(new Error('img on load error')); - }; - }); - }, - tranformCanvas: function tranformCanvas(_ref2) { - var width = _ref2.width, - height = _ref2.height, - orientation = _ref2.orientation; - - /** This piece of code is referenced to - * https://stackoverflow.com/questions/20600800/js-client-side-exif-orientation-rotate-and-mirror-jpeg-images */ - var canvas = document.createElement('canvas'); - var ctx = canvas.getContext('2d'); // set proper canvas dimensions before transform & export - - if (orientation > 4 && orientation < 9) { - canvas.width = height; - canvas.height = width; - } else { - canvas.width = width; - canvas.height = height; - } // transform context before drawing image - - - switch (orientation) { - case 2: - ctx.transform(-1, 0, 0, 1, width, 0); - break; - - case 3: - ctx.transform(-1, 0, 0, -1, width, height); - break; - - case 4: - ctx.transform(1, 0, 0, -1, 0, height); - break; - - case 5: - ctx.transform(0, 1, 1, 0, 0, 0); - break; - - case 6: - ctx.transform(0, 1, -1, 0, height, 0); - break; - - case 7: - ctx.transform(0, -1, -1, 0, height, width); - break; - - case 8: - ctx.transform(0, -1, 1, 0, 0, width); - break; - - default: - break; - } - - ctx.drawImage(this.$el.querySelector('.stem'), 0, 0); - this.DomString = canvas.toDataURL(this.file.type); - }, - clear: function clear(e) { - e.target.value = null; - }, - triggerInput: function triggerInput() { - if (this.uploadEl) this.uploadEl.click(); - } - } -}); -// CONCATENATED MODULE: ./src/components/clipper-upload.vue?vue&type=script&lang=js& - /* harmony default export */ var components_clipper_uploadvue_type_script_lang_js_ = (clipper_uploadvue_type_script_lang_js_); -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__("2877"); - -// CONCATENATED MODULE: ./src/components/clipper-upload.vue - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_clipper_uploadvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* harmony default export */ var clipper_upload = __webpack_exports__["a"] = (component.exports); - -/***/ }), - -/***/ "2144": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return fromArray; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e9b9"); -/* harmony import */ var _util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("fad2"); -/* harmony import */ var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("245f"); -/** PURE_IMPORTS_START _Observable,_util_subscribeToArray,_scheduled_scheduleArray PURE_IMPORTS_END */ - - - -function fromArray(input, scheduler) { - if (!scheduler) { - return new _Observable__WEBPACK_IMPORTED_MODULE_0__[/* Observable */ "a"](Object(_util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__[/* subscribeToArray */ "a"])(input)); - } - else { - return Object(_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__[/* scheduleArray */ "a"])(input, scheduler); - } -} -//# sourceMappingURL=fromArray.js.map - - -/***/ }), - -/***/ "2266": -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__("825a"); -var isArrayIteratorMethod = __webpack_require__("e95a"); -var toLength = __webpack_require__("50c4"); -var bind = __webpack_require__("0366"); -var getIteratorMethod = __webpack_require__("35a1"); -var callWithSafeIterationClosing = __webpack_require__("9bdd"); - -var Result = function (stopped, result) { - this.stopped = stopped; - this.result = result; -}; - -var iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) { - var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1); - var iterator, iterFn, index, length, result, next, step; - - if (IS_ITERATOR) { - iterator = iterable; - } else { - iterFn = getIteratorMethod(iterable); - if (typeof iterFn != 'function') throw TypeError('Target is not iterable'); - // optimisation for array iterators - if (isArrayIteratorMethod(iterFn)) { - for (index = 0, length = toLength(iterable.length); length > index; index++) { - result = AS_ENTRIES - ? boundFunction(anObject(step = iterable[index])[0], step[1]) - : boundFunction(iterable[index]); - if (result && result instanceof Result) return result; - } return new Result(false); - } - iterator = iterFn.call(iterable); - } - - next = iterator.next; - while (!(step = next.call(iterator)).done) { - result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES); - if (typeof result == 'object' && result && result instanceof Result) return result; - } return new Result(false); -}; - -iterate.stop = function (result) { - return new Result(true, result); -}; - - -/***/ }), - -/***/ "23cb": -/***/ (function(module, exports, __webpack_require__) { - -var toInteger = __webpack_require__("a691"); - -var max = Math.max; -var min = Math.min; - -// Helper for a popular repeating case of the spec: -// Let integer be ? ToInteger(index). -// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). -module.exports = function (index, length) { - var integer = toInteger(index); - return integer < 0 ? max(integer + length, 0) : min(integer, length); -}; - - -/***/ }), - -/***/ "23e7": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var getOwnPropertyDescriptor = __webpack_require__("06cf").f; -var createNonEnumerableProperty = __webpack_require__("9112"); -var redefine = __webpack_require__("6eeb"); -var setGlobal = __webpack_require__("ce4e"); -var copyConstructorProperties = __webpack_require__("e893"); -var isForced = __webpack_require__("94ca"); - -/* - options.target - name of the target object - options.global - target is the global object - options.stat - export as static methods of target - options.proto - export as prototype methods of target - options.real - real prototype method for the `pure` version - options.forced - export even if the native feature is available - options.bind - bind methods to the target, required for the `pure` version - options.wrap - wrap constructors to preventing global pollution, required for the `pure` version - options.unsafe - use the simple assignment of property instead of delete + defineProperty - options.sham - add a flag to not completely full polyfills - options.enumerable - export as enumerable property - options.noTargetGet - prevent calling a getter on target -*/ -module.exports = function (options, source) { - var TARGET = options.target; - var GLOBAL = options.global; - var STATIC = options.stat; - var FORCED, target, key, targetProperty, sourceProperty, descriptor; - if (GLOBAL) { - target = global; - } else if (STATIC) { - target = global[TARGET] || setGlobal(TARGET, {}); - } else { - target = (global[TARGET] || {}).prototype; - } - if (target) for (key in source) { - sourceProperty = source[key]; - if (options.noTargetGet) { - descriptor = getOwnPropertyDescriptor(target, key); - targetProperty = descriptor && descriptor.value; - } else targetProperty = target[key]; - FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); - // contained in target - if (!FORCED && targetProperty !== undefined) { - if (typeof sourceProperty === typeof targetProperty) continue; - copyConstructorProperties(sourceProperty, targetProperty); - } - // add a flag to not completely full polyfills - if (options.sham || (targetProperty && targetProperty.sham)) { - createNonEnumerableProperty(sourceProperty, 'sham', true); - } - // extend global - redefine(target, key, sourceProperty, options); - } -}; - - -/***/ }), - -/***/ "241c": -/***/ (function(module, exports, __webpack_require__) { - -var internalObjectKeys = __webpack_require__("ca84"); -var enumBugKeys = __webpack_require__("7839"); - -var hiddenKeys = enumBugKeys.concat('length', 'prototype'); - -// `Object.getOwnPropertyNames` method -// https://tc39.github.io/ecma262/#sec-object.getownpropertynames -exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return internalObjectKeys(O, hiddenKeys); -}; - - -/***/ }), - -/***/ "245f": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return scheduleArray; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e9b9"); -/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("a6e8"); -/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */ - - -function scheduleArray(input, scheduler) { - return new _Observable__WEBPACK_IMPORTED_MODULE_0__[/* Observable */ "a"](function (subscriber) { - var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__[/* Subscription */ "a"](); - var i = 0; - sub.add(scheduler.schedule(function () { - if (i === input.length) { - subscriber.complete(); - return; - } - subscriber.next(input[i++]); - if (!subscriber.closed) { - sub.add(this.schedule()); - } - })); - return sub; - }); -} -//# sourceMappingURL=scheduleArray.js.map - - -/***/ }), - -/***/ "2626": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var getBuiltIn = __webpack_require__("d066"); -var definePropertyModule = __webpack_require__("9bf2"); -var wellKnownSymbol = __webpack_require__("b622"); -var DESCRIPTORS = __webpack_require__("83ab"); - -var SPECIES = wellKnownSymbol('species'); - -module.exports = function (CONSTRUCTOR_NAME) { - var Constructor = getBuiltIn(CONSTRUCTOR_NAME); - var defineProperty = definePropertyModule.f; - - if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) { - defineProperty(Constructor, SPECIES, { - configurable: true, - get: function () { return this; } - }); - } -}; - - -/***/ }), - -/***/ "2877": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } - - // functional template - if (functionalTemplate) { - options.functional = true - } - - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId - } - - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles - } - - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functional component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } - } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } - } - - return { - exports: scriptExports, - options: options - } -} - - -/***/ }), - -/***/ "2b3d": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` -__webpack_require__("3ca3"); -var $ = __webpack_require__("23e7"); -var DESCRIPTORS = __webpack_require__("83ab"); -var USE_NATIVE_URL = __webpack_require__("0d3b"); -var global = __webpack_require__("da84"); -var defineProperties = __webpack_require__("37e8"); -var redefine = __webpack_require__("6eeb"); -var anInstance = __webpack_require__("19aa"); -var has = __webpack_require__("5135"); -var assign = __webpack_require__("60da"); -var arrayFrom = __webpack_require__("4df4"); -var codeAt = __webpack_require__("6547").codeAt; -var toASCII = __webpack_require__("5fb2"); -var setToStringTag = __webpack_require__("d44e"); -var URLSearchParamsModule = __webpack_require__("9861"); -var InternalStateModule = __webpack_require__("69f3"); - -var NativeURL = global.URL; -var URLSearchParams = URLSearchParamsModule.URLSearchParams; -var getInternalSearchParamsState = URLSearchParamsModule.getState; -var setInternalState = InternalStateModule.set; -var getInternalURLState = InternalStateModule.getterFor('URL'); -var floor = Math.floor; -var pow = Math.pow; - -var INVALID_AUTHORITY = 'Invalid authority'; -var INVALID_SCHEME = 'Invalid scheme'; -var INVALID_HOST = 'Invalid host'; -var INVALID_PORT = 'Invalid port'; - -var ALPHA = /[A-Za-z]/; -var ALPHANUMERIC = /[\d+\-.A-Za-z]/; -var DIGIT = /\d/; -var HEX_START = /^(0x|0X)/; -var OCT = /^[0-7]+$/; -var DEC = /^\d+$/; -var HEX = /^[\dA-Fa-f]+$/; -// eslint-disable-next-line no-control-regex -var FORBIDDEN_HOST_CODE_POINT = /[\u0000\u0009\u000A\u000D #%/:?@[\\]]/; -// eslint-disable-next-line no-control-regex -var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\u0000\u0009\u000A\u000D #/:?@[\\]]/; -// eslint-disable-next-line no-control-regex -var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g; -// eslint-disable-next-line no-control-regex -var TAB_AND_NEW_LINE = /[\u0009\u000A\u000D]/g; -var EOF; - -var parseHost = function (url, input) { - var result, codePoints, index; - if (input.charAt(0) == '[') { - if (input.charAt(input.length - 1) != ']') return INVALID_HOST; - result = parseIPv6(input.slice(1, -1)); - if (!result) return INVALID_HOST; - url.host = result; - // opaque host - } else if (!isSpecial(url)) { - if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST; - result = ''; - codePoints = arrayFrom(input); - for (index = 0; index < codePoints.length; index++) { - result += percentEncode(codePoints[index], C0ControlPercentEncodeSet); - } - url.host = result; - } else { - input = toASCII(input); - if (FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST; - result = parseIPv4(input); - if (result === null) return INVALID_HOST; - url.host = result; - } -}; - -var parseIPv4 = function (input) { - var parts = input.split('.'); - var partsLength, numbers, index, part, radix, number, ipv4; - if (parts.length && parts[parts.length - 1] == '') { - parts.pop(); - } - partsLength = parts.length; - if (partsLength > 4) return input; - numbers = []; - for (index = 0; index < partsLength; index++) { - part = parts[index]; - if (part == '') return input; - radix = 10; - if (part.length > 1 && part.charAt(0) == '0') { - radix = HEX_START.test(part) ? 16 : 8; - part = part.slice(radix == 8 ? 1 : 2); - } - if (part === '') { - number = 0; - } else { - if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part)) return input; - number = parseInt(part, radix); - } - numbers.push(number); - } - for (index = 0; index < partsLength; index++) { - number = numbers[index]; - if (index == partsLength - 1) { - if (number >= pow(256, 5 - partsLength)) return null; - } else if (number > 255) return null; - } - ipv4 = numbers.pop(); - for (index = 0; index < numbers.length; index++) { - ipv4 += numbers[index] * pow(256, 3 - index); - } - return ipv4; -}; - -// eslint-disable-next-line max-statements -var parseIPv6 = function (input) { - var address = [0, 0, 0, 0, 0, 0, 0, 0]; - var pieceIndex = 0; - var compress = null; - var pointer = 0; - var value, length, numbersSeen, ipv4Piece, number, swaps, swap; - - var char = function () { - return input.charAt(pointer); - }; - - if (char() == ':') { - if (input.charAt(1) != ':') return; - pointer += 2; - pieceIndex++; - compress = pieceIndex; - } - while (char()) { - if (pieceIndex == 8) return; - if (char() == ':') { - if (compress !== null) return; - pointer++; - pieceIndex++; - compress = pieceIndex; - continue; - } - value = length = 0; - while (length < 4 && HEX.test(char())) { - value = value * 16 + parseInt(char(), 16); - pointer++; - length++; - } - if (char() == '.') { - if (length == 0) return; - pointer -= length; - if (pieceIndex > 6) return; - numbersSeen = 0; - while (char()) { - ipv4Piece = null; - if (numbersSeen > 0) { - if (char() == '.' && numbersSeen < 4) pointer++; - else return; - } - if (!DIGIT.test(char())) return; - while (DIGIT.test(char())) { - number = parseInt(char(), 10); - if (ipv4Piece === null) ipv4Piece = number; - else if (ipv4Piece == 0) return; - else ipv4Piece = ipv4Piece * 10 + number; - if (ipv4Piece > 255) return; - pointer++; - } - address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece; - numbersSeen++; - if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++; - } - if (numbersSeen != 4) return; - break; - } else if (char() == ':') { - pointer++; - if (!char()) return; - } else if (char()) return; - address[pieceIndex++] = value; - } - if (compress !== null) { - swaps = pieceIndex - compress; - pieceIndex = 7; - while (pieceIndex != 0 && swaps > 0) { - swap = address[pieceIndex]; - address[pieceIndex--] = address[compress + swaps - 1]; - address[compress + --swaps] = swap; - } - } else if (pieceIndex != 8) return; - return address; -}; - -var findLongestZeroSequence = function (ipv6) { - var maxIndex = null; - var maxLength = 1; - var currStart = null; - var currLength = 0; - var index = 0; - for (; index < 8; index++) { - if (ipv6[index] !== 0) { - if (currLength > maxLength) { - maxIndex = currStart; - maxLength = currLength; - } - currStart = null; - currLength = 0; - } else { - if (currStart === null) currStart = index; - ++currLength; - } - } - if (currLength > maxLength) { - maxIndex = currStart; - maxLength = currLength; - } - return maxIndex; -}; - -var serializeHost = function (host) { - var result, index, compress, ignore0; - // ipv4 - if (typeof host == 'number') { - result = []; - for (index = 0; index < 4; index++) { - result.unshift(host % 256); - host = floor(host / 256); - } return result.join('.'); - // ipv6 - } else if (typeof host == 'object') { - result = ''; - compress = findLongestZeroSequence(host); - for (index = 0; index < 8; index++) { - if (ignore0 && host[index] === 0) continue; - if (ignore0) ignore0 = false; - if (compress === index) { - result += index ? ':' : '::'; - ignore0 = true; - } else { - result += host[index].toString(16); - if (index < 7) result += ':'; - } - } - return '[' + result + ']'; - } return host; -}; - -var C0ControlPercentEncodeSet = {}; -var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, { - ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1 -}); -var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, { - '#': 1, '?': 1, '{': 1, '}': 1 -}); -var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, { - '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1 -}); - -var percentEncode = function (char, set) { - var code = codeAt(char, 0); - return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char); -}; - -var specialSchemes = { - ftp: 21, - file: null, - http: 80, - https: 443, - ws: 80, - wss: 443 -}; - -var isSpecial = function (url) { - return has(specialSchemes, url.scheme); -}; - -var includesCredentials = function (url) { - return url.username != '' || url.password != ''; -}; - -var cannotHaveUsernamePasswordPort = function (url) { - return !url.host || url.cannotBeABaseURL || url.scheme == 'file'; -}; - -var isWindowsDriveLetter = function (string, normalized) { - var second; - return string.length == 2 && ALPHA.test(string.charAt(0)) - && ((second = string.charAt(1)) == ':' || (!normalized && second == '|')); -}; - -var startsWithWindowsDriveLetter = function (string) { - var third; - return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && ( - string.length == 2 || - ((third = string.charAt(2)) === '/' || third === '\\' || third === '?' || third === '#') - ); -}; - -var shortenURLsPath = function (url) { - var path = url.path; - var pathSize = path.length; - if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) { - path.pop(); - } -}; - -var isSingleDot = function (segment) { - return segment === '.' || segment.toLowerCase() === '%2e'; -}; - -var isDoubleDot = function (segment) { - segment = segment.toLowerCase(); - return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e'; -}; - -// States: -var SCHEME_START = {}; -var SCHEME = {}; -var NO_SCHEME = {}; -var SPECIAL_RELATIVE_OR_AUTHORITY = {}; -var PATH_OR_AUTHORITY = {}; -var RELATIVE = {}; -var RELATIVE_SLASH = {}; -var SPECIAL_AUTHORITY_SLASHES = {}; -var SPECIAL_AUTHORITY_IGNORE_SLASHES = {}; -var AUTHORITY = {}; -var HOST = {}; -var HOSTNAME = {}; -var PORT = {}; -var FILE = {}; -var FILE_SLASH = {}; -var FILE_HOST = {}; -var PATH_START = {}; -var PATH = {}; -var CANNOT_BE_A_BASE_URL_PATH = {}; -var QUERY = {}; -var FRAGMENT = {}; - -// eslint-disable-next-line max-statements -var parseURL = function (url, input, stateOverride, base) { - var state = stateOverride || SCHEME_START; - var pointer = 0; - var buffer = ''; - var seenAt = false; - var seenBracket = false; - var seenPasswordToken = false; - var codePoints, char, bufferCodePoints, failure; - - if (!stateOverride) { - url.scheme = ''; - url.username = ''; - url.password = ''; - url.host = null; - url.port = null; - url.path = []; - url.query = null; - url.fragment = null; - url.cannotBeABaseURL = false; - input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, ''); - } - - input = input.replace(TAB_AND_NEW_LINE, ''); - - codePoints = arrayFrom(input); - - while (pointer <= codePoints.length) { - char = codePoints[pointer]; - switch (state) { - case SCHEME_START: - if (char && ALPHA.test(char)) { - buffer += char.toLowerCase(); - state = SCHEME; - } else if (!stateOverride) { - state = NO_SCHEME; - continue; - } else return INVALID_SCHEME; - break; - - case SCHEME: - if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) { - buffer += char.toLowerCase(); - } else if (char == ':') { - if (stateOverride && ( - (isSpecial(url) != has(specialSchemes, buffer)) || - (buffer == 'file' && (includesCredentials(url) || url.port !== null)) || - (url.scheme == 'file' && !url.host) - )) return; - url.scheme = buffer; - if (stateOverride) { - if (isSpecial(url) && specialSchemes[url.scheme] == url.port) url.port = null; - return; - } - buffer = ''; - if (url.scheme == 'file') { - state = FILE; - } else if (isSpecial(url) && base && base.scheme == url.scheme) { - state = SPECIAL_RELATIVE_OR_AUTHORITY; - } else if (isSpecial(url)) { - state = SPECIAL_AUTHORITY_SLASHES; - } else if (codePoints[pointer + 1] == '/') { - state = PATH_OR_AUTHORITY; - pointer++; - } else { - url.cannotBeABaseURL = true; - url.path.push(''); - state = CANNOT_BE_A_BASE_URL_PATH; - } - } else if (!stateOverride) { - buffer = ''; - state = NO_SCHEME; - pointer = 0; - continue; - } else return INVALID_SCHEME; - break; - - case NO_SCHEME: - if (!base || (base.cannotBeABaseURL && char != '#')) return INVALID_SCHEME; - if (base.cannotBeABaseURL && char == '#') { - url.scheme = base.scheme; - url.path = base.path.slice(); - url.query = base.query; - url.fragment = ''; - url.cannotBeABaseURL = true; - state = FRAGMENT; - break; - } - state = base.scheme == 'file' ? FILE : RELATIVE; - continue; - - case SPECIAL_RELATIVE_OR_AUTHORITY: - if (char == '/' && codePoints[pointer + 1] == '/') { - state = SPECIAL_AUTHORITY_IGNORE_SLASHES; - pointer++; - } else { - state = RELATIVE; - continue; - } break; - - case PATH_OR_AUTHORITY: - if (char == '/') { - state = AUTHORITY; - break; - } else { - state = PATH; - continue; - } - - case RELATIVE: - url.scheme = base.scheme; - if (char == EOF) { - url.username = base.username; - url.password = base.password; - url.host = base.host; - url.port = base.port; - url.path = base.path.slice(); - url.query = base.query; - } else if (char == '/' || (char == '\\' && isSpecial(url))) { - state = RELATIVE_SLASH; - } else if (char == '?') { - url.username = base.username; - url.password = base.password; - url.host = base.host; - url.port = base.port; - url.path = base.path.slice(); - url.query = ''; - state = QUERY; - } else if (char == '#') { - url.username = base.username; - url.password = base.password; - url.host = base.host; - url.port = base.port; - url.path = base.path.slice(); - url.query = base.query; - url.fragment = ''; - state = FRAGMENT; - } else { - url.username = base.username; - url.password = base.password; - url.host = base.host; - url.port = base.port; - url.path = base.path.slice(); - url.path.pop(); - state = PATH; - continue; - } break; - - case RELATIVE_SLASH: - if (isSpecial(url) && (char == '/' || char == '\\')) { - state = SPECIAL_AUTHORITY_IGNORE_SLASHES; - } else if (char == '/') { - state = AUTHORITY; - } else { - url.username = base.username; - url.password = base.password; - url.host = base.host; - url.port = base.port; - state = PATH; - continue; - } break; - - case SPECIAL_AUTHORITY_SLASHES: - state = SPECIAL_AUTHORITY_IGNORE_SLASHES; - if (char != '/' || buffer.charAt(pointer + 1) != '/') continue; - pointer++; - break; - - case SPECIAL_AUTHORITY_IGNORE_SLASHES: - if (char != '/' && char != '\\') { - state = AUTHORITY; - continue; - } break; - - case AUTHORITY: - if (char == '@') { - if (seenAt) buffer = '%40' + buffer; - seenAt = true; - bufferCodePoints = arrayFrom(buffer); - for (var i = 0; i < bufferCodePoints.length; i++) { - var codePoint = bufferCodePoints[i]; - if (codePoint == ':' && !seenPasswordToken) { - seenPasswordToken = true; - continue; - } - var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet); - if (seenPasswordToken) url.password += encodedCodePoints; - else url.username += encodedCodePoints; - } - buffer = ''; - } else if ( - char == EOF || char == '/' || char == '?' || char == '#' || - (char == '\\' && isSpecial(url)) - ) { - if (seenAt && buffer == '') return INVALID_AUTHORITY; - pointer -= arrayFrom(buffer).length + 1; - buffer = ''; - state = HOST; - } else buffer += char; - break; - - case HOST: - case HOSTNAME: - if (stateOverride && url.scheme == 'file') { - state = FILE_HOST; - continue; - } else if (char == ':' && !seenBracket) { - if (buffer == '') return INVALID_HOST; - failure = parseHost(url, buffer); - if (failure) return failure; - buffer = ''; - state = PORT; - if (stateOverride == HOSTNAME) return; - } else if ( - char == EOF || char == '/' || char == '?' || char == '#' || - (char == '\\' && isSpecial(url)) - ) { - if (isSpecial(url) && buffer == '') return INVALID_HOST; - if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null)) return; - failure = parseHost(url, buffer); - if (failure) return failure; - buffer = ''; - state = PATH_START; - if (stateOverride) return; - continue; - } else { - if (char == '[') seenBracket = true; - else if (char == ']') seenBracket = false; - buffer += char; - } break; - - case PORT: - if (DIGIT.test(char)) { - buffer += char; - } else if ( - char == EOF || char == '/' || char == '?' || char == '#' || - (char == '\\' && isSpecial(url)) || - stateOverride - ) { - if (buffer != '') { - var port = parseInt(buffer, 10); - if (port > 0xFFFF) return INVALID_PORT; - url.port = (isSpecial(url) && port === specialSchemes[url.scheme]) ? null : port; - buffer = ''; - } - if (stateOverride) return; - state = PATH_START; - continue; - } else return INVALID_PORT; - break; - - case FILE: - url.scheme = 'file'; - if (char == '/' || char == '\\') state = FILE_SLASH; - else if (base && base.scheme == 'file') { - if (char == EOF) { - url.host = base.host; - url.path = base.path.slice(); - url.query = base.query; - } else if (char == '?') { - url.host = base.host; - url.path = base.path.slice(); - url.query = ''; - state = QUERY; - } else if (char == '#') { - url.host = base.host; - url.path = base.path.slice(); - url.query = base.query; - url.fragment = ''; - state = FRAGMENT; - } else { - if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) { - url.host = base.host; - url.path = base.path.slice(); - shortenURLsPath(url); - } - state = PATH; - continue; - } - } else { - state = PATH; - continue; - } break; - - case FILE_SLASH: - if (char == '/' || char == '\\') { - state = FILE_HOST; - break; - } - if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) { - if (isWindowsDriveLetter(base.path[0], true)) url.path.push(base.path[0]); - else url.host = base.host; - } - state = PATH; - continue; - - case FILE_HOST: - if (char == EOF || char == '/' || char == '\\' || char == '?' || char == '#') { - if (!stateOverride && isWindowsDriveLetter(buffer)) { - state = PATH; - } else if (buffer == '') { - url.host = ''; - if (stateOverride) return; - state = PATH_START; - } else { - failure = parseHost(url, buffer); - if (failure) return failure; - if (url.host == 'localhost') url.host = ''; - if (stateOverride) return; - buffer = ''; - state = PATH_START; - } continue; - } else buffer += char; - break; - - case PATH_START: - if (isSpecial(url)) { - state = PATH; - if (char != '/' && char != '\\') continue; - } else if (!stateOverride && char == '?') { - url.query = ''; - state = QUERY; - } else if (!stateOverride && char == '#') { - url.fragment = ''; - state = FRAGMENT; - } else if (char != EOF) { - state = PATH; - if (char != '/') continue; - } break; - - case PATH: - if ( - char == EOF || char == '/' || - (char == '\\' && isSpecial(url)) || - (!stateOverride && (char == '?' || char == '#')) - ) { - if (isDoubleDot(buffer)) { - shortenURLsPath(url); - if (char != '/' && !(char == '\\' && isSpecial(url))) { - url.path.push(''); - } - } else if (isSingleDot(buffer)) { - if (char != '/' && !(char == '\\' && isSpecial(url))) { - url.path.push(''); - } - } else { - if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) { - if (url.host) url.host = ''; - buffer = buffer.charAt(0) + ':'; // normalize windows drive letter - } - url.path.push(buffer); - } - buffer = ''; - if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) { - while (url.path.length > 1 && url.path[0] === '') { - url.path.shift(); - } - } - if (char == '?') { - url.query = ''; - state = QUERY; - } else if (char == '#') { - url.fragment = ''; - state = FRAGMENT; - } - } else { - buffer += percentEncode(char, pathPercentEncodeSet); - } break; - - case CANNOT_BE_A_BASE_URL_PATH: - if (char == '?') { - url.query = ''; - state = QUERY; - } else if (char == '#') { - url.fragment = ''; - state = FRAGMENT; - } else if (char != EOF) { - url.path[0] += percentEncode(char, C0ControlPercentEncodeSet); - } break; - - case QUERY: - if (!stateOverride && char == '#') { - url.fragment = ''; - state = FRAGMENT; - } else if (char != EOF) { - if (char == "'" && isSpecial(url)) url.query += '%27'; - else if (char == '#') url.query += '%23'; - else url.query += percentEncode(char, C0ControlPercentEncodeSet); - } break; - - case FRAGMENT: - if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet); - break; - } - - pointer++; - } -}; - -// `URL` constructor -// https://url.spec.whatwg.org/#url-class -var URLConstructor = function URL(url /* , base */) { - var that = anInstance(this, URLConstructor, 'URL'); - var base = arguments.length > 1 ? arguments[1] : undefined; - var urlString = String(url); - var state = setInternalState(that, { type: 'URL' }); - var baseState, failure; - if (base !== undefined) { - if (base instanceof URLConstructor) baseState = getInternalURLState(base); - else { - failure = parseURL(baseState = {}, String(base)); - if (failure) throw TypeError(failure); - } - } - failure = parseURL(state, urlString, null, baseState); - if (failure) throw TypeError(failure); - var searchParams = state.searchParams = new URLSearchParams(); - var searchParamsState = getInternalSearchParamsState(searchParams); - searchParamsState.updateSearchParams(state.query); - searchParamsState.updateURL = function () { - state.query = String(searchParams) || null; - }; - if (!DESCRIPTORS) { - that.href = serializeURL.call(that); - that.origin = getOrigin.call(that); - that.protocol = getProtocol.call(that); - that.username = getUsername.call(that); - that.password = getPassword.call(that); - that.host = getHost.call(that); - that.hostname = getHostname.call(that); - that.port = getPort.call(that); - that.pathname = getPathname.call(that); - that.search = getSearch.call(that); - that.searchParams = getSearchParams.call(that); - that.hash = getHash.call(that); - } -}; - -var URLPrototype = URLConstructor.prototype; - -var serializeURL = function () { - var url = getInternalURLState(this); - var scheme = url.scheme; - var username = url.username; - var password = url.password; - var host = url.host; - var port = url.port; - var path = url.path; - var query = url.query; - var fragment = url.fragment; - var output = scheme + ':'; - if (host !== null) { - output += '//'; - if (includesCredentials(url)) { - output += username + (password ? ':' + password : '') + '@'; - } - output += serializeHost(host); - if (port !== null) output += ':' + port; - } else if (scheme == 'file') output += '//'; - output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : ''; - if (query !== null) output += '?' + query; - if (fragment !== null) output += '#' + fragment; - return output; -}; - -var getOrigin = function () { - var url = getInternalURLState(this); - var scheme = url.scheme; - var port = url.port; - if (scheme == 'blob') try { - return new URL(scheme.path[0]).origin; - } catch (error) { - return 'null'; - } - if (scheme == 'file' || !isSpecial(url)) return 'null'; - return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : ''); -}; - -var getProtocol = function () { - return getInternalURLState(this).scheme + ':'; -}; - -var getUsername = function () { - return getInternalURLState(this).username; -}; - -var getPassword = function () { - return getInternalURLState(this).password; -}; - -var getHost = function () { - var url = getInternalURLState(this); - var host = url.host; - var port = url.port; - return host === null ? '' - : port === null ? serializeHost(host) - : serializeHost(host) + ':' + port; -}; - -var getHostname = function () { - var host = getInternalURLState(this).host; - return host === null ? '' : serializeHost(host); -}; - -var getPort = function () { - var port = getInternalURLState(this).port; - return port === null ? '' : String(port); -}; - -var getPathname = function () { - var url = getInternalURLState(this); - var path = url.path; - return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : ''; -}; - -var getSearch = function () { - var query = getInternalURLState(this).query; - return query ? '?' + query : ''; -}; - -var getSearchParams = function () { - return getInternalURLState(this).searchParams; -}; - -var getHash = function () { - var fragment = getInternalURLState(this).fragment; - return fragment ? '#' + fragment : ''; -}; - -var accessorDescriptor = function (getter, setter) { - return { get: getter, set: setter, configurable: true, enumerable: true }; -}; - -if (DESCRIPTORS) { - defineProperties(URLPrototype, { - // `URL.prototype.href` accessors pair - // https://url.spec.whatwg.org/#dom-url-href - href: accessorDescriptor(serializeURL, function (href) { - var url = getInternalURLState(this); - var urlString = String(href); - var failure = parseURL(url, urlString); - if (failure) throw TypeError(failure); - getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query); - }), - // `URL.prototype.origin` getter - // https://url.spec.whatwg.org/#dom-url-origin - origin: accessorDescriptor(getOrigin), - // `URL.prototype.protocol` accessors pair - // https://url.spec.whatwg.org/#dom-url-protocol - protocol: accessorDescriptor(getProtocol, function (protocol) { - var url = getInternalURLState(this); - parseURL(url, String(protocol) + ':', SCHEME_START); - }), - // `URL.prototype.username` accessors pair - // https://url.spec.whatwg.org/#dom-url-username - username: accessorDescriptor(getUsername, function (username) { - var url = getInternalURLState(this); - var codePoints = arrayFrom(String(username)); - if (cannotHaveUsernamePasswordPort(url)) return; - url.username = ''; - for (var i = 0; i < codePoints.length; i++) { - url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet); - } - }), - // `URL.prototype.password` accessors pair - // https://url.spec.whatwg.org/#dom-url-password - password: accessorDescriptor(getPassword, function (password) { - var url = getInternalURLState(this); - var codePoints = arrayFrom(String(password)); - if (cannotHaveUsernamePasswordPort(url)) return; - url.password = ''; - for (var i = 0; i < codePoints.length; i++) { - url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet); - } - }), - // `URL.prototype.host` accessors pair - // https://url.spec.whatwg.org/#dom-url-host - host: accessorDescriptor(getHost, function (host) { - var url = getInternalURLState(this); - if (url.cannotBeABaseURL) return; - parseURL(url, String(host), HOST); - }), - // `URL.prototype.hostname` accessors pair - // https://url.spec.whatwg.org/#dom-url-hostname - hostname: accessorDescriptor(getHostname, function (hostname) { - var url = getInternalURLState(this); - if (url.cannotBeABaseURL) return; - parseURL(url, String(hostname), HOSTNAME); - }), - // `URL.prototype.port` accessors pair - // https://url.spec.whatwg.org/#dom-url-port - port: accessorDescriptor(getPort, function (port) { - var url = getInternalURLState(this); - if (cannotHaveUsernamePasswordPort(url)) return; - port = String(port); - if (port == '') url.port = null; - else parseURL(url, port, PORT); - }), - // `URL.prototype.pathname` accessors pair - // https://url.spec.whatwg.org/#dom-url-pathname - pathname: accessorDescriptor(getPathname, function (pathname) { - var url = getInternalURLState(this); - if (url.cannotBeABaseURL) return; - url.path = []; - parseURL(url, pathname + '', PATH_START); - }), - // `URL.prototype.search` accessors pair - // https://url.spec.whatwg.org/#dom-url-search - search: accessorDescriptor(getSearch, function (search) { - var url = getInternalURLState(this); - search = String(search); - if (search == '') { - url.query = null; - } else { - if ('?' == search.charAt(0)) search = search.slice(1); - url.query = ''; - parseURL(url, search, QUERY); - } - getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query); - }), - // `URL.prototype.searchParams` getter - // https://url.spec.whatwg.org/#dom-url-searchparams - searchParams: accessorDescriptor(getSearchParams), - // `URL.prototype.hash` accessors pair - // https://url.spec.whatwg.org/#dom-url-hash - hash: accessorDescriptor(getHash, function (hash) { - var url = getInternalURLState(this); - hash = String(hash); - if (hash == '') { - url.fragment = null; - return; - } - if ('#' == hash.charAt(0)) hash = hash.slice(1); - url.fragment = ''; - parseURL(url, hash, FRAGMENT); - }) - }); -} - -// `URL.prototype.toJSON` method -// https://url.spec.whatwg.org/#dom-url-tojson -redefine(URLPrototype, 'toJSON', function toJSON() { - return serializeURL.call(this); -}, { enumerable: true }); - -// `URL.prototype.toString` method -// https://url.spec.whatwg.org/#URL-stringification-behavior -redefine(URLPrototype, 'toString', function toString() { - return serializeURL.call(this); -}, { enumerable: true }); - -if (NativeURL) { - var nativeCreateObjectURL = NativeURL.createObjectURL; - var nativeRevokeObjectURL = NativeURL.revokeObjectURL; - // `URL.createObjectURL` method - // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL - // eslint-disable-next-line no-unused-vars - if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) { - return nativeCreateObjectURL.apply(NativeURL, arguments); - }); - // `URL.revokeObjectURL` method - // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL - // eslint-disable-next-line no-unused-vars - if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) { - return nativeRevokeObjectURL.apply(NativeURL, arguments); - }); -} - -setToStringTag(URLConstructor, 'URL'); - -$({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, { - URL: URLConstructor -}); - - -/***/ }), - -/***/ "2bd2": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js -var tslib_es6 = __webpack_require__("9ab4"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Observable.js + 3 modules -var Observable = __webpack_require__("e9b9"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js -var Subscriber = __webpack_require__("1453"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscription.js + 1 modules -var Subscription = __webpack_require__("a6e8"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var ObjectUnsubscribedErrorImpl = /*@__PURE__*/ (function () { - function ObjectUnsubscribedErrorImpl() { - Error.call(this); - this.message = 'object unsubscribed'; - this.name = 'ObjectUnsubscribedError'; - return this; - } - ObjectUnsubscribedErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype); - return ObjectUnsubscribedErrorImpl; -})(); -var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl; -//# sourceMappingURL=ObjectUnsubscribedError.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/SubjectSubscription.js -/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */ - - -var SubjectSubscription_SubjectSubscription = /*@__PURE__*/ (function (_super) { - tslib_es6["a" /* __extends */](SubjectSubscription, _super); - function SubjectSubscription(subject, subscriber) { - var _this = _super.call(this) || this; - _this.subject = subject; - _this.subscriber = subscriber; - _this.closed = false; - return _this; - } - SubjectSubscription.prototype.unsubscribe = function () { - if (this.closed) { - return; - } - this.closed = true; - var subject = this.subject; - var observers = subject.observers; - this.subject = null; - if (!observers || observers.length === 0 || subject.isStopped || subject.closed) { - return; - } - var subscriberIndex = observers.indexOf(this.subscriber); - if (subscriberIndex !== -1) { - observers.splice(subscriberIndex, 1); - } - }; - return SubjectSubscription; -}(Subscription["a" /* Subscription */])); - -//# sourceMappingURL=SubjectSubscription.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js -var rxSubscriber = __webpack_require__("2ff5"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js -/* unused harmony export SubjectSubscriber */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subject_Subject; }); -/* unused harmony export AnonymousSubject */ -/** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */ - - - - - - - -var Subject_SubjectSubscriber = /*@__PURE__*/ (function (_super) { - tslib_es6["a" /* __extends */](SubjectSubscriber, _super); - function SubjectSubscriber(destination) { - var _this = _super.call(this, destination) || this; - _this.destination = destination; - return _this; - } - return SubjectSubscriber; -}(Subscriber["a" /* Subscriber */])); - -var Subject_Subject = /*@__PURE__*/ (function (_super) { - tslib_es6["a" /* __extends */](Subject, _super); - function Subject() { - var _this = _super.call(this) || this; - _this.observers = []; - _this.closed = false; - _this.isStopped = false; - _this.hasError = false; - _this.thrownError = null; - return _this; - } - Subject.prototype[rxSubscriber["a" /* rxSubscriber */]] = function () { - return new Subject_SubjectSubscriber(this); - }; - Subject.prototype.lift = function (operator) { - var subject = new Subject_AnonymousSubject(this, this); - subject.operator = operator; - return subject; - }; - Subject.prototype.next = function (value) { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - if (!this.isStopped) { - var observers = this.observers; - var len = observers.length; - var copy = observers.slice(); - for (var i = 0; i < len; i++) { - copy[i].next(value); - } - } - }; - Subject.prototype.error = function (err) { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - this.hasError = true; - this.thrownError = err; - this.isStopped = true; - var observers = this.observers; - var len = observers.length; - var copy = observers.slice(); - for (var i = 0; i < len; i++) { - copy[i].error(err); - } - this.observers.length = 0; - }; - Subject.prototype.complete = function () { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - this.isStopped = true; - var observers = this.observers; - var len = observers.length; - var copy = observers.slice(); - for (var i = 0; i < len; i++) { - copy[i].complete(); - } - this.observers.length = 0; - }; - Subject.prototype.unsubscribe = function () { - this.isStopped = true; - this.closed = true; - this.observers = null; - }; - Subject.prototype._trySubscribe = function (subscriber) { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - else { - return _super.prototype._trySubscribe.call(this, subscriber); - } - }; - Subject.prototype._subscribe = function (subscriber) { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - else if (this.hasError) { - subscriber.error(this.thrownError); - return Subscription["a" /* Subscription */].EMPTY; - } - else if (this.isStopped) { - subscriber.complete(); - return Subscription["a" /* Subscription */].EMPTY; - } - else { - this.observers.push(subscriber); - return new SubjectSubscription_SubjectSubscription(this, subscriber); - } - }; - Subject.prototype.asObservable = function () { - var observable = new Observable["a" /* Observable */](); - observable.source = this; - return observable; - }; - Subject.create = function (destination, source) { - return new Subject_AnonymousSubject(destination, source); - }; - return Subject; -}(Observable["a" /* Observable */])); - -var Subject_AnonymousSubject = /*@__PURE__*/ (function (_super) { - tslib_es6["a" /* __extends */](AnonymousSubject, _super); - function AnonymousSubject(destination, source) { - var _this = _super.call(this) || this; - _this.destination = destination; - _this.source = source; - return _this; - } - AnonymousSubject.prototype.next = function (value) { - var destination = this.destination; - if (destination && destination.next) { - destination.next(value); - } - }; - AnonymousSubject.prototype.error = function (err) { - var destination = this.destination; - if (destination && destination.error) { - this.destination.error(err); - } - }; - AnonymousSubject.prototype.complete = function () { - var destination = this.destination; - if (destination && destination.complete) { - this.destination.complete(); - } - }; - AnonymousSubject.prototype._subscribe = function (subscriber) { - var source = this.source; - if (source) { - return this.source.subscribe(subscriber); - } - else { - return Subscription["a" /* Subscription */].EMPTY; - } - }; - return AnonymousSubject; -}(Subject_Subject)); - -//# sourceMappingURL=Subject.js.map - - -/***/ }), - -/***/ "2ca0": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__("23e7"); -var getOwnPropertyDescriptor = __webpack_require__("06cf").f; -var toLength = __webpack_require__("50c4"); -var notARegExp = __webpack_require__("5a34"); -var requireObjectCoercible = __webpack_require__("1d80"); -var correctIsRegExpLogic = __webpack_require__("ab13"); -var IS_PURE = __webpack_require__("c430"); - -var nativeStartsWith = ''.startsWith; -var min = Math.min; - -var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith'); -// https://github.com/zloirock/core-js/pull/702 -var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () { - var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith'); - return descriptor && !descriptor.writable; -}(); - -// `String.prototype.startsWith` method -// https://tc39.github.io/ecma262/#sec-string.prototype.startswith -$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { - startsWith: function startsWith(searchString /* , position = 0 */) { - var that = String(requireObjectCoercible(this)); - notARegExp(searchString); - var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length)); - var search = String(searchString); - return nativeStartsWith - ? nativeStartsWith.call(that, search, index) - : that.slice(index, index + search.length) === search; - } -}); - - -/***/ }), - -/***/ "2cf4": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var fails = __webpack_require__("d039"); -var classof = __webpack_require__("c6b6"); -var bind = __webpack_require__("0366"); -var html = __webpack_require__("1be4"); -var createElement = __webpack_require__("cc12"); -var IS_IOS = __webpack_require__("1cdc"); - -var location = global.location; -var set = global.setImmediate; -var clear = global.clearImmediate; -var process = global.process; -var MessageChannel = global.MessageChannel; -var Dispatch = global.Dispatch; -var counter = 0; -var queue = {}; -var ONREADYSTATECHANGE = 'onreadystatechange'; -var defer, channel, port; - -var run = function (id) { - // eslint-disable-next-line no-prototype-builtins - if (queue.hasOwnProperty(id)) { - var fn = queue[id]; - delete queue[id]; - fn(); - } -}; - -var runner = function (id) { - return function () { - run(id); - }; -}; - -var listener = function (event) { - run(event.data); -}; - -var post = function (id) { - // old engines have not location.origin - global.postMessage(id + '', location.protocol + '//' + location.host); -}; - -// Node.js 0.9+ & IE10+ has setImmediate, otherwise: -if (!set || !clear) { - set = function setImmediate(fn) { - var args = []; - var i = 1; - while (arguments.length > i) args.push(arguments[i++]); - queue[++counter] = function () { - // eslint-disable-next-line no-new-func - (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args); - }; - defer(counter); - return counter; - }; - clear = function clearImmediate(id) { - delete queue[id]; - }; - // Node.js 0.8- - if (classof(process) == 'process') { - defer = function (id) { - process.nextTick(runner(id)); - }; - // Sphere (JS game engine) Dispatch API - } else if (Dispatch && Dispatch.now) { - defer = function (id) { - Dispatch.now(runner(id)); - }; - // Browsers with MessageChannel, includes WebWorkers - // except iOS - https://github.com/zloirock/core-js/issues/624 - } else if (MessageChannel && !IS_IOS) { - channel = new MessageChannel(); - port = channel.port2; - channel.port1.onmessage = listener; - defer = bind(port.postMessage, port, 1); - // Browsers with postMessage, skip WebWorkers - // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts && !fails(post)) { - defer = post; - global.addEventListener('message', listener, false); - // IE8- - } else if (ONREADYSTATECHANGE in createElement('script')) { - defer = function (id) { - html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { - html.removeChild(this); - run(id); - }; - }; - // Rest old browsers - } else { - defer = function (id) { - setTimeout(runner(id), 0); - }; - } -} - -module.exports = { - set: set, - clear: clear -}; - - -/***/ }), - -/***/ "2d00": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var userAgent = __webpack_require__("342f"); - -var process = global.process; -var versions = process && process.versions; -var v8 = versions && versions.v8; -var match, version; - -if (v8) { - match = v8.split('.'); - version = match[0] + match[1]; -} else if (userAgent) { - match = userAgent.match(/Edge\/(\d+)/); - if (!match || match[1] >= 74) { - match = userAgent.match(/Chrome\/(\d+)/); - if (match) version = match[1]; - } -} - -module.exports = version && +version; - - -/***/ }), - -/***/ "2ff5": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return rxSubscriber; }); -/* unused harmony export $$rxSubscriber */ -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var rxSubscriber = /*@__PURE__*/ (function () { - return typeof Symbol === 'function' - ? /*@__PURE__*/ Symbol('rxSubscriber') - : '@@rxSubscriber_' + /*@__PURE__*/ Math.random(); -})(); -var $$rxSubscriber = rxSubscriber; -//# sourceMappingURL=rxSubscriber.js.map - - -/***/ }), - -/***/ "3060": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OuterSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ab4"); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1453"); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - - -var OuterSubscriber = /*@__PURE__*/ (function (_super) { - tslib__WEBPACK_IMPORTED_MODULE_0__[/* __extends */ "a"](OuterSubscriber, _super); - function OuterSubscriber() { - return _super !== null && _super.apply(this, arguments) || this; - } - OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { - this.destination.next(innerValue); - }; - OuterSubscriber.prototype.notifyError = function (error, innerSub) { - this.destination.error(error); - }; - OuterSubscriber.prototype.notifyComplete = function (innerSub) { - this.destination.complete(); - }; - return OuterSubscriber; -}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__[/* Subscriber */ "a"])); - -//# sourceMappingURL=OuterSubscriber.js.map - - -/***/ }), - -/***/ "31c4": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isObject; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function isObject(x) { - return x !== null && typeof x === 'object'; -} -//# sourceMappingURL=isObject.js.map - - -/***/ }), - -/***/ "342f": -/***/ (function(module, exports, __webpack_require__) { - -var getBuiltIn = __webpack_require__("d066"); - -module.exports = getBuiltIn('navigator', 'userAgent') || ''; - - -/***/ }), - -/***/ "35a1": -/***/ (function(module, exports, __webpack_require__) { - -var classof = __webpack_require__("f5df"); -var Iterators = __webpack_require__("3f8c"); -var wellKnownSymbol = __webpack_require__("b622"); - -var ITERATOR = wellKnownSymbol('iterator'); - -module.exports = function (it) { - if (it != undefined) return it[ITERATOR] - || it['@@iterator'] - || Iterators[classof(it)]; -}; - - -/***/ }), - -/***/ "377c": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_basic_vue_vue_type_style_index_0_id_61e9bce2_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("808e"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_basic_vue_vue_type_style_index_0_id_61e9bce2_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_basic_vue_vue_type_style_index_0_id_61e9bce2_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ - /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_basic_vue_vue_type_style_index_0_id_61e9bce2_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "37e8": -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__("83ab"); -var definePropertyModule = __webpack_require__("9bf2"); -var anObject = __webpack_require__("825a"); -var objectKeys = __webpack_require__("df75"); - -// `Object.defineProperties` method -// https://tc39.github.io/ecma262/#sec-object.defineproperties -module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var keys = objectKeys(Properties); - var length = keys.length; - var index = 0; - var key; - while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]); - return O; -}; - - -/***/ }), - -/***/ "3bbe": -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__("861d"); - -module.exports = function (it) { - if (!isObject(it) && it !== null) { - throw TypeError("Can't set " + String(it) + ' as a prototype'); - } return it; -}; - - -/***/ }), - -/***/ "3ca3": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var charAt = __webpack_require__("6547").charAt; -var InternalStateModule = __webpack_require__("69f3"); -var defineIterator = __webpack_require__("7dd0"); - -var STRING_ITERATOR = 'String Iterator'; -var setInternalState = InternalStateModule.set; -var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); - -// `String.prototype[@@iterator]` method -// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator -defineIterator(String, 'String', function (iterated) { - setInternalState(this, { - type: STRING_ITERATOR, - string: String(iterated), - index: 0 - }); -// `%StringIteratorPrototype%.next` method -// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next -}, function next() { - var state = getInternalState(this); - var string = state.string; - var index = state.index; - var point; - if (index >= string.length) return { value: undefined, done: true }; - point = charAt(string, index); - state.index += point.length; - return { value: point, done: false }; -}); - - -/***/ }), - -/***/ "3e18": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return concatMap; }); -/* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a6c5"); -/** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */ - -function concatMap(project, resultSelector) { - return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__[/* mergeMap */ "a"])(project, resultSelector, 1); -} -//# sourceMappingURL=concatMap.js.map - - -/***/ }), - -/***/ "3f8c": -/***/ (function(module, exports) { - -module.exports = {}; - - -/***/ }), - -/***/ "4160": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__("23e7"); -var forEach = __webpack_require__("17c2"); - -// `Array.prototype.forEach` method -// https://tc39.github.io/ecma262/#sec-array.prototype.foreach -$({ target: 'Array', proto: true, forced: [].forEach != forEach }, { - forEach: forEach -}); - - -/***/ }), - -/***/ "41d5": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "428f": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); - -module.exports = global; - - -/***/ }), - -/***/ "44ad": -/***/ (function(module, exports, __webpack_require__) { - -var fails = __webpack_require__("d039"); -var classof = __webpack_require__("c6b6"); - -var split = ''.split; - -// fallback for non-array-like ES3 and non-enumerable old V8 strings -module.exports = fails(function () { - // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 - // eslint-disable-next-line no-prototype-builtins - return !Object('z').propertyIsEnumerable(0); -}) ? function (it) { - return classof(it) == 'String' ? split.call(it, '') : Object(it); -} : Object; - - -/***/ }), - -/***/ "44ca": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_fixed_vue_vue_type_style_index_0_id_413e3c3e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5fb3"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_fixed_vue_vue_type_style_index_0_id_413e3c3e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_fixed_vue_vue_type_style_index_0_id_413e3c3e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ - /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_fixed_vue_vue_type_style_index_0_id_413e3c3e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "44d2": -/***/ (function(module, exports, __webpack_require__) { - -var wellKnownSymbol = __webpack_require__("b622"); -var create = __webpack_require__("7c73"); -var definePropertyModule = __webpack_require__("9bf2"); - -var UNSCOPABLES = wellKnownSymbol('unscopables'); -var ArrayPrototype = Array.prototype; - -// Array.prototype[@@unscopables] -// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables -if (ArrayPrototype[UNSCOPABLES] == undefined) { - definePropertyModule.f(ArrayPrototype, UNSCOPABLES, { - configurable: true, - value: create(null) - }); -} - -// add a key to Array.prototype[@@unscopables] -module.exports = function (key) { - ArrayPrototype[UNSCOPABLES][key] = true; -}; - - -/***/ }), - -/***/ "44de": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); - -module.exports = function (a, b) { - var console = global.console; - if (console && console.error) { - arguments.length === 1 ? console.error(a) : console.error(a, b); - } -}; - - -/***/ }), - -/***/ "44e7": -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__("861d"); -var classof = __webpack_require__("c6b6"); -var wellKnownSymbol = __webpack_require__("b622"); - -var MATCH = wellKnownSymbol('match'); - -// `IsRegExp` abstract operation -// https://tc39.github.io/ecma262/#sec-isregexp -module.exports = function (it) { - var isRegExp; - return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp'); -}; - - -/***/ }), - -/***/ "4840": -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__("825a"); -var aFunction = __webpack_require__("1c0b"); -var wellKnownSymbol = __webpack_require__("b622"); - -var SPECIES = wellKnownSymbol('species'); - -// `SpeciesConstructor` abstract operation -// https://tc39.github.io/ecma262/#sec-speciesconstructor -module.exports = function (O, defaultConstructor) { - var C = anObject(O).constructor; - var S; - return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S); -}; - - -/***/ }), - -/***/ "4930": -/***/ (function(module, exports, __webpack_require__) { - -var fails = __webpack_require__("d039"); - -module.exports = !!Object.getOwnPropertySymbols && !fails(function () { - // Chrome 38 Symbol has incorrect toString conversion - // eslint-disable-next-line no-undef - return !String(Symbol()); -}); - - -/***/ }), - -/***/ "4cc2": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_range_vue_vue_type_style_index_0_id_27132352_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("95b0"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_range_vue_vue_type_style_index_0_id_27132352_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_range_vue_vue_type_style_index_0_id_27132352_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ - /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_range_vue_vue_type_style_index_0_id_27132352_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "4d64": -/***/ (function(module, exports, __webpack_require__) { - -var toIndexedObject = __webpack_require__("fc6a"); -var toLength = __webpack_require__("50c4"); -var toAbsoluteIndex = __webpack_require__("23cb"); - -// `Array.prototype.{ indexOf, includes }` methods implementation -var createMethod = function (IS_INCLUDES) { - return function ($this, el, fromIndex) { - var O = toIndexedObject($this); - var length = toLength(O.length); - var index = toAbsoluteIndex(fromIndex, length); - var value; - // Array#includes uses SameValueZero equality algorithm - // eslint-disable-next-line no-self-compare - if (IS_INCLUDES && el != el) while (length > index) { - value = O[index++]; - // eslint-disable-next-line no-self-compare - if (value != value) return true; - // Array#indexOf ignores holes, Array#includes - not - } else for (;length > index; index++) { - if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; - } return !IS_INCLUDES && -1; - }; -}; - -module.exports = { - // `Array.prototype.includes` method - // https://tc39.github.io/ecma262/#sec-array.prototype.includes - includes: createMethod(true), - // `Array.prototype.indexOf` method - // https://tc39.github.io/ecma262/#sec-array.prototype.indexof - indexOf: createMethod(false) -}; - - -/***/ }), - -/***/ "4d82": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return merge; }); -/* harmony import */ var _observable_merge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a748"); -/** PURE_IMPORTS_START _observable_merge PURE_IMPORTS_END */ - -function merge() { - var observables = []; - for (var _i = 0; _i < arguments.length; _i++) { - observables[_i] = arguments[_i]; - } - return function (source) { return source.lift.call(_observable_merge__WEBPACK_IMPORTED_MODULE_0__[/* merge */ "a"].apply(void 0, [source].concat(observables))); }; -} -//# sourceMappingURL=merge.js.map - - -/***/ }), - -/***/ "4df4": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var bind = __webpack_require__("0366"); -var toObject = __webpack_require__("7b0b"); -var callWithSafeIterationClosing = __webpack_require__("9bdd"); -var isArrayIteratorMethod = __webpack_require__("e95a"); -var toLength = __webpack_require__("50c4"); -var createProperty = __webpack_require__("8418"); -var getIteratorMethod = __webpack_require__("35a1"); - -// `Array.from` method implementation -// https://tc39.github.io/ecma262/#sec-array.from -module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { - var O = toObject(arrayLike); - var C = typeof this == 'function' ? this : Array; - var argumentsLength = arguments.length; - var mapfn = argumentsLength > 1 ? arguments[1] : undefined; - var mapping = mapfn !== undefined; - var iteratorMethod = getIteratorMethod(O); - var index = 0; - var length, result, step, iterator, next, value; - if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2); - // if the target is not iterable or it's an array with the default iterator - use a simple case - if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) { - iterator = iteratorMethod.call(O); - next = iterator.next; - result = new C(); - for (;!(step = next.call(iterator)).done; index++) { - value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value; - createProperty(result, index, value); - } - } else { - length = toLength(O.length); - result = new C(length); - for (;length > index; index++) { - value = mapping ? mapfn(O[index], index) : O[index]; - createProperty(result, index, value); - } - } - result.length = index; - return result; -}; - - -/***/ }), - -/***/ "50c4": -/***/ (function(module, exports, __webpack_require__) { - -var toInteger = __webpack_require__("a691"); - -var min = Math.min; - -// `ToLength` abstract operation -// https://tc39.github.io/ecma262/#sec-tolength -module.exports = function (argument) { - return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 -}; - - -/***/ }), - -/***/ "5135": -/***/ (function(module, exports) { - -var hasOwnProperty = {}.hasOwnProperty; - -module.exports = function (it, key) { - return hasOwnProperty.call(it, key); -}; - - -/***/ }), - -/***/ "5670": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return filter; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ab4"); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1453"); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - - -function filter(predicate, thisArg) { - return function filterOperatorFunction(source) { - return source.lift(new FilterOperator(predicate, thisArg)); - }; -} -var FilterOperator = /*@__PURE__*/ (function () { - function FilterOperator(predicate, thisArg) { - this.predicate = predicate; - this.thisArg = thisArg; - } - FilterOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg)); - }; - return FilterOperator; -}()); -var FilterSubscriber = /*@__PURE__*/ (function (_super) { - tslib__WEBPACK_IMPORTED_MODULE_0__[/* __extends */ "a"](FilterSubscriber, _super); - function FilterSubscriber(destination, predicate, thisArg) { - var _this = _super.call(this, destination) || this; - _this.predicate = predicate; - _this.thisArg = thisArg; - _this.count = 0; - return _this; - } - FilterSubscriber.prototype._next = function (value) { - var result; - try { - result = this.predicate.call(this.thisArg, value, this.count++); - } - catch (err) { - this.destination.error(err); - return; - } - if (result) { - this.destination.next(value); - } - }; - return FilterSubscriber; -}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__[/* Subscriber */ "a"])); -//# sourceMappingURL=filter.js.map - - -/***/ }), - -/***/ "5692": -/***/ (function(module, exports, __webpack_require__) { - -var IS_PURE = __webpack_require__("c430"); -var store = __webpack_require__("c6cd"); - -(module.exports = function (key, value) { - return store[key] || (store[key] = value !== undefined ? value : {}); -})('versions', []).push({ - version: '3.6.4', - mode: IS_PURE ? 'pure' : 'global', - copyright: '© 2020 Denis Pushkarev (zloirock.ru)' -}); - - -/***/ }), - -/***/ "56ef": -/***/ (function(module, exports, __webpack_require__) { - -var getBuiltIn = __webpack_require__("d066"); -var getOwnPropertyNamesModule = __webpack_require__("241c"); -var getOwnPropertySymbolsModule = __webpack_require__("7418"); -var anObject = __webpack_require__("825a"); - -// all object keys, includes non-enumerable and symbols -module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = getOwnPropertyNamesModule.f(anObject(it)); - var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; - return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; -}; - - -/***/ }), - -/***/ "5899": -/***/ (function(module, exports) { - -// a string of all valid unicode whitespaces -// eslint-disable-next-line max-len -module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; - - -/***/ }), - -/***/ "58a8": -/***/ (function(module, exports, __webpack_require__) { - -var requireObjectCoercible = __webpack_require__("1d80"); -var whitespaces = __webpack_require__("5899"); - -var whitespace = '[' + whitespaces + ']'; -var ltrim = RegExp('^' + whitespace + whitespace + '*'); -var rtrim = RegExp(whitespace + whitespace + '*$'); - -// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation -var createMethod = function (TYPE) { - return function ($this) { - var string = String(requireObjectCoercible($this)); - if (TYPE & 1) string = string.replace(ltrim, ''); - if (TYPE & 2) string = string.replace(rtrim, ''); - return string; - }; -}; - -module.exports = { - // `String.prototype.{ trimLeft, trimStart }` methods - // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart - start: createMethod(1), - // `String.prototype.{ trimRight, trimEnd }` methods - // https://tc39.github.io/ecma262/#sec-string.prototype.trimend - end: createMethod(2), - // `String.prototype.trim` method - // https://tc39.github.io/ecma262/#sec-string.prototype.trim - trim: createMethod(3) -}; - - -/***/ }), - -/***/ "5a34": -/***/ (function(module, exports, __webpack_require__) { - -var isRegExp = __webpack_require__("44e7"); - -module.exports = function (it) { - if (isRegExp(it)) { - throw TypeError("The method doesn't accept regular expressions"); - } return it; -}; - - -/***/ }), - -/***/ "5c6c": -/***/ (function(module, exports) { - -module.exports = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; -}; - - -/***/ }), - -/***/ "5e26": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b2dfcbc4-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-range.vue?vue&type=template&id=27132352&scoped=true& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"clipper-range"},[_c('div',{directives:[{name:"stream",rawName:"v-stream:mousedown",value:(_vm.mousedown$),expression:"mousedown$",arg:"mousedown"},{name:"stream",rawName:"v-stream:touchstart",value:(_vm.touchstart$),expression:"touchstart$",arg:"touchstart"}],staticClass:"wrap"},[_c('div',{staticClass:"stick"}),_c('div',{staticClass:"bar",style:(_vm.barStyle)})])])} -var staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/components/clipper-range.vue?vue&type=template&id=27132352&scoped=true& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js -var es_number_constructor = __webpack_require__("a9e3"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/map.js -var map = __webpack_require__("ebb6"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/concatMap.js -var concatMap = __webpack_require__("3e18"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/takeUntil.js -var takeUntil = __webpack_require__("9f2d"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/merge.js -var merge = __webpack_require__("4d82"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/startWith.js + 3 modules -var startWith = __webpack_require__("a744"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js + 2 modules -var Subject = __webpack_require__("2bd2"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/observable/fromEvent.js -var fromEvent = __webpack_require__("6e77"); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-range.vue?vue&type=script&lang=js& - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - -/* harmony default export */ var clipper_rangevue_type_script_lang_js_ = ({ - domStreams: ['mousedown$', 'touchstart$'], - subscriptions: function subscriptions() { - var _this = this; - - this.init$ = new Subject["a" /* Subject */](); - this.mouseup$ = Object(fromEvent["a" /* fromEvent */])(window, 'mouseup'); - this.mousemove$ = Object(fromEvent["a" /* fromEvent */])(window, 'mousemove'); - this.touchmove$ = Object(fromEvent["a" /* fromEvent */])(window, 'touchmove', { - passive: false - }); - this.touchend$ = Object(fromEvent["a" /* fromEvent */])(window, 'touchend', { - passive: false - }); - this.mouseEvent$ = this.mousedown$.pipe(Object(map["a" /* map */])(function (e) { - e.event.preventDefault(); - return e.event; - }), Object(concatMap["a" /* concatMap */])(function () { - return _this.mousemove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.mouseup$), Object(map["a" /* map */])(function (e) { - return e.clientX; - })); - }), Object(merge["a" /* merge */])(this.mousedown$.pipe(Object(map["a" /* map */])(function (e) { - return e.event.clientX; - })))); - this.touchEvent$ = this.touchstart$.pipe(Object(map["a" /* map */])(function (e) { - e.event.preventDefault(); - return e.event; - }), Object(concatMap["a" /* concatMap */])(function () { - return _this.touchmove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.touchend$), Object(map["a" /* map */])(function (e) { - return e.touches[0].clientX; - })); - }), Object(merge["a" /* merge */])(this.touchstart$.pipe(Object(map["a" /* map */])(function (e) { - return e.event.touches[0].clientX; - })))); - this.dragSubject$ = new Subject["a" /* Subject */]().pipe(Object(merge["a" /* merge */])(this.mouseEvent$), Object(merge["a" /* merge */])(this.touchEvent$), Object(map["a" /* map */])(this.getLeftPercent), Object(startWith["a" /* startWith */])(0), Object(merge["a" /* merge */])(this.init$)); - return { - x$: this.dragSubject$ - }; - }, - props: { - value: { - type: Number, - default: 0 - }, - max: { - type: Number, - default: 10 - }, - min: { - type: Number, - default: 0 - } - }, - computed: { - barStyle: function barStyle() { - return { - left: "".concat(this.x$ * 100, "%") - }; - }, - val: function val() { - var range = this.max - this.min; - var pos = this.getPos(); - var stickPos = pos.stickPos; - var maxLeft = pos.maxLeft; - return this.x$ * stickPos.width / maxLeft * range + this.min; - } - }, - watch: { - value: function value() { - this.initVal(); - } - }, - mounted: function mounted() { - var _this2 = this; - - this.initVal(); - this.$subscribeTo(this.dragSubject$, function () { - _this2.$emit('input', _this2.val); - }); - }, - methods: { - getPos: function getPos() { - var stickPos = this.$el.querySelector('.stick').getBoundingClientRect(); - var barPos = this.$el.querySelector('.bar').getBoundingClientRect(); - return { - maxLeft: stickPos.width - barPos.width, - stickPos: stickPos, - barPos: barPos - }; - }, - getLeftPercent: function getLeftPercent(x) { - var stickPos = this.$el.querySelector('.stick').getBoundingClientRect(); - var barPos = this.$el.querySelector('.bar').getBoundingClientRect(); - var maxLeft = stickPos.width - barPos.width; - var left = Math.max(Math.min(x - stickPos.left, maxLeft), 0); - return left / stickPos.width; - }, - initVal: function initVal() { - var range = this.max - this.min; - var percent = (this.value - this.min) / range; - var pos = this.getPos(); - this.init$.next(percent * pos.maxLeft / pos.stickPos.width); - } - } -}); -// CONCATENATED MODULE: ./src/components/clipper-range.vue?vue&type=script&lang=js& - /* harmony default export */ var components_clipper_rangevue_type_script_lang_js_ = (clipper_rangevue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/components/clipper-range.vue?vue&type=style&index=0&id=27132352&lang=scss&scoped=true& -var clipper_rangevue_type_style_index_0_id_27132352_lang_scss_scoped_true_ = __webpack_require__("4cc2"); - -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__("2877"); - -// CONCATENATED MODULE: ./src/components/clipper-range.vue - - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_clipper_rangevue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - "27132352", - null - -) - -/* harmony default export */ var clipper_range = __webpack_exports__["a"] = (component.exports); - -/***/ }), - -/***/ "5fb2": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js -var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 -var base = 36; -var tMin = 1; -var tMax = 26; -var skew = 38; -var damp = 700; -var initialBias = 72; -var initialN = 128; // 0x80 -var delimiter = '-'; // '\x2D' -var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars -var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators -var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process'; -var baseMinusTMin = base - tMin; -var floor = Math.floor; -var stringFromCharCode = String.fromCharCode; - -/** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - */ -var ucs2decode = function (string) { - var output = []; - var counter = 0; - var length = string.length; - while (counter < length) { - var value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // It's a high surrogate, and there is a next character. - var extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { // Low surrogate. - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // It's an unmatched surrogate; only append this code unit, in case the - // next code unit is the high surrogate of a surrogate pair. - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; -}; - -/** - * Converts a digit/integer into a basic code point. - */ -var digitToBasic = function (digit) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26); -}; - -/** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - */ -var adapt = function (delta, numPoints, firstTime) { - var k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); -}; - -/** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - */ -// eslint-disable-next-line max-statements -var encode = function (input) { - var output = []; - - // Convert the input in UCS-2 to an array of Unicode code points. - input = ucs2decode(input); - - // Cache the length. - var inputLength = input.length; - - // Initialize the state. - var n = initialN; - var delta = 0; - var bias = initialBias; - var i, currentValue; - - // Handle the basic code points. - for (i = 0; i < input.length; i++) { - currentValue = input[i]; - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - - var basicLength = output.length; // number of basic code points. - var handledCPCount = basicLength; // number of code points that have been handled; - - // Finish the basic string with a delimiter unless it's empty. - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - // All non-basic code points < n have been handled already. Find the next larger one: - var m = maxInt; - for (i = 0; i < input.length; i++) { - currentValue = input[i]; - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , but guard against overflow. - var handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - throw RangeError(OVERFLOW_ERROR); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - for (i = 0; i < input.length; i++) { - currentValue = input[i]; - if (currentValue < n && ++delta > maxInt) { - throw RangeError(OVERFLOW_ERROR); - } - if (currentValue == n) { - // Represent delta as a generalized variable-length integer. - var q = delta; - for (var k = base; /* no condition */; k += base) { - var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - if (q < t) break; - var qMinusT = q - t; - var baseMinusT = base - t; - output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT))); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); - delta = 0; - ++handledCPCount; - } - } - - ++delta; - ++n; - } - return output.join(''); -}; - -module.exports = function (input) { - var encoded = []; - var labels = input.toLowerCase().replace(regexSeparators, '\u002E').split('.'); - var i, label; - for (i = 0; i < labels.length; i++) { - label = labels[i]; - encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label); - } - return encoded.join('.'); -}; - - -/***/ }), - -/***/ "5fb3": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "60da": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var DESCRIPTORS = __webpack_require__("83ab"); -var fails = __webpack_require__("d039"); -var objectKeys = __webpack_require__("df75"); -var getOwnPropertySymbolsModule = __webpack_require__("7418"); -var propertyIsEnumerableModule = __webpack_require__("d1e7"); -var toObject = __webpack_require__("7b0b"); -var IndexedObject = __webpack_require__("44ad"); - -var nativeAssign = Object.assign; -var defineProperty = Object.defineProperty; - -// `Object.assign` method -// https://tc39.github.io/ecma262/#sec-object.assign -module.exports = !nativeAssign || fails(function () { - // should have correct order of operations (Edge bug) - if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', { - enumerable: true, - get: function () { - defineProperty(this, 'b', { - value: 3, - enumerable: false - }); - } - }), { b: 2 })).b !== 1) return true; - // should work with symbols and should have deterministic property order (V8 bug) - var A = {}; - var B = {}; - // eslint-disable-next-line no-undef - var symbol = Symbol(); - var alphabet = 'abcdefghijklmnopqrst'; - A[symbol] = 7; - alphabet.split('').forEach(function (chr) { B[chr] = chr; }); - return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet; -}) ? function assign(target, source) { // eslint-disable-line no-unused-vars - var T = toObject(target); - var argumentsLength = arguments.length; - var index = 1; - var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; - var propertyIsEnumerable = propertyIsEnumerableModule.f; - while (argumentsLength > index) { - var S = IndexedObject(arguments[index++]); - var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S); - var length = keys.length; - var j = 0; - var key; - while (length > j) { - key = keys[j++]; - if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key]; - } - } return T; -} : nativeAssign; - - -/***/ }), - -/***/ "6547": -/***/ (function(module, exports, __webpack_require__) { - -var toInteger = __webpack_require__("a691"); -var requireObjectCoercible = __webpack_require__("1d80"); - -// `String.prototype.{ codePointAt, at }` methods implementation -var createMethod = function (CONVERT_TO_STRING) { - return function ($this, pos) { - var S = String(requireObjectCoercible($this)); - var position = toInteger(pos); - var size = S.length; - var first, second; - if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; - first = S.charCodeAt(position); - return first < 0xD800 || first > 0xDBFF || position + 1 === size - || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF - ? CONVERT_TO_STRING ? S.charAt(position) : first - : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; - }; -}; - -module.exports = { - // `String.prototype.codePointAt` method - // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat - codeAt: createMethod(false), - // `String.prototype.at` method - // https://github.com/mathiasbynens/String.prototype.at - charAt: createMethod(true) -}; - - -/***/ }), - -/***/ "65f0": -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__("861d"); -var isArray = __webpack_require__("e8b5"); -var wellKnownSymbol = __webpack_require__("b622"); - -var SPECIES = wellKnownSymbol('species'); - -// `ArraySpeciesCreate` abstract operation -// https://tc39.github.io/ecma262/#sec-arrayspeciescreate -module.exports = function (originalArray, length) { - var C; - if (isArray(originalArray)) { - C = originalArray.constructor; - // cross-realm fallback - if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; - else if (isObject(C)) { - C = C[SPECIES]; - if (C === null) C = undefined; - } - } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); -}; - - -/***/ }), - -/***/ "667f": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/mergeMap.js + 7 modules -var mergeMap = __webpack_require__("a6c5"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/identity.js -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function identity(x) { - return x; -} -//# sourceMappingURL=identity.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/mergeAll.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return mergeAll; }); -/** PURE_IMPORTS_START _mergeMap,_util_identity PURE_IMPORTS_END */ - - -function mergeAll(concurrent) { - if (concurrent === void 0) { - concurrent = Number.POSITIVE_INFINITY; - } - return Object(mergeMap["a" /* mergeMap */])(identity, concurrent); -} -//# sourceMappingURL=mergeAll.js.map - - -/***/ }), - -/***/ "6888": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b0c0"); -/* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _components_clipper_preview_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("0bd0"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _components_clipper_preview_vue__WEBPACK_IMPORTED_MODULE_1__["a"]; }); - -/* harmony import */ var _components_clipper_range_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("5e26"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "d", function() { return _components_clipper_range_vue__WEBPACK_IMPORTED_MODULE_2__["a"]; }); - -/* harmony import */ var _components_clipper_basic_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7650"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _components_clipper_basic_vue__WEBPACK_IMPORTED_MODULE_3__["a"]; }); - -/* harmony import */ var _components_clipper_fixed_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("f04f"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _components_clipper_fixed_vue__WEBPACK_IMPORTED_MODULE_4__["a"]; }); - -/* harmony import */ var _components_clipper_upload_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("208d"); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "e", function() { return _components_clipper_upload_vue__WEBPACK_IMPORTED_MODULE_5__["a"]; }); - -/* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("0f53"); - - - - - - - - -var install = function install(Vue, options) { - var components = { - clipperBasic: { - component: _components_clipper_basic_vue__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], - name: 'clipper-basic' - }, - clipperPreview: { - component: _components_clipper_preview_vue__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], - name: 'clipper-preview' - }, - clipperRange: { - component: _components_clipper_range_vue__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], - name: 'clipper-range' - }, - clipperFixed: { - component: _components_clipper_fixed_vue__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], - name: 'clipper-fixed' - }, - clipperUpload: { - component: _components_clipper_upload_vue__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], - name: 'clipper-upload' - } - }; - - var registerComponent = function registerComponent(name) { - Vue.component(components[name].name, components[name].component); - }; - - options = options || {}; - _namespace__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].parentPropName = options.parentPropName || _namespace__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].parentPropName; - options.components = options.components === undefined ? components : options.components; // if no components property, register all component - - for (var k in options.components) { - if (!components[k]) throw new Error("Invalid components \"".concat(k, "\" in vurjs-clipper plugin")); - components[k].name = typeof options.components[k] === 'string' ? options.components[k] : components[k].name; - registerComponent(k); - } -}; - -var plugin = { - install: install -}; -/* harmony default export */ __webpack_exports__["f"] = (plugin); // script include auto plugin - -var GlobalVue = null; - -if (typeof window !== 'undefined') { - GlobalVue = window.Vue; -} else if (typeof global !== 'undefined') { - GlobalVue = global.Vue; -} - -if (GlobalVue) { - GlobalVue.use(plugin); -} - - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) - -/***/ }), - -/***/ "69f3": -/***/ (function(module, exports, __webpack_require__) { - -var NATIVE_WEAK_MAP = __webpack_require__("7f9a"); -var global = __webpack_require__("da84"); -var isObject = __webpack_require__("861d"); -var createNonEnumerableProperty = __webpack_require__("9112"); -var objectHas = __webpack_require__("5135"); -var sharedKey = __webpack_require__("f772"); -var hiddenKeys = __webpack_require__("d012"); - -var WeakMap = global.WeakMap; -var set, get, has; - -var enforce = function (it) { - return has(it) ? get(it) : set(it, {}); -}; - -var getterFor = function (TYPE) { - return function (it) { - var state; - if (!isObject(it) || (state = get(it)).type !== TYPE) { - throw TypeError('Incompatible receiver, ' + TYPE + ' required'); - } return state; - }; -}; - -if (NATIVE_WEAK_MAP) { - var store = new WeakMap(); - var wmget = store.get; - var wmhas = store.has; - var wmset = store.set; - set = function (it, metadata) { - wmset.call(store, it, metadata); - return metadata; - }; - get = function (it) { - return wmget.call(store, it) || {}; - }; - has = function (it) { - return wmhas.call(store, it); - }; -} else { - var STATE = sharedKey('state'); - hiddenKeys[STATE] = true; - set = function (it, metadata) { - createNonEnumerableProperty(it, STATE, metadata); - return metadata; - }; - get = function (it) { - return objectHas(it, STATE) ? it[STATE] : {}; - }; - has = function (it) { - return objectHas(it, STATE); - }; -} - -module.exports = { - set: set, - get: get, - has: has, - enforce: enforce, - getterFor: getterFor -}; - - -/***/ }), - -/***/ "6e77": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return fromEvent; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e9b9"); -/* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("8ac6"); -/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d817"); -/* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ebb6"); -/** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */ - - - - -var toString = /*@__PURE__*/ (function () { return Object.prototype.toString; })(); -function fromEvent(target, eventName, options, resultSelector) { - if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__[/* isFunction */ "a"])(options)) { - resultSelector = options; - options = undefined; - } - if (resultSelector) { - return fromEvent(target, eventName, options).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_3__[/* map */ "a"])(function (args) { return Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__[/* isArray */ "a"])(args) ? resultSelector.apply(void 0, args) : resultSelector(args); })); - } - return new _Observable__WEBPACK_IMPORTED_MODULE_0__[/* Observable */ "a"](function (subscriber) { - function handler(e) { - if (arguments.length > 1) { - subscriber.next(Array.prototype.slice.call(arguments)); - } - else { - subscriber.next(e); - } - } - setupSubscription(target, eventName, handler, subscriber, options); - }); -} -function setupSubscription(sourceObj, eventName, handler, subscriber, options) { - var unsubscribe; - if (isEventTarget(sourceObj)) { - var source_1 = sourceObj; - sourceObj.addEventListener(eventName, handler, options); - unsubscribe = function () { return source_1.removeEventListener(eventName, handler, options); }; - } - else if (isJQueryStyleEventEmitter(sourceObj)) { - var source_2 = sourceObj; - sourceObj.on(eventName, handler); - unsubscribe = function () { return source_2.off(eventName, handler); }; - } - else if (isNodeStyleEventEmitter(sourceObj)) { - var source_3 = sourceObj; - sourceObj.addListener(eventName, handler); - unsubscribe = function () { return source_3.removeListener(eventName, handler); }; - } - else if (sourceObj && sourceObj.length) { - for (var i = 0, len = sourceObj.length; i < len; i++) { - setupSubscription(sourceObj[i], eventName, handler, subscriber, options); - } - } - else { - throw new TypeError('Invalid event target'); - } - subscriber.add(unsubscribe); -} -function isNodeStyleEventEmitter(sourceObj) { - return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function'; -} -function isJQueryStyleEventEmitter(sourceObj) { - return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function'; -} -function isEventTarget(sourceObj) { - return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function'; -} -//# sourceMappingURL=fromEvent.js.map - - -/***/ }), - -/***/ "6eeb": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var createNonEnumerableProperty = __webpack_require__("9112"); -var has = __webpack_require__("5135"); -var setGlobal = __webpack_require__("ce4e"); -var inspectSource = __webpack_require__("8925"); -var InternalStateModule = __webpack_require__("69f3"); - -var getInternalState = InternalStateModule.get; -var enforceInternalState = InternalStateModule.enforce; -var TEMPLATE = String(String).split('String'); - -(module.exports = function (O, key, value, options) { - var unsafe = options ? !!options.unsafe : false; - var simple = options ? !!options.enumerable : false; - var noTargetGet = options ? !!options.noTargetGet : false; - if (typeof value == 'function') { - if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); - enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); - } - if (O === global) { - if (simple) O[key] = value; - else setGlobal(key, value); - return; - } else if (!unsafe) { - delete O[key]; - } else if (!noTargetGet && O[key]) { - simple = true; - } - if (simple) O[key] = value; - else createNonEnumerableProperty(O, key, value); -// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative -})(Function.prototype, 'toString', function toString() { - return typeof this == 'function' && getInternalState(this).source || inspectSource(this); -}); - - -/***/ }), - -/***/ "6f45": -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function() { - - var debug = false; - - var root = this; - - var EXIF = function(obj) { - if (obj instanceof EXIF) return obj; - if (!(this instanceof EXIF)) return new EXIF(obj); - this.EXIFwrapped = obj; - }; - - if (true) { - if ( true && module.exports) { - exports = module.exports = EXIF; - } - exports.EXIF = EXIF; - } else {} - - var ExifTags = EXIF.Tags = { - - // version tags - 0x9000 : "ExifVersion", // EXIF version - 0xA000 : "FlashpixVersion", // Flashpix format version - - // colorspace tags - 0xA001 : "ColorSpace", // Color space information tag - - // image configuration - 0xA002 : "PixelXDimension", // Valid width of meaningful image - 0xA003 : "PixelYDimension", // Valid height of meaningful image - 0x9101 : "ComponentsConfiguration", // Information about channels - 0x9102 : "CompressedBitsPerPixel", // Compressed bits per pixel - - // user information - 0x927C : "MakerNote", // Any desired information written by the manufacturer - 0x9286 : "UserComment", // Comments by user - - // related file - 0xA004 : "RelatedSoundFile", // Name of related sound file - - // date and time - 0x9003 : "DateTimeOriginal", // Date and time when the original image was generated - 0x9004 : "DateTimeDigitized", // Date and time when the image was stored digitally - 0x9290 : "SubsecTime", // Fractions of seconds for DateTime - 0x9291 : "SubsecTimeOriginal", // Fractions of seconds for DateTimeOriginal - 0x9292 : "SubsecTimeDigitized", // Fractions of seconds for DateTimeDigitized - - // picture-taking conditions - 0x829A : "ExposureTime", // Exposure time (in seconds) - 0x829D : "FNumber", // F number - 0x8822 : "ExposureProgram", // Exposure program - 0x8824 : "SpectralSensitivity", // Spectral sensitivity - 0x8827 : "ISOSpeedRatings", // ISO speed rating - 0x8828 : "OECF", // Optoelectric conversion factor - 0x9201 : "ShutterSpeedValue", // Shutter speed - 0x9202 : "ApertureValue", // Lens aperture - 0x9203 : "BrightnessValue", // Value of brightness - 0x9204 : "ExposureBias", // Exposure bias - 0x9205 : "MaxApertureValue", // Smallest F number of lens - 0x9206 : "SubjectDistance", // Distance to subject in meters - 0x9207 : "MeteringMode", // Metering mode - 0x9208 : "LightSource", // Kind of light source - 0x9209 : "Flash", // Flash status - 0x9214 : "SubjectArea", // Location and area of main subject - 0x920A : "FocalLength", // Focal length of the lens in mm - 0xA20B : "FlashEnergy", // Strobe energy in BCPS - 0xA20C : "SpatialFrequencyResponse", // - 0xA20E : "FocalPlaneXResolution", // Number of pixels in width direction per FocalPlaneResolutionUnit - 0xA20F : "FocalPlaneYResolution", // Number of pixels in height direction per FocalPlaneResolutionUnit - 0xA210 : "FocalPlaneResolutionUnit", // Unit for measuring FocalPlaneXResolution and FocalPlaneYResolution - 0xA214 : "SubjectLocation", // Location of subject in image - 0xA215 : "ExposureIndex", // Exposure index selected on camera - 0xA217 : "SensingMethod", // Image sensor type - 0xA300 : "FileSource", // Image source (3 == DSC) - 0xA301 : "SceneType", // Scene type (1 == directly photographed) - 0xA302 : "CFAPattern", // Color filter array geometric pattern - 0xA401 : "CustomRendered", // Special processing - 0xA402 : "ExposureMode", // Exposure mode - 0xA403 : "WhiteBalance", // 1 = auto white balance, 2 = manual - 0xA404 : "DigitalZoomRation", // Digital zoom ratio - 0xA405 : "FocalLengthIn35mmFilm", // Equivalent foacl length assuming 35mm film camera (in mm) - 0xA406 : "SceneCaptureType", // Type of scene - 0xA407 : "GainControl", // Degree of overall image gain adjustment - 0xA408 : "Contrast", // Direction of contrast processing applied by camera - 0xA409 : "Saturation", // Direction of saturation processing applied by camera - 0xA40A : "Sharpness", // Direction of sharpness processing applied by camera - 0xA40B : "DeviceSettingDescription", // - 0xA40C : "SubjectDistanceRange", // Distance to subject - - // other tags - 0xA005 : "InteroperabilityIFDPointer", - 0xA420 : "ImageUniqueID" // Identifier assigned uniquely to each image - }; - - var TiffTags = EXIF.TiffTags = { - 0x0100 : "ImageWidth", - 0x0101 : "ImageHeight", - 0x8769 : "ExifIFDPointer", - 0x8825 : "GPSInfoIFDPointer", - 0xA005 : "InteroperabilityIFDPointer", - 0x0102 : "BitsPerSample", - 0x0103 : "Compression", - 0x0106 : "PhotometricInterpretation", - 0x0112 : "Orientation", - 0x0115 : "SamplesPerPixel", - 0x011C : "PlanarConfiguration", - 0x0212 : "YCbCrSubSampling", - 0x0213 : "YCbCrPositioning", - 0x011A : "XResolution", - 0x011B : "YResolution", - 0x0128 : "ResolutionUnit", - 0x0111 : "StripOffsets", - 0x0116 : "RowsPerStrip", - 0x0117 : "StripByteCounts", - 0x0201 : "JPEGInterchangeFormat", - 0x0202 : "JPEGInterchangeFormatLength", - 0x012D : "TransferFunction", - 0x013E : "WhitePoint", - 0x013F : "PrimaryChromaticities", - 0x0211 : "YCbCrCoefficients", - 0x0214 : "ReferenceBlackWhite", - 0x0132 : "DateTime", - 0x010E : "ImageDescription", - 0x010F : "Make", - 0x0110 : "Model", - 0x0131 : "Software", - 0x013B : "Artist", - 0x8298 : "Copyright" - }; - - var GPSTags = EXIF.GPSTags = { - 0x0000 : "GPSVersionID", - 0x0001 : "GPSLatitudeRef", - 0x0002 : "GPSLatitude", - 0x0003 : "GPSLongitudeRef", - 0x0004 : "GPSLongitude", - 0x0005 : "GPSAltitudeRef", - 0x0006 : "GPSAltitude", - 0x0007 : "GPSTimeStamp", - 0x0008 : "GPSSatellites", - 0x0009 : "GPSStatus", - 0x000A : "GPSMeasureMode", - 0x000B : "GPSDOP", - 0x000C : "GPSSpeedRef", - 0x000D : "GPSSpeed", - 0x000E : "GPSTrackRef", - 0x000F : "GPSTrack", - 0x0010 : "GPSImgDirectionRef", - 0x0011 : "GPSImgDirection", - 0x0012 : "GPSMapDatum", - 0x0013 : "GPSDestLatitudeRef", - 0x0014 : "GPSDestLatitude", - 0x0015 : "GPSDestLongitudeRef", - 0x0016 : "GPSDestLongitude", - 0x0017 : "GPSDestBearingRef", - 0x0018 : "GPSDestBearing", - 0x0019 : "GPSDestDistanceRef", - 0x001A : "GPSDestDistance", - 0x001B : "GPSProcessingMethod", - 0x001C : "GPSAreaInformation", - 0x001D : "GPSDateStamp", - 0x001E : "GPSDifferential" - }; - - // EXIF 2.3 Spec - var IFD1Tags = EXIF.IFD1Tags = { - 0x0100: "ImageWidth", - 0x0101: "ImageHeight", - 0x0102: "BitsPerSample", - 0x0103: "Compression", - 0x0106: "PhotometricInterpretation", - 0x0111: "StripOffsets", - 0x0112: "Orientation", - 0x0115: "SamplesPerPixel", - 0x0116: "RowsPerStrip", - 0x0117: "StripByteCounts", - 0x011A: "XResolution", - 0x011B: "YResolution", - 0x011C: "PlanarConfiguration", - 0x0128: "ResolutionUnit", - 0x0201: "JpegIFOffset", // When image format is JPEG, this value show offset to JPEG data stored.(aka "ThumbnailOffset" or "JPEGInterchangeFormat") - 0x0202: "JpegIFByteCount", // When image format is JPEG, this value shows data size of JPEG image (aka "ThumbnailLength" or "JPEGInterchangeFormatLength") - 0x0211: "YCbCrCoefficients", - 0x0212: "YCbCrSubSampling", - 0x0213: "YCbCrPositioning", - 0x0214: "ReferenceBlackWhite" - }; - - var StringValues = EXIF.StringValues = { - ExposureProgram : { - 0 : "Not defined", - 1 : "Manual", - 2 : "Normal program", - 3 : "Aperture priority", - 4 : "Shutter priority", - 5 : "Creative program", - 6 : "Action program", - 7 : "Portrait mode", - 8 : "Landscape mode" - }, - MeteringMode : { - 0 : "Unknown", - 1 : "Average", - 2 : "CenterWeightedAverage", - 3 : "Spot", - 4 : "MultiSpot", - 5 : "Pattern", - 6 : "Partial", - 255 : "Other" - }, - LightSource : { - 0 : "Unknown", - 1 : "Daylight", - 2 : "Fluorescent", - 3 : "Tungsten (incandescent light)", - 4 : "Flash", - 9 : "Fine weather", - 10 : "Cloudy weather", - 11 : "Shade", - 12 : "Daylight fluorescent (D 5700 - 7100K)", - 13 : "Day white fluorescent (N 4600 - 5400K)", - 14 : "Cool white fluorescent (W 3900 - 4500K)", - 15 : "White fluorescent (WW 3200 - 3700K)", - 17 : "Standard light A", - 18 : "Standard light B", - 19 : "Standard light C", - 20 : "D55", - 21 : "D65", - 22 : "D75", - 23 : "D50", - 24 : "ISO studio tungsten", - 255 : "Other" - }, - Flash : { - 0x0000 : "Flash did not fire", - 0x0001 : "Flash fired", - 0x0005 : "Strobe return light not detected", - 0x0007 : "Strobe return light detected", - 0x0009 : "Flash fired, compulsory flash mode", - 0x000D : "Flash fired, compulsory flash mode, return light not detected", - 0x000F : "Flash fired, compulsory flash mode, return light detected", - 0x0010 : "Flash did not fire, compulsory flash mode", - 0x0018 : "Flash did not fire, auto mode", - 0x0019 : "Flash fired, auto mode", - 0x001D : "Flash fired, auto mode, return light not detected", - 0x001F : "Flash fired, auto mode, return light detected", - 0x0020 : "No flash function", - 0x0041 : "Flash fired, red-eye reduction mode", - 0x0045 : "Flash fired, red-eye reduction mode, return light not detected", - 0x0047 : "Flash fired, red-eye reduction mode, return light detected", - 0x0049 : "Flash fired, compulsory flash mode, red-eye reduction mode", - 0x004D : "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected", - 0x004F : "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected", - 0x0059 : "Flash fired, auto mode, red-eye reduction mode", - 0x005D : "Flash fired, auto mode, return light not detected, red-eye reduction mode", - 0x005F : "Flash fired, auto mode, return light detected, red-eye reduction mode" - }, - SensingMethod : { - 1 : "Not defined", - 2 : "One-chip color area sensor", - 3 : "Two-chip color area sensor", - 4 : "Three-chip color area sensor", - 5 : "Color sequential area sensor", - 7 : "Trilinear sensor", - 8 : "Color sequential linear sensor" - }, - SceneCaptureType : { - 0 : "Standard", - 1 : "Landscape", - 2 : "Portrait", - 3 : "Night scene" - }, - SceneType : { - 1 : "Directly photographed" - }, - CustomRendered : { - 0 : "Normal process", - 1 : "Custom process" - }, - WhiteBalance : { - 0 : "Auto white balance", - 1 : "Manual white balance" - }, - GainControl : { - 0 : "None", - 1 : "Low gain up", - 2 : "High gain up", - 3 : "Low gain down", - 4 : "High gain down" - }, - Contrast : { - 0 : "Normal", - 1 : "Soft", - 2 : "Hard" - }, - Saturation : { - 0 : "Normal", - 1 : "Low saturation", - 2 : "High saturation" - }, - Sharpness : { - 0 : "Normal", - 1 : "Soft", - 2 : "Hard" - }, - SubjectDistanceRange : { - 0 : "Unknown", - 1 : "Macro", - 2 : "Close view", - 3 : "Distant view" - }, - FileSource : { - 3 : "DSC" - }, - - Components : { - 0 : "", - 1 : "Y", - 2 : "Cb", - 3 : "Cr", - 4 : "R", - 5 : "G", - 6 : "B" - } - }; - - function addEvent(element, event, handler) { - if (element.addEventListener) { - element.addEventListener(event, handler, false); - } else if (element.attachEvent) { - element.attachEvent("on" + event, handler); - } - } - - function imageHasData(img) { - return !!(img.exifdata); - } - - - function base64ToArrayBuffer(base64, contentType) { - contentType = contentType || base64.match(/^data\:([^\;]+)\;base64,/mi)[1] || ''; // e.g. 'data:image/jpeg;base64,...' => 'image/jpeg' - base64 = base64.replace(/^data\:([^\;]+)\;base64,/gmi, ''); - var binary = atob(base64); - var len = binary.length; - var buffer = new ArrayBuffer(len); - var view = new Uint8Array(buffer); - for (var i = 0; i < len; i++) { - view[i] = binary.charCodeAt(i); - } - return buffer; - } - - function objectURLToBlob(url, callback) { - var http = new XMLHttpRequest(); - http.open("GET", url, true); - http.responseType = "blob"; - http.onload = function(e) { - if (this.status == 200 || this.status === 0) { - callback(this.response); - } - }; - http.send(); - } - - function getImageData(img, callback) { - function handleBinaryFile(binFile) { - var data = findEXIFinJPEG(binFile); - img.exifdata = data || {}; - var iptcdata = findIPTCinJPEG(binFile); - img.iptcdata = iptcdata || {}; - if (EXIF.isXmpEnabled) { - var xmpdata= findXMPinJPEG(binFile); - img.xmpdata = xmpdata || {}; - } - if (callback) { - callback.call(img); - } - } - - if (img.src) { - if (/^data\:/i.test(img.src)) { // Data URI - var arrayBuffer = base64ToArrayBuffer(img.src); - handleBinaryFile(arrayBuffer); - - } else if (/^blob\:/i.test(img.src)) { // Object URL - var fileReader = new FileReader(); - fileReader.onload = function(e) { - handleBinaryFile(e.target.result); - }; - objectURLToBlob(img.src, function (blob) { - fileReader.readAsArrayBuffer(blob); - }); - } else { - var http = new XMLHttpRequest(); - http.onload = function() { - if (this.status == 200 || this.status === 0) { - handleBinaryFile(http.response); - } else { - throw "Could not load image"; - } - http = null; - }; - http.open("GET", img.src, true); - http.responseType = "arraybuffer"; - http.send(null); - } - } else if (self.FileReader && (img instanceof self.Blob || img instanceof self.File)) { - var fileReader = new FileReader(); - fileReader.onload = function(e) { - if (debug) console.log("Got file of length " + e.target.result.byteLength); - handleBinaryFile(e.target.result); - }; - - fileReader.readAsArrayBuffer(img); - } - } - - function findEXIFinJPEG(file) { - var dataView = new DataView(file); - - if (debug) console.log("Got file of length " + file.byteLength); - if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) { - if (debug) console.log("Not a valid JPEG"); - return false; // not a valid jpeg - } - - var offset = 2, - length = file.byteLength, - marker; - - while (offset < length) { - if (dataView.getUint8(offset) != 0xFF) { - if (debug) console.log("Not a valid marker at offset " + offset + ", found: " + dataView.getUint8(offset)); - return false; // not a valid marker, something is wrong - } - - marker = dataView.getUint8(offset + 1); - if (debug) console.log(marker); - - // we could implement handling for other markers here, - // but we're only looking for 0xFFE1 for EXIF data - - if (marker == 225) { - if (debug) console.log("Found 0xFFE1 marker"); - - return readEXIFData(dataView, offset + 4, dataView.getUint16(offset + 2) - 2); - - // offset += 2 + file.getShortAt(offset+2, true); - - } else { - offset += 2 + dataView.getUint16(offset+2); - } - - } - - } - - function findIPTCinJPEG(file) { - var dataView = new DataView(file); - - if (debug) console.log("Got file of length " + file.byteLength); - if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) { - if (debug) console.log("Not a valid JPEG"); - return false; // not a valid jpeg - } - - var offset = 2, - length = file.byteLength; - - - var isFieldSegmentStart = function(dataView, offset){ - return ( - dataView.getUint8(offset) === 0x38 && - dataView.getUint8(offset+1) === 0x42 && - dataView.getUint8(offset+2) === 0x49 && - dataView.getUint8(offset+3) === 0x4D && - dataView.getUint8(offset+4) === 0x04 && - dataView.getUint8(offset+5) === 0x04 - ); - }; - - while (offset < length) { - - if ( isFieldSegmentStart(dataView, offset )){ - - // Get the length of the name header (which is padded to an even number of bytes) - var nameHeaderLength = dataView.getUint8(offset+7); - if(nameHeaderLength % 2 !== 0) nameHeaderLength += 1; - // Check for pre photoshop 6 format - if(nameHeaderLength === 0) { - // Always 4 - nameHeaderLength = 4; - } - - var startOffset = offset + 8 + nameHeaderLength; - var sectionLength = dataView.getUint16(offset + 6 + nameHeaderLength); - - return readIPTCData(file, startOffset, sectionLength); - - break; - - } - - - // Not the marker, continue searching - offset++; - - } - - } - var IptcFieldMap = { - 0x78 : 'caption', - 0x6E : 'credit', - 0x19 : 'keywords', - 0x37 : 'dateCreated', - 0x50 : 'byline', - 0x55 : 'bylineTitle', - 0x7A : 'captionWriter', - 0x69 : 'headline', - 0x74 : 'copyright', - 0x0F : 'category' - }; - function readIPTCData(file, startOffset, sectionLength){ - var dataView = new DataView(file); - var data = {}; - var fieldValue, fieldName, dataSize, segmentType, segmentSize; - var segmentStartPos = startOffset; - while(segmentStartPos < startOffset+sectionLength) { - if(dataView.getUint8(segmentStartPos) === 0x1C && dataView.getUint8(segmentStartPos+1) === 0x02){ - segmentType = dataView.getUint8(segmentStartPos+2); - if(segmentType in IptcFieldMap) { - dataSize = dataView.getInt16(segmentStartPos+3); - segmentSize = dataSize + 5; - fieldName = IptcFieldMap[segmentType]; - fieldValue = getStringFromDB(dataView, segmentStartPos+5, dataSize); - // Check if we already stored a value with this name - if(data.hasOwnProperty(fieldName)) { - // Value already stored with this name, create multivalue field - if(data[fieldName] instanceof Array) { - data[fieldName].push(fieldValue); - } - else { - data[fieldName] = [data[fieldName], fieldValue]; - } - } - else { - data[fieldName] = fieldValue; - } - } - - } - segmentStartPos++; - } - return data; - } - - - - function readTags(file, tiffStart, dirStart, strings, bigEnd) { - var entries = file.getUint16(dirStart, !bigEnd), - tags = {}, - entryOffset, tag, - i; - - for (i=0;i 4 ? valueOffset : (entryOffset + 8); - vals = []; - for (n=0;n 4 ? valueOffset : (entryOffset + 8); - return getStringFromDB(file, offset, numValues-1); - - case 3: // short, 16 bit int - if (numValues == 1) { - return file.getUint16(entryOffset + 8, !bigEnd); - } else { - offset = numValues > 2 ? valueOffset : (entryOffset + 8); - vals = []; - for (n=0;n dataView.byteLength) { // this should not happen - // console.log('******** IFD1Offset is outside the bounds of the DataView ********'); - return {}; - } - // console.log('******* thumbnail IFD offset (IFD1) is: %s', IFD1OffsetPointer); - - var thumbTags = readTags(dataView, tiffStart, tiffStart + IFD1OffsetPointer, IFD1Tags, bigEnd) - - // EXIF 2.3 specification for JPEG format thumbnail - - // If the value of Compression(0x0103) Tag in IFD1 is '6', thumbnail image format is JPEG. - // Most of Exif image uses JPEG format for thumbnail. In that case, you can get offset of thumbnail - // by JpegIFOffset(0x0201) Tag in IFD1, size of thumbnail by JpegIFByteCount(0x0202) Tag. - // Data format is ordinary JPEG format, starts from 0xFFD8 and ends by 0xFFD9. It seems that - // JPEG format and 160x120pixels of size are recommended thumbnail format for Exif2.1 or later. - - if (thumbTags['Compression']) { - // console.log('Thumbnail image found!'); - - switch (thumbTags['Compression']) { - case 6: - // console.log('Thumbnail image format is JPEG'); - if (thumbTags.JpegIFOffset && thumbTags.JpegIFByteCount) { - // extract the thumbnail - var tOffset = tiffStart + thumbTags.JpegIFOffset; - var tLength = thumbTags.JpegIFByteCount; - thumbTags['blob'] = new Blob([new Uint8Array(dataView.buffer, tOffset, tLength)], { - type: 'image/jpeg' - }); - } - break; - - case 1: - console.log("Thumbnail image format is TIFF, which is not implemented."); - break; - default: - console.log("Unknown thumbnail image format '%s'", thumbTags['Compression']); - } - } - else if (thumbTags['PhotometricInterpretation'] == 2) { - console.log("Thumbnail image format is RGB, which is not implemented."); - } - return thumbTags; - } - - function getStringFromDB(buffer, start, length) { - var outstr = ""; - for (n = start; n < start+length; n++) { - outstr += String.fromCharCode(buffer.getUint8(n)); - } - return outstr; - } - - function readEXIFData(file, start) { - if (getStringFromDB(file, start, 4) != "Exif") { - if (debug) console.log("Not valid EXIF data! " + getStringFromDB(file, start, 4)); - return false; - } - - var bigEnd, - tags, tag, - exifData, gpsData, - tiffOffset = start + 6; - - // test for TIFF validity and endianness - if (file.getUint16(tiffOffset) == 0x4949) { - bigEnd = false; - } else if (file.getUint16(tiffOffset) == 0x4D4D) { - bigEnd = true; - } else { - if (debug) console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"); - return false; - } - - if (file.getUint16(tiffOffset+2, !bigEnd) != 0x002A) { - if (debug) console.log("Not valid TIFF data! (no 0x002A)"); - return false; - } - - var firstIFDOffset = file.getUint32(tiffOffset+4, !bigEnd); - - if (firstIFDOffset < 0x00000008) { - if (debug) console.log("Not valid TIFF data! (First offset less than 8)", file.getUint32(tiffOffset+4, !bigEnd)); - return false; - } - - tags = readTags(file, tiffOffset, tiffOffset + firstIFDOffset, TiffTags, bigEnd); - - if (tags.ExifIFDPointer) { - exifData = readTags(file, tiffOffset, tiffOffset + tags.ExifIFDPointer, ExifTags, bigEnd); - for (tag in exifData) { - switch (tag) { - case "LightSource" : - case "Flash" : - case "MeteringMode" : - case "ExposureProgram" : - case "SensingMethod" : - case "SceneCaptureType" : - case "SceneType" : - case "CustomRendered" : - case "WhiteBalance" : - case "GainControl" : - case "Contrast" : - case "Saturation" : - case "Sharpness" : - case "SubjectDistanceRange" : - case "FileSource" : - exifData[tag] = StringValues[tag][exifData[tag]]; - break; - - case "ExifVersion" : - case "FlashpixVersion" : - exifData[tag] = String.fromCharCode(exifData[tag][0], exifData[tag][1], exifData[tag][2], exifData[tag][3]); - break; - - case "ComponentsConfiguration" : - exifData[tag] = - StringValues.Components[exifData[tag][0]] + - StringValues.Components[exifData[tag][1]] + - StringValues.Components[exifData[tag][2]] + - StringValues.Components[exifData[tag][3]]; - break; - } - tags[tag] = exifData[tag]; - } - } - - if (tags.GPSInfoIFDPointer) { - gpsData = readTags(file, tiffOffset, tiffOffset + tags.GPSInfoIFDPointer, GPSTags, bigEnd); - for (tag in gpsData) { - switch (tag) { - case "GPSVersionID" : - gpsData[tag] = gpsData[tag][0] + - "." + gpsData[tag][1] + - "." + gpsData[tag][2] + - "." + gpsData[tag][3]; - break; - } - tags[tag] = gpsData[tag]; - } - } - - // extract thumbnail - tags['thumbnail'] = readThumbnailImage(file, tiffOffset, firstIFDOffset, bigEnd); - - return tags; - } - - function findXMPinJPEG(file) { - - if (!('DOMParser' in self)) { - // console.warn('XML parsing not supported without DOMParser'); - return; - } - var dataView = new DataView(file); - - if (debug) console.log("Got file of length " + file.byteLength); - if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) { - if (debug) console.log("Not a valid JPEG"); - return false; // not a valid jpeg - } - - var offset = 2, - length = file.byteLength, - dom = new DOMParser(); - - while (offset < (length-4)) { - if (getStringFromDB(dataView, offset, 4) == "http") { - var startOffset = offset - 1; - var sectionLength = dataView.getUint16(offset - 2) - 1; - var xmpString = getStringFromDB(dataView, startOffset, sectionLength) - var xmpEndIndex = xmpString.indexOf('xmpmeta>') + 8; - xmpString = xmpString.substring( xmpString.indexOf( ' 0) { - json['@attributes'] = {}; - for (var j = 0; j < xml.attributes.length; j++) { - var attribute = xml.attributes.item(j); - json['@attributes'][attribute.nodeName] = attribute.nodeValue; - } - } - } else if (xml.nodeType == 3) { // text node - return xml.nodeValue; - } - - // deal with children - if (xml.hasChildNodes()) { - for(var i = 0; i < xml.childNodes.length; i++) { - var child = xml.childNodes.item(i); - var nodeName = child.nodeName; - if (json[nodeName] == null) { - json[nodeName] = xml2json(child); - } else { - if (json[nodeName].push == null) { - var old = json[nodeName]; - json[nodeName] = []; - json[nodeName].push(old); - } - json[nodeName].push(xml2json(child)); - } - } - } - - return json; - } - - function xml2Object(xml) { - try { - var obj = {}; - if (xml.children.length > 0) { - for (var i = 0; i < xml.children.length; i++) { - var item = xml.children.item(i); - var attributes = item.attributes; - for(var idx in attributes) { - var itemAtt = attributes[idx]; - var dataKey = itemAtt.nodeName; - var dataValue = itemAtt.nodeValue; - - if(dataKey !== undefined) { - obj[dataKey] = dataValue; - } - } - var nodeName = item.nodeName; - - if (typeof (obj[nodeName]) == "undefined") { - obj[nodeName] = xml2json(item); - } else { - if (typeof (obj[nodeName].push) == "undefined") { - var old = obj[nodeName]; - - obj[nodeName] = []; - obj[nodeName].push(old); - } - obj[nodeName].push(xml2json(item)); - } - } - } else { - obj = xml.textContent; - } - return obj; - } catch (e) { - console.log(e.message); - } - } - - EXIF.enableXmp = function() { - EXIF.isXmpEnabled = true; - } - - EXIF.disableXmp = function() { - EXIF.isXmpEnabled = false; - } - - EXIF.getData = function(img, callback) { - if (((self.Image && img instanceof self.Image) - || (self.HTMLImageElement && img instanceof self.HTMLImageElement)) - && !img.complete) - return false; - - if (!imageHasData(img)) { - getImageData(img, callback); - } else { - if (callback) { - callback.call(img); - } - } - return true; - } - - EXIF.getTag = function(img, tag) { - if (!imageHasData(img)) return; - return img.exifdata[tag]; - } - - EXIF.getIptcTag = function(img, tag) { - if (!imageHasData(img)) return; - return img.iptcdata[tag]; - } - - EXIF.getAllTags = function(img) { - if (!imageHasData(img)) return {}; - var a, - data = img.exifdata, - tags = {}; - for (a in data) { - if (data.hasOwnProperty(a)) { - tags[a] = data[a]; - } - } - return tags; - } - - EXIF.getAllIptcTags = function(img) { - if (!imageHasData(img)) return {}; - var a, - data = img.iptcdata, - tags = {}; - for (a in data) { - if (data.hasOwnProperty(a)) { - tags[a] = data[a]; - } - } - return tags; - } - - EXIF.pretty = function(img) { - if (!imageHasData(img)) return ""; - var a, - data = img.exifdata, - strPretty = ""; - for (a in data) { - if (data.hasOwnProperty(a)) { - if (typeof data[a] == "object") { - if (data[a] instanceof Number) { - strPretty += a + " : " + data[a] + " [" + data[a].numerator + "/" + data[a].denominator + "]\r\n"; - } else { - strPretty += a + " : [" + data[a].length + " values]\r\n"; - } - } else { - strPretty += a + " : " + data[a] + "\r\n"; - } - } - } - return strPretty; - } - - EXIF.readFromBinaryFile = function(file) { - return findEXIFinJPEG(file); - } - - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() { - return EXIF; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } -}.call(this)); - - - -/***/ }), - -/***/ "7156": -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__("861d"); -var setPrototypeOf = __webpack_require__("d2bb"); - -// makes subclassing work correct for wrapped built-ins -module.exports = function ($this, dummy, Wrapper) { - var NewTarget, NewTargetPrototype; - if ( - // it can work only with native `setPrototypeOf` - setPrototypeOf && - // we haven't completely correct pre-ES6 way for getting `new.target`, so use this - typeof (NewTarget = dummy.constructor) == 'function' && - NewTarget !== Wrapper && - isObject(NewTargetPrototype = NewTarget.prototype) && - NewTargetPrototype !== Wrapper.prototype - ) setPrototypeOf($this, NewTargetPrototype); - return $this; -}; - - -/***/ }), - -/***/ "7418": -/***/ (function(module, exports) { - -exports.f = Object.getOwnPropertySymbols; - - -/***/ }), - -/***/ "746f": -/***/ (function(module, exports, __webpack_require__) { - -var path = __webpack_require__("428f"); -var has = __webpack_require__("5135"); -var wrappedWellKnownSymbolModule = __webpack_require__("e538"); -var defineProperty = __webpack_require__("9bf2").f; - -module.exports = function (NAME) { - var Symbol = path.Symbol || (path.Symbol = {}); - if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, { - value: wrappedWellKnownSymbolModule.f(NAME) - }); -}; - - -/***/ }), - -/***/ "75eb": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_preview_vue_vue_type_style_index_0_id_6f79f498_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("41d5"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_preview_vue_vue_type_style_index_0_id_6f79f498_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_preview_vue_vue_type_style_index_0_id_6f79f498_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ - /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_clipper_preview_vue_vue_type_style_index_0_id_6f79f498_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "7650": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b2dfcbc4-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-basic.vue?vue&type=template&id=61e9bce2&scoped=true& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"js-clipper-basic"},[_c('div',{staticClass:"vuejs-clipper-basic__padding",style:(_vm.padStyle)},[_c('canvas',{staticClass:"vuejs-clipper-basic__stem-canvas",attrs:{"width":_vm.stemArea.width,"height":_vm.stemArea.height}}),_c('div',{staticClass:"vuejs-clipper-basic__in-pad",style:(_vm.inPadStyle)},[_c('div',{staticClass:"vuejs-clipper-basic__img-wrap",class:{ vertical: _vm.isVertical }},[_c('div',{staticClass:"vuejs-clipper-basic__img-scale js-img-scale",style:(_vm.scaleStyle)},[_c('img',{staticClass:"vuejs-clipper-basic__img js-img",style:(_vm.rotateStyle),attrs:{"src":_vm.src,"crossorigin":_vm.crossOrigin},on:{"load":function($event){_vm.imgLoaded();_vm.emit('load',$event)},"error":function($event){return _vm.emit('error',$event)}}})])])]),_c('div',{staticClass:"vuejs-clipper-basic__in-pad",style:(_vm.inPadStyle)},[_c('div',{staticClass:"vuejs-clipper-basic__clip-area js-clip-area"},[_c('div',{staticClass:"vuejs-clipper-basic__zoom-area js-zoom-area",style:(_vm.posObj)},[_c('div',{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--outer",style:(_vm.exOuterStyle)}),_c('div',{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--inner",style:(_vm.exInnerStyle)},[_c('div',{staticClass:"vuejs-clipper-basic__drag-inset js-drag-inset"})]),(_vm.corner)?_c('div',_vm._l((4),function(index){return _c('div',{key:'corner'+index,staticClass:"vuejs-clipper-basic__corner",class:("vuejs-clipper-basic__corner" + index)})}),0):_vm._e(),(_vm.grid)?_c('div',{staticClass:"vuejs-clipper-basic__grid"},_vm._l((4),function(index){return _c('div',{key:'gridItem'+index,staticClass:"vuejs-clipper-basic__grid-item"})}),0):_vm._e(),_vm._t("vuejs-clipper-basic__area")],2)])])]),_c('div',{staticClass:"vuejs-clipper-basic__placeholder",style:(_vm.eptStyle)},[_vm._t("placeholder")],2)])} -var staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/components/clipper-basic.vue?vue&type=template&id=61e9bce2&scoped=true& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js -var es_array_concat = __webpack_require__("99af"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js -var es_number_constructor = __webpack_require__("a9e3"); - -// EXTERNAL MODULE: ./src/components/extends/clippo.js + 3 modules -var clippo = __webpack_require__("bc00"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js + 2 modules -var Subject = __webpack_require__("2bd2"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/map.js -var map = __webpack_require__("ebb6"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/merge.js -var merge = __webpack_require__("4d82"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/filter.js -var filter = __webpack_require__("5670"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/tap.js -var tap = __webpack_require__("c4cc"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/concatMap.js -var concatMap = __webpack_require__("3e18"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/takeUntil.js -var takeUntil = __webpack_require__("9f2d"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/startWith.js + 3 modules -var startWith = __webpack_require__("a744"); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-basic.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - -/* harmony default export */ var clipper_basicvue_type_script_lang_js_ = ({ - extends: { - methods: clippo["a" /* basicMethods */], - mixins: [clippo["d" /* rxEventListeners */], clippo["c" /* pluginMethods */]] // mousedown$,mousemove$... - - }, - subscriptions: function subscriptions() { - var _this = this; - - this.change$ = new Subject["a" /* Subject */](); // set value - - this.setWH$ = new Subject["a" /* Subject */](); - this.setTL$ = new Subject["a" /* Subject */](); - this.initWHTL$ = new Subject["a" /* Subject */]().pipe(Object(map["a" /* map */])(this.initWHTL)); // interupter - - this.stop$ = new Subject["a" /* Subject */](); - /* events */ - - this.mousedownDrag$ = new Subject["a" /* Subject */]().pipe( // moving left, top - Object(merge["a" /* merge */])(this.mousedown$), Object(filter["a" /* filter */])(this.isDragElement), Object(tap["a" /* tap */])(this.prevent), // deal with down, we want to calc down just for once. - Object(map["a" /* map */])(function (e) { - return _this.eInZoom(e); - }), // 點擊時zoom的position,rect - Object(concatMap["a" /* concatMap */])( // 將down (zoom rect), move交給後續 - function () { - return _this.mousemove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.mouseup$)); - }, function (down, move) { - return { - down: down, - move: move - }; - })); - this.touchdownDrag$ = this.touchstart$.pipe(Object(filter["a" /* filter */])(this.isDragElement), Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 1; - }), // 單指 - Object(tap["a" /* tap */])(this.prevent), // deal with down, we want to calc down just for once. - Object(map["a" /* map */])(function (e) { - return _this.eInZoom(e.touches[0]); - }), Object(concatMap["a" /* concatMap */])(function () { - return _this.touchmove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.touchend$), Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 1; - }), // 單指 - Object(map["a" /* map */])(function (e) { - return e.touches[0]; - })); - }, function (down, move) { - return { - down: down, - move: move - }; - })); - this.mousedownZoom$ = new Subject["a" /* Subject */]().pipe(Object(merge["a" /* merge */])(this.mousedown$), Object(filter["a" /* filter */])(this.isZoomElement), Object(tap["a" /* tap */])(this.prevent), Object(map["a" /* map */])(this.setDownPosition), Object(concatMap["a" /* concatMap */])(function () { - return _this.mousemove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.mouseup$)); - }, function (down, move) { - return { - down: down, - move: move - }; - })); - this.touchdownZoom$ = this.touchstart$.pipe(Object(filter["a" /* filter */])(this.isZoomElement), Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 1; - }), Object(tap["a" /* tap */])(this.prevent), Object(map["a" /* map */])(function (e) { - return e.touches[0]; - }), Object(map["a" /* map */])(this.setDownPosition), Object(concatMap["a" /* concatMap */])(function () { - return _this.touchmove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.touchend$), Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 1; - }), Object(map["a" /* map */])(function (e) { - return e.touches[0]; - })); - }, function (down, move) { - return { - down: down, - move: move - }; - })); - this.touchTwoFingersZoom$ = this.touchstart$.pipe(Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 2; - }), Object(filter["a" /* filter */])(this.isTwoPointZoomElement), Object(tap["a" /* tap */])(this.prevent), Object(map["a" /* map */])(function () { - _this.stop$.next(0); // stop drag create event - - - var freezeZoom = _this.zoomPos(); // get zoom position at down - - - return { - event: event, - zoom: freezeZoom - }; - }), Object(concatMap["a" /* concatMap */])(function () { - return _this.touchmove$.pipe(Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 2; - }), Object(tap["a" /* tap */])(_this.prevent), Object(takeUntil["a" /* takeUntil */])(_this.touchend$)); - }, function (down, move) { - return _this.getTwoTouchesPos(down.event, move, down.zoom); - })); - this.mousedownCreate$ = this.mousedown$.pipe(Object(filter["a" /* filter */])(this.isCreateElement), Object(tap["a" /* tap */])(this.prevent), Object(map["a" /* map */])(this.getFakeDown), Object(concatMap["a" /* concatMap */])(function () { - return _this.mousemove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.mouseup$)); - }, function (down, move) { - return { - down: down, - move: move - }; - })); - this.touchstartCreate$ = this.touchstart$.pipe(Object(filter["a" /* filter */])(this.isCreateElement), Object(tap["a" /* tap */])(this.prevent), Object(map["a" /* map */])(function (e) { - return e.touches[0]; - }), Object(map["a" /* map */])(this.getFakeDown), Object(concatMap["a" /* concatMap */])(function () { - return _this.touchmove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.touchend$), Object(takeUntil["a" /* takeUntil */])(_this.stop$), // 兩指事件觸發時停止 - Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 1; - }), // 單指 - Object(filter["a" /* filter */])(function () { - return _this.touchCreate; - })); - }, function (down, move) { - // down is fake - return { - down: down, - move: move.touches[0] - }; - })); - /** *************MAIN SUBJECT (1)************ - position: left, top, right, bottom (2 of 4) */ - - this.dragSubject$ = new Subject["a" /* Subject */]().pipe(Object(merge["a" /* merge */])(this.mousedownDrag$), Object(merge["a" /* merge */])(this.touchdownDrag$), Object(map["a" /* map */])(this.dragMoving) - /* @down: eInZoom. @move: mouse/touch move event */ - , Object(map["a" /* map */])(this.repositionDrag), // validate & reposition @down - Object(merge["a" /* merge */])(this.setTL$), // this must be validate pos!!!! (in range) - Object(startWith["a" /* startWith */])({ - left: 0, - top: 0 - }) // vm view not init yet (this.zoomEl===null). To prevent "cannot read 'left' of undefined" - ); - /** *************MAIN SUBJECT (3)************ - Subject 3, 起始event不同,處理後傳給zoomSubject$ - */ - - this.dragCreateSubject$ = this.mousedownCreate$.pipe(Object(merge["a" /* merge */])(this.touchstartCreate$), Object(map["a" /* map */])(function (_ref) { - var down = _ref.down, - move = _ref.move; - return { - down: down, - move: move - }; - })); - /** *************MAIN SUBJECT (2)************ - width, height */ - - this.zoomSubject$ = new Subject["a" /* Subject */]().pipe(Object(merge["a" /* merge */])(this.mousedownZoom$), // mouse event - Object(merge["a" /* merge */])(this.touchdownZoom$), // touch event 1 finger - Object(merge["a" /* merge */])(this.dragCreateSubject$), // dragCreateSubject$ - Object(map["a" /* map */])(this.reverseDownPos), // mode 'switch' - Object(map["a" /* map */])(this.zoomingPosition), // 用創造的zoom rect去計算拖拉後的位置 - Object(merge["a" /* merge */])(this.touchTwoFingersZoom$), - /* touch event 2 fingers(兩指縮放)* 和上面事件分開,算法不同 */ - // { down, move } => { width, height, maxWidth, maxHeight, left, top, right, bottom } - Object(map["a" /* map */])(this.setRatioWH), Object(map["a" /* map */])(this.toPercentage), Object(map["a" /* map */])(this.splitPos), Object(map["a" /* map */])(function (split) { - var position = split.tl; - var size = split.wh; - - _this.setTL$.next(position); - - return size; - }), Object(startWith["a" /* startWith */])({ - width: 0, - height: 0 - }), Object(merge["a" /* merge */])(this.initWHTL$), Object(merge["a" /* merge */])(this.setWH$)); - this.onChange$ = new Subject["a" /* Subject */]().pipe(Object(merge["a" /* merge */])(this.dragSubject$), Object(merge["a" /* merge */])(this.change$)); - return { - // subscriptions - zoomTL$: this.dragSubject$, - zoomWH$: this.zoomSubject$ - }; - }, - props: { - preview: { - type: String, - default: '' - }, - src: { - type: String, - default: '' - }, - border: { - type: Number, - default: 1 - }, - outline: { - type: Number, - default: 6 - }, - corner: { - type: Boolean, - default: true - }, - grid: { - type: Boolean, - default: true - }, - mode: { - type: String, - default: 'normal' - }, - ratio: { - type: Number, - default: NaN - }, - wrapRatio: { - type: Number, - default: NaN - }, - touchCreate: { - // enable/disable create new zoom area in touch device; - type: Boolean, - default: true - }, - rotate: { - type: Number, - default: 0 - }, - bgColor: { - type: String, - default: 'white' - }, - lineColor: { - type: String, - default: '#1baae8' - }, - shadow: { - type: String, - default: 'rgba(0, 0, 0, 0.4)' - }, - scale: { - type: Number, - default: 1 - }, - minWidth: { - type: Number, - default: 1 - }, - minHeight: { - type: Number, - default: 1 - }, - initWidth: { - type: Number, - default: 50 - }, - initHeight: { - type: Number, - default: 50 - }, - crossOrigin: { - type: String, - default: undefined - } - }, - data: function data() { - return { - imgRatio: NaN - }; - }, - computed: { - posObj: function posObj() { - var style = { - 'width': "".concat(this.zoomWH$.width, "% !important"), - 'height': "".concat(this.zoomWH$.height, "% !important"), - 'color': "".concat(this.shadow, " !important"), - 'box-shadow': " 0 0 0 ".concat(this.border, "px ").concat(this.lineColor, ", 0 0 0 ").concat(this._shadow) - }; - - for (var k in this.zoomTL$) { - if (typeof this.zoomTL$[k] === 'number') { - style[k] = "".concat(this.zoomTL$[k], "% !important"); - } - } - - return style; - }, - padStyle: function padStyle() { - var display = "".concat(this.src ? 'block' : 'none', " !important"); - var backgroundColor = "".concat(this.bgColor, " !important"); - return { - display: display, - padding: "".concat(this.border, "px"), - 'background-color': backgroundColor - }; - }, - inPadStyle: function inPadStyle() { - return { - padding: "".concat(this.border, "px") - }; - }, - scaleStyle: function scaleStyle() { - return { - transform: "scale(".concat(this.scale, ") !important") - }; - }, - rotateStyle: function rotateStyle() { - return { - transform: "rotate(".concat(this.rotate, "deg) !important") - }; - }, - eptStyle: function eptStyle() { - var display = "".concat(this.src ? 'none' : 'block', " !important"); - return { - display: display - }; - }, - exOuterStyle: function exOuterStyle() { - var _outline = "".concat(this.outline + this.border, "px"); - - return { - 'border-width': "".concat(_outline, " !important"), - 'transform': "translate(-".concat(_outline, ",-").concat(_outline, ") !important") - }; - }, - exInnerStyle: function exInnerStyle() { - var _inline = "".concat(this.outline, "px !important"); - - return { - padding: _inline - }; - }, - _shadow: function _shadow() { - return "".concat(this.imgRatio >= 1 ? 100 : 100 / this.imgRatio, "vw"); - }, - stemArea: function stemArea() { - if (this.wrapRatio) { - return { - width: 100 * this.wrapRatio, - height: 100 - }; - } else if (this.imgRatio) { - return { - width: this.imgEl.naturalWidth, - height: this.imgEl.naturalHeight - }; - } else return {}; - }, - isVertical: function isVertical() { - // Prevent img from overflowing - var ratio = this.wrapRatio || this.ratio; - if (!ratio) return false; - return this.imgRatio < ratio; - } - }, - watch: { - ratio: function ratio() { - this.resetData(); - }, - wrapRatio: function wrapRatio() { - this.resetData(); - }, - bgColor: function bgColor() { - this.callPreview('setData', { - bgColor: this.bgColor - }); - }, - border: function border() { - this.change$.next(0); - }, - scaleStyle: function scaleStyle() { - this.change$.next(0); - }, - rotateStyle: function rotateStyle() { - this.change$.next(0); - } - }, - mounted: function mounted() { - var _this2 = this; - - this.imgEl = this.$el.querySelector('.js-clipper-basic .js-img'); - this.canvasEl = document.createElement('CANVAS'); - this.areaEl = this.$el.querySelector('.js-clipper-basic .js-clip-area'); - this.scaleEl = this.$el.querySelector('.js-clipper-basic .js-img-scale'); - this.zoomEl = this.$el.querySelector('.js-clipper-basic .js-zoom-area'); - this.dragEl = this.$el.querySelector('.js-clipper-basic .js-drag-inset'); - - if (this.preview) { - this.$subscribeTo(this.onChange$, function () { - _this2.$nextTick(function () { - // wait for vue render dom. - var result = _this2.getDrawPos().pos; - - var rotate = _this2.rotate; - if (_this2.invalidDrawPos(result)) return; - - _this2.callPreview('locateImage', result, rotate); - }); - }); - } - }, - methods: { - imgLoaded: function imgLoaded() { - // reset - this.callPreview('setData', { - src: this.src, - bgColor: this.bgColor - }); - this.imgRatio = this.imgEl.naturalWidth / this.imgEl.naturalHeight; - this.resetData(); - }, - resetData: function resetData() { - var _this3 = this; - - this.$nextTick(function () { - _this3.initWHTL$.next(true); - }); - } - } -}); -// CONCATENATED MODULE: ./src/components/clipper-basic.vue?vue&type=script&lang=js& - /* harmony default export */ var components_clipper_basicvue_type_script_lang_js_ = (clipper_basicvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/components/clipper-basic.vue?vue&type=style&index=0&id=61e9bce2&lang=scss&scoped=true& -var clipper_basicvue_type_style_index_0_id_61e9bce2_lang_scss_scoped_true_ = __webpack_require__("377c"); - -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__("2877"); - -// CONCATENATED MODULE: ./src/components/clipper-basic.vue - - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_clipper_basicvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - "61e9bce2", - null - -) - -/* harmony default export */ var clipper_basic = __webpack_exports__["a"] = (component.exports); - -/***/ }), - -/***/ "7839": -/***/ (function(module, exports) { - -// IE8- don't enum bug keys -module.exports = [ - 'constructor', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'toLocaleString', - 'toString', - 'valueOf' -]; - - -/***/ }), - -/***/ "7b0b": -/***/ (function(module, exports, __webpack_require__) { - -var requireObjectCoercible = __webpack_require__("1d80"); - -// `ToObject` abstract operation -// https://tc39.github.io/ecma262/#sec-toobject -module.exports = function (argument) { - return Object(requireObjectCoercible(argument)); -}; - - -/***/ }), - -/***/ "7c73": -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__("825a"); -var defineProperties = __webpack_require__("37e8"); -var enumBugKeys = __webpack_require__("7839"); -var hiddenKeys = __webpack_require__("d012"); -var html = __webpack_require__("1be4"); -var documentCreateElement = __webpack_require__("cc12"); -var sharedKey = __webpack_require__("f772"); - -var GT = '>'; -var LT = '<'; -var PROTOTYPE = 'prototype'; -var SCRIPT = 'script'; -var IE_PROTO = sharedKey('IE_PROTO'); - -var EmptyConstructor = function () { /* empty */ }; - -var scriptTag = function (content) { - return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; -}; - -// Create object with fake `null` prototype: use ActiveX Object with cleared prototype -var NullProtoObjectViaActiveX = function (activeXDocument) { - activeXDocument.write(scriptTag('')); - activeXDocument.close(); - var temp = activeXDocument.parentWindow.Object; - activeXDocument = null; // avoid memory leak - return temp; -}; - -// Create object with fake `null` prototype: use iframe Object with cleared prototype -var NullProtoObjectViaIFrame = function () { - // Thrash, waste and sodomy: IE GC bug - var iframe = documentCreateElement('iframe'); - var JS = 'java' + SCRIPT + ':'; - var iframeDocument; - iframe.style.display = 'none'; - html.appendChild(iframe); - // https://github.com/zloirock/core-js/issues/475 - iframe.src = String(JS); - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(scriptTag('document.F=Object')); - iframeDocument.close(); - return iframeDocument.F; -}; - -// Check for document.domain and active x support -// No need to use active x approach when document.domain is not set -// see https://github.com/es-shims/es5-shim/issues/150 -// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 -// avoid IE GC bug -var activeXDocument; -var NullProtoObject = function () { - try { - /* global ActiveXObject */ - activeXDocument = document.domain && new ActiveXObject('htmlfile'); - } catch (error) { /* ignore */ } - NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame(); - var length = enumBugKeys.length; - while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; - return NullProtoObject(); -}; - -hiddenKeys[IE_PROTO] = true; - -// `Object.create` method -// https://tc39.github.io/ecma262/#sec-object.create -module.exports = Object.create || function create(O, Properties) { - var result; - if (O !== null) { - EmptyConstructor[PROTOTYPE] = anObject(O); - result = new EmptyConstructor(); - EmptyConstructor[PROTOTYPE] = null; - // add "__proto__" for Object.getPrototypeOf polyfill - result[IE_PROTO] = O; - } else result = NullProtoObject(); - return Properties === undefined ? result : defineProperties(result, Properties); -}; - - -/***/ }), - -/***/ "7dd0": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__("23e7"); -var createIteratorConstructor = __webpack_require__("9ed3"); -var getPrototypeOf = __webpack_require__("e163"); -var setPrototypeOf = __webpack_require__("d2bb"); -var setToStringTag = __webpack_require__("d44e"); -var createNonEnumerableProperty = __webpack_require__("9112"); -var redefine = __webpack_require__("6eeb"); -var wellKnownSymbol = __webpack_require__("b622"); -var IS_PURE = __webpack_require__("c430"); -var Iterators = __webpack_require__("3f8c"); -var IteratorsCore = __webpack_require__("ae93"); - -var IteratorPrototype = IteratorsCore.IteratorPrototype; -var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; -var ITERATOR = wellKnownSymbol('iterator'); -var KEYS = 'keys'; -var VALUES = 'values'; -var ENTRIES = 'entries'; - -var returnThis = function () { return this; }; - -module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { - createIteratorConstructor(IteratorConstructor, NAME, next); - - var getIterationMethod = function (KIND) { - if (KIND === DEFAULT && defaultIterator) return defaultIterator; - if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; - switch (KIND) { - case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; - case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; - case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; - } return function () { return new IteratorConstructor(this); }; - }; - - var TO_STRING_TAG = NAME + ' Iterator'; - var INCORRECT_VALUES_NAME = false; - var IterablePrototype = Iterable.prototype; - var nativeIterator = IterablePrototype[ITERATOR] - || IterablePrototype['@@iterator'] - || DEFAULT && IterablePrototype[DEFAULT]; - var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); - var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; - var CurrentIteratorPrototype, methods, KEY; - - // fix native - if (anyNativeIterator) { - CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); - if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { - if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { - if (setPrototypeOf) { - setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); - } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') { - createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis); - } - } - // Set @@toStringTag to native iterators - setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); - if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; - } - } - - // fix Array#{values, @@iterator}.name in V8 / FF - if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { - INCORRECT_VALUES_NAME = true; - defaultIterator = function values() { return nativeIterator.call(this); }; - } - - // define iterator - if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { - createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator); - } - Iterators[NAME] = defaultIterator; - - // export additional methods - if (DEFAULT) { - methods = { - values: getIterationMethod(VALUES), - keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), - entries: getIterationMethod(ENTRIES) - }; - if (FORCED) for (KEY in methods) { - if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { - redefine(IterablePrototype, KEY, methods[KEY]); - } - } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); - } - - return methods; -}; - - -/***/ }), - -/***/ "7f9a": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var inspectSource = __webpack_require__("8925"); - -var WeakMap = global.WeakMap; - -module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); - - -/***/ }), - -/***/ "808e": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "825a": -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__("861d"); - -module.exports = function (it) { - if (!isObject(it)) { - throw TypeError(String(it) + ' is not an object'); - } return it; -}; - - -/***/ }), - -/***/ "83ab": -/***/ (function(module, exports, __webpack_require__) { - -var fails = __webpack_require__("d039"); - -// Thank's IE8 for his funny defineProperty -module.exports = !fails(function () { - return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; -}); - - -/***/ }), - -/***/ "8418": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var toPrimitive = __webpack_require__("c04e"); -var definePropertyModule = __webpack_require__("9bf2"); -var createPropertyDescriptor = __webpack_require__("5c6c"); - -module.exports = function (object, key, value) { - var propertyKey = toPrimitive(key); - if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); - else object[propertyKey] = value; -}; - - -/***/ }), - -/***/ "861d": -/***/ (function(module, exports) { - -module.exports = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; -}; - - -/***/ }), - -/***/ "88bc": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return config; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var _enable_super_gross_mode_that_will_cause_bad_things = false; -var config = { - Promise: undefined, - set useDeprecatedSynchronousErrorHandling(value) { - if (value) { - var error = /*@__PURE__*/ new Error(); - /*@__PURE__*/ console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack); - } - else if (_enable_super_gross_mode_that_will_cause_bad_things) { - /*@__PURE__*/ console.log('RxJS: Back to a better error behavior. Thank you. <3'); - } - _enable_super_gross_mode_that_will_cause_bad_things = value; - }, - get useDeprecatedSynchronousErrorHandling() { - return _enable_super_gross_mode_that_will_cause_bad_things; - }, -}; -//# sourceMappingURL=config.js.map - - -/***/ }), - -/***/ "8925": -/***/ (function(module, exports, __webpack_require__) { - -var store = __webpack_require__("c6cd"); - -var functionToString = Function.toString; - -// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper -if (typeof store.inspectSource != 'function') { - store.inspectSource = function (it) { - return functionToString.call(it); - }; -} - -module.exports = store.inspectSource; - - -/***/ }), - -/***/ "8ac6": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isArray; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var isArray = /*@__PURE__*/ (function () { return Array.isArray || (function (x) { return x && typeof x.length === 'number'; }); })(); -//# sourceMappingURL=isArray.js.map - - -/***/ }), - -/***/ "90e3": -/***/ (function(module, exports) { - -var id = 0; -var postfix = Math.random(); - -module.exports = function (key) { - return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); -}; - - -/***/ }), - -/***/ "9112": -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__("83ab"); -var definePropertyModule = __webpack_require__("9bf2"); -var createPropertyDescriptor = __webpack_require__("5c6c"); - -module.exports = DESCRIPTORS ? function (object, key, value) { - return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; -}; - - -/***/ }), - -/***/ "94ca": -/***/ (function(module, exports, __webpack_require__) { - -var fails = __webpack_require__("d039"); - -var replacement = /#|\.prototype\./; - -var isForced = function (feature, detection) { - var value = data[normalize(feature)]; - return value == POLYFILL ? true - : value == NATIVE ? false - : typeof detection == 'function' ? fails(detection) - : !!detection; -}; - -var normalize = isForced.normalize = function (string) { - return String(string).replace(replacement, '.').toLowerCase(); -}; - -var data = isForced.data = {}; -var NATIVE = isForced.NATIVE = 'N'; -var POLYFILL = isForced.POLYFILL = 'P'; - -module.exports = isForced; - - -/***/ }), - -/***/ "95b0": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "96cf": -/***/ (function(module, exports) { - -/** - * Copyright (c) 2014-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -!(function(global) { - "use strict"; - - var Op = Object.prototype; - var hasOwn = Op.hasOwnProperty; - var undefined; // More compressible than void 0. - var $Symbol = typeof Symbol === "function" ? Symbol : {}; - var iteratorSymbol = $Symbol.iterator || "@@iterator"; - var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; - var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - - var inModule = typeof module === "object"; - var runtime = global.regeneratorRuntime; - if (runtime) { - if (inModule) { - // If regeneratorRuntime is defined globally and we're in a module, - // make the exports object identical to regeneratorRuntime. - module.exports = runtime; - } - // Don't bother evaluating the rest of this file if the runtime was - // already defined globally. - return; - } - - // Define the runtime globally (as expected by generated code) as either - // module.exports (if we're in a module) or a new, empty object. - runtime = global.regeneratorRuntime = inModule ? module.exports : {}; - - function wrap(innerFn, outerFn, self, tryLocsList) { - // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; - var generator = Object.create(protoGenerator.prototype); - var context = new Context(tryLocsList || []); - - // The ._invoke method unifies the implementations of the .next, - // .throw, and .return methods. - generator._invoke = makeInvokeMethod(innerFn, self, context); - - return generator; - } - runtime.wrap = wrap; - - // Try/catch helper to minimize deoptimizations. Returns a completion - // record like context.tryEntries[i].completion. This interface could - // have been (and was previously) designed to take a closure to be - // invoked without arguments, but in all the cases we care about we - // already have an existing method we want to call, so there's no need - // to create a new function object. We can even get away with assuming - // the method takes exactly one argument, since that happens to be true - // in every case, so we don't have to touch the arguments object. The - // only additional allocation required is the completion record, which - // has a stable shape and so hopefully should be cheap to allocate. - function tryCatch(fn, obj, arg) { - try { - return { type: "normal", arg: fn.call(obj, arg) }; - } catch (err) { - return { type: "throw", arg: err }; - } - } - - var GenStateSuspendedStart = "suspendedStart"; - var GenStateSuspendedYield = "suspendedYield"; - var GenStateExecuting = "executing"; - var GenStateCompleted = "completed"; - - // Returning this object from the innerFn has the same effect as - // breaking out of the dispatch switch statement. - var ContinueSentinel = {}; - - // Dummy constructor functions that we use as the .constructor and - // .constructor.prototype properties for functions that return Generator - // objects. For full spec compliance, you may wish to configure your - // minifier not to mangle the names of these two functions. - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - - // This is a polyfill for %IteratorPrototype% for environments that - // don't natively support it. - var IteratorPrototype = {}; - IteratorPrototype[iteratorSymbol] = function () { - return this; - }; - - var getProto = Object.getPrototypeOf; - var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - if (NativeIteratorPrototype && - NativeIteratorPrototype !== Op && - hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { - // This environment has a native %IteratorPrototype%; use it instead - // of the polyfill. - IteratorPrototype = NativeIteratorPrototype; - } - - var Gp = GeneratorFunctionPrototype.prototype = - Generator.prototype = Object.create(IteratorPrototype); - GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; - GeneratorFunctionPrototype.constructor = GeneratorFunction; - GeneratorFunctionPrototype[toStringTagSymbol] = - GeneratorFunction.displayName = "GeneratorFunction"; - - // Helper for defining the .next, .throw, and .return methods of the - // Iterator interface in terms of a single ._invoke method. - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function(method) { - prototype[method] = function(arg) { - return this._invoke(method, arg); - }; - }); - } - - runtime.isGeneratorFunction = function(genFun) { - var ctor = typeof genFun === "function" && genFun.constructor; - return ctor - ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" - : false; - }; - - runtime.mark = function(genFun) { - if (Object.setPrototypeOf) { - Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); - } else { - genFun.__proto__ = GeneratorFunctionPrototype; - if (!(toStringTagSymbol in genFun)) { - genFun[toStringTagSymbol] = "GeneratorFunction"; - } - } - genFun.prototype = Object.create(Gp); - return genFun; - }; - - // Within the body of any async function, `await x` is transformed to - // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test - // `hasOwn.call(value, "__await")` to determine if the yielded value is - // meant to be awaited. - runtime.awrap = function(arg) { - return { __await: arg }; - }; - - function AsyncIterator(generator) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if (record.type === "throw") { - reject(record.arg); - } else { - var result = record.arg; - var value = result.value; - if (value && - typeof value === "object" && - hasOwn.call(value, "__await")) { - return Promise.resolve(value.__await).then(function(value) { - invoke("next", value, resolve, reject); - }, function(err) { - invoke("throw", err, resolve, reject); - }); - } - - return Promise.resolve(value).then(function(unwrapped) { - // When a yielded Promise is resolved, its final value becomes - // the .value of the Promise<{value,done}> result for the - // current iteration. If the Promise is rejected, however, the - // result for this iteration will be rejected with the same - // reason. Note that rejections of yielded Promises are not - // thrown back into the generator function, as is the case - // when an awaited Promise is rejected. This difference in - // behavior between yield and await is important, because it - // allows the consumer to decide what to do with the yielded - // rejection (swallow it and continue, manually .throw it back - // into the generator, abandon iteration, whatever). With - // await, by contrast, there is no opportunity to examine the - // rejection reason outside the generator function, so the - // only option is to throw it from the await expression, and - // let the generator function handle the exception. - result.value = unwrapped; - resolve(result); - }, reject); - } - } - - var previousPromise; - - function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new Promise(function(resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } - - return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then( - callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg - ) : callInvokeWithMethodAndArg(); - } - - // Define the unified helper method that is used to implement .next, - // .throw, and .return (see defineIteratorMethods). - this._invoke = enqueue; - } - - defineIteratorMethods(AsyncIterator.prototype); - AsyncIterator.prototype[asyncIteratorSymbol] = function () { - return this; - }; - runtime.AsyncIterator = AsyncIterator; - - // Note that simple async functions are implemented on top of - // AsyncIterator objects; they just return a Promise for the value of - // the final result produced by the iterator. - runtime.async = function(innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator( - wrap(innerFn, outerFn, self, tryLocsList) - ); - - return runtime.isGeneratorFunction(outerFn) - ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function(result) { - return result.done ? result.value : iter.next(); - }); - }; - - function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; - - return function invoke(method, arg) { - if (state === GenStateExecuting) { - throw new Error("Generator is already running"); - } - - if (state === GenStateCompleted) { - if (method === "throw") { - throw arg; - } - - // Be forgiving, per 25.3.3.3.3 of the spec: - // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume - return doneResult(); - } - - context.method = method; - context.arg = arg; - - while (true) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - - if (context.method === "next") { - // Setting context._sent for legacy support of Babel's - // function.sent implementation. - context.sent = context._sent = context.arg; - - } else if (context.method === "throw") { - if (state === GenStateSuspendedStart) { - state = GenStateCompleted; - throw context.arg; - } - - context.dispatchException(context.arg); - - } else if (context.method === "return") { - context.abrupt("return", context.arg); - } - - state = GenStateExecuting; - - var record = tryCatch(innerFn, self, context); - if (record.type === "normal") { - // If an exception is thrown from innerFn, we leave state === - // GenStateExecuting and loop back for another invocation. - state = context.done - ? GenStateCompleted - : GenStateSuspendedYield; - - if (record.arg === ContinueSentinel) { - continue; - } - - return { - value: record.arg, - done: context.done - }; - - } else if (record.type === "throw") { - state = GenStateCompleted; - // Dispatch the exception by looping back around to the - // context.dispatchException(context.arg) call above. - context.method = "throw"; - context.arg = record.arg; - } - } - }; - } - - // Call delegate.iterator[context.method](context.arg) and handle the - // result, either by returning a { value, done } result from the - // delegate iterator, or by modifying context.method and context.arg, - // setting context.delegate to null, and returning the ContinueSentinel. - function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; - if (method === undefined) { - // A .throw or .return when the delegate iterator has no .throw - // method always terminates the yield* loop. - context.delegate = null; - - if (context.method === "throw") { - if (delegate.iterator.return) { - // If the delegate iterator has a return method, give it a - // chance to clean up. - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); - - if (context.method === "throw") { - // If maybeInvokeDelegate(context) changed context.method from - // "return" to "throw", let that override the TypeError below. - return ContinueSentinel; - } - } - - context.method = "throw"; - context.arg = new TypeError( - "The iterator does not provide a 'throw' method"); - } - - return ContinueSentinel; - } - - var record = tryCatch(method, delegate.iterator, context.arg); - - if (record.type === "throw") { - context.method = "throw"; - context.arg = record.arg; - context.delegate = null; - return ContinueSentinel; - } - - var info = record.arg; - - if (! info) { - context.method = "throw"; - context.arg = new TypeError("iterator result is not an object"); - context.delegate = null; - return ContinueSentinel; - } - - if (info.done) { - // Assign the result of the finished delegate to the temporary - // variable specified by delegate.resultName (see delegateYield). - context[delegate.resultName] = info.value; - - // Resume execution at the desired location (see delegateYield). - context.next = delegate.nextLoc; - - // If context.method was "throw" but the delegate handled the - // exception, let the outer generator proceed normally. If - // context.method was "next", forget context.arg since it has been - // "consumed" by the delegate iterator. If context.method was - // "return", allow the original .return call to continue in the - // outer generator. - if (context.method !== "return") { - context.method = "next"; - context.arg = undefined; - } - - } else { - // Re-yield the result returned by the delegate method. - return info; - } - - // The delegate iterator is finished, so forget it and continue with - // the outer generator. - context.delegate = null; - return ContinueSentinel; - } - - // Define Generator.prototype.{next,throw,return} in terms of the - // unified ._invoke helper method. - defineIteratorMethods(Gp); - - Gp[toStringTagSymbol] = "Generator"; - - // A Generator should always return itself as the iterator object when the - // @@iterator function is called on it. Some browsers' implementations of the - // iterator prototype chain incorrectly implement this, causing the Generator - // object to not be returned from this call. This ensures that doesn't happen. - // See https://github.com/facebook/regenerator/issues/274 for more details. - Gp[iteratorSymbol] = function() { - return this; - }; - - Gp.toString = function() { - return "[object Generator]"; - }; - - function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; - - if (1 in locs) { - entry.catchLoc = locs[1]; - } - - if (2 in locs) { - entry.finallyLoc = locs[2]; - entry.afterLoc = locs[3]; - } - - this.tryEntries.push(entry); - } - - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal"; - delete record.arg; - entry.completion = record; - } - - function Context(tryLocsList) { - // The root entry object (effectively a try statement without a catch - // or a finally block) gives us a place to store values thrown from - // locations where there is no enclosing try statement. - this.tryEntries = [{ tryLoc: "root" }]; - tryLocsList.forEach(pushTryEntry, this); - this.reset(true); - } - - runtime.keys = function(object) { - var keys = []; - for (var key in object) { - keys.push(key); - } - keys.reverse(); - - // Rather than returning an object with a next method, we keep - // things simple and return the next function itself. - return function next() { - while (keys.length) { - var key = keys.pop(); - if (key in object) { - next.value = key; - next.done = false; - return next; - } - } - - // To avoid creating an additional object, we just hang the .value - // and .done properties off the next function object itself. This - // also ensures that the minifier will not anonymize the function. - next.done = true; - return next; - }; - }; - - function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) { - return iteratorMethod.call(iterable); - } - - if (typeof iterable.next === "function") { - return iterable; - } - - if (!isNaN(iterable.length)) { - var i = -1, next = function next() { - while (++i < iterable.length) { - if (hasOwn.call(iterable, i)) { - next.value = iterable[i]; - next.done = false; - return next; - } - } - - next.value = undefined; - next.done = true; - - return next; - }; - - return next.next = next; - } - } - - // Return an iterator with no values. - return { next: doneResult }; - } - runtime.values = values; - - function doneResult() { - return { value: undefined, done: true }; - } - - Context.prototype = { - constructor: Context, - - reset: function(skipTempReset) { - this.prev = 0; - this.next = 0; - // Resetting context._sent for legacy support of Babel's - // function.sent implementation. - this.sent = this._sent = undefined; - this.done = false; - this.delegate = null; - - this.method = "next"; - this.arg = undefined; - - this.tryEntries.forEach(resetTryEntry); - - if (!skipTempReset) { - for (var name in this) { - // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && - hasOwn.call(this, name) && - !isNaN(+name.slice(1))) { - this[name] = undefined; - } - } - } - }, - - stop: function() { - this.done = true; - - var rootEntry = this.tryEntries[0]; - var rootRecord = rootEntry.completion; - if (rootRecord.type === "throw") { - throw rootRecord.arg; - } - - return this.rval; - }, - - dispatchException: function(exception) { - if (this.done) { - throw exception; - } - - var context = this; - function handle(loc, caught) { - record.type = "throw"; - record.arg = exception; - context.next = loc; - - if (caught) { - // If the dispatched exception was caught by a catch block, - // then let that catch block handle the exception normally. - context.method = "next"; - context.arg = undefined; - } - - return !! caught; - } - - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - var record = entry.completion; - - if (entry.tryLoc === "root") { - // Exception thrown outside of any try block that could handle - // it, so set the completion value of the entire function to - // throw the exception. - return handle("end"); - } - - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"); - var hasFinally = hasOwn.call(entry, "finallyLoc"); - - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } else if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - - } else if (hasCatch) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } - - } else if (hasFinally) { - if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - - } else { - throw new Error("try statement without catch or finally"); - } - } - } - }, - - abrupt: function(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && - hasOwn.call(entry, "finallyLoc") && - this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } - - if (finallyEntry && - (type === "break" || - type === "continue") && - finallyEntry.tryLoc <= arg && - arg <= finallyEntry.finallyLoc) { - // Ignore the finally entry if control is not jumping to a - // location outside the try/catch block. - finallyEntry = null; - } - - var record = finallyEntry ? finallyEntry.completion : {}; - record.type = type; - record.arg = arg; - - if (finallyEntry) { - this.method = "next"; - this.next = finallyEntry.finallyLoc; - return ContinueSentinel; - } - - return this.complete(record); - }, - - complete: function(record, afterLoc) { - if (record.type === "throw") { - throw record.arg; - } - - if (record.type === "break" || - record.type === "continue") { - this.next = record.arg; - } else if (record.type === "return") { - this.rval = this.arg = record.arg; - this.method = "return"; - this.next = "end"; - } else if (record.type === "normal" && afterLoc) { - this.next = afterLoc; - } - - return ContinueSentinel; - }, - - finish: function(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) { - this.complete(entry.completion, entry.afterLoc); - resetTryEntry(entry); - return ContinueSentinel; - } - } - }, - - "catch": function(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if (record.type === "throw") { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } - - // The context.catch method must only be called with a location - // argument that corresponds to a known catch block. - throw new Error("illegal catch attempt"); - }, - - delegateYield: function(iterable, resultName, nextLoc) { - this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }; - - if (this.method === "next") { - // Deliberately forget the last sent value so that we don't - // accidentally pass it on to the delegate. - this.arg = undefined; - } - - return ContinueSentinel; - } - }; -})( - // In sloppy mode, unbound `this` refers to the global object, fallback to - // Function constructor if we're in global strict mode. That is sadly a form - // of indirect eval which violates Content Security Policy. - (function() { return this })() || Function("return this")() -); - - -/***/ }), - -/***/ "9861": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` -__webpack_require__("e260"); -var $ = __webpack_require__("23e7"); -var getBuiltIn = __webpack_require__("d066"); -var USE_NATIVE_URL = __webpack_require__("0d3b"); -var redefine = __webpack_require__("6eeb"); -var redefineAll = __webpack_require__("e2cc"); -var setToStringTag = __webpack_require__("d44e"); -var createIteratorConstructor = __webpack_require__("9ed3"); -var InternalStateModule = __webpack_require__("69f3"); -var anInstance = __webpack_require__("19aa"); -var hasOwn = __webpack_require__("5135"); -var bind = __webpack_require__("0366"); -var classof = __webpack_require__("f5df"); -var anObject = __webpack_require__("825a"); -var isObject = __webpack_require__("861d"); -var create = __webpack_require__("7c73"); -var createPropertyDescriptor = __webpack_require__("5c6c"); -var getIterator = __webpack_require__("9a1f"); -var getIteratorMethod = __webpack_require__("35a1"); -var wellKnownSymbol = __webpack_require__("b622"); - -var $fetch = getBuiltIn('fetch'); -var Headers = getBuiltIn('Headers'); -var ITERATOR = wellKnownSymbol('iterator'); -var URL_SEARCH_PARAMS = 'URLSearchParams'; -var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator'; -var setInternalState = InternalStateModule.set; -var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS); -var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR); - -var plus = /\+/g; -var sequences = Array(4); - -var percentSequence = function (bytes) { - return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi')); -}; - -var percentDecode = function (sequence) { - try { - return decodeURIComponent(sequence); - } catch (error) { - return sequence; - } -}; - -var deserialize = function (it) { - var result = it.replace(plus, ' '); - var bytes = 4; - try { - return decodeURIComponent(result); - } catch (error) { - while (bytes) { - result = result.replace(percentSequence(bytes--), percentDecode); - } - return result; - } -}; - -var find = /[!'()~]|%20/g; - -var replace = { - '!': '%21', - "'": '%27', - '(': '%28', - ')': '%29', - '~': '%7E', - '%20': '+' -}; - -var replacer = function (match) { - return replace[match]; -}; - -var serialize = function (it) { - return encodeURIComponent(it).replace(find, replacer); -}; - -var parseSearchParams = function (result, query) { - if (query) { - var attributes = query.split('&'); - var index = 0; - var attribute, entry; - while (index < attributes.length) { - attribute = attributes[index++]; - if (attribute.length) { - entry = attribute.split('='); - result.push({ - key: deserialize(entry.shift()), - value: deserialize(entry.join('=')) - }); - } - } - } -}; - -var updateSearchParams = function (query) { - this.entries.length = 0; - parseSearchParams(this.entries, query); -}; - -var validateArgumentsLength = function (passed, required) { - if (passed < required) throw TypeError('Not enough arguments'); -}; - -var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) { - setInternalState(this, { - type: URL_SEARCH_PARAMS_ITERATOR, - iterator: getIterator(getInternalParamsState(params).entries), - kind: kind - }); -}, 'Iterator', function next() { - var state = getInternalIteratorState(this); - var kind = state.kind; - var step = state.iterator.next(); - var entry = step.value; - if (!step.done) { - step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value]; - } return step; -}); - -// `URLSearchParams` constructor -// https://url.spec.whatwg.org/#interface-urlsearchparams -var URLSearchParamsConstructor = function URLSearchParams(/* init */) { - anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS); - var init = arguments.length > 0 ? arguments[0] : undefined; - var that = this; - var entries = []; - var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key; - - setInternalState(that, { - type: URL_SEARCH_PARAMS, - entries: entries, - updateURL: function () { /* empty */ }, - updateSearchParams: updateSearchParams - }); - - if (init !== undefined) { - if (isObject(init)) { - iteratorMethod = getIteratorMethod(init); - if (typeof iteratorMethod === 'function') { - iterator = iteratorMethod.call(init); - next = iterator.next; - while (!(step = next.call(iterator)).done) { - entryIterator = getIterator(anObject(step.value)); - entryNext = entryIterator.next; - if ( - (first = entryNext.call(entryIterator)).done || - (second = entryNext.call(entryIterator)).done || - !entryNext.call(entryIterator).done - ) throw TypeError('Expected sequence with length 2'); - entries.push({ key: first.value + '', value: second.value + '' }); - } - } else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: init[key] + '' }); - } else { - parseSearchParams(entries, typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : init + ''); - } - } -}; - -var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype; - -redefineAll(URLSearchParamsPrototype, { - // `URLSearchParams.prototype.appent` method - // https://url.spec.whatwg.org/#dom-urlsearchparams-append - append: function append(name, value) { - validateArgumentsLength(arguments.length, 2); - var state = getInternalParamsState(this); - state.entries.push({ key: name + '', value: value + '' }); - state.updateURL(); - }, - // `URLSearchParams.prototype.delete` method - // https://url.spec.whatwg.org/#dom-urlsearchparams-delete - 'delete': function (name) { - validateArgumentsLength(arguments.length, 1); - var state = getInternalParamsState(this); - var entries = state.entries; - var key = name + ''; - var index = 0; - while (index < entries.length) { - if (entries[index].key === key) entries.splice(index, 1); - else index++; - } - state.updateURL(); - }, - // `URLSearchParams.prototype.get` method - // https://url.spec.whatwg.org/#dom-urlsearchparams-get - get: function get(name) { - validateArgumentsLength(arguments.length, 1); - var entries = getInternalParamsState(this).entries; - var key = name + ''; - var index = 0; - for (; index < entries.length; index++) { - if (entries[index].key === key) return entries[index].value; - } - return null; - }, - // `URLSearchParams.prototype.getAll` method - // https://url.spec.whatwg.org/#dom-urlsearchparams-getall - getAll: function getAll(name) { - validateArgumentsLength(arguments.length, 1); - var entries = getInternalParamsState(this).entries; - var key = name + ''; - var result = []; - var index = 0; - for (; index < entries.length; index++) { - if (entries[index].key === key) result.push(entries[index].value); - } - return result; - }, - // `URLSearchParams.prototype.has` method - // https://url.spec.whatwg.org/#dom-urlsearchparams-has - has: function has(name) { - validateArgumentsLength(arguments.length, 1); - var entries = getInternalParamsState(this).entries; - var key = name + ''; - var index = 0; - while (index < entries.length) { - if (entries[index++].key === key) return true; - } - return false; - }, - // `URLSearchParams.prototype.set` method - // https://url.spec.whatwg.org/#dom-urlsearchparams-set - set: function set(name, value) { - validateArgumentsLength(arguments.length, 1); - var state = getInternalParamsState(this); - var entries = state.entries; - var found = false; - var key = name + ''; - var val = value + ''; - var index = 0; - var entry; - for (; index < entries.length; index++) { - entry = entries[index]; - if (entry.key === key) { - if (found) entries.splice(index--, 1); - else { - found = true; - entry.value = val; - } - } - } - if (!found) entries.push({ key: key, value: val }); - state.updateURL(); - }, - // `URLSearchParams.prototype.sort` method - // https://url.spec.whatwg.org/#dom-urlsearchparams-sort - sort: function sort() { - var state = getInternalParamsState(this); - var entries = state.entries; - // Array#sort is not stable in some engines - var slice = entries.slice(); - var entry, entriesIndex, sliceIndex; - entries.length = 0; - for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) { - entry = slice[sliceIndex]; - for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) { - if (entries[entriesIndex].key > entry.key) { - entries.splice(entriesIndex, 0, entry); - break; - } - } - if (entriesIndex === sliceIndex) entries.push(entry); - } - state.updateURL(); - }, - // `URLSearchParams.prototype.forEach` method - forEach: function forEach(callback /* , thisArg */) { - var entries = getInternalParamsState(this).entries; - var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3); - var index = 0; - var entry; - while (index < entries.length) { - entry = entries[index++]; - boundFunction(entry.value, entry.key, this); - } - }, - // `URLSearchParams.prototype.keys` method - keys: function keys() { - return new URLSearchParamsIterator(this, 'keys'); - }, - // `URLSearchParams.prototype.values` method - values: function values() { - return new URLSearchParamsIterator(this, 'values'); - }, - // `URLSearchParams.prototype.entries` method - entries: function entries() { - return new URLSearchParamsIterator(this, 'entries'); - } -}, { enumerable: true }); - -// `URLSearchParams.prototype[@@iterator]` method -redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries); - -// `URLSearchParams.prototype.toString` method -// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior -redefine(URLSearchParamsPrototype, 'toString', function toString() { - var entries = getInternalParamsState(this).entries; - var result = []; - var index = 0; - var entry; - while (index < entries.length) { - entry = entries[index++]; - result.push(serialize(entry.key) + '=' + serialize(entry.value)); - } return result.join('&'); -}, { enumerable: true }); - -setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS); - -$({ global: true, forced: !USE_NATIVE_URL }, { - URLSearchParams: URLSearchParamsConstructor -}); - -// Wrap `fetch` for correct work with polyfilled `URLSearchParams` -// https://github.com/zloirock/core-js/issues/674 -if (!USE_NATIVE_URL && typeof $fetch == 'function' && typeof Headers == 'function') { - $({ global: true, enumerable: true, forced: true }, { - fetch: function fetch(input /* , init */) { - var args = [input]; - var init, body, headers; - if (arguments.length > 1) { - init = arguments[1]; - if (isObject(init)) { - body = init.body; - if (classof(body) === URL_SEARCH_PARAMS) { - headers = init.headers ? new Headers(init.headers) : new Headers(); - if (!headers.has('content-type')) { - headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); - } - init = create(init, { - body: createPropertyDescriptor(0, String(body)), - headers: createPropertyDescriptor(0, headers) - }); - } - } - args.push(init); - } return $fetch.apply(this, args); - } - }); -} - -module.exports = { - URLSearchParams: URLSearchParamsConstructor, - getState: getInternalParamsState -}; - - -/***/ }), - -/***/ "99af": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__("23e7"); -var fails = __webpack_require__("d039"); -var isArray = __webpack_require__("e8b5"); -var isObject = __webpack_require__("861d"); -var toObject = __webpack_require__("7b0b"); -var toLength = __webpack_require__("50c4"); -var createProperty = __webpack_require__("8418"); -var arraySpeciesCreate = __webpack_require__("65f0"); -var arrayMethodHasSpeciesSupport = __webpack_require__("1dde"); -var wellKnownSymbol = __webpack_require__("b622"); -var V8_VERSION = __webpack_require__("2d00"); - -var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); -var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; -var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; - -// We can't use this feature detection in V8 since it causes -// deoptimization and serious performance degradation -// https://github.com/zloirock/core-js/issues/679 -var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { - var array = []; - array[IS_CONCAT_SPREADABLE] = false; - return array.concat()[0] !== array; -}); - -var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); - -var isConcatSpreadable = function (O) { - if (!isObject(O)) return false; - var spreadable = O[IS_CONCAT_SPREADABLE]; - return spreadable !== undefined ? !!spreadable : isArray(O); -}; - -var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; - -// `Array.prototype.concat` method -// https://tc39.github.io/ecma262/#sec-array.prototype.concat -// with adding support of @@isConcatSpreadable and @@species -$({ target: 'Array', proto: true, forced: FORCED }, { - concat: function concat(arg) { // eslint-disable-line no-unused-vars - var O = toObject(this); - var A = arraySpeciesCreate(O, 0); - var n = 0; - var i, k, length, len, E; - for (i = -1, length = arguments.length; i < length; i++) { - E = i === -1 ? O : arguments[i]; - if (isConcatSpreadable(E)) { - len = toLength(E.length); - if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); - for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); - } else { - if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); - createProperty(A, n++, E); - } - } - A.length = n; - return A; - } -}); - - -/***/ }), - -/***/ "9a1f": -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__("825a"); -var getIteratorMethod = __webpack_require__("35a1"); - -module.exports = function (it) { - var iteratorMethod = getIteratorMethod(it); - if (typeof iteratorMethod != 'function') { - throw TypeError(String(it) + ' is not iterable'); - } return anObject(iteratorMethod.call(it)); -}; - - -/***/ }), - -/***/ "9ab4": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __extends; }); -/* unused harmony export __assign */ -/* unused harmony export __rest */ -/* unused harmony export __decorate */ -/* unused harmony export __param */ -/* unused harmony export __metadata */ -/* unused harmony export __awaiter */ -/* unused harmony export __generator */ -/* unused harmony export __exportStar */ -/* unused harmony export __values */ -/* unused harmony export __read */ -/* unused harmony export __spread */ -/* unused harmony export __spreadArrays */ -/* unused harmony export __await */ -/* unused harmony export __asyncGenerator */ -/* unused harmony export __asyncDelegator */ -/* unused harmony export __asyncValues */ -/* unused harmony export __makeTemplateObject */ -/* unused harmony export __importStar */ -/* unused harmony export __importDefault */ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -function __awaiter(thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -function __exportStar(m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -function __values(o) { - var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; - if (m) return m.call(o); - return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; -} - -function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; - -function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - - -/***/ }), - -/***/ "9bdd": -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__("825a"); - -// call something on iterator step with safe closing on error -module.exports = function (iterator, fn, value, ENTRIES) { - try { - return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); - // 7.4.6 IteratorClose(iterator, completion) - } catch (error) { - var returnMethod = iterator['return']; - if (returnMethod !== undefined) anObject(returnMethod.call(iterator)); - throw error; - } -}; - - -/***/ }), - -/***/ "9bf2": -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__("83ab"); -var IE8_DOM_DEFINE = __webpack_require__("0cfb"); -var anObject = __webpack_require__("825a"); -var toPrimitive = __webpack_require__("c04e"); - -var nativeDefineProperty = Object.defineProperty; - -// `Object.defineProperty` method -// https://tc39.github.io/ecma262/#sec-object.defineproperty -exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (IE8_DOM_DEFINE) try { - return nativeDefineProperty(O, P, Attributes); - } catch (error) { /* empty */ } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; -}; - - -/***/ }), - -/***/ "9e46": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isScheduler; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function isScheduler(value) { - return value && typeof value.schedule === 'function'; -} -//# sourceMappingURL=isScheduler.js.map - - -/***/ }), - -/***/ "9ed3": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype; -var create = __webpack_require__("7c73"); -var createPropertyDescriptor = __webpack_require__("5c6c"); -var setToStringTag = __webpack_require__("d44e"); -var Iterators = __webpack_require__("3f8c"); - -var returnThis = function () { return this; }; - -module.exports = function (IteratorConstructor, NAME, next) { - var TO_STRING_TAG = NAME + ' Iterator'; - IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) }); - setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); - Iterators[TO_STRING_TAG] = returnThis; - return IteratorConstructor; -}; - - -/***/ }), - -/***/ "9f2d": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return takeUntil; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ab4"); -/* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("3060"); -/* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ce8b"); -/** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */ - - - -function takeUntil(notifier) { - return function (source) { return source.lift(new TakeUntilOperator(notifier)); }; -} -var TakeUntilOperator = /*@__PURE__*/ (function () { - function TakeUntilOperator(notifier) { - this.notifier = notifier; - } - TakeUntilOperator.prototype.call = function (subscriber, source) { - var takeUntilSubscriber = new TakeUntilSubscriber(subscriber); - var notifierSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__[/* subscribeToResult */ "a"])(takeUntilSubscriber, this.notifier); - if (notifierSubscription && !takeUntilSubscriber.seenValue) { - takeUntilSubscriber.add(notifierSubscription); - return source.subscribe(takeUntilSubscriber); - } - return takeUntilSubscriber; - }; - return TakeUntilOperator; -}()); -var TakeUntilSubscriber = /*@__PURE__*/ (function (_super) { - tslib__WEBPACK_IMPORTED_MODULE_0__[/* __extends */ "a"](TakeUntilSubscriber, _super); - function TakeUntilSubscriber(destination) { - var _this = _super.call(this, destination) || this; - _this.seenValue = false; - return _this; - } - TakeUntilSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { - this.seenValue = true; - this.complete(); - }; - TakeUntilSubscriber.prototype.notifyComplete = function () { - }; - return TakeUntilSubscriber; -}(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__[/* OuterSubscriber */ "a"])); -//# sourceMappingURL=takeUntil.js.map - - -/***/ }), - -/***/ "a4d3": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__("23e7"); -var global = __webpack_require__("da84"); -var getBuiltIn = __webpack_require__("d066"); -var IS_PURE = __webpack_require__("c430"); -var DESCRIPTORS = __webpack_require__("83ab"); -var NATIVE_SYMBOL = __webpack_require__("4930"); -var USE_SYMBOL_AS_UID = __webpack_require__("fdbf"); -var fails = __webpack_require__("d039"); -var has = __webpack_require__("5135"); -var isArray = __webpack_require__("e8b5"); -var isObject = __webpack_require__("861d"); -var anObject = __webpack_require__("825a"); -var toObject = __webpack_require__("7b0b"); -var toIndexedObject = __webpack_require__("fc6a"); -var toPrimitive = __webpack_require__("c04e"); -var createPropertyDescriptor = __webpack_require__("5c6c"); -var nativeObjectCreate = __webpack_require__("7c73"); -var objectKeys = __webpack_require__("df75"); -var getOwnPropertyNamesModule = __webpack_require__("241c"); -var getOwnPropertyNamesExternal = __webpack_require__("057f"); -var getOwnPropertySymbolsModule = __webpack_require__("7418"); -var getOwnPropertyDescriptorModule = __webpack_require__("06cf"); -var definePropertyModule = __webpack_require__("9bf2"); -var propertyIsEnumerableModule = __webpack_require__("d1e7"); -var createNonEnumerableProperty = __webpack_require__("9112"); -var redefine = __webpack_require__("6eeb"); -var shared = __webpack_require__("5692"); -var sharedKey = __webpack_require__("f772"); -var hiddenKeys = __webpack_require__("d012"); -var uid = __webpack_require__("90e3"); -var wellKnownSymbol = __webpack_require__("b622"); -var wrappedWellKnownSymbolModule = __webpack_require__("e538"); -var defineWellKnownSymbol = __webpack_require__("746f"); -var setToStringTag = __webpack_require__("d44e"); -var InternalStateModule = __webpack_require__("69f3"); -var $forEach = __webpack_require__("b727").forEach; - -var HIDDEN = sharedKey('hidden'); -var SYMBOL = 'Symbol'; -var PROTOTYPE = 'prototype'; -var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); -var setInternalState = InternalStateModule.set; -var getInternalState = InternalStateModule.getterFor(SYMBOL); -var ObjectPrototype = Object[PROTOTYPE]; -var $Symbol = global.Symbol; -var $stringify = getBuiltIn('JSON', 'stringify'); -var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; -var nativeDefineProperty = definePropertyModule.f; -var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; -var nativePropertyIsEnumerable = propertyIsEnumerableModule.f; -var AllSymbols = shared('symbols'); -var ObjectPrototypeSymbols = shared('op-symbols'); -var StringToSymbolRegistry = shared('string-to-symbol-registry'); -var SymbolToStringRegistry = shared('symbol-to-string-registry'); -var WellKnownSymbolsStore = shared('wks'); -var QObject = global.QObject; -// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 -var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; - -// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 -var setSymbolDescriptor = DESCRIPTORS && fails(function () { - return nativeObjectCreate(nativeDefineProperty({}, 'a', { - get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; } - })).a != 7; -}) ? function (O, P, Attributes) { - var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P); - if (ObjectPrototypeDescriptor) delete ObjectPrototype[P]; - nativeDefineProperty(O, P, Attributes); - if (ObjectPrototypeDescriptor && O !== ObjectPrototype) { - nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor); - } -} : nativeDefineProperty; - -var wrap = function (tag, description) { - var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]); - setInternalState(symbol, { - type: SYMBOL, - tag: tag, - description: description - }); - if (!DESCRIPTORS) symbol.description = description; - return symbol; -}; - -var isSymbol = USE_SYMBOL_AS_UID ? function (it) { - return typeof it == 'symbol'; -} : function (it) { - return Object(it) instanceof $Symbol; -}; - -var $defineProperty = function defineProperty(O, P, Attributes) { - if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes); - anObject(O); - var key = toPrimitive(P, true); - anObject(Attributes); - if (has(AllSymbols, key)) { - if (!Attributes.enumerable) { - if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {})); - O[HIDDEN][key] = true; - } else { - if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; - Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) }); - } return setSymbolDescriptor(O, key, Attributes); - } return nativeDefineProperty(O, key, Attributes); -}; - -var $defineProperties = function defineProperties(O, Properties) { - anObject(O); - var properties = toIndexedObject(Properties); - var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); - $forEach(keys, function (key) { - if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]); - }); - return O; -}; - -var $create = function create(O, Properties) { - return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); -}; - -var $propertyIsEnumerable = function propertyIsEnumerable(V) { - var P = toPrimitive(V, true); - var enumerable = nativePropertyIsEnumerable.call(this, P); - if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false; - return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; -}; - -var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { - var it = toIndexedObject(O); - var key = toPrimitive(P, true); - if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return; - var descriptor = nativeGetOwnPropertyDescriptor(it, key); - if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) { - descriptor.enumerable = true; - } - return descriptor; -}; - -var $getOwnPropertyNames = function getOwnPropertyNames(O) { - var names = nativeGetOwnPropertyNames(toIndexedObject(O)); - var result = []; - $forEach(names, function (key) { - if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key); - }); - return result; -}; - -var $getOwnPropertySymbols = function getOwnPropertySymbols(O) { - var IS_OBJECT_PROTOTYPE = O === ObjectPrototype; - var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)); - var result = []; - $forEach(names, function (key) { - if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) { - result.push(AllSymbols[key]); - } - }); - return result; -}; - -// `Symbol` constructor -// https://tc39.github.io/ecma262/#sec-symbol-constructor -if (!NATIVE_SYMBOL) { - $Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor'); - var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]); - var tag = uid(description); - var setter = function (value) { - if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value); - if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; - setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value)); - }; - if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter }); - return wrap(tag, description); - }; - - redefine($Symbol[PROTOTYPE], 'toString', function toString() { - return getInternalState(this).tag; - }); - - redefine($Symbol, 'withoutSetter', function (description) { - return wrap(uid(description), description); - }); - - propertyIsEnumerableModule.f = $propertyIsEnumerable; - definePropertyModule.f = $defineProperty; - getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor; - getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; - getOwnPropertySymbolsModule.f = $getOwnPropertySymbols; - - wrappedWellKnownSymbolModule.f = function (name) { - return wrap(wellKnownSymbol(name), name); - }; - - if (DESCRIPTORS) { - // https://github.com/tc39/proposal-Symbol-description - nativeDefineProperty($Symbol[PROTOTYPE], 'description', { - configurable: true, - get: function description() { - return getInternalState(this).description; - } - }); - if (!IS_PURE) { - redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true }); - } - } -} - -$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { - Symbol: $Symbol -}); - -$forEach(objectKeys(WellKnownSymbolsStore), function (name) { - defineWellKnownSymbol(name); -}); - -$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { - // `Symbol.for` method - // https://tc39.github.io/ecma262/#sec-symbol.for - 'for': function (key) { - var string = String(key); - if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; - var symbol = $Symbol(string); - StringToSymbolRegistry[string] = symbol; - SymbolToStringRegistry[symbol] = string; - return symbol; - }, - // `Symbol.keyFor` method - // https://tc39.github.io/ecma262/#sec-symbol.keyfor - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol'); - if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; - }, - useSetter: function () { USE_SETTER = true; }, - useSimple: function () { USE_SETTER = false; } -}); - -$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, { - // `Object.create` method - // https://tc39.github.io/ecma262/#sec-object.create - create: $create, - // `Object.defineProperty` method - // https://tc39.github.io/ecma262/#sec-object.defineproperty - defineProperty: $defineProperty, - // `Object.defineProperties` method - // https://tc39.github.io/ecma262/#sec-object.defineproperties - defineProperties: $defineProperties, - // `Object.getOwnPropertyDescriptor` method - // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors - getOwnPropertyDescriptor: $getOwnPropertyDescriptor -}); - -$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, { - // `Object.getOwnPropertyNames` method - // https://tc39.github.io/ecma262/#sec-object.getownpropertynames - getOwnPropertyNames: $getOwnPropertyNames, - // `Object.getOwnPropertySymbols` method - // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols - getOwnPropertySymbols: $getOwnPropertySymbols -}); - -// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives -// https://bugs.chromium.org/p/v8/issues/detail?id=3443 -$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, { - getOwnPropertySymbols: function getOwnPropertySymbols(it) { - return getOwnPropertySymbolsModule.f(toObject(it)); - } -}); - -// `JSON.stringify` method behavior with symbols -// https://tc39.github.io/ecma262/#sec-json.stringify -if ($stringify) { - var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () { - var symbol = $Symbol(); - // MS Edge converts symbol values to JSON as {} - return $stringify([symbol]) != '[null]' - // WebKit converts symbol values to JSON as null - || $stringify({ a: symbol }) != '{}' - // V8 throws on boxed symbols - || $stringify(Object(symbol)) != '{}'; - }); - - $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, { - // eslint-disable-next-line no-unused-vars - stringify: function stringify(it, replacer, space) { - var args = [it]; - var index = 1; - var $replacer; - while (arguments.length > index) args.push(arguments[index++]); - $replacer = replacer; - if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined - if (!isArray(replacer)) replacer = function (key, value) { - if (typeof $replacer == 'function') value = $replacer.call(this, key, value); - if (!isSymbol(value)) return value; - }; - args[1] = replacer; - return $stringify.apply(null, args); - } - }); -} - -// `Symbol.prototype[@@toPrimitive]` method -// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive -if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) { - createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); -} -// `Symbol.prototype[@@toStringTag]` property -// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag -setToStringTag($Symbol, SYMBOL); - -hiddenKeys[HIDDEN] = true; - - -/***/ }), - -/***/ "a640": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var fails = __webpack_require__("d039"); - -module.exports = function (METHOD_NAME, argument) { - var method = [][METHOD_NAME]; - return !!method && fails(function () { - // eslint-disable-next-line no-useless-call,no-throw-literal - method.call(null, argument || function () { throw 1; }, 1); - }); -}; - - -/***/ }), - -/***/ "a691": -/***/ (function(module, exports) { - -var ceil = Math.ceil; -var floor = Math.floor; - -// `ToInteger` abstract operation -// https://tc39.github.io/ecma262/#sec-tointeger -module.exports = function (argument) { - return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); -}; - - -/***/ }), - -/***/ "a6c5": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js -var tslib_es6 = __webpack_require__("9ab4"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js -var subscribeToResult = __webpack_require__("ce8b"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/OuterSubscriber.js -var OuterSubscriber = __webpack_require__("3060"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/InnerSubscriber.js -var InnerSubscriber = __webpack_require__("acf8"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/map.js -var map = __webpack_require__("ebb6"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Observable.js + 3 modules -var Observable = __webpack_require__("e9b9"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeTo.js + 3 modules -var subscribeTo = __webpack_require__("1716"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscription.js + 1 modules -var Subscription = __webpack_require__("a6e8"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/observable.js -var symbol_observable = __webpack_require__("c539"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduleObservable.js -/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_observable PURE_IMPORTS_END */ - - - -function scheduleObservable(input, scheduler) { - return new Observable["a" /* Observable */](function (subscriber) { - var sub = new Subscription["a" /* Subscription */](); - sub.add(scheduler.schedule(function () { - var observable = input[symbol_observable["a" /* observable */]](); - sub.add(observable.subscribe({ - next: function (value) { sub.add(scheduler.schedule(function () { return subscriber.next(value); })); }, - error: function (err) { sub.add(scheduler.schedule(function () { return subscriber.error(err); })); }, - complete: function () { sub.add(scheduler.schedule(function () { return subscriber.complete(); })); }, - })); - })); - return sub; - }); -} -//# sourceMappingURL=scheduleObservable.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/schedulePromise.js -/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */ - - -function schedulePromise(input, scheduler) { - return new Observable["a" /* Observable */](function (subscriber) { - var sub = new Subscription["a" /* Subscription */](); - sub.add(scheduler.schedule(function () { - return input.then(function (value) { - sub.add(scheduler.schedule(function () { - subscriber.next(value); - sub.add(scheduler.schedule(function () { return subscriber.complete(); })); - })); - }, function (err) { - sub.add(scheduler.schedule(function () { return subscriber.error(err); })); - }); - })); - return sub; - }); -} -//# sourceMappingURL=schedulePromise.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js -var scheduleArray = __webpack_require__("245f"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/iterator.js -var symbol_iterator = __webpack_require__("127f"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduleIterable.js -/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_iterator PURE_IMPORTS_END */ - - - -function scheduleIterable(input, scheduler) { - if (!input) { - throw new Error('Iterable cannot be null'); - } - return new Observable["a" /* Observable */](function (subscriber) { - var sub = new Subscription["a" /* Subscription */](); - var iterator; - sub.add(function () { - if (iterator && typeof iterator.return === 'function') { - iterator.return(); - } - }); - sub.add(scheduler.schedule(function () { - iterator = input[symbol_iterator["a" /* iterator */]](); - sub.add(scheduler.schedule(function () { - if (subscriber.closed) { - return; - } - var value; - var done; - try { - var result = iterator.next(); - value = result.value; - done = result.done; - } - catch (err) { - subscriber.error(err); - return; - } - if (done) { - subscriber.complete(); - } - else { - subscriber.next(value); - this.schedule(); - } - })); - })); - return sub; - }); -} -//# sourceMappingURL=scheduleIterable.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isInteropObservable.js -/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */ - -function isInteropObservable(input) { - return input && typeof input[symbol_observable["a" /* observable */]] === 'function'; -} -//# sourceMappingURL=isInteropObservable.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isPromise.js -var isPromise = __webpack_require__("fd66"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isArrayLike.js -var isArrayLike = __webpack_require__("d9e3"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isIterable.js -/** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */ - -function isIterable(input) { - return input && typeof input[symbol_iterator["a" /* iterator */]] === 'function'; -} -//# sourceMappingURL=isIterable.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduled.js -/** PURE_IMPORTS_START _scheduleObservable,_schedulePromise,_scheduleArray,_scheduleIterable,_util_isInteropObservable,_util_isPromise,_util_isArrayLike,_util_isIterable PURE_IMPORTS_END */ - - - - - - - - -function scheduled(input, scheduler) { - if (input != null) { - if (isInteropObservable(input)) { - return scheduleObservable(input, scheduler); - } - else if (Object(isPromise["a" /* isPromise */])(input)) { - return schedulePromise(input, scheduler); - } - else if (Object(isArrayLike["a" /* isArrayLike */])(input)) { - return Object(scheduleArray["a" /* scheduleArray */])(input, scheduler); - } - else if (isIterable(input) || typeof input === 'string') { - return scheduleIterable(input, scheduler); - } - } - throw new TypeError((input !== null && typeof input || input) + ' is not observable'); -} -//# sourceMappingURL=scheduled.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/from.js -/** PURE_IMPORTS_START _Observable,_util_subscribeTo,_scheduled_scheduled PURE_IMPORTS_END */ - - - -function from(input, scheduler) { - if (!scheduler) { - if (input instanceof Observable["a" /* Observable */]) { - return input; - } - return new Observable["a" /* Observable */](Object(subscribeTo["a" /* subscribeTo */])(input)); - } - else { - return scheduled(input, scheduler); - } -} -//# sourceMappingURL=from.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/mergeMap.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return mergeMap; }); -/* unused harmony export MergeMapOperator */ -/* unused harmony export MergeMapSubscriber */ -/** PURE_IMPORTS_START tslib,_util_subscribeToResult,_OuterSubscriber,_InnerSubscriber,_map,_observable_from PURE_IMPORTS_END */ - - - - - - -function mergeMap(project, resultSelector, concurrent) { - if (concurrent === void 0) { - concurrent = Number.POSITIVE_INFINITY; - } - if (typeof resultSelector === 'function') { - return function (source) { return source.pipe(mergeMap(function (a, i) { return from(project(a, i)).pipe(Object(map["a" /* map */])(function (b, ii) { return resultSelector(a, b, i, ii); })); }, concurrent)); }; - } - else if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return function (source) { return source.lift(new MergeMapOperator(project, concurrent)); }; -} -var MergeMapOperator = /*@__PURE__*/ (function () { - function MergeMapOperator(project, concurrent) { - if (concurrent === void 0) { - concurrent = Number.POSITIVE_INFINITY; - } - this.project = project; - this.concurrent = concurrent; - } - MergeMapOperator.prototype.call = function (observer, source) { - return source.subscribe(new mergeMap_MergeMapSubscriber(observer, this.project, this.concurrent)); - }; - return MergeMapOperator; -}()); - -var mergeMap_MergeMapSubscriber = /*@__PURE__*/ (function (_super) { - tslib_es6["a" /* __extends */](MergeMapSubscriber, _super); - function MergeMapSubscriber(destination, project, concurrent) { - if (concurrent === void 0) { - concurrent = Number.POSITIVE_INFINITY; - } - var _this = _super.call(this, destination) || this; - _this.project = project; - _this.concurrent = concurrent; - _this.hasCompleted = false; - _this.buffer = []; - _this.active = 0; - _this.index = 0; - return _this; - } - MergeMapSubscriber.prototype._next = function (value) { - if (this.active < this.concurrent) { - this._tryNext(value); - } - else { - this.buffer.push(value); - } - }; - MergeMapSubscriber.prototype._tryNext = function (value) { - var result; - var index = this.index++; - try { - result = this.project(value, index); - } - catch (err) { - this.destination.error(err); - return; - } - this.active++; - this._innerSub(result, value, index); - }; - MergeMapSubscriber.prototype._innerSub = function (ish, value, index) { - var innerSubscriber = new InnerSubscriber["a" /* InnerSubscriber */](this, value, index); - var destination = this.destination; - destination.add(innerSubscriber); - var innerSubscription = Object(subscribeToResult["a" /* subscribeToResult */])(this, ish, undefined, undefined, innerSubscriber); - if (innerSubscription !== innerSubscriber) { - destination.add(innerSubscription); - } - }; - MergeMapSubscriber.prototype._complete = function () { - this.hasCompleted = true; - if (this.active === 0 && this.buffer.length === 0) { - this.destination.complete(); - } - this.unsubscribe(); - }; - MergeMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) { - this.destination.next(innerValue); - }; - MergeMapSubscriber.prototype.notifyComplete = function (innerSub) { - var buffer = this.buffer; - this.remove(innerSub); - this.active--; - if (buffer.length > 0) { - this._next(buffer.shift()); - } - else if (this.active === 0 && this.hasCompleted) { - this.destination.complete(); - } - }; - return MergeMapSubscriber; -}(OuterSubscriber["a" /* OuterSubscriber */])); - -//# sourceMappingURL=mergeMap.js.map - - -/***/ }), - -/***/ "a6e8": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isArray.js -var isArray = __webpack_require__("8ac6"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isObject.js -var isObject = __webpack_require__("31c4"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isFunction.js -var isFunction = __webpack_require__("d817"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var UnsubscriptionErrorImpl = /*@__PURE__*/ (function () { - function UnsubscriptionErrorImpl(errors) { - Error.call(this); - this.message = errors ? - errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ') : ''; - this.name = 'UnsubscriptionError'; - this.errors = errors; - return this; - } - UnsubscriptionErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype); - return UnsubscriptionErrorImpl; -})(); -var UnsubscriptionError = UnsubscriptionErrorImpl; -//# sourceMappingURL=UnsubscriptionError.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Subscription.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscription_Subscription; }); -/** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_UnsubscriptionError PURE_IMPORTS_END */ - - - - -var Subscription_Subscription = /*@__PURE__*/ (function () { - function Subscription(unsubscribe) { - this.closed = false; - this._parentOrParents = null; - this._subscriptions = null; - if (unsubscribe) { - this._unsubscribe = unsubscribe; - } - } - Subscription.prototype.unsubscribe = function () { - var errors; - if (this.closed) { - return; - } - var _a = this, _parentOrParents = _a._parentOrParents, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions; - this.closed = true; - this._parentOrParents = null; - this._subscriptions = null; - if (_parentOrParents instanceof Subscription) { - _parentOrParents.remove(this); - } - else if (_parentOrParents !== null) { - for (var index = 0; index < _parentOrParents.length; ++index) { - var parent_1 = _parentOrParents[index]; - parent_1.remove(this); - } - } - if (Object(isFunction["a" /* isFunction */])(_unsubscribe)) { - try { - _unsubscribe.call(this); - } - catch (e) { - errors = e instanceof UnsubscriptionError ? flattenUnsubscriptionErrors(e.errors) : [e]; - } - } - if (Object(isArray["a" /* isArray */])(_subscriptions)) { - var index = -1; - var len = _subscriptions.length; - while (++index < len) { - var sub = _subscriptions[index]; - if (Object(isObject["a" /* isObject */])(sub)) { - try { - sub.unsubscribe(); - } - catch (e) { - errors = errors || []; - if (e instanceof UnsubscriptionError) { - errors = errors.concat(flattenUnsubscriptionErrors(e.errors)); - } - else { - errors.push(e); - } - } - } - } - } - if (errors) { - throw new UnsubscriptionError(errors); - } - }; - Subscription.prototype.add = function (teardown) { - var subscription = teardown; - if (!teardown) { - return Subscription.EMPTY; - } - switch (typeof teardown) { - case 'function': - subscription = new Subscription(teardown); - case 'object': - if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') { - return subscription; - } - else if (this.closed) { - subscription.unsubscribe(); - return subscription; - } - else if (!(subscription instanceof Subscription)) { - var tmp = subscription; - subscription = new Subscription(); - subscription._subscriptions = [tmp]; - } - break; - default: { - throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.'); - } - } - var _parentOrParents = subscription._parentOrParents; - if (_parentOrParents === null) { - subscription._parentOrParents = this; - } - else if (_parentOrParents instanceof Subscription) { - if (_parentOrParents === this) { - return subscription; - } - subscription._parentOrParents = [_parentOrParents, this]; - } - else if (_parentOrParents.indexOf(this) === -1) { - _parentOrParents.push(this); - } - else { - return subscription; - } - var subscriptions = this._subscriptions; - if (subscriptions === null) { - this._subscriptions = [subscription]; - } - else { - subscriptions.push(subscription); - } - return subscription; - }; - Subscription.prototype.remove = function (subscription) { - var subscriptions = this._subscriptions; - if (subscriptions) { - var subscriptionIndex = subscriptions.indexOf(subscription); - if (subscriptionIndex !== -1) { - subscriptions.splice(subscriptionIndex, 1); - } - } - }; - Subscription.EMPTY = (function (empty) { - empty.closed = true; - return empty; - }(new Subscription())); - return Subscription; -}()); - -function flattenUnsubscriptionErrors(errors) { - return errors.reduce(function (errs, err) { return errs.concat((err instanceof UnsubscriptionError) ? err.errors : err); }, []); -} -//# sourceMappingURL=Subscription.js.map - - -/***/ }), - -/***/ "a744": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/isScheduler.js -var isScheduler = __webpack_require__("9e46"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/observable/fromArray.js -var fromArray = __webpack_require__("2144"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js -var scheduleArray = __webpack_require__("245f"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/of.js -/** PURE_IMPORTS_START _util_isScheduler,_fromArray,_scheduled_scheduleArray PURE_IMPORTS_END */ - - - -function of() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = args[args.length - 1]; - if (Object(isScheduler["a" /* isScheduler */])(scheduler)) { - args.pop(); - return Object(scheduleArray["a" /* scheduleArray */])(args, scheduler); - } - else { - return Object(fromArray["a" /* fromArray */])(args); - } -} -//# sourceMappingURL=of.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/mergeAll.js + 1 modules -var mergeAll = __webpack_require__("667f"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/concatAll.js -/** PURE_IMPORTS_START _mergeAll PURE_IMPORTS_END */ - -function concatAll() { - return Object(mergeAll["a" /* mergeAll */])(1); -} -//# sourceMappingURL=concatAll.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/concat.js -/** PURE_IMPORTS_START _of,_operators_concatAll PURE_IMPORTS_END */ - - -function concat() { - var observables = []; - for (var _i = 0; _i < arguments.length; _i++) { - observables[_i] = arguments[_i]; - } - return concatAll()(of.apply(void 0, observables)); -} -//# sourceMappingURL=concat.js.map - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/startWith.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return startWith; }); -/** PURE_IMPORTS_START _observable_concat,_util_isScheduler PURE_IMPORTS_END */ - - -function startWith() { - var array = []; - for (var _i = 0; _i < arguments.length; _i++) { - array[_i] = arguments[_i]; - } - var scheduler = array[array.length - 1]; - if (Object(isScheduler["a" /* isScheduler */])(scheduler)) { - array.pop(); - return function (source) { return concat(array, source, scheduler); }; - } - else { - return function (source) { return concat(array, source); }; - } -} -//# sourceMappingURL=startWith.js.map - - -/***/ }), - -/***/ "a748": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return merge; }); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e9b9"); -/* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9e46"); -/* harmony import */ var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("667f"); -/* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("2144"); -/** PURE_IMPORTS_START _Observable,_util_isScheduler,_operators_mergeAll,_fromArray PURE_IMPORTS_END */ - - - - -function merge() { - var observables = []; - for (var _i = 0; _i < arguments.length; _i++) { - observables[_i] = arguments[_i]; - } - var concurrent = Number.POSITIVE_INFINITY; - var scheduler = null; - var last = observables[observables.length - 1]; - if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__[/* isScheduler */ "a"])(last)) { - scheduler = observables.pop(); - if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') { - concurrent = observables.pop(); - } - } - else if (typeof last === 'number') { - concurrent = observables.pop(); - } - if (scheduler === null && observables.length === 1 && observables[0] instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__[/* Observable */ "a"]) { - return observables[0]; - } - return Object(_operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__[/* mergeAll */ "a"])(concurrent)(Object(_fromArray__WEBPACK_IMPORTED_MODULE_3__[/* fromArray */ "a"])(observables, scheduler)); -} -//# sourceMappingURL=merge.js.map - - -/***/ }), - -/***/ "a9e3": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var DESCRIPTORS = __webpack_require__("83ab"); -var global = __webpack_require__("da84"); -var isForced = __webpack_require__("94ca"); -var redefine = __webpack_require__("6eeb"); -var has = __webpack_require__("5135"); -var classof = __webpack_require__("c6b6"); -var inheritIfRequired = __webpack_require__("7156"); -var toPrimitive = __webpack_require__("c04e"); -var fails = __webpack_require__("d039"); -var create = __webpack_require__("7c73"); -var getOwnPropertyNames = __webpack_require__("241c").f; -var getOwnPropertyDescriptor = __webpack_require__("06cf").f; -var defineProperty = __webpack_require__("9bf2").f; -var trim = __webpack_require__("58a8").trim; - -var NUMBER = 'Number'; -var NativeNumber = global[NUMBER]; -var NumberPrototype = NativeNumber.prototype; - -// Opera ~12 has broken Object#toString -var BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER; - -// `ToNumber` abstract operation -// https://tc39.github.io/ecma262/#sec-tonumber -var toNumber = function (argument) { - var it = toPrimitive(argument, false); - var first, third, radix, maxCode, digits, length, index, code; - if (typeof it == 'string' && it.length > 2) { - it = trim(it); - first = it.charCodeAt(0); - if (first === 43 || first === 45) { - third = it.charCodeAt(2); - if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix - } else if (first === 48) { - switch (it.charCodeAt(1)) { - case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i - case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i - default: return +it; - } - digits = it.slice(2); - length = digits.length; - for (index = 0; index < length; index++) { - code = digits.charCodeAt(index); - // parseInt parses a string to a first unavailable symbol - // but ToNumber should return NaN if a string contains unavailable symbols - if (code < 48 || code > maxCode) return NaN; - } return parseInt(digits, radix); - } - } return +it; -}; - -// `Number` constructor -// https://tc39.github.io/ecma262/#sec-number-constructor -if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) { - var NumberWrapper = function Number(value) { - var it = arguments.length < 1 ? 0 : value; - var dummy = this; - return dummy instanceof NumberWrapper - // check on 1..constructor(foo) case - && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER) - ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it); - }; - for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : ( - // ES3: - 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + - // ES2015 (in case, if modules with ES2015 Number statics required before): - 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + - 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' - ).split(','), j = 0, key; keys.length > j; j++) { - if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) { - defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key)); - } - } - NumberWrapper.prototype = NumberPrototype; - NumberPrototype.constructor = NumberWrapper; - redefine(global, NUMBER, NumberWrapper); -} - - -/***/ }), - -/***/ "ab13": -/***/ (function(module, exports, __webpack_require__) { - -var wellKnownSymbol = __webpack_require__("b622"); - -var MATCH = wellKnownSymbol('match'); - -module.exports = function (METHOD_NAME) { - var regexp = /./; - try { - '/./'[METHOD_NAME](regexp); - } catch (e) { - try { - regexp[MATCH] = false; - return '/./'[METHOD_NAME](regexp); - } catch (f) { /* empty */ } - } return false; -}; - - -/***/ }), - -/***/ "acf8": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InnerSubscriber; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ab4"); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1453"); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - - -var InnerSubscriber = /*@__PURE__*/ (function (_super) { - tslib__WEBPACK_IMPORTED_MODULE_0__[/* __extends */ "a"](InnerSubscriber, _super); - function InnerSubscriber(parent, outerValue, outerIndex) { - var _this = _super.call(this) || this; - _this.parent = parent; - _this.outerValue = outerValue; - _this.outerIndex = outerIndex; - _this.index = 0; - return _this; - } - InnerSubscriber.prototype._next = function (value) { - this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this); - }; - InnerSubscriber.prototype._error = function (error) { - this.parent.notifyError(error, this); - this.unsubscribe(); - }; - InnerSubscriber.prototype._complete = function () { - this.parent.notifyComplete(this); - this.unsubscribe(); - }; - return InnerSubscriber; -}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__[/* Subscriber */ "a"])); - -//# sourceMappingURL=InnerSubscriber.js.map - - -/***/ }), - -/***/ "ae40": -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__("83ab"); -var fails = __webpack_require__("d039"); -var has = __webpack_require__("5135"); - -var defineProperty = Object.defineProperty; -var cache = {}; - -var thrower = function (it) { throw it; }; - -module.exports = function (METHOD_NAME, options) { - if (has(cache, METHOD_NAME)) return cache[METHOD_NAME]; - if (!options) options = {}; - var method = [][METHOD_NAME]; - var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false; - var argument0 = has(options, 0) ? options[0] : thrower; - var argument1 = has(options, 1) ? options[1] : undefined; - - return cache[METHOD_NAME] = !!method && !fails(function () { - if (ACCESSORS && !DESCRIPTORS) return true; - var O = { length: -1 }; - - if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower }); - else O[1] = 1; - - method.call(O, argument0, argument1); - }); -}; - - -/***/ }), - -/***/ "ae93": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var getPrototypeOf = __webpack_require__("e163"); -var createNonEnumerableProperty = __webpack_require__("9112"); -var has = __webpack_require__("5135"); -var wellKnownSymbol = __webpack_require__("b622"); -var IS_PURE = __webpack_require__("c430"); - -var ITERATOR = wellKnownSymbol('iterator'); -var BUGGY_SAFARI_ITERATORS = false; - -var returnThis = function () { return this; }; - -// `%IteratorPrototype%` object -// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object -var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; - -if ([].keys) { - arrayIterator = [].keys(); - // Safari 8 has buggy iterators w/o `next` - if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; - else { - PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); - if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; - } -} - -if (IteratorPrototype == undefined) IteratorPrototype = {}; - -// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) { - createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis); -} - -module.exports = { - IteratorPrototype: IteratorPrototype, - BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS -}; - - -/***/ }), - -/***/ "b041": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee"); -var classof = __webpack_require__("f5df"); - -// `Object.prototype.toString` method implementation -// https://tc39.github.io/ecma262/#sec-object.prototype.tostring -module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { - return '[object ' + classof(this) + ']'; -}; - - -/***/ }), - -/***/ "b0c0": -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__("83ab"); -var defineProperty = __webpack_require__("9bf2").f; - -var FunctionPrototype = Function.prototype; -var FunctionPrototypeToString = FunctionPrototype.toString; -var nameRE = /^\s*function ([^ (]*)/; -var NAME = 'name'; - -// Function instances `.name` property -// https://tc39.github.io/ecma262/#sec-function-instances-name -if (DESCRIPTORS && !(NAME in FunctionPrototype)) { - defineProperty(FunctionPrototype, NAME, { - configurable: true, - get: function () { - try { - return FunctionPrototypeToString.call(this).match(nameRE)[1]; - } catch (error) { - return ''; - } - } - }); -} - - -/***/ }), - -/***/ "b575": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var getOwnPropertyDescriptor = __webpack_require__("06cf").f; -var classof = __webpack_require__("c6b6"); -var macrotask = __webpack_require__("2cf4").set; -var IS_IOS = __webpack_require__("1cdc"); - -var MutationObserver = global.MutationObserver || global.WebKitMutationObserver; -var process = global.process; -var Promise = global.Promise; -var IS_NODE = classof(process) == 'process'; -// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask` -var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask'); -var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; - -var flush, head, last, notify, toggle, node, promise, then; - -// modern engines have queueMicrotask method -if (!queueMicrotask) { - flush = function () { - var parent, fn; - if (IS_NODE && (parent = process.domain)) parent.exit(); - while (head) { - fn = head.fn; - head = head.next; - try { - fn(); - } catch (error) { - if (head) notify(); - else last = undefined; - throw error; - } - } last = undefined; - if (parent) parent.enter(); - }; - - // Node.js - if (IS_NODE) { - notify = function () { - process.nextTick(flush); - }; - // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 - } else if (MutationObserver && !IS_IOS) { - toggle = true; - node = document.createTextNode(''); - new MutationObserver(flush).observe(node, { characterData: true }); - notify = function () { - node.data = toggle = !toggle; - }; - // environments with maybe non-completely correct, but existent Promise - } else if (Promise && Promise.resolve) { - // Promise.resolve without an argument throws an error in LG WebOS 2 - promise = Promise.resolve(undefined); - then = promise.then; - notify = function () { - then.call(promise, flush); - }; - // for other environments - macrotask based on: - // - setImmediate - // - MessageChannel - // - window.postMessag - // - onreadystatechange - // - setTimeout - } else { - notify = function () { - // strange IE + webpack dev server bug - use .call(global) - macrotask.call(global, flush); - }; - } -} - -module.exports = queueMicrotask || function (fn) { - var task = { fn: fn, next: undefined }; - if (last) last.next = task; - if (!head) { - head = task; - notify(); - } last = task; -}; - - -/***/ }), - -/***/ "b622": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var shared = __webpack_require__("5692"); -var has = __webpack_require__("5135"); -var uid = __webpack_require__("90e3"); -var NATIVE_SYMBOL = __webpack_require__("4930"); -var USE_SYMBOL_AS_UID = __webpack_require__("fdbf"); - -var WellKnownSymbolsStore = shared('wks'); -var Symbol = global.Symbol; -var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid; - -module.exports = function (name) { - if (!has(WellKnownSymbolsStore, name)) { - if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name]; - else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); - } return WellKnownSymbolsStore[name]; -}; - - -/***/ }), - -/***/ "b727": -/***/ (function(module, exports, __webpack_require__) { - -var bind = __webpack_require__("0366"); -var IndexedObject = __webpack_require__("44ad"); -var toObject = __webpack_require__("7b0b"); -var toLength = __webpack_require__("50c4"); -var arraySpeciesCreate = __webpack_require__("65f0"); - -var push = [].push; - -// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation -var createMethod = function (TYPE) { - var IS_MAP = TYPE == 1; - var IS_FILTER = TYPE == 2; - var IS_SOME = TYPE == 3; - var IS_EVERY = TYPE == 4; - var IS_FIND_INDEX = TYPE == 6; - var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; - return function ($this, callbackfn, that, specificCreate) { - var O = toObject($this); - var self = IndexedObject(O); - var boundFunction = bind(callbackfn, that, 3); - var length = toLength(self.length); - var index = 0; - var create = specificCreate || arraySpeciesCreate; - var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; - var value, result; - for (;length > index; index++) if (NO_HOLES || index in self) { - value = self[index]; - result = boundFunction(value, index, O); - if (TYPE) { - if (IS_MAP) target[index] = result; // map - else if (result) switch (TYPE) { - case 3: return true; // some - case 5: return value; // find - case 6: return index; // findIndex - case 2: push.call(target, value); // filter - } else if (IS_EVERY) return false; // every - } - } - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; - }; -}; - -module.exports = { - // `Array.prototype.forEach` method - // https://tc39.github.io/ecma262/#sec-array.prototype.foreach - forEach: createMethod(0), - // `Array.prototype.map` method - // https://tc39.github.io/ecma262/#sec-array.prototype.map - map: createMethod(1), - // `Array.prototype.filter` method - // https://tc39.github.io/ecma262/#sec-array.prototype.filter - filter: createMethod(2), - // `Array.prototype.some` method - // https://tc39.github.io/ecma262/#sec-array.prototype.some - some: createMethod(3), - // `Array.prototype.every` method - // https://tc39.github.io/ecma262/#sec-array.prototype.every - every: createMethod(4), - // `Array.prototype.find` method - // https://tc39.github.io/ecma262/#sec-array.prototype.find - find: createMethod(5), - // `Array.prototype.findIndex` method - // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex - findIndex: createMethod(6) -}; - - -/***/ }), - -/***/ "bc00": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js -var es_array_for_each = __webpack_require__("4160"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js -var es_object_assign = __webpack_require__("cca6"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js -var web_dom_collections_for_each = __webpack_require__("159b"); - -// CONCATENATED MODULE: ./src/components/extends/common-methods.js -var commonMethods = { - /* 通用 common */ - prevent: function prevent(e) { - e.preventDefault(); - }, - eTo: function eTo(e, direction, element) { - var area = this[element + 'Pos'](); - var length = 0; - - switch (direction) { - case 'top': - length = e.clientY - area.top; - break; - - case 'left': - length = e.clientX - area.left; - break; - - case 'right': - length = area.right - e.clientX; - break; - - case 'bottom': - length = area.bottom - e.clientY; - break; - } - - return length; - }, - toPercentage: function toPercentage(pos) { - var result = {}; - var table = { - left: 'toX', - right: 'toX', - top: 'toY', - bottom: 'toY', - width: 'toX', - height: 'toY' - }; - - for (var k in pos) { - var fn = table[k]; - if (!fn || pos[k] === undefined) continue; - result[k] = this[fn](pos[k]); - } - - return result; - }, - invalidDrawPos: function invalidDrawPos(pos) { - // true if invalid - return pos.swidth === 0 || pos.sheight === 0; - } -}; -/* harmony default export */ var common_methods = (commonMethods); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js -var es_symbol = __webpack_require__("a4d3"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js -var es_symbol_description = __webpack_require__("e01a"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js -var es_symbol_iterator = __webpack_require__("d28b"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js -var es_array_iterator = __webpack_require__("e260"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js -var es_object_to_string = __webpack_require__("d3b7"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js -var es_string_iterator = __webpack_require__("3ca3"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js -var web_dom_collections_iterator = __webpack_require__("ddb0"); - -// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js -var runtime = __webpack_require__("96cf"); - -// CONCATENATED MODULE: ./src/components/extends/basic-methods.js - - - - - - - - - -var clipperMethods = { - eToArea: function eToArea(e, direction) { - return this.eTo(e, direction, 'area'); - }, - areaPos: function areaPos() { - var rect = this.areaEl.getBoundingClientRect(); - return rect; - }, - zoomPos: function zoomPos() { - var rect = this.zoomEl.getBoundingClientRect(); - return rect; - }, - scalePos: function scalePos() { - return this.scaleEl.getBoundingClientRect(); - }, - imgPos: function imgPos() { - // original image position (without rotation) - - /* Because of the firefox bug https://codepen.io/timtnlee/pen/JjYQXzx - I cannot use element that auto width based on specific height. - So need to calculate by wrapped element. - */ - var _this$scalePos = this.scalePos(), - width = _this$scalePos.width, - height = _this$scalePos.height, - top = _this$scalePos.top, - left = _this$scalePos.left; - - if (this.wrapRatio) { - if (this.isVertical) { - var w = height * this.imgRatio; - return { - width: w, - height: height, - left: left + (width - w) / 2, - top: top - }; - } else { - var h = width / this.imgRatio; - return { - width: width, - height: h, - left: left, - top: top + (height - h) / 2 - }; - } - } - - return { - width: width, - height: height, - left: left, - top: top - }; - }, - eInZoom: function eInZoom(e) { - var zoomPos = this.zoomEl.getBoundingClientRect(); - return { - width: zoomPos.width, - height: zoomPos.height, - left: e.clientX - zoomPos.left, - top: e.clientY - zoomPos.top - }; - }, - zoomInArea: function zoomInArea() { - // zoom rect & zoom pos related to area - var areaPos = this.areaEl.getBoundingClientRect(); - var zoomPos = this.zoomEl.getBoundingClientRect(); - return Object.assign(zoomPos, { - offsetLeft: zoomPos.left - areaPos.left, - offsetTop: zoomPos.top - areaPos.top, - maxLeft: areaPos.width - zoomPos.width, - maxTop: areaPos.height - zoomPos.height - }); - }, - toX: function toX(value) { - // to X axis percentage 0~100 ! - var area = this.areaPos(); - return Math.min(Math.max(value / area.width * 100, 0), 100); - }, - toY: function toY(value) { - // to Y axis percentage 0~100 ! - var area = this.areaPos(); - return Math.min(Math.max(value / area.height * 100, 0), 100); - }, - - /* 拖曳drag */ - isDragElement: function isDragElement(e) { - return e.target === this.dragEl; - }, - dragMoving: function dragMoving(_ref) { - var down = _ref.down, - move = _ref.move; - var left = this.toX(this.eToArea(move, 'left') - down.left); - var top = this.toY(this.eToArea(move, 'top') - down.top); // set max position - - return { - left: left, - top: top, - down: down, - move: move - }; - }, - repositionDrag: function repositionDrag(_ref2) { - var left = _ref2.left, - top = _ref2.top, - down = _ref2.down, - move = _ref2.move; - // validate @left, @top, and reposition @down if nedded. - var zoom = this.zoomInArea(); - var maxLeft = this.toX(zoom.maxLeft); - var maxTop = this.toY(zoom.maxTop); - left = Math.min(left, maxLeft); - top = Math.min(top, maxTop); - - if (left === maxLeft || left === 0) { - // 轉換拖曳點X - var eInZoom = this.eInZoom(move); - down.left = Math.max(Math.min(eInZoom.left, eInZoom.width), 0); - } - - if (top === maxTop || top === 0) { - // 轉換拖曳點Y - var _eInZoom = this.eInZoom(move); - - down.top = Math.max(Math.min(_eInZoom.top, _eInZoom.height), 0); - } - - return { - left: left, - top: top - }; - }, - - /* 縮放計算 */ - ratioPos: function ratioPos(newRect) { - /** - * @argument e - moving event - */ - var zoom = this.zoomPos(); - var xGrow = newRect.width - zoom.width; - var yGrow = newRect.height - zoom.height; - var horizon = xGrow > yGrow; - return { - x: horizon, - y: !horizon - }; - }, - zoomingPosition: function zoomingPosition(_ref3) { - var _this = this; - - var down = _ref3.down, - move = _ref3.move; - // 判斷移動方向 - var x = move.clientX > down.clientX ? 'r' : 'l'; - var y = move.clientY > down.clientY ? 'b' : 't'; - - var getTop = function getTop() { - return _this.eToArea(down, 'top'); - }; - - var getLeft = function getLeft() { - return _this.eToArea(down, 'left'); - }; - - var originTop = getTop(); - var originLeft = getLeft(); - var area = this.areaPos(); - var left, top, right, bottom; - var width = 0; - var height = 0; - var maxWidth, maxHeight; - var minWidth = this.minWidth * area.width / 100; - var minHeight = this.ratio ? minWidth / this.ratio : this.minHeight * area.height / 100; // horizontal - - if (x === 'r') { - if (originLeft + minWidth > area.width) { - /* clip area will overlay, reset down position */ - down.clientX = area.right - minWidth; - left = originLeft; - } else { - left = getLeft(); - } - - maxWidth = area.width - left; - width = move.clientX - down.clientX; - } else if (x === 'l') { - if (originLeft < minWidth) { - /* clip area will overlay, reset down position */ - down.clientX = area.left + minWidth; - } - - right = area.right - down.clientX; - maxWidth = area.width - right; - width = down.clientX - move.clientX; - } // vertical - - - if (y === 'b') { - if (originTop + minHeight > area.height) { - down.clientY = area.bottom - minHeight; - top = originTop; - } else { - top = getTop(); - } - - maxHeight = area.height - top; - height = move.clientY - down.clientY; - } else if (y === 't') { - if (originTop < minHeight) { - down.clientY = area.top + minHeight; - } - - bottom = area.bottom - down.clientY; - maxHeight = area.height - bottom; - height = down.clientY - move.clientY; - } - - width = Math.max(Math.min(width, maxWidth), minWidth); - height = Math.max(Math.min(height, maxHeight), minHeight); - return { - width: width, - height: height, - top: top, - left: left, - right: right, - bottom: bottom, - maxWidth: maxWidth, - maxHeight: maxHeight - }; - }, - setRatioWH: function setRatioWH(_ref4) { - var width = _ref4.width, - height = _ref4.height, - maxWidth = _ref4.maxWidth, - maxHeight = _ref4.maxHeight, - left = _ref4.left, - top = _ref4.top, - right = _ref4.right, - bottom = _ref4.bottom; - if (!this.ratio) return { - width: width, - height: height, - left: left, - top: top, - right: right, - bottom: bottom - }; // 有設定比例的話進行調整 - - var ratioPos = this.ratioPos({ - width: width, - height: height - }); - - if (ratioPos.x) { - height = Math.min(width / this.ratio, maxHeight); - width = height === maxHeight ? height * this.ratio : width; - } else { - width = Math.min(height * this.ratio, maxWidth); - height = width === maxWidth ? width / this.ratio : height; - } - - return { - width: width, - height: height, - left: left, - top: top, - right: right, - bottom: bottom - }; - }, - initWHTL: function initWHTL() { - var _this2 = this; - - var width = this.initWidth; - var height = this.initHeight; - var left = (100 - this.initWidth) / 2; - var top = (100 - this.initHeight) / 2; - var area = this.areaPos(); - var pixel = { - width: width * area.width / 100, - height: height * area.height / 100 - }; - - if (!this.ratio) { - if (width < this.minWidth) { - throw new Error('Invalid initWidth, minWidth combination'); - } - - if (height < this.minHeight) { - throw new Error('Invalid initHeight, minHeight combination'); - } - } else if (this.ratio) { - var wrapRatio = this.wrapRatio || this.imgRatio; - - var calcH = function calcH() { - var heightInPixel = pixel.width / _this2.ratio; - var heightInPercentage = heightInPixel / area.height * 100; - height = Math.max(heightInPercentage, _this2.minHeight); - top = (100 - height) / 2; - }; - - var calcW = function calcW() { - var widthInPixel = pixel.height * _this2.ratio; - var widthInPercentage = widthInPixel / area.width * 100; - width = Math.max(widthInPercentage, _this2.minWidth); - left = (100 - width) / 2; - }; - - if (wrapRatio <= this.ratio) { - calcH(); - if (this.minHeight === height) calcW(); - - if (width > 100) { - throw new Error('Invalid ratio, wrapRatio, minWidth combination'); - } - } else { - calcW(); - if (this.minWidth === width) calcH(); - - if (height > 100) { - throw new Error('Invalid ratio, wrapRatio, minWidth combination'); - } - } - } - - this.setTL$.next({ - left: left, - top: top - }); - return { - width: width, - height: height - }; - }, - splitPos: function splitPos(_ref5) { - var top = _ref5.top, - left = _ref5.left, - right = _ref5.right, - bottom = _ref5.bottom, - width = _ref5.width, - height = _ref5.height, - maxWidth = _ref5.maxWidth, - maxHeight = _ref5.maxHeight; - return { - tl: { - left: left, - top: top, - right: right, - bottom: bottom - }, - wh: { - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight - } - }; - }, - - /* 拖曳縮放 */ - isZoomElement: function isZoomElement(e) { - return this.zoomEl.contains(e.target) && e.target !== this.dragEl; - }, - judgeArea: function judgeArea(e) { - var zoom = this.zoomPos(); - var md = zoom.left + zoom.width / 2; - var vh = zoom.top + zoom.height / 2; - var mouseX = e.clientX; - var mouseY = e.clientY; - return { - l: mouseX < md, - r: mouseX > md, - t: mouseY < vh, - b: mouseY > vh - }; - }, - setDownPosition: function setDownPosition(e) { - // use in zoomWH$ - var judge = this.judgeArea(e); - var zoom = this.zoomPos(); - var clientY = judge.t ? zoom.bottom : zoom.top; - var clientX = judge.l ? zoom.right : zoom.left; - return { - target: null, - clientX: clientX, - clientY: clientY - }; - }, - - /* 兩指縮放 */ - isTwoPointZoomElement: function isTwoPointZoomElement(e) { - // in .area - return this.areaEl.contains(e.touches[0].target) && this.areaEl.contains(e.touches[1].target); - }, - getTwoTouchesPos: function getTwoTouchesPos(start, move, originZoom) { - /* p[0]----| - |---- p[1] - */ - var area = this.areaPos(); - var normalX = move.touches[0].clientX < move.touches[1].clientX; - var normalY = move.touches[0].clientY < move.touches[1].clientY; - var normalSX = start.touches[0].clientX < start.touches[1].clientX; - var normalSY = start.touches[0].clientY < start.touches[1].clientY; // const originWRange = Math.abs(start.touches[0].clientX - start.touches[1].clientX), - // originHRange = Math.abs(start.touches[0].clientY - start.touches[1].clientY); - - var point = { - left: normalX ? 0 : 1, - right: normalX ? 1 : 0, - top: normalY ? 0 : 1, - bottom: normalY ? 1 : 0 - }; - var pointStart = { - left: normalSX ? 0 : 1, - right: normalSX ? 1 : 0, - top: normalSY ? 0 : 1, - bottom: normalSY ? 1 : 0 - }; - var LMove = start.touches[pointStart.left].clientX - move.touches[point.left].clientX; - var TMove = start.touches[pointStart.top].clientY - move.touches[point.top].clientY; - var minWidth = this.minWidth * area.width / 100; - var minHeight = this.ratio ? minWidth / this.ratio : this.minHeight * area.height / 100; // 這裡的left,top要先validate否則maxWidth,maxHeight會算錯 - - var left = Math.min(originZoom.left - area.left - LMove, area.width - minWidth); - var top = Math.min(originZoom.top - area.top - TMove, area.height - minHeight); - var maxWidth = area.width - left; - var maxHeight = area.height - top; - var overRight = start.touches[pointStart.right].clientX - originZoom.right; - var overTop = start.touches[pointStart.bottom].clientY - originZoom.bottom; - var width = Math.max(Math.min(move.touches[point.right].clientX - area.left - left - overRight, maxWidth), minWidth); - var height = Math.max(Math.min(move.touches[point.bottom].clientY - top - area.top - overTop, maxHeight), minHeight); - return { - width: width, - height: height, - top: top, - left: left, - maxWidth: maxWidth, - maxHeight: maxHeight - }; - }, - - /* 拖曳重新劃定區域 */ - isCreateElement: function isCreateElement(e) { - return e.target === this.areaEl || e.target === this.imgEl; - }, - getFakeDown: function getFakeDown(e) { - return { - target: e.target, - clientX: e.clientX, - clientY: e.clientY - }; - }, - reverseDownPos: function reverseDownPos(_ref6) { - var down = _ref6.down, - move = _ref6.move; - if (this.mode === 'normal') return { - down: down, - move: move - }; - - if (down.target !== null && down.target === this.areaEl) { - // this is dragCreate, first time dont count - down.target = null; - return { - down: down, - move: move - }; - } // 處理反向 - - - var judge = this.judgeArea(down); - var zoom = this.zoomPos(); // 左右反向 - - if (judge.l && move.clientX <= down.clientX) { - down.clientX = zoom.right; - } else if (judge.r && move.clientX >= down.clientX) { - down.clientX = zoom.left; - } // 上下反向 - - - if (judge.t && move.clientY <= down.clientY) { - down.clientY = zoom.bottom; - } else if (judge.b && move.clientY >= down.clientY) { - down.clientY = zoom.top; - } - - return { - down: down, - move: move - }; - }, - // getImgNonRotatePos: function () { - // 取得 image 旋轉前的 position - // const scalePos = this.scalePos() - // const x = scalePos.left + scalePos.width / 2 - // const y = scalePos.top + scalePos.height / 2 - // let w, h, l, r, t, b - // if (this.isVertical) { - // h = scalePos.height - // w = h * this.imgRatio - // l = x - w / 2 - // r = x + w / 2 - // t = scalePos.top - // b = scalePos.bottom - // } else { - // w = scalePos.width - // h = w / this.imgRatio - // l = scalePos.left - // r = scalePos.right - // t = y - h / 2 - // b = y + h / 2 - // } - // return { - // left: l, - // right: r, - // top: t, - // bottom: b, - // width: w, - // height: h - // } - // }, - // DRAW - getDrawPos: function getDrawPos(opt) { - var _ref7 = opt || {}, - wPixel = _ref7.wPixel, - maxWPixel = _ref7.maxWPixel; - - var zoom = this.zoomPos(); - var img = this.imgPos(); - var imgW = this.imgEl.naturalWidth; - var viewW = img.width; - var viewL = zoom.left - img.left; - var viewT = zoom.top - img.top; - var zWidth = zoom.width; - var zHeight = zoom.height; - var rate = imgW / viewW; - var dWidth = maxWPixel ? Math.min(wPixel || zWidth * rate, maxWPixel) : wPixel || zWidth * rate; - var translate = { - rotateX: (img.left + img.width / 2 - zoom.left) * rate, - rotateY: (img.top + img.height / 2 - zoom.top) * rate, - drawX: (img.left - zoom.left) * rate, - drawY: (img.top - zoom.top) * rate - }; - var pos = { - sx: viewL * rate, - // sx - sy: viewT * rate, - // sy - swidth: zWidth * rate, - // sWidth - sheight: zHeight * rate, - // sHeight - dx: 0, - // dx - dy: 0, - // dy - dwidth: dWidth, - // dWidth - dheight: dWidth * zHeight / zWidth // dHeight - - }; - pos[Symbol.iterator] = - /*#__PURE__*/ - regeneratorRuntime.mark(function _callee() { - var k; - return regeneratorRuntime.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.t0 = regeneratorRuntime.keys(pos); - - case 1: - if ((_context.t1 = _context.t0()).done) { - _context.next = 7; - break; - } - - k = _context.t1.value; - _context.next = 5; - return pos[k]; - - case 5: - _context.next = 1; - break; - - case 7: - case "end": - return _context.stop(); - } - } - }, _callee); - }); - return { - pos: pos, - translate: translate - }; - } -}; -/* harmony default export */ var basic_methods = (clipperMethods); -// CONCATENATED MODULE: ./src/components/extends/fixed-methods.js - - - - - - - - -var fixedMethods = { - // translatePos: function () { - // return this.imgEl.getBoundingClientRect(); - // }, - wrapPos: function wrapPos() { - return this.wrapEl.getBoundingClientRect(); - }, - scalePos: function scalePos() { - return this.scaleEl.getBoundingClientRect(); - }, - translatePos: function translatePos() { - return this.translateEl.getBoundingClientRect(); - }, - toX: function toX(value) { - // to X axis percentage 0~100 ! - var scale = this.scalePos(); - return value / scale.width * 100; - }, - toY: function toY(value) { - // to Y axis percentage 0~100 ! - var scale = this.scalePos(); - return value / scale.height * 100; - }, - // eToBg: function (e, direction) { - // return this.eTo(e, direction, '.bg'); - // }, - isDragElement: function isDragElement(e) { - return this.wrapEl.contains(e.target); - }, - dragDownPos: function dragDownPos(e) { - var translatePos = this.translatePos(); - var scalePos = this.scalePos(); - var offset = { - left: translatePos.left - scalePos.left, - top: translatePos.top - scalePos.top, - clientX: e.clientX, - clientY: e.clientY - }; - return offset; - }, - delta: function delta(_ref) { - var down = _ref.down, - move = _ref.move; - var left = move.clientX - down.clientX + down.left; - var top = move.clientY - down.clientY + down.top; - return { - left: left, - top: top - }; - }, - towPointsTouches: function towPointsTouches(e) { - return e.touches; - }, - setOrigin: function setOrigin(down) { - return { - down: [down[0], down[1]], - origin: this.scalePos().width - }; - }, - twoPointsDelta: function twoPointsDelta(_ref2) { - var down = _ref2.down, - move = _ref2.move; - var x = Math.abs(move[0].clientX - move[1].clientX) - Math.abs(down[0].clientX - down[1].clientX); - var y = Math.abs(move[0].clientY - move[1].clientY) - Math.abs(down[0].clientY - down[1].clientY); - down[0] = move[0]; - down[1] = move[1]; - var wrapPos = this.wrapPos(); - - if (Math.abs(x) >= Math.abs(y)) { - return x / wrapPos.width; - } else { - return y / wrapPos.height; - } - }, - getDrawPos: function getDrawPos(opt) { - var _ref3 = opt || {}, - wPixel = _ref3.wPixel, - maxWPixel = _ref3.maxWPixel; - - var areaPos = this.areaEl.getBoundingClientRect(); - var translatePos = this.translatePos(); - var imgW = this.imgEl.naturalWidth; - var viewL = areaPos.left - translatePos.left + this.border; - var viewT = areaPos.top - translatePos.top + this.border; - var rate = imgW / translatePos.width; - var translate = { - rotateX: (translatePos.left + translatePos.width / 2 - (areaPos.left + this.border)) * rate, - rotateY: (translatePos.top + translatePos.height / 2 - (areaPos.top + this.border)) * rate, - drawX: (translatePos.left - (areaPos.left + this.border)) * rate, - drawY: (translatePos.top - (areaPos.top + this.border)) * rate - }; - var swidth = areaPos.width - this.border * 2; - var sheight = areaPos.height - this.border * 2; - var dwidth = maxWPixel ? Math.min(wPixel || swidth * rate, maxWPixel) : wPixel || swidth * rate; - var pos = { - sx: viewL * rate, - // sx - sy: viewT * rate, - // sy - swidth: swidth * rate, - // sWidth - sheight: sheight * rate, - // sHeight - dx: 0, - // dx - dy: 0, - // dy - dwidth: dwidth, - // dWidth - dheight: dwidth * sheight / swidth // dHeight - - }; - pos[Symbol.iterator] = - /*#__PURE__*/ - regeneratorRuntime.mark(function _callee() { - var k; - return regeneratorRuntime.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.t0 = regeneratorRuntime.keys(pos); - - case 1: - if ((_context.t1 = _context.t0()).done) { - _context.next = 7; - break; - } - - k = _context.t1.value; - _context.next = 5; - return pos[k]; - - case 5: - _context.next = 1; - break; - - case 7: - case "end": - return _context.stop(); - } - } - }, _callee); - }); - return { - pos: pos, - translate: translate - }; - }, - calcWheelScaling: function calcWheelScaling(delta) { - var origin = this.bgWH$; - var rate = this.zoomRate * Math.max(origin, 0.8) * delta; - return Math.max(origin + rate, this.minScale); - }, - calcTouchScaling: function calcTouchScaling(delta) { - var origin = this.bgWH$; - var rate = Math.max(origin, 0.8) * delta; - return Math.max(origin + rate, this.minScale); - } -}; -/* harmony default export */ var fixed_methods = (fixedMethods); -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/observable/fromEvent.js -var fromEvent = __webpack_require__("6e77"); - -// EXTERNAL MODULE: ./src/namespace.js -var namespace = __webpack_require__("0f53"); - -// CONCATENATED MODULE: ./src/components/extends/clippo.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return basicMethods; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return clippo_fixedMethods; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return rxEventListeners; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return rxWheelListeners; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return pluginMethods; }); - - - - -/* - * methods for calculating position layout, - * extended by clipper-basic-component -*/ - - - - - -var basicMethods = Object.assign(basic_methods, common_methods); -var clippo_fixedMethods = Object.assign(fixed_methods, common_methods); - - -/** Listeners */ - -var rxEventListeners = { - beforeCreate: function beforeCreate() { - this.mousedown$ = Object(fromEvent["a" /* fromEvent */])(window, 'mousedown'); - this.mousemove$ = Object(fromEvent["a" /* fromEvent */])(window, 'mousemove'); - this.mouseup$ = Object(fromEvent["a" /* fromEvent */])(window, 'mouseup'); - this.touchstart$ = Object(fromEvent["a" /* fromEvent */])(window, 'touchstart', { - passive: false - }); - this.touchmove$ = Object(fromEvent["a" /* fromEvent */])(window, 'touchmove', { - passive: false - }); - this.touchend$ = Object(fromEvent["a" /* fromEvent */])(window, 'touchend', { - passive: false - }); - } -}; -var rxWheelListeners = { - beforeCreate: function beforeCreate() { - this.wheel$ = Object(fromEvent["a" /* fromEvent */])(window, 'wheel', { - passive: false - }); - } -}; - - -var pluginMethods = { - methods: { - clip: function clip(opt) { - var drawPos = this.getDrawPos(opt); - var ctx = this.canvasEl.getContext('2d'); - var width = drawPos.pos.swidth; // dw - - var height = drawPos.pos.sheight; // dh - - this.canvasEl.width = width; - this.canvasEl.height = height; - ctx.fillStyle = this.bgColor; - ctx.fillRect(0, 0, width, height); - ctx.translate(drawPos.translate.rotateX, drawPos.translate.rotateY); - ctx.rotate(this.rotate * Math.PI / 180); - ctx.translate(drawPos.translate.drawX - drawPos.translate.rotateX, drawPos.translate.drawY - drawPos.translate.rotateY); - ctx.drawImage(this.imgEl, 0, 0); - - if (opt) { - var canvas = document.createElement('CANVAS'); - canvas.width = drawPos.pos.dwidth; - canvas.height = drawPos.pos.dheight; - canvas.getContext('2d').drawImage(this.canvasEl, 0, 0, drawPos.pos.dwidth, drawPos.pos.dheight); - return canvas; - } else { - return this.canvasEl; - } - }, - callPreview: function callPreview(method) { - for (var _len = arguments.length, arg = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - arg[_key - 1] = arguments[_key]; - } - - var parentPropName = namespace["a" /* default */].parentPropName; - if (!this.preview) return; - if (!this.$parent[parentPropName]) return; // "You register to use clipper-preview But No clipper-view Component detected."; - - var previews = this.$parent[parentPropName][this.preview]; - if (!previews) return; // `preview with name "${this.preview}" not found`; - - previews.forEach(function (p) { - p[method].apply(p, arg); - }); - }, - emit: function emit(name, arg) { - this.$emit(name, arg); - } - } -}; - - -/***/ }), - -/***/ "c04e": -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__("861d"); - -// `ToPrimitive` abstract operation -// https://tc39.github.io/ecma262/#sec-toprimitive -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string -module.exports = function (input, PREFERRED_STRING) { - if (!isObject(input)) return input; - var fn, val; - if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; - if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; - if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; - throw TypeError("Can't convert object to primitive value"); -}; - - -/***/ }), - -/***/ "c430": -/***/ (function(module, exports) { - -module.exports = false; - - -/***/ }), - -/***/ "c4cc": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return tap; }); -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ab4"); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1453"); -/* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fae9"); -/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d817"); -/** PURE_IMPORTS_START tslib,_Subscriber,_util_noop,_util_isFunction PURE_IMPORTS_END */ - - - - -function tap(nextOrObserver, error, complete) { - return function tapOperatorFunction(source) { - return source.lift(new DoOperator(nextOrObserver, error, complete)); - }; -} -var DoOperator = /*@__PURE__*/ (function () { - function DoOperator(nextOrObserver, error, complete) { - this.nextOrObserver = nextOrObserver; - this.error = error; - this.complete = complete; - } - DoOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete)); - }; - return DoOperator; -}()); -var TapSubscriber = /*@__PURE__*/ (function (_super) { - tslib__WEBPACK_IMPORTED_MODULE_0__[/* __extends */ "a"](TapSubscriber, _super); - function TapSubscriber(destination, observerOrNext, error, complete) { - var _this = _super.call(this, destination) || this; - _this._tapNext = _util_noop__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "a"]; - _this._tapError = _util_noop__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "a"]; - _this._tapComplete = _util_noop__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "a"]; - _this._tapError = error || _util_noop__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "a"]; - _this._tapComplete = complete || _util_noop__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "a"]; - if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_3__[/* isFunction */ "a"])(observerOrNext)) { - _this._context = _this; - _this._tapNext = observerOrNext; - } - else if (observerOrNext) { - _this._context = observerOrNext; - _this._tapNext = observerOrNext.next || _util_noop__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "a"]; - _this._tapError = observerOrNext.error || _util_noop__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "a"]; - _this._tapComplete = observerOrNext.complete || _util_noop__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "a"]; - } - return _this; - } - TapSubscriber.prototype._next = function (value) { - try { - this._tapNext.call(this._context, value); - } - catch (err) { - this.destination.error(err); - return; - } - this.destination.next(value); - }; - TapSubscriber.prototype._error = function (err) { - try { - this._tapError.call(this._context, err); - } - catch (err) { - this.destination.error(err); - return; - } - this.destination.error(err); - }; - TapSubscriber.prototype._complete = function () { - try { - this._tapComplete.call(this._context); - } - catch (err) { - this.destination.error(err); - return; - } - return this.destination.complete(); - }; - return TapSubscriber; -}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__[/* Subscriber */ "a"])); -//# sourceMappingURL=tap.js.map - - -/***/ }), - -/***/ "c539": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return observable; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var observable = /*@__PURE__*/ (function () { return typeof Symbol === 'function' && Symbol.observable || '@@observable'; })(); -//# sourceMappingURL=observable.js.map - - -/***/ }), - -/***/ "c6b6": -/***/ (function(module, exports) { - -var toString = {}.toString; - -module.exports = function (it) { - return toString.call(it).slice(8, -1); -}; - - -/***/ }), - -/***/ "c6cd": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var setGlobal = __webpack_require__("ce4e"); - -var SHARED = '__core-js_shared__'; -var store = global[SHARED] || setGlobal(SHARED, {}); - -module.exports = store; - - -/***/ }), - -/***/ "c8ba": -/***/ (function(module, exports) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || new Function("return this")(); -} catch (e) { - // This works if the window reference is available - if (typeof window === "object") g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), - -/***/ "ca84": -/***/ (function(module, exports, __webpack_require__) { - -var has = __webpack_require__("5135"); -var toIndexedObject = __webpack_require__("fc6a"); -var indexOf = __webpack_require__("4d64").indexOf; -var hiddenKeys = __webpack_require__("d012"); - -module.exports = function (object, names) { - var O = toIndexedObject(object); - var i = 0; - var result = []; - var key; - for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); - // Don't enum bug & hidden keys - while (names.length > i) if (has(O, key = names[i++])) { - ~indexOf(result, key) || result.push(key); - } - return result; -}; - - -/***/ }), - -/***/ "cc12": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var isObject = __webpack_require__("861d"); - -var document = global.document; -// typeof document.createElement is 'object' in old IE -var EXISTS = isObject(document) && isObject(document.createElement); - -module.exports = function (it) { - return EXISTS ? document.createElement(it) : {}; -}; - - -/***/ }), - -/***/ "cca6": -/***/ (function(module, exports, __webpack_require__) { - -var $ = __webpack_require__("23e7"); -var assign = __webpack_require__("60da"); - -// `Object.assign` method -// https://tc39.github.io/ecma262/#sec-object.assign -$({ target: 'Object', stat: true, forced: Object.assign !== assign }, { - assign: assign -}); - - -/***/ }), - -/***/ "cdf9": -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__("825a"); -var isObject = __webpack_require__("861d"); -var newPromiseCapability = __webpack_require__("f069"); - -module.exports = function (C, x) { - anObject(C); - if (isObject(x) && x.constructor === C) return x; - var promiseCapability = newPromiseCapability.f(C); - var resolve = promiseCapability.resolve; - resolve(x); - return promiseCapability.promise; -}; - - -/***/ }), - -/***/ "ce4e": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var createNonEnumerableProperty = __webpack_require__("9112"); - -module.exports = function (key, value) { - try { - createNonEnumerableProperty(global, key, value); - } catch (error) { - global[key] = value; - } return value; -}; - - -/***/ }), - -/***/ "ce8b": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return subscribeToResult; }); -/* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("acf8"); -/* harmony import */ var _subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1716"); -/* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("e9b9"); -/** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo,_Observable PURE_IMPORTS_END */ - - - -function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) { - if (innerSubscriber === void 0) { - innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__[/* InnerSubscriber */ "a"](outerSubscriber, outerValue, outerIndex); - } - if (innerSubscriber.closed) { - return undefined; - } - if (result instanceof _Observable__WEBPACK_IMPORTED_MODULE_2__[/* Observable */ "a"]) { - return result.subscribe(innerSubscriber); - } - return Object(_subscribeTo__WEBPACK_IMPORTED_MODULE_1__[/* subscribeTo */ "a"])(result)(innerSubscriber); -} -//# sourceMappingURL=subscribeToResult.js.map - - -/***/ }), - -/***/ "d012": -/***/ (function(module, exports) { - -module.exports = {}; - - -/***/ }), - -/***/ "d039": -/***/ (function(module, exports) { - -module.exports = function (exec) { - try { - return !!exec(); - } catch (error) { - return true; - } -}; - - -/***/ }), - -/***/ "d066": -/***/ (function(module, exports, __webpack_require__) { - -var path = __webpack_require__("428f"); -var global = __webpack_require__("da84"); - -var aFunction = function (variable) { - return typeof variable == 'function' ? variable : undefined; -}; - -module.exports = function (namespace, method) { - return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) - : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method]; -}; - - -/***/ }), - -/***/ "d1e7": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var nativePropertyIsEnumerable = {}.propertyIsEnumerable; -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -// Nashorn ~ JDK8 bug -var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); - -// `Object.prototype.propertyIsEnumerable` method implementation -// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable -exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { - var descriptor = getOwnPropertyDescriptor(this, V); - return !!descriptor && descriptor.enumerable; -} : nativePropertyIsEnumerable; - - -/***/ }), - -/***/ "d28b": -/***/ (function(module, exports, __webpack_require__) { - -var defineWellKnownSymbol = __webpack_require__("746f"); - -// `Symbol.iterator` well-known symbol -// https://tc39.github.io/ecma262/#sec-symbol.iterator -defineWellKnownSymbol('iterator'); - - -/***/ }), - -/***/ "d2bb": -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__("825a"); -var aPossiblePrototype = __webpack_require__("3bbe"); - -// `Object.setPrototypeOf` method -// https://tc39.github.io/ecma262/#sec-object.setprototypeof -// Works with __proto__ only. Old v8 can't work with null proto objects. -/* eslint-disable no-proto */ -module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { - var CORRECT_SETTER = false; - var test = {}; - var setter; - try { - setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set; - setter.call(test, []); - CORRECT_SETTER = test instanceof Array; - } catch (error) { /* empty */ } - return function setPrototypeOf(O, proto) { - anObject(O); - aPossiblePrototype(proto); - if (CORRECT_SETTER) setter.call(O, proto); - else O.__proto__ = proto; - return O; - }; -}() : undefined); - - -/***/ }), - -/***/ "d3b7": -/***/ (function(module, exports, __webpack_require__) { - -var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee"); -var redefine = __webpack_require__("6eeb"); -var toString = __webpack_require__("b041"); - -// `Object.prototype.toString` method -// https://tc39.github.io/ecma262/#sec-object.prototype.tostring -if (!TO_STRING_TAG_SUPPORT) { - redefine(Object.prototype, 'toString', toString, { unsafe: true }); -} - - -/***/ }), - -/***/ "d44e": -/***/ (function(module, exports, __webpack_require__) { - -var defineProperty = __webpack_require__("9bf2").f; -var has = __webpack_require__("5135"); -var wellKnownSymbol = __webpack_require__("b622"); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); - -module.exports = function (it, TAG, STATIC) { - if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) { - defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG }); - } -}; - - -/***/ }), - -/***/ "d817": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isFunction; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function isFunction(x) { - return typeof x === 'function'; -} -//# sourceMappingURL=isFunction.js.map - - -/***/ }), - -/***/ "d9e3": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isArrayLike; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; }); -//# sourceMappingURL=isArrayLike.js.map - - -/***/ }), - -/***/ "da84": -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(global) {var check = function (it) { - return it && it.Math == Math && it; -}; - -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -module.exports = - // eslint-disable-next-line no-undef - check(typeof globalThis == 'object' && globalThis) || - check(typeof window == 'object' && window) || - check(typeof self == 'object' && self) || - check(typeof global == 'object' && global) || - // eslint-disable-next-line no-new-func - Function('return this')(); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) - -/***/ }), - -/***/ "ddb0": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var DOMIterables = __webpack_require__("fdbc"); -var ArrayIteratorMethods = __webpack_require__("e260"); -var createNonEnumerableProperty = __webpack_require__("9112"); -var wellKnownSymbol = __webpack_require__("b622"); - -var ITERATOR = wellKnownSymbol('iterator'); -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var ArrayValues = ArrayIteratorMethods.values; - -for (var COLLECTION_NAME in DOMIterables) { - var Collection = global[COLLECTION_NAME]; - var CollectionPrototype = Collection && Collection.prototype; - if (CollectionPrototype) { - // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype[ITERATOR] !== ArrayValues) try { - createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues); - } catch (error) { - CollectionPrototype[ITERATOR] = ArrayValues; - } - if (!CollectionPrototype[TO_STRING_TAG]) { - createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME); - } - if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) { - // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { - createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); - } catch (error) { - CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; - } - } - } -} - - -/***/ }), - -/***/ "df75": -/***/ (function(module, exports, __webpack_require__) { - -var internalObjectKeys = __webpack_require__("ca84"); -var enumBugKeys = __webpack_require__("7839"); - -// `Object.keys` method -// https://tc39.github.io/ecma262/#sec-object.keys -module.exports = Object.keys || function keys(O) { - return internalObjectKeys(O, enumBugKeys); -}; - - -/***/ }), - -/***/ "e01a": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// `Symbol.prototype.description` getter -// https://tc39.github.io/ecma262/#sec-symbol.prototype.description - -var $ = __webpack_require__("23e7"); -var DESCRIPTORS = __webpack_require__("83ab"); -var global = __webpack_require__("da84"); -var has = __webpack_require__("5135"); -var isObject = __webpack_require__("861d"); -var defineProperty = __webpack_require__("9bf2").f; -var copyConstructorProperties = __webpack_require__("e893"); - -var NativeSymbol = global.Symbol; - -if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) || - // Safari 12 bug - NativeSymbol().description !== undefined -)) { - var EmptyStringDescriptionStore = {}; - // wrap Symbol constructor for correct work with undefined description - var SymbolWrapper = function Symbol() { - var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]); - var result = this instanceof SymbolWrapper - ? new NativeSymbol(description) - // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)' - : description === undefined ? NativeSymbol() : NativeSymbol(description); - if (description === '') EmptyStringDescriptionStore[result] = true; - return result; - }; - copyConstructorProperties(SymbolWrapper, NativeSymbol); - var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype; - symbolPrototype.constructor = SymbolWrapper; - - var symbolToString = symbolPrototype.toString; - var native = String(NativeSymbol('test')) == 'Symbol(test)'; - var regexp = /^Symbol\((.*)\)[^)]+$/; - defineProperty(symbolPrototype, 'description', { - configurable: true, - get: function description() { - var symbol = isObject(this) ? this.valueOf() : this; - var string = symbolToString.call(symbol); - if (has(EmptyStringDescriptionStore, symbol)) return ''; - var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1'); - return desc === '' ? undefined : desc; - } - }); - - $({ global: true, forced: true }, { - Symbol: SymbolWrapper - }); -} - - -/***/ }), - -/***/ "e163": -/***/ (function(module, exports, __webpack_require__) { - -var has = __webpack_require__("5135"); -var toObject = __webpack_require__("7b0b"); -var sharedKey = __webpack_require__("f772"); -var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177"); - -var IE_PROTO = sharedKey('IE_PROTO'); -var ObjectPrototype = Object.prototype; - -// `Object.getPrototypeOf` method -// https://tc39.github.io/ecma262/#sec-object.getprototypeof -module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) { - O = toObject(O); - if (has(O, IE_PROTO)) return O[IE_PROTO]; - if (typeof O.constructor == 'function' && O instanceof O.constructor) { - return O.constructor.prototype; - } return O instanceof Object ? ObjectPrototype : null; -}; - - -/***/ }), - -/***/ "e177": -/***/ (function(module, exports, __webpack_require__) { - -var fails = __webpack_require__("d039"); - -module.exports = !fails(function () { - function F() { /* empty */ } - F.prototype.constructor = null; - return Object.getPrototypeOf(new F()) !== F.prototype; -}); - - -/***/ }), - -/***/ "e260": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var toIndexedObject = __webpack_require__("fc6a"); -var addToUnscopables = __webpack_require__("44d2"); -var Iterators = __webpack_require__("3f8c"); -var InternalStateModule = __webpack_require__("69f3"); -var defineIterator = __webpack_require__("7dd0"); - -var ARRAY_ITERATOR = 'Array Iterator'; -var setInternalState = InternalStateModule.set; -var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR); - -// `Array.prototype.entries` method -// https://tc39.github.io/ecma262/#sec-array.prototype.entries -// `Array.prototype.keys` method -// https://tc39.github.io/ecma262/#sec-array.prototype.keys -// `Array.prototype.values` method -// https://tc39.github.io/ecma262/#sec-array.prototype.values -// `Array.prototype[@@iterator]` method -// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator -// `CreateArrayIterator` internal method -// https://tc39.github.io/ecma262/#sec-createarrayiterator -module.exports = defineIterator(Array, 'Array', function (iterated, kind) { - setInternalState(this, { - type: ARRAY_ITERATOR, - target: toIndexedObject(iterated), // target - index: 0, // next index - kind: kind // kind - }); -// `%ArrayIteratorPrototype%.next` method -// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next -}, function () { - var state = getInternalState(this); - var target = state.target; - var kind = state.kind; - var index = state.index++; - if (!target || index >= target.length) { - state.target = undefined; - return { value: undefined, done: true }; - } - if (kind == 'keys') return { value: index, done: false }; - if (kind == 'values') return { value: target[index], done: false }; - return { value: [index, target[index]], done: false }; -}, 'values'); - -// argumentsList[@@iterator] is %ArrayProto_values% -// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject -// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject -Iterators.Arguments = Iterators.Array; - -// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables('keys'); -addToUnscopables('values'); -addToUnscopables('entries'); - - -/***/ }), - -/***/ "e2cc": -/***/ (function(module, exports, __webpack_require__) { - -var redefine = __webpack_require__("6eeb"); - -module.exports = function (target, src, options) { - for (var key in src) redefine(target, key, src[key], options); - return target; -}; - - -/***/ }), - -/***/ "e538": -/***/ (function(module, exports, __webpack_require__) { - -var wellKnownSymbol = __webpack_require__("b622"); - -exports.f = wellKnownSymbol; - - -/***/ }), - -/***/ "e667": -/***/ (function(module, exports) { - -module.exports = function (exec) { - try { - return { error: false, value: exec() }; - } catch (error) { - return { error: true, value: error }; - } -}; - - -/***/ }), - -/***/ "e6cf": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__("23e7"); -var IS_PURE = __webpack_require__("c430"); -var global = __webpack_require__("da84"); -var getBuiltIn = __webpack_require__("d066"); -var NativePromise = __webpack_require__("fea9"); -var redefine = __webpack_require__("6eeb"); -var redefineAll = __webpack_require__("e2cc"); -var setToStringTag = __webpack_require__("d44e"); -var setSpecies = __webpack_require__("2626"); -var isObject = __webpack_require__("861d"); -var aFunction = __webpack_require__("1c0b"); -var anInstance = __webpack_require__("19aa"); -var classof = __webpack_require__("c6b6"); -var inspectSource = __webpack_require__("8925"); -var iterate = __webpack_require__("2266"); -var checkCorrectnessOfIteration = __webpack_require__("1c7e"); -var speciesConstructor = __webpack_require__("4840"); -var task = __webpack_require__("2cf4").set; -var microtask = __webpack_require__("b575"); -var promiseResolve = __webpack_require__("cdf9"); -var hostReportErrors = __webpack_require__("44de"); -var newPromiseCapabilityModule = __webpack_require__("f069"); -var perform = __webpack_require__("e667"); -var InternalStateModule = __webpack_require__("69f3"); -var isForced = __webpack_require__("94ca"); -var wellKnownSymbol = __webpack_require__("b622"); -var V8_VERSION = __webpack_require__("2d00"); - -var SPECIES = wellKnownSymbol('species'); -var PROMISE = 'Promise'; -var getInternalState = InternalStateModule.get; -var setInternalState = InternalStateModule.set; -var getInternalPromiseState = InternalStateModule.getterFor(PROMISE); -var PromiseConstructor = NativePromise; -var TypeError = global.TypeError; -var document = global.document; -var process = global.process; -var $fetch = getBuiltIn('fetch'); -var newPromiseCapability = newPromiseCapabilityModule.f; -var newGenericPromiseCapability = newPromiseCapability; -var IS_NODE = classof(process) == 'process'; -var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent); -var UNHANDLED_REJECTION = 'unhandledrejection'; -var REJECTION_HANDLED = 'rejectionhandled'; -var PENDING = 0; -var FULFILLED = 1; -var REJECTED = 2; -var HANDLED = 1; -var UNHANDLED = 2; -var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; - -var FORCED = isForced(PROMISE, function () { - var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor); - if (!GLOBAL_CORE_JS_PROMISE) { - // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables - // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 - // We can't detect it synchronously, so just check versions - if (V8_VERSION === 66) return true; - // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test - if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true; - } - // We need Promise#finally in the pure version for preventing prototype pollution - if (IS_PURE && !PromiseConstructor.prototype['finally']) return true; - // We can't use @@species feature detection in V8 since it causes - // deoptimization and performance degradation - // https://github.com/zloirock/core-js/issues/679 - if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false; - // Detect correctness of subclassing with @@species support - var promise = PromiseConstructor.resolve(1); - var FakePromise = function (exec) { - exec(function () { /* empty */ }, function () { /* empty */ }); - }; - var constructor = promise.constructor = {}; - constructor[SPECIES] = FakePromise; - return !(promise.then(function () { /* empty */ }) instanceof FakePromise); -}); - -var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) { - PromiseConstructor.all(iterable)['catch'](function () { /* empty */ }); -}); - -// helpers -var isThenable = function (it) { - var then; - return isObject(it) && typeof (then = it.then) == 'function' ? then : false; -}; - -var notify = function (promise, state, isReject) { - if (state.notified) return; - state.notified = true; - var chain = state.reactions; - microtask(function () { - var value = state.value; - var ok = state.state == FULFILLED; - var index = 0; - // variable length - can't use forEach - while (chain.length > index) { - var reaction = chain[index++]; - var handler = ok ? reaction.ok : reaction.fail; - var resolve = reaction.resolve; - var reject = reaction.reject; - var domain = reaction.domain; - var result, then, exited; - try { - if (handler) { - if (!ok) { - if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state); - state.rejection = HANDLED; - } - if (handler === true) result = value; - else { - if (domain) domain.enter(); - result = handler(value); // can throw - if (domain) { - domain.exit(); - exited = true; - } - } - if (result === reaction.promise) { - reject(TypeError('Promise-chain cycle')); - } else if (then = isThenable(result)) { - then.call(result, resolve, reject); - } else resolve(result); - } else reject(value); - } catch (error) { - if (domain && !exited) domain.exit(); - reject(error); - } - } - state.reactions = []; - state.notified = false; - if (isReject && !state.rejection) onUnhandled(promise, state); - }); -}; - -var dispatchEvent = function (name, promise, reason) { - var event, handler; - if (DISPATCH_EVENT) { - event = document.createEvent('Event'); - event.promise = promise; - event.reason = reason; - event.initEvent(name, false, true); - global.dispatchEvent(event); - } else event = { promise: promise, reason: reason }; - if (handler = global['on' + name]) handler(event); - else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); -}; - -var onUnhandled = function (promise, state) { - task.call(global, function () { - var value = state.value; - var IS_UNHANDLED = isUnhandled(state); - var result; - if (IS_UNHANDLED) { - result = perform(function () { - if (IS_NODE) { - process.emit('unhandledRejection', value, promise); - } else dispatchEvent(UNHANDLED_REJECTION, promise, value); - }); - // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should - state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; - if (result.error) throw result.value; - } - }); -}; - -var isUnhandled = function (state) { - return state.rejection !== HANDLED && !state.parent; -}; - -var onHandleUnhandled = function (promise, state) { - task.call(global, function () { - if (IS_NODE) { - process.emit('rejectionHandled', promise); - } else dispatchEvent(REJECTION_HANDLED, promise, state.value); - }); -}; - -var bind = function (fn, promise, state, unwrap) { - return function (value) { - fn(promise, state, value, unwrap); - }; -}; - -var internalReject = function (promise, state, value, unwrap) { - if (state.done) return; - state.done = true; - if (unwrap) state = unwrap; - state.value = value; - state.state = REJECTED; - notify(promise, state, true); -}; - -var internalResolve = function (promise, state, value, unwrap) { - if (state.done) return; - state.done = true; - if (unwrap) state = unwrap; - try { - if (promise === value) throw TypeError("Promise can't be resolved itself"); - var then = isThenable(value); - if (then) { - microtask(function () { - var wrapper = { done: false }; - try { - then.call(value, - bind(internalResolve, promise, wrapper, state), - bind(internalReject, promise, wrapper, state) - ); - } catch (error) { - internalReject(promise, wrapper, error, state); - } - }); - } else { - state.value = value; - state.state = FULFILLED; - notify(promise, state, false); - } - } catch (error) { - internalReject(promise, { done: false }, error, state); - } -}; - -// constructor polyfill -if (FORCED) { - // 25.4.3.1 Promise(executor) - PromiseConstructor = function Promise(executor) { - anInstance(this, PromiseConstructor, PROMISE); - aFunction(executor); - Internal.call(this); - var state = getInternalState(this); - try { - executor(bind(internalResolve, this, state), bind(internalReject, this, state)); - } catch (error) { - internalReject(this, state, error); - } - }; - // eslint-disable-next-line no-unused-vars - Internal = function Promise(executor) { - setInternalState(this, { - type: PROMISE, - done: false, - notified: false, - parent: false, - reactions: [], - rejection: false, - state: PENDING, - value: undefined - }); - }; - Internal.prototype = redefineAll(PromiseConstructor.prototype, { - // `Promise.prototype.then` method - // https://tc39.github.io/ecma262/#sec-promise.prototype.then - then: function then(onFulfilled, onRejected) { - var state = getInternalPromiseState(this); - var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor)); - reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; - reaction.fail = typeof onRejected == 'function' && onRejected; - reaction.domain = IS_NODE ? process.domain : undefined; - state.parent = true; - state.reactions.push(reaction); - if (state.state != PENDING) notify(this, state, false); - return reaction.promise; - }, - // `Promise.prototype.catch` method - // https://tc39.github.io/ecma262/#sec-promise.prototype.catch - 'catch': function (onRejected) { - return this.then(undefined, onRejected); - } - }); - OwnPromiseCapability = function () { - var promise = new Internal(); - var state = getInternalState(promise); - this.promise = promise; - this.resolve = bind(internalResolve, promise, state); - this.reject = bind(internalReject, promise, state); - }; - newPromiseCapabilityModule.f = newPromiseCapability = function (C) { - return C === PromiseConstructor || C === PromiseWrapper - ? new OwnPromiseCapability(C) - : newGenericPromiseCapability(C); - }; - - if (!IS_PURE && typeof NativePromise == 'function') { - nativeThen = NativePromise.prototype.then; - - // wrap native Promise#then for native async functions - redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) { - var that = this; - return new PromiseConstructor(function (resolve, reject) { - nativeThen.call(that, resolve, reject); - }).then(onFulfilled, onRejected); - // https://github.com/zloirock/core-js/issues/640 - }, { unsafe: true }); - - // wrap fetch result - if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, { - // eslint-disable-next-line no-unused-vars - fetch: function fetch(input /* , init */) { - return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments)); - } - }); - } -} - -$({ global: true, wrap: true, forced: FORCED }, { - Promise: PromiseConstructor -}); - -setToStringTag(PromiseConstructor, PROMISE, false, true); -setSpecies(PROMISE); - -PromiseWrapper = getBuiltIn(PROMISE); - -// statics -$({ target: PROMISE, stat: true, forced: FORCED }, { - // `Promise.reject` method - // https://tc39.github.io/ecma262/#sec-promise.reject - reject: function reject(r) { - var capability = newPromiseCapability(this); - capability.reject.call(undefined, r); - return capability.promise; - } -}); - -$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, { - // `Promise.resolve` method - // https://tc39.github.io/ecma262/#sec-promise.resolve - resolve: function resolve(x) { - return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x); - } -}); - -$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, { - // `Promise.all` method - // https://tc39.github.io/ecma262/#sec-promise.all - all: function all(iterable) { - var C = this; - var capability = newPromiseCapability(C); - var resolve = capability.resolve; - var reject = capability.reject; - var result = perform(function () { - var $promiseResolve = aFunction(C.resolve); - var values = []; - var counter = 0; - var remaining = 1; - iterate(iterable, function (promise) { - var index = counter++; - var alreadyCalled = false; - values.push(undefined); - remaining++; - $promiseResolve.call(C, promise).then(function (value) { - if (alreadyCalled) return; - alreadyCalled = true; - values[index] = value; - --remaining || resolve(values); - }, reject); - }); - --remaining || resolve(values); - }); - if (result.error) reject(result.value); - return capability.promise; - }, - // `Promise.race` method - // https://tc39.github.io/ecma262/#sec-promise.race - race: function race(iterable) { - var C = this; - var capability = newPromiseCapability(C); - var reject = capability.reject; - var result = perform(function () { - var $promiseResolve = aFunction(C.resolve); - iterate(iterable, function (promise) { - $promiseResolve.call(C, promise).then(capability.resolve, reject); - }); - }); - if (result.error) reject(result.value); - return capability.promise; - } -}); - - -/***/ }), - -/***/ "e893": -/***/ (function(module, exports, __webpack_require__) { - -var has = __webpack_require__("5135"); -var ownKeys = __webpack_require__("56ef"); -var getOwnPropertyDescriptorModule = __webpack_require__("06cf"); -var definePropertyModule = __webpack_require__("9bf2"); - -module.exports = function (target, source) { - var keys = ownKeys(source); - var defineProperty = definePropertyModule.f; - var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); - } -}; - - -/***/ }), - -/***/ "e8b5": -/***/ (function(module, exports, __webpack_require__) { - -var classof = __webpack_require__("c6b6"); - -// `IsArray` abstract operation -// https://tc39.github.io/ecma262/#sec-isarray -module.exports = Array.isArray || function isArray(arg) { - return classof(arg) == 'Array'; -}; - - -/***/ }), - -/***/ "e95a": -/***/ (function(module, exports, __webpack_require__) { - -var wellKnownSymbol = __webpack_require__("b622"); -var Iterators = __webpack_require__("3f8c"); - -var ITERATOR = wellKnownSymbol('iterator'); -var ArrayPrototype = Array.prototype; - -// check on default Array iterator -module.exports = function (it) { - return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); -}; - - -/***/ }), - -/***/ "e9a8": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return empty; }); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("88bc"); -/* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("0ca4"); -/** PURE_IMPORTS_START _config,_util_hostReportError PURE_IMPORTS_END */ - - -var empty = { - closed: true, - next: function (value) { }, - error: function (err) { - if (_config__WEBPACK_IMPORTED_MODULE_0__[/* config */ "a"].useDeprecatedSynchronousErrorHandling) { - throw err; - } - else { - Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_1__[/* hostReportError */ "a"])(err); - } - }, - complete: function () { } -}; -//# sourceMappingURL=Observer.js.map - - -/***/ }), - -/***/ "e9b9": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js -var Subscriber = __webpack_require__("1453"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/canReportError.js -/** PURE_IMPORTS_START _Subscriber PURE_IMPORTS_END */ - -function canReportError(observer) { - while (observer) { - var _a = observer, closed_1 = _a.closed, destination = _a.destination, isStopped = _a.isStopped; - if (closed_1 || isStopped) { - return false; - } - else if (destination && destination instanceof Subscriber["a" /* Subscriber */]) { - observer = destination; - } - else { - observer = null; - } - } - return true; -} -//# sourceMappingURL=canReportError.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js -var rxSubscriber = __webpack_require__("2ff5"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Observer.js -var Observer = __webpack_require__("e9a8"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/toSubscriber.js -/** PURE_IMPORTS_START _Subscriber,_symbol_rxSubscriber,_Observer PURE_IMPORTS_END */ - - - -function toSubscriber(nextOrObserver, error, complete) { - if (nextOrObserver) { - if (nextOrObserver instanceof Subscriber["a" /* Subscriber */]) { - return nextOrObserver; - } - if (nextOrObserver[rxSubscriber["a" /* rxSubscriber */]]) { - return nextOrObserver[rxSubscriber["a" /* rxSubscriber */]](); - } - } - if (!nextOrObserver && !error && !complete) { - return new Subscriber["a" /* Subscriber */](Observer["a" /* empty */]); - } - return new Subscriber["a" /* Subscriber */](nextOrObserver, error, complete); -} -//# sourceMappingURL=toSubscriber.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/observable.js -var observable = __webpack_require__("c539"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/noop.js -var noop = __webpack_require__("fae9"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/pipe.js -/** PURE_IMPORTS_START _noop PURE_IMPORTS_END */ - -function pipe() { - var fns = []; - for (var _i = 0; _i < arguments.length; _i++) { - fns[_i] = arguments[_i]; - } - return pipeFromArray(fns); -} -function pipeFromArray(fns) { - if (!fns) { - return noop["a" /* noop */]; - } - if (fns.length === 1) { - return fns[0]; - } - return function piped(input) { - return fns.reduce(function (prev, fn) { return fn(prev); }, input); - }; -} -//# sourceMappingURL=pipe.js.map - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/config.js -var config = __webpack_require__("88bc"); - -// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Observable.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Observable_Observable; }); -/** PURE_IMPORTS_START _util_canReportError,_util_toSubscriber,_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */ - - - - - -var Observable_Observable = /*@__PURE__*/ (function () { - function Observable(subscribe) { - this._isScalar = false; - if (subscribe) { - this._subscribe = subscribe; - } - } - Observable.prototype.lift = function (operator) { - var observable = new Observable(); - observable.source = this; - observable.operator = operator; - return observable; - }; - Observable.prototype.subscribe = function (observerOrNext, error, complete) { - var operator = this.operator; - var sink = toSubscriber(observerOrNext, error, complete); - if (operator) { - sink.add(operator.call(sink, this.source)); - } - else { - sink.add(this.source || (config["a" /* config */].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ? - this._subscribe(sink) : - this._trySubscribe(sink)); - } - if (config["a" /* config */].useDeprecatedSynchronousErrorHandling) { - if (sink.syncErrorThrowable) { - sink.syncErrorThrowable = false; - if (sink.syncErrorThrown) { - throw sink.syncErrorValue; - } - } - } - return sink; - }; - Observable.prototype._trySubscribe = function (sink) { - try { - return this._subscribe(sink); - } - catch (err) { - if (config["a" /* config */].useDeprecatedSynchronousErrorHandling) { - sink.syncErrorThrown = true; - sink.syncErrorValue = err; - } - if (canReportError(sink)) { - sink.error(err); - } - else { - console.warn(err); - } - } - }; - Observable.prototype.forEach = function (next, promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var subscription; - subscription = _this.subscribe(function (value) { - try { - next(value); - } - catch (err) { - reject(err); - if (subscription) { - subscription.unsubscribe(); - } - } - }, reject, resolve); - }); - }; - Observable.prototype._subscribe = function (subscriber) { - var source = this.source; - return source && source.subscribe(subscriber); - }; - Observable.prototype[observable["a" /* observable */]] = function () { - return this; - }; - Observable.prototype.pipe = function () { - var operations = []; - for (var _i = 0; _i < arguments.length; _i++) { - operations[_i] = arguments[_i]; - } - if (operations.length === 0) { - return this; - } - return pipeFromArray(operations)(this); - }; - Observable.prototype.toPromise = function (promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var value; - _this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); }); - }); - }; - Observable.create = function (subscribe) { - return new Observable(subscribe); - }; - return Observable; -}()); - -function getPromiseCtor(promiseCtor) { - if (!promiseCtor) { - promiseCtor = config["a" /* config */].Promise || Promise; - } - if (!promiseCtor) { - throw new Error('no Promise impl found'); - } - return promiseCtor; -} -//# sourceMappingURL=Observable.js.map - - -/***/ }), - -/***/ "ebb6": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return map; }); -/* unused harmony export MapOperator */ -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ab4"); -/* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1453"); -/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ - - -function map(project, thisArg) { - return function mapOperation(source) { - if (typeof project !== 'function') { - throw new TypeError('argument is not a function. Are you looking for `mapTo()`?'); - } - return source.lift(new MapOperator(project, thisArg)); - }; -} -var MapOperator = /*@__PURE__*/ (function () { - function MapOperator(project, thisArg) { - this.project = project; - this.thisArg = thisArg; - } - MapOperator.prototype.call = function (subscriber, source) { - return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg)); - }; - return MapOperator; -}()); - -var MapSubscriber = /*@__PURE__*/ (function (_super) { - tslib__WEBPACK_IMPORTED_MODULE_0__[/* __extends */ "a"](MapSubscriber, _super); - function MapSubscriber(destination, project, thisArg) { - var _this = _super.call(this, destination) || this; - _this.project = project; - _this.count = 0; - _this.thisArg = thisArg || _this; - return _this; - } - MapSubscriber.prototype._next = function (value) { - var result; - try { - result = this.project.call(this.thisArg, value, this.count++); - } - catch (err) { - this.destination.error(err); - return; - } - this.destination.next(result); - }; - return MapSubscriber; -}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__[/* Subscriber */ "a"])); -//# sourceMappingURL=map.js.map - - -/***/ }), - -/***/ "f04f": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b2dfcbc4-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-fixed.vue?vue&type=template&id=413e3c3e&scoped=true& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"js-clipper-fixed"},[_c('div',{staticClass:"vuejs-clipper-fixed__wrap js-wrap",style:(_vm.wrapStyle)},[_c('canvas',{staticClass:"vuejs-clipper-fixed__stem-outer",attrs:{"width":_vm.stemArea.width,"height":_vm.stemArea.height}}),_c('div',{staticClass:"vuejs-clipper-fixed__img-center"},[_c('canvas',{staticClass:"vuejs-clipper-fixed__stem-bg js-stem-bg"}),_c('div',{staticClass:"vuejs-clipper-fixed__img-scale js-img-scale",style:(_vm.scaleStyle)},[_c('div',{staticClass:"vuejs-clipper-fixed__img-translate js-img-translate",style:(_vm.translateStyle)},[_c('img',{staticClass:"vuejs-clipper-fixed__img js-img",style:(_vm.bgStyle),attrs:{"src":_vm.src,"crossorigin":_vm.crossOrigin},on:{"load":function($event){_vm.imgLoaded(); _vm.emit('load',$event)},"error":function($event){return _vm.emit('error',$event)}}})])])]),_c('div',{staticClass:"vuejs-clipper-fixed__cover"},[_c('div',{staticClass:"vuejs-clipper-fixed__area js-area",style:(_vm.areaStyle)},[_c('canvas',{staticClass:"vuejs-clipper-fixed__stem-area",style:(_vm.stemStyle),attrs:{"width":_vm.stemArea.width,"height":_vm.stemArea.height}}),(_vm.grid)?_c('div',{staticClass:"vuejs-clipper-fixed__grid"},_vm._l((4),function(index){return _c('div',{key:'gridItem'+index,staticClass:"vuejs-clipper-fixed__grid-item"})}),0):_vm._e()])])]),_c('div',{staticClass:"vuejs-clipper-fixed__placeholder",style:(_vm.eptStyle)},[_vm._t("placeholder")],2)])} -var staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/components/clipper-fixed.vue?vue&type=template&id=413e3c3e&scoped=true& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js -var es_array_concat = __webpack_require__("99af"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js -var es_number_constructor = __webpack_require__("a9e3"); - -// EXTERNAL MODULE: ./src/components/extends/clippo.js + 3 modules -var clippo = __webpack_require__("bc00"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/filter.js -var filter = __webpack_require__("5670"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/tap.js -var tap = __webpack_require__("c4cc"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/map.js -var map = __webpack_require__("ebb6"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/concatMap.js -var concatMap = __webpack_require__("3e18"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/takeUntil.js -var takeUntil = __webpack_require__("9f2d"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/startWith.js + 3 modules -var startWith = __webpack_require__("a744"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/operators/merge.js -var merge = __webpack_require__("4d82"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js + 2 modules -var Subject = __webpack_require__("2bd2"); - -// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/observable/merge.js -var observable_merge = __webpack_require__("a748"); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/clipper-fixed.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - -/* harmony default export */ var clipper_fixedvue_type_script_lang_js_ = ({ - extends: { - methods: clippo["b" /* fixedMethods */], - mixins: [clippo["d" /* rxEventListeners */], clippo["e" /* rxWheelListeners */], clippo["c" /* pluginMethods */]] - }, - subscriptions: function subscriptions() { - var _this = this; - - this.setWH$ = new Subject["a" /* Subject */](); - this.setTL$ = new Subject["a" /* Subject */](); - this.change$ = new Subject["a" /* Subject */](); - /** basic */ - - this.mousedownDrag$ = this.mousedown$.pipe(Object(filter["a" /* filter */])(this.isDragElement), Object(tap["a" /* tap */])(this.prevent), Object(map["a" /* map */])(this.dragDownPos), Object(concatMap["a" /* concatMap */])(function () { - return _this.mousemove$.pipe(Object(tap["a" /* tap */])(_this.prevent), Object(takeUntil["a" /* takeUntil */])(_this.mouseup$)); - }, function (down, move) { - return { - down: down, - move: move - }; - })); - this.touchdownDrag$ = this.touchstart$.pipe(Object(filter["a" /* filter */])(this.isDragElement), Object(tap["a" /* tap */])(this.prevent), Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 1; - }), Object(map["a" /* map */])(function (e) { - return e.touches[0]; - }), Object(map["a" /* map */])(this.dragDownPos), Object(concatMap["a" /* concatMap */])(function () { - return _this.touchmove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.touchend$), Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 1; - })); - }, function (down, move) { - return { - down: down, - move: move.touches[0] - }; - })); - this.wheelEvent$ = this.wheel$.pipe(Object(filter["a" /* filter */])(this.isDragElement), Object(tap["a" /* tap */])(this.prevent), Object(map["a" /* map */])(function (e) { - return e.deltaY; - }), Object(map["a" /* map */])(function (deltaY) { - return deltaY >= 0 ? -1 : 1; - })); - this.touchTwoFinger$ = this.touchstart$.pipe(Object(filter["a" /* filter */])(this.isDragElement), Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 2; - }), Object(tap["a" /* tap */])(this.prevent), Object(map["a" /* map */])(this.towPointsTouches), Object(map["a" /* map */])(this.setOrigin), Object(concatMap["a" /* concatMap */])(function () { - return _this.touchmove$.pipe(Object(takeUntil["a" /* takeUntil */])(_this.touchend$), Object(filter["a" /* filter */])(function (e) { - return e.touches.length === 2; - }), Object(map["a" /* map */])(_this.towPointsTouches)); - }, function (_ref, move) { - var down = _ref.down, - origin = _ref.origin; - return { - down: down, - move: move, - origin: origin - }; - }), Object(map["a" /* map */])(this.twoPointsDelta)); - /** Zoom Subject */ - - this.wheelZoom$ = new Subject["a" /* Subject */]().pipe(Object(startWith["a" /* startWith */])(1), Object(merge["a" /* merge */])(this.wheelEvent$), Object(map["a" /* map */])(this.calcWheelScaling)); - this.touchZoom$ = new Subject["a" /* Subject */]().pipe(Object(startWith["a" /* startWith */])(1), Object(merge["a" /* merge */])(this.touchTwoFinger$), Object(map["a" /* map */])(this.calcTouchScaling)); - this.zoomFromNativeEvents = Object(observable_merge["a" /* merge */])(this.wheelZoom$, this.touchZoom$).pipe(Object(map["a" /* map */])(this.handleZoomEvent)); - this.zoomSubject$ = new Subject["a" /* Subject */]().pipe(Object(merge["a" /* merge */])(this.setWH$), Object(merge["a" /* merge */])(this.zoomFromNativeEvents)); - /** Drag Subject */ - - this.dragSubject$ = new Subject["a" /* Subject */]().pipe(Object(startWith["a" /* startWith */])({ - left: 0, - top: 0 - }), Object(merge["a" /* merge */])(this.setTL$), Object(merge["a" /* merge */])(this.mousedownDrag$.pipe(Object(merge["a" /* merge */])(this.touchdownDrag$), Object(map["a" /* map */])(this.delta), Object(map["a" /* map */])(this.toPercentage)))); - this.onChange$ = new Subject["a" /* Subject */]().pipe(Object(merge["a" /* merge */])(this.zoomSubject$), Object(merge["a" /* merge */])(this.dragSubject$), Object(merge["a" /* merge */])(this.change$)); - return { - bgWH$: this.zoomSubject$, - bgTL$: this.dragSubject$ - }; - }, - props: { - src: { - type: String, - default: '' - }, - rotate: { - type: Number, - default: 0 - }, - ratio: { - type: Number, - default: 1 - }, - zoomRate: { - type: Number, - default: 0.04 - }, - minScale: { - type: Number, - default: 0.1 - }, - bgColor: { - type: String, - default: 'white' - }, - border: { - type: Number, - default: 1 - }, - borderColor: { - type: String, - default: 'white' - }, - grid: { - type: Boolean, - default: true - }, - shadow: { - type: String, - default: 'rgba(0, 0, 0, 0.4)' - }, - round: { - type: Boolean, - default: false - }, - preview: { - type: String, - default: '' - }, - crossOrigin: { - type: String, - default: undefined - }, - area: { - type: Number, - default: 50 - }, - handleZoomEvent: { - type: Function, - default: function _default(val) { - return val; - } - } - }, - data: function data() { - return { - imgRatio: NaN - }; - }, - computed: { - areaStyle: function areaStyle() { - var style = { - 'color': this.shadow, - 'border-width': "".concat(this.border, "px !important"), - 'border-color': "".concat(this.borderColor, " !important"), - 'box-shadow': "0 0 0 ".concat(this._shadow, " !important"), - 'border-radius': "".concat(this.round ? '50%' : '', " !important") - }; - this.ratio >= 1 ? style.width = "".concat(this.area, "% !important") : style.height = "".concat(this.area, "% !important"); - return style; - }, - scaleStyle: function scaleStyle() { - var width = this.bgWH$; - return { - transform: "scale(".concat(width, ") !important") - }; - }, - translateStyle: function translateStyle() { - var left = this.bgTL$.left; - var top = this.bgTL$.top; - return { - transform: "translate(".concat(left, "%,").concat(top, "%) !important") - }; - }, - bgStyle: function bgStyle() { - return { - transform: "rotate(".concat(this.rotate, "deg) !important") - }; - }, - wrapStyle: function wrapStyle() { - return { - 'background-color': "".concat(this.bgColor, " !important"), - 'display': "".concat(this.src ? 'block' : 'none', " !important") - }; - }, - stemArea: function stemArea() { - return { - width: 100, - height: 100 / this.ratio - }; - }, - eptStyle: function eptStyle() { - return { - display: "".concat(this.src ? 'none' : 'block', " !important") - }; - }, - stemStyle: function stemStyle() { - var style = {}; - this.ratio >= 1 ? style.width = '100% !important' : style.height = '100% !important'; - return style; - }, - _shadow: function _shadow() { - return "".concat(this.imgRatio >= 1 ? 100 : 100 / this.imgRatio, "vw"); - } - }, - watch: { - ratio: function ratio() { - this.resetData(); - this.change$.next(0); - }, - bgColor: function bgColor() { - this.callPreview('setData', { - bgColor: this.bgColor - }); - }, - bgStyle: function bgStyle() { - this.change$.next(0); - }, - border: function border() { - this.change$.next(0); - } - }, - mounted: function mounted() { - var _this2 = this; - - this.imgEl = this.$el.querySelector('.js-clipper-fixed .js-img'); - this.wrapEl = this.$el.querySelector('.js-clipper-fixed .js-wrap'); - this.areaEl = this.$el.querySelector('.js-clipper-fixed .js-area'); - this.scaleEl = this.$el.querySelector('.js-clipper-fixed .js-img-scale'); - this.translateEl = this.$el.querySelector('.js-clipper-fixed .js-img-translate'); - this.stemEl = this.$el.querySelector('.js-clipper-fixed .js-stem-bg'); - this.canvasEl = document.createElement('CANVAS'); - this.$subscribeTo(this.onChange$, function () { - _this2.$nextTick(function () { - var result = _this2.getDrawPos().pos; - - var rotate = _this2.rotate; - if (_this2.invalidDrawPos(result)) return; - - _this2.callPreview('locateImage', result, rotate); - }); - }); - }, - methods: { - imgLoaded: function imgLoaded() { - this.imgRatio = this.imgEl.naturalWidth / this.imgEl.naturalHeight; - this.stemEl.width = this.imgEl.naturalWidth; - this.stemEl.height = this.imgEl.naturalHeight; - this.resetData(); - this.callPreview('setData', { - src: this.src, - bgColor: this.bgColor - }); - }, - resetData: function resetData() { - this.setTL$.next({ - left: 0, - top: 0 - }); - var scale = this.ratio > this.imgRatio ? this.imgRatio / this.ratio : 1; - this.setWH$.next(Math.max(scale, this.minScale)); - } - } -}); -// CONCATENATED MODULE: ./src/components/clipper-fixed.vue?vue&type=script&lang=js& - /* harmony default export */ var components_clipper_fixedvue_type_script_lang_js_ = (clipper_fixedvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/components/clipper-fixed.vue?vue&type=style&index=0&id=413e3c3e&lang=scss&scoped=true& -var clipper_fixedvue_type_style_index_0_id_413e3c3e_lang_scss_scoped_true_ = __webpack_require__("44ca"); - -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__("2877"); - -// CONCATENATED MODULE: ./src/components/clipper-fixed.vue - - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_clipper_fixedvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - "413e3c3e", - null - -) - -/* harmony default export */ var clipper_fixed = __webpack_exports__["a"] = (component.exports); - -/***/ }), - -/***/ "f069": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var aFunction = __webpack_require__("1c0b"); - -var PromiseCapability = function (C) { - var resolve, reject; - this.promise = new C(function ($$resolve, $$reject) { - if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); - resolve = $$resolve; - reject = $$reject; - }); - this.resolve = aFunction(resolve); - this.reject = aFunction(reject); -}; - -// 25.4.1.5 NewPromiseCapability(C) -module.exports.f = function (C) { - return new PromiseCapability(C); -}; - - -/***/ }), - -/***/ "f5df": -/***/ (function(module, exports, __webpack_require__) { - -var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee"); -var classofRaw = __webpack_require__("c6b6"); -var wellKnownSymbol = __webpack_require__("b622"); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -// ES3 wrong here -var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; - -// fallback for IE11 Script Access Denied error -var tryGet = function (it, key) { - try { - return it[key]; - } catch (error) { /* empty */ } -}; - -// getting tag from ES6+ `Object.prototype.toString` -module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { - var O, tag, result; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag - // builtinTag case - : CORRECT_ARGUMENTS ? classofRaw(O) - // ES3 arguments fallback - : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result; -}; - - -/***/ }), - -/***/ "f6fd": -/***/ (function(module, exports) { - -// document.currentScript polyfill by Adam Miller - -// MIT license - -(function(document){ - var currentScript = "currentScript", - scripts = document.getElementsByTagName('script'); // Live NodeList collection - - // If browser needs currentScript polyfill, add get currentScript() to the document object - if (!(currentScript in document)) { - Object.defineProperty(document, currentScript, { - get: function(){ - - // IE 6-10 supports script readyState - // IE 10+ support stack trace - try { throw new Error(); } - catch (err) { - - // Find the second match for the "at" string to get file src url from stack. - // Specifically works with the format of stack traces in IE. - var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; - - // For all scripts on the page, if src matches or if ready state is interactive, return the script tag - for(i in scripts){ - if(scripts[i].src == res || scripts[i].readyState == "interactive"){ - return scripts[i]; - } - } - - // If no match, return null - return null; - } - } - }); - } -})(document); - - -/***/ }), - -/***/ "f772": -/***/ (function(module, exports, __webpack_require__) { - -var shared = __webpack_require__("5692"); -var uid = __webpack_require__("90e3"); - -var keys = shared('keys'); - -module.exports = function (key) { - return keys[key] || (keys[key] = uid(key)); -}; - - -/***/ }), - -/***/ "fad2": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return subscribeToArray; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -var subscribeToArray = function (array) { - return function (subscriber) { - for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); - }; -}; -//# sourceMappingURL=subscribeToArray.js.map - - -/***/ }), - -/***/ "fae9": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return noop; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function noop() { } -//# sourceMappingURL=noop.js.map - - -/***/ }), - -/***/ "fb15": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js -// This file is imported into lib/wc client bundles. - -if (typeof window !== 'undefined') { - if (true) { - __webpack_require__("f6fd") - } - - var i - if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { - __webpack_require__.p = i[1] // eslint-disable-line - } -} - -// Indicate to webpack that this file can be concatenated -/* harmony default export */ var setPublicPath = (null); - -// EXTERNAL MODULE: ./src/clipper.js -var clipper = __webpack_require__("6888"); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js -/* concated harmony reexport clipperBasic */__webpack_require__.d(__webpack_exports__, "clipperBasic", function() { return clipper["a" /* clipperBasic */]; }); -/* concated harmony reexport clipperFixed */__webpack_require__.d(__webpack_exports__, "clipperFixed", function() { return clipper["b" /* clipperFixed */]; }); -/* concated harmony reexport clipperPreview */__webpack_require__.d(__webpack_exports__, "clipperPreview", function() { return clipper["c" /* clipperPreview */]; }); -/* concated harmony reexport clipperRange */__webpack_require__.d(__webpack_exports__, "clipperRange", function() { return clipper["d" /* clipperRange */]; }); -/* concated harmony reexport clipperUpload */__webpack_require__.d(__webpack_exports__, "clipperUpload", function() { return clipper["e" /* clipperUpload */]; }); - - -/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (clipper["f" /* default */]); - - - -/***/ }), - -/***/ "fc6a": -/***/ (function(module, exports, __webpack_require__) { - -// toObject with fallback for non-array-like ES3 strings -var IndexedObject = __webpack_require__("44ad"); -var requireObjectCoercible = __webpack_require__("1d80"); - -module.exports = function (it) { - return IndexedObject(requireObjectCoercible(it)); -}; - - -/***/ }), - -/***/ "fd66": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isPromise; }); -/** PURE_IMPORTS_START PURE_IMPORTS_END */ -function isPromise(value) { - return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function'; -} -//# sourceMappingURL=isPromise.js.map - - -/***/ }), - -/***/ "fdbc": -/***/ (function(module, exports) { - -// iterable DOM collections -// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods -module.exports = { - CSSRuleList: 0, - CSSStyleDeclaration: 0, - CSSValueList: 0, - ClientRectList: 0, - DOMRectList: 0, - DOMStringList: 0, - DOMTokenList: 1, - DataTransferItemList: 0, - FileList: 0, - HTMLAllCollection: 0, - HTMLCollection: 0, - HTMLFormElement: 0, - HTMLSelectElement: 0, - MediaList: 0, - MimeTypeArray: 0, - NamedNodeMap: 0, - NodeList: 1, - PaintRequestList: 0, - Plugin: 0, - PluginArray: 0, - SVGLengthList: 0, - SVGNumberList: 0, - SVGPathSegList: 0, - SVGPointList: 0, - SVGStringList: 0, - SVGTransformList: 0, - SourceBufferList: 0, - StyleSheetList: 0, - TextTrackCueList: 0, - TextTrackList: 0, - TouchList: 0 -}; - - -/***/ }), - -/***/ "fdbf": -/***/ (function(module, exports, __webpack_require__) { - -var NATIVE_SYMBOL = __webpack_require__("4930"); - -module.exports = NATIVE_SYMBOL - // eslint-disable-next-line no-undef - && !Symbol.sham - // eslint-disable-next-line no-undef - && typeof Symbol.iterator == 'symbol'; - - -/***/ }), - -/***/ "fea9": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); - -module.exports = global.Promise; - - -/***/ }) - -/******/ }); -}); -//# sourceMappingURL=vuejs-clipper.umd.js.map \ No newline at end of file diff --git a/dist/vuejs-clipper.umd.min.js b/dist/vuejs-clipper.umd.min.js deleted file mode 100644 index 7cd6ef4..0000000 --- a/dist/vuejs-clipper.umd.min.js +++ /dev/null @@ -1,17 +0,0 @@ -(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vuejs-clipper"]=e():t["vuejs-clipper"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?c(t):i(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),c=n("c04e"),s=n("5135"),u=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),u)try{return f(t,e)}catch(n){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},"0bd0":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"preview"},[n("div",{staticClass:"wrap",style:t.wrapStyle},[n("canvas",{staticClass:"shim",attrs:{width:t.outerWidth,height:t.outerHeight}}),n("div",{staticClass:"img-pos",style:t.styleObj},[n("div",{staticClass:"img-rotate",style:t.rotateStyle},[n("img",{staticClass:"img",attrs:{src:t.src},on:{load:t.imgLoaded}})])])]),n("div",{staticClass:"placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("b0c0"),n("0f53")),a={props:{name:{type:String,required:!0}},data:function(){return{src:"",imgEl:null,imgWidth:1,imgHeight:1,outerWidth:1,outerHeight:1,bgColor:"white",pos:{},rotate:0}},computed:{styleObj:function(){var t=this.pos.sx/this.imgWidth,e=this.pos.sy/this.imgHeight,n=this.imgWidth/this.pos.swidth;return{transform:"scale(".concat(n,") translate(").concat(-100*t,"% ,").concat(-100*e,"%)")}},rotateStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg)")}},wrapStyle:function(){var t=this.src?"block":"none";return{backgroundColor:this.bgColor,display:t}},eptStyle:function(){return{display:this.src?"none":"block"}}},mounted:function(){this.imgEl=this.$el.querySelector(".img"),this.initListener()},methods:{initListener:function(){var t=this.$parent,e=o["a"].parentPropName;t[e]||(t[e]={}),t[e][this.name]||(t[e][this.name]=[]);var n=t[e][this.name];n.push(this)},setData:function(t){for(var e in t)this[e]=t[e]},imgLoaded:function(){this.imgWidth=this.imgEl.naturalWidth,this.imgHeight=this.imgEl.naturalHeight},locateImage:function(t,e){this.rotate=e,this.outerWidth=t.swidth,this.outerHeight=t.sheight,this.pos=t}}},c=a,s=(n("75eb"),n("2877")),u=Object(s["a"])(c,r,i,!1,null,"6f79f498",null);e["a"]=u.exports},"0ca4":function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0f53":function(t,e,n){"use strict";var r={parentPropName:"_imgPreviewLists"};e["a"]=r},"127f":function(t,e,n){"use strict";function r(){return"function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},1453:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("9ab4"),i=n("d817"),o=n("e9a8"),a=n("a6e8"),c=n("2ff5"),s=n("88bc"),u=n("0ca4"),f=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o["a"];break;case 1:if(!n){a.destination=o["a"];break}if("object"===typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,i);break}return a}return r["a"](e,t),e.prototype[c["a"]]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a["a"]),l=function(t){function e(e,n,r,a){var c,s=t.call(this)||this;s._parentSubscriber=e;var u=s;return Object(i["a"])(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==o["a"]&&(u=Object.create(n),Object(i["a"])(u.unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=c,s._error=r,s._complete=a,s}return r["a"](e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s["a"].useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s["a"].useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u["a"])(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u["a"])(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s["a"].useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s["a"].useDeprecatedSynchronousErrorHandling)throw n;Object(u["a"])(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s["a"].useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return s["a"].useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(u["a"])(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var c in i){var s=r[c],u=s&&s.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(f){u.forEach=o}}},1716:function(t,e,n){"use strict";var r=n("fad2"),i=n("0ca4"),o=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,i["a"]),e}},a=n("127f"),c=function(t){return function(e){var n=t[a["a"]]();do{var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}while(1);return"function"===typeof n.return&&e.add((function(){n.return&&n.return()})),e}},s=n("c539"),u=function(t){return function(e){var n=t[s["a"]]();if("function"!==typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},f=n("d9e3"),l=n("fd66"),h=n("31c4");n.d(e,"a",(function(){return p}));var p=function(t){if(t&&"function"===typeof t[s["a"]])return u(t);if(Object(f["a"])(t))return Object(r["a"])(t);if(Object(l["a"])(t))return o(t);if(t&&"function"===typeof t[a["a"]])return c(t);var e=Object(h["a"])(t)?"an invalid object":"'"+t+"'",n="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),c=o("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){o=!0}};c[i]=function(){return this},Array.from(c,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(s){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"208d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{click:t.triggerInput}},[t._t("default"),n("img",{staticClass:"stem",staticStyle:{display:"none"},attrs:{src:t.DomString}}),n("input",t._b({staticClass:"upload",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:function(e){return t.upload(e)},click:function(e){return t.clear(e)}}},"input",t.$attrs,!1))],2)},i=[],o=(n("e260"),n("d3b7"),n("e6cf"),n("3ca3"),n("2ca0"),n("ddb0"),n("2b3d"),n("6f45")),a=n.n(o),c={props:{exif:{type:Boolean,default:!0},value:{type:String,default:""},check:{type:Boolean,default:!0}},data:function(){return{uploadEl:null,file:null,DomString:""}},mounted:function(){this.uploadEl=this.$el.querySelector(".upload")},methods:{upload:function(t){var e=this;1===t.target.files.length&&(this.file=t.target.files[0],this.check&&!this.file.type.startsWith("image/")||(this.DomString&&/^blob:/.test(this.DomString)&&window.URL.revokeObjectURL(this.DomString),this.DomString=window.URL.createObjectURL(this.file),this.checkEXIF().then((function(){e.$emit("input",e.DomString)}))))},checkEXIF:function(){var t=this;return new Promise((function(e,n){if(!t.exif)return n(new Error);e()})).then((function(){return t.getEXIF()})).then((function(e){return t.getImageRect().then((function(t){var n=t.width,r=t.height;return Promise.resolve({width:n,height:r,orientation:e})})).catch((function(){return Promise.reject(new Error)}))})).then(this.tranformCanvas).catch((function(){return Promise.resolve()}))},getEXIF:function(){var t=this;return new Promise((function(e,n){a.a.getData(t.file,(function(){var t=this.exifdata.Orientation;void 0!==t&&1!==t||n(new Error),e(t)}))}))},getImageRect:function(){var t=this;return new Promise((function(e,n){var r=t.$el.querySelector(".stem");if(r.complete)return e({width:r.naturalWidth,height:r.naturalHeight});r.onload=function(){e({width:this.naturalWidth,height:this.naturalHeight})},r.onerror=function(){n(new Error("img on load error"))}}))},tranformCanvas:function(t){var e=t.width,n=t.height,r=t.orientation,i=document.createElement("canvas"),o=i.getContext("2d");switch(r>4&&r<9?(i.width=n,i.height=e):(i.width=e,i.height=n),r){case 2:o.transform(-1,0,0,1,e,0);break;case 3:o.transform(-1,0,0,-1,e,n);break;case 4:o.transform(1,0,0,-1,0,n);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,n,0);break;case 7:o.transform(0,-1,-1,0,n,e);break;case 8:o.transform(0,-1,1,0,0,e);break;default:break}o.drawImage(this.$el.querySelector(".stem"),0,0),this.DomString=i.toDataURL(this.file.type)},clear:function(t){t.target.value=null},triggerInput:function(){this.uploadEl&&this.uploadEl.click()}}},s=c,u=n("2877"),f=Object(u["a"])(s,r,i,!1,null,null,null);e["a"]=f.exports},2144:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("e9b9"),i=n("fad2"),o=n("245f");function a(t,e){return e?Object(o["a"])(t,e):new r["a"](Object(i["a"])(t))}},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),c=n("35a1"),s=n("9bdd"),u=function(t,e){this.stopped=t,this.result=e},f=t.exports=function(t,e,n,f,l){var h,p,d,v,b,g,m,y=a(e,n,f?2:1);if(l)h=t;else{if(p=c(t),"function"!=typeof p)throw TypeError("Target is not iterable");if(i(p)){for(d=0,v=o(t.length);v>d;d++)if(b=f?y(r(m=t[d])[0],m[1]):y(t[d]),b&&b instanceof u)return b;return new u(!1)}h=p.call(t)}g=h.next;while(!(m=g.call(h)).done)if(b=s(h,y,m.value,f),"object"==typeof b&&b&&b instanceof u)return b;return new u(!1)};f.stop=function(t){return new u(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),c=n("ce4e"),s=n("e893"),u=n("94ca");t.exports=function(t,e){var n,f,l,h,p,d,v=t.target,b=t.global,g=t.stat;if(f=b?r:g?r[v]||c(v,{}):(r[v]||{}).prototype,f)for(l in e){if(p=e[l],t.noTargetGet?(d=i(f,l),h=d&&d.value):h=f[l],n=u(b?l:v+(g?".":"#")+l,t.forced),!n&&void 0!==h){if(typeof p===typeof h)continue;s(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(f,l,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"245f":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("e9b9"),i=n("a6e8");function o(t,e){return new r["a"]((function(n){var r=new i["a"],o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),c=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):i&&(s=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var f=u.render;u.render=function(t,e){return s.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"2b3d":function(t,e,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),c=n("da84"),s=n("37e8"),u=n("6eeb"),f=n("19aa"),l=n("5135"),h=n("60da"),p=n("4df4"),d=n("6547").codeAt,v=n("5fb2"),b=n("d44e"),g=n("9861"),m=n("69f3"),y=c.URL,w=g.URLSearchParams,x=g.getState,S=m.set,j=m.getterFor("URL"),O=Math.floor,E=Math.pow,P="Invalid authority",_="Invalid scheme",C="Invalid host",T="Invalid port",$=/[A-Za-z]/,L=/[\d+\-.A-Za-z]/,I=/\d/,R=/^(0x|0X)/,k=/^[0-7]+$/,A=/^\d+$/,D=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,N=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\u0009\u000A\u000D]/g,Y=function(t,e){var n,r,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return C;if(n=X(e.slice(1,-1)),!n)return C;t.host=n}else if(K(t)){if(e=v(e),F.test(e))return C;if(n=W(e),null===n)return C;t.host=n}else{if(N.test(e))return C;for(n="",r=p(e),i=0;i4)return t;for(n=[],r=0;r1&&"0"==i.charAt(0)&&(o=R.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?A:8==o?k:D).test(i))return t;a=parseInt(i,o)}n.push(a)}for(r=0;r=E(256,5-e))return null}else if(a>255)return null;for(c=n.pop(),r=0;r6)return;r=0;while(h()){if(i=null,r>0){if(!("."==h()&&r<4))return;l++}if(!I.test(h()))return;while(I.test(h())){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}s[u]=256*s[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;s[u++]=e}else{if(null!==f)return;l++,u++,f=u}}if(null!==f){a=u-f,u=7;while(0!=u&&a>0)c=s[u],s[u--]=s[f+a-1],s[f+--a]=c}else if(8!=u)return;return s},B=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e},H=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=O(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=B(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},G={},V=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),q=h({},V,{"#":1,"?":1,"{":1,"}":1}),z=h({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(t,e){var n=d(t,0);return n>32&&n<127&&!l(e,t)?t:encodeURIComponent(t)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return l(J,t.scheme)},Q=function(t){return""!=t.username||""!=t.password},tt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},et=function(t,e){var n;return 2==t.length&&$.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},nt=function(t){var e;return t.length>1&&et(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},rt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&et(e[0],!0)||e.pop()},it=function(t){return"."===t||"%2e"===t.toLowerCase()},ot=function(t){return t=t.toLowerCase(),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},at={},ct={},st={},ut={},ft={},lt={},ht={},pt={},dt={},vt={},bt={},gt={},mt={},yt={},wt={},xt={},St={},jt={},Ot={},Et={},Pt={},_t=function(t,e,n,i){var o,a,c,s,u=n||at,f=0,h="",d=!1,v=!1,b=!1;n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(U,"")),e=e.replace(M,""),o=p(e);while(f<=o.length){switch(a=o[f],u){case at:if(!a||!$.test(a)){if(n)return _;u=st;continue}h+=a.toLowerCase(),u=ct;break;case ct:if(a&&(L.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return _;h="",u=st,f=0;continue}if(n&&(K(t)!=l(J,h)||"file"==h&&(Q(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=h,n)return void(K(t)&&J[t.scheme]==t.port&&(t.port=null));h="","file"==t.scheme?u=yt:K(t)&&i&&i.scheme==t.scheme?u=ut:K(t)?u=pt:"/"==o[f+1]?(u=ft,f++):(t.cannotBeABaseURL=!0,t.path.push(""),u=Ot)}break;case st:if(!i||i.cannotBeABaseURL&&"#"!=a)return _;if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,u=Pt;break}u="file"==i.scheme?yt:lt;continue;case ut:if("/"!=a||"/"!=o[f+1]){u=lt;continue}u=dt,f++;break;case ft:if("/"==a){u=vt;break}u=jt;continue;case lt:if(t.scheme=i.scheme,a==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&K(t))u=ht;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",u=Et;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),u=jt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=Pt}break;case ht:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,u=jt;continue}u=vt}else u=dt;break;case pt:if(u=dt,"/"!=a||"/"!=h.charAt(f+1))continue;f++;break;case dt:if("/"!=a&&"\\"!=a){u=vt;continue}break;case vt:if("@"==a){d&&(h="%40"+h),d=!0,c=p(h);for(var g=0;g65535)return T;t.port=K(t)&&w===J[t.scheme]?null:w,h=""}if(n)return;u=St;continue}return T}h+=a;break;case yt:if(t.scheme="file","/"==a||"\\"==a)u=wt;else{if(!i||"file"!=i.scheme){u=jt;continue}if(a==r)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",u=Et;else{if("#"!=a){nt(o.slice(f).join(""))||(t.host=i.host,t.path=i.path.slice(),rt(t)),u=jt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=Pt}}break;case wt:if("/"==a||"\\"==a){u=xt;break}i&&"file"==i.scheme&&!nt(o.slice(f).join(""))&&(et(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),u=jt;continue;case xt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&et(h))u=jt;else if(""==h){if(t.host="",n)return;u=St}else{if(s=Y(t,h),s)return s;if("localhost"==t.host&&(t.host=""),n)return;h="",u=St}continue}h+=a;break;case St:if(K(t)){if(u=jt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=jt,"/"!=a))continue}else t.fragment="",u=Pt;else t.query="",u=Et;break;case jt:if(a==r||"/"==a||"\\"==a&&K(t)||!n&&("?"==a||"#"==a)){if(ot(h)?(rt(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):it(h)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&et(h)&&(t.host&&(t.host=""),h=h.charAt(0)+":"),t.path.push(h)),h="","file"==t.scheme&&(a==r||"?"==a||"#"==a))while(t.path.length>1&&""===t.path[0])t.path.shift();"?"==a?(t.query="",u=Et):"#"==a&&(t.fragment="",u=Pt)}else h+=Z(a,q);break;case Ot:"?"==a?(t.query="",u=Et):"#"==a?(t.fragment="",u=Pt):a!=r&&(t.path[0]+=Z(a,G));break;case Et:n||"#"!=a?a!=r&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":Z(a,G)):(t.fragment="",u=Pt);break;case Pt:a!=r&&(t.fragment+=Z(a,V));break}f++}},Ct=function(t){var e,n,r=f(this,Ct,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),c=S(r,{type:"URL"});if(void 0!==i)if(i instanceof Ct)e=j(i);else if(n=_t(e={},String(i)),n)throw TypeError(n);if(n=_t(c,a,null,e),n)throw TypeError(n);var s=c.searchParams=new w,u=x(s);u.updateSearchParams(c.query),u.updateURL=function(){c.query=String(s)||null},o||(r.href=$t.call(r),r.origin=Lt.call(r),r.protocol=It.call(r),r.username=Rt.call(r),r.password=kt.call(r),r.host=At.call(r),r.hostname=Dt.call(r),r.port=Ft.call(r),r.pathname=Nt.call(r),r.search=Ut.call(r),r.searchParams=Mt.call(r),r.hash=Yt.call(r))},Tt=Ct.prototype,$t=function(){var t=j(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,c=t.query,s=t.fragment,u=e+":";return null!==i?(u+="//",Q(t)&&(u+=n+(r?":"+r:"")+"@"),u+=H(i),null!==o&&(u+=":"+o)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(u+="?"+c),null!==s&&(u+="#"+s),u},Lt=function(){var t=j(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&K(t)?e+"://"+H(t.host)+(null!==n?":"+n:""):"null"},It=function(){return j(this).scheme+":"},Rt=function(){return j(this).username},kt=function(){return j(this).password},At=function(){var t=j(this),e=t.host,n=t.port;return null===e?"":null===n?H(e):H(e)+":"+n},Dt=function(){var t=j(this).host;return null===t?"":H(t)},Ft=function(){var t=j(this).port;return null===t?"":String(t)},Nt=function(){var t=j(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ut=function(){var t=j(this).query;return t?"?"+t:""},Mt=function(){return j(this).searchParams},Yt=function(){var t=j(this).fragment;return t?"#"+t:""},Wt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&s(Tt,{href:Wt($t,(function(t){var e=j(this),n=String(t),r=_t(e,n);if(r)throw TypeError(r);x(e.searchParams).updateSearchParams(e.query)})),origin:Wt(Lt),protocol:Wt(It,(function(t){var e=j(this);_t(e,String(t)+":",at)})),username:Wt(Rt,(function(t){var e=j(this),n=p(String(t));if(!tt(e)){e.username="";for(var r=0;r1?arguments[1]:void 0,e.length)),r=String(t);return f?f.call(e,r,n):e.slice(n,n+r.length)===r}})},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),c=n("d039"),s=n("c6b6"),u=n("0366"),f=n("1be4"),l=n("cc12"),h=n("1cdc"),p=a.location,d=a.setImmediate,v=a.clearImmediate,b=a.process,g=a.MessageChannel,m=a.Dispatch,y=0,w={},x="onreadystatechange",S=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},j=function(t){return function(){S(t)}},O=function(t){S(t.data)},E=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};d&&v||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return w[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(y),y},v=function(t){delete w[t]},"process"==s(b)?r=function(t){b.nextTick(j(t))}:m&&m.now?r=function(t){m.now(j(t))}:g&&!h?(i=new g,o=i.port2,i.port1.onmessage=O,r=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(E)?r=x in l("script")?function(t){f.appendChild(l("script"))[x]=function(){f.removeChild(this),S(t)}}:function(t){setTimeout(j(t),0)}:(r=E,a.addEventListener("message",O,!1))),t.exports={set:d,clear:v}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),c=o.process,s=c&&c.versions,u=s&&s.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2ff5":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},3060:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r["a"](e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i["a"])},"31c4":function(t,e,n){"use strict";function r(t){return null!==t&&"object"===typeof t}n.d(e,"a",(function(){return r}))},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"377c":function(t,e,n){"use strict";var r=n("808e"),i=n.n(r);i.a},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),c=r.length,s=0;while(c>s)i.f(t,n=r[s++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",c=i.set,s=i.getterFor(a);o(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3e18":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a6c5");function i(t,e){return Object(r["a"])(t,e,1)}},"3f8c":function(t,e){t.exports={}},4160:function(t,e,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"41d5":function(t,e,n){},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44ca":function(t,e,n){"use strict";var r=n("5fb3"),i=n.n(r);i.a},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),c=Array.prototype;void 0==c[a]&&o.f(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4cc2":function(t,e,n){"use strict";var r=n("95b0"),i=n.n(r);i.a},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var c,s=r(e),u=i(s.length),f=o(a,u);if(t&&n!=n){while(u>f)if(c=s[f++],c!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d82":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a748");function i(){for(var t=[],e=0;e1?arguments[1]:void 0,m=void 0!==g,y=u(d),w=0;if(m&&(g=r(g,b>2?arguments[2]:void 0,2)),void 0==y||v==Array&&a(y))for(e=c(d.length),n=new v(e);e>w;w++)p=m?g(d[w],w):d[w],s(n,w,p);else for(l=y.call(d),h=l.next,n=new v;!(f=h.call(l)).done;w++)p=m?o(l,g,[f.value,w],!0):f.value,s(n,w,p);return n.length=w,n}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5670:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453");function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r["a"](e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i["a"])},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e26":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"clipper-range"},[n("div",{directives:[{name:"stream",rawName:"v-stream:mousedown",value:t.mousedown$,expression:"mousedown$",arg:"mousedown"},{name:"stream",rawName:"v-stream:touchstart",value:t.touchstart$,expression:"touchstart$",arg:"touchstart"}],staticClass:"wrap"},[n("div",{staticClass:"stick"}),n("div",{staticClass:"bar",style:t.barStyle})])])},i=[],o=(n("a9e3"),n("ebb6")),a=n("3e18"),c=n("9f2d"),s=n("4d82"),u=n("a744"),f=n("2bd2"),l=n("6e77"),h={domStreams:["mousedown$","touchstart$"],subscriptions:function(){var t=this;return this.init$=new f["a"],this.mouseup$=Object(l["a"])(window,"mouseup"),this.mousemove$=Object(l["a"])(window,"mousemove"),this.touchmove$=Object(l["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(l["a"])(window,"touchend",{passive:!1}),this.mouseEvent$=this.mousedown$.pipe(Object(o["a"])((function(t){return t.event.preventDefault(),t.event})),Object(a["a"])((function(){return t.mousemove$.pipe(Object(c["a"])(t.mouseup$),Object(o["a"])((function(t){return t.clientX})))})),Object(s["a"])(this.mousedown$.pipe(Object(o["a"])((function(t){return t.event.clientX}))))),this.touchEvent$=this.touchstart$.pipe(Object(o["a"])((function(t){return t.event.preventDefault(),t.event})),Object(a["a"])((function(){return t.touchmove$.pipe(Object(c["a"])(t.touchend$),Object(o["a"])((function(t){return t.touches[0].clientX})))})),Object(s["a"])(this.touchstart$.pipe(Object(o["a"])((function(t){return t.event.touches[0].clientX}))))),this.dragSubject$=(new f["a"]).pipe(Object(s["a"])(this.mouseEvent$),Object(s["a"])(this.touchEvent$),Object(o["a"])(this.getLeftPercent),Object(u["a"])(0),Object(s["a"])(this.init$)),{x$:this.dragSubject$}},props:{value:{type:Number,default:0},max:{type:Number,default:10},min:{type:Number,default:0}},computed:{barStyle:function(){return{left:"".concat(100*this.x$,"%")}},val:function(){var t=this.max-this.min,e=this.getPos(),n=e.stickPos,r=e.maxLeft;return this.x$*n.width/r*t+this.min}},watch:{value:function(){this.initVal()}},mounted:function(){var t=this;this.initVal(),this.$subscribeTo(this.dragSubject$,(function(){t.$emit("input",t.val)}))},methods:{getPos:function(){var t=this.$el.querySelector(".stick").getBoundingClientRect(),e=this.$el.querySelector(".bar").getBoundingClientRect();return{maxLeft:t.width-e.width,stickPos:t,barPos:e}},getLeftPercent:function(t){var e=this.$el.querySelector(".stick").getBoundingClientRect(),n=this.$el.querySelector(".bar").getBoundingClientRect(),r=e.width-n.width,i=Math.max(Math.min(t-e.left,r),0);return i/e.width},initVal:function(){var t=this.max-this.min,e=(this.value-this.min)/t,n=this.getPos();this.init$.next(e*n.maxLeft/n.stickPos.width)}}},p=h,d=(n("4cc2"),n("2877")),v=Object(d["a"])(p,r,i,!1,null,"27132352",null);e["a"]=v.exports},"5fb2":function(t,e,n){"use strict";var r=2147483647,i=36,o=1,a=26,c=38,s=700,u=72,f=128,l="-",h=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,d="Overflow: input needs wider integers to process",v=i-o,b=Math.floor,g=String.fromCharCode,m=function(t){var e=[],n=0,r=t.length;while(n=55296&&i<=56319&&n>1,t+=b(t/e);t>v*a>>1;r+=i)t=b(t/v);return b(r+(v+1)*t/(t+c))},x=function(t){var e=[];t=m(t);var n,c,s=t.length,h=f,p=0,v=u;for(n=0;n=h&&cb((r-p)/O))throw RangeError(d);for(p+=(j-h)*O,h=j,n=0;nr)throw RangeError(d);if(c==h){for(var E=p,P=i;;P+=i){var _=P<=v?o:P>=v+a?a:P-v;if(E<_)break;var C=E-_,T=i-_;e.push(g(y(_+C%T))),E=b(C/T)}e.push(g(y(E))),v=w(p,O,S==x),p=0,++S}}++p,++h}return e.join("")};t.exports=function(t){var e,n,r=[],i=t.toLowerCase().replace(p,".").split(".");for(e=0;ef){var p,d=u(arguments[f++]),v=l?o(d).concat(l(d)):o(d),b=v.length,g=0;while(b>g)p=v[g++],r&&!h.call(d,p)||(n[p]=d[p])}return n}:f},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,a,c=String(i(e)),s=r(n),u=c.length;return s<0||s>=u?t?"":void 0:(o=c.charCodeAt(s),o<55296||o>56319||s+1===u||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):o:t?c.slice(s,s+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"667f":function(t,e,n){"use strict";var r=n("a6c5");function i(t){return t}function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r["a"])(i,t)}n.d(e,"a",(function(){return o}))},6888:function(t,e,n){"use strict";(function(t){n("b0c0");var r=n("0bd0");n.d(e,"c",(function(){return r["a"]}));var i=n("5e26");n.d(e,"d",(function(){return i["a"]}));var o=n("7650");n.d(e,"a",(function(){return o["a"]}));var a=n("f04f");n.d(e,"b",(function(){return a["a"]}));var c=n("208d");n.d(e,"e",(function(){return c["a"]}));var s=n("0f53"),u=function(t,e){var n={clipperBasic:{component:o["a"],name:"clipper-basic"},clipperPreview:{component:r["a"],name:"clipper-preview"},clipperRange:{component:i["a"],name:"clipper-range"},clipperFixed:{component:a["a"],name:"clipper-fixed"},clipperUpload:{component:c["a"],name:"clipper-upload"}},u=function(e){t.component(n[e].name,n[e].component)};for(var f in e=e||{},s["a"].parentPropName=e.parentPropName||s["a"].parentPropName,e.components=void 0===e.components?n:e.components,e.components){if(!n[f])throw new Error('Invalid components "'.concat(f,'" in vurjs-clipper plugin'));n[f].name="string"===typeof e.components[f]?e.components[f]:n[f].name,u(f)}},f={install:u};e["f"]=f;var l=null;"undefined"!==typeof window?l=window.Vue:"undefined"!==typeof t&&(l=t.Vue),l&&l.use(f)}).call(this,n("c8ba"))},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),c=n("da84"),s=n("861d"),u=n("9112"),f=n("5135"),l=n("f772"),h=n("d012"),p=c.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var b=new p,g=b.get,m=b.has,y=b.set;r=function(t,e){return y.call(b,t,e),e},i=function(t){return g.call(b,t)||{}},o=function(t){return m.call(b,t)}}else{var w=l("state");h[w]=!0,r=function(t,e){return u(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},o=function(t){return f(t,w)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:v}},"6e77":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("e9b9"),i=n("8ac6"),o=n("d817"),a=n("ebb6");function c(t,e,n,u){return Object(o["a"])(n)&&(u=n,n=void 0),u?c(t,e,n).pipe(Object(a["a"])((function(t){return Object(i["a"])(t)?u.apply(void 0,t):u(t)}))):new r["a"]((function(r){function i(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}s(t,e,i,r,n)}))}function s(t,e,n,r,i){var o;if(l(t)){var a=t;t.addEventListener(e,n,i),o=function(){return a.removeEventListener(e,n,i)}}else if(f(t)){var c=t;t.on(e,n),o=function(){return c.off(e,n)}}else if(u(t)){var h=t;t.addListener(e,n),o=function(){return h.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var p=0,d=t.length;p4?p:e+8,a=[],s=0;s4?p:e+8,O(t,o,h-1);case 3:if(1==h)return t.getUint16(e+8,!i);for(o=h>2?p:e+8,a=[],s=0;st.byteLength)return{};var o=w(t,e,e+i,f,r);if(o["Compression"])switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=e+o.JpegIFOffset,c=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(t.buffer,a,c)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o["Compression"])}else 2==o["PhotometricInterpretation"]&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function O(t,e,r){var i="";for(n=e;n")+8;s=s.substring(s.indexOf("0){e["@attributes"]={};for(var n=0;n0)for(var n=0;n=1?100:100/this.imgRatio,"vw")},stemArea:function(){return this.wrapRatio?{width:100*this.wrapRatio,height:100}:this.imgRatio?{width:this.imgEl.naturalWidth,height:this.imgEl.naturalHeight}:{}},isVertical:function(){var t=this.wrapRatio||this.ratio;return!!t&&this.imgRatio",h="<",p="prototype",d="script",v=f("IE_PROTO"),b=function(){},g=function(t){return h+d+l+t+h+"/"+d+l},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",s.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}w=r?m(r):y();var t=a.length;while(t--)delete w[p][a[t]];return w()};c[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(b[p]=i(t),n=new b,b[p]=null,n[v]=t):n=w(),void 0===e?n:o(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),c=n("d44e"),s=n("9112"),u=n("6eeb"),f=n("b622"),l=n("c430"),h=n("3f8c"),p=n("ae93"),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,b=f("iterator"),g="keys",m="values",y="entries",w=function(){return this};t.exports=function(t,e,n,f,p,x,S){i(n,e,f);var j,O,E,P=function(t){if(t===p&&L)return L;if(!v&&t in T)return T[t];switch(t){case g:return function(){return new n(this,t)};case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",C=!1,T=t.prototype,$=T[b]||T["@@iterator"]||p&&T[p],L=!v&&$||P(p),I="Array"==e&&T.entries||$;if(I&&(j=o(I.call(new t)),d!==Object.prototype&&j.next&&(l||o(j)===d||(a?a(j,d):"function"!=typeof j[b]&&s(j,b,w)),c(j,_,!0,!0),l&&(h[_]=w))),p==m&&$&&$.name!==m&&(C=!0,L=function(){return $.call(this)}),l&&!S||T[b]===L||s(T,b,L),h[e]=L,p)if(O={values:P(m),keys:x?L:P(g),entries:P(y)},S)for(E in O)!v&&!C&&E in T||u(T,E,O[E]);else r({target:e,proto:!0,forced:v||C},O);return O}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"808e":function(t,e,n){},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"88bc":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;e.stack}r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8ac6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"===typeof t.length}}()},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n==u||n!=s&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},s=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"95b0":function(t,e,n){},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",u="object"===typeof t,f=e.regeneratorRuntime;if(f)u&&(t.exports=f);else{f=e.regeneratorRuntime=u?t.exports:{},f.wrap=w;var l="suspendedStart",h="suspendedYield",p="executing",d="completed",v={},b={};b[a]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(I([])));m&&m!==r&&i.call(m,a)&&(b=m);var y=O.prototype=S.prototype=Object.create(b);j.prototype=y.constructor=O,O.constructor=j,O[s]=j.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(y),t},f.awrap=function(t){return{__await:t}},E(P.prototype),P.prototype[c]=function(){return this},f.AsyncIterator=P,f.async=function(t,e,n,r){var i=new P(w(t,e,n,r));return f.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(y),y[s]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=I,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach($),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return c.type="throw",c.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;$(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,n,r){var i=e&&e.prototype instanceof S?e:S,o=Object.create(i.prototype),a=new L(r||[]);return o._invoke=_(t,n,a),o}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function S(){}function j(){}function O(){}function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function P(t){function e(n,r,o,a){var c=x(t[n],t,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(u).then((function(t){s.value=t,o(s)}),a)}a(c.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function _(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return R()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var c=C(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=x(t,e,n);if("normal"===s.type){if(r=n.done?d:h,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=d,n.method="throw",n.arg=s.arg)}}}function C(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,C(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=x(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function I(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r0?arguments[0]:void 0,f=this,p=[];if(_(f,{type:E,entries:p,updateURL:function(){},updateSearchParams:M}),void 0!==u)if(b(u))if(t=w(u),"function"===typeof t){e=t.call(u),n=e.next;while(!(r=n.call(e)).done){if(i=y(v(r.value)),o=i.next,(a=o.call(i)).done||(c=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:c.value+""})}}else for(s in u)h(u,s)&&p.push({key:s,value:u[s]+""});else U(p,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},B=X.prototype;c(B,{append:function(t,e){Y(arguments.length,2);var n=C(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){Y(arguments.length,1);var e=C(this),n=e.entries,r=t+"",i=0;while(it.key){i.splice(e,0,t);break}e===n&&i.push(t)}r.updateURL()},forEach:function(t){var e,n=C(this).entries,r=p(t,arguments.length>1?arguments[1]:void 0,3),i=0;while(i1&&(e=arguments[1],b(e)&&(n=e.body,d(n)===E&&(r=e.headers?new j(e.headers):new j,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:m(0,String(n)),headers:m(0,r)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:X,getState:C}},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),c=n("7b0b"),s=n("50c4"),u=n("8418"),f=n("65f0"),l=n("1dde"),h=n("b622"),p=n("2d00"),d=h("isConcatSpreadable"),v=9007199254740991,b="Maximum allowed index exceeded",g=p>=51||!i((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),m=l("concat"),y=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:o(t)},w=!g||!m;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;ev)throw TypeError(b);for(n=0;n=v)throw TypeError(b);u(l,h++,o)}return l.length=h,l}})},"9a1f":function(t,e,n){var r=n("825a"),i=n("35a1");t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},"9ab4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9e46":function(t,e,n){"use strict";function r(t){return t&&"function"===typeof t.schedule}n.d(e,"a",(function(){return r}))},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),c=n("3f8c"),s=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),c[u]=s,t}},"9f2d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("9ab4"),i=n("3060"),o=n("ce8b");function a(t){return function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new s(t),r=Object(o["a"])(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r["a"](e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i["a"])},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),c=n("83ab"),s=n("4930"),u=n("fdbf"),f=n("d039"),l=n("5135"),h=n("e8b5"),p=n("861d"),d=n("825a"),v=n("7b0b"),b=n("fc6a"),g=n("c04e"),m=n("5c6c"),y=n("7c73"),w=n("df75"),x=n("241c"),S=n("057f"),j=n("7418"),O=n("06cf"),E=n("9bf2"),P=n("d1e7"),_=n("9112"),C=n("6eeb"),T=n("5692"),$=n("f772"),L=n("d012"),I=n("90e3"),R=n("b622"),k=n("e538"),A=n("746f"),D=n("d44e"),F=n("69f3"),N=n("b727").forEach,U=$("hidden"),M="Symbol",Y="prototype",W=R("toPrimitive"),X=F.set,B=F.getterFor(M),H=Object[Y],G=i.Symbol,V=o("JSON","stringify"),q=O.f,z=E.f,Z=S.f,J=P.f,K=T("symbols"),Q=T("op-symbols"),tt=T("string-to-symbol-registry"),et=T("symbol-to-string-registry"),nt=T("wks"),rt=i.QObject,it=!rt||!rt[Y]||!rt[Y].findChild,ot=c&&f((function(){return 7!=y(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(H,e);r&&delete H[e],z(t,e,n),r&&t!==H&&z(H,e,r)}:z,at=function(t,e){var n=K[t]=y(G[Y]);return X(n,{type:M,tag:t,description:e}),c||(n.description=e),n},ct=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof G},st=function(t,e,n){t===H&&st(Q,e,n),d(t);var r=g(e,!0);return d(n),l(K,r)?(n.enumerable?(l(t,U)&&t[U][r]&&(t[U][r]=!1),n=y(n,{enumerable:m(0,!1)})):(l(t,U)||z(t,U,m(1,{})),t[U][r]=!0),ot(t,r,n)):z(t,r,n)},ut=function(t,e){d(t);var n=b(e),r=w(n).concat(dt(n));return N(r,(function(e){c&&!lt.call(n,e)||st(t,e,n[e])})),t},ft=function(t,e){return void 0===e?y(t):ut(y(t),e)},lt=function(t){var e=g(t,!0),n=J.call(this,e);return!(this===H&&l(K,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(K,e)||l(this,U)&&this[U][e])||n)},ht=function(t,e){var n=b(t),r=g(e,!0);if(n!==H||!l(K,r)||l(Q,r)){var i=q(n,r);return!i||!l(K,r)||l(n,U)&&n[U][r]||(i.enumerable=!0),i}},pt=function(t){var e=Z(b(t)),n=[];return N(e,(function(t){l(K,t)||l(L,t)||n.push(t)})),n},dt=function(t){var e=t===H,n=Z(e?Q:b(t)),r=[];return N(n,(function(t){!l(K,t)||e&&!l(H,t)||r.push(K[t])})),r};if(s||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=I(t),n=function(t){this===H&&n.call(Q,t),l(this,U)&&l(this[U],e)&&(this[U][e]=!1),ot(this,e,m(1,t))};return c&&it&&ot(H,e,{configurable:!0,set:n}),at(e,t)},C(G[Y],"toString",(function(){return B(this).tag})),C(G,"withoutSetter",(function(t){return at(I(t),t)})),P.f=lt,E.f=st,O.f=ht,x.f=S.f=pt,j.f=dt,k.f=function(t){return at(R(t),t)},c&&(z(G[Y],"description",{configurable:!0,get:function(){return B(this).description}}),a||C(H,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),N(w(nt),(function(t){A(t)})),r({target:M,stat:!0,forced:!s},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var n=G(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!ct(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:ft,defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ht}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:f((function(){j.f(1)}))},{getOwnPropertySymbols:function(t){return j.f(v(t))}}),V){var vt=!s||f((function(){var t=G();return"[null]"!=V([t])||"{}"!=V({a:t})||"{}"!=V(Object(t))}));r({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!ct(t))return h(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ct(e))return e}),i[1]=e,V.apply(null,i)}})}G[Y][W]||_(G[Y],W,G[Y].valueOf),D(G,M),L[U]=!0},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a6c5:function(t,e,n){"use strict";var r=n("9ab4"),i=n("ce8b"),o=n("3060"),a=n("acf8"),c=n("ebb6"),s=n("e9b9"),u=n("1716"),f=n("a6e8"),l=n("c539");function h(t,e){return new s["a"]((function(n){var r=new f["a"];return r.add(e.schedule((function(){var i=t[l["a"]]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}function p(t,e){return new s["a"]((function(n){var r=new f["a"];return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}var d=n("245f"),v=n("127f");function b(t,e){if(!t)throw new Error("Iterable cannot be null");return new s["a"]((function(n){var r,i=new f["a"];return i.add((function(){r&&"function"===typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[v["a"]](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}function g(t){return t&&"function"===typeof t[l["a"]]}var m=n("fd66"),y=n("d9e3");function w(t){return t&&"function"===typeof t[v["a"]]}function x(t,e){if(null!=t){if(g(t))return h(t,e);if(Object(m["a"])(t))return p(t,e);if(Object(y["a"])(t))return Object(d["a"])(t,e);if(w(t)||"string"===typeof t)return b(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function S(t,e){return e?x(t,e):t instanceof s["a"]?t:new s["a"](Object(u["a"])(t))}function j(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?function(r){return r.pipe(j((function(n,r){return S(t(n,r)).pipe(Object(c["a"])((function(t,i){return e(n,t,r,i)})))}),n))}:("number"===typeof e&&(n=e),function(e){return e.lift(new O(t,n))})}n.d(e,"a",(function(){return j}));var O=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new E(t,this.project,this.concurrent))},t}(),E=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r["a"](e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o["a"])},a6e8:function(t,e,n){"use strict";var r=n("8ac6"),i=n("31c4"),o=n("d817"),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),c=a;n.d(e,"a",(function(){return s}));var s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,a=n._parentOrParents,s=n._unsubscribe,f=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var l=0;l1&&"number"===typeof t[t.length-1]&&(n=t.pop())):"number"===typeof s&&(n=t.pop()),null===c&&1===t.length&&t[0]instanceof r["a"]?t[0]:Object(o["a"])(n)(Object(a["a"])(t,c))}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),c=n("5135"),s=n("c6b6"),u=n("7156"),f=n("c04e"),l=n("d039"),h=n("7c73"),p=n("241c").f,d=n("06cf").f,v=n("9bf2").f,b=n("58a8").trim,g="Number",m=i[g],y=m.prototype,w=s(h(y))==g,x=function(t){var e,n,r,i,o,a,c,s,u=f(t,!1);if("string"==typeof u&&u.length>2)if(u=b(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,c=0;ci)return NaN;return parseInt(o,r)}return+u};if(o(g,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var S,j=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof j&&(w?l((function(){y.valueOf.call(n)})):s(n)!=g)?u(new m(x(e)),n,j):x(e)},O=r?p(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;O.length>E;E++)c(m,S=O[E])&&!c(j,S)&&v(j,S,d(m,S));j.prototype=y,y.constructor=j,a(i,g,j)}},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},acf8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453"),o=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r["a"](e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i["a"])},ae40:function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("5135"),a=Object.defineProperty,c={},s=function(t){throw t};t.exports=function(t,e){if(o(c,t))return c[t];e||(e={});var n=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,f=o(e,0)?e[0]:s,l=o(e,1)?e[1]:void 0;return c[t]=!!n&&!i((function(){if(u&&!r)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:s}):t[1]=1,n.call(t,f,l)}))}},ae93:function(t,e,n){"use strict";var r,i,o,a=n("e163"),c=n("9112"),s=n("5135"),u=n("b622"),f=n("c430"),l=u("iterator"),h=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):h=!0),void 0==r&&(r={}),f||s(r,l)||c(r,l,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,c=/^\s*function ([^ (]*)/,s="name";!r||s in o||i(o,s,{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},b575:function(t,e,n){var r,i,o,a,c,s,u,f,l=n("da84"),h=n("06cf").f,p=n("c6b6"),d=n("2cf4").set,v=n("1cdc"),b=l.MutationObserver||l.WebKitMutationObserver,g=l.process,m=l.Promise,y="process"==p(g),w=h(l,"queueMicrotask"),x=w&&w.value;x||(r=function(){var t,e;y&&(t=g.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},y?a=function(){g.nextTick(r)}:b&&!v?(c=!0,s=document.createTextNode(""),new b(r).observe(s,{characterData:!0}),a=function(){s.data=c=!c}):m&&m.resolve?(u=m.resolve(void 0),f=u.then,a=function(){f.call(u,r)}):a=function(){d.call(l,r)}),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),c=n("4930"),s=n("fdbf"),u=i("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return o(u,t)||(c&&o(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),c=n("65f0"),s=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,d,v,b){for(var g,m,y=o(p),w=i(y),x=r(d,v,3),S=a(w.length),j=0,O=b||c,E=e?O(p,S):n?O(p,0):void 0;S>j;j++)if((h||j in w)&&(g=w[j],m=x(g,j,y),t))if(e)E[j]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return j;case 2:s.call(E,g)}else if(f)return!1;return l?-1:u||f?f:E}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},bc00:function(t,e,n){"use strict";n("4160"),n("cca6"),n("159b");var r={prevent:function(t){t.preventDefault()},eTo:function(t,e,n){var r=this[n+"Pos"](),i=0;switch(e){case"top":i=t.clientY-r.top;break;case"left":i=t.clientX-r.left;break;case"right":i=r.right-t.clientX;break;case"bottom":i=r.bottom-t.clientY;break}return i},toPercentage:function(t){var e={},n={left:"toX",right:"toX",top:"toY",bottom:"toY",width:"toX",height:"toY"};for(var r in t){var i=n[r];i&&void 0!==t[r]&&(e[r]=this[i](t[r]))}return e},invalidDrawPos:function(t){return 0===t.swidth||0===t.sheight}},i=r,o=(n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),n("96cf"),{eToArea:function(t,e){return this.eTo(t,e,"area")},areaPos:function(){var t=this.areaEl.getBoundingClientRect();return t},zoomPos:function(){var t=this.zoomEl.getBoundingClientRect();return t},scalePos:function(){return this.scaleEl.getBoundingClientRect()},imgPos:function(){var t=this.scalePos(),e=t.width,n=t.height,r=t.top,i=t.left;if(this.wrapRatio){if(this.isVertical){var o=n*this.imgRatio;return{width:o,height:n,left:i+(e-o)/2,top:r}}var a=e/this.imgRatio;return{width:e,height:a,left:i,top:r+(n-a)/2}}return{width:e,height:n,left:i,top:r}},eInZoom:function(t){var e=this.zoomEl.getBoundingClientRect();return{width:e.width,height:e.height,left:t.clientX-e.left,top:t.clientY-e.top}},zoomInArea:function(){var t=this.areaEl.getBoundingClientRect(),e=this.zoomEl.getBoundingClientRect();return Object.assign(e,{offsetLeft:e.left-t.left,offsetTop:e.top-t.top,maxLeft:t.width-e.width,maxTop:t.height-e.height})},toX:function(t){var e=this.areaPos();return Math.min(Math.max(t/e.width*100,0),100)},toY:function(t){var e=this.areaPos();return Math.min(Math.max(t/e.height*100,0),100)},isDragElement:function(t){return t.target===this.dragEl},dragMoving:function(t){var e=t.down,n=t.move,r=this.toX(this.eToArea(n,"left")-e.left),i=this.toY(this.eToArea(n,"top")-e.top);return{left:r,top:i,down:e,move:n}},repositionDrag:function(t){var e=t.left,n=t.top,r=t.down,i=t.move,o=this.zoomInArea(),a=this.toX(o.maxLeft),c=this.toY(o.maxTop);if(e=Math.min(e,a),n=Math.min(n,c),e===a||0===e){var s=this.eInZoom(i);r.left=Math.max(Math.min(s.left,s.width),0)}if(n===c||0===n){var u=this.eInZoom(i);r.top=Math.max(Math.min(u.top,u.height),0)}return{left:e,top:n}},ratioPos:function(t){var e=this.zoomPos(),n=t.width-e.width,r=t.height-e.height,i=n>r;return{x:i,y:!i}},zoomingPosition:function(t){var e,n,r,i,o,a,c=this,s=t.down,u=t.move,f=u.clientX>s.clientX?"r":"l",l=u.clientY>s.clientY?"b":"t",h=function(){return c.eToArea(s,"top")},p=function(){return c.eToArea(s,"left")},d=h(),v=p(),b=this.areaPos(),g=0,m=0,y=this.minWidth*b.width/100,w=this.ratio?y/this.ratio:this.minHeight*b.height/100;return"r"===f?(v+y>b.width?(s.clientX=b.right-y,e=v):e=p(),o=b.width-e,g=u.clientX-s.clientX):"l"===f&&(vb.height?(s.clientY=b.bottom-w,n=d):n=h(),a=b.height-n,m=u.clientY-s.clientY):"t"===l&&(d100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}else if(u(),this.minWidth===e&&s(),n>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}}else{if(en,t:or}},setDownPosition:function(t){var e=this.judgeArea(t),n=this.zoomPos(),r=e.t?n.bottom:n.top,i=e.l?n.right:n.left;return{target:null,clientX:i,clientY:r}},isTwoPointZoomElement:function(t){return this.areaEl.contains(t.touches[0].target)&&this.areaEl.contains(t.touches[1].target)},getTwoTouchesPos:function(t,e,n){var r=this.areaPos(),i=e.touches[0].clientX=e.clientX&&(e.clientX=i.left),r.t&&n.clientY<=e.clientY?e.clientY=i.bottom:r.b&&n.clientY>=e.clientY&&(e.clientY=i.top),{down:e,move:n}},getDrawPos:function(t){var e=t||{},n=e.wPixel,r=e.maxWPixel,i=this.zoomPos(),o=this.imgPos(),a=this.imgEl.naturalWidth,c=o.width,s=i.left-o.left,u=i.top-o.top,f=i.width,l=i.height,h=a/c,p=r?Math.min(n||f*h,r):n||f*h,d={rotateX:(o.left+o.width/2-i.left)*h,rotateY:(o.top+o.height/2-i.top)*h,drawX:(o.left-i.left)*h,drawY:(o.top-i.top)*h},v={sx:s*h,sy:u*h,swidth:f*h,sheight:l*h,dx:0,dy:0,dwidth:p,dheight:p*l/f};return v[Symbol.iterator]=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(v);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,v[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}}),t)})),{pos:v,translate:d}}}),a=o,c={wrapPos:function(){return this.wrapEl.getBoundingClientRect()},scalePos:function(){return this.scaleEl.getBoundingClientRect()},translatePos:function(){return this.translateEl.getBoundingClientRect()},toX:function(t){var e=this.scalePos();return t/e.width*100},toY:function(t){var e=this.scalePos();return t/e.height*100},isDragElement:function(t){return this.wrapEl.contains(t.target)},dragDownPos:function(t){var e=this.translatePos(),n=this.scalePos(),r={left:e.left-n.left,top:e.top-n.top,clientX:t.clientX,clientY:t.clientY};return r},delta:function(t){var e=t.down,n=t.move,r=n.clientX-e.clientX+e.left,i=n.clientY-e.clientY+e.top;return{left:r,top:i}},towPointsTouches:function(t){return t.touches},setOrigin:function(t){return{down:[t[0],t[1]],origin:this.scalePos().width}},twoPointsDelta:function(t){var e=t.down,n=t.move,r=Math.abs(n[0].clientX-n[1].clientX)-Math.abs(e[0].clientX-e[1].clientX),i=Math.abs(n[0].clientY-n[1].clientY)-Math.abs(e[0].clientY-e[1].clientY);e[0]=n[0],e[1]=n[1];var o=this.wrapPos();return Math.abs(r)>=Math.abs(i)?r/o.width:i/o.height},getDrawPos:function(t){var e=t||{},n=e.wPixel,r=e.maxWPixel,i=this.areaEl.getBoundingClientRect(),o=this.translatePos(),a=this.imgEl.naturalWidth,c=i.left-o.left+this.border,s=i.top-o.top+this.border,u=a/o.width,f={rotateX:(o.left+o.width/2-(i.left+this.border))*u,rotateY:(o.top+o.height/2-(i.top+this.border))*u,drawX:(o.left-(i.left+this.border))*u,drawY:(o.top-(i.top+this.border))*u},l=i.width-2*this.border,h=i.height-2*this.border,p=r?Math.min(n||l*u,r):n||l*u,d={sx:c*u,sy:s*u,swidth:l*u,sheight:h*u,dx:0,dy:0,dwidth:p,dheight:p*h/l};return d[Symbol.iterator]=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=regeneratorRuntime.keys(d);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,d[e];case 5:t.next=1;break;case 7:case"end":return t.stop()}}),t)})),{pos:d,translate:f}},calcWheelScaling:function(t){var e=this.bgWH$,n=this.zoomRate*Math.max(e,.8)*t;return Math.max(e+n,this.minScale)},calcTouchScaling:function(t){var e=this.bgWH$,n=Math.max(e,.8)*t;return Math.max(e+n,this.minScale)}},s=c,u=n("6e77"),f=n("0f53");n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return v}));var l=Object.assign(a,i),h=Object.assign(s,i),p={beforeCreate:function(){this.mousedown$=Object(u["a"])(window,"mousedown"),this.mousemove$=Object(u["a"])(window,"mousemove"),this.mouseup$=Object(u["a"])(window,"mouseup"),this.touchstart$=Object(u["a"])(window,"touchstart",{passive:!1}),this.touchmove$=Object(u["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(u["a"])(window,"touchend",{passive:!1})}},d={beforeCreate:function(){this.wheel$=Object(u["a"])(window,"wheel",{passive:!1})}},v={methods:{clip:function(t){var e=this.getDrawPos(t),n=this.canvasEl.getContext("2d"),r=e.pos.swidth,i=e.pos.sheight;if(this.canvasEl.width=r,this.canvasEl.height=i,n.fillStyle=this.bgColor,n.fillRect(0,0,r,i),n.translate(e.translate.rotateX,e.translate.rotateY),n.rotate(this.rotate*Math.PI/180),n.translate(e.translate.drawX-e.translate.rotateX,e.translate.drawY-e.translate.rotateY),n.drawImage(this.imgEl,0,0),t){var o=document.createElement("CANVAS");return o.width=e.pos.dwidth,o.height=e.pos.dheight,o.getContext("2d").drawImage(this.canvasEl,0,0,e.pos.dwidth,e.pos.dheight),o}return this.canvasEl},callPreview:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;rs)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},ce8b:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("acf8"),i=n("1716"),o=n("e9b9");function a(t,e,n,a,c){if(void 0===c&&(c=new r["a"](t,n,a)),!c.closed)return e instanceof o["a"]?e.subscribe(c):Object(i["a"])(e)(c)}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d817:function(t,e,n){"use strict";function r(t){return"function"===typeof t}n.d(e,"a",(function(){return r}))},d9e3:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"===typeof t.length&&"function"!==typeof t}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),c=n("b622"),s=c("iterator"),u=c("toStringTag"),f=o.values;for(var l in i){var h=r[l],p=h&&h.prototype;if(p){if(p[s]!==f)try{a(p,s,f)}catch(v){p[s]=f}if(p[u]||a(p,u,l),i[l])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(v){p[d]=o[d]}}}},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),c=n("861d"),s=n("9bf2").f,u=n("e893"),f=o.Symbol;if(i&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};u(h,f);var p=h.prototype=f.prototype;p.constructor=h;var d=p.toString,v="Symbol(test)"==String(f("test")),b=/^Symbol\((.*)\)[^)]+$/;s(p,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=d.call(t);if(a(l,t))return"";var n=v?e.slice(7,-1):e.replace(b,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),c=o("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),c=n("7dd0"),s="Array Iterator",u=a.set,f=a.getterFor(s);t.exports=c(Array,"Array",(function(t,e){u(this,{type:s,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,i,o,a,c=n("23e7"),s=n("c430"),u=n("da84"),f=n("d066"),l=n("fea9"),h=n("6eeb"),p=n("e2cc"),d=n("d44e"),v=n("2626"),b=n("861d"),g=n("1c0b"),m=n("19aa"),y=n("c6b6"),w=n("8925"),x=n("2266"),S=n("1c7e"),j=n("4840"),O=n("2cf4").set,E=n("b575"),P=n("cdf9"),_=n("44de"),C=n("f069"),T=n("e667"),$=n("69f3"),L=n("94ca"),I=n("b622"),R=n("2d00"),k=I("species"),A="Promise",D=$.get,F=$.set,N=$.getterFor(A),U=l,M=u.TypeError,Y=u.document,W=u.process,X=f("fetch"),B=C.f,H=B,G="process"==y(W),V=!!(Y&&Y.createEvent&&u.dispatchEvent),q="unhandledrejection",z="rejectionhandled",Z=0,J=1,K=2,Q=1,tt=2,et=L(A,(function(){var t=w(U)!==String(U);if(!t){if(66===R)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!U.prototype["finally"])return!0;if(R>=51&&/native code/.test(U))return!1;var e=U.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[k]=n,!(e.then((function(){}))instanceof n)})),nt=et||!S((function(t){U.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!b(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;E((function(){var i=e.value,o=e.state==J,a=0;while(r.length>a){var c,s,u,f=r[a++],l=o?f.ok:f.fail,h=f.resolve,p=f.reject,d=f.domain;try{l?(o||(e.rejection===tt&&st(t,e),e.rejection=Q),!0===l?c=i:(d&&d.enter(),c=l(i),d&&(d.exit(),u=!0)),c===f.promise?p(M("Promise-chain cycle")):(s=rt(c))?s.call(c,h,p):h(c)):p(i)}catch(v){d&&!u&&d.exit(),p(v)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&at(t,e)}))}},ot=function(t,e,n){var r,i;V?(r=Y.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(i=u["on"+t])?i(r):t===q&&_("Unhandled promise rejection",n)},at=function(t,e){O.call(u,(function(){var n,r=e.value,i=ct(e);if(i&&(n=T((function(){G?W.emit("unhandledRejection",r,t):ot(q,t,r)})),e.rejection=G||ct(e)?tt:Q,n.error))throw n.value}))},ct=function(t){return t.rejection!==Q&&!t.parent},st=function(t,e){O.call(u,(function(){G?W.emit("rejectionHandled",t):ot(z,t,e.value)}))},ut=function(t,e,n,r){return function(i){t(e,n,i,r)}},ft=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=K,it(t,e,!0))},lt=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw M("Promise can't be resolved itself");var i=rt(n);i?E((function(){var r={done:!1};try{i.call(n,ut(lt,t,r,e),ut(ft,t,r,e))}catch(o){ft(t,r,o,e)}})):(e.value=n,e.state=J,it(t,e,!1))}catch(o){ft(t,{done:!1},o,e)}}};et&&(U=function(t){m(this,U,A),g(t),r.call(this);var e=D(this);try{t(ut(lt,this,e),ut(ft,this,e))}catch(n){ft(this,e,n)}},r=function(t){F(this,{type:A,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=p(U.prototype,{then:function(t,e){var n=N(this),r=B(j(this,U));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=G?W.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&it(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=D(t);this.promise=t,this.resolve=ut(lt,t,e),this.reject=ut(ft,t,e)},C.f=B=function(t){return t===U||t===o?new i(t):H(t)},s||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof X&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return P(U,X.apply(u,arguments))}}))),c({global:!0,wrap:!0,forced:et},{Promise:U}),d(U,A,!1,!0),v(A),o=f(A),c({target:A,stat:!0,forced:et},{reject:function(t){var e=B(this);return e.reject.call(void 0,t),e.promise}}),c({target:A,stat:!0,forced:s||et},{resolve:function(t){return P(s&&this===o?U:this,t)}}),c({target:A,stat:!0,forced:nt},{all:function(t){var e=this,n=B(e),r=n.resolve,i=n.reject,o=T((function(){var n=g(e.resolve),o=[],a=0,c=1;x(t,(function(t){var s=a++,u=!1;o.push(void 0),c++,n.call(e,t).then((function(t){u||(u=!0,o[s]=t,--c||r(o))}),i)})),--c||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=B(e),r=n.reject,i=T((function(){var i=g(e.resolve);x(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),c=a.f,s=o.f,u=0;u=0?-1:1}))),this.touchTwoFinger$=this.touchstart$.pipe(Object(a["a"])(this.isDragElement),Object(a["a"])((function(t){return 2===t.touches.length})),Object(c["a"])(this.prevent),Object(s["a"])(this.towPointsTouches),Object(s["a"])(this.setOrigin),Object(u["a"])((function(){return t.touchmove$.pipe(Object(f["a"])(t.touchend$),Object(a["a"])((function(t){return 2===t.touches.length})),Object(s["a"])(t.towPointsTouches))}),(function(t,e){var n=t.down,r=t.origin;return{down:n,move:e,origin:r}})),Object(s["a"])(this.twoPointsDelta)),this.wheelZoom$=(new p["a"]).pipe(Object(l["a"])(1),Object(h["a"])(this.wheelEvent$),Object(s["a"])(this.calcWheelScaling)),this.touchZoom$=(new p["a"]).pipe(Object(l["a"])(1),Object(h["a"])(this.touchTwoFinger$),Object(s["a"])(this.calcTouchScaling)),this.zoomFromNativeEvents=Object(d["a"])(this.wheelZoom$,this.touchZoom$).pipe(Object(s["a"])(this.handleZoomEvent)),this.zoomSubject$=(new p["a"]).pipe(Object(h["a"])(this.setWH$),Object(h["a"])(this.zoomFromNativeEvents)),this.dragSubject$=(new p["a"]).pipe(Object(l["a"])({left:0,top:0}),Object(h["a"])(this.setTL$),Object(h["a"])(this.mousedownDrag$.pipe(Object(h["a"])(this.touchdownDrag$),Object(s["a"])(this.delta),Object(s["a"])(this.toPercentage)))),this.onChange$=(new p["a"]).pipe(Object(h["a"])(this.zoomSubject$),Object(h["a"])(this.dragSubject$),Object(h["a"])(this.change$)),{bgWH$:this.zoomSubject$,bgTL$:this.dragSubject$}},props:{src:{type:String,default:""},rotate:{type:Number,default:0},ratio:{type:Number,default:1},zoomRate:{type:Number,default:.04},minScale:{type:Number,default:.1},bgColor:{type:String,default:"white"},border:{type:Number,default:1},borderColor:{type:String,default:"white"},grid:{type:Boolean,default:!0},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},round:{type:Boolean,default:!1},preview:{type:String,default:""},crossOrigin:{type:String,default:void 0},area:{type:Number,default:50},handleZoomEvent:{type:Function,default:function(t){return t}}},data:function(){return{imgRatio:NaN}},computed:{areaStyle:function(){var t={color:this.shadow,"border-width":"".concat(this.border,"px !important"),"border-color":"".concat(this.borderColor," !important"),"box-shadow":"0 0 0 ".concat(this._shadow," !important"),"border-radius":"".concat(this.round?"50%":""," !important")};return this.ratio>=1?t.width="".concat(this.area,"% !important"):t.height="".concat(this.area,"% !important"),t},scaleStyle:function(){var t=this.bgWH$;return{transform:"scale(".concat(t,") !important")}},translateStyle:function(){var t=this.bgTL$.left,e=this.bgTL$.top;return{transform:"translate(".concat(t,"%,").concat(e,"%) !important")}},bgStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg) !important")}},wrapStyle:function(){return{"background-color":"".concat(this.bgColor," !important"),display:"".concat(this.src?"block":"none"," !important")}},stemArea:function(){return{width:100,height:100/this.ratio}},eptStyle:function(){return{display:"".concat(this.src?"none":"block"," !important")}},stemStyle:function(){var t={};return this.ratio>=1?t.width="100% !important":t.height="100% !important",t},_shadow:function(){return"".concat(this.imgRatio>=1?100:100/this.imgRatio,"vw")}},watch:{ratio:function(){this.resetData(),this.change$.next(0)},bgColor:function(){this.callPreview("setData",{bgColor:this.bgColor})},bgStyle:function(){this.change$.next(0)},border:function(){this.change$.next(0)}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".js-clipper-fixed .js-img"),this.wrapEl=this.$el.querySelector(".js-clipper-fixed .js-wrap"),this.areaEl=this.$el.querySelector(".js-clipper-fixed .js-area"),this.scaleEl=this.$el.querySelector(".js-clipper-fixed .js-img-scale"),this.translateEl=this.$el.querySelector(".js-clipper-fixed .js-img-translate"),this.stemEl=this.$el.querySelector(".js-clipper-fixed .js-stem-bg"),this.canvasEl=document.createElement("CANVAS"),this.$subscribeTo(this.onChange$,(function(){t.$nextTick((function(){var e=t.getDrawPos().pos,n=t.rotate;t.invalidDrawPos(e)||t.callPreview("locateImage",e,n)}))}))},methods:{imgLoaded:function(){this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.stemEl.width=this.imgEl.naturalWidth,this.stemEl.height=this.imgEl.naturalHeight,this.resetData(),this.callPreview("setData",{src:this.src,bgColor:this.bgColor})},resetData:function(){this.setTL$.next({left:0,top:0});var t=this.ratio>this.imgRatio?this.imgRatio/this.ratio:1;this.setWH$.next(Math.max(t,this.minScale))}}},b=v,g=(n("44ca"),n("2877")),m=Object(g["a"])(b,r,i,!1,null,"413e3c3e",null);e["a"]=m.exports},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),c="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),a))?n:c?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fad2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n diff --git a/src/components/clipper-fixed.vue b/src/components/clipper-fixed.vue index 50a12d0..0ceff67 100644 --- a/src/components/clipper-fixed.vue +++ b/src/components/clipper-fixed.vue @@ -371,6 +371,7 @@ export default { } diff --git a/src/components/extends/clippo.js b/src/components/extends/clippo.js index bf799f2..b42aea0 100644 --- a/src/components/extends/clippo.js +++ b/src/components/extends/clippo.js @@ -1,7 +1,7 @@ /* - * methods for calculating position layout, - * extended by clipper-basic-component -*/ + * methods for calculating position layout, + * extended by clipper-basic-component + */ import _commonMethods from './common-methods' import _basicMethods from './basic-methods' import _fixedMethods from './fixed-methods' @@ -18,7 +18,7 @@ export { fixedMethods } /** Listeners */ const rxEventListeners = { - beforeCreate () { + beforeCreate() { this.mousedown$ = fromEvent(window, 'mousedown') this.mousemove$ = fromEvent(window, 'mousemove') this.mouseup$ = fromEvent(window, 'mouseup') @@ -29,7 +29,7 @@ const rxEventListeners = { } const rxWheelListeners = { - beforeCreate () { + beforeCreate() { this.wheel$ = fromEvent(window, 'wheel', { passive: false }) } } @@ -37,19 +37,39 @@ export { rxEventListeners } export { rxWheelListeners } const pluginMethods = { methods: { - clip: function (opt) { + clip: function(opt) { const drawPos = this.getDrawPos(opt) const ctx = this.canvasEl.getContext('2d') const width = drawPos.pos.swidth // dw - const height = drawPos.pos.sheight// dh + const height = drawPos.pos.sheight // dh this.canvasEl.width = width this.canvasEl.height = height + ctx.save() ctx.fillStyle = this.bgColor ctx.fillRect(0, 0, width, height) ctx.translate(drawPos.translate.rotateX, drawPos.translate.rotateY) - ctx.rotate(this.rotate * Math.PI / 180) - ctx.translate(drawPos.translate.drawX - drawPos.translate.rotateX, drawPos.translate.drawY - drawPos.translate.rotateY) + ctx.rotate((this.rotate * Math.PI) / 180) + ctx.translate( + drawPos.translate.drawX - drawPos.translate.rotateX, + drawPos.translate.drawY - drawPos.translate.rotateY + ) ctx.drawImage(this.imgEl, 0, 0) + // round bg + if (this.round) { + ctx.restore() + ctx.globalCompositeOperation = 'destination-in' + ctx.ellipse( + drawPos.pos.dwidth / 2, + drawPos.pos.dheight / 2, + drawPos.pos.dwidth / 2, + drawPos.pos.dheight / 2, + 0, + 0, + 2 * Math.PI + ) + ctx.fill() + } + if (opt) { const canvas = document.createElement('CANVAS') canvas.width = drawPos.pos.dwidth @@ -60,7 +80,7 @@ const pluginMethods = { return this.canvasEl } }, - callPreview: function (method, ...arg) { + callPreview: function(method, ...arg) { const parentPropName = np.parentPropName if (!this.preview) return if (!this.$parent[parentPropName]) return // "You register to use clipper-preview But No clipper-view Component detected."; @@ -70,7 +90,7 @@ const pluginMethods = { p[method](...arg) }) }, - emit: function (name, arg) { + emit: function(name, arg) { this.$emit(name, arg) } } diff --git a/yarn.lock b/yarn.lock index b08679a..348fffd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -952,6 +952,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== +"@types/json-schema@^7.0.8": + version "7.0.9" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" + integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -1460,6 +1465,11 @@ acorn-jsx@^5.0.0: resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b" integrity sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng== +acorn-jsx@^5.2.0: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + acorn-walk@^6.0.1: version "6.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c" @@ -1538,16 +1548,21 @@ ajv@^6.1.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.9.1: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^6.10.0, ajv@^6.12.5: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + alphanum-sort@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM= -amdefine@>=0.0.4: - version "1.0.1" - resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" - integrity sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU= - ansi-colors@^3.0.0: version "3.2.4" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf" @@ -1558,6 +1573,13 @@ ansi-escapes@^3.0.0, ansi-escapes@^3.2.0: resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== +ansi-escapes@^4.2.1: + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + ansi-html@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" @@ -1623,7 +1645,15 @@ anymatch@~3.1.1: normalize-path "^3.0.0" picomatch "^2.0.4" -aproba@^1.0.3, aproba@^1.1.1: +anymatch@~3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" + integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +aproba@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== @@ -1633,14 +1663,6 @@ arch@^2.1.1: resolved "https://registry.yarnpkg.com/arch/-/arch-2.1.2.tgz#0c52bbe7344bb4fa260c443d2cbad9c00ff2f0bf" integrity sha512-NTBIIbAfkJeIletyABbVtdPgeKfDafR+1mZV/AyyfC1UkVkp9iUjV+wwmqtUgphHYajbI86jejBJp5e+jkGTiQ== -are-we-there-yet@~1.1.2: - version "1.1.5" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" - integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -1668,11 +1690,6 @@ array-equal@^1.0.0: resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM= -array-find-index@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" - integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= - array-flatten@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" @@ -1767,20 +1784,15 @@ async-each@^1.0.1: resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== -async-foreach@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" - integrity sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI= - async-limiter@~1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== async@^2.6.2: - version "2.6.3" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" - integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg== + version "2.6.4" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" + integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== dependencies: lodash "^4.17.14" @@ -1936,22 +1948,15 @@ bindings@^1.5.0: dependencies: file-uri-to-path "1.0.0" -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - integrity sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo= - dependencies: - inherits "~2.0.0" - bluebird@^3.1.1, bluebird@^3.5.5: version "3.7.2" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.4.0: - version "4.11.9" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.9.tgz#26d556829458f9d1e81fc48952493d0ba3507828" - integrity sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw== +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== bn.js@^5.1.1: version "5.1.3" @@ -2022,7 +2027,7 @@ braces@~3.0.2: dependencies: fill-range "^7.0.1" -brorand@^1.0.1: +brorand@^1.0.1, brorand@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= @@ -2099,14 +2104,15 @@ browserify-zlib@^0.2.0: pako "~1.0.5" browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.8.5: - version "4.14.5" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.14.5.tgz#1c751461a102ddc60e40993639b709be7f2c4015" - integrity "sha1-HHUUYaEC3cYOQJk2ObcJvn8sQBU= sha512-Z+vsCZIvCBvqLoYkBFTwEYH3v5MCQbsAjp50ERycpOjnPmolg1Gjy4+KaWWpm8QOJt9GHkhdqAl14NpCX73CWA==" + version "4.16.6" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.6.tgz#d7901277a5a88e554ed305b183ec9b0c08f66fa2" + integrity sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ== dependencies: - caniuse-lite "^1.0.30001135" - electron-to-chromium "^1.3.571" - escalade "^3.1.0" - node-releases "^1.1.61" + caniuse-lite "^1.0.30001219" + colorette "^1.2.2" + electron-to-chromium "^1.3.723" + escalade "^3.1.1" + node-releases "^1.1.71" buffer-from@^1.0.0: version "1.1.1" @@ -2273,19 +2279,6 @@ camel-case@3.0.x: no-case "^2.2.0" upper-case "^1.1.1" -camelcase-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" - integrity sha1-MIvur/3ygRkFHvodkyITyRuPkuc= - dependencies: - camelcase "^2.0.0" - map-obj "^1.0.0" - -camelcase@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" - integrity sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8= - camelcase@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" @@ -2311,10 +2304,10 @@ caniuse-api@^3.0.0: lodash.memoize "^4.1.2" lodash.uniq "^4.5.0" -caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001135: - version "1.0.30001143" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001143.tgz#560f2cfb9f313d1d7e52eb8dac0e4e36c8821c0d" - integrity "sha1-Vg8s+58xPR1+UuuNrA5ONsiCHA0= sha512-p/PO5YbwmCpBJPxjOiKBvAlUPgF8dExhfEpnsH+ys4N/791WHrYrGg0cyHiAURl5hSbx5vIcjKmQAP6sHDYH3w==" +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001219: + version "1.0.30001230" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001230.tgz#8135c57459854b2240b57a4a6786044bdc5a9f71" + integrity sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ== case-sensitive-paths-webpack-plugin@^2.3.0: version "2.3.0" @@ -2338,7 +2331,7 @@ chai@^4.1.2: pathval "^1.1.0" type-detect "^4.0.5" -chalk@^1.1.1, chalk@^1.1.3: +chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= @@ -2366,6 +2359,14 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" +chalk@^4.1.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chardet@^0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" @@ -2386,6 +2387,21 @@ check-types@^8.0.3: resolved "https://registry.yarnpkg.com/check-types/-/check-types-8.0.3.tgz#3356cca19c889544f2d7a95ed49ce508a0ecf552" integrity sha512-YpeKZngUmG65rLudJ4taU7VLkOCTMhNl/u4ctNC56LQS/zJTyNH0Lrtwm1tfTsbLlwvlfsA2d1c8vCf/Kh2KwQ== +"chokidar@>=3.0.0 <4.0.0": + version "3.5.2" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75" + integrity sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + chokidar@^2.0.2, chokidar@^2.1.8: version "2.1.8" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917" @@ -2479,6 +2495,13 @@ cli-cursor@^2.1.0: dependencies: restore-cursor "^2.0.0" +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + cli-highlight@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/cli-highlight/-/cli-highlight-2.1.4.tgz#098cb642cf17f42adc1c1145e07f960ec4d7522b" @@ -2496,11 +2519,21 @@ cli-spinners@^2.0.0: resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.4.0.tgz#c6256db216b878cfba4720e719cec7cf72685d7f" integrity sha512-sJAofoarcm76ZGpuooaO0eDy8saEy+YoZBLjC4h8srt4jeBnkYeOgqxgsJQTpyt2LjI5PTfLJHSL+41Yu4fEJA== +cli-spinners@^2.2.0: + version "2.6.1" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d" + integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g== + cli-width@^2.0.0: version "2.2.1" resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== + clipboardy@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-2.3.0.tgz#3c2903650c68e46a91b388985bc2774287dba290" @@ -2537,15 +2570,6 @@ cliui@^6.0.0: strip-ansi "^6.0.0" wrap-ansi "^6.2.0" -clone-deep@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" - integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== - dependencies: - is-plain-object "^2.0.4" - kind-of "^6.0.2" - shallow-clone "^3.0.0" - clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" @@ -2603,9 +2627,9 @@ color-name@^1.0.0, color-name@~1.1.4: integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== color-string@^1.5.2: - version "1.5.3" - resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.3.tgz#c9bbc5f01b58b5492f3d6857459cb6590ce204cc" - integrity sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw== + version "1.5.5" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.5.tgz#65474a8f0e7439625f3d27a6a19d89fc45223014" + integrity sha512-jgIoum0OfQfq9Whcfc2z/VhCNcmQjWbey6qBX0vqt7YICflUmBCh9E9CiQD5GSJ+Uehixm3NUwHVhqUAWRivZg== dependencies: color-name "^1.0.0" simple-swizzle "^0.2.2" @@ -2618,10 +2642,10 @@ color@^3.0.0: color-convert "^1.9.1" color-string "^1.5.2" -colorette@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.1.tgz#4d0b921325c14faf92633086a536db6e89564b1b" - integrity sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw== +colorette@^1.2.1, colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w== combined-stream@^1.0.6, combined-stream@~1.0.6: version "1.0.8" @@ -2645,6 +2669,11 @@ commander@^2.18.0, commander@^2.19.0, commander@^2.20.0: resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== +commander@^4.0.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" + integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== + commander@~2.19.0: version "2.19.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" @@ -2722,11 +2751,6 @@ console-browserify@^1.1.0: resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336" integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA== -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" - integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= - consolidate@^0.15.1: version "0.15.1" resolved "https://registry.yarnpkg.com/consolidate/-/consolidate-0.15.1.tgz#21ab043235c71a07d45d9aad98593b0dba56bab7" @@ -2872,14 +2896,6 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" - integrity sha1-ElYDfsufDF9549bvE14wdwGEuYI= - dependencies: - lru-cache "^4.0.1" - which "^1.2.9" - 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" @@ -2900,7 +2916,7 @@ cross-spawn@^6.0.0, cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.0: +cross-spawn@^7.0.0, cross-spawn@^7.0.1: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -3101,13 +3117,6 @@ cssstyle@^1.1.1: dependencies: cssom "0.3.x" -currently-unhandled@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" - integrity sha1-mI3zP+qxke95mmE2nddsF635V+o= - dependencies: - array-find-index "^1.0.1" - cyclist@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" @@ -3162,7 +3171,7 @@ debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: dependencies: ms "^2.1.1" -decamelize@^1.1.1, decamelize@^1.1.2, decamelize@^1.2.0: +decamelize@^1.1.1, decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= @@ -3270,11 +3279,6 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o= - depd@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" @@ -3325,9 +3329,9 @@ dns-equal@^1.0.0: integrity sha1-s55/HabrCnW6nBcySzR1PEfgZU0= dns-packet@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-1.3.1.tgz#12aa426981075be500b910eedcd0b47dd7deda5a" - integrity sha512-0UxfQkMhYAUaZI+xrNZOz/as5KgDU0M/fQ9b6SpkyLbk3GEswDi6PADJVaYJradtRVsRIlF1zLyOodbcTCDzUg== + version "1.3.4" + resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-1.3.4.tgz#e3455065824a2507ba886c55a89963bb107dec6f" + integrity sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA== dependencies: ip "^1.1.0" safe-buffer "^5.0.1" @@ -3491,23 +3495,23 @@ ejs@^2.6.1: resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.7.4.tgz#48661287573dcc53e366c7a1ae52c3a120eec9ba" integrity sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA== -electron-to-chromium@^1.3.571: - version "1.3.576" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.576.tgz#2e70234484e03d7c7e90310d7d79fd3775379c34" - integrity "sha1-LnAjRITgPXx+kDENfXn9N3U3nDQ= sha512-uSEI0XZ//5ic+0NdOqlxp0liCD44ck20OAGyLMSymIWTEAtHKVJi6JM18acOnRgUgX7Q65QqnI+sNncNvIy8ew==" +electron-to-chromium@^1.3.723: + version "1.3.738" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.738.tgz#aec24b091c82acbfabbdcce08076a703941d17ca" + integrity sha512-vCMf4gDOpEylPSLPLSwAEsz+R3ShP02Y3cAKMZvTqule3XcPp7tgc/0ESI7IS6ZeyBlGClE50N53fIOkcIVnpw== elliptic@^6.5.3: - version "6.5.3" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6" - integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw== + version "6.5.4" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== dependencies: - bn.js "^4.4.0" - brorand "^1.0.1" + bn.js "^4.11.9" + brorand "^1.1.0" 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" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" emoji-regex@^7.0.1: version "7.0.3" @@ -3625,10 +3629,10 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" -escalade@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.0.tgz#e8e2d7c7a8b76f6ee64c2181d6b8151441602d4e" - integrity sha512-mAk+hPSO8fLDkhV7V0dXazH5pDc6MrjBTPyD3VeKzxnVFjH1MIxbCdqGZB9O8+EwWakZs3ZCbDS4IpRt79V1ig== +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== escape-html@~1.0.3: version "1.0.3" @@ -3652,6 +3656,11 @@ escodegen@^1.11.0: optionalDependencies: source-map "~0.6.1" +eslint-config-prettier@^8.3.0: + version "8.3.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a" + integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew== + eslint-config-standard@^12.0.0: version "12.0.0" resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-12.0.0.tgz#638b4c65db0bd5a41319f96bba1f15ddad2107d9" @@ -3747,6 +3756,22 @@ eslint-plugin-vue@^5.2.2: dependencies: vue-eslint-parser "^5.0.0" +eslint-prettier-config@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/eslint-prettier-config/-/eslint-prettier-config-1.0.1.tgz#1247b6c6ef70b0e8f23668309973f8a5175439d7" + integrity sha512-W6gTfwTtwyuIn/1ct73O9L8PNAf6AhYt/SIr4q4l1ESNVy44y65xHzoGncDT4qNyU1HUkVEfhXPMCdiD1XHn9A== + dependencies: + chalk "^3.0.0" + commander "^4.0.1" + cross-spawn "^7.0.1" + eslint "^6.6.0" + esm "^3.2.25" + fs-extra "^8.1.0" + inquirer "^7.0.0" + ora "^4.0.3" + path "^0.12.7" + prettier "^1.19.1" + eslint-scope@^3.7.1: version "3.7.3" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.3.tgz#bb507200d3d17f60247636160b4826284b108535" @@ -3763,7 +3788,15 @@ eslint-scope@^4.0.0, eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-utils@^1.3.1, eslint-utils@^1.4.2: +eslint-scope@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + +eslint-utils@^1.3.1, eslint-utils@^1.4.2, eslint-utils@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== @@ -3861,6 +3894,54 @@ eslint@^5.16.0: table "^5.2.3" text-table "^0.2.0" +eslint@^6.6.0: + version "6.8.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb" + integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig== + dependencies: + "@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" + +esm@^3.2.25: + version "3.2.25" + resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.25.tgz#342c18c29d56157688ba5ce31f8431fbb795cc10" + integrity sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA== + espree@^3.5.2, espree@^3.5.4: version "3.5.4" resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.4.tgz#b0f447187c8a8bed944b815a660bddf5deb5d1a7" @@ -3887,6 +3968,15 @@ espree@^5.0.1: acorn-jsx "^5.0.0" eslint-visitor-keys "^1.0.0" +espree@^6.1.2: + version "6.2.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz#77fc72e1fd744a2052c20f38a5b575832e82734a" + integrity sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw== + dependencies: + acorn "^7.1.1" + acorn-jsx "^5.2.0" + eslint-visitor-keys "^1.1.0" + esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" @@ -3899,7 +3989,7 @@ esquery@^1.0.0, esquery@^1.0.1: dependencies: estraverse "^5.1.0" -esrecurse@^4.1.0: +esrecurse@^4.1.0, esrecurse@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== @@ -4172,6 +4262,13 @@ figures@^2.0.0: dependencies: escape-string-regexp "^1.0.5" +figures@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" + integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + 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" @@ -4325,9 +4422,9 @@ flush-write-stream@^1.0.0: readable-stream "^2.3.6" follow-redirects@^1.0.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db" - integrity sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA== + version "1.14.8" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc" + integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA== for-in@^1.0.2: version "1.0.2" @@ -4382,6 +4479,15 @@ fs-extra@^7.0.1: jsonfile "^4.0.0" universalify "^0.1.0" +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs-minipass@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" @@ -4417,15 +4523,10 @@ fsevents@~2.1.2: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e" integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== -fstream@^1.0.0, fstream@^1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045" - integrity sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg== - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" +fsevents@~2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== function-bind@^1.1.1: version "1.1.1" @@ -4437,27 +4538,6 @@ functional-red-black-tree@^1.0.1: resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= - 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" - -gaze@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/gaze/-/gaze-1.1.3.tgz#c441733e13b927ac8c0ff0b4c3b033f28812924a" - integrity sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g== - dependencies: - globule "^1.0.0" - gensync@^1.0.0-beta.1: version "1.0.0-beta.1" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz#58f4361ff987e5ff6e1e7a210827aa371eaac269" @@ -4478,11 +4558,6 @@ get-func-name@^2.0.0: resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41" integrity sha1-6td0q+5y4gQJQzoGY2YCPdaIekE= -get-stdin@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" - integrity sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4= - get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -4522,6 +4597,13 @@ glob-parent@^3.1.0: is-glob "^3.1.0" path-dirname "^1.0.0" +glob-parent@^5.0.0, glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + glob-parent@~5.1.0: version "5.1.1" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" @@ -4546,7 +4628,7 @@ glob@7.1.2: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.0.0, glob@^7.0.3, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@~7.1.1: +glob@^7.0.3, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== @@ -4563,6 +4645,13 @@ globals@^11.0.1, globals@^11.1.0, globals@^11.7.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== +globals@^12.1.0: + version "12.4.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" + integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== + dependencies: + type-fest "^0.8.1" + globby@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" @@ -4600,20 +4689,16 @@ globby@^9.2.0: pify "^4.0.1" slash "^2.0.0" -globule@^1.0.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/globule/-/globule-1.3.2.tgz#d8bdd9e9e4eef8f96e245999a5dee7eb5d8529c4" - integrity sha512-7IDTQTIu2xzXkT+6mlluidnWo+BypnbSoEVVQCGfzqnl5Ik8d3e1d4wycb8Rj9tWW+Z39uPWsdlquqiqPCd/pA== - dependencies: - glob "~7.1.1" - lodash "~4.17.10" - minimatch "~3.0.2" - graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.2: version "4.2.4" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== +graceful-fs@^4.2.0: + version "4.2.8" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a" + integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg== + growl@1.10.5: version "1.10.5" resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" @@ -4667,11 +4752,6 @@ has-symbols@^1.0.1: resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= - has-value@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" @@ -4757,7 +4837,7 @@ highlight.js@^9.6.0: resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.3.tgz#a1a0a2028d5e3149e2380f8a865ee8516703d634" integrity sha512-zBZAmhSupHIl5sITeMqIJnYCDfAEc3Gdkqj65wC1lpI468MMQeeQkhcIAvk+RylAkxrCcI9xy9piHiXeQ1BdzQ== -hmac-drbg@^1.0.0: +hmac-drbg@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= @@ -4772,9 +4852,9 @@ hoopy@^0.1.4: integrity sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ== hosted-git-info@^2.1.4: - version "2.8.8" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" - integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg== + version "2.8.9" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" + integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== hpack.js@^2.1.6: version "2.1.6" @@ -5023,18 +5103,6 @@ imurmurhash@^0.1.4: resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= -in-publish@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.1.tgz#948b1a535c8030561cea522f73f78f4be357e00c" - integrity sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ== - -indent-string@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" - integrity sha1-ji1INIdCEhtKghi3oTfppSBJ3IA= - dependencies: - repeating "^2.0.0" - indent-string@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" @@ -5058,7 +5126,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -5117,6 +5185,25 @@ inquirer@^6.2.2: strip-ansi "^5.1.0" through "^2.3.6" +inquirer@^7.0.0: + version "7.3.3" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.3.3.tgz#04d176b2af04afc157a83fd7c100e98ee0aad003" + integrity sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.19" + mute-stream "0.0.8" + run-async "^2.4.0" + rxjs "^6.6.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + internal-ip@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-4.3.0.tgz#845452baad9d2ca3b69c635a137acb9a0dad0907" @@ -5303,11 +5390,6 @@ is-extglob@^2.1.0, is-extglob@^2.1.1: resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= -is-finite@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3" - integrity sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w== - 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" @@ -5339,6 +5421,11 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + is-negative-zero@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.0.tgz#9553b121b0fac28869da9ed459e20c7543788461" @@ -5438,11 +5525,6 @@ is-typedarray@~1.0.0: resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= -is-utf8@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" - integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= - is-whitespace@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/is-whitespace/-/is-whitespace-0.3.0.tgz#1639ecb1be036aec69a54cbb401cfbed7114ab7f" @@ -5505,11 +5587,6 @@ jest-worker@^25.4.0: merge-stream "^2.0.0" supports-color "^7.0.0" -js-base64@^2.1.8: - version "2.6.4" - resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4" - integrity sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ== - js-beautify@^1.6.12: version "1.13.0" resolved "https://registry.yarnpkg.com/js-beautify/-/js-beautify-1.13.0.tgz#a056d5d3acfd4918549aae3ab039f9f3c51eebb2" @@ -5708,6 +5785,11 @@ kind-of@^6.0.0, kind-of@^6.0.2: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== +klona@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.4.tgz#7bb1e3affb0cb8624547ef7e8f6708ea2e39dfc0" + integrity sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA== + launch-editor-middleware@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/launch-editor-middleware/-/launch-editor-middleware-2.2.1.tgz#e14b07e6c7154b0a4b86a0fd345784e45804c157" @@ -5755,17 +5837,6 @@ lines-and-columns@^1.1.6: resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= -load-json-file@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" - integrity sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA= - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - pinkie-promise "^2.0.0" - strip-bom "^2.0.0" - 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" @@ -5808,6 +5879,15 @@ loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3, loader-utils@^1.4 emojis-list "^3.0.0" json5 "^1.0.1" +loader-utils@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.0.tgz#e4cace5b816d425a166b5f097e10cd12b36064b0" + integrity sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + locate-path@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" @@ -5866,10 +5946,10 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.3.0, lodash@~4.17.10: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== +lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.3.0: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== log-symbols@^2.2.0: version "2.2.0" @@ -5878,6 +5958,13 @@ log-symbols@^2.2.0: dependencies: chalk "^2.0.1" +log-symbols@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" + integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== + dependencies: + chalk "^2.4.2" + loglevel@^1.6.8: version "1.7.0" resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.7.0.tgz#728166855a740d59d38db01cf46f042caa041bb0" @@ -5890,14 +5977,6 @@ loose-envify@^1.0.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" -loud-rejection@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" - integrity sha1-W0b4AUft7leIcPCG0Eghz5mOVR8= - dependencies: - currently-unhandled "^0.4.1" - signal-exit "^3.0.0" - lower-case@^1.1.1: version "1.1.4" resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" @@ -5918,6 +5997,13 @@ lru-cache@^5.1.1: dependencies: yallist "^3.0.2" +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + make-dir@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -5945,11 +6031,6 @@ map-cache@^0.2.2: resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= -map-obj@^1.0.0, map-obj@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= - map-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" @@ -6006,22 +6087,6 @@ memory-fs@^0.5.0: errno "^0.1.3" readable-stream "^2.0.1" -meow@^3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" - integrity sha1-cstmi0JSKCkKu/qFaJJYcwioAfs= - dependencies: - camelcase-keys "^2.0.0" - decamelize "^1.1.2" - loud-rejection "^1.0.0" - map-obj "^1.0.1" - minimist "^1.1.3" - normalize-package-data "^2.3.4" - object-assign "^4.0.1" - read-pkg-up "^1.0.1" - redent "^1.0.0" - trim-newlines "^1.0.0" - merge-descriptors@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" @@ -6128,12 +6193,12 @@ minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== -minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: +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" integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= -minimatch@3.0.4, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.2: +minimatch@3.0.4, minimatch@^3.0.2, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== @@ -6145,7 +6210,7 @@ minimist@0.0.8: resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= -minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5: +minimist@^1.2.0, minimist@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== @@ -6209,7 +6274,7 @@ mkdirp@0.5.1: dependencies: minimist "0.0.8" -"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@^0.5.3, mkdirp@^0.5.5, mkdirp@~0.5.1: +mkdirp@^0.5.1, mkdirp@^0.5.3, mkdirp@^0.5.5, mkdirp@~0.5.1: version "0.5.5" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== @@ -6306,6 +6371,11 @@ mute-stream@0.0.7: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + mz@^2.4.0: version "2.7.0" resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" @@ -6315,7 +6385,7 @@ mz@^2.4.0: object-assign "^4.0.1" thenify-all "^1.0.0" -nan@^2.12.1, nan@^2.13.2: +nan@^2.12.1: version "2.14.1" resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01" integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw== @@ -6347,7 +6417,7 @@ negotiator@0.6.2: resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== -neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1: +neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1, neo-async@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== @@ -6369,24 +6439,6 @@ node-forge@^0.10.0: resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz#32dea2afb3e9926f02ee5ce8794902691a676bf3" integrity "sha1-Mt6ir7Ppkm8C7lzoeUkCaRpna/M= sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==" -node-gyp@^3.8.0: - version "3.8.0" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.8.0.tgz#540304261c330e80d0d5edce253a68cb3964218c" - integrity sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA== - dependencies: - fstream "^1.0.0" - glob "^7.0.3" - graceful-fs "^4.1.2" - mkdirp "^0.5.0" - nopt "2 || 3" - npmlog "0 || 1 || 2 || 3 || 4" - osenv "0" - request "^2.87.0" - rimraf "2" - semver "~5.3.0" - tar "^2.0.0" - which "1" - node-ipc@^9.1.1: version "9.1.1" resolved "https://registry.yarnpkg.com/node-ipc/-/node-ipc-9.1.1.tgz#4e245ed6938e65100e595ebc5dc34b16e8dd5d69" @@ -6425,46 +6477,16 @@ node-libs-browser@^2.2.1: util "^0.11.0" vm-browserify "^1.0.1" -node-releases@^1.1.61: - version "1.1.61" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.61.tgz#707b0fca9ce4e11783612ba4a2fcba09047af16e" - integrity sha512-DD5vebQLg8jLCOzwupn954fbIiZht05DAZs0k2u8NStSe6h9XdsuIQL8hSRKYiU8WUQRznmSDrKGbv3ObOmC7g== - -node-sass@^4.13.1: - version "4.14.1" - resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.14.1.tgz#99c87ec2efb7047ed638fb4c9db7f3a42e2217b5" - integrity sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g== - dependencies: - async-foreach "^0.1.3" - chalk "^1.1.1" - cross-spawn "^3.0.0" - gaze "^1.0.0" - get-stdin "^4.0.1" - glob "^7.0.3" - in-publish "^2.0.0" - lodash "^4.17.15" - meow "^3.7.0" - mkdirp "^0.5.1" - nan "^2.13.2" - node-gyp "^3.8.0" - npmlog "^4.0.0" - request "^2.88.0" - sass-graph "2.2.5" - stdout-stream "^1.4.0" - "true-case-path" "^1.0.2" +node-releases@^1.1.71: + version "1.1.72" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.72.tgz#14802ab6b1039a79a0c7d662b610a5bbd76eacbe" + integrity sha512-LLUo+PpH3dU6XizX3iVoubUNheF/owjXCZZ5yACDxNnPtgFuludV1ZL3ayK1kVep42Rmm0+R9/Y60NQbZ2bifw== nodent-runtime@^3.0.3: version "3.2.1" resolved "https://registry.yarnpkg.com/nodent-runtime/-/nodent-runtime-3.2.1.tgz#9e2755d85e39f764288f0d4752ebcfe3e541e00e" integrity sha512-7Ws63oC+215smeKJQCxzrK21VFVlCFBkwl0MOObt0HOpVQXs3u483sAmtkF33nNqZ5rSOQjB76fgyPBmAUrtCA== -"nopt@2 || 3": - version "3.0.6" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" - integrity sha1-xkZdvwirzU2zWTF/eaxopkayj/k= - dependencies: - abbrev "1" - nopt@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/nopt/-/nopt-5.0.0.tgz#530942bb58a512fccafe53fe210f13a25355dc88" @@ -6472,7 +6494,7 @@ nopt@^5.0.0: dependencies: abbrev "1" -normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.5.0: +normalize-package-data@^2.3.2, normalize-package-data@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== @@ -6533,16 +6555,6 @@ npm-run-path@^4.0.0: dependencies: path-key "^3.0.0" -"npmlog@0 || 1 || 2 || 3 || 4", npmlog@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - nth-check@^1.0.2, nth-check@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" @@ -6706,7 +6718,7 @@ opn@^5.5.0: dependencies: is-wsl "^1.1.0" -optionator@^0.8.1, optionator@^0.8.2: +optionator@^0.8.1, optionator@^0.8.2, optionator@^0.8.3: version "0.8.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== @@ -6730,6 +6742,20 @@ ora@^3.4.0: strip-ansi "^5.2.0" wcwidth "^1.0.1" +ora@^4.0.3: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ora/-/ora-4.1.1.tgz#566cc0348a15c36f5f0e979612842e02ba9dddbc" + integrity sha512-sjYP8QyVWBpBZWD6Vr1M/KwknSw6kJOz41tvGMlwWeClHBtYKTbHMki1PsLZnxKpXMPbTKv9b3pjQu3REib96A== + dependencies: + chalk "^3.0.0" + cli-cursor "^3.1.0" + cli-spinners "^2.2.0" + is-interactive "^1.0.0" + log-symbols "^3.0.0" + mute-stream "0.0.8" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + original@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/original/-/original-1.0.2.tgz#e442a61cffe1c5fd20a65f3261c26663b303f25f" @@ -6742,11 +6768,6 @@ os-browserify@^0.3.0: resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc= -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= - os-locale@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" @@ -6756,19 +6777,11 @@ os-locale@^3.1.0: lcid "^2.0.0" mem "^4.0.0" -os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: +os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= -osenv@0: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - p-defer@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" @@ -6992,24 +7005,15 @@ path-key@^3.0.0, path-key@^3.1.0: integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== path-parse@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" - integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== path-to-regexp@0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= -path-type@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" - integrity sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE= - dependencies: - graceful-fs "^4.1.2" - pify "^2.0.0" - pinkie-promise "^2.0.0" - path-type@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" @@ -7024,10 +7028,18 @@ path-type@^3.0.0: dependencies: pify "^3.0.0" +path@^0.12.7: + version "0.12.7" + resolved "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f" + integrity sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8= + dependencies: + process "^0.11.1" + util "^0.10.3" + pathval@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0" - integrity sha1-uULm1L3mUwBe9rcTYd74cn0GReA= + version "1.1.1" + resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" + integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== pbkdf2@^3.0.3: version "3.1.1" @@ -7464,9 +7476,9 @@ postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0: integrity sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ== postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6: - version "7.0.35" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.35.tgz#d2be00b998f7f211d8a276974079f2e92b970e24" - integrity "sha1-0r4AuZj38hHYonaXQHny6SuXDiQ= sha512-3QT8bBJeX/S5zKTTjTCIjRF3If4avAT6kqxcASlTWEtAFCb9NH0OUxNDfgZSWdP5fJnBYCMEWkIFfWeugjzYMg==" + version "7.0.36" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.36.tgz#056f8cffa939662a8f5905950c07d5285644dfcb" + integrity sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw== dependencies: chalk "^2.4.2" source-map "^0.6.1" @@ -7482,7 +7494,12 @@ prepend-http@^1.0.0: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= -prettier@^1.18.2: +prettier@2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a" + integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg== + +prettier@^1.18.2, prettier@^1.19.1: version "1.19.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== @@ -7509,7 +7526,7 @@ process-nextick-args@~2.0.0: resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== -process@^0.11.10: +process@^0.11.1, process@^0.11.10: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= @@ -7672,14 +7689,6 @@ raw-body@2.4.0: iconv-lite "0.4.24" unpipe "1.0.0" -read-pkg-up@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" - integrity sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI= - dependencies: - find-up "^1.0.0" - read-pkg "^1.0.0" - 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" @@ -7688,15 +7697,6 @@ read-pkg-up@^2.0.0: find-up "^2.0.0" read-pkg "^2.0.0" -read-pkg@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" - integrity sha1-9f+qXs0pyzHAR0vKfXVra7KePyg= - dependencies: - load-json-file "^1.0.0" - normalize-package-data "^2.3.2" - path-type "^1.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" @@ -7716,7 +7716,7 @@ read-pkg@^5.1.1: parse-json "^5.0.0" type-fest "^0.6.0" -"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@~2.3.6: +"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@~2.3.6: version "2.3.7" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== @@ -7754,13 +7754,12 @@ readdirp@~3.4.0: dependencies: picomatch "^2.2.1" -redent@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" - integrity sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94= +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== dependencies: - indent-string "^2.1.0" - strip-indent "^1.0.1" + picomatch "^2.2.1" regenerate-unicode-properties@^8.2.0: version "8.2.0" @@ -7872,13 +7871,6 @@ repeat-string@^1.6.1: resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= - dependencies: - is-finite "^1.0.0" - request-promise-core@1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.4.tgz#3eedd4223208d419867b78ce815167d10593a22f" @@ -7991,6 +7983,14 @@ restore-cursor@^2.0.0: onetime "^2.0.0" signal-exit "^3.0.2" +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" @@ -8011,13 +8011,6 @@ rgba-regex@^1.0.0: resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3" integrity sha1-QzdOLiyglosO8VI0YLfXMP8i7rM= -rimraf@2, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.3, rimraf@^2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== - dependencies: - glob "^7.1.3" - rimraf@2.6.3, rimraf@~2.6.2: version "2.6.3" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" @@ -8025,6 +8018,13 @@ rimraf@2.6.3, rimraf@~2.6.2: dependencies: glob "^7.1.3" +rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.3, rimraf@^2.7.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" @@ -8033,7 +8033,7 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -run-async@^2.2.0: +run-async@^2.2.0, run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== @@ -8064,6 +8064,13 @@ rxjs@^6.4.0: dependencies: tslib "^1.9.0" +rxjs@^6.6.0: + version "6.6.7" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== + dependencies: + tslib "^1.9.0" + safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -8086,26 +8093,23 @@ safe-regex@^1.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -sass-graph@2.2.5: - version "2.2.5" - resolved "https://registry.yarnpkg.com/sass-graph/-/sass-graph-2.2.5.tgz#a981c87446b8319d96dce0671e487879bd24c2e8" - integrity sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag== +sass-loader@^10.1.1: + version "10.2.0" + resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-10.2.0.tgz#3d64c1590f911013b3fa48a0b22a83d5e1494716" + integrity sha512-kUceLzC1gIHz0zNJPpqRsJyisWatGYNFRmv2CKZK2/ngMJgLqxTbXwe/hJ85luyvZkgqU3VlJ33UVF2T/0g6mw== dependencies: - glob "^7.0.0" - lodash "^4.0.0" - scss-tokenizer "^0.2.3" - yargs "^13.3.2" + klona "^2.0.4" + loader-utils "^2.0.0" + neo-async "^2.6.2" + schema-utils "^3.0.0" + semver "^7.3.2" -sass-loader@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-8.0.2.tgz#debecd8c3ce243c76454f2e8290482150380090d" - integrity sha512-7o4dbSK8/Ol2KflEmSco4jTjQoV988bM82P9CZdmo9hR3RLnvNc0ufMNdMrB0caq38JQ/FgF4/7RcbcfKzxoFQ== +sass@^1.42.1: + version "1.42.1" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.42.1.tgz#5ab17bebc1cb1881ad2e0c9a932c66ad64e441e2" + integrity sha512-/zvGoN8B7dspKc5mC6HlaygyCBRvnyzzgD5khiaCfglWztY99cYoiTUksVx11NlnemrcfH5CEaCpsUKoW0cQqg== dependencies: - clone-deep "^4.0.1" - loader-utils "^1.2.3" - neo-async "^2.6.1" - schema-utils "^2.6.1" - semver "^6.3.0" + chokidar ">=3.0.0 <4.0.0" sax@~1.2.4: version "1.2.4" @@ -8128,7 +8132,7 @@ schema-utils@^1.0.0: ajv-errors "^1.0.0" ajv-keywords "^3.1.0" -schema-utils@^2.0.0, schema-utils@^2.5.0, schema-utils@^2.6.1, schema-utils@^2.6.5, schema-utils@^2.6.6, schema-utils@^2.7.0: +schema-utils@^2.0.0, schema-utils@^2.5.0, schema-utils@^2.6.5, schema-utils@^2.6.6, schema-utils@^2.7.0: version "2.7.1" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.1.tgz#1ca4f32d1b24c590c203b8e7a50bf0ea4cd394d7" integrity sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg== @@ -8137,13 +8141,14 @@ schema-utils@^2.0.0, schema-utils@^2.5.0, schema-utils@^2.6.1, schema-utils@^2.6 ajv "^6.12.4" ajv-keywords "^3.5.2" -scss-tokenizer@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" - integrity sha1-jrBtualyMzOCTT9VMGQRSYR85dE= +schema-utils@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281" + integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw== dependencies: - js-base64 "^2.1.8" - source-map "^0.4.2" + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" select-hose@^2.0.0: version "2.0.0" @@ -8167,15 +8172,17 @@ semver@7.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== -semver@^6.0.0, semver@^6.1.0, semver@^6.3.0: +semver@^6.0.0, semver@^6.1.0, semver@^6.1.2, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@~5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" - integrity sha1-myzl094C0XxgEq0yaqa00M9U+U8= +semver@^7.3.2: + version "7.3.5" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" + integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== + dependencies: + lru-cache "^6.0.0" send@0.17.1: version "0.17.1" @@ -8226,7 +8233,7 @@ serve-static@1.14.1: parseurl "~1.3.3" send "0.17.1" -set-blocking@^2.0.0, 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" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= @@ -8264,13 +8271,6 @@ sha.js@^2.4.0, sha.js@^2.4.8: inherits "^2.0.1" safe-buffer "^5.0.1" -shallow-clone@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" - integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== - dependencies: - kind-of "^6.0.2" - shebang-command@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" @@ -8430,13 +8430,6 @@ source-map-url@^0.4.0: resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= -source-map@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" - integrity sha1-66T12pwNyZneaAMti092FzZSA2s= - dependencies: - amdefine ">=0.0.4" - source-map@^0.5.0, source-map@^0.5.6: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" @@ -8524,9 +8517,9 @@ sshpk@^1.7.0: tweetnacl "~0.14.0" ssri@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8" - integrity sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA== + version "6.0.2" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.2.tgz#157939134f20464e7301ddba3e90ffa8f7728ac5" + integrity sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q== dependencies: figgy-pudding "^3.5.1" @@ -8561,13 +8554,6 @@ static-extend@^0.1.1: resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= -stdout-stream@^1.4.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.1.tgz#5ac174cdd5cd726104aa0c0b2bd83815d8d535de" - integrity sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA== - dependencies: - readable-stream "^2.0.1" - stealthy-require@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" @@ -8619,7 +8605,7 @@ string-width@^1.0.1: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: +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" integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== @@ -8711,13 +8697,6 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" -strip-bom@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" - integrity sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4= - dependencies: - is-utf8 "^0.2.0" - strip-bom@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" @@ -8733,13 +8712,6 @@ strip-final-newline@^2.0.0: resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== -strip-indent@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" - integrity sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI= - dependencies: - get-stdin "^4.0.1" - strip-indent@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" @@ -8750,6 +8722,11 @@ strip-json-comments@^2.0.1, strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= +strip-json-comments@^3.0.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + stylehacks@^4.0.0: version "4.0.3" resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-4.0.3.tgz#6718fcaf4d1e07d8a1318690881e8d96726a71d5" @@ -8848,15 +8825,6 @@ tapable@^1.0.0, tapable@^1.1.3: resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== -tar@^2.0.0: - version "2.2.2" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.2.tgz#0ca8848562c7299b8b446ff6a4d60cdbb23edc40" - integrity sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA== - dependencies: - block-stream "*" - fstream "^1.0.12" - inherits "2" - terser-webpack-plugin@^1.4.3: version "1.4.5" resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.5.tgz#a217aefaea330e734ffacb6120ec1fa312d6040b" @@ -9028,18 +8996,6 @@ tr46@^1.0.1: dependencies: punycode "^2.1.0" -trim-newlines@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" - integrity sha1-WIeWa7WCpFA6QetST301ARgVphM= - -"true-case-path@^1.0.2": - version "1.0.3" - resolved "https://registry.yarnpkg.com/true-case-path/-/true-case-path-1.0.3.tgz#f813b5a8c86b40da59606722b144e3225799f47d" - integrity sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew== - dependencies: - glob "^7.1.2" - tryer@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8" @@ -9094,11 +9050,21 @@ type-detect@^4.0.0, type-detect@^4.0.5: resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + type-fest@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + type-is@~1.6.17, type-is@~1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" @@ -9232,9 +9198,9 @@ url-loader@^2.2.0: schema-utils "^2.5.0" url-parse@^1.4.3: - version "1.4.7" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.4.7.tgz#a8a83535e8c00a316e403a5db4ac1b9b853ae278" - integrity sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg== + version "1.5.10" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" + integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== dependencies: querystringify "^2.1.1" requires-port "^1.0.0" @@ -9282,6 +9248,13 @@ util@0.10.3: dependencies: inherits "2.0.1" +util@^0.10.3: + version "0.10.4" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" + integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A== + dependencies: + inherits "2.0.3" + util@^0.11.0: version "0.11.1" resolved "https://registry.yarnpkg.com/util/-/util-0.11.1.tgz#3236733720ec64bb27f6e26f421aaa2e1b588d61" @@ -9304,6 +9277,11 @@ uuid@^3.3.2, uuid@^3.4.0: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== +v8-compile-cache@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" + integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== + validate-npm-package-license@^3.0.1: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" @@ -9626,7 +9604,7 @@ which-module@^2.0.0: resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= -which@1, which@^1.2.9: +which@^1.2.9: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== @@ -9640,13 +9618,6 @@ which@^2.0.1: dependencies: isexe "^2.0.0" -wide-align@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" - integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== - dependencies: - string-width "^1.0.2 || 2" - word-wrap@~1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" @@ -9705,9 +9676,9 @@ write@^0.2.1: mkdirp "^0.5.1" ws@^6.0.0, ws@^6.1.2, ws@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb" - integrity sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA== + version "6.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e" + integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw== dependencies: async-limiter "~1.0.0" @@ -9727,9 +9698,9 @@ xtend@^4.0.0, xtend@~4.0.1: integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== y18n@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" - integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= + version "3.2.2" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.2.tgz#85c901bd6470ce71fc4bb723ad209b70f7f28696" + integrity sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ== y18n@^4.0.0: version "4.0.0"