diff --git a/CHANGELOG.md b/CHANGELOG.md index c1587c9..ba52438 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ *Written according to [Keep a changelog](https://keepachangelog.com/en/1.0.0/) guidelines and [semantic versioning](https://semver.org/)*. +## [1.0.0-alpha.4](https://github.com/dictoapp/dicto/tree/1.0.0-alpha.4) - ?? + +### Fixed + +* fix layout issues in firefox +* fix bug with some media metadata retrieval processes +* fix multiple chunks delete bug + +### Changed + +* use an open source maps engine + +### Added + +* timecode display and tooltips in montage player +* display version number in home + ## [1.0.0-alpha.3](https://github.com/dictoapp/dicto/tree/1.0.0-alpha.3) - 2018-09-28 ### Fixed diff --git a/app/electronIndex.html b/app/electronIndex.html index 48180f0..a25ff0c 100644 --- a/app/electronIndex.html +++ b/app/electronIndex.html @@ -31,22 +31,22 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + @@ -60,11 +60,11 @@

DICTO

- + diff --git a/app/index.html b/app/index.html index 9070119..6109083 100644 --- a/app/index.html +++ b/app/index.html @@ -70,7 +70,7 @@

DICTO

window.__DICTO_VERSION__ = ''; window.__SOURCE_REPOSITORY__ = ''; - + diff --git a/app/src/components/ChunkContentEditor/ChunkContentEditor.scss b/app/src/components/ChunkContentEditor/ChunkContentEditor.scss index 860f957..55cf2ac 100644 --- a/app/src/components/ChunkContentEditor/ChunkContentEditor.scss +++ b/app/src/components/ChunkContentEditor/ChunkContentEditor.scss @@ -222,4 +222,10 @@ cursor: pointer; } } + + &.expanded{ + .main-editor-container textarea{ + height: 100%!important; + } + } } diff --git a/app/src/components/CorpusPlayer/SpaceView.js b/app/src/components/CorpusPlayer/SpaceView.js index aebf532..7717066 100644 --- a/app/src/components/CorpusPlayer/SpaceView.js +++ b/app/src/components/CorpusPlayer/SpaceView.js @@ -1,7 +1,5 @@ import React from 'react'; -import GMap from 'google-map-react'; - import { extent, mean, @@ -9,8 +7,8 @@ import { import { nest } from 'd3-collection'; import { scaleLinear } from 'd3-scale'; -import getConfig from '../../helpers/getConfig'; -const { googleApiKey } = getConfig(); +import Map from 'pigeon-maps' +import Overlay from 'pigeon-overlay' import { mapToArray, @@ -27,7 +25,9 @@ const LocalizationMarker = ( { location, tags = [], onClick, - tagCategories = {} + tagCategories = {}, + lat, + lng, } ) => { let color = 'white'; if ( tags.length ) { @@ -126,28 +126,32 @@ const SpaceView = ( {
- { places.map( ( place, index ) => { const onClick = () => addPlaylistBuilder( 'place', place ); return ( - + anchor={ [ place.location.latitude, place.location.longitude ] } + > + + ); } ) } - +
diff --git a/app/src/components/LocationPicker/LocationPicker.js b/app/src/components/LocationPicker/LocationPicker.js index 6754c96..53978fb 100644 --- a/app/src/components/LocationPicker/LocationPicker.js +++ b/app/src/components/LocationPicker/LocationPicker.js @@ -1,10 +1,9 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import PlacesAutocomplete, { geocodeByAddress, getLatLng } from 'react-places-autocomplete'; -import GMap from 'google-map-react'; -import getConfig from '../../helpers/getConfig'; -const { googleApiKey } = getConfig(); +import Map from 'pigeon-maps' +import Overlay from 'pigeon-overlay' const Marker = () => ( @@ -123,7 +122,9 @@ export default class LocationPickerContainer extends Component { } ); } - onMapChange = ( { center: { lat, lng } } ) => { + onMapChange = ( { center } ) => { + const lat = center[0]; + const lng = center[1]; this.setState( { latitude: lat, longitude: lng, @@ -328,27 +329,25 @@ export default class LocationPickerContainer extends Component { latitude && longitude &&
- { location && location.latitude && location.latitude !== latitude && location.longitude !== longitude && - + + + + } - - + + + +
} diff --git a/app/src/components/MediaEditor/MediaEditor.js b/app/src/components/MediaEditor/MediaEditor.js index fe24725..4d91cd0 100644 --- a/app/src/components/MediaEditor/MediaEditor.js +++ b/app/src/components/MediaEditor/MediaEditor.js @@ -58,22 +58,38 @@ export default class MediaEditor extends Component { const onChange = ( metadata ) => { return new Promise( ( resolve ) => { + const newMetadata = { + ...this.state.media.metadata, + ...metadata + }; const thatMedia = { ...this.state.media, - metadata + metadata: newMetadata }; + this.setState( { + media: { + ...thatMedia, + } + } ); if ( this.state.media && this.state.media.metadata && metadata.mediaUrl !== this.state.media.metadata.mediaUrl ) { + enrichMediaMetadata( thatMedia ) .then( ( thatMetadata ) => { this.setState( { media: { ...thatMedia, - metadata: thatMetadata + metadata: { + ...newMetadata, + ...thatMetadata + } } } ); - resolve( thatMetadata ); + resolve( { + ...newMetadata, + ...thatMetadata + } ); } ) .catch( console.error );/* eslint no-console : 0 */ } @@ -81,7 +97,7 @@ export default class MediaEditor extends Component { this.setState( { media: thatMedia } ); - resolve( thatMedia.metadata ); + resolve( newMetadata ); } } ); }; diff --git a/app/src/components/MontagePlayer/MontagePlayer.js b/app/src/components/MontagePlayer/MontagePlayer.js index 506fa12..bcecb5c 100644 --- a/app/src/components/MontagePlayer/MontagePlayer.js +++ b/app/src/components/MontagePlayer/MontagePlayer.js @@ -13,7 +13,8 @@ import './MontagePlayer.scss'; import 'react-image-gallery/styles/scss/image-gallery.scss'; import { - computePlaylist + computePlaylist, + secsToSrt } from '../../helpers/utils'; const TOLERANCE_SECONDS = 1.1; @@ -461,6 +462,7 @@ export default class MontagePlayer extends Component { > +
+
+ 🕐 + + {currentPosition && currentPosition > 0 ? secsToSrt( parseInt( currentPosition ), false ) : secsToSrt( 0, false )} + / + {duration && duration > 0 ? secsToSrt( parseInt( duration ), false ) : secsToSrt( 0, false )} + + +
diff --git a/app/src/components/MontagePlayer/MontagePlayer.scss b/app/src/components/MontagePlayer/MontagePlayer.scss index 9931e6d..6bc6e53 100644 --- a/app/src/components/MontagePlayer/MontagePlayer.scss +++ b/app/src/components/MontagePlayer/MontagePlayer.scss @@ -248,4 +248,42 @@ border-left: 1px solid red!important; } } + + .time-display { + background: #232323; + color: white; + display: flex; + flex-flow: row nowrap; + align-items: center; + + height: 100%; + border: 1px solid white; + max-height: 100%; + overflow: hidden; + .time-display-anchor{ + padding-left: .3rem; + padding-right: .3rem; + max-width: 2rem; + } + .time-display-value{ + max-width: 0e-6; + transition: all .5s ease; + padding: 0; + display: flex; + flex-flow: row nowrap; + + align-items: center; + justify-content: center; + opacity: 0; + } + &:hover{ + .time-display-value{ + max-width: 100%; + padding-left: 1rem; + padding-right: 1rem; + opacity :1; + } + } + + } } diff --git a/app/src/components/Nav/NavLayout.scss b/app/src/components/Nav/NavLayout.scss index 67abf99..385ac7a 100644 --- a/app/src/components/Nav/NavLayout.scss +++ b/app/src/components/Nav/NavLayout.scss @@ -1,4 +1,7 @@ +.navbar{ + min-height: 4rem; +} .navbar:not([class*=is-]) .navbar-burger span { diff --git a/app/src/components/Railway/Railway.js b/app/src/components/Railway/Railway.js index 2b080ca..a6d3db7 100644 --- a/app/src/components/Railway/Railway.js +++ b/app/src/components/Railway/Railway.js @@ -1,10 +1,18 @@ import React, { Component } from 'react'; import { getEventRelativePosition, + abbrev, } from '../../helpers/utils'; +import CommonMark from 'commonmark'; + +const reader = new CommonMark.Parser(); +const writer = new CommonMark.HtmlRenderer(); + import './Railway.scss'; +import Tooltip from 'react-tooltip'; + export default class Railway extends Component { constructor ( props ) { @@ -13,6 +21,7 @@ export default class Railway extends Component { dragStart: undefined, dragPosition: undefined, dragOnLift: undefined, + tooltipContent: undefined, }; } @@ -27,8 +36,13 @@ export default class Railway extends Component { onDrag, onDragEnd, selectedChunkId, + enableTooltip = false, } = this.props; + const { + tooltipContent + } = this.state; + const silentEvent = ( e ) => { e.stopPropagation(); e.preventDefault(); @@ -76,6 +90,28 @@ export default class Railway extends Component { const onMouseMove = ( e ) => { silentEvent( e ); + if (enableTooltip) { + const { x, y, rect } = getEventRelativePosition( e, 'dicto-Railway' ); + const h = orientation === 'vertical' ? rect.height : rect.width; + const position = orientation === 'vertical' ? y : x; + const thatRatio = position / h; + const realPosition = mediaDuration * thatRatio; + const hoveredChunk = chunks.find(thatChunk => thatChunk.start < realPosition && thatChunk.end > realPosition); + if (hoveredChunk) { + const tooltipFieldId = hoveredChunk.activeFieldId; + let newTooltipContent = hoveredChunk.chunk && hoveredChunk.chunk.fields[tooltipFieldId]; + newTooltipContent = newTooltipContent && abbrev(newTooltipContent.split('\n')[0], 100); + newTooltipContent = newTooltipContent && writer.render(reader.parse(newTooltipContent)); + if (newTooltipContent !== tooltipContent) { + this.setState({ + tooltipContent: newTooltipContent + }); + this.tooltip.tooltipRef.innerHTML = newTooltipContent; + Tooltip.rebuild(); + } + } + } + if ( typeof onDrag === 'function' && this.state.mouseDown && !this.state.dragStart ) { setStartDrag( e ); } @@ -204,6 +240,10 @@ export default class Railway extends Component { return railwayStyle; }; + const bindTooltip = tooltip => { + this.tooltip = tooltip; + } + const timeMarkPosition = `${( mediaCurrentTime / mediaDuration ) * 100 }%`; return ( @@ -214,6 +254,9 @@ export default class Railway extends Component { onMouseMove={ onMouseMove } onWheel={ onMouseWheel } onMouseLeave={ onMouseLeave } + data-tip={tooltipContent} + data-for="railway-tooltip" + data-html={true} > { chunks.map( ( chunk, index ) => { @@ -247,6 +290,7 @@ export default class Railway extends Component { left: orientation === 'horizontal' ? timeMarkPosition : undefined, } } /> +
); } diff --git a/app/src/features/ChunksEdition/components/ChunksEditionLayout.js b/app/src/features/ChunksEdition/components/ChunksEditionLayout.js index 72280e9..2b823cd 100644 --- a/app/src/features/ChunksEdition/components/ChunksEditionLayout.js +++ b/app/src/features/ChunksEdition/components/ChunksEditionLayout.js @@ -183,6 +183,7 @@ export class ChunksEditionLayout extends Component { updateChunk, deleteChunk, + deleteChunks, createTag, updateTag, @@ -716,7 +717,27 @@ export class ChunksEditionLayout extends Component { }; const onDeleteAllChunks = () => { deselectChunk(); - setTimeout( () => chunks.forEach( ( chunk ) => deleteChunk( corpus.metadata.id, chunk.metadata.id ) ) ); + setTimeout( () => { + const chunksIds = chunks.map( ( thatChunk ) => thatChunk.metadata.id ); + console.log( 'chunks ids', chunksIds ); + deleteChunks( corpus.metadata.id, chunksIds ); + + /* + * chunks.reduce( ( curr, chunk ) => { + * return curr.then(() => + * new Promise((resolve, reject) => { + * deleteChunk( corpus.metadata.id, chunk.metadata.id, err => { + * console.log('in callback'); + * if (err) { + * reject(); + * } else resolve() + * } ) + * }) + * ); + */ + + // }, Promise.resolve() ) + } ); }; const onPromptActiveMediaEdition = () => promptMediaEdition( corpusId, activeMedia.metadata.id, activeMedia ); @@ -825,7 +846,16 @@ export class ChunksEditionLayout extends Component { importantOperations={ [] } />
{ diff --git a/app/src/features/ChunksEdition/components/ChunksEditionLayout.scss b/app/src/features/ChunksEdition/components/ChunksEditionLayout.scss index 2da8930..ab798f1 100644 --- a/app/src/features/ChunksEdition/components/ChunksEditionLayout.scss +++ b/app/src/features/ChunksEdition/components/ChunksEditionLayout.scss @@ -7,6 +7,12 @@ .dicto-ChunksEditionLayout { + .hero-body{ + padding-right: 0; + } + > input:last-of-type{ + opacity: 0; + } .media-player-container { overflow: hidden; diff --git a/app/src/features/CompositionEdition/components/CompositionEditionContainer.js b/app/src/features/CompositionEdition/components/CompositionEditionContainer.js index db47b12..5c2277e 100644 --- a/app/src/features/CompositionEdition/components/CompositionEditionContainer.js +++ b/app/src/features/CompositionEdition/components/CompositionEditionContainer.js @@ -128,7 +128,7 @@ class CompositionEditionContainer extends Component { /** * Filtering from corpus only the data which is needed for composition */ - const chunkIds = composition.summary.filter( ( c ) => c.blockType === 'chunk' ).map( ( c ) => c.content ); + const chunkIds = composition.summary.filter( ( c ) => c.blockType === 'chunk' ).map( ( c ) => c.content ).filter( ( chunkId ) => corpus.chunks[chunkId] ) const chunks = chunkIds.reduce( ( res, chunkId ) => ( { ...res, [chunkId]: corpus.chunks[chunkId] diff --git a/app/src/features/CompositionEdition/components/CompositionEditionLayout.js b/app/src/features/CompositionEdition/components/CompositionEditionLayout.js index 708ea65..073a761 100644 --- a/app/src/features/CompositionEdition/components/CompositionEditionLayout.js +++ b/app/src/features/CompositionEdition/components/CompositionEditionLayout.js @@ -593,7 +593,10 @@ const CompositionEditionLayout = ( { -
+
- DICTO alpha + DICTO {__DICTO_VERSION__}

{t( 'dicto-baseline' )}

diff --git a/app/src/features/Layout/components/LayoutLayout.scss b/app/src/features/Layout/components/LayoutLayout.scss index 9bbd198..eeb28ba 100644 --- a/app/src/features/Layout/components/LayoutLayout.scss +++ b/app/src/features/Layout/components/LayoutLayout.scss @@ -18,4 +18,9 @@ width: 100%; height: 100%; + + .hero-body{ + max-height: calc(100% - 4rem) + } + } diff --git a/app/src/helpers/dataClient.js b/app/src/helpers/dataClient.js index c2304bf..29a07ca 100644 --- a/app/src/helpers/dataClient.js +++ b/app/src/helpers/dataClient.js @@ -198,7 +198,7 @@ export const requestCorpusDeletion = ( corpusId ) => { } } -const updateCorpusPartInDb = ( action, reducer ) => { +const updateCorpusPartInDb = ( action, reducer, callback ) => { return new Promise( ( resolve, reject ) => { let newCorporaList; let newCorpus; @@ -236,22 +236,30 @@ const updateCorpusPartInDb = ( action, reducer ) => { } ) } ) .then( () => { + if ( callback ) { + callback( null, newCorpus );; + } return resolve( { data: { success: true, id: newCorpus.metadata.id, corpus: newCorpus, } } ) } ) - .catch( reject ) + .catch( ( err ) => { + if ( callback ) { + callback( err ); + } + reject( err ); + } ) } ) } -export const requestCorpusUpdatePart = ( action, reducer ) => { +export const requestCorpusUpdatePart = ( action, reducer, callback ) => { if ( inElectron ) { - return requestToMain( 'update-corpus-part', { action } ) + return requestToMain( 'update-corpus-part', { action, callback } ) } else { - return updateCorpusPartInDb( action, reducer ); + return updateCorpusPartInDb( action, reducer, callback ); } } diff --git a/app/src/helpers/mediaApis.js b/app/src/helpers/mediaApis.js index b122808..ff4372c 100644 --- a/app/src/helpers/mediaApis.js +++ b/app/src/helpers/mediaApis.js @@ -141,12 +141,12 @@ const getLocalMetadata = ( path ) => { } ); }; -const dailymotionIdRegex = /dailymotion.*\/(.{7})$/i; +const dailymotionIdRegex = /dailymotion.*\/(.{5,7})$/i; const getDailymotionMetadata = ( url ) => { // https://www.dailymotion.com/thumbnail/video/ - return new Promise( ( resolve ) => { let videoId = url.match( dailymotionIdRegex ); + console.log( 'url', url, 'video id', videoId ); if ( videoId !== null ) { videoId = videoId[1]; const endpoint = `https://api.dailymotion.com/video/${videoId}`; @@ -157,8 +157,10 @@ const getDailymotionMetadata = ( url ) => { title: info.title, mediaThumbnailUrl: `https://www.dailymotion.com/thumbnail/video/${videoId}`, } ); - } ); + } ) + .catch( () => resolve( {} ) ) } + else resolve( {} ) } ); }; diff --git a/app/src/redux/duck.js b/app/src/redux/duck.js index 98904d0..ff8fcac 100644 --- a/app/src/redux/duck.js +++ b/app/src/redux/duck.js @@ -62,6 +62,7 @@ export const CREATE_CHUNK = '§dicto/data/CREATE_CHUNK'; export const CREATE_CHUNKS = '§dicto/data/CREATE_CHUNKS'; export const UPDATE_CHUNK = '§dicto/data/UPDATE_CHUNK'; export const DELETE_CHUNK = '§dicto/data/DELETE_CHUNK'; +export const DELETE_CHUNKS = '§dicto/data/DELETE_CHUNKS'; export const CREATE_FIELD = '§dicto/data/CREATE_FIELD'; export const UPDATE_FIELD = '§dicto/data/UPDATE_FIELD'; @@ -330,6 +331,24 @@ function corpora( state = CORPUSES_DEFAULT_STATE, action ) { }, {} ) } }; + + case DELETE_CHUNKS: + return { + ...state, + [payload.corpusId]: { + ...state[payload.corpusId], + chunks: Object.keys( state[payload.corpusId].chunks ) + .reduce( ( result, thatChunkId ) => { + if ( !payload.chunksIds.includes( thatChunkId ) ) { + return { + ...result, + [thatChunkId]: state[payload.corpusId].chunks[thatChunkId] + }; + } + return result; + }, {} ) + } + }; case CREATE_FIELD: return { @@ -598,11 +617,11 @@ export const updateCorpus = ( id, newCorpus ) => { * UPDATE CORPUS ACTIONS */ -const updateCorpusPart = ( action ) => { +const updateCorpusPart = ( action, callback ) => { return { type: action.type, promise: () => { - return requestCorpusUpdatePart( action, corpora ); + return requestCorpusUpdatePart( action, corpora, callback ); }, payload: action.payload } @@ -735,13 +754,21 @@ export const updateChunk = ( corpusId, chunkId, chunk ) => updateCorpusPart ( { } } ); -export const deleteChunk = ( corpusId, chunkId ) => updateCorpusPart ( { +export const deleteChunk = ( corpusId, chunkId, callback ) => updateCorpusPart ( { type: DELETE_CHUNK, payload: { corpusId, chunkId } -} ); +}, callback ); + +export const deleteChunks = ( corpusId, chunksIds, callback ) => updateCorpusPart ( { + type: DELETE_CHUNKS, + payload: { + corpusId, + chunksIds + } +}, callback ); export const createField = ( corpusId, field ) => updateCorpusPart ( { type: CREATE_FIELD, diff --git a/app/src/translations/locales/fr.json b/app/src/translations/locales/fr.json index bae627d..cd2630f 100644 --- a/app/src/translations/locales/fr.json +++ b/app/src/translations/locales/fr.json @@ -9,6 +9,7 @@ "description text attached to the tag": "texte de description attaché à l'étiquette", "start date": "date de début", "mediaUrl": "Adresse du média", + "No excerpts matching search without this tag": "Pas d'extraits non-étiquettés avec cette recherche", "Excerpt already cited in the composition": "Extrait déjà cité dans la composition", "Citation of an excerpt deleted from your corpus": "Citation d'un extrait supprimé de votre corpus", "Corpus was successfully downloaded": "Le corpus a été téléchargé avec succès", diff --git a/docs/build/4d4c009af948cd58ac2157736327b7fc.png b/docs/build/4d4c009af948cd58ac2157736327b7fc.png new file mode 100644 index 0000000..21af295 Binary files /dev/null and b/docs/build/4d4c009af948cd58ac2157736327b7fc.png differ diff --git a/docs/build/5dac1fc110c3be6a55a5c567916041ff.png b/docs/build/5dac1fc110c3be6a55a5c567916041ff.png new file mode 100644 index 0000000..007d02a Binary files /dev/null and b/docs/build/5dac1fc110c3be6a55a5c567916041ff.png differ diff --git a/docs/build/8225687962d5fe36c3032952d9058ec8.png b/docs/build/8225687962d5fe36c3032952d9058ec8.png new file mode 100644 index 0000000..e3b9e42 Binary files /dev/null and b/docs/build/8225687962d5fe36c3032952d9058ec8.png differ diff --git a/docs/build/b20c14dbcb1164fefb93ed4eec8c4fe2.png b/docs/build/b20c14dbcb1164fefb93ed4eec8c4fe2.png new file mode 100644 index 0000000..a6eeff3 Binary files /dev/null and b/docs/build/b20c14dbcb1164fefb93ed4eec8c4fe2.png differ diff --git a/docs/build/bundle.js b/docs/build/bundle.js index 40e03fe..ad5fc09 100644 --- a/docs/build/bundle.js +++ b/docs/build/bundle.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://dictoapp.github.io/dicto/build/",n(n.s=680)}([function(e,t,n){e.exports=n(685)()},function(e,t,n){"use strict";e.exports=n(681)},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function A(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},L={};function J(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(L[e]=a),t&&(L[t[0]]=function(){return _(a.apply(this,arguments),t[1],t[2])}),n&&(L[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e,t){return e.isValid()?(t=W(t,e.localeData()),G[t]=G[t]||function(e){var t,n,r=e.match(U);for(t=0,n=r.length;t=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var K=/\d/,V=/\d\d/,X=/\d{3}/,q=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,ae=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ue(e,t,n){le[e]=S(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return u(le,e)?le[e](t._strict,t._locale):new RegExp(function(e){return fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}(e))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=w(e)}),n=0;n68?1900:2e3)};var Ye,Se=ke("FullYear",!0);function ke(e,t){return function(n){return null!=n?(xe(this,e,n),a.updateOffset(this,t),this):Fe(this,e)}}function Fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function xe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Qe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Qe(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Je(e,t,n){var r=7+t-n,a=(7+Le(e,0,r).getUTCDay()-t)%7;return-a+r-1}function He(e,t,n,r,a){var i,o,s=(7+n-r)%7,c=Je(e,r,a),A=1+7*(t-1)+s+c;return A<=0?o=De(i=e-1)+A:A>De(e)?(i=e+1,o=A-De(e)):(i=e,o=A),{year:i,dayOfYear:o}}function ze(e,t,n){var r,a,i=Je(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?(a=e.year()-1,r=o+We(a,t,n)):o>We(e.year(),t,n)?(r=o-We(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function We(e,t,n){var r=Je(e,t,n),a=Je(e+1,t,n);return(De(e)-r+a)/7}J("w",["ww",2],"wo","week"),J("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),O("week",5),O("isoWeek",5),ue("w",$),ue("ww",$,V),ue("W",$),ue("WW",$,V),ge(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=w(e)}),J("d",0,"do","day"),J("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),J("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),J("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),J("e",0,0,"weekday"),J("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),O("day",11),O("weekday",11),O("isoWeekday",11),ue("d",$),ue("e",$),ue("E",$),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,r){t[r]=w(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=Ae,Ze=Ae,$e=Ae;function et(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],c=[],A=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),i=this.weekdays(n,""),o.push(r),s.push(a),c.push(i),A.push(r),A.push(a),A.push(i);for(o.sort(e),s.sort(e),c.sort(e),A.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),c[t]=fe(c[t]),A[t]=fe(A[t]);this._weekdaysRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){J(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}J("H",["HH",2],0,"hour"),J("h",["hh",2],0,tt),J("k",["kk",2],0,function(){return this.hours()||24}),J("hmm",0,0,function(){return""+tt.apply(this)+_(this.minutes(),2)}),J("hmmss",0,0,function(){return""+tt.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)}),J("Hmm",0,0,function(){return""+this.hours()+_(this.minutes(),2)}),J("Hmmss",0,0,function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)}),nt("a",!0),nt("A",!1),T("hour","h"),O("hour",13),ue("a",rt),ue("A",rt),ue("H",$),ue("h",$),ue("k",$),ue("HH",$,V),ue("hh",$,V),ue("kk",$,V),ue("hmm",ee),ue("hmmss",te),ue("Hmm",ee),ue("Hmmss",te),pe(["H","HH"],ve),pe(["k","kk"],function(e,t,n){var r=w(e);t[ve]=24===r?0:r}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[ve]=w(e),h(n).bigHour=!0}),pe("hmm",function(e,t,n){var r=e.length-2;t[ve]=w(e.substr(0,r)),t[Be]=w(e.substr(r)),h(n).bigHour=!0}),pe("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ve]=w(e.substr(0,r)),t[Be]=w(e.substr(r,2)),t[we]=w(e.substr(a)),h(n).bigHour=!0}),pe("Hmm",function(e,t,n){var r=e.length-2;t[ve]=w(e.substr(0,r)),t[Be]=w(e.substr(r))}),pe("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ve]=w(e.substr(0,r)),t[Be]=w(e.substr(r,2)),t[we]=w(e.substr(a))});var at,it=ke("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Re,monthsShort:je,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Xe,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},st={},ct={};function At(e){return e?e.toLowerCase().replace("_","-"):e}function lt(t){var r=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{r=at._abbr,n(919)("./"+t),ut(r)}catch(e){}return st[t]}function ut(e,t){var n;return e&&((n=s(t)?ft(e):dt(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function dt(e,t){if(null!==t){var n,r=ot;if(t.abbr=e,null!=st[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=lt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new F(k(r,t)),ct[e]&&ct[e].forEach(function(e){dt(e.name,e.config)}),ut(e),st[e]}return delete st[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!i(e)){if(t=lt(e))return t;e=[e]}return function(e){for(var t,n,r,a,i=0;i0;){if(r=lt(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&I(a,n,!0)>=t-1)break;t--}i++}return at}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[Ee]<0||n[Ee]>11?Ee:n[ye]<1||n[ye]>Te(n[be],n[Ee])?ye:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[Be]||0!==n[we]||0!==n[Ie])?ve:n[Be]<0||n[Be]>59?Be:n[we]<0||n[we]>59?we:n[Ie]<0||n[Ie]>999?Ie:-1,h(e)._overflowDayOfYear&&(tye)&&(t=ye),h(e)._overflowWeeks&&-1===t&&(t=Me),h(e)._overflowWeekday&&-1===t&&(t=Ce),h(e).overflow=t),e}function pt(e,t,n){return null!=e?e:null!=t?t:n}function gt(e){var t,n,r,i,o,s=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[Ee]&&function(e){var t,n,r,a,i,o,s,c;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,o=4,n=pt(t.GG,e._a[be],ze(kt(),1,4).year),r=pt(t.W,1),((a=pt(t.E,1))<1||a>7)&&(c=!0);else{i=e._locale._week.dow,o=e._locale._week.doy;var A=ze(kt(),i,o);n=pt(t.gg,e._a[be],A.year),r=pt(t.w,A.week),null!=t.d?((a=t.d)<0||a>6)&&(c=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(c=!0)):a=i}r<1||r>We(n,i,o)?h(e)._overflowWeeks=!0:null!=c?h(e)._overflowWeekday=!0:(s=He(n,r,a,i,o),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=pt(e._a[be],r[be]),(e._dayOfYear>De(o)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Le(o,0,e._dayOfYear),e._a[Ee]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[Be]&&0===e._a[we]&&0===e._a[Ie]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Le:function(e,t,n,r,a,i,o){var s=new Date(e,t,n,r,a,i,o);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Et=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Bt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,r,a,i,o,s=e._i,c=mt.exec(s)||bt.exec(s);if(c){for(h(e).iso=!0,t=0,n=yt.length;t0&&h(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),A+=n.length),L[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),me(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-A,s.length>0&&h(e).unusedInput.push(s),e._a[ve]<=12&&!0===h(e).bigHour&&e._a[ve]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ve]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[ve],e._meridiem),gt(e),ht(e)}else Dt(e);else wt(e)}function Yt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new y(ht(t)):(A(t)?e._d=t:i(n)?function(e){var t,n,r,a,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:g()});function Tt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],r=1;ri&&(t=i),function(e,t,n,r,a){var i=He(e,t,n,r,a),o=Le(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,e,t,n,r,a))}J(0,["gg",2],0,function(){return this.weekYear()%100}),J(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),O("weekYear",1),O("isoWeekYear",1),ue("G",oe),ue("g",oe),ue("GG",$,V),ue("gg",$,V),ue("GGGG",re,q),ue("gggg",re,q),ue("GGGGG",ae,Z),ue("ggggg",ae,Z),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=w(e)}),ge(["gg","GG"],function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)}),J("Q",0,"Qo","quarter"),T("quarter","Q"),O("quarter",7),ue("Q",K),pe("Q",function(e,t){t[Ee]=3*(w(e)-1)}),J("D",["DD",2],"Do","date"),T("date","D"),O("date",9),ue("D",$),ue("DD",$,V),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],ye),pe("Do",function(e,t){t[ye]=w(e.match($)[0])});var sn=ke("Date",!0);J("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),O("dayOfYear",4),ue("DDD",ne),ue("DDDD",X),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),J("m",["mm",2],0,"minute"),T("minute","m"),O("minute",14),ue("m",$),ue("mm",$,V),pe(["m","mm"],Be);var cn=ke("Minutes",!1);J("s",["ss",2],0,"second"),T("second","s"),O("second",15),ue("s",$),ue("ss",$,V),pe(["s","ss"],we);var An,ln=ke("Seconds",!1);for(J("S",0,0,function(){return~~(this.millisecond()/100)}),J(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),J(0,["SSS",3],0,"millisecond"),J(0,["SSSS",4],0,function(){return 10*this.millisecond()}),J(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),J(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),J(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),J(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),J(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),T("millisecond","ms"),O("millisecond",16),ue("S",ne,K),ue("SS",ne,V),ue("SSS",ne,X),An="SSSS";An.length<=9;An+="S")ue(An,ie);function un(e,t){t[Ie]=w(1e3*("0."+e))}for(An="S";An.length<=9;An+="S")pe(An,un);var dn=ke("Milliseconds",!1);J("z",0,0,"zoneAbbr"),J("zz",0,0,"zoneName");var fn=y.prototype;function hn(e){return e}fn.add=Zt,fn.calendar=function(e,t){var n=e||kt(),r=Gt(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(S(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,kt(n)))},fn.clone=function(){return new y(this)},fn.diff=function(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=Gt(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":i=en(this,r)/12;break;case"month":i=en(this,r);break;case"quarter":i=en(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:B(i)},fn.endOf=function(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||kt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(kt(),e)},fn.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||kt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(kt(),e)},fn.get=function(e){return S(this[e=N(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=v(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Se,fn.isLeapYear=function(){return Qe(this.year())},fn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=_e,fn.daysInMonth=function(){return Te(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return We(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return We(this.year(),1,4)},fn.date=sn,fn.day=fn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},fn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},fn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fn.hour=fn.hours=it,fn.minute=fn.minutes=cn,fn.second=fn.seconds=ln,fn.millisecond=fn.milliseconds=dn,fn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(ce,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Lt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?qt(this,Wt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Lt(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Lt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Jt,fn.isUTC=Jt,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=C("dates accessor is deprecated. Use date instead.",sn),fn.months=C("months accessor is deprecated. Use month instead",_e),fn.years=C("years accessor is deprecated. Use year instead",Se),fn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),fn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=Yt(e))._a){var t=e._isUTC?f(e._a):kt(e._a);this._isDSTShifted=this.isValid()&&I(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=F.prototype;function gn(e,t,n,r){var a=ft(),i=f().set(r,t);return a[n](i,e)}function mn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=gn(e,r,n,"month");return a}function bn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,i=ft(),o=e?i._week.dow:0;if(null!=n)return gn(t,(n+o)%7,r,"day");var s=[];for(a=0;a<7;a++)s[a]=gn(t,(a+o)%7,r,"day");return s}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,n):r},pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=hn,pn.postformat=hn,pn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return S(a)?a(e,t,n,r):a.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)S(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},pn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ne.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,a,i;if(this._monthsParseExact)return function(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ye.call(this._shortMonthsParse,o))?a:null:-1!==(a=Ye.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=Ye.call(this._shortMonthsParse,o))?a:-1!==(a=Ye.call(this._longMonthsParse,o))?a:null:-1!==(a=Ye.call(this._longMonthsParse,o))?a:-1!==(a=Ye.call(this._shortMonthsParse,o))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},pn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Pe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Ue),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},pn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,a,i;if(this._weekdaysParseExact)return function(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ye.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Ye.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=Ye.call(this._weekdaysParse,o))?a:-1!==(a=Ye.call(this._shortWeekdaysParse,o))?a:-1!==(a=Ye.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Ye.call(this._shortWeekdaysParse,o))?a:-1!==(a=Ye.call(this._weekdaysParse,o))?a:-1!==(a=Ye.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,o))?a:-1!==(a=Ye.call(this._weekdaysParse,o))?a:-1!==(a=Ye.call(this._shortWeekdaysParse,o))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),a.lang=C("moment.lang is deprecated. Use moment.locale instead.",ut),a.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ft);var En=Math.abs;function yn(e,t,n,r){var a=Wt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function Bn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function In(e){return function(){return this.as(e)}}var Mn=In("ms"),Cn=In("s"),Dn=In("m"),Qn=In("h"),Yn=In("d"),Sn=In("w"),kn=In("M"),Fn=In("y");function xn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Tn=xn("milliseconds"),Nn=xn("seconds"),Rn=xn("minutes"),jn=xn("hours"),On=xn("days"),_n=xn("months"),Un=xn("years"),Pn=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,M:11},Ln=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Hn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Ln(this._milliseconds)/1e3,r=Ln(this._days),a=Ln(this._months);e=B(n/60),t=B(e/60),n%=60,e%=60;var i=B(a/12),o=a%=12,s=r,c=t,A=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var d=u<0?"-":"",f=Jn(this._months)!==Jn(u)?"-":"",h=Jn(this._days)!==Jn(u)?"-":"",p=Jn(this._milliseconds)!==Jn(u)?"-":"";return d+"P"+(i?f+i+"Y":"")+(o?f+o+"M":"")+(s?h+s+"D":"")+(c||A||l?"T":"")+(c?p+c+"H":"")+(A?p+A+"M":"")+(l?p+l+"S":"")}var zn=Rt.prototype;return zn.isValid=function(){return this._isValid},zn.abs=function(){var e=this._data;return this._milliseconds=En(this._milliseconds),this._days=En(this._days),this._months=En(this._months),e.milliseconds=En(e.milliseconds),e.seconds=En(e.seconds),e.minutes=En(e.minutes),e.hours=En(e.hours),e.months=En(e.months),e.years=En(e.years),this},zn.add=function(e,t){return yn(this,e,t,1)},zn.subtract=function(e,t){return yn(this,e,t,-1)},zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+r/864e5,n=this._months+Bn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},zn.asMilliseconds=Mn,zn.asSeconds=Cn,zn.asMinutes=Dn,zn.asHours=Qn,zn.asDays=Yn,zn.asWeeks=Sn,zn.asMonths=kn,zn.asYears=Fn,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN},zn._bubble=function(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,c=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*vn(wn(s)+o),o=0,s=0),c.milliseconds=i%1e3,e=B(i/1e3),c.seconds=e%60,t=B(e/60),c.minutes=t%60,n=B(t/60),c.hours=n%24,o+=B(n/24),a=B(Bn(o)),s+=a,o-=vn(wn(a)),r=B(s/12),s%=12,c.days=o,c.months=s,c.years=r,this},zn.clone=function(){return Wt(this)},zn.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},zn.milliseconds=Tn,zn.seconds=Nn,zn.minutes=Rn,zn.hours=jn,zn.days=On,zn.weeks=function(){return B(this.days()/7)},zn.months=_n,zn.years=Un,zn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Wt(e).abs(),a=Pn(r.as("s")),i=Pn(r.as("m")),o=Pn(r.as("h")),s=Pn(r.as("d")),c=Pn(r.as("M")),A=Pn(r.as("y")),l=a<=Gn.ss&&["s",a]||a0,l[4]=n,function(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},zn.toISOString=Hn,zn.toString=Hn,zn.toJSON=Hn,zn.locale=tn,zn.localeData=rn,zn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Hn),zn.lang=nn,J("X",0,0,"unix"),J("x",0,0,"valueOf"),ue("x",oe),ue("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(w(e))}),a.version="2.22.2",function(e){t=e}(kt),a.fn=fn,a.min=function(){return Tt("isBefore",[].slice.call(arguments,0))},a.max=function(){return Tt("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=f,a.unix=function(e){return kt(1e3*e)},a.months=function(e,t){return mn(e,t,"months")},a.isDate=A,a.locale=ut,a.invalid=g,a.duration=Wt,a.isMoment=v,a.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},a.parseZone=function(){return kt.apply(null,arguments).parseZone()},a.localeData=ft,a.isDuration=jt,a.monthsShort=function(e,t){return mn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},a.defineLocale=dt,a.updateLocale=function(e,t){if(null!=t){var n,r,a=ot;null!=(r=lt(e))&&(a=r._config),t=k(a,t),(n=new F(t)).parentLocale=st[e],st[e]=n,ut(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},a.locales=function(){return D(st)},a.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},a.normalizeUnits=N,a.relativeTimeRounding=function(e){return void 0===e?Pn:"function"==typeof e&&(Pn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=fn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(57)(e))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=A(n(922)),a=A(n(989)),i=A(n(1013)),o=A(n(1014)),s=A(n(1015)),c=A(n(1016));function A(e){return e&&e.__esModule?e:{default:e}}t.hover=o.default,t.handleHover=o.default,t.handleActive=s.default,t.loop=c.default;var l=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o>>0,r=0;r0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var _=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},J={};function L(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(J[e]=a),t&&(J[t[0]]=function(){return U(a.apply(this,arguments),t[1],t[2])}),n&&(J[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e,t){return e.isValid()?(t=W(t,e.localeData()),G[t]=G[t]||function(e){var t,n,r=e.match(_);for(t=0,n=r.length;t=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var K=/\d/,V=/\d\d/,X=/\d{3}/,q=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,ae=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function de(e,t,n){le[e]=S(t)?t:function(e,r){return e&&n?n:t}}function ue(e,t){return d(le,e)?le[e](t._strict,t._locale):new RegExp(function(e){return fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}(e))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=w(e)}),n=0;n68?1900:2e3)};var Ye,Se=ke("FullYear",!0);function ke(e,t){return function(n){return null!=n?(xe(this,e,n),a.updateOffset(this,t),this):Fe(this,e)}}function Fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function xe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Qe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Qe(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Le(e,t,n){var r=7+t-n,a=(7+Je(e,0,r).getUTCDay()-t)%7;return-a+r-1}function He(e,t,n,r,a){var o,i,s=(7+n-r)%7,c=Le(e,r,a),A=1+7*(t-1)+s+c;return A<=0?i=De(o=e-1)+A:A>De(e)?(o=e+1,i=A-De(e)):(o=e,i=A),{year:o,dayOfYear:i}}function ze(e,t,n){var r,a,o=Le(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?(a=e.year()-1,r=i+We(a,t,n)):i>We(e.year(),t,n)?(r=i-We(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function We(e,t,n){var r=Le(e,t,n),a=Le(e+1,t,n);return(De(e)-r+a)/7}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),O("week",5),O("isoWeek",5),de("w",$),de("ww",$,V),de("W",$),de("WW",$,V),ge(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=w(e)}),L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),O("day",11),O("weekday",11),O("isoWeekday",11),de("d",$),de("e",$),de("E",$),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,r){t[r]=w(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=Ae,Ze=Ae,$e=Ae;function et(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],s=[],c=[],A=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),o=this.weekdays(n,""),i.push(r),s.push(a),c.push(o),A.push(r),A.push(a),A.push(o);for(i.sort(e),s.sort(e),c.sort(e),A.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),c[t]=fe(c[t]),A[t]=fe(A[t]);this._weekdaysRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,tt),L("k",["kk",2],0,function(){return this.hours()||24}),L("hmm",0,0,function(){return""+tt.apply(this)+U(this.minutes(),2)}),L("hmmss",0,0,function(){return""+tt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),nt("a",!0),nt("A",!1),T("hour","h"),O("hour",13),de("a",rt),de("A",rt),de("H",$),de("h",$),de("k",$),de("HH",$,V),de("hh",$,V),de("kk",$,V),de("hmm",ee),de("hmmss",te),de("Hmm",ee),de("Hmmss",te),pe(["H","HH"],ve),pe(["k","kk"],function(e,t,n){var r=w(e);t[ve]=24===r?0:r}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[ve]=w(e),h(n).bigHour=!0}),pe("hmm",function(e,t,n){var r=e.length-2;t[ve]=w(e.substr(0,r)),t[Be]=w(e.substr(r)),h(n).bigHour=!0}),pe("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ve]=w(e.substr(0,r)),t[Be]=w(e.substr(r,2)),t[we]=w(e.substr(a)),h(n).bigHour=!0}),pe("Hmm",function(e,t,n){var r=e.length-2;t[ve]=w(e.substr(0,r)),t[Be]=w(e.substr(r))}),pe("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ve]=w(e.substr(0,r)),t[Be]=w(e.substr(r,2)),t[we]=w(e.substr(a))});var at,ot=ke("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Re,monthsShort:je,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Xe,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},st={},ct={};function At(e){return e?e.toLowerCase().replace("_","-"):e}function lt(t){var r=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{r=at._abbr,n(915)("./"+t),dt(r)}catch(e){}return st[t]}function dt(e,t){var n;return e&&((n=s(t)?ft(e):ut(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ut(e,t){if(null!==t){var n,r=it;if(t.abbr=e,null!=st[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=lt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new F(k(r,t)),ct[e]&&ct[e].forEach(function(e){ut(e.name,e.config)}),dt(e),st[e]}return delete st[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!o(e)){if(t=lt(e))return t;e=[e]}return function(e){for(var t,n,r,a,o=0;o0;){if(r=lt(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&I(a,n,!0)>=t-1)break;t--}o++}return at}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[Ee]<0||n[Ee]>11?Ee:n[ye]<1||n[ye]>Te(n[be],n[Ee])?ye:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[Be]||0!==n[we]||0!==n[Ie])?ve:n[Be]<0||n[Be]>59?Be:n[we]<0||n[we]>59?we:n[Ie]<0||n[Ie]>999?Ie:-1,h(e)._overflowDayOfYear&&(tye)&&(t=ye),h(e)._overflowWeeks&&-1===t&&(t=Me),h(e)._overflowWeekday&&-1===t&&(t=Ce),h(e).overflow=t),e}function pt(e,t,n){return null!=e?e:null!=t?t:n}function gt(e){var t,n,r,o,i,s=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[Ee]&&function(e){var t,n,r,a,o,i,s,c;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,i=4,n=pt(t.GG,e._a[be],ze(kt(),1,4).year),r=pt(t.W,1),((a=pt(t.E,1))<1||a>7)&&(c=!0);else{o=e._locale._week.dow,i=e._locale._week.doy;var A=ze(kt(),o,i);n=pt(t.gg,e._a[be],A.year),r=pt(t.w,A.week),null!=t.d?((a=t.d)<0||a>6)&&(c=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(c=!0)):a=o}r<1||r>We(n,o,i)?h(e)._overflowWeeks=!0:null!=c?h(e)._overflowWeekday=!0:(s=He(n,r,a,o,i),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=pt(e._a[be],r[be]),(e._dayOfYear>De(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Je(i,0,e._dayOfYear),e._a[Ee]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[Be]&&0===e._a[we]&&0===e._a[Ie]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Je:function(e,t,n,r,a,o,i){var s=new Date(e,t,n,r,a,o,i);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Et=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Bt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,r,a,o,i,s=e._i,c=mt.exec(s)||bt.exec(s);if(c){for(h(e).iso=!0,t=0,n=yt.length;t0&&h(e).unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),A+=n.length),J[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=c-A,s.length>0&&h(e).unusedInput.push(s),e._a[ve]<=12&&!0===h(e).bigHour&&e._a[ve]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ve]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[ve],e._meridiem),gt(e),ht(e)}else Dt(e);else wt(e)}function Yt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new y(ht(t)):(A(t)?e._d=t:o(n)?function(e){var t,n,r,a,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:g()});function Tt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],r=1;ro&&(t=o),function(e,t,n,r,a){var o=He(e,t,n,r,a),i=Je(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,r,a))}L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),O("weekYear",1),O("isoWeekYear",1),de("G",ie),de("g",ie),de("GG",$,V),de("gg",$,V),de("GGGG",re,q),de("gggg",re,q),de("GGGGG",ae,Z),de("ggggg",ae,Z),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=w(e)}),ge(["gg","GG"],function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),T("quarter","Q"),O("quarter",7),de("Q",K),pe("Q",function(e,t){t[Ee]=3*(w(e)-1)}),L("D",["DD",2],"Do","date"),T("date","D"),O("date",9),de("D",$),de("DD",$,V),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],ye),pe("Do",function(e,t){t[ye]=w(e.match($)[0])});var sn=ke("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),O("dayOfYear",4),de("DDD",ne),de("DDDD",X),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),L("m",["mm",2],0,"minute"),T("minute","m"),O("minute",14),de("m",$),de("mm",$,V),pe(["m","mm"],Be);var cn=ke("Minutes",!1);L("s",["ss",2],0,"second"),T("second","s"),O("second",15),de("s",$),de("ss",$,V),pe(["s","ss"],we);var An,ln=ke("Seconds",!1);for(L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),T("millisecond","ms"),O("millisecond",16),de("S",ne,K),de("SS",ne,V),de("SSS",ne,X),An="SSSS";An.length<=9;An+="S")de(An,oe);function dn(e,t){t[Ie]=w(1e3*("0."+e))}for(An="S";An.length<=9;An+="S")pe(An,dn);var un=ke("Milliseconds",!1);L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var fn=y.prototype;function hn(e){return e}fn.add=Zt,fn.calendar=function(e,t){var n=e||kt(),r=Gt(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(S(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,kt(n)))},fn.clone=function(){return new y(this)},fn.diff=function(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=Gt(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":o=en(this,r)/12;break;case"month":o=en(this,r);break;case"quarter":o=en(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:B(o)},fn.endOf=function(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||kt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(kt(),e)},fn.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||kt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(kt(),e)},fn.get=function(e){return S(this[e=N(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=v(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Se,fn.isLeapYear=function(){return Qe(this.year())},fn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=Ue,fn.daysInMonth=function(){return Te(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return We(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return We(this.year(),1,4)},fn.date=sn,fn.day=fn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},fn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},fn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fn.hour=fn.hours=ot,fn.minute=fn.minutes=cn,fn.second=fn.seconds=ln,fn.millisecond=fn.milliseconds=un,fn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(ce,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?qt(this,Wt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Jt(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Lt,fn.isUTC=Lt,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=C("dates accessor is deprecated. Use date instead.",sn),fn.months=C("months accessor is deprecated. Use month instead",Ue),fn.years=C("years accessor is deprecated. Use year instead",Se),fn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),fn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=Yt(e))._a){var t=e._isUTC?f(e._a):kt(e._a);this._isDSTShifted=this.isValid()&&I(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=F.prototype;function gn(e,t,n,r){var a=ft(),o=f().set(r,t);return a[n](o,e)}function mn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=gn(e,r,n,"month");return a}function bn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,o=ft(),i=e?o._week.dow:0;if(null!=n)return gn(t,(n+i)%7,r,"day");var s=[];for(a=0;a<7;a++)s[a]=gn(t,(a+i)%7,r,"day");return s}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,n):r},pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=hn,pn.postformat=hn,pn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return S(a)?a(e,t,n,r):a.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)S(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},pn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ne.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,a,o;if(this._monthsParseExact)return function(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=Ye.call(this._shortMonthsParse,i))?a:-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))?a:-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},pn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Pe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=_e),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},pn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,a,o;if(this._weekdaysParseExact)return function(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ye.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=Ye.call(this._weekdaysParse,i))?a:-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:-1!==(a=Ye.call(this._weekdaysParse,i))?a:-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:-1!==(a=Ye.call(this._weekdaysParse,i))?a:-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),a.lang=C("moment.lang is deprecated. Use moment.locale instead.",dt),a.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ft);var En=Math.abs;function yn(e,t,n,r){var a=Wt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function Bn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function In(e){return function(){return this.as(e)}}var Mn=In("ms"),Cn=In("s"),Dn=In("m"),Qn=In("h"),Yn=In("d"),Sn=In("w"),kn=In("M"),Fn=In("y");function xn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Tn=xn("milliseconds"),Nn=xn("seconds"),Rn=xn("minutes"),jn=xn("hours"),On=xn("days"),Un=xn("months"),_n=xn("years"),Pn=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,M:11},Jn=Math.abs;function Ln(e){return(e>0)-(e<0)||+e}function Hn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Jn(this._milliseconds)/1e3,r=Jn(this._days),a=Jn(this._months);e=B(n/60),t=B(e/60),n%=60,e%=60;var o=B(a/12),i=a%=12,s=r,c=t,A=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var u=d<0?"-":"",f=Ln(this._months)!==Ln(d)?"-":"",h=Ln(this._days)!==Ln(d)?"-":"",p=Ln(this._milliseconds)!==Ln(d)?"-":"";return u+"P"+(o?f+o+"Y":"")+(i?f+i+"M":"")+(s?h+s+"D":"")+(c||A||l?"T":"")+(c?p+c+"H":"")+(A?p+A+"M":"")+(l?p+l+"S":"")}var zn=Rt.prototype;return zn.isValid=function(){return this._isValid},zn.abs=function(){var e=this._data;return this._milliseconds=En(this._milliseconds),this._days=En(this._days),this._months=En(this._months),e.milliseconds=En(e.milliseconds),e.seconds=En(e.seconds),e.minutes=En(e.minutes),e.hours=En(e.hours),e.months=En(e.months),e.years=En(e.years),this},zn.add=function(e,t){return yn(this,e,t,1)},zn.subtract=function(e,t){return yn(this,e,t,-1)},zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+r/864e5,n=this._months+Bn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},zn.asMilliseconds=Mn,zn.asSeconds=Cn,zn.asMinutes=Dn,zn.asHours=Qn,zn.asDays=Yn,zn.asWeeks=Sn,zn.asMonths=kn,zn.asYears=Fn,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN},zn._bubble=function(){var e,t,n,r,a,o=this._milliseconds,i=this._days,s=this._months,c=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*vn(wn(s)+i),i=0,s=0),c.milliseconds=o%1e3,e=B(o/1e3),c.seconds=e%60,t=B(e/60),c.minutes=t%60,n=B(t/60),c.hours=n%24,i+=B(n/24),a=B(Bn(i)),s+=a,i-=vn(wn(a)),r=B(s/12),s%=12,c.days=i,c.months=s,c.years=r,this},zn.clone=function(){return Wt(this)},zn.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},zn.milliseconds=Tn,zn.seconds=Nn,zn.minutes=Rn,zn.hours=jn,zn.days=On,zn.weeks=function(){return B(this.days()/7)},zn.months=Un,zn.years=_n,zn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Wt(e).abs(),a=Pn(r.as("s")),o=Pn(r.as("m")),i=Pn(r.as("h")),s=Pn(r.as("d")),c=Pn(r.as("M")),A=Pn(r.as("y")),l=a<=Gn.ss&&["s",a]||a0,l[4]=n,function(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},zn.toISOString=Hn,zn.toString=Hn,zn.toJSON=Hn,zn.locale=tn,zn.localeData=rn,zn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Hn),zn.lang=nn,L("X",0,0,"unix"),L("x",0,0,"valueOf"),de("x",ie),de("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(w(e))}),a.version="2.22.2",function(e){t=e}(kt),a.fn=fn,a.min=function(){return Tt("isBefore",[].slice.call(arguments,0))},a.max=function(){return Tt("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=f,a.unix=function(e){return kt(1e3*e)},a.months=function(e,t){return mn(e,t,"months")},a.isDate=A,a.locale=dt,a.invalid=g,a.duration=Wt,a.isMoment=v,a.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},a.parseZone=function(){return kt.apply(null,arguments).parseZone()},a.localeData=ft,a.isDuration=jt,a.monthsShort=function(e,t){return mn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},a.defineLocale=ut,a.updateLocale=function(e,t){if(null!=t){var n,r,a=it;null!=(r=lt(e))&&(a=r._config),t=k(a,t),(n=new F(t)).parentLocale=st[e],st[e]=n,dt(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},a.locales=function(){return D(st)},a.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},a.normalizeUnits=N,a.relativeTimeRounding=function(e){return void 0===e?Pn:"function"==typeof e&&(Pn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=fn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(59)(e))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=A(n(918)),a=A(n(985)),o=A(n(1009)),i=A(n(1010)),s=A(n(1011)),c=A(n(1012));function A(e){return e&&e.__esModule?e:{default:e}}t.hover=i.default,t.handleHover=i.default,t.handleActive=s.default,t.loop=c.default;var l=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return void 0!==o.find(function(t){return e.match(t)})},t.convertRemToPixels=function(e){return e*parseFloat(getComputedStyle(document.documentElement).fontSize)},t.getMediaPlatformFromUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(0===e.indexOf("file://"))return"local";var t=["youtube","vimeo","wistia","dailymotion","facebook","soundcloud","wistia","twitch"].find(function(t){if(e.includes(t))return!0});return t||(e.includes("youtu.be")?"youtube":"defaultImage")},t.getEventRelativePosition=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.target,r=n.parentNode,a=e.target.getBoundingClientRect(),i=e.clientX-a.left,o=e.clientY-a.top;if(n.className&&n.className.includes(t))return{x:i,y:o,rect:a};for(;"body"!==r.tagName.toLowerCase()&&r.className!==t;)i+=n.offsetLeft,o+=n.offsetTop,a=(r=(n=r).parentNode).getBoundingClientRect();return{x:i,y:o,rect:a}},t.secsToHMS=function(e){var t={},n=(""+e).split("."),r=+n[0];r<0&&(r=0);var a=parseInt(+r/3600,10),i=parseInt(+r/60,10)-60*a;r=parseInt(+r,10)-3600*a-60*i;var o=parseInt(+r,10)-r;if(t.hours=a<10?"0"+a:a,t.minutes=i<10?"0"+i:i,t.seconds=r<10?"0"+r:r,n[1])t.miliseconds=(n[1]+"000").substring(0,3);else for(t.miliseconds=(""+o).substring(0,3);t.miliseconds.length<3;)t.miliseconds+="0";return t}),c=(t.secsToSrt=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=s(e);return n.hours+":"+n.minutes+":"+n.seconds+(t?","+n.miliseconds:"")},t.srtToSecs=function(e){var t=(""+e).match(/([\d+]*):([\d+]*):([\d+]*)(?:,|:)([\d+]*)?/);if(t)return(t=t.splice(1,4)).length<3?void 0:t.length>3?3600*+t[0]+60*+t[1]+ +t[2]+parseFloat("0."+t[3]):3600*+t[0]+60*+t[1]+ +t[2]},t.copyToClipboard=function(e){(0,a.default)(e)},t.computePlaylist=function(e){var t=e.summary,n=e.fields,a=e.chunks,o=Object.keys(n).find(function(e){return"default"===n[e].name});return t.reduce(function(e,n,s){var c=n.blockType,A="chunk"===c?Math.abs(a[n.content]?a[n.content].end-a[n.content].start:0):n.duration||5,l=sl.start&&(u.chunk.end=l.start),u.duration=u.chunk.end-u.chunk.start,u.start=e.duration,u.end=e.duration+u.duration):u=void 0}else u.duration=A,u.start=e.duration,u.end=e.duration+u.duration;return u?{list:[].concat(i(e.list),[u]),duration:e.duration+u.duration}:e},{list:[],duration:0})},t.getColorByBgColor=function(e){return e?"#FFF"===e.toUpperCase()?"#000":parseInt(e.replace("#","").toUpperCase(),16)>8388607.5?"#000":"#fff":""},t.abbrev=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return e.length>t?e.slice(0,t)+"...":e},t.checkForRedirect=function(e,t){e.search.includes("redirect=true")&&c(e,t)},function(e,t){var n={};if("string"==typeof e.pathname&&""!==e.pathname&&(n.pathname=decodeURIComponent(e.pathname)),"string"==typeof e.search&&""!==e.search){var r={};e.search.split("&").map(function(e){return e.split("=")}).forEach(function(e){r[e[0]]=e.slice(1).join("=")}),n.query=r,r.pathname&&(n.pathname=decodeURIComponent(r.pathname))}"string"==typeof e.hash&&""!==e.hash&&(n.hash="#"+e.hash),n.pathname=n.pathname.replace("/dicto",""),setTimeout(function(){return t.replace(n)})})},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(682)},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([a]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a=0&&c.splice(t,1)}function h(e){var t=document.createElement("style");return e.attrs.type="text/css",p(t,e.attrs),d(e,t),t}function p(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,a,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var c=s++;n=o||(o=h(t)),r=b.bind(null,n,c,!1),a=b.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",p(t,e.attrs),d(e,t),t}(t),r=function(e,t,n){var r=n.css,a=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||i)&&(r=A(r));a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}.bind(null,n,t),a=function(){f(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),a=function(){f(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=u(e,t);return l(n,t),function(e){for(var a=[],i=0;it?1:e>=t?0:NaN},a=function(e){return 1===e.length&&(e=function(e){return function(t,n){return r(e(t),n)}}(e)),{left:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r>>1;e(t[i],n)<0?r=i+1:a=i}return r},right:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r>>1;e(t[i],n)>0?a=i:r=i+1}return r}}};var i=a(r),o=i.right,s=i.left,c=o,A=function(e,t){null==t&&(t=l);for(var n=0,r=e.length-1,a=e[0],i=new Array(r<0?0:r);ne?1:t>=e?0:NaN},f=function(e){return null===e?NaN:+e},h=function(e,t){var n,r,a=e.length,i=0,o=-1,s=0,c=0;if(null==t)for(;++o1)return c/(i-1)},p=function(e,t){var n=h(e,t);return n?Math.sqrt(n):n},g=function(e,t){var n,r,a,i=e.length,o=-1;if(null==t){for(;++o=n)for(r=a=n;++on&&(r=n),a=n)for(r=a=n;++on&&(r=n),a0)return[e];if((r=t0)for(e=Math.ceil(e/o),t=Math.floor(t/o),i=new Array(a=Math.ceil(t-e+1));++s=0?(i>=w?10:i>=I?5:i>=M?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=w?10:i>=I?5:i>=M?2:1)}function Q(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=w?a*=10:i>=I?a*=5:i>=M&&(a*=2),tu;)d.pop(),--f;var h,p=new Array(f+1);for(a=0;a<=f;++a)(h=p[a]=[]).x0=a>0?d[a-1]:l,h.x1=a=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e);return o+(+n(e[i+1],i+1,e)-o)*(a-i)}},F=function(e,t,n){return e=E.call(e,f).sort(r),Math.ceil((n-t)/(2*(k(e,.75)-k(e,.25))*Math.pow(e.length,-1/3)))},x=function(e,t,n){return Math.ceil((n-t)/(3.5*p(e)*Math.pow(e.length,-1/3)))},T=function(e,t){var n,r,a=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},N=function(e,t){var n,r=e.length,a=r,i=-1,o=0;if(null==t)for(;++i=0;)for(t=(r=e[a]).length;--t>=0;)n[--o]=r[t];return n},O=function(e,t){var n,r,a=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r},_=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},U=function(e,t){if(n=e.length){var n,a,i=0,o=0,s=e[o];for(null==t&&(t=r);++i0&&void 0!==arguments[0]?arguments[0]:"";return void 0!==i.find(function(t){return e.match(t)})},t.convertRemToPixels=function(e){return e*parseFloat(getComputedStyle(document.documentElement).fontSize)},t.getMediaPlatformFromUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(0===e.indexOf("file://"))return"local";var t=["youtube","vimeo","wistia","dailymotion","facebook","soundcloud","wistia","twitch"].find(function(t){if(e.includes(t))return!0});return t||(e.includes("youtu.be")?"youtube":"defaultImage")},t.getEventRelativePosition=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.target,r=n.parentNode,a=e.target.getBoundingClientRect(),o=e.clientX-a.left,i=e.clientY-a.top;if(n.className&&n.className.includes(t))return{x:o,y:i,rect:a};for(;"body"!==r.tagName.toLowerCase()&&r.className!==t;)o+=n.offsetLeft,i+=n.offsetTop,a=(r=(n=r).parentNode).getBoundingClientRect();return{x:o,y:i,rect:a}},t.secsToHMS=function(e){var t={},n=(""+e).split("."),r=+n[0];r<0&&(r=0);var a=parseInt(+r/3600,10),o=parseInt(+r/60,10)-60*a;r=parseInt(+r,10)-3600*a-60*o;var i=parseInt(+r,10)-r;if(t.hours=a<10?"0"+a:a,t.minutes=o<10?"0"+o:o,t.seconds=r<10?"0"+r:r,n[1])t.miliseconds=(n[1]+"000").substring(0,3);else for(t.miliseconds=(""+i).substring(0,3);t.miliseconds.length<3;)t.miliseconds+="0";return t}),c=(t.secsToSrt=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=s(e);return n.hours+":"+n.minutes+":"+n.seconds+(t?","+n.miliseconds:"")},t.srtToSecs=function(e){var t=(""+e).match(/([\d+]*):([\d+]*):([\d+]*)(?:,|:)([\d+]*)?/);if(t)return(t=t.splice(1,4)).length<3?void 0:t.length>3?3600*+t[0]+60*+t[1]+ +t[2]+parseFloat("0."+t[3]):3600*+t[0]+60*+t[1]+ +t[2]},t.copyToClipboard=function(e){(0,a.default)(e)},t.computePlaylist=function(e){var t=e.summary,n=e.fields,a=e.chunks,i=Object.keys(n).find(function(e){return"default"===n[e].name});return t.reduce(function(e,n,s){var c=n.blockType,A="chunk"===c?Math.abs(a[n.content]?a[n.content].end-a[n.content].start:0):n.duration||5,l=sl.start&&(d.chunk.end=l.start),d.duration=d.chunk.end-d.chunk.start,d.start=e.duration,d.end=e.duration+d.duration):d=void 0}else d.duration=A,d.start=e.duration,d.end=e.duration+d.duration;return d?{list:[].concat(o(e.list),[d]),duration:e.duration+d.duration}:e},{list:[],duration:0})},t.getColorByBgColor=function(e){return e?"#FFF"===e.toUpperCase()?"#000":parseInt(e.replace("#","").toUpperCase(),16)>8388607.5?"#000":"#fff":""},t.abbrev=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return e.length>t?e.slice(0,t)+"...":e},t.checkForRedirect=function(e,t){e.search.includes("redirect=true")&&c(e,t)},function(e,t){var n={};if("string"==typeof e.pathname&&""!==e.pathname&&(n.pathname=decodeURIComponent(e.pathname)),"string"==typeof e.search&&""!==e.search){var r={};e.search.split("&").map(function(e){return e.split("=")}).forEach(function(e){r[e[0]]=e.slice(1).join("=")}),n.query=r,r.pathname&&(n.pathname=decodeURIComponent(r.pathname))}"string"==typeof e.hash&&""!==e.hash&&(n.hash="#"+e.hash),n.pathname=n.pathname.replace("/dicto",""),setTimeout(function(){return t.replace(n)})})},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(677)},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([a]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a=0&&c.splice(t,1)}function h(e){var t=document.createElement("style");return e.attrs.type="text/css",p(t,e.attrs),u(e,t),t}function p(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,a,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var c=s++;n=i||(i=h(t)),r=b.bind(null,n,c,!1),a=b.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",p(t,e.attrs),u(e,t),t}(t),r=function(e,t,n){var r=n.css,a=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||o)&&(r=A(r));a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var i=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(i),s&&URL.revokeObjectURL(s)}.bind(null,n,t),a=function(){f(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),a=function(){f(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return l(n,t),function(e){for(var a=[],o=0;ot?1:e>=t?0:NaN},a=function(e){return 1===e.length&&(e=function(e){return function(t,n){return r(e(t),n)}}(e)),{left:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r>>1;e(t[o],n)<0?r=o+1:a=o}return r},right:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r>>1;e(t[o],n)>0?a=o:r=o+1}return r}}};var o=a(r),i=o.right,s=o.left,c=i,A=function(e,t){null==t&&(t=l);for(var n=0,r=e.length-1,a=e[0],o=new Array(r<0?0:r);ne?1:t>=e?0:NaN},f=function(e){return null===e?NaN:+e},h=function(e,t){var n,r,a=e.length,o=0,i=-1,s=0,c=0;if(null==t)for(;++i1)return c/(o-1)},p=function(e,t){var n=h(e,t);return n?Math.sqrt(n):n},g=function(e,t){var n,r,a,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=a=n;++in&&(r=n),a=n)for(r=a=n;++in&&(r=n),a0)return[e];if((r=t0)for(e=Math.ceil(e/i),t=Math.floor(t/i),o=new Array(a=Math.ceil(t-e+1));++s=0?(o>=w?10:o>=I?5:o>=M?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(o>=w?10:o>=I?5:o>=M?2:1)}function Q(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/a;return o>=w?a*=10:o>=I?a*=5:o>=M&&(a*=2),td;)u.pop(),--f;var h,p=new Array(f+1);for(a=0;a<=f;++a)(h=p[a]=[]).x0=a>0?u[a-1]:l,h.x1=a=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),i=+n(e[o],o,e);return i+(+n(e[o+1],o+1,e)-i)*(a-o)}},F=function(e,t,n){return e=E.call(e,f).sort(r),Math.ceil((n-t)/(2*(k(e,.75)-k(e,.25))*Math.pow(e.length,-1/3)))},x=function(e,t,n){return Math.ceil((n-t)/(3.5*p(e)*Math.pow(e.length,-1/3)))},T=function(e,t){var n,r,a=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},N=function(e,t){var n,r=e.length,a=r,o=-1,i=0;if(null==t)for(;++o=0;)for(t=(r=e[a]).length;--t>=0;)n[--i]=r[t];return n},O=function(e,t){var n,r,a=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r},U=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},_=function(e,t){if(n=e.length){var n,a,o=0,i=0,s=e[i];for(null==t&&(t=r);++o * @license MIT */ -var r=n(731),a=n(732),i=n(339);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,a);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,a){var i,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function A(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var l=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var u=!0,d=0;da&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:A>223?3:A>191?2:1;if(a+u<=n)switch(u){case 1:A<128&&(l=A);break;case 2:128==(192&(i=e[a+1]))&&(c=(31&A)<<6|63&i)>127&&(l=c);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(c=(15&A)<<12|(63&i)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(c=(15&A)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,u=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),a+=u}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Y(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return Q(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,a){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var i=a-r,o=n-t,s=Math.min(i,o),A=this.slice(r,a),l=e.slice(t,n),u=0;ua)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return v(this,e,t,n);case"base64":return B(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function D(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,a,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function T(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function N(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,i){return i||N(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,i){return i||N(e,0,n,8),a.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(a*=256);)r+=this[e+--t]*a;return r},c.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);F(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);F(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function P(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}}).call(this,n(5))},function(e,t){var n,r,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,A=[],l=!1,u=-1;function d(){l&&c&&(l=!1,c.length?A=c.concat(A):u=-1,A.length&&f())}function f(){if(!l){var e=s(d);l=!0;for(var t=A.length;t;){for(c=A,A=[];++u1)for(var n=1;n=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(e).length;default:if(r)return _(e).length;t=(""+t).toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,a);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,a){var o,i=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,c/=2,n/=2}function A(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var d=!0,u=0;ua&&(r=a):r=a;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var i=0;i>8,a=n%256,o.push(a),o.push(r);return o}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:A>223?3:A>191?2:1;if(a+d<=n)switch(d){case 1:A<128&&(l=A);break;case 2:128==(192&(o=e[a+1]))&&(c=(31&A)<<6|63&o)>127&&(l=c);break;case 3:o=e[a+1],i=e[a+2],128==(192&o)&&128==(192&i)&&(c=(15&A)<<12|(63&o)<<6|63&i)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],128==(192&o)&&128==(192&i)&&128==(192&s)&&(c=(15&A)<<18|(63&o)<<12|(63&i)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),a+=d}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Y(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return Q(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,a){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var o=a-r,i=n-t,s=Math.min(o,i),A=this.slice(r,a),l=e.slice(t,n),d=0;da)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return v(this,e,t,n);case"base64":return B(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function D(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,a,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function T(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function N(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return o||N(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||N(e,0,n,8),a.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(a*=256);)r+=this[e+--t]*a;return r},c.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e],a=1,o=0;++o=(a*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=t,a=1,o=this[e+--r];r>0&&(a*=256);)o+=this[e+--r]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+a]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);F(this,e,t,n,a-1,-a)}var o=0,i=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);F(this,e,t,n,a-1,-a)}var o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function P(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}}).call(this,n(5))},function(e,t){var n,r,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,A=[],l=!1,d=-1;function u(){l&&c&&(l=!1,c.length?A=c.concat(A):d=-1,A.length&&f())}function f(){if(!l){var e=s(u);l=!0;for(var t=A.length;t;){for(c=A,A=[];++d1)for(var n=1;n0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},n.prototype.removeListener=function(e,t){var n,i,o,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o=n(769).Buffer}catch(e){}function s(e,t,n){for(var r=0,a=Math.min(e.length,n),i=t;i=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function c(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&a++,16===t?this._parseHex(e,a):this._parseBase(e,t,a),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)a=s(e,n,n+6),this.words[r]|=a<>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(a=s(e,t,n+6),this.words[r]|=a<>>26-i&4194303),this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,A=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var A=1;A>>26,u=67108863&c,d=Math.min(A,t.length-1),f=Math.max(0,A-e.length+1);f<=d;f++){var h=A-f|0;l+=(o=(a=0|e.words[h])*(i=0|t.words[f])+u)/67108864|0,u=67108863&o}n.words[A]=0|u,c=0|l}return 0!==c?n.words[A]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(e=e||10,t=0|t||1,16===e||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?A[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],f=u[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(f).toString(e);n=(h=h.idivn(f)).isZero()?p+n:A[d-p.length]+p+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,A=new e(i),l=this.clone();if(c){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),A[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,f=0|o[1],h=8191&f,p=f>>>13,g=0|o[2],m=8191&g,b=g>>>13,E=0|o[3],y=8191&E,v=E>>>13,B=0|o[4],w=8191&B,I=B>>>13,M=0|o[5],C=8191&M,D=M>>>13,Q=0|o[6],Y=8191&Q,S=Q>>>13,k=0|o[7],F=8191&k,x=k>>>13,T=0|o[8],N=8191&T,R=T>>>13,j=0|o[9],O=8191&j,_=j>>>13,U=0|s[0],P=8191&U,G=U>>>13,L=0|s[1],J=8191&L,H=L>>>13,z=0|s[2],W=8191&z,K=z>>>13,V=0|s[3],X=8191&V,q=V>>>13,Z=0|s[4],$=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,Ae=se>>>13,le=0|s[8],ue=8191&le,de=le>>>13,fe=0|s[9],he=8191&fe,pe=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(A+(r=Math.imul(u,P))|0)+((8191&(a=(a=Math.imul(u,G))+Math.imul(d,P)|0))<<13)|0;A=((i=Math.imul(d,G))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(h,P),a=(a=Math.imul(h,G))+Math.imul(p,P)|0,i=Math.imul(p,G);var me=(A+(r=r+Math.imul(u,J)|0)|0)+((8191&(a=(a=a+Math.imul(u,H)|0)+Math.imul(d,J)|0))<<13)|0;A=((i=i+Math.imul(d,H)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,P),a=(a=Math.imul(m,G))+Math.imul(b,P)|0,i=Math.imul(b,G),r=r+Math.imul(h,J)|0,a=(a=a+Math.imul(h,H)|0)+Math.imul(p,J)|0,i=i+Math.imul(p,H)|0;var be=(A+(r=r+Math.imul(u,W)|0)|0)+((8191&(a=(a=a+Math.imul(u,K)|0)+Math.imul(d,W)|0))<<13)|0;A=((i=i+Math.imul(d,K)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(y,P),a=(a=Math.imul(y,G))+Math.imul(v,P)|0,i=Math.imul(v,G),r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,H)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,H)|0,r=r+Math.imul(h,W)|0,a=(a=a+Math.imul(h,K)|0)+Math.imul(p,W)|0,i=i+Math.imul(p,K)|0;var Ee=(A+(r=r+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,q)|0)+Math.imul(d,X)|0))<<13)|0;A=((i=i+Math.imul(d,q)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(w,P),a=(a=Math.imul(w,G))+Math.imul(I,P)|0,i=Math.imul(I,G),r=r+Math.imul(y,J)|0,a=(a=a+Math.imul(y,H)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,H)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(b,W)|0,i=i+Math.imul(b,K)|0,r=r+Math.imul(h,X)|0,a=(a=a+Math.imul(h,q)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,q)|0;var ye=(A+(r=r+Math.imul(u,$)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(d,$)|0))<<13)|0;A=((i=i+Math.imul(d,ee)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,P),a=(a=Math.imul(C,G))+Math.imul(D,P)|0,i=Math.imul(D,G),r=r+Math.imul(w,J)|0,a=(a=a+Math.imul(w,H)|0)+Math.imul(I,J)|0,i=i+Math.imul(I,H)|0,r=r+Math.imul(y,W)|0,a=(a=a+Math.imul(y,K)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(m,X)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,q)|0,r=r+Math.imul(h,$)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(p,$)|0,i=i+Math.imul(p,ee)|0;var ve=(A+(r=r+Math.imul(u,ne)|0)|0)+((8191&(a=(a=a+Math.imul(u,re)|0)+Math.imul(d,ne)|0))<<13)|0;A=((i=i+Math.imul(d,re)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(Y,P),a=(a=Math.imul(Y,G))+Math.imul(S,P)|0,i=Math.imul(S,G),r=r+Math.imul(C,J)|0,a=(a=a+Math.imul(C,H)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,H)|0,r=r+Math.imul(w,W)|0,a=(a=a+Math.imul(w,K)|0)+Math.imul(I,W)|0,i=i+Math.imul(I,K)|0,r=r+Math.imul(y,X)|0,a=(a=a+Math.imul(y,q)|0)+Math.imul(v,X)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(b,$)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(h,ne)|0,a=(a=a+Math.imul(h,re)|0)+Math.imul(p,ne)|0,i=i+Math.imul(p,re)|0;var Be=(A+(r=r+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(d,ie)|0))<<13)|0;A=((i=i+Math.imul(d,oe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(F,P),a=(a=Math.imul(F,G))+Math.imul(x,P)|0,i=Math.imul(x,G),r=r+Math.imul(Y,J)|0,a=(a=a+Math.imul(Y,H)|0)+Math.imul(S,J)|0,i=i+Math.imul(S,H)|0,r=r+Math.imul(C,W)|0,a=(a=a+Math.imul(C,K)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(w,X)|0,a=(a=a+Math.imul(w,q)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,q)|0,r=r+Math.imul(y,$)|0,a=(a=a+Math.imul(y,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(h,ie)|0,a=(a=a+Math.imul(h,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var we=(A+(r=r+Math.imul(u,ce)|0)|0)+((8191&(a=(a=a+Math.imul(u,Ae)|0)+Math.imul(d,ce)|0))<<13)|0;A=((i=i+Math.imul(d,Ae)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(N,P),a=(a=Math.imul(N,G))+Math.imul(R,P)|0,i=Math.imul(R,G),r=r+Math.imul(F,J)|0,a=(a=a+Math.imul(F,H)|0)+Math.imul(x,J)|0,i=i+Math.imul(x,H)|0,r=r+Math.imul(Y,W)|0,a=(a=a+Math.imul(Y,K)|0)+Math.imul(S,W)|0,i=i+Math.imul(S,K)|0,r=r+Math.imul(C,X)|0,a=(a=a+Math.imul(C,q)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(w,$)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(I,$)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(y,ne)|0,a=(a=a+Math.imul(y,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0,r=r+Math.imul(h,ce)|0,a=(a=a+Math.imul(h,Ae)|0)+Math.imul(p,ce)|0,i=i+Math.imul(p,Ae)|0;var Ie=(A+(r=r+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(d,ue)|0))<<13)|0;A=((i=i+Math.imul(d,de)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(O,P),a=(a=Math.imul(O,G))+Math.imul(_,P)|0,i=Math.imul(_,G),r=r+Math.imul(N,J)|0,a=(a=a+Math.imul(N,H)|0)+Math.imul(R,J)|0,i=i+Math.imul(R,H)|0,r=r+Math.imul(F,W)|0,a=(a=a+Math.imul(F,K)|0)+Math.imul(x,W)|0,i=i+Math.imul(x,K)|0,r=r+Math.imul(Y,X)|0,a=(a=a+Math.imul(Y,q)|0)+Math.imul(S,X)|0,i=i+Math.imul(S,q)|0,r=r+Math.imul(C,$)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(w,ne)|0,a=(a=a+Math.imul(w,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(y,ie)|0,a=(a=a+Math.imul(y,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,Ae)|0)+Math.imul(b,ce)|0,i=i+Math.imul(b,Ae)|0,r=r+Math.imul(h,ue)|0,a=(a=a+Math.imul(h,de)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,de)|0;var Me=(A+(r=r+Math.imul(u,he)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(d,he)|0))<<13)|0;A=((i=i+Math.imul(d,pe)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(O,J),a=(a=Math.imul(O,H))+Math.imul(_,J)|0,i=Math.imul(_,H),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,K)|0)+Math.imul(R,W)|0,i=i+Math.imul(R,K)|0,r=r+Math.imul(F,X)|0,a=(a=a+Math.imul(F,q)|0)+Math.imul(x,X)|0,i=i+Math.imul(x,q)|0,r=r+Math.imul(Y,$)|0,a=(a=a+Math.imul(Y,ee)|0)+Math.imul(S,$)|0,i=i+Math.imul(S,ee)|0,r=r+Math.imul(C,ne)|0,a=(a=a+Math.imul(C,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(w,ie)|0,a=(a=a+Math.imul(w,oe)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,oe)|0,r=r+Math.imul(y,ce)|0,a=(a=a+Math.imul(y,Ae)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,Ae)|0,r=r+Math.imul(m,ue)|0,a=(a=a+Math.imul(m,de)|0)+Math.imul(b,ue)|0,i=i+Math.imul(b,de)|0;var Ce=(A+(r=r+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;A=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(O,W),a=(a=Math.imul(O,K))+Math.imul(_,W)|0,i=Math.imul(_,K),r=r+Math.imul(N,X)|0,a=(a=a+Math.imul(N,q)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,q)|0,r=r+Math.imul(F,$)|0,a=(a=a+Math.imul(F,ee)|0)+Math.imul(x,$)|0,i=i+Math.imul(x,ee)|0,r=r+Math.imul(Y,ne)|0,a=(a=a+Math.imul(Y,re)|0)+Math.imul(S,ne)|0,i=i+Math.imul(S,re)|0,r=r+Math.imul(C,ie)|0,a=(a=a+Math.imul(C,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(w,ce)|0,a=(a=a+Math.imul(w,Ae)|0)+Math.imul(I,ce)|0,i=i+Math.imul(I,Ae)|0,r=r+Math.imul(y,ue)|0,a=(a=a+Math.imul(y,de)|0)+Math.imul(v,ue)|0,i=i+Math.imul(v,de)|0;var De=(A+(r=r+Math.imul(m,he)|0)|0)+((8191&(a=(a=a+Math.imul(m,pe)|0)+Math.imul(b,he)|0))<<13)|0;A=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(O,X),a=(a=Math.imul(O,q))+Math.imul(_,X)|0,i=Math.imul(_,q),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(R,$)|0,i=i+Math.imul(R,ee)|0,r=r+Math.imul(F,ne)|0,a=(a=a+Math.imul(F,re)|0)+Math.imul(x,ne)|0,i=i+Math.imul(x,re)|0,r=r+Math.imul(Y,ie)|0,a=(a=a+Math.imul(Y,oe)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,oe)|0,r=r+Math.imul(C,ce)|0,a=(a=a+Math.imul(C,Ae)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,Ae)|0,r=r+Math.imul(w,ue)|0,a=(a=a+Math.imul(w,de)|0)+Math.imul(I,ue)|0,i=i+Math.imul(I,de)|0;var Qe=(A+(r=r+Math.imul(y,he)|0)|0)+((8191&(a=(a=a+Math.imul(y,pe)|0)+Math.imul(v,he)|0))<<13)|0;A=((i=i+Math.imul(v,pe)|0)+(a>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,r=Math.imul(O,$),a=(a=Math.imul(O,ee))+Math.imul(_,$)|0,i=Math.imul(_,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(R,ne)|0,i=i+Math.imul(R,re)|0,r=r+Math.imul(F,ie)|0,a=(a=a+Math.imul(F,oe)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,oe)|0,r=r+Math.imul(Y,ce)|0,a=(a=a+Math.imul(Y,Ae)|0)+Math.imul(S,ce)|0,i=i+Math.imul(S,Ae)|0,r=r+Math.imul(C,ue)|0,a=(a=a+Math.imul(C,de)|0)+Math.imul(D,ue)|0,i=i+Math.imul(D,de)|0;var Ye=(A+(r=r+Math.imul(w,he)|0)|0)+((8191&(a=(a=a+Math.imul(w,pe)|0)+Math.imul(I,he)|0))<<13)|0;A=((i=i+Math.imul(I,pe)|0)+(a>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,r=Math.imul(O,ne),a=(a=Math.imul(O,re))+Math.imul(_,ne)|0,i=Math.imul(_,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,r=r+Math.imul(F,ce)|0,a=(a=a+Math.imul(F,Ae)|0)+Math.imul(x,ce)|0,i=i+Math.imul(x,Ae)|0,r=r+Math.imul(Y,ue)|0,a=(a=a+Math.imul(Y,de)|0)+Math.imul(S,ue)|0,i=i+Math.imul(S,de)|0;var Se=(A+(r=r+Math.imul(C,he)|0)|0)+((8191&(a=(a=a+Math.imul(C,pe)|0)+Math.imul(D,he)|0))<<13)|0;A=((i=i+Math.imul(D,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(O,ie),a=(a=Math.imul(O,oe))+Math.imul(_,ie)|0,i=Math.imul(_,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,Ae)|0)+Math.imul(R,ce)|0,i=i+Math.imul(R,Ae)|0,r=r+Math.imul(F,ue)|0,a=(a=a+Math.imul(F,de)|0)+Math.imul(x,ue)|0,i=i+Math.imul(x,de)|0;var ke=(A+(r=r+Math.imul(Y,he)|0)|0)+((8191&(a=(a=a+Math.imul(Y,pe)|0)+Math.imul(S,he)|0))<<13)|0;A=((i=i+Math.imul(S,pe)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(O,ce),a=(a=Math.imul(O,Ae))+Math.imul(_,ce)|0,i=Math.imul(_,Ae),r=r+Math.imul(N,ue)|0,a=(a=a+Math.imul(N,de)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,de)|0;var Fe=(A+(r=r+Math.imul(F,he)|0)|0)+((8191&(a=(a=a+Math.imul(F,pe)|0)+Math.imul(x,he)|0))<<13)|0;A=((i=i+Math.imul(x,pe)|0)+(a>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,r=Math.imul(O,ue),a=(a=Math.imul(O,de))+Math.imul(_,ue)|0,i=Math.imul(_,de);var xe=(A+(r=r+Math.imul(N,he)|0)|0)+((8191&(a=(a=a+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;A=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863;var Te=(A+(r=Math.imul(O,he))|0)+((8191&(a=(a=Math.imul(O,pe))+Math.imul(_,he)|0))<<13)|0;return A=((i=Math.imul(_,pe))+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=ge,c[1]=me,c[2]=be,c[3]=Ee,c[4]=ye,c[5]=ve,c[6]=Be,c[7]=we,c[8]=Ie,c[9]=Me,c[10]=Ce,c[11]=De,c[12]=Qe,c[13]=Ye,c[14]=Se,c[15]=ke,c[16]=Fe,c[17]=xe,c[18]=Te,0!==A&&(c[19]=A,n.length++),n};function h(e,t,n){return(new p).mulp(e,t,n)}function p(e,t){this.x=e,this.y=t}Math.imul||(f=d),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},p.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,A=0;A=0&&(0!==l||A>=a);A--){var u=0|this.words[A];this.words[A]=l<<26-i|u>>>i,l=u&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!==(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var A=0;A=0;u--){var d=67108864*(0|r.words[a.length+u])+(0|r.words[a.length+u-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(a,d,u);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(a,1,u),r.isZero()||(r.negative^=1);s&&(s.words[u]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),A=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++A;for(var l=n.clone(),u=t.clone();!t.isZero();){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(l),o.isub(u)),a.iushrn(1),o.iushrn(1);for(var h=0,p=1;0==(n.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(u)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(A)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var A=0,l=1;0==(t.words[0]&l)&&A<26;++A,l<<=1);if(A>0)for(t.iushrn(A);A-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var u=0,d=1;0==(n.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(n.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new B(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){B.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},a(b,m),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,a=i}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new E;else if("p192"===e)t=new y;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new v}return g[e]=t,t},B.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},B.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},B.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},B.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},B.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},B.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},B.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},B.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},B.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},B.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},B.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},B.prototype.isqr=function(e){return this.imul(e,e.clone())},B.prototype.sqr=function(e){return this.mul(e,e)},B.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),A=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,A).cmp(c);)l.redIAdd(c);for(var u=this.pow(l,a),d=this.pow(e,a.addn(1).iushrn(1)),f=this.pow(e,a),h=o;0!==f.cmp(s);){for(var p=f,g=0;0!==p.cmp(s);g++)p=p.redSqr();r(g=0;r--){for(var A=t.words[r],l=c-1;l>=0;l--){var u=A>>l&1;a!==n[0]&&(a=this.sqr(a)),0!==u||0!==o?(o<<=1,o|=u,(4===++s||0===r&&0===l)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},B.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},B.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new w(e)},a(w,B),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(this,n(57)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apply=t.closest=t.distance=t.patch=t.absolute=t.negate=t.isEqual=t.subtract=t.add=void 0;var r=i(n(302)),a=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}t.add=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},t.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},t.isEqual=function(e,t){return e.x===t.x&&e.y===t.y},t.negate=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},t.absolute=function(e){return{x:Math.abs(e.x),y:Math.abs(e.y)}},t.patch=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n={},(0,a.default)(n,e,t),(0,a.default)(n,"x"===e?"y":"x",r),n};var o=t.distance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};t.closest=function(e,t){return Math.min.apply(Math,(0,r.default)(t.map(function(t){return o(e,t)})))},t.apply=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}}},function(e,t,n){e.exports=n(1117)},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";n.r(t);var r=n(26),a=n.n(r),i=n(14),o=n.n(i);function s(e){return"/"===e.charAt(0)}function c(e,t){for(var n=t,r=n+1,a=e.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],a=e&&s(e),i=t&&s(t),o=a||i;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var A=void 0;if(r.length){var l=r[r.length-1];A="."===l||".."===l||""===l}else A=!1;for(var u=0,d=r.length;d>=0;d--){var f=r[d];"."===f?c(r,d):".."===f?(c(r,d),u++):u&&(c(r,d),u--)}if(!o)for(;u--;u)r.unshift("..");!o||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return A&&"/"!==h.substr(-1)&&(h+="/"),h},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":l(t);if(r!==(void 0===n?"undefined":l(n)))return!1;if("object"===r){var a=t.valueOf(),i=n.valueOf();if(a!==t||i!==n)return e(a,i);var o=Object.keys(t),s=Object.keys(n);return o.length===s.length&&o.every(function(r){return e(t[r],n[r])})}return!1},d=function(e){return"/"===e.charAt(0)?e:"/"+e},f=function(e){return"/"===e.charAt(0)?e.substr(1):e},h=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},p=function(e,t){return h(e,t)?e.substr(t.length):e},g=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},b=function(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a},E=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};o()(w,"Browser history needs a DOM");var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e.forceRefresh,s=void 0!==i&&i,c=e.getUserConfirmation,A=void 0===c?C:c,l=e.keyLength,u=void 0===l?6:l,f=e.basename?g(d(e.basename)):"",m=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return a()(!f||h(o,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+f+'".'),f&&(o=p(o,f)),y(o,r,n)},E=function(){return Math.random().toString(36).substr(2,u)},v=B(),S=function(e){Q(L,e),L.length=t.length,v.notifyListeners(L.location,L.action)},k=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(m(e.state))},F=function(){T(m(Y()))},x=!1,T=function(e){x?(x=!1,S()):v.confirmTransitionTo(e,"POP",A,function(t){t?S({action:"POP",location:e}):N(e)})},N=function(e){var t=L.location,n=j.indexOf(t.key);-1===n&&(n=0);var r=j.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(x=!0,_(a))},R=m(Y()),j=[R.key],O=function(e){return f+b(e)},_=function(e){t.go(e)},U=0,P=function(e){1===(U+=e)?(I(window,"popstate",k),r&&I(window,"hashchange",F)):0===U&&(M(window,"popstate",k),r&&M(window,"hashchange",F))},G=!1,L={length:t.length,action:"POP",location:R,createHref:O,push:function(e,r){a()(!("object"===(void 0===e?"undefined":D(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=y(e,r,E(),L.location);v.confirmTransitionTo(i,"PUSH",A,function(e){if(e){var r=O(i),o=i.key,c=i.state;if(n)if(t.pushState({key:o,state:c},null,r),s)window.location.href=r;else{var A=j.indexOf(L.location.key),l=j.slice(0,-1===A?0:A+1);l.push(i.key),j=l,S({action:"PUSH",location:i})}else a()(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,r){a()(!("object"===(void 0===e?"undefined":D(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=y(e,r,E(),L.location);v.confirmTransitionTo(i,"REPLACE",A,function(e){if(e){var r=O(i),o=i.key,c=i.state;if(n)if(t.replaceState({key:o,state:c},null,r),s)window.location.replace(r);else{var A=j.indexOf(L.location.key);-1!==A&&(j[A]=i.key),S({action:"REPLACE",location:i})}else a()(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:_,goBack:function(){return _(-1)},goForward:function(){return _(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=v.setPrompt(e);return G||(P(1),G=!0),function(){return G&&(G=!1,P(-1)),t()}},listen:function(e){var t=v.appendListener(e);return P(1),function(){P(-1),t()}}};return L},k=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o()(w,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?C:r,s=e.hashType,c=void 0===s?"slash":s,A=e.basename?g(d(e.basename)):"",l=F[c],u=l.encodePath,f=l.decodePath,m=function(){var e=f(x());return a()(!A||h(e,A),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+A+'".'),A&&(e=p(e,A)),y(e)},E=B(),D=function(e){k(H,e),H.length=t.length,E.notifyListeners(H.location,H.action)},Q=!1,Y=null,S=function(){var e=x(),t=u(e);if(e!==t)T(t);else{var n=m(),r=H.location;if(!Q&&v(r,n))return;if(Y===b(n))return;Y=null,N(n)}},N=function(e){Q?(Q=!1,D()):E.confirmTransitionTo(e,"POP",i,function(t){t?D({action:"POP",location:e}):R(e)})},R=function(e){var t=H.location,n=U.lastIndexOf(b(t));-1===n&&(n=0);var r=U.lastIndexOf(b(e));-1===r&&(r=0);var a=n-r;a&&(Q=!0,P(a))},j=x(),O=u(j);j!==O&&T(O);var _=m(),U=[b(_)],P=function(e){a()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},G=0,L=function(e){1===(G+=e)?I(window,"hashchange",S):0===G&&M(window,"hashchange",S)},J=!1,H={length:t.length,action:"POP",location:_,createHref:function(e){return"#"+u(A+b(e))},push:function(e,t){a()(void 0===t,"Hash history cannot push state; it is ignored");var n=y(e,void 0,void 0,H.location);E.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=b(n),r=u(A+t);if(x()!==r){Y=t,function(e){window.location.hash=e}(r);var i=U.lastIndexOf(b(H.location)),o=U.slice(0,-1===i?0:i+1);o.push(t),U=o,D({action:"PUSH",location:n})}else a()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),D()}})},replace:function(e,t){a()(void 0===t,"Hash history cannot replace state; it is ignored");var n=y(e,void 0,void 0,H.location);E.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=b(n),r=u(A+t);x()!==r&&(Y=t,T(r));var a=U.indexOf(b(H.location));-1!==a&&(U[a]=t),D({action:"REPLACE",location:n})}})},go:P,goBack:function(){return P(-1)},goForward:function(){return P(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=E.setPrompt(e);return J||(L(1),J=!0),function(){return J&&(J=!1,L(-1)),t()}},listen:function(e){var t=E.appendListener(e);return L(1),function(){L(-1),t()}}};return H},R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,o=void 0===i?0:i,s=e.keyLength,c=void 0===s?6:s,A=B(),l=function(e){j(g,e),g.length=g.entries.length,A.notifyListeners(g.location,g.action)},u=function(){return Math.random().toString(36).substr(2,c)},d=O(o,0,r.length-1),f=r.map(function(e){return y(e,void 0,"string"==typeof e?u():e.key||u())}),h=b,p=function(e){var n=O(g.index+e,0,g.entries.length-1),r=g.entries[n];A.confirmTransitionTo(r,"POP",t,function(e){e?l({action:"POP",location:r,index:n}):l()})},g={length:f.length,action:"POP",location:f[d],index:d,entries:f,createHref:h,push:function(e,n){a()(!("object"===(void 0===e?"undefined":R(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=y(e,n,u(),g.location);A.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),l({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){a()(!("object"===(void 0===e?"undefined":R(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=y(e,n,u(),g.location);A.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(g.entries[g.index]=r,l({action:"REPLACE",location:r}))})},go:p,goBack:function(){return p(-1)},goForward:function(){return p(1)},canGo:function(e){var t=g.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return A.setPrompt(e)},listen:function(e){return A.appendListener(e)}};return g};n.d(t,"createBrowserHistory",function(){return S}),n.d(t,"createHashHistory",function(){return N}),n.d(t,"createMemoryHistory",function(){return _}),n.d(t,"createLocation",function(){return y}),n.d(t,"locationsAreEqual",function(){return v}),n.d(t,"parsePath",function(){return m}),n.d(t,"createPath",function(){return b})},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";n.r(t);var r=n(119),a=n(310),i={INIT:"@@redux/INIT"};function o(e,t,n){var s;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,A=t,l=[],u=l,d=!1;function f(){u===l&&(u=l.slice())}function h(){return A}function p(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return f(),u.push(e),function(){if(t){t=!1,f();var n=u.indexOf(e);u.splice(n,1)}}}function g(e){if(!Object(r.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,A=c(A,e)}finally{d=!1}for(var t=l=u,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(c)throw c;for(var r=!1,a={},i=0;i0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",a=function(e){function a(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i[t]=n.store,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,e),a.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},a.prototype.render=function(){return r.Children.only(this.props.children)},a}(r.Component);return a.propTypes={store:s.isRequired,children:i.a.element.isRequired},a.childContextTypes=((e={})[t]=s.isRequired,e[n]=o,e),a}var A=c(),l=n(117),u=n.n(l),d=n(14),f=n.n(d);var h=null,p={notify:function(){}};var g=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=p}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=h,e=h},notify:function(){for(var n=e=t,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},i=a.getDisplayName,c=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,A=a.methodName,l=void 0===A?"connectAdvanced":A,d=a.renderCountProp,h=void 0===d?void 0:d,p=a.shouldHandleStateChanges,v=void 0===p||p,B=a.storeKey,w=void 0===B?"store":B,I=a.withRef,M=void 0!==I&&I,C=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),D=w+"Subscription",Q=b++,Y=((t={})[w]=s,t[D]=o,t),S=((n={})[D]=o,n);return function(t){f()("function"==typeof t,"You must pass a component to the function returned by "+l+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",a=c(n),i=m({},C,{getDisplayName:c,methodName:l,renderCountProp:h,shouldHandleStateChanges:v,storeKey:w,withRef:M,displayName:a,wrappedComponentName:n,WrappedComponent:t}),o=function(n){function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=Q,r.state={},r.renderCount=0,r.store=e[w]||t[w],r.propsMode=Boolean(e[w]),r.setWrappedInstance=r.setWrappedInstance.bind(r),f()(r.store,'Could not find "'+w+'" in either the context or props of "'+a+'". Either wrap the root component in a , or explicitly pass "'+w+'" as a prop to "'+a+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),o.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[D]=t||this.context[D],e},o.prototype.componentDidMount=function(){v&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},o.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},o.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},o.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=y,this.store=null,this.selector.run=y,this.selector.shouldComponentUpdate=!1},o.prototype.getWrappedInstance=function(){return f()(M,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+l+"() call."),this.wrappedInstance},o.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},o.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var a=e(t.getState(),r);(a!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=a,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},o.prototype.initSubscription=function(){if(v){var e=(this.propsMode?this.props:this.context)[D];this.subscription=new g(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},o.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(E)):this.notifyNestedSubs()},o.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},o.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},o.prototype.addExtraProps=function(e){if(!(M||h||this.propsMode&&this.subscription))return e;var t=m({},e);return M&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[D]=this.subscription),t},o.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},o}(r.Component);return o.WrappedComponent=t,o.displayName=a,o.childContextTypes=S,o.contextTypes=Y,o.propTypes=Y,u()(o,t)}}var B=Object.prototype.hasOwnProperty;function w(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function I(e,t){if(w(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),o=n(e,i),s=r(e,i),c=a(e,i);return(i.pure?N:T)(o,s,c,e,i)}var j=Object.assign||function(e){for(var t=1;t=0;r--){var a=t[r](e);if(a)return a}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function _(e,t){return e===t}var U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?v:t,r=e.mapStateToPropsFactories,a=void 0===r?S:r,i=e.mapDispatchToPropsFactories,o=void 0===i?Y:i,s=e.mergePropsFactories,c=void 0===s?x:s,A=e.selectorFactory,l=void 0===A?R:A;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=i.pure,A=void 0===s||s,u=i.areStatesEqual,d=void 0===u?_:u,f=i.areOwnPropsEqual,h=void 0===f?I:f,p=i.areStatePropsEqual,g=void 0===p?I:p,m=i.areMergedPropsEqual,b=void 0===m?I:m,E=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),y=O(e,a,"mapStateToProps"),v=O(t,o,"mapDispatchToProps"),B=O(r,c,"mergeProps");return n(l,j({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:v,initMergeProps:B,pure:A,areStatesEqual:d,areOwnPropsEqual:h,areStatePropsEqual:g,areMergedPropsEqual:b},E))}}();n.d(t,"Provider",function(){return A}),n.d(t,"createProvider",function(){return c}),n.d(t,"connectAdvanced",function(){return v}),n.d(t,"connect",function(){return U})},function(e,t,n){"use strict"; +*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},n.prototype.removeListener=function(e,t){var n,o,i,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var i;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{i=n(764).Buffer}catch(e){}function s(e,t,n){for(var r=0,a=Math.min(e.length,n),o=t;o=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return r}function c(e,t,n,r){for(var a=0,o=Math.min(e.length,n),i=t;i=49?s-49+10:s>=17?s-17+10:s}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&a++,16===t?this._parseHex(e,a):this._parseBase(e,t,a),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a=0;a-=3)i=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=i<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(a=0,o=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)a=s(e,n,n+6),this.words[r]|=a<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(a=s(e,t,n+6),this.words[r]|=a<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var o=e.length-n,i=o%r,s=Math.min(o,o-i)+n,A=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function u(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],o=0|t.words[0],i=a*o,s=67108863&i,c=i/67108864|0;n.words[0]=s;for(var A=1;A>>26,d=67108863&c,u=Math.min(A,t.length-1),f=Math.max(0,A-e.length+1);f<=u;f++){var h=A-f|0;l+=(i=(a=0|e.words[h])*(o=0|t.words[f])+d)/67108864|0,d=67108863&i}n.words[A]=0|d,c=0|l}return 0!==c?n.words[A]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(e=e||10,t=0|t||1,16===e||"hex"===e){n="";for(var a=0,o=0,i=0;i>>24-a&16777215)||i!==this.length-1?A[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,i--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],f=d[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(f).toString(e);n=(h=h.idivn(f)).isZero()?p+n:A[u-p.length]+p+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),o=n||Math.max(1,a);r(a<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var i,s,c="le"===t,A=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)i=l.andln(255),l.iushrn(8),A[s]=i;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o>>26;for(;0!==a&&o>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==o&&i>26,this.words[i]=67108863&t;if(0===o&&i>>13,f=0|i[1],h=8191&f,p=f>>>13,g=0|i[2],m=8191&g,b=g>>>13,E=0|i[3],y=8191&E,v=E>>>13,B=0|i[4],w=8191&B,I=B>>>13,M=0|i[5],C=8191&M,D=M>>>13,Q=0|i[6],Y=8191&Q,S=Q>>>13,k=0|i[7],F=8191&k,x=k>>>13,T=0|i[8],N=8191&T,R=T>>>13,j=0|i[9],O=8191&j,U=j>>>13,_=0|s[0],P=8191&_,G=_>>>13,J=0|s[1],L=8191&J,H=J>>>13,z=0|s[2],W=8191&z,K=z>>>13,V=0|s[3],X=8191&V,q=V>>>13,Z=0|s[4],$=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],oe=8191&ae,ie=ae>>>13,se=0|s[7],ce=8191&se,Ae=se>>>13,le=0|s[8],de=8191&le,ue=le>>>13,fe=0|s[9],he=8191&fe,pe=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(A+(r=Math.imul(d,P))|0)+((8191&(a=(a=Math.imul(d,G))+Math.imul(u,P)|0))<<13)|0;A=((o=Math.imul(u,G))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(h,P),a=(a=Math.imul(h,G))+Math.imul(p,P)|0,o=Math.imul(p,G);var me=(A+(r=r+Math.imul(d,L)|0)|0)+((8191&(a=(a=a+Math.imul(d,H)|0)+Math.imul(u,L)|0))<<13)|0;A=((o=o+Math.imul(u,H)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,P),a=(a=Math.imul(m,G))+Math.imul(b,P)|0,o=Math.imul(b,G),r=r+Math.imul(h,L)|0,a=(a=a+Math.imul(h,H)|0)+Math.imul(p,L)|0,o=o+Math.imul(p,H)|0;var be=(A+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,K)|0)+Math.imul(u,W)|0))<<13)|0;A=((o=o+Math.imul(u,K)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(y,P),a=(a=Math.imul(y,G))+Math.imul(v,P)|0,o=Math.imul(v,G),r=r+Math.imul(m,L)|0,a=(a=a+Math.imul(m,H)|0)+Math.imul(b,L)|0,o=o+Math.imul(b,H)|0,r=r+Math.imul(h,W)|0,a=(a=a+Math.imul(h,K)|0)+Math.imul(p,W)|0,o=o+Math.imul(p,K)|0;var Ee=(A+(r=r+Math.imul(d,X)|0)|0)+((8191&(a=(a=a+Math.imul(d,q)|0)+Math.imul(u,X)|0))<<13)|0;A=((o=o+Math.imul(u,q)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(w,P),a=(a=Math.imul(w,G))+Math.imul(I,P)|0,o=Math.imul(I,G),r=r+Math.imul(y,L)|0,a=(a=a+Math.imul(y,H)|0)+Math.imul(v,L)|0,o=o+Math.imul(v,H)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(h,X)|0,a=(a=a+Math.imul(h,q)|0)+Math.imul(p,X)|0,o=o+Math.imul(p,q)|0;var ye=(A+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(u,$)|0))<<13)|0;A=((o=o+Math.imul(u,ee)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,P),a=(a=Math.imul(C,G))+Math.imul(D,P)|0,o=Math.imul(D,G),r=r+Math.imul(w,L)|0,a=(a=a+Math.imul(w,H)|0)+Math.imul(I,L)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(y,W)|0,a=(a=a+Math.imul(y,K)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,K)|0,r=r+Math.imul(m,X)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(h,$)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(p,$)|0,o=o+Math.imul(p,ee)|0;var ve=(A+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(u,ne)|0))<<13)|0;A=((o=o+Math.imul(u,re)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(Y,P),a=(a=Math.imul(Y,G))+Math.imul(S,P)|0,o=Math.imul(S,G),r=r+Math.imul(C,L)|0,a=(a=a+Math.imul(C,H)|0)+Math.imul(D,L)|0,o=o+Math.imul(D,H)|0,r=r+Math.imul(w,W)|0,a=(a=a+Math.imul(w,K)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,K)|0,r=r+Math.imul(y,X)|0,a=(a=a+Math.imul(y,q)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(h,ne)|0,a=(a=a+Math.imul(h,re)|0)+Math.imul(p,ne)|0,o=o+Math.imul(p,re)|0;var Be=(A+(r=r+Math.imul(d,oe)|0)|0)+((8191&(a=(a=a+Math.imul(d,ie)|0)+Math.imul(u,oe)|0))<<13)|0;A=((o=o+Math.imul(u,ie)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(F,P),a=(a=Math.imul(F,G))+Math.imul(x,P)|0,o=Math.imul(x,G),r=r+Math.imul(Y,L)|0,a=(a=a+Math.imul(Y,H)|0)+Math.imul(S,L)|0,o=o+Math.imul(S,H)|0,r=r+Math.imul(C,W)|0,a=(a=a+Math.imul(C,K)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(w,X)|0,a=(a=a+Math.imul(w,q)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,q)|0,r=r+Math.imul(y,$)|0,a=(a=a+Math.imul(y,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(h,oe)|0,a=(a=a+Math.imul(h,ie)|0)+Math.imul(p,oe)|0,o=o+Math.imul(p,ie)|0;var we=(A+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,Ae)|0)+Math.imul(u,ce)|0))<<13)|0;A=((o=o+Math.imul(u,Ae)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(N,P),a=(a=Math.imul(N,G))+Math.imul(R,P)|0,o=Math.imul(R,G),r=r+Math.imul(F,L)|0,a=(a=a+Math.imul(F,H)|0)+Math.imul(x,L)|0,o=o+Math.imul(x,H)|0,r=r+Math.imul(Y,W)|0,a=(a=a+Math.imul(Y,K)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(C,X)|0,a=(a=a+Math.imul(C,q)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(w,$)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(y,ne)|0,a=(a=a+Math.imul(y,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(m,oe)|0,a=(a=a+Math.imul(m,ie)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ie)|0,r=r+Math.imul(h,ce)|0,a=(a=a+Math.imul(h,Ae)|0)+Math.imul(p,ce)|0,o=o+Math.imul(p,Ae)|0;var Ie=(A+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(u,de)|0))<<13)|0;A=((o=o+Math.imul(u,ue)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(O,P),a=(a=Math.imul(O,G))+Math.imul(U,P)|0,o=Math.imul(U,G),r=r+Math.imul(N,L)|0,a=(a=a+Math.imul(N,H)|0)+Math.imul(R,L)|0,o=o+Math.imul(R,H)|0,r=r+Math.imul(F,W)|0,a=(a=a+Math.imul(F,K)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,K)|0,r=r+Math.imul(Y,X)|0,a=(a=a+Math.imul(Y,q)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(C,$)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(w,ne)|0,a=(a=a+Math.imul(w,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(y,oe)|0,a=(a=a+Math.imul(y,ie)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ie)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,Ae)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,Ae)|0,r=r+Math.imul(h,de)|0,a=(a=a+Math.imul(h,ue)|0)+Math.imul(p,de)|0,o=o+Math.imul(p,ue)|0;var Me=(A+(r=r+Math.imul(d,he)|0)|0)+((8191&(a=(a=a+Math.imul(d,pe)|0)+Math.imul(u,he)|0))<<13)|0;A=((o=o+Math.imul(u,pe)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(O,L),a=(a=Math.imul(O,H))+Math.imul(U,L)|0,o=Math.imul(U,H),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,K)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,K)|0,r=r+Math.imul(F,X)|0,a=(a=a+Math.imul(F,q)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,q)|0,r=r+Math.imul(Y,$)|0,a=(a=a+Math.imul(Y,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(C,ne)|0,a=(a=a+Math.imul(C,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(w,oe)|0,a=(a=a+Math.imul(w,ie)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ie)|0,r=r+Math.imul(y,ce)|0,a=(a=a+Math.imul(y,Ae)|0)+Math.imul(v,ce)|0,o=o+Math.imul(v,Ae)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,ue)|0;var Ce=(A+(r=r+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;A=((o=o+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(O,W),a=(a=Math.imul(O,K))+Math.imul(U,W)|0,o=Math.imul(U,K),r=r+Math.imul(N,X)|0,a=(a=a+Math.imul(N,q)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(F,$)|0,a=(a=a+Math.imul(F,ee)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,ee)|0,r=r+Math.imul(Y,ne)|0,a=(a=a+Math.imul(Y,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(C,oe)|0,a=(a=a+Math.imul(C,ie)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ie)|0,r=r+Math.imul(w,ce)|0,a=(a=a+Math.imul(w,Ae)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,Ae)|0,r=r+Math.imul(y,de)|0,a=(a=a+Math.imul(y,ue)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,ue)|0;var De=(A+(r=r+Math.imul(m,he)|0)|0)+((8191&(a=(a=a+Math.imul(m,pe)|0)+Math.imul(b,he)|0))<<13)|0;A=((o=o+Math.imul(b,pe)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(O,X),a=(a=Math.imul(O,q))+Math.imul(U,X)|0,o=Math.imul(U,q),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(F,ne)|0,a=(a=a+Math.imul(F,re)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,re)|0,r=r+Math.imul(Y,oe)|0,a=(a=a+Math.imul(Y,ie)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ie)|0,r=r+Math.imul(C,ce)|0,a=(a=a+Math.imul(C,Ae)|0)+Math.imul(D,ce)|0,o=o+Math.imul(D,Ae)|0,r=r+Math.imul(w,de)|0,a=(a=a+Math.imul(w,ue)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,ue)|0;var Qe=(A+(r=r+Math.imul(y,he)|0)|0)+((8191&(a=(a=a+Math.imul(y,pe)|0)+Math.imul(v,he)|0))<<13)|0;A=((o=o+Math.imul(v,pe)|0)+(a>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,r=Math.imul(O,$),a=(a=Math.imul(O,ee))+Math.imul(U,$)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(R,ne)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(F,oe)|0,a=(a=a+Math.imul(F,ie)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ie)|0,r=r+Math.imul(Y,ce)|0,a=(a=a+Math.imul(Y,Ae)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,Ae)|0,r=r+Math.imul(C,de)|0,a=(a=a+Math.imul(C,ue)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,ue)|0;var Ye=(A+(r=r+Math.imul(w,he)|0)|0)+((8191&(a=(a=a+Math.imul(w,pe)|0)+Math.imul(I,he)|0))<<13)|0;A=((o=o+Math.imul(I,pe)|0)+(a>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,r=Math.imul(O,ne),a=(a=Math.imul(O,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,a=(a=a+Math.imul(N,ie)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ie)|0,r=r+Math.imul(F,ce)|0,a=(a=a+Math.imul(F,Ae)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,Ae)|0,r=r+Math.imul(Y,de)|0,a=(a=a+Math.imul(Y,ue)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,ue)|0;var Se=(A+(r=r+Math.imul(C,he)|0)|0)+((8191&(a=(a=a+Math.imul(C,pe)|0)+Math.imul(D,he)|0))<<13)|0;A=((o=o+Math.imul(D,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(O,oe),a=(a=Math.imul(O,ie))+Math.imul(U,oe)|0,o=Math.imul(U,ie),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,Ae)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,Ae)|0,r=r+Math.imul(F,de)|0,a=(a=a+Math.imul(F,ue)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,ue)|0;var ke=(A+(r=r+Math.imul(Y,he)|0)|0)+((8191&(a=(a=a+Math.imul(Y,pe)|0)+Math.imul(S,he)|0))<<13)|0;A=((o=o+Math.imul(S,pe)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(O,ce),a=(a=Math.imul(O,Ae))+Math.imul(U,ce)|0,o=Math.imul(U,Ae),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(R,de)|0,o=o+Math.imul(R,ue)|0;var Fe=(A+(r=r+Math.imul(F,he)|0)|0)+((8191&(a=(a=a+Math.imul(F,pe)|0)+Math.imul(x,he)|0))<<13)|0;A=((o=o+Math.imul(x,pe)|0)+(a>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,r=Math.imul(O,de),a=(a=Math.imul(O,ue))+Math.imul(U,de)|0,o=Math.imul(U,ue);var xe=(A+(r=r+Math.imul(N,he)|0)|0)+((8191&(a=(a=a+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;A=((o=o+Math.imul(R,pe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863;var Te=(A+(r=Math.imul(O,he))|0)+((8191&(a=(a=Math.imul(O,pe))+Math.imul(U,he)|0))<<13)|0;return A=((o=Math.imul(U,pe))+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=ge,c[1]=me,c[2]=be,c[3]=Ee,c[4]=ye,c[5]=ve,c[6]=Be,c[7]=we,c[8]=Ie,c[9]=Me,c[10]=Ce,c[11]=De,c[12]=Qe,c[13]=Ye,c[14]=Se,c[15]=ke,c[16]=Fe,c[17]=xe,c[18]=Te,0!==A&&(c[19]=A,n.length++),n};function h(e,t,n){return(new p).mulp(e,t,n)}function p(e,t){this.x=e,this.y=t}Math.imul||(f=u),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):n<63?u(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,o=0;o>>26)|0)>>>26,i&=67108863}n.words[o]=s,r=i,i=a}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},p.prototype.permute=function(e,t,n,r,a,o){for(var i=0;i>>=1)a++;return 1<>>=13,n[2*i+1]=8191&o,o>>>=13;for(i=2*t;i>=26,t+=a/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var i=0;for(t=0;t>>26-n}i&&(this.words[t]=i,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var o=e%26,i=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<i)for(this.length-=i,A=0;A=0&&(0!==l||A>=a);A--){var d=0|this.words[A];this.words[A]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&o}for(;a>26,this.words[a+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,i=0|a.words[a.length-1];0!==(n=26-this._countBits(i))&&(a=a.ushln(n),r.iushln(n),i=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var A=0;A=0;d--){var u=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(u=Math.min(u/i|0,67108863),r._ishlnsubmul(a,u,d);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=u)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:a,mod:i}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:s.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,i,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),o=n.cmp(r);return o<0||1===a&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new o(1),i=new o(0),s=new o(0),c=new o(1),A=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++A;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(a.isOdd()||i.isOdd())&&(a.iadd(l),i.isub(d)),a.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(n.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),i.isub(c)):(n.isub(t),s.isub(a),c.isub(i))}return{a:s,b:c,gcd:n.iushln(A)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,i=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var A=0,l=1;0==(t.words[0]&l)&&A<26;++A,l<<=1);if(A>0)for(t.iushrn(A);A-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);for(var d=0,u=1;0==(n.words[0]&u)&&d<26;++d,u<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s)):(n.isub(t),s.isub(i))}return(a=0===t.cmpn(1)?i:s).cmpn(0)<0&&a.iadd(e),a},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var o=t;t=n,n=o}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[i]=s}return 0!==o&&(this.words[i]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new B(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){B.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},a(b,m),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,a=o}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new E;else if("p192"===e)t=new y;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new v}return g[e]=t,t},B.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},B.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},B.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},B.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},B.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},B.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},B.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},B.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},B.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},B.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},B.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},B.prototype.isqr=function(e){return this.imul(e,e.clone())},B.prototype.sqr=function(e){return this.mul(e,e)},B.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),i=0;!a.isZero()&&0===a.andln(1);)i++,a.iushrn(1);r(!a.isZero());var s=new o(1).toRed(this),c=s.redNeg(),A=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,A).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,a),u=this.pow(e,a.addn(1).iushrn(1)),f=this.pow(e,a),h=i;0!==f.cmp(s);){for(var p=f,g=0;0!==p.cmp(s);g++)p=p.redSqr();r(g=0;r--){for(var A=t.words[r],l=c-1;l>=0;l--){var d=A>>l&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==i?(i<<=1,i|=d,(4===++s||0===r&&0===l)&&(a=this.mul(a,n[i]),s=0,i=0)):s=0}c=26}return a},B.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},B.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new w(e)},a(w,B),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(this,n(59)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apply=t.closest=t.distance=t.patch=t.absolute=t.negate=t.isEqual=t.subtract=t.add=void 0;var r=o(n(300)),a=o(n(48));function o(e){return e&&e.__esModule?e:{default:e}}t.add=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},t.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},t.isEqual=function(e,t){return e.x===t.x&&e.y===t.y},t.negate=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},t.absolute=function(e){return{x:Math.abs(e.x),y:Math.abs(e.y)}},t.patch=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n={},(0,a.default)(n,e,t),(0,a.default)(n,"x"===e?"y":"x",r),n};var i=t.distance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};t.closest=function(e,t){return Math.min.apply(Math,(0,r.default)(t.map(function(t){return i(e,t)})))},t.apply=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}}},function(e,t,n){e.exports=n(1092)},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";n.r(t);var r=n(26),a=n.n(r),o=n(14),i=n.n(o);function s(e){return"/"===e.charAt(0)}function c(e,t){for(var n=t,r=n+1,a=e.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],a=e&&s(e),o=t&&s(t),i=a||o;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var A=void 0;if(r.length){var l=r[r.length-1];A="."===l||".."===l||""===l}else A=!1;for(var d=0,u=r.length;u>=0;u--){var f=r[u];"."===f?c(r,u):".."===f?(c(r,u),d++):d&&(c(r,u),d--)}if(!i)for(;d--;d)r.unshift("..");!i||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return A&&"/"!==h.substr(-1)&&(h+="/"),h},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var d=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":l(t);if(r!==(void 0===n?"undefined":l(n)))return!1;if("object"===r){var a=t.valueOf(),o=n.valueOf();if(a!==t||o!==n)return e(a,o);var i=Object.keys(t),s=Object.keys(n);return i.length===s.length&&i.every(function(r){return e(t[r],n[r])})}return!1},u=function(e){return"/"===e.charAt(0)?e:"/"+e},f=function(e){return"/"===e.charAt(0)?e.substr(1):e},h=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},p=function(e,t){return h(e,t)?e.substr(t.length):e},g=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},b=function(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a},E=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};i()(w,"Browser history needs a DOM");var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e.forceRefresh,s=void 0!==o&&o,c=e.getUserConfirmation,A=void 0===c?C:c,l=e.keyLength,d=void 0===l?6:l,f=e.basename?g(u(e.basename)):"",m=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return a()(!f||h(i,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+f+'".'),f&&(i=p(i,f)),y(i,r,n)},E=function(){return Math.random().toString(36).substr(2,d)},v=B(),S=function(e){Q(J,e),J.length=t.length,v.notifyListeners(J.location,J.action)},k=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(m(e.state))},F=function(){T(m(Y()))},x=!1,T=function(e){x?(x=!1,S()):v.confirmTransitionTo(e,"POP",A,function(t){t?S({action:"POP",location:e}):N(e)})},N=function(e){var t=J.location,n=j.indexOf(t.key);-1===n&&(n=0);var r=j.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(x=!0,U(a))},R=m(Y()),j=[R.key],O=function(e){return f+b(e)},U=function(e){t.go(e)},_=0,P=function(e){1===(_+=e)?(I(window,"popstate",k),r&&I(window,"hashchange",F)):0===_&&(M(window,"popstate",k),r&&M(window,"hashchange",F))},G=!1,J={length:t.length,action:"POP",location:R,createHref:O,push:function(e,r){a()(!("object"===(void 0===e?"undefined":D(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=y(e,r,E(),J.location);v.confirmTransitionTo(o,"PUSH",A,function(e){if(e){var r=O(o),i=o.key,c=o.state;if(n)if(t.pushState({key:i,state:c},null,r),s)window.location.href=r;else{var A=j.indexOf(J.location.key),l=j.slice(0,-1===A?0:A+1);l.push(o.key),j=l,S({action:"PUSH",location:o})}else a()(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,r){a()(!("object"===(void 0===e?"undefined":D(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=y(e,r,E(),J.location);v.confirmTransitionTo(o,"REPLACE",A,function(e){if(e){var r=O(o),i=o.key,c=o.state;if(n)if(t.replaceState({key:i,state:c},null,r),s)window.location.replace(r);else{var A=j.indexOf(J.location.key);-1!==A&&(j[A]=o.key),S({action:"REPLACE",location:o})}else a()(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:U,goBack:function(){return U(-1)},goForward:function(){return U(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=v.setPrompt(e);return G||(P(1),G=!0),function(){return G&&(G=!1,P(-1)),t()}},listen:function(e){var t=v.appendListener(e);return P(1),function(){P(-1),t()}}};return J},k=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(w,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,o=void 0===r?C:r,s=e.hashType,c=void 0===s?"slash":s,A=e.basename?g(u(e.basename)):"",l=F[c],d=l.encodePath,f=l.decodePath,m=function(){var e=f(x());return a()(!A||h(e,A),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+A+'".'),A&&(e=p(e,A)),y(e)},E=B(),D=function(e){k(H,e),H.length=t.length,E.notifyListeners(H.location,H.action)},Q=!1,Y=null,S=function(){var e=x(),t=d(e);if(e!==t)T(t);else{var n=m(),r=H.location;if(!Q&&v(r,n))return;if(Y===b(n))return;Y=null,N(n)}},N=function(e){Q?(Q=!1,D()):E.confirmTransitionTo(e,"POP",o,function(t){t?D({action:"POP",location:e}):R(e)})},R=function(e){var t=H.location,n=_.lastIndexOf(b(t));-1===n&&(n=0);var r=_.lastIndexOf(b(e));-1===r&&(r=0);var a=n-r;a&&(Q=!0,P(a))},j=x(),O=d(j);j!==O&&T(O);var U=m(),_=[b(U)],P=function(e){a()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},G=0,J=function(e){1===(G+=e)?I(window,"hashchange",S):0===G&&M(window,"hashchange",S)},L=!1,H={length:t.length,action:"POP",location:U,createHref:function(e){return"#"+d(A+b(e))},push:function(e,t){a()(void 0===t,"Hash history cannot push state; it is ignored");var n=y(e,void 0,void 0,H.location);E.confirmTransitionTo(n,"PUSH",o,function(e){if(e){var t=b(n),r=d(A+t);if(x()!==r){Y=t,function(e){window.location.hash=e}(r);var o=_.lastIndexOf(b(H.location)),i=_.slice(0,-1===o?0:o+1);i.push(t),_=i,D({action:"PUSH",location:n})}else a()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),D()}})},replace:function(e,t){a()(void 0===t,"Hash history cannot replace state; it is ignored");var n=y(e,void 0,void 0,H.location);E.confirmTransitionTo(n,"REPLACE",o,function(e){if(e){var t=b(n),r=d(A+t);x()!==r&&(Y=t,T(r));var a=_.indexOf(b(H.location));-1!==a&&(_[a]=t),D({action:"REPLACE",location:n})}})},go:P,goBack:function(){return P(-1)},goForward:function(){return P(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=E.setPrompt(e);return L||(J(1),L=!0),function(){return L&&(L=!1,J(-1)),t()}},listen:function(e){var t=E.appendListener(e);return J(1),function(){J(-1),t()}}};return H},R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,o=e.initialIndex,i=void 0===o?0:o,s=e.keyLength,c=void 0===s?6:s,A=B(),l=function(e){j(g,e),g.length=g.entries.length,A.notifyListeners(g.location,g.action)},d=function(){return Math.random().toString(36).substr(2,c)},u=O(i,0,r.length-1),f=r.map(function(e){return y(e,void 0,"string"==typeof e?d():e.key||d())}),h=b,p=function(e){var n=O(g.index+e,0,g.entries.length-1),r=g.entries[n];A.confirmTransitionTo(r,"POP",t,function(e){e?l({action:"POP",location:r,index:n}):l()})},g={length:f.length,action:"POP",location:f[u],index:u,entries:f,createHref:h,push:function(e,n){a()(!("object"===(void 0===e?"undefined":R(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=y(e,n,d(),g.location);A.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),l({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){a()(!("object"===(void 0===e?"undefined":R(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=y(e,n,d(),g.location);A.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(g.entries[g.index]=r,l({action:"REPLACE",location:r}))})},go:p,goBack:function(){return p(-1)},goForward:function(){return p(1)},canGo:function(e){var t=g.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return A.setPrompt(e)},listen:function(e){return A.appendListener(e)}};return g};n.d(t,"createBrowserHistory",function(){return S}),n.d(t,"createHashHistory",function(){return N}),n.d(t,"createMemoryHistory",function(){return U}),n.d(t,"createLocation",function(){return y}),n.d(t,"locationsAreEqual",function(){return v}),n.d(t,"parsePath",function(){return m}),n.d(t,"createPath",function(){return b})},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";n.r(t);var r=n(119),a=n(308),o={INIT:"@@redux/INIT"};function i(e,t,n){var s;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,A=t,l=[],d=l,u=!1;function f(){d===l&&(d=l.slice())}function h(){return A}function p(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return f(),d.push(e),function(){if(t){t=!1,f();var n=d.indexOf(e);d.splice(n,1)}}}function g(e){if(!Object(r.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,A=c(A,e)}finally{u=!1}for(var t=l=d,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(c)throw c;for(var r=!1,a={},o=0;o0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",a=function(e){function a(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return o[t]=n.store,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,e),a.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},a.prototype.render=function(){return r.Children.only(this.props.children)},a}(r.Component);return a.propTypes={store:s.isRequired,children:o.a.element.isRequired},a.childContextTypes=((e={})[t]=s.isRequired,e[n]=i,e),a}var A=c(),l=n(117),d=n.n(l),u=n(14),f=n.n(u);var h=null,p={notify:function(){}};var g=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=p}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=h,e=h},notify:function(){for(var n=e=t,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},o=a.getDisplayName,c=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,A=a.methodName,l=void 0===A?"connectAdvanced":A,u=a.renderCountProp,h=void 0===u?void 0:u,p=a.shouldHandleStateChanges,v=void 0===p||p,B=a.storeKey,w=void 0===B?"store":B,I=a.withRef,M=void 0!==I&&I,C=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),D=w+"Subscription",Q=b++,Y=((t={})[w]=s,t[D]=i,t),S=((n={})[D]=i,n);return function(t){f()("function"==typeof t,"You must pass a component to the function returned by "+l+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",a=c(n),o=m({},C,{getDisplayName:c,methodName:l,renderCountProp:h,shouldHandleStateChanges:v,storeKey:w,withRef:M,displayName:a,wrappedComponentName:n,WrappedComponent:t}),i=function(n){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=Q,r.state={},r.renderCount=0,r.store=e[w]||t[w],r.propsMode=Boolean(e[w]),r.setWrappedInstance=r.setWrappedInstance.bind(r),f()(r.store,'Could not find "'+w+'" in either the context or props of "'+a+'". Either wrap the root component in a , or explicitly pass "'+w+'" as a prop to "'+a+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),i.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[D]=t||this.context[D],e},i.prototype.componentDidMount=function(){v&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},i.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},i.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},i.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=y,this.store=null,this.selector.run=y,this.selector.shouldComponentUpdate=!1},i.prototype.getWrappedInstance=function(){return f()(M,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+l+"() call."),this.wrappedInstance},i.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},i.prototype.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=function(e,t){var n={run:function(r){try{var a=e(t.getState(),r);(a!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=a,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},i.prototype.initSubscription=function(){if(v){var e=(this.propsMode?this.props:this.context)[D];this.subscription=new g(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},i.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(E)):this.notifyNestedSubs()},i.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},i.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},i.prototype.addExtraProps=function(e){if(!(M||h||this.propsMode&&this.subscription))return e;var t=m({},e);return M&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[D]=this.subscription),t},i.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},i}(r.Component);return i.WrappedComponent=t,i.displayName=a,i.childContextTypes=S,i.contextTypes=Y,i.propTypes=Y,d()(i,t)}}var B=Object.prototype.hasOwnProperty;function w(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function I(e,t){if(w(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=n(e,o),s=r(e,o),c=a(e,o);return(o.pure?N:T)(i,s,c,e,o)}var j=Object.assign||function(e){for(var t=1;t=0;r--){var a=t[r](e);if(a)return a}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function U(e,t){return e===t}var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?v:t,r=e.mapStateToPropsFactories,a=void 0===r?S:r,o=e.mapDispatchToPropsFactories,i=void 0===o?Y:o,s=e.mergePropsFactories,c=void 0===s?x:s,A=e.selectorFactory,l=void 0===A?R:A;return function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=o.pure,A=void 0===s||s,d=o.areStatesEqual,u=void 0===d?U:d,f=o.areOwnPropsEqual,h=void 0===f?I:f,p=o.areStatePropsEqual,g=void 0===p?I:p,m=o.areMergedPropsEqual,b=void 0===m?I:m,E=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),y=O(e,a,"mapStateToProps"),v=O(t,i,"mapDispatchToProps"),B=O(r,c,"mergeProps");return n(l,j({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:v,initMergeProps:B,pure:A,areStatesEqual:u,areOwnPropsEqual:h,areStatePropsEqual:g,areMergedPropsEqual:b},E))}}();n.d(t,"Provider",function(){return A}),n.d(t,"createProvider",function(){return c}),n.d(t,"connectAdvanced",function(){return v}),n.d(t,"connect",function(){return _})},function(e,t,n){"use strict"; /** * @license nested-property https://github.com/cosmosio/nested-property * * The MIT License (MIT) * * Copyright (c) 2014-2015 Olivier Scherrer -*/e.exports={set:function(e,t,n){if(e&&"object"==typeof e){if("string"==typeof t&&""!==t){var r=t.split(".");return r.reduce(function(e,t,a){return e[t]=e[t]||{},r.length==a+1&&(e[t]=n),e[t]},e)}return"number"==typeof t?(e[t]=n,e[t]):e}return e},get:function(e,t){if(e&&"object"==typeof e){if("string"==typeof t&&""!==t){var n=t.split(".");return n.reduce(function(e,t){return e&&e[t]},e)}return"number"==typeof t?e[t]:e}return e},has:function(e,t,n){if(n=n||{},e&&"object"==typeof e){if("string"==typeof t&&""!==t){var r=t.split(".");return r.reduce(function(e,t,r,a){return r==a.length-1?n.own?!(!e||!e.hasOwnProperty(t)):!!(null!==e&&"object"==typeof e&&t in e):e&&e[t]},e)}return"number"==typeof t&&t in e}return!1},hasOwn:function(e,t,n){return this.has(e,t,n||{own:!0})},isIn:function(e,t,n,r){if(r=r||{},e&&"object"==typeof e){if("string"==typeof t&&""!==t){var a,i=t.split("."),o=!1;return a=!!i.reduce(function(e,t){return o=o||e===n||!!e&&e[t]===n,e&&e[t]},e),r.validPath?o&&a:o}return!1}return!1}}},function(e,t,n){(function(e,r){var a; +*/e.exports={set:function(e,t,n){if(e&&"object"==typeof e){if("string"==typeof t&&""!==t){var r=t.split(".");return r.reduce(function(e,t,a){return e[t]=e[t]||{},r.length==a+1&&(e[t]=n),e[t]},e)}return"number"==typeof t?(e[t]=n,e[t]):e}return e},get:function(e,t){if(e&&"object"==typeof e){if("string"==typeof t&&""!==t){var n=t.split(".");return n.reduce(function(e,t){return e&&e[t]},e)}return"number"==typeof t?e[t]:e}return e},has:function(e,t,n){if(n=n||{},e&&"object"==typeof e){if("string"==typeof t&&""!==t){var r=t.split(".");return r.reduce(function(e,t,r,a){return r==a.length-1?n.own?!(!e||!e.hasOwnProperty(t)):!!(null!==e&&"object"==typeof e&&t in e):e&&e[t]},e)}return"number"==typeof t&&t in e}return!1},hasOwn:function(e,t,n){return this.has(e,t,n||{own:!0})},isIn:function(e,t,n,r){if(r=r||{},e&&"object"==typeof e){if("string"==typeof t&&""!==t){var a,o=t.split("."),i=!1;return a=!!o.reduce(function(e,t){return i=i||e===n||!!e&&e[t]===n,e&&e[t]},e),r.validPath?i&&a:i}return!1}return!1}}},function(e,t,n){(function(e,r){var a; /** * @license * Lodash @@ -36,7 +36,7 @@ object-assign * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var i,o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",A="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",d=1,f=2,h=4,p=1,g=2,m=1,b=2,E=4,y=8,v=16,B=32,w=64,I=128,M=256,C=512,D=30,Q="...",Y=800,S=16,k=1,F=2,x=1/0,T=9007199254740991,N=1.7976931348623157e308,R=NaN,j=4294967295,O=j-1,_=j>>>1,U=[["ary",I],["bind",m],["bindKey",b],["curry",y],["curryRight",v],["flip",C],["partial",B],["partialRight",w],["rearg",M]],P="[object Arguments]",G="[object Array]",L="[object AsyncFunction]",J="[object Boolean]",H="[object Date]",z="[object DOMException]",W="[object Error]",K="[object Function]",V="[object GeneratorFunction]",X="[object Map]",q="[object Number]",Z="[object Null]",$="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",ae="[object Symbol]",ie="[object Undefined]",oe="[object WeakMap]",se="[object WeakSet]",ce="[object ArrayBuffer]",Ae="[object DataView]",le="[object Float32Array]",ue="[object Float64Array]",de="[object Int8Array]",fe="[object Int16Array]",he="[object Int32Array]",pe="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",be="[object Uint32Array]",Ee=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,ve=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Be=/&(?:amp|lt|gt|quot|#39);/g,we=/[&<>"']/g,Ie=RegExp(Be.source),Me=RegExp(we.source),Ce=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,Qe=/<%=([\s\S]+?)%>/g,Ye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Se=/^\w*$/,ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fe=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(Fe.source),Te=/^\s+|\s+$/g,Ne=/^\s+/,Re=/\s+$/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oe=/\{\n\/\* \[wrapped with (.+)\] \*/,_e=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pe=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Le=/\w*$/,Je=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,ze=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,qe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",$e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+$e+"]",nt="["+Ze+"]",rt="\\d+",at="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",ot="[^\\ud800-\\udfff"+$e+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ct="[^\\ud800-\\udfff]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ut="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+it+"|"+ot+")",ft="(?:"+ut+"|"+ot+")",ht="(?:"+nt+"|"+st+")"+"?",pt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ct,At,lt].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),gt="(?:"+[at,At,lt].join("|")+")"+pt,mt="(?:"+[ct+nt+"?",nt,At,lt,et].join("|")+")",bt=RegExp("['’]","g"),Et=RegExp(nt,"g"),yt=RegExp(st+"(?="+st+")|"+mt+pt,"g"),vt=RegExp([ut+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ut,"$"].join("|")+")",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ut+dt,"$"].join("|")+")",ut+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ut+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,gt].join("|"),"g"),Bt=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),wt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mt=-1,Ct={};Ct[le]=Ct[ue]=Ct[de]=Ct[fe]=Ct[he]=Ct[pe]=Ct[ge]=Ct[me]=Ct[be]=!0,Ct[P]=Ct[G]=Ct[ce]=Ct[J]=Ct[Ae]=Ct[H]=Ct[W]=Ct[K]=Ct[X]=Ct[q]=Ct[$]=Ct[te]=Ct[ne]=Ct[re]=Ct[oe]=!1;var Dt={};Dt[P]=Dt[G]=Dt[ce]=Dt[Ae]=Dt[J]=Dt[H]=Dt[le]=Dt[ue]=Dt[de]=Dt[fe]=Dt[he]=Dt[X]=Dt[q]=Dt[$]=Dt[te]=Dt[ne]=Dt[re]=Dt[ae]=Dt[pe]=Dt[ge]=Dt[me]=Dt[be]=!0,Dt[W]=Dt[K]=Dt[oe]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,St=parseInt,kt="object"==typeof e&&e&&e.Object===Object&&e,Ft="object"==typeof self&&self&&self.Object===Object&&self,xt=kt||Ft||Function("return this")(),Tt="object"==typeof t&&t&&!t.nodeType&&t,Nt=Tt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=Nt&&Nt.exports===Tt,jt=Rt&&kt.process,Ot=function(){try{var e=Nt&&Nt.require&&Nt.require("util").types;return e||jt&&jt.binding&&jt.binding("util")}catch(e){}}(),_t=Ot&&Ot.isArrayBuffer,Ut=Ot&&Ot.isDate,Pt=Ot&&Ot.isMap,Gt=Ot&&Ot.isRegExp,Lt=Ot&&Ot.isSet,Jt=Ot&&Ot.isTypedArray;function Ht(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function zt(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a-1}function Zt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function vn(e,t){for(var n=e.length;n--&&cn(t,e[n],0)>-1;);return n}var Bn=fn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),wn=fn({"&":"&","<":"<",">":">",'"':""","'":"'"});function In(e){return"\\"+Qt[e]}function Mn(e){return Bt.test(e)}function Cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Dn(e,t){return function(n){return e(t(n))}}function Qn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n",""":'"',"'":"'"});var Tn=function e(t){var n=(t=null==t?xt:Tn.defaults(xt.Object(),t,Tn.pick(xt,It))).Array,r=t.Date,a=t.Error,Ze=t.Function,$e=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,at=n.prototype,it=Ze.prototype,ot=et.prototype,st=t["__core-js_shared__"],ct=it.toString,At=ot.hasOwnProperty,lt=0,ut=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),dt=ot.toString,ft=ct.call(et),ht=xt._,pt=tt("^"+ct.call(At).replace(Fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=Rt?t.Buffer:i,mt=t.Symbol,yt=t.Uint8Array,Bt=gt?gt.allocUnsafe:i,Qt=Dn(et.getPrototypeOf,et),kt=et.create,Ft=ot.propertyIsEnumerable,Tt=at.splice,Nt=mt?mt.isConcatSpreadable:i,jt=mt?mt.iterator:i,Ot=mt?mt.toStringTag:i,an=function(){try{var e=ji(et,"defineProperty");return e({},"",{}),e}catch(e){}}(),fn=t.clearTimeout!==xt.clearTimeout&&t.clearTimeout,Nn=r&&r.now!==xt.Date.now&&r.now,Rn=t.setTimeout!==xt.setTimeout&&t.setTimeout,jn=$e.ceil,On=$e.floor,_n=et.getOwnPropertySymbols,Un=gt?gt.isBuffer:i,Pn=t.isFinite,Gn=at.join,Ln=Dn(et.keys,et),Jn=$e.max,Hn=$e.min,zn=r.now,Wn=t.parseInt,Kn=$e.random,Vn=at.reverse,Xn=ji(t,"DataView"),qn=ji(t,"Map"),Zn=ji(t,"Promise"),$n=ji(t,"Set"),er=ji(t,"WeakMap"),tr=ji(et,"create"),nr=er&&new er,rr={},ar=Ao(Xn),ir=Ao(qn),or=Ao(Zn),sr=Ao($n),cr=Ao(er),Ar=mt?mt.prototype:i,lr=Ar?Ar.valueOf:i,ur=Ar?Ar.toString:i;function dr(e){if(Ds(e)&&!gs(e)&&!(e instanceof gr)){if(e instanceof pr)return e;if(At.call(e,"__wrapped__"))return lo(e)}return new pr(e)}var fr=function(){function e(){}return function(t){if(!Cs(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function hr(){}function pr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function gr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Tr(e,t,n,r,a,o){var s,c=t&d,A=t&f,l=t&h;if(n&&(s=a?n(e,r,a,o):n(e)),s!==i)return s;if(!Cs(e))return e;var u=gs(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&At.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return ti(e,s)}else{var p=Ui(e),g=p==K||p==V;if(ys(e))return Va(e,c);if(p==$||p==P||g&&!a){if(s=A||g?{}:Gi(e),!c)return A?function(e,t){return ni(e,_i(e),t)}(e,function(e,t){return e&&ni(t,ac(t),e)}(s,e)):function(e,t){return ni(e,Oi(e),t)}(e,Sr(s,e))}else{if(!Dt[p])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ce:return Xa(e);case J:case H:return new r(+e);case Ae:return function(e,t){var n=t?Xa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case ue:case de:case fe:case he:case pe:case ge:case me:case be:return qa(e,n);case X:return new r;case q:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,Le.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case ae:return function(e){return lr?et(lr.call(e)):{}}(e)}}(e,p,c)}}o||(o=new vr);var m=o.get(e);if(m)return m;if(o.set(e,s),Fs(e))return e.forEach(function(r){s.add(Tr(r,t,n,r,e,o))}),s;if(Qs(e))return e.forEach(function(r,a){s.set(a,Tr(r,t,n,a,e,o))}),s;var b=u?i:(l?A?Si:Yi:A?ac:rc)(e);return Wt(b||e,function(r,a){b&&(r=e[a=r]),Dr(s,a,Tr(r,t,n,a,e,o))}),s}function Nr(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var a=n[r],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new rt(c);return no(function(){e.apply(i,n)},t)}function jr(e,t,n,r){var a=-1,i=qt,s=!0,c=e.length,A=[],l=t.length;if(!c)return A;n&&(t=$t(t,mn(n))),r?(i=Zt,s=!1):t.length>=o&&(i=En,s=!1,t=new yr(t));e:for(;++a-1},br.prototype.set=function(e,t){var n=this.__data__,r=Qr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Er.prototype.clear=function(){this.size=0,this.__data__={hash:new mr,map:new(qn||br),string:new mr}},Er.prototype.delete=function(e){var t=Ni(this,e).delete(e);return this.size-=t?1:0,t},Er.prototype.get=function(e){return Ni(this,e).get(e)},Er.prototype.has=function(e){return Ni(this,e).has(e)},Er.prototype.set=function(e,t){var n=Ni(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},yr.prototype.add=yr.prototype.push=function(e){return this.__data__.set(e,A),this},yr.prototype.has=function(e){return this.__data__.has(e)},vr.prototype.clear=function(){this.__data__=new br,this.size=0},vr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},vr.prototype.get=function(e){return this.__data__.get(e)},vr.prototype.has=function(e){return this.__data__.has(e)},vr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!qn||r.length0&&n(s)?t>1?Lr(s,t-1,n,r,a):en(a,s):r||(a[a.length]=s)}return a}var Jr=oi(),Hr=oi(!0);function zr(e,t){return e&&Jr(e,t,rc)}function Wr(e,t){return e&&Hr(e,t,rc)}function Kr(e,t){return Xt(t,function(t){return ws(e[t])})}function Vr(e,t){for(var n=0,r=(t=Ha(t,e)).length;null!=e&&nt}function $r(e,t){return null!=e&&At.call(e,t)}function ea(e,t){return null!=e&&t in et(e)}function ta(e,t,r){for(var a=r?Zt:qt,o=e[0].length,s=e.length,c=s,A=n(s),l=1/0,u=[];c--;){var d=e[c];c&&t&&(d=$t(d,mn(t))),l=Hn(d.length,l),A[c]=!r&&(t||o>=120&&d.length>=120)?new yr(c&&d):i}d=e[0];var f=-1,h=A[0];e:for(;++f=s)return c;var A=n[r];return c*("desc"==A?-1:1)}}return e.index-t.index}(e,t,n)})}function ma(e,t,n){for(var r=-1,a=t.length,i={};++r-1;)s!==e&&Tt.call(s,c,1),Tt.call(e,c,1);return e}function Ea(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;Ji(a)?Tt.call(e,a,1):ja(e,a)}}return e}function ya(e,t){return e+On(Kn()*(t-e+1))}function va(e,t){var n="";if(!e||t<1||t>T)return n;do{t%2&&(n+=e),(t=On(t/2))&&(e+=e)}while(t);return n}function Ba(e,t){return ro(Zi(e,t,Yc),e+"")}function wa(e){return wr(dc(e))}function Ia(e,t){var n=dc(e);return oo(n,xr(t,0,n.length))}function Ma(e,t,n,r){if(!Cs(e))return e;for(var a=-1,o=(t=Ha(t,e)).length,s=o-1,c=e;null!=c&&++ai?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=n(i);++a>>1,o=e[i];null!==o&&!Ts(o)&&(n?o<=t:o=o){var l=t?null:vi(e);if(l)return Yn(l);s=!1,a=En,A=new yr}else A=t?[]:c;e:for(;++r=r?e:Ya(e,t,n)}var Ka=fn||function(e){return xt.clearTimeout(e)};function Va(e,t){if(t)return e.slice();var n=e.length,r=Bt?Bt(n):new e.constructor(n);return e.copy(r),r}function Xa(e){var t=new e.constructor(e.byteLength);return new yt(t).set(new yt(e)),t}function qa(e,t){var n=t?Xa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Za(e,t){if(e!==t){var n=e!==i,r=null===e,a=e==e,o=Ts(e),s=t!==i,c=null===t,A=t==t,l=Ts(t);if(!c&&!l&&!o&&e>t||o&&s&&A&&!c&&!l||r&&s&&A||!n&&A||!a)return 1;if(!r&&!o&&!l&&e1?n[a-1]:i,s=a>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&Hi(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=et(t);++r-1?a[o?t[s]:s]:i}}function ui(e){return Qi(function(t){var n=t.length,r=n,a=pr.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new rt(c);if(a&&!s&&"wrapper"==Fi(o))var s=new pr([],!0)}for(r=s?r:n;++r1&&y.reverse(),d&&lc))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,f=n&g?new yr:i;for(o.set(e,t),o.set(t,e);++u-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(je,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Wt(U,function(n){var r="_."+n[0];t&n[1]&&!qt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Oe);return t?t[1].split(_e):[]}(r),n)))}function io(e){var t=0,n=0;return function(){var r=zn(),a=S-(r-n);if(n=r,a>0){if(++t>=Y)return arguments[0]}else t=0;return e.apply(i,arguments)}}function oo(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return ko(e,n="function"==typeof n?(e.pop(),n):i)});function Oo(e){var t=dr(e);return t.__chain__=!0,t}function _o(e,t){return t(e)}var Uo=Qi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return Fr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof gr&&Ji(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:_o,args:[a],thisArg:i}),new pr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(a)});var Po=ri(function(e,t,n){At.call(e,n)?++e[n]:kr(e,n,1)});var Go=li(po),Lo=li(go);function Jo(e,t){return(gs(e)?Wt:Or)(e,Ti(t,3))}function Ho(e,t){return(gs(e)?Kt:_r)(e,Ti(t,3))}var zo=ri(function(e,t,n){At.call(e,n)?e[n].push(t):kr(e,n,[t])});var Wo=Ba(function(e,t,r){var a=-1,i="function"==typeof t,o=bs(e)?n(e.length):[];return Or(e,function(e){o[++a]=i?Ht(t,e,r):na(e,t,r)}),o}),Ko=ri(function(e,t,n){kr(e,n,t)});function Vo(e,t){return(gs(e)?$t:ua)(e,Ti(t,3))}var Xo=ri(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var qo=Ba(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Hi(e,t[0],t[1])?t=[]:n>2&&Hi(t[0],t[1],t[2])&&(t=[t[0]]),ga(e,Lr(t,1),[])}),Zo=Nn||function(){return xt.Date.now()};function $o(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,wi(e,I,i,i,i,i,t)}function es(e,t){var n;if("function"!=typeof t)throw new rt(c);return e=Us(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ts=Ba(function(e,t,n){var r=m;if(n.length){var a=Qn(n,xi(ts));r|=B}return wi(e,r,t,n,a)}),ns=Ba(function(e,t,n){var r=m|b;if(n.length){var a=Qn(n,xi(ns));r|=B}return wi(t,r,e,n,a)});function rs(e,t,n){var r,a,o,s,A,l,u=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new rt(c);function p(t){var n=r,o=a;return r=a=i,u=t,s=e.apply(o,n)}function g(e){var n=e-l;return l===i||n>=t||n<0||f&&e-u>=o}function m(){var e=Zo();if(g(e))return b(e);A=no(m,function(e){var n=t-(e-l);return f?Hn(n,o-(e-u)):n}(e))}function b(e){return A=i,h&&r?p(e):(r=a=i,s)}function E(){var e=Zo(),n=g(e);if(r=arguments,a=this,l=e,n){if(A===i)return function(e){return u=e,A=no(m,t),d?p(e):s}(l);if(f)return A=no(m,t),p(l)}return A===i&&(A=no(m,t)),s}return t=Gs(t)||0,Cs(n)&&(d=!!n.leading,o=(f="maxWait"in n)?Jn(Gs(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),E.cancel=function(){A!==i&&Ka(A),u=0,r=l=a=A=i},E.flush=function(){return A===i?s:b(Zo())},E}var as=Ba(function(e,t){return Rr(e,1,t)}),is=Ba(function(e,t,n){return Rr(e,Gs(t)||0,n)});function os(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(c);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(os.Cache||Er),n}function ss(e){if("function"!=typeof e)throw new rt(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}os.Cache=Er;var cs=za(function(e,t){var n=(t=1==t.length&&gs(t[0])?$t(t[0],mn(Ti())):$t(Lr(t,1),mn(Ti()))).length;return Ba(function(r){for(var a=-1,i=Hn(r.length,n);++a=t}),ps=ra(function(){return arguments}())?ra:function(e){return Ds(e)&&At.call(e,"callee")&&!Ft.call(e,"callee")},gs=n.isArray,ms=_t?mn(_t):function(e){return Ds(e)&&qr(e)==ce};function bs(e){return null!=e&&Ms(e.length)&&!ws(e)}function Es(e){return Ds(e)&&bs(e)}var ys=Un||Gc,vs=Ut?mn(Ut):function(e){return Ds(e)&&qr(e)==H};function Bs(e){if(!Ds(e))return!1;var t=qr(e);return t==W||t==z||"string"==typeof e.message&&"string"==typeof e.name&&!Ss(e)}function ws(e){if(!Cs(e))return!1;var t=qr(e);return t==K||t==V||t==L||t==ee}function Is(e){return"number"==typeof e&&e==Us(e)}function Ms(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=T}function Cs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ds(e){return null!=e&&"object"==typeof e}var Qs=Pt?mn(Pt):function(e){return Ds(e)&&Ui(e)==X};function Ys(e){return"number"==typeof e||Ds(e)&&qr(e)==q}function Ss(e){if(!Ds(e)||qr(e)!=$)return!1;var t=Qt(e);if(null===t)return!0;var n=At.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==ft}var ks=Gt?mn(Gt):function(e){return Ds(e)&&qr(e)==te};var Fs=Lt?mn(Lt):function(e){return Ds(e)&&Ui(e)==ne};function xs(e){return"string"==typeof e||!gs(e)&&Ds(e)&&qr(e)==re}function Ts(e){return"symbol"==typeof e||Ds(e)&&qr(e)==ae}var Ns=Jt?mn(Jt):function(e){return Ds(e)&&Ms(e.length)&&!!Ct[qr(e)]};var Rs=bi(la),js=bi(function(e,t){return e<=t});function Os(e){if(!e)return[];if(bs(e))return xs(e)?Fn(e):ti(e);if(jt&&e[jt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[jt]());var t=Ui(e);return(t==X?Cn:t==ne?Yn:dc)(e)}function _s(e){return e?(e=Gs(e))===x||e===-x?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Us(e){var t=_s(e),n=t%1;return t==t?n?t-n:t:0}function Ps(e){return e?xr(Us(e),0,j):0}function Gs(e){if("number"==typeof e)return e;if(Ts(e))return R;if(Cs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Cs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Te,"");var n=He.test(e);return n||We.test(e)?St(e.slice(2),n?2:8):Je.test(e)?R:+e}function Ls(e){return ni(e,ac(e))}function Js(e){return null==e?"":Na(e)}var Hs=ai(function(e,t){if(Vi(t)||bs(t))ni(t,rc(t),e);else for(var n in t)At.call(t,n)&&Dr(e,n,t[n])}),zs=ai(function(e,t){ni(t,ac(t),e)}),Ws=ai(function(e,t,n,r){ni(t,ac(t),e,r)}),Ks=ai(function(e,t,n,r){ni(t,rc(t),e,r)}),Vs=Qi(Fr);var Xs=Ba(function(e,t){e=et(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&Hi(t[0],t[1],a)&&(r=1);++n1),t}),ni(e,Si(e),n),r&&(n=Tr(n,d|f|h,Ci));for(var a=t.length;a--;)ja(n,t[a]);return n});var cc=Qi(function(e,t){return null==e?{}:function(e,t){return ma(e,t,function(t,n){return $s(e,n)})}(e,t)});function Ac(e,t){if(null==e)return{};var n=$t(Si(e),function(e){return[e]});return t=Ti(t),ma(e,n,function(e,n){return t(e,n[0])})}var lc=Bi(rc),uc=Bi(ac);function dc(e){return null==e?[]:bn(e,rc(e))}var fc=ci(function(e,t,n){return t=t.toLowerCase(),e+(n?hc(t):t)});function hc(e){return Bc(Js(e).toLowerCase())}function pc(e){return(e=Js(e))&&e.replace(Ve,Bn).replace(Et,"")}var gc=ci(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),mc=ci(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bc=si("toLowerCase");var Ec=ci(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var yc=ci(function(e,t,n){return e+(n?" ":"")+Bc(t)});var vc=ci(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Bc=si("toUpperCase");function wc(e,t,n){return e=Js(e),(t=n?i:t)===i?function(e){return wt.test(e)}(e)?function(e){return e.match(vt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Ic=Ba(function(e,t){try{return Ht(e,i,t)}catch(e){return Bs(e)?e:new a(e)}}),Mc=Qi(function(e,t){return Wt(t,function(t){t=co(t),kr(e,t,ts(e[t],e))}),e});function Cc(e){return function(){return e}}var Dc=ui(),Qc=ui(!0);function Yc(e){return e}function Sc(e){return sa("function"==typeof e?e:Tr(e,d))}var kc=Ba(function(e,t){return function(n){return na(n,e,t)}}),Fc=Ba(function(e,t){return function(n){return na(e,n,t)}});function xc(e,t,n){var r=rc(t),a=Kr(t,r);null!=n||Cs(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Kr(t,rc(t)));var i=!(Cs(n)&&"chain"in n&&!n.chain),o=ws(e);return Wt(a,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Tc(){}var Nc=pi($t),Rc=pi(Vt),jc=pi(rn);function Oc(e){return zi(e)?dn(co(e)):function(e){return function(t){return Vr(t,e)}}(e)}var _c=mi(),Uc=mi(!0);function Pc(){return[]}function Gc(){return!1}var Lc=hi(function(e,t){return e+t},0),Jc=yi("ceil"),Hc=hi(function(e,t){return e/t},1),zc=yi("floor");var Wc=hi(function(e,t){return e*t},1),Kc=yi("round"),Vc=hi(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new rt(c);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=$o,dr.assign=Hs,dr.assignIn=zs,dr.assignInWith=Ws,dr.assignWith=Ks,dr.at=Vs,dr.before=es,dr.bind=ts,dr.bindAll=Mc,dr.bindKey=ns,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},dr.chain=Oo,dr.chunk=function(e,t,r){t=(r?Hi(e,t,r):t===i)?1:Jn(Us(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,c=n(jn(a/t));oa?0:a+n),(r=r===i||r>a?a:Us(r))<0&&(r+=a),r=n>r?0:Ps(r);n>>0)?(e=Js(e))&&("string"==typeof t||null!=t&&!ks(t))&&!(t=Na(t))&&Mn(e)?Wa(Fn(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new rt(c);return t=null==t?0:Jn(Us(t),0),Ba(function(n){var r=n[t],a=Wa(n,0,t);return r&&en(a,r),Ht(e,this,a)})},dr.tail=function(e){var t=null==e?0:e.length;return t?Ya(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?Ya(e,0,(t=n||t===i?1:Us(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ya(e,(t=r-(t=n||t===i?1:Us(t)))<0?0:t,r):[]},dr.takeRightWhile=function(e,t){return e&&e.length?_a(e,Ti(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?_a(e,Ti(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new rt(c);return Cs(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),rs(e,t,{leading:r,maxWait:t,trailing:a})},dr.thru=_o,dr.toArray=Os,dr.toPairs=lc,dr.toPairsIn=uc,dr.toPath=function(e){return gs(e)?$t(e,co):Ts(e)?[e]:ti(so(Js(e)))},dr.toPlainObject=Ls,dr.transform=function(e,t,n){var r=gs(e),a=r||ys(e)||Ns(e);if(t=Ti(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:Cs(e)&&ws(i)?fr(Qt(e)):{}}return(a?Wt:zr)(e,function(e,r,a){return t(n,e,r,a)}),n},dr.unary=function(e){return $o(e,1)},dr.union=Do,dr.unionBy=Qo,dr.unionWith=Yo,dr.uniq=function(e){return e&&e.length?Ra(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Ra(e,Ti(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Ra(e,i,t):[]},dr.unset=function(e,t){return null==e||ja(e,t)},dr.unzip=So,dr.unzipWith=ko,dr.update=function(e,t,n){return null==e?e:Oa(e,t,Ja(n))},dr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oa(e,t,Ja(n),r)},dr.values=dc,dr.valuesIn=function(e){return null==e?[]:bn(e,ac(e))},dr.without=Fo,dr.words=wc,dr.wrap=function(e,t){return As(Ja(t),e)},dr.xor=xo,dr.xorBy=To,dr.xorWith=No,dr.zip=Ro,dr.zipObject=function(e,t){return Ga(e||[],t||[],Dr)},dr.zipObjectDeep=function(e,t){return Ga(e||[],t||[],Ma)},dr.zipWith=jo,dr.entries=lc,dr.entriesIn=uc,dr.extend=zs,dr.extendWith=Ws,xc(dr,dr),dr.add=Lc,dr.attempt=Ic,dr.camelCase=fc,dr.capitalize=hc,dr.ceil=Jc,dr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Gs(n))==n?n:0),t!==i&&(t=(t=Gs(t))==t?t:0),xr(Gs(e),t,n)},dr.clone=function(e){return Tr(e,h)},dr.cloneDeep=function(e){return Tr(e,d|h)},dr.cloneDeepWith=function(e,t){return Tr(e,d|h,t="function"==typeof t?t:i)},dr.cloneWith=function(e,t){return Tr(e,h,t="function"==typeof t?t:i)},dr.conformsTo=function(e,t){return null==t||Nr(e,t,rc(t))},dr.deburr=pc,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=Hc,dr.endsWith=function(e,t,n){e=Js(e),t=Na(t);var r=e.length,a=n=n===i?r:xr(Us(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},dr.eq=ds,dr.escape=function(e){return(e=Js(e))&&Me.test(e)?e.replace(we,wn):e},dr.escapeRegExp=function(e){return(e=Js(e))&&xe.test(e)?e.replace(Fe,"\\$&"):e},dr.every=function(e,t,n){var r=gs(e)?Vt:Ur;return n&&Hi(e,t,n)&&(t=i),r(e,Ti(t,3))},dr.find=Go,dr.findIndex=po,dr.findKey=function(e,t){return on(e,Ti(t,3),zr)},dr.findLast=Lo,dr.findLastIndex=go,dr.findLastKey=function(e,t){return on(e,Ti(t,3),Wr)},dr.floor=zc,dr.forEach=Jo,dr.forEachRight=Ho,dr.forIn=function(e,t){return null==e?e:Jr(e,Ti(t,3),ac)},dr.forInRight=function(e,t){return null==e?e:Hr(e,Ti(t,3),ac)},dr.forOwn=function(e,t){return e&&zr(e,Ti(t,3))},dr.forOwnRight=function(e,t){return e&&Wr(e,Ti(t,3))},dr.get=Zs,dr.gt=fs,dr.gte=hs,dr.has=function(e,t){return null!=e&&Pi(e,t,$r)},dr.hasIn=$s,dr.head=bo,dr.identity=Yc,dr.includes=function(e,t,n,r){e=bs(e)?e:dc(e),n=n&&!r?Us(n):0;var a=e.length;return n<0&&(n=Jn(a+n,0)),xs(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&cn(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:Us(n);return a<0&&(a=Jn(r+a,0)),cn(e,t,a)},dr.inRange=function(e,t,n){return t=_s(t),n===i?(n=t,t=0):n=_s(n),function(e,t,n){return e>=Hn(t,n)&&e=-T&&e<=T},dr.isSet=Fs,dr.isString=xs,dr.isSymbol=Ts,dr.isTypedArray=Ns,dr.isUndefined=function(e){return e===i},dr.isWeakMap=function(e){return Ds(e)&&Ui(e)==oe},dr.isWeakSet=function(e){return Ds(e)&&qr(e)==se},dr.join=function(e,t){return null==e?"":Gn.call(e,t)},dr.kebabCase=gc,dr.last=Bo,dr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=Us(n))<0?Jn(r+a,0):Hn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):sn(e,ln,a,!0)},dr.lowerCase=mc,dr.lowerFirst=bc,dr.lt=Rs,dr.lte=js,dr.max=function(e){return e&&e.length?Pr(e,Yc,Zr):i},dr.maxBy=function(e,t){return e&&e.length?Pr(e,Ti(t,2),Zr):i},dr.mean=function(e){return un(e,Yc)},dr.meanBy=function(e,t){return un(e,Ti(t,2))},dr.min=function(e){return e&&e.length?Pr(e,Yc,la):i},dr.minBy=function(e,t){return e&&e.length?Pr(e,Ti(t,2),la):i},dr.stubArray=Pc,dr.stubFalse=Gc,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Wc,dr.nth=function(e,t){return e&&e.length?pa(e,Us(t)):i},dr.noConflict=function(){return xt._===this&&(xt._=ht),this},dr.noop=Tc,dr.now=Zo,dr.pad=function(e,t,n){e=Js(e);var r=(t=Us(t))?kn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return gi(On(a),n)+e+gi(jn(a),n)},dr.padEnd=function(e,t,n){e=Js(e);var r=(t=Us(t))?kn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=Kn();return Hn(e+a*(t-e+Yt("1e-"+((a+"").length-1))),t)}return ya(e,t)},dr.reduce=function(e,t,n){var r=gs(e)?tn:hn,a=arguments.length<3;return r(e,Ti(t,4),n,a,Or)},dr.reduceRight=function(e,t,n){var r=gs(e)?nn:hn,a=arguments.length<3;return r(e,Ti(t,4),n,a,_r)},dr.repeat=function(e,t,n){return t=(n?Hi(e,t,n):t===i)?1:Us(t),va(Js(e),t)},dr.replace=function(){var e=arguments,t=Js(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var r=-1,a=(t=Ha(t,e)).length;for(a||(a=1,e=i);++rT)return[];var n=j,r=Hn(e,j);t=Ti(t),e-=j;for(var a=gn(r,t);++n=o)return e;var c=n-kn(r);if(c<1)return r;var A=s?Wa(s,0,c).join(""):e.slice(0,c);if(a===i)return A+r;if(s&&(c+=A.length-c),ks(a)){if(e.slice(c).search(a)){var l,u=A;for(a.global||(a=tt(a.source,Js(Le.exec(a))+"g")),a.lastIndex=0;l=a.exec(u);)var d=l.index;A=A.slice(0,d===i?c:d)}}else if(e.indexOf(Na(a),c)!=c){var f=A.lastIndexOf(a);f>-1&&(A=A.slice(0,f))}return A+r},dr.unescape=function(e){return(e=Js(e))&&Ie.test(e)?e.replace(Be,xn):e},dr.uniqueId=function(e){var t=++lt;return Js(e)+t},dr.upperCase=vc,dr.upperFirst=Bc,dr.each=Jo,dr.eachRight=Ho,dr.first=bo,xc(dr,function(){var e={};return zr(dr,function(t,n){At.call(dr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),dr.VERSION="4.17.11",Wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),Wt(["drop","take"],function(e,t){gr.prototype[e]=function(n){n=n===i?1:Jn(Us(n),0);var r=this.__filtered__&&!t?new gr(this):this.clone();return r.__filtered__?r.__takeCount__=Hn(n,r.__takeCount__):r.__views__.push({size:Hn(n,j),type:e+(r.__dir__<0?"Right":"")}),r},gr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Wt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==k||3==n;gr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ti(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Wt(["head","last"],function(e,t){var n="take"+(t?"Right":"");gr.prototype[e]=function(){return this[n](1).value()[0]}}),Wt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");gr.prototype[e]=function(){return this.__filtered__?new gr(this):this[n](1)}}),gr.prototype.compact=function(){return this.filter(Yc)},gr.prototype.find=function(e){return this.filter(e).head()},gr.prototype.findLast=function(e){return this.reverse().find(e)},gr.prototype.invokeMap=Ba(function(e,t){return"function"==typeof e?new gr(this):this.map(function(n){return na(n,e,t)})}),gr.prototype.reject=function(e){return this.filter(ss(Ti(e)))},gr.prototype.slice=function(e,t){e=Us(e);var n=this;return n.__filtered__&&(e>0||t<0)?new gr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Us(t))<0?n.dropRight(-t):n.take(t-e)),n)},gr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gr.prototype.toArray=function(){return this.take(j)},zr(gr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=dr[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(dr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof gr,A=s[0],l=c||gs(t),u=function(e){var t=a.apply(dr,en([e],s));return r&&d?t[0]:t};l&&n&&"function"==typeof A&&1!=A.length&&(c=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=o&&!d,p=c&&!f;if(!o&&l){t=p?t:new gr(this);var g=e.apply(t,s);return g.__actions__.push({func:_o,args:[u],thisArg:i}),new pr(g,d)}return h&&p?e.apply(this,s):(g=this.thru(u),h?r?g.value()[0]:g.value():g)})}),Wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(gs(a)?a:[],e)}return this[n](function(n){return t.apply(gs(n)?n:[],e)})}}),zr(gr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";(rr[r]||(rr[r]=[])).push({name:t,func:n})}}),rr[di(i,b).name]=[{name:"wrapper",func:i}],gr.prototype.clone=function(){var e=new gr(this.__wrapped__);return e.__actions__=ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ti(this.__views__),e},gr.prototype.reverse=function(){if(this.__filtered__){var e=new gr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=gs(e),r=t<0,a=n?e.length:0,i=function(e,t,n){for(var r=-1,a=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=lo(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gr){var t=e;return this.__actions__.length&&(t=new gr(this)),(t=t.reverse()).__actions__.push({func:_o,args:[Co],thisArg:i}),new pr(t,this.__chain__)}return this.thru(Co)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Ua(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,jt&&(dr.prototype[jt]=function(){return this}),dr}();xt._=Tn,(a=function(){return Tn}.call(t,n,t,r))===i||(r.exports=a)}).call(this)}).call(this,n(5),n(57)(e))},function(e,t,n){"use strict";var r=t;r.version=n(775).version,r.utils=n(776),r.rand=n(362),r.curve=n(170),r.curves=n(781),r.ec=n(789),r.eddsa=n(793)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(e,t){return(0,r.default)({},e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,a.default.oneOfType([a.default.string,a.default.func,a.default.node])))},{})};var r=i(n(28)),a=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,o=void 0===n?"styles":n,l=t.themePropName,d=void 0===l?"theme":l,h=t.cssPropName,b=void 0===h?"css":h,E=t.flushBefore,y=void 0!==E&&E,v=t.pureComponent,B=void 0,w=void 0,I=void 0,M=void 0,C=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(void 0!==v&&v);function D(t,n){var r=function(e){return e===A.DIRECTIONS.LTR?I:M}(t),a=t===A.DIRECTIONS.LTR?B:w,i=u.default.get();if(a&&r===i)return a;var o=t===A.DIRECTIONS.RTL;return o?(w=e?u.default.createRTL(e):p,M=i,a=w):(B=e?u.default.createLTR(e):p,I=i,a=B),a}function Q(e,t){return{resolveMethod:function(e){return e===A.DIRECTIONS.LTR?u.default.resolveLTR:u.default.resolveRTL}(e),styleDef:D(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function s(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e,n)),a=r.context[A.CHANNEL]?r.context[A.CHANNEL].getState():m;return r.state=Q(a,t),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,n),a(s,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[A.CHANNEL]&&(this.channelUnsubscribe=this.context[A.CHANNEL].subscribe(function(n){e.setState(Q(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;y&&u.default.flush();var n=this.state,a=n.resolveMethod,s=n.styleDef;return i.default.createElement(e,r({},this.props,(f(t={},d,u.default.get()),f(t,o,s()),f(t,b,a),t)))}}()}]),s}(C);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=g,e.propTypes&&(n.propTypes=(0,c.default)({},e.propTypes),delete n.propTypes[o],delete n.propTypes[d],delete n.propTypes[b]);e.defaultProps&&(n.defaultProps=(0,c.default)({},e.defaultProps));return(0,s.default)(n,e)}}()};var i=d(n(1)),o=d(n(0)),s=d(n(117)),c=d(n(1118)),A=n(1119),l=d(n(1120)),u=d(n(555));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=u.default.resolveLTR,t.withStylesPropTypes={styles:o.default.object.isRequired,theme:o.default.object.isRequired,css:o.default.func.isRequired};var h={},p=function(){return h};var g=f({},A.CHANNEL,l.default),m=A.DIRECTIONS.LTR},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return e===t};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=void 0,a=[],i=void 0,o=!1,s=function(e,n){return t(e,a[n])};return function(){for(var t=arguments.length,r=Array(t),c=0;c2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.default;if(window[t]&&r(window[t]))return Promise.resolve(window[t]);return new Promise(function(r,i){if(p[e])p[e].push(r);else{p[e]=[r];var o=function(t){p[e].forEach(function(e){return e(t)})};if(n){var s=window[n];window[n]=function(){s&&s(),o(window[t])}}a(e,function(e){e&&i(e),n||o(window[t])})}})},t.getConfig=function(e,t,n){var r=(0,o.default)(t.config,e.config),a=!0,i=!1,c=void 0;try{for(var l,u=s.DEPRECATED_CONFIG_PROPS[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var d=l.value;if(e[d]){var f=d.replace(/Config$/,"");if(r=(0,o.default)(r,A({},f,e[d])),n){var h="ReactPlayer: %c"+d+" %cis deprecated, please use the config prop instead – https://github.com/CookPete/react-player#config-prop";console.warn(h,"font-weight: bold","")}}}}catch(e){i=!0,c=e}finally{try{!a&&u.return&&u.return()}finally{if(i)throw c}}return r},t.omit=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),a=1;a1?r-1:0),i=1;i=128?"#000":"#fff"}};t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(638));t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";(function(t){var n,r,a=t.MutationObserver||t.WebKitMutationObserver;if(a){var i=0,o=new a(l),s=t.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=i=++i%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){l(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(l,0)};else{var c=new t.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var A=[];function l(){var e,t;r=!0;for(var n=A.length;n;){for(t=A,A=[],e=-1;++e2?arguments[2]:{},i=r(t);a&&(i=o.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:P,t=arguments[1],n=t.payload,a=void 0,i=void 0;switch(t.type){case p+"_SUCCESS":return i=t.result.data.corpus,r({},e,l({},i.metadata.id,i));case _+"_SUCCESS":return r({},e,l({},t.result.data.metadata.id,t.result.data));case U:return{};case m:return n&&n.corpus?r({},e,l({},n.id,n.corpus)):e;case m+"_SUCCESS":return i=t.result.data.corpus,r({},e,l({},i.metadata.id,i));case E:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{compositions:r({},e[n.corpusId].compositions,l({},n.composition.metadata.id,n.composition))})));case y:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{compositions:r({},e[n.corpusId].compositions,l({},n.compositionId,n.composition))})));case v:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{compositions:Object.keys(e[n.corpusId].compositions).reduce(function(t,a){return a!==n.compositionId?r({},t,l({},a,r({},e[n.corpusId].compositions[a]))):t},{})})));case B:var c=JSON.parse(JSON.stringify(n.composition));return c.metadata.id=(0,o.v4)(),r({},e,l({},n.corpusId,r({},e[n.corpusId],{compositions:r({},e[n.corpusId].compositions,l({},c.metadata.id,c))})));case w:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{medias:r({},e[n.corpusId].medias,l({},n.media.metadata.id,n.media))})));case I:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{medias:r({},e[n.corpusId].medias,l({},n.mediaId,n.media))})));case M:var A=n.mediaId,u=(0,s.mapToArray)(e[n.corpusId].chunks),d=u.filter(function(e){return e.metadata.mediaId!==A}).reduce(function(e,t){return r({},e,l({},t.metadata.id,t))},{}),h=u.filter(function(e){return e.metadata.mediaId===A}).map(function(e){return e.metadata.id}),g=Object.keys(e[n.corpusId].compositions).reduce(function(t,a){return r({},t,l({},a,r({},e[n.corpusId].compositions[a],{summary:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"REDUX_I18N_SET_LANGUAGE":return c.inElectron&&u.set("§dicto-lang",t.lang),e;case"§dicto/ChunksEdition/SET_RGPD_AGREEMENT_PROMPTED":return{rgpdAgreementPrompted:t.payload};default:return e}}});t.selector=(0,i.createStructuredSelector)({corpora:function(e){return e.corpora}})},function(e,t,n){"use strict";var r=n(40),a=n(3);function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r>8,o=255&a;i?n.push(i,o):n.push(o)}else for(r=0;r>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],i=r+e[t+1]>>>0,o=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,i,o,s){var c=0,A=t;return c+=(A=A+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,s,c,A){var l=0,u=t;return l+=(u=u+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,s,c,A){return t+r+i+s+A>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(272));t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"player";return r.player?r.player.getInternalPlayer(e):null},r.seekTo=function(e){if(!r.player)return null;r.player.seekTo(e)},r.ref=function(e){r.player=e},u(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),a(n,[{key:"shouldComponentUpdate",value:function(e){return!(0,c.isEqual)(this.props,e)}},{key:"componentWillUpdate",value:function(e){this.config=(0,c.getConfig)(e,s.defaultProps)}},{key:"render",value:function(){if(!e.canPlay(this.props.url))return null;var t=this.props,n=t.style,a=t.width,i=t.height,l=t.wrapper,u=(0,c.omit)(this.props,d,s.DEPRECATED_CONFIG_PROPS);return o.default.createElement(l,r({style:r({},n,{width:a,height:i})},u),o.default.createElement(A.default,r({},this.props,{ref:this.ref,activePlayer:e,config:this.config})))}}]),n}(i.Component),t.displayName=e.displayName+"Player",t.propTypes=s.propTypes,t.defaultProps=s.defaultProps,t.canPlay=e.canPlay,n};var i=n(1),o=l(i),s=n(192),c=n(42),A=l(n(278));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=Object.keys(s.propTypes)},function(e,t,n){var r=n(292)("wks"),a=n(196),i=n(66).Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(112)),a=i(n(114));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=(0,a.default)(),t=e.y,n=e.x,i=document.documentElement,o=n+i.clientWidth,s=t+i.clientHeight;return(0,r.default)({top:t,left:n,right:o,bottom:s})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(2),a=n(1115),i=n(1116);e.exports={momentObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return a.isValidMoment(e)},"Moment"),momentString:i.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return a.isValidMoment(r(e))},"Moment"),momentDurationObj:i.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isDuration(e)},"Duration")}},function(e,t,n){e.exports={default:n(1475),__esModule:!0}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var a=e[r];"."===a?e.splice(r,1):".."===a?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(e){return r.exec(e).slice(1)};function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(i(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(i(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var a=r(e.split("/")),i=r(n.split("/")),o=Math.min(a.length,i.length),s=o,c=0;c may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){a()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?c.a.Children.only(e):null},t}(c.a.Component);f.propTypes={history:l.a.object.isRequired,children:l.a.node},f.contextTypes={router:l.a.object},f.childContextTypes={router:l.a.object.isRequired},t.a=f},function(e,t,n){"use strict";var r=n(158),a=n.n(r),i={},o=0;t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,s=r.path,c=r.exact,A=void 0!==c&&c,l=r.strict,u=void 0!==l&&l,d=r.sensitive,f=void 0!==d&&d;if(null==s)return n;var h=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var s=[],c={re:a()(e,s,t),keys:s};return o<1e4&&(r[e]=c,o++),c}(s,{end:A,strict:u,sensitive:f}),p=h.re,g=h.keys,m=p.exec(e);if(!m)return null;var b=m[0],E=m.slice(1),y=e===b;return A&&!y?null:{path:s,url:"/"===s&&""===b?"/":b,isExact:y,params:g.reduce(function(e,t,n){return e[t.name]=E[n],e},{})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toastr=t.reducer=t.actions=void 0;var r=s(n(717)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(333)),i=s(n(334)),o=n(335);function s(e){return e&&e.__esModule?e:{default:e}}t.default=r.default;t.actions=a,t.reducer=i.default,t.toastr=o.toastrEmitter},function(e,t,n){"use strict";function r(e,t){return e===t}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,a=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,a=0;a1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:o;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=i[t]||(i[t]={});if(n[e])return n[e];var r=a.a.compile(e);return o<1e4&&(n[e]=r,o++),r}(e)(t,{pretty:!0})}},function(e,t,n){"use strict";e.exports=function(e){return function(){var t=arguments.length;if(t){for(var n=[],r=-1;++r0&&void 0!==arguments[0]?arguments[0]:e,r=arguments[1],a=r.type,i=r.payload,o=t[a];return o?o(n,i):n}},t.isBrowser=function(){if("undefined"!=typeof window)return!0;return!1},t.keyCode=function(e){return e.which?e.which:e.keyCode},t.mapToToastrMessage=function(e,t){var n={};n.type=e,n.position=a.default.position,n.options=t.filter(function(e){return"object"==(void 0===e?"undefined":r(e))})[0]||{},n.options.hasOwnProperty("position")&&(n.position=n.options.position);n.options.hasOwnProperty("removeOnHover")||(n.options.removeOnHover=!0,"message"===e&&(n.options.removeOnHover=!1));n.options.hasOwnProperty("showCloseButton")||(n.options.showCloseButton=!0);"message"!==e||n.options.hasOwnProperty("timeOut")||(n.options.timeOut=0);i(t[0])&&i(t[1])?(n.title=t[0],n.message=t[1]):i(t[0])&&!i(t[1])?n.title=t[0]:n.message=t[0];return n},t.guid=function(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+e()+"-"+e()+"_"+e()+"-"+e()+"_"+e()+e()+e()},t.onCSSTransitionEnd=function(e,t){var n=function(){var e=void 0,t=document.createElement("fakeelement"),n={animation:"animationend",oanimation:"oanimationend",MSAnimation:"MSAnimationEnd",webkitAnimation:"webkitAnimationEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}(),r=setTimeout(function(){var t=new Event(n);o("The toastr box was closed automatically, please check 'transitionOut' prop value"),e.dispatchEvent(t)},a.default.maxAnimationDelay);e.addEventListener(n,function a(i){clearTimeout(r),i.stopPropagation(),e.removeEventListener(n,a),t&&t(i)})},t.preventDuplication=function(e,t){var n=!1;return e.forEach(function(e){!1!==e.options.preventDuplicates&&e.title===t.title&&e.message===t.message&&e.type===t.type&&(n=!0)}),n},t.updateConfig=function(e){Object.keys(a.default).forEach(function(t){e.hasOwnProperty(t)&&(a.default[t]=e[t])})},t._bind=function(e,t){var n=e;Array.isArray(e)||(n=e.split(" "));return n.map(function(e){return t[e]=t[e].bind(t)})};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(213));function i(e){return"string"==typeof e}function o(e){return null}},function(e,t,n){"use strict";(function(t,r){var a=n(11).Buffer,i=t.crypto||t.msCrypto;i&&i.getRandomValues?e.exports=function(e,n){if(e>65536)throw new Error("requested too many random bytes");var o=new t.Uint8Array(e);e>0&&i.getRandomValues(o);var s=a.from(o.buffer);if("function"==typeof n)return r.nextTick(function(){n(null,s)});return s}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(5),n(17))},function(e,t,n){var r=n(11).Buffer;function a(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}a.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,a=this._blockSize,i=e.length,o=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,a=(n-r)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=a},function(e,t,n){"use strict";function r(e,t,n){var r=n?" !== ":" === ",a=n?" || ":" && ",i=n?"!":"",o=n?"":"!";switch(e){case"null":return t+r+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+a+"typeof "+t+r+'"object"'+a+o+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+r+'"number"'+a+o+"("+t+" % 1)"+a+t+r+t+")";default:return"typeof "+t+r+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t){switch(e.length){case 1:return r(e[0],t,!0);default:var n="",a=i(e);for(var o in a.array&&a.object&&(n=a.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)n+=(n?" && ":"")+r(o,t,!0);return n}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(i="data"+(t-r||""),!a)return i}for(var s=i,A=a.split("/"),l=0;l0||o){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:c,show:!0},function(){t.updatePosition(),n&&i&&i()})}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(A,s):A()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=this.state,a=r.delayHide,i=r.disable,o=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!i){if(t)if(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show)return;var c=function(){var e=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},function(){n.removeScrollListener(),e&&o&&o()}))};this.clearTimer(),a?this.delayHideLoop=setTimeout(c,parseInt(a,10)):c()}}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltip,t)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltip)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,r=t.currentTarget,a=t.place,i=t.desiredPlace,o=t.effect,s=t.offset,c=l.default.findDOMNode(this),A=(0,E.default)(n,r,c,a,i,o,s);if(A.isNewState)return this.setState(A.newState,function(){e.updatePosition()});c.style.left=A.position.left+"px",c.style.top=A.position.top+"px"}},{key:"setStyleHeader",value:function(){var e=document.getElementsByTagName("head")[0];if(!e.querySelector('style[id="react-tooltip"]')){var t=document.createElement("style");t.id="react-tooltip",t.innerHTML=w.default,void 0!==n.nc&&n.nc&&t.setAttribute("nonce",n.nc),e.insertBefore(t,e.firstChild)}}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,a=n.html,i=n.ariaProps,s=n.disable,A=this.getTooltipContent(),l=this.isEmptyTip(A),f=(0,u.default)("__react_component_tooltip",{show:this.state.show&&!s&&!l},{border:this.state.border},{"place-top":"top"===this.state.place},{"place-bottom":"bottom"===this.state.place},{"place-left":"left"===this.state.place},{"place-right":"right"===this.state.place},{"type-dark":"dark"===this.state.type},{"type-success":"success"===this.state.type},{"type-warning":"warning"===this.state.type},{"type-error":"error"===this.state.type},{"type-info":"info"===this.state.type},{"type-light":"light"===this.state.type},{allow_hover:this.props.delayUpdate}),h=this.props.wrapper;return t.supportedWrappers.indexOf(h)<0&&(h=t.defaultProps.wrapper),a?c.default.createElement(h,o({className:f+" "+r,id:this.props.id,ref:function(t){return e.tooltipRef=t}},i,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:(0,d.default)(A)}})):c.default.createElement(h,o({className:f+" "+r,id:this.props.id},i,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),A)}}]),t}(),a.propTypes={children:A.default.any,place:A.default.string,type:A.default.string,effect:A.default.string,offset:A.default.object,multiline:A.default.bool,border:A.default.bool,insecure:A.default.bool,class:A.default.string,className:A.default.string,id:A.default.string,html:A.default.bool,delayHide:A.default.number,delayUpdate:A.default.number,delayShow:A.default.number,event:A.default.string,eventOff:A.default.string,watchWindow:A.default.bool,isCapture:A.default.bool,globalEventOff:A.default.string,getContent:A.default.any,afterShow:A.default.func,afterHide:A.default.func,disable:A.default.bool,scrollHide:A.default.bool,resizeHide:A.default.bool,wrapper:A.default.string},a.defaultProps={insecure:!0,resizeHide:!0,wrapper:"div"},a.supportedWrappers=["div","span"],a.displayName="ReactTooltip",r=i))||r)||r)||r)||r)||r)||r;e.exports=M},function(e,t,n){var r=n(588),a=n(1164);function i(t,n){return delete e.exports[t],e.exports[t]=n,n}e.exports={Parser:r,Tokenizer:n(589),ElementType:n(145),DomHandler:a,get FeedHandler(){return i("FeedHandler",n(1166))},get Stream(){return i("Stream",n(1167))},get WritableStream(){return i("WritableStream",n(593))},get ProxyHandler(){return i("ProxyHandler",n(1169))},get DomUtils(){return i("DomUtils",n(1170))},get CollectingHandler(){return i("CollectingHandler",n(1181))},DefaultHandler:a,get RssHandler(){return i("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new a(t);return new r(n,t).end(e),n.dom},parseFeed:function(t,n){var a=new e.exports.FeedHandler(n);return new r(a,n).end(t),a.dom},createDomStream:function(e,t,n){var i=new a(e,t,n);return new r(i,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(e,t,n){"use strict";var r=n(1210),a=n(1211),i=n(270).decodeHTML,o="&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});",s="<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>",c="]",A=new RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|]*>|)","i"),l=/[\\&]/,u="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",d=new RegExp("\\\\"+u+"|"+o,"gi"),f=new RegExp('[&<>"]',"g"),h=new RegExp(o+'|[&<>"]',"gi"),p=function(e){return 92===e.charCodeAt(0)?e.charAt(1):i(e)},g=function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}};e.exports={unescapeString:function(e){return l.test(e)?e.replace(d,p):e},normalizeURI:function(e){try{return r(a(e))}catch(t){return e}},escapeXml:function(e,t){return f.test(e)?t?e.replace(h,g):e.replace(f,g):e},reHtmlTag:A,OPENTAG:s,CLOSETAG:c,ENTITY:o,ESCAPABLE:u}},function(e,t,n){"use strict";var r=n(19),a=n(617),i=(n(280),n(615),Object.prototype.hasOwnProperty),o=n(618),s={key:!0,ref:!0,__self:!0,__source:!0};function c(e){return void 0!==e.ref}function A(e){return void 0!==e.key}var l=function(e,t,n,r,a,i,s){return{$$typeof:o,type:e,key:t,ref:n,props:s,_owner:i}};l.createElement=function(e,t,n){var r,o={},u=null,d=null;if(null!=t)for(r in c(t)&&(d=t.ref),A(t)&&(u=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source,t)i.call(t,r)&&!s.hasOwnProperty(r)&&(o[r]=t[r]);var f=arguments.length-2;if(1===f)o.children=n;else if(f>1){for(var h=Array(f),p=0;p1){for(var m=Array(g),b=0;b ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(l,{history:this.history,children:this.props.children})},t}(o.a.Component);d.propTypes={basename:c.a.string,forceRefresh:c.a.bool,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node};var f=d;function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=Array(a),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(l,{history:this.history,children:this.props.children})},t}(o.a.Component);p.propTypes={basename:c.a.string,getUserConfirmation:c.a.func,hashType:c.a.oneOf(["hashbang","noslash","slash"]),children:c.a.node};var g=p,m=n(14),b=n.n(m),E=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);b()(this.context.router,"You should not use outside a "),b()(void 0!==t,'You must specify the "to" property');var a=this.context.router.history,i="string"==typeof t?Object(A.createLocation)(t,null,null,a.location):t,s=a.createHref(i);return o.a.createElement("a",E({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(o.a.Component);B.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},B.defaultProps={replace:!1},B.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired};var w=B,I=n(202).a,M=n(118).a,C=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),f="object"===(void 0===t?"undefined":D(t))?t.pathname:t,h=f&&f.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return o.a.createElement(M,{path:h,exact:n,strict:r,location:a,children:function(e){var n=e.location,r=e.match,a=!!(l?l(r,n):r);return o.a.createElement(w,C({to:t,className:a?[s,i].filter(function(e){return e}).join(" "):s,style:a?C({},A,c):A,"aria-current":a&&u||null},d))}})};Q.propTypes={to:w.propTypes.to,exact:c.a.bool,strict:c.a.bool,location:c.a.object,activeClassName:c.a.string,className:c.a.string,activeStyle:c.a.object,style:c.a.object,isActive:c.a.func,"aria-current":c.a.oneOf(["page","step","location","date","time","true"])},Q.defaultProps={activeClassName:"active","aria-current":"page"};var Y=Q,S=n(203).a,k=n(204).a,F=n(205).a,x=n(206).a,T=n(87).a,N=n(75).a,R=n(207).a;n.d(t,"BrowserRouter",function(){return f}),n.d(t,"HashRouter",function(){return g}),n.d(t,"Link",function(){return w}),n.d(t,"MemoryRouter",function(){return I}),n.d(t,"NavLink",function(){return Y}),n.d(t,"Prompt",function(){return S}),n.d(t,"Redirect",function(){return k}),n.d(t,"Route",function(){return M}),n.d(t,"Router",function(){return l}),n.d(t,"StaticRouter",function(){return F}),n.d(t,"Switch",function(){return x}),n.d(t,"generatePath",function(){return T}),n.d(t,"matchPath",function(){return N}),n.d(t,"withRouter",function(){return R})},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,A=Object.getPrototypeOf,l=A&&A(Object);e.exports=function e(t,n,u){if("string"!=typeof n){if(l){var d=A(n);d&&d!==l&&e(t,d,u)}var f=o(n);s&&(f=f.concat(s(n)));for(var h=0;h or withRouter() outside a ");var A=t.route,l=(r||A.location).pathname;return Object(u.a)(l,{path:a,strict:i,exact:s,sensitive:c},A.match)},t.prototype.componentWillMount=function(){a()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),a()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored"),a()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){a()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),a()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,a=t.render,i=this.context.router,o=i.history,s=i.route,A=i.staticContext,l={match:e,location:this.props.location||s.location,history:o,staticContext:A};return r?e?c.a.createElement(r,l):null:a?e?a(l):null:"function"==typeof n?n(l):n&&!h(n)?c.a.Children.only(n):null},t}(c.a.Component);p.propTypes={computedMatch:l.a.object,path:l.a.string,exact:l.a.bool,strict:l.a.bool,sensitive:l.a.bool,component:l.a.func,render:l.a.func,children:l.a.oneOfType([l.a.func,l.a.node]),location:l.a.object},p.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},p.childContextTypes={router:l.a.object.isRequired},t.a=p},function(e,t,n){"use strict";var r=n(671),a="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||a||Function("return this")()).Symbol,o=Object.prototype,s=o.hasOwnProperty,c=o.toString,A=i?i.toStringTag:void 0;var l=function(e){var t=s.call(e,A),n=e[A];try{e[A]=void 0;var r=!0}catch(e){}var a=c.call(e);return r&&(t?e[A]=n:delete e[A]),a},u=Object.prototype.toString;var d=function(e){return u.call(e)},f="[object Null]",h="[object Undefined]",p=i?i.toStringTag:void 0;var g=function(e){return null==e?void 0===e?h:f:p&&p in Object(e)?l(e):d(e)};var m=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var b=function(e){return null!=e&&"object"==typeof e},E="[object Object]",y=Function.prototype,v=Object.prototype,B=y.toString,w=v.hasOwnProperty,I=B.call(Object);t.a=function(e){if(!b(e)||g(e)!=E)return!1;var t=m(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&B.call(n)==I}},function(e,t,n){"use strict";(function(e){for( + */(function(){var o,i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",A="__lodash_hash_undefined__",l=500,d="__lodash_placeholder__",u=1,f=2,h=4,p=1,g=2,m=1,b=2,E=4,y=8,v=16,B=32,w=64,I=128,M=256,C=512,D=30,Q="...",Y=800,S=16,k=1,F=2,x=1/0,T=9007199254740991,N=1.7976931348623157e308,R=NaN,j=4294967295,O=j-1,U=j>>>1,_=[["ary",I],["bind",m],["bindKey",b],["curry",y],["curryRight",v],["flip",C],["partial",B],["partialRight",w],["rearg",M]],P="[object Arguments]",G="[object Array]",J="[object AsyncFunction]",L="[object Boolean]",H="[object Date]",z="[object DOMException]",W="[object Error]",K="[object Function]",V="[object GeneratorFunction]",X="[object Map]",q="[object Number]",Z="[object Null]",$="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",ae="[object Symbol]",oe="[object Undefined]",ie="[object WeakMap]",se="[object WeakSet]",ce="[object ArrayBuffer]",Ae="[object DataView]",le="[object Float32Array]",de="[object Float64Array]",ue="[object Int8Array]",fe="[object Int16Array]",he="[object Int32Array]",pe="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",be="[object Uint32Array]",Ee=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,ve=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Be=/&(?:amp|lt|gt|quot|#39);/g,we=/[&<>"']/g,Ie=RegExp(Be.source),Me=RegExp(we.source),Ce=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,Qe=/<%=([\s\S]+?)%>/g,Ye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Se=/^\w*$/,ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fe=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(Fe.source),Te=/^\s+|\s+$/g,Ne=/^\s+/,Re=/\s+$/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oe=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,_e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pe=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,Le=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,ze=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,qe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",$e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+$e+"]",nt="["+Ze+"]",rt="\\d+",at="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",it="[^\\ud800-\\udfff"+$e+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ct="[^\\ud800-\\udfff]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ut="(?:"+ot+"|"+it+")",ft="(?:"+dt+"|"+it+")",ht="(?:"+nt+"|"+st+")"+"?",pt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ct,At,lt].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),gt="(?:"+[at,At,lt].join("|")+")"+pt,mt="(?:"+[ct+nt+"?",nt,At,lt,et].join("|")+")",bt=RegExp("['’]","g"),Et=RegExp(nt,"g"),yt=RegExp(st+"(?="+st+")|"+mt+pt,"g"),vt=RegExp([dt+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,dt,"$"].join("|")+")",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,dt+ut,"$"].join("|")+")",dt+"?"+ut+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,gt].join("|"),"g"),Bt=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),wt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mt=-1,Ct={};Ct[le]=Ct[de]=Ct[ue]=Ct[fe]=Ct[he]=Ct[pe]=Ct[ge]=Ct[me]=Ct[be]=!0,Ct[P]=Ct[G]=Ct[ce]=Ct[L]=Ct[Ae]=Ct[H]=Ct[W]=Ct[K]=Ct[X]=Ct[q]=Ct[$]=Ct[te]=Ct[ne]=Ct[re]=Ct[ie]=!1;var Dt={};Dt[P]=Dt[G]=Dt[ce]=Dt[Ae]=Dt[L]=Dt[H]=Dt[le]=Dt[de]=Dt[ue]=Dt[fe]=Dt[he]=Dt[X]=Dt[q]=Dt[$]=Dt[te]=Dt[ne]=Dt[re]=Dt[ae]=Dt[pe]=Dt[ge]=Dt[me]=Dt[be]=!0,Dt[W]=Dt[K]=Dt[ie]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,St=parseInt,kt="object"==typeof e&&e&&e.Object===Object&&e,Ft="object"==typeof self&&self&&self.Object===Object&&self,xt=kt||Ft||Function("return this")(),Tt="object"==typeof t&&t&&!t.nodeType&&t,Nt=Tt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=Nt&&Nt.exports===Tt,jt=Rt&&kt.process,Ot=function(){try{var e=Nt&&Nt.require&&Nt.require("util").types;return e||jt&&jt.binding&&jt.binding("util")}catch(e){}}(),Ut=Ot&&Ot.isArrayBuffer,_t=Ot&&Ot.isDate,Pt=Ot&&Ot.isMap,Gt=Ot&&Ot.isRegExp,Jt=Ot&&Ot.isSet,Lt=Ot&&Ot.isTypedArray;function Ht(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function zt(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a-1}function Zt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function vn(e,t){for(var n=e.length;n--&&cn(t,e[n],0)>-1;);return n}var Bn=fn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),wn=fn({"&":"&","<":"<",">":">",'"':""","'":"'"});function In(e){return"\\"+Qt[e]}function Mn(e){return Bt.test(e)}function Cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Dn(e,t){return function(n){return e(t(n))}}function Qn(e,t){for(var n=-1,r=e.length,a=0,o=[];++n",""":'"',"'":"'"});var Tn=function e(t){var n=(t=null==t?xt:Tn.defaults(xt.Object(),t,Tn.pick(xt,It))).Array,r=t.Date,a=t.Error,Ze=t.Function,$e=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,at=n.prototype,ot=Ze.prototype,it=et.prototype,st=t["__core-js_shared__"],ct=ot.toString,At=it.hasOwnProperty,lt=0,dt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ut=it.toString,ft=ct.call(et),ht=xt._,pt=tt("^"+ct.call(At).replace(Fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=Rt?t.Buffer:o,mt=t.Symbol,yt=t.Uint8Array,Bt=gt?gt.allocUnsafe:o,Qt=Dn(et.getPrototypeOf,et),kt=et.create,Ft=it.propertyIsEnumerable,Tt=at.splice,Nt=mt?mt.isConcatSpreadable:o,jt=mt?mt.iterator:o,Ot=mt?mt.toStringTag:o,an=function(){try{var e=Oo(et,"defineProperty");return e({},"",{}),e}catch(e){}}(),fn=t.clearTimeout!==xt.clearTimeout&&t.clearTimeout,Nn=r&&r.now!==xt.Date.now&&r.now,Rn=t.setTimeout!==xt.setTimeout&&t.setTimeout,jn=$e.ceil,On=$e.floor,Un=et.getOwnPropertySymbols,_n=gt?gt.isBuffer:o,Pn=t.isFinite,Gn=at.join,Jn=Dn(et.keys,et),Ln=$e.max,Hn=$e.min,zn=r.now,Wn=t.parseInt,Kn=$e.random,Vn=at.reverse,Xn=Oo(t,"DataView"),qn=Oo(t,"Map"),Zn=Oo(t,"Promise"),$n=Oo(t,"Set"),er=Oo(t,"WeakMap"),tr=Oo(et,"create"),nr=er&&new er,rr={},ar=li(Xn),or=li(qn),ir=li(Zn),sr=li($n),cr=li(er),Ar=mt?mt.prototype:o,lr=Ar?Ar.valueOf:o,dr=Ar?Ar.toString:o;function ur(e){if(Ds(e)&&!gs(e)&&!(e instanceof gr)){if(e instanceof pr)return e;if(At.call(e,"__wrapped__"))return di(e)}return new pr(e)}var fr=function(){function e(){}return function(t){if(!Cs(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function hr(){}function pr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Tr(e,t,n,r,a,i){var s,c=t&u,A=t&f,l=t&h;if(n&&(s=a?n(e,r,a,i):n(e)),s!==o)return s;if(!Cs(e))return e;var d=gs(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&At.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return to(e,s)}else{var p=Po(e),g=p==K||p==V;if(ys(e))return Va(e,c);if(p==$||p==P||g&&!a){if(s=A||g?{}:Jo(e),!c)return A?function(e,t){return no(e,_o(e),t)}(e,function(e,t){return e&&no(t,ac(t),e)}(s,e)):function(e,t){return no(e,Uo(e),t)}(e,Sr(s,e))}else{if(!Dt[p])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ce:return Xa(e);case L:case H:return new r(+e);case Ae:return function(e,t){var n=t?Xa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case de:case ue:case fe:case he:case pe:case ge:case me:case be:return qa(e,n);case X:return new r;case q:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,Je.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case ae:return function(e){return lr?et(lr.call(e)):{}}(e)}}(e,p,c)}}i||(i=new vr);var m=i.get(e);if(m)return m;if(i.set(e,s),Fs(e))return e.forEach(function(r){s.add(Tr(r,t,n,r,e,i))}),s;if(Qs(e))return e.forEach(function(r,a){s.set(a,Tr(r,t,n,a,e,i))}),s;var b=d?o:(l?A?ko:So:A?ac:rc)(e);return Wt(b||e,function(r,a){b&&(r=e[a=r]),Dr(s,a,Tr(r,t,n,a,e,i))}),s}function Nr(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var a=n[r],i=t[a],s=e[a];if(s===o&&!(a in e)||!i(s))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new rt(c);return ri(function(){e.apply(o,n)},t)}function jr(e,t,n,r){var a=-1,o=qt,s=!0,c=e.length,A=[],l=t.length;if(!c)return A;n&&(t=$t(t,mn(n))),r?(o=Zt,s=!1):t.length>=i&&(o=En,s=!1,t=new yr(t));e:for(;++a-1},br.prototype.set=function(e,t){var n=this.__data__,r=Qr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Er.prototype.clear=function(){this.size=0,this.__data__={hash:new mr,map:new(qn||br),string:new mr}},Er.prototype.delete=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},Er.prototype.get=function(e){return Ro(this,e).get(e)},Er.prototype.has=function(e){return Ro(this,e).has(e)},Er.prototype.set=function(e,t){var n=Ro(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},yr.prototype.add=yr.prototype.push=function(e){return this.__data__.set(e,A),this},yr.prototype.has=function(e){return this.__data__.has(e)},vr.prototype.clear=function(){this.__data__=new br,this.size=0},vr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},vr.prototype.get=function(e){return this.__data__.get(e)},vr.prototype.has=function(e){return this.__data__.has(e)},vr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!qn||r.length0&&n(s)?t>1?Jr(s,t-1,n,r,a):en(a,s):r||(a[a.length]=s)}return a}var Lr=io(),Hr=io(!0);function zr(e,t){return e&&Lr(e,t,rc)}function Wr(e,t){return e&&Hr(e,t,rc)}function Kr(e,t){return Xt(t,function(t){return ws(e[t])})}function Vr(e,t){for(var n=0,r=(t=Ha(t,e)).length;null!=e&&nt}function $r(e,t){return null!=e&&At.call(e,t)}function ea(e,t){return null!=e&&t in et(e)}function ta(e,t,r){for(var a=r?Zt:qt,i=e[0].length,s=e.length,c=s,A=n(s),l=1/0,d=[];c--;){var u=e[c];c&&t&&(u=$t(u,mn(t))),l=Hn(u.length,l),A[c]=!r&&(t||i>=120&&u.length>=120)?new yr(c&&u):o}u=e[0];var f=-1,h=A[0];e:for(;++f=s)return c;var A=n[r];return c*("desc"==A?-1:1)}}return e.index-t.index}(e,t,n)})}function ma(e,t,n){for(var r=-1,a=t.length,o={};++r-1;)s!==e&&Tt.call(s,c,1),Tt.call(e,c,1);return e}function Ea(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;Ho(a)?Tt.call(e,a,1):ja(e,a)}}return e}function ya(e,t){return e+On(Kn()*(t-e+1))}function va(e,t){var n="";if(!e||t<1||t>T)return n;do{t%2&&(n+=e),(t=On(t/2))&&(e+=e)}while(t);return n}function Ba(e,t){return ai($o(e,t,Yc),e+"")}function wa(e){return wr(uc(e))}function Ia(e,t){var n=uc(e);return si(n,xr(t,0,n.length))}function Ma(e,t,n,r){if(!Cs(e))return e;for(var a=-1,i=(t=Ha(t,e)).length,s=i-1,c=e;null!=c&&++ao?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=n(o);++a>>1,i=e[o];null!==i&&!Ts(i)&&(n?i<=t:i=i){var l=t?null:Bo(e);if(l)return Yn(l);s=!1,a=En,A=new yr}else A=t?[]:c;e:for(;++r=r?e:Ya(e,t,n)}var Ka=fn||function(e){return xt.clearTimeout(e)};function Va(e,t){if(t)return e.slice();var n=e.length,r=Bt?Bt(n):new e.constructor(n);return e.copy(r),r}function Xa(e){var t=new e.constructor(e.byteLength);return new yt(t).set(new yt(e)),t}function qa(e,t){var n=t?Xa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Za(e,t){if(e!==t){var n=e!==o,r=null===e,a=e==e,i=Ts(e),s=t!==o,c=null===t,A=t==t,l=Ts(t);if(!c&&!l&&!i&&e>t||i&&s&&A&&!c&&!l||r&&s&&A||!n&&A||!a)return 1;if(!r&&!i&&!l&&e1?n[a-1]:o,s=a>2?n[2]:o;for(i=e.length>3&&"function"==typeof i?(a--,i):o,s&&zo(n[0],n[1],s)&&(i=a<3?o:i,a=1),t=et(t);++r-1?a[i?t[s]:s]:o}}function uo(e){return Yo(function(t){var n=t.length,r=n,a=pr.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new rt(c);if(a&&!s&&"wrapper"==xo(i))var s=new pr([],!0)}for(r=s?r:n;++r1&&y.reverse(),u&&lc))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var d=-1,u=!0,f=n&g?new yr:o;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(je,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Wt(_,function(n){var r="_."+n[0];t&n[1]&&!qt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Oe);return t?t[1].split(Ue):[]}(r),n)))}function ii(e){var t=0,n=0;return function(){var r=zn(),a=S-(r-n);if(n=r,a>0){if(++t>=Y)return arguments[0]}else t=0;return e.apply(o,arguments)}}function si(e,t){var n=-1,r=e.length,a=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return ki(e,n="function"==typeof n?(e.pop(),n):o)});function Oi(e){var t=ur(e);return t.__chain__=!0,t}function Ui(e,t){return t(e)}var _i=Yo(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return Fr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof gr&&Ho(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ui,args:[a],thisArg:o}),new pr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(a)});var Pi=ro(function(e,t,n){At.call(e,n)?++e[n]:kr(e,n,1)});var Gi=lo(pi),Ji=lo(gi);function Li(e,t){return(gs(e)?Wt:Or)(e,No(t,3))}function Hi(e,t){return(gs(e)?Kt:Ur)(e,No(t,3))}var zi=ro(function(e,t,n){At.call(e,n)?e[n].push(t):kr(e,n,[t])});var Wi=Ba(function(e,t,r){var a=-1,o="function"==typeof t,i=bs(e)?n(e.length):[];return Or(e,function(e){i[++a]=o?Ht(t,e,r):na(e,t,r)}),i}),Ki=ro(function(e,t,n){kr(e,n,t)});function Vi(e,t){return(gs(e)?$t:da)(e,No(t,3))}var Xi=ro(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var qi=Ba(function(e,t){if(null==e)return[];var n=t.length;return n>1&&zo(e,t[0],t[1])?t=[]:n>2&&zo(t[0],t[1],t[2])&&(t=[t[0]]),ga(e,Jr(t,1),[])}),Zi=Nn||function(){return xt.Date.now()};function $i(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Io(e,I,o,o,o,o,t)}function es(e,t){var n;if("function"!=typeof t)throw new rt(c);return e=_s(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var ts=Ba(function(e,t,n){var r=m;if(n.length){var a=Qn(n,To(ts));r|=B}return Io(e,r,t,n,a)}),ns=Ba(function(e,t,n){var r=m|b;if(n.length){var a=Qn(n,To(ns));r|=B}return Io(t,r,e,n,a)});function rs(e,t,n){var r,a,i,s,A,l,d=0,u=!1,f=!1,h=!0;if("function"!=typeof e)throw new rt(c);function p(t){var n=r,i=a;return r=a=o,d=t,s=e.apply(i,n)}function g(e){var n=e-l;return l===o||n>=t||n<0||f&&e-d>=i}function m(){var e=Zi();if(g(e))return b(e);A=ri(m,function(e){var n=t-(e-l);return f?Hn(n,i-(e-d)):n}(e))}function b(e){return A=o,h&&r?p(e):(r=a=o,s)}function E(){var e=Zi(),n=g(e);if(r=arguments,a=this,l=e,n){if(A===o)return function(e){return d=e,A=ri(m,t),u?p(e):s}(l);if(f)return A=ri(m,t),p(l)}return A===o&&(A=ri(m,t)),s}return t=Gs(t)||0,Cs(n)&&(u=!!n.leading,i=(f="maxWait"in n)?Ln(Gs(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),E.cancel=function(){A!==o&&Ka(A),d=0,r=l=a=A=o},E.flush=function(){return A===o?s:b(Zi())},E}var as=Ba(function(e,t){return Rr(e,1,t)}),os=Ba(function(e,t,n){return Rr(e,Gs(t)||0,n)});function is(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(c);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(is.Cache||Er),n}function ss(e){if("function"!=typeof e)throw new rt(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}is.Cache=Er;var cs=za(function(e,t){var n=(t=1==t.length&&gs(t[0])?$t(t[0],mn(No())):$t(Jr(t,1),mn(No()))).length;return Ba(function(r){for(var a=-1,o=Hn(r.length,n);++a=t}),ps=ra(function(){return arguments}())?ra:function(e){return Ds(e)&&At.call(e,"callee")&&!Ft.call(e,"callee")},gs=n.isArray,ms=Ut?mn(Ut):function(e){return Ds(e)&&qr(e)==ce};function bs(e){return null!=e&&Ms(e.length)&&!ws(e)}function Es(e){return Ds(e)&&bs(e)}var ys=_n||Gc,vs=_t?mn(_t):function(e){return Ds(e)&&qr(e)==H};function Bs(e){if(!Ds(e))return!1;var t=qr(e);return t==W||t==z||"string"==typeof e.message&&"string"==typeof e.name&&!Ss(e)}function ws(e){if(!Cs(e))return!1;var t=qr(e);return t==K||t==V||t==J||t==ee}function Is(e){return"number"==typeof e&&e==_s(e)}function Ms(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=T}function Cs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ds(e){return null!=e&&"object"==typeof e}var Qs=Pt?mn(Pt):function(e){return Ds(e)&&Po(e)==X};function Ys(e){return"number"==typeof e||Ds(e)&&qr(e)==q}function Ss(e){if(!Ds(e)||qr(e)!=$)return!1;var t=Qt(e);if(null===t)return!0;var n=At.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==ft}var ks=Gt?mn(Gt):function(e){return Ds(e)&&qr(e)==te};var Fs=Jt?mn(Jt):function(e){return Ds(e)&&Po(e)==ne};function xs(e){return"string"==typeof e||!gs(e)&&Ds(e)&&qr(e)==re}function Ts(e){return"symbol"==typeof e||Ds(e)&&qr(e)==ae}var Ns=Lt?mn(Lt):function(e){return Ds(e)&&Ms(e.length)&&!!Ct[qr(e)]};var Rs=Eo(la),js=Eo(function(e,t){return e<=t});function Os(e){if(!e)return[];if(bs(e))return xs(e)?Fn(e):to(e);if(jt&&e[jt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[jt]());var t=Po(e);return(t==X?Cn:t==ne?Yn:uc)(e)}function Us(e){return e?(e=Gs(e))===x||e===-x?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function _s(e){var t=Us(e),n=t%1;return t==t?n?t-n:t:0}function Ps(e){return e?xr(_s(e),0,j):0}function Gs(e){if("number"==typeof e)return e;if(Ts(e))return R;if(Cs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Cs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Te,"");var n=He.test(e);return n||We.test(e)?St(e.slice(2),n?2:8):Le.test(e)?R:+e}function Js(e){return no(e,ac(e))}function Ls(e){return null==e?"":Na(e)}var Hs=ao(function(e,t){if(Xo(t)||bs(t))no(t,rc(t),e);else for(var n in t)At.call(t,n)&&Dr(e,n,t[n])}),zs=ao(function(e,t){no(t,ac(t),e)}),Ws=ao(function(e,t,n,r){no(t,ac(t),e,r)}),Ks=ao(function(e,t,n,r){no(t,rc(t),e,r)}),Vs=Yo(Fr);var Xs=Ba(function(e,t){e=et(e);var n=-1,r=t.length,a=r>2?t[2]:o;for(a&&zo(t[0],t[1],a)&&(r=1);++n1),t}),no(e,ko(e),n),r&&(n=Tr(n,u|f|h,Do));for(var a=t.length;a--;)ja(n,t[a]);return n});var cc=Yo(function(e,t){return null==e?{}:function(e,t){return ma(e,t,function(t,n){return $s(e,n)})}(e,t)});function Ac(e,t){if(null==e)return{};var n=$t(ko(e),function(e){return[e]});return t=No(t),ma(e,n,function(e,n){return t(e,n[0])})}var lc=wo(rc),dc=wo(ac);function uc(e){return null==e?[]:bn(e,rc(e))}var fc=co(function(e,t,n){return t=t.toLowerCase(),e+(n?hc(t):t)});function hc(e){return Bc(Ls(e).toLowerCase())}function pc(e){return(e=Ls(e))&&e.replace(Ve,Bn).replace(Et,"")}var gc=co(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),mc=co(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bc=so("toLowerCase");var Ec=co(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var yc=co(function(e,t,n){return e+(n?" ":"")+Bc(t)});var vc=co(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Bc=so("toUpperCase");function wc(e,t,n){return e=Ls(e),(t=n?o:t)===o?function(e){return wt.test(e)}(e)?function(e){return e.match(vt)||[]}(e):function(e){return e.match(_e)||[]}(e):e.match(t)||[]}var Ic=Ba(function(e,t){try{return Ht(e,o,t)}catch(e){return Bs(e)?e:new a(e)}}),Mc=Yo(function(e,t){return Wt(t,function(t){t=Ai(t),kr(e,t,ts(e[t],e))}),e});function Cc(e){return function(){return e}}var Dc=uo(),Qc=uo(!0);function Yc(e){return e}function Sc(e){return sa("function"==typeof e?e:Tr(e,u))}var kc=Ba(function(e,t){return function(n){return na(n,e,t)}}),Fc=Ba(function(e,t){return function(n){return na(e,n,t)}});function xc(e,t,n){var r=rc(t),a=Kr(t,r);null!=n||Cs(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Kr(t,rc(t)));var o=!(Cs(n)&&"chain"in n&&!n.chain),i=ws(e);return Wt(a,function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=to(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Tc(){}var Nc=go($t),Rc=go(Vt),jc=go(rn);function Oc(e){return Wo(e)?un(Ai(e)):function(e){return function(t){return Vr(t,e)}}(e)}var Uc=bo(),_c=bo(!0);function Pc(){return[]}function Gc(){return!1}var Jc=po(function(e,t){return e+t},0),Lc=vo("ceil"),Hc=po(function(e,t){return e/t},1),zc=vo("floor");var Wc=po(function(e,t){return e*t},1),Kc=vo("round"),Vc=po(function(e,t){return e-t},0);return ur.after=function(e,t){if("function"!=typeof t)throw new rt(c);return e=_s(e),function(){if(--e<1)return t.apply(this,arguments)}},ur.ary=$i,ur.assign=Hs,ur.assignIn=zs,ur.assignInWith=Ws,ur.assignWith=Ks,ur.at=Vs,ur.before=es,ur.bind=ts,ur.bindAll=Mc,ur.bindKey=ns,ur.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},ur.chain=Oi,ur.chunk=function(e,t,r){t=(r?zo(e,t,r):t===o)?1:Ln(_s(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,s=0,c=n(jn(a/t));ia?0:a+n),(r=r===o||r>a?a:_s(r))<0&&(r+=a),r=n>r?0:Ps(r);n>>0)?(e=Ls(e))&&("string"==typeof t||null!=t&&!ks(t))&&!(t=Na(t))&&Mn(e)?Wa(Fn(e),0,n):e.split(t,n):[]},ur.spread=function(e,t){if("function"!=typeof e)throw new rt(c);return t=null==t?0:Ln(_s(t),0),Ba(function(n){var r=n[t],a=Wa(n,0,t);return r&&en(a,r),Ht(e,this,a)})},ur.tail=function(e){var t=null==e?0:e.length;return t?Ya(e,1,t):[]},ur.take=function(e,t,n){return e&&e.length?Ya(e,0,(t=n||t===o?1:_s(t))<0?0:t):[]},ur.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ya(e,(t=r-(t=n||t===o?1:_s(t)))<0?0:t,r):[]},ur.takeRightWhile=function(e,t){return e&&e.length?Ua(e,No(t,3),!1,!0):[]},ur.takeWhile=function(e,t){return e&&e.length?Ua(e,No(t,3)):[]},ur.tap=function(e,t){return t(e),e},ur.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new rt(c);return Cs(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),rs(e,t,{leading:r,maxWait:t,trailing:a})},ur.thru=Ui,ur.toArray=Os,ur.toPairs=lc,ur.toPairsIn=dc,ur.toPath=function(e){return gs(e)?$t(e,Ai):Ts(e)?[e]:to(ci(Ls(e)))},ur.toPlainObject=Js,ur.transform=function(e,t,n){var r=gs(e),a=r||ys(e)||Ns(e);if(t=No(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:Cs(e)&&ws(o)?fr(Qt(e)):{}}return(a?Wt:zr)(e,function(e,r,a){return t(n,e,r,a)}),n},ur.unary=function(e){return $i(e,1)},ur.union=Di,ur.unionBy=Qi,ur.unionWith=Yi,ur.uniq=function(e){return e&&e.length?Ra(e):[]},ur.uniqBy=function(e,t){return e&&e.length?Ra(e,No(t,2)):[]},ur.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ra(e,o,t):[]},ur.unset=function(e,t){return null==e||ja(e,t)},ur.unzip=Si,ur.unzipWith=ki,ur.update=function(e,t,n){return null==e?e:Oa(e,t,La(n))},ur.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Oa(e,t,La(n),r)},ur.values=uc,ur.valuesIn=function(e){return null==e?[]:bn(e,ac(e))},ur.without=Fi,ur.words=wc,ur.wrap=function(e,t){return As(La(t),e)},ur.xor=xi,ur.xorBy=Ti,ur.xorWith=Ni,ur.zip=Ri,ur.zipObject=function(e,t){return Ga(e||[],t||[],Dr)},ur.zipObjectDeep=function(e,t){return Ga(e||[],t||[],Ma)},ur.zipWith=ji,ur.entries=lc,ur.entriesIn=dc,ur.extend=zs,ur.extendWith=Ws,xc(ur,ur),ur.add=Jc,ur.attempt=Ic,ur.camelCase=fc,ur.capitalize=hc,ur.ceil=Lc,ur.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Gs(n))==n?n:0),t!==o&&(t=(t=Gs(t))==t?t:0),xr(Gs(e),t,n)},ur.clone=function(e){return Tr(e,h)},ur.cloneDeep=function(e){return Tr(e,u|h)},ur.cloneDeepWith=function(e,t){return Tr(e,u|h,t="function"==typeof t?t:o)},ur.cloneWith=function(e,t){return Tr(e,h,t="function"==typeof t?t:o)},ur.conformsTo=function(e,t){return null==t||Nr(e,t,rc(t))},ur.deburr=pc,ur.defaultTo=function(e,t){return null==e||e!=e?t:e},ur.divide=Hc,ur.endsWith=function(e,t,n){e=Ls(e),t=Na(t);var r=e.length,a=n=n===o?r:xr(_s(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},ur.eq=us,ur.escape=function(e){return(e=Ls(e))&&Me.test(e)?e.replace(we,wn):e},ur.escapeRegExp=function(e){return(e=Ls(e))&&xe.test(e)?e.replace(Fe,"\\$&"):e},ur.every=function(e,t,n){var r=gs(e)?Vt:_r;return n&&zo(e,t,n)&&(t=o),r(e,No(t,3))},ur.find=Gi,ur.findIndex=pi,ur.findKey=function(e,t){return on(e,No(t,3),zr)},ur.findLast=Ji,ur.findLastIndex=gi,ur.findLastKey=function(e,t){return on(e,No(t,3),Wr)},ur.floor=zc,ur.forEach=Li,ur.forEachRight=Hi,ur.forIn=function(e,t){return null==e?e:Lr(e,No(t,3),ac)},ur.forInRight=function(e,t){return null==e?e:Hr(e,No(t,3),ac)},ur.forOwn=function(e,t){return e&&zr(e,No(t,3))},ur.forOwnRight=function(e,t){return e&&Wr(e,No(t,3))},ur.get=Zs,ur.gt=fs,ur.gte=hs,ur.has=function(e,t){return null!=e&&Go(e,t,$r)},ur.hasIn=$s,ur.head=bi,ur.identity=Yc,ur.includes=function(e,t,n,r){e=bs(e)?e:uc(e),n=n&&!r?_s(n):0;var a=e.length;return n<0&&(n=Ln(a+n,0)),xs(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&cn(e,t,n)>-1},ur.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:_s(n);return a<0&&(a=Ln(r+a,0)),cn(e,t,a)},ur.inRange=function(e,t,n){return t=Us(t),n===o?(n=t,t=0):n=Us(n),function(e,t,n){return e>=Hn(t,n)&&e=-T&&e<=T},ur.isSet=Fs,ur.isString=xs,ur.isSymbol=Ts,ur.isTypedArray=Ns,ur.isUndefined=function(e){return e===o},ur.isWeakMap=function(e){return Ds(e)&&Po(e)==ie},ur.isWeakSet=function(e){return Ds(e)&&qr(e)==se},ur.join=function(e,t){return null==e?"":Gn.call(e,t)},ur.kebabCase=gc,ur.last=Bi,ur.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==o&&(a=(a=_s(n))<0?Ln(r+a,0):Hn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):sn(e,ln,a,!0)},ur.lowerCase=mc,ur.lowerFirst=bc,ur.lt=Rs,ur.lte=js,ur.max=function(e){return e&&e.length?Pr(e,Yc,Zr):o},ur.maxBy=function(e,t){return e&&e.length?Pr(e,No(t,2),Zr):o},ur.mean=function(e){return dn(e,Yc)},ur.meanBy=function(e,t){return dn(e,No(t,2))},ur.min=function(e){return e&&e.length?Pr(e,Yc,la):o},ur.minBy=function(e,t){return e&&e.length?Pr(e,No(t,2),la):o},ur.stubArray=Pc,ur.stubFalse=Gc,ur.stubObject=function(){return{}},ur.stubString=function(){return""},ur.stubTrue=function(){return!0},ur.multiply=Wc,ur.nth=function(e,t){return e&&e.length?pa(e,_s(t)):o},ur.noConflict=function(){return xt._===this&&(xt._=ht),this},ur.noop=Tc,ur.now=Zi,ur.pad=function(e,t,n){e=Ls(e);var r=(t=_s(t))?kn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return mo(On(a),n)+e+mo(jn(a),n)},ur.padEnd=function(e,t,n){e=Ls(e);var r=(t=_s(t))?kn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=Kn();return Hn(e+a*(t-e+Yt("1e-"+((a+"").length-1))),t)}return ya(e,t)},ur.reduce=function(e,t,n){var r=gs(e)?tn:hn,a=arguments.length<3;return r(e,No(t,4),n,a,Or)},ur.reduceRight=function(e,t,n){var r=gs(e)?nn:hn,a=arguments.length<3;return r(e,No(t,4),n,a,Ur)},ur.repeat=function(e,t,n){return t=(n?zo(e,t,n):t===o)?1:_s(t),va(Ls(e),t)},ur.replace=function(){var e=arguments,t=Ls(e[0]);return e.length<3?t:t.replace(e[1],e[2])},ur.result=function(e,t,n){var r=-1,a=(t=Ha(t,e)).length;for(a||(a=1,e=o);++rT)return[];var n=j,r=Hn(e,j);t=No(t),e-=j;for(var a=gn(r,t);++n=i)return e;var c=n-kn(r);if(c<1)return r;var A=s?Wa(s,0,c).join(""):e.slice(0,c);if(a===o)return A+r;if(s&&(c+=A.length-c),ks(a)){if(e.slice(c).search(a)){var l,d=A;for(a.global||(a=tt(a.source,Ls(Je.exec(a))+"g")),a.lastIndex=0;l=a.exec(d);)var u=l.index;A=A.slice(0,u===o?c:u)}}else if(e.indexOf(Na(a),c)!=c){var f=A.lastIndexOf(a);f>-1&&(A=A.slice(0,f))}return A+r},ur.unescape=function(e){return(e=Ls(e))&&Ie.test(e)?e.replace(Be,xn):e},ur.uniqueId=function(e){var t=++lt;return Ls(e)+t},ur.upperCase=vc,ur.upperFirst=Bc,ur.each=Li,ur.eachRight=Hi,ur.first=bi,xc(ur,function(){var e={};return zr(ur,function(t,n){At.call(ur.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),ur.VERSION="4.17.11",Wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){ur[e].placeholder=ur}),Wt(["drop","take"],function(e,t){gr.prototype[e]=function(n){n=n===o?1:Ln(_s(n),0);var r=this.__filtered__&&!t?new gr(this):this.clone();return r.__filtered__?r.__takeCount__=Hn(n,r.__takeCount__):r.__views__.push({size:Hn(n,j),type:e+(r.__dir__<0?"Right":"")}),r},gr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Wt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==k||3==n;gr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:No(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Wt(["head","last"],function(e,t){var n="take"+(t?"Right":"");gr.prototype[e]=function(){return this[n](1).value()[0]}}),Wt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");gr.prototype[e]=function(){return this.__filtered__?new gr(this):this[n](1)}}),gr.prototype.compact=function(){return this.filter(Yc)},gr.prototype.find=function(e){return this.filter(e).head()},gr.prototype.findLast=function(e){return this.reverse().find(e)},gr.prototype.invokeMap=Ba(function(e,t){return"function"==typeof e?new gr(this):this.map(function(n){return na(n,e,t)})}),gr.prototype.reject=function(e){return this.filter(ss(No(e)))},gr.prototype.slice=function(e,t){e=_s(e);var n=this;return n.__filtered__&&(e>0||t<0)?new gr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=_s(t))<0?n.dropRight(-t):n.take(t-e)),n)},gr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gr.prototype.toArray=function(){return this.take(j)},zr(gr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=ur[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);a&&(ur.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof gr,A=s[0],l=c||gs(t),d=function(e){var t=a.apply(ur,en([e],s));return r&&u?t[0]:t};l&&n&&"function"==typeof A&&1!=A.length&&(c=l=!1);var u=this.__chain__,f=!!this.__actions__.length,h=i&&!u,p=c&&!f;if(!i&&l){t=p?t:new gr(this);var g=e.apply(t,s);return g.__actions__.push({func:Ui,args:[d],thisArg:o}),new pr(g,u)}return h&&p?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})}),Wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);ur.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(gs(a)?a:[],e)}return this[n](function(n){return t.apply(gs(n)?n:[],e)})}}),zr(gr.prototype,function(e,t){var n=ur[t];if(n){var r=n.name+"";(rr[r]||(rr[r]=[])).push({name:t,func:n})}}),rr[fo(o,b).name]=[{name:"wrapper",func:o}],gr.prototype.clone=function(){var e=new gr(this.__wrapped__);return e.__actions__=to(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=to(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=to(this.__views__),e},gr.prototype.reverse=function(){if(this.__filtered__){var e=new gr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=gs(e),r=t<0,a=n?e.length:0,o=function(e,t,n){for(var r=-1,a=n.length;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},ur.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=di(n);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},ur.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gr){var t=e;return this.__actions__.length&&(t=new gr(this)),(t=t.reverse()).__actions__.push({func:Ui,args:[Ci],thisArg:o}),new pr(t,this.__chain__)}return this.thru(Ci)},ur.prototype.toJSON=ur.prototype.valueOf=ur.prototype.value=function(){return _a(this.__wrapped__,this.__actions__)},ur.prototype.first=ur.prototype.head,jt&&(ur.prototype[jt]=function(){return this}),ur}();xt._=Tn,(a=function(){return Tn}.call(t,n,t,r))===o||(r.exports=a)}).call(this)}).call(this,n(5),n(59)(e))},function(e,t,n){"use strict";var r=t;r.version=n(770).version,r.utils=n(771),r.rand=n(360),r.curve=n(170),r.curves=n(776),r.ec=n(784),r.eddsa=n(788)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(e,t){return(0,r.default)({},e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,a.default.oneOfType([a.default.string,a.default.func,a.default.node])))},{})};var r=o(n(28)),a=o(n(0));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,i=void 0===n?"styles":n,l=t.themePropName,u=void 0===l?"theme":l,h=t.cssPropName,b=void 0===h?"css":h,E=t.flushBefore,y=void 0!==E&&E,v=t.pureComponent,B=void 0,w=void 0,I=void 0,M=void 0,C=function(e){if(e){if(!o.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return o.default.PureComponent}return o.default.Component}(void 0!==v&&v);function D(t,n){var r=function(e){return e===A.DIRECTIONS.LTR?I:M}(t),a=t===A.DIRECTIONS.LTR?B:w,o=d.default.get();if(a&&r===o)return a;var i=t===A.DIRECTIONS.RTL;return i?(w=e?d.default.createRTL(e):p,M=o,a=w):(B=e?d.default.createLTR(e):p,I=o,a=B),a}function Q(e,t){return{resolveMethod:function(e){return e===A.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}(e),styleDef:D(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function s(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e,n)),a=r.context[A.CHANNEL]?r.context[A.CHANNEL].getState():m;return r.state=Q(a,t),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,n),a(s,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[A.CHANNEL]&&(this.channelUnsubscribe=this.context[A.CHANNEL].subscribe(function(n){e.setState(Q(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;y&&d.default.flush();var n=this.state,a=n.resolveMethod,s=n.styleDef;return o.default.createElement(e,r({},this.props,(f(t={},u,d.default.get()),f(t,i,s()),f(t,b,a),t)))}}()}]),s}(C);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=g,e.propTypes&&(n.propTypes=(0,c.default)({},e.propTypes),delete n.propTypes[i],delete n.propTypes[u],delete n.propTypes[b]);e.defaultProps&&(n.defaultProps=(0,c.default)({},e.defaultProps));return(0,s.default)(n,e)}}()};var o=u(n(1)),i=u(n(0)),s=u(n(117)),c=u(n(1093)),A=n(1094),l=u(n(1095)),d=u(n(549));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:i.default.object.isRequired,theme:i.default.object.isRequired,css:i.default.func.isRequired};var h={},p=function(){return h};var g=f({},A.CHANNEL,l.default),m=A.DIRECTIONS.LTR},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return e===t};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=void 0,a=[],o=void 0,i=!1,s=function(e,n){return t(e,a[n])};return function(){for(var t=arguments.length,r=Array(t),c=0;c2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o.default;if(window[t]&&r(window[t]))return Promise.resolve(window[t]);return new Promise(function(r,o){if(p[e])p[e].push(r);else{p[e]=[r];var i=function(t){p[e].forEach(function(e){return e(t)})};if(n){var s=window[n];window[n]=function(){s&&s(),i(window[t])}}a(e,function(e){e&&o(e),n||i(window[t])})}})},t.getConfig=function(e,t,n){var r=(0,i.default)(t.config,e.config),a=!0,o=!1,c=void 0;try{for(var l,d=s.DEPRECATED_CONFIG_PROPS[Symbol.iterator]();!(a=(l=d.next()).done);a=!0){var u=l.value;if(e[u]){var f=u.replace(/Config$/,"");if(r=(0,i.default)(r,A({},f,e[u])),n){var h="ReactPlayer: %c"+u+" %cis deprecated, please use the config prop instead – https://github.com/CookPete/react-player#config-prop";console.warn(h,"font-weight: bold","")}}}}catch(e){o=!0,c=e}finally{try{!a&&d.return&&d.return()}finally{if(o)throw c}}return r},t.omit=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),a=1;a1?r-1:0),o=1;o=128?"#000":"#fff"}};t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(633));t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";(function(t){var n,r,a=t.MutationObserver||t.WebKitMutationObserver;if(a){var o=0,i=new a(l),s=t.document.createTextNode("");i.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){l(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(l,0)};else{var c=new t.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var A=[];function l(){var e,t;r=!0;for(var n=A.length;n;){for(t=A,A=[],e=-1;++e2?arguments[2]:{},o=r(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:G,t=arguments[1],n=t.payload,a=void 0,o=void 0;switch(t.type){case p+"_SUCCESS":return o=t.result.data.corpus,r({},e,l({},o.metadata.id,o));case _+"_SUCCESS":return r({},e,l({},t.result.data.metadata.id,t.result.data));case P:return{};case m:return n&&n.corpus?r({},e,l({},n.id,n.corpus)):e;case m+"_SUCCESS":return o=t.result.data.corpus,r({},e,l({},o.metadata.id,o));case E:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{compositions:r({},e[n.corpusId].compositions,l({},n.composition.metadata.id,n.composition))})));case y:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{compositions:r({},e[n.corpusId].compositions,l({},n.compositionId,n.composition))})));case v:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{compositions:Object.keys(e[n.corpusId].compositions).reduce(function(t,a){return a!==n.compositionId?r({},t,l({},a,r({},e[n.corpusId].compositions[a]))):t},{})})));case B:var c=JSON.parse(JSON.stringify(n.composition));return c.metadata.id=(0,i.v4)(),r({},e,l({},n.corpusId,r({},e[n.corpusId],{compositions:r({},e[n.corpusId].compositions,l({},c.metadata.id,c))})));case w:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{medias:r({},e[n.corpusId].medias,l({},n.media.metadata.id,n.media))})));case I:return r({},e,l({},n.corpusId,r({},e[n.corpusId],{medias:r({},e[n.corpusId].medias,l({},n.mediaId,n.media))})));case M:var A=n.mediaId,d=(0,s.mapToArray)(e[n.corpusId].chunks),u=d.filter(function(e){return e.metadata.mediaId!==A}).reduce(function(e,t){return r({},e,l({},t.metadata.id,t))},{}),h=d.filter(function(e){return e.metadata.mediaId===A}).map(function(e){return e.metadata.id}),g=Object.keys(e[n.corpusId].compositions).reduce(function(t,a){return r({},t,l({},a,r({},e[n.corpusId].compositions[a],{summary:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"REDUX_I18N_SET_LANGUAGE":return c.inElectron&&d.set("§dicto-lang",t.lang),e;case"§dicto/ChunksEdition/SET_RGPD_AGREEMENT_PROMPTED":return{rgpdAgreementPrompted:t.payload};default:return e}}});t.selector=(0,o.createStructuredSelector)({corpora:function(e){return e.corpora}})},function(e,t,n){"use strict";var r=n(40),a=n(3);function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r>8,i=255&a;o?n.push(o,i):n.push(i)}else for(r=0;r>>0}return i},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r>>24,n[a+1]=o>>>16&255,n[a+2]=o>>>8&255,n[a+3]=255&o):(n[a+3]=o>>>24,n[a+2]=o>>>16&255,n[a+1]=o>>>8&255,n[a]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],o=r+e[t+1]>>>0,i=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,o,i,s){var c=0,A=t;return c+=(A=A+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,o,i,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,a,o,i,s,c,A){var l=0,d=t;return l+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,o,i,s,c,A){return t+r+o+s+A>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(270));t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"player";return r.player?r.player.getInternalPlayer(e):null},r.seekTo=function(e){if(!r.player)return null;r.player.seekTo(e)},r.ref=function(e){r.player=e},d(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),a(n,[{key:"shouldComponentUpdate",value:function(e){return!(0,c.isEqual)(this.props,e)}},{key:"componentWillUpdate",value:function(e){this.config=(0,c.getConfig)(e,s.defaultProps)}},{key:"render",value:function(){if(!e.canPlay(this.props.url))return null;var t=this.props,n=t.style,a=t.width,o=t.height,l=t.wrapper,d=(0,c.omit)(this.props,u,s.DEPRECATED_CONFIG_PROPS);return i.default.createElement(l,r({style:r({},n,{width:a,height:o})},d),i.default.createElement(A.default,r({},this.props,{ref:this.ref,activePlayer:e,config:this.config})))}}]),n}(o.Component),t.displayName=e.displayName+"Player",t.propTypes=s.propTypes,t.defaultProps=s.defaultProps,t.canPlay=e.canPlay,n};var o=n(1),i=l(o),s=n(192),c=n(42),A=l(n(276));function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=Object.keys(s.propTypes)},function(e,t,n){var r=n(290)("wks"),a=n(196),o=n(66).Symbol,i="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=i&&o[e]||(i?o:a)("Symbol."+e))}).store=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(112)),a=o(n(114));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=(0,a.default)(),t=e.y,n=e.x,o=document.documentElement,i=n+o.clientWidth,s=t+o.clientHeight;return(0,r.default)({top:t,left:n,right:i,bottom:s})}},function(e,t,n){var r=n(2),a=n(1090),o=n(1091);e.exports={momentObj:o.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return a.isValidMoment(e)},"Moment"),momentString:o.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return a.isValidMoment(r(e))},"Moment"),momentDurationObj:o.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isDuration(e)},"Duration")}},function(e,t,n){e.exports={default:n(1449),__esModule:!0}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var a=e[r];"."===a?e.splice(r,1):".."===a?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;a--){var i=a>=0?arguments[a]:e.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,r="/"===i.charAt(0))}return t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return(e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var a=r(e.split("/")),o=r(n.split("/")),i=Math.min(a.length,o.length),s=i,c=0;c may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){a()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?c.a.Children.only(e):null},t}(c.a.Component);f.propTypes={history:l.a.object.isRequired,children:l.a.node},f.contextTypes={router:l.a.object},f.childContextTypes={router:l.a.object.isRequired},t.a=f},function(e,t,n){"use strict";var r=n(158),a=n.n(r),o={},i=0;t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,s=r.path,c=r.exact,A=void 0!==c&&c,l=r.strict,d=void 0!==l&&l,u=r.sensitive,f=void 0!==u&&u;if(null==s)return n;var h=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=o[n]||(o[n]={});if(r[e])return r[e];var s=[],c={re:a()(e,s,t),keys:s};return i<1e4&&(r[e]=c,i++),c}(s,{end:A,strict:d,sensitive:f}),p=h.re,g=h.keys,m=p.exec(e);if(!m)return null;var b=m[0],E=m.slice(1),y=e===b;return A&&!y?null:{path:s,url:"/"===s&&""===b?"/":b,isExact:y,params:g.reduce(function(e,t,n){return e[t.name]=E[n],e},{})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toastr=t.reducer=t.actions=void 0;var r=s(n(712)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(331)),o=s(n(332)),i=n(333);function s(e){return e&&e.__esModule?e:{default:e}}t.default=r.default;t.actions=a,t.reducer=o.default,t.toastr=i.toastrEmitter},function(e,t,n){"use strict";function r(e,t){return e===t}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,a=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,a=0;a1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:i;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r0||i){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:c,show:!0},function(){t.updatePosition(),n&&o&&o()})}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(A,s):A()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=this.state,a=r.delayHide,o=r.disable,i=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!o){if(t)if(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show)return;var c=function(){var e=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},function(){n.removeScrollListener(),e&&i&&i()}))};this.clearTimer(),a?this.delayHideLoop=setTimeout(c,parseInt(a,10)):c()}}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltip,t)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltip)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,r=t.currentTarget,a=t.place,o=t.desiredPlace,i=t.effect,s=t.offset,c=l.default.findDOMNode(this),A=(0,E.default)(n,r,c,a,o,i,s);if(A.isNewState)return this.setState(A.newState,function(){e.updatePosition()});c.style.left=A.position.left+"px",c.style.top=A.position.top+"px"}},{key:"setStyleHeader",value:function(){var e=document.getElementsByTagName("head")[0];if(!e.querySelector('style[id="react-tooltip"]')){var t=document.createElement("style");t.id="react-tooltip",t.innerHTML=w.default,void 0!==n.nc&&n.nc&&t.setAttribute("nonce",n.nc),e.insertBefore(t,e.firstChild)}}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,a=n.html,o=n.ariaProps,s=n.disable,A=this.getTooltipContent(),l=this.isEmptyTip(A),f=(0,d.default)("__react_component_tooltip",{show:this.state.show&&!s&&!l},{border:this.state.border},{"place-top":"top"===this.state.place},{"place-bottom":"bottom"===this.state.place},{"place-left":"left"===this.state.place},{"place-right":"right"===this.state.place},{"type-dark":"dark"===this.state.type},{"type-success":"success"===this.state.type},{"type-warning":"warning"===this.state.type},{"type-error":"error"===this.state.type},{"type-info":"info"===this.state.type},{"type-light":"light"===this.state.type},{allow_hover:this.props.delayUpdate}),h=this.props.wrapper;return t.supportedWrappers.indexOf(h)<0&&(h=t.defaultProps.wrapper),a?c.default.createElement(h,i({className:f+" "+r,id:this.props.id,ref:function(t){return e.tooltipRef=t}},o,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:(0,u.default)(A)}})):c.default.createElement(h,i({className:f+" "+r,id:this.props.id},o,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),A)}}]),t}(),a.propTypes={children:A.default.any,place:A.default.string,type:A.default.string,effect:A.default.string,offset:A.default.object,multiline:A.default.bool,border:A.default.bool,insecure:A.default.bool,class:A.default.string,className:A.default.string,id:A.default.string,html:A.default.bool,delayHide:A.default.number,delayUpdate:A.default.number,delayShow:A.default.number,event:A.default.string,eventOff:A.default.string,watchWindow:A.default.bool,isCapture:A.default.bool,globalEventOff:A.default.string,getContent:A.default.any,afterShow:A.default.func,afterHide:A.default.func,disable:A.default.bool,scrollHide:A.default.bool,resizeHide:A.default.bool,wrapper:A.default.string},a.defaultProps={insecure:!0,resizeHide:!0,wrapper:"div"},a.supportedWrappers=["div","span"],a.displayName="ReactTooltip",r=o))||r)||r)||r)||r)||r)||r;e.exports=M},function(e,t,n){e.exports=!n(110)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(646));t.default=r.default||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=o[t]||(o[t]={});if(n[e])return n[e];var r=a.a.compile(e);return i<1e4&&(n[e]=r,i++),r}(e)(t,{pretty:!0})}},function(e,t,n){"use strict";e.exports=function(e){return function(){var t=arguments.length;if(t){for(var n=[],r=-1;++r0&&void 0!==arguments[0]?arguments[0]:e,r=arguments[1],a=r.type,o=r.payload,i=t[a];return i?i(n,o):n}},t.isBrowser=function(){if("undefined"!=typeof window)return!0;return!1},t.keyCode=function(e){return e.which?e.which:e.keyCode},t.mapToToastrMessage=function(e,t){var n={};n.type=e,n.position=a.default.position,n.options=t.filter(function(e){return"object"==(void 0===e?"undefined":r(e))})[0]||{},n.options.hasOwnProperty("position")&&(n.position=n.options.position);n.options.hasOwnProperty("removeOnHover")||(n.options.removeOnHover=!0,"message"===e&&(n.options.removeOnHover=!1));n.options.hasOwnProperty("showCloseButton")||(n.options.showCloseButton=!0);"message"!==e||n.options.hasOwnProperty("timeOut")||(n.options.timeOut=0);o(t[0])&&o(t[1])?(n.title=t[0],n.message=t[1]):o(t[0])&&!o(t[1])?n.title=t[0]:n.message=t[0];return n},t.guid=function(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+e()+"-"+e()+"_"+e()+"-"+e()+"_"+e()+e()+e()},t.onCSSTransitionEnd=function(e,t){var n=function(){var e=void 0,t=document.createElement("fakeelement"),n={animation:"animationend",oanimation:"oanimationend",MSAnimation:"MSAnimationEnd",webkitAnimation:"webkitAnimationEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}(),r=setTimeout(function(){var t=new Event(n);i("The toastr box was closed automatically, please check 'transitionOut' prop value"),e.dispatchEvent(t)},a.default.maxAnimationDelay);e.addEventListener(n,function a(o){clearTimeout(r),o.stopPropagation(),e.removeEventListener(n,a),t&&t(o)})},t.preventDuplication=function(e,t){var n=!1;return e.forEach(function(e){!1!==e.options.preventDuplicates&&e.title===t.title&&e.message===t.message&&e.type===t.type&&(n=!0)}),n},t.updateConfig=function(e){Object.keys(a.default).forEach(function(t){e.hasOwnProperty(t)&&(a.default[t]=e[t])})},t._bind=function(e,t){var n=e;Array.isArray(e)||(n=e.split(" "));return n.map(function(e){return t[e]=t[e].bind(t)})};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(213));function o(e){return"string"==typeof e}function i(e){return null}},function(e,t,n){"use strict";(function(t,r){var a=n(11).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,n){if(e>65536)throw new Error("requested too many random bytes");var i=new t.Uint8Array(e);e>0&&o.getRandomValues(i);var s=a.from(i.buffer);if("function"==typeof n)return r.nextTick(function(){n(null,s)});return s}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(5),n(17))},function(e,t,n){var r=n(11).Buffer;function a(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}a.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,a=this._blockSize,o=e.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,a=(n-r)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=a},function(e,t,n){"use strict";function r(e,t,n){var r=n?" !== ":" === ",a=n?" || ":" && ",o=n?"!":"",i=n?"":"!";switch(e){case"null":return t+r+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+a+"typeof "+t+r+'"object"'+a+i+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+r+'"number"'+a+i+"("+t+" % 1)"+a+t+r+t+")";default:return"typeof "+t+r+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t){switch(e.length){case 1:return r(e[0],t,!0);default:var n="",a=o(e);for(var i in a.array&&a.object&&(n=a.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)n+=(n?" && ":"")+r(i,t,!0);return n}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(o="data"+(t-r||""),!a)return o}for(var s=o,A=a.split("/"),l=0;l`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>",c="]",A=new RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|]*>|)","i"),l=/[\\&]/,d="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",u=new RegExp("\\\\"+d+"|"+i,"gi"),f=new RegExp('[&<>"]',"g"),h=new RegExp(i+'|[&<>"]',"gi"),p=function(e){return 92===e.charCodeAt(0)?e.charAt(1):o(e)},g=function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}};e.exports={unescapeString:function(e){return l.test(e)?e.replace(u,p):e},normalizeURI:function(e){try{return r(a(e))}catch(t){return e}},escapeXml:function(e,t){return f.test(e)?t?e.replace(h,g):e.replace(f,g):e},reHtmlTag:A,OPENTAG:s,CLOSETAG:c,ENTITY:i,ESCAPABLE:d}},function(e,t,n){"use strict";var r=n(19),a=n(612),o=(n(278),n(610),Object.prototype.hasOwnProperty),i=n(613),s={key:!0,ref:!0,__self:!0,__source:!0};function c(e){return void 0!==e.ref}function A(e){return void 0!==e.key}var l=function(e,t,n,r,a,o,s){return{$$typeof:i,type:e,key:t,ref:n,props:s,_owner:o}};l.createElement=function(e,t,n){var r,i={},d=null,u=null;if(null!=t)for(r in c(t)&&(u=t.ref),A(t)&&(d=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source,t)o.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);var f=arguments.length-2;if(1===f)i.children=n;else if(f>1){for(var h=Array(f),p=0;p1){for(var m=Array(g),b=0;b ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(l,{history:this.history,children:this.props.children})},t}(i.a.Component);u.propTypes={basename:c.a.string,forceRefresh:c.a.bool,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node};var f=u;function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(l,{history:this.history,children:this.props.children})},t}(i.a.Component);p.propTypes={basename:c.a.string,getUserConfirmation:c.a.func,hashType:c.a.oneOf(["hashbang","noslash","slash"]),children:c.a.node};var g=p,m=n(14),b=n.n(m),E=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);b()(this.context.router,"You should not use outside a "),b()(void 0!==t,'You must specify the "to" property');var a=this.context.router.history,o="string"==typeof t?Object(A.createLocation)(t,null,null,a.location):t,s=a.createHref(o);return i.a.createElement("a",E({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(i.a.Component);B.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},B.defaultProps={replace:!1},B.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired};var w=B,I=n(202).a,M=n(118).a,C=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),f="object"===(void 0===t?"undefined":D(t))?t.pathname:t,h=f&&f.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return i.a.createElement(M,{path:h,exact:n,strict:r,location:a,children:function(e){var n=e.location,r=e.match,a=!!(l?l(r,n):r);return i.a.createElement(w,C({to:t,className:a?[s,o].filter(function(e){return e}).join(" "):s,style:a?C({},A,c):A,"aria-current":a&&d||null},u))}})};Q.propTypes={to:w.propTypes.to,exact:c.a.bool,strict:c.a.bool,location:c.a.object,activeClassName:c.a.string,className:c.a.string,activeStyle:c.a.object,style:c.a.object,isActive:c.a.func,"aria-current":c.a.oneOf(["page","step","location","date","time","true"])},Q.defaultProps={activeClassName:"active","aria-current":"page"};var Y=Q,S=n(203).a,k=n(204).a,F=n(205).a,x=n(206).a,T=n(88).a,N=n(75).a,R=n(207).a;n.d(t,"BrowserRouter",function(){return f}),n.d(t,"HashRouter",function(){return g}),n.d(t,"Link",function(){return w}),n.d(t,"MemoryRouter",function(){return I}),n.d(t,"NavLink",function(){return Y}),n.d(t,"Prompt",function(){return S}),n.d(t,"Redirect",function(){return k}),n.d(t,"Route",function(){return M}),n.d(t,"Router",function(){return l}),n.d(t,"StaticRouter",function(){return F}),n.d(t,"Switch",function(){return x}),n.d(t,"generatePath",function(){return T}),n.d(t,"matchPath",function(){return N}),n.d(t,"withRouter",function(){return R})},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,A=Object.getPrototypeOf,l=A&&A(Object);e.exports=function e(t,n,d){if("string"!=typeof n){if(l){var u=A(n);u&&u!==l&&e(t,u,d)}var f=i(n);s&&(f=f.concat(s(n)));for(var h=0;h or withRouter() outside a ");var A=t.route,l=(r||A.location).pathname;return Object(d.a)(l,{path:a,strict:o,exact:s,sensitive:c},A.match)},t.prototype.componentWillMount=function(){a()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),a()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored"),a()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){a()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),a()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,a=t.render,o=this.context.router,i=o.history,s=o.route,A=o.staticContext,l={match:e,location:this.props.location||s.location,history:i,staticContext:A};return r?e?c.a.createElement(r,l):null:a?e?a(l):null:"function"==typeof n?n(l):n&&!h(n)?c.a.Children.only(n):null},t}(c.a.Component);p.propTypes={computedMatch:l.a.object,path:l.a.string,exact:l.a.bool,strict:l.a.bool,sensitive:l.a.bool,component:l.a.func,render:l.a.func,children:l.a.oneOfType([l.a.func,l.a.node]),location:l.a.object},p.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},p.childContextTypes={router:l.a.object.isRequired},t.a=p},function(e,t,n){"use strict";var r=n(666),a="object"==typeof self&&self&&self.Object===Object&&self,o=(r.a||a||Function("return this")()).Symbol,i=Object.prototype,s=i.hasOwnProperty,c=i.toString,A=o?o.toStringTag:void 0;var l=function(e){var t=s.call(e,A),n=e[A];try{e[A]=void 0;var r=!0}catch(e){}var a=c.call(e);return r&&(t?e[A]=n:delete e[A]),a},d=Object.prototype.toString;var u=function(e){return d.call(e)},f="[object Null]",h="[object Undefined]",p=o?o.toStringTag:void 0;var g=function(e){return null==e?void 0===e?h:f:p&&p in Object(e)?l(e):u(e)};var m=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var b=function(e){return null!=e&&"object"==typeof e},E="[object Object]",y=Function.prototype,v=Object.prototype,B=y.toString,w=v.hasOwnProperty,I=B.call(Object);t.a=function(e){if(!b(e)||g(e)!=E)return!1;var t=m(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&B.call(n)==I}},function(e,t,n){"use strict";(function(e){for( /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.14.4 @@ -61,7 +61,7 @@ object-assign * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -var n="undefined"!=typeof window&&"undefined"!=typeof document,r=["Edge","Trident","Firefox"],a=0,i=0;i=0){a=1;break}var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},a))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function c(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function A(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=c(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:l(A(e))}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?d:u||d}function h(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===c(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(a,0);var o=i.commonAncestorContainer;if(e!==o&&t!==o||r.contains(a))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||h(e.firstElementChild)===e)}(o)?o:h(o);var s=p(e);return s.host?g(s.host,t):g(e,p(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function E(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function y(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:E("Height",t,n,r),width:E("Width",t,n,r)}}var v=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},B=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=f(10),a="HTML"===t.nodeName,i=C(e),o=C(t),s=l(e),A=c(t),u=parseFloat(A.borderTopWidth,10),d=parseFloat(A.borderLeftWidth,10);n&&a&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var h=M({top:i.top-o.top-u,left:i.left-o.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&a){var p=parseFloat(A.marginTop,10),g=parseFloat(A.marginLeft,10);h.top-=u-p,h.bottom-=u-p,h.left-=d-g,h.right-=d-g,h.marginTop=p,h.marginLeft=g}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),a=m(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=a*i,e.right+=a*i,e}(h,t)),h}function Q(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===c(t,"transform");)t=t.parentElement;return t||document.documentElement}function Y(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=a?Q(e):g(e,t);if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=D(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:m(n),s=t?0:m(n,"left");return M({top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:i})}(o,a);else{var s=void 0;"scrollParent"===r?"BODY"===(s=l(A(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=D(s,o,a);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===c(t,"position")||e(A(t)))}(o))i=u;else{var d=y(e.ownerDocument),f=d.height,h=d.width;i.top+=u.top-u.marginTop,i.bottom=f+u.top,i.left+=u.left-u.marginLeft,i.right=h+u.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function S(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=Y(n,r,i,a),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},c=Object.keys(s).map(function(e){return I({key:e},s[e],{area:function(e){return e.width*e.height}(s[e])})}).sort(function(e,t){return t.area-e.area}),A=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=A.length>0?A[0].key:c[0].key,u=e.split("-")[1];return l+(u?"-"+u:"")}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return D(n,r?Q(t):g(t,n),r)}function F(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function x(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function T(e,t,n){n=n.split("-")[0];var r=F(e),a={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",s=i?"left":"top",c=i?"height":"width",A=i?"width":"height";return a[o]=t[o]+t[c]/2-r[c]/2,a[s]=n===s?t[s]-r[A]:t[x(s)],a}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=N(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=M(t.offsets.popper),t.offsets.reference=M(t.offsets.reference),t=n(t,e))}),t}function j(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function O(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=z.indexOf(e),r=z.slice(n+1).concat(z.slice(0,n));return t?r.reverse():r}var K={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function V(e,t,n,r){var a=[0,0],i=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=o.indexOf(N(o,function(e){return-1!==e.search(/,|\s/)}));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,A=-1!==s?[o.slice(0,s).concat([o[s].split(c)[0]]),[o[s].split(c)[1]].concat(o.slice(s+1))]:[o];return(A=A.map(function(e,r){var a=(1===r?!i:i)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}return M(s)[t]/100*i}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,a,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){G(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))})}),a}var X={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,i=a.reference,o=a.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",A=s?"width":"height",l={start:w({},c,i[c]),end:w({},c,i[c]+i[A]-o[A])};e.offsets.popper=I({},o,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,a=e.offsets,i=a.popper,o=a.reference,s=r.split("-")[0],c=void 0;return c=G(+n)?[+n,0]:V(n,i,o,s),"left"===s?(i.top+=c[0],i.left-=c[1]):"right"===s?(i.top+=c[0],i.left+=c[1]):"top"===s?(i.left+=c[0],i.top-=c[1]):"bottom"===s&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=O("transform"),a=e.instance.popper.style,i=a.top,o=a.left,s=a[r];a.top="",a.left="",a[r]="";var c=Y(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=i,a.left=o,a[r]=s,t.boundaries=c;var A=t.priority,l=e.offsets.popper,u={primary:function(e){var n=l[e];return l[e]c[e]&&!t.escapeWithReference&&(r=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),w({},n,r)}};return A.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=I({},l,u[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(a),s=o?"right":"bottom",c=o?"left":"top",A=o?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[c]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!J(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],i=e.offsets,o=i.popper,s=i.reference,A=-1!==["left","right"].indexOf(a),l=A?"height":"width",u=A?"Top":"Left",d=u.toLowerCase(),f=A?"left":"top",h=A?"bottom":"right",p=F(r)[l];s[h]-po[h]&&(e.offsets.popper[d]+=s[d]+p-o[h]),e.offsets.popper=M(e.offsets.popper);var g=s[d]+s[l]/2-p/2,m=c(e.instance.popper),b=parseFloat(m["margin"+u],10),E=parseFloat(m["border"+u+"Width"],10),y=g-e.offsets.popper[d]-b-E;return y=Math.max(Math.min(o[l]-p,y),0),e.arrowElement=r,e.offsets.arrow=(w(n={},d,Math.round(y)),w(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(j(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Y(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=x(r),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case K.FLIP:o=[r,a];break;case K.CLOCKWISE:o=W(r);break;case K.COUNTERCLOCKWISE:o=W(r,!0);break;default:o=t.behavior}return o.forEach(function(s,c){if(r!==s||o.length===c+1)return e;r=e.placement.split("-")[0],a=x(r);var A=e.offsets.popper,l=e.offsets.reference,u=Math.floor,d="left"===r&&u(A.right)>u(l.left)||"right"===r&&u(A.left)u(l.top)||"bottom"===r&&u(A.top)u(n.right),p=u(A.top)u(n.bottom),m="left"===r&&f||"right"===r&&h||"top"===r&&p||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),E=!!t.flipVariations&&(b&&"start"===i&&f||b&&"end"===i&&h||!b&&"start"===i&&p||!b&&"end"===i&&g);(d||m||E)&&(e.flipped=!0,(d||m)&&(r=o[c+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=I({},e.offsets.popper,T(e.instance.popper,e.offsets.reference,e.placement)),e=R(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,a=r.popper,i=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return a[o?"left":"top"]=i[n]-(s?a[o?"width":"height"]:0),e.placement=x(t),e.offsets.popper=M(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};v(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=I({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(I({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){r.options.modifiers[t]=I({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return I({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return B(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=S(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=T(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=R(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,j(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[O("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return P.call(this)}}]),e}();q.Utils=("undefined"!=typeof window?window:e).PopperUtils,q.placements=H,q.Defaults=X,t.a=q}).call(this,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,n){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(t&&"string"!=typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,n),function(r,a,i){for(var o=arguments.length,s=Array(3=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,i=8;i0&&void 0!==arguments[0]?arguments[0]:q,t=arguments[1],n=t.payload;switch(t.type){case"@@redux-pouchdb/INIT":return a({},e,{stateLoaded:!0});case B:return a({},e,{isDragging:n.isDragging});case A:return a({},e,{newMediaPrompted:!0,mediaPlaying:!1});case l:return a({},e,{newMediaPrompted:!1});case f:return a({},e,{mediaPromptedToDelete:n,mediaPlaying:!1});case h:return a({},e,{mediaPromptedToDelete:void 0});case T:return a({},e,c({activeMediaId:n,mediaPlaying:!1,mediaCurrentTime:q.mediaCurrentTime,mediaDuration:q.mediaDuration,seekedTime:q.seekedTime,chunkSpaceRatio:q.chunkSpaceRatio,chunkSpaceTimeScroll:q.chunkSpaceTimeScroll,scrollTargetInSeconds:q.scrollTargetInSeconds,scrollLocked:q.scrollLocked,importPrompted:q.importPrompted},"mediaPlaying",!1));case R:return a({},e,{mediaPlaying:n});case j:return a({},e,{mediaCurrentTime:n,seekedTime:void 0});case s.SET_MEDIA_DURATION:return a({},e,{mediaDuration:n.duration});case O:return a({},e,{seekedTime:n});case V:return a({},e,{newTagCategoryPrompted:n});case _:return a({},e,{chunkSpaceRatio:n});case U:return a({},e,{chunkSpaceTimeScroll:n});case P:return a({},e,{scrollTargetInSeconds:n});case G:return a({},e,{selectedChunkId:n});case N:return a({},e,{activeFieldId:n});case J:return a({},e,{mediaChoiceVisible:n,mediaPlaying:!1});case L:return a({},e,{scrollLocked:n});case H:return a({},e,{editionMode:n});case z:return a({},e,{activeTagCategoryId:n});case W:return a({},e,{isChunkEditorExpanded:!e.isChunkEditorExpanded});case p:return a({},e,{importPrompted:!0,mediaPlaying:!1});case g:return a({},e,{importPrompted:!1});case K:return a({},e,{leftColumnWidth:n});case m:return a({},e,{editorModalOpen:!0});case b:return a({},e,{editorModalOpen:!1});case E:return a({},e,{editedTagId:n,mediaPlaying:!1});case y:return a({},e,{editedTagId:void 0});case v:return a({},e,{promptedToDeleteFieldId:t.payload});case w:return a({},e,{optionsDropdownOpen:t.payload,tempNewFieldTitle:void 0});case I:return a({},e,{tagsDropdownOpen:t.payload,tempNewFieldTitle:void 0,tagSearchTerm:""});case M:return a({},e,{shortcutsHelpVisibility:t.payload,tempNewFieldTitle:void 0,mediaPlaying:!1});case C:return a({},e,{tempNewFieldTitle:t.payload});case D:return a({},e,{editedFieldId:t.payload});case Q:return a({},e,{editedFieldTempName:t.payload});case Y:return a({},e,{tagSearchTerm:t.payload});case S:return a({},e,{newTagPrompted:t.payload,newTagTempData:{},mediaPlaying:!1});case k:return a({},e,{newTagTempData:t.payload});case F:return a({},e,{allowExamplePrompted:t.payload,mediaPlaying:!1});case x:return a({},e,{exportMediaPrompted:t.payload,mediaPlaying:!1});case s.GET_CHUNK_VIEW_DATA:return a({},e,{stateLoaded:!1});case s.GET_CHUNK_VIEW_DATA+"_SUCCESS":case s.GET_CHUNK_VIEW_DATA+"_FAIL":return a({},e,{stateLoaded:!0});default:return e}},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,t=arguments[1],n=t.payload;switch(t.type){case u:return a({},e,{editedMedia:n.media});case d:return a({},e,{editedMedia:void 0});case g:return a({},e,{importedChunkCandidates:[]});case X:return a({},e,{importedChunkCandidates:n});default:return e}}});var $=function(e){return e.ui.stateLoaded};t.selector=(0,o.createStructuredSelector)((c(r={newMediaPrompted:function(e){return e.ui.newMediaPrompted},editedMedia:function(e){return e.data.editedMedia},mediaPromptedToDelete:function(e){return e.ui.mediaPromptedToDelete},newTagCategoryPrompted:function(e){return e.ui.newTagCategoryPrompted},activeMediaId:function(e){return e.ui.activeMediaId},mediaPlaying:function(e){return e.ui.mediaPlaying},mediaCurrentTime:function(e){return e.ui.mediaCurrentTime},mediaDuration:function(e){return e.ui.mediaDuration},seekedTime:function(e){return e.ui.seekedTime},chunkSpaceRatio:function(e){return e.ui.chunkSpaceRatio},chunkSpaceTimeScroll:function(e){return e.ui.chunkSpaceTimeScroll},scrollTargetInSeconds:function(e){return e.ui.scrollTargetInSeconds},selectedChunkId:function(e){return e.ui.selectedChunkId},activeFieldId:function(e){return e.ui.activeFieldId},mediaChoiceVisible:function(e){return e.ui.mediaChoiceVisible},scrollLocked:function(e){return e.ui.scrollLocked},editionMode:function(e){return e.ui.editionMode},activeTagCategoryId:function(e){return e.ui.activeTagCategoryId},isChunkEditorExpanded:function(e){return e.ui.isChunkEditorExpanded},importPrompted:function(e){return e.ui.importPrompted},importedChunkCandidates:function(e){return e.data.importedChunkCandidates},leftColumnWidth:function(e){return e.ui.leftColumnWidth},editorModalOpen:function(e){return e.ui.editorModalOpen},editedTagId:function(e){return e.ui.editedTagId},stateLoaded:$,promptedToDeleteFieldId:function(e){return e.ui.promptedToDeleteFieldId},isDragging:function(e){return e.ui.isDragging},optionsDropdownOpen:function(e){return e.ui.optionsDropdownOpen},tagsDropdownOpen:function(e){return e.ui.tagsDropdownOpen},shortcutsHelpVisibility:function(e){return e.ui.shortcutsHelpVisibility},tempNewFieldTitle:function(e){return e.ui.tempNewFieldTitle},editedFieldId:function(e){return e.ui.editedFieldId},editedFieldTempName:function(e){return e.ui.editedFieldTempName},tagSearchTerm:function(e){return e.ui.tagSearchTerm},newTagPrompted:function(e){return e.ui.newTagPrompted},newTagTempData:function(e){return e.ui.newTagTempData},allowExamplePrompted:function(e){return e.ui.allowExamplePrompted},exportMediaPrompted:function(e){return e.ui.exportMediaPrompted}},"stateLoaded",$),c(r,"chunkViewData",function(e){return e.data.chunkViewData}),r))},function(e,t,n){e.exports=n(873)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(918));t.default=r.default},function(e,t,n){var r=n(44).Symbol;e.exports=r},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(62),a=n(45),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||a(e)&&r(e)==i}},function(e,t,n){var r=n(257),a=n(535);e.exports=function(e,t,n,i){var o=!n;n||(n={});for(var s=-1,c=t.length;++s=0){a=1;break}var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},a))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function c(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function A(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=c(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:l(A(e))}var d=n&&!(!window.MSInputMethodContext||!document.documentMode),u=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?d:10===e?u:d||u}function h(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===c(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(a,0);var i=o.commonAncestorContainer;if(e!==i&&t!==i||r.contains(a))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||h(e.firstElementChild)===e)}(i)?i:h(i);var s=p(e);return s.host?g(s.host,t):g(e,p(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function E(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function y(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:E("Height",t,n,r),width:E("Width",t,n,r)}}var v=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},B=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=f(10),a="HTML"===t.nodeName,o=C(e),i=C(t),s=l(e),A=c(t),d=parseFloat(A.borderTopWidth,10),u=parseFloat(A.borderLeftWidth,10);n&&a&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var h=M({top:o.top-i.top-d,left:o.left-i.left-u,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&a){var p=parseFloat(A.marginTop,10),g=parseFloat(A.marginLeft,10);h.top-=d-p,h.bottom-=d-p,h.left-=u-g,h.right-=u-g,h.marginTop=p,h.marginLeft=g}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),a=m(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=a*o,e.right+=a*o,e}(h,t)),h}function Q(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===c(t,"transform");)t=t.parentElement;return t||document.documentElement}function Y(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},i=a?Q(e):g(e,t);if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=D(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:m(n),s=t?0:m(n,"left");return M({top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:o})}(i,a);else{var s=void 0;"scrollParent"===r?"BODY"===(s=l(A(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var d=D(s,i,a);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===c(t,"position")||e(A(t)))}(i))o=d;else{var u=y(e.ownerDocument),f=u.height,h=u.width;o.top+=d.top-d.marginTop,o.bottom=f+d.top,o.left+=d.left-d.marginLeft,o.right=h+d.left}}var p="number"==typeof(n=n||0);return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function S(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=Y(n,r,o,a),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},c=Object.keys(s).map(function(e){return I({key:e},s[e],{area:function(e){return e.width*e.height}(s[e])})}).sort(function(e,t){return t.area-e.area}),A=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=A.length>0?A[0].key:c[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return D(n,r?Q(t):g(t,n),r)}function F(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function x(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function T(e,t,n){n=n.split("-")[0];var r=F(e),a={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),i=o?"top":"left",s=o?"left":"top",c=o?"height":"width",A=o?"width":"height";return a[i]=t[i]+t[c]/2-r[c]/2,a[s]=n===s?t[s]-r[A]:t[x(s)],a}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=N(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=M(t.offsets.popper),t.offsets.reference=M(t.offsets.reference),t=n(t,e))}),t}function j(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function O(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=z.indexOf(e),r=z.slice(n+1).concat(z.slice(0,n));return t?r.reverse():r}var K={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function V(e,t,n,r){var a=[0,0],o=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(N(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,A=-1!==s?[i.slice(0,s).concat([i[s].split(c)[0]]),[i[s].split(c)[1]].concat(i.slice(s+1))]:[i];return(A=A.map(function(e,r){var a=(1===r?!o:o)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+a[1],i=a[2];if(!o)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return M(s)[t]/100*o}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,a,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){G(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))})}),a}var X={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,o=a.reference,i=a.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",A=s?"width":"height",l={start:w({},c,o[c]),end:w({},c,o[c]+o[A]-i[A])};e.offsets.popper=I({},i,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,a=e.offsets,o=a.popper,i=a.reference,s=r.split("-")[0],c=void 0;return c=G(+n)?[+n,0]:V(n,o,i,s),"left"===s?(o.top+=c[0],o.left-=c[1]):"right"===s?(o.top+=c[0],o.left+=c[1]):"top"===s?(o.left+=c[0],o.top-=c[1]):"bottom"===s&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=O("transform"),a=e.instance.popper.style,o=a.top,i=a.left,s=a[r];a.top="",a.left="",a[r]="";var c=Y(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=o,a.left=i,a[r]=s,t.boundaries=c;var A=t.priority,l=e.offsets.popper,d={primary:function(e){var n=l[e];return l[e]c[e]&&!t.escapeWithReference&&(r=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),w({},n,r)}};return A.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=I({},l,d[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],o=Math.floor,i=-1!==["top","bottom"].indexOf(a),s=i?"right":"bottom",c=i?"left":"top",A=i?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!L(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],o=e.offsets,i=o.popper,s=o.reference,A=-1!==["left","right"].indexOf(a),l=A?"height":"width",d=A?"Top":"Left",u=d.toLowerCase(),f=A?"left":"top",h=A?"bottom":"right",p=F(r)[l];s[h]-pi[h]&&(e.offsets.popper[u]+=s[u]+p-i[h]),e.offsets.popper=M(e.offsets.popper);var g=s[u]+s[l]/2-p/2,m=c(e.instance.popper),b=parseFloat(m["margin"+d],10),E=parseFloat(m["border"+d+"Width"],10),y=g-e.offsets.popper[u]-b-E;return y=Math.max(Math.min(i[l]-p,y),0),e.arrowElement=r,e.offsets.arrow=(w(n={},u,Math.round(y)),w(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(j(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Y(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=x(r),o=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case K.FLIP:i=[r,a];break;case K.CLOCKWISE:i=W(r);break;case K.COUNTERCLOCKWISE:i=W(r,!0);break;default:i=t.behavior}return i.forEach(function(s,c){if(r!==s||i.length===c+1)return e;r=e.placement.split("-")[0],a=x(r);var A=e.offsets.popper,l=e.offsets.reference,d=Math.floor,u="left"===r&&d(A.right)>d(l.left)||"right"===r&&d(A.left)d(l.top)||"bottom"===r&&d(A.top)d(n.right),p=d(A.top)d(n.bottom),m="left"===r&&f||"right"===r&&h||"top"===r&&p||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),E=!!t.flipVariations&&(b&&"start"===o&&f||b&&"end"===o&&h||!b&&"start"===o&&p||!b&&"end"===o&&g);(u||m||E)&&(e.flipped=!0,(u||m)&&(r=i[c+1]),E&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=I({},e.offsets.popper,T(e.instance.popper,e.offsets.reference,e.placement)),e=R(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,a=r.popper,o=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return a[i?"left":"top"]=o[n]-(s?a[i?"width":"height"]:0),e.placement=x(t),e.offsets.popper=M(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!L(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};v(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=I({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(I({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){r.options.modifiers[t]=I({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return I({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return B(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=S(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=T(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=R(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,j(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[O("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=_(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return P.call(this)}}]),e}();q.Utils=("undefined"!=typeof window?window:e).PopperUtils,q.placements=H,q.Defaults=X,t.a=q}).call(this,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,n){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(t&&"string"!=typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,n),function(r,a,o){for(var i=arguments.length,s=Array(3=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,o=8;o0&&void 0!==arguments[0]?arguments[0]:q,t=arguments[1],n=t.payload;switch(t.type){case"@@redux-pouchdb/INIT":return a({},e,{stateLoaded:!0});case B:return a({},e,{isDragging:n.isDragging});case A:return a({},e,{newMediaPrompted:!0,mediaPlaying:!1});case l:return a({},e,{newMediaPrompted:!1});case f:return a({},e,{mediaPromptedToDelete:n,mediaPlaying:!1});case h:return a({},e,{mediaPromptedToDelete:void 0});case T:return a({},e,c({activeMediaId:n,mediaPlaying:!1,mediaCurrentTime:q.mediaCurrentTime,mediaDuration:q.mediaDuration,seekedTime:q.seekedTime,chunkSpaceRatio:q.chunkSpaceRatio,chunkSpaceTimeScroll:q.chunkSpaceTimeScroll,scrollTargetInSeconds:q.scrollTargetInSeconds,scrollLocked:q.scrollLocked,importPrompted:q.importPrompted},"mediaPlaying",!1));case R:return a({},e,{mediaPlaying:n});case j:return a({},e,{mediaCurrentTime:n,seekedTime:void 0});case s.SET_MEDIA_DURATION:return a({},e,{mediaDuration:n.duration});case O:return a({},e,{seekedTime:n});case V:return a({},e,{newTagCategoryPrompted:n});case U:return a({},e,{chunkSpaceRatio:n});case _:return a({},e,{chunkSpaceTimeScroll:n});case P:return a({},e,{scrollTargetInSeconds:n});case G:return a({},e,{selectedChunkId:n});case N:return a({},e,{activeFieldId:n});case L:return a({},e,{mediaChoiceVisible:n,mediaPlaying:!1});case J:return a({},e,{scrollLocked:n});case H:return a({},e,{editionMode:n});case z:return a({},e,{activeTagCategoryId:n});case W:return a({},e,{isChunkEditorExpanded:!e.isChunkEditorExpanded});case p:return a({},e,{importPrompted:!0,mediaPlaying:!1});case g:return a({},e,{importPrompted:!1});case K:return a({},e,{leftColumnWidth:n});case m:return a({},e,{editorModalOpen:!0});case b:return a({},e,{editorModalOpen:!1});case E:return a({},e,{editedTagId:n,mediaPlaying:!1});case y:return a({},e,{editedTagId:void 0});case v:return a({},e,{promptedToDeleteFieldId:t.payload});case w:return a({},e,{optionsDropdownOpen:t.payload,tempNewFieldTitle:void 0});case I:return a({},e,{tagsDropdownOpen:t.payload,tempNewFieldTitle:void 0,tagSearchTerm:""});case M:return a({},e,{shortcutsHelpVisibility:t.payload,tempNewFieldTitle:void 0,mediaPlaying:!1});case C:return a({},e,{tempNewFieldTitle:t.payload});case D:return a({},e,{editedFieldId:t.payload});case Q:return a({},e,{editedFieldTempName:t.payload});case Y:return a({},e,{tagSearchTerm:t.payload});case S:return a({},e,{newTagPrompted:t.payload,newTagTempData:{},mediaPlaying:!1});case k:return a({},e,{newTagTempData:t.payload});case F:return a({},e,{allowExamplePrompted:t.payload,mediaPlaying:!1});case x:return a({},e,{exportMediaPrompted:t.payload,mediaPlaying:!1});case s.GET_CHUNK_VIEW_DATA:return a({},e,{stateLoaded:!1});case s.GET_CHUNK_VIEW_DATA+"_SUCCESS":case s.GET_CHUNK_VIEW_DATA+"_FAIL":return a({},e,{stateLoaded:!0});default:return e}},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,t=arguments[1],n=t.payload;switch(t.type){case d:return a({},e,{editedMedia:n.media});case u:return a({},e,{editedMedia:void 0});case g:return a({},e,{importedChunkCandidates:[]});case X:return a({},e,{importedChunkCandidates:n});default:return e}}});var $=function(e){return e.ui.stateLoaded};t.selector=(0,i.createStructuredSelector)((c(r={newMediaPrompted:function(e){return e.ui.newMediaPrompted},editedMedia:function(e){return e.data.editedMedia},mediaPromptedToDelete:function(e){return e.ui.mediaPromptedToDelete},newTagCategoryPrompted:function(e){return e.ui.newTagCategoryPrompted},activeMediaId:function(e){return e.ui.activeMediaId},mediaPlaying:function(e){return e.ui.mediaPlaying},mediaCurrentTime:function(e){return e.ui.mediaCurrentTime},mediaDuration:function(e){return e.ui.mediaDuration},seekedTime:function(e){return e.ui.seekedTime},chunkSpaceRatio:function(e){return e.ui.chunkSpaceRatio},chunkSpaceTimeScroll:function(e){return e.ui.chunkSpaceTimeScroll},scrollTargetInSeconds:function(e){return e.ui.scrollTargetInSeconds},selectedChunkId:function(e){return e.ui.selectedChunkId},activeFieldId:function(e){return e.ui.activeFieldId},mediaChoiceVisible:function(e){return e.ui.mediaChoiceVisible},scrollLocked:function(e){return e.ui.scrollLocked},editionMode:function(e){return e.ui.editionMode},activeTagCategoryId:function(e){return e.ui.activeTagCategoryId},isChunkEditorExpanded:function(e){return e.ui.isChunkEditorExpanded},importPrompted:function(e){return e.ui.importPrompted},importedChunkCandidates:function(e){return e.data.importedChunkCandidates},leftColumnWidth:function(e){return e.ui.leftColumnWidth},editorModalOpen:function(e){return e.ui.editorModalOpen},editedTagId:function(e){return e.ui.editedTagId},stateLoaded:$,promptedToDeleteFieldId:function(e){return e.ui.promptedToDeleteFieldId},isDragging:function(e){return e.ui.isDragging},optionsDropdownOpen:function(e){return e.ui.optionsDropdownOpen},tagsDropdownOpen:function(e){return e.ui.tagsDropdownOpen},shortcutsHelpVisibility:function(e){return e.ui.shortcutsHelpVisibility},tempNewFieldTitle:function(e){return e.ui.tempNewFieldTitle},editedFieldId:function(e){return e.ui.editedFieldId},editedFieldTempName:function(e){return e.ui.editedFieldTempName},tagSearchTerm:function(e){return e.ui.tagSearchTerm},newTagPrompted:function(e){return e.ui.newTagPrompted},newTagTempData:function(e){return e.ui.newTagTempData},allowExamplePrompted:function(e){return e.ui.allowExamplePrompted},exportMediaPrompted:function(e){return e.ui.exportMediaPrompted}},"stateLoaded",$),c(r,"chunkViewData",function(e){return e.data.chunkViewData}),r))},function(e,t,n){e.exports=n(869)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(914));t.default=r.default},function(e,t,n){var r=n(44).Symbol;e.exports=r},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(62),a=n(45),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||a(e)&&r(e)==o}},function(e,t,n){var r=n(256),a=n(533);e.exports=function(e,t,n,o){var i=!n;n||(n={});for(var s=-1,c=t.length;++s=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var A,l,u,d=-1,f=n.length,h=r[a++],p=i(),g=s();++dr.length)return n;var o,s=a[i-1];return null!=t&&i>=r.length?o=n.entries():(o=[],n.each(function(t,n){o.push({key:n,values:e(t,i)})})),null!=s?o.sort(function(e,t){return s(e.key,t.key)}):o}(o(e,0,A,l),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return a[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function s(){return{}}function c(e,t,n){e[t]=n}function A(){return i()}function l(e,t,n){e.set(t,n)}function u(){}var d=i.prototype;function f(e,t){var n=new u;if(e instanceof u)e.each(function(e){n.add(e)});else if(e){var r=-1,a=e.length;if(null==t)for(;++r0&&void 0!==arguments[0]?arguments[0]:L,t=arguments[1];switch(t.type){case"@@redux-pouchdb/INIT":return r({},e,{stateLoaded:!0});case c:return L;case o.GET_CORPUS:return r({},e,{stateLoaded:!1});case o.GET_CORPUS+"_SUCCESS":case o.GET_CORPUS+"_FAIL":return r({},e,{stateLoaded:!0});case A:return r({},e,{creationModalOpen:!0});case l:return r({},e,{creationModalOpen:!1});case v:return r({},e,{activeSubview:t.payload});case F:return r({},e,{corpusMetadataModalOpen:!0});case x:return r({},e,{corpusMetadataModalOpen:!1,newCompositionModalOpen:!1});case T:return r({},e,{newCompositionModalOpen:!0});case N:return r({},e,{newCompositionModalOpen:!1,corpusMetadataModalOpen:!1});case u:return r({},e,{newMediaPrompted:!0});case h:return r({},e,{newMediaPrompted:!1});case d:return r({},e,{newTagPrompted:t.payload});case f:return r({},e,{newTagPrompted:!1});case O:return r({},e,{newTagCategoryPrompted:!0});case _:return r({},e,{newTagCategoryPrompted:!1});case U:return r({},e,{editedTagCategoryId:t.payload});case P:return r({},e,{editedTagId:t.payload});case R:return r({},e,{previewModalOpen:!0});case j:return r({},e,{previewModalOpen:!1});case p:return r({},e,{promptedToDeleteCorpusId:t.payload});case g:return r({},e,{promptedToDeleteMediaId:t.payload});case m:return r({},e,{promptedToDeleteCompositionId:t.payload});case k:return r({},e,{promptedToDeleteTagId:t.payload});case b:return r({},e,{mediaSearchString:t.payload});case E:return r({},e,{compositionsSearchString:t.payload});case y:return r({},e,{tagsSearchString:t.payload});case B:return r({},e,{asideMediaId:t.payload,asideCompositionId:void 0,asideTagId:void 0});case w:return r({},e,{asideCompositionId:t.payload,asideTagId:void 0,asideMediaId:void 0});case I:return r({},e,{asideCompositionId:void 0,asideMediaId:void 0,asideTagId:t.payload});case Y:return r({},e,{visibleTagCategoriesIds:t.payload});case S:return r({},e,{promptedToDeleteTagCategoryId:t.payload});case M:return r({},e,{asideTagMode:t.payload});case C:return r({},e,{importModalVisible:t.payload});case o.GET_CORPORA:return r({},e,{loadingCorpora:!0});case o.GET_CORPORA+"_SUCCESS":case o.GET_CORPORA+"_FAIL":return r({},e,{loadingCorpora:!1});default:return e}},corpora:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J,t=arguments[1],n=void 0;switch(t.type){case o.DELETE_CORPUS+"_SUCCESS":case o.GET_CORPORA+"_SUCCESS":var a=t.result.data.corpora;return delete a._id,delete a._rev,r({},a);case G:case o.FORGET_DATA:return{};case o.CREATE_CORPUS+"_SUCCESS":case o.UPDATE_CORPUS+"_SUCCESS":return n=t.result.data.corpus,r({},e,s({},n.metadata.id,n));default:return e}},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H,t=arguments[1];switch(t.type){case C:return!1===t.payload?r({},e,{importCorpusCandidate:void 0,importCollisionsList:[]}):e;case D:return r({},e,{importCorpusCandidate:t.payload});case Q:return r({},e,{importCollisionsList:t.payload});default:return e}}});t.selector=(0,i.createStructuredSelector)({creationModalOpen:function(e){return e.ui.creationModalOpen},corpusMetadataModalOpen:function(e){return e.ui.corpusMetadataModalOpen},newCompositionModalOpen:function(e){return e.ui.newCompositionModalOpen},newMediaPrompted:function(e){return e.ui.newMediaPrompted},newTagPrompted:function(e){return e.ui.newTagPrompted},previewModalOpen:function(e){return e.ui.previewModalOpen},asideTagMode:function(e){return e.ui.asideTagMode},promptedToDeleteCorpusId:function(e){return e.ui.promptedToDeleteCorpusId},promptedToDeleteMediaId:function(e){return e.ui.promptedToDeleteMediaId},promptedToDeleteCompositionId:function(e){return e.ui.promptedToDeleteCompositionId},stateLoaded:function(e){return e.ui.stateLoaded},compositionsSearchString:function(e){return e.ui.compositionsSearchString},mediaSearchString:function(e){return e.ui.mediaSearchString},activeSubview:function(e){return e.ui.activeSubview},asideMediaId:function(e){return e.ui.asideMediaId},asideCompositionId:function(e){return e.ui.asideCompositionId},asideTagId:function(e){return e.ui.asideTagId},tagsSearchString:function(e){return e.ui.tagsSearchString},visibleTagCategoriesIds:function(e){return e.ui.visibleTagCategoriesIds},loadingCorpora:function(e){return e.ui.loadingCorpora},editedTagCategoryId:function(e){return e.ui.editedTagCategoryId},newTagCategoryPrompted:function(e){return e.ui.newTagCategoryPrompted},promptedToDeleteTagCategoryId:function(e){return e.ui.promptedToDeleteTagCategoryId},promptedToDeleteTagId:function(e){return e.ui.promptedToDeleteTagId},editedTagId:function(e){return e.ui.editedTagId},importModalVisible:function(e){return e.ui.importModalVisible},importCorpusCandidate:function(e){return e.data.importCorpusCandidate},importCollisionsList:function(e){return e.data.importCollisionsList},corporaList:function(e){return e.corpora}})},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,a){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,a)});default:for(i=new Array(s-1),o=0;o>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function A(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return a>0&&(e.lastNeed=a-1),a;if(--r=0)return a>0&&(e.lastNeed=a-2),a;if(--r=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){var r=n(11).Buffer;function a(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),a=0;a>>24]^l[h>>>16&255]^u[p>>>8&255]^d[255&g]^t[m++],o=A[h>>>24]^l[p>>>16&255]^u[g>>>8&255]^d[255&f]^t[m++],s=A[p>>>24]^l[g>>>16&255]^u[f>>>8&255]^d[255&h]^t[m++],c=A[g>>>24]^l[f>>>16&255]^u[h>>>8&255]^d[255&p]^t[m++],f=i,h=o,p=s,g=c;return i=(r[f>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&g])^t[m++],o=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[g>>>8&255]<<8|r[255&f])^t[m++],s=(r[p>>>24]<<24|r[g>>>16&255]<<16|r[f>>>8&255]<<8|r[255&h])^t[m++],c=(r[g>>>24]<<24|r[f>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[m++],[i>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],a=[[],[],[],[]],i=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var A=s^s<<1^s<<2^s<<3^s<<4;A=A>>>8^255&A^99,n[o]=A,r[A]=o;var l=e[o],u=e[l],d=e[u],f=257*e[A]^16843008*A;a[0][o]=f<<24|f>>>8,a[1][o]=f<<16|f>>>16,a[2][o]=f<<8|f>>>24,a[3][o]=f,f=16843009*d^65537*u^257*l^16843008*o,i[0][A]=f<<24|f>>>8,i[1][A]=f<<16|f>>>16,i[2][A]=f<<8|f>>>24,i[3][A]=f,0===o?o=s=1:(o=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:a,INV_SUB_MIX:i}}();function A(e){this._key=a(e),this._reset()}A.blockSize=16,A.keySize=32,A.prototype.blockSize=A.blockSize,A.prototype.keySize=A.keySize,A.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),a=[],i=0;i>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[i/t|0]<<24):t>6&&i%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),a[i]=a[i-t]^o}for(var A=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=a,this._invKeySchedule=A},A.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},A.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},A.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},A.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=A},function(e,t,n){var r=n(11).Buffer,a=n(215);e.exports=function(e,t,n,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),c=r.alloc(i||0),A=r.alloc(0);o>0||i>0;){var l=new a;l.update(A),l.update(e),t&&l.update(t),A=l.digest();var u=0;if(o>0){var d=s.length-o;u=Math.min(o,A.length),A.copy(s,d,0,u),o-=u}if(u0){var f=c.length-i,h=Math.min(i,A.length-u);A.copy(c,f,u,u+h),i-=h}}return A.fill(0),{key:s,iv:c}}},function(e,t,n){"use strict";var r=t;r.base=n(777),r.short=n(778),r.mont=n(779),r.edwards=n(780)},function(e,t,n){(function(t){var r=n(796),a=n(808),i=n(809),o=n(221),s=n(351);function c(e){var n;"object"!=typeof e||t.isBuffer(e)||(n=e.passphrase,e=e.key),"string"==typeof e&&(e=new t(e));var c,A,l=i(e,n),u=l.tag,d=l.data;switch(u){case"CERTIFICATE":A=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(A||(A=r.PublicKey.decode(d,"der")),c=A.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(A.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return A.subjectPrivateKey=A.subjectPublicKey,{type:"ec",data:A};case"1.2.840.10040.4.1":return A.algorithm.params.pub_key=r.DSAparam.decode(A.subjectPublicKey.data,"der"),{type:"dsa",data:A.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+u);case"ENCRYPTED PRIVATE KEY":d=function(e,n){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=a[e.algorithm.decrypt.cipher.algo.join(".")],A=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,u=parseInt(c.split("-")[1],10)/8,d=s.pbkdf2Sync(n,r,i,u),f=o.createDecipheriv(c,d,A),h=[];return h.push(f.update(l)),h.push(f.final()),t.concat(h)}(d=r.EncryptedPrivateKey.decode(d,"der"),n);case"PRIVATE KEY":switch(c=(A=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(A.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:A.algorithm.curve,privateKey:r.ECPrivateKey.decode(A.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return A.algorithm.params.priv_key=r.DSAparam.decode(A.subjectPrivateKey,"der"),{type:"dsa",params:A.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+u);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+u)}}e.exports=c,c.signature=r.signature}).call(this,n(16).Buffer)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(e,t,n){(function(t){for(var r=n(846),a="undefined"==typeof window?t:window,i=["moz","webkit"],o="AnimationFrame",s=a["request"+o],c=a["cancel"+o]||a["cancelRequest"+o],A=0;!s&&A1&&void 0!==arguments[1]?arguments[1]:"txt",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dicto",a=new Blob([e],{type:"text/plain;charset=utf-8"}),i=n+"."+t;return r.default.saveAs(a,i),Promise.resolve()};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1202))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_CONFIG_PROPS=t.defaultProps=t.propTypes=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var a=r.default.string,i=r.default.bool,o=r.default.number,s=r.default.array,c=r.default.oneOfType,A=r.default.shape,l=r.default.object,u=r.default.func;t.propTypes={url:c([a,s,l]),playing:i,loop:i,controls:i,volume:o,muted:i,playbackRate:o,width:c([a,o]),height:c([a,o]),style:l,progressInterval:o,playsinline:i,wrapper:c([a,u]),config:A({soundcloud:A({options:l}),youtube:A({playerVars:l,preload:i}),facebook:A({appId:a}),dailymotion:A({params:l,preload:i}),vimeo:A({playerOptions:l,preload:i}),file:A({attributes:l,tracks:s,forceVideo:i,forceAudio:i,forceHLS:i,forceDASH:i,hlsOptions:l}),wistia:A({options:l}),mixcloud:A({options:l}),twitch:A({options:l})}),onReady:u,onStart:u,onPlay:u,onPause:u,onBuffer:u,onEnded:u,onError:u,onDuration:u,onSeek:u,onProgress:u},t.defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,wrapper:"div",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},preload:!1},facebook:{appId:"1309697205772819"},dailymotion:{params:{api:1,"endscreen-enable":!1},preload:!1},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},preload:!1},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,hlsOptions:{}},wistia:{options:{}},mixcloud:{options:{hide_cover:1}},twitch:{options:{}}},onReady:function(){},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onSeek:function(){},onProgress:function(){}},t.DEPRECATED_CONFIG_PROPS=["soundcloudConfig","youtubeConfig","facebookConfig","dailymotionConfig","vimeoConfig","fileConfig","wistiaConfig"]},function(e,t,n){"use strict";e.exports=function(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r100&&u,h.dispatchEvent("click",t)}return e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}function w(e){var t,n,r,a=sigma.utils.getDelta(e);if(m("mouseEnabled")&&m("mouseWheelEnabled")&&0!==a)return n=a>0?1/m("zoomingRatio"):m("zoomingRatio"),t=g.cameraPosition(sigma.utils.getX(e)-sigma.utils.getCenter(e).x,sigma.utils.getY(e)-sigma.utils.getCenter(e).y,!0),r={duration:m("mouseZoomDuration")},sigma.utils.zoomTo(g,t.x,t.y,n,r),e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}sigma.classes.dispatcher.extend(this),sigma.utils.doubleClick(p,"click",function(e){var t,n,r;if(m("mouseEnabled"))return n=1/m("doubleClickZoomingRatio"),h.dispatchEvent("doubleclick",sigma.utils.mouseCoords(e,s,c)),m("doubleClickEnabled")&&(t=g.cameraPosition(sigma.utils.getX(e)-sigma.utils.getCenter(e).x,sigma.utils.getY(e)-sigma.utils.getCenter(e).y,!0),r={duration:m("doubleClickZoomDuration")},sigma.utils.zoomTo(g,t.x,t.y,n,r)),e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}),p.addEventListener("DOMMouseScroll",w,!1),p.addEventListener("mousewheel",w,!1),p.addEventListener("mousemove",b,!1),p.addEventListener("mousedown",y,!1),p.addEventListener("click",B,!1),p.addEventListener("mouseout",v,!1),document.addEventListener("mouseup",E,!1),this.kill=function(){sigma.utils.unbindDoubleClick(p,"click"),p.removeEventListener("DOMMouseScroll",w),p.removeEventListener("mousewheel",w),p.removeEventListener("mousemove",b),p.removeEventListener("mousedown",y),p.removeEventListener("click",B),p.removeEventListener("mouseout",v),document.removeEventListener("mouseup",E)}}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.captors"),sigma.captors.touch=function(e,t,n){var r,a,i,o,s,c,A,l,u,d,f,h,p,g,m,b,E=this,y=e,v=t,B=n,w=[];function I(e){var t=sigma.utils.getOffset(y);return{x:e.pageX-t.left,y:e.pageY-t.top}}function M(e){var t,n,g,m,b,E;if(B("touchEnabled"))switch((w=e.touches).length){case 1:v.isMoving=!0,p=1,r=v.x,a=v.y,s=v.x,c=v.y,b=I(w[0]),A=b.x,l=b.y;break;case 2:return v.isMoving=!0,p=2,b=I(w[0]),E=I(w[1]),t=b.x,g=b.y,n=E.x,m=E.y,s=v.x,c=v.y,i=v.angle,o=v.ratio,r=v.x,a=v.y,A=t,l=g,u=n,d=m,f=Math.atan2(d-l,u-A),h=Math.sqrt((d-l)*(d-l)+(u-A)*(u-A)),e.preventDefault(),!1}}function C(e){if(B("touchEnabled")){w=e.touches;var t=B("touchInertiaRatio");switch(b&&(g=!1,clearTimeout(b)),p){case 2:if(1===e.touches.length){M(e),e.preventDefault();break}case 1:v.isMoving=!1,E.dispatchEvent("stopDrag"),g&&(m=!1,sigma.misc.animation.camera(v,{x:v.x+t*(v.x-s),y:v.y+t*(v.y-c)},{easing:"quadraticOut",duration:B("touchInertiaDuration")})),g=!1,p=0}}}function D(e){if(!m&&B("touchEnabled")){var t,n,y,M,C,D,Q,Y,S,k,F,x,T,N,R,j,O;switch(w=e.touches,g=!0,b&&clearTimeout(b),b=setTimeout(function(){g=!1},B("dragTimeout")),p){case 1:t=(Y=I(w[0])).x,y=Y.y,k=v.cameraPosition(t-A,y-l,!0),N=r-k.x,R=a-k.y,N===v.x&&R===v.y||(s=v.x,c=v.y,v.goTo({x:N,y:R}),E.dispatchEvent("mousemove",sigma.utils.mouseCoords(e,Y.x,Y.y)),E.dispatchEvent("drag"));break;case 2:Y=I(w[0]),S=I(w[1]),t=Y.x,y=Y.y,n=S.x,M=S.y,F=v.cameraPosition((A+u)/2-sigma.utils.getCenter(e).x,(l+d)/2-sigma.utils.getCenter(e).y,!0),Q=v.cameraPosition((t+n)/2-sigma.utils.getCenter(e).x,(y+M)/2-sigma.utils.getCenter(e).y,!0),x=Math.atan2(M-y,n-t)-f,T=Math.sqrt((M-y)*(M-y)+(n-t)*(n-t))/h,t=F.x,y=F.y,j=o/T,y*=T,O=i-x,n=(t*=T)*(C=Math.cos(-x))+y*(D=Math.sin(-x)),y=M=y*C-t*D,N=(t=n)-Q.x+r,R=y-Q.y+a,j===v.ratio&&O===v.angle&&N===v.x&&R===v.y||(s=v.x,c=v.y,v.angle,v.ratio,v.goTo({x:N,y:R,angle:O,ratio:j}),E.dispatchEvent("drag"))}return e.preventDefault(),!1}}sigma.classes.dispatcher.extend(this),sigma.utils.doubleClick(y,"touchstart",function(e){var t,n,r;if(e.touches&&1===e.touches.length&&B("touchEnabled"))return m=!0,n=1/B("doubleClickZoomingRatio"),t=I(e.touches[0]),E.dispatchEvent("doubleclick",sigma.utils.mouseCoords(e,t.x,t.y)),B("doubleClickEnabled")&&(t=v.cameraPosition(t.x-sigma.utils.getCenter(e).x,t.y-sigma.utils.getCenter(e).y,!0),r={duration:B("doubleClickZoomDuration"),onComplete:function(){m=!1}},sigma.utils.zoomTo(v,t.x,t.y,n,r)),e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}),y.addEventListener("touchstart",M,!1),y.addEventListener("touchend",C,!1),y.addEventListener("touchcancel",C,!1),y.addEventListener("touchleave",C,!1),y.addEventListener("touchmove",D,!1),this.kill=function(){sigma.utils.unbindDoubleClick(y,"touchstart"),y.addEventListener("touchstart",M),y.addEventListener("touchend",C),y.addEventListener("touchcancel",C),y.addEventListener("touchleave",C),y.addEventListener("touchmove",D)}}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.classes"),sigma.classes.camera=function(e,t,n,r){sigma.classes.dispatcher.extend(this),Object.defineProperty(this,"graph",{value:t}),Object.defineProperty(this,"id",{value:e}),Object.defineProperty(this,"readPrefix",{value:"read_cam"+e+":"}),Object.defineProperty(this,"prefix",{value:"cam"+e+":"}),this.x=0,this.y=0,this.ratio=1,this.angle=0,this.isAnimated=!1,this.settings="object"==typeof r&&r?n.embedObject(r):n},sigma.classes.camera.prototype.goTo=function(t){if(!this.settings("enableCamera"))return this;var n,r,a=t||{},i=["x","y","ratio","angle"];for(n=0,r=i.length;ne.y1?{x1:e.x1-e.height,y1:e.y1,x2:e.x1,y2:e.y1,height:e.height}:e.x1===e.x2&&e.y2=l},collision:function(e,t){for(var n=this.axis(e,t),r=!0,a=0;a<4;a++)r=r&&this.axisCollision(n[a],e,t);return r}};function a(e,t){for(var n=[],r=0;r<4;r++)e.x2>=t[r][0].x&&e.x1<=t[r][1].x&&e.y1+e.height>=t[r][0].y&&e.y1<=t[r][2].y&&n.push(r);return n}function i(e,t){for(var n=[],a=0;a<4;a++)r.collision(e,t[a])&&n.push(a);return n}function o(e,t){var n,r,a=t.level+1,i=Math.round(t.bounds.width/2),o=Math.round(t.bounds.height/2),s=Math.round(t.bounds.x),A=Math.round(t.bounds.y);switch(e){case 0:n=s,r=A;break;case 1:n=s+i,r=A;break;case 2:n=s,r=A+o;break;case 3:n=s+i,r=A+o}return c({x:n,y:r,width:i,height:o},a,t.maxElements,t.maxLevel)}function s(e,t,r){if(r.level4)throw"attach: Wrong arguments.";var a;if("constructor"===e)a=i;else if(r){if(!s[e])throw'The method "'+e+'" does not exist.';a=s[e]}else{if(!o[e])throw'The method "'+e+'" does not exist.';a=o[e]}if(a[t])throw'A function "'+t+'" is already attached to the method "'+e+'".';return a[t]=n,this},l.attachBefore=function(e,t,n){return this.attach(e,t,n,!0)},l.addIndex=function(e,t){if("string"!=typeof e||Object(t)!==t||2!==arguments.length)throw"addIndex: Wrong arguments.";if(a[e])throw'The index "'+e+'" already exists.';var n;for(n in a[e]=t,t){if("function"!=typeof t[n])throw"The bindings must be functions.";l.attach(n,e,t[n])}return this},l.addMethod("addNode",function(e){if(Object(e)!==e||1!==arguments.length)throw"addNode: Wrong arguments.";if("string"!=typeof e.id&&"number"!=typeof e.id)throw"The node must have a string or number id.";if(this.nodesIndex[e.id])throw'The node "'+e.id+'" already exists.';var t,n=e.id,r=Object.create(null);if(this.settings("clone"))for(t in e)"id"!==t&&(r[t]=e[t]);else r=e;return this.settings("immutable")?Object.defineProperty(r,"id",{value:n,enumerable:!0}):r.id=n,this.inNeighborsIndex[n]=Object.create(null),this.outNeighborsIndex[n]=Object.create(null),this.allNeighborsIndex[n]=Object.create(null),this.inNeighborsCount[n]=0,this.outNeighborsCount[n]=0,this.allNeighborsCount[n]=0,this.nodesArray.push(r),this.nodesIndex[r.id]=r,this}),l.addMethod("addEdge",function(e){if(Object(e)!==e||1!==arguments.length)throw"addEdge: Wrong arguments.";if("string"!=typeof e.id&&"number"!=typeof e.id)throw"The edge must have a string or number id.";if("string"!=typeof e.source&&"number"!=typeof e.source||!this.nodesIndex[e.source])throw"The edge source must have an existing node id.";if("string"!=typeof e.target&&"number"!=typeof e.target||!this.nodesIndex[e.target])throw"The edge target must have an existing node id.";if(this.edgesIndex[e.id])throw'The edge "'+e.id+'" already exists.';var t,n=Object.create(null);if(this.settings("clone"))for(t in e)"id"!==t&&"source"!==t&&"target"!==t&&(n[t]=e[t]);else n=e;return this.settings("immutable")?(Object.defineProperty(n,"id",{value:e.id,enumerable:!0}),Object.defineProperty(n,"source",{value:e.source,enumerable:!0}),Object.defineProperty(n,"target",{value:e.target,enumerable:!0})):(n.id=e.id,n.source=e.source,n.target=e.target),this.edgesArray.push(n),this.edgesIndex[n.id]=n,this.inNeighborsIndex[n.target][n.source]||(this.inNeighborsIndex[n.target][n.source]=Object.create(null)),this.inNeighborsIndex[n.target][n.source][n.id]=n,this.outNeighborsIndex[n.source][n.target]||(this.outNeighborsIndex[n.source][n.target]=Object.create(null)),this.outNeighborsIndex[n.source][n.target][n.id]=n,this.allNeighborsIndex[n.source][n.target]||(this.allNeighborsIndex[n.source][n.target]=Object.create(null)),this.allNeighborsIndex[n.source][n.target][n.id]=n,n.target!==n.source&&(this.allNeighborsIndex[n.target][n.source]||(this.allNeighborsIndex[n.target][n.source]=Object.create(null)),this.allNeighborsIndex[n.target][n.source][n.id]=n),this.inNeighborsCount[n.target]++,this.outNeighborsCount[n.source]++,this.allNeighborsCount[n.target]++,this.allNeighborsCount[n.source]++,this}),l.addMethod("dropNode",function(e){if("string"!=typeof e&&"number"!=typeof e||1!==arguments.length)throw"dropNode: Wrong arguments.";if(!this.nodesIndex[e])throw'The node "'+e+'" does not exist.';var t,n,r;for(delete this.nodesIndex[e],t=0,r=this.nodesArray.length;t=0;t--)this.edgesArray[t].source!==e&&this.edgesArray[t].target!==e||this.dropEdge(this.edgesArray[t].id);for(n in delete this.inNeighborsIndex[e],delete this.outNeighborsIndex[e],delete this.allNeighborsIndex[e],delete this.inNeighborsCount[e],delete this.outNeighborsCount[e],delete this.allNeighborsCount[e],this.nodesIndex)delete this.inNeighborsIndex[n][e],delete this.outNeighborsIndex[n][e],delete this.allNeighborsIndex[n][e];return this}),l.addMethod("dropEdge",function(e){if("string"!=typeof e&&"number"!=typeof e||1!==arguments.length)throw"dropEdge: Wrong arguments.";if(!this.edgesIndex[e])throw'The edge "'+e+'" does not exist.';var t,n,r;for(r=this.edgesIndex[e],delete this.edgesIndex[e],t=0,n=this.edgesArray.length;te.y1?{x1:e.x1-e.height,y1:e.y1,x2:e.x1,y2:e.y1,height:e.height}:e.x1===e.x2&&e.y2=l},collision:function(e,t){for(var n=this.axis(e,t),r=!0,a=0;a<4;a++)r=r&&this.axisCollision(n[a],e,t);return r}};function a(e,t){for(var n=[],r=0;r<4;r++)e.x2>=t[r][0].x&&e.x1<=t[r][1].x&&e.y1+e.height>=t[r][0].y&&e.y1<=t[r][2].y&&n.push(r);return n}function i(e,t){for(var n=[],a=0;a<4;a++)r.collision(e,t[a])&&n.push(a);return n}function o(e,t){var n,r,a=t.level+1,i=Math.round(t.bounds.width/2),o=Math.round(t.bounds.height/2),s=Math.round(t.bounds.x),A=Math.round(t.bounds.y);switch(e){case 0:n=s,r=A;break;case 1:n=s+i,r=A;break;case 2:n=s,r=A+o;break;case 3:n=s+i,r=A+o}return c({x:n,y:r,width:i,height:o},a,t.maxElements,t.maxLevel)}function s(e,t,r){if(r.levelo.weightTime){s.splice(e,0,o),a=!0;break}a||s.push(o)}return r?o:null}function p(e){var t=s.length;o[e.id]=e,e.status="running",t&&(e.weightTime=s[t-1].weightTime,e.currentTime=e.weightTime*(e.weight||1)),e.startTime=B(),f("jobStarted",y(e)),s.push(e)}function g(){var e,t,n;for(e in i)(t=i[e]).after?c[e]=t:p(t),delete i[e];for(a=!!s.length;s.length&&B()-r=0;e--)for(t in arguments[e])n[t]=arguments[e][t];return n}function y(e){var t,n,r;if(!e)return e;if(Array.isArray(e))for(t=[],n=0,r=e.length;n1)for(r=0,a=(o=Array.isArray(t)?t:t.split(/ /)).length;r!==a;r+=1)i=o[r],d[i]||(d[i]=[]),d[i].push({handler:n})},unbind:function(e,t){var n,r,a,i,o,s,c=Array.isArray(e)?e:e.split(/ /);if(arguments.length)if(t)for(n=0,r=c.length;n!==r;n+=1){if(s=c[n],d[s]){for(o=[],a=0,i=d[s].length;a!==i;a+=1)d[s][a].handler!==t&&o.push(d[s][a]);d[s]=o}d[s]&&0===d[s].length&&delete d[s]}else for(n=0,r=c.length;n!==r;n+=1)delete d[c[n]];else d=Object.create(null)},version:"0.1.0"};void 0!==e&&e.exports&&(t=e.exports=w),t.conrad=w,n.conrad=w}(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.middlewares"),sigma.middlewares.copy=function(e,t){var n,r,a;if(t+""!=e+""){for(n=0,r=(a=this.graph.nodes()).length;n=1?(n.isAnimated=!1,n.goTo({x:r.x!==e?r.x:A.x,y:r.y!==e?r.y:A.y,ratio:r.ratio!==e?r.ratio:A.ratio,angle:r.angle!==e?r.angle:A.angle}),cancelAnimationFrame(o),delete sigma.misc.animation.running[o],"function"==typeof l.onComplete&&l.onComplete()):(t=c(a),n.isAnimated=!0,n.goTo({x:r.x!==e?A.x+(r.x-A.x)*t:A.x,y:r.y!==e?A.y+(r.y-A.y)*t:A.y,ratio:r.ratio!==e?A.ratio+(r.ratio-A.ratio)*t:A.ratio,angle:r.angle!==e?A.angle+(r.angle-A.angle)*t:A.angle}),"function"==typeof l.onNewFrame&&l.onNewFrame(),s.frameId=requestAnimationFrame(i))},o=t(),s={frameId:requestAnimationFrame(i),target:n,type:"camera",options:l,fn:i},sigma.misc.animation.running[o]=s,o},sigma.misc.animation.kill=function(e){if(1!==arguments.length||"number"!=typeof e)throw"animation.kill: Wrong arguments.";var t=sigma.misc.animation.running[e];return t&&(cancelAnimationFrame(e),delete sigma.misc.animation.running[t.frameId],"camera"===t.type&&(t.target.isAnimated=!1),"function"==typeof(t.options||{}).onComplete&&t.options.onComplete()),this},sigma.misc.animation.killAll=function(e){var t,n,r=0,a="string"==typeof e?e:null,i="object"==typeof e?e:null,o=sigma.misc.animation.running;for(n in o)a&&o[n].type!==a||i&&o[n].target!==i||(t=sigma.misc.animation.running[n],cancelAnimationFrame(t.frameId),delete sigma.misc.animation.running[n],"camera"===t.type&&(t.target.isAnimated=!1),r++,"function"==typeof(t.options||{}).onComplete&&t.options.onComplete());return r},sigma.misc.animation.has=function(e){var t,n="string"==typeof e?e:null,r="object"==typeof e?e:null,a=sigma.misc.animation.running;for(t in a)if(!(n&&a[t].type!==n||r&&a[t].target!==r))return!0;return!1}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.misc"),sigma.misc.bindDOMEvents=function(e){var t=this,n=this.graph;function r(e){this.attr=function(t){return e.getAttributeNS(null,t)},this.tag=e.tagName,this.class=this.attr("class"),this.id=this.attr("id"),this.isNode=function(){return!!~this.class.indexOf(t.settings("classPrefix")+"-node")},this.isEdge=function(){return!!~this.class.indexOf(t.settings("classPrefix")+"-edge")},this.isHover=function(){return!!~this.class.indexOf(t.settings("classPrefix")+"-hover")}}function a(e){if(t.settings("eventsEnabled")){t.dispatchEvent("click",e);var a=new r(e.target);a.isNode()?t.dispatchEvent("clickNode",{node:n.nodes(a.attr("data-node-id"))}):t.dispatchEvent("clickStage"),e.preventDefault(),e.stopPropagation()}}function i(e){if(t.settings("eventsEnabled")){t.dispatchEvent("doubleClick",e);var a=new r(e.target);a.isNode()?t.dispatchEvent("doubleClickNode",{node:n.nodes(a.attr("data-node-id"))}):t.dispatchEvent("doubleClickStage"),e.preventDefault(),e.stopPropagation()}}e.addEventListener("click",a,!1),sigma.utils.doubleClick(e,"click",i),e.addEventListener("touchstart",a,!1),sigma.utils.doubleClick(e,"touchstart",i),e.addEventListener("mouseover",function(e){var a=e.toElement||e.target;if(t.settings("eventsEnabled")&&a){var i=new r(a);if(i.isNode())t.dispatchEvent("overNode",{node:n.nodes(i.attr("data-node-id"))});else if(i.isEdge()){var o=n.edges(i.attr("data-edge-id"));t.dispatchEvent("overEdge",{edge:o,source:n.nodes(o.source),target:n.nodes(o.target)})}}},!0),e.addEventListener("mouseout",function(e){var a=e.fromElement||e.originalTarget;if(t.settings("eventsEnabled")){var i=new r(a);if(i.isNode())t.dispatchEvent("outNode",{node:n.nodes(i.attr("data-node-id"))});else if(i.isEdge()){var o=n.edges(i.attr("data-edge-id"));t.dispatchEvent("outEdge",{edge:o,source:n.nodes(o.source),target:n.nodes(o.target)})}}},!0)}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.misc"),sigma.misc.bindEvents=function(t){var n,r,a,i,o=this;function s(e){e&&(a="x"in e.data?e.data.x:a,i="y"in e.data?e.data.y:i);var n,r,s,c,A,l,u,d,f=[],h=a+o.width/2,p=i+o.height/2,g=o.camera.cameraPosition(a,i),m=o.camera.quadtree.point(g.x,g.y);if(m.length)for(n=0,s=m.length;nA-u&&hl-u&&pf[r].size){f.splice(r,0,c),d=!0;break}d||f.push(c)}return f}function c(n){if(!o.settings("enableEdgeHovering"))return[];var r=sigma.renderers.canvas&&o instanceof sigma.renderers.canvas;if(!r)throw new Error("The edge events feature is not compatible with the WebGL renderer");n&&(a="x"in n.data?n.data.x:a,i="y"in n.data?n.data.y:i);var s,c,A,l,u,d,f,h,p,g,m=o.settings("edgeHoverPrecision"),b={},E=[],y=a+o.width/2,v=i+o.height/2,B=o.camera.cameraPosition(a,i),w=[];if(r)for(s=0,A=(l=o.camera.quadtree.area(o.camera.getRectangle(o.width,o.height))).length;se[c].size){e.splice(c,0,t),g=!0;break}g||e.push(t)}if(o.camera.edgequadtree!==e&&(w=o.camera.edgequadtree.point(B.x,B.y)),w.length)for(s=0,A=w.length;sf[t+"size"]&&sigma.utils.getDistance(h[t+"x"],h[t+"y"],y,v)>h[t+"size"]&&("curve"==u.type||"curvedArrow"==u.type?f.id===h.id?(p=sigma.utils.getSelfLoopControlPoints(f[t+"x"],f[t+"y"],f[t+"size"]),sigma.utils.isPointOnBezierCurve(y,v,f[t+"x"],f[t+"y"],h[t+"x"],h[t+"y"],p.x1,p.y1,p.x2,p.y2,Math.max(d,m))&&I(E,u)):(p=sigma.utils.getQuadraticControlPoint(f[t+"x"],f[t+"y"],h[t+"x"],h[t+"y"]),sigma.utils.isPointOnQuadraticCurve(y,v,f[t+"x"],f[t+"y"],h[t+"x"],h[t+"y"],p.x,p.y,Math.max(d,m))&&I(E,u)):sigma.utils.isPointOnSegment(y,v,f[t+"x"],f[t+"y"],h[t+"x"],h[t+"y"],Math.max(d,m))&&I(E,u));return E}function A(e){var t,n,r={},a={};function i(e){if(o.settings("eventsEnabled")){t=s(e),n=c(e);var i,A,l,u,d=[],f=[],h={},p=t.length,g=[],m=[],b={},E=n.length;for(i=0;i0&&(t.beginPath(),t.fillStyle="node"===n("nodeBorderColor")?e.color||n("defaultNodeColor"):n("defaultNodeBorderColor"),t.arc(e[A+"x"],e[A+"y"],l+n("borderSize"),0,2*Math.PI,!0),t.closePath(),t.fill()),(sigma.canvas.nodes[e.type]||sigma.canvas.nodes.def)(e,t,n),e.label&&"string"==typeof e.label&&(t.fillStyle="node"===n("labelHoverColor")?e.color||n("defaultNodeColor"):n("defaultLabelHoverColor"),t.fillText(e.label,Math.round(e[A+"x"]+l+3),Math.round(e[A+"y"]+u/3)))}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.canvas.labels"),sigma.canvas.labels.def=function(e,t,n){var r,a=n("prefix")||"",i=e[a+"size"];i=0;t--)this.killRenderer(n[t]);return delete this.renderersPerCamera[e.id],delete this.cameraFrames[e.id],delete this.cameras[e.id],e.kill&&e.kill(),this},n.prototype.addRenderer=function(e){var t,r,a,i,o=e||{};if("string"==typeof o?o={container:document.getElementById(o)}:o instanceof HTMLElement&&(o={container:o}),"string"==typeof o.container&&(o.container=document.getElementById(o.container)),"id"in o)t=o.id;else{for(t=0;this.renderers[""+t];)t++;t=""+t}if(this.renderers[t])throw'sigma.addRenderer: The renderer "'+t+'" already exists.';if(r=(r="function"==typeof o.type?o.type:n.renderers[o.type])||n.renderers.def,a="camera"in o?o.camera instanceof n.classes.camera?o.camera:this.cameras[o.camera]||this.addCamera(o.camera):this.addCamera(),this.cameras[a.id]!==a)throw"sigma.addRenderer: The camera is not properly referenced.";return i=new r(this.graph,a,this.settings,o),this.renderers[t]=i,Object.defineProperty(i,"id",{value:t}),i.bind&&i.bind(["click","rightClick","clickStage","doubleClickStage","rightClickStage","clickNode","clickNodes","clickEdge","clickEdges","doubleClickNode","doubleClickNodes","doubleClickEdge","doubleClickEdges","rightClickNode","rightClickNodes","rightClickEdge","rightClickEdges","overNode","overNodes","overEdge","overEdges","outNode","outNodes","outEdge","outEdges","downNode","downNodes","downEdge","downEdges","upNode","upNodes","upEdge","upEdges"],this._handler),this.renderersPerCamera[a.id].push(i),i},n.prototype.killRenderer=function(e){if(!(e="string"==typeof e?this.renderers[e]:e))throw"sigma.killRenderer: The renderer is undefined.";var t=this.renderersPerCamera[e.camera.id],n=t.indexOf(e);return n>=0&&t.splice(n,1),e.kill&&e.kill(),delete this.renderers[e.id],this},n.prototype.refresh=function(t){var r,a,i,o,s,c,A=0;for(t=t||{},r=0,a=(o=this.middlewares||[]).length;r=0;e--)for(t in arguments[e])n[t]=arguments[e][t];return n},sigma.utils.dateNow=function(){return Date.now?Date.now():(new Date).getTime()},sigma.utils.pkg=function(e){return(e||"").split(".").reduce(function(e,t){return t in e?e[t]:e[t]={}},t)},sigma.utils.id=function(){var e=0;return function(){return++e}}();var n={};sigma.utils.floatColor=function(e){if(n[e])return n[e];var t=e,r=0,a=0,i=0;"#"===e[0]?3===(e=e.slice(1)).length?(r=parseInt(e.charAt(0)+e.charAt(0),16),a=parseInt(e.charAt(1)+e.charAt(1),16),i=parseInt(e.charAt(2)+e.charAt(2),16)):(r=parseInt(e.charAt(0)+e.charAt(1),16),a=parseInt(e.charAt(2)+e.charAt(3),16),i=parseInt(e.charAt(4)+e.charAt(5),16)):e.match(/^ *rgba? *\(/)&&(r=+(e=e.match(/^ *rgba? *\( *([0-9]*) *, *([0-9]*) *, *([0-9]*) *(,.*)?\) *$/))[1],a=+e[2],i=+e[3]);var o=256*r*256+256*a+i;return n[t]=o,o},sigma.utils.zoomTo=function(e,t,n,r,a){var i,o,s,c=e.settings;(o=Math.max(c("zoomMin"),Math.min(c("zoomMax"),e.ratio*r)))!==e.ratio&&(s={x:t*(1-(r=o/e.ratio))+e.x,y:n*(1-r)+e.y,ratio:o},a&&a.duration?(i=sigma.misc.animation.killAll(e),a=sigma.utils.extend(a,{easing:i?"quadraticOut":"quadraticInOut"}),sigma.misc.animation.camera(e,s,a)):(e.goTo(s),a&&a.onComplete&&a.onComplete()))},sigma.utils.getQuadraticControlPoint=function(e,t,n,r){return{x:(e+n)/2+(r-t)/4,y:(t+r)/2+(e-n)/4}},sigma.utils.getPointOnQuadraticCurve=function(e,t,n,r,a,i,o){return{x:Math.pow(1-e,2)*t+2*(1-e)*e*i+Math.pow(e,2)*r,y:Math.pow(1-e,2)*n+2*(1-e)*e*o+Math.pow(e,2)*a}},sigma.utils.getPointOnBezierCurve=function(e,t,n,r,a,i,o,s,c){var A=Math.pow(1-e,3),l=3*e*Math.pow(1-e,2),u=3*Math.pow(e,2)*(1-e),d=Math.pow(e,3);return{x:A*t+l*i+u*s+d*r,y:A*n+l*o+u*c+d*a}},sigma.utils.getSelfLoopControlPoints=function(e,t,n){return{x1:e-7*n,y1:t,x2:e,y2:t+7*n}},sigma.utils.getDistance=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},sigma.utils.getCircleIntersection=function(e,t,n,r,a,i){var o,s,c,A,l,u,d,f,h;return s=r-e,c=a-t,!((A=Math.sqrt(c*c+s*s))>n+i)&&(!(AA||Math.abs(t-r)>A)return!1;for(var l,u=.5,d=sigma.utils.getDistance(e,t,n,r)0&&u>=0&&u<=1&&p>c&&(d>.001||d<-.001);)l=p,h=sigma.utils.getPointOnQuadraticCurve(u,n,r,a,i,o,s),(p=sigma.utils.getDistance(e,t,h.x,h.y))>l?u+=d=-d/2:u+d<0||u+d>1?(d/=2,p=l):u+=d;return pu||Math.abs(t-r)>u)return!1;for(var d,f=.5,h=sigma.utils.getDistance(e,t,n,r)0&&f>=0&&f<=1&&m>l&&(h>.001||h<-.001);)d=m,g=sigma.utils.getPointOnBezierCurve(f,n,r,a,i,o,s,c,A),(m=sigma.utils.getDistance(e,t,g.x,g.y))>d?f+=h=-h/2:f+h<0||f+h>1?(h/=2,m=d):f+=h;return mwindow.screen.logicalXDPI?t=window.screen.systemXDPI/window.screen.logicalXDPI:window.devicePixelRatio!==e&&(t=window.devicePixelRatio),t},sigma.utils.getWidth=function(t){var n=t.target.ownerSVGElement?t.target.ownerSVGElement.width:t.target.width;return"number"==typeof n&&n||n!==e&&n.baseVal!==e&&n.baseVal.value},sigma.utils.getCenter=function(e){var t=-1!==e.target.namespaceURI.indexOf("svg")?1:sigma.utils.getPixelRatio();return{x:sigma.utils.getWidth(e)/(2*t),y:sigma.utils.getHeight(e)/(2*t)}},sigma.utils.mouseCoords=function(e,t,n){return t=t||sigma.utils.getX(e),n=n||sigma.utils.getY(e),{x:t-sigma.utils.getCenter(e).x,y:n-sigma.utils.getCenter(e).y,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey}},sigma.utils.getHeight=function(t){var n=t.target.ownerSVGElement?t.target.ownerSVGElement.height:t.target.height;return"number"==typeof n&&n||n!==e&&n.baseVal!==e&&n.baseVal.value},sigma.utils.getDelta=function(t){return t.wheelDelta!==e&&t.wheelDelta||t.detail!==e&&-t.detail},sigma.utils.getOffset=function(e){for(var t=0,n=0;e;)n+=parseInt(e.offsetTop),t+=parseInt(e.offsetLeft),e=e.offsetParent;return{top:n,left:t}},sigma.utils.doubleClick=function(e,t,n){var r,a=0;e._doubleClickHandler=e._doubleClickHandler||{},e._doubleClickHandler[t]=e._doubleClickHandler[t]||[],(r=e._doubleClickHandler[t]).push(function(e){if(2===++a)return a=0,n(e);1===a&&setTimeout(function(){a=0},sigma.settings.doubleClickTimeout)}),e.addEventListener(t,r[r.length-1],!1)},sigma.utils.unbindDoubleClick=function(e,t){for(var n,r=(e._doubleClickHandler||{})[t]||[];n=r.pop();)e.removeEventListener(t,n);delete(e._doubleClickHandler||{})[t]},sigma.utils.easings=sigma.utils.easings||{},sigma.utils.easings.linearNone=function(e){return e},sigma.utils.easings.quadraticIn=function(e){return e*e},sigma.utils.easings.quadraticOut=function(e){return e*(2-e)},sigma.utils.easings.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},sigma.utils.easings.cubicIn=function(e){return e*e*e},sigma.utils.easings.cubicOut=function(e){return--e*e*e+1},sigma.utils.easings.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},sigma.utils.loadShader=function(e,t,n,r){var a=e.createShader(n);return e.shaderSource(a,t),e.compileShader(a),e.getShaderParameter(a,e.COMPILE_STATUS)?a:(r&&r('Error compiling shader "'+a+'":'+e.getShaderInfoLog(a)),e.deleteShader(a),null)},sigma.utils.loadProgram=function(e,t,n,r,a){var i,o=e.createProgram();for(i=0;i=e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDroppableDimension=t.scrollDroppable=t.clip=t.getDraggableDimension=t.noSpacing=void 0;var r=A(n(86)),a=n(653),i=A(n(112)),o=n(155),s=n(22),c=A(n(654));function A(e){return e&&e.__esModule?e:{default:e}}var l={x:0,y:0},u=t.noSpacing={top:0,right:0,bottom:0,left:0},d=(t.getDraggableDimension=function(e){var t=e.descriptor,n=e.client,r=e.margin,a=void 0===r?u:r,s=e.windowScroll,c=void 0===s?l:s,A=(0,o.offsetByPosition)(n,c);return{descriptor:t,placeholder:{margin:a,withoutMargin:{width:n.width,height:n.height}},client:{withoutMargin:(0,i.default)(n),withMargin:(0,i.default)((0,o.expandBySpacing)(n,a))},page:{withoutMargin:(0,i.default)(A),withMargin:(0,i.default)((0,o.expandBySpacing)(A,a))}}},t.clip=function(e,t){var n=(0,i.default)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n});t.scrollDroppable=function(e,t){if(!e.viewport.closestScrollable)return console.error("Cannot scroll droppble that does not have a closest scrollable"),e;var n=e.viewport.closestScrollable,a=n.frame,c=(0,s.subtract)(t,n.scroll.initial),A=(0,s.negate)(c),l={frame:n.frame,shouldClipSubject:n.shouldClipSubject,scroll:{initial:n.scroll.initial,current:t,diff:{value:c,displacement:A},max:n.scroll.max}},u=(0,o.offsetByPosition)(e.viewport.subject,A),f=l.shouldClipSubject?d(a,u):(0,i.default)(u),h={closestScrollable:l,subject:e.viewport.subject,clipped:f};return(0,r.default)({},e,{viewport:h})},t.getDroppableDimension=function(e){var t=e.descriptor,n=e.client,r=e.closest,s=e.direction,A=void 0===s?"vertical":s,f=e.margin,h=void 0===f?u:f,p=e.padding,g=void 0===p?u:p,m=e.windowScroll,b=void 0===m?l:m,E=e.isEnabled,y=void 0===E||E,v=(0,o.expandBySpacing)(n,h),B=(0,o.offsetByPosition)(n,b),w=(0,i.default)((0,o.expandBySpacing)(B,h)),I=function(){if(!r)return null;var e=(0,i.default)((0,o.offsetByPosition)(r.frameClient,b)),t=(0,c.default)({scrollHeight:r.scrollHeight,scrollWidth:r.scrollWidth,height:e.height,width:e.width});return{frame:e,shouldClipSubject:r.shouldClipSubject,scroll:{initial:r.scroll,current:r.scroll,max:t,diff:{value:l,displacement:l}}}}(),M={closestScrollable:I,subject:w,clipped:I&&I.shouldClipSubject?d(I.frame,w):w};return{descriptor:t,isEnabled:y,axis:"vertical"===A?a.vertical:a.horizontal,client:{withoutMargin:(0,i.default)(n),withMargin:(0,i.default)(v),withMarginAndPadding:(0,i.default)((0,o.expandBySpacing)(v,g))},page:{withoutMargin:(0,i.default)(B),withMargin:w,withMarginAndPadding:(0,i.default)((0,o.expandBySpacing)((0,o.expandBySpacing)(B,h),g))},viewport:M}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.preventDefault(),e.stopPropagation()}},function(e,t,n){"use strict";var r=n(24),a=n.n(r),i=n(1),o=n.n(i),s=n(0),c=n.n(s),A=n(25),l=n(74);function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=Array(a),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(l.a,{history:this.history,children:this.props.children})},t}(o.a.Component);d.propTypes={initialEntries:c.a.array,initialIndex:c.a.number,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node},t.a=d},function(e,t,n){"use strict";var r=n(1),a=n.n(r),i=n(0),o=n.n(i),s=n(14),c=n.n(s);var A=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){c()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(a.a.Component);A.propTypes={when:o.a.bool,message:o.a.oneOfType([o.a.func,o.a.string]).isRequired},A.defaultProps={when:!0},A.contextTypes={router:o.a.shape({history:o.a.shape({block:o.a.func.isRequired}).isRequired}).isRequired},t.a=A},function(e,t,n){"use strict";var r=n(1),a=n.n(r),i=n(0),o=n.n(i),s=n(24),c=n.n(s),A=n(14),l=n.n(A),u=n(25),d=n(87),f=Object.assign||function(e){for(var t=1;t outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(u.createLocation)(e.to),n=Object(u.createLocation)(this.props.to);Object(u.locationsAreEqual)(t,n)?c()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Object(d.a)(n,t.params):f({},n,{pathname:Object(d.a)(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(a.a.Component);h.propTypes={computedMatch:o.a.object,push:o.a.bool,from:o.a.string,to:o.a.oneOfType([o.a.string,o.a.object]).isRequired},h.defaultProps={push:!1},h.contextTypes={router:o.a.shape({history:o.a.shape({push:o.a.func.isRequired,replace:o.a.func.isRequired}).isRequired,staticContext:o.a.object}).isRequired},t.a=h},function(e,t,n){"use strict";var r=n(24),a=n.n(r),i=n(14),o=n.n(i),s=n(1),c=n.n(s),A=n(0),l=n.n(A),u=n(25),d=n(74),f=Object.assign||function(e){for(var t=1;t",e)}},E=function(){},y=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=Array(a),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=p(e);return 0!==t.pathname.indexOf(n)?t:f({},t,{pathname:t.pathname.substr(n.length)})}(t,Object(u.createLocation)(n)),push:this.handlePush,replace:this.handleReplace,go:b("go"),goBack:b("goBack"),goForward:b("goForward"),listen:this.handleListen,block:this.handleBlock};return c.a.createElement(d.a,f({},r,{history:a}))},t}(c.a.Component);y.propTypes={basename:l.a.string,context:l.a.object.isRequired,location:l.a.oneOfType([l.a.string,l.a.object])},y.defaultProps={basename:"",location:"/"},y.childContextTypes={router:l.a.object.isRequired},t.a=y},function(e,t,n){"use strict";var r=n(1),a=n.n(r),i=n(0),o=n.n(i),s=n(24),c=n.n(s),A=n(14),l=n.n(A),u=n(75);var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){l()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){c()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),c()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return a.a.Children.forEach(t,function(t){if(null==r&&a.a.isValidElement(t)){var o=t.props,s=o.path,c=o.exact,A=o.strict,l=o.sensitive,d=o.from,f=s||d;i=t,r=Object(u.a)(n.pathname,{path:f,exact:c,strict:A,sensitive:l},e.match)}}),r?a.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(a.a.Component);d.contextTypes={router:o.a.shape({route:o.a.object.isRequired}).isRequired},d.propTypes={children:o.a.node,location:o.a.object},t.a=d},function(e,t,n){"use strict";var r=n(1),a=n.n(r),i=n(0),o=n.n(i),s=n(117),c=n.n(s),A=n(118),l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return a.a.createElement(A.a,{children:function(t){return a.a.createElement(e,l({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:o.a.func},c()(t,e)}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(234));t.default=r.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],a=e[2],i=e[3];n+=(r&a|~r&i)+t[0]-680876936|0,i+=((n=(n<<7|n>>>25)+r|0)&r|~n&a)+t[1]-389564586|0,a+=((i=(i<<12|i>>>20)+n|0)&n|~i&r)+t[2]+606105819|0,r+=((a=(a<<17|a>>>15)+i|0)&i|~a&n)+t[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+a|0)&a|~r&i)+t[4]-176418897|0,i+=((n=(n<<7|n>>>25)+r|0)&r|~n&a)+t[5]+1200080426|0,a+=((i=(i<<12|i>>>20)+n|0)&n|~i&r)+t[6]-1473231341|0,r+=((a=(a<<17|a>>>15)+i|0)&i|~a&n)+t[7]-45705983|0,n+=((r=(r<<22|r>>>10)+a|0)&a|~r&i)+t[8]+1770035416|0,i+=((n=(n<<7|n>>>25)+r|0)&r|~n&a)+t[9]-1958414417|0,a+=((i=(i<<12|i>>>20)+n|0)&n|~i&r)+t[10]-42063|0,r+=((a=(a<<17|a>>>15)+i|0)&i|~a&n)+t[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+a|0)&a|~r&i)+t[12]+1804603682|0,i+=((n=(n<<7|n>>>25)+r|0)&r|~n&a)+t[13]-40341101|0,a+=((i=(i<<12|i>>>20)+n|0)&n|~i&r)+t[14]-1502002290|0,r+=((a=(a<<17|a>>>15)+i|0)&i|~a&n)+t[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+a|0)&i|a&~i)+t[1]-165796510|0,i+=((n=(n<<5|n>>>27)+r|0)&a|r&~a)+t[6]-1069501632|0,a+=((i=(i<<9|i>>>23)+n|0)&r|n&~r)+t[11]+643717713|0,r+=((a=(a<<14|a>>>18)+i|0)&n|i&~n)+t[0]-373897302|0,n+=((r=(r<<20|r>>>12)+a|0)&i|a&~i)+t[5]-701558691|0,i+=((n=(n<<5|n>>>27)+r|0)&a|r&~a)+t[10]+38016083|0,a+=((i=(i<<9|i>>>23)+n|0)&r|n&~r)+t[15]-660478335|0,r+=((a=(a<<14|a>>>18)+i|0)&n|i&~n)+t[4]-405537848|0,n+=((r=(r<<20|r>>>12)+a|0)&i|a&~i)+t[9]+568446438|0,i+=((n=(n<<5|n>>>27)+r|0)&a|r&~a)+t[14]-1019803690|0,a+=((i=(i<<9|i>>>23)+n|0)&r|n&~r)+t[3]-187363961|0,r+=((a=(a<<14|a>>>18)+i|0)&n|i&~n)+t[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+a|0)&i|a&~i)+t[13]-1444681467|0,i+=((n=(n<<5|n>>>27)+r|0)&a|r&~a)+t[2]-51403784|0,a+=((i=(i<<9|i>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0,r+=((a=(a<<14|a>>>18)+i|0)&n|i&~n)+t[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+a|0)^a^i)+t[5]-378558|0,i+=((n=(n<<4|n>>>28)+r|0)^r^a)+t[8]-2022574463|0,a+=((i=(i<<11|i>>>21)+n|0)^n^r)+t[11]+1839030562|0,r+=((a=(a<<16|a>>>16)+i|0)^i^n)+t[14]-35309556|0,n+=((r=(r<<23|r>>>9)+a|0)^a^i)+t[1]-1530992060|0,i+=((n=(n<<4|n>>>28)+r|0)^r^a)+t[4]+1272893353|0,a+=((i=(i<<11|i>>>21)+n|0)^n^r)+t[7]-155497632|0,r+=((a=(a<<16|a>>>16)+i|0)^i^n)+t[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+a|0)^a^i)+t[13]+681279174|0,i+=((n=(n<<4|n>>>28)+r|0)^r^a)+t[0]-358537222|0,a+=((i=(i<<11|i>>>21)+n|0)^n^r)+t[3]-722521979|0,r+=((a=(a<<16|a>>>16)+i|0)^i^n)+t[6]+76029189|0,n+=((r=(r<<23|r>>>9)+a|0)^a^i)+t[9]-640364487|0,i+=((n=(n<<4|n>>>28)+r|0)^r^a)+t[12]-421815835|0,a+=((i=(i<<11|i>>>21)+n|0)^n^r)+t[15]+530742520|0,r+=((a=(a<<16|a>>>16)+i|0)^i^n)+t[2]-995338651|0,n+=(a^((r=(r<<23|r>>>9)+a|0)|~i))+t[0]-198630844|0,i+=(r^((n=(n<<6|n>>>26)+r|0)|~a))+t[7]+1126891415|0,a+=(n^((i=(i<<10|i>>>22)+n|0)|~r))+t[14]-1416354905|0,r+=(i^((a=(a<<15|a>>>17)+i|0)|~n))+t[5]-57434055|0,n+=(a^((r=(r<<21|r>>>11)+a|0)|~i))+t[12]+1700485571|0,i+=(r^((n=(n<<6|n>>>26)+r|0)|~a))+t[3]-1894986606|0,a+=(n^((i=(i<<10|i>>>22)+n|0)|~r))+t[10]-1051523|0,r+=(i^((a=(a<<15|a>>>17)+i|0)|~n))+t[1]-2054922799|0,n+=(a^((r=(r<<21|r>>>11)+a|0)|~i))+t[8]+1873313359|0,i+=(r^((n=(n<<6|n>>>26)+r|0)|~a))+t[15]-30611744|0,a+=(n^((i=(i<<10|i>>>22)+n|0)|~r))+t[6]-1560198380|0,r+=(i^((a=(a<<15|a>>>17)+i|0)|~n))+t[13]+1309151649|0,n+=(a^((r=(r<<21|r>>>11)+a|0)|~i))+t[4]-145523070|0,i+=(r^((n=(n<<6|n>>>26)+r|0)|~a))+t[11]-1120210379|0,a+=(n^((i=(i<<10|i>>>22)+n|0)|~r))+t[2]+718787259|0,r=((r+=(i^((a=(a<<15|a>>>17)+i|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+a|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=a+e[2]|0,e[3]=i+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function a(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function i(e){var t,a,i,o,s,c,A=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=A;t+=64)n(l,r(e.substring(t-64,t)));for(e=e.substring(t-64),a=e.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(l,i),t=0;t<16;t+=1)i[t]=0;return o=(o=8*A).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(o[2],16),c=parseInt(o[1],16)||0,i[14]=s,i[15]=c,n(l,i),l}function o(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;tl?new ArrayBuffer(0):(a=l-A,i=new ArrayBuffer(a),o=new Uint8Array(i),s=new Uint8Array(this,A,a),o.set(s),i)}}(),l.prototype.append=function(e){return this.appendBinary(c(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,a=this._buff.length;for(t=64;t<=a;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},l.prototype.end=function(e){var t,n,r=this._buff,a=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(i,a),n=s(this._hash),e&&(n=A(n)),this.reset(),n},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,t){var r,a,i,o=t;if(e[o>>2]|=128<<(o%4<<3),o>55)for(n(this._hash,e),o=0;o<16;o+=1)e[o]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),i=parseInt(r[1],16)||0,e[14]=a,e[15]=i,n(this._hash,e)},l.hash=function(e,t){return l.hashBinary(c(e),t)},l.hashBinary=function(e,t){var n=s(i(e));return t?A(n):n},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var t,r=function(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}(this._buff.buffer,e,!0),i=r.length;for(this._length+=e.byteLength,t=64;t<=i;t+=64)n(this._hash,a(r.subarray(t-64,t)));return this._buff=t-64>2]|=r[t]<<(t%4<<3);return this._finish(i,a),n=s(this._hash),e&&(n=A(n)),this.reset(),n},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.ArrayBuffer.prototype.getState=function(){var e=l.prototype.getState.call(this);return e.buff=function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}(e.buff),e},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,a=new ArrayBuffer(r),i=new Uint8Array(a);for(n=0;n>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(l,i),t=0;t<16;t+=1)i[t]=0;return o=(o=8*A).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(o[2],16),c=parseInt(o[1],16)||0,i[14]=s,i[15]=c,n(l,i),l}(new Uint8Array(e)));return t?A(r):r},l}()},function(e,t,n){"use strict";var r=Function.prototype.toString,a=/^\s*class\b/,i=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},o=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(s)return function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=o.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){var r=n(90).call(Function.call,Object.prototype.hasOwnProperty),a=Object.assign;e.exports=function(e,t){if(a)return a(e,t);for(var n in t)r(t,n)&&(e[n]=t[n]);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={maxAnimationDelay:6e3,newestOnTop:!0,position:"top-right",preventDuplicates:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ADD_TOASTR="@ReduxToastr/toastr/ADD",t.REMOVE_TOASTR="@ReduxToastr/toastr/REMOVE",t.CLEAN_TOASTR="@ReduxToastr/toastr/CLEAN",t.SHOW_CONFIRM="@ReduxToastr/confirm/SHOW",t.HIDE_CONFIRM="@ReduxToastr/confirm/HIDE",t.REMOVE_BY_TYPE="@ReduxToastr/toastr/REMOVE_BY_TYPE",t.TRANSITIONS={in:["bounceIn","bounceInDown","fadeIn"],out:["bounceOut","bounceOutUp","fadeOut"]}},function(e,t,n){"use strict";(function(t){var r=n(3),a=n(340),i=new Array(16);function o(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function c(e,t,n,r,a,i,o){return s(e+(t&n|~t&r)+a+i|0,o)+t|0}function A(e,t,n,r,a,i,o){return s(e+(t&r|n&~r)+a+i|0,o)+t|0}function l(e,t,n,r,a,i,o){return s(e+(t^n^r)+a+i|0,o)+t|0}function u(e,t,n,r,a,i,o){return s(e+(n^(t|~r))+a+i|0,o)+t|0}r(o,a),o.prototype._update=function(){for(var e=i,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,a=this._c,o=this._d;r=u(r=u(r=u(r=u(r=l(r=l(r=l(r=l(r=A(r=A(r=A(r=A(r=c(r=c(r=c(r=c(r,a=c(a,o=c(o,n=c(n,r,a,o,e[0],3614090360,7),r,a,e[1],3905402710,12),n,r,e[2],606105819,17),o,n,e[3],3250441966,22),a=c(a,o=c(o,n=c(n,r,a,o,e[4],4118548399,7),r,a,e[5],1200080426,12),n,r,e[6],2821735955,17),o,n,e[7],4249261313,22),a=c(a,o=c(o,n=c(n,r,a,o,e[8],1770035416,7),r,a,e[9],2336552879,12),n,r,e[10],4294925233,17),o,n,e[11],2304563134,22),a=c(a,o=c(o,n=c(n,r,a,o,e[12],1804603682,7),r,a,e[13],4254626195,12),n,r,e[14],2792965006,17),o,n,e[15],1236535329,22),a=A(a,o=A(o,n=A(n,r,a,o,e[1],4129170786,5),r,a,e[6],3225465664,9),n,r,e[11],643717713,14),o,n,e[0],3921069994,20),a=A(a,o=A(o,n=A(n,r,a,o,e[5],3593408605,5),r,a,e[10],38016083,9),n,r,e[15],3634488961,14),o,n,e[4],3889429448,20),a=A(a,o=A(o,n=A(n,r,a,o,e[9],568446438,5),r,a,e[14],3275163606,9),n,r,e[3],4107603335,14),o,n,e[8],1163531501,20),a=A(a,o=A(o,n=A(n,r,a,o,e[13],2850285829,5),r,a,e[2],4243563512,9),n,r,e[7],1735328473,14),o,n,e[12],2368359562,20),a=l(a,o=l(o,n=l(n,r,a,o,e[5],4294588738,4),r,a,e[8],2272392833,11),n,r,e[11],1839030562,16),o,n,e[14],4259657740,23),a=l(a,o=l(o,n=l(n,r,a,o,e[1],2763975236,4),r,a,e[4],1272893353,11),n,r,e[7],4139469664,16),o,n,e[10],3200236656,23),a=l(a,o=l(o,n=l(n,r,a,o,e[13],681279174,4),r,a,e[0],3936430074,11),n,r,e[3],3572445317,16),o,n,e[6],76029189,23),a=l(a,o=l(o,n=l(n,r,a,o,e[9],3654602809,4),r,a,e[12],3873151461,11),n,r,e[15],530742520,16),o,n,e[2],3299628645,23),a=u(a,o=u(o,n=u(n,r,a,o,e[0],4096336452,6),r,a,e[7],1126891415,10),n,r,e[14],2878612391,15),o,n,e[5],4237533241,21),a=u(a,o=u(o,n=u(n,r,a,o,e[12],1700485571,6),r,a,e[3],2399980690,10),n,r,e[10],4293915773,15),o,n,e[1],2240044497,21),a=u(a,o=u(o,n=u(n,r,a,o,e[8],1873313359,6),r,a,e[15],4264355552,10),n,r,e[6],2734768916,15),o,n,e[13],1309151649,21),a=u(a,o=u(o,n=u(n,r,a,o,e[4],4149444226,6),r,a,e[11],3174756917,10),n,r,e[2],718787259,15),o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+o|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=o}).call(this,n(16).Buffer)},function(e,t,n){(t=e.exports=n(341)).Stream=t,t.Readable=t,t.Writable=n(217),t.Duplex=n(79),t.Transform=n(345),t.PassThrough=n(739)},function(e,t,n){"use strict";(function(t,r,a){var i=n(166);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var a=r.callback;t.pendingcb--,a(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;b.WritableState=m;var A=n(126);A.inherits=n(3);var l={deprecate:n(738)},u=n(342),d=n(11).Buffer,f=a.Uint8Array||function(){};var h,p=n(343);function g(){}function m(e,t){s=s||n(79),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var a=e.highWaterMark,A=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(A||0===A)?A:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(I,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(a(r),e._writableState.errorEmitted=!0,e.emit("error",r),I(e,t))}(e,n,r,t,a);else{var o=B(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),r?c(y,e,n,o,a):y(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(e){if(s=s||n(79),!(h.call(b,this)||this instanceof s))return new b(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function E(e,t,n,r,a,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function y(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),I(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,E(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var A=n.chunk,l=n.encoding,u=n.callback;if(E(e,t,!1,t.objectMode?1:A.length,A,l,u),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function B(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var n=B(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}A.inherits(b,u),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===b&&(e&&e._writableState instanceof m)}})):h=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r=this._writableState,a=!1,o=!r.objectMode&&function(e){return d.isBuffer(e)||e instanceof f}(e);return o&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=g),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(o||function(e,t,n,r){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i.nextTick(r,o),a=!1),a}(this,r,e,n))&&(r.pendingcb++,a=function(e,t,n,r,a,i){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,a);r!==o&&(n=!0,a="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,I(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=p.destroy,b.prototype._undestroy=p.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(17),n(344).setImmediate,n(5))},function(e,t,n){"use strict";var r=n(16).Buffer,a=n(3),i=n(340),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],A=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function h(e,t){return e<>>32-t}function p(e,t,n,r,a,i,o,s){return h(e+(t^n^r)+i+o|0,s)+a|0}function g(e,t,n,r,a,i,o,s){return h(e+(t&n|~t&r)+i+o|0,s)+a|0}function m(e,t,n,r,a,i,o,s){return h(e+((t|~n)^r)+i+o|0,s)+a|0}function b(e,t,n,r,a,i,o,s){return h(e+(t&r|n&~r)+i+o|0,s)+a|0}function E(e,t,n,r,a,i,o,s){return h(e+(t^(n|~r))+i+o|0,s)+a|0}a(f,i),f.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,a=0|this._c,i=0|this._d,f=0|this._e,y=0|this._a,v=0|this._b,B=0|this._c,w=0|this._d,I=0|this._e,M=0;M<80;M+=1){var C,D;M<16?(C=p(n,r,a,i,f,e[s[M]],u[0],A[M]),D=E(y,v,B,w,I,e[c[M]],d[0],l[M])):M<32?(C=g(n,r,a,i,f,e[s[M]],u[1],A[M]),D=b(y,v,B,w,I,e[c[M]],d[1],l[M])):M<48?(C=m(n,r,a,i,f,e[s[M]],u[2],A[M]),D=m(y,v,B,w,I,e[c[M]],d[2],l[M])):M<64?(C=b(n,r,a,i,f,e[s[M]],u[3],A[M]),D=g(y,v,B,w,I,e[c[M]],d[3],l[M])):(C=E(n,r,a,i,f,e[s[M]],u[4],A[M]),D=p(y,v,B,w,I,e[c[M]],d[4],l[M])),n=f,f=i,i=h(a,10),a=r,r=C,y=I,I=w,w=h(B,10),B=v,v=D}var Q=this._b+a+w|0;this._b=this._c+i+I|0,this._c=this._d+f+y|0,this._d=this._e+n+v|0,this._e=this._a+r+B|0,this._a=Q},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=f},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(744),t.sha1=n(745),t.sha224=n(746),t.sha256=n(346),t.sha384=n(747),t.sha512=n(347)},function(e,t,n){"use strict";t.utils=n(753),t.Cipher=n(754),t.DES=n(755),t.CBC=n(756),t.EDE=n(757)},function(e,t,n){var r=n(758),a=n(766),i=n(357);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=a.createDecipher,t.createDecipheriv=t.Decipheriv=a.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(i)}},function(e,t,n){var r={ECB:n(759),CBC:n(760),CFB:n(761),CFB8:n(762),CFB1:n(763),OFB:n(764),CTR:n(355),GCM:n(355)},a=n(357);for(var i in a)a[i].module=r[a[i].mode];e.exports=a},function(e,t,n){(function(t){var r=n(21),a=n(92);function i(e,n){var a=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),i=n.modulus.byteLength(),s=(r.mont(n.modulus),new r(e).mul(a.blinder).umod(n.modulus)),c=s.toRed(r.mont(n.prime1)),A=s.toRed(r.mont(n.prime2)),l=n.coefficient,u=n.prime1,d=n.prime2,f=c.redPow(n.exponent1),h=A.redPow(n.exponent2);f=f.fromRed(),h=h.fromRed();var p=f.isub(h).imul(l).umod(u);return p.imul(d),h.iadd(p),new t(h.imul(a.unblinder).umod(n.modulus).toArray(!1,i))}function o(e){for(var t=e.modulus.byteLength(),n=new r(a(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(a(t));return n}e.exports=i,i.getr=o}).call(this,n(16).Buffer)},function(e,t,n){var r=t;r.utils=n(52),r.common=n(128),r.sha=n(782),r.ripemd=n(786),r.hmac=n(787),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";(function(t){ +!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";n.r(t);function r(){}function a(e,t){var n=new r;if(e instanceof r)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var a,o=-1,i=e.length;if(null==t)for(;++o=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var A,l,d,u=-1,f=n.length,h=r[a++],p=o(),g=s();++ur.length)return n;var i,s=a[o-1];return null!=t&&o>=r.length?i=n.entries():(i=[],n.each(function(t,n){i.push({key:n,values:e(t,o)})})),null!=s?i.sort(function(e,t){return s(e.key,t.key)}):i}(i(e,0,A,l),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return a[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function s(){return{}}function c(e,t,n){e[t]=n}function A(){return o()}function l(e,t,n){e.set(t,n)}function d(){}var u=o.prototype;function f(e,t){var n=new d;if(e instanceof d)e.each(function(e){n.add(e)});else if(e){var r=-1,a=e.length;if(null==t)for(;++r0&&void 0!==arguments[0]?arguments[0]:J,t=arguments[1];switch(t.type){case"@@redux-pouchdb/INIT":return r({},e,{stateLoaded:!0});case c:return J;case i.GET_CORPUS:return r({},e,{stateLoaded:!1});case i.GET_CORPUS+"_SUCCESS":case i.GET_CORPUS+"_FAIL":return r({},e,{stateLoaded:!0});case A:return r({},e,{creationModalOpen:!0});case l:return r({},e,{creationModalOpen:!1});case v:return r({},e,{activeSubview:t.payload});case F:return r({},e,{corpusMetadataModalOpen:!0});case x:return r({},e,{corpusMetadataModalOpen:!1,newCompositionModalOpen:!1});case T:return r({},e,{newCompositionModalOpen:!0});case N:return r({},e,{newCompositionModalOpen:!1,corpusMetadataModalOpen:!1});case d:return r({},e,{newMediaPrompted:!0});case h:return r({},e,{newMediaPrompted:!1});case u:return r({},e,{newTagPrompted:t.payload});case f:return r({},e,{newTagPrompted:!1});case O:return r({},e,{newTagCategoryPrompted:!0});case U:return r({},e,{newTagCategoryPrompted:!1});case _:return r({},e,{editedTagCategoryId:t.payload});case P:return r({},e,{editedTagId:t.payload});case R:return r({},e,{previewModalOpen:!0});case j:return r({},e,{previewModalOpen:!1});case p:return r({},e,{promptedToDeleteCorpusId:t.payload});case g:return r({},e,{promptedToDeleteMediaId:t.payload});case m:return r({},e,{promptedToDeleteCompositionId:t.payload});case k:return r({},e,{promptedToDeleteTagId:t.payload});case b:return r({},e,{mediaSearchString:t.payload});case E:return r({},e,{compositionsSearchString:t.payload});case y:return r({},e,{tagsSearchString:t.payload});case B:return r({},e,{asideMediaId:t.payload,asideCompositionId:void 0,asideTagId:void 0});case w:return r({},e,{asideCompositionId:t.payload,asideTagId:void 0,asideMediaId:void 0});case I:return r({},e,{asideCompositionId:void 0,asideMediaId:void 0,asideTagId:t.payload});case Y:return r({},e,{visibleTagCategoriesIds:t.payload});case S:return r({},e,{promptedToDeleteTagCategoryId:t.payload});case M:return r({},e,{asideTagMode:t.payload});case C:return r({},e,{importModalVisible:t.payload});case i.GET_CORPORA:return r({},e,{loadingCorpora:!0});case i.GET_CORPORA+"_SUCCESS":case i.GET_CORPORA+"_FAIL":return r({},e,{loadingCorpora:!1});default:return e}},corpora:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=arguments[1],n=void 0;switch(t.type){case i.DELETE_CORPUS+"_SUCCESS":case i.GET_CORPORA+"_SUCCESS":var a=t.result.data.corpora;return delete a._id,delete a._rev,r({},a);case G:case i.FORGET_DATA:return{};case i.CREATE_CORPUS+"_SUCCESS":case i.UPDATE_CORPUS+"_SUCCESS":return n=t.result.data.corpus,r({},e,s({},n.metadata.id,n));default:return e}},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H,t=arguments[1];switch(t.type){case C:return!1===t.payload?r({},e,{importCorpusCandidate:void 0,importCollisionsList:[]}):e;case D:return r({},e,{importCorpusCandidate:t.payload});case Q:return r({},e,{importCollisionsList:t.payload});default:return e}}});t.selector=(0,o.createStructuredSelector)({creationModalOpen:function(e){return e.ui.creationModalOpen},corpusMetadataModalOpen:function(e){return e.ui.corpusMetadataModalOpen},newCompositionModalOpen:function(e){return e.ui.newCompositionModalOpen},newMediaPrompted:function(e){return e.ui.newMediaPrompted},newTagPrompted:function(e){return e.ui.newTagPrompted},previewModalOpen:function(e){return e.ui.previewModalOpen},asideTagMode:function(e){return e.ui.asideTagMode},promptedToDeleteCorpusId:function(e){return e.ui.promptedToDeleteCorpusId},promptedToDeleteMediaId:function(e){return e.ui.promptedToDeleteMediaId},promptedToDeleteCompositionId:function(e){return e.ui.promptedToDeleteCompositionId},stateLoaded:function(e){return e.ui.stateLoaded},compositionsSearchString:function(e){return e.ui.compositionsSearchString},mediaSearchString:function(e){return e.ui.mediaSearchString},activeSubview:function(e){return e.ui.activeSubview},asideMediaId:function(e){return e.ui.asideMediaId},asideCompositionId:function(e){return e.ui.asideCompositionId},asideTagId:function(e){return e.ui.asideTagId},tagsSearchString:function(e){return e.ui.tagsSearchString},visibleTagCategoriesIds:function(e){return e.ui.visibleTagCategoriesIds},loadingCorpora:function(e){return e.ui.loadingCorpora},editedTagCategoryId:function(e){return e.ui.editedTagCategoryId},newTagCategoryPrompted:function(e){return e.ui.newTagCategoryPrompted},promptedToDeleteTagCategoryId:function(e){return e.ui.promptedToDeleteTagCategoryId},promptedToDeleteTagId:function(e){return e.ui.promptedToDeleteTagId},editedTagId:function(e){return e.ui.editedTagId},importModalVisible:function(e){return e.ui.importModalVisible},importCorpusCandidate:function(e){return e.data.importCorpusCandidate},importCollisionsList:function(e){return e.data.importCollisionsList},corporaList:function(e){return e.corpora}})},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,a){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,i,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,a)});default:for(o=new Array(s-1),i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function A(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return a>0&&(e.lastNeed=a-1),a;if(--r=0)return a>0&&(e.lastNeed=a-2),a;if(--r=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){var r=n(11).Buffer;function a(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),a=0;a>>24]^l[h>>>16&255]^d[p>>>8&255]^u[255&g]^t[m++],i=A[h>>>24]^l[p>>>16&255]^d[g>>>8&255]^u[255&f]^t[m++],s=A[p>>>24]^l[g>>>16&255]^d[f>>>8&255]^u[255&h]^t[m++],c=A[g>>>24]^l[f>>>16&255]^d[h>>>8&255]^u[255&p]^t[m++],f=o,h=i,p=s,g=c;return o=(r[f>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&g])^t[m++],i=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[g>>>8&255]<<8|r[255&f])^t[m++],s=(r[p>>>24]<<24|r[g>>>16&255]<<16|r[f>>>8&255]<<8|r[255&h])^t[m++],c=(r[g>>>24]<<24|r[f>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[m++],[o>>>=0,i>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],a=[[],[],[],[]],o=[[],[],[],[]],i=0,s=0,c=0;c<256;++c){var A=s^s<<1^s<<2^s<<3^s<<4;A=A>>>8^255&A^99,n[i]=A,r[A]=i;var l=e[i],d=e[l],u=e[d],f=257*e[A]^16843008*A;a[0][i]=f<<24|f>>>8,a[1][i]=f<<16|f>>>16,a[2][i]=f<<8|f>>>24,a[3][i]=f,f=16843009*u^65537*d^257*l^16843008*i,o[0][A]=f<<24|f>>>8,o[1][A]=f<<16|f>>>16,o[2][A]=f<<8|f>>>24,o[3][A]=f,0===i?i=s=1:(i=l^e[e[e[u^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:a,INV_SUB_MIX:o}}();function A(e){this._key=a(e),this._reset()}A.blockSize=16,A.keySize=32,A.prototype.blockSize=A.blockSize,A.prototype.keySize=A.keySize,A.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),a=[],o=0;o>>24,i=c.SBOX[i>>>24]<<24|c.SBOX[i>>>16&255]<<16|c.SBOX[i>>>8&255]<<8|c.SBOX[255&i],i^=s[o/t|0]<<24):t>6&&o%t==4&&(i=c.SBOX[i>>>24]<<24|c.SBOX[i>>>16&255]<<16|c.SBOX[i>>>8&255]<<8|c.SBOX[255&i]),a[o]=a[o-t]^i}for(var A=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[u>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[u>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&u]]}this._nRounds=n,this._keySchedule=a,this._invKeySchedule=A},A.prototype.encryptBlockRaw=function(e){return i(e=a(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},A.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},A.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var n=i(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},A.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=A},function(e,t,n){var r=n(11).Buffer,a=n(215);e.exports=function(e,t,n,o){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=n/8,s=r.alloc(i),c=r.alloc(o||0),A=r.alloc(0);i>0||o>0;){var l=new a;l.update(A),l.update(e),t&&l.update(t),A=l.digest();var d=0;if(i>0){var u=s.length-i;d=Math.min(i,A.length),A.copy(s,u,0,d),i-=d}if(d0){var f=c.length-o,h=Math.min(o,A.length-d);A.copy(c,f,d,d+h),o-=h}}return A.fill(0),{key:s,iv:c}}},function(e,t,n){"use strict";var r=t;r.base=n(772),r.short=n(773),r.mont=n(774),r.edwards=n(775)},function(e,t,n){(function(t){var r=n(791),a=n(803),o=n(804),i=n(221),s=n(349);function c(e){var n;"object"!=typeof e||t.isBuffer(e)||(n=e.passphrase,e=e.key),"string"==typeof e&&(e=new t(e));var c,A,l=o(e,n),d=l.tag,u=l.data;switch(d){case"CERTIFICATE":A=r.certificate.decode(u,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(A||(A=r.PublicKey.decode(u,"der")),c=A.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(A.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return A.subjectPrivateKey=A.subjectPublicKey,{type:"ec",data:A};case"1.2.840.10040.4.1":return A.algorithm.params.pub_key=r.DSAparam.decode(A.subjectPublicKey.data,"der"),{type:"dsa",data:A.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+d);case"ENCRYPTED PRIVATE KEY":u=function(e,n){var r=e.algorithm.decrypt.kde.kdeparams.salt,o=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=a[e.algorithm.decrypt.cipher.algo.join(".")],A=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,d=parseInt(c.split("-")[1],10)/8,u=s.pbkdf2Sync(n,r,o,d),f=i.createDecipheriv(c,u,A),h=[];return h.push(f.update(l)),h.push(f.final()),t.concat(h)}(u=r.EncryptedPrivateKey.decode(u,"der"),n);case"PRIVATE KEY":switch(c=(A=r.PrivateKey.decode(u,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(A.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:A.algorithm.curve,privateKey:r.ECPrivateKey.decode(A.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return A.algorithm.params.priv_key=r.DSAparam.decode(A.subjectPrivateKey,"der"),{type:"dsa",params:A.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+d);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(u,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(u,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(u,"der")};case"EC PRIVATE KEY":return{curve:(u=r.ECPrivateKey.decode(u,"der")).parameters.value,privateKey:u.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=c,c.signature=r.signature}).call(this,n(16).Buffer)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(e,t,n){(function(t){for(var r=n(842),a="undefined"==typeof window?t:window,o=["moz","webkit"],i="AnimationFrame",s=a["request"+i],c=a["cancel"+i]||a["cancelRequest"+i],A=0;!s&&A1&&void 0!==arguments[1]?arguments[1]:"txt",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dicto",a=new Blob([e],{type:"text/plain;charset=utf-8"}),o=n+"."+t;return r.default.saveAs(a,o),Promise.resolve()};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1177))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_CONFIG_PROPS=t.defaultProps=t.propTypes=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));var a=r.default.string,o=r.default.bool,i=r.default.number,s=r.default.array,c=r.default.oneOfType,A=r.default.shape,l=r.default.object,d=r.default.func;t.propTypes={url:c([a,s,l]),playing:o,loop:o,controls:o,volume:i,muted:o,playbackRate:i,width:c([a,i]),height:c([a,i]),style:l,progressInterval:i,playsinline:o,wrapper:c([a,d]),config:A({soundcloud:A({options:l}),youtube:A({playerVars:l,preload:o}),facebook:A({appId:a}),dailymotion:A({params:l,preload:o}),vimeo:A({playerOptions:l,preload:o}),file:A({attributes:l,tracks:s,forceVideo:o,forceAudio:o,forceHLS:o,forceDASH:o,hlsOptions:l}),wistia:A({options:l}),mixcloud:A({options:l}),twitch:A({options:l})}),onReady:d,onStart:d,onPlay:d,onPause:d,onBuffer:d,onEnded:d,onError:d,onDuration:d,onSeek:d,onProgress:d},t.defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,wrapper:"div",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},preload:!1},facebook:{appId:"1309697205772819"},dailymotion:{params:{api:1,"endscreen-enable":!1},preload:!1},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},preload:!1},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,hlsOptions:{}},wistia:{options:{}},mixcloud:{options:{hide_cover:1}},twitch:{options:{}}},onReady:function(){},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onSeek:function(){},onProgress:function(){}},t.DEPRECATED_CONFIG_PROPS=["soundcloudConfig","youtubeConfig","facebookConfig","dailymotionConfig","vimeoConfig","fileConfig","wistiaConfig"]},function(e,t,n){"use strict";e.exports=function(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r100&&d,h.dispatchEvent("click",t)}return e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}function w(e){var t,n,r,a=sigma.utils.getDelta(e);if(m("mouseEnabled")&&m("mouseWheelEnabled")&&0!==a)return n=a>0?1/m("zoomingRatio"):m("zoomingRatio"),t=g.cameraPosition(sigma.utils.getX(e)-sigma.utils.getCenter(e).x,sigma.utils.getY(e)-sigma.utils.getCenter(e).y,!0),r={duration:m("mouseZoomDuration")},sigma.utils.zoomTo(g,t.x,t.y,n,r),e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}sigma.classes.dispatcher.extend(this),sigma.utils.doubleClick(p,"click",function(e){var t,n,r;if(m("mouseEnabled"))return n=1/m("doubleClickZoomingRatio"),h.dispatchEvent("doubleclick",sigma.utils.mouseCoords(e,s,c)),m("doubleClickEnabled")&&(t=g.cameraPosition(sigma.utils.getX(e)-sigma.utils.getCenter(e).x,sigma.utils.getY(e)-sigma.utils.getCenter(e).y,!0),r={duration:m("doubleClickZoomDuration")},sigma.utils.zoomTo(g,t.x,t.y,n,r)),e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}),p.addEventListener("DOMMouseScroll",w,!1),p.addEventListener("mousewheel",w,!1),p.addEventListener("mousemove",b,!1),p.addEventListener("mousedown",y,!1),p.addEventListener("click",B,!1),p.addEventListener("mouseout",v,!1),document.addEventListener("mouseup",E,!1),this.kill=function(){sigma.utils.unbindDoubleClick(p,"click"),p.removeEventListener("DOMMouseScroll",w),p.removeEventListener("mousewheel",w),p.removeEventListener("mousemove",b),p.removeEventListener("mousedown",y),p.removeEventListener("click",B),p.removeEventListener("mouseout",v),document.removeEventListener("mouseup",E)}}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.captors"),sigma.captors.touch=function(e,t,n){var r,a,o,i,s,c,A,l,d,u,f,h,p,g,m,b,E=this,y=e,v=t,B=n,w=[];function I(e){var t=sigma.utils.getOffset(y);return{x:e.pageX-t.left,y:e.pageY-t.top}}function M(e){var t,n,g,m,b,E;if(B("touchEnabled"))switch((w=e.touches).length){case 1:v.isMoving=!0,p=1,r=v.x,a=v.y,s=v.x,c=v.y,b=I(w[0]),A=b.x,l=b.y;break;case 2:return v.isMoving=!0,p=2,b=I(w[0]),E=I(w[1]),t=b.x,g=b.y,n=E.x,m=E.y,s=v.x,c=v.y,o=v.angle,i=v.ratio,r=v.x,a=v.y,A=t,l=g,d=n,u=m,f=Math.atan2(u-l,d-A),h=Math.sqrt((u-l)*(u-l)+(d-A)*(d-A)),e.preventDefault(),!1}}function C(e){if(B("touchEnabled")){w=e.touches;var t=B("touchInertiaRatio");switch(b&&(g=!1,clearTimeout(b)),p){case 2:if(1===e.touches.length){M(e),e.preventDefault();break}case 1:v.isMoving=!1,E.dispatchEvent("stopDrag"),g&&(m=!1,sigma.misc.animation.camera(v,{x:v.x+t*(v.x-s),y:v.y+t*(v.y-c)},{easing:"quadraticOut",duration:B("touchInertiaDuration")})),g=!1,p=0}}}function D(e){if(!m&&B("touchEnabled")){var t,n,y,M,C,D,Q,Y,S,k,F,x,T,N,R,j,O;switch(w=e.touches,g=!0,b&&clearTimeout(b),b=setTimeout(function(){g=!1},B("dragTimeout")),p){case 1:t=(Y=I(w[0])).x,y=Y.y,k=v.cameraPosition(t-A,y-l,!0),N=r-k.x,R=a-k.y,N===v.x&&R===v.y||(s=v.x,c=v.y,v.goTo({x:N,y:R}),E.dispatchEvent("mousemove",sigma.utils.mouseCoords(e,Y.x,Y.y)),E.dispatchEvent("drag"));break;case 2:Y=I(w[0]),S=I(w[1]),t=Y.x,y=Y.y,n=S.x,M=S.y,F=v.cameraPosition((A+d)/2-sigma.utils.getCenter(e).x,(l+u)/2-sigma.utils.getCenter(e).y,!0),Q=v.cameraPosition((t+n)/2-sigma.utils.getCenter(e).x,(y+M)/2-sigma.utils.getCenter(e).y,!0),x=Math.atan2(M-y,n-t)-f,T=Math.sqrt((M-y)*(M-y)+(n-t)*(n-t))/h,t=F.x,y=F.y,j=i/T,y*=T,O=o-x,n=(t*=T)*(C=Math.cos(-x))+y*(D=Math.sin(-x)),y=M=y*C-t*D,N=(t=n)-Q.x+r,R=y-Q.y+a,j===v.ratio&&O===v.angle&&N===v.x&&R===v.y||(s=v.x,c=v.y,v.angle,v.ratio,v.goTo({x:N,y:R,angle:O,ratio:j}),E.dispatchEvent("drag"))}return e.preventDefault(),!1}}sigma.classes.dispatcher.extend(this),sigma.utils.doubleClick(y,"touchstart",function(e){var t,n,r;if(e.touches&&1===e.touches.length&&B("touchEnabled"))return m=!0,n=1/B("doubleClickZoomingRatio"),t=I(e.touches[0]),E.dispatchEvent("doubleclick",sigma.utils.mouseCoords(e,t.x,t.y)),B("doubleClickEnabled")&&(t=v.cameraPosition(t.x-sigma.utils.getCenter(e).x,t.y-sigma.utils.getCenter(e).y,!0),r={duration:B("doubleClickZoomDuration"),onComplete:function(){m=!1}},sigma.utils.zoomTo(v,t.x,t.y,n,r)),e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}),y.addEventListener("touchstart",M,!1),y.addEventListener("touchend",C,!1),y.addEventListener("touchcancel",C,!1),y.addEventListener("touchleave",C,!1),y.addEventListener("touchmove",D,!1),this.kill=function(){sigma.utils.unbindDoubleClick(y,"touchstart"),y.addEventListener("touchstart",M),y.addEventListener("touchend",C),y.addEventListener("touchcancel",C),y.addEventListener("touchleave",C),y.addEventListener("touchmove",D)}}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.classes"),sigma.classes.camera=function(e,t,n,r){sigma.classes.dispatcher.extend(this),Object.defineProperty(this,"graph",{value:t}),Object.defineProperty(this,"id",{value:e}),Object.defineProperty(this,"readPrefix",{value:"read_cam"+e+":"}),Object.defineProperty(this,"prefix",{value:"cam"+e+":"}),this.x=0,this.y=0,this.ratio=1,this.angle=0,this.isAnimated=!1,this.settings="object"==typeof r&&r?n.embedObject(r):n},sigma.classes.camera.prototype.goTo=function(t){if(!this.settings("enableCamera"))return this;var n,r,a=t||{},o=["x","y","ratio","angle"];for(n=0,r=o.length;ne.y1?{x1:e.x1-e.height,y1:e.y1,x2:e.x1,y2:e.y1,height:e.height}:e.x1===e.x2&&e.y2=l},collision:function(e,t){for(var n=this.axis(e,t),r=!0,a=0;a<4;a++)r=r&&this.axisCollision(n[a],e,t);return r}};function a(e,t){for(var n=[],r=0;r<4;r++)e.x2>=t[r][0].x&&e.x1<=t[r][1].x&&e.y1+e.height>=t[r][0].y&&e.y1<=t[r][2].y&&n.push(r);return n}function o(e,t){for(var n=[],a=0;a<4;a++)r.collision(e,t[a])&&n.push(a);return n}function i(e,t){var n,r,a=t.level+1,o=Math.round(t.bounds.width/2),i=Math.round(t.bounds.height/2),s=Math.round(t.bounds.x),A=Math.round(t.bounds.y);switch(e){case 0:n=s,r=A;break;case 1:n=s+o,r=A;break;case 2:n=s,r=A+i;break;case 3:n=s+o,r=A+i}return c({x:n,y:r,width:o,height:i},a,t.maxElements,t.maxLevel)}function s(e,t,r){if(r.level4)throw"attach: Wrong arguments.";var a;if("constructor"===e)a=o;else if(r){if(!s[e])throw'The method "'+e+'" does not exist.';a=s[e]}else{if(!i[e])throw'The method "'+e+'" does not exist.';a=i[e]}if(a[t])throw'A function "'+t+'" is already attached to the method "'+e+'".';return a[t]=n,this},l.attachBefore=function(e,t,n){return this.attach(e,t,n,!0)},l.addIndex=function(e,t){if("string"!=typeof e||Object(t)!==t||2!==arguments.length)throw"addIndex: Wrong arguments.";if(a[e])throw'The index "'+e+'" already exists.';var n;for(n in a[e]=t,t){if("function"!=typeof t[n])throw"The bindings must be functions.";l.attach(n,e,t[n])}return this},l.addMethod("addNode",function(e){if(Object(e)!==e||1!==arguments.length)throw"addNode: Wrong arguments.";if("string"!=typeof e.id&&"number"!=typeof e.id)throw"The node must have a string or number id.";if(this.nodesIndex[e.id])throw'The node "'+e.id+'" already exists.';var t,n=e.id,r=Object.create(null);if(this.settings("clone"))for(t in e)"id"!==t&&(r[t]=e[t]);else r=e;return this.settings("immutable")?Object.defineProperty(r,"id",{value:n,enumerable:!0}):r.id=n,this.inNeighborsIndex[n]=Object.create(null),this.outNeighborsIndex[n]=Object.create(null),this.allNeighborsIndex[n]=Object.create(null),this.inNeighborsCount[n]=0,this.outNeighborsCount[n]=0,this.allNeighborsCount[n]=0,this.nodesArray.push(r),this.nodesIndex[r.id]=r,this}),l.addMethod("addEdge",function(e){if(Object(e)!==e||1!==arguments.length)throw"addEdge: Wrong arguments.";if("string"!=typeof e.id&&"number"!=typeof e.id)throw"The edge must have a string or number id.";if("string"!=typeof e.source&&"number"!=typeof e.source||!this.nodesIndex[e.source])throw"The edge source must have an existing node id.";if("string"!=typeof e.target&&"number"!=typeof e.target||!this.nodesIndex[e.target])throw"The edge target must have an existing node id.";if(this.edgesIndex[e.id])throw'The edge "'+e.id+'" already exists.';var t,n=Object.create(null);if(this.settings("clone"))for(t in e)"id"!==t&&"source"!==t&&"target"!==t&&(n[t]=e[t]);else n=e;return this.settings("immutable")?(Object.defineProperty(n,"id",{value:e.id,enumerable:!0}),Object.defineProperty(n,"source",{value:e.source,enumerable:!0}),Object.defineProperty(n,"target",{value:e.target,enumerable:!0})):(n.id=e.id,n.source=e.source,n.target=e.target),this.edgesArray.push(n),this.edgesIndex[n.id]=n,this.inNeighborsIndex[n.target][n.source]||(this.inNeighborsIndex[n.target][n.source]=Object.create(null)),this.inNeighborsIndex[n.target][n.source][n.id]=n,this.outNeighborsIndex[n.source][n.target]||(this.outNeighborsIndex[n.source][n.target]=Object.create(null)),this.outNeighborsIndex[n.source][n.target][n.id]=n,this.allNeighborsIndex[n.source][n.target]||(this.allNeighborsIndex[n.source][n.target]=Object.create(null)),this.allNeighborsIndex[n.source][n.target][n.id]=n,n.target!==n.source&&(this.allNeighborsIndex[n.target][n.source]||(this.allNeighborsIndex[n.target][n.source]=Object.create(null)),this.allNeighborsIndex[n.target][n.source][n.id]=n),this.inNeighborsCount[n.target]++,this.outNeighborsCount[n.source]++,this.allNeighborsCount[n.target]++,this.allNeighborsCount[n.source]++,this}),l.addMethod("dropNode",function(e){if("string"!=typeof e&&"number"!=typeof e||1!==arguments.length)throw"dropNode: Wrong arguments.";if(!this.nodesIndex[e])throw'The node "'+e+'" does not exist.';var t,n,r;for(delete this.nodesIndex[e],t=0,r=this.nodesArray.length;t=0;t--)this.edgesArray[t].source!==e&&this.edgesArray[t].target!==e||this.dropEdge(this.edgesArray[t].id);for(n in delete this.inNeighborsIndex[e],delete this.outNeighborsIndex[e],delete this.allNeighborsIndex[e],delete this.inNeighborsCount[e],delete this.outNeighborsCount[e],delete this.allNeighborsCount[e],this.nodesIndex)delete this.inNeighborsIndex[n][e],delete this.outNeighborsIndex[n][e],delete this.allNeighborsIndex[n][e];return this}),l.addMethod("dropEdge",function(e){if("string"!=typeof e&&"number"!=typeof e||1!==arguments.length)throw"dropEdge: Wrong arguments.";if(!this.edgesIndex[e])throw'The edge "'+e+'" does not exist.';var t,n,r;for(r=this.edgesIndex[e],delete this.edgesIndex[e],t=0,n=this.edgesArray.length;te.y1?{x1:e.x1-e.height,y1:e.y1,x2:e.x1,y2:e.y1,height:e.height}:e.x1===e.x2&&e.y2=l},collision:function(e,t){for(var n=this.axis(e,t),r=!0,a=0;a<4;a++)r=r&&this.axisCollision(n[a],e,t);return r}};function a(e,t){for(var n=[],r=0;r<4;r++)e.x2>=t[r][0].x&&e.x1<=t[r][1].x&&e.y1+e.height>=t[r][0].y&&e.y1<=t[r][2].y&&n.push(r);return n}function o(e,t){for(var n=[],a=0;a<4;a++)r.collision(e,t[a])&&n.push(a);return n}function i(e,t){var n,r,a=t.level+1,o=Math.round(t.bounds.width/2),i=Math.round(t.bounds.height/2),s=Math.round(t.bounds.x),A=Math.round(t.bounds.y);switch(e){case 0:n=s,r=A;break;case 1:n=s+o,r=A;break;case 2:n=s,r=A+i;break;case 3:n=s+o,r=A+i}return c({x:n,y:r,width:o,height:i},a,t.maxElements,t.maxLevel)}function s(e,t,r){if(r.leveli.weightTime){s.splice(e,0,i),a=!0;break}a||s.push(i)}return r?i:null}function p(e){var t=s.length;i[e.id]=e,e.status="running",t&&(e.weightTime=s[t-1].weightTime,e.currentTime=e.weightTime*(e.weight||1)),e.startTime=B(),f("jobStarted",y(e)),s.push(e)}function g(){var e,t,n;for(e in o)(t=o[e]).after?c[e]=t:p(t),delete o[e];for(a=!!s.length;s.length&&B()-r=0;e--)for(t in arguments[e])n[t]=arguments[e][t];return n}function y(e){var t,n,r;if(!e)return e;if(Array.isArray(e))for(t=[],n=0,r=e.length;n1)for(r=0,a=(i=Array.isArray(t)?t:t.split(/ /)).length;r!==a;r+=1)o=i[r],u[o]||(u[o]=[]),u[o].push({handler:n})},unbind:function(e,t){var n,r,a,o,i,s,c=Array.isArray(e)?e:e.split(/ /);if(arguments.length)if(t)for(n=0,r=c.length;n!==r;n+=1){if(s=c[n],u[s]){for(i=[],a=0,o=u[s].length;a!==o;a+=1)u[s][a].handler!==t&&i.push(u[s][a]);u[s]=i}u[s]&&0===u[s].length&&delete u[s]}else for(n=0,r=c.length;n!==r;n+=1)delete u[c[n]];else u=Object.create(null)},version:"0.1.0"};void 0!==e&&e.exports&&(t=e.exports=w),t.conrad=w,n.conrad=w}(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.middlewares"),sigma.middlewares.copy=function(e,t){var n,r,a;if(t+""!=e+""){for(n=0,r=(a=this.graph.nodes()).length;n=1?(n.isAnimated=!1,n.goTo({x:r.x!==e?r.x:A.x,y:r.y!==e?r.y:A.y,ratio:r.ratio!==e?r.ratio:A.ratio,angle:r.angle!==e?r.angle:A.angle}),cancelAnimationFrame(i),delete sigma.misc.animation.running[i],"function"==typeof l.onComplete&&l.onComplete()):(t=c(a),n.isAnimated=!0,n.goTo({x:r.x!==e?A.x+(r.x-A.x)*t:A.x,y:r.y!==e?A.y+(r.y-A.y)*t:A.y,ratio:r.ratio!==e?A.ratio+(r.ratio-A.ratio)*t:A.ratio,angle:r.angle!==e?A.angle+(r.angle-A.angle)*t:A.angle}),"function"==typeof l.onNewFrame&&l.onNewFrame(),s.frameId=requestAnimationFrame(o))},i=t(),s={frameId:requestAnimationFrame(o),target:n,type:"camera",options:l,fn:o},sigma.misc.animation.running[i]=s,i},sigma.misc.animation.kill=function(e){if(1!==arguments.length||"number"!=typeof e)throw"animation.kill: Wrong arguments.";var t=sigma.misc.animation.running[e];return t&&(cancelAnimationFrame(e),delete sigma.misc.animation.running[t.frameId],"camera"===t.type&&(t.target.isAnimated=!1),"function"==typeof(t.options||{}).onComplete&&t.options.onComplete()),this},sigma.misc.animation.killAll=function(e){var t,n,r=0,a="string"==typeof e?e:null,o="object"==typeof e?e:null,i=sigma.misc.animation.running;for(n in i)a&&i[n].type!==a||o&&i[n].target!==o||(t=sigma.misc.animation.running[n],cancelAnimationFrame(t.frameId),delete sigma.misc.animation.running[n],"camera"===t.type&&(t.target.isAnimated=!1),r++,"function"==typeof(t.options||{}).onComplete&&t.options.onComplete());return r},sigma.misc.animation.has=function(e){var t,n="string"==typeof e?e:null,r="object"==typeof e?e:null,a=sigma.misc.animation.running;for(t in a)if(!(n&&a[t].type!==n||r&&a[t].target!==r))return!0;return!1}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.misc"),sigma.misc.bindDOMEvents=function(e){var t=this,n=this.graph;function r(e){this.attr=function(t){return e.getAttributeNS(null,t)},this.tag=e.tagName,this.class=this.attr("class"),this.id=this.attr("id"),this.isNode=function(){return!!~this.class.indexOf(t.settings("classPrefix")+"-node")},this.isEdge=function(){return!!~this.class.indexOf(t.settings("classPrefix")+"-edge")},this.isHover=function(){return!!~this.class.indexOf(t.settings("classPrefix")+"-hover")}}function a(e){if(t.settings("eventsEnabled")){t.dispatchEvent("click",e);var a=new r(e.target);a.isNode()?t.dispatchEvent("clickNode",{node:n.nodes(a.attr("data-node-id"))}):t.dispatchEvent("clickStage"),e.preventDefault(),e.stopPropagation()}}function o(e){if(t.settings("eventsEnabled")){t.dispatchEvent("doubleClick",e);var a=new r(e.target);a.isNode()?t.dispatchEvent("doubleClickNode",{node:n.nodes(a.attr("data-node-id"))}):t.dispatchEvent("doubleClickStage"),e.preventDefault(),e.stopPropagation()}}e.addEventListener("click",a,!1),sigma.utils.doubleClick(e,"click",o),e.addEventListener("touchstart",a,!1),sigma.utils.doubleClick(e,"touchstart",o),e.addEventListener("mouseover",function(e){var a=e.toElement||e.target;if(t.settings("eventsEnabled")&&a){var o=new r(a);if(o.isNode())t.dispatchEvent("overNode",{node:n.nodes(o.attr("data-node-id"))});else if(o.isEdge()){var i=n.edges(o.attr("data-edge-id"));t.dispatchEvent("overEdge",{edge:i,source:n.nodes(i.source),target:n.nodes(i.target)})}}},!0),e.addEventListener("mouseout",function(e){var a=e.fromElement||e.originalTarget;if(t.settings("eventsEnabled")){var o=new r(a);if(o.isNode())t.dispatchEvent("outNode",{node:n.nodes(o.attr("data-node-id"))});else if(o.isEdge()){var i=n.edges(o.attr("data-edge-id"));t.dispatchEvent("outEdge",{edge:i,source:n.nodes(i.source),target:n.nodes(i.target)})}}},!0)}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.misc"),sigma.misc.bindEvents=function(t){var n,r,a,o,i=this;function s(e){e&&(a="x"in e.data?e.data.x:a,o="y"in e.data?e.data.y:o);var n,r,s,c,A,l,d,u,f=[],h=a+i.width/2,p=o+i.height/2,g=i.camera.cameraPosition(a,o),m=i.camera.quadtree.point(g.x,g.y);if(m.length)for(n=0,s=m.length;nA-d&&hl-d&&pf[r].size){f.splice(r,0,c),u=!0;break}u||f.push(c)}return f}function c(n){if(!i.settings("enableEdgeHovering"))return[];var r=sigma.renderers.canvas&&i instanceof sigma.renderers.canvas;if(!r)throw new Error("The edge events feature is not compatible with the WebGL renderer");n&&(a="x"in n.data?n.data.x:a,o="y"in n.data?n.data.y:o);var s,c,A,l,d,u,f,h,p,g,m=i.settings("edgeHoverPrecision"),b={},E=[],y=a+i.width/2,v=o+i.height/2,B=i.camera.cameraPosition(a,o),w=[];if(r)for(s=0,A=(l=i.camera.quadtree.area(i.camera.getRectangle(i.width,i.height))).length;se[c].size){e.splice(c,0,t),g=!0;break}g||e.push(t)}if(i.camera.edgequadtree!==e&&(w=i.camera.edgequadtree.point(B.x,B.y)),w.length)for(s=0,A=w.length;sf[t+"size"]&&sigma.utils.getDistance(h[t+"x"],h[t+"y"],y,v)>h[t+"size"]&&("curve"==d.type||"curvedArrow"==d.type?f.id===h.id?(p=sigma.utils.getSelfLoopControlPoints(f[t+"x"],f[t+"y"],f[t+"size"]),sigma.utils.isPointOnBezierCurve(y,v,f[t+"x"],f[t+"y"],h[t+"x"],h[t+"y"],p.x1,p.y1,p.x2,p.y2,Math.max(u,m))&&I(E,d)):(p=sigma.utils.getQuadraticControlPoint(f[t+"x"],f[t+"y"],h[t+"x"],h[t+"y"]),sigma.utils.isPointOnQuadraticCurve(y,v,f[t+"x"],f[t+"y"],h[t+"x"],h[t+"y"],p.x,p.y,Math.max(u,m))&&I(E,d)):sigma.utils.isPointOnSegment(y,v,f[t+"x"],f[t+"y"],h[t+"x"],h[t+"y"],Math.max(u,m))&&I(E,d));return E}function A(e){var t,n,r={},a={};function o(e){if(i.settings("eventsEnabled")){t=s(e),n=c(e);var o,A,l,d,u=[],f=[],h={},p=t.length,g=[],m=[],b={},E=n.length;for(o=0;o0&&(t.beginPath(),t.fillStyle="node"===n("nodeBorderColor")?e.color||n("defaultNodeColor"):n("defaultNodeBorderColor"),t.arc(e[A+"x"],e[A+"y"],l+n("borderSize"),0,2*Math.PI,!0),t.closePath(),t.fill()),(sigma.canvas.nodes[e.type]||sigma.canvas.nodes.def)(e,t,n),e.label&&"string"==typeof e.label&&(t.fillStyle="node"===n("labelHoverColor")?e.color||n("defaultNodeColor"):n("defaultLabelHoverColor"),t.fillText(e.label,Math.round(e[A+"x"]+l+3),Math.round(e[A+"y"]+d/3)))}}).call(this)}).call(window)},function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.canvas.labels"),sigma.canvas.labels.def=function(e,t,n){var r,a=n("prefix")||"",o=e[a+"size"];o=0;t--)this.killRenderer(n[t]);return delete this.renderersPerCamera[e.id],delete this.cameraFrames[e.id],delete this.cameras[e.id],e.kill&&e.kill(),this},n.prototype.addRenderer=function(e){var t,r,a,o,i=e||{};if("string"==typeof i?i={container:document.getElementById(i)}:i instanceof HTMLElement&&(i={container:i}),"string"==typeof i.container&&(i.container=document.getElementById(i.container)),"id"in i)t=i.id;else{for(t=0;this.renderers[""+t];)t++;t=""+t}if(this.renderers[t])throw'sigma.addRenderer: The renderer "'+t+'" already exists.';if(r=(r="function"==typeof i.type?i.type:n.renderers[i.type])||n.renderers.def,a="camera"in i?i.camera instanceof n.classes.camera?i.camera:this.cameras[i.camera]||this.addCamera(i.camera):this.addCamera(),this.cameras[a.id]!==a)throw"sigma.addRenderer: The camera is not properly referenced.";return o=new r(this.graph,a,this.settings,i),this.renderers[t]=o,Object.defineProperty(o,"id",{value:t}),o.bind&&o.bind(["click","rightClick","clickStage","doubleClickStage","rightClickStage","clickNode","clickNodes","clickEdge","clickEdges","doubleClickNode","doubleClickNodes","doubleClickEdge","doubleClickEdges","rightClickNode","rightClickNodes","rightClickEdge","rightClickEdges","overNode","overNodes","overEdge","overEdges","outNode","outNodes","outEdge","outEdges","downNode","downNodes","downEdge","downEdges","upNode","upNodes","upEdge","upEdges"],this._handler),this.renderersPerCamera[a.id].push(o),o},n.prototype.killRenderer=function(e){if(!(e="string"==typeof e?this.renderers[e]:e))throw"sigma.killRenderer: The renderer is undefined.";var t=this.renderersPerCamera[e.camera.id],n=t.indexOf(e);return n>=0&&t.splice(n,1),e.kill&&e.kill(),delete this.renderers[e.id],this},n.prototype.refresh=function(t){var r,a,o,i,s,c,A=0;for(t=t||{},r=0,a=(i=this.middlewares||[]).length;r=0;e--)for(t in arguments[e])n[t]=arguments[e][t];return n},sigma.utils.dateNow=function(){return Date.now?Date.now():(new Date).getTime()},sigma.utils.pkg=function(e){return(e||"").split(".").reduce(function(e,t){return t in e?e[t]:e[t]={}},t)},sigma.utils.id=function(){var e=0;return function(){return++e}}();var n={};sigma.utils.floatColor=function(e){if(n[e])return n[e];var t=e,r=0,a=0,o=0;"#"===e[0]?3===(e=e.slice(1)).length?(r=parseInt(e.charAt(0)+e.charAt(0),16),a=parseInt(e.charAt(1)+e.charAt(1),16),o=parseInt(e.charAt(2)+e.charAt(2),16)):(r=parseInt(e.charAt(0)+e.charAt(1),16),a=parseInt(e.charAt(2)+e.charAt(3),16),o=parseInt(e.charAt(4)+e.charAt(5),16)):e.match(/^ *rgba? *\(/)&&(r=+(e=e.match(/^ *rgba? *\( *([0-9]*) *, *([0-9]*) *, *([0-9]*) *(,.*)?\) *$/))[1],a=+e[2],o=+e[3]);var i=256*r*256+256*a+o;return n[t]=i,i},sigma.utils.zoomTo=function(e,t,n,r,a){var o,i,s,c=e.settings;(i=Math.max(c("zoomMin"),Math.min(c("zoomMax"),e.ratio*r)))!==e.ratio&&(s={x:t*(1-(r=i/e.ratio))+e.x,y:n*(1-r)+e.y,ratio:i},a&&a.duration?(o=sigma.misc.animation.killAll(e),a=sigma.utils.extend(a,{easing:o?"quadraticOut":"quadraticInOut"}),sigma.misc.animation.camera(e,s,a)):(e.goTo(s),a&&a.onComplete&&a.onComplete()))},sigma.utils.getQuadraticControlPoint=function(e,t,n,r){return{x:(e+n)/2+(r-t)/4,y:(t+r)/2+(e-n)/4}},sigma.utils.getPointOnQuadraticCurve=function(e,t,n,r,a,o,i){return{x:Math.pow(1-e,2)*t+2*(1-e)*e*o+Math.pow(e,2)*r,y:Math.pow(1-e,2)*n+2*(1-e)*e*i+Math.pow(e,2)*a}},sigma.utils.getPointOnBezierCurve=function(e,t,n,r,a,o,i,s,c){var A=Math.pow(1-e,3),l=3*e*Math.pow(1-e,2),d=3*Math.pow(e,2)*(1-e),u=Math.pow(e,3);return{x:A*t+l*o+d*s+u*r,y:A*n+l*i+d*c+u*a}},sigma.utils.getSelfLoopControlPoints=function(e,t,n){return{x1:e-7*n,y1:t,x2:e,y2:t+7*n}},sigma.utils.getDistance=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},sigma.utils.getCircleIntersection=function(e,t,n,r,a,o){var i,s,c,A,l,d,u,f,h;return s=r-e,c=a-t,!((A=Math.sqrt(c*c+s*s))>n+o)&&(!(AA||Math.abs(t-r)>A)return!1;for(var l,d=.5,u=sigma.utils.getDistance(e,t,n,r)0&&d>=0&&d<=1&&p>c&&(u>.001||u<-.001);)l=p,h=sigma.utils.getPointOnQuadraticCurve(d,n,r,a,o,i,s),(p=sigma.utils.getDistance(e,t,h.x,h.y))>l?d+=u=-u/2:d+u<0||d+u>1?(u/=2,p=l):d+=u;return pd||Math.abs(t-r)>d)return!1;for(var u,f=.5,h=sigma.utils.getDistance(e,t,n,r)0&&f>=0&&f<=1&&m>l&&(h>.001||h<-.001);)u=m,g=sigma.utils.getPointOnBezierCurve(f,n,r,a,o,i,s,c,A),(m=sigma.utils.getDistance(e,t,g.x,g.y))>u?f+=h=-h/2:f+h<0||f+h>1?(h/=2,m=u):f+=h;return mwindow.screen.logicalXDPI?t=window.screen.systemXDPI/window.screen.logicalXDPI:window.devicePixelRatio!==e&&(t=window.devicePixelRatio),t},sigma.utils.getWidth=function(t){var n=t.target.ownerSVGElement?t.target.ownerSVGElement.width:t.target.width;return"number"==typeof n&&n||n!==e&&n.baseVal!==e&&n.baseVal.value},sigma.utils.getCenter=function(e){var t=-1!==e.target.namespaceURI.indexOf("svg")?1:sigma.utils.getPixelRatio();return{x:sigma.utils.getWidth(e)/(2*t),y:sigma.utils.getHeight(e)/(2*t)}},sigma.utils.mouseCoords=function(e,t,n){return t=t||sigma.utils.getX(e),n=n||sigma.utils.getY(e),{x:t-sigma.utils.getCenter(e).x,y:n-sigma.utils.getCenter(e).y,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey}},sigma.utils.getHeight=function(t){var n=t.target.ownerSVGElement?t.target.ownerSVGElement.height:t.target.height;return"number"==typeof n&&n||n!==e&&n.baseVal!==e&&n.baseVal.value},sigma.utils.getDelta=function(t){return t.wheelDelta!==e&&t.wheelDelta||t.detail!==e&&-t.detail},sigma.utils.getOffset=function(e){for(var t=0,n=0;e;)n+=parseInt(e.offsetTop),t+=parseInt(e.offsetLeft),e=e.offsetParent;return{top:n,left:t}},sigma.utils.doubleClick=function(e,t,n){var r,a=0;e._doubleClickHandler=e._doubleClickHandler||{},e._doubleClickHandler[t]=e._doubleClickHandler[t]||[],(r=e._doubleClickHandler[t]).push(function(e){if(2===++a)return a=0,n(e);1===a&&setTimeout(function(){a=0},sigma.settings.doubleClickTimeout)}),e.addEventListener(t,r[r.length-1],!1)},sigma.utils.unbindDoubleClick=function(e,t){for(var n,r=(e._doubleClickHandler||{})[t]||[];n=r.pop();)e.removeEventListener(t,n);delete(e._doubleClickHandler||{})[t]},sigma.utils.easings=sigma.utils.easings||{},sigma.utils.easings.linearNone=function(e){return e},sigma.utils.easings.quadraticIn=function(e){return e*e},sigma.utils.easings.quadraticOut=function(e){return e*(2-e)},sigma.utils.easings.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},sigma.utils.easings.cubicIn=function(e){return e*e*e},sigma.utils.easings.cubicOut=function(e){return--e*e*e+1},sigma.utils.easings.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},sigma.utils.loadShader=function(e,t,n,r){var a=e.createShader(n);return e.shaderSource(a,t),e.compileShader(a),e.getShaderParameter(a,e.COMPILE_STATUS)?a:(r&&r('Error compiling shader "'+a+'":'+e.getShaderInfoLog(a)),e.deleteShader(a),null)},sigma.utils.loadProgram=function(e,t,n,r,a){var o,i=e.createProgram();for(o=0;o=e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDroppableDimension=t.scrollDroppable=t.clip=t.getDraggableDimension=t.noSpacing=void 0;var r=A(n(87)),a=n(648),o=A(n(112)),i=n(155),s=n(22),c=A(n(649));function A(e){return e&&e.__esModule?e:{default:e}}var l={x:0,y:0},d=t.noSpacing={top:0,right:0,bottom:0,left:0},u=(t.getDraggableDimension=function(e){var t=e.descriptor,n=e.client,r=e.margin,a=void 0===r?d:r,s=e.windowScroll,c=void 0===s?l:s,A=(0,i.offsetByPosition)(n,c);return{descriptor:t,placeholder:{margin:a,withoutMargin:{width:n.width,height:n.height}},client:{withoutMargin:(0,o.default)(n),withMargin:(0,o.default)((0,i.expandBySpacing)(n,a))},page:{withoutMargin:(0,o.default)(A),withMargin:(0,o.default)((0,i.expandBySpacing)(A,a))}}},t.clip=function(e,t){var n=(0,o.default)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n});t.scrollDroppable=function(e,t){if(!e.viewport.closestScrollable)return console.error("Cannot scroll droppble that does not have a closest scrollable"),e;var n=e.viewport.closestScrollable,a=n.frame,c=(0,s.subtract)(t,n.scroll.initial),A=(0,s.negate)(c),l={frame:n.frame,shouldClipSubject:n.shouldClipSubject,scroll:{initial:n.scroll.initial,current:t,diff:{value:c,displacement:A},max:n.scroll.max}},d=(0,i.offsetByPosition)(e.viewport.subject,A),f=l.shouldClipSubject?u(a,d):(0,o.default)(d),h={closestScrollable:l,subject:e.viewport.subject,clipped:f};return(0,r.default)({},e,{viewport:h})},t.getDroppableDimension=function(e){var t=e.descriptor,n=e.client,r=e.closest,s=e.direction,A=void 0===s?"vertical":s,f=e.margin,h=void 0===f?d:f,p=e.padding,g=void 0===p?d:p,m=e.windowScroll,b=void 0===m?l:m,E=e.isEnabled,y=void 0===E||E,v=(0,i.expandBySpacing)(n,h),B=(0,i.offsetByPosition)(n,b),w=(0,o.default)((0,i.expandBySpacing)(B,h)),I=function(){if(!r)return null;var e=(0,o.default)((0,i.offsetByPosition)(r.frameClient,b)),t=(0,c.default)({scrollHeight:r.scrollHeight,scrollWidth:r.scrollWidth,height:e.height,width:e.width});return{frame:e,shouldClipSubject:r.shouldClipSubject,scroll:{initial:r.scroll,current:r.scroll,max:t,diff:{value:l,displacement:l}}}}(),M={closestScrollable:I,subject:w,clipped:I&&I.shouldClipSubject?u(I.frame,w):w};return{descriptor:t,isEnabled:y,axis:"vertical"===A?a.vertical:a.horizontal,client:{withoutMargin:(0,o.default)(n),withMargin:(0,o.default)(v),withMarginAndPadding:(0,o.default)((0,i.expandBySpacing)(v,g))},page:{withoutMargin:(0,o.default)(B),withMargin:w,withMarginAndPadding:(0,o.default)((0,i.expandBySpacing)((0,i.expandBySpacing)(B,h),g))},viewport:M}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.preventDefault(),e.stopPropagation()}},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(1),i=n.n(o),s=n(0),c=n.n(s),A=n(25),l=n(74);function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(l.a,{history:this.history,children:this.props.children})},t}(i.a.Component);u.propTypes={initialEntries:c.a.array,initialIndex:c.a.number,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node},t.a=u},function(e,t,n){"use strict";var r=n(1),a=n.n(r),o=n(0),i=n.n(o),s=n(14),c=n.n(s);var A=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){c()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(a.a.Component);A.propTypes={when:i.a.bool,message:i.a.oneOfType([i.a.func,i.a.string]).isRequired},A.defaultProps={when:!0},A.contextTypes={router:i.a.shape({history:i.a.shape({block:i.a.func.isRequired}).isRequired}).isRequired},t.a=A},function(e,t,n){"use strict";var r=n(1),a=n.n(r),o=n(0),i=n.n(o),s=n(24),c=n.n(s),A=n(14),l=n.n(A),d=n(25),u=n(88),f=Object.assign||function(e){for(var t=1;t outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(d.createLocation)(e.to),n=Object(d.createLocation)(this.props.to);Object(d.locationsAreEqual)(t,n)?c()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Object(u.a)(n,t.params):f({},n,{pathname:Object(u.a)(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(a.a.Component);h.propTypes={computedMatch:i.a.object,push:i.a.bool,from:i.a.string,to:i.a.oneOfType([i.a.string,i.a.object]).isRequired},h.defaultProps={push:!1},h.contextTypes={router:i.a.shape({history:i.a.shape({push:i.a.func.isRequired,replace:i.a.func.isRequired}).isRequired,staticContext:i.a.object}).isRequired},t.a=h},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(14),i=n.n(o),s=n(1),c=n.n(s),A=n(0),l=n.n(A),d=n(25),u=n(74),f=Object.assign||function(e){for(var t=1;t",e)}},E=function(){},y=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=p(e);return 0!==t.pathname.indexOf(n)?t:f({},t,{pathname:t.pathname.substr(n.length)})}(t,Object(d.createLocation)(n)),push:this.handlePush,replace:this.handleReplace,go:b("go"),goBack:b("goBack"),goForward:b("goForward"),listen:this.handleListen,block:this.handleBlock};return c.a.createElement(u.a,f({},r,{history:a}))},t}(c.a.Component);y.propTypes={basename:l.a.string,context:l.a.object.isRequired,location:l.a.oneOfType([l.a.string,l.a.object])},y.defaultProps={basename:"",location:"/"},y.childContextTypes={router:l.a.object.isRequired},t.a=y},function(e,t,n){"use strict";var r=n(1),a=n.n(r),o=n(0),i=n.n(o),s=n(24),c=n.n(s),A=n(14),l=n.n(A),d=n(75);var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){l()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){c()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),c()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,o=void 0;return a.a.Children.forEach(t,function(t){if(null==r&&a.a.isValidElement(t)){var i=t.props,s=i.path,c=i.exact,A=i.strict,l=i.sensitive,u=i.from,f=s||u;o=t,r=Object(d.a)(n.pathname,{path:f,exact:c,strict:A,sensitive:l},e.match)}}),r?a.a.cloneElement(o,{location:n,computedMatch:r}):null},t}(a.a.Component);u.contextTypes={router:i.a.shape({route:i.a.object.isRequired}).isRequired},u.propTypes={children:i.a.node,location:i.a.object},t.a=u},function(e,t,n){"use strict";var r=n(1),a=n.n(r),o=n(0),i=n.n(o),s=n(117),c=n.n(s),A=n(118),l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return a.a.createElement(A.a,{children:function(t){return a.a.createElement(e,l({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i.a.func},c()(t,e)}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(233));t.default=r.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],a=e[2],o=e[3];n+=(r&a|~r&o)+t[0]-680876936|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&a)+t[1]-389564586|0,a+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0,r+=((a=(a<<17|a>>>15)+o|0)&o|~a&n)+t[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+a|0)&a|~r&o)+t[4]-176418897|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&a)+t[5]+1200080426|0,a+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0,r+=((a=(a<<17|a>>>15)+o|0)&o|~a&n)+t[7]-45705983|0,n+=((r=(r<<22|r>>>10)+a|0)&a|~r&o)+t[8]+1770035416|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&a)+t[9]-1958414417|0,a+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0,r+=((a=(a<<17|a>>>15)+o|0)&o|~a&n)+t[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+a|0)&a|~r&o)+t[12]+1804603682|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&a)+t[13]-40341101|0,a+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0,r+=((a=(a<<17|a>>>15)+o|0)&o|~a&n)+t[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+a|0)&o|a&~o)+t[1]-165796510|0,o+=((n=(n<<5|n>>>27)+r|0)&a|r&~a)+t[6]-1069501632|0,a+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0,r+=((a=(a<<14|a>>>18)+o|0)&n|o&~n)+t[0]-373897302|0,n+=((r=(r<<20|r>>>12)+a|0)&o|a&~o)+t[5]-701558691|0,o+=((n=(n<<5|n>>>27)+r|0)&a|r&~a)+t[10]+38016083|0,a+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0,r+=((a=(a<<14|a>>>18)+o|0)&n|o&~n)+t[4]-405537848|0,n+=((r=(r<<20|r>>>12)+a|0)&o|a&~o)+t[9]+568446438|0,o+=((n=(n<<5|n>>>27)+r|0)&a|r&~a)+t[14]-1019803690|0,a+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0,r+=((a=(a<<14|a>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+a|0)&o|a&~o)+t[13]-1444681467|0,o+=((n=(n<<5|n>>>27)+r|0)&a|r&~a)+t[2]-51403784|0,a+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0,r+=((a=(a<<14|a>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+a|0)^a^o)+t[5]-378558|0,o+=((n=(n<<4|n>>>28)+r|0)^r^a)+t[8]-2022574463|0,a+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0,r+=((a=(a<<16|a>>>16)+o|0)^o^n)+t[14]-35309556|0,n+=((r=(r<<23|r>>>9)+a|0)^a^o)+t[1]-1530992060|0,o+=((n=(n<<4|n>>>28)+r|0)^r^a)+t[4]+1272893353|0,a+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0,r+=((a=(a<<16|a>>>16)+o|0)^o^n)+t[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+a|0)^a^o)+t[13]+681279174|0,o+=((n=(n<<4|n>>>28)+r|0)^r^a)+t[0]-358537222|0,a+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0,r+=((a=(a<<16|a>>>16)+o|0)^o^n)+t[6]+76029189|0,n+=((r=(r<<23|r>>>9)+a|0)^a^o)+t[9]-640364487|0,o+=((n=(n<<4|n>>>28)+r|0)^r^a)+t[12]-421815835|0,a+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0,r+=((a=(a<<16|a>>>16)+o|0)^o^n)+t[2]-995338651|0,n+=(a^((r=(r<<23|r>>>9)+a|0)|~o))+t[0]-198630844|0,o+=(r^((n=(n<<6|n>>>26)+r|0)|~a))+t[7]+1126891415|0,a+=(n^((o=(o<<10|o>>>22)+n|0)|~r))+t[14]-1416354905|0,r+=(o^((a=(a<<15|a>>>17)+o|0)|~n))+t[5]-57434055|0,n+=(a^((r=(r<<21|r>>>11)+a|0)|~o))+t[12]+1700485571|0,o+=(r^((n=(n<<6|n>>>26)+r|0)|~a))+t[3]-1894986606|0,a+=(n^((o=(o<<10|o>>>22)+n|0)|~r))+t[10]-1051523|0,r+=(o^((a=(a<<15|a>>>17)+o|0)|~n))+t[1]-2054922799|0,n+=(a^((r=(r<<21|r>>>11)+a|0)|~o))+t[8]+1873313359|0,o+=(r^((n=(n<<6|n>>>26)+r|0)|~a))+t[15]-30611744|0,a+=(n^((o=(o<<10|o>>>22)+n|0)|~r))+t[6]-1560198380|0,r+=(o^((a=(a<<15|a>>>17)+o|0)|~n))+t[13]+1309151649|0,n+=(a^((r=(r<<21|r>>>11)+a|0)|~o))+t[4]-145523070|0,o+=(r^((n=(n<<6|n>>>26)+r|0)|~a))+t[11]-1120210379|0,a+=(n^((o=(o<<10|o>>>22)+n|0)|~r))+t[2]+718787259|0,r=((r+=(o^((a=(a<<15|a>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+a|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=a+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function a(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,a,o,i,s,c,A=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=A;t+=64)n(l,r(e.substring(t-64,t)));for(e=e.substring(t-64),a=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return i=(i=8*A).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(i[2],16),c=parseInt(i[1],16)||0,o[14]=s,o[15]=c,n(l,o),l}function i(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;tl?new ArrayBuffer(0):(a=l-A,o=new ArrayBuffer(a),i=new Uint8Array(o),s=new Uint8Array(this,A,a),i.set(s),o)}}(),l.prototype.append=function(e){return this.appendBinary(c(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,a=this._buff.length;for(t=64;t<=a;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},l.prototype.end=function(e){var t,n,r=this._buff,a=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,a),n=s(this._hash),e&&(n=A(n)),this.reset(),n},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,t){var r,a,o,i=t;if(e[i>>2]|=128<<(i%4<<3),i>55)for(n(this._hash,e),i=0;i<16;i+=1)e[i]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=a,e[15]=o,n(this._hash,e)},l.hash=function(e,t){return l.hashBinary(c(e),t)},l.hashBinary=function(e,t){var n=s(o(e));return t?A(n):n},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var t,r=function(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,a(r.subarray(t-64,t)));return this._buff=t-64>2]|=r[t]<<(t%4<<3);return this._finish(o,a),n=s(this._hash),e&&(n=A(n)),this.reset(),n},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.ArrayBuffer.prototype.getState=function(){var e=l.prototype.getState.call(this);return e.buff=function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}(e.buff),e},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,a=new ArrayBuffer(r),o=new Uint8Array(a);for(n=0;n>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return i=(i=8*A).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(i[2],16),c=parseInt(i[1],16)||0,o[14]=s,o[15]=c,n(l,o),l}(new Uint8Array(e)));return t?A(r):r},l}()},function(e,t,n){"use strict";var r=Function.prototype.toString,a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(s)return function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(o(e))return!1;var t=i.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){var r=n(91).call(Function.call,Object.prototype.hasOwnProperty),a=Object.assign;e.exports=function(e,t){if(a)return a(e,t);for(var n in t)r(t,n)&&(e[n]=t[n]);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={maxAnimationDelay:6e3,newestOnTop:!0,position:"top-right",preventDuplicates:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ADD_TOASTR="@ReduxToastr/toastr/ADD",t.REMOVE_TOASTR="@ReduxToastr/toastr/REMOVE",t.CLEAN_TOASTR="@ReduxToastr/toastr/CLEAN",t.SHOW_CONFIRM="@ReduxToastr/confirm/SHOW",t.HIDE_CONFIRM="@ReduxToastr/confirm/HIDE",t.REMOVE_BY_TYPE="@ReduxToastr/toastr/REMOVE_BY_TYPE",t.TRANSITIONS={in:["bounceIn","bounceInDown","fadeIn"],out:["bounceOut","bounceOutUp","fadeOut"]}},function(e,t,n){"use strict";(function(t){var r=n(3),a=n(338),o=new Array(16);function i(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function c(e,t,n,r,a,o,i){return s(e+(t&n|~t&r)+a+o|0,i)+t|0}function A(e,t,n,r,a,o,i){return s(e+(t&r|n&~r)+a+o|0,i)+t|0}function l(e,t,n,r,a,o,i){return s(e+(t^n^r)+a+o|0,i)+t|0}function d(e,t,n,r,a,o,i){return s(e+(n^(t|~r))+a+o|0,i)+t|0}r(i,a),i.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,a=this._c,i=this._d;r=d(r=d(r=d(r=d(r=l(r=l(r=l(r=l(r=A(r=A(r=A(r=A(r=c(r=c(r=c(r=c(r,a=c(a,i=c(i,n=c(n,r,a,i,e[0],3614090360,7),r,a,e[1],3905402710,12),n,r,e[2],606105819,17),i,n,e[3],3250441966,22),a=c(a,i=c(i,n=c(n,r,a,i,e[4],4118548399,7),r,a,e[5],1200080426,12),n,r,e[6],2821735955,17),i,n,e[7],4249261313,22),a=c(a,i=c(i,n=c(n,r,a,i,e[8],1770035416,7),r,a,e[9],2336552879,12),n,r,e[10],4294925233,17),i,n,e[11],2304563134,22),a=c(a,i=c(i,n=c(n,r,a,i,e[12],1804603682,7),r,a,e[13],4254626195,12),n,r,e[14],2792965006,17),i,n,e[15],1236535329,22),a=A(a,i=A(i,n=A(n,r,a,i,e[1],4129170786,5),r,a,e[6],3225465664,9),n,r,e[11],643717713,14),i,n,e[0],3921069994,20),a=A(a,i=A(i,n=A(n,r,a,i,e[5],3593408605,5),r,a,e[10],38016083,9),n,r,e[15],3634488961,14),i,n,e[4],3889429448,20),a=A(a,i=A(i,n=A(n,r,a,i,e[9],568446438,5),r,a,e[14],3275163606,9),n,r,e[3],4107603335,14),i,n,e[8],1163531501,20),a=A(a,i=A(i,n=A(n,r,a,i,e[13],2850285829,5),r,a,e[2],4243563512,9),n,r,e[7],1735328473,14),i,n,e[12],2368359562,20),a=l(a,i=l(i,n=l(n,r,a,i,e[5],4294588738,4),r,a,e[8],2272392833,11),n,r,e[11],1839030562,16),i,n,e[14],4259657740,23),a=l(a,i=l(i,n=l(n,r,a,i,e[1],2763975236,4),r,a,e[4],1272893353,11),n,r,e[7],4139469664,16),i,n,e[10],3200236656,23),a=l(a,i=l(i,n=l(n,r,a,i,e[13],681279174,4),r,a,e[0],3936430074,11),n,r,e[3],3572445317,16),i,n,e[6],76029189,23),a=l(a,i=l(i,n=l(n,r,a,i,e[9],3654602809,4),r,a,e[12],3873151461,11),n,r,e[15],530742520,16),i,n,e[2],3299628645,23),a=d(a,i=d(i,n=d(n,r,a,i,e[0],4096336452,6),r,a,e[7],1126891415,10),n,r,e[14],2878612391,15),i,n,e[5],4237533241,21),a=d(a,i=d(i,n=d(n,r,a,i,e[12],1700485571,6),r,a,e[3],2399980690,10),n,r,e[10],4293915773,15),i,n,e[1],2240044497,21),a=d(a,i=d(i,n=d(n,r,a,i,e[8],1873313359,6),r,a,e[15],4264355552,10),n,r,e[6],2734768916,15),i,n,e[13],1309151649,21),a=d(a,i=d(i,n=d(n,r,a,i,e[4],4149444226,6),r,a,e[11],3174756917,10),n,r,e[2],718787259,15),i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+i|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=i}).call(this,n(16).Buffer)},function(e,t,n){(t=e.exports=n(339)).Stream=t,t.Readable=t,t.Writable=n(217),t.Duplex=n(79),t.Transform=n(343),t.PassThrough=n(734)},function(e,t,n){"use strict";(function(t,r,a){var o=n(166);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var a=r.callback;t.pendingcb--,a(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;b.WritableState=m;var A=n(126);A.inherits=n(3);var l={deprecate:n(733)},d=n(340),u=n(11).Buffer,f=a.Uint8Array||function(){};var h,p=n(341);function g(){}function m(e,t){s=s||n(79),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var a=e.highWaterMark,A=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(A||0===A)?A:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(o.nextTick(a,r),o.nextTick(I,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(a(r),e._writableState.errorEmitted=!0,e.emit("error",r),I(e,t))}(e,n,r,t,a);else{var i=B(n);i||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),r?c(y,e,n,i,a):y(e,n,i,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function b(e){if(s=s||n(79),!(h.call(b,this)||this instanceof s))return new b(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function E(e,t,n,r,a,o,i){t.writelen=r,t.writecb=i,t.writing=!0,t.sync=!0,n?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function y(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),I(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,E(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var A=n.chunk,l=n.encoding,d=n.callback;if(E(e,t,!1,t.objectMode?1:A.length,A,l,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function B(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),I(e,t)})}function I(e,t){var n=B(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}A.inherits(b,d),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===b&&(e&&e._writableState instanceof m)}})):h=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r=this._writableState,a=!1,i=!r.objectMode&&function(e){return u.isBuffer(e)||e instanceof f}(e);return i&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),i?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=g),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(i||function(e,t,n,r){var a=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),o.nextTick(r,i),a=!1),a}(this,r,e,n))&&(r.pendingcb++,a=function(e,t,n,r,a,o){if(!n){var i=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n));return t}(t,r,a);r!==i&&(n=!0,a="buffer",r=i)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,I(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=p.destroy,b.prototype._undestroy=p.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(17),n(342).setImmediate,n(5))},function(e,t,n){"use strict";var r=n(16).Buffer,a=n(3),o=n(338),i=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],A=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],u=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function h(e,t){return e<>>32-t}function p(e,t,n,r,a,o,i,s){return h(e+(t^n^r)+o+i|0,s)+a|0}function g(e,t,n,r,a,o,i,s){return h(e+(t&n|~t&r)+o+i|0,s)+a|0}function m(e,t,n,r,a,o,i,s){return h(e+((t|~n)^r)+o+i|0,s)+a|0}function b(e,t,n,r,a,o,i,s){return h(e+(t&r|n&~r)+o+i|0,s)+a|0}function E(e,t,n,r,a,o,i,s){return h(e+(t^(n|~r))+o+i|0,s)+a|0}a(f,o),f.prototype._update=function(){for(var e=i,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,a=0|this._c,o=0|this._d,f=0|this._e,y=0|this._a,v=0|this._b,B=0|this._c,w=0|this._d,I=0|this._e,M=0;M<80;M+=1){var C,D;M<16?(C=p(n,r,a,o,f,e[s[M]],d[0],A[M]),D=E(y,v,B,w,I,e[c[M]],u[0],l[M])):M<32?(C=g(n,r,a,o,f,e[s[M]],d[1],A[M]),D=b(y,v,B,w,I,e[c[M]],u[1],l[M])):M<48?(C=m(n,r,a,o,f,e[s[M]],d[2],A[M]),D=m(y,v,B,w,I,e[c[M]],u[2],l[M])):M<64?(C=b(n,r,a,o,f,e[s[M]],d[3],A[M]),D=g(y,v,B,w,I,e[c[M]],u[3],l[M])):(C=E(n,r,a,o,f,e[s[M]],d[4],A[M]),D=p(y,v,B,w,I,e[c[M]],u[4],l[M])),n=f,f=o,o=h(a,10),a=r,r=C,y=I,I=w,w=h(B,10),B=v,v=D}var Q=this._b+a+w|0;this._b=this._c+o+I|0,this._c=this._d+f+y|0,this._d=this._e+n+v|0,this._e=this._a+r+B|0,this._a=Q},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=f},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(739),t.sha1=n(740),t.sha224=n(741),t.sha256=n(344),t.sha384=n(742),t.sha512=n(345)},function(e,t,n){"use strict";t.utils=n(748),t.Cipher=n(749),t.DES=n(750),t.CBC=n(751),t.EDE=n(752)},function(e,t,n){var r=n(753),a=n(761),o=n(355);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=a.createDecipher,t.createDecipheriv=t.Decipheriv=a.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,n){var r={ECB:n(754),CBC:n(755),CFB:n(756),CFB8:n(757),CFB1:n(758),OFB:n(759),CTR:n(353),GCM:n(353)},a=n(355);for(var o in a)a[o].module=r[a[o].mode];e.exports=a},function(e,t,n){(function(t){var r=n(21),a=n(93);function o(e,n){var a=function(e){var t=i(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),o=n.modulus.byteLength(),s=(r.mont(n.modulus),new r(e).mul(a.blinder).umod(n.modulus)),c=s.toRed(r.mont(n.prime1)),A=s.toRed(r.mont(n.prime2)),l=n.coefficient,d=n.prime1,u=n.prime2,f=c.redPow(n.exponent1),h=A.redPow(n.exponent2);f=f.fromRed(),h=h.fromRed();var p=f.isub(h).imul(l).umod(d);return p.imul(u),h.iadd(p),new t(h.imul(a.unblinder).umod(n.modulus).toArray(!1,o))}function i(e){for(var t=e.modulus.byteLength(),n=new r(a(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(a(t));return n}e.exports=o,o.getr=i}).call(this,n(16).Buffer)},function(e,t,n){var r=t;r.utils=n(52),r.common=n(128),r.sha=n(777),r.ripemd=n(781),r.hmac=n(782),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a=0;A--)if(l[A]!==u[A])return!1;for(A=l.length-1;A>=0;A--)if(c=l[A],!b(e[c],t[c],n,r))return!1;return!0}(e,t,n,o))}return n?e===t:e==t}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function y(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function v(e,t,n,r){var a;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),a=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!a&&g(a,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i.isError(a),c=!e&&a&&!n;if((s&&o&&y(a,n)||c)&&g(a,n,"Got unwanted exception"+r),e&&a&&n&&!y(a,n)||!e&&a)throw a}u.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return h(p(e.actual),128)+" "+e.operator+" "+h(p(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,a=f(t),i=r.indexOf("\n"+a);if(i>=0){var o=r.indexOf("\n",i+1);r=r.substring(o+1)}this.stack=r}}},i.inherits(u.AssertionError,Error),u.fail=g,u.ok=m,u.equal=function(e,t,n){e!=t&&g(e,t,n,"==",u.equal)},u.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",u.notEqual)},u.deepEqual=function(e,t,n){b(e,t,!1)||g(e,t,n,"deepEqual",u.deepEqual)},u.deepStrictEqual=function(e,t,n){b(e,t,!0)||g(e,t,n,"deepStrictEqual",u.deepStrictEqual)},u.notDeepEqual=function(e,t,n){b(e,t,!1)&&g(e,t,n,"notDeepEqual",u.notDeepEqual)},u.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&g(t,n,r,"notDeepStrictEqual",e)},u.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",u.strictEqual)},u.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",u.notStrictEqual)},u.throws=function(e,t,n){v(!0,e,t,n)},u.doesNotThrow=function(e,t,n){v(!1,e,t,n)},u.ifError=function(e){if(e)throw e};var B=Object.keys||function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t}}).call(this,n(5))},function(e,t,n){(function(e,r){var a=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),l(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function A(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var a=n.inspect(r,e);return m(a)||(a=l(e,a,r)),a}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,n);if(i)return i;var o=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),B(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(n);if(0===o.length){if(w(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(v(n))return e.stylize(Date.prototype.toString.call(n),"date");if(B(n))return u(n)}var A,y="",I=!1,M=["{","}"];(f(n)&&(I=!0,M=["[","]"]),w(n))&&(y=" [Function"+(n.name?": "+n.name:"")+"]");return E(n)&&(y=" "+RegExp.prototype.toString.call(n)),v(n)&&(y=" "+Date.prototype.toUTCString.call(n)),B(n)&&(y=" "+u(n)),0!==o.length||I&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),A=I?function(e,t,n,r,a){for(var i=[],o=0,s=t.length;o=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(A,y,M)):M[0]+y+M[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,a,i){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),D(r,a)||(o="["+a+"]"),s||(e.seen.indexOf(c.value)<0?(s=p(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(o)){if(i&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function p(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function b(e){return void 0===e}function E(e){return y(e)&&"[object RegExp]"===I(e)}function y(e){return"object"==typeof e&&null!==e}function v(e){return y(e)&&"[object Date]"===I(e)}function B(e){return y(e)&&("[object Error]"===I(e)||e instanceof Error)}function w(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function M(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(b(i)&&(i=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;o[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else o[e]=function(){};return o[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=E,t.isObject=y,t.isDate=v,t.isError=B,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(816);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(3),t._extend=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,n(5),n(17))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selector=t.unsetActiveCompositionBlockId=t.setActiveCompositionBlockId=t.setSearchTerm=t.toggleFiltersVisibility=t.setPaginationPosition=t.setActiveFieldId=t.setPreviewVisibility=t.setMetadataVisibility=t.setDisplayFilterParam=t.setDisplayFilterMode=void 0;var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:m,t=arguments[1],n=t.payload;switch(t.type){case"@@redux-pouchdb/INIT":return r({},e,{stateLoaded:!0});case s:return r({},e,{displayFilterMode:n,displayFilterParam:void 0,paginationPosition:0});case c:return r({},e,{displayFilterParam:n,paginationPosition:0});case A:return r({},e,{metadataVisible:n});case l:return r({},e,{previewVisible:n});case u:return r({},e,{activeFieldId:n});case d:return r({},e,{paginationPosition:n});case f:return r({},e,{filtersVisible:!e.filtersVisible});case h:return r({},e,{searchTerm:n});case p:return r({},e,{activeCompositionBlockId:n});case g:return r({},e,{activeCompositionBlockId:void 0});case o.GET_CORPUS:return r({},e,{stateLoaded:!1});case o.GET_CORPUS+"_SUCCESS":case o.GET_CORPUS+"_FAIL":return r({},e,{stateLoaded:!0});default:return e}},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return arguments[1].type,e}});t.selector=(0,i.createStructuredSelector)({displayFilterMode:function(e){return e.ui.displayFilterMode},displayFilterParam:function(e){return e.ui.displayFilterParam},metadataVisible:function(e){return e.ui.metadataVisible},previewVisible:function(e){return e.ui.previewVisible},activeFieldId:function(e){return e.ui.activeFieldId},paginationPosition:function(e){return e.ui.paginationPosition},filtersVisible:function(e){return e.ui.filtersVisible},searchTerm:function(e){return e.ui.searchTerm},activeCompositionBlockId:function(e){return e.ui.activeCompositionBlockId},stateLoaded:function(e){return e.ui.stateLoaded}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return r.default};a(n(838));var r=a(n(377));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,a,i,o,s){var c=n+(-i*(t-a)+-o*n)*e,A=t+c*e;if(Math.abs(c)1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var o=t,s=o.path,c=o.exact,A=void 0!==c&&c,l=o.strict,u=void 0!==l&&l,d=o.sensitive,f=void 0!==d&&d;if(null==s)return n;var h=function(e,t){var n=""+t.end+t.strict+t.sensitive,o=a[n]||(a[n]={});if(o[e])return o[e];var s=[],c={re:(0,r.default)(e,s,t),keys:s};return i<1e4&&(o[e]=c,i++),c}(s,{end:A,strict:u,sensitive:f}),p=h.re,g=h.keys,m=p.exec(e);if(!m)return null;var b=m[0],E=m.slice(1),y=e===b;return A&&!y?null:{path:s,url:"/"===s&&""===b?"/":b,isExact:y,params:g.reduce(function(e,t,n){return e[t.name]=E[n],e},{})}}},function(e,t,n){"use strict";var r=n(874),a=n(236),i=n(878),o=n(381),s=n(382),c=n(879),A=n(880),l=n(901),u=n(94);e.exports=m,m.prototype.validate=function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var a=n(t);!0!==n.$async&&(this.errors=n.errors);return a},m.prototype.compile=function(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)},m.prototype.addSchema=function(e,t,n,r){if(Array.isArray(e)){for(var i=0;i-1&&e%1==0&&e-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(514),a="object"==typeof t&&t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}).call(this,n(57)(e))},function(e,t,n){var r=n(135);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(519)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(176),a=n(941),i=n(942),o=n(943),s=n(944),c=n(945);function A(e){var t=this.__data__=new r(e);this.size=t.size}A.prototype.clear=a,A.prototype.delete=i,A.prototype.get=o,A.prototype.has=s,A.prototype.set=c,e.exports=A},function(e,t,n){var r=n(81)(n(44),"Map");e.exports=r},function(e,t,n){var r=n(950),a=n(957),i=n(959),o=n(960),s=n(961);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=n&&t-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var a=e[r.valueKey],i=e[r.labelKey],o=g(a),s=g(i);if(!o&&!s)return!1;var c=o?String(a):null,A=s?String(i):null;return r.ignoreAccents&&(c&&"label"!==r.matchProp&&(c=p(c)),A&&"value"!==r.matchProp&&(A=p(A))),r.ignoreCase&&(c&&"label"!==r.matchProp&&(c=c.toLowerCase()),A&&"value"!==r.matchProp&&(A=A.toLowerCase())),"start"===r.matchPos?c&&"label"!==r.matchProp&&c.substr(0,t.length)===t||A&&"value"!==r.matchProp&&A.substr(0,t.length)===t:c&&"label"!==r.matchProp&&c.indexOf(t)>=0||A&&"value"!==r.matchProp&&A.indexOf(t)>=0})},b=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,a=e.instancePrefix,i=e.onFocus,s=e.onOptionRef,c=e.onSelect,A=e.optionClassName,u=e.optionComponent,d=e.optionRenderer,f=e.options,h=e.removeValue,p=e.selectValue,g=e.valueArray,m=e.valueKey,b=u;return f.map(function(e,u){var f=g&&g.some(function(t){return t[m]===e[m]}),E=e===t,y=o()(A,{"Select-option":!0,"is-selected":f,"is-focused":E,"is-disabled":e.disabled});return l.a.createElement(b,{className:y,focusOption:n,inputValue:r,instancePrefix:a,isDisabled:e.disabled,isFocused:E,isSelected:f,key:"option-"+u+"-"+e[m],onFocus:i,onSelect:c,option:e,optionIndex:u,ref:function(e){s(e,E)},removeValue:h,selectValue:p},d(e,u,r))})};b.propTypes={focusOption:c.a.func,focusedOption:c.a.object,inputValue:c.a.string,instancePrefix:c.a.string,onFocus:c.a.func,onOptionRef:c.a.func,onSelect:c.a.func,optionClassName:c.a.string,optionComponent:c.a.func,optionRenderer:c.a.func,options:c.a.array,removeValue:c.a.func,selectValue:c.a.func,valueArray:c.a.array,valueKey:c.a.string};var E=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=(function(){function e(e){this.value=e}function t(t){var n,r;function a(n,r){try{var o=t[n](r),s=o.value;s instanceof e?Promise.resolve(s.value).then(function(e){a("next",e)},function(e){a("throw",e)}):i(o.done?"return":"normal",o.value)}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?a(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(i,o){var s={key:e,arg:t,resolve:i,reject:o,next:null};r?r=r.next=s:(n=r=s,a(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),B=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},D=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Q=function(e){function t(e){v(this,t);var n=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return M(t,e),B(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,a=o()(this.props.className,t.className);return t.disabled?l.a.createElement("div",{className:a,onMouseDown:E,onClick:E},this.props.children):l.a.createElement("div",{className:a,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(l.a.Component);Q.propTypes={children:c.a.node,className:c.a.string,instancePrefix:c.a.string.isRequired,isDisabled:c.a.bool,isFocused:c.a.bool,isSelected:c.a.bool,onFocus:c.a.func,onSelect:c.a.func,onUnfocus:c.a.func,option:c.a.object.isRequired,optionIndex:c.a.number};var Y=function(e){function t(e){v(this,t);var n=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return M(t,e),B(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return l.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?l.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):l.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return l.a.createElement("div",{className:o()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(l.a.Component);Y.propTypes={children:c.a.node,disabled:c.a.bool,id:c.a.string,onClick:c.a.func,onRemove:c.a.func,value:c.a.object.isRequired}; +function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a=0;A--)if(l[A]!==d[A])return!1;for(A=l.length-1;A>=0;A--)if(c=l[A],!b(e[c],t[c],n,r))return!1;return!0}(e,t,n,i))}return n?e===t:e==t}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function y(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function v(e,t,n,r){var a;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),a=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!a&&g(a,n,"Missing expected exception"+r);var i="string"==typeof r,s=!e&&o.isError(a),c=!e&&a&&!n;if((s&&i&&y(a,n)||c)&&g(a,n,"Got unwanted exception"+r),e&&a&&n&&!y(a,n)||!e&&a)throw a}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return h(p(e.actual),128)+" "+e.operator+" "+h(p(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,a=f(t),o=r.indexOf("\n"+a);if(o>=0){var i=r.indexOf("\n",o+1);r=r.substring(i+1)}this.stack=r}}},o.inherits(d.AssertionError,Error),d.fail=g,d.ok=m,d.equal=function(e,t,n){e!=t&&g(e,t,n,"==",d.equal)},d.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",d.notEqual)},d.deepEqual=function(e,t,n){b(e,t,!1)||g(e,t,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,n){b(e,t,!0)||g(e,t,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,n){b(e,t,!1)&&g(e,t,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&g(t,n,r,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",d.strictEqual)},d.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",d.notStrictEqual)},d.throws=function(e,t,n){v(!0,e,t,n)},d.doesNotThrow=function(e,t,n){v(!1,e,t,n)},d.ifError=function(e){if(e)throw e};var B=Object.keys||function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(n);return t}}).call(this,n(5))},function(e,t,n){(function(e,r){var a=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],n=0;n=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),l(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function A(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var a=n.inspect(r,e);return m(a)||(a=l(e,a,r)),a}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,n);if(o)return o;var i=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),B(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return d(n);if(0===i.length){if(w(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(v(n))return e.stylize(Date.prototype.toString.call(n),"date");if(B(n))return d(n)}var A,y="",I=!1,M=["{","}"];(f(n)&&(I=!0,M=["[","]"]),w(n))&&(y=" [Function"+(n.name?": "+n.name:"")+"]");return E(n)&&(y=" "+RegExp.prototype.toString.call(n)),v(n)&&(y=" "+Date.prototype.toUTCString.call(n)),B(n)&&(y=" "+d(n)),0!==i.length||I&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),A=I?function(e,t,n,r,a){for(var o=[],i=0,s=t.length;i=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(A,y,M)):M[0]+y+M[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function u(e,t,n,r,a,o){var i,s,c;if((c=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),D(r,a)||(i="["+a+"]"),s||(e.seen.indexOf(c.value)<0?(s=p(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(i)){if(o&&a.match(/^\d+$/))return s;(i=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function p(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function b(e){return void 0===e}function E(e){return y(e)&&"[object RegExp]"===I(e)}function y(e){return"object"==typeof e&&null!==e}function v(e){return y(e)&&"[object Date]"===I(e)}function B(e){return y(e)&&("[object Error]"===I(e)||e instanceof Error)}function w(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function M(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(b(o)&&(o=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!i[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=r.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=E,t.isObject=y,t.isDate=v,t.isError=B,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(811);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(3),t._extend=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,n(5),n(17))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selector=t.unsetActiveCompositionBlockId=t.setActiveCompositionBlockId=t.setSearchTerm=t.toggleFiltersVisibility=t.setPaginationPosition=t.setActiveFieldId=t.setPreviewVisibility=t.setMetadataVisibility=t.setDisplayFilterParam=t.setDisplayFilterMode=void 0;var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:m,t=arguments[1],n=t.payload;switch(t.type){case"@@redux-pouchdb/INIT":return r({},e,{stateLoaded:!0});case s:return r({},e,{displayFilterMode:n,displayFilterParam:void 0,paginationPosition:0});case c:return r({},e,{displayFilterParam:n,paginationPosition:0});case A:return r({},e,{metadataVisible:n});case l:return r({},e,{previewVisible:n});case d:return r({},e,{activeFieldId:n});case u:return r({},e,{paginationPosition:n});case f:return r({},e,{filtersVisible:!e.filtersVisible});case h:return r({},e,{searchTerm:n});case p:return r({},e,{activeCompositionBlockId:n});case g:return r({},e,{activeCompositionBlockId:void 0});case i.GET_CORPUS:return r({},e,{stateLoaded:!1});case i.GET_CORPUS+"_SUCCESS":case i.GET_CORPUS+"_FAIL":return r({},e,{stateLoaded:!0});default:return e}},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return arguments[1].type,e}});t.selector=(0,o.createStructuredSelector)({displayFilterMode:function(e){return e.ui.displayFilterMode},displayFilterParam:function(e){return e.ui.displayFilterParam},metadataVisible:function(e){return e.ui.metadataVisible},previewVisible:function(e){return e.ui.previewVisible},activeFieldId:function(e){return e.ui.activeFieldId},paginationPosition:function(e){return e.ui.paginationPosition},filtersVisible:function(e){return e.ui.filtersVisible},searchTerm:function(e){return e.ui.searchTerm},activeCompositionBlockId:function(e){return e.ui.activeCompositionBlockId},stateLoaded:function(e){return e.ui.stateLoaded}})},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,a,o,i,s){var c=n+(-o*(t-a)+-i*n)*e,A=t+c*e;if(Math.abs(c)1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var i=t,s=i.path,c=i.exact,A=void 0!==c&&c,l=i.strict,d=void 0!==l&&l,u=i.sensitive,f=void 0!==u&&u;if(null==s)return n;var h=function(e,t){var n=""+t.end+t.strict+t.sensitive,i=a[n]||(a[n]={});if(i[e])return i[e];var s=[],c={re:(0,r.default)(e,s,t),keys:s};return o<1e4&&(i[e]=c,o++),c}(s,{end:A,strict:d,sensitive:f}),p=h.re,g=h.keys,m=p.exec(e);if(!m)return null;var b=m[0],E=m.slice(1),y=e===b;return A&&!y?null:{path:s,url:"/"===s&&""===b?"/":b,isExact:y,params:g.reduce(function(e,t,n){return e[t.name]=E[n],e},{})}}},function(e,t,n){"use strict";var r=n(870),a=n(235),o=n(874),i=n(379),s=n(380),c=n(875),A=n(876),l=n(897),d=n(95);e.exports=m,m.prototype.validate=function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var a=n(t);!0!==n.$async&&(this.errors=n.errors);return a},m.prototype.compile=function(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)},m.prototype.addSchema=function(e,t,n,r){if(Array.isArray(e)){for(var o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(512),a="object"==typeof t&&t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(59)(e))},function(e,t,n){var r=n(135);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(517)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(176),a=n(937),o=n(938),i=n(939),s=n(940),c=n(941);function A(e){var t=this.__data__=new r(e);this.size=t.size}A.prototype.clear=a,A.prototype.delete=o,A.prototype.get=i,A.prototype.has=s,A.prototype.set=c,e.exports=A},function(e,t,n){var r=n(81)(n(44),"Map");e.exports=r},function(e,t,n){var r=n(946),a=n(953),o=n(955),i=n(956),s=n(957);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=n&&t-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var a=e[r.valueKey],o=e[r.labelKey],i=g(a),s=g(o);if(!i&&!s)return!1;var c=i?String(a):null,A=s?String(o):null;return r.ignoreAccents&&(c&&"label"!==r.matchProp&&(c=p(c)),A&&"value"!==r.matchProp&&(A=p(A))),r.ignoreCase&&(c&&"label"!==r.matchProp&&(c=c.toLowerCase()),A&&"value"!==r.matchProp&&(A=A.toLowerCase())),"start"===r.matchPos?c&&"label"!==r.matchProp&&c.substr(0,t.length)===t||A&&"value"!==r.matchProp&&A.substr(0,t.length)===t:c&&"label"!==r.matchProp&&c.indexOf(t)>=0||A&&"value"!==r.matchProp&&A.indexOf(t)>=0})},b=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,a=e.instancePrefix,o=e.onFocus,s=e.onOptionRef,c=e.onSelect,A=e.optionClassName,d=e.optionComponent,u=e.optionRenderer,f=e.options,h=e.removeValue,p=e.selectValue,g=e.valueArray,m=e.valueKey,b=d;return f.map(function(e,d){var f=g&&g.some(function(t){return t[m]===e[m]}),E=e===t,y=i()(A,{"Select-option":!0,"is-selected":f,"is-focused":E,"is-disabled":e.disabled});return l.a.createElement(b,{className:y,focusOption:n,inputValue:r,instancePrefix:a,isDisabled:e.disabled,isFocused:E,isSelected:f,key:"option-"+d+"-"+e[m],onFocus:o,onSelect:c,option:e,optionIndex:d,ref:function(e){s(e,E)},removeValue:h,selectValue:p},u(e,d,r))})};b.propTypes={focusOption:c.a.func,focusedOption:c.a.object,inputValue:c.a.string,instancePrefix:c.a.string,onFocus:c.a.func,onOptionRef:c.a.func,onSelect:c.a.func,optionClassName:c.a.string,optionComponent:c.a.func,optionRenderer:c.a.func,options:c.a.array,removeValue:c.a.func,selectValue:c.a.func,valueArray:c.a.array,valueKey:c.a.string};var E=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=(function(){function e(e){this.value=e}function t(t){var n,r;function a(n,r){try{var i=t[n](r),s=i.value;s instanceof e?Promise.resolve(s.value).then(function(e){a("next",e)},function(e){a("throw",e)}):o(i.done?"return":"normal",i.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?a(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(o,i){var s={key:e,arg:t,resolve:o,reject:i,next:null};r?r=r.next=s:(n=r=s,a(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),B=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},D=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Q=function(e){function t(e){v(this,t);var n=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return M(t,e),B(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,a=i()(this.props.className,t.className);return t.disabled?l.a.createElement("div",{className:a,onMouseDown:E,onClick:E},this.props.children):l.a.createElement("div",{className:a,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(l.a.Component);Q.propTypes={children:c.a.node,className:c.a.string,instancePrefix:c.a.string.isRequired,isDisabled:c.a.bool,isFocused:c.a.bool,isSelected:c.a.bool,onFocus:c.a.func,onSelect:c.a.func,onUnfocus:c.a.func,option:c.a.object.isRequired,optionIndex:c.a.number};var Y=function(e){function t(e){v(this,t);var n=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return M(t,e),B(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return l.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?l.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):l.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return l.a.createElement("div",{className:i()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(l.a.Component);Y.propTypes={children:c.a.node,disabled:c.a.bool,id:c.a.string,onClick:c.a.func,onRemove:c.a.func,value:c.a.object.isRequired}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/react-select */ -var S=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},k=c.a.oneOfType([c.a.string,c.a.node]),F=c.a.oneOfType([c.a.string,c.a.number]),x=1,T=function(e,t){var n=void 0===e?"undefined":y(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,a=t.valueKey;if(r)for(var i=0;io||id.bottom?A.scrollTop=c.offsetTop+c.clientHeight-A.offsetHeight:l.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===(void 0===t?"undefined":y(t))?t:this.props;if(n.multi){if("string"==typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return T(e,n)}).filter(function(e){return e})}var r=T(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=N(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},function(){t.getValueArray(t.props.value).some(function(n){return n[t.props.valueKey]===e[t.props.valueKey]})?t.removeValue(e):t.addValue(e)}):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter(function(e){return!e.disabled}),r=n.indexOf(e);this.setValue(t.concat(e)),this.props.closeOnSelect&&(n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1]))}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter(function(n){return n[t.props.valueKey]!==e[t.props.valueKey]})),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,a=0;a0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var i=r-this.props.pageSize;r=i<0?0:i}else if("page_down"===e){var o=r+this.props.pageSize;r=o>t.length-1?t.length-1:o}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return l.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,a=this.props.valueComponent;if(!e.length)return function(e,t,n){var r=e.inputValue,a=e.isPseudoFocused,i=e.isFocused,o=t.onSelectResetsInput;return!r||!o&&!n&&!a&&!i}(this.state,this.props,t)?l.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null;var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(t,o){return l.a.createElement(a,{disabled:n.props.disabled||!1===t.clearableValue,id:n._instancePrefix+"-value-"+o,instancePrefix:n._instancePrefix,key:"value-"+o+"-"+t[n.props.valueKey],onClick:i,onRemove:n.removeValue,placeholder:n.props.placeholder,value:t,values:e},r(t,o),l.a.createElement("span",{className:"Select-aria-only"}," "))}):function(e,t){var n=e.inputValue,r=e.isPseudoFocused,a=e.isFocused,i=t.onSelectResetsInput;return!n||!i&&!(!a&&r||a&&!r)}(this.state,this.props)?(t&&(i=null),l.a.createElement(a,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:i,placeholder:this.props.placeholder,value:e[0]},r(e[0]))):void 0}},{key:"renderInput",value:function(e,t){var n,r=this,i=o()("Select-input",this.props.inputProps.className),s=this.state.isOpen,c=o()((w(n={},this._instancePrefix+"-list",s),w(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),A=this.state.inputValue;!A||this.props.onSelectResetsInput||this.state.isFocused||(A="");var u=I({},this.props.inputProps,{"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+s,"aria-haspopup":""+s,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":c,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:A});if(this.props.inputRenderer)return this.props.inputRenderer(u);if(this.props.disabled||!this.props.searchable){var d=C(this.props.inputProps,[]),f=o()(w({},this._instancePrefix+"-list",s));return l.a.createElement("div",I({},d,{"aria-expanded":s,"aria-owns":f,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:i,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?l.a.createElement(a.a,I({id:this.props.id},u,{className:i,minWidth:"5"})):l.a.createElement("div",{className:i,key:"input-wrap",style:{display:"inline-block"}},l.a.createElement("input",I({id:this.props.id},u)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return l.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?l.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var r="function"==typeof this.props.filterOptions?this.props.filterOptions:m;return r(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?l.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return S(e[t.props.valueKey])}).join(this.props.delimiter);return l.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map(function(e,n){return l.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:S(e[t.props.valueKey])})})}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var a=-1;if(t.some(function(e,t){var i=e[n]===r[n];return i&&(a=t),i}),-1!==a)return a}for(var i=0;i",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,n){var r=n(1174),a=n(1175);t.decode=function(e,t){return(!t||t<=0?a.XML:a.HTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?a.XML:a.HTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?r.XML:r.HTML)(e)},t.encodeXML=r.XML,t.encodeHTML4=t.encodeHTML5=t.encodeHTML=r.HTML,t.decodeXML=t.decodeXMLStrict=a.XML,t.decodeHTML4=t.decodeHTML5=t.decodeHTML=a.HTML,t.decodeHTML4Strict=t.decodeHTML5Strict=t.decodeHTMLStrict=a.HTMLStrict,t.escape=r.escape},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateFileExtensionForVisType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=e.split(".").pop();return void 0!==t.acceptedFileExtensions.find(function(e){return e===n})},t.getFileAsText=function(e,t){var n=new FileReader;n.onload=function(e){t(null,e.target.result),n=void 0},n.onerror=function(e){t(e.target.error),n=void 0},n.readAsText(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(1208)),a=i(n(1218));function i(e){return e&&e.__esModule?e:{default:e}}var o=new r.default.Parser,s=new a.default;t.default=function(e){var t=e.src;return s.render(o.parse(t||""))}},function(e,t,n){"use strict";function r(e){switch(e._type){case"document":case"block_quote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"link":case"image":case"custom_inline":case"custom_block":return!0;default:return!1}}var a=function(e,t){this.current=e,this.entering=!0===t},i=function(){var e=this.current,t=this.entering;if(null===e)return null;var n=r(e);return t&&n?e._firstChild?(this.current=e._firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:null===e._next?(this.current=e._parent,this.entering=!1):(this.current=e._next,this.entering=!0),{entering:t,node:e}},o=function(e,t){this._type=e,this._parent=null,this._firstChild=null,this._lastChild=null,this._prev=null,this._next=null,this._sourcepos=t,this._lastLineBlank=!1,this._open=!0,this._string_content=null,this._literal=null,this._listData={},this._info=null,this._destination=null,this._title=null,this._isFenced=!1,this._fenceChar=null,this._fenceLength=0,this._fenceOffset=null,this._level=null,this._onEnter=null,this._onExit=null},s=o.prototype;Object.defineProperty(s,"isContainer",{get:function(){return r(this)}}),Object.defineProperty(s,"type",{get:function(){return this._type}}),Object.defineProperty(s,"firstChild",{get:function(){return this._firstChild}}),Object.defineProperty(s,"lastChild",{get:function(){return this._lastChild}}),Object.defineProperty(s,"next",{get:function(){return this._next}}),Object.defineProperty(s,"prev",{get:function(){return this._prev}}),Object.defineProperty(s,"parent",{get:function(){return this._parent}}),Object.defineProperty(s,"sourcepos",{get:function(){return this._sourcepos}}),Object.defineProperty(s,"literal",{get:function(){return this._literal},set:function(e){this._literal=e}}),Object.defineProperty(s,"destination",{get:function(){return this._destination},set:function(e){this._destination=e}}),Object.defineProperty(s,"title",{get:function(){return this._title},set:function(e){this._title=e}}),Object.defineProperty(s,"info",{get:function(){return this._info},set:function(e){this._info=e}}),Object.defineProperty(s,"level",{get:function(){return this._level},set:function(e){this._level=e}}),Object.defineProperty(s,"listType",{get:function(){return this._listData.type},set:function(e){this._listData.type=e}}),Object.defineProperty(s,"listTight",{get:function(){return this._listData.tight},set:function(e){this._listData.tight=e}}),Object.defineProperty(s,"listStart",{get:function(){return this._listData.start},set:function(e){this._listData.start=e}}),Object.defineProperty(s,"listDelimiter",{get:function(){return this._listData.delimiter},set:function(e){this._listData.delimiter=e}}),Object.defineProperty(s,"onEnter",{get:function(){return this._onEnter},set:function(e){this._onEnter=e}}),Object.defineProperty(s,"onExit",{get:function(){return this._onExit},set:function(e){this._onExit=e}}),o.prototype.appendChild=function(e){e.unlink(),e._parent=this,this._lastChild?(this._lastChild._next=e,e._prev=this._lastChild,this._lastChild=e):(this._firstChild=e,this._lastChild=e)},o.prototype.prependChild=function(e){e.unlink(),e._parent=this,this._firstChild?(this._firstChild._prev=e,e._next=this._firstChild,this._firstChild=e):(this._firstChild=e,this._lastChild=e)},o.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next),this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev),this._parent=null,this._next=null,this._prev=null},o.prototype.insertAfter=function(e){e.unlink(),e._next=this._next,e._next&&(e._next._prev=e),e._prev=this,this._next=e,e._parent=this._parent,e._next||(e._parent._lastChild=e)},o.prototype.insertBefore=function(e){e.unlink(),e._prev=this._prev,e._prev&&(e._prev._next=e),e._next=this,this._prev=e,e._parent=this._parent,e._prev||(e._parent._firstChild=e)},o.prototype.walker=function(){return new function(e){return{current:e,root:e,entering:!0,next:i,resumeAt:a}}(this)},e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1224));t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1239));t.default=r.default},function(e,t,n){"use strict";(function(t){var r=n(41),a=n(1247),i={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(600):void 0!==t&&(e=n(600)),e}(),transformRequest:[function(e,t){return a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){s.headers[e]={}}),r.forEach(["post","put","patch"],function(e){s.headers[e]=r.merge(i)}),e.exports=s}).call(this,n(17))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1262));t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&e<1){var n=this.player.getDuration();return n?void this.player.seekTo(n*e):void console.warn("ReactPlayer: could not seek using fraction – duration not yet available")}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?o.default.createElement(e,r({},this.props,{ref:this.ref,onReady:this.onReady,onPlay:this.onPlay,onPause:this.onPause,onEnded:this.onEnded})):null}}]),t}();A.displayName="Player",A.propTypes=s.propTypes,A.defaultProps=s.defaultProps,t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withContentRect=t.default=void 0;var r=i(n(1273)),a=i(n(609));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default,t.withContentRect=a.default},function(e,t,n){"use strict";var r=n(614);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildCompositionAsStaticHtml=t.buildMontage=t.buildCorpusRendering=void 0;var r=u(n(1)),a=n(626),i=n(598),o=u(n(272)),s=n(7),c=u(n(1349)),A=u(n(1350)),l=n(30);function u(e){return e&&e.__esModule?e:{default:e}}var d="/"+(__PUBLIC_URL__||"").split("/").pop(),f=(t.buildCorpusRendering=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=e.metadata.title,r=l.inElectron?"bundles/corpus-player/bundle.js":d+"/bundles/corpus-player/bundle.js";return(0,i.get)(r.replace("//","/")).then(function(r){var a=r.data;return new Promise(function(r){var i=A.default,o={title:n,code:a,data:JSON.stringify(e),lang:t};for(var s in o){var c=new RegExp("\\$\\{"+s+"\\}","g").exec(i);if(c){var l=c[0].length,u=c.index;i=i.substr(0,u)+o[s]+i.substr(u+l)}}r(i)})})},t.buildMontage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=e.metadata.title,r=l.inElectron?"bundles/montage-player/bundle.js":d+"/bundles/montage-player/bundle.js";return console.log("get",r),(0,i.get)(r.replace("//","/")).then(function(r){var a=r.data;return new Promise(function(r){var i=c.default,o={title:n,code:a,data:JSON.stringify(e),lang:t};for(var s in o){var A=new RegExp("\\$\\{"+s+"\\}","g").exec(i);if(A){var l=A[0].length,u=A.index;i=i.substr(0,u)+o[s]+i.substr(u+l)}}r(i)})})},/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i),h=/vimeo\.com\/([\d]+)/i;t.buildCompositionAsStaticHtml=function(e,t){var n=e.summary,i=[r.default.createElement("div",{key:"title"},r.default.createElement("h1",null,e.metadata.title),e.metadata.description&&e.metadata.description.length&&r.default.createElement("div",null,r.default.createElement(o.default,{src:e.metadata.description}))),[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0?n[a-1]:void 0,p=a=a?e:r(e,t,n)}},function(e,t,n){var r=n(1365),a=n(286),i=n(1366);e.exports=function(e){return a(e)?i(e):r(e)}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1436);Object.defineProperty(t,"DragDropContext",{enumerable:!0,get:function(){return o(r).default}});var a=n(1516);Object.defineProperty(t,"Droppable",{enumerable:!0,get:function(){return o(a).default}});var i=n(1524);function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Draggable",{enumerable:!0,get:function(){return o(i).default}})},function(e,t,n){var r=n(1440);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(109);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(292)("keys"),a=n(196);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(38),a=n(66),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(195)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(1443)),a=o(n(1455)),i="function"==typeof a.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof a.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(108),a=n(1447),i=n(297),o=n(291)("IE_PROTO"),s=function(){},c=function(){var e,t=n(640)("iframe"),r=i.length;for(t.style.display="none",n(1450).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" - + diff --git a/package.json b/package.json index 0b845e4..4a26880 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dicto", - "version": "1.0.0-alpha.3", + "version": "1.0.0-alpha.4", "description": "transcribe > annotate > remix > publish media contents", "author": "Robin de Mourat", "repository": "https://github.com/dictoapp/dicto", @@ -33,7 +33,7 @@ "private:build:win": "electron-builder --win", "private:bundle": "webpack --config ./webpack.electron.dev.js", "private:clean": "rimraf build", - "private:compile": "webpack --config ./webpack.electron.prod.js", + "private:compile": "node prepareElectronProd;webpack --config ./webpack.electron.prod.js", "private:serve": "electron ." }, "precommit": [ @@ -141,7 +141,6 @@ "file-saver": "^1.3.3", "font-awesome": "^4.7.0", "fs-extra": "^5.0.0", - "google-map-react": "^0.32.0", "history": "^4.6.3", "html-to-text": "^4.0.0", "install": "^0.12.1", @@ -153,6 +152,8 @@ "moment": "^2.20.1", "npm": "^6.4.0", "parse-srt": "^1.0.0-alpha", + "pigeon-maps": "^0.12.1", + "pigeon-overlay": "^0.2.3", "pouchdb": "^6.4.3", "queue": "^4.4.0", "react": "^16.2.0", diff --git a/prepareElectronProd.js b/prepareElectronProd.js new file mode 100644 index 0000000..da49669 --- /dev/null +++ b/prepareElectronProd.js @@ -0,0 +1,22 @@ +const {readFile, writeFile, copy} = require('fs-extra'); +const homepage = require('./package.json').homepage; +const version = require('./package.json').version; +const repository = require('./package.json').repository; + +const inputIndexPath = `${__dirname}/app/electronIndex.html`; + +const outputIndexPath = `${__dirname}/app/electronIndex.html`; + +let fixed; +let fixed404; + +readFile(inputIndexPath, 'utf8') + .then(str => { + fixed = str + .replace(/="\//g, `="${homepage}/`) + .replace(/window.__PUBLIC_URL__ = '[^']*';/g, `window.__PUBLIC_URL__ = '${homepage}';`) + .replace(/window.__DICTO_VERSION__ = '[^']*';/g, `window.__DICTO_VERSION__ = '${version}';`) + .replace(/window.__SOURCE_REPOSITORY__ = '[^']*';/g, `window.__SOURCE_REPOSITORY__ = '${repository}';`) + return writeFile(outputIndexPath, fixed, 'utf8') + }) + .catch(console.error) \ No newline at end of file diff --git a/services/corporaTransactions.js b/services/corporaTransactions.js index 44c08b8..c146365 100644 --- a/services/corporaTransactions.js +++ b/services/corporaTransactions.js @@ -97,7 +97,7 @@ const updateCorpus = ( { corpusId, corpus } ) => { } ); }; -const updateCorpusPart = ( { action } ) => { +const updateCorpusPart = ( { action, callback } ) => { return new Promise( ( resolve, reject ) => { const corpusId = action.payload.corpusId; let newCorpus; @@ -112,9 +112,15 @@ const updateCorpusPart = ( { action } ) => { return writeFile( thatPath, JSON.stringify( newCorpus ), 'utf8' ) } ) .then( () => { + if ( callback ) { + callback( null, newCorpus ); + } return resolve( { corpusId, corpus: newCorpus } ); } ) .catch( ( error ) => { + if ( callback ) { + callback( error ); + } reject( { corpusId, error } ) } );